@arcgis/core 4.27.0-rc.1 → 4.27.0-rc.3

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 (179) hide show
  1. package/README.md +2 -2
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{a8565d1c676f3bfbcebb.js → 002fe1ec63ea33e6972d.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{0610691a0c0d9fbbd6d2.js → 013de5c2955801b329b3.js} +1 -1
  5. package/assets/esri/core/workers/chunks/07163dcbb871f927a580.js +1 -0
  6. package/assets/esri/core/workers/chunks/0e46687004392c493c06.js +1 -0
  7. package/assets/esri/core/workers/chunks/0e65e00173b66c7fec2e.js +1 -0
  8. package/assets/esri/core/workers/chunks/1aa8dd317ecd3c41e0ea.js +1 -0
  9. package/assets/esri/core/workers/chunks/21328f3dd26abe84a10d.js +1 -0
  10. package/assets/esri/core/workers/chunks/28c67c98039503b62e6e.js +1 -0
  11. package/assets/esri/core/workers/chunks/2faa8f08f2fdaac3f4af.js +1 -0
  12. package/assets/esri/core/workers/chunks/{0407bf97ad621c89a734.js → 3160af63b860b52db389.js} +1 -1
  13. package/assets/esri/core/workers/chunks/3767b9e7660873b018c2.js +1 -0
  14. package/assets/esri/core/workers/chunks/39ae4b9b766f674bc6f2.js +1 -0
  15. package/assets/esri/core/workers/chunks/45629ff775e77234b227.js +1 -0
  16. package/assets/esri/core/workers/chunks/471f6eba213412b82840.js +1 -0
  17. package/assets/esri/core/workers/chunks/4a4f14a3d8da270059c4.js +1 -0
  18. package/assets/esri/core/workers/chunks/{3e239bfad611985e50fb.js → 50f910797c17c3028521.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{f339db2b599fa9585283.js → 5e6471dd2a08e66b47d0.js} +79 -81
  20. package/assets/esri/core/workers/chunks/642c5a93c0a454bdd115.js +1 -0
  21. package/assets/esri/core/workers/chunks/{14145959a3dab1437818.js → 6627f1bc9ee6b620e3aa.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{170bdbdb4e21bf91a17f.js → 6eaa7a51efde2dd4a5a4.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{d8bd3f498b3fa8153404.js → 6f510f28526c73ab453c.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{2bdc63395c7466ce1641.js → 7053c2f5a958d4c8629b.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{4c35c663528f710e8c78.js → 79cb672c85ea29e8484a.js} +1 -1
  26. package/assets/esri/core/workers/chunks/82939ead43848a13f765.js +1 -0
  27. package/assets/esri/core/workers/chunks/83e3d104886b48f00397.js +1 -0
  28. package/assets/esri/core/workers/chunks/89001ee8d3f69fa03cc1.js +1 -0
  29. package/assets/esri/core/workers/chunks/8b6b963230df56850580.js +1 -0
  30. package/assets/esri/core/workers/chunks/9472184ef1432fc55d6b.js +1 -0
  31. package/assets/esri/core/workers/chunks/{3c5a64a545272f148e93.js → 9621b7d8d951aa881686.js} +1 -1
  32. package/assets/esri/core/workers/chunks/a6ddf80eb324c35076e1.js +1 -0
  33. package/assets/esri/core/workers/chunks/a80a6267d88246ede5d3.js +1 -0
  34. package/assets/esri/core/workers/chunks/{b6e173eddaad4244cb5f.js → b31974524932e638df8c.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{f505ebd4bd3bfb6c790d.js → b6a55fdfe16795ebf02c.js} +1 -1
  36. package/assets/esri/core/workers/chunks/bf9e1fde9f6b2b4f10c0.js +1 -0
  37. package/assets/esri/core/workers/chunks/cfa3b2b1e184681e9af4.js +1 -0
  38. package/assets/esri/core/workers/chunks/{92e7f224a80195e606d6.js → d4ba894a2583f3930a4f.js} +1 -1
  39. package/assets/esri/core/workers/chunks/d5dfd3d693d5e393a542.js +1 -0
  40. package/assets/esri/core/workers/chunks/dabd889e064c4e7807fa.js +1 -0
  41. package/assets/esri/core/workers/chunks/{74fd2059ddda9083cbcc.js → dc6c97a43d642eeaf477.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{2154d395f405be3cd3ba.js → eca0c3d57b3a1e3a14ee.js} +1 -1
  43. package/assets/esri/core/workers/chunks/f35895e03c036d67b3ed.js +1 -0
  44. package/assets/esri/core/workers/chunks/f36697f6aac782007d1a.js +1 -0
  45. package/assets/esri/core/workers/chunks/f52054f27619a98b7bb7.js +1 -0
  46. package/assets/esri/core/workers/chunks/{c6efe2e04ea6a55bb6e3.js → f6e68befe2812b90b40d.js} +1 -1
  47. package/assets/esri/core/workers/chunks/fb7fe307a583b6a22218.js +1 -0
  48. package/assets/esri/core/workers/chunks/fbd3c78ee8e2219a6c7a.js +1 -0
  49. package/assets/esri/core/workers/chunks/ff42585e1b1d0c5497af.js +1 -0
  50. package/assets/esri/images/portal/livestreamvideolayer16.png +0 -0
  51. package/assets/esri/images/portal/{mediaservice16.png → videolayer16.png} +0 -0
  52. package/assets/esri/themes/base/widgets/_Feature.scss +4 -0
  53. package/assets/esri/themes/base/widgets/_FeatureContent.scss +9 -2
  54. package/assets/esri/themes/base/widgets/_FeatureForm.scss +19 -2
  55. package/assets/esri/themes/base/widgets/_ScaleRangeSlider.scss +1 -0
  56. package/assets/esri/themes/dark/main.css +1 -1
  57. package/assets/esri/themes/light/main.css +1 -1
  58. package/assets/esri/themes/light/view.css +1 -1
  59. package/chunks/DefaultMaterial.glsl.js +3 -2
  60. package/chunks/ShadowCastAccumulate.glsl.js +1 -1
  61. package/core/timeUtils.js +1 -1
  62. package/geometry/Mesh.js +1 -1
  63. package/geometry/support/DoubleArray.js +1 -1
  64. package/geometry/support/meshVertexSpaceUtils.js +5 -0
  65. package/interfaces.d.ts +263 -31
  66. package/kernel.js +1 -1
  67. package/layers/VideoLayer.js +1 -1
  68. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  69. package/layers/graphics/controllers/StreamController.js +1 -1
  70. package/layers/graphics/data/QueryEngine.js +1 -1
  71. package/layers/graphics/data/attributeSupport.js +1 -1
  72. package/layers/graphics/editingSupport.js +1 -1
  73. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  74. package/layers/support/editableLayers.js +1 -1
  75. package/layers/support/layerUtils.js +1 -1
  76. package/layers/video/VideoController.js +1 -1
  77. package/layers/video/videoUtils.js +5 -0
  78. package/package.json +1 -1
  79. package/portal/PortalItem.js +1 -1
  80. package/request.js +1 -1
  81. package/rest/support/meshFeatureSet.js +1 -1
  82. package/smartMapping/symbology/flow.js +1 -1
  83. package/statistics/utils.js +1 -1
  84. package/support/requestUtils.js +1 -1
  85. package/support/revision.js +1 -1
  86. package/symbols/cim/CIMSymbolHelper.js +1 -1
  87. package/views/2d/layers/StreamLayerView2D.js +1 -1
  88. package/views/2d/layers/features/sources/StreamSource.js +1 -1
  89. package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
  90. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  91. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  92. package/views/3d/layers/I3SMeshView3D.js +1 -1
  93. package/views/3d/layers/I3SMeshWorkerHandle.js +1 -1
  94. package/views/3d/layers/II3SMeshView3D.js +1 -1
  95. package/views/3d/layers/SceneLayerView3D.js +1 -1
  96. package/views/3d/layers/SceneLayerWorker.js +1 -1
  97. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  98. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  99. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  100. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  101. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  102. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  103. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  104. package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
  105. package/views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js +3 -9
  106. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +12 -9
  107. package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js +10 -10
  108. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +2 -2
  109. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterDistortion.glsl.js +2 -2
  110. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +8 -8
  111. package/views/3d/webgl-engine/core/shaderModules/Matrix4sDrawUniform.js +1 -1
  112. package/views/3d/webgl-engine/lib/ShadowHighlight.js +1 -1
  113. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  114. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  115. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  116. package/views/3d/webgl-engine/materials/pbrUtils.js +1 -1
  117. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
  118. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  119. package/views/3d/webgl-engine/shaders/ShadowHighlightTechnique.js +1 -1
  120. package/views/draw/DrawGraphicTool.js +1 -1
  121. package/views/layers/GroupLayerView.js +1 -1
  122. package/webmap/initialViewPropertiesUtils.js +1 -1
  123. package/widgets/Daylight/DaylightViewModel.js +1 -1
  124. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  125. package/widgets/Editor/CreateWorkflow.js +1 -1
  126. package/widgets/Editor/EditorViewModel.js +1 -1
  127. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  128. package/widgets/Editor/UpdateWorkflow.js +1 -1
  129. package/widgets/Editor/UpdateWorkflowData.js +1 -1
  130. package/widgets/Editor/Workflow.js +1 -1
  131. package/widgets/Editor/workflowUtils.js +1 -1
  132. package/widgets/Editor.js +1 -1
  133. package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
  134. package/widgets/Feature/FeatureRelationship.js +1 -1
  135. package/widgets/Feature/support/featureUtils.js +1 -1
  136. package/widgets/FeatureForm/EditableInput.d.ts +2 -2
  137. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  138. package/widgets/FeatureForm/RelationshipInput.js +1 -1
  139. package/widgets/FeatureForm/css.js +1 -1
  140. package/widgets/FeatureForm.js +1 -1
  141. package/widgets/FeatureTable/FieldColumn.js +1 -1
  142. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
  143. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  144. package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
  145. package/widgets/UtilityNetworkTrace/support/ResultAreaHandler.js +1 -1
  146. package/widgets/UtilityNetworkTrace.js +1 -1
  147. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.d.ts +4 -0
  148. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +1 -1
  149. package/widgets/UtilityNetworkValidateTopology.d.ts +4 -0
  150. package/widgets/UtilityNetworkValidateTopology.js +1 -1
  151. package/widgets/ValuePicker/ValuePickerBaseComponent.js +1 -1
  152. package/widgets/ValuePicker.js +1 -1
  153. package/widgets/support/geolocationUtils.js +1 -1
  154. package/assets/esri/core/workers/chunks/07651ef8348f702d59ac.js +0 -1
  155. package/assets/esri/core/workers/chunks/0a02ac5628d1739372c6.js +0 -1
  156. package/assets/esri/core/workers/chunks/0fcb8d408696075338e2.js +0 -1
  157. package/assets/esri/core/workers/chunks/16e459b16bdd6e1a821b.js +0 -1
  158. package/assets/esri/core/workers/chunks/1b8074269800b384ecf6.js +0 -1
  159. package/assets/esri/core/workers/chunks/39714837f9d3708e3806.js +0 -1
  160. package/assets/esri/core/workers/chunks/3ba2fcb9110230f8790c.js +0 -1
  161. package/assets/esri/core/workers/chunks/474d9b334812533bab36.js +0 -1
  162. package/assets/esri/core/workers/chunks/5576858f56314afcb4d5.js +0 -1
  163. package/assets/esri/core/workers/chunks/5706edf45402dff279a6.js +0 -1
  164. package/assets/esri/core/workers/chunks/659b7bad7281c0e2aed3.js +0 -1
  165. package/assets/esri/core/workers/chunks/785a6c925f29bc962992.js +0 -1
  166. package/assets/esri/core/workers/chunks/90da1ed112b82712d0ef.js +0 -1
  167. package/assets/esri/core/workers/chunks/9326120c750799eb2d28.js +0 -1
  168. package/assets/esri/core/workers/chunks/99e0cec47e3ef72c1de4.js +0 -1
  169. package/assets/esri/core/workers/chunks/9c0e1e87790424f42d7e.js +0 -1
  170. package/assets/esri/core/workers/chunks/9e66af3b1c70cf25fb32.js +0 -1
  171. package/assets/esri/core/workers/chunks/a1c31bb8c12831539328.js +0 -1
  172. package/assets/esri/core/workers/chunks/b0cda39b53ecd6c44cd0.js +0 -1
  173. package/assets/esri/core/workers/chunks/b5fc6f2044ed047c5afd.js +0 -1
  174. package/assets/esri/core/workers/chunks/c08e03165043df67c11b.js +0 -1
  175. package/assets/esri/core/workers/chunks/c26148d4bfab3b3dfab2.js +0 -1
  176. package/assets/esri/core/workers/chunks/d6b6bb8aecc85d2a3f6b.js +0 -1
  177. package/assets/esri/core/workers/chunks/eeaf8010e38b65a101ac.js +0 -1
  178. package/assets/esri/core/workers/chunks/f235392c56063fbf89c6.js +0 -1
  179. package/assets/esri/core/workers/chunks/fdd0d3616c97e408b104.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3566,3172,661,5234,9880],{99880:(t,e,r)=>{r.d(e,{V:()=>u});var n=r(68773),o=(r(3172),r(20102)),a=r(92604),s=r(81271);const i=a.Z.getLogger("esri.assets");function u(t){if(!n.default.assetsPath)throw i.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,s.v_)(n.default.assetsPath,t)}},46521:(t,e,r)=>{function n(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,r,n,o,a,s,i,u){return[t,e,r,n,o,a,s,i,u]}function a(t,e){return new Float64Array(t,e,9)}r.d(e,{a:()=>a,c:()=>n,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:n,createView:a,fromValues:o},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,r)=>{r.d(e,{A:()=>p,a:()=>u,d:()=>b,e:()=>d,f:()=>h,g:()=>y,h:()=>M,i:()=>s,j:()=>O,k:()=>f,m:()=>c,s:()=>a,t:()=>i,w:()=>l,y:()=>A,z:()=>T});var n=r(65617),o=r(46851);function a(t,e,r,n,o,a,s,i,u,c,l,f,d,h,b,p,m){return t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=a,t[5]=s,t[6]=i,t[7]=u,t[8]=c,t[9]=l,t[10]=f,t[11]=d,t[12]=h,t[13]=b,t[14]=p,t[15]=m,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function i(t,e){if(t===e){const r=e[1],n=e[2],o=e[3],a=e[6],s=e[7],i=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=o,t[13]=s,t[14]=i}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function u(t,e){const r=e[0],n=e[1],o=e[2],a=e[3],s=e[4],i=e[5],u=e[6],c=e[7],l=e[8],f=e[9],d=e[10],h=e[11],b=e[12],p=e[13],m=e[14],g=e[15],y=r*i-n*s,w=r*u-o*s,M=r*c-a*s,O=n*u-o*i,T=n*c-a*i,A=o*c-a*u,v=l*p-f*b,C=l*m-d*b,I=l*g-h*b,E=f*m-d*p,S=f*g-h*p,U=d*g-h*m;let L=y*U-w*S+M*E+O*I-T*C+A*v;return L?(L=1/L,t[0]=(i*U-u*S+c*E)*L,t[1]=(o*S-n*U-a*E)*L,t[2]=(p*A-m*T+g*O)*L,t[3]=(d*T-f*A-h*O)*L,t[4]=(u*I-s*U-c*C)*L,t[5]=(r*U-o*I+a*C)*L,t[6]=(m*M-b*A-g*w)*L,t[7]=(l*A-d*M+h*w)*L,t[8]=(s*S-i*I+c*v)*L,t[9]=(n*I-r*S-a*v)*L,t[10]=(b*T-p*M+g*y)*L,t[11]=(f*M-l*T-h*y)*L,t[12]=(i*C-s*E-u*v)*L,t[13]=(r*E-n*C+o*v)*L,t[14]=(p*w-b*O-m*y)*L,t[15]=(l*O-f*w+d*y)*L,t):null}function c(t,e,r){const n=e[0],o=e[1],a=e[2],s=e[3],i=e[4],u=e[5],c=e[6],l=e[7],f=e[8],d=e[9],h=e[10],b=e[11],p=e[12],m=e[13],g=e[14],y=e[15];let w=r[0],M=r[1],O=r[2],T=r[3];return t[0]=w*n+M*i+O*f+T*p,t[1]=w*o+M*u+O*d+T*m,t[2]=w*a+M*c+O*h+T*g,t[3]=w*s+M*l+O*b+T*y,w=r[4],M=r[5],O=r[6],T=r[7],t[4]=w*n+M*i+O*f+T*p,t[5]=w*o+M*u+O*d+T*m,t[6]=w*a+M*c+O*h+T*g,t[7]=w*s+M*l+O*b+T*y,w=r[8],M=r[9],O=r[10],T=r[11],t[8]=w*n+M*i+O*f+T*p,t[9]=w*o+M*u+O*d+T*m,t[10]=w*a+M*c+O*h+T*g,t[11]=w*s+M*l+O*b+T*y,w=r[12],M=r[13],O=r[14],T=r[15],t[12]=w*n+M*i+O*f+T*p,t[13]=w*o+M*u+O*d+T*m,t[14]=w*a+M*c+O*h+T*g,t[15]=w*s+M*l+O*b+T*y,t}function l(t,e,r){const n=r[0],o=r[1],a=r[2];if(e===t)t[12]=e[0]*n+e[4]*o+e[8]*a+e[12],t[13]=e[1]*n+e[5]*o+e[9]*a+e[13],t[14]=e[2]*n+e[6]*o+e[10]*a+e[14],t[15]=e[3]*n+e[7]*o+e[11]*a+e[15];else{const r=e[0],s=e[1],i=e[2],u=e[3],c=e[4],l=e[5],f=e[6],d=e[7],h=e[8],b=e[9],p=e[10],m=e[11];t[0]=r,t[1]=s,t[2]=i,t[3]=u,t[4]=c,t[5]=l,t[6]=f,t[7]=d,t[8]=h,t[9]=b,t[10]=p,t[11]=m,t[12]=r*n+c*o+h*a+e[12],t[13]=s*n+l*o+b*a+e[13],t[14]=i*n+f*o+p*a+e[14],t[15]=u*n+d*o+m*a+e[15]}return t}function f(t,e,r){const n=r[0],o=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,r,n){let a,s,i,u,c,l,f,d,h,b,p,m,g,y,w,M,O,T,A,v,C,I,E,S,U=n[0],L=n[1],R=n[2],q=Math.sqrt(U*U+L*L+R*R);return q<(0,o.g)()?null:(q=1/q,U*=q,L*=q,R*=q,a=Math.sin(r),s=Math.cos(r),i=1-s,u=e[0],c=e[1],l=e[2],f=e[3],d=e[4],h=e[5],b=e[6],p=e[7],m=e[8],g=e[9],y=e[10],w=e[11],M=U*U*i+s,O=L*U*i+R*a,T=R*U*i-L*a,A=U*L*i-R*a,v=L*L*i+s,C=R*L*i+U*a,I=U*R*i+L*a,E=L*R*i-U*a,S=R*R*i+s,t[0]=u*M+d*O+m*T,t[1]=c*M+h*O+g*T,t[2]=l*M+b*O+y*T,t[3]=f*M+p*O+w*T,t[4]=u*A+d*v+m*C,t[5]=c*A+h*v+g*C,t[6]=l*A+b*v+y*C,t[7]=f*A+p*v+w*C,t[8]=u*I+d*E+m*S,t[9]=c*I+h*E+g*S,t[10]=l*I+b*E+y*S,t[11]=f*I+p*E+w*S,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function h(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function b(t,e,r){if(0===e)return s(t);let n,a,i,u=r[0],c=r[1],l=r[2],f=Math.sqrt(u*u+c*c+l*l);return f<(0,o.g)()?null:(f=1/f,u*=f,c*=f,l*=f,n=Math.sin(e),a=Math.cos(e),i=1-a,t[0]=u*u*i+a,t[1]=c*u*i+l*n,t[2]=l*u*i-c*n,t[3]=0,t[4]=u*c*i-l*n,t[5]=c*c*i+a,t[6]=l*c*i+u*n,t[7]=0,t[8]=u*l*i+c*n,t[9]=c*l*i-u*n,t[10]=l*l*i+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function p(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function m(t,e,r){const n=e[0],o=e[1],a=e[2],s=e[3],i=n+n,u=o+o,c=a+a,l=n*i,f=n*u,d=n*c,h=o*u,b=o*c,p=a*c,m=s*i,g=s*u,y=s*c;return t[0]=1-(h+p),t[1]=f+y,t[2]=d-g,t[3]=0,t[4]=f-y,t[5]=1-(l+p),t[6]=b+m,t[7]=0,t[8]=d+g,t[9]=b-m,t[10]=1-(l+h),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const g=(0,n.c)();function y(t,e,r,n){const o=e[0],a=e[1],s=e[2],i=e[3],u=o+o,c=a+a,l=s+s,f=o*u,d=o*c,h=o*l,b=a*c,p=a*l,m=s*l,g=i*u,y=i*c,w=i*l,M=n[0],O=n[1],T=n[2];return t[0]=(1-(b+m))*M,t[1]=(d+w)*M,t[2]=(h-y)*M,t[3]=0,t[4]=(d-w)*O,t[5]=(1-(f+m))*O,t[6]=(p+g)*O,t[7]=0,t[8]=(h+y)*T,t[9]=(p-g)*T,t[10]=(1-(f+b))*T,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function w(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t}function M(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function O(t,e){if(t===e)return!0;const r=t[0],n=t[1],a=t[2],s=t[3],i=t[4],u=t[5],c=t[6],l=t[7],f=t[8],d=t[9],h=t[10],b=t[11],p=t[12],m=t[13],g=t[14],y=t[15],w=e[0],M=e[1],O=e[2],T=e[3],A=e[4],v=e[5],C=e[6],I=e[7],E=e[8],S=e[9],U=e[10],L=e[11],R=e[12],q=e[13],P=e[14],x=e[15],F=(0,o.g)();return Math.abs(r-w)<=F*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(n-M)<=F*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(a-O)<=F*Math.max(1,Math.abs(a),Math.abs(O))&&Math.abs(s-T)<=F*Math.max(1,Math.abs(s),Math.abs(T))&&Math.abs(i-A)<=F*Math.max(1,Math.abs(i),Math.abs(A))&&Math.abs(u-v)<=F*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(c-C)<=F*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(l-I)<=F*Math.max(1,Math.abs(l),Math.abs(I))&&Math.abs(f-E)<=F*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(d-S)<=F*Math.max(1,Math.abs(d),Math.abs(S))&&Math.abs(h-U)<=F*Math.max(1,Math.abs(h),Math.abs(U))&&Math.abs(b-L)<=F*Math.max(1,Math.abs(b),Math.abs(L))&&Math.abs(p-R)<=F*Math.max(1,Math.abs(p),Math.abs(R))&&Math.abs(m-q)<=F*Math.max(1,Math.abs(m),Math.abs(q))&&Math.abs(g-P)<=F*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(y-x)<=F*Math.max(1,Math.abs(y),Math.abs(x))}function T(t){const e=(0,o.g)(),r=t[0],n=t[1],a=t[2],s=t[4],i=t[5],u=t[6],c=t[8],l=t[9],f=t[10];return Math.abs(1-(r*r+s*s+c*c))<=e&&Math.abs(1-(n*n+i*i+l*l))<=e&&Math.abs(1-(a*a+u*u+f*f))<=e}function A(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const v=c,C=w;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t},adjoint:function(t,e){const r=e[0],n=e[1],o=e[2],a=e[3],s=e[4],i=e[5],u=e[6],c=e[7],l=e[8],f=e[9],d=e[10],h=e[11],b=e[12],p=e[13],m=e[14],g=e[15];return t[0]=i*(d*g-h*m)-f*(u*g-c*m)+p*(u*h-c*d),t[1]=-(n*(d*g-h*m)-f*(o*g-a*m)+p*(o*h-a*d)),t[2]=n*(u*g-c*m)-i*(o*g-a*m)+p*(o*c-a*u),t[3]=-(n*(u*h-c*d)-i*(o*h-a*d)+f*(o*c-a*u)),t[4]=-(s*(d*g-h*m)-l*(u*g-c*m)+b*(u*h-c*d)),t[5]=r*(d*g-h*m)-l*(o*g-a*m)+b*(o*h-a*d),t[6]=-(r*(u*g-c*m)-s*(o*g-a*m)+b*(o*c-a*u)),t[7]=r*(u*h-c*d)-s*(o*h-a*d)+l*(o*c-a*u),t[8]=s*(f*g-h*p)-l*(i*g-c*p)+b*(i*h-c*f),t[9]=-(r*(f*g-h*p)-l*(n*g-a*p)+b*(n*h-a*f)),t[10]=r*(i*g-c*p)-s*(n*g-a*p)+b*(n*c-a*i),t[11]=-(r*(i*h-c*f)-s*(n*h-a*f)+l*(n*c-a*i)),t[12]=-(s*(f*m-d*p)-l*(i*m-u*p)+b*(i*d-u*f)),t[13]=r*(f*m-d*p)-l*(n*m-o*p)+b*(n*d-o*f),t[14]=-(r*(i*m-u*p)-s*(n*m-o*p)+b*(n*u-o*i)),t[15]=r*(i*d-u*f)-s*(n*d-o*f)+l*(n*u-o*i),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},determinant:function(t){const e=t[0],r=t[1],n=t[2],o=t[3],a=t[4],s=t[5],i=t[6],u=t[7],c=t[8],l=t[9],f=t[10],d=t[11],h=t[12],b=t[13],p=t[14],m=t[15];return(e*s-r*a)*(f*m-d*p)-(e*i-n*a)*(l*m-d*b)+(e*u-o*a)*(l*p-f*b)+(r*i-n*s)*(c*m-d*h)-(r*u-o*s)*(c*p-f*h)+(n*u-o*i)*(c*b-l*h)},equals:O,exactEquals:M,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const r=e[0],n=e[1],o=e[2],a=e[3],s=r+r,i=n+n,u=o+o,c=r*s,l=n*s,f=n*i,d=o*s,h=o*i,b=o*u,p=a*s,m=a*i,g=a*u;return t[0]=1-f-b,t[1]=l+g,t[2]=d-m,t[3]=0,t[4]=l-g,t[5]=1-c-b,t[6]=h+p,t[7]=0,t[8]=d+m,t[9]=h-p,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const r=g,n=-e[0],o=-e[1],a=-e[2],s=e[3],i=e[4],u=e[5],c=e[6],l=e[7],f=n*n+o*o+a*a+s*s;return f>0?(r[0]=2*(i*s+l*n+u*a-c*o)/f,r[1]=2*(u*s+l*o+c*n-i*a)/f,r[2]=2*(c*s+l*a+i*o-u*n)/f):(r[0]=2*(i*s+l*n+u*a-c*o),r[1]=2*(u*s+l*o+c*n-i*a),r[2]=2*(c*s+l*a+i*o-u*n)),m(t,e,r),t},fromRotation:b,fromRotationTranslation:m,fromRotationTranslationScale:y,fromRotationTranslationScaleOrigin:function(t,e,r,n,o){const a=e[0],s=e[1],i=e[2],u=e[3],c=a+a,l=s+s,f=i+i,d=a*c,h=a*l,b=a*f,p=s*l,m=s*f,g=i*f,y=u*c,w=u*l,M=u*f,O=n[0],T=n[1],A=n[2],v=o[0],C=o[1],I=o[2],E=(1-(p+g))*O,S=(h+M)*O,U=(b-w)*O,L=(h-M)*T,R=(1-(d+g))*T,q=(m+y)*T,P=(b+w)*A,x=(m-y)*A,F=(1-(d+p))*A;return t[0]=E,t[1]=S,t[2]=U,t[3]=0,t[4]=L,t[5]=R,t[6]=q,t[7]=0,t[8]=P,t[9]=x,t[10]=F,t[11]=0,t[12]=r[0]+v-(E*v+L*C+P*I),t[13]=r[1]+C-(S*v+R*C+x*I),t[14]=r[2]+I-(U*v+q*C+F*I),t[15]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:h,fromXRotation:p,fromYRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,r,n,o,a,s){const i=1/(r-e),u=1/(o-n),c=1/(a-s);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*u,t[6]=0,t[7]=0,t[8]=(r+e)*i,t[9]=(o+n)*u,t[10]=(s+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*a*2*c,t[15]=0,t},getRotation:function(t,e){const r=e[0]+e[5]+e[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),t[3]=.25*n,t[0]=(e[6]-e[9])/n,t[1]=(e[8]-e[2])/n,t[2]=(e[1]-e[4])/n):e[0]>e[5]&&e[0]>e[10]?(n=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/n,t[0]=.25*n,t[1]=(e[1]+e[4])/n,t[2]=(e[8]+e[2])/n):e[5]>e[10]?(n=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/n,t[0]=(e[1]+e[4])/n,t[1]=.25*n,t[2]=(e[6]+e[9])/n):(n=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/n,t[0]=(e[8]+e[2])/n,t[1]=(e[6]+e[9])/n,t[2]=.25*n),t},getScaling:function(t,e){const r=e[0],n=e[1],o=e[2],a=e[4],s=e[5],i=e[6],u=e[8],c=e[9],l=e[10];return t[0]=Math.sqrt(r*r+n*n+o*o),t[1]=Math.sqrt(a*a+s*s+i*i),t[2]=Math.sqrt(u*u+c*c+l*l),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:A,identity:s,invert:u,invertOrIdentity:function(t,e){return u(t,e)||s(t),t},isOrthoNormal:T,lookAt:function(t,e,r,n){const a=e[0],i=e[1],u=e[2];let c=a-r[0],l=i-r[1],f=u-r[2];const d=(0,o.g)();if(Math.abs(c)<d&&Math.abs(l)<d&&Math.abs(f)<d)return void s(t);let h=1/Math.sqrt(c*c+l*l+f*f);c*=h,l*=h,f*=h;const b=n[0],p=n[1],m=n[2];let g=p*f-m*l,y=m*c-b*f,w=b*l-p*c;h=Math.sqrt(g*g+y*y+w*w),h?(h=1/h,g*=h,y*=h,w*=h):(g=0,y=0,w=0);let M=l*w-f*y,O=f*g-c*w,T=c*y-l*g;h=Math.sqrt(M*M+O*O+T*T),h?(h=1/h,M*=h,O*=h,T*=h):(M=0,O=0,T=0),t[0]=g,t[1]=M,t[2]=c,t[3]=0,t[4]=y,t[5]=O,t[6]=l,t[7]=0,t[8]=w,t[9]=T,t[10]=f,t[11]=0,t[12]=-(g*a+y*i+w*u),t[13]=-(M*a+O*i+T*u),t[14]=-(c*a+l*i+f*u),t[15]=1},mul:v,multiply:c,multiplyScalar:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t},ortho:function(t,e,r,n,o,a,s){const i=1/(e-r),u=1/(n-o),c=1/(a-s);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*i,t[13]=(o+n)*u,t[14]=(s+a)*c,t[15]=1,t},perspective:function(t,e,r,n,o){const a=1/Math.tan(e/2);let s;return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(s=1/(n-o),t[10]=(o+n)*s,t[14]=2*o*n*s):(t[10]=-1,t[14]=-2*n),t},perspectiveFromFieldOfView:function(t,e,r,n){const o=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),u=2/(s+i),c=2/(o+a);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(s-i)*u*.5,t[9]=(o-a)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t},rotate:d,rotateX:function(t,e,r){const n=Math.sin(r),o=Math.cos(r),a=e[4],s=e[5],i=e[6],u=e[7],c=e[8],l=e[9],f=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*o+c*n,t[5]=s*o+l*n,t[6]=i*o+f*n,t[7]=u*o+d*n,t[8]=c*o-a*n,t[9]=l*o-s*n,t[10]=f*o-i*n,t[11]=d*o-u*n,t},rotateY:function(t,e,r){const n=Math.sin(r),o=Math.cos(r),a=e[0],s=e[1],i=e[2],u=e[3],c=e[8],l=e[9],f=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o-c*n,t[1]=s*o-l*n,t[2]=i*o-f*n,t[3]=u*o-d*n,t[8]=a*n+c*o,t[9]=s*n+l*o,t[10]=i*n+f*o,t[11]=u*n+d*o,t},rotateZ:function(t,e,r){const n=Math.sin(r),o=Math.cos(r),a=e[0],s=e[1],i=e[2],u=e[3],c=e[4],l=e[5],f=e[6],d=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o+c*n,t[1]=s*o+l*n,t[2]=i*o+f*n,t[3]=u*o+d*n,t[4]=c*o-a*n,t[5]=l*o-s*n,t[6]=f*o-i*n,t[7]=d*o-u*n,t},scale:f,set:a,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:C,subtract:w,targetTo:function(t,e,r,n){const o=e[0],a=e[1],s=e[2],i=n[0],u=n[1],c=n[2];let l=o-r[0],f=a-r[1],d=s-r[2],h=l*l+f*f+d*d;h>0&&(h=1/Math.sqrt(h),l*=h,f*=h,d*=h);let b=u*d-c*f,p=c*l-i*d,m=i*f-u*l;return h=b*b+p*p+m*m,h>0&&(h=1/Math.sqrt(h),b*=h,p*=h,m*=h),t[0]=b,t[1]=p,t[2]=m,t[3]=0,t[4]=f*m-d*p,t[5]=d*b-l*m,t[6]=l*p-f*b,t[7]=0,t[8]=l,t[9]=f,t[10]=d,t[11]=0,t[12]=o,t[13]=a,t[14]=s,t[15]=1,t},translate:l,transpose:i},Symbol.toStringTag,{value:"Module"}))},51305:(t,e,r)=>{r.d(e,{c:()=>h,g:()=>l,j:()=>S,k:()=>p,m:()=>f,s:()=>c});var n=r(46521),o=r(94961),a=r(65617),s=r(46851),i=r(17896),u=r(98766);function c(t,e,r){r*=.5;const n=Math.sin(r);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(r),t}function l(t,e){const r=2*Math.acos(e[3]),n=Math.sin(r/2);return n>(0,s.g)()?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r}function f(t,e,r){const n=e[0],o=e[1],a=e[2],s=e[3],i=r[0],u=r[1],c=r[2],l=r[3];return t[0]=n*l+s*i+o*c-a*u,t[1]=o*l+s*u+a*i-n*c,t[2]=a*l+s*c+n*u-o*i,t[3]=s*l-n*i-o*u-a*c,t}function d(t,e,r,n){const o=e[0],a=e[1],i=e[2],u=e[3];let c,l,f,d,h,b=r[0],p=r[1],m=r[2],g=r[3];return l=o*b+a*p+i*m+u*g,l<0&&(l=-l,b=-b,p=-p,m=-m,g=-g),1-l>(0,s.g)()?(c=Math.acos(l),f=Math.sin(c),d=Math.sin((1-n)*c)/f,h=Math.sin(n*c)/f):(d=1-n,h=n),t[0]=d*o+h*b,t[1]=d*a+h*p,t[2]=d*i+h*m,t[3]=d*u+h*g,t}function h(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function b(t,e){const r=e[0]+e[4]+e[8];let n;if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);const o=(r+1)%3,a=(r+2)%3;n=Math.sqrt(e[3*r+r]-e[3*o+o]-e[3*a+a]+1),t[r]=.5*n,n=.5/n,t[3]=(e[3*o+a]-e[3*a+o])*n,t[o]=(e[3*o+r]+e[3*r+o])*n,t[a]=(e[3*a+r]+e[3*r+a])*n}return t}function p(t,e,r,n){const o=.5*Math.PI/180;e*=o,r*=o,n*=o;const a=Math.sin(e),s=Math.cos(e),i=Math.sin(r),u=Math.cos(r),c=Math.sin(n),l=Math.cos(n);return t[0]=a*u*l-s*i*c,t[1]=s*i*l+a*u*c,t[2]=s*u*c-a*i*l,t[3]=s*u*l+a*i*c,t}const m=u.c,g=u.s,y=u.a,w=f,M=u.b,O=u.d,T=u.l,A=u.e,v=A,C=u.f,I=C,E=u.n,S=u.g,U=u.h,L=(0,a.c)(),R=(0,a.f)(1,0,0),q=(0,a.f)(0,1,0),P=(0,o.a)(),x=(0,o.a)(),F=(0,n.c)();Object.freeze(Object.defineProperty({__proto__:null,add:y,calculateW:function(t,e){const r=e[0],n=e[1],o=e[2];return t[0]=r,t[1]=n,t[2]=o,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-o*o)),t},conjugate:h,copy:m,dot:O,equals:U,exactEquals:S,fromEuler:p,fromMat3:b,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const r=e[0],n=e[1],o=e[2],a=e[3],s=r*r+n*n+o*o+a*a,i=s?1/s:0;return t[0]=-r*i,t[1]=-n*i,t[2]=-o*i,t[3]=a*i,t},len:v,length:A,lerp:T,mul:w,multiply:f,normalize:E,random:function(t){const e=s.R,r=e(),n=e(),o=e(),a=Math.sqrt(1-r),i=Math.sqrt(r);return t[0]=a*Math.sin(2*Math.PI*n),t[1]=a*Math.cos(2*Math.PI*n),t[2]=i*Math.sin(2*Math.PI*o),t[3]=i*Math.cos(2*Math.PI*o),t},rotateX:function(t,e,r){r*=.5;const n=e[0],o=e[1],a=e[2],s=e[3],i=Math.sin(r),u=Math.cos(r);return t[0]=n*u+s*i,t[1]=o*u+a*i,t[2]=a*u-o*i,t[3]=s*u-n*i,t},rotateY:function(t,e,r){r*=.5;const n=e[0],o=e[1],a=e[2],s=e[3],i=Math.sin(r),u=Math.cos(r);return t[0]=n*u-a*i,t[1]=o*u+s*i,t[2]=a*u+n*i,t[3]=s*u-o*i,t},rotateZ:function(t,e,r){r*=.5;const n=e[0],o=e[1],a=e[2],s=e[3],i=Math.sin(r),u=Math.cos(r);return t[0]=n*u+o*i,t[1]=o*u-n*i,t[2]=a*u+s*i,t[3]=s*u-a*i,t},rotationTo:function(t,e,r){const n=(0,i.e)(e,r);return n<-.999999?((0,i.f)(L,R,e),(0,i.u)(L)<1e-6&&(0,i.f)(L,q,e),(0,i.n)(L,L),c(t,L,Math.PI),t):n>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,i.f)(L,e,r),t[0]=L[0],t[1]=L[1],t[2]=L[2],t[3]=1+n,E(t,t))},scale:M,set:g,setAxes:function(t,e,r,n){const o=F;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=n[0],o[4]=n[1],o[7]=n[2],o[2]=-e[0],o[5]=-e[1],o[8]=-e[2],E(t,b(t,o))},setAxisAngle:c,slerp:d,sqlerp:function(t,e,r,n,o,a){return d(P,e,o,a),d(x,r,n,a),d(t,P,x,2*a*(1-a)),t},sqrLen:I,squaredLength:C,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},37140:(t,e,r)=>{function n(){const t=new Float32Array(4);return t[3]=1,t}function o(t){const e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}r.d(e,{b:()=>o,c:()=>n}),Object.freeze(Object.defineProperty({__proto__:null,clone:o,create:n,createView:function(t,e){return new Float32Array(t,e,4)},fromValues:function(t,e,r,n){const o=new Float32Array(4);return o[0]=t,o[1]=e,o[2]=r,o[3]=n,o}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,r)=>{function n(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}function a(t,e){return new Float64Array(t,e,4)}r.d(e,{I:()=>s,a:()=>n,b:()=>o,c:()=>a});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:n,createView:a,fromValues:function(t,e,r,n){return[t,e,r,n]}},Symbol.toStringTag,{value:"Module"}))},72119:(t,e,r)=>{function n(){return new Float32Array(3)}function o(t){const e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t,e,r){const n=new Float32Array(3);return n[0]=t,n[1]=e,n[2]=r,n}function s(){return n()}function i(){return a(1,1,1)}function u(){return a(1,0,0)}function c(){return a(0,1,0)}function l(){return a(0,0,1)}r.d(e,{b:()=>o,c:()=>n,f:()=>a});const f=s(),d=i(),h=u(),b=c(),p=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:h,UNIT_Y:b,UNIT_Z:p,ZEROS:f,clone:o,create:n,createView:function(t,e){return new Float32Array(t,e,3)},fromValues:a,ones:i,unitX:u,unitY:c,unitZ:l,zeros:s},Symbol.toStringTag,{value:"Module"}))},10661:(t,e,r)=>{r.d(e,{s:()=>o});var n=r(42100);class o extends n.s{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},3172:(t,e,r)=>{r.r(e),r.d(e,{default:()=>h});var n=r(68773),o=r(40330),a=r(20102),s=r(80442),i=r(22974),u=r(95330),c=r(81271),l=r(19745),f=r(71058),d=r(85958);async function h(t,e){t instanceof URL&&(t=t.toString()),e?.query instanceof URLSearchParams&&(e.query=(0,c.u0)(e.query.toString().replaceAll("+"," ")));const i=(0,c.HK)(t),l=(0,c.jc)(t);l||i||(t=(0,c.Fv)(t));const g={url:t,requestOptions:{...e}};let y=(0,c.oh)(t);if(y){const t=await async function(t,e){if(null!=t.responseData)return t.responseData;if(t.headers&&(e.requestOptions.headers={...e.requestOptions.headers,...t.headers}),t.query&&(e.requestOptions.query={...e.requestOptions.query,...t.query}),t.before){let r,n;try{n=await t.before(e)}catch(t){r=A("request:interceptor",t,e)}if((n instanceof Error||n instanceof a.Z)&&(r=A("request:interceptor",n,e)),r)throw t.error&&t.error(r),r;return n}}(y,g);if(null!=t)return{data:t,getHeader:M,httpStatus:200,requestOptions:g.requestOptions,url:g.url};y.after||y.error||(y=null)}if(t=g.url,"image"===(e=g.requestOptions).responseType&&((0,s.Z)("host-webworker")||(0,s.Z)("host-node")))throw A("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),g);if("head"===e.method){if(e.body)throw A("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),g);if(i||l)throw A("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),g)}if(await async function(){(0,s.Z)("host-webworker")?b||(b=await r.e(9884).then(r.bind(r,29884))):h._abortableFetch||(h._abortableFetch=globalThis.fetch.bind(globalThis))}(),b)return b.execute(t,e);const w=new AbortController;(0,u.fu)(e,(()=>w.abort()));const O={controller:w,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:y,params:g,redoRequest:!1,useIdentity:p.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},T=await async function(t){let e,r;await async function(t){const e=t.params.url,r=t.params.requestOptions,a=t.controller.signal,s=r.body;let i=null,c=null;if(m&&"HTMLFormElement"in globalThis&&(s instanceof FormData?i=s:s instanceof HTMLFormElement&&(i=new FormData(s))),"string"==typeof s&&(c=s),t.fetchOptions={cache:r.cacheBust&&!("polyfill"in h._abortableFetch)?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:p.priority,redirect:"follow",signal:a},(i||c)&&(t.fetchOptions.body=i||c),"anonymous"===r.authMode&&(t.useIdentity=!1),t.hasToken=!!(/token=/i.test(e)||r.query?.token||i?.get("token")),!t.hasToken&&n.default.apiKey&&(0,f.r)(e)&&(r.query||(r.query={}),r.query.token=n.default.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credentialToken&&!C(e)&&!(0,u.Hc)(a)){let n;"immediate"===r.authMode?(await v(),n=await o.id.getCredential(e,{signal:a}),t.credential=n):"no-prompt"===r.authMode?(await v(),n=await o.id.getCredential(e,{prompt:!1,signal:a}).catch((()=>{})),t.credential=n):o.id&&(n=o.id.findCredential(e)),n&&(t.credentialToken=n.token,t.useSSL=!!n.ssl)}}(t);try{do{[e,r]=await I(t)}while(!await S(t,e,r))}catch(r){const n=A("request:server",r,t.params,e);throw n.details.ssl=t.useSSL,t.interceptor?.error&&t.interceptor.error(n),n}const a=t.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!t.hasToken&&!t.credentialToken&&r.user?.username&&!(0,c.kl)(a)){const t=(0,c.P$)(a,!0);t&&p.trustedServers.push(t)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,d.Hu)(r.authorizedCrossOriginNoCorsDomains)}const s=t.credential;if(s&&o.id){const t=o.id.findServerInfo(s.server);let e=t?.owningSystemUrl;if(e){e=e.replace(/\/?$/,"/sharing");const t=o.id.findCredential(e,s.userId);t&&-1===o.id._getIdenticalSvcIdx(e,t)&&t.resources.unshift(e)}}return{data:r,getHeader:e?t=>e?.headers.get(t):M,httpStatus:e?.status??200,requestOptions:t.params.requestOptions,ssl:t.useSSL,url:t.params.url}}(O);return y?.after?.(T),T}let b;const p=n.default.request,m="FormData"in globalThis,g=[499,498,403,401],y=["COM_0056","COM_0057","SB_0008"],w=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],M=()=>null,O=Symbol();function T(t){const e=(0,c.P$)(t);return!e||e.endsWith(".arcgis.com")||h._corsServers.includes(e)||(0,c.kl)(e)}function A(t,e,r,n){let o="Error";const s={url:r.url,requestOptions:r.requestOptions,getHeader:M,ssl:!1};if(e instanceof a.Z)return e.details?(e.details=(0,i.d9)(e.details),e.details.url=r.url,e.details.requestOptions=r.requestOptions):e.details=s,e;if(e){const t=n&&(t=>n.headers.get(t)),r=n?.status,a=e.message;a&&(o=a),t&&(s.getHeader=t),s.httpStatus=(null!=e.httpCode?e.httpCode:e.code)||r||0,s.subCode=e.subcode,s.messageCode=e.messageCode,"string"==typeof e.details?s.messages=[e.details]:s.messages=e.details,s.raw=O in e?e[O]:e}return(0,u.D_)(e)?(0,u.zE)():new a.Z(t,o,s)}async function v(){o.id||await Promise.all([r.e(7126),r.e(6261),r.e(9255),r.e(1400),r.e(450)]).then(r.bind(r,73660))}function C(t){return w.some((e=>e.test(t)))}async function I(t){let e=t.params.url;const r=t.params.requestOptions,n=t.fetchOptions??{},a=(0,c.jc)(e)||(0,c.HK)(e),i=r.responseType||"json",f=a?0:null!=r.timeout?r.timeout:p.timeout;let b=!1;if(!a){t.useSSL&&(e=(0,c.hO)(e)),r.cacheBust&&"default"===n.cache&&(e=(0,c.ZN)(e,"request.preventCache",Date.now()));let a={...r.query};t.credentialToken&&(a.token=t.credentialToken);let i=(0,c.B7)(a);(0,s.Z)("esri-url-encodes-apostrophe")&&(i=i.replaceAll("'","%27"));const u=e.length+1+i.length;let f;b="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||u>p.maxUrlLength;const h=r.useProxy||!!(0,c.ed)(e);if(h){const t=(0,c.b7)(e);f=t.path,!b&&f.length+1+u>p.maxUrlLength&&(b=!0),t.query&&(a={...t.query,...a})}if("HEAD"===n.method&&(b||h)){if(b){if(u>p.maxUrlLength)throw A("request:invalid-parameters",new Error("URL exceeds maximum length"),t.params);throw A("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),t.params)}if(h)throw A("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),t.params)}if(b?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?e=(0,c.fl)(e,a):(n.body=(0,c.B7)(a),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):e=(0,c.fl)(e,a),h&&(t.useProxy=!0,e=`${f}?${e}`),a.token&&m&&n.body instanceof FormData&&!(0,l.P)(e)&&n.body.set("token",a.token),r.hasOwnProperty("withCredentials"))t.withCredentials=r.withCredentials;else if(!(0,c.D6)(e,(0,c.TI)()))if((0,c.kl)(e))t.withCredentials=!0;else if(o.id){const r=o.id.findServerInfo(e);r?.webTierAuth&&(t.withCredentials=!0)}t.withCredentials&&(n.credentials="include",(0,d.jH)(e)&&await(0,d.jz)(b?(0,c.fl)(e,a):e))}let g,y,w=0,M=!1;f>0&&(w=setTimeout((()=>{M=!0,t.controller.abort()}),f));try{if("native-request-init"===r.responseType)y=n,y.url=e;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||b||function(t){if(t)for(const e of Object.getOwnPropertyNames(t))if(t[e])return!0;return!1}(r.headers)||!a&&!t.useProxy&&p.proxyUrl&&!T(e)){if(g=await h._abortableFetch(e,n),t.useProxy||function(t){const e=(0,c.P$)(t);e&&!h._corsServers.includes(e)&&h._corsServers.push(e)}(e),"native"===r.responseType)y=g;else if("HEAD"!==n.method)if(g.ok){switch(i){case"array-buffer":y=await g.arrayBuffer();break;case"blob":case"image":y=await g.blob();break;default:y=await g.text()}if(w&&(clearTimeout(w),w=0),"json"===i||"xml"===i||"document"===i)if(y)switch(i){case"json":y=JSON.parse(y);break;case"xml":y=E(y,"application/xml");break;case"document":y=E(y,"text/html")}else y=null;if(y){if("array-buffer"===i||"blob"===i){const t=g.headers.get("Content-Type");if(t&&/application\/json|text\/plain/i.test(t)&&y["blob"===i?"size":"byteLength"]<=750)try{const t=await new Response(y).json();t.error&&(y=t)}catch{}}"image"===i&&y instanceof Blob&&(y=await U(URL.createObjectURL(y),t,!0))}}else{y=await g.text();try{y=JSON.parse(y)}catch{}}}else y=await U(e,t)}catch(n){if("AbortError"===n.name){if(M)throw(0,d.Tf)();throw(0,u.zE)("Request canceled")}if(!(!g&&n instanceof TypeError&&p.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||t.useProxy||T(e))throw n;t.redoRequest=!0,(0,c.tD)({proxyUrl:p.proxyUrl,urlPrefix:(0,c.P$)(e)??""})}finally{w&&clearTimeout(w)}return[g,y]}function E(t,e){let r;try{r=(new DOMParser).parseFromString(t,e)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function S(t,e,r){if(t.redoRequest)return t.redoRequest=!1,!1;const n=t.params.requestOptions;if(!e||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let a,s;if(r&&(r.error?a=r.error:"error"===r.status&&Array.isArray(r.messages)&&(a={...r},a[O]=r,a.details=r.messages)),!a&&!e.ok)throw a=new Error(`Unable to load ${e.url} status: ${e.status}`),a[O]=r,a;let i,u=null;a&&(s=Number(a.code),u=a.hasOwnProperty("subcode")?Number(a.subcode):null,i=a.messageCode,i=i?.toUpperCase());const c=n.authMode;if(403===s&&(4===u||a.message?.toLowerCase().includes("ssl")&&!a.message.toLowerCase().includes("permission"))){if(!t.useSSL)return t.useSSL=!0,!1}else if(!t.hasToken&&t.useIdentity&&("no-prompt"!==c||498===s)&&void 0!==s&&g.includes(s)&&!C(t.params.url)&&(403!==s||i&&!y.includes(i)&&(null==u||2===u&&t.credentialToken))){await v();try{const e=await o.id.getCredential(t.params.url,{error:A("request:server",a,t.params),prompt:"no-prompt"!==c,signal:t.controller.signal,token:t.credentialToken});return t.credential=e,t.credentialToken=e.token,t.useSSL=t.useSSL||e.ssl,!1}catch(e){if("no-prompt"===c)return t.credential=void 0,t.credentialToken=void 0,!1;a=e}}if(a)throw a;return!0}function U(t,e,r=!1){const n=e.controller.signal,o=new Image;return e.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=p.priority,o.src=t,(0,d.fY)(o,t,r,n)}h._abortableFetch=null,h._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(t,e,r)=>{r.d(e,{r:()=>a});var n=r(81271);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function a(t){const e=(0,n.P$)(t,!0);return!!e&&e.endsWith(".arcgis.com")&&!o.includes(e)&&!t.endsWith("/sharing/rest/generateToken")}},85958:(t,e,r)=>{r.d(e,{Hu:()=>f,Tf:()=>l,fY:()=>i,jH:()=>d,jz:()=>h});var n=r(68773),o=r(80442),a=r(95330),s=r(81271);function i(t,e,r=!1,n){return new Promise(((s,i)=>{if((0,a.Hc)(n))return void i(u());let c=()=>{d(),i(new Error(`Unable to load ${e}`))},l=()=>{const e=t;d(),s(e)},f=()=>{if(!t)return;const e=t;d(),e.src="",i(u())};const d=()=>{(0,o.Z)("esri-image-decode")||(t.removeEventListener("error",c),t.removeEventListener("load",l)),c=null,l=null,t=null,null!=n&&n.removeEventListener("abort",f),f=null,r&&URL.revokeObjectURL(e)};null!=n&&n.addEventListener("abort",f),(0,o.Z)("esri-image-decode")?t.decode().then(l,c):(t.addEventListener("error",c),t.addEventListener("load",l))}))}function u(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error;return t.name="AbortError",t}}const c="Timeout exceeded";function l(){return new Error(c)}function f(t){n.default.request.crossOriginNoCorsDomains||(n.default.request.crossOriginNoCorsDomains={});const e=n.default.request.crossOriginNoCorsDomains;for(let r of t)r=r.toLowerCase(),/^https?:\/\//.test(r)?e[(0,s.P$)(r)??""]=0:(e[(0,s.P$)("http://"+r)??""]=0,e[(0,s.P$)("https://"+r)??""]=0)}function d(t){const e=n.default.request.crossOriginNoCorsDomains;if(e){let r=(0,s.P$)(t);if(r)return r=r.toLowerCase(),!(0,s.D6)(r,(0,s.TI)())&&e[r]<Date.now()-36e5}return!1}async function h(t){const e=n.default.request.crossOriginNoCorsDomains,r=(0,s.P$)(t);e&&r&&(e[r.toLowerCase()]=Date.now());const o=(0,s.mN)(t);t=o.path,"json"===o.query?.f&&(t+="?f=json");try{await fetch(t,{mode:"no-cors",credentials:"include"})}catch{}}},90447:(t,e,r)=>{r.r(e),r.d(e,{default:()=>T});var n=r(67676),o=r(1533),a=r(51305),s=r(37140),i=r(17896),u=r(72119),c=r(44547),l=r(82971),f=(r(80442),r(23030)),d=r(14008),h=r(46329),b=r(91891),p=r(25683);function m(t,e,r){return null!=t&&t.attributeInfo.useElevation?e?function(t,e){const r=new Float64Array(e);for(let n=0;n<e;n++)r[n]=t[3*n+2];return r}(e,r):null:null!=t&&t.attributeInfo.storageInfo?(0,b.qM)(t.attributeInfo.storageInfo,t.buffer,r):null}function g(t,e,r,n,o){const a=t.length/3;let s=0;for(let i=0;i<a;i++){let a=!0;for(let t=0;t<n.length&&a;t++){const{filterJSON:e}=n[t],r=o[t].values[i];switch(e.type){case"pointCloudValueFilter":{const t="exclude"===e.mode;e.values.includes(r)===t&&(a=!1);break}case"pointCloudBitfieldFilter":{const t=w(e.requiredSetBits),n=w(e.requiredClearBits);(r&t)===t&&0==(r&n)||(a=!1);break}case"pointCloudReturnFilter":{const t=15&r,n=r>>>4&15,o=n>1,s=1===t,i=t===n;let u=!1;for(const t of e.includedReturns)if("last"===t&&i||"firstOfMany"===t&&s&&o||"lastOfMany"===t&&i&&o||"single"===t&&!o){u=!0;break}u||(a=!1);break}}}a&&(r[s]=i,t[3*s]=t[3*i],t[3*s+1]=t[3*i+1],t[3*s+2]=t[3*i+2],e[3*s]=e[3*i],e[3*s+1]=e[3*i+1],e[3*s+2]=e[3*i+2],s++)}return s}function y(t){switch(t){default:case null:case"none":return t=>t;case"low-four-bit":return t=>15&t;case"high-four-bit":return t=>(240&t)>>4;case"absolute-value":return t=>Math.abs(t);case"modulo-ten":return t=>t%10}}function w(t){let e=0;for(const r of t||[])e|=1<<r;return e}class M{transform(t){const e=this._transform(t),r=[e.points.buffer,e.rgb.buffer];null!=e.pointIdFilterMap&&r.push(e.pointIdFilterMap.buffer);for(const t of e.attributes)"buffer"in t.values&&(0,o.eP)(t.values.buffer)&&t.values.buffer!==e.rgb.buffer&&r.push(t.values.buffer);return Promise.resolve({result:e,transferList:r})}_transform(t){const e=function(t,e){if(null==t.encoding||""===t.encoding){const r=(0,b.W7)(e,t);if(null==r.vertexAttributes.position)return;const n=(0,b.I_)(e,r.vertexAttributes.position),o=r.header.fields,a=[o.offsetX,o.offsetY,o.offsetZ],s=[o.scaleX,o.scaleY,o.scaleZ],i=n.length/3,u=new Float64Array(3*i);for(let t=0;t<i;t++)u[3*t]=n[3*t]*s[0]+a[0],u[3*t+1]=n[3*t+1]*s[1]+a[1],u[3*t+2]=n[3*t+2]*s[2]+a[2];return u}if("lepcc-xyz"===t.encoding)return(0,p.Gi)(e).result}(t.schema,t.geometryBuffer);let r=e.length/3,o=null;const a=new Array,s=m(t.primaryAttributeData,e,r);null!=t.primaryAttributeData&&s&&a.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:s});const i=m(t.modulationAttributeData,e,r);null!=t.modulationAttributeData&&i&&a.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:i});let u=function(t,e,r,n){const{rendererJSON:o,isRGBRenderer:a}=t;let s=null,i=null;if(e&&a)s=e;else if(e&&"pointCloudUniqueValueRenderer"===o?.type){i=h.Z.fromJSON(o);const t=i.colorUniqueValueInfos;s=new Uint8Array(3*n);const r=y(i.fieldTransformType);for(let o=0;o<n;o++){const n=(r?r(e[o]):e[o])+"";for(let e=0;e<t.length;e++)if(t[e].values.includes(n)){s[3*o]=t[e].color.r,s[3*o+1]=t[e].color.g,s[3*o+2]=t[e].color.b;break}}}else if(e&&"pointCloudStretchRenderer"===o?.type){i=d.Z.fromJSON(o);const t=i.stops;s=new Uint8Array(3*n);const r=y(i.fieldTransformType);for(let o=0;o<n;o++){const n=r?r(e[o]):e[o],a=t.length-1;if(n<t[0].value)s[3*o]=t[0].color.r,s[3*o+1]=t[0].color.g,s[3*o+2]=t[0].color.b;else if(n>=t[a].value)s[3*o]=t[a].color.r,s[3*o+1]=t[a].color.g,s[3*o+2]=t[a].color.b;else for(let e=1;e<t.length;e++)if(n<t[e].value){const r=(n-t[e-1].value)/(t[e].value-t[e-1].value);s[3*o]=t[e].color.r*r+t[e-1].color.r*(1-r),s[3*o+1]=t[e].color.g*r+t[e-1].color.g*(1-r),s[3*o+2]=t[e].color.b*r+t[e-1].color.b*(1-r);break}}}else if(e&&"pointCloudClassBreaksRenderer"===o?.type){i=f.Z.fromJSON(o);const t=i.colorClassBreakInfos;s=new Uint8Array(3*n);const r=y(i.fieldTransformType);for(let o=0;o<n;o++){const n=r?r(e[o]):e[o];for(let e=0;e<t.length;e++)if(n>=t[e].minValue&&n<=t[e].maxValue){s[3*o]=t[e].color.r,s[3*o+1]=t[e].color.g,s[3*o+2]=t[e].color.b;break}}}else s=new Uint8Array(3*n).fill(255);if(r&&i&&i.colorModulation){const t=i.colorModulation.minValue,e=i.colorModulation.maxValue,o=.3;for(let a=0;a<n;a++){const n=r[a],i=n>=e?1:n<=t?o:o+(1-o)*(n-t)/(e-t);s[3*a]=i*s[3*a],s[3*a+1]=i*s[3*a+1],s[3*a+2]=i*s[3*a+2]}}return s}(t.rendererInfo,s,i,r);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){const s=t.filterAttributesData.filter(n.pC).map((t=>{const n=m(t,e,r),o={attributeInfo:t.attributeInfo,values:n};return a.push(o),o}));o=new Uint32Array(r),r=g(e,u,o,t.filterInfo,s)}for(const n of t.userAttributesData){const t=m(n,e,r);a.push({attributeInfo:n.attributeInfo,values:t})}3*r<u.length&&(u=new Uint8Array(u.buffer.slice(0,3*r))),this._applyElevationOffsetInPlace(e,r,t.elevationOffset);const c=this._transformCoordinates(e,r,t.obb,l.Z.fromJSON(t.inSR),l.Z.fromJSON(t.outSR));return{obb:t.obb,points:c,rgb:u,attributes:a,pointIdFilterMap:o}}_transformCoordinates(t,e,r,n,o){if(!(0,c.projectBuffer)(t,n,0,t,o,0,e))throw new Error("Can't reproject");const s=(0,u.f)(r.center[0],r.center[1],r.center[2]),l=(0,u.c)(),f=(0,u.c)();(0,a.c)(O,r.quaternion);const d=new Float32Array(3*e);for(let n=0;n<e;n++)l[0]=t[3*n]-s[0],l[1]=t[3*n+1]-s[1],l[2]=t[3*n+2]-s[2],(0,i.q)(f,l,O),r.halfSize[0]=Math.max(r.halfSize[0],Math.abs(f[0])),r.halfSize[1]=Math.max(r.halfSize[1],Math.abs(f[1])),r.halfSize[2]=Math.max(r.halfSize[2],Math.abs(f[2])),d[3*n]=l[0],d[3*n+1]=l[1],d[3*n+2]=l[2];return d}_applyElevationOffsetInPlace(t,e,r){if(0!==r)for(let n=0;n<e;n++)t[3*n+2]+=r}}const O=(0,s.c)();function T(){return new M}},91891:(t,e,r)=>{r.d(e,{I_:()=>d,W7:()=>p,qM:()=>g});var n=r(20102),o=r(22974),a=r(92604),s=r(25683),i=r(35065);const u=a.Z.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function c(t,e,r){let o="",a=0;for(;a<r;){const s=t[e+a];if(s<128)o+=String.fromCharCode(s),a++;else if(s>=192&&s<224){if(a+1>=r)throw new n.Z("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const i=(31&s)<<6|63&t[e+a+1];o+=String.fromCharCode(i),a+=2}else if(s>=224&&s<240){if(a+2>=r)throw new n.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const i=(15&s)<<12|(63&t[e+a+1])<<6|63&t[e+a+2];o+=String.fromCharCode(i),a+=3}else{if(!(s>=240&&s<248))throw new n.Z("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(a+3>=r)throw new n.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const i=(7&s)<<18|(63&t[e+a+1])<<12|(63&t[e+a+2])<<6|63&t[e+a+3];if(i>=65536){const t=55296+(i-65536>>10),e=56320+(1023&i);o+=String.fromCharCode(t,e)}else o+=String.fromCharCode(i);a+=4}}}return o}function l(t,e){const r={byteOffset:0,byteCount:0,fields:Object.create(null)};let n=0;for(let o=0;o<e.length;o++){const a=e[o],s=a.valueType||a.type,i=w[s];r.fields[a.property]=i(t,n),n+=y[s].BYTES_PER_ELEMENT}return r.byteCount=n,r}function f(t,e,r){const o=[];let a,s,i=0;for(s=0;s<t;s+=1){if(a=e[s],a>0){if(o.push(c(r,i,a-1)),0!==r[i+a-1])throw new n.Z("string-array-error","Invalid string array: missing null termination.")}else o.push(null);i+=a}return o}function d(t,e){return new(0,y[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function h(t,e,r){const a=null!=e.header?l(t,e.header):{byteOffset:0,byteCount:0,fields:{count:r}},s={header:a,byteOffset:a.byteCount,byteCount:0,entries:Object.create(null)};let i=a.byteCount;for(let t=0;t<e.ordering.length;t++){const r=e.ordering[t],u=(0,o.d9)(e[r]);if(u.count=a.fields.count??0,"String"===u.valueType){if(u.byteOffset=i,u.byteCount=a.fields[r+"ByteCount"],"UTF-8"!==u.encoding)throw new n.Z("unsupported-encoding","Unsupported String encoding.",{encoding:u.encoding});if(u.timeEncoding&&"ECMA_ISO8601"!==u.timeEncoding)throw new n.Z("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:u.timeEncoding})}else{if(!M(u.valueType))throw new n.Z("unsupported-value-type","Unsupported binary valueType",{valueType:u.valueType});{const t=O(u.valueType);i+=i%t!=0?t-i%t:0,u.byteOffset=i,u.byteCount=t*u.valuesPerElement*u.count}}i+=u.byteCount??0,s.entries[r]=u}return s.byteCount=i-s.byteOffset,s}function b(t,e,r){if(e!==t&&u.error(`Invalid ${r} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new n.Z("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}function p(t,e){const r=l(t,e&&e.header);let n=r.byteCount;const o={isDraco:!1,header:r,byteOffset:r.byteCount,byteCount:0,vertexAttributes:{}},a=r.fields,s=null!=a.vertexCount?a.vertexCount:a.count;for(const t of e.ordering){if(!e.vertexAttributes[t])continue;const r={...e.vertexAttributes[t],byteOffset:n,count:s},a=m[t]||"_"+t;o.vertexAttributes[a]=r,n+=O(r.valueType)*r.valuesPerElement*s}const i=a.faceCount;if(e.faces&&i){o.faces={};for(const t of e.ordering){if(!e.faces[t])continue;const r={...e.faces[t],byteOffset:n,count:i};o.faces[t]=r,n+=O(r.valueType)*r.valuesPerElement*i}}const u=a.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&u){o.featureAttributes={};for(const t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;const r={...e.featureAttributes[t],byteOffset:n,count:u};o.featureAttributes[t]=r,n+=("UInt64"===r.valueType?8:O(r.valueType))*r.valuesPerElement*u}}return b(n,t.byteLength,"geometry"),o.byteCount=n-o.byteOffset,o}const m={position:i.T.POSITION,normal:i.T.NORMAL,color:i.T.COLOR,uv0:i.T.UV0,region:i.T.UVREGION};function g(t,e,r){if("lepcc-rgb"===t.encoding)return(0,s.IT)(e);if("lepcc-intensity"===t.encoding)return(0,s.ti)(e);if(null!=t.encoding&&""!==t.encoding)throw new n.Z("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(u.warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(u.warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");const o=h(e,t,r);b(o.byteOffset+o.byteCount,e.byteLength,"attribute");const a=o.entries.attributeValues||o.entries.objectIds;if(a){if("String"===a.valueType){const t=o.entries.attributeByteCounts,r=d(e,t),n=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,a);return a.timeEncoding?function(t,e,r){return f(t,e,r).map((t=>{const e=t?Date.parse(t):null;return e&&!Number.isNaN(e)?e:null}))}(t.count,r,n):f(t.count,r,n)}return d(e,a)}throw new n.Z("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},w={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function M(t){return y.hasOwnProperty(t)}function O(t){return M(t)?y[t].BYTES_PER_ELEMENT:0}},25683:(t,e,r)=>{r.d(e,{Gi:()=>c,IT:()=>b,ti:()=>g});var n=r(20102);const o=!0,a={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function s(t,e,r){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,r+a.identifierOffset,a.identifierLength)),version:e.getUint16(r+a.versionOffset,o),checksum:e.getUint32(r+a.checksumOffset,o)}}const i={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function u(t,e){return{sizeLo:t.getUint32(e+i.sizeLo,o),sizeHi:t.getUint32(e+i.sizeHi,o),minX:t.getFloat64(e+i.minX,o),minY:t.getFloat64(e+i.minY,o),minZ:t.getFloat64(e+i.minZ,o),maxX:t.getFloat64(e+i.maxX,o),maxY:t.getFloat64(e+i.maxY,o),maxZ:t.getFloat64(e+i.maxZ,o),errorX:t.getFloat64(e+i.errorX,o),errorY:t.getFloat64(e+i.errorY,o),errorZ:t.getFloat64(e+i.errorZ,o),count:t.getUint32(e+i.count,o),reserved:t.getUint32(e+i.reserved,o)}}function c(t){const e=new DataView(t,0);let r=0;const{identifier:o,version:c}=s(t,e,r);if(r+=a.byteCount,"LEPCC "!==o)throw new n.Z("lepcc-decode-error","Bad identifier");if(c>1)throw new n.Z("lepcc-decode-error","Unknown version");const f=u(e,r);if(r+=i.byteCount,f.sizeHi*2**32+f.sizeLo!==t.byteLength)throw new n.Z("lepcc-decode-error","Bad size");const d=new Float64Array(3*f.count),h=[],b=[],p=[],m=[];if(r=l(t,r,h),r=l(t,r,b),r=l(t,r,p),r=l(t,r,m),r!==t.byteLength)throw new n.Z("lepcc-decode-error","Bad length");let g=0,y=0;for(let t=0;t<h.length;t++){y+=h[t];let e=0;for(let r=0;r<b[t];r++){e+=p[g];const t=m[g];d[3*g]=Math.min(f.maxX,f.minX+2*f.errorX*e),d[3*g+1]=Math.min(f.maxY,f.minY+2*f.errorY*y),d[3*g+2]=Math.min(f.maxZ,f.minZ+2*f.errorZ*t),g++}}return{errorX:f.errorX,errorY:f.errorY,errorZ:f.errorZ,result:d}}function l(t,e,r){const n=[];e=f(t,e,n);const o=[];for(let a=0;a<n.length;a++){o.length=0,e=f(t,e,o);for(let t=0;t<o.length;t++)r.push(o[t]+n[a])}return e}function f(t,e,r){const a=new DataView(t,e),s=a.getUint8(0),i=31&s,u=!!(32&s),c=(192&s)>>6;let l=0;if(0===c)l=a.getUint32(1,o),e+=5;else if(1===c)l=a.getUint16(1,o),e+=3;else{if(2!==c)throw new n.Z("lepcc-decode-error","Bad count type");l=a.getUint8(1),e+=2}if(u)throw new n.Z("lepcc-decode-error","LUT not implemented");const f=Math.ceil(l*i/8),d=new Uint8Array(t,e,f);let h=0,b=0,p=0;const m=-1>>>32-i;for(let t=0;t<l;t++){for(;b<i;)h|=d[p]<<b,b+=8,p+=1;r[t]=h&m,h>>>=i,b-=i,b+i>32&&(h|=d[p-1]>>8-b)}return e+p}const d={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function h(t,e){return{sizeLo:t.getUint32(e+d.sizeLo,o),sizeHi:t.getUint32(e+d.sizeHi,o),count:t.getUint32(e+d.count,o),colorMapCount:t.getUint16(e+d.colorMapCount,o),lookupMethod:t.getUint8(e+d.lookupMethod),compressionMethod:t.getUint8(e+d.compressionMethod)}}function b(t){const e=new DataView(t,0);let r=0;const{identifier:o,version:i}=s(t,e,r);if(r+=a.byteCount,"ClusterRGB"!==o)throw new n.Z("lepcc-decode-error","Bad identifier");if(i>1)throw new n.Z("lepcc-decode-error","Unknown version");const u=h(e,r);if(r+=d.byteCount,u.sizeHi*2**32+u.sizeLo!==t.byteLength)throw new n.Z("lepcc-decode-error","Bad size");if((2===u.lookupMethod||1===u.lookupMethod)&&0===u.compressionMethod){if(3*u.colorMapCount+u.count+r!==t.byteLength||u.colorMapCount>256)throw new n.Z("lepcc-decode-error","Bad count");const e=new Uint8Array(t,r,3*u.colorMapCount),o=new Uint8Array(t,r+3*u.colorMapCount,u.count),a=new Uint8Array(3*u.count);for(let t=0;t<u.count;t++){const r=o[t];a[3*t]=e[3*r],a[3*t+1]=e[3*r+1],a[3*t+2]=e[3*r+2]}return a}if(0===u.lookupMethod&&0===u.compressionMethod){if(3*u.count+r!==t.byteLength||0!==u.colorMapCount)throw new n.Z("lepcc-decode-error","Bad count");return new Uint8Array(t,r).slice()}if(u.lookupMethod<=2&&1===u.compressionMethod){if(r+3!==t.byteLength||1!==u.colorMapCount)throw new n.Z("lepcc-decode-error","Bad count");const o=e.getUint8(r),a=e.getUint8(r+1),s=e.getUint8(r+2),i=new Uint8Array(3*u.count);for(let t=0;t<u.count;t++)i[3*t]=o,i[3*t+1]=a,i[3*t+2]=s;return i}throw new n.Z("lepcc-decode-error","Bad method "+u.lookupMethod+","+u.compressionMethod)}const p={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function m(t,e){return{sizeLo:t.getUint32(e+p.sizeLo,o),sizeHi:t.getUint32(e+p.sizeHi,o),count:t.getUint32(e+p.count,o),scaleFactor:t.getUint16(e+p.scaleFactor,o),bitsPerPoint:t.getUint8(e+p.bitsPerPoint),reserved:t.getUint8(e+p.reserved)}}function g(t){const e=new DataView(t,0);let r=0;const{identifier:o,version:i}=s(t,e,r);if(r+=a.byteCount,"Intensity "!==o)throw new n.Z("lepcc-decode-error","Bad identifier");if(i>1)throw new n.Z("lepcc-decode-error","Unknown version");const u=m(e,r);if(r+=p.byteCount,u.sizeHi*2**32+u.sizeLo!==t.byteLength)throw new n.Z("lepcc-decode-error","Bad size");const c=new Uint16Array(u.count);if(8===u.bitsPerPoint){if(u.count+r!==t.byteLength)throw new n.Z("lepcc-decode-error","Bad size");const e=new Uint8Array(t,r,u.count);for(let t=0;t<u.count;t++)c[t]=e[t]*u.scaleFactor}else if(16===u.bitsPerPoint){if(2*u.count+r!==t.byteLength)throw new n.Z("lepcc-decode-error","Bad size");const e=new Uint16Array(t,r,u.count);for(let t=0;t<u.count;t++)c[t]=e[t]*u.scaleFactor}else{const e=[];if(f(t,r,e)!==t.byteLength)throw new n.Z("lepcc-decode-error","Bad size");for(let t=0;t<u.count;t++)c[t]=e[t]*u.scaleFactor}return c}},35065:(t,e,r)=>{var n;r.d(e,{T:()=>n}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.AUXPOS1="auxpos1",t.AUXPOS2="auxpos2",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.TANGENT="tangent",t.OFFSET="offset",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.MODELORIGINHI="modelOriginHi",t.MODELORIGINLO="modelOriginLo",t.MODEL="model",t.MODELNORMAL="modelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMALA="normalA",t.NORMALB="normalB",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.U8PADDING="u8padding",t.U16PADDING="u16padding",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(n||(n={}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6459],{21787:(t,n,e)=>{e.d(n,{a:()=>u,b:()=>l,e:()=>s,f:()=>o,i:()=>h,m:()=>c,s:()=>a,t:()=>i});var r=e(46851);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,e,r,o,a,i,s,u,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=i,t[6]=s,t[7]=u,t[8]=c,t}function i(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function s(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],s=n[5],u=n[6],c=n[7],l=n[8],f=l*i-s*c,h=-l*a+s*u,p=c*a-i*u;let M=e*f+r*h+o*p;return M?(M=1/M,t[0]=f*M,t[1]=(-l*r+o*c)*M,t[2]=(s*r-o*i)*M,t[3]=h*M,t[4]=(l*e-o*u)*M,t[5]=(-s*e+o*a)*M,t[6]=p*M,t[7]=(-c*e+r*u)*M,t[8]=(i*e-r*a)*M,t):null}function u(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],s=n[5],u=n[6],c=n[7],l=n[8];return t[0]=i*l-s*c,t[1]=o*c-r*l,t[2]=r*s-o*i,t[3]=s*u-a*l,t[4]=e*l-o*u,t[5]=o*a-e*s,t[6]=a*c-i*u,t[7]=r*u-e*c,t[8]=e*i-r*a,t}function c(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],c=n[6],l=n[7],f=n[8],h=e[0],p=e[1],M=e[2],g=e[3],m=e[4],y=e[5],d=e[6],b=e[7],P=e[8];return t[0]=h*r+p*i+M*c,t[1]=h*o+p*s+M*l,t[2]=h*a+p*u+M*f,t[3]=g*r+m*i+y*c,t[4]=g*o+m*s+y*l,t[5]=g*a+m*u+y*f,t[6]=d*r+b*i+P*c,t[7]=d*o+b*s+P*l,t[8]=d*a+b*u+P*f,t}function l(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],s=n[5],u=n[6],c=n[7],l=n[8],f=n[9],h=n[10],p=n[11],M=n[12],g=n[13],m=n[14],y=n[15],d=e*s-r*i,b=e*u-o*i,P=e*c-a*i,A=r*u-o*s,w=r*c-a*s,v=o*c-a*u,x=l*g-f*M,F=l*m-h*M,T=l*y-p*M,S=f*m-h*g,_=f*y-p*g,B=h*y-p*m;let C=d*B-b*_+P*S+A*T-w*F+v*x;return C?(C=1/C,t[0]=(s*B-u*_+c*S)*C,t[1]=(u*T-i*B-c*F)*C,t[2]=(i*_-s*T+c*x)*C,t[3]=(o*_-r*B-a*S)*C,t[4]=(e*B-o*T+a*F)*C,t[5]=(r*T-e*_-a*x)*C,t[6]=(g*v-m*w+y*A)*C,t[7]=(m*P-M*v-y*b)*C,t[8]=(M*w-g*P+y*d)*C,t):null}function f(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}function h(t){const n=(0,r.g)(),e=t[0],o=t[1],a=t[2],i=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8];return Math.abs(1-(e*e+i*i+c*c))<=n&&Math.abs(1-(o*o+s*s+l*l))<=n&&Math.abs(1-(a*a+u*u+f*f))<=n}const p=c,M=f;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:u,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],i=t[5],s=t[6],u=t[7],c=t[8];return n*(c*a-i*u)+e*(-c*o+i*s)+r*(u*o-a*s)},equals:function(t,n){const e=t[0],o=t[1],a=t[2],i=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],h=n[0],p=n[1],M=n[2],g=n[3],m=n[4],y=n[5],d=n[6],b=n[7],P=n[8],A=(0,r.g)();return Math.abs(e-h)<=A*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-p)<=A*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-M)<=A*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(i-g)<=A*Math.max(1,Math.abs(i),Math.abs(g))&&Math.abs(s-m)<=A*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(u-y)<=A*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-d)<=A*Math.max(1,Math.abs(c),Math.abs(d))&&Math.abs(l-b)<=A*Math.max(1,Math.abs(l),Math.abs(b))&&Math.abs(f-P)<=A*Math.max(1,Math.abs(f),Math.abs(P))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=e+e,s=r+r,u=o+o,c=e*i,l=r*i,f=r*s,h=o*i,p=o*s,M=o*u,g=a*i,m=a*s,y=a*u;return t[0]=1-f-M,t[3]=l-y,t[6]=h+m,t[1]=l+y,t[4]=1-c-M,t[7]=p-g,t[2]=h-m,t[5]=p+g,t[8]=1-c-f,t},fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:h,mul:p,multiply:c,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:l,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],i=n[5],s=n[6],u=n[8],c=n[9],l=n[10],f=l*i-s*c,h=-l*a+s*u,p=c*a-i*u,M=e*f+r*h+o*p;if(!M)return null;const g=1/M;return t[0]=f*g,t[1]=(-l*r+o*c)*g,t[2]=(s*r-o*i)*g,t[3]=h*g,t[4]=(l*e-o*u)*g,t[5]=(-s*e+o*a)*g,t[6]=p*g,t[7]=(-c*e+r*u)*g,t[8]=(i*e-r*a)*g,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],c=n[6],l=n[7],f=n[8],h=Math.sin(e),p=Math.cos(e);return t[0]=p*r+h*i,t[1]=p*o+h*s,t[2]=p*a+h*u,t[3]=p*i-h*r,t[4]=p*s-h*o,t[5]=p*u-h*a,t[6]=c,t[7]=l,t[8]=f,t},scale:function(t,n,e){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t},scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:M,subtract:f,translate:function(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],c=n[6],l=n[7],f=n[8],h=e[0],p=e[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=i,t[4]=s,t[5]=u,t[6]=h*r+p*i+c,t[7]=h*o+p*s+l,t[8]=h*a+p*u+f,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},51305:(t,n,e)=>{e.d(n,{c:()=>p,g:()=>l,j:()=>_,k:()=>g,m:()=>f,s:()=>c});var r=e(46521),o=e(94961),a=e(65617),i=e(46851),s=e(17896),u=e(98766);function c(t,n,e){e*=.5;const r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function l(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,i.g)()?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function f(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],s=e[0],u=e[1],c=e[2],l=e[3];return t[0]=r*l+i*s+o*c-a*u,t[1]=o*l+i*u+a*s-r*c,t[2]=a*l+i*c+r*u-o*s,t[3]=i*l-r*s-o*u-a*c,t}function h(t,n,e,r){const o=n[0],a=n[1],s=n[2],u=n[3];let c,l,f,h,p,M=e[0],g=e[1],m=e[2],y=e[3];return l=o*M+a*g+s*m+u*y,l<0&&(l=-l,M=-M,g=-g,m=-m,y=-y),1-l>(0,i.g)()?(c=Math.acos(l),f=Math.sin(c),h=Math.sin((1-r)*c)/f,p=Math.sin(r*c)/f):(h=1-r,p=r),t[0]=h*o+p*M,t[1]=h*a+p*g,t[2]=h*s+p*m,t[3]=h*u+p*y,t}function p(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function M(t,n){const e=n[0]+n[4]+n[8];let r;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const o=(e+1)%3,a=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*o+o]-n[3*a+a]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*o+a]-n[3*a+o])*r,t[o]=(n[3*o+e]+n[3*e+o])*r,t[a]=(n[3*a+e]+n[3*e+a])*r}return t}function g(t,n,e,r){const o=.5*Math.PI/180;n*=o,e*=o,r*=o;const a=Math.sin(n),i=Math.cos(n),s=Math.sin(e),u=Math.cos(e),c=Math.sin(r),l=Math.cos(r);return t[0]=a*u*l-i*s*c,t[1]=i*s*l+a*u*c,t[2]=i*u*c-a*s*l,t[3]=i*u*l+a*s*c,t}const m=u.c,y=u.s,d=u.a,b=f,P=u.b,A=u.d,w=u.l,v=u.e,x=v,F=u.f,T=F,S=u.n,_=u.g,B=u.h,C=(0,a.c)(),R=(0,a.f)(1,0,0),Z=(0,a.f)(0,1,0),O=(0,o.a)(),j=(0,o.a)(),q=(0,r.c)();Object.freeze(Object.defineProperty({__proto__:null,add:d,calculateW:function(t,n){const e=n[0],r=n[1],o=n[2];return t[0]=e,t[1]=r,t[2]=o,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-o*o)),t},conjugate:p,copy:m,dot:A,equals:B,exactEquals:_,fromEuler:g,fromMat3:M,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=e*e+r*r+o*o+a*a,s=i?1/i:0;return t[0]=-e*s,t[1]=-r*s,t[2]=-o*s,t[3]=a*s,t},len:x,length:v,lerp:w,mul:b,multiply:f,normalize:S,random:function(t){const n=i.R,e=n(),r=n(),o=n(),a=Math.sqrt(1-e),s=Math.sqrt(e);return t[0]=a*Math.sin(2*Math.PI*r),t[1]=a*Math.cos(2*Math.PI*r),t[2]=s*Math.sin(2*Math.PI*o),t[3]=s*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(e),u=Math.cos(e);return t[0]=r*u+i*s,t[1]=o*u+a*s,t[2]=a*u-o*s,t[3]=i*u-r*s,t},rotateY:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(e),u=Math.cos(e);return t[0]=r*u-a*s,t[1]=o*u+i*s,t[2]=a*u+r*s,t[3]=i*u-o*s,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(e),u=Math.cos(e);return t[0]=r*u+o*s,t[1]=o*u-r*s,t[2]=a*u+i*s,t[3]=i*u-a*s,t},rotationTo:function(t,n,e){const r=(0,s.e)(n,e);return r<-.999999?((0,s.f)(C,R,n),(0,s.u)(C)<1e-6&&(0,s.f)(C,Z,n),(0,s.n)(C,C),c(t,C,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,s.f)(C,n,e),t[0]=C[0],t[1]=C[1],t[2]=C[2],t[3]=1+r,S(t,t))},scale:P,set:y,setAxes:function(t,n,e,r){const o=q;return o[0]=e[0],o[3]=e[1],o[6]=e[2],o[1]=r[0],o[4]=r[1],o[7]=r[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],S(t,M(t,o))},setAxisAngle:c,slerp:h,sqlerp:function(t,n,e,r,o,a){return h(O,n,o,a),h(j,e,r,a),h(t,O,j,2*a*(1-a)),t},sqrLen:T,squaredLength:F,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},20773:(t,n,e)=>{e.d(n,{a:()=>s,b:()=>i,c:()=>o,d:()=>l,e:()=>u,n:()=>f,s:()=>c,t:()=>a});var r=e(72220);function o(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function a(t,n,e,o=3,a=o){if(t.length/o!==Math.ceil(n.length/a))return r.c.error("source and destination buffers need to have the same number of elements"),t;const i=t.length/o,s=e[0],u=e[1],c=e[2],l=e[4],f=e[5],h=e[6],p=e[8],M=e[9],g=e[10],m=e[12],y=e[13],d=e[14];let b=0,P=0;for(let e=0;e<i;e++){const e=n[b],r=n[b+1],i=n[b+2];t[P]=s*e+l*r+p*i+m,t[P+1]=u*e+f*r+M*i+y,t[P+2]=c*e+h*r+g*i+d,b+=a,P+=o}return t}function i(t,n,e){s(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function s(t,n,e,o=3,a=o){if(t.length/o!==Math.ceil(n.length/a))return void r.c.error("source and destination buffers need to have the same number of elements");const i=t.length/o,s=e[0],u=e[1],c=e[2],l=e[3],f=e[4],h=e[5],p=e[6],M=e[7],g=e[8];let m=0,y=0;for(let e=0;e<i;e++){const e=n[m],r=n[m+1],i=n[m+2];t[y]=s*e+l*r+p*i,t[y+1]=u*e+f*r+M*i,t[y+2]=c*e+h*r+g*i,m+=a,y+=o}}function u(t,n,e){c(t.typedBuffer,n,e,t.typedBufferStride)}function c(t,n,e,r=3){const o=Math.min(t.length/r,n.count),a=n.typedBuffer,i=n.typedBufferStride;let s=0,u=0;for(let n=0;n<o;n++)t[u]=e*a[s],t[u+1]=e*a[s+1],t[u+2]=e*a[s+2],s+=i,u+=r}function l(t,n){f(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function f(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let a=0,i=0;for(let s=0;s<o;s++){const o=n[a],s=n[a+1],u=n[a+2],c=o*o+s*s+u*u;if(c>0){const n=1/Math.sqrt(c);t[i]=n*o,t[i+1]=n*s,t[i+2]=n*u}a+=r,i+=e}}Object.freeze(Object.defineProperty({__proto__:null,normalize:f,normalizeView:l,scale:c,scaleView:u,shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,a=t.typedBufferStride,i=n.typedBuffer,s=n.typedBufferStride;let u=0,c=0;for(let t=0;t<r;t++)o[c]=i[u]>>e,o[c+1]=i[u+1]>>e,o[c+2]=i[u+2]>>e,u+=s,c+=a},transformMat3:s,transformMat3View:i,transformMat4:a,transformMat4View:o},Symbol.toStringTag,{value:"Module"}))},58995:(t,n,e)=>{e.d(n,{rS:()=>c});var r=e(2109),o=e(82971),a=e(8744);const i=new o.Z(r.kU),s=new o.Z(r.JL),u=new o.Z(r.mM);function c(t){return t&&((0,a.BZ)(t)||(0,a.fS)(t,s))?s:t&&((0,a.V2)(t)||(0,a.fS)(t,u))?u:i}new o.Z(r.pn)},2674:(t,n,e)=>{e.d(n,{Z:()=>y});var r,o=e(43697),a=e(96674),i=e(5600),s=(e(75215),e(67676),e(80442),e(52011)),u=e(52138),c=e(13598),l=e(51305),f=e(94961),h=e(17896),p=e(65617),M=e(3709);let g=r=class extends a.wq{constructor(t){super(t),this.translation=(0,p.c)(),this.rotationAxis=(0,p.g)(M.UP),this.rotationAngle=0,this.scale=(0,p.f)(1,1,1)}get rotation(){return(0,M.uT)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.a)((0,M.ZZ)(t)),this.rotationAngle=(0,M.EU)(t)}get localMatrix(){const t=(0,c.c)();return(0,l.s)(m,(0,M.ZZ)(this.rotation),(0,M.WH)(this.rotation)),(0,u.g)(t,m,this.translation,this.scale),t}get localMatrixInverse(){return(0,u.a)((0,c.c)(),this.localMatrix)}applyLocal(t,n){return(0,h.m)(n,t,this.localMatrix)}applyLocalInverse(t,n){return(0,h.m)(n,t,this.localMatrixInverse)}equals(t){return this===t||null!=t&&(0,u.h)(this.localMatrix,t.localMatrix)}clone(){const t={translation:(0,p.a)(this.translation),rotationAxis:(0,p.a)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,p.a)(this.scale)};return new r(t)}};(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"translation",void 0),(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAxis",void 0),(0,o._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAngle",void 0),(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"scale",void 0),(0,o._)([(0,i.Cb)()],g.prototype,"rotation",null),(0,o._)([(0,i.Cb)()],g.prototype,"localMatrix",null),(0,o._)([(0,i.Cb)()],g.prototype,"localMatrixInverse",null),g=r=(0,o._)([(0,s.j)("esri.geometry.support.MeshTransform")],g);const m=(0,f.a)(),y=g},3709:(t,n,e)=>{e.d(n,{EU:()=>p,UP:()=>g,Ue:()=>u,WH:()=>M,ZZ:()=>h,qC:()=>l,qw:()=>f,uT:()=>c});var r=e(22021),o=e(51305),a=e(94961),i=e(17896),s=e(65617);function u(t=g){return[t[0],t[1],t[2],t[3]]}function c(t,n,e=u()){return(0,i.c)(e,t),e[3]=n,e}function l(t,n,e=u()){return(0,o.s)(m,t,M(t)),(0,o.s)(y,n,M(n)),(0,o.m)(m,y,m),function(t,n){return t[3]=n,t}(e,(0,r.BV)((0,o.g)(e,m)))}function f(t,n,e,r=u()){return c(s.d,t,d),c(s.e,n,b),c(s.U,e,P),l(d,b,d),l(d,P,r),r}function h(t){return t}function p(t){return t[3]}function M(t){return(0,r.Vl)(t[3])}const g=[0,0,1,0],m=(0,a.a)(),y=(0,a.a)(),d=(u(),u()),b=u(),P=u()},72220:(t,n,e)=>{e.d(n,{c:()=>r});const r=e(92604).Z.getLogger("esri.views.3d.support.buffer.math")},13442:(t,n,e)=>{e.d(n,{A:()=>a,h:()=>o});var r=e(92604);function o(t,n){return t.isGeographic||t.isWebMercator&&(n?.geographic??!0)}function a(t,n,e){const o=!t.isGeoreferenced;null!=e?.geographic&&e.geographic!==o&&r.Z.getLogger(n).warnOnce(`Specifying the 'geographic' parameter (${e.geographic}) for a Mesh vertex space of type "${t.type}" is not supported. This parameter will be ignored.`)}},66459:(t,n,e)=>{e.d(n,{FF:()=>v,I5:()=>A,Yq:()=>x,iv:()=>P,project:()=>F,w1:()=>w});var r=e(67900),o=e(46521),a=e(52138),i=e(13598),s=e(17896),u=e(65617),c=e(21787),l=e(44547),f=e(58995),h=e(83025),p=e(85872),M=e(50567),g=e(84555),m=e(2674),y=e(20773),d=e(13442),b=e(56493);function P(t,n,e){return(0,d.h)(n.spatialReference,e)?function(t,n,e){const r=n.spatialReference,o=B(n,e,O),a=new Float64Array(t.position.length),i=function(t,n,e,r){(0,y.t)(r,t,n);const o=new Float64Array(t.length);return(0,b.To)(r,o,e)}(t.position,o,r,a),s=(0,c.b)(q,o);return{position:i,normal:T(i,a,t.normal,s,r),tangent:S(i,a,t.tangent,s,r)}}(t,n,e):function(t,n,e){const r=new Float64Array(t.position.length),o=t.position,a=n.x,i=n.y,s=n.z??0,u=Z(e?e.unit:null,n.spatialReference);for(let t=0;t<o.length;t+=3)r[t]=o[t]*u+a,r[t+1]=o[t+1]*u+i,r[t+2]=o[t+2]*u+s;return{position:r,normal:t.normal,tangent:t.tangent}}(t,n,e)}function A(t,n,e,r){const{position:o,normal:a,tangent:s}=t;if(!n.isRelative)return{position:o,normal:a,tangent:s};const u=e?.localMatrix??i.I;return P({position:(0,y.t)(new Float64Array(o.length),o,u),normal:null!=a?(0,b.w9)(a,new Float32Array(a.length),u):null,tangent:null!=s?(0,b.VS)(s,new Float32Array(s.length),u):null},n.getOriginPoint(r),{geographic:!n.isGeoreferenced})}function w(t,n,e){if(e?.useTransform){const{position:r,normal:o,tangent:a}=t,{x:i,y:s,z:c}=n,l=(0,u.f)(i,s,c??0);return{vertexAttributes:{position:r,normal:o,tangent:a},vertexSpace:e.geographic??1?new g.Z({origin:l}):new p.Z({origin:l}),transform:new m.Z}}return{vertexAttributes:P(t,n,e),vertexSpace:new M.Z,transform:null}}function v(t,n,e){return(0,d.h)(n.spatialReference,e)?function(t,n,e){const r=n.spatialReference;B(n,e,O);const o=(0,a.a)(j,O),i=new Float64Array(t.position.length),s=function(t,n,e,r){const o=(0,b.XO)(t,n,r),a=new Float64Array(o.length);return(0,y.t)(a,o,e),a}(t.position,r,o,i),u=(0,c.b)(q,o);return{position:s,normal:C(t.normal,t.position,i,r,u),tangent:R(t.tangent,t.position,i,r,u)}}(t,n,e):_(t,n,e)}function x(t,n,e,r,o){if(!n.isRelative)return v(t,r,o);const{spatialReference:a}=r,i=A(t,n,e,a);return r.equals(n.getOriginPoint(a))?_(i,r,o):v(i,r,o)}function F(t,n,e,r,o,c){const p=e.isRelative?e.origin:u.Z,M=e.isRelative?n?.localMatrix??i.I:i.I;if(e.isGeoreferenced){const n=c??(0,h.bg)(r.length);if((0,a.j)(M,i.I)?(0,h.JK)(n,r):(0,y.t)(n,r,M),!(0,s.k)(p,u.Z)){const[t,e,r]=p;for(let o=0;o<n.length;o+=3)n[o]+=t,n[o+1]+=e,n[o+2]+=r}return(0,l.projectBuffer)(n,t,0,n,o,0,n.length/3),n}const g=(0,f.rS)(t),m=(0,l.Up)(t,g)?g:t;(0,l.Bm)(t,p,O,m),(0,a.m)(O,O,M);const d=c??(0,h.bg)(r.length);return(0,y.t)(d,r,O),(0,l.projectBuffer)(d,m,0,d,o,0,d.length/3),d}function T(t,n,e,r,o){if(null==e)return null;const a=new Float32Array(e.length);return(0,y.a)(a,e,r),(0,b.Yk)(a,t,n,o,a),a}function S(t,n,e,r,o){if(null==e)return null;const a=new Float32Array(e.length);(0,y.a)(a,e,r,4);for(let t=3;t<a.length;t+=4)a[t]=e[t];return(0,b.M2)(a,t,n,o,a),a}function _(t,n,e){const r=new Float64Array(t.position.length),o=t.position,a=n.x,i=n.y,s=n.z??0,u=Z(e?e.unit:null,n.spatialReference);for(let t=0;t<o.length;t+=3)r[t]=(o[t]-a)/u,r[t+1]=(o[t+1]-i)/u,r[t+2]=(o[t+2]-s)/u;return{position:r,normal:t.normal,tangent:t.tangent}}function B(t,n,e){(0,l.Bm)(t.spatialReference,[t.x,t.y,t.z??0],e,(0,f.rS)(t.spatialReference));const r=Z(n?n.unit:null,t.spatialReference);return(0,a.k)(e,e,[r,r,r]),e}function C(t,n,e,r,o){if(null==t)return null;const a=(0,b.Iz)(t,n,e,r,new Float32Array(t.length));return(0,y.a)(a,a,o),a}function R(t,n,e,r,o){if(null==t)return null;const a=(0,b.wi)(t,n,e,r,new Float32Array(t.length));return(0,y.a)(a,a,o,4),a}function Z(t,n){if(null==t)return 1;const e=(0,r.r6)(n);return 1/(0,r.En)(e,"meters",t)}const O=(0,i.c)(),j=(0,i.c)(),q=(0,o.c)()},56493:(t,n,e)=>{e.d(n,{Iz:()=>m,M2:()=>v,To:()=>b,VS:()=>A,XO:()=>d,Yk:()=>y,w9:()=>P,wi:()=>w});var r=e(92604),o=e(21787),a=e(46521),i=e(13598),s=e(17896),u=e(65617),c=e(44547),l=e(58995),f=e(8744),h=e(40488),p=e(56481),M=e(20773);const g=r.Z.getLogger("esri.geometry.support.meshUtils.normalProjection");function m(t,n,e,r,o){return F(r)?(x(S.TO_PCPF,p.ct.fromTypedArray(t),p.fP.fromTypedArray(n),p.fP.fromTypedArray(e),r,p.ct.fromTypedArray(o)),o):(g.error("Cannot convert spatial reference to PCPF"),o)}function y(t,n,e,r,o){return F(r)?(x(S.FROM_PCPF,p.ct.fromTypedArray(t),p.fP.fromTypedArray(n),p.fP.fromTypedArray(e),r,p.ct.fromTypedArray(o)),o):(g.error("Cannot convert to spatial reference from PCPF"),o)}function d(t,n,e){return(0,c.projectBuffer)(t,n,0,e,(0,l.rS)(n),0,t.length/3),e}function b(t,n,e){return(0,c.projectBuffer)(t,(0,l.rS)(e),0,n,e,0,t.length/3),n}function P(t,n,e){return(0,o.b)(Z,e),(0,M.a)(n,t,Z),(0,o.i)(Z)||(0,M.n)(n,n),n}function A(t,n,e){if((0,o.b)(Z,e),(0,M.a)(n,t,Z,4),(0,o.i)(Z)||(0,M.n)(n,n,4),t!==n)for(let e=3;e<t.length;e+=4)n[e]=t[e];return n}function w(t,n,e,r,o){if(!F(r))return g.error("Cannot convert spatial reference to PCPF"),o;x(S.TO_PCPF,p.ct.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),p.fP.fromTypedArray(n),p.fP.fromTypedArray(e),r,p.ct.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT));for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}function v(t,n,e,r,o){if(!F(r))return g.error("Cannot convert to spatial reference from PCPF"),o;x(S.FROM_PCPF,p.ct.fromTypedArray(t,16),p.fP.fromTypedArray(n),p.fP.fromTypedArray(e),r,p.ct.fromTypedArray(o,16));for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}function x(t,n,e,r,a,i){if(!n)return;const u=e.count,f=(0,l.rS)(a);if(T(a))for(let e=0;e<u;e++)r.getVec(e,B),n.getVec(e,C),(0,c.Bm)(f,B,R,f),(0,o.f)(Z,R),t===S.FROM_PCPF&&(0,o.t)(Z,Z),(0,s.t)(C,C,Z),i.setVec(e,C);else for(let a=0;a<u;a++){r.getVec(a,B),n.getVec(a,C),(0,c.Bm)(f,B,R,f),(0,o.f)(Z,R);const u=(0,h.mZ)(e.get(a,1));let l=Math.cos(u);t===S.TO_PCPF&&(l=1/l),Z[0]*=l,Z[1]*=l,Z[2]*=l,Z[3]*=l,Z[4]*=l,Z[5]*=l,t===S.FROM_PCPF&&(0,o.t)(Z,Z),(0,s.t)(C,C,Z),(0,s.n)(C,C),i.setVec(a,C)}return i}function F(t){return T(t)||function(t){return t.isWebMercator}(t)}function T(t){return t.isWGS84||(0,f.yW)(t)||(0,f.BZ)(t)||(0,f.V2)(t)}var S,_;(_=S||(S={}))[_.TO_PCPF=0]="TO_PCPF",_[_.FROM_PCPF=1]="FROM_PCPF";const B=(0,u.c)(),C=(0,u.c)(),R=(0,i.c)(),Z=(0,a.c)()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4565],{52138:(t,e,r)=>{r.d(e,{A:()=>b,a:()=>l,d:()=>m,e:()=>f,f:()=>M,g:()=>v,h:()=>y,i:()=>o,j:()=>I,k:()=>h,m:()=>i,s:()=>s,t:()=>u,w:()=>c,y:()=>S,z:()=>x});var n=r(65617),a=r(46851);function s(t,e,r,n,a,s,o,u,l,i,c,h,f,M,m,b,p){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=s,t[5]=o,t[6]=u,t[7]=l,t[8]=i,t[9]=c,t[10]=h,t[11]=f,t[12]=M,t[13]=m,t[14]=b,t[15]=p,t}function o(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,e){if(t===e){const r=e[1],n=e[2],a=e[3],s=e[6],o=e[7],u=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=s,t[11]=e[14],t[12]=a,t[13]=o,t[14]=u}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function l(t,e){const r=e[0],n=e[1],a=e[2],s=e[3],o=e[4],u=e[5],l=e[6],i=e[7],c=e[8],h=e[9],f=e[10],M=e[11],m=e[12],b=e[13],p=e[14],d=e[15],v=r*u-n*o,g=r*l-a*o,y=r*i-s*o,I=n*l-a*u,x=n*i-s*u,S=a*i-s*l,R=c*b-h*m,w=c*p-f*m,P=c*d-M*m,U=h*p-f*b,q=h*d-M*b,O=f*d-M*p;let F=v*O-g*q+y*U+I*P-x*w+S*R;return F?(F=1/F,t[0]=(u*O-l*q+i*U)*F,t[1]=(a*q-n*O-s*U)*F,t[2]=(b*S-p*x+d*I)*F,t[3]=(f*x-h*S-M*I)*F,t[4]=(l*P-o*O-i*w)*F,t[5]=(r*O-a*P+s*w)*F,t[6]=(p*y-m*S-d*g)*F,t[7]=(c*S-f*y+M*g)*F,t[8]=(o*q-u*P+i*R)*F,t[9]=(n*P-r*q-s*R)*F,t[10]=(m*x-b*y+d*v)*F,t[11]=(h*y-c*x-M*v)*F,t[12]=(u*w-o*U-l*R)*F,t[13]=(r*U-n*w+a*R)*F,t[14]=(b*g-m*I-p*v)*F,t[15]=(c*I-h*g+f*v)*F,t):null}function i(t,e,r){const n=e[0],a=e[1],s=e[2],o=e[3],u=e[4],l=e[5],i=e[6],c=e[7],h=e[8],f=e[9],M=e[10],m=e[11],b=e[12],p=e[13],d=e[14],v=e[15];let g=r[0],y=r[1],I=r[2],x=r[3];return t[0]=g*n+y*u+I*h+x*b,t[1]=g*a+y*l+I*f+x*p,t[2]=g*s+y*i+I*M+x*d,t[3]=g*o+y*c+I*m+x*v,g=r[4],y=r[5],I=r[6],x=r[7],t[4]=g*n+y*u+I*h+x*b,t[5]=g*a+y*l+I*f+x*p,t[6]=g*s+y*i+I*M+x*d,t[7]=g*o+y*c+I*m+x*v,g=r[8],y=r[9],I=r[10],x=r[11],t[8]=g*n+y*u+I*h+x*b,t[9]=g*a+y*l+I*f+x*p,t[10]=g*s+y*i+I*M+x*d,t[11]=g*o+y*c+I*m+x*v,g=r[12],y=r[13],I=r[14],x=r[15],t[12]=g*n+y*u+I*h+x*b,t[13]=g*a+y*l+I*f+x*p,t[14]=g*s+y*i+I*M+x*d,t[15]=g*o+y*c+I*m+x*v,t}function c(t,e,r){const n=r[0],a=r[1],s=r[2];if(e===t)t[12]=e[0]*n+e[4]*a+e[8]*s+e[12],t[13]=e[1]*n+e[5]*a+e[9]*s+e[13],t[14]=e[2]*n+e[6]*a+e[10]*s+e[14],t[15]=e[3]*n+e[7]*a+e[11]*s+e[15];else{const r=e[0],o=e[1],u=e[2],l=e[3],i=e[4],c=e[5],h=e[6],f=e[7],M=e[8],m=e[9],b=e[10],p=e[11];t[0]=r,t[1]=o,t[2]=u,t[3]=l,t[4]=i,t[5]=c,t[6]=h,t[7]=f,t[8]=M,t[9]=m,t[10]=b,t[11]=p,t[12]=r*n+i*a+M*s+e[12],t[13]=o*n+c*a+m*s+e[13],t[14]=u*n+h*a+b*s+e[14],t[15]=l*n+f*a+p*s+e[15]}return t}function h(t,e,r){const n=r[0],a=r[1],s=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*a,t[5]=e[5]*a,t[6]=e[6]*a,t[7]=e[7]*a,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function f(t,e,r,n){let s,o,u,l,i,c,h,f,M,m,b,p,d,v,g,y,I,x,S,R,w,P,U,q,O=n[0],F=n[1],j=n[2],C=Math.sqrt(O*O+F*F+j*j);return C<(0,a.g)()?null:(C=1/C,O*=C,F*=C,j*=C,s=Math.sin(r),o=Math.cos(r),u=1-o,l=e[0],i=e[1],c=e[2],h=e[3],f=e[4],M=e[5],m=e[6],b=e[7],p=e[8],d=e[9],v=e[10],g=e[11],y=O*O*u+o,I=F*O*u+j*s,x=j*O*u-F*s,S=O*F*u-j*s,R=F*F*u+o,w=j*F*u+O*s,P=O*j*u+F*s,U=F*j*u-O*s,q=j*j*u+o,t[0]=l*y+f*I+p*x,t[1]=i*y+M*I+d*x,t[2]=c*y+m*I+v*x,t[3]=h*y+b*I+g*x,t[4]=l*S+f*R+p*w,t[5]=i*S+M*R+d*w,t[6]=c*S+m*R+v*w,t[7]=h*S+b*R+g*w,t[8]=l*P+f*U+p*q,t[9]=i*P+M*U+d*q,t[10]=c*P+m*U+v*q,t[11]=h*P+b*U+g*q,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function M(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function m(t,e,r){if(0===e)return o(t);let n,s,u,l=r[0],i=r[1],c=r[2],h=Math.sqrt(l*l+i*i+c*c);return h<(0,a.g)()?null:(h=1/h,l*=h,i*=h,c*=h,n=Math.sin(e),s=Math.cos(e),u=1-s,t[0]=l*l*u+s,t[1]=i*l*u+c*n,t[2]=c*l*u-i*n,t[3]=0,t[4]=l*i*u-c*n,t[5]=i*i*u+s,t[6]=c*i*u+l*n,t[7]=0,t[8]=l*c*u+i*n,t[9]=i*c*u-l*n,t[10]=c*c*u+s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function b(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function p(t,e,r){const n=e[0],a=e[1],s=e[2],o=e[3],u=n+n,l=a+a,i=s+s,c=n*u,h=n*l,f=n*i,M=a*l,m=a*i,b=s*i,p=o*u,d=o*l,v=o*i;return t[0]=1-(M+b),t[1]=h+v,t[2]=f-d,t[3]=0,t[4]=h-v,t[5]=1-(c+b),t[6]=m+p,t[7]=0,t[8]=f+d,t[9]=m-p,t[10]=1-(c+M),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const d=(0,n.c)();function v(t,e,r,n){const a=e[0],s=e[1],o=e[2],u=e[3],l=a+a,i=s+s,c=o+o,h=a*l,f=a*i,M=a*c,m=s*i,b=s*c,p=o*c,d=u*l,v=u*i,g=u*c,y=n[0],I=n[1],x=n[2];return t[0]=(1-(m+p))*y,t[1]=(f+g)*y,t[2]=(M-v)*y,t[3]=0,t[4]=(f-g)*I,t[5]=(1-(h+p))*I,t[6]=(b+d)*I,t[7]=0,t[8]=(M+v)*x,t[9]=(b-d)*x,t[10]=(1-(h+m))*x,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function g(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t}function y(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function I(t,e){if(t===e)return!0;const r=t[0],n=t[1],s=t[2],o=t[3],u=t[4],l=t[5],i=t[6],c=t[7],h=t[8],f=t[9],M=t[10],m=t[11],b=t[12],p=t[13],d=t[14],v=t[15],g=e[0],y=e[1],I=e[2],x=e[3],S=e[4],R=e[5],w=e[6],P=e[7],U=e[8],q=e[9],O=e[10],F=e[11],j=e[12],C=e[13],T=e[14],N=e[15],_=(0,a.g)();return Math.abs(r-g)<=_*Math.max(1,Math.abs(r),Math.abs(g))&&Math.abs(n-y)<=_*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(s-I)<=_*Math.max(1,Math.abs(s),Math.abs(I))&&Math.abs(o-x)<=_*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(u-S)<=_*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(l-R)<=_*Math.max(1,Math.abs(l),Math.abs(R))&&Math.abs(i-w)<=_*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(c-P)<=_*Math.max(1,Math.abs(c),Math.abs(P))&&Math.abs(h-U)<=_*Math.max(1,Math.abs(h),Math.abs(U))&&Math.abs(f-q)<=_*Math.max(1,Math.abs(f),Math.abs(q))&&Math.abs(M-O)<=_*Math.max(1,Math.abs(M),Math.abs(O))&&Math.abs(m-F)<=_*Math.max(1,Math.abs(m),Math.abs(F))&&Math.abs(b-j)<=_*Math.max(1,Math.abs(b),Math.abs(j))&&Math.abs(p-C)<=_*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(d-T)<=_*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(v-N)<=_*Math.max(1,Math.abs(v),Math.abs(N))}function x(t){const e=(0,a.g)(),r=t[0],n=t[1],s=t[2],o=t[4],u=t[5],l=t[6],i=t[8],c=t[9],h=t[10];return Math.abs(1-(r*r+o*o+i*i))<=e&&Math.abs(1-(n*n+u*u+c*c))<=e&&Math.abs(1-(s*s+l*l+h*h))<=e}function S(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const R=i,w=g;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t},adjoint:function(t,e){const r=e[0],n=e[1],a=e[2],s=e[3],o=e[4],u=e[5],l=e[6],i=e[7],c=e[8],h=e[9],f=e[10],M=e[11],m=e[12],b=e[13],p=e[14],d=e[15];return t[0]=u*(f*d-M*p)-h*(l*d-i*p)+b*(l*M-i*f),t[1]=-(n*(f*d-M*p)-h*(a*d-s*p)+b*(a*M-s*f)),t[2]=n*(l*d-i*p)-u*(a*d-s*p)+b*(a*i-s*l),t[3]=-(n*(l*M-i*f)-u*(a*M-s*f)+h*(a*i-s*l)),t[4]=-(o*(f*d-M*p)-c*(l*d-i*p)+m*(l*M-i*f)),t[5]=r*(f*d-M*p)-c*(a*d-s*p)+m*(a*M-s*f),t[6]=-(r*(l*d-i*p)-o*(a*d-s*p)+m*(a*i-s*l)),t[7]=r*(l*M-i*f)-o*(a*M-s*f)+c*(a*i-s*l),t[8]=o*(h*d-M*b)-c*(u*d-i*b)+m*(u*M-i*h),t[9]=-(r*(h*d-M*b)-c*(n*d-s*b)+m*(n*M-s*h)),t[10]=r*(u*d-i*b)-o*(n*d-s*b)+m*(n*i-s*u),t[11]=-(r*(u*M-i*h)-o*(n*M-s*h)+c*(n*i-s*u)),t[12]=-(o*(h*p-f*b)-c*(u*p-l*b)+m*(u*f-l*h)),t[13]=r*(h*p-f*b)-c*(n*p-a*b)+m*(n*f-a*h),t[14]=-(r*(u*p-l*b)-o*(n*p-a*b)+m*(n*l-a*u)),t[15]=r*(u*f-l*h)-o*(n*f-a*h)+c*(n*l-a*u),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},determinant:function(t){const e=t[0],r=t[1],n=t[2],a=t[3],s=t[4],o=t[5],u=t[6],l=t[7],i=t[8],c=t[9],h=t[10],f=t[11],M=t[12],m=t[13],b=t[14],p=t[15];return(e*o-r*s)*(h*p-f*b)-(e*u-n*s)*(c*p-f*m)+(e*l-a*s)*(c*b-h*m)+(r*u-n*o)*(i*p-f*M)-(r*l-a*o)*(i*b-h*M)+(n*l-a*u)*(i*m-c*M)},equals:I,exactEquals:y,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const r=e[0],n=e[1],a=e[2],s=e[3],o=r+r,u=n+n,l=a+a,i=r*o,c=n*o,h=n*u,f=a*o,M=a*u,m=a*l,b=s*o,p=s*u,d=s*l;return t[0]=1-h-m,t[1]=c+d,t[2]=f-p,t[3]=0,t[4]=c-d,t[5]=1-i-m,t[6]=M+b,t[7]=0,t[8]=f+p,t[9]=M-b,t[10]=1-i-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const r=d,n=-e[0],a=-e[1],s=-e[2],o=e[3],u=e[4],l=e[5],i=e[6],c=e[7],h=n*n+a*a+s*s+o*o;return h>0?(r[0]=2*(u*o+c*n+l*s-i*a)/h,r[1]=2*(l*o+c*a+i*n-u*s)/h,r[2]=2*(i*o+c*s+u*a-l*n)/h):(r[0]=2*(u*o+c*n+l*s-i*a),r[1]=2*(l*o+c*a+i*n-u*s),r[2]=2*(i*o+c*s+u*a-l*n)),p(t,e,r),t},fromRotation:m,fromRotationTranslation:p,fromRotationTranslationScale:v,fromRotationTranslationScaleOrigin:function(t,e,r,n,a){const s=e[0],o=e[1],u=e[2],l=e[3],i=s+s,c=o+o,h=u+u,f=s*i,M=s*c,m=s*h,b=o*c,p=o*h,d=u*h,v=l*i,g=l*c,y=l*h,I=n[0],x=n[1],S=n[2],R=a[0],w=a[1],P=a[2],U=(1-(b+d))*I,q=(M+y)*I,O=(m-g)*I,F=(M-y)*x,j=(1-(f+d))*x,C=(p+v)*x,T=(m+g)*S,N=(p-v)*S,_=(1-(f+b))*S;return t[0]=U,t[1]=q,t[2]=O,t[3]=0,t[4]=F,t[5]=j,t[6]=C,t[7]=0,t[8]=T,t[9]=N,t[10]=_,t[11]=0,t[12]=r[0]+R-(U*R+F*w+T*P),t[13]=r[1]+w-(q*R+j*w+N*P),t[14]=r[2]+P-(O*R+C*w+_*P),t[15]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:M,fromXRotation:b,fromYRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,r,n,a,s,o){const u=1/(r-e),l=1/(a-n),i=1/(s-o);return t[0]=2*s*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*l,t[6]=0,t[7]=0,t[8]=(r+e)*u,t[9]=(a+n)*l,t[10]=(o+s)*i,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*s*2*i,t[15]=0,t},getRotation:function(t,e){const r=e[0]+e[5]+e[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),t[3]=.25*n,t[0]=(e[6]-e[9])/n,t[1]=(e[8]-e[2])/n,t[2]=(e[1]-e[4])/n):e[0]>e[5]&&e[0]>e[10]?(n=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/n,t[0]=.25*n,t[1]=(e[1]+e[4])/n,t[2]=(e[8]+e[2])/n):e[5]>e[10]?(n=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/n,t[0]=(e[1]+e[4])/n,t[1]=.25*n,t[2]=(e[6]+e[9])/n):(n=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/n,t[0]=(e[8]+e[2])/n,t[1]=(e[6]+e[9])/n,t[2]=.25*n),t},getScaling:function(t,e){const r=e[0],n=e[1],a=e[2],s=e[4],o=e[5],u=e[6],l=e[8],i=e[9],c=e[10];return t[0]=Math.sqrt(r*r+n*n+a*a),t[1]=Math.sqrt(s*s+o*o+u*u),t[2]=Math.sqrt(l*l+i*i+c*c),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:S,identity:o,invert:l,invertOrIdentity:function(t,e){return l(t,e)||o(t),t},isOrthoNormal:x,lookAt:function(t,e,r,n){const s=e[0],u=e[1],l=e[2];let i=s-r[0],c=u-r[1],h=l-r[2];const f=(0,a.g)();if(Math.abs(i)<f&&Math.abs(c)<f&&Math.abs(h)<f)return void o(t);let M=1/Math.sqrt(i*i+c*c+h*h);i*=M,c*=M,h*=M;const m=n[0],b=n[1],p=n[2];let d=b*h-p*c,v=p*i-m*h,g=m*c-b*i;M=Math.sqrt(d*d+v*v+g*g),M?(M=1/M,d*=M,v*=M,g*=M):(d=0,v=0,g=0);let y=c*g-h*v,I=h*d-i*g,x=i*v-c*d;M=Math.sqrt(y*y+I*I+x*x),M?(M=1/M,y*=M,I*=M,x*=M):(y=0,I=0,x=0),t[0]=d,t[1]=y,t[2]=i,t[3]=0,t[4]=v,t[5]=I,t[6]=c,t[7]=0,t[8]=g,t[9]=x,t[10]=h,t[11]=0,t[12]=-(d*s+v*u+g*l),t[13]=-(y*s+I*u+x*l),t[14]=-(i*s+c*u+h*l),t[15]=1},mul:R,multiply:i,multiplyScalar:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t},ortho:function(t,e,r,n,a,s,o){const u=1/(e-r),l=1/(n-a),i=1/(s-o);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*i,t[11]=0,t[12]=(e+r)*u,t[13]=(a+n)*l,t[14]=(o+s)*i,t[15]=1,t},perspective:function(t,e,r,n,a){const s=1/Math.tan(e/2);let o;return t[0]=s/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=a&&a!==1/0?(o=1/(n-a),t[10]=(a+n)*o,t[14]=2*a*n*o):(t[10]=-1,t[14]=-2*n),t},perspectiveFromFieldOfView:function(t,e,r,n){const a=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),u=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+u),i=2/(a+s);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=-(o-u)*l*.5,t[9]=(a-s)*i*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t},rotate:f,rotateX:function(t,e,r){const n=Math.sin(r),a=Math.cos(r),s=e[4],o=e[5],u=e[6],l=e[7],i=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*a+i*n,t[5]=o*a+c*n,t[6]=u*a+h*n,t[7]=l*a+f*n,t[8]=i*a-s*n,t[9]=c*a-o*n,t[10]=h*a-u*n,t[11]=f*a-l*n,t},rotateY:function(t,e,r){const n=Math.sin(r),a=Math.cos(r),s=e[0],o=e[1],u=e[2],l=e[3],i=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*a-i*n,t[1]=o*a-c*n,t[2]=u*a-h*n,t[3]=l*a-f*n,t[8]=s*n+i*a,t[9]=o*n+c*a,t[10]=u*n+h*a,t[11]=l*n+f*a,t},rotateZ:function(t,e,r){const n=Math.sin(r),a=Math.cos(r),s=e[0],o=e[1],u=e[2],l=e[3],i=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*a+i*n,t[1]=o*a+c*n,t[2]=u*a+h*n,t[3]=l*a+f*n,t[4]=i*a-s*n,t[5]=c*a-o*n,t[6]=h*a-u*n,t[7]=f*a-l*n,t},scale:h,set:s,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:w,subtract:g,targetTo:function(t,e,r,n){const a=e[0],s=e[1],o=e[2],u=n[0],l=n[1],i=n[2];let c=a-r[0],h=s-r[1],f=o-r[2],M=c*c+h*h+f*f;M>0&&(M=1/Math.sqrt(M),c*=M,h*=M,f*=M);let m=l*f-i*h,b=i*c-u*f,p=u*h-l*c;return M=m*m+b*b+p*p,M>0&&(M=1/Math.sqrt(M),m*=M,b*=M,p*=M),t[0]=m,t[1]=b,t[2]=p,t[3]=0,t[4]=h*p-f*b,t[5]=f*m-c*p,t[6]=c*b-h*m,t[7]=0,t[8]=c,t[9]=h,t[10]=f,t[11]=0,t[12]=a,t[13]=s,t[14]=o,t[15]=1,t},translate:c,transpose:u},Symbol.toStringTag,{value:"Module"}))},25929:(t,e,r)=>{r.d(e,{M:()=>m,a:()=>p,e:()=>f,f:()=>a,i:()=>c,p:()=>h,r:()=>o,t:()=>s,w:()=>u});var n=r(81271);function a(t,e){const r=e&&e.url&&e.url.path;if(t&&r&&(t=(0,n.hF)(t,r,{preserveProtocolRelative:!0}),e.portalItem&&e.readResourcePaths)){const r=(0,n.PF)(t,e.portalItem.itemUrl);null!=r&&i.test(r)&&e.readResourcePaths.push(e.portalItem.resourceFromPath(r).path)}return M(t,e&&e.portal)}function s(t,e,r=m.YES){if(null==t)return t;!(0,n.YP)(t)&&e&&e.blockedRelativeUrls&&e.blockedRelativeUrls.push(t);let a=(0,n.hF)(t);if(e){const r=e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.rootPath||e.url&&e.url.path;if(r){const s=M(r,e.portal),o=M(a,e.portal);a=(0,n.PF)(o,s,s),null!=a&&a!==o&&a!==t&&e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.writtenUrls.push(a)}}return a=f(a,e?.portal),(0,n.YP)(a)&&(a=(0,n.Fv)(a)),e?.resources&&e?.portalItem&&!(0,n.YP)(a)&&!(0,n.HK)(a)&&r===m.YES&&e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(a),compress:!1}),a}function o(t,e,r){return a(t,r)}function u(t,e,r,n){const a=s(t,n);void 0!==a&&(e[r]=a)}const l=/\/items\/([^\/]+)\/resources\/(.*)/,i=/^\.\/resources\//;function c(t){const e=t?.match(l)??null;return e?.[1]??null}function h(t){const e=t?.match(l)??null;if(null==e)return null;const r=e[2],a=r.lastIndexOf("/");if(-1===a){const{path:t,extension:e}=(0,n.fZ)(r);return{prefix:null,filename:t,extension:e}}const{path:s,extension:o}=(0,n.fZ)(r.slice(a+1));return{prefix:r.slice(0,a),filename:s,extension:o}}function f(t,e){return e&&!e.isPortal&&e.urlKey&&e.customBaseUrl?(0,n.Ie)(t,`${e.urlKey}.${e.customBaseUrl}`,e.portalHostname):t}function M(t,e){if(!e||e.isPortal||!e.urlKey||!e.customBaseUrl)return t;const r=`${e.urlKey}.${e.customBaseUrl}`,a=(0,n.TI)();return(0,n.D6)(a,`${a.scheme}://${r}`)?(0,n.Ie)(t,e.portalHostname,r):(0,n.Ie)(t,r,e.portalHostname)}var m,b;(b=m||(m={}))[b.YES=0]="YES",b[b.NO=1]="NO";const p=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return m},ensureMainOnlineDomain:f,fromJSON:a,itemIdFromResourceUrl:c,prefixAndFilenameFromResourceUrl:h,read:o,toJSON:s,write:u},Symbol.toStringTag,{value:"Module"}))},66677:(t,e,r)=>{r.d(e,{B5:()=>c,DR:()=>f,G:()=>g,M8:()=>b,Nm:()=>p,Qc:()=>h,XG:()=>d,a7:()=>m,ld:()=>M,wH:()=>v});var n=r(81271),a=r(25929);const s={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},o=Object.values(s),u=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${o.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),l=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${o.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),i=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function c(t){return!!u.test(t)}function h(t){if(null==t)return null;const e=(0,n.mN)(t),r=e.path.match(u)||e.path.match(l);if(!r)return null;const[,a,o,i,c]=r,h=o.indexOf("/");return{title:M(-1!==h?o.slice(h+1):o),serverType:s[i.toLowerCase()],sublayer:null!=c&&""!==c?parseInt(c,10):null,url:{path:a}}}function f(t){const e=(0,n.mN)(t).path.match(i);return e?{serviceUrl:e[1],sublayerId:Number(e[2])}:null}function M(t){return(t=t.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+t.slice(1)}function m(t,e){const r=[];if(t){const e=h(t);null!=e&&e.title&&r.push(e.title)}if(e){const t=M(e);r.push(t)}if(2===r.length){if(r[0].toLowerCase().includes(r[1].toLowerCase()))return r[0];if(r[1].toLowerCase().includes(r[0].toLowerCase()))return r[1]}return r.join(" - ")}function b(t){if(!t)return!1;const e=(t=t.toLowerCase()).includes(".arcgis.com/"),r=t.includes("//services")||t.includes("//tiles")||t.includes("//features");return e&&r}function p(t,e){return t?(0,n.Qj)((0,n.Hu)(t,e)):t}function d(t){let{url:e}=t;if(!e)return{url:e};e=(0,n.Hu)(e,t.logger);const r=(0,n.mN)(e),a=h(r.path);let s;if(null!=a)null!=a.sublayer&&null==t.layer.layerId&&(s=a.sublayer),e=a.url.path;else if(t.nonStandardUrlAllowed){const t=f(r.path);null!=t&&(e=t.serviceUrl,s=t.sublayerId)}return{url:(0,n.Qj)(e),layerId:s}}function v(t,e,r,s,o){(0,a.w)(e,s,"url",o),s.url&&null!=t.layerId&&(s.url=(0,n.v_)(s.url,r,t.layerId.toString()))}function g(t){if(!t)return!1;const e=t.toLowerCase(),r=e.includes("/services/"),n=e.includes("/mapserver/wmsserver"),a=e.includes("/imageserver/wmsserver"),s=e.includes("/wmsserver");return r&&(n||a||s)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3919],{13598:(e,t,r)=>{function s(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function a(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}function n(e,t){return new Float64Array(e,t,16)}r.d(t,{I:()=>i,a:()=>n,b:()=>a,c:()=>s});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:s,createView:n,fromValues:function(e,t,r,s,a,n,i,o,u,l,d,c,p,h,y,f){return[e,t,r,s,a,n,i,o,u,l,d,c,p,h,y,f]}},Symbol.toStringTag,{value:"Module"}))},20773:(e,t,r)=>{r.d(t,{a:()=>o,b:()=>i,c:()=>a,d:()=>d,e:()=>u,n:()=>c,s:()=>l,t:()=>n});var s=r(72220);function a(e,t,r){n(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function n(e,t,r,a=3,n=a){if(e.length/a!==Math.ceil(t.length/n))return s.c.error("source and destination buffers need to have the same number of elements"),e;const i=e.length/a,o=r[0],u=r[1],l=r[2],d=r[4],c=r[5],p=r[6],h=r[8],y=r[9],f=r[10],m=r[12],g=r[13],b=r[14];let F=0,S=0;for(let r=0;r<i;r++){const r=t[F],s=t[F+1],i=t[F+2];e[S]=o*r+d*s+h*i+m,e[S+1]=u*r+c*s+y*i+g,e[S+2]=l*r+p*s+f*i+b,F+=n,S+=a}return e}function i(e,t,r){o(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r,a=3,n=a){if(e.length/a!==Math.ceil(t.length/n))return void s.c.error("source and destination buffers need to have the same number of elements");const i=e.length/a,o=r[0],u=r[1],l=r[2],d=r[3],c=r[4],p=r[5],h=r[6],y=r[7],f=r[8];let m=0,g=0;for(let r=0;r<i;r++){const r=t[m],s=t[m+1],i=t[m+2];e[g]=o*r+d*s+h*i,e[g+1]=u*r+c*s+y*i,e[g+2]=l*r+p*s+f*i,m+=n,g+=a}}function u(e,t,r){l(e.typedBuffer,t,r,e.typedBufferStride)}function l(e,t,r,s=3){const a=Math.min(e.length/s,t.count),n=t.typedBuffer,i=t.typedBufferStride;let o=0,u=0;for(let t=0;t<a;t++)e[u]=r*n[o],e[u+1]=r*n[o+1],e[u+2]=r*n[o+2],o+=i,u+=s}function d(e,t){c(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r=3,s=r){const a=Math.min(e.length/r,t.length/s);let n=0,i=0;for(let o=0;o<a;o++){const a=t[n],o=t[n+1],u=t[n+2],l=a*a+o*o+u*u;if(l>0){const t=1/Math.sqrt(l);e[i]=t*a,e[i+1]=t*o,e[i+2]=t*u}n+=s,i+=r}}Object.freeze(Object.defineProperty({__proto__:null,normalize:c,normalizeView:d,scale:l,scaleView:u,shiftRight:function(e,t,r){const s=Math.min(e.count,t.count),a=e.typedBuffer,n=e.typedBufferStride,i=t.typedBuffer,o=t.typedBufferStride;let u=0,l=0;for(let e=0;e<s;e++)a[l]=i[u]>>r,a[l+1]=i[u+1]>>r,a[l+2]=i[u+2]>>r,u+=o,l+=n},transformMat3:o,transformMat3View:i,transformMat4:n,transformMat4View:a},Symbol.toStringTag,{value:"Module"}))},41123:(e,t,r)=>{r.d(t,{D:()=>a,z:()=>n});const s="randomUUID"in crypto;function a(){if(s)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${a()}}`}},85872:(e,t,r)=>{r.d(t,{Z:()=>p});var s=r(43697),a=r(2368),n=r(96674),i=r(5600),o=(r(75215),r(67676),r(80442),r(36030)),u=r(52011),l=r(65617),d=r(94139);let c=class extends((0,a.J)(n.wq)){constructor(e){super(e),this.type="georeferenced-relative",this.isRelative=!0,this.isGeoreferenced=!0,this.origin=(0,l.c)()}getOriginPoint(e){const[t,r,s]=this.origin;return new d.Z({x:t,y:r,z:s,spatialReference:e})}setOriginFormPoint({x:e,y:t,z:r}){this.origin=(0,l.f)(e,t,r??0)}};(0,s._)([(0,o.J)({georeferencedRelative:"georeferenced-relative"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,s._)([(0,u.j)("esri.geometry.support.MeshGeoreferencedRelativeVertexSpace")],c);const p=c},72220:(e,t,r)=>{r.d(t,{c:()=>s});const s=r(92604).Z.getLogger("esri.views.3d.support.buffer.math")},84470:(e,t,r)=>{r.d(t,{CP:()=>o,JG:()=>y,LL:()=>u,NZ:()=>l,fV:()=>f,vj:()=>g,yT:()=>F,zE:()=>b});var s=r(3172),a=r(67676),n=r(95330),i=r(2981);class o{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,a.fS)(this.parts,e.parts,((e,t)=>e.equals(t)))}isOnService(e){return this.parts.every((t=>t.isOnService(e)))}makeHash(){let e="";for(const t of this.parts)e+=t.partHash;return e}async toBlob(e){const{parts:t}=this;if(1===t.length)return t[0].toBlob(e);const r=await Promise.all(t.map((t=>t.toBlob(e))));return(0,n.k_)(e),new Blob(r)}}class u{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){const{data:t}=await(0,s.default)(this.partUrl,{responseType:"blob"});return(0,n.k_)(e),t}}function l(e){return function(e){return!!e&&(Array.isArray(e)?e.some(h):h(e))}(e?.source)}function d(e){return!!Array.isArray(e)&&e.every((e=>e instanceof o))}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,p=/\.(gltf|glb)/i;function h(e){if(e instanceof File){const{type:t,name:r}=e;return c.test(t)||p.test(r)}return c.test(e.assetMimeType)||p.test(e.assetName)}function y(e,t){if(!e)return!1;const{source:r}=e;return function(e,t){return Array.isArray(e)?e.every((e=>m(e,t))):m(e,t)}(r,t)}function f(e,t){if(e===t)return!0;const{source:r}=e,{source:s}=t;if(r===s)return!0;if(d(r)&&d(s)){if(r.length!==s.length)return!1;const e=(e,t)=>e.assetName<t.assetName?-1:e.assetName>t.assetName?1:0,t=[...r].sort(e),a=[...s].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(a[e]))return!1;return!0}return!1}function m(e,t){return e instanceof o&&e.isOnService(t)}function g(e,t){return e instanceof File?(0,i.Ow)(e.name,t)??(0,i.S0)(e.type,t):(0,i.S0)(e.assetMimeType,t)??(0,i.Ow)(e.assetName,t)}function b(e){return Array.isArray(e)?e:[e]}function F(e){return!!e.original}},61159:(e,t,r)=>{r.d(t,{g:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},14720:(e,t,r)=>{r.d(t,{Ey:()=>b,applyEdits:()=>F,aw:()=>m,uploadAssets:()=>v});var s=r(38171),a=r(46791),n=r(20102),i=r(22974),o=r(92604),u=r(95330),l=r(81271),d=r(16306),c=r(66361),p=r(2981),h=r(84230);function y(e){return e&&null!=e.applyEdits}function f(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function m(e){return e.every(f)}function g(e){return"object"==typeof e&&null!=e&&"globalId"in e&&!!e.globalId}function b(e){return e.every(g)}async function F(e,t,r,s={}){let l;if((0,c.lQ)(e)&&e.url)l=(0,c.jF)(e.url,e.layerId,"original-and-current-features"===s.returnServiceEditsOption);else{l=(0,u.hh)(),l.promise.then((t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)}));const t={result:l.promise};e.emit("apply-edits",t)}try{const{results:u,edits:d}=await async function(e,t,r,s){if(await e.load(),!y(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,h.ln)(e))throw new n.Z(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:u}=await async function(e,t,r){const s=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),i=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),u=null!=e.infoFor3D;if(!t||!s&&!i)throw new n.Z(`${e.type}-layer:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");const l=(0,h.S1)(e);if(!l.data.isVersioned&&r?.gdbVersion)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!l.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");if(!l.editing.supportsGlobalId&&r?.globalIdUsed)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!l.editing.supportsGlobalId&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!r?.globalIdUsed&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true");const d={...r};if(null!=d.rollbackOnFailureEnabled||l.editing.supportsRollbackOnFailure||(d.rollbackOnFailureEnabled=!0),d.rollbackOnFailureEnabled||"original-and-current-features"!==d.returnServiceEditsOption||(!1===d.rollbackOnFailureEnabled&&o.Z.getLogger("esri.layers.graphics.editingSupport").warn(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true, but 'rollBackOnFailure' was set to false. 'rollBackOnFailure' has been overwrritten and set to true."),d.rollbackOnFailureEnabled=!0),!l.editing.supportsReturnServiceEditsInSourceSpatialReference&&d.returnServiceEditsInSourceSR)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(d.returnServiceEditsInSourceSR&&"original-and-current-features"!==d.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const c={...t};if(c.addFeatures=t&&a.Z.isCollection(t.addFeatures)?t.addFeatures.toArray():c.addFeatures||[],c.updateFeatures=t&&a.Z.isCollection(t.updateFeatures)?t.updateFeatures.toArray():c.updateFeatures||[],c.deleteFeatures=t&&a.Z.isCollection(t.deleteFeatures)?t.deleteFeatures.toArray():c.deleteFeatures||[],c.addFeatures.length&&!l.operations.supportsAdd)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support adding features.");if(c.updateFeatures.length&&!l.operations.supportsUpdate)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support updating features.");if(c.deleteFeatures.length&&!l.operations.supportsDelete)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support deleting features.");c.addAttachments=c.addAttachments||[],c.updateAttachments=c.updateAttachments||[],c.deleteAttachments=c.deleteAttachments||[],c.addFeatures=c.addFeatures.map(R),c.updateFeatures=c.updateFeatures.map(R),c.addAssetFeatures=[];const y=r?.globalIdUsed||u;return c.addFeatures.forEach((t=>function(e,t,r){S(e,t,r)}(t,e,y))),c.updateFeatures.forEach((t=>function(e,t,r){S(e,t,r);const s=(0,h.S1)(t);if("geometry"in e&&null!=e.geometry&&!s?.editing.supportsGeometryUpdate)throw new n.Z(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,y))),c.deleteFeatures.forEach((t=>function(e,t,r){S(e,t,r)}(t,e,y))),c.addAttachments.forEach((t=>w(t,e))),c.updateAttachments.forEach((t=>w(t,e))),u&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:r}=t,s=(0,p.S0)("model/gltf-binary",r.supportedFormats)??(0,p.Ow)("glb",r.supportedFormats);if(!s||!r.editFormats.includes(s))throw new n.Z(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:a}=e;for(const t of e.addFeatures??[])A(t)&&a.push(t);for(const t of e.updateFeatures??[])A(t)&&a.push(t)}(c,e),{edits:await _(c),options:d}}(e,r,s);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await t.applyEdits(i,u)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,s),c=e=>e.filter((e=>!e.error)).map(i.d9),f={edits:d,addedFeatures:c(u.addFeatureResults),updatedFeatures:c(u.updateFeatureResults),deletedFeatures:c(u.deleteFeatureResults),addedAttachments:c(u.addAttachmentResults),updatedAttachments:c(u.updateAttachmentResults),deletedAttachments:c(u.deleteAttachmentResults),exceededTransferLimit:!1};return u.editedFeatureResults?.length&&(f.editedFeatures=u.editedFeatureResults),l.resolve(f),u}catch(e){throw l.reject(e),e}}function S(e,t,r){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Feature should have 'globalId' when 'globalIdUsed' is true");if(!("attributes"in e)&&!e.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"'globalId' of the feature should be passed when 'globalIdUsed' is true")}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new n.Z(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new n.Z(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function w(e,t){const{feature:r,attachment:s}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!s.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!s.data&&!s.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(s.data instanceof File&&s.data.name||s.name))throw new n.Z(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&s.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof s.data){const e=(0,l.sJ)(s.data);if(e&&!e.isBase64)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function _(e){const t=e.addFeatures??[],r=e.updateFeatures??[],s=t.concat(r).map((e=>e.geometry)),a=await(0,d.aX)(s),n=t.length,i=r.length;return a.slice(0,n).forEach(((e,r)=>t[r].geometry=e)),a.slice(n,n+i).forEach(((e,t)=>r[t].geometry=e)),e}function R(e){const t=new s.Z;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function A(e){return"mesh"===e?.geometry?.type}function v(e,t,r,s){if(!y(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new n.Z(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,s)}},73919:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Q});var s=r(43697),a=(r(66577),r(38171)),n=r(40330),i=r(3172),o=r(92835),u=r(67676),l=r(20102),d=r(80442),c=r(35454),p=r(83379),h=r(92604),y=r(78286),f=r(95330),m=r(67900),g=r(81271),b=r(41123),F=r(5600),S=(r(75215),r(52011)),w=r(6570),_=r(44547),R=r(33955),A=r(52138),v=r(13598),O=r(85872),I=r(20773);function E(e){const{vertexSpace:t}=e;if(t.isRelative)return e.clone();const{anchor:r}=e,s=r.clone(),a=(0,A.f)(q,[-s.x,-s.y,-s.z]),n=new O.Z({origin:[s.x,s.y,s.z]}),i=e.cloneWithVertexSpace(n),{position:o}=i.vertexAttributes;return i.vertexAttributes.position=(0,I.t)(new Float64Array(o.length),o,a),i.vertexAttributesChanged(),i}const q=(0,v.c)();var x=r(84470),C=r(14720),Z=r(25278),T=r(49735),D=r(66677),M=r(2981),P=r(4967),N=r(59431),k=r(14165),$=r(82971);const G=new c.X({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),U=new Set(["Feature Layer","Table"]),B=new c.X({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let j=class extends p.Z{constructor(){super(...arguments),this.type="feature-layer",this.refresh=(0,f.Ds)((async()=>{await this.load();const e=this.sourceJSON.editingInfo?.lastEditDate;if(null==e)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const t=e!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:t,updates:t?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}})),this._ongoingAssetUploads=new Map}load(e){const t=null!=e?e.signal:null,r=this.layer.sourceJSON;return this.addResolvingPromise(this._fetchService(r,t)),Promise.resolve(this)}get queryTask(){const{capabilities:e,parsedUrl:t,dynamicDataSource:r,infoFor3D:s,gdbVersion:a,spatialReference:n,fieldsIndex:i}=this.layer,o=(0,d.Z)("featurelayer-pbf")&&e?.query.supportsFormatPBF&&null==s,u=e?.operations?.supportsQueryAttachments??!1;return new T.Z({url:t.path,pbfSupported:o,fieldsIndex:i,infoFor3D:s,dynamicDataSource:r,gdbVersion:a,sourceSpatialReference:n,queryAttachmentsSupported:u})}async addAttachment(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/addAttachment",a=this._getLayerRequestOptions(),n=this._getFormDataForAttachment(t,a.query);try{const e=await(0,i.default)(s,{body:n});return this._createFeatureEditResult(e.data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}async updateAttachment(e,t,r){await this.load();const s=e.attributes[this.layer.objectIdField],a=this.layer.parsedUrl.path+"/"+s+"/updateAttachment",n=this._getLayerRequestOptions({query:{attachmentId:t}}),o=this._getFormDataForAttachment(r,n.query);try{const e=await(0,i.default)(a,{body:o});return this._createFeatureEditResult(e.data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(s,e)}}async applyEdits(e,t){await this.load();const{layer:r}=this,s=r.infoFor3D,a=null!=s,o=a||(t?.globalIdUsed??!1),l=a?await this._uploadMeshesAndGetAssetMapEditsJSON(e):null,d=e.addFeatures?.map((e=>this._getFeatureJSON(e,s)))??[],c=(await Promise.all(d)).filter(u.pC),p=e.updateFeatures?.map((e=>this._getFeatureJSON(e,s)))??[],h=(await Promise.all(p)).filter(u.pC),y=this._getFeatureIds(e.deleteFeatures,o);(0,N.P)(c,h,r.spatialReference);const f=await this._getAttachmentEditsJSON(e),m=r.capabilities.editing.supportsAsyncApplyEdits&&a,g={gdbVersion:t?.gdbVersion||r.gdbVersion,rollbackOnFailure:t?.rollbackOnFailureEnabled,useGlobalIds:o,returnEditMoment:t?.returnEditMoment,usePreviousEditMoment:t?.usePreviousEditMoment,sessionId:t?.sessionId,async:m};t?.returnServiceEditsOption?(g.edits=JSON.stringify([{id:r.layerId,adds:c,updates:h,deletes:y,attachments:f,assetMaps:l}]),g.returnServiceEditsOption=G.toJSON(t?.returnServiceEditsOption),g.returnServiceEditsInSourceSR=t?.returnServiceEditsInSourceSR):(g.adds=c.length?JSON.stringify(c):null,g.updates=h.length?JSON.stringify(h):null,g.deletes=y.length?o?JSON.stringify(y):y.join(","):null,g.attachments=f&&JSON.stringify(f),g.assetMaps=null!=l?JSON.stringify(l):void 0);const b=this._getLayerRequestOptions({method:"post",query:g}),F=t?.returnServiceEditsOption?r.url:r.parsedUrl.path,S=m?await this._asyncApplyEdits(F+"/applyEdits",b):await(0,i.default)(F+"/applyEdits",b);if(!r.capabilities.operations?.supportsEditing&&r.effectiveCapabilities?.operations?.supportsEditing){const e=n.id?.findCredential(r.url);await(e?.refreshToken())}return this._createEditsResult(S)}async deleteAttachments(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/deleteAttachments";try{return(await(0,i.default)(s,this._getLayerRequestOptions({query:{attachmentIds:t.join(",")},method:"post"}))).data.deleteAttachmentResults.map(this._createFeatureEditResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}fetchRecomputedExtents(e={}){const t=e.signal;return this.load({signal:t}).then((async()=>{const t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:a}=await(0,i.default)(`${s}/${r}`,t),{id:n,extent:u,fullExtent:l,timeExtent:d}=a,c=u||l;return{id:n,fullExtent:c&&w.Z.fromJSON(c),timeExtent:d&&o.Z.fromJSON({start:d[0],end:d[1]})}}))}async queryAttachments(e,t={}){await this.load();const r=this._getLayerRequestOptions(t);return this.queryTask.executeAttachmentQuery(e,r)}async queryFeatures(e,t){return await this.load(),this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}async fetchPublishingStatus(){if(!(0,D.M8)(this.layer.url))return"unavailable";const e=(0,g.v_)(this.layer.url,"status"),t=await(0,i.default)(e,{query:{f:"json"}});return B.fromJSON(t.data.status)}async uploadAssets(e,t){const{uploadAssets:s}=await r.e(6946).then(r.bind(r,36946));return s(e,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},t)}async _asyncApplyEdits(e,t){const r=(await(0,i.default)(e,t)).data.statusUrl;for(;;){const e=(await(0,i.default)(r,{query:{f:"json"},responseType:"json"})).data;switch(e.status){case"Completed":return(0,i.default)(e.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new l.Z("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new l.Z("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,f.e4)(J)}}_createRequestQueryOptions(e){const t={...this.layer.customParameters,token:this.layer.apiKey,...e?.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){const{data:r}=await(0,i.default)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:(0,d.Z)("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:t}));e=r}this.sourceJSON=this._patchServiceJSON(e);const r=e.type;if(!U.has(r))throw new l.Z("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}_patchServiceJSON(e){if("Table"!==e.type&&e.geometryType&&!e?.drawingInfo?.renderer&&!e.defaultSymbol){const t=(0,Z.bU)(e.geometryType).renderer;(0,y.RB)("drawingInfo.renderer",t,e)}return"esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),e}async _getFeatureJSON(e,t){const{geometry:r}=e,s={...e.attributes};if(null!=t&&"mesh"===r?.type){const{transformFieldRoles:e}=t,{origin:a,spatialReference:n,transform:i}=r,o=this.layer.spatialReference;await(0,_.initializeProjection)(n,o);const u=(0,_.iV)(a,o);if(s[e.originX]=u.x,s[e.originY]=u.y,s[e.originZ]=u.z??0,null!=i){const{translation:t,scale:a,rotation:u}=i,{vertexSpace:l}=r,d=l.isGeoreferenced?1:(0,m.r6)(n)/(0,m.r6)(o);s[e.translationX]=t[0]*d,s[e.translationY]=-t[2]*d,s[e.translationZ]=t[1]*d,s[e.scaleX]=a[0],s[e.scaleY]=a[2],s[e.scaleZ]=a[1],s[e.rotationX]=u[0],s[e.rotationY]=u[2],s[e.rotationZ]=u[1],s[e.rotationDeg]=u[3]}return{geometry:null,attributes:s}}return null==r?{attributes:s}:"mesh"===r.type||"extent"===r.type?null:{geometry:r.toJSON(),attributes:s}}async _getAttachmentEditsJSON(e){const t=await Promise.all((e.addAttachments??[]).map((e=>this._getAttachmentEditJSON(e)))),r=await Promise.all((e.updateAttachments??[]).map((e=>this._getAttachmentEditJSON(e)))),s=e.deleteAttachments??[];return t.length||r.length||s.length?{adds:t,updates:r,deletes:[...s]}:null}async _getAttachmentEditJSON(e){const{feature:t,attachment:r}=e,{globalId:s,name:a,contentType:n,data:i,uploadId:o}=r,u={globalId:s,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};if(t&&(u.parentGlobalId="attributes"in t?t.attributes&&t.attributes[this.layer.globalIdField]:t.globalId),o)u.uploadId=o;else if(i){const e=await(0,g.IR)(i);e&&(u.contentType=e.mediaType,u.data=e.data),i instanceof File&&(u.name=i.name)}return a&&(u.name=a),n&&(u.contentType=n),u}async _uploadMeshesAndGetAssetMapEditsJSON(e){const{addAssetFeatures:t}=e;if(!t?.length)return null;const r=await this._filterRedundantAssetMaps(t);if(!t?.length)return null;const s=new Array,a=new Map;for(const e of r){const{geometry:t}=e,{vertexSpace:r}=t;if(r.isRelative)s.push(t);else{const r=E(t);a.set(r,t),e.geometry=r,s.push(r)}}await this.uploadAssets(s);for(const[e,t]of a)t.addExternalSources(e.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(r),updates:[],deletes:[]}}_getAssetMapEditsJSON(e){const t=new Array,r=this.layer.globalIdField,s=this.layer.parsedUrl;for(const a of e){const e=a.geometry,{metadata:n}=e,i=n.getExternalSourcesOnService(s),o=a.getAttribute(r);if(0===i.length){h.Z.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=i.find(x.yT)??i[0],{vertexSpace:l}=e,d=l.isGeoreferenced?["PROJECT_VERTICES"]:[];for(const e of u)1===e.parts.length?t.push({globalId:(0,b.z)(),parentGlobalId:o,assetName:e.assetName,assetHash:e.parts[0].partHash,flags:d}):h.Z.getLogger(this).error(`Skipping asset ${e.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return t}_getFeatureIds(e,t){if(!e||0===e.length)return[];if(t&&(0,C.Ey)(e))return e.map((e=>e.globalId));if((0,C.aw)(e))return e.map((e=>e.objectId));const{layer:r}=this,s=t?r.globalIdField:r.objectIdField;return s?e.map((e=>e.getAttribute(s))):[]}_createEditsResult(e){const t=e.data,{layerId:r}=this.layer,s=[];let a=null;if(Array.isArray(t))for(const e of t)s.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(a={addResults:e.addResults??[],updateResults:e.updateResults??[],deleteResults:e.deleteResults??[],attachments:e.attachments,editMoment:e.editMoment});else a=t;const n=a?.assetMaps;if(n){for(const e of n.addResults)e.success||h.Z.getLogger(this).error(`Failed to map asset to feature with globalId ${e.globalId}.`);for(const e of n.updateResults)e.success||h.Z.getLogger(this).error(`Failed to map asset to feature with globalId ${e.globalId}.`)}const i=a?.attachments,o={addFeatureResults:a?.addResults?.map(this._createFeatureEditResult,this)??[],updateFeatureResults:a?.updateResults?.map(this._createFeatureEditResult,this)??[],deleteFeatureResults:a?.deleteResults?.map(this._createFeatureEditResult,this)??[],addAttachmentResults:i&&i.addResults?i.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:i&&i.updateResults?i.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:i&&i.deleteResults?i.deleteResults.map(this._createFeatureEditResult,this):[]};if(a?.editMoment&&(o.editMoment=a.editMoment),s.length>0){o.editedFeatureResults=[];for(const e of s){const{editedFeatures:t}=e,r=t?.spatialReference?new $.Z(t.spatialReference):null;o.editedFeatureResults.push({layerId:e.id,editedFeatures:{adds:t?.adds?.map((e=>this._createEditedFeature(e,r)))||[],updates:t?.updates?.map((e=>({original:this._createEditedFeature(e[0],r),current:this._createEditedFeature(e[1],r)})))||[],deletes:t?.deletes?.map((e=>this._createEditedFeature(e,r)))||[],spatialReference:r}})}}return o}_createEditedFeature(e,t){return new a.Z({attributes:e.attributes,geometry:(0,R.im)({...e.geometry,spatialReference:t})})}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new l.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_createAttachmentErrorResult(e,t){const r=t.details.messages&&t.details.messages[0]||t.message,s=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new l.Z("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(e,t){const r=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(r)for(const e in t){const s=t[e];null!=s&&(r.set?r.set(e,s):r.append(e,s))}return r}_getLayerRequestOptions(e={}){const{parsedUrl:t,gdbVersion:r,dynamicDataSource:s}=this.layer;return{...e,query:{gdbVersion:r,layer:s?JSON.stringify({source:s}):void 0,...t.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}async _filterRedundantAssetMaps(e){const{layer:t}=this,{globalIdField:r,infoFor3D:s,parsedUrl:a}=t;if(null==s||null==r)return e;const n=(0,M.$6)(s);if(null==n)return e;const i=(0,g.v_)(a.path,`../${n.id}`),o=new Array,l=new Array;for(const t of e)t.geometry.metadata.getExternalSourcesOnService(a).length>0?l.push(t):o.push(t);const d=l.map((e=>e.getAttribute(r))).filter(u.pC);if(0===d.length)return e;const{assetMapFieldRoles:{parentGlobalId:c,assetHash:p}}=s,h=new k.Z;h.where=`${c} IN (${d.map((e=>`'${e}'`))})`,h.outFields=[p,c],h.returnGeometry=!1;const y=await(0,P.e)(i,h),{features:f}=y;return 0===f.length?e:[...o,...l.filter((e=>{const t=e.getAttribute(r);if(!t)return!0;const{metadata:s}=e.geometry,n=f.filter((e=>e.getAttribute(c)===t));if(0===n.length)return!0;const i=n.map((e=>e.getAttribute(p)));return s.getExternalSourcesOnService(a).flatMap((({source:e})=>e.flatMap((e=>e.parts.map((e=>e.partHash)))))).some((e=>i.every((t=>e!==t))))}))]}};(0,s._)([(0,F.Cb)()],j.prototype,"type",void 0),(0,s._)([(0,F.Cb)({constructOnly:!0})],j.prototype,"layer",void 0),(0,s._)([(0,F.Cb)({readOnly:!0})],j.prototype,"queryTask",null),j=(0,s._)([(0,S.j)("esri.layers.graphics.sources.FeatureLayerSource")],j);const J=1e3,Q=j},49735:(e,t,r)=>{r.d(t,{Z:()=>R});var s=r(43697),a=r(92036),n=r(20102),i=r(80442),o=r(95330),u=r(81271),l=r(5600),d=(r(75215),r(67676),r(52011)),c=r(2981),p=r(10158),h=r(11282),y=r(41818),f=(r(66577),r(34599)),m=r(14165),g=r(6570),b=r(5396),F=r(4967),S=r(53261),w=r(74889);let _=class extends a.Z{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.url=null}get parsedUrl(){return(0,u.mN)(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),s=null!=e.outStatistics?.[0],a=(0,i.Z)("featurelayer-pbf-statistics"),n=!s||a;let o;if(this.pbfSupported&&n)try{o=await(0,S.t)(this.url,r,t)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return this.pbfSupported&&n||(o=await(0,F.F)(this.url,r,t)),this._normalizeFields(o.fields),o}async featureSetFromJSON(e,t,s){if(!this._queryIs3DObjectFormat(e)||null==this.infoFor3D||!t.features)return w.Z.fromJSON(t);const{meshFeatureSetFromJSON:a}=await(0,o.Hl)(Promise.all([r.e(6481),r.e(6459),r.e(7616)]).then(r.bind(r,91681)),s);return a(e,this.infoFor3D,t)}executeForCount(e,t){return(0,y.P)(this.url,this._normalizeQuery(e),t)}executeForExtent(e,t){return async function(e,t,r){const s=(0,h.en)(e);return(0,f.Vr)(s,m.Z.from(t),{...r}).then((e=>({count:e.data.count,extent:g.Z.fromJSON(e.data.extent)})))}(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,b.G)(this.url,this._normalizeQuery(e),t)}async executeRelationshipQuery(e,t){const[{default:s},{executeRelationshipQuery:a}]=await(0,o.Hl)(Promise.all([r.e(5935).then(r.bind(r,75935)),r.e(1073).then(r.bind(r,81073))]),t);return e=s.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),a(this.url,e,t)}async executeRelationshipQueryForCount(e,t){const[{default:s},{executeRelationshipQueryForCount:a}]=await(0,o.Hl)(Promise.all([r.e(5935).then(r.bind(r,75935)),r.e(1073).then(r.bind(r,81073))]),t);return e=s.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),a(this.url,e,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:s,fetchAttachments:a,processAttachmentQueryResult:n}=await(0,o.Hl)(r.e(540).then(r.bind(r,30540)),t),i=(0,h.en)(this.url);return n(i,await(this.queryAttachmentsSupported?s(i,e,t):a(i,e,t)))}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:s}=await(0,o.Hl)(r.e(1158).then(r.bind(r,71158)),t);return s(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:s}=await(0,o.Hl)(r.e(3992).then(r.bind(r,33992)),t);return s(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:s}=await(0,o.Hl)(r.e(1790).then(r.bind(r,21790)),t);return s(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:s}=await(0,o.Hl)(r.e(4371).then(r.bind(r,14371)),t);return s(this.parsedUrl,e,t)}_normalizeQuery(e){let t=m.Z.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?p.n.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this;if(null!=r&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;const{supportedFormats:s,queryFormats:a}=r,i=(0,c.S0)("model/gltf-binary",s)??(0,c.Ow)("glb",s),o=(0,c.S0)("model/gltf+json",s)??(0,c.Ow)("gtlf",s);for(const e of a){if(e===i){t.formatOf3DObjects=e;break}e!==o||t.formatOf3DObjects||(t.formatOf3DObjects=e)}if(!t.formatOf3DObjects)throw new n.Z("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:s,originY:a,originZ:n,translationX:i,translationY:o,translationZ:u,scaleX:l,scaleY:d,scaleZ:c,rotationX:p,rotationY:h,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;t.outFields.push(s,a,n,i,o,u,l,d,c,p,h,y,f)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return null!=this.infoFor3D&&!0===e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,s._)([(0,l.Cb)({type:p.n})],_.prototype,"dynamicDataSource",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"fieldsIndex",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"gdbVersion",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"infoFor3D",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,s._)([(0,l.Cb)()],_.prototype,"pbfSupported",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"queryAttachmentsSupported",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"sourceSpatialReference",void 0),(0,s._)([(0,l.Cb)({type:String})],_.prototype,"url",void 0),_=(0,s._)([(0,d.j)("esri.tasks.QueryTask")],_);const R=_},25278:(e,t,r)=>{r.d(t,{Dm:()=>d,Hq:()=>c,MS:()=>p,bU:()=>o});var s=r(80442),a=r(22974),n=r(61159),i=r(58333);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?i.I4:"esriGeometryPolyline"===e?i.ET:i.lF}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function d(e,t){if((0,s.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${u.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[t]:null,...e})}}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,a.d9)(e)}}]}function p(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:n.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1}}}},2981:(e,t,r)=>{r.d(t,{$6:()=>d,Ow:()=>n,S0:()=>a,d1:()=>i});const s=[["binary","application/octet-stream","bin",""]];function a(e,t){return u(function(e,t){return o(t).find((t=>l(t)===e))}(e,t))}function n(e,t){return u(function(e,t){const r=e.toLowerCase();return o(t).find((e=>function(e){return e?.[2].split(",")??[]}(e).some((e=>r.endsWith(e)))))}(e,t))}function i(e,t){return l(function(e,t){return o(t).find((t=>u(t)===e))}(e,t))}function o(e){return[...s,...e]}function u(e){return e?.[0]}function l(e){return e?.[1]}function d(e){return e.tables?.find((e=>"assetMaps"===e.role))}},41818:(e,t,r)=>{r.d(t,{P:()=>i});var s=r(11282),a=r(34599),n=r(14165);async function i(e,t,r){const i=(0,s.en)(e);return(0,a.hH)(i,n.Z.from(t),{...r}).then((e=>e.data.count))}},5396:(e,t,r)=>{r.d(t,{G:()=>i});var s=r(11282),a=r(34599),n=r(14165);async function i(e,t,r){const i=(0,s.en)(e);return(0,a.Ev)(i,n.Z.from(t),{...r}).then((e=>e.data.objectIds))}},4967:(e,t,r)=>{r.d(t,{F:()=>u,e:()=>o});var s=r(11282),a=r(34599),n=r(74889),i=r(14165);async function o(e,t,r){const s=await u(e,t,r);return n.Z.fromJSON(s)}async function u(e,t,r){const n=(0,s.en)(e),o={...r},u=i.Z.from(t),{data:l}=await(0,a.JT)(n,u,u.sourceSpatialReference,o);return l}},53261:(e,t,r)=>{r.d(t,{t:()=>m});var s=r(11282),a=r(70586),n=r(69285),i=r(98732);function o(e,t){return t}function u(e,t,r,s){switch(r){case 0:return p(e,t+s,0);case 1:return"lowerLeft"===e.originPosition?p(e,t+s,1):function({translate:e,scale:t},r,s){return e[s]-r*t[s]}(e,t+s,1)}}function l(e,t,r,s){return 2===r?p(e,t,2):u(e,t,r,s)}function d(e,t,r,s){return 2===r?p(e,t,3):u(e,t,r,s)}function c(e,t,r,s){return 3===r?p(e,t,3):l(e,t,r,s)}function p({translate:e,scale:t},r,s){return e[s]+r*t[s]}class h{constructor(e){this._options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=o,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,n.k)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){const r=e.fields;(0,a.O3)(r),r.push(t);const s=r.map((e=>e.name));this._attributesConstructor=function(){for(const e of s)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:s}=t,a=(0,i.$g)(r.clone(),r,!1,!1,this._transform),n=(0,i.di)(a,s,!1,!1);e.queryGeometryType=s,e.queryGeometry={...n}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const s=(0,a.s3)(this._transform,"transform");switch(t=this._applyTransform(s,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e);const s=(0,a.s3)(this._transform,"transform");return this._applyTransform(s,e,t,r)}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const s=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(s)}_createPolygonGeometry(e){return{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const s=this._transformPathLikeValue(t,r),a=e[e.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),a.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=s}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?c:t?l:r?d:u}}var y=r(34599),f=(r(74889),r(14165));async function m(e,t,r){const a=(0,s.en)(e),n={...r},i=f.Z.from(t),o=!i.quantizationParameters,{data:u}=await(0,y.qp)(a,i,new h({sourceSpatialReference:i.sourceSpatialReference,applyTransform:o}),n);return u}}}]);