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

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 (134) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{0e65e00173b66c7fec2e.js → 09e677ca7532a281d262.js} +1 -1
  3. package/assets/esri/core/workers/chunks/{89001ee8d3f69fa03cc1.js → 0f7ddb063ee0664f2fca.js} +1 -1
  4. package/assets/esri/core/workers/chunks/17ab08f60764244b2cf8.js +1 -0
  5. package/assets/esri/core/workers/chunks/{2446e336b1f7256d4fde.js → 2c587ed66e2586cccb8d.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{00c7b9fb375c9a934158.js → 38c6452dc9cf18e8bca8.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{16db0bc87d87a7313dc4.js → 4806df402845c717c842.js} +1 -1
  8. package/assets/esri/core/workers/chunks/4884432d80e9af947449.js +1 -0
  9. package/assets/esri/core/workers/chunks/588cd91d08cec5207be1.js +1 -0
  10. package/assets/esri/core/workers/chunks/{83e3d104886b48f00397.js → 633c00c02a81397fc8df.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{efb96aefe979a0f5c632.js → 640e8ac3498be30c6614.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{33901eb1574e46abd9af.js → 6c213768715c52625855.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{5e6471dd2a08e66b47d0.js → 6e4940fe3bba014c921b.js} +57 -58
  14. package/assets/esri/core/workers/chunks/{3160af63b860b52db389.js → 6f724f75f85dc3989d60.js} +1 -1
  15. package/assets/esri/core/workers/chunks/8b05fb365336cc42fecc.js +1 -0
  16. package/assets/esri/core/workers/chunks/8eec6da5e862cc33ea2b.js +1 -0
  17. package/assets/esri/core/workers/chunks/90d8f297d9cb359e071d.js +1 -0
  18. package/assets/esri/core/workers/chunks/91785144901dfe56c5e2.js +1 -0
  19. package/assets/esri/core/workers/chunks/{471f6eba213412b82840.js → 927417abea79c955b216.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{adaa9d4239f4e905d011.js → 9d4bd73dd50400e9d328.js} +1 -1
  21. package/assets/esri/core/workers/chunks/a324cc07d486061d0d8e.js +1 -0
  22. package/assets/esri/core/workers/chunks/a40130579791293cefa2.js +1 -0
  23. package/assets/esri/core/workers/chunks/{50f910797c17c3028521.js → a49718c74053314ed741.js} +1 -1
  24. package/assets/esri/core/workers/chunks/ad2891985e0fe45aa8d2.js +1 -0
  25. package/assets/esri/core/workers/chunks/afcba35eea836aea98ca.js +1 -0
  26. package/assets/esri/core/workers/chunks/b3d2e397ea74ebef4423.js +1 -0
  27. package/assets/esri/core/workers/chunks/b5fb9da45cc9dee286f8.js +1 -0
  28. package/assets/esri/core/workers/chunks/b846d4215210aac9f6ef.js +1 -0
  29. package/assets/esri/core/workers/chunks/c7dc821db8c14fec24a7.js +1 -0
  30. package/assets/esri/core/workers/chunks/c9df9a0a4a45f9a53ce9.js +1 -0
  31. package/assets/esri/core/workers/chunks/{45a4041881e6235d73a2.js → d0a9711f48dfa5fee68a.js} +1 -1
  32. package/assets/esri/core/workers/chunks/e23ec4f867c4735eec20.js +1 -0
  33. package/assets/esri/core/workers/chunks/{ff42585e1b1d0c5497af.js → ea16230a0edfc9f756bd.js} +1 -1
  34. package/assets/esri/core/workers/chunks/ef900614353505afb210.js +1 -0
  35. package/assets/esri/themes/base/_View.scss +2 -5
  36. package/assets/esri/themes/base/widgets/_Feature.scss +12 -4
  37. package/assets/esri/themes/dark/main.css +1 -1
  38. package/assets/esri/themes/light/main.css +1 -1
  39. package/assets/esri/themes/light/view.css +1 -1
  40. package/chunks/DefaultMaterial.glsl.js +42 -42
  41. package/chunks/Terrain.glsl.js +7 -7
  42. package/copyright.txt +1 -1
  43. package/geometry/Mesh.js +1 -1
  44. package/geometry/support/meshUtils/bounds.js +1 -1
  45. package/geometry/support/meshUtils/georeference.js +1 -1
  46. package/interfaces.d.ts +3 -3
  47. package/kernel.js +1 -1
  48. package/layers/OrientedImageryLayer.js +1 -1
  49. package/layers/SceneLayer.js +1 -1
  50. package/layers/VideoLayer.js +1 -1
  51. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  52. package/layers/graphics/editingSupport.js +1 -1
  53. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  54. package/layers/graphics/sources/OGCFeatureSource.js +1 -1
  55. package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
  56. package/layers/graphics/sources/support/uploadAssets.js +1 -1
  57. package/layers/mixins/ArcGISImageService.js +1 -1
  58. package/layers/mixins/ImageryTileMixin.js +1 -1
  59. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  60. package/layers/orientedImagery/core/bestImageUtils.js +1 -1
  61. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  62. package/layers/orientedImagery/transformations/groundToImageUtils.js +1 -1
  63. package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
  64. package/layers/support/SubtypeSublayer.js +1 -1
  65. package/layers/support/capabilities.js +1 -1
  66. package/layers/support/layerUtils.js +1 -1
  67. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  68. package/layers/video/VideoCameraSensorModel.js +5 -0
  69. package/layers/video/VideoController.js +1 -1
  70. package/layers/video/videoUtils.js +1 -1
  71. package/package.json +1 -1
  72. package/portal/PortalItem.js +1 -1
  73. package/renderers/support/colorRampUtils.js +1 -1
  74. package/rest/support/meshFeatureSet.js +1 -1
  75. package/smartMapping/labels/bins.js +5 -0
  76. package/smartMapping/labels/clusters.js +1 -1
  77. package/smartMapping/labels/support/utils.js +5 -0
  78. package/smartMapping/support/binningUtils.js +1 -1
  79. package/support/revision.js +1 -1
  80. package/views/2d/layers/features/schemaUtils.js +1 -1
  81. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  82. package/views/3d/layers/I3SMeshView3D.js +1 -1
  83. package/views/3d/layers/I3SMeshViewLabeler.js +1 -1
  84. package/views/3d/layers/I3SMeshWorkerHandle.js +1 -1
  85. package/views/3d/layers/SceneLayerWorker.js +1 -1
  86. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  87. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +5 -0
  88. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  89. package/views/3d/layers/i3s/I3SGeometryUtil.js +1 -1
  90. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  91. package/views/3d/terrain/TerrainRenderer.js +1 -1
  92. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +19 -20
  93. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +2 -2
  94. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +9 -9
  95. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  96. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  97. package/views/DOMContainer.js +1 -1
  98. package/views/PopupView.js +1 -1
  99. package/views/ui/DefaultUI.js +1 -1
  100. package/views/ui/UI.js +1 -1
  101. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  102. package/widgets/Editor/EditorViewModel.js +1 -1
  103. package/widgets/Editor/UpdateWorkflow.js +1 -1
  104. package/widgets/Editor/workflowUtils.js +1 -1
  105. package/widgets/Feature/support/featureUtils.js +1 -1
  106. package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
  107. package/widgets/FeatureForm/RelationshipInput.js +1 -1
  108. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  109. package/widgets/OrientedImageryViewer.js +1 -1
  110. package/widgets/Popup.js +1 -1
  111. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +1 -1
  112. package/assets/esri/core/workers/chunks/013de5c2955801b329b3.js +0 -1
  113. package/assets/esri/core/workers/chunks/0618fb0058f39ecd363f.js +0 -1
  114. package/assets/esri/core/workers/chunks/07163dcbb871f927a580.js +0 -1
  115. package/assets/esri/core/workers/chunks/0e46687004392c493c06.js +0 -1
  116. package/assets/esri/core/workers/chunks/21328f3dd26abe84a10d.js +0 -1
  117. package/assets/esri/core/workers/chunks/2faa8f08f2fdaac3f4af.js +0 -1
  118. package/assets/esri/core/workers/chunks/624521961fe1f2c4f2c5.js +0 -1
  119. package/assets/esri/core/workers/chunks/6f510f28526c73ab453c.js +0 -1
  120. package/assets/esri/core/workers/chunks/7479dc0c790337af7597.js +0 -1
  121. package/assets/esri/core/workers/chunks/a6ddf80eb324c35076e1.js +0 -1
  122. package/assets/esri/core/workers/chunks/a7fd2a95fde197c06828.js +0 -1
  123. package/assets/esri/core/workers/chunks/b8e6c64792a512df4c4d.js +0 -1
  124. package/assets/esri/core/workers/chunks/bf9e1fde9f6b2b4f10c0.js +0 -1
  125. package/assets/esri/core/workers/chunks/c96db6b7ce47bd343fdb.js +0 -1
  126. package/assets/esri/core/workers/chunks/cfa3b2b1e184681e9af4.js +0 -1
  127. package/assets/esri/core/workers/chunks/d95ca50ca7af4c222036.js +0 -1
  128. package/assets/esri/core/workers/chunks/ee5ee03dd2c7dc940272.js +0 -1
  129. package/assets/esri/core/workers/chunks/f720967ba8c5486a26a2.js +0 -1
  130. package/layers/orientedImagery/core/Affixes.js +0 -5
  131. package/layers/orientedImagery/core/CameraProperties.js +0 -5
  132. package/layers/orientedImagery/core/ImageProperties.js +0 -5
  133. package/layers/orientedImagery/core/ImageryTypes.js +0 -5
  134. package/layers/orientedImagery/core/imageryUtils.js +0 -5
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6626,3172,5732,661,5234,9880],{99880:(t,e,r)=>{r.d(e,{V:()=>c});var n=r(68773),o=(r(3172),r(20102)),s=r(92604),a=r(81271);const i=s.Z.getLogger("esri.assets");function c(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,a.v_)(n.default.assetsPath,t)}},5732:(t,e,r)=>{r.d(e,{c:()=>n,g:()=>o});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},46521:(t,e,r)=>{function n(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,r,n,o,s,a,i,c){return[t,e,r,n,o,s,a,i,c]}function s(t,e){return new Float64Array(t,e,9)}r.d(e,{a:()=>s,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:s,fromValues:o},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,r)=>{r.d(e,{A:()=>p,a:()=>c,d:()=>m,e:()=>f,f:()=>d,g:()=>y,h:()=>x,i:()=>a,j:()=>w,k:()=>h,m:()=>l,s:()=>s,t:()=>i,w:()=>u,y:()=>v,z:()=>_});var n=r(65617),o=r(46851);function s(t,e,r,n,o,s,a,i,c,l,u,h,f,d,m,p,g){return t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=s,t[5]=a,t[6]=i,t[7]=c,t[8]=l,t[9]=u,t[10]=h,t[11]=f,t[12]=d,t[13]=m,t[14]=p,t[15]=g,t}function a(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],s=e[6],a=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]=s,t[11]=e[14],t[12]=o,t[13]=a,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 c(t,e){const r=e[0],n=e[1],o=e[2],s=e[3],a=e[4],i=e[5],c=e[6],l=e[7],u=e[8],h=e[9],f=e[10],d=e[11],m=e[12],p=e[13],g=e[14],M=e[15],y=r*i-n*a,b=r*c-o*a,x=r*l-s*a,w=n*c-o*i,_=n*l-s*i,v=o*l-s*c,S=u*p-h*m,q=u*g-f*m,O=u*M-d*m,T=h*g-f*p,B=h*M-d*p,P=f*M-d*g;let E=y*P-b*B+x*T+w*O-_*q+v*S;return E?(E=1/E,t[0]=(i*P-c*B+l*T)*E,t[1]=(o*B-n*P-s*T)*E,t[2]=(p*v-g*_+M*w)*E,t[3]=(f*_-h*v-d*w)*E,t[4]=(c*O-a*P-l*q)*E,t[5]=(r*P-o*O+s*q)*E,t[6]=(g*x-m*v-M*b)*E,t[7]=(u*v-f*x+d*b)*E,t[8]=(a*B-i*O+l*S)*E,t[9]=(n*O-r*B-s*S)*E,t[10]=(m*_-p*x+M*y)*E,t[11]=(h*x-u*_-d*y)*E,t[12]=(i*q-a*T-c*S)*E,t[13]=(r*T-n*q+o*S)*E,t[14]=(p*b-m*w-g*y)*E,t[15]=(u*w-h*b+f*y)*E,t):null}function l(t,e,r){const n=e[0],o=e[1],s=e[2],a=e[3],i=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=e[9],d=e[10],m=e[11],p=e[12],g=e[13],M=e[14],y=e[15];let b=r[0],x=r[1],w=r[2],_=r[3];return t[0]=b*n+x*i+w*h+_*p,t[1]=b*o+x*c+w*f+_*g,t[2]=b*s+x*l+w*d+_*M,t[3]=b*a+x*u+w*m+_*y,b=r[4],x=r[5],w=r[6],_=r[7],t[4]=b*n+x*i+w*h+_*p,t[5]=b*o+x*c+w*f+_*g,t[6]=b*s+x*l+w*d+_*M,t[7]=b*a+x*u+w*m+_*y,b=r[8],x=r[9],w=r[10],_=r[11],t[8]=b*n+x*i+w*h+_*p,t[9]=b*o+x*c+w*f+_*g,t[10]=b*s+x*l+w*d+_*M,t[11]=b*a+x*u+w*m+_*y,b=r[12],x=r[13],w=r[14],_=r[15],t[12]=b*n+x*i+w*h+_*p,t[13]=b*o+x*c+w*f+_*g,t[14]=b*s+x*l+w*d+_*M,t[15]=b*a+x*u+w*m+_*y,t}function u(t,e,r){const n=r[0],o=r[1],s=r[2];if(e===t)t[12]=e[0]*n+e[4]*o+e[8]*s+e[12],t[13]=e[1]*n+e[5]*o+e[9]*s+e[13],t[14]=e[2]*n+e[6]*o+e[10]*s+e[14],t[15]=e[3]*n+e[7]*o+e[11]*s+e[15];else{const r=e[0],a=e[1],i=e[2],c=e[3],l=e[4],u=e[5],h=e[6],f=e[7],d=e[8],m=e[9],p=e[10],g=e[11];t[0]=r,t[1]=a,t[2]=i,t[3]=c,t[4]=l,t[5]=u,t[6]=h,t[7]=f,t[8]=d,t[9]=m,t[10]=p,t[11]=g,t[12]=r*n+l*o+d*s+e[12],t[13]=a*n+u*o+m*s+e[13],t[14]=i*n+h*o+p*s+e[14],t[15]=c*n+f*o+g*s+e[15]}return t}function h(t,e,r){const n=r[0],o=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]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,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,a,i,c,l,u,h,f,d,m,p,g,M,y,b,x,w,_,v,S,q,O,T,B,P=n[0],E=n[1],k=n[2],C=Math.sqrt(P*P+E*E+k*k);return C<(0,o.g)()?null:(C=1/C,P*=C,E*=C,k*=C,s=Math.sin(r),a=Math.cos(r),i=1-a,c=e[0],l=e[1],u=e[2],h=e[3],f=e[4],d=e[5],m=e[6],p=e[7],g=e[8],M=e[9],y=e[10],b=e[11],x=P*P*i+a,w=E*P*i+k*s,_=k*P*i-E*s,v=P*E*i-k*s,S=E*E*i+a,q=k*E*i+P*s,O=P*k*i+E*s,T=E*k*i-P*s,B=k*k*i+a,t[0]=c*x+f*w+g*_,t[1]=l*x+d*w+M*_,t[2]=u*x+m*w+y*_,t[3]=h*x+p*w+b*_,t[4]=c*v+f*S+g*q,t[5]=l*v+d*S+M*q,t[6]=u*v+m*S+y*q,t[7]=h*v+p*S+b*q,t[8]=c*O+f*T+g*B,t[9]=l*O+d*T+M*B,t[10]=u*O+m*T+y*B,t[11]=h*O+p*T+b*B,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function d(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 a(t);let n,s,i,c=r[0],l=r[1],u=r[2],h=Math.sqrt(c*c+l*l+u*u);return h<(0,o.g)()?null:(h=1/h,c*=h,l*=h,u*=h,n=Math.sin(e),s=Math.cos(e),i=1-s,t[0]=c*c*i+s,t[1]=l*c*i+u*n,t[2]=u*c*i-l*n,t[3]=0,t[4]=c*l*i-u*n,t[5]=l*l*i+s,t[6]=u*l*i+c*n,t[7]=0,t[8]=c*u*i+l*n,t[9]=l*u*i-c*n,t[10]=u*u*i+s,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 g(t,e,r){const n=e[0],o=e[1],s=e[2],a=e[3],i=n+n,c=o+o,l=s+s,u=n*i,h=n*c,f=n*l,d=o*c,m=o*l,p=s*l,g=a*i,M=a*c,y=a*l;return t[0]=1-(d+p),t[1]=h+y,t[2]=f-M,t[3]=0,t[4]=h-y,t[5]=1-(u+p),t[6]=m+g,t[7]=0,t[8]=f+M,t[9]=m-g,t[10]=1-(u+d),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const M=(0,n.c)();function y(t,e,r,n){const o=e[0],s=e[1],a=e[2],i=e[3],c=o+o,l=s+s,u=a+a,h=o*c,f=o*l,d=o*u,m=s*l,p=s*u,g=a*u,M=i*c,y=i*l,b=i*u,x=n[0],w=n[1],_=n[2];return t[0]=(1-(m+g))*x,t[1]=(f+b)*x,t[2]=(d-y)*x,t[3]=0,t[4]=(f-b)*w,t[5]=(1-(h+g))*w,t[6]=(p+M)*w,t[7]=0,t[8]=(d+y)*_,t[9]=(p-M)*_,t[10]=(1-(h+m))*_,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function b(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 x(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 w(t,e){if(t===e)return!0;const r=t[0],n=t[1],s=t[2],a=t[3],i=t[4],c=t[5],l=t[6],u=t[7],h=t[8],f=t[9],d=t[10],m=t[11],p=t[12],g=t[13],M=t[14],y=t[15],b=e[0],x=e[1],w=e[2],_=e[3],v=e[4],S=e[5],q=e[6],O=e[7],T=e[8],B=e[9],P=e[10],E=e[11],k=e[12],C=e[13],A=e[14],j=e[15],Y=(0,o.g)();return Math.abs(r-b)<=Y*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(n-x)<=Y*Math.max(1,Math.abs(n),Math.abs(x))&&Math.abs(s-w)<=Y*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(a-_)<=Y*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(i-v)<=Y*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(c-S)<=Y*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(l-q)<=Y*Math.max(1,Math.abs(l),Math.abs(q))&&Math.abs(u-O)<=Y*Math.max(1,Math.abs(u),Math.abs(O))&&Math.abs(h-T)<=Y*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(f-B)<=Y*Math.max(1,Math.abs(f),Math.abs(B))&&Math.abs(d-P)<=Y*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(m-E)<=Y*Math.max(1,Math.abs(m),Math.abs(E))&&Math.abs(p-k)<=Y*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(g-C)<=Y*Math.max(1,Math.abs(g),Math.abs(C))&&Math.abs(M-A)<=Y*Math.max(1,Math.abs(M),Math.abs(A))&&Math.abs(y-j)<=Y*Math.max(1,Math.abs(y),Math.abs(j))}function _(t){const e=(0,o.g)(),r=t[0],n=t[1],s=t[2],a=t[4],i=t[5],c=t[6],l=t[8],u=t[9],h=t[10];return Math.abs(1-(r*r+a*a+l*l))<=e&&Math.abs(1-(n*n+i*i+u*u))<=e&&Math.abs(1-(s*s+c*c+h*h))<=e}function v(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 S=l,q=b;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],s=e[3],a=e[4],i=e[5],c=e[6],l=e[7],u=e[8],h=e[9],f=e[10],d=e[11],m=e[12],p=e[13],g=e[14],M=e[15];return t[0]=i*(f*M-d*g)-h*(c*M-l*g)+p*(c*d-l*f),t[1]=-(n*(f*M-d*g)-h*(o*M-s*g)+p*(o*d-s*f)),t[2]=n*(c*M-l*g)-i*(o*M-s*g)+p*(o*l-s*c),t[3]=-(n*(c*d-l*f)-i*(o*d-s*f)+h*(o*l-s*c)),t[4]=-(a*(f*M-d*g)-u*(c*M-l*g)+m*(c*d-l*f)),t[5]=r*(f*M-d*g)-u*(o*M-s*g)+m*(o*d-s*f),t[6]=-(r*(c*M-l*g)-a*(o*M-s*g)+m*(o*l-s*c)),t[7]=r*(c*d-l*f)-a*(o*d-s*f)+u*(o*l-s*c),t[8]=a*(h*M-d*p)-u*(i*M-l*p)+m*(i*d-l*h),t[9]=-(r*(h*M-d*p)-u*(n*M-s*p)+m*(n*d-s*h)),t[10]=r*(i*M-l*p)-a*(n*M-s*p)+m*(n*l-s*i),t[11]=-(r*(i*d-l*h)-a*(n*d-s*h)+u*(n*l-s*i)),t[12]=-(a*(h*g-f*p)-u*(i*g-c*p)+m*(i*f-c*h)),t[13]=r*(h*g-f*p)-u*(n*g-o*p)+m*(n*f-o*h),t[14]=-(r*(i*g-c*p)-a*(n*g-o*p)+m*(n*c-o*i)),t[15]=r*(i*f-c*h)-a*(n*f-o*h)+u*(n*c-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],s=t[4],a=t[5],i=t[6],c=t[7],l=t[8],u=t[9],h=t[10],f=t[11],d=t[12],m=t[13],p=t[14],g=t[15];return(e*a-r*s)*(h*g-f*p)-(e*i-n*s)*(u*g-f*m)+(e*c-o*s)*(u*p-h*m)+(r*i-n*a)*(l*g-f*d)-(r*c-o*a)*(l*p-h*d)+(n*c-o*i)*(l*m-u*d)},equals:w,exactEquals:x,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],s=e[3],a=r+r,i=n+n,c=o+o,l=r*a,u=n*a,h=n*i,f=o*a,d=o*i,m=o*c,p=s*a,g=s*i,M=s*c;return t[0]=1-h-m,t[1]=u+M,t[2]=f-g,t[3]=0,t[4]=u-M,t[5]=1-l-m,t[6]=d+p,t[7]=0,t[8]=f+g,t[9]=d-p,t[10]=1-l-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const r=M,n=-e[0],o=-e[1],s=-e[2],a=e[3],i=e[4],c=e[5],l=e[6],u=e[7],h=n*n+o*o+s*s+a*a;return h>0?(r[0]=2*(i*a+u*n+c*s-l*o)/h,r[1]=2*(c*a+u*o+l*n-i*s)/h,r[2]=2*(l*a+u*s+i*o-c*n)/h):(r[0]=2*(i*a+u*n+c*s-l*o),r[1]=2*(c*a+u*o+l*n-i*s),r[2]=2*(l*a+u*s+i*o-c*n)),g(t,e,r),t},fromRotation:m,fromRotationTranslation:g,fromRotationTranslationScale:y,fromRotationTranslationScaleOrigin:function(t,e,r,n,o){const s=e[0],a=e[1],i=e[2],c=e[3],l=s+s,u=a+a,h=i+i,f=s*l,d=s*u,m=s*h,p=a*u,g=a*h,M=i*h,y=c*l,b=c*u,x=c*h,w=n[0],_=n[1],v=n[2],S=o[0],q=o[1],O=o[2],T=(1-(p+M))*w,B=(d+x)*w,P=(m-b)*w,E=(d-x)*_,k=(1-(f+M))*_,C=(g+y)*_,A=(m+b)*v,j=(g-y)*v,Y=(1-(f+p))*v;return t[0]=T,t[1]=B,t[2]=P,t[3]=0,t[4]=E,t[5]=k,t[6]=C,t[7]=0,t[8]=A,t[9]=j,t[10]=Y,t[11]=0,t[12]=r[0]+S-(T*S+E*q+A*O),t[13]=r[1]+q-(B*S+k*q+j*O),t[14]=r[2]+O-(P*S+C*q+Y*O),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:d,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,s,a){const i=1/(r-e),c=1/(o-n),l=1/(s-a);return t[0]=2*s*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*c,t[6]=0,t[7]=0,t[8]=(r+e)*i,t[9]=(o+n)*c,t[10]=(a+s)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*s*2*l,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],s=e[4],a=e[5],i=e[6],c=e[8],l=e[9],u=e[10];return t[0]=Math.sqrt(r*r+n*n+o*o),t[1]=Math.sqrt(s*s+a*a+i*i),t[2]=Math.sqrt(c*c+l*l+u*u),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:v,identity:a,invert:c,invertOrIdentity:function(t,e){return c(t,e)||a(t),t},isOrthoNormal:_,lookAt:function(t,e,r,n){const s=e[0],i=e[1],c=e[2];let l=s-r[0],u=i-r[1],h=c-r[2];const f=(0,o.g)();if(Math.abs(l)<f&&Math.abs(u)<f&&Math.abs(h)<f)return void a(t);let d=1/Math.sqrt(l*l+u*u+h*h);l*=d,u*=d,h*=d;const m=n[0],p=n[1],g=n[2];let M=p*h-g*u,y=g*l-m*h,b=m*u-p*l;d=Math.sqrt(M*M+y*y+b*b),d?(d=1/d,M*=d,y*=d,b*=d):(M=0,y=0,b=0);let x=u*b-h*y,w=h*M-l*b,_=l*y-u*M;d=Math.sqrt(x*x+w*w+_*_),d?(d=1/d,x*=d,w*=d,_*=d):(x=0,w=0,_=0),t[0]=M,t[1]=x,t[2]=l,t[3]=0,t[4]=y,t[5]=w,t[6]=u,t[7]=0,t[8]=b,t[9]=_,t[10]=h,t[11]=0,t[12]=-(M*s+y*i+b*c),t[13]=-(x*s+w*i+_*c),t[14]=-(l*s+u*i+h*c),t[15]=1},mul:S,multiply:l,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,s,a){const i=1/(e-r),c=1/(n-o),l=1/(s-a);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+r)*i,t[13]=(o+n)*c,t[14]=(a+s)*l,t[15]=1,t},perspective:function(t,e,r,n,o){const s=1/Math.tan(e/2);let a;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!=o&&o!==1/0?(a=1/(n-o),t[10]=(o+n)*a,t[14]=2*o*n*a):(t[10]=-1,t[14]=-2*n),t},perspectiveFromFieldOfView:function(t,e,r,n){const o=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),c=2/(a+i),l=2/(o+s);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(a-i)*c*.5,t[9]=(o-s)*l*.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),o=Math.cos(r),s=e[4],a=e[5],i=e[6],c=e[7],l=e[8],u=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*o+l*n,t[5]=a*o+u*n,t[6]=i*o+h*n,t[7]=c*o+f*n,t[8]=l*o-s*n,t[9]=u*o-a*n,t[10]=h*o-i*n,t[11]=f*o-c*n,t},rotateY:function(t,e,r){const n=Math.sin(r),o=Math.cos(r),s=e[0],a=e[1],i=e[2],c=e[3],l=e[8],u=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*o-l*n,t[1]=a*o-u*n,t[2]=i*o-h*n,t[3]=c*o-f*n,t[8]=s*n+l*o,t[9]=a*n+u*o,t[10]=i*n+h*o,t[11]=c*n+f*o,t},rotateZ:function(t,e,r){const n=Math.sin(r),o=Math.cos(r),s=e[0],a=e[1],i=e[2],c=e[3],l=e[4],u=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*o+l*n,t[1]=a*o+u*n,t[2]=i*o+h*n,t[3]=c*o+f*n,t[4]=l*o-s*n,t[5]=u*o-a*n,t[6]=h*o-i*n,t[7]=f*o-c*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:q,subtract:b,targetTo:function(t,e,r,n){const o=e[0],s=e[1],a=e[2],i=n[0],c=n[1],l=n[2];let u=o-r[0],h=s-r[1],f=a-r[2],d=u*u+h*h+f*f;d>0&&(d=1/Math.sqrt(d),u*=d,h*=d,f*=d);let m=c*f-l*h,p=l*u-i*f,g=i*h-c*u;return d=m*m+p*p+g*g,d>0&&(d=1/Math.sqrt(d),m*=d,p*=d,g*=d),t[0]=m,t[1]=p,t[2]=g,t[3]=0,t[4]=h*g-f*p,t[5]=f*m-u*g,t[6]=u*p-h*m,t[7]=0,t[8]=u,t[9]=h,t[10]=f,t[11]=0,t[12]=o,t[13]=s,t[14]=a,t[15]=1,t},translate:u,transpose:i},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,r)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[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]]}function s(t,e){return new Float64Array(t,e,16)}r.d(e,{I:()=>a,a:()=>s,b:()=>o,c:()=>n});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:n,createView:s,fromValues:function(t,e,r,n,o,s,a,i,c,l,u,h,f,d,m,p){return[t,e,r,n,o,s,a,i,c,l,u,h,f,d,m,p]}},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 s(t,e){return new Float64Array(t,e,4)}r.d(e,{I:()=>a,a:()=>n,b:()=>o,c:()=>s});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:n,createView:s,fromValues:function(t,e,r,n){return[t,e,r,n]}},Symbol.toStringTag,{value:"Module"}))},88764:(t,e,r)=>{r.d(e,{q:()=>c});var n,o,s,a=r(5732),i={exports:{}};n=i,o=function(){function t(r,n,o,s,a){for(;s>o;){if(s-o>600){var i=s-o+1,c=n-o+1,l=Math.log(i),u=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*u*(i-u)/i)*(c-i/2<0?-1:1);t(r,n,Math.max(o,Math.floor(n-c*u/i+h)),Math.min(s,Math.floor(n+(i-c)*u/i+h)),a)}var f=r[n],d=o,m=s;for(e(r,o,n),a(r[s],f)>0&&e(r,o,s);d<m;){for(e(r,d,m),d++,m--;a(r[d],f)<0;)d++;for(;a(r[m],f)>0;)m--}0===a(r[o],f)?e(r,o,m):e(r,++m,s),m<=n&&(o=m+1),n<=m&&(s=m-1)}}function e(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function r(t,e){return t<e?-1:t>e?1:0}return function(e,n,o,s,a){t(e,n,o||0,s||e.length-1,a||r)}},void 0!==(s=o())&&(n.exports=s);const c=(0,a.g)(i.exports)},20773:(t,e,r)=>{r.d(e,{a:()=>i,b:()=>a,c:()=>o,d:()=>u,e:()=>c,n:()=>h,s:()=>l,t:()=>s});var n=r(72220);function o(t,e,r){s(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function s(t,e,r,o=3,s=o){if(t.length/o!==Math.ceil(e.length/s))return n.c.error("source and destination buffers need to have the same number of elements"),t;const a=t.length/o,i=r[0],c=r[1],l=r[2],u=r[4],h=r[5],f=r[6],d=r[8],m=r[9],p=r[10],g=r[12],M=r[13],y=r[14];let b=0,x=0;for(let r=0;r<a;r++){const r=e[b],n=e[b+1],a=e[b+2];t[x]=i*r+u*n+d*a+g,t[x+1]=c*r+h*n+m*a+M,t[x+2]=l*r+f*n+p*a+y,b+=s,x+=o}return t}function a(t,e,r){i(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function i(t,e,r,o=3,s=o){if(t.length/o!==Math.ceil(e.length/s))return void n.c.error("source and destination buffers need to have the same number of elements");const a=t.length/o,i=r[0],c=r[1],l=r[2],u=r[3],h=r[4],f=r[5],d=r[6],m=r[7],p=r[8];let g=0,M=0;for(let r=0;r<a;r++){const r=e[g],n=e[g+1],a=e[g+2];t[M]=i*r+u*n+d*a,t[M+1]=c*r+h*n+m*a,t[M+2]=l*r+f*n+p*a,g+=s,M+=o}}function c(t,e,r){l(t.typedBuffer,e,r,t.typedBufferStride)}function l(t,e,r,n=3){const o=Math.min(t.length/n,e.count),s=e.typedBuffer,a=e.typedBufferStride;let i=0,c=0;for(let e=0;e<o;e++)t[c]=r*s[i],t[c+1]=r*s[i+1],t[c+2]=r*s[i+2],i+=a,c+=n}function u(t,e){h(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function h(t,e,r=3,n=r){const o=Math.min(t.length/r,e.length/n);let s=0,a=0;for(let i=0;i<o;i++){const o=e[s],i=e[s+1],c=e[s+2],l=o*o+i*i+c*c;if(l>0){const e=1/Math.sqrt(l);t[a]=e*o,t[a+1]=e*i,t[a+2]=e*c}s+=n,a+=r}}Object.freeze(Object.defineProperty({__proto__:null,normalize:h,normalizeView:u,scale:l,scaleView:c,shiftRight:function(t,e,r){const n=Math.min(t.count,e.count),o=t.typedBuffer,s=t.typedBufferStride,a=e.typedBuffer,i=e.typedBufferStride;let c=0,l=0;for(let t=0;t<n;t++)o[l]=a[c]>>r,o[l+1]=a[c+1]>>r,o[l+2]=a[c+2]>>r,c+=i,l+=s},transformMat3:i,transformMat3View:a,transformMat4:s,transformMat4View:o},Symbol.toStringTag,{value:"Module"}))},2368:(t,e,r)=>{r.d(e,{J:()=>u,j:()=>h});var n=r(43697),o=r(92036),s=(r(80442),r(22974)),a=(r(92604),r(70586)),i=r(31263),c=r(1153),l=r(52011);const u=t=>{let e=class extends t{clone(){const t=(0,a.s3)((0,c.vw)(this),"unable to clone instance of non-accessor class"),e=t.metadatas,r=t.store,n={},o=new Map;for(const t in e){const a=e[t],c=r?.originOf(t),l=a.clonable;if(a.readOnly||!1===l||c!==i.s3.USER&&c!==i.s3.DEFAULTS&&c!==i.s3.WEB_MAP&&c!==i.s3.WEB_SCENE)continue;const u=this[t];let h=null;h="function"==typeof l?l(u):"reference"===l?u:(0,s.Vo)(u),null!=u&&null==h||(c===i.s3.DEFAULTS?o.set(t,h):n[t]=h)}const l=new(0,Object.getPrototypeOf(this).constructor)(n);if(o.size){const t=(0,c.vw)(l)?.store;if(t)for(const[e,r]of o)t.set(e,r,i.s3.DEFAULTS)}return l}};return e=(0,n._)([(0,l.j)("esri.core.Clonable")],e),e};let h=class extends(u(o.Z)){};h=(0,n._)([(0,l.j)("esri.core.Clonable")],h)},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()}}}},24133:(t,e,r)=>{r.d(e,{Q:()=>i});var n=r(67676),o=r(70586),s=r(44553),a=r(88764);class i{constructor(t=9,e){this._compareMinX=h,this._compareMinY=f,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),w.prune(),_.prune(),v.prune()}all(t){this._all(this._data,t)}search(t,e){let r=this._data;const n=this._toBBox;if(y(t,r))for(x.clear();r;){for(let o=0,s=r.children.length;o<s;o++){const s=r.children[o],a=r.leaf?n(s):s;y(t,a)&&(r.leaf?e(s):M(t,a)?this._all(s,e):x.push(s))}r=x.pop()}}collides(t){let e=this._data;const r=this._toBBox;if(!y(t,e))return!1;for(x.clear();e;){for(let n=0,o=e.children.length;n<o;n++){const o=e.children[n],s=e.leaf?r(o):o;if(y(t,s)){if(e.leaf||M(t,s))return!0;x.push(o)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,r=t.length;e<r;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new O([]),this}remove(t){if(!t)return this;let e,r=this._data,s=null,a=0,i=!1;const c=this._toBBox(t);for(_.clear(),v.clear();r||_.length>0;){if(r||(r=(0,o.j0)(_.pop()),s=_.data[_.length-1],a=v.pop()??0,i=!0),r.leaf&&(e=(0,n.cq)(r.children,t,r.children.length,r.indexHint),-1!==e))return r.children.splice(e,1),_.push(r),this._condense(_),this;i||r.leaf||!M(r,c)?s?(a++,r=s.children[a],i=!1):r=null:(_.push(r),v.push(a),a=0,s=r,r=r.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let r=t;for(w.clear();r;){if(!0===r.leaf)for(const t of r.children)e(t);else w.pushArray(r.children);r=w.pop()??null}}_build(t,e,r,n){const o=r-e+1;let s=this._maxEntries;if(o<=s){const n=new O(t.slice(e,r+1));return c(n,this._toBBox),n}n||(n=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/s**(n-1)));const a=new T([]);a.height=n;const i=Math.ceil(o/s),l=i*Math.ceil(Math.sqrt(s));b(t,e,r,l,this._compareMinX);for(let o=e;o<=r;o+=l){const e=Math.min(o+l-1,r);b(t,o,e,i,this._compareMinY);for(let r=o;r<=e;r+=i){const o=Math.min(r+i-1,e);a.children.push(this._build(t,r,o,n-1))}}return c(a,this._toBBox),a}_chooseSubtree(t,e,r,n){for(;n.push(e),!0!==e.leaf&&n.length-1!==r;){let r,n=1/0,o=1/0;for(let s=0,a=e.children.length;s<a;s++){const a=e.children[s],i=d(a),c=p(t,a)-i;c<o?(o=c,n=i<n?i:n,r=a):c===o&&i<n&&(n=i,r=a)}e=r||e.children[0]}return e}_insert(t,e,r){const n=this._toBBox,o=r?t:n(t);_.clear();const s=this._chooseSubtree(o,this._data,e,_);for(s.children.push(t),u(s,o);e>=0&&_.data[e].children.length>this._maxEntries;)this._split(_,e),e--;this._adjustParentBBoxes(o,_,e)}_split(t,e){const r=t.data[e],n=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,n);const s=this._chooseSplitIndex(r,o,n);if(!s)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const a=r.children.splice(s,r.children.length-s),i=r.leaf?new O(a):new T(a);i.height=r.height,c(r,this._toBBox),c(i,this._toBBox),e?t.data[e-1].children.push(i):this._splitRoot(r,i)}_splitRoot(t,e){this._data=new T([t,e]),this._data.height=t.height+1,c(this._data,this._toBBox)}_chooseSplitIndex(t,e,r){let n,o,s;n=o=1/0;for(let a=e;a<=r-e;a++){const e=l(t,0,a,this._toBBox),i=l(t,a,r,this._toBBox),c=g(e,i),u=d(e)+d(i);c<n?(n=c,s=a,o=u<o?u:o):c===n&&u<o&&(o=u,s=a)}return s}_chooseSplitAxis(t,e,r){const n=t.leaf?this._compareMinX:h,o=t.leaf?this._compareMinY:f;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,o)&&t.children.sort(n)}_allDistMargin(t,e,r,n){t.children.sort(n);const o=this._toBBox,s=l(t,0,e,o),a=l(t,r-e,r,o);let i=m(s)+m(a);for(let n=e;n<r-e;n++){const e=t.children[n];u(s,t.leaf?o(e):e),i+=m(s)}for(let n=r-e-1;n>=e;n--){const e=t.children[n];u(a,t.leaf?o(e):e),i+=m(a)}return i}_adjustParentBBoxes(t,e,r){for(let n=r;n>=0;n--)u(e.data[n],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const r=t.data[e];if(0===r.children.length)if(e>0){const o=t.data[e-1],s=o.children;s.splice((0,n.cq)(s,r,s.length,o.indexHint),1)}else this.clear();else c(r,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function c(t,e){l(t,0,t.children.length,e,t)}function l(t,e,r,n,o){o||(o=new O([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let s,a=e;a<r;a++)s=t.children[a],u(o,t.leaf?n(s):s);return o}function u(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function h(t,e){return t.minX-e.minX}function f(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function g(t,e){const r=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),o=Math.min(t.maxX,e.maxX),s=Math.min(t.maxY,e.maxY);return Math.max(0,o-r)*Math.max(0,s-n)}function M(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function y(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function b(t,e,r,n,s){const i=[e,r];for(;i.length;){const e=(0,o.j0)(i.pop()),r=(0,o.j0)(i.pop());if(e-r<=n)continue;const c=r+Math.ceil((e-r)/n/2)*n;(0,a.q)(t,c,r,e,s),i.push(r,c,c,e)}}const x=new s.Z,w=new s.Z,_=new s.Z,v=new s.Z({deallocator:void 0});class S{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class q extends S{constructor(){super(...arguments),this.height=1,this.indexHint=new n.SO}}class O extends q{constructor(t){super(),this.children=t,this.leaf=!0}}class T extends q{constructor(t){super(),this.children=t,this.leaf=!1}}},83025:(t,e,r)=>{r.d(e,{JK:()=>i,QZ:()=>s,Rq:()=>a,bg:()=>o,mB:()=>c});var n=r(1533);function o(t,e=!1){return t<=n.DB?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function s(t){return((0,n.kJ)(t)?t.length:t.byteLength/8)<=n.DB?Array.from(t):new Float64Array(t)}function a(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function i(t,e){for(let r=0;r<e.length;++r)t[r]=e[r];return t}function c(t){return Array.isArray(t)?new Float64Array(t):t}},85872:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(43697),o=r(2368),s=r(96674),a=r(5600),i=(r(75215),r(67676),r(80442),r(36030)),c=r(52011),l=r(65617),u=r(94139);let h=class extends((0,o.J)(s.wq)){constructor(t){super(t),this.type="georeferenced-relative",this.isRelative=!0,this.isGeoreferenced=!0,this.origin=(0,l.c)()}getOriginPoint(t){const[e,r,n]=this.origin;return new u.Z({x:e,y:r,z:n,spatialReference:t})}setOriginFormPoint({x:t,y:e,z:r}){this.origin=(0,l.f)(t,e,r??0)}};(0,n._)([(0,i.J)({georeferencedRelative:"georeferenced-relative"},{readOnly:!0})],h.prototype,"type",void 0),(0,n._)([(0,a.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"origin",void 0),h=(0,n._)([(0,c.j)("esri.geometry.support.MeshGeoreferencedRelativeVertexSpace")],h);const f=h},50567:(t,e,r)=>{r.d(e,{Z:()=>l});var n=r(43697),o=r(2368),s=r(96674),a=(r(92604),r(75215),r(67676),r(80442),r(20102),r(36030)),i=r(52011);let c=class extends((0,o.J)(s.wq)){constructor(){super({}),this.type="georeferenced",this.isRelative=!1,this.isGeoreferenced=!0}};(0,n._)([(0,a.J)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,n._)([(0,i.j)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c);const l=c},84555:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(43697),o=r(2368),s=r(96674),a=r(5600),i=(r(75215),r(67676),r(80442),r(36030)),c=r(52011),l=r(65617),u=r(94139);let h=class extends((0,o.J)(s.wq)){constructor(t){super(t),this.type="local",this.isRelative=!0,this.isGeoreferenced=!1,this.origin=(0,l.c)()}getOriginPoint(t){const[e,r,n]=this.origin;return new u.Z({x:e,y:r,z:n,spatialReference:t})}setOriginFormPoint({x:t,y:e,z:r}){this.origin=(0,l.f)(t,e,r??0)}};(0,n._)([(0,i.J)({local:"local"},{readOnly:!0})],h.prototype,"type",void 0),(0,n._)([(0,a.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"origin",void 0),h=(0,n._)([(0,c.j)("esri.geometry.support.MeshLocalVertexSpace")],h);const f=h},72220:(t,e,r)=>{r.d(e,{c:()=>n});const n=r(92604).Z.getLogger("esri.views.3d.support.buffer.math")},61787:(t,e,r)=>{r.r(e),r.d(e,{default:()=>a});var n=r(80442),o=r(24133),s=r(66459);class a{async createIndex(t,e){const r=new Array;if(!t.vertexAttributes||!t.vertexAttributes.position)return new o.Q;const n=this._createMeshData(t),s=null!=e?await e.invoke("createIndexThread",n,{transferList:r}):this.createIndexThread(n).result;return this._createPooledRBush().fromJSON(s)}createIndexThread(t){const e=new Float64Array(t.position),r=this._createPooledRBush();return t.components?this._createIndexComponentsThread(r,e,t.components.map((t=>new Uint32Array(t)))):this._createIndexAllThread(r,e)}_createIndexAllThread(t,e){const r=new Array(e.length/9);let n=0;for(let t=0;t<e.length;t+=9)r[n++]=i(e,t,t+3,t+6);return t.load(r),{result:t.toJSON()}}_createIndexComponentsThread(t,e,r){let n=0;for(const t of r)n+=t.length/3;const o=new Array(n);let s=0;for(const t of r)for(let r=0;r<t.length;r+=3)o[s++]=i(e,3*t[r],3*t[r+1],3*t[r+2]);return t.load(o),{result:t.toJSON()}}_createMeshData(t){const e=(t.vertexSpace.isRelative?(0,s.I5)({position:t.vertexAttributes.position,normal:null,tangent:null},t.vertexSpace,t.transform,t.spatialReference).position:t.vertexAttributes.position).buffer;return!t.components||t.components.some((t=>!t.faces))?{position:e}:{position:e,components:t.components.map((t=>t.faces))}}_createPooledRBush(){return new o.Q(9,(0,n.Z)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}}function i(t,e,r,n){return{minX:Math.min(t[e],t[r],t[n]),maxX:Math.max(t[e],t[r],t[n]),minY:Math.min(t[e+1],t[r+1],t[n+1]),maxY:Math.max(t[e+1],t[r+1],t[n+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[r],t[r+1],t[r+2]],p2:[t[n],t[n+1],t[n+2]]}}},3172:(t,e,r)=>{r.r(e),r.d(e,{default:()=>d});var n=r(68773),o=r(40330),s=r(20102),a=r(80442),i=r(22974),c=r(95330),l=r(81271),u=r(19745),h=r(71058),f=r(85958);async function d(t,e){t instanceof URL&&(t=t.toString()),e?.query instanceof URLSearchParams&&(e.query=(0,l.u0)(e.query.toString().replaceAll("+"," ")));const i=(0,l.HK)(t),u=(0,l.jc)(t);u||i||(t=(0,l.Fv)(t));const M={url:t,requestOptions:{...e}};let y=(0,l.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=v("request:interceptor",t,e)}if((n instanceof Error||n instanceof s.Z)&&(r=v("request:interceptor",n,e)),r)throw t.error&&t.error(r),r;return n}}(y,M);if(null!=t)return{data:t,getHeader:x,httpStatus:200,requestOptions:M.requestOptions,url:M.url};y.after||y.error||(y=null)}if(t=M.url,"image"===(e=M.requestOptions).responseType&&((0,a.Z)("host-webworker")||(0,a.Z)("host-node")))throw v("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),M);if("head"===e.method){if(e.body)throw v("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),M);if(i||u)throw v("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),M)}if(await async function(){(0,a.Z)("host-webworker")?m||(m=await r.e(9884).then(r.bind(r,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(t,e);const b=new AbortController;(0,c.fu)(e,(()=>b.abort()));const w={controller:b,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:y,params:M,redoRequest:!1,useIdentity:p.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},_=await async function(t){let e,r;await async function(t){const e=t.params.url,r=t.params.requestOptions,s=t.controller.signal,a=r.body;let i=null,l=null;if(g&&"HTMLFormElement"in globalThis&&(a instanceof FormData?i=a:a instanceof HTMLFormElement&&(i=new FormData(a))),"string"==typeof a&&(l=a),t.fetchOptions={cache:r.cacheBust&&!("polyfill"in d._abortableFetch)?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:p.priority,redirect:"follow",signal:s},(i||l)&&(t.fetchOptions.body=i||l),"anonymous"===r.authMode&&(t.useIdentity=!1),t.hasToken=!!(/token=/i.test(e)||r.query?.token||i?.get("token")),!t.hasToken&&n.default.apiKey&&(0,h.r)(e)&&(r.query||(r.query={}),r.query.token=n.default.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credentialToken&&!q(e)&&!(0,c.Hc)(s)){let n;"immediate"===r.authMode?(await S(),n=await o.id.getCredential(e,{signal:s}),t.credential=n):"no-prompt"===r.authMode?(await S(),n=await o.id.getCredential(e,{prompt:!1,signal:s}).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 O(t)}while(!await B(t,e,r))}catch(r){const n=v("request:server",r,t.params,e);throw n.details.ssl=t.useSSL,t.interceptor?.error&&t.interceptor.error(n),n}const s=t.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!t.hasToken&&!t.credentialToken&&r.user?.username&&!(0,l.kl)(s)){const t=(0,l.P$)(s,!0);t&&p.trustedServers.push(t)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,f.Hu)(r.authorizedCrossOriginNoCorsDomains)}const a=t.credential;if(a&&o.id){const t=o.id.findServerInfo(a.server);let e=t?.owningSystemUrl;if(e){e=e.replace(/\/?$/,"/sharing");const t=o.id.findCredential(e,a.userId);t&&-1===o.id._getIdenticalSvcIdx(e,t)&&t.resources.unshift(e)}}return{data:r,getHeader:e?t=>e?.headers.get(t):x,httpStatus:e?.status??200,requestOptions:t.params.requestOptions,ssl:t.useSSL,url:t.params.url}}(w);return y?.after?.(_),_}let m;const p=n.default.request,g="FormData"in globalThis,M=[499,498,403,401],y=["COM_0056","COM_0057","SB_0008"],b=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],x=()=>null,w=Symbol();function _(t){const e=(0,l.P$)(t);return!e||e.endsWith(".arcgis.com")||d._corsServers.includes(e)||(0,l.kl)(e)}function v(t,e,r,n){let o="Error";const a={url:r.url,requestOptions:r.requestOptions,getHeader:x,ssl:!1};if(e instanceof s.Z)return e.details?(e.details=(0,i.d9)(e.details),e.details.url=r.url,e.details.requestOptions=r.requestOptions):e.details=a,e;if(e){const t=n&&(t=>n.headers.get(t)),r=n?.status,s=e.message;s&&(o=s),t&&(a.getHeader=t),a.httpStatus=(null!=e.httpCode?e.httpCode:e.code)||r||0,a.subCode=e.subcode,a.messageCode=e.messageCode,"string"==typeof e.details?a.messages=[e.details]:a.messages=e.details,a.raw=w in e?e[w]:e}return(0,c.D_)(e)?(0,c.zE)():new s.Z(t,o,a)}async function S(){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 q(t){return b.some((e=>e.test(t)))}async function O(t){let e=t.params.url;const r=t.params.requestOptions,n=t.fetchOptions??{},s=(0,l.jc)(e)||(0,l.HK)(e),i=r.responseType||"json",h=s?0:null!=r.timeout?r.timeout:p.timeout;let m=!1;if(!s){t.useSSL&&(e=(0,l.hO)(e)),r.cacheBust&&"default"===n.cache&&(e=(0,l.ZN)(e,"request.preventCache",Date.now()));let s={...r.query};t.credentialToken&&(s.token=t.credentialToken);let i=(0,l.B7)(s);(0,a.Z)("esri-url-encodes-apostrophe")&&(i=i.replaceAll("'","%27"));const c=e.length+1+i.length;let h;m="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||c>p.maxUrlLength;const d=r.useProxy||!!(0,l.ed)(e);if(d){const t=(0,l.b7)(e);h=t.path,!m&&h.length+1+c>p.maxUrlLength&&(m=!0),t.query&&(s={...t.query,...s})}if("HEAD"===n.method&&(m||d)){if(m){if(c>p.maxUrlLength)throw v("request:invalid-parameters",new Error("URL exceeds maximum length"),t.params);throw v("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),t.params)}if(d)throw v("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),t.params)}if(m?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?e=(0,l.fl)(e,s):(n.body=(0,l.B7)(s),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):e=(0,l.fl)(e,s),d&&(t.useProxy=!0,e=`${h}?${e}`),s.token&&g&&n.body instanceof FormData&&!(0,u.P)(e)&&n.body.set("token",s.token),r.hasOwnProperty("withCredentials"))t.withCredentials=r.withCredentials;else if(!(0,l.D6)(e,(0,l.TI)()))if((0,l.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,f.jH)(e)&&await(0,f.jz)(m?(0,l.fl)(e,s):e))}let M,y,b=0,x=!1;h>0&&(b=setTimeout((()=>{x=!0,t.controller.abort()}),h));try{if("native-request-init"===r.responseType)y=n,y.url=e;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||m||function(t){if(t)for(const e of Object.getOwnPropertyNames(t))if(t[e])return!0;return!1}(r.headers)||!s&&!t.useProxy&&p.proxyUrl&&!_(e)){if(M=await d._abortableFetch(e,n),t.useProxy||function(t){const e=(0,l.P$)(t);e&&!d._corsServers.includes(e)&&d._corsServers.push(e)}(e),"native"===r.responseType)y=M;else if("HEAD"!==n.method)if(M.ok){switch(i){case"array-buffer":y=await M.arrayBuffer();break;case"blob":case"image":y=await M.blob();break;default:y=await M.text()}if(b&&(clearTimeout(b),b=0),"json"===i||"xml"===i||"document"===i)if(y)switch(i){case"json":y=JSON.parse(y);break;case"xml":y=T(y,"application/xml");break;case"document":y=T(y,"text/html")}else y=null;if(y){if("array-buffer"===i||"blob"===i){const t=M.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 P(URL.createObjectURL(y),t,!0))}}else{y=await M.text();try{y=JSON.parse(y)}catch{}}}else y=await P(e,t)}catch(n){if("AbortError"===n.name){if(x)throw(0,f.Tf)();throw(0,c.zE)("Request canceled")}if(!(!M&&n instanceof TypeError&&p.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||t.useProxy||_(e))throw n;t.redoRequest=!0,(0,l.tD)({proxyUrl:p.proxyUrl,urlPrefix:(0,l.P$)(e)??""})}finally{b&&clearTimeout(b)}return[M,y]}function T(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 B(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 s,a;if(r&&(r.error?s=r.error:"error"===r.status&&Array.isArray(r.messages)&&(s={...r},s[w]=r,s.details=r.messages)),!s&&!e.ok)throw s=new Error(`Unable to load ${e.url} status: ${e.status}`),s[w]=r,s;let i,c=null;s&&(a=Number(s.code),c=s.hasOwnProperty("subcode")?Number(s.subcode):null,i=s.messageCode,i=i?.toUpperCase());const l=n.authMode;if(403===a&&(4===c||s.message?.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!t.useSSL)return t.useSSL=!0,!1}else if(!t.hasToken&&t.useIdentity&&("no-prompt"!==l||498===a)&&void 0!==a&&M.includes(a)&&!q(t.params.url)&&(403!==a||i&&!y.includes(i)&&(null==c||2===c&&t.credentialToken))){await S();try{const e=await o.id.getCredential(t.params.url,{error:v("request:server",s,t.params),prompt:"no-prompt"!==l,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"===l)return t.credential=void 0,t.credentialToken=void 0,!1;s=e}}if(s)throw s;return!0}function P(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,f.fY)(o,t,r,n)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(t,e,r)=>{r.d(e,{r:()=>s});var n=r(81271);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(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:()=>h,Tf:()=>u,fY:()=>i,jH:()=>f,jz:()=>d});var n=r(68773),o=r(80442),s=r(95330),a=r(81271);function i(t,e,r=!1,n){return new Promise(((a,i)=>{if((0,s.Hc)(n))return void i(c());let l=()=>{f(),i(new Error(`Unable to load ${e}`))},u=()=>{const e=t;f(),a(e)},h=()=>{if(!t)return;const e=t;f(),e.src="",i(c())};const f=()=>{(0,o.Z)("esri-image-decode")||(t.removeEventListener("error",l),t.removeEventListener("load",u)),l=null,u=null,t=null,null!=n&&n.removeEventListener("abort",h),h=null,r&&URL.revokeObjectURL(e)};null!=n&&n.addEventListener("abort",h),(0,o.Z)("esri-image-decode")?t.decode().then(u,l):(t.addEventListener("error",l),t.addEventListener("load",u))}))}function c(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error;return t.name="AbortError",t}}const l="Timeout exceeded";function u(){return new Error(l)}function h(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,a.P$)(r)??""]=0:(e[(0,a.P$)("http://"+r)??""]=0,e[(0,a.P$)("https://"+r)??""]=0)}function f(t){const e=n.default.request.crossOriginNoCorsDomains;if(e){let r=(0,a.P$)(t);if(r)return r=r.toLowerCase(),!(0,a.D6)(r,(0,a.TI)())&&e[r]<Date.now()-36e5}return!1}async function d(t){const e=n.default.request.crossOriginNoCorsDomains,r=(0,a.P$)(t);e&&r&&(e[r.toLowerCase()]=Date.now());const o=(0,a.mN)(t);t=o.path,"json"===o.query?.f&&(t+="?f=json");try{await fetch(t,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5235],{15235:(e,t,i)=>{i.r(t),i.d(t,{default:()=>R});var r=i(43697),o=i(99880),a=i(40330),s=i(20102),n=i(96674),l=i(22974),p=i(83379),c=i(70586),d=i(81271),u=i(5600),h=i(75215),m=i(71715),g=i(52011),y=i(6570),b=i(48522),v=i(92036),w=i(92604),f=i(90578);i(67676),i(80442);let k=class extends v.Z{constructor(e){super(e),this.portalItem=null}normalizeCtorArgs(e){return e&&e.portalItem&&e.path?{...e,path:this._normalizePath(e.path,e.portalItem)}:e}set path(e){null!=e&&(0,d.YP)(e)?w.Z.getLogger(this).error("portalitemresource:invalid-path","A portal item resource path must be relative"):this._set("path",e)}_castPath(e){return this._normalizePath(e,this.portalItem)}get url(){return this.portalItem&&this.path?`${this.portalItem.itemUrl}/resources/${this.path}`:null}get cdnUrl(){return this.portalItem&&this.path?`${this.portalItem.itemCdnUrl}/resources/${this.path}`:null}get itemRelativeUrl(){return this.portalItem&&this.path?`./resources/${this.path}`:null}fetch(e="json",t){const i=this.cdnUrl;if(null==i)throw new s.Z("portal-item-resource:fetch","Portal item resource does not refer to a valid item or path");return this.portalItem.portal.request(i,{responseType:e,query:{token:this.portalItem.apiKey},signal:t?.signal})}async update(e,t){const{addOrUpdateResource:r}=await i.e(7873).then(i.bind(i,97873));return r(this,"update",e,t)}hasPath(){return null!=this.path}_normalizePath(e,t){return null==e?e:(e=e.replace(/^\/+/,""),null!=t&&(0,d.YP)(e)&&(e=(0,d.PF)(e,t.itemUrl)),e?.replace(/^\/+/,"").replace(/^(\.\/)?resources\//,""))}};(0,r._)([(0,u.Cb)()],k.prototype,"portalItem",void 0),(0,r._)([(0,u.Cb)({type:String,value:null})],k.prototype,"path",null),(0,r._)([(0,f.p)("path")],k.prototype,"_castPath",null),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],k.prototype,"url",null),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],k.prototype,"cdnUrl",null),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],k.prototype,"itemRelativeUrl",null),k=(0,r._)([(0,g.j)("esri.portal.PortalItemResource")],k);const C=k;let S=class extends v.Z{constructor(e){super(e),this.created=null,this.rating=null}};(0,r._)([(0,u.Cb)()],S.prototype,"created",void 0),(0,r._)([(0,u.Cb)()],S.prototype,"rating",void 0),S=(0,r._)([(0,g.j)("esri.portal.PortalRating")],S);const _=S;var I;const x=new Set(["Map Service","Feature Service","Feature Collection","Scene Service","Image Service","Stream Service","Vector Tile Service","GeoJson","CSV","KML","WFS","WMTS","WMS","Feed"]),U=new Set(["KML","GeoJson","CSV"]);let P=I=class extends((0,n.eC)(p.Z)){static from(e){return(0,h.TJ)(I,e)}constructor(e){super(e),this.access=null,this.accessInformation=null,this.apiKey=null,this.applicationProxies=null,this.avgRating=null,this.categories=null,this.created=null,this.culture=null,this.description=null,this.extent=null,this.groupCategories=null,this.id=null,this.isOrgItem=!1,this.itemControl=null,this.licenseInfo=null,this.modified=null,this.name=null,this.numComments=null,this.numRatings=null,this.numViews=null,this.owner=null,this.ownerFolder=null,this.portal=null,this.screenshots=null,this.size=null,this.snippet=null,this.sourceJSON=null,this.sourceUrl=null,this.spatialReference=null,this.tags=null,this.title=null,this.type=null,this.typeKeywords=null,this.url=null}destroy(){this.portal=null}get displayName(){const e=this.type,t=this.typeKeywords||[];let i=e;return"Feature Service"===e||"Feature Collection"===e?i=t.includes("Table")?"Table":t.includes("Route Layer")?"Route Layer":t.includes("Markup")?"Markup":"Feature Layer":"Image Service"===e?i=t.includes("Elevation 3D Layer")?"Elevation Layer":t.includes("Tiled Imagery")?"Tiled Imagery Layer":"Imagery Layer":"Scene Service"===e?i="Scene Layer":"Video Service"===e?i="Video Layer":"Scene Package"===e?i="Scene Layer Package":"Stream Service"===e?i="Feature Layer":"Geoprocessing Service"===e?i=t.includes("Web Tool")?"Tool":"Geoprocessing Service":"Geocoding Service"===e?i="Locator":"Geoenrichment Service"===e?i="GeoEnrichment Service":"Microsoft Powerpoint"===e?i="Microsoft PowerPoint":"GeoJson"===e?i="GeoJSON":"Globe Service"===e?i="Globe Layer":"Vector Tile Service"===e?i="Tile Layer":"netCDF"===e?i="NetCDF":"Map Service"===e?i=t.includes("Spatiotemporal")||!t.includes("Hosted Service")&&!t.includes("Tiled")||t.includes("Relational")?"Map Image Layer":"Tile Layer":e&&e.toLowerCase().includes("add in")?i=e.replaceAll(/(add in)/gi,"Add-In"):"datastore catalog service"===e?i="Big Data File Share":"Compact Tile Package"===e?i="Tile Package (tpkx)":"OGCFeatureServer"===e?i="OGC Feature Layer":"web mapping application"===e&&t.includes("configurableApp")?i="Instant App":"Insights Page"===e?i="Insights Report":"Excalibur Imagery Project"===e&&(i="Excalibur Project"),i}readExtent(e){return e&&e.length?new y.Z(e[0][0],e[0][1],e[1][0],e[1][1]):null}get iconUrl(){const e=this.type&&this.type.toLowerCase()||"",t=this.typeKeywords||[];let i,r=!1,a=!1,s=!1,n=!1,l=!1,p=!1;return e.indexOf("service")>0||"feature collection"===e||"kml"===e||"wms"===e||"wmts"===e||"wfs"===e?(r=t.includes("Hosted Service"),"feature service"===e||"feature collection"===e||"kml"===e||"wfs"===e?(a=t.includes("Table"),s=t.includes("Route Layer"),n=t.includes("Markup"),l=t.includes("Spatiotemporal"),p=t.includes("UtilityNetwork"),i=l&&a?"spatiotemporaltable":a?"table":s?"routelayer":n?"markup":l?"spatiotemporal":r?"featureshosted":p?"utilitynetwork":"features"):i="map service"===e||"wms"===e||"wmts"===e?r||t.includes("Tiled")||"wmts"===e?"maptiles":"mapimages":"scene service"===e?t.includes("Line")?"sceneweblayerline":t.includes("3DObject")?"sceneweblayermultipatch":t.includes("Point")?"sceneweblayerpoint":t.includes("IntegratedMesh")?"sceneweblayermesh":t.includes("PointCloud")?"sceneweblayerpointcloud":t.includes("Polygon")?"sceneweblayerpolygon":t.includes("Building")?"sceneweblayerbuilding":t.includes("Voxel")?"sceneweblayervoxel":"sceneweblayer":"image service"===e?t.includes("Elevation 3D Layer")?"elevationlayer":t.includes("Tiled Imagery")?"tiledimagerylayer":"imagery":"stream service"===e?"streamlayer":"video service"===e?t.includes("Live Stream")?"livestreamvideolayer":"videolayer":"vector tile service"===e?"vectortile":"datastore catalog service"===e?"datastorecollection":"geocoding service"===e?"geocodeservice":"geoprocessing service"===e?t.includes("Web Tool")?"tool":"layers":"geodata service"===e?"geodataservice":"layers"):i="web map"===e||"cityengine web scene"===e?"maps":"web scene"===e?t.includes("ViewingMode-Local")?"webscenelocal":"websceneglobal":"web mapping application"===e&&t.includes("configurableApp")?"instantapps":"web mapping application"===e||"mobile application"===e||"application"===e||"operation view"===e||"desktop application"===e?"apps":"map document"===e||"map package"===e||"published map"===e||"scene document"===e||"globe document"===e||"basemap package"===e||"mobile basemap package"===e||"mobile map package"===e||"project package"===e||"project template"===e||"pro map"===e||"layout"===e||"layer"===e&&t.includes("ArcGIS Pro")||"explorer map"===e&&t.indexOf("Explorer Document")?"mapsgray":"service definition"===e||"csv"===e||"shapefile"===e||"cad drawing"===e||"geojson"===e||"netcdf"===e||"administrative report"===e?"datafiles":"explorer add in"===e||"desktop add in"===e||"windows viewer add in"===e||"windows viewer configuration"===e?"appsgray":"360 vr experience"===e?"360vr":"arcgis pro add in"===e||"arcgis pro configuration"===e?"addindesktop":"rule package"===e||"file geodatabase"===e||"sqlite geodatabase"===e||"csv collection"===e||"kml collection"===e||"windows mobile package"===e||"map template"===e||"desktop application template"===e||"gml"===e||"arcpad package"===e||"code sample"===e||"form"===e||"document link"===e||"earth configuration"===e||"operations dashboard add in"===e||"rules package"===e||"image"===e||"workflow manager package"===e||"explorer map"===e&&t.includes("Explorer Mapping Application")||t.includes("Document")?"datafilesgray":"network analysis service"===e||"geoprocessing service"===e||"geodata service"===e||"geometry service"===e||"geoprocessing package"===e||"locator package"===e||"geoprocessing sample"===e||"workflow manager service"===e?"toolsgray":"layer"===e||"layer package"===e||"explorer layer"===e?"layersgray":"scene package"===e?"scenepackage":"mobile scene package"===e?"mobilescenepackage":"tile package"===e||"compact tile package"===e?"tilepackage":"task file"===e?"taskfile":"report template"===e?"report-template":"statistical data collection"===e?"statisticaldatacollection":"insights workbook"===e?"workbook":"insights model"===e?"insightsmodel":"insights page"===e?"insightspage":"insights theme"===e?"insightstheme":"hub initiative"===e?"hubinitiative":"hubpage"===e?"hubpage":"hub event"===e?"hubevent":"hub site application"===e?"hubsite":"hub project"===e?"hubproject":"relational database connection"===e?"relationaldatabaseconnection":"big data file share"===e?"datastorecollection":"image collection"===e?"imagecollection":"style"===e?"style":"desktop style"===e?"desktopstyle":"dashboard"===e?"dashboard":"raster function template"===e?"rasterprocessingtemplate":"vector tile package"===e?"vectortilepackage":"ortho mapping project"===e?"orthomappingproject":"ortho mapping template"===e?"orthomappingtemplate":"solution"===e?"solutions":"geopackage"===e?"geopackage":"deep learning package"===e?"deeplearningpackage":"real time analytic"===e?"realtimeanalytics":"big data analytic"===e?"bigdataanalytics":"feed"===e?"feed":"excalibur imagery project"===e?"excaliburimageryproject":"notebook"===e?"notebook":"storymap"===e?"storymap":"survey123 add in"===e?"survey123addin":"mission"===e?"mission":"mission report"===e?"missionreport":"quickcapture project"===e?"quickcaptureproject":"pro report"===e?"proreport":"pro report template"===e?"proreporttemplate":"urban model"===e?"urbanmodel":"web experience"===e?"experiencebuilder":"web experience template"===e?"webexperiencetemplate":"experience builder widget"===e?"experiencebuilderwidget":"experience builder widget package"===e?"experiencebuilderwidgetpackage":"workflow"===e?"workflow":"insights script"===e?"insightsscript":"kernel gateway connection"===e?"kernelgatewayconnection":"hub initiative template"===e?"hubinitiativetemplate":"storymap theme"===e?"storymaptheme":"knowledge graph"===e?"knowledgegraph":"native application"===e?"nativeapp":"native application installer"===e?"nativeappinstaller":"link chart"===e?"linkchart":"investigation"===e?"investigation":"ogcfeatureserver"===e?"features":"pro project"===e?"proproject":"insights workbook package"===e?"insightsworkbookpackage":"apache parquet"===e?"apacheparquet":"notebook code snippets"===e||"notebook code snippet library"===e?"notebookcodesnippets":"suitability model"===e?"suitabilitymodel":"esri classifier definition"===e?"classifierdefinition":"esri classification schema"===e?"classificationschema":"insights data engineering workbook"===e?"dataengineeringworkbook":"insights data engineering model"===e?"dataengineeringmodel":"deep learning studio project"===e?"deeplearningproject":"discussion"===e?"discussion":"allsource project"===e?"allsourceproject":"api key"===e?"apikey":"data pipeline"===e?"datapipelines":"maps",i?(0,o.V)("esri/images/portal/"+i+"16.png"):null}get isLayer(){return null!=this.type&&x.has(this.type)}get itemCdnUrl(){let e=this.itemUrl;return e&&a.id&&!a.id.findCredential(e)&&(e=a.id._normalizeAGOLorgDomain(e),e=e.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),e=e.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),e=e.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),e}get itemPageUrl(){const e=this.portal?.itemPageUrl;return e&&this.id?`${e}?id=${this.id}`:null}get itemUrl(){const e=this.portal?.restUrl;return e&&this.id?`${e}/content/items/${this.id}`:null}get thumbnailUrl(){const e=this.itemUrl,t=this.thumbnail;return e&&t?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`)??null:null}get userItemUrl(){const e=this.get("portal.restUrl");if(!e)return null;const t=this.owner||this.get("portal.user.username");return t?`${e}/content/users/${this.ownerFolder?`${t}/${this.ownerFolder}`:t}/items/${this.id}`:null}load(e){const t=this.portal??(this.portal=b.Z.getDefault()),i=t.load(e).then((()=>this.sourceJSON?this.sourceJSON:this.id&&this.itemUrl?t.request(this.itemUrl,{signal:null!=e?e.signal:null,query:{token:this.apiKey}}):{})).then((e=>{this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(i),Promise.resolve(this)}async addRating(e){const t={method:"post",query:{}};return e instanceof _&&(e=e.rating),null==e||isNaN(e)||"number"!=typeof e||(t.query.rating=e),this.portal?(await this.portal.request(this.itemUrl+"/addRating",t),new _({rating:e,created:new Date})):null}clone(){const e={access:this.access,accessInformation:this.accessInformation,applicationProxies:(0,l.d9)(this.applicationProxies),avgRating:this.avgRating,categories:(0,l.d9)(this.categories),created:(0,l.d9)(this.created),culture:this.culture,description:this.description,extent:(0,l.d9)(this.extent),groupCategories:(0,l.d9)(this.groupCategories),id:this.id,itemControl:this.itemControl,licenseInfo:this.licenseInfo,modified:(0,l.d9)(this.modified),name:this.name,numComments:this.numComments,numRatings:this.numRatings,numViews:this.numViews,owner:this.owner,ownerFolder:this.ownerFolder,portal:this.portal,screenshots:(0,l.d9)(this.screenshots),size:this.size,snippet:this.snippet,sourceUrl:this.sourceUrl,spatialReference:this.spatialReference,tags:(0,l.d9)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,l.d9)(this.typeKeywords),url:this.url};this.loaded&&(e.loadStatus="loaded");const t=new I({sourceJSON:this.sourceJSON}).set(e);return t._set("isOrgItem",this.isOrgItem),t}createPostQuery(){const e=this.toJSON();for(const t of["tags","typeKeywords","categories"])e[t]=e[t]?.join(", ");const{extent:t}=e;return t&&(e.extent=JSON.stringify(t)),e}async deleteRating(){await(0,c.s3)(this.portal).request(this.itemUrl+"/deleteRating",{method:"post"})}fetchData(e="json",t){return(0,c.s3)(this.portal).request(this.itemUrl+"/data",{responseType:e,...t,query:{token:this.apiKey}})}async fetchRating(e){const t=await(0,c.s3)(this.portal).request(this.itemUrl+"/rating",{query:{token:this.apiKey},...e});return null!=t.rating?(t.created=new Date(t.created),new _(t)):null}fetchRelatedItems(e,t){return(0,c.s3)(this.portal).requestToTypedArray(this.itemUrl+"/relatedItems",{query:{...e,token:this.apiKey},...t},I)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}reload(){return(0,c.s3)(this.portal).request(this.itemUrl??"",{cacheBust:!0,query:{token:this.apiKey}}).then((e=>(this.sourceJSON=e,this.read(e),this)))}update(e){return this.id?this.load().then((()=>(0,c.s3)(this.portal).signIn())).then((()=>{const t=e&&e.data,i={method:"post"};i.query=this.createPostQuery();for(const e in i.query)null===i.query[e]&&(i.query[e]="");return i.query.clearEmptyFields=!0,null!=t&&("string"==typeof t?i.query.text=t:"object"==typeof t&&(i.query.text=JSON.stringify(t))),this.portal.request(`${this.userItemUrl}/update`,i).then((()=>this.reload()))})):Promise.reject(new s.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async copy(e){if(!this.id)throw new s.Z("portal:item-does-not-exist","The item does not exist yet");await this.load();const{portal:t,itemUrl:i}=this;await(0,c.s3)(t).signIn();const{copyResources:r,folder:o,tags:a,title:n}=e||{},l={method:"post",query:{copyPrivateResources:"all"===r,folder:"string"==typeof o?o:o?.id,includeResources:!!r,tags:a?.join(","),title:n}},{itemId:p}=await t.request(`${i}/copy`,l);return new I({id:p,portal:t})}updateThumbnail(e){return this.id?this.load().then((()=>this.portal.signIn())).then((()=>{const t=e.thumbnail,i=e.filename,r={method:"post"};if("string"==typeof t)(0,d.HK)(t)?r.query={data:t}:r.query={url:(0,d.hF)(t)},null!=i&&(r.query.filename=i);else{const e=new FormData;null!=i?e.append("file",t,i):e.append("file",t),r.body=e}return this.portal.request(`${this.userItemUrl}/updateThumbnail`,r).then((()=>this.reload()))})):Promise.reject(new s.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async fetchResources(e={},t){const{fetchResources:r}=await i.e(7873).then(i.bind(i,97873));return r(this,e,t)}async addResource(e,t,r){const{addOrUpdateResource:o}=await i.e(7873).then(i.bind(i,97873));return e.portalItem=this,o(e,"add",t,r)}async removeResource(e,t){const{removeResource:r}=await i.e(7873).then(i.bind(i,97873));if(e.portalItem&&e.portalItem.itemUrl!==this.itemUrl)throw new s.Z("removeresource:portal-item-mismatch","The portal item associated with the provided resource does not match the item");return r(this,e,t)}async removeAllResources(e){const{removeAllResources:t}=await i.e(7873).then(i.bind(i,97873));return t(this,e)}resourceFromPath(e){return new C({portalItem:this,path:e})}toJSON(){const e=this.extent,t={accessInformation:this.accessInformation,categories:(0,l.d9)(this.categories),created:this.created&&this.created.getTime(),description:this.description,extent:e&&[[e.xmin,e.ymin],[e.xmax,e.ymax]],id:this.id,isOrgItem:this.isOrgItem,licenseInfo:this.licenseInfo,modified:this.modified&&this.modified.getTime(),name:this.name,owner:this.owner,ownerFolder:this.ownerFolder,snippet:this.snippet,sourceUrl:this.sourceUrl,spatialReference:this.spatialReference,tags:(0,l.d9)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,l.d9)(this.typeKeywords),url:this.url};return(0,l.yd)(t)}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new I({sourceJSON:e})}_getPostQuery(){const e=this.toJSON();for(const t in e)"tags"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"typeKeywords"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"extent"===t&&e[t]&&(e[t]=JSON.stringify(e[t]));return e}};(0,r._)([(0,u.Cb)({type:["private","shared","org","public"]})],P.prototype,"access",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"accessInformation",void 0),(0,r._)([(0,u.Cb)({type:String})],P.prototype,"apiKey",void 0),(0,r._)([(0,u.Cb)({json:{read:{source:"appProxies"}}})],P.prototype,"applicationProxies",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"avgRating",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"categories",void 0),(0,r._)([(0,u.Cb)({type:Date})],P.prototype,"created",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"culture",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"description",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],P.prototype,"displayName",null),(0,r._)([(0,u.Cb)({type:y.Z})],P.prototype,"extent",void 0),(0,r._)([(0,m.r)("extent")],P.prototype,"readExtent",null),(0,r._)([(0,u.Cb)()],P.prototype,"groupCategories",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],P.prototype,"iconUrl",null),(0,r._)([(0,u.Cb)()],P.prototype,"id",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],P.prototype,"isLayer",null),(0,r._)([(0,u.Cb)({type:Boolean,readOnly:!0})],P.prototype,"isOrgItem",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"itemControl",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],P.prototype,"itemPageUrl",null),(0,r._)([(0,u.Cb)({readOnly:!0})],P.prototype,"itemUrl",null),(0,r._)([(0,u.Cb)()],P.prototype,"licenseInfo",void 0),(0,r._)([(0,u.Cb)({type:Date})],P.prototype,"modified",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"name",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"numComments",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"numRatings",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"numViews",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"owner",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"ownerFolder",void 0),(0,r._)([(0,u.Cb)({type:b.Z})],P.prototype,"portal",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"screenshots",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"size",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"snippet",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"sourceJSON",void 0),(0,r._)([(0,u.Cb)({type:String})],P.prototype,"sourceUrl",void 0),(0,r._)([(0,u.Cb)({type:String})],P.prototype,"spatialReference",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"tags",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"thumbnail",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],P.prototype,"thumbnailUrl",null),(0,r._)([(0,u.Cb)()],P.prototype,"title",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"type",void 0),(0,r._)([(0,u.Cb)()],P.prototype,"typeKeywords",void 0),(0,r._)([(0,u.Cb)({type:String,json:{read(e,t){if(U.has(t.type)){const t=this.portal?.restUrl;e||=t&&this.id?`${t}/content/items/${this.id}/data`:null}return e}}})],P.prototype,"url",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],P.prototype,"userItemUrl",null),P=I=(0,r._)([(0,g.j)("esri.portal.PortalItem")],P);const R=P}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1412,3172,9880],{99880:(e,t,r)=>{r.d(t,{V:()=>c});var n=r(68773),o=(r(3172),r(20102)),s=r(92604),i=r(81271);const a=s.Z.getLogger("esri.assets");function c(e){if(!n.default.assetsPath)throw a.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,i.v_)(n.default.assetsPath,e)}},46521:(e,t,r)=>{function n(){return[1,0,0,0,1,0,0,0,1]}function o(e,t,r,n,o,s,i,a,c){return[e,t,r,n,o,s,i,a,c]}function s(e,t){return new Float64Array(e,t,9)}r.d(t,{a:()=>s,c:()=>n,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:n,createView:s,fromValues:o},Symbol.toStringTag,{value:"Module"}))},52138:(e,t,r)=>{r.d(t,{A:()=>p,a:()=>c,d:()=>m,e:()=>h,f:()=>d,g:()=>b,h:()=>w,i:()=>i,j:()=>_,k:()=>f,m:()=>u,s:()=>s,t:()=>a,w:()=>l,y:()=>v,z:()=>S});var n=r(65617),o=r(46851);function s(e,t,r,n,o,s,i,a,c,u,l,f,h,d,m,p,y){return e[0]=t,e[1]=r,e[2]=n,e[3]=o,e[4]=s,e[5]=i,e[6]=a,e[7]=c,e[8]=u,e[9]=l,e[10]=f,e[11]=h,e[12]=d,e[13]=m,e[14]=p,e[15]=y,e}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function a(e,t){if(e===t){const r=t[1],n=t[2],o=t[3],s=t[6],i=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=s,e[11]=t[14],e[12]=o,e[13]=i,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function c(e,t){const r=t[0],n=t[1],o=t[2],s=t[3],i=t[4],a=t[5],c=t[6],u=t[7],l=t[8],f=t[9],h=t[10],d=t[11],m=t[12],p=t[13],y=t[14],g=t[15],b=r*a-n*i,M=r*c-o*i,w=r*u-s*i,_=n*c-o*a,S=n*u-s*a,v=o*u-s*c,E=l*p-f*m,T=l*y-h*m,O=l*g-d*m,P=f*y-h*p,x=f*g-d*p,q=h*g-d*y;let A=b*q-M*x+w*P+_*O-S*T+v*E;return A?(A=1/A,e[0]=(a*q-c*x+u*P)*A,e[1]=(o*x-n*q-s*P)*A,e[2]=(p*v-y*S+g*_)*A,e[3]=(h*S-f*v-d*_)*A,e[4]=(c*O-i*q-u*T)*A,e[5]=(r*q-o*O+s*T)*A,e[6]=(y*w-m*v-g*M)*A,e[7]=(l*v-h*w+d*M)*A,e[8]=(i*x-a*O+u*E)*A,e[9]=(n*O-r*x-s*E)*A,e[10]=(m*S-p*w+g*b)*A,e[11]=(f*w-l*S-d*b)*A,e[12]=(a*T-i*P-c*E)*A,e[13]=(r*P-n*T+o*E)*A,e[14]=(p*M-m*_-y*b)*A,e[15]=(l*_-f*M+h*b)*A,e):null}function u(e,t,r){const n=t[0],o=t[1],s=t[2],i=t[3],a=t[4],c=t[5],u=t[6],l=t[7],f=t[8],h=t[9],d=t[10],m=t[11],p=t[12],y=t[13],g=t[14],b=t[15];let M=r[0],w=r[1],_=r[2],S=r[3];return e[0]=M*n+w*a+_*f+S*p,e[1]=M*o+w*c+_*h+S*y,e[2]=M*s+w*u+_*d+S*g,e[3]=M*i+w*l+_*m+S*b,M=r[4],w=r[5],_=r[6],S=r[7],e[4]=M*n+w*a+_*f+S*p,e[5]=M*o+w*c+_*h+S*y,e[6]=M*s+w*u+_*d+S*g,e[7]=M*i+w*l+_*m+S*b,M=r[8],w=r[9],_=r[10],S=r[11],e[8]=M*n+w*a+_*f+S*p,e[9]=M*o+w*c+_*h+S*y,e[10]=M*s+w*u+_*d+S*g,e[11]=M*i+w*l+_*m+S*b,M=r[12],w=r[13],_=r[14],S=r[15],e[12]=M*n+w*a+_*f+S*p,e[13]=M*o+w*c+_*h+S*y,e[14]=M*s+w*u+_*d+S*g,e[15]=M*i+w*l+_*m+S*b,e}function l(e,t,r){const n=r[0],o=r[1],s=r[2];if(t===e)e[12]=t[0]*n+t[4]*o+t[8]*s+t[12],e[13]=t[1]*n+t[5]*o+t[9]*s+t[13],e[14]=t[2]*n+t[6]*o+t[10]*s+t[14],e[15]=t[3]*n+t[7]*o+t[11]*s+t[15];else{const r=t[0],i=t[1],a=t[2],c=t[3],u=t[4],l=t[5],f=t[6],h=t[7],d=t[8],m=t[9],p=t[10],y=t[11];e[0]=r,e[1]=i,e[2]=a,e[3]=c,e[4]=u,e[5]=l,e[6]=f,e[7]=h,e[8]=d,e[9]=m,e[10]=p,e[11]=y,e[12]=r*n+u*o+d*s+t[12],e[13]=i*n+l*o+m*s+t[13],e[14]=a*n+f*o+p*s+t[14],e[15]=c*n+h*o+y*s+t[15]}return e}function f(e,t,r){const n=r[0],o=r[1],s=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*o,e[5]=t[5]*o,e[6]=t[6]*o,e[7]=t[7]*o,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function h(e,t,r,n){let s,i,a,c,u,l,f,h,d,m,p,y,g,b,M,w,_,S,v,E,T,O,P,x,q=n[0],A=n[1],L=n[2],C=Math.sqrt(q*q+A*A+L*L);return C<(0,o.g)()?null:(C=1/C,q*=C,A*=C,L*=C,s=Math.sin(r),i=Math.cos(r),a=1-i,c=t[0],u=t[1],l=t[2],f=t[3],h=t[4],d=t[5],m=t[6],p=t[7],y=t[8],g=t[9],b=t[10],M=t[11],w=q*q*a+i,_=A*q*a+L*s,S=L*q*a-A*s,v=q*A*a-L*s,E=A*A*a+i,T=L*A*a+q*s,O=q*L*a+A*s,P=A*L*a-q*s,x=L*L*a+i,e[0]=c*w+h*_+y*S,e[1]=u*w+d*_+g*S,e[2]=l*w+m*_+b*S,e[3]=f*w+p*_+M*S,e[4]=c*v+h*E+y*T,e[5]=u*v+d*E+g*T,e[6]=l*v+m*E+b*T,e[7]=f*v+p*E+M*T,e[8]=c*O+h*P+y*x,e[9]=u*O+d*P+g*x,e[10]=l*O+m*P+b*x,e[11]=f*O+p*P+M*x,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function d(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function m(e,t,r){if(0===t)return i(e);let n,s,a,c=r[0],u=r[1],l=r[2],f=Math.sqrt(c*c+u*u+l*l);return f<(0,o.g)()?null:(f=1/f,c*=f,u*=f,l*=f,n=Math.sin(t),s=Math.cos(t),a=1-s,e[0]=c*c*a+s,e[1]=u*c*a+l*n,e[2]=l*c*a-u*n,e[3]=0,e[4]=c*u*a-l*n,e[5]=u*u*a+s,e[6]=l*u*a+c*n,e[7]=0,e[8]=c*l*a+u*n,e[9]=u*l*a-c*n,e[10]=l*l*a+s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function p(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function y(e,t,r){const n=t[0],o=t[1],s=t[2],i=t[3],a=n+n,c=o+o,u=s+s,l=n*a,f=n*c,h=n*u,d=o*c,m=o*u,p=s*u,y=i*a,g=i*c,b=i*u;return e[0]=1-(d+p),e[1]=f+b,e[2]=h-g,e[3]=0,e[4]=f-b,e[5]=1-(l+p),e[6]=m+y,e[7]=0,e[8]=h+g,e[9]=m-y,e[10]=1-(l+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const g=(0,n.c)();function b(e,t,r,n){const o=t[0],s=t[1],i=t[2],a=t[3],c=o+o,u=s+s,l=i+i,f=o*c,h=o*u,d=o*l,m=s*u,p=s*l,y=i*l,g=a*c,b=a*u,M=a*l,w=n[0],_=n[1],S=n[2];return e[0]=(1-(m+y))*w,e[1]=(h+M)*w,e[2]=(d-b)*w,e[3]=0,e[4]=(h-M)*_,e[5]=(1-(f+y))*_,e[6]=(p+g)*_,e[7]=0,e[8]=(d+b)*S,e[9]=(p-g)*S,e[10]=(1-(f+m))*S,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function M(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function _(e,t){if(e===t)return!0;const r=e[0],n=e[1],s=e[2],i=e[3],a=e[4],c=e[5],u=e[6],l=e[7],f=e[8],h=e[9],d=e[10],m=e[11],p=e[12],y=e[13],g=e[14],b=e[15],M=t[0],w=t[1],_=t[2],S=t[3],v=t[4],E=t[5],T=t[6],O=t[7],P=t[8],x=t[9],q=t[10],A=t[11],L=t[12],C=t[13],R=t[14],B=t[15],I=(0,o.g)();return Math.abs(r-M)<=I*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(n-w)<=I*Math.max(1,Math.abs(n),Math.abs(w))&&Math.abs(s-_)<=I*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(i-S)<=I*Math.max(1,Math.abs(i),Math.abs(S))&&Math.abs(a-v)<=I*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(c-E)<=I*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(u-T)<=I*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(l-O)<=I*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(f-P)<=I*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(h-x)<=I*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(d-q)<=I*Math.max(1,Math.abs(d),Math.abs(q))&&Math.abs(m-A)<=I*Math.max(1,Math.abs(m),Math.abs(A))&&Math.abs(p-L)<=I*Math.max(1,Math.abs(p),Math.abs(L))&&Math.abs(y-C)<=I*Math.max(1,Math.abs(y),Math.abs(C))&&Math.abs(g-R)<=I*Math.max(1,Math.abs(g),Math.abs(R))&&Math.abs(b-B)<=I*Math.max(1,Math.abs(b),Math.abs(B))}function S(e){const t=(0,o.g)(),r=e[0],n=e[1],s=e[2],i=e[4],a=e[5],c=e[6],u=e[8],l=e[9],f=e[10];return Math.abs(1-(r*r+i*i+u*u))<=t&&Math.abs(1-(n*n+a*a+l*l))<=t&&Math.abs(1-(s*s+c*c+f*f))<=t}function v(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const E=u,T=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){const r=t[0],n=t[1],o=t[2],s=t[3],i=t[4],a=t[5],c=t[6],u=t[7],l=t[8],f=t[9],h=t[10],d=t[11],m=t[12],p=t[13],y=t[14],g=t[15];return e[0]=a*(h*g-d*y)-f*(c*g-u*y)+p*(c*d-u*h),e[1]=-(n*(h*g-d*y)-f*(o*g-s*y)+p*(o*d-s*h)),e[2]=n*(c*g-u*y)-a*(o*g-s*y)+p*(o*u-s*c),e[3]=-(n*(c*d-u*h)-a*(o*d-s*h)+f*(o*u-s*c)),e[4]=-(i*(h*g-d*y)-l*(c*g-u*y)+m*(c*d-u*h)),e[5]=r*(h*g-d*y)-l*(o*g-s*y)+m*(o*d-s*h),e[6]=-(r*(c*g-u*y)-i*(o*g-s*y)+m*(o*u-s*c)),e[7]=r*(c*d-u*h)-i*(o*d-s*h)+l*(o*u-s*c),e[8]=i*(f*g-d*p)-l*(a*g-u*p)+m*(a*d-u*f),e[9]=-(r*(f*g-d*p)-l*(n*g-s*p)+m*(n*d-s*f)),e[10]=r*(a*g-u*p)-i*(n*g-s*p)+m*(n*u-s*a),e[11]=-(r*(a*d-u*f)-i*(n*d-s*f)+l*(n*u-s*a)),e[12]=-(i*(f*y-h*p)-l*(a*y-c*p)+m*(a*h-c*f)),e[13]=r*(f*y-h*p)-l*(n*y-o*p)+m*(n*h-o*f),e[14]=-(r*(a*y-c*p)-i*(n*y-o*p)+m*(n*c-o*a)),e[15]=r*(a*h-c*f)-i*(n*h-o*f)+l*(n*c-o*a),e},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},determinant:function(e){const t=e[0],r=e[1],n=e[2],o=e[3],s=e[4],i=e[5],a=e[6],c=e[7],u=e[8],l=e[9],f=e[10],h=e[11],d=e[12],m=e[13],p=e[14],y=e[15];return(t*i-r*s)*(f*y-h*p)-(t*a-n*s)*(l*y-h*m)+(t*c-o*s)*(l*p-f*m)+(r*a-n*i)*(u*y-h*d)-(r*c-o*i)*(u*p-f*d)+(n*c-o*a)*(u*m-l*d)},equals:_,exactEquals:w,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){const r=t[0],n=t[1],o=t[2],s=t[3],i=r+r,a=n+n,c=o+o,u=r*i,l=n*i,f=n*a,h=o*i,d=o*a,m=o*c,p=s*i,y=s*a,g=s*c;return e[0]=1-f-m,e[1]=l+g,e[2]=h-y,e[3]=0,e[4]=l-g,e[5]=1-u-m,e[6]=d+p,e[7]=0,e[8]=h+y,e[9]=d-p,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){const r=g,n=-t[0],o=-t[1],s=-t[2],i=t[3],a=t[4],c=t[5],u=t[6],l=t[7],f=n*n+o*o+s*s+i*i;return f>0?(r[0]=2*(a*i+l*n+c*s-u*o)/f,r[1]=2*(c*i+l*o+u*n-a*s)/f,r[2]=2*(u*i+l*s+a*o-c*n)/f):(r[0]=2*(a*i+l*n+c*s-u*o),r[1]=2*(c*i+l*o+u*n-a*s),r[2]=2*(u*i+l*s+a*o-c*n)),y(e,t,r),e},fromRotation:m,fromRotationTranslation:y,fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(e,t,r,n,o){const s=t[0],i=t[1],a=t[2],c=t[3],u=s+s,l=i+i,f=a+a,h=s*u,d=s*l,m=s*f,p=i*l,y=i*f,g=a*f,b=c*u,M=c*l,w=c*f,_=n[0],S=n[1],v=n[2],E=o[0],T=o[1],O=o[2],P=(1-(p+g))*_,x=(d+w)*_,q=(m-M)*_,A=(d-w)*S,L=(1-(h+g))*S,C=(y+b)*S,R=(m+M)*v,B=(y-b)*v,I=(1-(h+p))*v;return e[0]=P,e[1]=x,e[2]=q,e[3]=0,e[4]=A,e[5]=L,e[6]=C,e[7]=0,e[8]=R,e[9]=B,e[10]=I,e[11]=0,e[12]=r[0]+E-(P*E+A*T+R*O),e[13]=r[1]+T-(x*E+L*T+B*O),e[14]=r[2]+O-(q*E+C*T+I*O),e[15]=1,e},fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:d,fromXRotation:p,fromYRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,r,n,o,s,i){const a=1/(r-t),c=1/(o-n),u=1/(s-i);return e[0]=2*s*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*s*c,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(o+n)*c,e[10]=(i+s)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*s*2*u,e[15]=0,e},getRotation:function(e,t){const r=t[0]+t[5]+t[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e},getScaling:function(e,t){const r=t[0],n=t[1],o=t[2],s=t[4],i=t[5],a=t[6],c=t[8],u=t[9],l=t[10];return e[0]=Math.sqrt(r*r+n*n+o*o),e[1]=Math.sqrt(s*s+i*i+a*a),e[2]=Math.sqrt(c*c+u*u+l*l),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},hasIdentityRotation:v,identity:i,invert:c,invertOrIdentity:function(e,t){return c(e,t)||i(e),e},isOrthoNormal:S,lookAt:function(e,t,r,n){const s=t[0],a=t[1],c=t[2];let u=s-r[0],l=a-r[1],f=c-r[2];const h=(0,o.g)();if(Math.abs(u)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void i(e);let d=1/Math.sqrt(u*u+l*l+f*f);u*=d,l*=d,f*=d;const m=n[0],p=n[1],y=n[2];let g=p*f-y*l,b=y*u-m*f,M=m*l-p*u;d=Math.sqrt(g*g+b*b+M*M),d?(d=1/d,g*=d,b*=d,M*=d):(g=0,b=0,M=0);let w=l*M-f*b,_=f*g-u*M,S=u*b-l*g;d=Math.sqrt(w*w+_*_+S*S),d?(d=1/d,w*=d,_*=d,S*=d):(w=0,_=0,S=0),e[0]=g,e[1]=w,e[2]=u,e[3]=0,e[4]=b,e[5]=_,e[6]=l,e[7]=0,e[8]=M,e[9]=S,e[10]=f,e[11]=0,e[12]=-(g*s+b*a+M*c),e[13]=-(w*s+_*a+S*c),e[14]=-(u*s+l*a+f*c),e[15]=1},mul:E,multiply:u,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},ortho:function(e,t,r,n,o,s,i){const a=1/(t-r),c=1/(n-o),u=1/(s-i);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*c,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*a,e[13]=(o+n)*c,e[14]=(i+s)*u,e[15]=1,e},perspective:function(e,t,r,n,o){const s=1/Math.tan(t/2);let i;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=o&&o!==1/0?(i=1/(n-o),e[10]=(o+n)*i,e[14]=2*o*n*i):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){const o=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),i=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),c=2/(i+a),u=2/(o+s);return e[0]=c,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(i-a)*c*.5,e[9]=(o-s)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},rotate:h,rotateX:function(e,t,r){const n=Math.sin(r),o=Math.cos(r),s=t[4],i=t[5],a=t[6],c=t[7],u=t[8],l=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*o+u*n,e[5]=i*o+l*n,e[6]=a*o+f*n,e[7]=c*o+h*n,e[8]=u*o-s*n,e[9]=l*o-i*n,e[10]=f*o-a*n,e[11]=h*o-c*n,e},rotateY:function(e,t,r){const n=Math.sin(r),o=Math.cos(r),s=t[0],i=t[1],a=t[2],c=t[3],u=t[8],l=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*o-u*n,e[1]=i*o-l*n,e[2]=a*o-f*n,e[3]=c*o-h*n,e[8]=s*n+u*o,e[9]=i*n+l*o,e[10]=a*n+f*o,e[11]=c*n+h*o,e},rotateZ:function(e,t,r){const n=Math.sin(r),o=Math.cos(r),s=t[0],i=t[1],a=t[2],c=t[3],u=t[4],l=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*o+u*n,e[1]=i*o+l*n,e[2]=a*o+f*n,e[3]=c*o+h*n,e[4]=u*o-s*n,e[5]=l*o-i*n,e[6]=f*o-a*n,e[7]=h*o-c*n,e},scale:f,set:s,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:T,subtract:M,targetTo:function(e,t,r,n){const o=t[0],s=t[1],i=t[2],a=n[0],c=n[1],u=n[2];let l=o-r[0],f=s-r[1],h=i-r[2],d=l*l+f*f+h*h;d>0&&(d=1/Math.sqrt(d),l*=d,f*=d,h*=d);let m=c*h-u*f,p=u*l-a*h,y=a*f-c*l;return d=m*m+p*p+y*y,d>0&&(d=1/Math.sqrt(d),m*=d,p*=d,y*=d),e[0]=m,e[1]=p,e[2]=y,e[3]=0,e[4]=f*y-h*p,e[5]=h*m-l*y,e[6]=l*p-f*m,e[7]=0,e[8]=l,e[9]=f,e[10]=h,e[11]=0,e[12]=o,e[13]=s,e[14]=i,e[15]=1,e},translate:l,transpose:a},Symbol.toStringTag,{value:"Module"}))},13598:(e,t,r)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(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 s(e,t){return new Float64Array(e,t,16)}r.d(t,{I:()=>i,a:()=>s,b:()=>o,c:()=>n});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:o,create:n,createView:s,fromValues:function(e,t,r,n,o,s,i,a,c,u,l,f,h,d,m,p){return[e,t,r,n,o,s,i,a,c,u,l,f,h,d,m,p]}},Symbol.toStringTag,{value:"Module"}))},94961:(e,t,r)=>{function n(){return[0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3]]}function s(e,t){return new Float64Array(e,t,4)}r.d(t,{I:()=>i,a:()=>n,b:()=>o,c:()=>s});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:n,createView:s,fromValues:function(e,t,r,n){return[e,t,r,n]}},Symbol.toStringTag,{value:"Module"}))},29268:(e,t,r)=>{r.d(t,{a:()=>b,c:()=>y,g:()=>M,h:()=>g,j:()=>S,l:()=>q}),r(80442);var n,o,s=r(92604),i=r(22021),a=r(52138),c=r(17896),u=r(65617),l=r(98766),f=r(88669);(o=n||(n={}))[o.X=0]="X",o[o.Y=1]="Y",o[o.Z=2]="Z";var h=r(78341),d=r(61277),m=r(12981);const p=y();function y(){return(0,f.c)()}function g(e,t=y()){return(0,l.c)(t,e)}function b(e){return e[3]}function M(e){return e}function w(e,t,r){if(null==t)return!1;const{origin:n,direction:o}=t,s=_;s[0]=n[0]-e[0],s[1]=n[1]-e[1],s[2]=n[2]-e[2];const i=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===i)return!1;const a=2*(o[0]*s[0]+o[1]*s[1]+o[2]*s[2]),c=a*a-4*i*(s[0]*s[0]+s[1]*s[1]+s[2]*s[2]-e[3]*e[3]);if(c<0)return!1;const u=Math.sqrt(c);let l=(-a-u)/(2*i);const f=(-a+u)/(2*i);return(l<0||f<l&&f>0)&&(l=f),!(l<0||(r&&(r[0]=n[0]+o[0]*l,r[1]=n[1]+o[1]*l,r[2]=n[2]+o[2]*l),0))}const _=(0,u.c)();function S(e,t){return w(e,t,null)}function v(e,t,r){const n=m.WM.get(),o=m.MP.get();(0,c.f)(n,t.origin,t.direction);const s=b(e);(0,c.f)(r,n,t.origin),(0,c.g)(r,r,1/(0,c.l)(r)*s);const i=T(e,t.origin),u=(0,d.EU)(t.origin,r);return(0,a.d)(o,u+i,n),(0,c.m)(r,r,o),r}function E(e,t,r){const n=(0,c.b)(m.WM.get(),t,e),o=(0,c.g)(m.WM.get(),n,e[3]/(0,c.l)(n));return(0,c.a)(r,o,e)}function T(e,t){const r=(0,c.b)(m.WM.get(),t,e),n=(0,c.l)(r),o=b(e),s=o+Math.abs(o-n);return(0,i.ZF)(o/s)}const O=(0,u.c)();function P(e,t,r,o){const s=(0,c.b)(O,t,e);switch(r){case n.X:{const e=(0,i.jE)(s,O)[2];return(0,c.s)(o,-Math.sin(e),Math.cos(e),0)}case n.Y:{const e=(0,i.jE)(s,O),t=e[1],r=e[2],n=Math.sin(t);return(0,c.s)(o,-n*Math.cos(r),-n*Math.sin(r),Math.cos(t))}case n.Z:return(0,c.n)(o,s);default:return}}function x(e,t){const r=(0,c.b)(A,t,e);return(0,c.l)(r)-e[3]}function q(e,t){const r=(0,c.d)(e,t),n=b(e);return r<=n*n}const A=(0,u.c)(),L=y();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:p,altitudeAt:x,angleToSilhouette:T,axisAt:P,clear:function(e){e[0]=e[1]=e[2]=e[3]=0},closestPoint:function(e,t,r){return w(e,t,r)?r:((0,h.JI)(t,e,r),E(e,r,r))},closestPointOnSilhouette:v,containsPoint:q,copy:g,create:y,distanceToSilhouette:function(e,t){const r=(0,c.b)(m.WM.get(),t,e),n=(0,c.p)(r),o=e[3]*e[3];return Math.sqrt(Math.abs(n-o))},elevate:function(e,t,r){return e!==r&&(0,c.c)(r,e),r[3]=e[3]+t,r},fromCenterAndRadius:function(e,t){return(0,f.f)(e[0],e[1],e[2],t)},fromRadius:function(e,t){return e[0]=e[1]=e[2]=0,e[3]=t,e},fromValues:function(e,t,r,n){return(0,f.f)(e,t,r,n)},getCenter:M,getRadius:b,intersectRay:w,intersectRayClosestSilhouette:function(e,t,r){if(w(e,t,r))return r;const n=v(e,t,m.WM.get());return(0,c.a)(r,t.origin,(0,c.g)(m.WM.get(),t.direction,(0,c.i)(t.origin,n)/(0,c.l)(t.direction))),r},intersectsRay:S,projectPoint:E,setAltitudeAt:function(e,t,r,o){const s=x(e,t),i=P(e,t,n.Z,A),a=(0,c.g)(A,i,r-s);return(0,c.a)(o,t,a)},setExtent:function(e,t,r){return s.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),e===r?r:g(e,r)},tmpSphere:L,union:function(e,t,r=y()){const n=(0,c.i)(e,t),o=e[3],s=t[3];return n+s<o?((0,l.c)(r,e),r):n+o<s?((0,l.c)(r,t),r):((0,c.h)(r,e,t,(n+s-o)/(2*n)),r[3]=(n+o+s)/2,r)},wrap:function(e){return e}},Symbol.toStringTag,{value:"Module"}))},97323:(e,t,r)=>{function n(){return[0,0]}function o(e,t){return[e,t]}function s(e,t){return new Float64Array(e,t,2)}function i(){return o(1,1)}function a(){return o(1,0)}function c(){return o(0,1)}r.d(t,{a:()=>n,c:()=>s,f:()=>o});const u=i(),l=a(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:l,UNIT_Y:f,ZEROS:[0,0],clone:function(e){return[e[0],e[1]]},create:n,createView:s,fromArray:function(e){const t=[0,0],r=Math.min(2,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:o,ones:i,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},20773:(e,t,r)=>{r.d(t,{a:()=>a,b:()=>i,c:()=>o,d:()=>l,e:()=>c,n:()=>f,s:()=>u,t:()=>s});var n=r(72220);function o(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,o=3,s=o){if(e.length/o!==Math.ceil(t.length/s))return n.c.error("source and destination buffers need to have the same number of elements"),e;const i=e.length/o,a=r[0],c=r[1],u=r[2],l=r[4],f=r[5],h=r[6],d=r[8],m=r[9],p=r[10],y=r[12],g=r[13],b=r[14];let M=0,w=0;for(let r=0;r<i;r++){const r=t[M],n=t[M+1],i=t[M+2];e[w]=a*r+l*n+d*i+y,e[w+1]=c*r+f*n+m*i+g,e[w+2]=u*r+h*n+p*i+b,M+=s,w+=o}return e}function i(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,o=3,s=o){if(e.length/o!==Math.ceil(t.length/s))return void n.c.error("source and destination buffers need to have the same number of elements");const i=e.length/o,a=r[0],c=r[1],u=r[2],l=r[3],f=r[4],h=r[5],d=r[6],m=r[7],p=r[8];let y=0,g=0;for(let r=0;r<i;r++){const r=t[y],n=t[y+1],i=t[y+2];e[g]=a*r+l*n+d*i,e[g+1]=c*r+f*n+m*i,e[g+2]=u*r+h*n+p*i,y+=s,g+=o}}function c(e,t,r){u(e.typedBuffer,t,r,e.typedBufferStride)}function u(e,t,r,n=3){const o=Math.min(e.length/n,t.count),s=t.typedBuffer,i=t.typedBufferStride;let a=0,c=0;for(let t=0;t<o;t++)e[c]=r*s[a],e[c+1]=r*s[a+1],e[c+2]=r*s[a+2],a+=i,c+=n}function l(e,t){f(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function f(e,t,r=3,n=r){const o=Math.min(e.length/r,t.length/n);let s=0,i=0;for(let a=0;a<o;a++){const o=t[s],a=t[s+1],c=t[s+2],u=o*o+a*a+c*c;if(u>0){const t=1/Math.sqrt(u);e[i]=t*o,e[i+1]=t*a,e[i+2]=t*c}s+=n,i+=r}}Object.freeze(Object.defineProperty({__proto__:null,normalize:f,normalizeView:l,scale:u,scaleView:c,shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),o=e.typedBuffer,s=e.typedBufferStride,i=t.typedBuffer,a=t.typedBufferStride;let c=0,u=0;for(let e=0;e<n;e++)o[u]=i[c]>>r,o[u+1]=i[c+1]>>r,o[u+2]=i[c+2]>>r,c+=a,u+=s},transformMat3:a,transformMat3View:i,transformMat4:s,transformMat4View:o},Symbol.toStringTag,{value:"Module"}))},88669:(e,t,r)=>{function n(){return[0,0,0,0]}function o(e,t,r,n){return[e,t,r,n]}function s(e,t){return new Float64Array(e,t,4)}function i(){return o(1,1,1,1)}function a(){return o(1,0,0,0)}function c(){return o(0,1,0,0)}function u(){return o(0,0,1,0)}function l(){return o(0,0,0,1)}r.d(t,{a:()=>s,c:()=>n,f:()=>o});const f=i(),h=a(),d=c(),m=u(),p=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:p,UNIT_X:h,UNIT_Y:d,UNIT_Z:m,ZEROS:[0,0,0,0],clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,createView:s,fromArray:function(e){const t=[0,0,0,0],r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:o,ones:i,unitW:l,unitX:a,unitY:c,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},91303:(e,t,r)=>{var n;r.d(t,{Y:()=>n}),function(e){e[e.KILOBYTES=1024]="KILOBYTES",e[e.MEGABYTES=1048576]="MEGABYTES",e[e.GIGABYTES=1073741824]="GIGABYTES"}(n||(n={}))},2368:(e,t,r)=>{r.d(t,{J:()=>l,j:()=>f});var n=r(43697),o=r(92036),s=(r(80442),r(22974)),i=(r(92604),r(70586)),a=r(31263),c=r(1153),u=r(52011);const l=e=>{let t=class extends e{clone(){const e=(0,i.s3)((0,c.vw)(this),"unable to clone instance of non-accessor class"),t=e.metadatas,r=e.store,n={},o=new Map;for(const e in t){const i=t[e],c=r?.originOf(e),u=i.clonable;if(i.readOnly||!1===u||c!==a.s3.USER&&c!==a.s3.DEFAULTS&&c!==a.s3.WEB_MAP&&c!==a.s3.WEB_SCENE)continue;const l=this[e];let f=null;f="function"==typeof u?u(l):"reference"===u?l:(0,s.Vo)(l),null!=l&&null==f||(c===a.s3.DEFAULTS?o.set(e,f):n[e]=f)}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(o.size){const e=(0,c.vw)(u)?.store;if(e)for(const[t,r]of o)e.set(t,r,a.s3.DEFAULTS)}return u}};return t=(0,n._)([(0,u.j)("esri.core.Clonable")],t),t};let f=class extends(l(o.Z)){};f=(0,n._)([(0,u.j)("esri.core.Clonable")],f)},22807:(e,t,r)=>{r.d(t,{x:()=>o});var n=r(41213);class o{constructor(e){this._allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,n.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,s));e++)this._items.push(this._allocator())}}const s=1024},83025:(e,t,r)=>{r.d(t,{JK:()=>a,QZ:()=>s,Rq:()=>i,bg:()=>o,mB:()=>c});var n=r(1533);function o(e,t=!1){return e<=n.DB?t?new Array(e).fill(0):new Array(e):new Float64Array(e)}function s(e){return((0,n.kJ)(e)?e.length:e.byteLength/8)<=n.DB?Array.from(e):new Float64Array(e)}function i(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function a(e,t){for(let r=0;r<t.length;++r)e[r]=t[r];return e}function c(e){return Array.isArray(e)?new Float64Array(e):e}},85872:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(43697),o=r(2368),s=r(96674),i=r(5600),a=(r(75215),r(67676),r(80442),r(36030)),c=r(52011),u=r(65617),l=r(94139);let f=class extends((0,o.J)(s.wq)){constructor(e){super(e),this.type="georeferenced-relative",this.isRelative=!0,this.isGeoreferenced=!0,this.origin=(0,u.c)()}getOriginPoint(e){const[t,r,n]=this.origin;return new l.Z({x:t,y:r,z:n,spatialReference:e})}setOriginFormPoint({x:e,y:t,z:r}){this.origin=(0,u.f)(e,t,r??0)}};(0,n._)([(0,a.J)({georeferencedRelative:"georeferenced-relative"},{readOnly:!0})],f.prototype,"type",void 0),(0,n._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],f.prototype,"origin",void 0),f=(0,n._)([(0,c.j)("esri.geometry.support.MeshGeoreferencedRelativeVertexSpace")],f);const h=f},50567:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(43697),o=r(2368),s=r(96674),i=(r(92604),r(75215),r(67676),r(80442),r(20102),r(36030)),a=r(52011);let c=class extends((0,o.J)(s.wq)){constructor(){super({}),this.type="georeferenced",this.isRelative=!1,this.isGeoreferenced=!0}};(0,n._)([(0,i.J)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,n._)([(0,a.j)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c);const u=c},84555:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(43697),o=r(2368),s=r(96674),i=r(5600),a=(r(75215),r(67676),r(80442),r(36030)),c=r(52011),u=r(65617),l=r(94139);let f=class extends((0,o.J)(s.wq)){constructor(e){super(e),this.type="local",this.isRelative=!0,this.isGeoreferenced=!1,this.origin=(0,u.c)()}getOriginPoint(e){const[t,r,n]=this.origin;return new l.Z({x:t,y:r,z:n,spatialReference:e})}setOriginFormPoint({x:e,y:t,z:r}){this.origin=(0,u.f)(e,t,r??0)}};(0,n._)([(0,a.J)({local:"local"},{readOnly:!0})],f.prototype,"type",void 0),(0,n._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],f.prototype,"origin",void 0),f=(0,n._)([(0,c.j)("esri.geometry.support.MeshLocalVertexSpace")],f);const h=f},72220:(e,t,r)=>{r.d(t,{c:()=>n});const n=r(92604).Z.getLogger("esri.views.3d.support.buffer.math")},78341:(e,t,r)=>{r.d(t,{JI:()=>u,Ue:()=>i,re:()=>c}),r(67676);var n=r(22807),o=r(17896),s=r(65617);function i(e){return e?a((0,s.a)(e.origin),(0,s.a)(e.direction)):a((0,s.c)(),(0,s.c)())}function a(e,t){return{origin:e,direction:t}}function c(e,t){const r=l.get();return r.origin=e,r.direction=t,r}function u(e,t,r){const n=(0,o.e)(e.direction,(0,o.b)(r,t,e.origin));return(0,o.a)(r,e.origin,(0,o.g)(r,e.direction,n)),r}r(12981);const l=new n.x((()=>i()))},61277:(e,t,r)=>{r.d(t,{EU:()=>i});var n=r(22021),o=r(17896),s=r(65617);function i(e,t){const r=(0,o.e)(e,t)/((0,o.l)(e)*(0,o.l)(t));return-(0,n.ZF)(r)}(0,s.c)(),(0,s.c)()},12981:(e,t,r)=>{r.d(t,{MP:()=>m,WM:()=>d});var n=r(91303),o=r(41213),s=r(46521),i=r(13598),a=r(94961),c=r(97323),u=r(65617),l=r(88669);class f{constructor(e,t,r){this._itemByteSize=e,this._itemCreate=t,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(r/this._itemByteSize)}get(){0===this._itemsPtr&&(0,o.Y)((()=>this._reset()));const e=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=e;){const e=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let t=0;t<this._itemsPerBuffer;++t)this._items.push(this._itemCreate(e,t*this._itemByteSize));this._buffers.push(e)}return this._items[this._itemsPtr++]}_reset(){const e=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>e;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(e=h){return new f(16,c.c,e)}static createVec3f64(e=h){return new f(24,u.b,e)}static createVec4f64(e=h){return new f(32,l.a,e)}static createMat3f64(e=h){return new f(72,s.a,e)}static createMat4f64(e=h){return new f(128,i.a,e)}static createQuatf64(e=h){return new f(32,a.c,e)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const h=4*n.Y.KILOBYTES,d=(f.createVec2f64(),f.createVec3f64()),m=(f.createVec4f64(),f.createMat3f64(),f.createMat4f64());f.createQuatf64()},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var n=r(68773),o=r(40330),s=r(20102),i=r(80442),a=r(22974),c=r(95330),u=r(81271),l=r(19745),f=r(71058),h=r(85958);async function d(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=(0,u.u0)(t.query.toString().replaceAll("+"," ")));const a=(0,u.HK)(e),l=(0,u.jc)(e);l||a||(e=(0,u.Fv)(e));const g={url:e,requestOptions:{...t}};let b=(0,u.oh)(e);if(b){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(e){r=v("request:interceptor",e,t)}if((n instanceof Error||n instanceof s.Z)&&(r=v("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(b,g);if(null!=e)return{data:e,getHeader:w,httpStatus:200,requestOptions:g.requestOptions,url:g.url};b.after||b.error||(b=null)}if(e=g.url,"image"===(t=g.requestOptions).responseType&&((0,i.Z)("host-webworker")||(0,i.Z)("host-node")))throw v("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),g);if("head"===t.method){if(t.body)throw v("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),g);if(a||l)throw v("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),g)}if(await async function(){(0,i.Z)("host-webworker")?m||(m=await r.e(9884).then(r.bind(r,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(e,t);const M=new AbortController;(0,c.fu)(t,(()=>M.abort()));const _={controller:M,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:b,params:g,redoRequest:!1,useIdentity:p.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},S=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,s=e.controller.signal,i=r.body;let a=null,u=null;if(y&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(a=new FormData(i))),"string"==typeof i&&(u=i),e.fetchOptions={cache:r.cacheBust&&!("polyfill"in d._abortableFetch)?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:p.priority,redirect:"follow",signal:s},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||a?.get("token")),!e.hasToken&&n.default.apiKey&&(0,f.r)(t)&&(r.query||(r.query={}),r.query.token=n.default.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!T(t)&&!(0,c.Hc)(s)){let n;"immediate"===r.authMode?(await E(),n=await o.id.getCredential(t,{signal:s}),e.credential=n):"no-prompt"===r.authMode?(await E(),n=await o.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=n):o.id&&(n=o.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[t,r]=await O(e)}while(!await x(e,t,r))}catch(r){const n=v("request:server",r,e.params,t);throw n.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(n),n}const s=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,u.kl)(s)){const e=(0,u.P$)(s,!0);e&&p.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(r.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&o.id){const e=o.id.findServerInfo(i.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=o.id.findCredential(t,i.userId);e&&-1===o.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getHeader:t?e=>t?.headers.get(e):w,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(_);return b?.after?.(S),S}let m;const p=n.default.request,y="FormData"in globalThis,g=[499,498,403,401],b=["COM_0056","COM_0057","SB_0008"],M=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],w=()=>null,_=Symbol();function S(e){const t=(0,u.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,u.kl)(t)}function v(e,t,r,n){let o="Error";const i={url:r.url,requestOptions:r.requestOptions,getHeader:w,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=i,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n?.status,s=t.message;s&&(o=s),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=_ in t?t[_]:t}return(0,c.D_)(t)?(0,c.zE)():new s.Z(e,o,i)}async function E(){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 T(e){return M.some((t=>t.test(e)))}async function O(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions??{},s=(0,u.jc)(t)||(0,u.HK)(t),a=r.responseType||"json",f=s?0:null!=r.timeout?r.timeout:p.timeout;let m=!1;if(!s){e.useSSL&&(t=(0,u.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,u.ZN)(t,"request.preventCache",Date.now()));let s={...r.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,u.B7)(s);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replaceAll("'","%27"));const c=t.length+1+a.length;let f;m="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||c>p.maxUrlLength;const d=r.useProxy||!!(0,u.ed)(t);if(d){const e=(0,u.b7)(t);f=e.path,!m&&f.length+1+c>p.maxUrlLength&&(m=!0),e.query&&(s={...e.query,...s})}if("HEAD"===n.method&&(m||d)){if(m){if(c>p.maxUrlLength)throw v("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw v("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw v("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(m?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,u.fl)(t,s):(n.body=(0,u.B7)(s),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.fl)(t,s),d&&(e.useProxy=!0,t=`${f}?${t}`),s.token&&y&&n.body instanceof FormData&&!(0,l.P)(t)&&n.body.set("token",s.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,u.D6)(t,(0,u.TI)()))if((0,u.kl)(t))e.withCredentials=!0;else if(o.id){const r=o.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include",(0,h.jH)(t)&&await(0,h.jz)(m?(0,u.fl)(t,s):t))}let g,b,M=0,w=!1;f>0&&(M=setTimeout((()=>{w=!0,e.controller.abort()}),f));try{if("native-request-init"===r.responseType)b=n,b.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||m||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!s&&!e.useProxy&&p.proxyUrl&&!S(t)){if(g=await d._abortableFetch(t,n),e.useProxy||function(e){const t=(0,u.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===r.responseType)b=g;else if("HEAD"!==n.method)if(g.ok){switch(a){case"array-buffer":b=await g.arrayBuffer();break;case"blob":case"image":b=await g.blob();break;default:b=await g.text()}if(M&&(clearTimeout(M),M=0),"json"===a||"xml"===a||"document"===a)if(b)switch(a){case"json":b=JSON.parse(b);break;case"xml":b=P(b,"application/xml");break;case"document":b=P(b,"text/html")}else b=null;if(b){if("array-buffer"===a||"blob"===a){const e=g.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&b["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(b).json();e.error&&(b=e)}catch{}}"image"===a&&b instanceof Blob&&(b=await q(URL.createObjectURL(b),e,!0))}}else{b=await g.text();try{b=JSON.parse(b)}catch{}}}else b=await q(t,e)}catch(n){if("AbortError"===n.name){if(w)throw(0,h.Tf)();throw(0,c.zE)("Request canceled")}if(!(!g&&n instanceof TypeError&&p.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||S(t))throw n;e.redoRequest=!0,(0,u.tD)({proxyUrl:p.proxyUrl,urlPrefix:(0,u.P$)(t)??""})}finally{M&&clearTimeout(M)}return[g,b]}function P(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function x(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const n=e.params.requestOptions;if(!t||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let s,i;if(r&&(r.error?s=r.error:"error"===r.status&&Array.isArray(r.messages)&&(s={...r},s[_]=r,s.details=r.messages)),!s&&!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[_]=r,s;let a,c=null;s&&(i=Number(s.code),c=s.hasOwnProperty("subcode")?Number(s.subcode):null,a=s.messageCode,a=a?.toUpperCase());const u=n.authMode;if(403===i&&(4===c||s.message?.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===i)&&void 0!==i&&g.includes(i)&&!T(e.params.url)&&(403!==i||a&&!b.includes(a)&&(null==c||2===c&&e.credentialToken))){await E();try{const t=await o.id.getCredential(e.params.url,{error:v("request:server",s,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;s=t}}if(s)throw s;return!0}function q(e,t,r=!1){const n=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=p.priority,o.src=e,(0,h.fY)(o,e,r,n)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,r)=>{r.d(t,{r:()=>s});var n=r(81271);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,n.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!o.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{Hu:()=>f,Tf:()=>l,fY:()=>a,jH:()=>h,jz:()=>d});var n=r(68773),o=r(80442),s=r(95330),i=r(81271);function a(e,t,r=!1,n){return new Promise(((i,a)=>{if((0,s.Hc)(n))return void a(c());let u=()=>{h(),a(new Error(`Unable to load ${t}`))},l=()=>{const t=e;h(),i(t)},f=()=>{if(!e)return;const t=e;h(),t.src="",a(c())};const h=()=>{(0,o.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",l)),u=null,l=null,e=null,null!=n&&n.removeEventListener("abort",f),f=null,r&&URL.revokeObjectURL(t)};null!=n&&n.addEventListener("abort",f),(0,o.Z)("esri-image-decode")?e.decode().then(l,u):(e.addEventListener("error",u),e.addEventListener("load",l))}))}function c(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const u="Timeout exceeded";function l(){return new Error(u)}function f(e){n.default.request.crossOriginNoCorsDomains||(n.default.request.crossOriginNoCorsDomains={});const t=n.default.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,i.P$)(r)??""]=0:(t[(0,i.P$)("http://"+r)??""]=0,t[(0,i.P$)("https://"+r)??""]=0)}function h(e){const t=n.default.request.crossOriginNoCorsDomains;if(t){let r=(0,i.P$)(e);if(r)return r=r.toLowerCase(),!(0,i.D6)(r,(0,i.TI)())&&t[r]<Date.now()-36e5}return!1}async function d(e){const t=n.default.request.crossOriginNoCorsDomains,r=(0,i.P$)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const o=(0,i.mN)(e);e=o.path,"json"===o.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}},31412:(e,t,r)=>{r.r(t),r.d(t,{destroyContext:()=>P,dracoDecompressPointCloudData:()=>_,filterObbsForModifications:()=>S,filterObbsForModificationsSync:()=>R,initialize:()=>k,interpretObbModificationResults:()=>C,process:()=>w,project:()=>T,setLegacySchema:()=>E,setModifications:()=>v,setModificationsSync:()=>A,test:()=>U,transformNormals:()=>O});var n,o,s=r(82971),i=r(83025),a=r(85872),c=r(50567),u=r(84555),l=r(20773);!function(e){e[e.None=0]="None",e[e.Int16=1]="Int16",e[e.Int32=2]="Int32"}(n||(n={})),function(e){e[e.Replace=0]="Replace",e[e.Outside=1]="Outside",e[e.Inside=2]="Inside",e[e.Finished=3]="Finished"}(o||(o={}));var f=r(99880);function h(e){return(0,f.V)(`esri/libs/i3s/${e}`)}let d;var m,p,y,g,b,M;async function w(e){await k();const t=[e.geometryBuffer];return{result:L(e,t),transferList:t}}async function _(e){await k();const t=[e.geometryBuffer],{geometryBuffer:r}=e,n=r.byteLength,o=q._malloc(n),s=new Uint8Array(q.HEAPU8.buffer,o,n);s.set(new Uint8Array(r));const i=q.dracoDecompressPointCloudData(o,s.byteLength);if(q._free(o),i.error.length>0)throw new Error(`i3s.wasm: ${i.error}`);const a=i.featureIds?.length>0?i.featureIds.slice():null,c=i.positions.slice();return a&&t.push(a.buffer),t.push(c.buffer),{result:{positions:c,featureIds:a},transferList:t}}async function S(e){await k(),R(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function v(e){await k(),A(e)}async function E(e){await k(),q.setLegacySchema(e.context,e.jsonSchema)}async function T(e){const{localMatrix:t,origin:n,positions:o,vertexSpace:l,local:f}=e,h=s.Z.fromJSON(e.inSpatialReference),d=s.Z.fromJSON(e.outSpatialReference),m={georeferenced:c.Z,georeferencedRelative:a.Z,local:u.Z}[l.type].fromJSON(l);let p;if("georeferenced"===m.type){const{projectBuffer:e,initializeProjection:t}=await Promise.all([r.e(4547),r.e(3215),r.e(661)]).then(r.bind(r,44547));await t(h,d),p=new Float64Array(o.length),e(o,h,0,p,d,0,p.length/3)}else{const{project:e}=await Promise.all([r.e(4547),r.e(3215),r.e(6481),r.e(6459),r.e(5234)]).then(r.bind(r,66459));p=(0,i.mB)(e({positions:o,transform:t?{localMatrix:t}:void 0,vertexSpace:m,inSpatialReference:h,outSpatialReference:d,local:f}))}const y=p.length,[g,b,M]=n;for(let e=0;e<y;e+=3)p[e]-=g,p[e+1]-=b,p[e+2]-=M;return{result:[p,o],transferList:[p.buffer,o.buffer]}}async function O({normalMatrix:e,normals:t}){const r=new Float32Array(t.length);return(0,l.a)(r,t,e),(0,l.n)(r,r),{result:[r,t],transferList:[r.buffer,t.buffer]}}function P(e){B(e)}let x,q;function A(e){const t=e.modifications,r=q._malloc(8*t.length),n=new Float64Array(q.HEAPU8.buffer,r,t.length);for(let e=0;e<t.length;++e)n[e]=t[e];q.setModifications(e.context,r,t.length,e.isGeodetic),q._free(r)}function L(e,t){if(!q)return null;const{context:r,localOrigin:o,globalTrafo:s,mbs:i,obb:a,elevationOffset:c,geometryBuffer:u,geometryDescriptor:l,indexToVertexProjector:f,vertexToRenderProjector:h}=e,d=q._malloc(u.byteLength),m=q._malloc(33*Float64Array.BYTES_PER_ELEMENT),p=new Uint8Array(q.HEAPU8.buffer,d,u.byteLength);p.set(new Uint8Array(u));const y=new Float64Array(q.HEAPU8.buffer,m,33);I(y,o);let g=y.byteOffset+3*y.BYTES_PER_ELEMENT,b=new Float64Array(y.buffer,g);I(b,s),g+=16*y.BYTES_PER_ELEMENT,b=new Float64Array(y.buffer,g),I(b,i),g+=4*y.BYTES_PER_ELEMENT,null!=a&&(b=new Float64Array(y.buffer,g),I(b,a.center),g+=3*y.BYTES_PER_ELEMENT,b=new Float64Array(y.buffer,g),I(b,a.halfSize),g+=3*y.BYTES_PER_ELEMENT,b=new Float64Array(y.buffer,g),I(b,a.quaternion));const M=l,w={isDraco:!1,isLegacy:!1,color:e.layouts.some((e=>e.some((e=>"color"===e.name)))),normal:e.needNormals&&e.layouts.some((e=>e.some((e=>"normalCompressed"===e.name)))),uv0:e.layouts.some((e=>e.some((e=>"uv0"===e.name)))),uvRegion:e.layouts.some((e=>e.some((e=>"uvRegion"===e.name)))),featureIndex:M.featureIndex},_=q.process(r,!!e.obb,d,p.byteLength,M,w,m,c,f,h,e.normalReferenceFrame);if(q._free(m),q._free(d),_.error.length>0)throw new Error(`i3s.wasm: ${_.error}`);if(_.discarded)return null;const S=_.componentOffsets.length>0?_.componentOffsets.slice():null,v=_.featureIds.length>0?_.featureIds.slice():null,E=_.anchorIds.length>0?Array.from(_.anchorIds):null,T=_.anchors.length>0?Array.from(_.anchors):null,O=_.interleavedVertedData.slice().buffer,P=_.indicesType===n.Int16?new Uint16Array(_.indices.buffer,_.indices.byteOffset,_.indices.byteLength/2).slice():new Uint32Array(_.indices.buffer,_.indices.byteOffset,_.indices.byteLength/4).slice(),x=_.positions.slice(),A=_.positionIndicesType===n.Int16?new Uint16Array(_.positionIndices.buffer,_.positionIndices.byteOffset,_.positionIndices.byteLength/2).slice():new Uint32Array(_.positionIndices.buffer,_.positionIndices.byteOffset,_.positionIndices.byteLength/4).slice(),L={layout:e.layouts[0],interleavedVertexData:O,indices:P,hasColors:_.hasColors,hasModifications:_.hasModifications,positionData:{data:x,indices:A}};return v&&t.push(v.buffer),S&&t.push(S.buffer),t.push(O),t.push(P.buffer),t.push(x.buffer),t.push(A.buffer),{componentOffsets:S,featureIds:v,anchorIds:E,anchors:T,transformedGeometry:L,obb:_.obb}}function C(e){return 0===e?p.Unmodified:1===e?p.PotentiallyModified:2===e?p.Culled:p.Unknown}function R(e){const{context:t,buffer:r}=e,n=q._malloc(r.byteLength),o=r.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(q.HEAPU8.buffer,n,o),i=new Float64Array(r);s.set(i),q.filterOBBs(t,n,o),i.set(s),q._free(n)}function B(e){q&&(q.destroy(e),q=null)}function I(e,t){for(let r=0;r<t.length;++r)e[r]=t[r]}function k(){return q?Promise.resolve():(x||(x=(d||(d=new Promise((e=>r.e(6710).then(r.bind(r,26710)).then((e=>e.i)).then((({default:t})=>{const r=t({locateFile:h,onRuntimeInitialized:()=>e(r)});delete r.then})))).catch((e=>{throw e}))),d).then((e=>{q=e,x=null}))),x)}r(29268),(M=m||(m={}))[M.Unmodified=0]="Unmodified",M[M.Culled=1]="Culled",M[M.NotChecked=2]="NotChecked",function(e){e[e.Unmodified=0]="Unmodified",e[e.PotentiallyModified=1]="PotentiallyModified",e[e.Culled=2]="Culled",e[e.Unknown=3]="Unknown",e[e.NotChecked=4]="NotChecked"}(p||(p={})),function(e){e[e.Unknown=0]="Unknown",e[e.Uncached=1]="Uncached",e[e.Cached=2]="Cached"}(y||(y={})),function(e){e[e.None=0]="None",e[e.MaxScreenThreshold=1]="MaxScreenThreshold",e[e.ScreenSpaceRelative=2]="ScreenSpaceRelative",e[e.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",e[e.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(g||(g={})),function(e){e[e.Hole=0]="Hole",e[e.Leaf=1]="Leaf"}(b||(b={}));const U={transform:L,destroy:B}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4720,1444],{16306:(e,t,r)=>{r.d(t,{aX:()=>A});var a=r(68773),n=r(20102),s=r(92604),i=r(38913),o=r(58901),l=r(73913),d=r(8744),u=r(40488),p=(r(66577),r(3172)),c=r(33955),h=r(11282),f=r(81271);async function y(e,t,r){const a="string"==typeof e?(0,f.mN)(e):e,n=t[0].spatialReference,s=(0,c.Ji)(t[0]),i={...r,query:{...a.query,f:"json",sr:n.wkid??JSON.stringify(n),geometries:JSON.stringify((l=t,{geometryType:(0,c.Ji)(l[0]),geometries:l.map((e=>e.toJSON()))}))}},{data:o}=await(0,p.default)(a.path+"/simplify",i);var l;return function(e,t,r){const a=(0,c.q9)(t);return e.map((e=>{const t=a.fromJSON(e);return t.spatialReference=r,t}))}(o.geometries,s,n)}const m=s.Z.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function b(e){return"polyline"===e[0].type}function F(e,t,r){if(t){const t=function(e,t){if(!(e instanceof o.Z||e instanceof i.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw m.error(e),new n.Z(e)}const r=(0,l.x3)(e),a=[];for(const e of r){const r=[];a.push(r),r.push([e[0][0],e[0][1]]);for(let a=0;a<e.length-1;a++){const n=e[a][0],s=e[a][1],i=e[a+1][0],o=e[a+1][1],l=Math.sqrt((i-n)*(i-n)+(o-s)*(o-s)),d=(o-s)/l,u=(i-n)/l,p=l/t;if(p>1){for(let e=1;e<=p-1;e++){const a=e*t,i=u*a+n,o=d*a+s;r.push([i,o])}const e=(l+Math.floor(p-1)*t)/2,a=u*e+n,i=d*e+s;r.push([a,i])}r.push([i,o])}}return function(e){return"polygon"===e.type}(e)?new i.Z({rings:a,spatialReference:e.spatialReference}):new o.Z({paths:a,spatialReference:e.spatialReference})}(e,1e6);e=(0,u.Sx)(t,!0)}return r&&(e=(0,l.Sy)(e,r)),e}function w(e,t,r){if(Array.isArray(e)){const a=e[0];if(a>t){const r=(0,l.XZ)(a,t);e[0]=a+r*(-2*t)}else if(a<r){const t=(0,l.XZ)(a,r);e[0]=a+t*(-2*r)}}else{const a=e.x;if(a>t){const r=(0,l.XZ)(a,t);e=e.clone().offset(r*(-2*t),0)}else if(a<r){const t=(0,l.XZ)(a,r);e=e.clone().offset(t*(-2*r),0)}}return e}function I(e,t){let r=-1;for(let a=0;a<t.cutIndexes.length;a++){const n=t.cutIndexes[a],s=t.geometries[a],i=(0,l.x3)(s);for(let e=0;e<i.length;e++){const t=i[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const a=t[e][0];r=a>r?a:r}r=Number(r.toFixed(9));const a=-360*(0,l.XZ)(r,180);for(let r=0;r<t.length;r++){const t=s.getPoint(e,r);s.setPoint(e,r,t.clone().offset(a,0))}return!0}}))}if(n===r){if(g(e))for(const t of(0,l.x3)(s))e[n]=e[n].addRing(t);else if(b(e))for(const t of(0,l.x3)(s))e[n]=e[n].addPath(t)}else r=n,e[n]=s}return e}async function A(e,t,r){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&m.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??a.default.geometryServiceUrl;let s,f,g,b,Z,v,S,R,E=0;const x=[],$=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,f=(0,d.C5)(s),g=s.isWebMercator,v=g?102100:4326,b=l.UZ[v].maxX,Z=l.UZ[v].minX,S=l.UZ[v].plus180Line,R=l.UZ[v].minus180Line),f)if("mesh"===t.type)$.push(t);else if("point"===t.type)$.push(w(t.clone(),b,Z));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>w(e,b,Z))),$.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,f);$.push(e.rings?new i.Z(e):e)}else if(t.extent){const e=t.extent,r=(0,l.XZ)(e.xmin,Z)*(2*b);let a=0===r?t.clone():(0,l.Sy)(t.clone(),r);e.offset(r,0),e.intersects(S)&&e.xmax!==b?(E=e.xmax>E?e.xmax:E,a=F(a,g),x.push(a),$.push("cut")):e.intersects(R)&&e.xmin!==Z?(E=e.xmax*(2*b)>E?e.xmax*(2*b):E,a=F(a,g,360),x.push(a),$.push("cut")):$.push(a)}else $.push(t.clone());else $.push(t);else $.push(t);let O=(0,l.XZ)(E,b),L=-90;const j=O,U=new o.Z;for(;O>0;){const e=360*O-180;U.addPath([[e,L],[e,-1*L]]),L*=-1,O--}if(x.length>0&&j>0){const t=I(x,await async function(e,t,r,a){const n=(0,h.en)(e),s=t[0].spatialReference,i={...a,query:{...n.query,f:"json",sr:JSON.stringify(s),target:JSON.stringify({geometryType:(0,c.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},o=await(0,p.default)(n.path+"/cut",i),{cutIndexes:l,geometries:d=[]}=o.data;return{cutIndexes:l,geometries:d.map((e=>{const t=(0,c.im)(e);return t.spatialReference=s,t}))}}(n,x,U,r)),a=[],s=[];for(let r=0;r<$.length;r++){const n=$[r];if("cut"!==n)s.push(n);else{const n=t.shift(),i=e[r];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&n.rings.length>=i.rings.length?(a.push(n),s.push("simplify")):s.push(g?(0,u.$)(n):n)}}if(!a.length)return s;const i=await y(n,a,r),o=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?o.push(t):o.push(g?(0,u.$)(i.shift()):i.shift())}return o}const k=[];for(let e=0;e<$.length;e++){const t=$[e];if("cut"!==t)k.push(t);else{const e=x.shift();k.push(!0===g?(0,u.$)(e):e)}}return k}},73913:(e,t,r)=>{r.d(t,{Sy:()=>l,UZ:()=>i,XZ:()=>o,x3:()=>d});var a=r(58901),n=r(82971),s=r(33955);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new a.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator}),minus180Line:new a.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new a.Z({paths:[[[180,-180],[180,180]]],spatialReference:n.Z.WGS84}),minus180Line:new a.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:n.Z.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=d(e);for(const e of r)for(const r of e)r[0]+=t;return e}function d(e){return(0,s.oU)(e)?e.rings:e.paths}},14720:(e,t,r)=>{r.d(t,{Ey:()=>b,applyEdits:()=>F,aw:()=>m,uploadAssets:()=>S});var a=r(38171),n=r(46791),s=r(20102),i=r(22974),o=r(92604),l=r(95330),d=r(81271),u=r(16306),p=r(66361),c=r(2981),h=r(84230);function f(e){return e&&null!=e.applyEdits}function y(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function m(e){return e.every(y)}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,a={}){let d;if((0,p.lQ)(e)&&e.url)d=(0,p.jF)(e.url,e.layerId,"original-and-current-features"===a.returnServiceEditsOption);else{d=(0,l.hh)(),d.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:d.promise};e.emit("apply-edits",t)}try{const{results:l,edits:u}=await async function(e,t,r,a){if(await e.load(),!f(t))throw new s.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,h.ln)(e))throw new s.Z(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:l}=await async function(e,t,r){const a=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),i=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),l=null!=e.infoFor3D;if(!t||!a&&!i)throw new s.Z(`${e.type}-layer:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");const d=(0,h.S1)(e);if(!d.data.isVersioned&&r?.gdbVersion)throw new s.Z(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!d.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new s.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");if(!d.editing.supportsGlobalId&&r?.globalIdUsed)throw new s.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!d.editing.supportsGlobalId&&i)throw new s.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 s.Z(`${e.type}-layer:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true");const u={...r};if(null!=u.rollbackOnFailureEnabled||d.editing.supportsRollbackOnFailure||(u.rollbackOnFailureEnabled=!0),u.rollbackOnFailureEnabled||"original-and-current-features"!==u.returnServiceEditsOption||(!1===u.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."),u.rollbackOnFailureEnabled=!0),!d.editing.supportsReturnServiceEditsInSourceSpatialReference&&u.returnServiceEditsInSourceSR)throw new s.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(u.returnServiceEditsInSourceSR&&"original-and-current-features"!==u.returnServiceEditsOption)throw new s.Z(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const p={...t};if(p.addFeatures=t&&n.Z.isCollection(t.addFeatures)?t.addFeatures.toArray():p.addFeatures||[],p.updateFeatures=t&&n.Z.isCollection(t.updateFeatures)?t.updateFeatures.toArray():p.updateFeatures||[],p.deleteFeatures=t&&n.Z.isCollection(t.deleteFeatures)?t.deleteFeatures.toArray():p.deleteFeatures||[],p.addFeatures.length&&!d.operations.supportsAdd)throw new s.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support adding features.");if(p.updateFeatures.length&&!d.operations.supportsUpdate)throw new s.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support updating features.");if(p.deleteFeatures.length&&!d.operations.supportsDelete)throw new s.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support deleting features.");p.addAttachments=p.addAttachments||[],p.updateAttachments=p.updateAttachments||[],p.deleteAttachments=p.deleteAttachments||[],p.addFeatures=p.addFeatures.map(Z),p.updateFeatures=p.updateFeatures.map(Z),p.addAssetFeatures=[];const f=r?.globalIdUsed||l;return p.addFeatures.forEach((t=>function(e,t,r){w(e,t,r)}(t,e,f))),p.updateFeatures.forEach((t=>function(e,t,r){w(e,t,r);const a=(0,h.S1)(t);if("geometry"in e&&null!=e.geometry&&!a?.editing.supportsGeometryUpdate)throw new s.Z(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,f))),p.deleteFeatures.forEach((t=>function(e,t,r){w(e,t,r)}(t,e,f))),p.addAttachments.forEach((t=>I(t,e))),p.updateAttachments.forEach((t=>I(t,e))),l&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:r}=t,a=(0,c.S0)("model/gltf-binary",r.supportedFormats)??(0,c.Ow)("glb",r.supportedFormats);if(!a||!r.editFormats.includes(a))throw new s.Z(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:n}=e;for(const t of e.addFeatures??[])v(t)&&n.push(t);for(const t of e.updateFeatures??[])v(t)&&n.push(t)}(p,e),{edits:await A(p),options:u}}(e,r,a);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,l)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,a),p=e=>e.filter((e=>!e.error)).map(i.d9),y={edits:u,addedFeatures:p(l.addFeatureResults),updatedFeatures:p(l.updateFeatureResults),deletedFeatures:p(l.deleteFeatureResults),addedAttachments:p(l.addAttachmentResults),updatedAttachments:p(l.updateAttachmentResults),deletedAttachments:p(l.deleteAttachmentResults),exceededTransferLimit:!1};return l.editedFeatureResults?.length&&(y.editedFeatures=l.editedFeatureResults),d.resolve(y),l}catch(e){throw d.reject(e),e}}function w(e,t,r){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new s.Z(`${t.type}-layer:invalid-parameter`,"Feature should have 'globalId' when 'globalIdUsed' is true");if(!("attributes"in e)&&!e.globalId)throw new s.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 s.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 s.Z(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function I(e,t){const{feature:r,attachment:a}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!a.globalId)throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!a.data&&!a.uploadId)throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(a.data instanceof File&&a.data.name||a.name))throw new s.Z(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&a.uploadId)throw new s.Z(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof a.data){const e=(0,d.sJ)(a.data);if(e&&!e.isBase64)throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function A(e){const t=e.addFeatures??[],r=e.updateFeatures??[],a=t.concat(r).map((e=>e.geometry)),n=await(0,u.aX)(a),s=t.length,i=r.length;return n.slice(0,s).forEach(((e,r)=>t[r].geometry=e)),n.slice(s,s+i).forEach(((e,t)=>r[t].geometry=e)),e}function Z(e){const t=new a.Z;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function v(e){return"mesh"===e?.geometry?.type}function S(e,t,r,a){if(!f(t))throw new s.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new s.Z(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,a)}},66361:(e,t,r)=>{r.d(t,{jF:()=>d,lQ:()=>c,o1:()=>h});var a=r(43697),n=r(32448),s=r(22974),i=r(95330),o=(r(92604),r(75215),r(20102),r(80442),r(52011));const l=new n.Z.EventEmitter;function d(e,t,r=!1){const a=(0,i.hh)();return r=null==t||r,l.emit("apply-edits",{serviceUrl:e,layerId:t,mayReceiveServiceEdits:r,result:a.promise}),a}const u="esri.layers.mixins.EditBusLayer",p=Symbol(u);function c(e){return null!=e&&"object"==typeof e&&p in e}const h=e=>{var t;let r=class extends e{constructor(...e){super(...e),this[t]=!0,this.when().then((()=>{this.own([l.on("apply-edits",(e=>{const{serviceUrl:t,layerId:r,mayReceiveServiceEdits:a,result:n}=e,i=t===this.url,o=null!=r&&null!=this.layerId&&r===this.layerId;if(!i||!o&&!a)return;const l=n.then((e=>{if(o&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,s.d9)(e)),e;const t=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(t){const{adds:r,updates:a,deletes:n}=t.editedFeatures,i={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:r?r.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:n?n.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:a?a.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,s.d9)(e.editedFeatures),exceededTransferLimit:!1};return this.emit("edits",i),i}return{edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,s.d9)(e.editedFeatures),exceededTransferLimit:!1}}));this.emit("apply-edits",{result:l})}))])}),(()=>{}))}};return t=p,r=(0,a._)([(0,o.j)(u)],r),r}},2981:(e,t,r)=>{r.d(t,{$6:()=>u,Ow:()=>s,S0:()=>n,d1:()=>i});const a=[["binary","application/octet-stream","bin",""]];function n(e,t){return l(function(e,t){return o(t).find((t=>d(t)===e))}(e,t))}function s(e,t){return l(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 d(function(e,t){return o(t).find((t=>l(t)===e))}(e,t))}function o(e){return[...a,...e]}function l(e){return e?.[0]}function d(e){return e?.[1]}function u(e){return e.tables?.find((e=>"assetMaps"===e.role))}},11282:(e,t,r)=>{r.d(t,{cv:()=>o,en:()=>i,lA:()=>s}),r(68773),r(40330);var a=r(22974),n=r(81271);function s(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,n.mN)(e):(0,a.d9)(e)}function o(e,t,r){const a={};for(const n in e){if("declaredClass"===n)continue;const s=e[n];if(null!=s&&"function"!=typeof s)if(Array.isArray(s)){a[n]=[];for(let e=0;e<s.length;e++)a[n][e]=o(s[e])}else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(r&&r[n]);a[n]=t?e:JSON.stringify(e)}else a[n]=t?s:JSON.stringify(s);else a[n]=s}return a}r(71058)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4720,1444],{16306:(e,t,r)=>{r.d(t,{aX:()=>A});var a=r(68773),n=r(20102),s=r(92604),i=r(38913),o=r(58901),l=r(73913),d=r(8744),u=r(40488),p=(r(66577),r(3172)),c=r(33955),f=r(11282),h=r(81271);async function y(e,t,r){const a="string"==typeof e?(0,h.mN)(e):e,n=t[0].spatialReference,s=(0,c.Ji)(t[0]),i={...r,query:{...a.query,f:"json",sr:n.wkid??JSON.stringify(n),geometries:JSON.stringify((l=t,{geometryType:(0,c.Ji)(l[0]),geometries:l.map((e=>e.toJSON()))}))}},{data:o}=await(0,p.default)(a.path+"/simplify",i);var l;return function(e,t,r){const a=(0,c.q9)(t);return e.map((e=>{const t=a.fromJSON(e);return t.spatialReference=r,t}))}(o.geometries,s,n)}const m=s.Z.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function b(e){return"polyline"===e[0].type}function F(e,t,r){if(t){const t=function(e,t){if(!(e instanceof o.Z||e instanceof i.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw m.error(e),new n.Z(e)}const r=(0,l.x3)(e),a=[];for(const e of r){const r=[];a.push(r),r.push([e[0][0],e[0][1]]);for(let a=0;a<e.length-1;a++){const n=e[a][0],s=e[a][1],i=e[a+1][0],o=e[a+1][1],l=Math.sqrt((i-n)*(i-n)+(o-s)*(o-s)),d=(o-s)/l,u=(i-n)/l,p=l/t;if(p>1){for(let e=1;e<=p-1;e++){const a=e*t,i=u*a+n,o=d*a+s;r.push([i,o])}const e=(l+Math.floor(p-1)*t)/2,a=u*e+n,i=d*e+s;r.push([a,i])}r.push([i,o])}}return function(e){return"polygon"===e.type}(e)?new i.Z({rings:a,spatialReference:e.spatialReference}):new o.Z({paths:a,spatialReference:e.spatialReference})}(e,1e6);e=(0,u.Sx)(t,!0)}return r&&(e=(0,l.Sy)(e,r)),e}function w(e,t,r){if(Array.isArray(e)){const a=e[0];if(a>t){const r=(0,l.XZ)(a,t);e[0]=a+r*(-2*t)}else if(a<r){const t=(0,l.XZ)(a,r);e[0]=a+t*(-2*r)}}else{const a=e.x;if(a>t){const r=(0,l.XZ)(a,t);e=e.clone().offset(r*(-2*t),0)}else if(a<r){const t=(0,l.XZ)(a,r);e=e.clone().offset(t*(-2*r),0)}}return e}function I(e,t){let r=-1;for(let a=0;a<t.cutIndexes.length;a++){const n=t.cutIndexes[a],s=t.geometries[a],i=(0,l.x3)(s);for(let e=0;e<i.length;e++){const t=i[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const a=t[e][0];r=a>r?a:r}r=Number(r.toFixed(9));const a=-360*(0,l.XZ)(r,180);for(let r=0;r<t.length;r++){const t=s.getPoint(e,r);s.setPoint(e,r,t.clone().offset(a,0))}return!0}}))}if(n===r){if(g(e))for(const t of(0,l.x3)(s))e[n]=e[n].addRing(t);else if(b(e))for(const t of(0,l.x3)(s))e[n]=e[n].addPath(t)}else r=n,e[n]=s}return e}async function A(e,t,r){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&m.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??a.default.geometryServiceUrl;let s,h,g,b,Z,v,S,R,E=0;const x=[],$=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,h=(0,d.C5)(s),g=s.isWebMercator,v=g?102100:4326,b=l.UZ[v].maxX,Z=l.UZ[v].minX,S=l.UZ[v].plus180Line,R=l.UZ[v].minus180Line),h)if("mesh"===t.type)$.push(t);else if("point"===t.type)$.push(w(t.clone(),b,Z));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>w(e,b,Z))),$.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,h);$.push(e.rings?new i.Z(e):e)}else if(t.extent){const e=t.extent,r=(0,l.XZ)(e.xmin,Z)*(2*b);let a=0===r?t.clone():(0,l.Sy)(t.clone(),r);e.offset(r,0),e.intersects(S)&&e.xmax!==b?(E=e.xmax>E?e.xmax:E,a=F(a,g),x.push(a),$.push("cut")):e.intersects(R)&&e.xmin!==Z?(E=e.xmax*(2*b)>E?e.xmax*(2*b):E,a=F(a,g,360),x.push(a),$.push("cut")):$.push(a)}else $.push(t.clone());else $.push(t);else $.push(t);let O=(0,l.XZ)(E,b),L=-90;const j=O,U=new o.Z;for(;O>0;){const e=360*O-180;U.addPath([[e,L],[e,-1*L]]),L*=-1,O--}if(x.length>0&&j>0){const t=I(x,await async function(e,t,r,a){const n=(0,f.en)(e),s=t[0].spatialReference,i={...a,query:{...n.query,f:"json",sr:JSON.stringify(s),target:JSON.stringify({geometryType:(0,c.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},o=await(0,p.default)(n.path+"/cut",i),{cutIndexes:l,geometries:d=[]}=o.data;return{cutIndexes:l,geometries:d.map((e=>{const t=(0,c.im)(e);return t.spatialReference=s,t}))}}(n,x,U,r)),a=[],s=[];for(let r=0;r<$.length;r++){const n=$[r];if("cut"!==n)s.push(n);else{const n=t.shift(),i=e[r];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&n.rings.length>=i.rings.length?(a.push(n),s.push("simplify")):s.push(g?(0,u.$)(n):n)}}if(!a.length)return s;const i=await y(n,a,r),o=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?o.push(t):o.push(g?(0,u.$)(i.shift()):i.shift())}return o}const k=[];for(let e=0;e<$.length;e++){const t=$[e];if("cut"!==t)k.push(t);else{const e=x.shift();k.push(!0===g?(0,u.$)(e):e)}}return k}},73913:(e,t,r)=>{r.d(t,{Sy:()=>l,UZ:()=>i,XZ:()=>o,x3:()=>d});var a=r(58901),n=r(82971),s=r(33955);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new a.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator}),minus180Line:new a.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new a.Z({paths:[[[180,-180],[180,180]]],spatialReference:n.Z.WGS84}),minus180Line:new a.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:n.Z.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=d(e);for(const e of r)for(const r of e)r[0]+=t;return e}function d(e){return(0,s.oU)(e)?e.rings:e.paths}},14720:(e,t,r)=>{r.d(t,{Ey:()=>b,applyEdits:()=>F,aw:()=>m,uploadAssets:()=>R});var a=r(38171),n=r(46791),s=r(20102),i=r(22974),o=r(92604),l=r(95330),d=r(81271),u=r(16306),p=r(66361),c=r(2981),f=r(84230);function h(e){return e&&null!=e.applyEdits}function y(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function m(e){return e.every(y)}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,a={}){let d;if((0,p.lQ)(e)&&e.url)d=(0,p.jF)(e.url,e.layerId,"original-and-current-features"===a.returnServiceEditsOption);else{d=(0,l.hh)(),d.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:d.promise};e.emit("apply-edits",t)}try{const{results:l,edits:u}=await async function(e,t,r,a){if(await e.load(),!h(t))throw new s.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,f.ln)(e))throw new s.Z(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:l}=await async function(e,t,r){const a=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),i=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),l=null!=e.infoFor3D;if(!t||!a&&!i)throw new s.Z(`${e.type}-layer:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");const d=(0,f.S1)(e);if(!d.data.isVersioned&&r?.gdbVersion)throw new s.Z(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!d.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new s.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");if(!d.editing.supportsGlobalId&&r?.globalIdUsed)throw new s.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!d.editing.supportsGlobalId&&i)throw new s.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 s.Z(`${e.type}-layer:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true");const u={...r};if(null!=u.rollbackOnFailureEnabled||d.editing.supportsRollbackOnFailure||(u.rollbackOnFailureEnabled=!0),u.rollbackOnFailureEnabled||"original-and-current-features"!==u.returnServiceEditsOption||(!1===u.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."),u.rollbackOnFailureEnabled=!0),!d.editing.supportsReturnServiceEditsInSourceSpatialReference&&u.returnServiceEditsInSourceSR)throw new s.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(u.returnServiceEditsInSourceSR&&"original-and-current-features"!==u.returnServiceEditsOption)throw new s.Z(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const p={...t};if(p.addFeatures=t&&n.Z.isCollection(t.addFeatures)?t.addFeatures.toArray():p.addFeatures||[],p.updateFeatures=t&&n.Z.isCollection(t.updateFeatures)?t.updateFeatures.toArray():p.updateFeatures||[],p.deleteFeatures=t&&n.Z.isCollection(t.deleteFeatures)?t.deleteFeatures.toArray():p.deleteFeatures||[],p.addFeatures.length&&!d.operations.supportsAdd)throw new s.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support adding features.");if(p.updateFeatures.length&&!d.operations.supportsUpdate)throw new s.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support updating features.");if(p.deleteFeatures.length&&!d.operations.supportsDelete)throw new s.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support deleting features.");p.addAttachments=p.addAttachments||[],p.updateAttachments=p.updateAttachments||[],p.deleteAttachments=p.deleteAttachments||[],p.addFeatures=p.addFeatures.map(v),p.updateFeatures=p.updateFeatures.map(v),p.addAssetFeatures=[];const h=r?.globalIdUsed||l;return p.addFeatures.forEach((t=>function(e,t,r){w(e,t,r),I(e,t)}(t,e,h))),p.updateFeatures.forEach((t=>function(e,t,r){w(e,t,r),I(e,t);const a=(0,f.S1)(t);if("geometry"in e&&null!=e.geometry&&!a?.editing.supportsGeometryUpdate)throw new s.Z(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,h))),p.deleteFeatures.forEach((t=>function(e,t,r){w(e,t,r)}(t,e,h))),p.addAttachments.forEach((t=>A(t,e))),p.updateAttachments.forEach((t=>A(t,e))),l&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:r}=t,a=(0,c.S0)("model/gltf-binary",r.supportedFormats)??(0,c.Ow)("glb",r.supportedFormats);if(!a||!r.editFormats.includes(a))throw new s.Z(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:n}=e;for(const t of e.addFeatures??[])S(t)&&n.push(t);for(const t of e.updateFeatures??[])S(t)&&n.push(t)}(p,e),{edits:await Z(p),options:u}}(e,r,a);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,l)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,a),p=e=>e.filter((e=>!e.error)).map(i.d9),y={edits:u,addedFeatures:p(l.addFeatureResults),updatedFeatures:p(l.updateFeatureResults),deletedFeatures:p(l.deleteFeatureResults),addedAttachments:p(l.addAttachmentResults),updatedAttachments:p(l.updateAttachmentResults),deletedAttachments:p(l.deleteAttachmentResults),exceededTransferLimit:!1};return l.editedFeatureResults?.length&&(y.editedFeatures=l.editedFeatureResults),d.resolve(y),l}catch(e){throw d.reject(e),e}}function w(e,t,r){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new s.Z(`${t.type}-layer:invalid-parameter`,"Feature should have 'globalId' when 'globalIdUsed' is true");if(!("attributes"in e)&&!e.globalId)throw new s.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 s.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 s.Z(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function I(e,t){if("geometry"in e&&"mesh"===e.geometry?.type){const{geometry:r}=e;if(r.vertexSpace.isGeoreferenced)throw new s.Z(`${t.type}-layer:georeferenced-mesh-unsupported`,"Uploading georeferenced meshes to a layer is not supported.")}}function A(e,t){const{feature:r,attachment:a}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!a.globalId)throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!a.data&&!a.uploadId)throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(a.data instanceof File&&a.data.name||a.name))throw new s.Z(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&a.uploadId)throw new s.Z(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof a.data){const e=(0,d.sJ)(a.data);if(e&&!e.isBase64)throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function Z(e){const t=e.addFeatures??[],r=e.updateFeatures??[],a=t.concat(r).map((e=>e.geometry)),n=await(0,u.aX)(a),s=t.length,i=r.length;return n.slice(0,s).forEach(((e,r)=>t[r].geometry=e)),n.slice(s,s+i).forEach(((e,t)=>r[t].geometry=e)),e}function v(e){const t=new a.Z;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function S(e){return"mesh"===e?.geometry?.type}function R(e,t,r,a){if(!h(t))throw new s.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new s.Z(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,a)}},66361:(e,t,r)=>{r.d(t,{jF:()=>d,lQ:()=>c,o1:()=>f});var a=r(43697),n=r(32448),s=r(22974),i=r(95330),o=(r(92604),r(75215),r(20102),r(80442),r(52011));const l=new n.Z.EventEmitter;function d(e,t,r=!1){const a=(0,i.hh)();return r=null==t||r,l.emit("apply-edits",{serviceUrl:e,layerId:t,mayReceiveServiceEdits:r,result:a.promise}),a}const u="esri.layers.mixins.EditBusLayer",p=Symbol(u);function c(e){return null!=e&&"object"==typeof e&&p in e}const f=e=>{var t;let r=class extends e{constructor(...e){super(...e),this[t]=!0,this.when().then((()=>{this.own([l.on("apply-edits",(e=>{const{serviceUrl:t,layerId:r,mayReceiveServiceEdits:a,result:n}=e,i=t===this.url,o=null!=r&&null!=this.layerId&&r===this.layerId;if(!i||!o&&!a)return;const l=n.then((e=>{if(o&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,s.d9)(e)),e;const t=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(t){const{adds:r,updates:a,deletes:n}=t.editedFeatures,i={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:r?r.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:n?n.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:a?a.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,s.d9)(e.editedFeatures),exceededTransferLimit:!1};return this.emit("edits",i),i}return{edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,s.d9)(e.editedFeatures),exceededTransferLimit:!1}}));this.emit("apply-edits",{result:l})}))])}),(()=>{}))}};return t=p,r=(0,a._)([(0,o.j)(u)],r),r}},2981:(e,t,r)=>{r.d(t,{$6:()=>u,Ow:()=>s,S0:()=>n,d1:()=>i});const a=[["binary","application/octet-stream","bin",""]];function n(e,t){return l(function(e,t){return o(t).find((t=>d(t)===e))}(e,t))}function s(e,t){return l(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 d(function(e,t){return o(t).find((t=>l(t)===e))}(e,t))}function o(e){return[...a,...e]}function l(e){return e?.[0]}function d(e){return e?.[1]}function u(e){return e.tables?.find((e=>"assetMaps"===e.role))}},11282:(e,t,r)=>{r.d(t,{cv:()=>o,en:()=>i,lA:()=>s}),r(68773),r(40330);var a=r(22974),n=r(81271);function s(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,n.mN)(e):(0,a.d9)(e)}function o(e,t,r){const a={};for(const n in e){if("declaredClass"===n)continue;const s=e[n];if(null!=s&&"function"!=typeof s)if(Array.isArray(s)){a[n]=[];for(let e=0;e<s.length;e++)a[n][e]=o(s[e])}else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(r&&r[n]);a[n]=t?e:JSON.stringify(e)}else a[n]=t?s:JSON.stringify(s);else a[n]=s}return a}r(71058)}}]);