@arcgis/core 5.1.0-next.72 → 5.1.0-next.74

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 (220) hide show
  1. package/Viewpoint.js +1 -1
  2. package/applications/Urban/editingSessionUtils.d.ts +95 -0
  3. package/applications/Urban/editingSessionUtils.js +2 -0
  4. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/{91a0227a64a944af3286.js → 003476e950bd27a2f884.js} +2 -2
  7. package/assets/esri/core/workers/chunks/{8a664451845a47048859.js → 0539b5d015157c1d34a0.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{5a4d7ba6dc1d4b41d80d.js → 07eff82916681fcff069.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{b801631b58e6fc6cec8a.js → 0ae360bf253adee46737.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{8a14e3db28c403b046cf.js → 0d2bc1be5802681666a4.js} +1 -1
  11. package/assets/esri/core/workers/chunks/0eed2b1b06355ab89013.js +1 -0
  12. package/assets/esri/core/workers/chunks/{b495f14d90abe8d1a558.js → 12e575a6d2b008b8fc2b.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{61ef14e42bc09b787d89.js → 13e60f19f436b8d683ae.js} +1 -1
  14. package/assets/esri/core/workers/chunks/18f77ee3552d92962f15.js +1 -0
  15. package/assets/esri/core/workers/chunks/1a87e9bbd85ba29b1514.js +1 -0
  16. package/assets/esri/core/workers/chunks/{aa1a3a849aba84cf585b.js → 1db1656a033f3992f0d6.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{b54b7cc6b23a70fed700.js → 1f8ccf96069ac3a40c3d.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{cdf6ad970dc1893dac58.js → 24646a1176ce34039155.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{93ceb74ac88ef460fe5f.js → 359d3acb3953e64e5a78.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{b79058f5bda6fcac22f8.js → 37091cf498a16ccad7ff.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{0839da55707f7c4cf780.js → 3b9100c59a8050f4834e.js} +1 -1
  22. package/assets/esri/core/workers/chunks/452c01cecbbd1e370098.js +1 -0
  23. package/assets/esri/core/workers/chunks/47656ec12401e53f4bd3.js +1 -0
  24. package/assets/esri/core/workers/chunks/{260d4571722cb1ff1366.js → 484d6c1b0fe1633515b7.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{0d96e39380fd84cea9ba.js → 4bbe684050b3b04681d0.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{7e6ccf9f3e756186e93e.js → 4c13869d260a902d3014.js} +1 -1
  27. package/assets/esri/core/workers/chunks/4c97cc922eece3a91b6b.js +1 -0
  28. package/assets/esri/core/workers/chunks/{656d6963e8f837fbf28f.js → 54023458195549f66215.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{02876e434dc91c42b2f4.js → 5476c2f7b83f4ccd0335.js} +1 -1
  30. package/assets/esri/core/workers/chunks/5511e640e171c294f52a.js +2 -0
  31. package/assets/esri/core/workers/chunks/{faad127dc07e54e7f6d1.js → 5abe34bb0110694f7b42.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{c1838822b096d5f36a8b.js → 5b324e572737a308500d.js} +1 -1
  33. package/assets/esri/core/workers/chunks/6124141ac642e4ce1454.js +1 -0
  34. package/assets/esri/core/workers/chunks/{ae0a572cbbdd9815ee2e.js → 62b3e933f548ce354b99.js} +1 -1
  35. package/assets/esri/core/workers/chunks/6b66fc32451433129a88.js +1 -0
  36. package/assets/esri/core/workers/chunks/{6ea8b0d68881d16a2432.js → 6d25230dd85a4ba54c4f.js} +1 -1
  37. package/assets/esri/core/workers/chunks/6f7aaba26773fe416ac2.js +1 -0
  38. package/assets/esri/core/workers/chunks/{9f4b97204def91567e3c.js → 7595ceba529ed01c7590.js} +1 -1
  39. package/assets/esri/core/workers/chunks/75d5ea0da181f9e7425f.js +1312 -0
  40. package/assets/esri/core/workers/chunks/{af75e91b88e747aa76ac.js → 7601278ebced0c0c31cf.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{1661684357912726a72a.js → 77dd719516138afb1a2a.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{6f9ea461c268c421f9c9.js → 7951d93f5f15aa76f49c.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{ce2aa75e084ee56f5e29.js → 7f55eef696e9ed717bfc.js} +1 -1
  44. package/assets/esri/core/workers/chunks/85aac8539996372f1ee8.js +1 -0
  45. package/assets/esri/core/workers/chunks/{50d5d6654ada9f28345d.js → 85e65ced3312bf9cf162.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{b92794def31592a6a25f.js → 8d75f6f27c1c17c33992.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{3cd9bd20e75ba4d5b294.js → 8f4cd30ce23e41c1a42c.js} +1 -1
  48. package/assets/esri/core/workers/chunks/95d82c619dcbec2e1050.js +1 -0
  49. package/assets/esri/core/workers/chunks/983f6c8727fd9484718e.js +1 -0
  50. package/assets/esri/core/workers/chunks/{5a83ea967ecde01d5622.js → 9be9ccce6369f67202bc.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{628f56c09838eb9c573b.js → a270960d80d8344dd75f.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{b475f5492c6e3fd4cca8.js → a36761e3122f70fbb3c9.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{1edd39c7c4acdc591d10.js → a809b811121099a87a98.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{47f2113357b2aa4f4f37.js → a9d2c83bb10b5ade0ca0.js} +1 -1
  55. package/assets/esri/core/workers/chunks/abdf146b35e179b5b245.js +1 -0
  56. package/assets/esri/core/workers/chunks/ad064583f8a836005098.js +1 -0
  57. package/assets/esri/core/workers/chunks/{d2aa75816e84b1e7fd25.js → afc0baf86ece710ef867.js} +1 -1
  58. package/assets/esri/core/workers/chunks/b858adff7043683fe41c.js +1 -0
  59. package/assets/esri/core/workers/chunks/{68b47a5a50e0b5fffca2.js → b905e637a67fbb7af4ae.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{03894992558d063d0d5e.js → bab23b905678e42815e5.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{6ef3b8d67b498d655a99.js → bcb021a167580bb1619f.js} +1 -1
  62. package/assets/esri/core/workers/chunks/be0341567bb19e101a4f.js +1 -0
  63. package/assets/esri/core/workers/chunks/bec3ee5ea945e1e07a35.js +1 -0
  64. package/assets/esri/core/workers/chunks/{a65d576e90179a2b5400.js → c5507480344176fad241.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{d4a9eb4470cc6a1f67fc.js → c5f155fe114a2a05aaf2.js} +2 -2
  66. package/assets/esri/core/workers/chunks/{84772b023d04e415f17f.js → c61002a117dc2218d6af.js} +1 -1
  67. package/assets/esri/core/workers/chunks/c70df6ed190f9ebcf6aa.js +1 -0
  68. package/assets/esri/core/workers/chunks/{0dad0bca8d58b2c63d22.js → c804a66ef7615aa8de89.js} +1 -1
  69. package/assets/esri/core/workers/chunks/cd7159600ce132e32d04.js +1 -0
  70. package/assets/esri/core/workers/chunks/{dec6d41d614105e6fd93.js → d00dafad202450e6ee2e.js} +1 -1
  71. package/assets/esri/core/workers/chunks/d1a7d13e1d48abcd7bf1.js +1 -0
  72. package/assets/esri/core/workers/chunks/{06df187a116709f69952.js → d35c475f004367e333eb.js} +1 -1
  73. package/assets/esri/core/workers/chunks/d82da31dc702b8fd6a07.js +1 -0
  74. package/assets/esri/core/workers/chunks/dd4f431511edd975a53b.js +1 -0
  75. package/assets/esri/core/workers/chunks/{99101789035f1787c630.js → e785f76c1a75cb1d1e1f.js} +1 -1
  76. package/assets/esri/core/workers/chunks/f53805c7a84203305b2c.js +1 -0
  77. package/assets/esri/core/workers/chunks/f590b60fca607d66001a.js +1 -0
  78. package/assets/esri/core/workers/chunks/{f6d047358d14328f3622.js → f60292d97bcdbf19165b.js} +1 -1
  79. package/assets/esri/core/workers/chunks/fb5a2205f05afc396119.js +1 -0
  80. package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
  81. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
  82. package/chunks/GlobalIllumination.glsl.js +186 -116
  83. package/chunks/GlobalIlluminationBlur.glsl.js +81 -61
  84. package/chunks/GlobalIlluminationUpscale.glsl.js +66 -0
  85. package/chunks/geometryEngineBase.js +1 -1
  86. package/config.js +1 -1
  87. package/core/has.js +1 -1
  88. package/form/elements/FieldElement.d.ts +3 -2
  89. package/form/elements/FieldElement.js +1 -1
  90. package/form/elements/inputs/Input.d.ts +1 -1
  91. package/form/elements/inputs/MultipleChoiceInput.d.ts +65 -0
  92. package/form/elements/inputs/MultipleChoiceInput.js +2 -0
  93. package/form/elements/inputs/inputUtils.js +1 -1
  94. package/form/elements/inputs/multipleChoice/Choice.d.ts +30 -0
  95. package/form/elements/inputs/multipleChoice/Choice.js +2 -0
  96. package/form/elements/inputs/multipleChoice/OtherChoice.d.ts +28 -0
  97. package/form/elements/inputs/multipleChoice/OtherChoice.js +2 -0
  98. package/form/elements/inputs.d.ts +11 -2
  99. package/form/elements/inputs.js +1 -1
  100. package/form/support/formUtils.js +1 -1
  101. package/geometry/geometryEngine.js +1 -1
  102. package/geometry/geometryEngineJSON.js +1 -1
  103. package/geometry/operators/projectOperator.d.ts +5 -4
  104. package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
  105. package/geometry/support/normalizeUtils.js +1 -1
  106. package/geometry/support/normalizeUtilsCommon.js +1 -1
  107. package/identity/IdentityManagerBase.js +1 -1
  108. package/interfaces.d.ts +28 -0
  109. package/kernel.js +1 -1
  110. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  111. package/layers/IntegratedMeshLayer.js +1 -1
  112. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  113. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  114. package/layers/support/SymbolLayerDrawing.d.ts +18 -4
  115. package/package.json +2 -2
  116. package/popup/Features.d.ts +9 -9
  117. package/popup/Features.js +1 -1
  118. package/popup/actionUtils.js +1 -1
  119. package/popup/actions.js +1 -1
  120. package/portal/Portal.js +1 -1
  121. package/portal/PortalQueryParams.js +1 -1
  122. package/rest/print.js +1 -1
  123. package/support/revision.js +1 -1
  124. package/third-party-notices.txt +7 -29
  125. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  126. package/views/3d/camera/intersectionUtils.js +1 -1
  127. package/views/3d/environment/EnvironmentManager.js +1 -1
  128. package/views/3d/input/SceneInputManager.js +1 -1
  129. package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
  130. package/views/3d/layers/I3SMeshView3D.js +1 -1
  131. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  132. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  133. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  134. package/views/3d/state/GoToOperation.js +1 -1
  135. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  136. package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
  137. package/views/3d/support/cameraScaleUtils.js +2 -0
  138. package/views/3d/support/cameraUtils.js +1 -1
  139. package/views/3d/support/orientedBoundingBox.js +1 -1
  140. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  141. package/views/3d/support/renderInfoUtils/line.js +1 -1
  142. package/views/3d/support/viewpointUtils.js +1 -1
  143. package/views/3d/terrain/TerrainRenderer.js +1 -1
  144. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  145. package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +13 -12
  146. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  147. package/views/3d/webgl-engine/core/shaderLibrary/shading/GlobalIlluminationWeights.glsl.js +21 -0
  148. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +11 -7
  149. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +2 -0
  150. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  151. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlur.glsl.js +2 -0
  152. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlurTechnique.js +1 -1
  153. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechnique.js +1 -1
  154. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationUpscale.glsl.js +2 -0
  155. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationUpscaleTechnique.js +2 -0
  156. package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
  157. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  158. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  159. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  160. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  161. package/views/3d/webgl.js +1 -1
  162. package/views/SceneView.d.ts +1 -0
  163. package/views/draw/support/editingSessionUtils.js +2 -0
  164. package/views/interactive/sketch/SketchOptions.d.ts +3 -1
  165. package/views/interactive/sketch/SketchTooltipOptions.d.ts +15 -1
  166. package/views/support/Scheduler.js +1 -1
  167. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  168. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  169. package/widgets/BatchAttributeForm/inputs/SingleFeatureInputAdapter.js +2 -0
  170. package/widgets/BatchAttributeForm/inputs/TextElementInput.d.ts +28 -4
  171. package/widgets/BatchAttributeForm/inputs/TextElementInput.js +1 -1
  172. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  173. package/widgets/BatchAttributeForm/templates/AttachmentElementTemplate.js +2 -0
  174. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  175. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  176. package/widgets/BatchAttributeForm/templates/support/templateUtils.js +1 -1
  177. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  178. package/widgets/Editor/EditorViewModel.js +1 -1
  179. package/widgets/Editor/MergeFeaturesWorkflow.js +1 -1
  180. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  181. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  182. package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
  183. package/widgets/Editor/support/SketchController.js +1 -1
  184. package/widgets/Editor/workflowUtils.js +1 -1
  185. package/widgets/Search/support/layerSearchUtils.js +1 -1
  186. package/widgets/support/widgetUtils.js +1 -1
  187. package/assets/esri/core/workers/chunks/027c3ea756db68e51f0a.js +0 -1
  188. package/assets/esri/core/workers/chunks/0c00e5e4bd18467bcecd.js +0 -1
  189. package/assets/esri/core/workers/chunks/0ef93722524620023f69.js +0 -1
  190. package/assets/esri/core/workers/chunks/266ba61b72a278d93a26.js +0 -1
  191. package/assets/esri/core/workers/chunks/2abf124e2956e4f76688.js +0 -1
  192. package/assets/esri/core/workers/chunks/43678e08a3d9d51c2a6d.js +0 -1
  193. package/assets/esri/core/workers/chunks/5b278b9980752ef495a2.js +0 -1
  194. package/assets/esri/core/workers/chunks/5e59ff96aecdf2adcb3b.js +0 -1
  195. package/assets/esri/core/workers/chunks/74be994d789c57031631.js +0 -1
  196. package/assets/esri/core/workers/chunks/770880ad43f252962017.js +0 -1
  197. package/assets/esri/core/workers/chunks/81750c5177d8d52a3e05.js +0 -1
  198. package/assets/esri/core/workers/chunks/85edbb072a2ce6c1bb30.js +0 -2
  199. package/assets/esri/core/workers/chunks/943cf0653a2b7de16a4f.js +0 -1
  200. package/assets/esri/core/workers/chunks/a11f05ddd8314b648f76.js +0 -1
  201. package/assets/esri/core/workers/chunks/a37fc886227365f7ecd5.js +0 -1
  202. package/assets/esri/core/workers/chunks/af5db0372d526e592fcc.js +0 -1
  203. package/assets/esri/core/workers/chunks/bc53ce9a643f82d516c2.js +0 -1
  204. package/assets/esri/core/workers/chunks/bea70be8e38b8c83ccd2.js +0 -1
  205. package/assets/esri/core/workers/chunks/c3381b9a36299210ee47.js +0 -1
  206. package/assets/esri/core/workers/chunks/d0c3ab70f390cd579fed.js +0 -1
  207. package/assets/esri/core/workers/chunks/d8d7331600d93bbca2b4.js +0 -1
  208. package/assets/esri/core/workers/chunks/dca595fdd5e1a571e441.js +0 -1
  209. package/assets/esri/core/workers/chunks/de583214195eff13cb00.js +0 -1140
  210. package/assets/esri/core/workers/chunks/df8143b72ef94806c992.js +0 -1
  211. package/assets/esri/core/workers/chunks/ef013a77950c1902de11.js +0 -1
  212. package/assets/esri/core/workers/chunks/fa160a2a5dc9f5a7c34b.js +0 -1
  213. package/geometry/support/triangulationUtilsDeprecated.js +0 -2
  214. package/views/3d/layers/graphics/extrudeUtilsDeprecated.js +0 -2
  215. package/views/3d/support/renderInfoUtils/polygonDeprecated.js +0 -2
  216. package/views/3d/webgl-engine/core/shaderLibrary/shading/EncodingColor.glsl.js +0 -7
  217. package/views/3d/webgl-engine/shaders/GlobalIllumination.glsl.js +0 -2
  218. package/views/3d/webgl-engine/shaders/GlobalIlluminationBlur.glsl.js +0 -2
  219. /package/assets/esri/core/workers/chunks/{85edbb072a2ce6c1bb30.js.LICENSE.txt → 5511e640e171c294f52a.js.LICENSE.txt} +0 -0
  220. /package/assets/esri/core/workers/chunks/{d4a9eb4470cc6a1f67fc.js.LICENSE.txt → c5f155fe114a2a05aaf2.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3661],{56512(e,t,n){function i(e){let t,n,i=[],s=!1;return function(...r){return s&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}(r,i)||(n=e.apply(this,r),t=this,i=r,s=!0),n}}n.d(t,{B:()=>i})},159(e,t,n){n.d(t,{A:()=>u});var i,s=n(5482),r=n(69540),o=n(25482),a=n(91429),l=n(99157);let u=i=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,s.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=i=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,n){n.d(t,{A:()=>l});var i,s=n(5482),r=n(69540),o=n(25482),a=n(91429);let l=i=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,s.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],l.prototype,"isInverse",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=i=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>s});var i=n(49208);function s(e,t,n,s,r,o,a=Math.floor(e.length/3)){const l=(0,i.jd)(t,r);if(null==l)return!1;if(l===i.pO){if(e===s&&n===o)return!0;const t=n+3*a;for(let i=n,r=o;i<t;i++,r++)s[r]=e[i]??0;return!0}const u=n+3*a;for(let t=n,i=o;t<u;t+=3,i+=3)l(e,t,s,i);return!0}},49208(e,t,n){n.d(t,{Tp:()=>p,jd:()=>c,pO:()=>f,w5:()=>u});var i=n(34727),s=n(86211),r=n(73941),o=n(79258),a=n(34403),l=n(21325);const u={2:{5:f,7:null,9:null,10:f,1:b,6:null,8:null,0:null,3:m,11:g,2:f,4:M},5:{5:f,7:null,9:null,10:f,1:b,6:null,8:null,0:null,3:m,11:g,2:f,4:M},7:{5:null,7:f,9:null,10:f,1:null,6:x,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:w,0:null,3:null,11:null,2:null,4:null},3:{5:h,7:null,9:null,10:h,1:function(e,t,n,i){const s=e[t]/O,r=P-2*Math.atan(Math.exp(-e[t+1]/O)),o=O+(e[t+2]??0),a=Math.cos(r)*o;n[i]=Math.cos(s)*a,n[i+1]=Math.sin(s)*a,n[i+2]=Math.sin(r)*o},6:null,8:null,0:null,3:f,11:function(e,t,n,i){h(e,t,n,i),g(n,i,n,i)},2:h,4:function(e,t,n,i){h(e,t,n,i),M(n,i,n,i)}},4:{5:R,7:null,9:null,10:R,1:function(e,t,n,i){R(e,t,n,i),b(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){R(e,t,n,i),m(n,i,n,i)},11:function(e,t,n,i){R(e,t,n,i),g(n,i,n,i)},2:R,4:f},1:{5:A,7:null,9:null,10:A,1:f,6:null,8:null,0:null,3:function(e,t,n,i){A(e,t,n,i),m(n,i,n,i)},11:function(e,t,n,i){A(e,t,n,i),g(n,i,n,i)},2:A,4:function(e,t,n,i){A(e,t,n,i),M(n,i,n,i)}},6:{5:null,7:S,9:null,10:S,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:I,10:I,1:null,6:null,8:f,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:b,6:x,8:w,0:null,3:m,11:g,2:f,4:M},11:{5:v,7:null,9:null,10:v,1:function(e,t,n,i){v(e,t,n,i),b(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){v(e,t,n,i),m(n,i,n,i)},11:f,2:v,4:function(e,t,n,i){v(e,t,n,i),M(n,i,n,i)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(T.source.spatialReference===e&&T.dest.spatialReference===t)return T;const n=d(e,T.source),i=d(t,T.dest);return 0===n&&0===i?(0,l.aI)(e,t)?T.projector=f:T.projector=null:T.projector=u[n][i],T}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,s.GA)(e,1)),(0,r.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===r.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===r.FY.wkt?t.spatialReferenceId=6:e.wkt===r.LJ.wkt?t.spatialReferenceId=8:(0,r.q8)(e)?t.spatialReferenceId=7:(0,r.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function f(e,t,n,i){e!==n&&(n[i++]=e[t++],n[i++]=e[t++],n[i]=e[t]??0)}function h(e,t,n,i){n[i]=L*(e[t]/O),n[i+1]=L*(P-2*Math.atan(Math.exp(-e[t+1]/O))),n[i+2]=e[t+2]??0}function m(e,t,n,s){!function(e,t,n,s,r){const o=.4999999*Math.PI,a=(0,i.qE)(D*e[t+1],-o,o),l=Math.sin(a);n[s++]=D*e[t]*r.radius,n[s++]=r.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[s]=e[t+2]??0}(e,t,n,s,o.$O)}function g(e,t,n,i){n[i]=e[t]*N,n[i+1]=e[t+1]*N,n[i+2]=e[t+2]??0}function v(e,t,n,i){n[i]=e[t]*V,n[i+1]=e[t+1]*V,n[i+2]=e[t+2]??0}function y(e,t,n,i,s){const r=s+(e[t+2]??0),o=D*e[t],a=D*e[t+1],l=Math.cos(a)*r;n[i]=Math.cos(o)*l,n[i+1]=Math.sin(o)*l,n[i+2]=Math.sin(a)*r}function w(e,t,n,i){y(e,t,n,i,o.Sw.radius)}function x(e,t,n,i){y(e,t,n,i,o.sH.radius)}function b(e,t,n,i){y(e,t,n,i,o.$O.radius)}function C(e,t,n,s,r){const o=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(o*o+a*a+l*l),c=(0,i.YN)(l/(0===u?1:u)),p=Math.atan2(a,o);n[s++]=L*p,n[s++]=L*c,n[s]=u-r}function I(e,t,n,i){C(e,t,n,i,o.Sw.radius)}function S(e,t,n,i){C(e,t,n,i,o.sH.radius)}function A(e,t,n,i){C(e,t,n,i,o.$O.radius)}function M(e,t,n,i){!function(e,t,n,i,s){const r=D*e[t],o=D*e[t+1],a=e[t+2]??0,l=Math.sin(o),u=Math.cos(o),c=s.radius/Math.sqrt(1-s.eccentricitySquared*l*l);n[i++]=(c+a)*u*Math.cos(r),n[i++]=(c+a)*u*Math.sin(r),n[i++]=(c*(1-s.eccentricitySquared)+a)*l}(e,t,n,i,o.$O)}function R(e,t,n,i){const s=a.TP,r=e[t],l=e[t+1],u=e[t+2]??0;let c,p,d,f,h,m,g,v,y,w,x,b,C,I,S,A,M,R,T,D,P;c=Math.abs(u),p=r*r+l*l,d=Math.sqrt(p),f=p+u*u,h=Math.sqrt(f),D=Math.atan2(l,r),m=u*u/f,g=p/f,I=s.a2/h,S=s.a3-s.a4/h,g>.3?(v=c/h*(1+g*(s.a1+I+m*S)/h),T=Math.asin(v),w=v*v,y=Math.sqrt(1-w)):(y=d/h*(1-m*(s.a5-I-g*S)/h),T=Math.acos(y),w=1-y*y,v=Math.sqrt(w)),x=1-o.$O.eccentricitySquared*w,b=o.$O.radius/Math.sqrt(x),C=s.a6*b,I=d-b*y,S=c-C*v,M=y*I+v*S,A=y*S-v*I,R=A/(C/x+M),T+=R,P=M+A*R/2,u<0&&(T=-T),n[i++]=L*D,n[i++]=L*T,n[i]=P}const T={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},D=(0,i.kU)(1),L=(0,i.KJ)(1),P=.5*Math.PI,O=o.$O.radius,N=O*Math.PI/180,V=180/(O*Math.PI)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>B,initializeProjection:()=>U,isEqualBaseGCS:()=>q,isLoaded:()=>O,isLoadedOrLoad:()=>N,isLoadedOrLoadFor:()=>V,load:()=>$,project:()=>E,projectAsync:()=>W,projectExtent:()=>se,projectMany:()=>k,projectMultipoint:()=>Y,projectOrLoad:()=>Z,projectOrLoadMany:()=>F,projectPoint:()=>K,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>H,requiresLoad:()=>j,test:()=>z,tryProject:()=>G,unload:()=>X});var i=n(49186),s=n(17676),r=n(62788),o=n(95488),a=n(51850),l=n(21276),u=n(73941),c=n(5443),p=n(91075),d=n(48526),f=n(86738),h=n(39829),m=n(82799),g=n(16930),v=n(98764),y=n(159),w=n(9762),x=n(49208);function b(e,t,n,i,s,r){return C[0]=e,C[1]=t,C[2]=n,(0,w.projectBuffer)(C,i,0,s,r,0)}const C=(0,a.vt)();var I=n(60408),S=n(21325),A=n(52006);let M=null,R=null,T=null,D=null,L={};const P=new o.I;function O(){return!!(R?.isLoaded()&&T?.isLoaded()&&D?.isLoaded())}function N(){return!!O()||((0,r.gc)(P),$(),!1)}function V(e,t){return!e||!t||B(e,t)||N()}function j(e,t){return!B(e,t)&&!O()}async function $(e){null==M&&(M=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(R=e,R.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(T=e,T.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(D=e,D.load()))])),await M,(0,s.Te)(e),P.notify()}function E(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),k(e,e[0].spatialReference,t,n)):((0,l.f)(e),k([e],e.spatialReference,t,n)[0])}function k(e,t,n,i){if(null==t||null==n)return e;if(B(t,n,i))return e.map(e=>H(e,t,n));if(null==i?.geographicTransformation&&(0,u.jA)(t))return k(e.map(e=>H(e,t,g.A.WGS84)),g.A.WGS84,n,{zConversionDisabled:i?.zConversionDisabled});if(null==i?.geographicTransformation&&(0,u.jA)(n))return k(e,t,g.A.WGS84).map(e=>H(e,g.A.WGS84,n));if(!O())throw new _;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:D.getTransformation(t,n,i.areaOfInterestExtent)||new y.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let s=L[e];s||(s=D.getTransformation(t,n)||new y.A,L[e]=s),i={geographicTransformation:s,zConversionDisabled:i?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?R.executeMany(e,n,i):T.executeMany(e,n,i)}function G(e,t,n){try{return E(e,t,n)}catch(e){return null}}function Z(e,t){const n=F([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function F(e,t,n){if(!O())for(const n of e)if(null!=n&&!(0,S.aI)(n.spatialReference,t)&&(0,S.fn)(n.spatialReference)&&(0,S.fn)(t)&&!B(n.spatialReference,t))return(0,r.gc)(P),{pending:$(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,S.aI)(e.spatialReference,t)?e:(0,S.fn)(e.spatialReference)&&(0,S.fn)(t)?E(e,t,n):null)}}class _ extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function X(){M=null,R=null,T=null,D=null,L={}}const z={get loadPromise(){return M}};async function W(e,t,n){if((0,s.Te)(n),!e)return e;const i=F(Array.isArray(e)?e:[e],t,n);if(i.pending)return await i.pending,(0,s.Te)(n),W(e,t,n);const r=i.geometries??[];return Array.isArray(e)?r:r[0]}function B(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,S.aI)(e,t)||(0,S.fn)(e)&&(0,S.fn)(t)&&!!(0,x.jd)(e,t))}function q(e,t){if((0,S.aI)(e,t))return!0;if(!(0,S.fn)(e)||!(0,S.fn)(t))return!1;const n=(0,S.oT)(e)||(0,S.K8)(e)||(0,S.x1)(e),i=(0,S.oT)(t)||(0,S.K8)(t)||(0,S.x1)(t);return n&&i}async function U(e,t,n,i){if(O())return(0,s.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:n,options:s}of e)if(t&&n&&!B(t,n,s))return $(i)}else if(e&&t&&!B(e,t,n))return $(i);return(0,s.NO)(i)}function H(e,t,n){return e?(0,I.fT)(e)?J(e,t,new f.A,n,0):(0,I.ZC)(e)?re(e,t,new c.A,n,0):(0,I.Bi)(e)?ie(e,t,new h.A,n,0):(0,I.Rg)(e)?te(e,t,new m.A,n,0):(0,I.U9)(e)?Q(e,t,new d.A,n,0):null:null}function K(e,t,n=t.spatialReference,i=0){return null!=n&&null!=e.spatialReference&&null!=J(e,e.spatialReference,t,n,i)}function J(e,t,n,i,s){ue[0]=e.x,ue[1]=e.y;const r=e.z;return ue[2]=void 0!==r?r:s,(0,w.projectBuffer)(ue,t,0,ue,i,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=i,void 0!==r||(0,u.xP)(i)?(n.z=ue[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function Y(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=Q(e,e.spatialReference,t,n,i)}function Q(e,t,n,i,s){const{points:r,hasZ:o,hasM:a}=e,l=[],u=r.length,c=[];for(const e of r)c.push(e[0],e[1],o?e[2]:s);if(!(0,w.projectBuffer)(c,t,0,c,i,0,u))return null;const p=le(o,i);for(let e=0;e<u;++e){const t=3*e,n=c[t],i=c[t+1];p&&a?l.push([n,i,c[t+2],r[e][3]]):p?l.push([n,i,c[t+2]]):a?l.push([n,i,r[e][2]]):l.push([n,i])}return n.points=l,n.spatialReference=i,n.hasZ=o,n.hasM=a,n}function ee(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,i)}function te(e,t,n,i,s){const{curvePaths:r,paths:o,hasZ:a,hasM:l}=e;if(!(r?ae(r,a??!1,l??!1,t,n.curvePaths=[],i,s):oe(o,a??!1,l??!1,t,n.paths,i,s)))return null;const u=le(a,i);return n.spatialReference=i,n.hasZ=u,n.hasM=l,n}function ne(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,i)}function ie(e,t,n,i,s){const{curveRings:r,rings:o,hasZ:a,hasM:l}=e;return(r?ae(r,a??!1,l??!1,t,n.curveRings=[],i,s):oe(o,a??!1,l??!1,t,n.rings,i,s))?(n.spatialReference=i,n.hasZ=le(a,i),n.hasM=l,n):null}function se(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=re(e,e.spatialReference,t,n,i)}function re(e,t,n,i,s){const{xmin:r,ymin:o,xmax:a,ymax:l,hasZ:u,hasM:c}=e;if(!b(r,o,u?e.zmin:s,t,ue,i))return null;const p=le(u,i);return n.xmin=ue[0],n.ymin=ue[1],p&&(n.zmin=ue[2]),b(a,l,u?e.zmax:s,t,ue,i)?(n.xmax=ue[0],n.ymax=ue[1],p&&(n.zmax=ue[2]),c&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=i,n):null}function oe(e,t,n,i,s,r,o=0){const a=new Array;for(const n of e)for(const e of n)a.push(e[0],e[1],t?e[2]:o);if(!(0,w.projectBuffer)(a,i,0,a,r,0))return!1;let l=0;s.length=0;const u=t?3:2,c=le(t,r);for(const t of e){const e=new Array;for(const i of t){const t=a.slice(l,l+=3);c||t.pop(),n&&t.push(i[u]),e.push(t)}s.push(e)}return!0}function ae(e,t,n,i,s,r,o=0){const a=new Array;for(const n of e)for(const e of n){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[n,i]=e.c;a.push(n[0],n[1],t?n[2]:o,i[0],i[1],o);continue}if((0,A.n1)(e)){const[n,i,s]=e.b;a.push(n[0],n[1],t?n[2]:o,i[0],i[1],o,s[0],s[1],o);continue}const n=e;a.push(n[0],n[1],t?n[2]:o)}if(!(0,w.projectBuffer)(a,i,0,a,r,0))return!1;let l=0;s.length=0;const u=t?3:2,c=le(t,r);for(const t of e){const e=new Array;for(const i of t){const t=a.slice(l,l+=3);if(c||t.pop(),n&&t.push((0,A.yP)(i)[u]),(0,A.FG)(i))return!1;if((0,A.aO)(i)){const n=a[l++],i=a[l++];++l,e.push({c:[t,[n,i]]});continue}if((0,A.n1)(i)){const n=a[l++],i=a[l++];++l;const s=a[l++],r=a[l++];++l,e.push({b:[t,[n,i],[s,r]]});continue}e.push(t)}s.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,S.aI)(t,v.Y0)}const ue=(0,a.vt)()},98764(e,t,n){n.d(t,{GD:()=>o,Y0:()=>u,lO:()=>c});var i=n(73941),s=n(16930),r=n(21325);const o=new s.A(i.fv),a=new s.A(i.FY),l=new s.A(i.LJ),u=new s.A(i.Ro);function c(e){const t=p.get(e);if(t)return t;let n=o;if(e)if(e===a)n=a;else if(e===l)n=l;else{const t=e.wkid,i=e.latestWkid;if(null!=t||null!=i)(0,r.tl)(t)||(0,r.tl)(i)?n=a:((0,r.ZL)(t)||(0,r.ZL)(i))&&(n=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?n=a:e===f&&(n=l)}}}return p.set(e,n),n}const p=new Map,d=a.wkt.toUpperCase(),f=l.wkt.toUpperCase()},34403(e,t,n){n.d(t,{TP:()=>o});var i=n(79258);Math.PI;const s=i.$O.radius,r=i.$O.eccentricitySquared,o={a1:s*r,a2:s*r*s*r,a3:s*r*r/2,a4:s*r*s*r*2.5,a5:s*r+s*r*r/2,a6:1-r};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius},20521(e,t,n){n.r(t),n.d(t,{default:()=>Se});var i=n(5482),s=n(37838),r=n(69540),o=n(49186),a=n(25728),l=n(17676),u=n(36708),c=n(91429),p=n(89808),d=n(99959);const f=Symbol("isWCSGraphicOrigin");var h;class m extends d.A{get[(h=f,p.Q)](){return this.layer}constructor(e){super(),this[h]=!0,this.type="wcs",this.layer=e}get id(){return this.layer.id}}var g=n(4146),v=n(63074),y=n(69208),w=n(34287),x=n(8303),b=n(72545),C=n(54310),I=n(25036),S=n(82935),A=n(82806),M=n(53966),R=n(5443),T=n(38458),D=n(11254),L=n(330);function P(e){return e.endsWith("?")?e.slice(0,-1):e}function O(e){return e.filter(({coverageSubType:e})=>null==e||""===e||/^rectified(grid|dataset)/i.test(e))}function N(e){const t={};for(let n=0;n<e.childNodes.length;n++){const i=e.childNodes[n];if(1!==i.nodeType)continue;const s=(0,L.vv)(i).toLowerCase();switch(s){case"title":case"abstract":t[s]=(0,L.mX)(i);break;case"identifier":t.id=(0,L.mX)(i);break;case"wgs84boundingbox":{const e=(0,L.pN)(i,"LowerCorner"),n=(0,L.pN)(i,"UpperCorner");t.lonLatEnvelope=new R.A({xmin:e[0],ymin:e[1],xmax:n[0],ymax:n[1],spatialReference:{wkid:4326}})}break;case"coveragesummary":t.coverageSummaries=t.coverageSummaries||[],t.coverageSummaries.push(N(i))}}return t}function V(e,t){if(e.coverageSummaries)for(let n=0;n<e.coverageSummaries.length;n++)e.coverageSummaries[n].abstract=e.coverageSummaries[n].abstract||e.abstract,e.coverageSummaries[n].lonLatEnvelope=e.coverageSummaries[n].lonLatEnvelope||e.lonLatEnvelope,e.coverageSummaries[n].title=e.coverageSummaries[n].title||e.title,V(e.coverageSummaries[n],t);null!=e.id&&t.push(e)}function j(e){const t=(0,L.V6)(e.querySelector("Operation[name=GetCapabilities]"),"Get")?.getAttribute("xlink:href")||"",n=(0,L.V6)(e.querySelector("Operation[name=DescribeCoverage]"),"Get")?.getAttribute("xlink:href")||"",i=(0,L.V6)(e.querySelector("Operation[name=GetCoverage]"),"Get")?.getAttribute("xlink:href")||"";return{getCapabilities:P(t),describeCoverage:P(n),getCoverage:P(i)}}function $(e,t=null){let n=null;n="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e;let i=n.documentElement.getAttribute("version");"1.0"===i?i="1.0.0":"1.1"===i&&(i="1.1.0");const s=i||t||"1.0.0",r=s.slice(0,3);let a;if("2.0"===r)a=function(e){const t=(0,L.V6)(e,"ServiceIdentification"),n=(0,L.mX)(t,"Title"),i=(0,L.Dy)(t,"ServiceTypeVersion"),s=(0,L.Dy)(t,"Profile"),r=j((0,L.V6)(e,"OperationsMetadata")),o=(0,L.IC)(e,"Contents/CoverageSummary"),a=[];for(let e=0;e<o.length;e++){const t=o[e],n=(0,L.mX)(t,"CoverageId"),i=(0,L.V6)(t,"WGS84BoundingBox");let s;if(i){const e=(0,L.pN)(i,"LowerCorner"),t=(0,L.pN)(i,"UpperCorner");s=new R.A({xmin:e[0],ymin:e[1],xmax:t[0],ymax:t[1],spatialReference:{wkid:4326}})}const r=(0,L.mX)(t,"CoverageSubtype")||"RectifiedGridCoverage";a.push({id:n,lonLatEnvelope:s,coverageSubType:r})}const l=(0,L.V6)(e,"ServiceMetadata");return{name:n,supportedVersions:i,supportedFormats:(0,L.Dy)(l,"formatSupported"),supportedInterpolations:(0,L.Dy)(l,"interpolationSupported").concat((0,L.Dy)(l,"InterpolationSupported")),onlineResources:r,profiles:s,coverages:a,gridCoverages:O(a),version:"2.0.1"}}(n);else if("1.1"===r)a=function(e){const t=(0,L.mX)(e,"ServiceIdentification/Title"),n=(0,L.Dy)(e,"ServiceIdentification/ServiceTypeVersion"),i=j((0,L.V6)(e,"OperationsMetadata")),s=[],r=(0,L.V6)(e,"Contents");for(let e=0;e<r.childNodes.length;e++){const t=r.childNodes[e];1===t.nodeType&&(0,L.g7)(t,"CoverageSummary")&&V(N(t),s)}const o=(0,L.Dy)(r,"SupportedFormat");return{name:t,onlineResources:i,coverages:s,gridCoverages:O(s),supportedVersions:n,supportedFormats:o,version:"1.1.0"}}(n);else{if("1.0"!==r)throw new o.A("wcsraster:parsecapabilities","the capabilities version is not supported");a=function(e){const t=(0,L.mX)(e,"Service/name"),n=(0,L.V6)(e,"Capability"),i=(0,L.V6)(n,"GetCapabilities/Get/OnlineResource")?.getAttribute("xlink:href")??"",s=(0,L.V6)(n,"DescribeCoverage/Get/OnlineResource")?.getAttribute("xlink:href")??"",r=(0,L.V6)(n,"GetCoverage/Get/OnlineResource")?.getAttribute("xlink:href")??"",o={getCapabilities:P(i),describeCoverage:P(s),getCoverage:P(r)},a=(0,L.IC)(e,"CoverageOfferingBrief"),l=[];for(let e=0;e<a.length;e++){const t=a[e],n=(0,L.mX)(t,"name"),i=(0,L.IC)(t,"pos"),s=(0,L.pN)(i[0]),r=(0,L.pN)(i[1]),o=new R.A({xmin:s[0],ymin:s[1],xmax:r[0],ymax:r[1],spatialReference:{wkid:4326}});l.push({id:n,lonLatEnvelope:o})}return{name:t,onlineResources:o,coverages:l,gridCoverages:O(l),supportedVersions:["1.0.0"],version:"1.0.0"}}(n)}return a.version=s,a}var E=n(39829),k=n(4366),G=n(87186);function Z(e){e.variables.forEach(e=>e.dimensions.forEach(e=>e.values??=(0,k.Xg)(e)))}function F(e){return{requestResponseCRSs:(0,L.Dy)(e,"requestResponseCRSs").map(e=>e.split(":")[1]),nativeCRSs:(0,L.Dy)(e,"nativeCRSs").map(e=>e.split(":")[1])}}function _(e,t){const n=(0,L.Dy)(e,"1.0.0"===t?"interpolationMethod":"InterpolationMethod"),i="1.0.0"===t?e.getAttribute("default"):(0,L.mX)(e,"InterpolationMethods/Default");return null!=i?[i].concat(n.filter(e=>e.toLowerCase()!==i.toLowerCase())):n}function X(e){return null==e?["nearest"]:e.map(e=>{const t=e.toLowerCase();return t.includes("nearest")?"nearest":t.includes("linear")?"bilinear":t.includes("cubic")?"cubic":null}).filter(e=>!!e)}function z(e){const t=(0,L.IC)(e,"pos"),n=(0,L.pN)(t[0]),i=(0,L.pN)(t[1]);return new R.A({xmin:n[0],ymin:n[1],xmax:i[0],ymax:i[1],spatialReference:{wkid:4326}})}function W(e,t){const n=(0,L.Dy)(e,t);return n?.length&&""!==n[0]&&!isNaN(Number(n[0]))?n.map(e=>Number(e)):null}function B(e){const t=(0,L.pN)(e,"MinimumValue"),n=(0,L.pN)(e,"MaximumValue");return t.length&&n.length?t.map((e,t)=>({min:e,max:n[t],avg:-1,stddev:-1})):null}function q(e){return null==e?null:e.every(t=>t===e[0])?e[0]:e}function U(e){const t=[],n=(0,L.IC)(e,"RangeSet");let i=[];for(let e=0;e<n.length;e++){const s=(0,L.mX)(n[e],"name"),r=(0,L.mX)(n[e],"label"),o=[],a=W(n[e],"nullValues/singleValue"),l=(0,L.IC)(n[e],"AxisDescription");for(let e=0;e<l.length;e++){const t=(0,L.mX)(l[e],"name"),n=(0,L.mX)(l[e],"label"),s=(0,L.Dy)(l[e],"singleValue");if(0===s.length){const t=(0,L.mX)(l[e],"min"),n=(0,L.mX)(l[e],"max"),i=Number((0,L.mX)(l[e],"res"))||1;if(null!==t&&null!==n)for(let e=parseInt(t,10);e<=parseInt(n,10);e+=i)s.push(e.toString())}"band"===t.toLowerCase()&&(i=s),o.push({name:t,label:n,values:s})}t.push({name:s,label:r,nullValues:a,axis:o})}return{rangeSet:t,bandNames:i}}function H(e=null){if(!e)return{resolution:null,units:null};let t=e.toUpperCase();const n=["Years","Months","Days","Hours","Minutes","Seconds"];let i,s,r;return t.includes("PT")?(t=t.slice(2),r=["H","M","S"].findIndex(e=>t.includes(e)),i=n[3+r],s=parseFloat(t.slice(0,-1))):(t=t.slice(1),r=["Y","M","D"].findIndex(e=>t.includes(e)),r>-1&&(i=n[r]),s=parseFloat(t.slice(0,-1))),{resolution:s,units:i}}function K(e){const t=(0,L.IC)(e,"timeposition");if(t.length>0){const e=[];for(let n=0;n<t.length;n++)e.push(new Date((0,L.mX)(t[n])));return{begin:e[0],end:e[e.length-1],values:e}}const n=(0,L.V6)(e,"timePeriod")||(0,L.V6)(e,"TimePeriod");return n?{begin:new Date((0,L.mX)(n,"beginPosition")||(0,L.mX)(n,"BeginPosition")),end:new Date((0,L.mX)(n,"endPosition")||(0,L.mX)(n,"EndPosition")),...H((0,L.mX)(n,"timeResolution")||(0,L.mX)(n,"TimeResolution"))}:null}function J(e){const t=(0,L.V6)(e,"spatialDomain"),n=(0,L.V6)(t,"Envelope")||(0,L.V6)(t,"EnvelopeWithTimePeriod"),i=n.getAttribute("srsName").split(":"),s=i[i.length-1],r=(0,L.IC)(n,"pos"),o=(0,L.pN)(r[0]),a=(0,L.pN)(r[1]),l=parseInt(s,10),u=isNaN(l)?null:{wkid:l},c=new R.A({xmin:o[0],ymin:o[1],xmax:a[0],ymax:a[1],spatialReference:u}),p=(0,L.V6)(t,"RectifiedGrid"),d=(0,L.mX)(p,"low").split(" "),f=(0,L.mX)(p,"high").split(" "),h=parseInt(f[0],10)-parseInt(d[0],10)+1,m=parseInt(f[1],10)-parseInt(d[1],10)+1,g=(0,L.pN)(t,"origin/pos"),v=(0,L.IC)(t,"offsetVector"),y={envelope:c,columns:h,rows:m,offset:{x:parseFloat((0,L.mX)(v[0]).split(" ")[0]),y:parseFloat((0,L.mX)(v[1]).split(" ")[1])},origin:{x:g[0],y:g[1]}},w=(0,L.V6)(e,"temporalDomain")||(0,L.V6)(e,"TemporalDomain");return{spatialDomain:y,temporalDomain:w?K(w):null}}function Y(e,t){const n=[],i=(0,L.IC)(e,"Field");let s,r=[];for(let e=0;e<i.length;e++){const o=(0,L.mX)(i[e],"Identifier"),a=(0,L.mX)(i[e],"Description"),l=(0,L.mX)(i[e],"Definition"),u=(0,L.mX)(i[e],"Abstract"),c=(0,L.mX)(i[e],"Title"),p=W(i[e],"NullValue"),d=(0,L.V6)(i[e],"AllowedValues"),f=d?B(d):null,h=_(i[e],"1.1.0"),m=[],g=(0,L.IC)(i[e],"Axis");for(let e=0;e<g.length;e++){const n=g[e].getAttribute("identifier"),i=(0,L.mX)(g[e],"UOM"),o=(0,L.mX)(g[e],"DataType"),a=(0,L.Dy)(g[e],"Key");t&&!n.toLowerCase().includes("band")||(r=a,s=p),m.push({identifier:n,uom:i,dataType:o,values:a,bandNoDataValues:s})}n.push({identifier:o,description:a,definition:l,abstract:u,title:c,supportedInterpolations:h,axis:m,nullValues:p,statistics:f})}return{rangeSet:n,bandNames:r,bandNoDataValues:s,statistics:n[0].statistics}}function Q(e){const t=(0,L.V6)(e,"SpatialDomain"),n=(0,L.V6)(t,"GridCRS"),i=(0,L.mX)(n,"GridBaseCRS"),s=(0,L.mX)(n,"GridOrigin"),r=s?.split(" ").map(e=>parseFloat(e))??[0,0],o=(0,L.pN)(n,"GridOffsets"),a=(0,L.IC)(t,"BoundingBox");let l,u,c,p;for(let e=0;e<a.length;e++){const t=a[e].getAttribute("crs")?.toLowerCase();if(null!=t)if(t.includes("imagecrs")){const t=(0,L.pN)(a[e],"LowerCorner"),n=(0,L.pN)(a[e],"UpperCorner");l=n[0]-t[0]+1,u=n[1]-t[1]+1}else if(t.indexOf("epsg")>0){const n=t.split(":");c=parseInt(n[n.length-1],10);const i=(0,L.pN)(a[e],"LowerCorner"),s=(0,L.pN)(a[e],"UpperCorner");p=new R.A({xmin:i[0],ymin:i[1],xmax:s[0],ymax:s[1],spatialReference:{wkid:c}})}}const d=l>u,f=p.xmax-p.xmin>p.ymax-p.ymin;let h=!1;(0,T.m)(c)&&(d===f?h=!1:(h=!0,p=new R.A({xmin:p.ymin,ymin:p.xmin,xmax:p.ymax,ymax:p.xmax,spatialReference:{wkid:c}})));const m={columns:l,rows:u,origin:{x:r[0],y:r[1]},offset:{x:o[0],y:o[o.length-1]},gridBaseCRS:i,envelope:p,useEPSGAxis:h},g=(0,L.V6)(e,"temporalDomain")||(0,L.V6)(e,"TemporalDomain");return{spatialDomain:m,temporalDomain:g?K(g):null}}function ee(e){const t=(0,L.V6)(e,"Envelope")||(0,L.V6)(e,"EnvelopeWithTimePeriod"),n=t.getAttribute("srsName"),i=n.slice(n.lastIndexOf("/")+1),s=t.getAttribute("axisLabels").split(" ").map(e=>e.trim()).filter(e=>""!==e.trim()),r=(0,L.pN)(t,"lowerCorner"),o=(0,L.pN)(t,"upperCorner"),a=!["y","lat","latitude","north","nor","n","b"].includes(s[0].toLowerCase());let l;const u=parseInt(i,10),c=isNaN(u)?null:{wkid:u};l=new R.A(a?{xmin:r[0],ymin:r[1],xmax:o[0],ymax:o[1],spatialReference:c}:{xmin:r[1],ymin:r[0],xmax:o[1],ymax:o[0],spatialReference:c});const p={mins:r,maxs:o},d=t.getAttribute("uomLabels").trim().split(" ");let f,h;if((0,L.g7)(t,"EnvelopeWithTimePeriod")){f=new Date((0,L.mX)(e,"beginPosition")||(0,L.mX)(e,"BeginPosition")),h=new Date((0,L.mX)(e,"endPosition")||(0,L.mX)(e,"EndPosition"));const t=d?.findIndex(e=>"oledatetime"===e?.toLowerCase());t>-1&&(d[t]="ISO8601")}return{envelope:l,axisLabels:s,uomLabels:d.length?d:null,envelopeAllDims:p,beginPosition:f,endPosition:h,isEastFirst:a}}function te(e,t){const n=[],i=(0,L.IC)(e,"DataRecord"),s=[];let r,o=[];for(let e=0;e<i.length;e++){const a=(0,L.IC)(i[e],"field"),l=[];for(let e=0;e<a.length;e++){const n=a[e].getAttribute("name"),i=(0,L.mX)(a[e],"description")||"",u=(0,L.V6)(a[e],"uom")?.getAttribute("code")||"",c=(0,L.pN)(a[e],"interval"),p=W(a[e],"nilValue")?.[0];t&&!n.toLowerCase().includes("band")||(s.push(n),c?.length&&(r=r||[],r.push({min:c[0],max:c[1],avg:-1,stddev:-1})),o.push(p)),l.push({name:n,description:i,uom:u,allowedValues:c,nilValue:p})}n.push(l)}return o.some(e=>null!=e)||(o=null),{rangeType:n,bandNames:s,bandStats:r,bandNoDataValues:o}}function ne(e){let t=1,n="";const i=.01;return Math.abs(e-1/24)<1/24*i?n="Hours":Math.abs(e-1)<1*i?n="Days":e<1?(t=Math.round(24*e),n="Hours"):e>28-i&&e<31+i||Math.round(e/30)<12?n="Months":e>365-i&&e<366+i&&(n="Years"),{interval:t,intervalUnit:n}}function ie(e,t){const n=(0,L.V6)(e,"RectifiedGrid"),i=(0,L.pN)(n,"low"),s=(0,L.pN)(n,"high"),r=[];for(let e=0;e<i.length;e++)r.push(s[e]-i[e]+1);const o=(0,L.mX)(n,"axisLabels").split(" "),a=(0,L.pN)(n,"origin/pos"),l=(0,L.IC)(n,"offsetVector"),u=[];for(let e=0;e<l.length;e++){const t=(0,L.pN)(l[e]),n=t.findIndex(e=>0!==e);u[n]=t[n]}let c,p,d,f=!1;return t?.length&&o?.length&&(f=[...t].sort((e,t)=>e<t?-1:1).join(",")===[...o].sort((e,t)=>e<t?-1:1).join(",")),["y","lat","latitude","north","nor","n","b"].includes((f?o:t)[0].toLowerCase())?(c=r[1],p=r[0],d={y:Math.abs(u[0]),x:Math.abs(u[1])}):(c=r[0],p=r[1],d={x:Math.abs(u[0]),y:Math.abs(u[1])}),{columns:c,rows:p,origin:a,offset:u,resolution:d,gridSamples:r,axisLabels:o,hasSameAxisLabelsAsBoundedBy:f}}function se(e){const t=(0,L.V6)(e,"EarthObservation");if(!t)return null;const n=(0,L.V6)(t,"phenomenonTime"),i=n?K(n):null,s=(0,L.V6)(t,"phenomenonTime"),r=s?K(s):null,o=(0,L.mX)(t,"featureOfInterest/Footprint/multiExtentOf/MultiSurface/surfaceMembers/Polygon/exterior/LinearRing/posList");let a=null;if(o){const e=o.split(" ").map(e=>e.trim()).filter(e=>null!=e&&""!==e).map(Number);if(e.length){const t=[];for(let n=0;n<e.length/2;n+=2)t.push(e[n],e[n+1]);a=new E.A({rings:[[t]]})}}return{observation:{phenomenonTime:i,resultTime:r,footprint:a,identifier:(0,L.mX)(e,"metaDataProperty/EarthObservationMetaData/identifier"),acquisitionType:(0,L.mX)(e,"metaDataProperty/EarthObservationMetaData/acquisitionType"),status:(0,L.mX)(e,"metaDataProperty/EarthObservationMetaData/status")}}}async function re(e,t){const{coverageIds:n,version:i,customParameters:s,signal:r}=t,a=i.slice(0,3),u="1.0"===a?"coverage":"1.1"===a?"identifiers":"coverageId",c={service:"WCS",request:"DescribeCoverage",version:i,[u]:n.join(","),...s};try{const{data:t}=await(0,D.A)(e,{query:c,responseType:"xml",signal:r});return function(e,t){let n=null;if(n="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e,"1.0.0"===t)return(0,L.IC)(n,"CoverageOffering").map(e=>function(e){const t={version:"1.0"};let n,i=[];for(let s=0;s<e.childNodes.length;s++){const r=e.childNodes[s];if(1===r.nodeType)if((0,L.g7)(r,"description"))t.description=(0,L.mX)(r);else if((0,L.g7)(r,"name"))t.name=(0,L.mX)(r);else if((0,L.g7)(r,"label"))t.label=(0,L.mX)(r);else if((0,L.g7)(r,"supportedFormats"))t.supportedFormats=(0,L.Dy)(r,"formats");else if((0,L.g7)(r,"supportedCRSs"))t.supportedCRSs=F(r);else if((0,L.g7)(r,"supportedInterpolations"))t.supportedInterpolations=_(r,"1.0.0");else if((0,L.g7)(r,"lonLatEnvelope"))t.lonLatEnvelope=z(r);else if((0,L.g7)(r,"rangeSet")){const e=U(r);t.rangeSet=e.rangeSet,i=e.bandNames;const s=e.rangeSet[0].nullValues;s?.length&&(n=q(s))}else(0,L.g7)(r,"domainSet")&&(t.domainSet=J(r))}const s=X(t.supportedInterpolations),{name:r,description:o,label:a,lonLatEnvelope:l,supportedFormats:u}=t,{spatialDomain:c}=t.domainSet,p={x:Math.abs(c.offset.x),y:Math.abs(c.offset.y)},d=function(e){if(!e.temporalDomain)return null;const{begin:t,end:n,values:i,units:s,resolution:r}=e.temporalDomain,o={variables:[{name:"default",description:"",dimensions:[{name:"StdTime",description:"",unit:"ISO8601",values:i?.map(e=>e.getTime()),hasRegularIntervals:!i,interval:r,intervalUnit:s,extent:[t.getTime(),n.getTime()]}]}]};return Z(o),o}(t.domainSet),f=new G.A({width:c.columns,height:c.rows,pixelSize:p,pixelType:"unknown",extent:c.envelope,spatialReference:c.envelope.spatialReference,bandCount:i.length||1,noDataValue:n,multidimensionalInfo:d});return{id:r,title:t.name,description:o||a,lonLatEnvelope:l,rasterInfo:f,bandNames:i,supportedFormats:u,supportedInterpolations:s,coverageDescription:t,version:"1.0.0",useEPSGAxis:!1}}(e));const i=(0,L.IC)(n,"CoverageDescription");return"1.1.0"===t||"1.1.1"===t||"1.1.2"===t?i.map(e=>function(e,t){const n=[],i=[],s={supportedFormats:n,supportedCRSs:i,version:"1.1"};let r,o,a=[];for(let t=0;t<e.childNodes.length;t++){const l=e.childNodes[t];if(1!==l.nodeType)continue;const u=(0,L.vv)(l).toLowerCase();switch(u){case"title":case"abstract":case"identifier":s[u]=(0,L.mX)(l);break;case"supportedformat":{const e=(0,L.mX)(l);n.includes(e)||n.push(e)}break;case"supportedcrs":{const e=(0,L.mX)(l);i.includes(e)||i.push(e)}break;case"range":{const e=Y(l,!!s.domain?.temporalDomain);s.range=e.rangeSet,a=e.bandNames;const{bandNoDataValues:t}=e;t?.length&&(r=q(t)),o=e.statistics}break;case"domain":s.domain=Q(l)}}const l=X(s.range[0].supportedInterpolations),{identifier:u,abstract:c,title:p,domain:d,range:f}=s,h={x:Math.abs(d.spatialDomain.offset.x),y:Math.abs(d.spatialDomain.offset.y)},m=function(e,t){if(!t.temporalDomain)return null;const n=e.filter(e=>!e.identifier.toLowerCase().includes("field_1")&&!e.axis.some(e=>e.identifier.includes("band"))),i=[];if(n.length&&n.forEach(e=>{const t=e.axis.map(e=>{const t=e.values.map(t=>"ISO8601"===e.uom?(t=t.trim()).toLowerCase().includes("z")?new Date(t).getTime():new Date(t+"Z").getTime():parseFloat(t.trim())),n=[Math.min.apply(null,t),Math.max.apply(null,t)];return{name:e.identifier.trim(),description:"",field:e.identifier.trim(),unit:e.uom?e.uom.trim():"",hasRegularIntervals:!1,values:t,extent:n}});i.push({name:e.identifier.trim(),description:e.description?.trim()??"",unit:"",dimensions:t,statistics:e.statistics})}),t.temporalDomain){const{begin:e,end:n,values:s,units:r,resolution:o}=t.temporalDomain;i.some(e=>e.dimensions.some(e=>"stdtime"===e.name.toLowerCase()))||i.forEach(t=>{t.dimensions.push({name:"StdTime",description:"",unit:"ISO8601",values:s?.map(e=>e.getTime()),hasRegularIntervals:!s,interval:o,intervalUnit:r,extent:[e.getTime(),n.getTime()]})})}if(i.length){const e={variables:i};return Z(e),e}return null}(f,d);m&&(r=f[0].nullValues,1===r?.length&&(r=r[0]));const g=new G.A({width:d.spatialDomain.columns,height:d.spatialDomain.rows,pixelSize:h,pixelType:"unknown",extent:d.spatialDomain.envelope,spatialReference:d.spatialDomain.envelope.spatialReference,bandCount:a.length||1,noDataValue:r,statistics:o,multidimensionalInfo:m});return{id:u,title:s.title,description:c||p,bandNames:a,rasterInfo:g,supportedFormats:n,supportedInterpolations:l,coverageDescription:s,version:t,useEPSGAxis:d.spatialDomain.useEPSGAxis}}(e,t)):i.map(e=>function(e){const t={version:"2.0"};let n,i,s=[];for(let r=0;r<e.childNodes.length;r++){const o=e.childNodes[r];if(1===o.nodeType)if((0,L.g7)(o,"coverageId"))t.coverageId=(0,L.mX)(o);else if((0,L.g7)(o,"ServiceParameters"))t.serviceParameters={supportedFormats:(0,L.Dy)(o,"nativeFormat")};else if((0,L.g7)(o,"boundedBy"))t.boundedBy=ee(o);else if((0,L.g7)(o,"rangeType")){const e=te(o,t.boundedBy?.axisLabels.length>2||t.domainSet?.axisLabels.length>2);t.rangeType=e.rangeType,s=e.bandNames,n=e.bandStats;const{bandNoDataValues:r}=e;r?.length&&(i=q(r))}else if((0,L.g7)(o,"domainSet"))t.domainSet=ie(o,t.boundedBy?.axisLabels);else if((0,L.g7)(o,"metadata")){const e=(0,L.V6)(o,"EOMetadata");t.eoMetadata=e?se(e):null}}const{coverageId:r,boundedBy:o,domainSet:a,rangeType:l,serviceParameters:u}=t,c=function(e,t,n){if(n.axisLabels.length<=2)return null;const i=[];for(let t=0;t<e.length;t++){const n=e[t];for(let e=0;e<n.length;e++)n[e].name.toLowerCase().includes("band")||i.push(n[e])}const s=[];if(i.length){const e=[];for(let i=2;i<n.axisLabels.length;i++){const s=t.uomLabels?.[i]?.trim()??"",r=n.axisLabels[i].toLowerCase().includes("time")||"iso8601"===s.toLowerCase()||"oledatetime"===s.toLowerCase();let o,a;if(r){const e=ne(n.offset[i]);o=e.interval,a=e.intervalUnit}else o=n.offset[i],a=s;const l=[];r?(l.push((0,k.$E)(t.envelopeAllDims.mins[i])),l.push((0,k.$E)(t.envelopeAllDims.maxs[i]))):(l.push(t.envelopeAllDims.mins[i]),l.push(t.envelopeAllDims.maxs[i])),e.push({name:n.axisLabels[i].trim(),description:n.axisLabels[i].trim(),unit:r?"ISO8601":s,hasRegularIntervals:!0,extent:l,interval:o,intervalUnit:a})}if(i.forEach(t=>{const{allowedValues:n}=t,i=2===n?.length?[{min:n[0],max:n[1],avg:-1,stddev:-1}]:null;s.push({name:t.name.trim(),description:t.description?.trim()??"",unit:t.uom.trim(),statistics:i,dimensions:[...e]})}),s.length){const e={variables:s};return Z(e),e}}return null}(l,o,a);return!n&&c&&(n=c?.variables[0].statistics),null!=c&&(i=l[0][0].nilValue),{id:r,title:r,description:r,bandNames:s,rasterInfo:new G.A({width:a.columns,height:a.rows,pixelSize:a.resolution,pixelType:"unknown",extent:o.envelope,spatialReference:o.envelope.spatialReference,bandCount:s.length||1,statistics:n,noDataValue:i,multidimensionalInfo:c}),supportedFormats:u.supportedFormats,coverageDescription:t,version:"2.0.1",useEPSGAxis:!1}}(e))}(t,i)}catch(e){if(!(0,l.zf)(e))throw new o.A("wcslayer:open","wcs coverage description is not valid or supported");throw e}}var oe=n(49859);function ae(e,t,n=0){const i="--"+t.boundary,s=[];for(let e=0;e<i.length;e++)s.push(i.charCodeAt(e));const r=[],o="\n--"+t.boundary+"--";for(let e=0;e<o.length;e++)r.push(o.charCodeAt(e));const a=[10],l=[13,10],u=[],c=s.length,p=new Uint8Array(e,n),d=p.length-c;let f=0,h=0;for(let e=0;e<d;e++){for(h=0;h<c&&p[e+h]===s[h];h++);if(h!==c)continue;let n=!1;if(f){const i=le(p.subarray(f,e),t);u.push(i),n=!!i.isValidImage}if(e+=c-1,p[e+1]===a[0]?e+=1:p[e+1]===l[0]&&p[e+2]===l[1]&&(e+=2),f=e+1,n)break}const m=r.length;for(let e=p.length-m-10;e<p.length-m;e++){for(h=0;h<m&&p[e+h]===r[h];h++);if(h===m){u.push(le(p.subarray(f,e),t));break}}return u}function le(e,t){const n=String.fromCharCode.apply(null,e.subarray(0,Math.min(300,e.length))).split("\n"),i=Math.min(n.length,7),s={contentDisposition:"inline"};let r=0;for(let o=0;o<i;o++)if(n[o].length<4)r=r+n[o].length+1;else if("content"===n[o].slice(0,7).toLowerCase()){r=r+n[o].length+1;const e=n[o].indexOf(":");if(-1===e)continue;const t=n[o].slice(0,e).trim(),i=n[o].slice(e+1).trim();switch(t.toLowerCase()){case"content-type":s.contentType=i;break;case"content-description":s.contentDescription=i;break;case"content-transfer-encoding":s.contentTransferEncoding=i;break;case"content-id":s.contentID=i;break;case"content-disposition":s.contentDisposition=i;break;case"content-location":s.contentLocation=i}}else{if(s.contentDisposition.toLowerCase().includes("inline")&&n[o].length>=4&&s.contentType?.toLowerCase().includes("image")){let t=!0,n=e.subarray(r,e.length);if(s.contentType.toLowerCase().indexOf("tif")>0){if("base64"===s.contentTransferEncoding){let e="";const t=n;for(let n=0;n<t.length;n+=65535){const i=t.subarray(n,n+65535>t.length-1?t.length-1:n+65535);e+=String.fromCharCode.apply(null,i)}const i=atob(e);n=new Uint8Array(i.length);for(let e=0;e<n.length;e++)n[e]=i.charCodeAt(e)}t=73===n[0]&&73===n[1]||77===n[0]&&77===n[1]}if(t){let t=n.buffer;"base64"!==s.contentTransferEncoding&&(t=new ArrayBuffer(e.length-r),n=new Uint8Array(t),n.set(e.subarray(r,e.length))),s.contentData=t,s.isValidImage=!0}break}if((""===t.start||s.contentID===t.start)&&s.contentType){if(s.contentType.includes("text")||s.contentType.includes("xml")){s.contentData=String.fromCharCode.apply(null,e.subarray(r,e.length));break}s.contentData=e.subarray(r,e.length)}}return s}var ue=n(20758),ce=n(47520),pe=n(45617);const de=["nearest neighbor","bilinear","bicubic"],fe=["nearest","linear","cubic"],he="response is not a supported multipart/related mediaType with inline tiff, switching to compatibility mode",me=new Set(["1.0.0","1.1.0","1.1.1","1.1.2","2.0.1"]);let ge=class extends oe.A{constructor(){super(...arguments),this.datasetFormat="WCSServer",this.tileType="Raster"}get rasterId(){return`${this.url}-${this.coverageId}-${this.version}`}async fetchRawTile(e,t,n,i={}){if(this.isBlockOutside(e,t,n))return null;const{nativePixelSize:s,spatialReference:r}=this.rasterInfo,a=2**e,l=s.x*a,u=s.y*a,{blockWidth:c,blockHeight:p}=this.getBlockWidthHeight(e),{origin:d}=this.rasterInfo.storageInfo.tileInfo,f=this.getTileExtent({x:l,y:u},t,n,d,r,[c,p]),h=this.rasterInfo.extent,m=f.xmax>h.xmax,g=f.ymin<h.ymin,v=m||g;let y=f,w=c,x=p;if(v&&(y=f.clone().intersection(h),null!=y&&(m&&(w=Math.floor((y.xmax-y.xmin)/l),y.xmax=y.xmin+l*w),g&&(x=Math.floor((y.ymax-y.ymin)/u),y.ymin=y.ymax-u*x))),null==y||w<=1||x<=1)return null;const b=await this._getCoverage(y,w,x,a,i);if(!b)return null;const{coverageDescription:C}=this.coverageInfo,{noDataValue:I,multidimensionalInfo:S}=this.rasterInfo,{multidimensionalDefinition:A}=i;let M;if(null!=S&&null!=A&&A.length){const e=A[0].variableName;if("2.0"===C.version){const t=C.rangeType[0].find(t=>t.name===e);M=t?.nilValue}else if("1.1"===C.version){const t=C.range.find(t=>t.identifier===e);M=t?.nullValues}}const R=M??I,T=await this.decodePixelBlock(b,{width:w,height:x,planes:null,pixelType:null,tiffNoDataValue:Array.isArray(R)?R[0]:R,matchAllNoData:!0});if(null==T)return null;if(T&&(T.width!==w||T.height!==x))throw new o.A("wcsraster-fetch",`the response has unexpected dimension width: ${T.width}, height: {pixelBlock.height}`);return v?(0,ce.$Q)(T,{x:0,y:0},{width:p,height:p}):T}async _open(e){const{customFetchParameters:t}=this.ioConfig,n=e?.signal,i=await async function(e,t){const{version:n,customParameters:i,signal:s}=t??{},r=n?.startsWith("1.0")?"version":"acceptVersions",a={service:"WCS",request:"GetCapabilities",[r]:n,...i};try{let{data:n}=await(0,D.A)(e,{query:a,responseType:"xml",signal:s});return t?.version||function(e){let t=null;t="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e;const n=t.documentElement.getAttribute("version"),i=n?.slice(0,3);return null!=i&&i<"2.1"}(n)||(a[r]="2.0.1",({data:n}=await(0,D.A)(e,{query:a,responseType:"xml",signal:s}))),$(n)}catch(e){if(!(0,l.zf)(e))throw new o.A("wcslayer:open","wcs capabilities is not valid or supported");throw e}}(this.url,{version:t?.version??this.version,customParameters:t,signal:n});if(this.capabilities=i,!this.version){let e=i.version.slice(0,3);"2.0"===e||"1.1"===e||"1.0"===e?this.version=i.version:(e=i.supportedVersions.find(e=>"2.0.1"===e)||i.supportedVersions.find(e=>e.startsWith("2.0"))||i.supportedVersions.find(e=>e.startsWith("1.1"))||i.supportedVersions.find(e=>e.startsWith("1.0"))||"1.0.0",this.version=e)}const{version:s}=this;if(!me.has(s))throw new o.A("wcsraster-open",`unsupported WCS version ${s}`);const{gridCoverages:r}=i;if(!r.length)throw new o.A("wcsraster-open","cannot find rectified grid coverages");this.coverageId??=r[0].id;const{coverageId:a}=this,u=r.find(e=>e.id===a);if(null==u)throw new o.A("wcsraster-open",`the coverageId ${a} does not exist in capabilities`);const c=await re(this.url,{coverageIds:[a],version:s,customParameters:t,signal:n});if(this.coverageInfo=c[0],s.startsWith("2.0")){const{coverageInfo:e}=this;e.lonLatEnvelope=u.lonLatEnvelope,e.supportedInterpolations=X(i.supportedInterpolations),this._patchDimensionValues201(a,n)}this.datasetName=this.coverageInfo.title;const{rasterInfo:p}=this.coverageInfo;if(this.createRemoteDatasetStorageInfo(p,512,512),this._set("rasterInfo",p),null==p.spatialReference)throw new o.A("wcsraster-open",`coverage without spatial reference is not supported: ${a}`);const{pixelType:d,bandCount:f}=await this._getPixelTypeAndBandCount(n);p.pixelType=d,1===p.bandCount&&f>1&&(p.bandCount=f),this.updateTileInfo()}async _patchDimensionValues201(e,t){const{coverageInfo:n}=this,i=n.rasterInfo.multidimensionalInfo?.variables,s=me.has("1.1.2")?"1.1.2":me.has("1.1.1")?"1.1.1":me.has("1.1.0")?"1.1.0":null,{customFetchParameters:r}=this.ioConfig;if(i&&s)try{const n=this.url.includes("/ImageServer/"),o=e.length>8&&e.startsWith("Coverage")&&n?e.slice(8):e,a=await re(this.url,{coverageIds:[o??e],version:s,customParameters:r,signal:t}).catch(()=>{if(o)return re(this.url,{coverageIds:[e],version:s,customParameters:r,signal:t})}),l=a?.[0].rasterInfo.multidimensionalInfo?.variables;if(l)for(const e of i){const t=l.find(({name:t})=>t===e.name);if(t?.dimensions?.length)for(let i=e.dimensions.length-1;i>=0;i--){const s=e.dimensions[i],r=t.dimensions.find(({name:e})=>e===s.name);r?r.values&&r.extent?.join(",")===s.extent?.join(",")&&(e.dimensions[i]={...s,values:r.values}):n&&e.dimensions.splice(i,1)}}}catch{}}async _getPixelTypeAndBandCount(e){const{pixelSize:t,extent:n,multidimensionalInfo:i}=this.rasterInfo,s=n.center,r=new R.A({xmin:s.x-t.x,xmax:s.x+t.x,ymin:s.y-t.y,ymax:s.y+t.y,spatialReference:n.spatialReference});let a=[];if(null!=i){const e=i.variables[0];a=[],e.dimensions.forEach(t=>{a.push(new pe.A({variableName:e.name,dimensionName:t.name,values:t.hasRegularIntervals?t.extent?.[0]:t.values?.[0],isSlice:!0}))})}const{coverageDescription:l}=this.coverageInfo,u={interpolation:"nearest",multidimensionalDefinition:a,signal:e},{version:c}=l,{ioConfig:p}=this,d="2.0"===c&&null==p.allowAnyMediaType||"1.1"===c&&null==p.use2GridOffsets;let f;try{f=await this._getCoverage(r,2,2,1,u,!0)}catch(e){if(!d)throw e;if("1.1"===c){if(!e.details?.isResolutionMismatch)throw e;p.use2GridOffsets=!0}}if(!f&&d&&("2.0"===c&&(p.allowAnyMediaType=!0),f=await this._getCoverage(r,2,2,1,u),f&&M.A.getLogger(this).warn("wcsraster:getcoverage",he)),!f)throw new o.A("wcsraster-open","unable to determine pixel type");const h=await this.decodePixelBlock(f,{width:2,height:2,planes:null,pixelType:null});if(null==h)throw new o.A("wcsraster-open","unable to determine pixel type");return{pixelType:h.pixelType,bandCount:h.getPlaneCount()??0}}async _getCoverage(e,t,n,i,s,r=!1){const{coverageDescription:a}=this.coverageInfo,{version:l}=a,u="2.0"===l?this._getCoverage201Parameters(e,t,n,i,s,a):"1.1"===l?this._getCoverage110Parameters(e,t,n,s,a):this._getCoverage100Parameters(e,t,n,s),c="2.0"===l?await this.request(this._constructWCS201Url(u),{signal:s.signal,responseType:"array-buffer"}):await this.request(this.url,{query:u,signal:s.signal,responseType:"array-buffer"});if("1.0"===l)return c.data;if("2.0"===l&&!1!==this.ioConfig.allowAnyMediaType&&"tiff"===(0,ue.g)(c.data))return r&&(this.ioConfig.allowAnyMediaType=!0,M.A.getLogger(this).warn("wcsraster:getcoverage",he)),c.data;const p=function(e){const t=function(e){const t=e.getHeader?.("Content-Type")?.split(";");if(!t)return null;if(!(t[0].trim()??"").startsWith("multipart/"))return null;const n={boundary:"",start:"",type:""};for(let e=1;e<t.length;e++){const i=t[e].indexOf("=");if(i>0){const s=t[e].slice(0,i).trim(),r=t[e].slice(i+1).trim();n[s]=r.startsWith('"')?r.slice(1,-1):r}}return n}(e);return t?{isMultipart:!0,data:t.boundary?ae(e.data,t,0):null}:{isMultipart:!1,data:null}}(c);if(p.isMultipart&&p.data){const e=p.data.find(e=>e.isValidImage);return r&&"base64"===e?.contentTransferEncoding&&M.A.getLogger(this).warn("wcsraster:getcoverage","response is base64 encoded which may impact layer display performance"),e?.contentData}const d=new Uint8Array(c.data,0,Math.min(c.data.byteLength,2e3)),f=String.fromCharCode.apply(null,d).toLowerCase().includes("exception"),h=f&&String.fromCharCode.apply(null,d).includes("A non-zero RESX/RESY or WIDTH/HEIGHT is required but neither was provided");if(f)throw new o.A("wcsraster:getcoverage","server returns an exception",{isResolutionMismatch:h});throw new o.A("wcsraster:getcoverage","response is not a supported multipart mediaType with inline tiff")}_getInterpolationIndex(e){return e&&this.coverageInfo.supportedInterpolations?.includes(e)?"nearest"===e?0:"bilinear"===e?1:"cubic"===e?2:0:0}_getCoverage100Parameters(e,t,n,i){const s=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`,r=e.spatialReference.wkid,o=(this.coverageInfo.supportedFormats||[]).find(e=>e.toLowerCase().includes("tiff"))||"GEOTIFF",{bandIds:a,interpolation:l}=i,u=this._getInterpolationIndex(l),c=a?a.map(e=>this.coverageInfo.bandNames[e]):null,p=de[u],{multidimensionalDefinition:d}=i;let f;if(null!=d&&null!=this.rasterInfo.multidimensionalInfo){const e=d.find(e=>"StdTime"===e.dimensionName);let t=e?.values;t&&t.length>0&&(Array.isArray(t[0])&&(t=t[0]),f=t.map(e=>ve(e)).join(","))}return{service:"WCS",request:"GetCoverage",version:this.version,coverage:this.coverageId,format:o,crs:`EPSG:${r}`,bbox:s,width:t,height:n,time:f,interpolation:p,band:c?.join(",")}}_getCoverage110Parameters(e,t,n,i,s){const{multidimensionalDefinition:r,bandIds:o,interpolation:a}=i,l=e.spatialReference.wkid,u=`urn:ogc:def:crs:EPSG::${l}`,c=(this.coverageInfo.supportedFormats||[]).find(e=>e.toLowerCase().includes("tiff"))||"image/tiff",p=this._getInterpolationIndex(a),d=fe[p],f=null==a||0===this.coverageInfo.supportedInterpolations?.indexOf(a),h=s.domain.spatialDomain,m=h.origin.x<=h.envelope.xmin&&h.origin.y<=h.envelope.ymin,g=e.width/t,v=e.height/n*(m?1:-1),y=m?[e.xmin,e.ymin]:[e.xmin,e.ymax],w=h.useEPSGAxis&&(0,T.m)(l),x=w?`${y[1]},${y[0]}`:`${y[0]},${y[1]}`,b=this.ioConfig.use2GridOffsets,C=w?b?`${v},${g}`:`${v},0,0,${g}`:b?`${g},${v}`:`${g},0,0,${v}`,I=g/2,S=e.xmin+I,A=e.xmax-I,M=Math.abs(v)/2,R=e.ymin+M,D=e.ymax-M,L=w?`${R},${S},${D},${A},${u}`:`${S},${R},${A},${D},${u}`,P=s.range.find(e=>e.axis.some(e=>e.identifier.toLowerCase().includes("band")));let O,N=P&&d&&o?f?`${P.identifier}[${P.axis[0].identifier}[${o.join(",")}]]`:`${P.identifier}:${d}[${P.axis[0].identifier}[${o.join(",")}]]`:null;if(null!=r&&r.length)for(let e=0;e<r.length;e++){let t=r[e].values;const n=r[e].dimensionName?.toLowerCase(),i=r[e].variableName?.toLowerCase(),o=s.range.find(e=>e.identifier.toLowerCase()===i);if(t.length>0)if(Array.isArray(t[0])&&(t=t[0]),"stdtime"===n)O=t.map(e=>ve(e)).join(",");else if(o){const e=o.axis.find(e=>e.identifier.toLowerCase()===n);e&&(N=f?o.identifier+"["+e.identifier+"["+t.join(",")+"]]":o.identifier+":"+d+"["+e.identifier+"["+t.join(",")+"]]")}e===r.length-1&&o&&!N&&(N=f?o.identifier:o.identifier+":"+d)}return{service:"WCS",request:"GetCoverage",version:this.version,identifier:this.coverageId,format:c,crs:`EPSG:${l}`,boundingbox:L,gridCS:"urn:ogc:def:cs:OGC:0.0:Grid2dSquareCS",gridType:"urn:ogc:def:method:WCS:1.1:2dGridIn2dCrs",gridOrigin:x,gridOffsets:C,gridBaseCRS:u,timeSequence:O,rangeSubset:N}}_getCoverage201Parameters(e,t,n,i,s,r){const{multidimensionalDefinition:o,interpolation:a}=s,l=this._getInterpolationIndex(a);let u=null;const{supportedInterpolations:c}=this.capabilities;if(c?.length)switch(l){case 0:u=c.find(e=>e.toLowerCase().includes("nearest"));break;case 1:u=c.find(e=>e.toLowerCase().includes("linear"));break;case 2:u=c.find(e=>e.toLowerCase().includes("cubic")||e.toLowerCase().includes("quadratic"))}const p=(this.coverageInfo.supportedFormats||[]).find(e=>e.toLowerCase().includes("tiff"))||"image/tiff",{bandNames:d}=this.coverageInfo,{boundedBy:f,domainSet:h,rangeType:m}=r,g=f.isEastFirst?0:1,v=1-g,{axisLabels:y}=f,w=y[g],x=y[v],b=`http://www.opengis.net/def/crs/EPSG/0/${e.spatialReference.wkid}`,C=b,I=[];I.push(`${w}(${e.xmin},${e.xmax})`),I.push(`${x}(${e.ymin},${e.ymax})`);const S=[];if(y.length>2)for(let e=2;e<y.length;e++){const t=h.origin[e];if(y[e].toLowerCase().includes("time")){let n=t.toString();f.uomLabels?.[e].toLowerCase().includes("ole")&&(S.push(y[e]),n=ve(t,!0)),I.push(y[e]+",http://www.opengis.net("+n+")")}else I.push(y[e]+",http://www.opengis.net("+t+")")}let A=null;if(null!=o&&o.length){const e=[];m.forEach(t=>t.forEach(t=>e.push(t.name)));const t=[];for(let n=0;n<o.length;n++){const i=y.find(e=>e===o[n].dimensionName),s=e.find(e=>e===o[n].variableName);if(t.includes(s)||t.push(s),i){let e=o[n].values;if(e.length>0){Array.isArray(e[0])&&(e=e[0]);let t="";t=i.toLowerCase().includes("time")?e.map(e=>ve(e)).join(","):e.join(",");const n=I.findIndex(e=>e.startsWith(i+",http://www.opengis.net"));-1===n&&I.push(i+",http://www.opengis.net("+t+")"),-1===n||I[n].includes("("+t+")")||I.splice(n,1,i+",http://www.opengis.net("+t+")")}}}t.length&&(A=t.join(","))}else d?.length>=2&&(A=(s.bandIds?s.bandIds.map(e=>d[e]):d).join(","));const M=I.join("&subset="),R=!r.domainSet.hasSameAxisLabelsAsBoundedBy&&!1!==this.ioConfig.allowScaleFactor,T=R?null:`${w}(${t}),${x}(${n})`,D=R?1/i:null;return{service:"WCS",request:"GetCoverage",version:this.version,coverageId:this.coverageId,rangesubset:A,interpolation:u,scaleSize:T,scaleFactor:D,subset:M,format:p,mediaType:this.ioConfig.allowAnyMediaType?null:"multipart/related",outputcrs:b,subsettingcrs:C}}_constructWCS201Url(e){const t={...this.ioConfig.customFetchParameters,...e},n=[];return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&("subset"===e?"string"==typeof i&&i.split("&subset=").forEach(e=>{e&&n.push(`subset=${encodeURIComponent(e)}`)}):n.push(`${e}=${encodeURIComponent(i)}`))}),`${encodeURI(this.url)}?${n.join("&")}`}};function ve(e,t=!1){return(t?new Date((0,k.$E)(e)):new Date(e)).toISOString()}(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ge.prototype,"datasetFormat",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],ge.prototype,"tileType",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ge.prototype,"version",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ge.prototype,"coverageId",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],ge.prototype,"rasterId",null),ge=(0,i.Cg)([(0,c.$K)("esri.layers.raster.datasets.WCSRaster")],ge);var ye=n(10873),we=n(20437),xe=n(74797),be=n(30291);const Ce=new Set(["milliseconds","seconds","minutes","hours","days","weeks","months","years","decades","centuries"]);let Ie=class extends((0,v.dM)((0,I.j)((0,w.q)((0,x.A)((0,y.d)((0,A.b)((0,b.G)((0,S.e)((0,C.J)((0,a.M)((0,r.OU)(g.A)))))))))))){constructor(...e){super(...e),this.coverageId=null,this.version=null,this.isReference=null,this.graphicOrigin=new m(this),this.legendEnabled=!0,this.noData=0,this.operationalLayerType="WCS",this.type="wcs",this.popupEnabled=!0,this.popupTemplate=null,this.fields=null,this._debouncedSaveOperations=(0,l.sg)(async(e,t,i)=>{const{save:s,saveAs:r}=await n.e(9838).then(n.bind(n,59838));switch(e){case 0:return s(this,t);case 1:return r(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WCS"]},e).catch(l.QP).then(()=>this._openRaster(t))),Promise.resolve(this)}get renderer(){return super.renderer}set renderer(e){super.renderer=e}get coverageInfo(){return this.raster.coverageInfo}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){const e=[(0,xe.rZ)("Pixel Value")],t=this.raster?.rasterInfo??this.serviceRasterInfo,n=t?.multidimensionalInfo;if(n){const t=(0,xe.AL)(n);e.push(...t)}return e}createPopupTemplate(e){return(0,be.tn)({fields:this.rasterFields,title:this.title},e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}async _openRaster(e){const t=new ge({url:this.url,version:this.version,coverageId:this.coverageId,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters}});if(await t.open({signal:e}),!t.rasterInfo)throw t.destroy(),new o.A("wcs-layer:load","cannot load resources on "+this.url);const{rasterInfo:n}=t;null==n.noDataValue&&(n.noDataValue=this.noData),this._set("serviceRasterInfo",n),this._set("spatialReference",n.spatialReference),null==this.title&&this.setAtOrigin("title",t.datasetName,"service"),null==this.coverageId&&this.setAtOrigin("coverageId",t.coverageInfo.id,"service"),null==this.version&&t.version&&this.setAtOrigin("version",t.version,"service"),this.setAtOrigin("tileInfo",t.rasterInfo.storageInfo.tileInfo,"service");const{multidimensionalInfo:i}=n;if(null!=i){const e=i.variables[0].dimensions.find(({name:e})=>"StdTime"===e);if(e){let t=e.extent?.[0]??e.values[0];Array.isArray(t)&&(t=t[0]);let n=e.extent?.[1]??e.values[e.values.length-1];Array.isArray(n)&&(n=n[1]);const i=Ce.has(e.intervalUnit?.toLowerCase())?e.intervalUnit?.toLowerCase():null;this.set("timeInfo",{startField:"StdTime",fullTimeExtent:{start:t,end:n},timeZone:null,interval:i?{value:e.interval,unit:i}:null})}}this.raster=t,this._configDefaultSettings(),this.addHandles((0,u.wB)(()=>this.customParameters,e=>this.raster.ioConfig.customFetchParameters=e))}};(0,i.Cg)([(0,c.MZ)({type:String,nonNullable:!0,json:{name:"wcsInfo.coverageId",write:{isRequired:!0,ignoreOrigin:!0}}})],Ie.prototype,"coverageId",void 0),(0,i.Cg)([(0,c.MZ)()],Ie.prototype,"coverageInfo",null),(0,i.Cg)([(0,c.MZ)({type:["1.0.0","1.1.0","1.1.1","1.1.2","2.0.1"],nonNullable:!0,json:{name:"wcsInfo.version",write:{isRequired:!0,ignoreOrigin:!0}}})],Ie.prototype,"version",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Ie.prototype,"isReference",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!0,write:!0}})],Ie.prototype,"blendMode",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0,clonable:!1})],Ie.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,c.MZ)(ye.fV)],Ie.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,c.MZ)({type:["show","hide"]})],Ie.prototype,"listMode",void 0),(0,i.Cg)([(0,c.MZ)()],Ie.prototype,"noData",void 0),(0,i.Cg)([(0,c.MZ)({type:["WCS"]})],Ie.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)()],Ie.prototype,"raster",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Ie.prototype,"type",void 0),(0,i.Cg)([(0,c.MZ)(ye.M6)],Ie.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,c.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],Ie.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],Ie.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0,type:[we.A]})],Ie.prototype,"fields",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0,type:[we.A]})],Ie.prototype,"rasterFields",null),Ie=(0,i.Cg)([(0,c.$K)("esri.layers.WCSLayer")],Ie);const Se=Ie},38458(e,t,n){n.d(t,{m:()=>s});const i=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function s(e){return null!=e&&i.some(([t,n])=>e>=t&&e<=n)}},91806(e,t,n){n.d(t,{A:()=>l});var i,s=n(5482),r=n(25482),o=n(91429),a=n(56507);let l=class extends r.o{static{i=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new i({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,s.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"cols",void 0),(0,s.Cg)([(0,o.MZ)({type:a.jz,json:{write:!0}})],l.prototype,"level",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"levelValue",void 0),(0,s.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"origin",void 0),(0,s.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"resolution",void 0),(0,s.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"rows",void 0),(0,s.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"scale",void 0),l=i=(0,s.Cg)([(0,o.$K)("esri.layers.support.LOD")],l)},87045(e,t,n){n.d(t,{A:()=>w});var i,s=n(5482),r=n(66552),o=n(25482),a=n(86211),l=n(91429),u=n(56507),c=n(86738),p=n(16930),d=n(21325),f=n(28735),h=n(91806),m=n(72802),g=n(36005),v=n(43937);const y=new r.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let w=class extends o.o{static{i=this}static create(e={}){const{resolutionFactor:t=1,scales:n,size:s=256,spatialReference:r=p.A.WebMercator,numLODs:o=24}=e;if(!(0,d.fn)(r)){const e=[];if(n)for(let t=0;t<n.length;t++){const i=n[t];e.push(new h.A({level:t,scale:i,resolution:i}))}else{let t=5e-4;for(let n=o-1;n>=0;n--)e.unshift(new h.A({level:n,scale:t,resolution:t})),t*=2}return new i({dpi:96,lods:e,origin:new c.A(0,0,r),size:[s,s],spatialReference:r})}const l=(0,d.Vp)(r),u=e.origin?new c.A({x:e.origin.x,y:e.origin.y,spatialReference:r}):new c.A(l?{x:l.origin[0],y:l.origin[1],spatialReference:r}:{x:0,y:0,spatialReference:r}),f=1/(39.37*(0,a.GA)(r)*96),m=[];if(n)for(let e=0;e<n.length;e++){const t=n[e],i=t*f;m.push(new h.A({level:e,scale:t,resolution:i}))}else{let e=(0,d.EA)(r)?512/s*591657527.5917094:256/s*591657527.591555;const n=Math.ceil(o/t);m.push(new h.A({level:0,scale:e,resolution:e*f}));for(let i=1;i<n;i++){const n=e/2**t,s=n*f;m.push(new h.A({level:i,scale:n,resolution:s})),e=n}}return new i({dpi:96,lods:m,origin:u,size:[s,s],spatialReference:r})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const n=(0,d.Vp)(e);return e.isWrappable&&!!n&&Math.abs(n.origin[0]-t.x)<=n.dx}return!1}readOrigin(e,t){return c.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,n=0;const i=[],s=this._levelToLOD={};e&&(t=-1/0,n=1/0,e.forEach(e=>{i.push(e.scale),t=e.scale>t?e.scale:t,n=e.scale<n?e.scale:n,s[e.level]=e})),this._set("scales",i),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const n=Math.floor(e),i=n+1;return t[n]/(t[n]/t[i])**(e-n)}scaleToZoom(e){const t=this.scales,n=t.length-1;let i=0;for(;i<n;i++){const n=t[i],s=t[i+1];if(n<=e)return i;if(s===e)return i+1;if(n>e&&s<e)return i+Math.log(n/e)/Math.log(n/s)}return i}tileAt(e,t,n,i){const s=this.lodAt(e);if(!s)return null;let r,o;if("number"==typeof t)r=t,o=n;else if((0,d.aI)(t.spatialReference,this.spatialReference))r=t.x,o=t.y,i=n;else{const e=(0,f.Cv)(t,this.spatialReference);if(null==e)return null;r=e.x,o=e.y,i=n}const a=s.resolution*this.size[0],l=s.resolution*this.size[1];return i??=new m.U(0,0,0),i.level=e,i.row=Math.floor((this.origin.y-o)/l+.001),i.col=Math.floor((r-this.origin.x)/a+.001),this.updateTileInfo(i),i}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let n=this.lodAt(e.level);if(!n&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(n=t)}if(!n)return!1;const i=e.level-n.level,s=n.resolution*this.size[0]/2**i,r=n.resolution*this.size[1]/2**i;return e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*r,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+r,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const n=this.lodAt(t.level);if(null==n)return null;const{resolution:i}=n,s=i*this.size[0],r=i*this.size[1];return e[0]=this.origin.x+t.col*s,e[1]=this.origin.y-(t.row+1)*r,e[2]=e[0]+s,e[3]=e[1]+r,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return i.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const n=[],s=this.lods.length-t;for(let e=0;e<s;e++){const i=e+t,{scale:s,resolution:r}=i>=0?this.lods[i]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};n.push(new h.A({level:e,scale:s,resolution:r}))}return new i({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:n})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let n=0;n<e.length;n++){const i=e[n];this._upsampleLevels[i.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/i.resolution:0},t=i}}};(0,s.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,s.Cg)([(0,l.MZ)({type:String,json:{read:y.read,write:y.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,s.Cg)([(0,l.MZ)({type:c.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,s.Cg)([(0,g.w)("origin")],w.prototype,"readOrigin",null),(0,s.Cg)([(0,l.MZ)({type:[h.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,s.Cg)([(0,l.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,s.Cg)([(0,g.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,s.Cg)([(0,v.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],w.prototype,"writeSize",null),(0,s.Cg)([(0,l.MZ)({type:p.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=i=(0,s.Cg)([(0,l.$K)("esri.layers.support.TileInfo")],w)},72802(e,t,n){n.d(t,{U:()=>s});var i=n(19419);class s{constructor(e,t,n,s=(0,i.vt)()){this._level=e,this._row=t,this._col=n,this.extent=s}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new s(e.level,e.row,e.col,e.extent)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8340],{7762(t,e,i){i.d(e,{A:()=>j});var s,n=i(5482),r=i(98291),o=i(4576),h=i(65529),a=i(36563),l=i(4718),c=i(53966),u=i(93687),f=i(76030),g=i(56507),p=i(62788),d=i(10107),m=i(7695),y=i(64108),_=i(95488),b=i(12195);class v{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}}class C{constructor(t,e,i,s,n){this.target=t,this.added=e,this.removed=i,this.start=s,this.deleteCount=n}}const S=new u.A(()=>new v,void 0,t=>{t.item=null,t.target=null,t.defaultPrevented=!1,t.cancellable=!1});function M(t){t&&"object"==typeof t&&"destroy"in t&&"function"==typeof t.destroy&&t.destroy()}function w(t){return t?t instanceof Z?t.toArray():t.length?Array.prototype.slice.apply(t):[]:[]}function A(t){if(t?.length)return t[0]}function x(t,e,i,s){const n=Math.min(t.length-i,e.length-s);let r=0;for(;r<n&&t[i+r]===e[s+r];)r++;return r}function E(t,e,i,s){e&&e.forEach((e,n,r)=>{t.push(e),E(t,i.call(s,e,n,r),i,s)})}const k=new Set,P=new Set,L=new Set,z=new Map;let R=0,Z=s=class extends h.nJ{static ofType(t){if(!t)return s;if(z.has(t))return z.get(t);let e=null;if("function"==typeof t)e=t.prototype.declaredClass;else if(t.base)e=t.base.prototype.declaredClass;else for(const i in t.typeMap){const s=t.typeMap[i].prototype.declaredClass;e?e+=` | ${s}`:e=s}let i=class extends s{};return(0,n.Cg)([(0,m.u)({Type:t,ensureType:"function"==typeof t?(0,g.dp)(t):(0,g.aq)(t)})],i.prototype,"itemType",void 0),i=(0,n.Cg)([(0,y.$)(`esri.core.Collection<${e}>`)],i),z.set(t,i),i}static isCollection(t){return null!=t&&t instanceof s}constructor(t){super(t),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new _.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:R++})}normalizeCtorArgs(t){return t?(0,o.yc)(t)||t instanceof s?{items:t}:t:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(t){t>this._length?c.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(t,Math.max(0,this._length-t))}get items(){return(0,p.gc)(this._observable),this._items}set items(t){this._emitBeforeChanges(1)||(this._splice(0,this.length,w(t)),this._emitAfterChanges(1))}hasEventListener(t){return!this.destroyed&&("change"===t?this._chgListeners.length>0:super.hasEventListener(t))}on(t,e){if(this.destroyed)return(0,a.hA)();if("change"===t){const t=this._chgListeners,i={removed:!1,callback:e};return t.push(i),this._notifications&&this._notifications.push({listeners:t.slice(),items:this._items.slice(),changes:[]}),(0,a.hA)(()=>{i.removed=!0,t.splice(t.indexOf(i),1)})}return super.on(t,e)}once(t,e){const i="deref"in e?()=>e.deref():()=>e,s=this.on(t,t=>{i()?.call(null,t),s.remove()});return s}add(t,e){if((0,p.gc)(this._observable),this._emitBeforeChanges(1))return this;const i=this.getNextIndex(e??null);return this._splice(i,0,[t]),this._emitAfterChanges(1),this}addMany(t,e=this._items.length){if((0,p.gc)(this._observable),!t?.length)return this;if(this._emitBeforeChanges(1))return this;const i=this.getNextIndex(e);return this._splice(i,0,w(t)),this._emitAfterChanges(1),this}at(t){if((0,p.gc)(this._observable),(t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this._items[t]}removeAll(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const t=this._removeAllRaw();return this._emitAfterChanges(2),t}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.map(l.o8)})}concat(...t){(0,p.gc)(this._observable);const e=t.map(w);return this._createNewInstance({items:this._items.concat(...e)})}drain(t,e){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const i=this._splice(0,this.length),s=i.length;for(let n=0;n<s;n++)t.call(e,i[n],n,i);this._emitAfterChanges(2)}destroyAll(){this.drain(M)}destroyMany(t){const e=this.removeMany(t);return e.forEach(M),e}every(t,e){return(0,p.gc)(this._observable),this._items.every(t,e)}filter(t,e){(0,p.gc)(this._observable);const i=2===arguments.length?this._items.filter(t,e):this._items.filter(t);return this._createNewInstance({items:i})}find(t,e){return(0,p.gc)(this._observable),this._items.find(t,e)}findIndex(t,e){return(0,p.gc)(this._observable),this._items.findIndex(t,e)}flatten(t,e){(0,p.gc)(this._observable);const i=[];return E(i,this,t,e),new s(i)}forEach(t,e){return(0,p.gc)(this._observable),this._items.forEach(t,e)}getItemAt(t){return(0,p.gc)(this._observable),this._items[t]}getNextIndex(t){(0,p.gc)(this._observable);const e=this.length;return(t=t??e)<0?t=0:t>e&&(t=e),t}includes(t,e=0){return(0,p.gc)(this._observable),this._items.includes(t,e)}indexOf(t,e=0){return(0,p.gc)(this._observable),this._items.indexOf(t,e)}join(t=","){return(0,p.gc)(this._observable),this._items.join(t)}lastIndexOf(t,e=this.length-1){return(0,p.gc)(this._observable),this._items.lastIndexOf(t,e)}map(t,e){(0,p.gc)(this._observable);const i=this._items.map(t,e);return new s({items:i})}reorder(t,e=this.length-1){(0,p.gc)(this._observable);const i=this.indexOf(t);if(-1!==i){if(e<0?e=0:e>=this.length&&(e=this.length-1),i!==e){if(this._emitBeforeChanges(4))return t;this._splice(i,1),this._splice(e,0,[t]),this._emitAfterChanges(4)}return t}}pop(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const t=A(this._splice(this.length-1,1));return this._emitAfterChanges(2),t}push(...t){return(0,p.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,t),this._emitAfterChanges(1)),this.length}reduce(t,e){(0,p.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduce(t,e):i.reduce(t)}reduceRight(t,e){(0,p.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduceRight(t,e):i.reduceRight(t)}remove(t){return(0,p.gc)(this._observable),this.removeAt(this.indexOf(t))}removeAt(t){if((0,p.gc)(this._observable),t<0||t>=this.length||this._emitBeforeChanges(2))return;const e=A(this._splice(t,1));return this._emitAfterChanges(2),e}removeMany(t){if((0,p.gc)(this._observable),!t?.length||this._emitBeforeChanges(2))return[];const e=t instanceof s?t.toArray():t,i=this._items,n=[],r=e.length;for(let t=0;t<r;t++){const s=e[t],r=i.indexOf(s);if(r>-1){const s=1+x(e,i,t+1,r+1),o=this._splice(r,s);o&&o.length>0&&n.push.apply(n,o),t+=s-1}}return this._emitAfterChanges(2),n}reverse(){if((0,p.gc)(this._observable),this._emitBeforeChanges(4))return this;const t=this._splice(0,this.length);return t&&(t.reverse(),this._splice(0,0,t)),this._emitAfterChanges(4),this}shift(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const t=A(this._splice(0,1));return this._emitAfterChanges(2),t}slice(t=0,e=this.length){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.slice(t,e)})}some(t,e){return(0,p.gc)(this._observable),this._items.some(t,e)}sort(t){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(t))return this;const e=this._splice(0,this.length);return arguments.length?e.sort(t):e.sort(),this._splice(0,0,e),this._emitAfterChanges(4),this}_requiresSort(t=(t,e)=>t===e?0:t<e?-1:1){const e=this.length-1;for(let i=0;i<e;i++)if(t(this.items[i],this.items[i+1])>0)return!0;return!1}splice(t,e,...i){(0,p.gc)(this._observable),1===arguments.length&&(e=this.length),e??=0;const s=(e?2:0)|(i.length?1:0);if(this._emitBeforeChanges(s))return[];const n=this._splice(t,e,i)||[];return this._emitAfterChanges(s),n}toArray(){return(0,p.gc)(this._observable),this._items.slice()}toJSON(t){return(0,p.gc)(this._observable),this.toArray().map(e=>(0,b.W)(e)?e.toJSON(t):e)}toLocaleString(){return(0,p.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,p.gc)(this._observable),this._items.toString()}unshift(...t){return(0,p.gc)(this._observable),!t.length||this._emitBeforeChanges(1)||(this._splice(0,0,t),this._emitAfterChanges(1)),this.length}_createNewInstance(t){return new this.constructor(t)}_splice(t,e,i){const s=this._items,n=this.itemType;let r,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,f._)(()=>this._dispatchChange())),t<0&&(t+=this.length),e){if(o=s.splice(t,e),this.hasEventListener("before-remove")){const e=S.acquire();e.target=this,e.cancellable=!0;for(let i=0,n=o.length;i<n;i++)r=o[i],e.reset(r),this.emit("before-remove",e),e.defaultPrevented&&(o.splice(i,1),s.splice(t,0,r),t+=1,i-=1,n-=1);S.release(e)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const t=S.acquire();t.target=this,t.cancellable=!1;const e=o.length;for(let i=0;i<e;i++)t.reset(o[i]),this.emit("after-remove",t);S.release(t)}}if(i?.length){if(n){const t=[];for(const e of i){const i=n.ensureType(e);null==i&&null!=e||t.push(i)}i=t}const e=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),o=t===this.length;if(e||r){const n=S.acquire();n.target=this,n.cancellable=!0;const h=S.acquire();h.target=this,h.cancellable=!1;for(const a of i)e?(n.reset(a),this.emit("before-add",n),n.defaultPrevented||(o?s.push(a):s.splice(t++,0,a),this._length=s.length,r&&(h.reset(a),this.emit("after-add",h)))):(o?s.push(a):s.splice(t++,0,a),this._length=s.length,h.reset(a),this.emit("after-add",h));S.release(h),S.release(n)}else{if(o)for(const t of i)s.push(t);else s.splice(t,0,...i);this._length=s.length}}if((i?.length||o?.length)&&this._notifyChangeEvent(i,o),this.hasEventListener("after-splice")){const s=new C(this,i,o,t,e);this.emit("after-splice",s)}return o}_emitBeforeChanges(t){let e=!1;if(this.hasEventListener("before-changes")){const i=S.acquire();i.target=this,i.cancellable=!0,i.type=t,this.emit("before-changes",i),e=i.defaultPrevented,S.release(i)}return e}_emitAfterChanges(t){if(this.hasEventListener("after-changes")){const e=S.acquire();e.target=this,e.cancellable=!1,e.type=t,this.emit("after-changes",e),S.release(e)}this._observable.notify()}_notifyChangeEvent(t,e){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:t,removed:e})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const t=this._notifications;this._notifications=null;for(const e of t){const t=e.changes;k.clear(),P.clear(),L.clear();for(const{added:e,removed:i}of t){if(e)if(0===L.size&&0===P.size)for(const t of e)k.add(t);else for(const t of e)P.has(t)?(L.add(t),P.delete(t)):L.has(t)||k.add(t);if(i)if(0===L.size&&0===k.size)for(const t of i)P.add(t);else for(const t of i)k.has(t)?k.delete(t):(L.delete(t),P.add(t))}const i=r.A.acquire();k.forEach(t=>{i.push(t)});const s=r.A.acquire();P.forEach(t=>{s.push(t)});const n=this._items,o=e.items,h=r.A.acquire();if(L.forEach(t=>{o.indexOf(t)!==n.indexOf(t)&&h.push(t)}),e.listeners&&(i.length||s.length||h.length)){const t={target:this,added:i,removed:s,moved:h},n=e.listeners.length;for(let i=0;i<n;i++){const s=e.listeners[i];s.removed||s.callback.call(this,t)}}r.A.release(i),r.A.release(s),r.A.release(h)}k.clear(),P.clear(),L.clear()}};(0,n.Cg)([(0,d.MZ)()],Z.prototype,"_updating",void 0),(0,n.Cg)([(0,d.MZ)()],Z.prototype,"_length",void 0),(0,n.Cg)([(0,d.MZ)()],Z.prototype,"length",null),(0,n.Cg)([(0,d.MZ)()],Z.prototype,"items",null),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],Z.prototype,"updating",null),Z=s=(0,n.Cg)([(0,y.$)("esri.core.Collection")],Z);const j=Z},69052(t,e,i){i.d(e,{hr:()=>n,ie:()=>a,uC:()=>h});var s=i(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,i=!1){return r(this.range,this.min,this.max,t,e,i)}clamp(t,e=0){return(0,s.qE)(t-e,this.min,this.max)+e}monotonic(t,e,i){return t<e?e:e+o(this.range,t-e,i)}minimalMonotonic(t,e,i){return r(this.range,t,t+this.range,e,i)}center(t,e,i){return e=this.monotonic(t,e,i),this.normalize((t+e)/2,i)}diff(t,e,i){return this.monotonic(t,e,i)-t}shortestSignedDiff(t,e){t=this.normalize(t);const i=(e=this.normalize(e))-t,s=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(i)<Math.abs(s)?i:s}contains(t,e,i){return e=this.minimalMonotonic(t,e),(i=this.minimalMonotonic(t,i))>t&&i<e}}function r(t,e,i,s,n=0,r=!1){return(s-=n)<e?s+=o(t,e-s):s>i&&(s-=o(t,s-i)),r&&s===i&&(s=e),s+n}function o(t,e,i=0){return Math.ceil((e-i)/t)*t+i}const h=new n(0,2*Math.PI),a=(new n(-Math.PI,Math.PI),new n(0,360))},4902(t,e,i){i.d(e,{s:()=>o});var s=i(5482),n=i(64108);let r=0;const o=t=>{const e=t;let i=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+r++})}};return i=(0,s.Cg)([(0,n.$)("esri.core.Identifiable")],i),i};o(class{})},7695(t,e,i){function s(t){return(e,i)=>{e[i]=t}}i.d(e,{u:()=>s})},56512(t,e,i){function s(t){let e,i,s=[],n=!1;return function(...r){return n&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(t[i]!==e[i])return!1;return!0}(r,s)||(i=t.apply(this,r),e=this,s=r,n=!0),i}}i.d(e,{B:()=>s})},36708(t,e,i){i.d(e,{C_:()=>f,OH:()=>d,Vh:()=>m,on:()=>u,pc:()=>y,wB:()=>a,z7:()=>l});var s=i(37955),n=i(36563),r=i(97768),o=i(17676),h=i(14012);function a(t,e,i={}){return c(t,e,i,g)}function l(t,e,i={}){return c(t,e,i,p)}function c(t,e,i={},s){let n=null;const o=i.once?(t,i)=>{s(t)&&((0,r.xt)(n),e(t,i))}:(t,i)=>{s(t)&&e(t,i)};if(n=(0,h.Cn)(t,o,i.sync,i.equals),i.initial){const e=t();o(e,e)}return n}function u(t,e,i,o={}){let h=null,l=null,c=null;function u(){h&&l&&(l.remove(),o.onListenerRemove?.(h),h=null,l=null)}function f(t){o.once&&o.once&&(0,r.xt)(c),i(t)}const g=a(t,(t,i)=>{u(),(0,s.wb)(t)&&(h=t,l=(0,s.on)(t,e,f),o.onListenerAdd?.(t))},{sync:o.sync,initial:!0});return c=(0,n.hA)(()=>{g.remove(),u()}),c}function f(t,e){return function(t,e,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const s=t();if(e?.(s))return Promise.resolve(s);let h=null;function a(){h=(0,r.xt)(h)}return new Promise((s,r)=>{h=(0,n.vE)([(0,o.u7)(i,()=>{a(),r((0,o.NK)())}),c(t,t=>{a(),s(t)},{sync:!1,once:!0},e??g)])})}(t,p,e)}function g(t){return!0}function p(t){return!!t}i(80559);const d={sync:!0},m={initial:!0},y={sync:!0,initial:!0}},31411(t,e,i){i.d(e,{GS:()=>w,gh:()=>x});var s=i(49186),n=i(56512),r=i(65864),o=i(4305),h=i(50954),a=i(52006),l=i(49663),c=i(46068),u=i(15507);const f=1e-6,g=[0,0];function p(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class d{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:i,maxSegmentsPerCurve:s,minSegmentsPerCurve:n}){const r=i*i,o=e*e,h=1/s,a=this.interpolate(0),l=this.interpolate(1);(0,u.kb)(this.curveStart,a)>f&&t.push(a),this.initialize(a,l);const c=1/n;for(let t=n-1;t>0;t--){const e=t*c;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<h||(0===r||!isFinite(r)||(0,u.kb)(this.arcStart,this.arcEnd)<r)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,u.kb)(this.curveEnd,l)>f&&t.push([...this.curveEnd]),t}}class m extends d{constructor(t,e){const[i,s,n]=e.b;super(t,i),this._controlPointsStack=[],this._curveControlPoints=[s,n],this._arcControlPoints=[s,n],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:i,tStart:s,tEnd:n}=this,[r,o]=this._arcControlPoints,h=(t-s)/(n-s),a=(0,u.RS)([],e,r,h),l=(0,u.RS)(g,r,o,h),c=(0,u.RS)([],o,i,h),f=(0,u.RS)([],a,l,h),p=(0,u.RS)([],l,c,h),d=(0,u.RS)([],f,p,h);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([p,c]),this.tEndStack.push(t),this.arcEndStack.push(d),this._arcControlPoints[0]=a,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:i}=this,[s,n]=this._curveControlPoints;return(0,o.B4)(e,s,n,i,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[i,s]=this._arcControlPoints;return Math.max((0,u.yE)(i,t,e),(0,u.yE)(s,t,e))}}class y extends d{constructor(t,e){const[i]=e.a;super(t,i),this._derivedEllipse=(0,c.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,c.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,u.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function _(t,e,i,{cx:s,cy:n,radius:r,thetaStart:o,thetaEnd:h,isInvalid:a},{maxDeviation:l,maxSegmentLength:c,maxSegmentsPerCurve:g,minSegmentsPerCurve:p}){if(a)return t.push([...i]),t;const d=2*r,m=[s+r*Math.cos(o),n+r*Math.sin(o)],y=[s+r*Math.cos(h),n+r*Math.sin(h)];(0,u.kb)(e,m)>f&&t.push(m);const _=Math.abs(h-o),b=c>0&&c<d?2*Math.asin(c/d):_,v=l>0&&l<=r?2*Math.acos(1-l/r):_,C=Math.min(b,v),S=Math.min(g,Math.max(p,Math.ceil(Math.abs(_/C)))),M=1/S;for(let e=1;e<S;e++){const i=e*M,a=o*(1-i)+h*i;t.push([s+r*Math.cos(a),n+r*Math.sin(a)])}return t.push(y),(0,u.kb)(i,y)>f&&t.push([...i]),t}function b(t,e,i,s){return new m(e,i).densify(t,s)}function v(t,e,i,s){const n=(0,h.pM)(e,i),[r]=i.c;return _(t,e,r,n,s)}function C(t,e,i,s){const n=(0,l.io)(e,i),[r]=i.a;return _(t,e,r,n,s)}function S(t,e,i,s){const[n,r,o,h,a,l,c]=i.a;return 0===l||0===c?(t.push([...n]),t):new y(e,i).densify(t,s)}function M(t,e,i,s){return(0,a.Xq)(i)?(t.push([...i]),t):(0,a.n1)(i)?b(t,e,i,s):(0,a.aO)(i)?v(t,e,i,s):(0,a.DA)(i)?C(t,e,i,s):S(t,e,i,s)}function w(t,e={}){if(!(0,a.Ed)(t))return t;const i=p(e),s=(0,a.FD)(t),n=[];for(const t of s){const e=[];for(let s=0;s<t.length-1;s++){const n=s+1,r=[...(0,a.yP)(t[s])];0===s&&e.push(r),M(e,r,t[n],i)}n.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:n,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:n,spatialReference:t.spatialReference}}const A=(0,n.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function x(t,e,n){const o=new Set(e);return await async function(t,e,n){let r=null;for(const o of t)if(o&&(0,a.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,a.V8)(o,e)){const t=o.spatialReference;if(!t)throw new s.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=E(t);if(n.has(e))o.spatialReference=n.get(e);else{r||(r=await Promise.all([i.e(6042),i.e(1878),i.e(8885),i.e(5756),i.e(3299),i.e(6312)]).then(i.bind(i,78125)));const h=r.fromSpatialReference(t),a=h?.getTolerance();if(null==a)throw new s.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const l=o.spatialReference.clone();l.read({xyTolerance:a}),o.spatialReference=l,n.set(e,l)}}}(t,o,n),t.map(t=>{if(!t||!(0,a.Ed)(t))return t;const i=t.spatialReference.xyTolerance;if(null==i)return t;const s=A(i);return(0,r.rS)(function(t,e,i){if(!(0,a.Ed)(t))return t;const s=new Set(e),n=p(i),r=(0,a.FD)(t),o=[];let h=!1;for(const t of r){const e=[];for(let i=0;i<t.length-1;i++){const r=i+1,o=[...(0,a.yP)(t[i])];0===i&&e.push(o);const l=t[r];(0,a.Xq)(l)?e.push([...l]):(0,a.n1)(l)&&!s.has("cubic-bezier")?b(e,o,l,n):(0,a.aO)(l)&&!s.has("circular-arc")?v(e,o,l,n):(0,a.DA)(l)&&!s.has("elliptic-arc")?C(e,o,l,n):(0,a.wY)(l)&&!s.has("elliptic-arc")?S(e,o,l,n):(e.push((0,a.tk)(l)),h=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...h?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...h?{curveRings:o}:{rings:o}}}(t,e,s))})}function E(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,i){i.d(e,{Y_:()=>L,O7:()=>k,el:()=>E});var s=i(92602),n=i(69052),r=i(49186),o=i(53966),h=i(39829),a=i(82799),l=i(16930),c=i(80754),u=i(21325),f=i(28735),g=i(52006),p=i(31411),d=i(11254),m=i(60408),y=i(65864),_=i(2272),b=i(84952),v=i(92300);const C=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function S(t){return"polygon"===t[0].type}function M(t){return"polyline"===t[0].type}function w(t,e,i){const s=1e6;if(e){const e=(0,g.Ed)(t)?(0,p.GS)(t,{maxSegmentLength:s}):function(t,e){if(!(t instanceof a.A||t instanceof h.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw C().error(t),new r.A("internal:geometry",t)}const i=(0,c.r8)(t),s=[];for(const t of i){const i=[];s.push(i),i.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const n=t[s][0],r=t[s][1],o=t[s+1][0],h=t[s+1][1],a=Math.sqrt((o-n)*(o-n)+(h-r)*(h-r)),l=(h-r)/a,c=(o-n)/a,u=a/e;if(u>1){for(let t=1;t<=u-1;t++){const s=t*e,o=c*s+n,h=l*s+r;i.push([o,h])}const t=(a+Math.floor(u-1)*e)/2,s=c*t+n,o=l*t+r;i.push([s,o])}i.push([o,h])}}return function(t){return"polygon"===t.type}(t)?new h.A({rings:s,spatialReference:t.spatialReference}):new a.A({paths:s,spatialReference:t.spatialReference})}(t,s);t=(0,f.ci)(e,!0)}return i&&(t=(0,c.kS)(t,i)),t}function A(t,e,i){if(Array.isArray(t)){const s=t[0];if(s>e){const i=(0,c.kd)(s,e);t[0]=s+i*(-2*e)}else if(s<i){const e=(0,c.kd)(s,i);t[0]=s+e*(-2*i)}}else{const s=t.x;if(s>e){const i=(0,c.kd)(s,e);t=t.clone().offset(i*(-2*e),0)}else if(s<i){const e=(0,c.kd)(s,i);t=t.clone().offset(e*(-2*i),0)}}return t}function x(t,e){let i=-1;for(let s=0;s<e.cutIndexes.length;s++){const n=e.cutIndexes[s],r=e.geometries[s],o=(0,c.r8)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some(i=>{if(i[0]<180)return!0;{let i=0;for(let t=0;t<e.length;t++){const s=e[t][0];i=s>i?s:i}i=Number(i.toFixed(9));const s=-360*(0,c.kd)(i,180);for(let i=0;i<e.length;i++){const e=r.getPoint(t,i);r.setPoint(t,i,e.clone().offset(s,0))}return!0}})}if(n===i){if(S(t))for(const e of(0,c.r8)(r))t[n]=t[n].addRing(e);else if(M(t))for(const e of(0,c.r8)(r))t[n]=t[n].addPath(e)}else i=n,t[n]=r}return t}async function E(t,e,i){if(!Array.isArray(t))return E([t],e);e&&"string"!=typeof e&&C().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof e?e:e?.url??s.A.geometryServiceUrl;let r,o,l,g,p,S,M,k,P=0;const L=[],z=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,o=(0,u.Vp)(r),l=r.isWebMercator,S=l?102100:4326,g=c.j7[S].maxX,p=c.j7[S].minX,M=c.j7[S].plus180Line,k=c.j7[S].minus180Line),o)if("mesh"===e.type)z.push(e);else if("point"===e.type)z.push(A(e.clone(),g,p));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>A(t,g,p)),z.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,o);z.push(t.rings?new h.A(t):t)}else if(e.extent){const t=e.extent,i=(0,c.kd)(t.xmin,p)*(2*g);let s=0===i?e.clone():(0,c.kS)(e.clone(),i);t.offset(i,0);let{xmin:n,xmax:r}=t;n=Number(n.toFixed(9)),r=Number(r.toFixed(9)),t.intersects(M)&&r!==g?(P=r>P?r:P,s=w(s,l),L.push(s),z.push("cut")):t.intersects(k)&&n!==p?(P=r*(2*g)>P?r*(2*g):P,s=w(s,l,360),L.push(s),z.push("cut")):z.push(s)}else z.push(e.clone());else z.push(e);else z.push(e);let R=(0,c.kd)(P,g),Z=-90;const j=R,N=new a.A;for(;R>0;){const t=360*R-180;N.addPath([[t,Z],[t,-1*Z]]),Z*=-1,R--}if(L.length>0&&j>0){const e=x(L,await async function(t,e,i,s){const n=(0,_.Dl)(t),r=e[0].spatialReference,o={...s,responseType:"json",query:{...n.query,f:"json",sr:(0,u.YX)(r),target:JSON.stringify({geometryType:(0,m.$B)(e[0]),geometries:e}),cutter:JSON.stringify(i)}},h=await(0,d.A)(n.path+"/cut",o),{cutIndexes:a,geometries:l=[]}=h.data;return{cutIndexes:a,geometries:l.map(t=>{const e=(0,y.rS)(t);return e.spatialReference=r,e})}}(n,L,N,i)),s=[],r=[];for(let i=0;i<z.length;i++){const n=z[i];if("cut"!==n)r.push(n);else{const n=e.shift(),o=t[i];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(s.push(n),r.push("simplify")):r.push(l?(0,f.Gh)(n):n)}}if(!s.length)return r;const o=await async function(t,e,i){const s="string"==typeof t?(0,b.An)(t):t,n=e[0].spatialReference,r=(0,m.$B)(e[0]),o={...i,query:{...s.query,f:"json",sr:(0,u.YX)(n),geometries:JSON.stringify((0,v.X)(e))}},{data:h}=await(0,d.A)(s.path+"/simplify",o);return(0,v.V)(h.geometries,r,n)}(n,s,i),h=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?h.push(e):h.push(l?(0,f.Gh)(o.shift()):o.shift())}return h}const T=[];for(let t=0;t<z.length;t++){const e=z[t];if("cut"!==e)T.push(e);else{const t=L.shift();T.push(!0===l?(0,f.Gh)(t):t)}}return T}function k(t,e,i){const s=(0,u.Vp)(i);if(null==s)return t;const[n,r]=s.valid,o=2*r;let h=0,a=0;e>r?h=Math.ceil(Math.abs(e-r)/o):e<n&&(h=-Math.ceil(Math.abs(e-n)/o)),t>r?a=Math.ceil(Math.abs(t-r)/o):t<n&&(a=-Math.ceil(Math.abs(t-n)/o));let l=t+(h-a)*o;const c=l-e;return c>r?l-=o:c<n&&(l+=o),l}function P(t){const e=(0,u.Vp)(t);if(null==e)return null;const[i,s]=e.valid;return new n.hr(i,s)}const L=P(l.A.WGS84);P(l.A.WebMercator)},80754(t,e,i){i.d(e,{j7:()=>h,kS:()=>l,kd:()=>a,r8:()=>c});var s=i(82799),n=i(16930),r=i(60408),o=i(52006);const h={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,o.Ed)(t))for(const i of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of i){if((0,o.aO)(t)){const[i,s]=t.c;i[0]+=e,s[0]+=e;continue}if((0,o.FG)(t)){const[i,s]=t.a;i[0]+=e,s[0]+=e;continue}if((0,o.n1)(t)){const[i,s,n]=t.b;i[0]+=e,s[0]+=e,n[0]+=e;continue}t[0]+=e}for(const i of c(t))for(const t of i)t[0]+=e;return t}function c(t){return(0,r.Bi)(t)?t.rings:t.paths}},50498(t,e,i){i.d(e,{Ye:()=>u,gy:()=>c,iI:()=>g,yR:()=>f});var s=i(66552),n=i(5443),r=i(91075),o=i(48526),h=i(86738),a=i(39829),l=i(82799);const c=(0,s.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),u=(0,s.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:r.A,key:"type",typeMap:{extent:n.A,multipoint:o.A,point:h.A,polyline:l.A,polygon:a.A}},g=new s.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},73133(t,e,i){i.d(e,{j:()=>s});const s=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"})},11831(t,e,i){i.d(e,{A:()=>l});var s,n=i(5482),r=i(25482),o=i(90629),h=i(91429),a=i(5760);let l=s=class extends r.o{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(t){this._set("size",t)}castSize(t){return(0,o.cr)(t)}clone(){return new s({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,n.Cg)([(0,h.MZ)({type:a.h9,json:{default:"none",write:!0}})],l.prototype,"decoration",void 0),(0,n.Cg)([(0,h.MZ)({type:String,json:{write:!0}})],l.prototype,"family",void 0),(0,n.Cg)([(0,h.MZ)({type:Number,json:{write:{overridePolicy:(t,e,i)=>({enabled:!i||!i.textSymbol3D})}}})],l.prototype,"size",null),(0,n.Cg)([(0,h.wg)("size")],l.prototype,"castSize",null),(0,n.Cg)([(0,h.MZ)({type:a._R,json:{default:"normal",write:!0}})],l.prototype,"style",void 0),(0,n.Cg)([(0,h.MZ)({type:a.NM,json:{default:"normal",write:!0}})],l.prototype,"weight",void 0),l=s=(0,n.Cg)([(0,h.$K)("esri.symbols.Font")],l)},68249(t,e,i){i.d(e,{A:()=>p});var s,n=i(5482),r=i(68197),o=i(4718),h=i(90629),a=i(91429),l=i(11831),c=i(20378),u=i(5760),f=i(93223),g=i(43937);let p=s=class extends c.A{constructor(...t){super(...t),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new l.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}normalizeCtorArgs(t,e,i){if(t&&"string"!=typeof t)return t;const s={};return t&&(s.text=t),e&&(s.font=e),i&&(s.color=i),s}get haloSize(){return this._get("haloSize")??null}set haloSize(t){this._set("haloSize",t)}get xoffset(){return this._get("xoffset")??0}set xoffset(t){this._set("xoffset",t)}get yoffset(){return this._get("yoffset")??0}set yoffset(t){this._set("yoffset",t)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(t){this._set("lineWidth",t)}writeLineWidth(t,e,i,s){s&&"string"!=typeof s?s.origin:e[i]=t}castLineWidth(t){return(0,h.cr)(t)}writeLineHeight(t,e,i,s){s&&"string"!=typeof s?s.origin:e[i]=t}clone(){return new s({angle:this.angle,backgroundColor:(0,o.o8)(this.backgroundColor),borderLineColor:(0,o.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,o.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,o.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,n.Cg)([(0,a.MZ)({type:r.A,json:{write:!0}})],p.prototype,"backgroundColor",void 0),(0,n.Cg)([(0,a.MZ)({type:r.A,json:{write:!0}})],p.prototype,"borderLineColor",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0},cast:h.cr})],p.prototype,"borderLineSize",void 0),(0,n.Cg)([(0,a.MZ)({type:l.A,json:{write:!0}})],p.prototype,"font",void 0),(0,n.Cg)([(0,a.MZ)({...u.rM,json:{write:!0}})],p.prototype,"horizontalAlignment",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"kerning",void 0),(0,n.Cg)([(0,a.MZ)({type:r.A,json:{write:!0}})],p.prototype,"haloColor",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,cast:h.cr,json:{write:!0}})],p.prototype,"haloSize",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"rightToLeft",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"rotated",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"text",void 0),(0,n.Cg)([(0,f.e)({esriTS:"text"},{readOnly:!0})],p.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({...u.x0,json:{write:!0}})],p.prototype,"verticalAlignment",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,cast:h.cr,json:{write:!0}})],p.prototype,"xoffset",null),(0,n.Cg)([(0,a.MZ)({type:Number,cast:h.cr,json:{write:!0}})],p.prototype,"yoffset",null),(0,n.Cg)([(0,a.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],p.prototype,"angle",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"width",void 0),(0,n.Cg)([(0,a.MZ)({type:Number})],p.prototype,"lineWidth",null),(0,n.Cg)([(0,g.K)("lineWidth")],p.prototype,"writeLineWidth",null),(0,n.Cg)([(0,a.wg)("lineWidth")],p.prototype,"castLineWidth",null),(0,n.Cg)([(0,a.MZ)(u.Tb)],p.prototype,"lineHeight",void 0),(0,n.Cg)([(0,g.K)("lineHeight")],p.prototype,"writeLineHeight",null),p=s=(0,n.Cg)([(0,a.$K)("esri.symbols.TextSymbol")],p)},5760(t,e,i){i.d(e,{NM:()=>h,Tb:()=>a,_R:()=>o,h9:()=>r,rM:()=>l,x0:()=>c,y7:()=>u});var s=i(34727),n=i(56507);const r=["none","underline","line-through"],o=["normal","italic","oblique"],h=["normal","lighter","bold","bolder"],a={type:Number,cast:t=>{const e=(0,n.GB)(t);return 0===e?1:(0,s.qE)(e,.1,4)},nonNullable:!0},l={type:["left","right","center"],nonNullable:!0},c={type:["baseline","top","middle","bottom"],nonNullable:!0},u=8}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2068],{15142(t,e,r){r.d(e,{A:()=>o});var i=r(4576),n=r(21818);const s=(t,e,r,i)=>{let n=e,s=e;const h=r>>>1,a=t[n-1];for(;s<=h;){s=n<<1,s<r&&i(t[s-1],t[s])<0&&++s;const e=t[s-1];if(i(e,a)<=0)break;t[n-1]=e,n=s}t[n-1]=a},h=(t,e)=>t<e?-1:t>e?1:0;function a(t,e,r,i){void 0===e&&(e=0),void 0===r&&(r=t.length),void 0===i&&(i=h);for(let n=r>>>1;n>e;n--)s(t,n,r,i);const n=e+1;for(let h=r-1;h>e;h--){const r=t[e];t[e]=t[h],t[h]=r,s(t,n,h,i)}}function*l(t,e,r,i){void 0===e&&(e=0),void 0===r&&(r=t.length),void 0===i&&(i=h);for(let n=r>>>1;n>e;n--)s(t,n,r,i),yield;const n=e+1;for(let h=r-1;h>e;h--){const r=t[e];t[e]=t[h],t[h]=r,s(t,n,h,i),yield}}class o{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new i.vW,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>u(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const e=new Array;for(let r=0;r<this._length;r++){const i=this.data[r];t(i)&&e.push(i)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){const r=this.data.indexOf(t,e);return-1!==r&&r<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let r=0;r<e;r++)this.data[this._length++]=t[r]}pushAll(t){for(const e of t)this.data[this._length++]=e}fill(t,e){for(let r=0;r<e;r++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,u(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const e=(0,i.qh)(this.data,(0,n.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex((0,i.qh)(this.data,(0,n.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,r){this.length=(0,i.mW)(this.data,t,this.length,e,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;const r=this.data[t];this.data[t]=this.data[e],this.data[e]=r}sort(t){a(this.data,0,this.length,t)}iterableSort(t){return l(this.data,0,this.length,t)}some(t,e){for(let r=0;r<this.length;++r)if(t.call(e,this.data[r],r,this.data))return!0;return!1}find(t,e){const{data:r,length:i}=this;for(let n=0;n<i;++n)if(t.call(e,r[n]))return r[n]}filterInPlace(t,e){let r=0;for(let i=0;i<this._length;++i){const n=this.data[i];t.call(e,n,i,this.data)&&(this.data[i]=this.data[r],this.data[r]=n,r++)}if(this._deallocator)for(let t=r;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=r,this._shrink(),this}forAll(t,e){const{data:r,length:i}=this;for(let n=0;n<i;++n)t.call(e,r[n],n,r)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){const r=new Array(this.length);for(let i=0;i<this.length;++i)r[i]=t.call(e,this.data[i],i,this.data);return r}reduce(t,e){let r=e;for(let e=0;e<this.length;++e)r=t(r,this.data[e],e,this.data);return r}has(t){const e=this.length,r=this.data;for(let i=0;i<e;++i)if(r[i]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}function u(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},97146(t,e,r){r.d(e,{Dg:()=>s,my:()=>h,tM:()=>u,uW:()=>n});var i=r(34275);function n(t){return s(t,!0)}function s(t,e){if(Array.isArray(t)){if(t.length<i.y9)return t}else if(t.length<i.y9)return Array.from(t);let r=!0,n=!0;return t.some((t,e)=>(r=r&&0===t,n=n&&t===e,!r&&!n)),r?function(t){if(1===t)return l;if(t<i.y9)return new Array(t).fill(0);if(t>d.length){const e=Math.max(2*d.length,t);d=new Uint8Array(e)}return new Uint8Array(d.buffer,0,t)}(t.length):n?u(t.length):(0,i.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(const r of t){if(r>=65536)return(0,i.iu)(t)?t:new Uint32Array(t);r>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function h(t){return t<=i.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let a=c(131072);const l=[0],o=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function u(t){return 1===t?l:t<i.y9?Array.from(new Uint16Array(o.buffer,0,t)):t<o.length?new Uint16Array(o.buffer,0,t):(t>a.length&&(a=c(Math.max(2*a.length,t))),new Uint32Array(a.buffer,0,t))}function c(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let d=new Uint8Array(65536)},90239(t,e,r){function i(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(e,{GJ:()=>i})},1843(t,e,r){r.d(e,{BP:()=>c,l5:()=>d});var i=r(20498),n=r(13030),s=r(90239),h=r(4431),a=r(620),l=r(85079);class o{constructor(t,e,r=0){this.layout=t,this.byteOffset=r,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const i=t.fields.get(e);this[e]=new i.constructor(this.buffer,r+i.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,e){const r=this[t];return r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}slice(t,e){return new o(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,i=t.count){const n=this.stride;if(n%4==0){const s=new Uint32Array(t.buffer,e*n,i*n/4);new Uint32Array(this.buffer,r*n,i*n/4).set(s)}else{const s=new Uint8Array(t.buffer,e*n,i*n);new Uint8Array(this.buffer,r*n,i*n).set(s)}return this}get usedMemory(){return this.byteLength}dispose(){}}class u{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:E(t[1].constructor)})))}freeze(){return this}get locations(){return(0,l.Xk)((0,h.U)(this))}vec2f16(t,e){return this._appendField(t,i.SX?n.ZD:n.gH,e),this}vec2f(t,e){return this._appendField(t,n.gH,e),this}vec2f64(t,e){return this._appendField(t,n.si,e),this}vec3f16(t,e){return this._appendField(t,i.SX?n.EC:n.xs,e),this}vec3f(t,e){return this._appendField(t,n.xs,e),this}vec3f64(t,e){return this._appendField(t,n.Xm,e),this}vec4f16(t,e){return this._appendField(t,i.SX?n.jz:n.Eq,e),this}vec4f(t,e){return this._appendField(t,n.Eq,e),this}vec4f64(t,e){return this._appendField(t,n.Aj,e),this}mat3f(t,e){return this._appendField(t,n.jZ,e),this}mat3f64(t,e){return this._appendField(t,n.j0,e),this}mat4f(t,e){return this._appendField(t,n.Sx,e),this}mat4f64(t,e){return this._appendField(t,n.E$,e),this}vec4u8(t,e){return this._appendField(t,n.XP,e),this}f16(t,e){return this._appendField(t,i.SX?n.XW:n.Y$,e),this}f32(t,e){return this._appendField(t,n.Y$,e),this}f64(t,e){return this._appendField(t,n.qB,e),this}u8(t,e){return this._appendField(t,n.SL,e),this}u16(t,e){return this._appendField(t,n.h,e),this}i8(t,e){return this._appendField(t,n.bf,e),this}vec2i8(t,e){return this._appendField(t,n.D6,e),this}vec2i16(t,e){return this._appendField(t,n.mJ,e),this}vec2u8(t,e){return this._appendField(t,n.LC,e),this}vec2u16(t,e){return this._appendField(t,n.Yi,e),this}vec4u16(t,e){return this._appendField(t,n.Uz,e),this}vec4i16(t,e){return this._appendField(t,n.E7,e),this}u32(t,e){return this._appendField(t,n.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,a.vA)(!1,`${t} already added to vertex buffer layout`);const i=e.ElementCount*(0,s.GJ)(e.ElementType),n=this._stride;this._fields.set(t,{constructor:e,size:i,offset:n,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const i=(0,s.GJ)(r.constructor.ElementType);t=Math.floor((t+i-1)/i)*i,r.offset=t,t+=r.size,e=Math.max(e,i)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new o(this,t)}createView(t,e){return new o(this,t,e)}clone(){const t=new u;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,r)=>t._fields.set(r,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function c(){return new u}class d{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:_(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const f=[n.Y$,n.gH,n.xs,n.Eq,n.jZ,n.Sx,n.qB,n.si,n.Xm,n.Aj,n.j0,n.E$,n.SL,n.LC,n.eI,n.XP,n.h,n.Yi,n.nS,n.Uz,n.P,n.An,n.H$,n.ml,n.bf,n.D6,n.m8,n.TX,n.Qt,n.mJ,n.Vp,n.E7,n.My,n.UL,n.zD,n.Y4];function _(t){return`${t.ElementType}_${t.ElementCount}`}function E(t){return p.get(t)}const p=new Map;f.forEach(t=>p.set(_(t),t))},4431(t,e,r){r.d(e,{U:()=>s});var i=r(63907),n=r(74038);function s(t,e=0){const r=t.stride;return Array.from(t.fields.keys()).map(s=>{const h=t.fields.get(s),a=h.constructor.ElementCount,l=function(t){switch(t){case"u8":return i.pe.UNSIGNED_BYTE;case"u16":return i.pe.UNSIGNED_SHORT;case"u32":return i.pe.UNSIGNED_INT;case"i8":return i.pe.BYTE;case"i16":return i.pe.SHORT;case"i32":return i.pe.INT;case"f16":return i.pe.HALF_FLOAT;case"f32":return i.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(h.constructor.ElementType),o=h.offset,u=h.optional?.glNormalized??!1,c=h.optional?.integer??!1;return new n._(s,a,l,o,r,u,e,c)})}},71936(t,e,r){r.r(e),r.d(e,{default:()=>l});var i=r(1843);function n(t,e){return e.push(t.buffer),{buffer:t.buffer,layout:new i.l5(t.layout)}}var s=r(76216),h=r(93406),a=r(44801);class l{async extract(t){const e=o(t),r=(0,a.o6)(e),i=[e.data.buffer];return{result:u(r,i),transferList:i}}async extractComponentsEdgeLocations(t){const e=o(t),r=(0,a.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),i=[];return{result:n((0,h.K)(r,d).regular.instancesData,i),transferList:i}}async extractEdgeLocations(t){const e=o(t),r=(0,a.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),i=[];return{result:n((0,h.K)(r,c).regular.instancesData,i),transferList:i}}}function o(t){return{data:s.I$.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):"Uint8Array"===t.indicesType?new Uint8Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function u(t,e){return e.push(t.regular.lodInfo.lengths.buffer),e.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:n(t.regular.instancesData,e),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:n(t.silhouette.instancesData,e),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const c=new class{allocate(t){return a.Jb.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,r){t.position0.setVec(e,r.position0),t.position1.setVec(e,r.position1)}},d=new class{allocate(t){return a.HY.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,r){t.position0.setVec(e,r.position0),t.position1.setVec(e,r.position1),t.componentIndex.set(e,r.componentIndex)}}},85079(t,e,r){r.d(e,{Sk:()=>h,Xk:()=>n,_u:()=>s});var i=r(21818);function n(t){let e=0;return(0,i.z)(new Map(t.map(({name:t,count:r})=>{const i=[t,e];return 16===r?e+=4:9===r?e+=3:++e,i})))}function s(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:i})=>{e.set(t,r),16===i?r+=4:9===i?r+=3:++r})),e}function h(t){return s(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>i});class i{constructor(t,e,r,i,n,s=!1,h=0,a=!1){this.name=t,this.count=e,this.type=r,this.offset=i,this.stride=n,this.normalized=s,this.divisor=h,this.integer=a}}},63907(t,e,r){r.d(e,{$0:()=>d,C5:()=>c,CQ:()=>g,H0:()=>s,SB:()=>l,WR:()=>i,XN:()=>h,iE:()=>a,ld:()=>o,nI:()=>_,pe:()=>n,r6:()=>f,uH:()=>p,vt:()=>u,xL:()=>E});const i={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},n={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},h=Object.values(s),a={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},l={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},o={FLOAT:n.FLOAT,UNSIGNED_BYTE:n.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:n.BYTE,UNSIGNED_SHORT:n.UNSIGNED_SHORT,SHORT:n.SHORT,UNSIGNED_INT:n.UNSIGNED_INT,INT:n.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},u={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},c=1029,d=0,f=36064,_=33306,E=36096,p=36128,g={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2068],{15142(t,e,r){r.d(e,{A:()=>o});var i=r(4576),n=r(21818);const s=(t,e,r,i)=>{let n=e,s=e;const h=r>>>1,a=t[n-1];for(;s<=h;){s=n<<1,s<r&&i(t[s-1],t[s])<0&&++s;const e=t[s-1];if(i(e,a)<=0)break;t[n-1]=e,n=s}t[n-1]=a},h=(t,e)=>t<e?-1:t>e?1:0;function a(t,e,r,i){void 0===e&&(e=0),void 0===r&&(r=t.length),void 0===i&&(i=h);for(let n=r>>>1;n>e;n--)s(t,n,r,i);const n=e+1;for(let h=r-1;h>e;h--){const r=t[e];t[e]=t[h],t[h]=r,s(t,n,h,i)}}function*l(t,e,r,i){void 0===e&&(e=0),void 0===r&&(r=t.length),void 0===i&&(i=h);for(let n=r>>>1;n>e;n--)s(t,n,r,i),yield;const n=e+1;for(let h=r-1;h>e;h--){const r=t[e];t[e]=t[h],t[h]=r,s(t,n,h,i),yield}}class o{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new i.vW,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>u(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const e=new Array;for(let r=0;r<this._length;r++){const i=this.data[r];t(i)&&e.push(i)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){const r=this.data.indexOf(t,e);return-1!==r&&r<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let r=0;r<e;r++)this.data[this._length++]=t[r]}pushAll(t){for(const e of t)this.data[this._length++]=e}fill(t,e){for(let r=0;r<e;r++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,u(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const e=(0,i.qh)(this.data,(0,n.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex((0,i.qh)(this.data,(0,n.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,r){this.length=(0,i.mW)(this.data,t,this.length,e,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;const r=this.data[t];this.data[t]=this.data[e],this.data[e]=r}sort(t){a(this.data,0,this.length,t)}iterableSort(t){return l(this.data,0,this.length,t)}some(t,e){for(let r=0;r<this.length;++r)if(t.call(e,this.data[r],r,this.data))return!0;return!1}find(t,e){const{data:r,length:i}=this;for(let n=0;n<i;++n)if(t.call(e,r[n]))return r[n]}filterInPlace(t,e){let r=0;for(let i=0;i<this._length;++i){const n=this.data[i];t.call(e,n,i,this.data)&&(this.data[i]=this.data[r],this.data[r]=n,r++)}if(this._deallocator)for(let t=r;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=r,this._shrink(),this}forAll(t,e){const{data:r,length:i}=this;for(let n=0;n<i;++n)t.call(e,r[n],n,r)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){const r=new Array(this.length);for(let i=0;i<this.length;++i)r[i]=t.call(e,this.data[i],i,this.data);return r}reduce(t,e){let r=e;for(let e=0;e<this.length;++e)r=t(r,this.data[e],e,this.data);return r}has(t){const e=this.length,r=this.data;for(let i=0;i<e;++i)if(r[i]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}function u(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},97146(t,e,r){r.d(e,{Dg:()=>s,my:()=>h,tM:()=>u,uW:()=>n});var i=r(34275);function n(t){return s(t,!0)}function s(t,e){if(Array.isArray(t)){if(t.length<i.y9)return t}else if(t.length<i.y9)return Array.from(t);let r=!0,n=!0;return t.some((t,e)=>(r=r&&0===t,n=n&&t===e,!r&&!n)),r?function(t){if(1===t)return l;if(t<i.y9)return new Array(t).fill(0);if(t>d.length){const e=Math.max(2*d.length,t);d=new Uint8Array(e)}return new Uint8Array(d.buffer,0,t)}(t.length):n?u(t.length):(0,i.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(const r of t){if(r>=65536)return(0,i.iu)(t)?t:new Uint32Array(t);r>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function h(t){return t<=i.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let a=c(131072);const l=[0],o=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function u(t){return 1===t?l:t<i.y9?Array.from(new Uint16Array(o.buffer,0,t)):t<o.length?new Uint16Array(o.buffer,0,t):(t>a.length&&(a=c(Math.max(2*a.length,t))),new Uint32Array(a.buffer,0,t))}function c(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let d=new Uint8Array(65536)},90239(t,e,r){function i(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(e,{GJ:()=>i})},1843(t,e,r){r.d(e,{BP:()=>c,l5:()=>d});var i=r(20498),n=r(13030),s=r(90239),h=r(4431),a=r(620),l=r(85079);class o{constructor(t,e,r=0){this.layout=t,this.byteOffset=r,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const i=t.fields.get(e);this[e]=new i.constructor(this.buffer,r+i.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,e){const r=this[t];return r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}slice(t,e){return new o(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,i=t.count){const n=this.stride;if(n%4==0){const s=new Uint32Array(t.buffer,e*n,i*n/4);new Uint32Array(this.buffer,r*n,i*n/4).set(s)}else{const s=new Uint8Array(t.buffer,e*n,i*n);new Uint8Array(this.buffer,r*n,i*n).set(s)}return this}get usedMemory(){return this.byteLength}dispose(){}}class u{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:E(t[1].constructor)})))}freeze(){return this}get locations(){return(0,l.Xk)((0,h.U)(this))}vec2f16(t,e){return this._appendField(t,i.SX?n.ZD:n.gH,e),this}vec2f(t,e){return this._appendField(t,n.gH,e),this}vec2f64(t,e){return this._appendField(t,n.si,e),this}vec3f16(t,e){return this._appendField(t,i.SX?n.EC:n.xs,e),this}vec3f(t,e){return this._appendField(t,n.xs,e),this}vec3f64(t,e){return this._appendField(t,n.Xm,e),this}vec4f16(t,e){return this._appendField(t,i.SX?n.jz:n.Eq,e),this}vec4f(t,e){return this._appendField(t,n.Eq,e),this}vec4f64(t,e){return this._appendField(t,n.Aj,e),this}mat3f(t,e){return this._appendField(t,n.jZ,e),this}mat3f64(t,e){return this._appendField(t,n.j0,e),this}mat4f(t,e){return this._appendField(t,n.Sx,e),this}mat4f64(t,e){return this._appendField(t,n.E$,e),this}vec4u8(t,e){return this._appendField(t,n.XP,e),this}f16(t,e){return this._appendField(t,i.SX?n.XW:n.Y$,e),this}f32(t,e){return this._appendField(t,n.Y$,e),this}f64(t,e){return this._appendField(t,n.qB,e),this}u8(t,e){return this._appendField(t,n.SL,e),this}u16(t,e){return this._appendField(t,n.h,e),this}i8(t,e){return this._appendField(t,n.bf,e),this}vec2i8(t,e){return this._appendField(t,n.D6,e),this}vec2i16(t,e){return this._appendField(t,n.mJ,e),this}vec2u8(t,e){return this._appendField(t,n.LC,e),this}vec2u16(t,e){return this._appendField(t,n.Yi,e),this}vec4u16(t,e){return this._appendField(t,n.Uz,e),this}vec4i16(t,e){return this._appendField(t,n.E7,e),this}u32(t,e){return this._appendField(t,n.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,a.vA)(!1,`${t} already added to vertex buffer layout`);const i=e.ElementCount*(0,s.GJ)(e.ElementType),n=this._stride;this._fields.set(t,{constructor:e,size:i,offset:n,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const i=(0,s.GJ)(r.constructor.ElementType);t=Math.floor((t+i-1)/i)*i,r.offset=t,t+=r.size,e=Math.max(e,i)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new o(this,t)}createView(t,e){return new o(this,t,e)}clone(){const t=new u;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,r)=>t._fields.set(r,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function c(){return new u}class d{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:_(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const f=[n.Y$,n.gH,n.xs,n.Eq,n.jZ,n.Sx,n.qB,n.si,n.Xm,n.Aj,n.j0,n.E$,n.SL,n.LC,n.eI,n.XP,n.h,n.Yi,n.nS,n.Uz,n.P,n.An,n.H$,n.ml,n.bf,n.D6,n.m8,n.TX,n.Qt,n.mJ,n.Vp,n.E7,n.My,n.UL,n.zD,n.Y4];function _(t){return`${t.ElementType}_${t.ElementCount}`}function E(t){return p.get(t)}const p=new Map;f.forEach(t=>p.set(_(t),t))},4431(t,e,r){r.d(e,{U:()=>s});var i=r(63907),n=r(74038);function s(t,e=0){const r=t.stride;return Array.from(t.fields.keys()).map(s=>{const h=t.fields.get(s),a=h.constructor.ElementCount,l=function(t){switch(t){case"u8":return i.pe.UNSIGNED_BYTE;case"u16":return i.pe.UNSIGNED_SHORT;case"u32":return i.pe.UNSIGNED_INT;case"i8":return i.pe.BYTE;case"i16":return i.pe.SHORT;case"i32":return i.pe.INT;case"f16":return i.pe.HALF_FLOAT;case"f32":return i.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(h.constructor.ElementType),o=h.offset,u=h.optional?.glNormalized??!1,c=h.optional?.integer??!1;return new n._(s,a,l,o,r,u,e,c)})}},71936(t,e,r){r.r(e),r.d(e,{default:()=>l});var i=r(1843);function n(t,e){return e.push(t.buffer),{buffer:t.buffer,layout:new i.l5(t.layout)}}var s=r(76216),h=r(93406),a=r(44801);class l{async extract(t){const e=o(t),r=(0,a.o6)(e),i=[e.data.buffer];return{result:u(r,i),transferList:i}}async extractComponentsEdgeLocations(t){const e=o(t),r=(0,a.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),i=[];return{result:n((0,h.K)(r,d).regular.instancesData,i),transferList:i}}async extractEdgeLocations(t){const e=o(t),r=(0,a.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),i=[];return{result:n((0,h.K)(r,c).regular.instancesData,i),transferList:i}}}function o(t){return{data:s.I$.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):"Uint8Array"===t.indicesType?new Uint8Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function u(t,e){return e.push(t.regular.lodInfo.lengths.buffer),e.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:n(t.regular.instancesData,e),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:n(t.silhouette.instancesData,e),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const c=new class{allocate(t){return a.Jb.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,r){t.position0.setVec(e,r.position0),t.position1.setVec(e,r.position1)}},d=new class{allocate(t){return a.HY.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,r){t.position0.setVec(e,r.position0),t.position1.setVec(e,r.position1),t.componentIndex.set(e,r.componentIndex)}}},85079(t,e,r){r.d(e,{Sk:()=>h,Xk:()=>n,_u:()=>s});var i=r(21818);function n(t){let e=0;return(0,i.z)(new Map(t.map(({name:t,count:r})=>{const i=[t,e];return 16===r?e+=4:9===r?e+=3:++e,i})))}function s(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:i})=>{e.set(t,r),16===i?r+=4:9===i?r+=3:++r})),e}function h(t){return s(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>i});class i{constructor(t,e,r,i,n,s=!1,h=0,a=!1){this.name=t,this.count=e,this.type=r,this.offset=i,this.stride=n,this.normalized=s,this.divisor=h,this.integer=a}}},63907(t,e,r){r.d(e,{$0:()=>d,C5:()=>c,CQ:()=>R,H0:()=>s,SB:()=>l,WR:()=>i,XN:()=>h,iE:()=>a,ld:()=>o,nI:()=>E,pe:()=>n,r6:()=>f,uH:()=>g,vt:()=>u,xL:()=>p,yI:()=>_});const i={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},n={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},h=Object.values(s),a={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},l={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},o={FLOAT:n.FLOAT,UNSIGNED_BYTE:n.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:n.BYTE,UNSIGNED_SHORT:n.UNSIGNED_SHORT,SHORT:n.SHORT,UNSIGNED_INT:n.UNSIGNED_INT,INT:n.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},u={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},c=1029,d=0,f=36064,_=36065,E=33306,p=36096,g=36128,R={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}}}]);