@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.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{0e65e00173b66c7fec2e.js → 09e677ca7532a281d262.js} +1 -1
- package/assets/esri/core/workers/chunks/{89001ee8d3f69fa03cc1.js → 0f7ddb063ee0664f2fca.js} +1 -1
- package/assets/esri/core/workers/chunks/17ab08f60764244b2cf8.js +1 -0
- package/assets/esri/core/workers/chunks/{2446e336b1f7256d4fde.js → 2c587ed66e2586cccb8d.js} +1 -1
- package/assets/esri/core/workers/chunks/{00c7b9fb375c9a934158.js → 38c6452dc9cf18e8bca8.js} +1 -1
- package/assets/esri/core/workers/chunks/{16db0bc87d87a7313dc4.js → 4806df402845c717c842.js} +1 -1
- package/assets/esri/core/workers/chunks/4884432d80e9af947449.js +1 -0
- package/assets/esri/core/workers/chunks/588cd91d08cec5207be1.js +1 -0
- package/assets/esri/core/workers/chunks/{83e3d104886b48f00397.js → 633c00c02a81397fc8df.js} +1 -1
- package/assets/esri/core/workers/chunks/{efb96aefe979a0f5c632.js → 640e8ac3498be30c6614.js} +1 -1
- package/assets/esri/core/workers/chunks/{33901eb1574e46abd9af.js → 6c213768715c52625855.js} +1 -1
- package/assets/esri/core/workers/chunks/{5e6471dd2a08e66b47d0.js → 6e4940fe3bba014c921b.js} +57 -58
- package/assets/esri/core/workers/chunks/{3160af63b860b52db389.js → 6f724f75f85dc3989d60.js} +1 -1
- package/assets/esri/core/workers/chunks/8b05fb365336cc42fecc.js +1 -0
- package/assets/esri/core/workers/chunks/8eec6da5e862cc33ea2b.js +1 -0
- package/assets/esri/core/workers/chunks/90d8f297d9cb359e071d.js +1 -0
- package/assets/esri/core/workers/chunks/91785144901dfe56c5e2.js +1 -0
- package/assets/esri/core/workers/chunks/{471f6eba213412b82840.js → 927417abea79c955b216.js} +1 -1
- package/assets/esri/core/workers/chunks/{adaa9d4239f4e905d011.js → 9d4bd73dd50400e9d328.js} +1 -1
- package/assets/esri/core/workers/chunks/a324cc07d486061d0d8e.js +1 -0
- package/assets/esri/core/workers/chunks/a40130579791293cefa2.js +1 -0
- package/assets/esri/core/workers/chunks/{50f910797c17c3028521.js → a49718c74053314ed741.js} +1 -1
- package/assets/esri/core/workers/chunks/ad2891985e0fe45aa8d2.js +1 -0
- package/assets/esri/core/workers/chunks/afcba35eea836aea98ca.js +1 -0
- package/assets/esri/core/workers/chunks/b3d2e397ea74ebef4423.js +1 -0
- package/assets/esri/core/workers/chunks/b5fb9da45cc9dee286f8.js +1 -0
- package/assets/esri/core/workers/chunks/b846d4215210aac9f6ef.js +1 -0
- package/assets/esri/core/workers/chunks/c7dc821db8c14fec24a7.js +1 -0
- package/assets/esri/core/workers/chunks/c9df9a0a4a45f9a53ce9.js +1 -0
- package/assets/esri/core/workers/chunks/{45a4041881e6235d73a2.js → d0a9711f48dfa5fee68a.js} +1 -1
- package/assets/esri/core/workers/chunks/e23ec4f867c4735eec20.js +1 -0
- package/assets/esri/core/workers/chunks/{ff42585e1b1d0c5497af.js → ea16230a0edfc9f756bd.js} +1 -1
- package/assets/esri/core/workers/chunks/ef900614353505afb210.js +1 -0
- package/assets/esri/themes/base/_View.scss +2 -5
- package/assets/esri/themes/base/widgets/_Feature.scss +12 -4
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/DefaultMaterial.glsl.js +42 -42
- package/chunks/Terrain.glsl.js +7 -7
- package/copyright.txt +1 -1
- package/geometry/Mesh.js +1 -1
- package/geometry/support/meshUtils/bounds.js +1 -1
- package/geometry/support/meshUtils/georeference.js +1 -1
- package/interfaces.d.ts +3 -3
- package/kernel.js +1 -1
- package/layers/OrientedImageryLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/editingSupport.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/graphics/sources/OGCFeatureSource.js +1 -1
- package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
- package/layers/graphics/sources/support/uploadAssets.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/ImageryTileMixin.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/orientedImagery/core/bestImageUtils.js +1 -1
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/orientedImagery/transformations/groundToImageUtils.js +1 -1
- package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/capabilities.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/layers/video/VideoCameraSensorModel.js +5 -0
- package/layers/video/VideoController.js +1 -1
- package/layers/video/videoUtils.js +1 -1
- package/package.json +1 -1
- package/portal/PortalItem.js +1 -1
- package/renderers/support/colorRampUtils.js +1 -1
- package/rest/support/meshFeatureSet.js +1 -1
- package/smartMapping/labels/bins.js +5 -0
- package/smartMapping/labels/clusters.js +1 -1
- package/smartMapping/labels/support/utils.js +5 -0
- package/smartMapping/support/binningUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/layers/features/schemaUtils.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/I3SMeshViewLabeler.js +1 -1
- package/views/3d/layers/I3SMeshWorkerHandle.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/I3SClientMaterialUtil.js +5 -0
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SGeometryUtil.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +19 -20
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +9 -9
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/DOMContainer.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/ui/DefaultUI.js +1 -1
- package/views/ui/UI.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
- package/widgets/FeatureForm/RelationshipInput.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Popup.js +1 -1
- package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/013de5c2955801b329b3.js +0 -1
- package/assets/esri/core/workers/chunks/0618fb0058f39ecd363f.js +0 -1
- package/assets/esri/core/workers/chunks/07163dcbb871f927a580.js +0 -1
- package/assets/esri/core/workers/chunks/0e46687004392c493c06.js +0 -1
- package/assets/esri/core/workers/chunks/21328f3dd26abe84a10d.js +0 -1
- package/assets/esri/core/workers/chunks/2faa8f08f2fdaac3f4af.js +0 -1
- package/assets/esri/core/workers/chunks/624521961fe1f2c4f2c5.js +0 -1
- package/assets/esri/core/workers/chunks/6f510f28526c73ab453c.js +0 -1
- package/assets/esri/core/workers/chunks/7479dc0c790337af7597.js +0 -1
- package/assets/esri/core/workers/chunks/a6ddf80eb324c35076e1.js +0 -1
- package/assets/esri/core/workers/chunks/a7fd2a95fde197c06828.js +0 -1
- package/assets/esri/core/workers/chunks/b8e6c64792a512df4c4d.js +0 -1
- package/assets/esri/core/workers/chunks/bf9e1fde9f6b2b4f10c0.js +0 -1
- package/assets/esri/core/workers/chunks/c96db6b7ce47bd343fdb.js +0 -1
- package/assets/esri/core/workers/chunks/cfa3b2b1e184681e9af4.js +0 -1
- package/assets/esri/core/workers/chunks/d95ca50ca7af4c222036.js +0 -1
- package/assets/esri/core/workers/chunks/ee5ee03dd2c7dc940272.js +0 -1
- package/assets/esri/core/workers/chunks/f720967ba8c5486a26a2.js +0 -1
- package/layers/orientedImagery/core/Affixes.js +0 -5
- package/layers/orientedImagery/core/CameraProperties.js +0 -5
- package/layers/orientedImagery/core/ImageProperties.js +0 -5
- package/layers/orientedImagery/core/ImageryTypes.js +0 -5
- package/layers/orientedImagery/core/imageryUtils.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
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:()=>g,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,b){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]=b,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],b=t[14],y=t[15],g=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*b-h*m,O=l*y-d*m,P=f*b-h*p,x=f*y-d*p,q=h*y-d*b;let A=g*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-b*S+y*_)*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]=(b*w-m*v-y*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+y*g)*A,e[11]=(f*w-l*S-d*g)*A,e[12]=(a*T-i*P-c*E)*A,e[13]=(r*P-n*T+o*E)*A,e[14]=(p*M-m*_-b*g)*A,e[15]=(l*_-f*M+h*g)*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],b=t[13],y=t[14],g=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*b,e[2]=M*s+w*u+_*d+S*y,e[3]=M*i+w*l+_*m+S*g,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*b,e[6]=M*s+w*u+_*d+S*y,e[7]=M*i+w*l+_*m+S*g,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*b,e[10]=M*s+w*u+_*d+S*y,e[11]=M*i+w*l+_*m+S*g,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*b,e[14]=M*s+w*u+_*d+S*y,e[15]=M*i+w*l+_*m+S*g,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],b=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]=b,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+b*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,b,y,g,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],b=t[8],y=t[9],g=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*_+b*S,e[1]=u*w+d*_+y*S,e[2]=l*w+m*_+g*S,e[3]=f*w+p*_+M*S,e[4]=c*v+h*E+b*T,e[5]=u*v+d*E+y*T,e[6]=l*v+m*E+g*T,e[7]=f*v+p*E+M*T,e[8]=c*O+h*P+b*x,e[9]=u*O+d*P+y*x,e[10]=l*O+m*P+g*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 b(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,b=i*a,y=i*c,g=i*u;return e[0]=1-(d+p),e[1]=f+g,e[2]=h-y,e[3]=0,e[4]=f-g,e[5]=1-(l+p),e[6]=m+b,e[7]=0,e[8]=h+y,e[9]=m-b,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 y=(0,n.c)();function g(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,b=i*l,y=a*c,g=a*u,M=a*l,w=n[0],_=n[1],S=n[2];return e[0]=(1-(m+b))*w,e[1]=(h+M)*w,e[2]=(d-g)*w,e[3]=0,e[4]=(h-M)*_,e[5]=(1-(f+b))*_,e[6]=(p+y)*_,e[7]=0,e[8]=(d+g)*S,e[9]=(p-y)*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],b=e[13],y=e[14],g=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],I=t[14],R=t[15],k=(0,o.g)();return Math.abs(r-M)<=k*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(n-w)<=k*Math.max(1,Math.abs(n),Math.abs(w))&&Math.abs(s-_)<=k*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(i-S)<=k*Math.max(1,Math.abs(i),Math.abs(S))&&Math.abs(a-v)<=k*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(c-E)<=k*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(u-T)<=k*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(l-O)<=k*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(f-P)<=k*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(h-x)<=k*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(d-q)<=k*Math.max(1,Math.abs(d),Math.abs(q))&&Math.abs(m-A)<=k*Math.max(1,Math.abs(m),Math.abs(A))&&Math.abs(p-L)<=k*Math.max(1,Math.abs(p),Math.abs(L))&&Math.abs(b-C)<=k*Math.max(1,Math.abs(b),Math.abs(C))&&Math.abs(y-I)<=k*Math.max(1,Math.abs(y),Math.abs(I))&&Math.abs(g-R)<=k*Math.max(1,Math.abs(g),Math.abs(R))}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],b=t[14],y=t[15];return e[0]=a*(h*y-d*b)-f*(c*y-u*b)+p*(c*d-u*h),e[1]=-(n*(h*y-d*b)-f*(o*y-s*b)+p*(o*d-s*h)),e[2]=n*(c*y-u*b)-a*(o*y-s*b)+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*y-d*b)-l*(c*y-u*b)+m*(c*d-u*h)),e[5]=r*(h*y-d*b)-l*(o*y-s*b)+m*(o*d-s*h),e[6]=-(r*(c*y-u*b)-i*(o*y-s*b)+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*y-d*p)-l*(a*y-u*p)+m*(a*d-u*f),e[9]=-(r*(f*y-d*p)-l*(n*y-s*p)+m*(n*d-s*f)),e[10]=r*(a*y-u*p)-i*(n*y-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*b-h*p)-l*(a*b-c*p)+m*(a*h-c*f)),e[13]=r*(f*b-h*p)-l*(n*b-o*p)+m*(n*h-o*f),e[14]=-(r*(a*b-c*p)-i*(n*b-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],b=e[15];return(t*i-r*s)*(f*b-h*p)-(t*a-n*s)*(l*b-h*m)+(t*c-o*s)*(l*p-f*m)+(r*a-n*i)*(u*b-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,b=s*a,y=s*c;return e[0]=1-f-m,e[1]=l+y,e[2]=h-b,e[3]=0,e[4]=l-y,e[5]=1-u-m,e[6]=d+p,e[7]=0,e[8]=h+b,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=y,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)),b(e,t,r),e},fromRotation:m,fromRotationTranslation:b,fromRotationTranslationScale:g,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,b=i*f,y=a*f,g=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+y))*_,x=(d+w)*_,q=(m-M)*_,A=(d-w)*S,L=(1-(h+y))*S,C=(b+g)*S,I=(m+M)*v,R=(b-g)*v,k=(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]=I,e[9]=R,e[10]=k,e[11]=0,e[12]=r[0]+E-(P*E+A*T+I*O),e[13]=r[1]+T-(x*E+L*T+R*O),e[14]=r[2]+O-(q*E+C*T+k*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],b=n[2];let y=p*f-b*l,g=b*u-m*f,M=m*l-p*u;d=Math.sqrt(y*y+g*g+M*M),d?(d=1/d,y*=d,g*=d,M*=d):(y=0,g=0,M=0);let w=l*M-f*g,_=f*y-u*M,S=u*g-l*y;d=Math.sqrt(w*w+_*_+S*S),d?(d=1/d,w*=d,_*=d,S*=d):(w=0,_=0,S=0),e[0]=y,e[1]=w,e[2]=u,e[3]=0,e[4]=g,e[5]=_,e[6]=l,e[7]=0,e[8]=M,e[9]=S,e[10]=f,e[11]=0,e[12]=-(y*s+g*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,b=a*f-c*l;return d=m*m+p*p+b*b,d>0&&(d=1/Math.sqrt(d),m*=d,p*=d,b*=d),e[0]=m,e[1]=p,e[2]=b,e[3]=0,e[4]=f*b-h*p,e[5]=h*m-l*b,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:()=>g,c:()=>b,g:()=>M,h:()=>y,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=b();function b(){return(0,f.c)()}function y(e,t=b()){return(0,l.c)(t,e)}function g(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=g(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=g(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=g(e);return r<=n*n}const A=(0,u.c)(),L=b();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:y,create:b,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:g,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:y(e,r)},tmpSphere:L,union:function(e,t,r=b()){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"}))},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},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 y={url:e,requestOptions:{...t}};let g=(0,u.oh)(e);if(g){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}}(g,y);if(null!=e)return{data:e,getHeader:w,httpStatus:200,requestOptions:y.requestOptions,url:y.url};g.after||g.error||(g=null)}if(e=y.url,"image"===(t=y.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"),y);if("head"===t.method){if(t.body)throw v("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),y);if(a||l)throw v("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),y)}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:g,params:y,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(b&&"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 g?.after?.(S),S}let m;const p=n.default.request,b="FormData"in globalThis,y=[499,498,403,401],g=["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&&b&&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 y,g,M=0,w=!1;f>0&&(M=setTimeout((()=>{w=!0,e.controller.abort()}),f));try{if("native-request-init"===r.responseType)g=n,g.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(y=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)g=y;else if("HEAD"!==n.method)if(y.ok){switch(a){case"array-buffer":g=await y.arrayBuffer();break;case"blob":case"image":g=await y.blob();break;default:g=await y.text()}if(M&&(clearTimeout(M),M=0),"json"===a||"xml"===a||"document"===a)if(g)switch(a){case"json":g=JSON.parse(g);break;case"xml":g=P(g,"application/xml");break;case"document":g=P(g,"text/html")}else g=null;if(g){if("array-buffer"===a||"blob"===a){const e=y.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&g["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(g).json();e.error&&(g=e)}catch{}}"image"===a&&g instanceof Blob&&(g=await q(URL.createObjectURL(g),e,!0))}}else{g=await y.text();try{g=JSON.parse(g)}catch{}}}else g=await q(t,e)}catch(n){if("AbortError"===n.name){if(w)throw(0,h.Tf)();throw(0,c.zE)("Request canceled")}if(!(!y&&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[y,g]}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&&y.includes(i)&&!T(e.params.url)&&(403!==i||a&&!g.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:()=>T,dracoDecompressPointCloudData:()=>w,filterObbsForModifications:()=>_,filterObbsForModificationsSync:()=>L,initialize:()=>R,interpretObbModificationResults:()=>A,process:()=>M,project:()=>E,setLegacySchema:()=>v,setModifications:()=>S,setModificationsSync:()=>x,test:()=>k});var n,o,s=r(82971),i=r(83025),a=r(85872),c=r(50567),u=r(84555);!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 l=r(99880);function f(e){return(0,l.V)(`esri/libs/i3s/${e}`)}let h;var d,m,p,b,y,g;async function M(e){await R();const t=[e.geometryBuffer];return{result:q(e,t),transferList:t}}async function w(e){await R();const t=[e.geometryBuffer],{geometryBuffer:r}=e,n=r.byteLength,o=P._malloc(n),s=new Uint8Array(P.HEAPU8.buffer,o,n);s.set(new Uint8Array(r));const i=P.dracoDecompressPointCloudData(o,s.byteLength);if(P._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 _(e){await R(),L(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function S(e){await R(),x(e)}async function v(e){await R(),P.setLegacySchema(e.context,e.jsonSchema)}async function E(e){const{localMatrix:t,origin:n,position:o,vertexSpace:l}=e,f=s.Z.fromJSON(e.indexSR),h=s.Z.fromJSON(e.meshSR),d={georeferenced:c.Z,georeferencedRelative:a.Z,local:u.Z}[l.type].fromJSON(l);let m;if("georeferenced"===d.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,f),m=new Float64Array(o.length),e(o,h,0,m,f,0,m.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));m=(0,i.mB)(e(h,t?{localMatrix:t}:void 0,d,o,f))}const p=m.length,[b,y,g]=n;for(let e=0;e<p;e+=3)m[e]-=b,m[e+1]-=y,m[e+2]-=g;return{result:[m,o],transferList:[m.buffer,o.buffer]}}function T(e){C(e)}let O,P;function x(e){const t=e.modifications,r=P._malloc(8*t.length),n=new Float64Array(P.HEAPU8.buffer,r,t.length);for(let e=0;e<t.length;++e)n[e]=t[e];P.setModifications(e.context,r,t.length,e.isGeodetic),P._free(r)}function q(e,t){if(!P)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=P._malloc(u.byteLength),m=P._malloc(33*Float64Array.BYTES_PER_ELEMENT),p=new Uint8Array(P.HEAPU8.buffer,d,u.byteLength);p.set(new Uint8Array(u));const b=new Float64Array(P.HEAPU8.buffer,m,33);I(b,o);let y=b.byteOffset+3*b.BYTES_PER_ELEMENT,g=new Float64Array(b.buffer,y);I(g,s),y+=16*b.BYTES_PER_ELEMENT,g=new Float64Array(b.buffer,y),I(g,i),y+=4*b.BYTES_PER_ELEMENT,null!=a&&(g=new Float64Array(b.buffer,y),I(g,a.center),y+=3*b.BYTES_PER_ELEMENT,g=new Float64Array(b.buffer,y),I(g,a.halfSize),y+=3*b.BYTES_PER_ELEMENT,g=new Float64Array(b.buffer,y),I(g,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},_=P.process(r,!!e.obb,d,p.byteLength,M,w,m,c,f,h,e.normalReferenceFrame);if(P._free(m),P._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,x=_.indicesType===n.Int16?new Uint16Array(_.indices.buffer,_.indices.byteOffset,_.indices.byteLength/2).slice():new Uint32Array(_.indices.buffer,_.indices.byteOffset,_.indices.byteLength/4).slice(),q=_.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:x,hasColors:_.hasColors,hasModifications:_.hasModifications,positionData:{data:q,indices:A}};return v&&t.push(v.buffer),S&&t.push(S.buffer),t.push(O),t.push(x.buffer),t.push(q.buffer),t.push(A.buffer),{componentOffsets:S,featureIds:v,anchorIds:E,anchors:T,transformedGeometry:L,obb:_.obb}}function A(e){return 0===e?m.Unmodified:1===e?m.PotentiallyModified:2===e?m.Culled:m.Unknown}function L(e){const{context:t,buffer:r}=e,n=P._malloc(r.byteLength),o=r.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(P.HEAPU8.buffer,n,o),i=new Float64Array(r);s.set(i),P.filterOBBs(t,n,o),i.set(s),P._free(n)}function C(e){P&&(P.destroy(e),P=null)}function I(e,t){for(let r=0;r<t.length;++r)e[r]=t[r]}function R(){return P?Promise.resolve():(O||(O=(h||(h=new Promise((e=>r.e(6710).then(r.bind(r,26710)).then((e=>e.i)).then((({default:t})=>{const r=t({locateFile:f,onRuntimeInitialized:()=>e(r)});delete r.then})))).catch((e=>{throw e}))),h).then((e=>{P=e,O=null}))),O)}r(29268),(g=d||(d={}))[g.Unmodified=0]="Unmodified",g[g.Culled=1]="Culled",g[g.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"}(m||(m={})),function(e){e[e.Unknown=0]="Unknown",e[e.Uncached=1]="Uncached",e[e.Cached=2]="Cached"}(p||(p={})),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"}(b||(b={})),function(e){e[e.Hole=0]="Hole",e[e.Leaf=1]="Leaf"}(y||(y={}));const k={transform:q,destroy:C}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6459],{21787:(t,n,e)=>{e.d(n,{a:()=>u,b:()=>l,e:()=>s,f:()=>o,i:()=>h,m:()=>c,s:()=>a,t:()=>i});var r=e(46851);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,e,r,o,a,i,s,u,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=i,t[6]=s,t[7]=u,t[8]=c,t}function i(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function s(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],s=n[5],u=n[6],c=n[7],l=n[8],f=l*i-s*c,h=-l*a+s*u,p=c*a-i*u;let M=e*f+r*h+o*p;return M?(M=1/M,t[0]=f*M,t[1]=(-l*r+o*c)*M,t[2]=(s*r-o*i)*M,t[3]=h*M,t[4]=(l*e-o*u)*M,t[5]=(-s*e+o*a)*M,t[6]=p*M,t[7]=(-c*e+r*u)*M,t[8]=(i*e-r*a)*M,t):null}function u(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],s=n[5],u=n[6],c=n[7],l=n[8];return t[0]=i*l-s*c,t[1]=o*c-r*l,t[2]=r*s-o*i,t[3]=s*u-a*l,t[4]=e*l-o*u,t[5]=o*a-e*s,t[6]=a*c-i*u,t[7]=r*u-e*c,t[8]=e*i-r*a,t}function c(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],c=n[6],l=n[7],f=n[8],h=e[0],p=e[1],M=e[2],g=e[3],m=e[4],y=e[5],d=e[6],b=e[7],P=e[8];return t[0]=h*r+p*i+M*c,t[1]=h*o+p*s+M*l,t[2]=h*a+p*u+M*f,t[3]=g*r+m*i+y*c,t[4]=g*o+m*s+y*l,t[5]=g*a+m*u+y*f,t[6]=d*r+b*i+P*c,t[7]=d*o+b*s+P*l,t[8]=d*a+b*u+P*f,t}function l(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],s=n[5],u=n[6],c=n[7],l=n[8],f=n[9],h=n[10],p=n[11],M=n[12],g=n[13],m=n[14],y=n[15],d=e*s-r*i,b=e*u-o*i,P=e*c-a*i,A=r*u-o*s,w=r*c-a*s,v=o*c-a*u,x=l*g-f*M,F=l*m-h*M,T=l*y-p*M,S=f*m-h*g,_=f*y-p*g,B=h*y-p*m;let C=d*B-b*_+P*S+A*T-w*F+v*x;return C?(C=1/C,t[0]=(s*B-u*_+c*S)*C,t[1]=(u*T-i*B-c*F)*C,t[2]=(i*_-s*T+c*x)*C,t[3]=(o*_-r*B-a*S)*C,t[4]=(e*B-o*T+a*F)*C,t[5]=(r*T-e*_-a*x)*C,t[6]=(g*v-m*w+y*A)*C,t[7]=(m*P-M*v-y*b)*C,t[8]=(M*w-g*P+y*d)*C,t):null}function f(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}function h(t){const n=(0,r.g)(),e=t[0],o=t[1],a=t[2],i=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8];return Math.abs(1-(e*e+i*i+c*c))<=n&&Math.abs(1-(o*o+s*s+l*l))<=n&&Math.abs(1-(a*a+u*u+f*f))<=n}const p=c,M=f;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:u,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],i=t[5],s=t[6],u=t[7],c=t[8];return n*(c*a-i*u)+e*(-c*o+i*s)+r*(u*o-a*s)},equals:function(t,n){const e=t[0],o=t[1],a=t[2],i=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],h=n[0],p=n[1],M=n[2],g=n[3],m=n[4],y=n[5],d=n[6],b=n[7],P=n[8],A=(0,r.g)();return Math.abs(e-h)<=A*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-p)<=A*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-M)<=A*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(i-g)<=A*Math.max(1,Math.abs(i),Math.abs(g))&&Math.abs(s-m)<=A*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(u-y)<=A*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-d)<=A*Math.max(1,Math.abs(c),Math.abs(d))&&Math.abs(l-b)<=A*Math.max(1,Math.abs(l),Math.abs(b))&&Math.abs(f-P)<=A*Math.max(1,Math.abs(f),Math.abs(P))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=e+e,s=r+r,u=o+o,c=e*i,l=r*i,f=r*s,h=o*i,p=o*s,M=o*u,g=a*i,m=a*s,y=a*u;return t[0]=1-f-M,t[3]=l-y,t[6]=h+m,t[1]=l+y,t[4]=1-c-M,t[7]=p-g,t[2]=h-m,t[5]=p+g,t[8]=1-c-f,t},fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:h,mul:p,multiply:c,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:l,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],i=n[5],s=n[6],u=n[8],c=n[9],l=n[10],f=l*i-s*c,h=-l*a+s*u,p=c*a-i*u,M=e*f+r*h+o*p;if(!M)return null;const g=1/M;return t[0]=f*g,t[1]=(-l*r+o*c)*g,t[2]=(s*r-o*i)*g,t[3]=h*g,t[4]=(l*e-o*u)*g,t[5]=(-s*e+o*a)*g,t[6]=p*g,t[7]=(-c*e+r*u)*g,t[8]=(i*e-r*a)*g,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],c=n[6],l=n[7],f=n[8],h=Math.sin(e),p=Math.cos(e);return t[0]=p*r+h*i,t[1]=p*o+h*s,t[2]=p*a+h*u,t[3]=p*i-h*r,t[4]=p*s-h*o,t[5]=p*u-h*a,t[6]=c,t[7]=l,t[8]=f,t},scale:function(t,n,e){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t},scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:M,subtract:f,translate:function(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],c=n[6],l=n[7],f=n[8],h=e[0],p=e[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=i,t[4]=s,t[5]=u,t[6]=h*r+p*i+c,t[7]=h*o+p*s+l,t[8]=h*a+p*u+f,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},51305:(t,n,e)=>{e.d(n,{c:()=>p,g:()=>l,j:()=>_,k:()=>g,m:()=>f,s:()=>c});var r=e(46521),o=e(94961),a=e(65617),i=e(46851),s=e(17896),u=e(98766);function c(t,n,e){e*=.5;const r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function l(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,i.g)()?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function f(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],s=e[0],u=e[1],c=e[2],l=e[3];return t[0]=r*l+i*s+o*c-a*u,t[1]=o*l+i*u+a*s-r*c,t[2]=a*l+i*c+r*u-o*s,t[3]=i*l-r*s-o*u-a*c,t}function h(t,n,e,r){const o=n[0],a=n[1],s=n[2],u=n[3];let c,l,f,h,p,M=e[0],g=e[1],m=e[2],y=e[3];return l=o*M+a*g+s*m+u*y,l<0&&(l=-l,M=-M,g=-g,m=-m,y=-y),1-l>(0,i.g)()?(c=Math.acos(l),f=Math.sin(c),h=Math.sin((1-r)*c)/f,p=Math.sin(r*c)/f):(h=1-r,p=r),t[0]=h*o+p*M,t[1]=h*a+p*g,t[2]=h*s+p*m,t[3]=h*u+p*y,t}function p(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function M(t,n){const e=n[0]+n[4]+n[8];let r;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const o=(e+1)%3,a=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*o+o]-n[3*a+a]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*o+a]-n[3*a+o])*r,t[o]=(n[3*o+e]+n[3*e+o])*r,t[a]=(n[3*a+e]+n[3*e+a])*r}return t}function g(t,n,e,r){const o=.5*Math.PI/180;n*=o,e*=o,r*=o;const a=Math.sin(n),i=Math.cos(n),s=Math.sin(e),u=Math.cos(e),c=Math.sin(r),l=Math.cos(r);return t[0]=a*u*l-i*s*c,t[1]=i*s*l+a*u*c,t[2]=i*u*c-a*s*l,t[3]=i*u*l+a*s*c,t}const m=u.c,y=u.s,d=u.a,b=f,P=u.b,A=u.d,w=u.l,v=u.e,x=v,F=u.f,T=F,S=u.n,_=u.g,B=u.h,C=(0,a.c)(),R=(0,a.f)(1,0,0),Z=(0,a.f)(0,1,0),O=(0,o.a)(),j=(0,o.a)(),q=(0,r.c)();Object.freeze(Object.defineProperty({__proto__:null,add:d,calculateW:function(t,n){const e=n[0],r=n[1],o=n[2];return t[0]=e,t[1]=r,t[2]=o,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-o*o)),t},conjugate:p,copy:m,dot:A,equals:B,exactEquals:_,fromEuler:g,fromMat3:M,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=e*e+r*r+o*o+a*a,s=i?1/i:0;return t[0]=-e*s,t[1]=-r*s,t[2]=-o*s,t[3]=a*s,t},len:x,length:v,lerp:w,mul:b,multiply:f,normalize:S,random:function(t){const n=i.R,e=n(),r=n(),o=n(),a=Math.sqrt(1-e),s=Math.sqrt(e);return t[0]=a*Math.sin(2*Math.PI*r),t[1]=a*Math.cos(2*Math.PI*r),t[2]=s*Math.sin(2*Math.PI*o),t[3]=s*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(e),u=Math.cos(e);return t[0]=r*u+i*s,t[1]=o*u+a*s,t[2]=a*u-o*s,t[3]=i*u-r*s,t},rotateY:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(e),u=Math.cos(e);return t[0]=r*u-a*s,t[1]=o*u+i*s,t[2]=a*u+r*s,t[3]=i*u-o*s,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(e),u=Math.cos(e);return t[0]=r*u+o*s,t[1]=o*u-r*s,t[2]=a*u+i*s,t[3]=i*u-a*s,t},rotationTo:function(t,n,e){const r=(0,s.e)(n,e);return r<-.999999?((0,s.f)(C,R,n),(0,s.u)(C)<1e-6&&(0,s.f)(C,Z,n),(0,s.n)(C,C),c(t,C,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,s.f)(C,n,e),t[0]=C[0],t[1]=C[1],t[2]=C[2],t[3]=1+r,S(t,t))},scale:P,set:y,setAxes:function(t,n,e,r){const o=q;return o[0]=e[0],o[3]=e[1],o[6]=e[2],o[1]=r[0],o[4]=r[1],o[7]=r[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],S(t,M(t,o))},setAxisAngle:c,slerp:h,sqlerp:function(t,n,e,r,o,a){return h(O,n,o,a),h(j,e,r,a),h(t,O,j,2*a*(1-a)),t},sqrLen:T,squaredLength:F,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},20773:(t,n,e)=>{e.d(n,{a:()=>s,b:()=>i,c:()=>o,d:()=>l,e:()=>u,n:()=>f,s:()=>c,t:()=>a});var r=e(72220);function o(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function a(t,n,e,o=3,a=o){if(t.length/o!==Math.ceil(n.length/a))return r.c.error("source and destination buffers need to have the same number of elements"),t;const i=t.length/o,s=e[0],u=e[1],c=e[2],l=e[4],f=e[5],h=e[6],p=e[8],M=e[9],g=e[10],m=e[12],y=e[13],d=e[14];let b=0,P=0;for(let e=0;e<i;e++){const e=n[b],r=n[b+1],i=n[b+2];t[P]=s*e+l*r+p*i+m,t[P+1]=u*e+f*r+M*i+y,t[P+2]=c*e+h*r+g*i+d,b+=a,P+=o}return t}function i(t,n,e){s(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function s(t,n,e,o=3,a=o){if(t.length/o!==Math.ceil(n.length/a))return void r.c.error("source and destination buffers need to have the same number of elements");const i=t.length/o,s=e[0],u=e[1],c=e[2],l=e[3],f=e[4],h=e[5],p=e[6],M=e[7],g=e[8];let m=0,y=0;for(let e=0;e<i;e++){const e=n[m],r=n[m+1],i=n[m+2];t[y]=s*e+l*r+p*i,t[y+1]=u*e+f*r+M*i,t[y+2]=c*e+h*r+g*i,m+=a,y+=o}}function u(t,n,e){c(t.typedBuffer,n,e,t.typedBufferStride)}function c(t,n,e,r=3){const o=Math.min(t.length/r,n.count),a=n.typedBuffer,i=n.typedBufferStride;let s=0,u=0;for(let n=0;n<o;n++)t[u]=e*a[s],t[u+1]=e*a[s+1],t[u+2]=e*a[s+2],s+=i,u+=r}function l(t,n){f(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function f(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let a=0,i=0;for(let s=0;s<o;s++){const o=n[a],s=n[a+1],u=n[a+2],c=o*o+s*s+u*u;if(c>0){const n=1/Math.sqrt(c);t[i]=n*o,t[i+1]=n*s,t[i+2]=n*u}a+=r,i+=e}}Object.freeze(Object.defineProperty({__proto__:null,normalize:f,normalizeView:l,scale:c,scaleView:u,shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,a=t.typedBufferStride,i=n.typedBuffer,s=n.typedBufferStride;let u=0,c=0;for(let t=0;t<r;t++)o[c]=i[u]>>e,o[c+1]=i[u+1]>>e,o[c+2]=i[u+2]>>e,u+=s,c+=a},transformMat3:s,transformMat3View:i,transformMat4:a,transformMat4View:o},Symbol.toStringTag,{value:"Module"}))},58995:(t,n,e)=>{e.d(n,{rS:()=>c});var r=e(2109),o=e(82971),a=e(8744);const i=new o.Z(r.kU),s=new o.Z(r.JL),u=new o.Z(r.mM);function c(t){return t&&((0,a.BZ)(t)||(0,a.fS)(t,s))?s:t&&((0,a.V2)(t)||(0,a.fS)(t,u))?u:i}new o.Z(r.pn)},2674:(t,n,e)=>{e.d(n,{Z:()=>y});var r,o=e(43697),a=e(96674),i=e(5600),s=(e(75215),e(67676),e(80442),e(52011)),u=e(52138),c=e(13598),l=e(51305),f=e(94961),h=e(17896),p=e(65617),M=e(3709);let g=r=class extends a.wq{constructor(t){super(t),this.translation=(0,p.c)(),this.rotationAxis=(0,p.g)(M.UP),this.rotationAngle=0,this.scale=(0,p.f)(1,1,1)}get rotation(){return(0,M.uT)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.a)((0,M.ZZ)(t)),this.rotationAngle=(0,M.EU)(t)}get localMatrix(){const t=(0,c.c)();return(0,l.s)(m,(0,M.ZZ)(this.rotation),(0,M.WH)(this.rotation)),(0,u.g)(t,m,this.translation,this.scale),t}get localMatrixInverse(){return(0,u.a)((0,c.c)(),this.localMatrix)}applyLocal(t,n){return(0,h.m)(n,t,this.localMatrix)}applyLocalInverse(t,n){return(0,h.m)(n,t,this.localMatrixInverse)}equals(t){return this===t||null!=t&&(0,u.h)(this.localMatrix,t.localMatrix)}clone(){const t={translation:(0,p.a)(this.translation),rotationAxis:(0,p.a)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,p.a)(this.scale)};return new r(t)}};(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"translation",void 0),(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAxis",void 0),(0,o._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAngle",void 0),(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"scale",void 0),(0,o._)([(0,i.Cb)()],g.prototype,"rotation",null),(0,o._)([(0,i.Cb)()],g.prototype,"localMatrix",null),(0,o._)([(0,i.Cb)()],g.prototype,"localMatrixInverse",null),g=r=(0,o._)([(0,s.j)("esri.geometry.support.MeshTransform")],g);const m=(0,f.a)(),y=g},3709:(t,n,e)=>{e.d(n,{EU:()=>p,UP:()=>g,Ue:()=>u,WH:()=>M,ZZ:()=>h,qC:()=>l,qw:()=>f,uT:()=>c});var r=e(22021),o=e(51305),a=e(94961),i=e(17896),s=e(65617);function u(t=g){return[t[0],t[1],t[2],t[3]]}function c(t,n,e=u()){return(0,i.c)(e,t),e[3]=n,e}function l(t,n,e=u()){return(0,o.s)(m,t,M(t)),(0,o.s)(y,n,M(n)),(0,o.m)(m,y,m),function(t,n){return t[3]=n,t}(e,(0,r.BV)((0,o.g)(e,m)))}function f(t,n,e,r=u()){return c(s.d,t,d),c(s.e,n,b),c(s.U,e,P),l(d,b,d),l(d,P,r),r}function h(t){return t}function p(t){return t[3]}function M(t){return(0,r.Vl)(t[3])}const g=[0,0,1,0],m=(0,a.a)(),y=(0,a.a)(),d=(u(),u()),b=u(),P=u()},72220:(t,n,e)=>{e.d(n,{c:()=>r});const r=e(92604).Z.getLogger("esri.views.3d.support.buffer.math")},13442:(t,n,e)=>{e.d(n,{A:()=>a,h:()=>o});var r=e(92604);function o(t,n){return t.isGeographic||t.isWebMercator&&(n?.geographic??!0)}function a(t,n,e){const o=!t.isGeoreferenced;null!=e?.geographic&&e.geographic!==o&&r.Z.getLogger(n).warnOnce(`Specifying the 'geographic' parameter (${e.geographic}) for a Mesh vertex space of type "${t.type}" is not supported. This parameter will be ignored.`)}},66459:(t,n,e)=>{e.d(n,{FF:()=>v,I5:()=>A,Yq:()=>x,iv:()=>P,project:()=>F,w1:()=>w});var r=e(67900),o=e(46521),a=e(52138),i=e(13598),s=e(17896),u=e(65617),c=e(21787),l=e(44547),f=e(58995),h=e(83025),p=e(85872),M=e(50567),g=e(84555),m=e(2674),y=e(20773),d=e(13442),b=e(56493);function P(t,n,e){return(0,d.h)(n.spatialReference,e)?function(t,n,e){const r=n.spatialReference,o=B(n,e,O),a=new Float64Array(t.position.length),i=function(t,n,e,r){(0,y.t)(r,t,n);const o=new Float64Array(t.length);return(0,b.To)(r,o,e)}(t.position,o,r,a),s=(0,c.b)(q,o);return{position:i,normal:T(i,a,t.normal,s,r),tangent:S(i,a,t.tangent,s,r)}}(t,n,e):function(t,n,e){const r=new Float64Array(t.position.length),o=t.position,a=n.x,i=n.y,s=n.z??0,u=Z(e?e.unit:null,n.spatialReference);for(let t=0;t<o.length;t+=3)r[t]=o[t]*u+a,r[t+1]=o[t+1]*u+i,r[t+2]=o[t+2]*u+s;return{position:r,normal:t.normal,tangent:t.tangent}}(t,n,e)}function A(t,n,e,r){const{position:o,normal:a,tangent:s}=t;if(!n.isRelative)return{position:o,normal:a,tangent:s};const u=e?.localMatrix??i.I;return P({position:(0,y.t)(new Float64Array(o.length),o,u),normal:null!=a?(0,b.w9)(a,new Float32Array(a.length),u):null,tangent:null!=s?(0,b.VS)(s,new Float32Array(s.length),u):null},n.getOriginPoint(r),{geographic:!n.isGeoreferenced})}function w(t,n,e){if(e?.useTransform){const{position:r,normal:o,tangent:a}=t,{x:i,y:s,z:c}=n,l=(0,u.f)(i,s,c??0);return{vertexAttributes:{position:r,normal:o,tangent:a},vertexSpace:e.geographic??1?new g.Z({origin:l}):new p.Z({origin:l}),transform:new m.Z}}return{vertexAttributes:P(t,n,e),vertexSpace:new M.Z,transform:null}}function v(t,n,e){return(0,d.h)(n.spatialReference,e)?function(t,n,e){const r=n.spatialReference;B(n,e,O);const o=(0,a.a)(j,O),i=new Float64Array(t.position.length),s=function(t,n,e,r){const o=(0,b.XO)(t,n,r),a=new Float64Array(o.length);return(0,y.t)(a,o,e),a}(t.position,r,o,i),u=(0,c.b)(q,o);return{position:s,normal:C(t.normal,t.position,i,r,u),tangent:R(t.tangent,t.position,i,r,u)}}(t,n,e):_(t,n,e)}function x(t,n,e,r,o){if(!n.isRelative)return v(t,r,o);const{spatialReference:a}=r,i=A(t,n,e,a);return r.equals(n.getOriginPoint(a))?_(i,r,o):v(i,r,o)}function F(t,n,e,r,o,c){const p=e.isRelative?e.origin:u.Z,M=e.isRelative?n?.localMatrix??i.I:i.I;if(e.isGeoreferenced){const n=c??(0,h.bg)(r.length);if((0,a.j)(M,i.I)?(0,h.JK)(n,r):(0,y.t)(n,r,M),!(0,s.k)(p,u.Z)){const[t,e,r]=p;for(let o=0;o<n.length;o+=3)n[o]+=t,n[o+1]+=e,n[o+2]+=r}return(0,l.projectBuffer)(n,t,0,n,o,0,n.length/3),n}const g=(0,f.rS)(t),m=(0,l.Up)(t,g)?g:t;(0,l.Bm)(t,p,O,m),(0,a.m)(O,O,M);const d=c??(0,h.bg)(r.length);return(0,y.t)(d,r,O),(0,l.projectBuffer)(d,m,0,d,o,0,d.length/3),d}function T(t,n,e,r,o){if(null==e)return null;const a=new Float32Array(e.length);return(0,y.a)(a,e,r),(0,b.Yk)(a,t,n,o,a),a}function S(t,n,e,r,o){if(null==e)return null;const a=new Float32Array(e.length);(0,y.a)(a,e,r,4);for(let t=3;t<a.length;t+=4)a[t]=e[t];return(0,b.M2)(a,t,n,o,a),a}function _(t,n,e){const r=new Float64Array(t.position.length),o=t.position,a=n.x,i=n.y,s=n.z??0,u=Z(e?e.unit:null,n.spatialReference);for(let t=0;t<o.length;t+=3)r[t]=(o[t]-a)/u,r[t+1]=(o[t+1]-i)/u,r[t+2]=(o[t+2]-s)/u;return{position:r,normal:t.normal,tangent:t.tangent}}function B(t,n,e){(0,l.Bm)(t.spatialReference,[t.x,t.y,t.z??0],e,(0,f.rS)(t.spatialReference));const r=Z(n?n.unit:null,t.spatialReference);return(0,a.k)(e,e,[r,r,r]),e}function C(t,n,e,r,o){if(null==t)return null;const a=(0,b.Iz)(t,n,e,r,new Float32Array(t.length));return(0,y.a)(a,a,o),a}function R(t,n,e,r,o){if(null==t)return null;const a=(0,b.wi)(t,n,e,r,new Float32Array(t.length));return(0,y.a)(a,a,o,4),a}function Z(t,n){if(null==t)return 1;const e=(0,r.r6)(n);return 1/(0,r.En)(e,"meters",t)}const O=(0,i.c)(),j=(0,i.c)(),q=(0,o.c)()},56493:(t,n,e)=>{e.d(n,{Iz:()=>m,M2:()=>v,To:()=>b,VS:()=>A,XO:()=>d,Yk:()=>y,w9:()=>P,wi:()=>w});var r=e(92604),o=e(21787),a=e(46521),i=e(13598),s=e(17896),u=e(65617),c=e(44547),l=e(58995),f=e(8744),h=e(40488),p=e(56481),M=e(20773);const g=r.Z.getLogger("esri.geometry.support.meshUtils.normalProjection");function m(t,n,e,r,o){return F(r)?(x(S.TO_PCPF,p.ct.fromTypedArray(t),p.fP.fromTypedArray(n),p.fP.fromTypedArray(e),r,p.ct.fromTypedArray(o)),o):(g.error("Cannot convert spatial reference to PCPF"),o)}function y(t,n,e,r,o){return F(r)?(x(S.FROM_PCPF,p.ct.fromTypedArray(t),p.fP.fromTypedArray(n),p.fP.fromTypedArray(e),r,p.ct.fromTypedArray(o)),o):(g.error("Cannot convert to spatial reference from PCPF"),o)}function d(t,n,e){return(0,c.projectBuffer)(t,n,0,e,(0,l.rS)(n),0,t.length/3),e}function b(t,n,e){return(0,c.projectBuffer)(t,(0,l.rS)(e),0,n,e,0,t.length/3),n}function P(t,n,e){return(0,o.b)(Z,e),(0,M.a)(n,t,Z),(0,o.i)(Z)||(0,M.n)(n,n),n}function A(t,n,e){if((0,o.b)(Z,e),(0,M.a)(n,t,Z,4),(0,o.i)(Z)||(0,M.n)(n,n,4),t!==n)for(let e=3;e<t.length;e+=4)n[e]=t[e];return n}function w(t,n,e,r,o){if(!F(r))return g.error("Cannot convert spatial reference to PCPF"),o;x(S.TO_PCPF,p.ct.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),p.fP.fromTypedArray(n),p.fP.fromTypedArray(e),r,p.ct.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT));for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}function v(t,n,e,r,o){if(!F(r))return g.error("Cannot convert to spatial reference from PCPF"),o;x(S.FROM_PCPF,p.ct.fromTypedArray(t,16),p.fP.fromTypedArray(n),p.fP.fromTypedArray(e),r,p.ct.fromTypedArray(o,16));for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}function x(t,n,e,r,a,i){if(!n)return;const u=e.count,f=(0,l.rS)(a);if(T(a))for(let e=0;e<u;e++)r.getVec(e,B),n.getVec(e,C),(0,c.Bm)(f,B,R,f),(0,o.f)(Z,R),t===S.FROM_PCPF&&(0,o.t)(Z,Z),(0,s.t)(C,C,Z),i.setVec(e,C);else for(let a=0;a<u;a++){r.getVec(a,B),n.getVec(a,C),(0,c.Bm)(f,B,R,f),(0,o.f)(Z,R);const u=(0,h.mZ)(e.get(a,1));let l=Math.cos(u);t===S.TO_PCPF&&(l=1/l),Z[0]*=l,Z[1]*=l,Z[2]*=l,Z[3]*=l,Z[4]*=l,Z[5]*=l,t===S.FROM_PCPF&&(0,o.t)(Z,Z),(0,s.t)(C,C,Z),(0,s.n)(C,C),i.setVec(a,C)}return i}function F(t){return T(t)||function(t){return t.isWebMercator}(t)}function T(t){return t.isWGS84||(0,f.yW)(t)||(0,f.BZ)(t)||(0,f.V2)(t)}var S,_;(_=S||(S={}))[_.TO_PCPF=0]="TO_PCPF",_[_.FROM_PCPF=1]="FROM_PCPF";const B=(0,u.c)(),C=(0,u.c)(),R=(0,i.c)(),Z=(0,a.c)()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3919],{13598:(e,t,r)=>{function s(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function a(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}function n(e,t){return new Float64Array(e,t,16)}r.d(t,{I:()=>i,a:()=>n,b:()=>a,c:()=>s});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:s,createView:n,fromValues:function(e,t,r,s,a,n,i,o,u,l,d,c,p,h,y,f){return[e,t,r,s,a,n,i,o,u,l,d,c,p,h,y,f]}},Symbol.toStringTag,{value:"Module"}))},20773:(e,t,r)=>{r.d(t,{a:()=>o,b:()=>i,c:()=>a,d:()=>d,e:()=>u,n:()=>c,s:()=>l,t:()=>n});var s=r(72220);function a(e,t,r){n(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function n(e,t,r,a=3,n=a){if(e.length/a!==Math.ceil(t.length/n))return s.c.error("source and destination buffers need to have the same number of elements"),e;const i=e.length/a,o=r[0],u=r[1],l=r[2],d=r[4],c=r[5],p=r[6],h=r[8],y=r[9],f=r[10],m=r[12],g=r[13],b=r[14];let F=0,S=0;for(let r=0;r<i;r++){const r=t[F],s=t[F+1],i=t[F+2];e[S]=o*r+d*s+h*i+m,e[S+1]=u*r+c*s+y*i+g,e[S+2]=l*r+p*s+f*i+b,F+=n,S+=a}return e}function i(e,t,r){o(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r,a=3,n=a){if(e.length/a!==Math.ceil(t.length/n))return void s.c.error("source and destination buffers need to have the same number of elements");const i=e.length/a,o=r[0],u=r[1],l=r[2],d=r[3],c=r[4],p=r[5],h=r[6],y=r[7],f=r[8];let m=0,g=0;for(let r=0;r<i;r++){const r=t[m],s=t[m+1],i=t[m+2];e[g]=o*r+d*s+h*i,e[g+1]=u*r+c*s+y*i,e[g+2]=l*r+p*s+f*i,m+=n,g+=a}}function u(e,t,r){l(e.typedBuffer,t,r,e.typedBufferStride)}function l(e,t,r,s=3){const a=Math.min(e.length/s,t.count),n=t.typedBuffer,i=t.typedBufferStride;let o=0,u=0;for(let t=0;t<a;t++)e[u]=r*n[o],e[u+1]=r*n[o+1],e[u+2]=r*n[o+2],o+=i,u+=s}function d(e,t){c(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r=3,s=r){const a=Math.min(e.length/r,t.length/s);let n=0,i=0;for(let o=0;o<a;o++){const a=t[n],o=t[n+1],u=t[n+2],l=a*a+o*o+u*u;if(l>0){const t=1/Math.sqrt(l);e[i]=t*a,e[i+1]=t*o,e[i+2]=t*u}n+=s,i+=r}}Object.freeze(Object.defineProperty({__proto__:null,normalize:c,normalizeView:d,scale:l,scaleView:u,shiftRight:function(e,t,r){const s=Math.min(e.count,t.count),a=e.typedBuffer,n=e.typedBufferStride,i=t.typedBuffer,o=t.typedBufferStride;let u=0,l=0;for(let e=0;e<s;e++)a[l]=i[u]>>r,a[l+1]=i[u+1]>>r,a[l+2]=i[u+2]>>r,u+=o,l+=n},transformMat3:o,transformMat3View:i,transformMat4:n,transformMat4View:a},Symbol.toStringTag,{value:"Module"}))},41123:(e,t,r)=>{r.d(t,{D:()=>a,z:()=>n});const s="randomUUID"in crypto;function a(){if(s)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${a()}}`}},85872:(e,t,r)=>{r.d(t,{Z:()=>p});var s=r(43697),a=r(2368),n=r(96674),i=r(5600),o=(r(75215),r(67676),r(80442),r(36030)),u=r(52011),l=r(65617),d=r(94139);let c=class extends((0,a.J)(n.wq)){constructor(e){super(e),this.type="georeferenced-relative",this.isRelative=!0,this.isGeoreferenced=!0,this.origin=(0,l.c)()}getOriginPoint(e){const[t,r,s]=this.origin;return new d.Z({x:t,y:r,z:s,spatialReference:e})}setOriginFormPoint({x:e,y:t,z:r}){this.origin=(0,l.f)(e,t,r??0)}};(0,s._)([(0,o.J)({georeferencedRelative:"georeferenced-relative"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,s._)([(0,u.j)("esri.geometry.support.MeshGeoreferencedRelativeVertexSpace")],c);const p=c},72220:(e,t,r)=>{r.d(t,{c:()=>s});const s=r(92604).Z.getLogger("esri.views.3d.support.buffer.math")},84470:(e,t,r)=>{r.d(t,{CP:()=>o,JG:()=>y,LL:()=>u,NZ:()=>l,fV:()=>f,vj:()=>g,yT:()=>F,zE:()=>b});var s=r(3172),a=r(67676),n=r(95330),i=r(2981);class o{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,a.fS)(this.parts,e.parts,((e,t)=>e.equals(t)))}isOnService(e){return this.parts.every((t=>t.isOnService(e)))}makeHash(){let e="";for(const t of this.parts)e+=t.partHash;return e}async toBlob(e){const{parts:t}=this;if(1===t.length)return t[0].toBlob(e);const r=await Promise.all(t.map((t=>t.toBlob(e))));return(0,n.k_)(e),new Blob(r)}}class u{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){const{data:t}=await(0,s.default)(this.partUrl,{responseType:"blob"});return(0,n.k_)(e),t}}function l(e){return function(e){return!!e&&(Array.isArray(e)?e.some(h):h(e))}(e?.source)}function d(e){return!!Array.isArray(e)&&e.every((e=>e instanceof o))}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,p=/\.(gltf|glb)/i;function h(e){if(e instanceof File){const{type:t,name:r}=e;return c.test(t)||p.test(r)}return c.test(e.assetMimeType)||p.test(e.assetName)}function y(e,t){if(!e)return!1;const{source:r}=e;return function(e,t){return Array.isArray(e)?e.every((e=>m(e,t))):m(e,t)}(r,t)}function f(e,t){if(e===t)return!0;const{source:r}=e,{source:s}=t;if(r===s)return!0;if(d(r)&&d(s)){if(r.length!==s.length)return!1;const e=(e,t)=>e.assetName<t.assetName?-1:e.assetName>t.assetName?1:0,t=[...r].sort(e),a=[...s].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(a[e]))return!1;return!0}return!1}function m(e,t){return e instanceof o&&e.isOnService(t)}function g(e,t){return e instanceof File?(0,i.Ow)(e.name,t)??(0,i.S0)(e.type,t):(0,i.S0)(e.assetMimeType,t)??(0,i.Ow)(e.assetName,t)}function b(e){return Array.isArray(e)?e:[e]}function F(e){return!!e.original}},61159:(e,t,r)=>{r.d(t,{g:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},14720:(e,t,r)=>{r.d(t,{Ey:()=>b,applyEdits:()=>F,aw:()=>m,uploadAssets:()=>v});var s=r(38171),a=r(46791),n=r(20102),i=r(22974),o=r(92604),u=r(95330),l=r(81271),d=r(16306),c=r(66361),p=r(2981),h=r(84230);function y(e){return e&&null!=e.applyEdits}function f(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function m(e){return e.every(f)}function g(e){return"object"==typeof e&&null!=e&&"globalId"in e&&!!e.globalId}function b(e){return e.every(g)}async function F(e,t,r,s={}){let l;if((0,c.lQ)(e)&&e.url)l=(0,c.jF)(e.url,e.layerId,"original-and-current-features"===s.returnServiceEditsOption);else{l=(0,u.hh)(),l.promise.then((t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)}));const t={result:l.promise};e.emit("apply-edits",t)}try{const{results:u,edits:d}=await async function(e,t,r,s){if(await e.load(),!y(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,h.ln)(e))throw new n.Z(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:u}=await async function(e,t,r){const s=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),i=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),u=null!=e.infoFor3D;if(!t||!s&&!i)throw new n.Z(`${e.type}-layer:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");const l=(0,h.S1)(e);if(!l.data.isVersioned&&r?.gdbVersion)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!l.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");if(!l.editing.supportsGlobalId&&r?.globalIdUsed)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!l.editing.supportsGlobalId&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!r?.globalIdUsed&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true");const d={...r};if(null!=d.rollbackOnFailureEnabled||l.editing.supportsRollbackOnFailure||(d.rollbackOnFailureEnabled=!0),d.rollbackOnFailureEnabled||"original-and-current-features"!==d.returnServiceEditsOption||(!1===d.rollbackOnFailureEnabled&&o.Z.getLogger("esri.layers.graphics.editingSupport").warn(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true, but 'rollBackOnFailure' was set to false. 'rollBackOnFailure' has been overwrritten and set to true."),d.rollbackOnFailureEnabled=!0),!l.editing.supportsReturnServiceEditsInSourceSpatialReference&&d.returnServiceEditsInSourceSR)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(d.returnServiceEditsInSourceSR&&"original-and-current-features"!==d.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const c={...t};if(c.addFeatures=t&&a.Z.isCollection(t.addFeatures)?t.addFeatures.toArray():c.addFeatures||[],c.updateFeatures=t&&a.Z.isCollection(t.updateFeatures)?t.updateFeatures.toArray():c.updateFeatures||[],c.deleteFeatures=t&&a.Z.isCollection(t.deleteFeatures)?t.deleteFeatures.toArray():c.deleteFeatures||[],c.addFeatures.length&&!l.operations.supportsAdd)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support adding features.");if(c.updateFeatures.length&&!l.operations.supportsUpdate)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support updating features.");if(c.deleteFeatures.length&&!l.operations.supportsDelete)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support deleting features.");c.addAttachments=c.addAttachments||[],c.updateAttachments=c.updateAttachments||[],c.deleteAttachments=c.deleteAttachments||[],c.addFeatures=c.addFeatures.map(R),c.updateFeatures=c.updateFeatures.map(R),c.addAssetFeatures=[];const y=r?.globalIdUsed||u;return c.addFeatures.forEach((t=>function(e,t,r){S(e,t,r)}(t,e,y))),c.updateFeatures.forEach((t=>function(e,t,r){S(e,t,r);const s=(0,h.S1)(t);if("geometry"in e&&null!=e.geometry&&!s?.editing.supportsGeometryUpdate)throw new n.Z(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,y))),c.deleteFeatures.forEach((t=>function(e,t,r){S(e,t,r)}(t,e,y))),c.addAttachments.forEach((t=>w(t,e))),c.updateAttachments.forEach((t=>w(t,e))),u&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:r}=t,s=(0,p.S0)("model/gltf-binary",r.supportedFormats)??(0,p.Ow)("glb",r.supportedFormats);if(!s||!r.editFormats.includes(s))throw new n.Z(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:a}=e;for(const t of e.addFeatures??[])A(t)&&a.push(t);for(const t of e.updateFeatures??[])A(t)&&a.push(t)}(c,e),{edits:await _(c),options:d}}(e,r,s);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await t.applyEdits(i,u)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,s),c=e=>e.filter((e=>!e.error)).map(i.d9),f={edits:d,addedFeatures:c(u.addFeatureResults),updatedFeatures:c(u.updateFeatureResults),deletedFeatures:c(u.deleteFeatureResults),addedAttachments:c(u.addAttachmentResults),updatedAttachments:c(u.updateAttachmentResults),deletedAttachments:c(u.deleteAttachmentResults),exceededTransferLimit:!1};return u.editedFeatureResults?.length&&(f.editedFeatures=u.editedFeatureResults),l.resolve(f),u}catch(e){throw l.reject(e),e}}function S(e,t,r){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Feature should have 'globalId' when 'globalIdUsed' is true");if(!("attributes"in e)&&!e.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"'globalId' of the feature should be passed when 'globalIdUsed' is true")}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new n.Z(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new n.Z(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function w(e,t){const{feature:r,attachment:s}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!s.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!s.data&&!s.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(s.data instanceof File&&s.data.name||s.name))throw new n.Z(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&s.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof s.data){const e=(0,l.sJ)(s.data);if(e&&!e.isBase64)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function _(e){const t=e.addFeatures??[],r=e.updateFeatures??[],s=t.concat(r).map((e=>e.geometry)),a=await(0,d.aX)(s),n=t.length,i=r.length;return a.slice(0,n).forEach(((e,r)=>t[r].geometry=e)),a.slice(n,n+i).forEach(((e,t)=>r[t].geometry=e)),e}function R(e){const t=new s.Z;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function A(e){return"mesh"===e?.geometry?.type}function v(e,t,r,s){if(!y(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new n.Z(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,s)}},73919:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Q});var s=r(43697),a=(r(66577),r(38171)),n=r(40330),i=r(3172),o=r(92835),u=r(67676),l=r(20102),d=r(80442),c=r(35454),p=r(83379),h=r(92604),y=r(78286),f=r(95330),m=r(67900),g=r(81271),b=r(41123),F=r(5600),S=(r(75215),r(52011)),w=r(6570),_=r(44547),R=r(33955),A=r(52138),v=r(13598),O=r(85872),I=r(20773);function E(e){const{vertexSpace:t}=e;if(t.isRelative)return e.clone();const{anchor:r}=e,s=r.clone(),a=(0,A.f)(q,[-s.x,-s.y,-s.z]),n=new O.Z({origin:[s.x,s.y,s.z]}),i=e.cloneWithVertexSpace(n),{position:o}=i.vertexAttributes;return i.vertexAttributes.position=(0,I.t)(new Float64Array(o.length),o,a),i.vertexAttributesChanged(),i}const q=(0,v.c)();var x=r(84470),C=r(14720),Z=r(25278),T=r(49735),D=r(66677),M=r(2981),P=r(4967),N=r(59431),k=r(14165),$=r(82971);const G=new c.X({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),U=new Set(["Feature Layer","Table"]),B=new c.X({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let j=class extends p.Z{constructor(){super(...arguments),this.type="feature-layer",this.refresh=(0,f.Ds)((async()=>{await this.load();const e=this.sourceJSON.editingInfo?.lastEditDate;if(null==e)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const t=e!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:t,updates:t?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}})),this._ongoingAssetUploads=new Map}load(e){const t=null!=e?e.signal:null,r=this.layer.sourceJSON;return this.addResolvingPromise(this._fetchService(r,t)),Promise.resolve(this)}get queryTask(){const{capabilities:e,parsedUrl:t,dynamicDataSource:r,infoFor3D:s,gdbVersion:a,spatialReference:n,fieldsIndex:i}=this.layer,o=(0,d.Z)("featurelayer-pbf")&&e?.query.supportsFormatPBF&&null==s,u=e?.operations?.supportsQueryAttachments??!1;return new T.Z({url:t.path,pbfSupported:o,fieldsIndex:i,infoFor3D:s,dynamicDataSource:r,gdbVersion:a,sourceSpatialReference:n,queryAttachmentsSupported:u})}async addAttachment(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/addAttachment",a=this._getLayerRequestOptions(),n=this._getFormDataForAttachment(t,a.query);try{const e=await(0,i.default)(s,{body:n});return this._createFeatureEditResult(e.data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}async updateAttachment(e,t,r){await this.load();const s=e.attributes[this.layer.objectIdField],a=this.layer.parsedUrl.path+"/"+s+"/updateAttachment",n=this._getLayerRequestOptions({query:{attachmentId:t}}),o=this._getFormDataForAttachment(r,n.query);try{const e=await(0,i.default)(a,{body:o});return this._createFeatureEditResult(e.data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(s,e)}}async applyEdits(e,t){await this.load();const{layer:r}=this,s=r.infoFor3D,a=null!=s,o=a||(t?.globalIdUsed??!1),l=a?await this._uploadMeshesAndGetAssetMapEditsJSON(e):null,d=e.addFeatures?.map((e=>this._getFeatureJSON(e,s)))??[],c=(await Promise.all(d)).filter(u.pC),p=e.updateFeatures?.map((e=>this._getFeatureJSON(e,s)))??[],h=(await Promise.all(p)).filter(u.pC),y=this._getFeatureIds(e.deleteFeatures,o);(0,N.P)(c,h,r.spatialReference);const f=await this._getAttachmentEditsJSON(e),m=r.capabilities.editing.supportsAsyncApplyEdits&&a,g={gdbVersion:t?.gdbVersion||r.gdbVersion,rollbackOnFailure:t?.rollbackOnFailureEnabled,useGlobalIds:o,returnEditMoment:t?.returnEditMoment,usePreviousEditMoment:t?.usePreviousEditMoment,sessionId:t?.sessionId,async:m};t?.returnServiceEditsOption?(g.edits=JSON.stringify([{id:r.layerId,adds:c,updates:h,deletes:y,attachments:f,assetMaps:l}]),g.returnServiceEditsOption=G.toJSON(t?.returnServiceEditsOption),g.returnServiceEditsInSourceSR=t?.returnServiceEditsInSourceSR):(g.adds=c.length?JSON.stringify(c):null,g.updates=h.length?JSON.stringify(h):null,g.deletes=y.length?o?JSON.stringify(y):y.join(","):null,g.attachments=f&&JSON.stringify(f),g.assetMaps=null!=l?JSON.stringify(l):void 0);const b=this._getLayerRequestOptions({method:"post",query:g}),F=t?.returnServiceEditsOption?r.url:r.parsedUrl.path,S=m?await this._asyncApplyEdits(F+"/applyEdits",b):await(0,i.default)(F+"/applyEdits",b);if(!r.capabilities.operations?.supportsEditing&&r.effectiveCapabilities?.operations?.supportsEditing){const e=n.id?.findCredential(r.url);await(e?.refreshToken())}return this._createEditsResult(S)}async deleteAttachments(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/deleteAttachments";try{return(await(0,i.default)(s,this._getLayerRequestOptions({query:{attachmentIds:t.join(",")},method:"post"}))).data.deleteAttachmentResults.map(this._createFeatureEditResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}fetchRecomputedExtents(e={}){const t=e.signal;return this.load({signal:t}).then((async()=>{const t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:a}=await(0,i.default)(`${s}/${r}`,t),{id:n,extent:u,fullExtent:l,timeExtent:d}=a,c=u||l;return{id:n,fullExtent:c&&w.Z.fromJSON(c),timeExtent:d&&o.Z.fromJSON({start:d[0],end:d[1]})}}))}async queryAttachments(e,t={}){await this.load();const r=this._getLayerRequestOptions(t);return this.queryTask.executeAttachmentQuery(e,r)}async queryFeatures(e,t){return await this.load(),this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}async fetchPublishingStatus(){if(!(0,D.M8)(this.layer.url))return"unavailable";const e=(0,g.v_)(this.layer.url,"status"),t=await(0,i.default)(e,{query:{f:"json"}});return B.fromJSON(t.data.status)}async uploadAssets(e,t){const{uploadAssets:s}=await r.e(6946).then(r.bind(r,36946));return s(e,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},t)}async _asyncApplyEdits(e,t){const r=(await(0,i.default)(e,t)).data.statusUrl;for(;;){const e=(await(0,i.default)(r,{query:{f:"json"},responseType:"json"})).data;switch(e.status){case"Completed":return(0,i.default)(e.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new l.Z("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new l.Z("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,f.e4)(J)}}_createRequestQueryOptions(e){const t={...this.layer.customParameters,token:this.layer.apiKey,...e?.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){const{data:r}=await(0,i.default)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:(0,d.Z)("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:t}));e=r}this.sourceJSON=this._patchServiceJSON(e);const r=e.type;if(!U.has(r))throw new l.Z("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}_patchServiceJSON(e){if("Table"!==e.type&&e.geometryType&&!e?.drawingInfo?.renderer&&!e.defaultSymbol){const t=(0,Z.bU)(e.geometryType).renderer;(0,y.RB)("drawingInfo.renderer",t,e)}return"esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),e}async _getFeatureJSON(e,t){const{geometry:r}=e,s={...e.attributes};if(null!=t&&"mesh"===r?.type){const{transformFieldRoles:e}=t,{origin:a,spatialReference:n,transform:i}=r,o=this.layer.spatialReference;await(0,_.initializeProjection)(n,o);const u=(0,_.iV)(a,o);if(s[e.originX]=u.x,s[e.originY]=u.y,s[e.originZ]=u.z??0,null!=i){const{translation:t,scale:a,rotation:u}=i,{vertexSpace:l}=r,d=l.isGeoreferenced?1:(0,m.r6)(n)/(0,m.r6)(o);s[e.translationX]=t[0]*d,s[e.translationY]=-t[2]*d,s[e.translationZ]=t[1]*d,s[e.scaleX]=a[0],s[e.scaleY]=a[2],s[e.scaleZ]=a[1],s[e.rotationX]=u[0],s[e.rotationY]=u[2],s[e.rotationZ]=u[1],s[e.rotationDeg]=u[3]}return{geometry:null,attributes:s}}return null==r?{attributes:s}:"mesh"===r.type||"extent"===r.type?null:{geometry:r.toJSON(),attributes:s}}async _getAttachmentEditsJSON(e){const t=await Promise.all((e.addAttachments??[]).map((e=>this._getAttachmentEditJSON(e)))),r=await Promise.all((e.updateAttachments??[]).map((e=>this._getAttachmentEditJSON(e)))),s=e.deleteAttachments??[];return t.length||r.length||s.length?{adds:t,updates:r,deletes:[...s]}:null}async _getAttachmentEditJSON(e){const{feature:t,attachment:r}=e,{globalId:s,name:a,contentType:n,data:i,uploadId:o}=r,u={globalId:s,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};if(t&&(u.parentGlobalId="attributes"in t?t.attributes&&t.attributes[this.layer.globalIdField]:t.globalId),o)u.uploadId=o;else if(i){const e=await(0,g.IR)(i);e&&(u.contentType=e.mediaType,u.data=e.data),i instanceof File&&(u.name=i.name)}return a&&(u.name=a),n&&(u.contentType=n),u}async _uploadMeshesAndGetAssetMapEditsJSON(e){const{addAssetFeatures:t}=e;if(!t?.length)return null;const r=await this._filterRedundantAssetMaps(t);if(!t?.length)return null;const s=new Array,a=new Map;for(const e of r){const{geometry:t}=e,{vertexSpace:r}=t;if(r.isRelative)s.push(t);else{const r=E(t);a.set(r,t),e.geometry=r,s.push(r)}}await this.uploadAssets(s);for(const[e,t]of a)t.addExternalSources(e.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(r),updates:[],deletes:[]}}_getAssetMapEditsJSON(e){const t=new Array,r=this.layer.globalIdField,s=this.layer.parsedUrl;for(const a of e){const e=a.geometry,{metadata:n}=e,i=n.getExternalSourcesOnService(s),o=a.getAttribute(r);if(0===i.length){h.Z.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=i.find(x.yT)??i[0],{vertexSpace:l}=e,d=l.isGeoreferenced?["PROJECT_VERTICES"]:[];for(const e of u)1===e.parts.length?t.push({globalId:(0,b.z)(),parentGlobalId:o,assetName:e.assetName,assetHash:e.parts[0].partHash,flags:d}):h.Z.getLogger(this).error(`Skipping asset ${e.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return t}_getFeatureIds(e,t){if(!e||0===e.length)return[];if(t&&(0,C.Ey)(e))return e.map((e=>e.globalId));if((0,C.aw)(e))return e.map((e=>e.objectId));const{layer:r}=this,s=t?r.globalIdField:r.objectIdField;return s?e.map((e=>e.getAttribute(s))):[]}_createEditsResult(e){const t=e.data,{layerId:r}=this.layer,s=[];let a=null;if(Array.isArray(t))for(const e of t)s.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(a={addResults:e.addResults??[],updateResults:e.updateResults??[],deleteResults:e.deleteResults??[],attachments:e.attachments,editMoment:e.editMoment});else a=t;const n=a?.assetMaps;if(n){for(const e of n.addResults)e.success||h.Z.getLogger(this).error(`Failed to map asset to feature with globalId ${e.globalId}.`);for(const e of n.updateResults)e.success||h.Z.getLogger(this).error(`Failed to map asset to feature with globalId ${e.globalId}.`)}const i=a?.attachments,o={addFeatureResults:a?.addResults?.map(this._createFeatureEditResult,this)??[],updateFeatureResults:a?.updateResults?.map(this._createFeatureEditResult,this)??[],deleteFeatureResults:a?.deleteResults?.map(this._createFeatureEditResult,this)??[],addAttachmentResults:i&&i.addResults?i.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:i&&i.updateResults?i.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:i&&i.deleteResults?i.deleteResults.map(this._createFeatureEditResult,this):[]};if(a?.editMoment&&(o.editMoment=a.editMoment),s.length>0){o.editedFeatureResults=[];for(const e of s){const{editedFeatures:t}=e,r=t?.spatialReference?new $.Z(t.spatialReference):null;o.editedFeatureResults.push({layerId:e.id,editedFeatures:{adds:t?.adds?.map((e=>this._createEditedFeature(e,r)))||[],updates:t?.updates?.map((e=>({original:this._createEditedFeature(e[0],r),current:this._createEditedFeature(e[1],r)})))||[],deletes:t?.deletes?.map((e=>this._createEditedFeature(e,r)))||[],spatialReference:r}})}}return o}_createEditedFeature(e,t){return new a.Z({attributes:e.attributes,geometry:(0,R.im)({...e.geometry,spatialReference:t})})}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new l.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_createAttachmentErrorResult(e,t){const r=t.details.messages&&t.details.messages[0]||t.message,s=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new l.Z("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(e,t){const r=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(r)for(const e in t){const s=t[e];null!=s&&(r.set?r.set(e,s):r.append(e,s))}return r}_getLayerRequestOptions(e={}){const{parsedUrl:t,gdbVersion:r,dynamicDataSource:s}=this.layer;return{...e,query:{gdbVersion:r,layer:s?JSON.stringify({source:s}):void 0,...t.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}async _filterRedundantAssetMaps(e){const{layer:t}=this,{globalIdField:r,infoFor3D:s,parsedUrl:a}=t;if(null==s||null==r)return e;const n=(0,M.$6)(s);if(null==n)return e;const i=(0,g.v_)(a.path,`../${n.id}`),o=new Array,l=new Array;for(const t of e)t.geometry.metadata.getExternalSourcesOnService(a).length>0?l.push(t):o.push(t);const d=l.map((e=>e.getAttribute(r))).filter(u.pC);if(0===d.length)return e;const{assetMapFieldRoles:{parentGlobalId:c,assetHash:p}}=s,h=new k.Z;h.where=`${c} IN (${d.map((e=>`'${e}'`))})`,h.outFields=[p,c],h.returnGeometry=!1;const y=await(0,P.e)(i,h),{features:f}=y;return 0===f.length?e:[...o,...l.filter((e=>{const t=e.getAttribute(r);if(!t)return!0;const{metadata:s}=e.geometry,n=f.filter((e=>e.getAttribute(c)===t));if(0===n.length)return!0;const i=n.map((e=>e.getAttribute(p)));return s.getExternalSourcesOnService(a).flatMap((({source:e})=>e.flatMap((e=>e.parts.map((e=>e.partHash)))))).some((e=>i.every((t=>e!==t))))}))]}};(0,s._)([(0,F.Cb)()],j.prototype,"type",void 0),(0,s._)([(0,F.Cb)({constructOnly:!0})],j.prototype,"layer",void 0),(0,s._)([(0,F.Cb)({readOnly:!0})],j.prototype,"queryTask",null),j=(0,s._)([(0,S.j)("esri.layers.graphics.sources.FeatureLayerSource")],j);const J=1e3,Q=j},49735:(e,t,r)=>{r.d(t,{Z:()=>R});var s=r(43697),a=r(92036),n=r(20102),i=r(80442),o=r(95330),u=r(81271),l=r(5600),d=(r(75215),r(67676),r(52011)),c=r(2981),p=r(10158),h=r(11282),y=r(41818),f=(r(66577),r(34599)),m=r(14165),g=r(6570),b=r(5396),F=r(4967),S=r(53261),w=r(74889);let _=class extends a.Z{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.url=null}get parsedUrl(){return(0,u.mN)(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),s=null!=e.outStatistics?.[0],a=(0,i.Z)("featurelayer-pbf-statistics"),n=!s||a;let o;if(this.pbfSupported&&n)try{o=await(0,S.t)(this.url,r,t)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return this.pbfSupported&&n||(o=await(0,F.F)(this.url,r,t)),this._normalizeFields(o.fields),o}async featureSetFromJSON(e,t,s){if(!this._queryIs3DObjectFormat(e)||null==this.infoFor3D||!t.features)return w.Z.fromJSON(t);const{meshFeatureSetFromJSON:a}=await(0,o.Hl)(Promise.all([r.e(6481),r.e(6459),r.e(7616)]).then(r.bind(r,91681)),s);return a(e,this.infoFor3D,t)}executeForCount(e,t){return(0,y.P)(this.url,this._normalizeQuery(e),t)}executeForExtent(e,t){return async function(e,t,r){const s=(0,h.en)(e);return(0,f.Vr)(s,m.Z.from(t),{...r}).then((e=>({count:e.data.count,extent:g.Z.fromJSON(e.data.extent)})))}(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,b.G)(this.url,this._normalizeQuery(e),t)}async executeRelationshipQuery(e,t){const[{default:s},{executeRelationshipQuery:a}]=await(0,o.Hl)(Promise.all([r.e(5935).then(r.bind(r,75935)),r.e(1073).then(r.bind(r,81073))]),t);return e=s.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),a(this.url,e,t)}async executeRelationshipQueryForCount(e,t){const[{default:s},{executeRelationshipQueryForCount:a}]=await(0,o.Hl)(Promise.all([r.e(5935).then(r.bind(r,75935)),r.e(1073).then(r.bind(r,81073))]),t);return e=s.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),a(this.url,e,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:s,fetchAttachments:a,processAttachmentQueryResult:n}=await(0,o.Hl)(r.e(540).then(r.bind(r,30540)),t),i=(0,h.en)(this.url);return n(i,await(this.queryAttachmentsSupported?s(i,e,t):a(i,e,t)))}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:s}=await(0,o.Hl)(r.e(1158).then(r.bind(r,71158)),t);return s(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:s}=await(0,o.Hl)(r.e(3992).then(r.bind(r,33992)),t);return s(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:s}=await(0,o.Hl)(r.e(1790).then(r.bind(r,21790)),t);return s(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:s}=await(0,o.Hl)(r.e(4371).then(r.bind(r,14371)),t);return s(this.parsedUrl,e,t)}_normalizeQuery(e){let t=m.Z.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?p.n.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this;if(null!=r&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;const{supportedFormats:s,queryFormats:a}=r,i=(0,c.S0)("model/gltf-binary",s)??(0,c.Ow)("glb",s),o=(0,c.S0)("model/gltf+json",s)??(0,c.Ow)("gtlf",s);for(const e of a){if(e===i){t.formatOf3DObjects=e;break}e!==o||t.formatOf3DObjects||(t.formatOf3DObjects=e)}if(!t.formatOf3DObjects)throw new n.Z("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:s,originY:a,originZ:n,translationX:i,translationY:o,translationZ:u,scaleX:l,scaleY:d,scaleZ:c,rotationX:p,rotationY:h,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;t.outFields.push(s,a,n,i,o,u,l,d,c,p,h,y,f)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return null!=this.infoFor3D&&!0===e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,s._)([(0,l.Cb)({type:p.n})],_.prototype,"dynamicDataSource",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"fieldsIndex",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"gdbVersion",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"infoFor3D",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,s._)([(0,l.Cb)()],_.prototype,"pbfSupported",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"queryAttachmentsSupported",void 0),(0,s._)([(0,l.Cb)()],_.prototype,"sourceSpatialReference",void 0),(0,s._)([(0,l.Cb)({type:String})],_.prototype,"url",void 0),_=(0,s._)([(0,d.j)("esri.tasks.QueryTask")],_);const R=_},25278:(e,t,r)=>{r.d(t,{Dm:()=>d,Hq:()=>c,MS:()=>p,bU:()=>o});var s=r(80442),a=r(22974),n=r(61159),i=r(58333);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?i.I4:"esriGeometryPolyline"===e?i.ET:i.lF}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function d(e,t){if((0,s.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${u.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[t]:null,...e})}}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,a.d9)(e)}}]}function p(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:n.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1}}}},2981:(e,t,r)=>{r.d(t,{$6:()=>d,Ow:()=>n,S0:()=>a,d1:()=>i});const s=[["binary","application/octet-stream","bin",""]];function a(e,t){return u(function(e,t){return o(t).find((t=>l(t)===e))}(e,t))}function n(e,t){return u(function(e,t){const r=e.toLowerCase();return o(t).find((e=>function(e){return e?.[2].split(",")??[]}(e).some((e=>r.endsWith(e)))))}(e,t))}function i(e,t){return l(function(e,t){return o(t).find((t=>u(t)===e))}(e,t))}function o(e){return[...s,...e]}function u(e){return e?.[0]}function l(e){return e?.[1]}function d(e){return e.tables?.find((e=>"assetMaps"===e.role))}},41818:(e,t,r)=>{r.d(t,{P:()=>i});var s=r(11282),a=r(34599),n=r(14165);async function i(e,t,r){const i=(0,s.en)(e);return(0,a.hH)(i,n.Z.from(t),{...r}).then((e=>e.data.count))}},5396:(e,t,r)=>{r.d(t,{G:()=>i});var s=r(11282),a=r(34599),n=r(14165);async function i(e,t,r){const i=(0,s.en)(e);return(0,a.Ev)(i,n.Z.from(t),{...r}).then((e=>e.data.objectIds))}},4967:(e,t,r)=>{r.d(t,{F:()=>u,e:()=>o});var s=r(11282),a=r(34599),n=r(74889),i=r(14165);async function o(e,t,r){const s=await u(e,t,r);return n.Z.fromJSON(s)}async function u(e,t,r){const n=(0,s.en)(e),o={...r},u=i.Z.from(t),{data:l}=await(0,a.JT)(n,u,u.sourceSpatialReference,o);return l}},53261:(e,t,r)=>{r.d(t,{t:()=>m});var s=r(11282),a=r(70586),n=r(69285),i=r(98732);function o(e,t){return t}function u(e,t,r,s){switch(r){case 0:return p(e,t+s,0);case 1:return"lowerLeft"===e.originPosition?p(e,t+s,1):function({translate:e,scale:t},r,s){return e[s]-r*t[s]}(e,t+s,1)}}function l(e,t,r,s){return 2===r?p(e,t,2):u(e,t,r,s)}function d(e,t,r,s){return 2===r?p(e,t,3):u(e,t,r,s)}function c(e,t,r,s){return 3===r?p(e,t,3):l(e,t,r,s)}function p({translate:e,scale:t},r,s){return e[s]+r*t[s]}class h{constructor(e){this._options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=o,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,n.k)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){const r=e.fields;(0,a.O3)(r),r.push(t);const s=r.map((e=>e.name));this._attributesConstructor=function(){for(const e of s)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:s}=t,a=(0,i.$g)(r.clone(),r,!1,!1,this._transform),n=(0,i.di)(a,s,!1,!1);e.queryGeometryType=s,e.queryGeometry={...n}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const s=(0,a.s3)(this._transform,"transform");switch(t=this._applyTransform(s,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e);const s=(0,a.s3)(this._transform,"transform");return this._applyTransform(s,e,t,r)}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const s=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(s)}_createPolygonGeometry(e){return{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const s=this._transformPathLikeValue(t,r),a=e[e.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),a.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=s}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?c:t?l:r?d:u}}var y=r(34599),f=(r(74889),r(14165));async function m(e,t,r){const a=(0,s.en)(e),n={...r},i=f.Z.from(t),o=!i.quantizationParameters,{data:u}=await(0,y.qp)(a,i,new h({sourceSpatialReference:i.sourceSpatialReference,applyTransform:o}),n);return u}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7741,2442],{52781:(e,t,o)=>{o.r(t),o.d(t,{default:()=>d});var r=o(43697),i=o(20102),n=o(5600),s=(o(75215),o(67676),o(80442),o(52011)),l=o(19238),a=o(2368),p=o(96674);let y=class extends((0,a.J)(p.wq)){constructor(e){super(e)}read(e,t){const o={};for(const t in e)o[t.toLowerCase()]=e[t];super.read(o,t)}};(0,r._)([(0,n.Cb)({json:{name:"dempathprefix"}})],y.prototype,"demPathPrefix",void 0),(0,r._)([(0,n.Cb)({json:{name:"dempathsuffix"}})],y.prototype,"demPathSuffix",void 0),(0,r._)([(0,n.Cb)({json:{name:"imagepathprefix"}})],y.prototype,"imagePathPrefix",void 0),(0,r._)([(0,n.Cb)({json:{name:"imagepathsuffix"}})],y.prototype,"imagePathSuffix",void 0),(0,r._)([(0,n.Cb)({json:{name:"depthimagepathprefix"}})],y.prototype,"depthImagePathPrefix",void 0),(0,r._)([(0,n.Cb)({json:{name:"depthimagepathsuffix"}})],y.prototype,"depthImagePathSuffix",void 0),(0,r._)([(0,n.Cb)({json:{name:"localimagepathprefix"}})],y.prototype,"localImagePathPrefix",void 0),(0,r._)([(0,n.Cb)({json:{name:"localimagepathsuffix"}})],y.prototype,"localImagePathSuffix",void 0),(0,r._)([(0,n.Cb)({json:{name:"videopathprefix"}})],y.prototype,"videoPathPrefix",void 0),(0,r._)([(0,n.Cb)({json:{name:"videopathsuffix"}})],y.prototype,"videoPathSuffix",void 0),y=(0,r._)([(0,s.j)("esri.layers.orientedImagery.core.Affixes")],y);const m=y;let u=class extends p.wq{constructor(e){super(e)}};(0,r._)([(0,n.Cb)({type:Number,json:{write:!0}})],u.prototype,"averageHeightAboveGround",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:!0}})],u.prototype,"cameraHeading",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:!0}})],u.prototype,"cameraPitch",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:!0}})],u.prototype,"cameraRoll",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:!0}})],u.prototype,"farDistance",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:!0}})],u.prototype,"horizontalFieldOfView",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:!0}})],u.prototype,"nearDistance",void 0),(0,r._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"orientedImageryType",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:!0}})],u.prototype,"verticalFieldOfView",void 0),u=(0,r._)([(0,s.j)("esri.layers.orientedImagery.core.CameraProperties")],u);const f=u;let c=class extends l.default{constructor(){super(...arguments),this.affixes=null,this.geometryType="point",this.operationalLayerType="OrientedImageryLayer",this.type="oriented-imagery"}get effectiveElevationSource(){const{elevationSource:e,affixes:t}=this;if(!e||!e.url?.trim())return;let o=e.url.trim();if(t){const{demPathSuffix:e,demPathPrefix:r}=t;r?.trim()&&(o=`${r.trim()}/${o}`),e?.trim()&&(o+=`/${e.trim()}`)}return{...e,url:o}}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new i.Z("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};(0,r._)([(0,n.Cb)({type:m,json:{write:!0}})],c.prototype,"affixes",void 0),(0,r._)([(0,n.Cb)({type:f,json:{write:!0}})],c.prototype,"cameraProperties",void 0),(0,r._)([(0,n.Cb)({json:{write:!0}})],c.prototype,"coverage",void 0),(0,r._)([(0,n.Cb)({json:{write:!0}})],c.prototype,"coveragePercent",void 0),(0,r._)([(0,n.Cb)({json:{write:!0}})],c.prototype,"defaultSearchLocation",void 0),(0,r._)([(0,n.Cb)({json:{write:!0}})],c.prototype,"depthImage",void 0),(0,r._)([(0,n.Cb)({json:{write:!0}})],c.prototype,"geometryType",void 0),(0,r._)([(0,n.Cb)()],c.prototype,"imageProperties",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:!0}})],c.prototype,"maximumDistance",void 0),(0,r._)([(0,n.Cb)({type:["OrientedImageryLayer"]})],c.prototype,"operationalLayerType",void 0),(0,r._)([(0,n.Cb)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],c.prototype,"type",void 0),(0,r._)([(0,n.Cb)({json:{write:!0}})],c.prototype,"elevationSource",void 0),(0,r._)([(0,n.Cb)()],c.prototype,"effectiveElevationSource",null),c=(0,r._)([(0,s.j)("esri.layers.OrientedImageryLayer")],c);const d=c},16451:(e,t,o)=>{o.d(t,{Z:()=>f});var r=o(43697),i=o(2368),n=o(96674),s=o(5600),l=(o(75215),o(67676),o(80442),o(71715)),a=o(52011),p=o(30556),y=o(72729),m=o(70082);let u=class extends((0,i.J)(n.wq)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const o of Object.keys(e))t[o]=(0,y.im)(e[o]);return t}writeDomains(e,t){const o={};for(const t of Object.keys(e))e[t]&&(o[t]=e[t]?.toJSON());t.domains=o}};(0,r._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"id",void 0),(0,r._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"name",void 0),(0,r._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"domains",void 0),(0,r._)([(0,l.r)("domains")],u.prototype,"readDomains",null),(0,r._)([(0,p.c)("domains")],u.prototype,"writeDomains",null),(0,r._)([(0,s.Cb)({type:[m.Z],json:{write:!0}})],u.prototype,"templates",void 0),u=(0,r._)([(0,a.j)("esri.layers.support.FeatureType")],u);const f=u},28694:(e,t,o)=>{o.d(t,{p:()=>i});var r=o(69285);function i(e,t,o){if(!o||!o.features||!o.hasZ)return;const i=(0,r.k)(o.geometryType,t,e.outSpatialReference);if(null!=i)for(const e of o.features)i(e.geometry)}},74889:(e,t,o)=>{o.d(t,{Z:()=>S});var r,i=o(43697),n=o(66577),s=o(38171),l=o(35454),a=o(96674),p=o(22974),y=o(5600),m=(o(75215),o(71715)),u=o(52011),f=o(30556),c=o(82971),d=o(33955),h=o(1231);const g=new l.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=r=class extends a.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const o=c.Z.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const i=e[t],n=s.Z.fromJSON(i),l=i.geometry&&i.geometry.spatialReference;null==n.geometry||l||(n.geometry.spatialReference=o);const a=i.aggregateGeometries,p=n.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],r=a[e],i=r?.spatialReference;null==t||i||(t.spatialReference=o)}r.push(n)}return r}writeGeometryType(e,t,o,r){if(e)return void g.write(e,t,o,r);const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry)return void g.write(e.geometry.type,t,o,r)}readQueryGeometry(e,t){if(!e)return null;const o=!!e.spatialReference,r=(0,d.im)(e);return r&&!o&&t.spatialReference&&(r.spatialReference=c.Z.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:o}=this;if(o)for(const e of o)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,p.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let o=0;o<t.features.length;o++){const r=t.features[o];if(r.geometry){const t=e&&e[o];r.geometry=t&&t.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,o],translate:[r,i]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-r)/t)),(e=>Math.round((i-e)/o)));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:o}=this;if(!o)return this;const{translate:[r,i],scale:[n,s]}=o;let l=null,a=null;if(this.hasZ&&null!=o?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=o;l=o=>o*t+e}if(this.hasM&&null!=o?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=o;a=o=>null==o?o:o*t+e}const p=this._getHydrationFunction(e,(e=>e*n+r),(e=>i-e*s),l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}_quantizePoints(e,t,o){let r,i;const n=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=o(l[1]);e===r&&s===i||(n.push([e-r,s-i]),r=e,i=s)}else r=t(l[0]),i=o(l[1]),n.push([r,i])}return n.length>0?n:null}_getQuantizationFunction(e,t,o){return"point"===e?e=>(e.x=t(e.x),e.y=o(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,d.oU)(e)?e.rings:e.paths,i=[];for(let e=0,n=r.length;e<n;e++){const n=r[e],s=this._quantizePoints(n,t,o);s&&i.push(s)}return i.length>0?((0,d.oU)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,o);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,o,r,i){return"point"===e?e=>{e.x=t(e.x),e.y=o(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,d.oU)(e)?e.rings:e.paths;let s,l;for(let e=0,r=n.length;e<r;e++){const r=n[e];for(let e=0,i=r.length;e<i;e++){const i=r[e];e>0?(s+=i[0],l+=i[1]):(s=i[0],l=i[1]),i[0]=t(s),i[1]=o(l)}}if(r&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=r(o[2]),o[3]=i(o[3])}}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=r(o[2])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=i(o[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=o(e.ymin),e.xmax=t(e.xmax),e.ymax=o(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let s,l;for(let e=0,r=n.length;e<r;e++){const r=n[e];e>0?(s+=r[0],l+=r[1]):(s=r[0],l=r[1]),r[0]=t(s),r[1]=o(l)}if(r&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2]),t[3]=i(t[3])}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}}:null}};(0,i._)([(0,y.Cb)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,i._)([(0,y.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,i._)([(0,y.Cb)({type:[s.Z],json:{write:!0}})],v.prototype,"features",void 0),(0,i._)([(0,m.r)("features")],v.prototype,"readFeatures",null),(0,i._)([(0,y.Cb)({type:[h.Z],json:{write:!0}})],v.prototype,"fields",void 0),(0,i._)([(0,y.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,i._)([(0,f.c)("geometryType")],v.prototype,"writeGeometryType",null),(0,i._)([(0,y.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,i._)([(0,y.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,i._)([(0,y.Cb)({types:n.qM,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,i._)([(0,m.r)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,i._)([(0,y.Cb)({type:c.Z,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,i._)([(0,f.c)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,i._)([(0,y.Cb)({json:{write:!0}})],v.prototype,"transform",void 0),v=r=(0,i._)([(0,u.j)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const S=v},58333:(e,t,o)=>{o.d(t,{ET:()=>n,I4:()=>i,eG:()=>a,lF:()=>s,lj:()=>y,qP:()=>l,wW:()=>p});const r=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r},s={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},p={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},y={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8518],{68668:(e,t,r)=>{r.d(t,{G:()=>o,w:()=>l});var i=r(66643),s=r(46791),n=r(83379);async function o(e,t){return await e.load(),l(e,t)}async function l(e,t){const r=[],o=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?o(...t):s.Z.isCollection(t)?t.forEach((e=>o(e))):n.Z.isLoadable(t)&&r.push(t))};t(o);let l=null;if(await(0,i.UI)(r,(async e=>{const t=await(0,i.q6)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||l||(l=t)})),l)throw l.error;return e}},30359:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_e});var i=r(43697),s=r(46791),n=r(20102),o=r(3920),l=r(68668),a=r(16453),u=r(95330),p=r(17445),d=r(42033),y=r(81271),c=r(5600),h=(r(75215),r(67676),r(80442),r(71715)),b=r(52011),f=r(31263),g=r(87085),m=r(54295),v=r(17287),w=r(71612),C=r(17017),S=r(66361),_=r(53713),F=r(38009),I=r(16859),O=r(34760),j=r(72965),E=r(28294),T=r(66677),L=r(21506),Z=r(50957),x=r(53518),A=r(35671),P=r(96674),G=r(30556),R=r(72729);let q=class extends P.wq{constructor(){super(...arguments),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const r of Object.keys(e))t[r]=(0,R.im)(e[r]);return t}writeDomains(e,t){if(!e)return;const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i._)([(0,c.Cb)({type:Number,json:{write:!0}})],q.prototype,"code",void 0),(0,i._)([(0,c.Cb)({type:Object,json:{write:!0}})],q.prototype,"defaultValues",void 0),(0,i._)([(0,c.Cb)({json:{write:!0}})],q.prototype,"domains",void 0),(0,i._)([(0,h.r)("domains")],q.prototype,"readDomains",null),(0,i._)([(0,G.c)("domains")],q.prototype,"writeDomains",null),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],q.prototype,"name",void 0),q=(0,i._)([(0,b.j)("esri.layers.support.Subtype")],q);const D=q;var k=r(51773),V=r(16050),M=(r(12501),r(28756),r(92271),r(72529),r(5499)),N=r(84382),$=r(81571),U=(r(91423),r(10699)),Q=r(22974),z=r(83379),H=r(92604),J=r(78286),B=r(63213),Y=r(55343),K=r(70082),W=r(54306),X=r(30707),ee=r(14165),te=r(32163),re=r(28412);const ie=["charts","editingEnabled","formTemplate","labelsVisible","labelingInfo","legendEnabled","minScale","maxScale","opacity","popupEnabled","popupTemplate","renderer","subtypeCode","templates","title","visible"],se={key:"type",base:M.Z,errorContext:"renderer",typeMap:{simple:N.Z,"unique-value":$.Z,"class-breaks":V.Z}},ne=(0,x.v)(),oe=(0,B.d)({types:se});let le=0;function ae(e){const t=e.json.write;return"object"==typeof t?t.ignoreOrigin=!0:e.json.write={ignoreOrigin:!0},e}function ue(e){switch(e){case"point":case"multipoint":return re.xA.clone();case"polyline":return re.CJ.clone();case"polygon":case"multipatch":return re.z3.clone();default:return null}}function pe(e,t){return null==e?null:t.subtypes?.find((t=>t.code===e))}function de(e,t){let r=null;switch(t.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":r="point";break;case"esriGeometryPolyline":r="line";break;case"esriGeometryPolygon":case"esriGeometryMultiPatch":r="polygon";break;default:t.type,r=null}const i={},s=pe(e,t);if(null!=s){const{defaultValues:e}=s;for(const t in e)i[t]=e[t]}return i[t.subtypeField]=e,new K.Z({name:"New Feature",drawingTool:r,prototype:{attributes:i}})}const ye="esri.layers.support.SubtypeSublayer";let ce=class extends((0,o.p)((0,a.R)((0,U.IG)(z.Z)))){constructor(e){super(e),this.charts=null,this.editingEnabled=!0,this.fieldOverrides=null,this.fieldsIndex=null,this.formTemplate=null,this.id=`${Date.now().toString(16)}-subtype-sublayer-${le++}`,this.type="subtype-sublayer",this.labelsVisible=!0,this.labelingInfo=null,this.layerType="ArcGISFeatureLayer",this.legendEnabled=!0,this.listMode="show",this.minScale=0,this.maxScale=0,this.opacity=1,this.parent=null,this.popupEnabled=!0,this.popupTemplate=null,this.subtypeCode=null,this.templates=null,this.title=null,this.visible=!0}get capabilities(){return this.parent?.capabilities}get effectiveCapabilities(){return this.parent?.effectiveCapabilities}get effectiveEditingEnabled(){const{parent:e}=this;return e?e.effectiveEditingEnabled&&this.editingEnabled:this.editingEnabled}get elevationInfo(){return this.parent?.elevationInfo}writeFieldOverrides(e,t,r){const{fields:i,parent:s}=this;let n;if(i){n=[];let e=0;i.forEach((({name:t,alias:r,editable:i,visible:o})=>{if(!o)return;const l=s?.fields?.find((e=>e.name===t));if(!l)return;const a={name:t};let u=!1;r!==l.alias&&(a.alias=r,u=!0),i!==l.editable&&(a.editable=i,u=!0),n.push(a),u&&e++})),0===e&&n.length===i.length&&(n=null)}else n=(0,Q.d9)(e);n?.length&&(0,J.RB)(r,n,t)}get fields(){const{parent:e,fieldOverrides:t,subtypeCode:r}=this,i=e?.fields;if(!e||!i?.length)return null;const{subtypes:s,subtypeField:n}=e,o=s?.find((e=>e.code===r)),l=o?.defaultValues,a=o?.domains,u=[];for(const e of i){const i=e.clone(),{name:s}=i,o=t?.find((e=>e.name===s));if(i.visible=!t||!!o,o){const{alias:e,editable:t}=o;e&&(i.alias=e),!1===t&&(i.editable=!1)}const p=l?.[s]??null;i.defaultValue=s===n?r:p;const d=a?.[s]??null;i.domain=s===n?null:d?"inherited"===d.type?i.domain:d.clone():null,u.push(i)}return u}get geometryType(){return this.parent?.geometryType}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get objectIdField(){return this.parent||H.Z.getLogger(ye).error(be("objectIdField")),this.parent?.objectIdField}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,A.YN)(e,this.fieldsIndex),this._override("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");const{parent:e}=this;return e&&!e.isTable&&"mesh"!==e.geometryType?function(e){return new N.Z({symbol:ue(e)})}(e.geometryType):null}readRendererFromService(e,t,r){if("Table"===t.type)return null;const i=t.drawingInfo?.renderer,s=oe(i,t,r);let n;const{subtypeCode:o}=this;if(null!=o&&function(e,t){return!(!t||"unique-value"!==e?.type||"string"!=typeof e.field||e.field.toLowerCase()!==t.toLowerCase()||e.field2||e.field3||e.valueExpression)}(s,t.subtypeField)){const e=s.uniqueValueInfos?.find((({value:e})=>(e="number"==typeof e?String(e):e)===String(o)));e&&(n=new N.Z({symbol:e.symbol}))}else"simple"!==s?.type||s.visualVariables?.length||(n=s);return n}readRenderer(e,t,r){const i=t?.layerDefinition?.drawingInfo?.renderer;if(!i)return;const s=i.visualVariables?.some((e=>"rotationInfo"!==e.type));return s?void 0:oe(i,t,r)||void 0}get spatialReference(){return this.parent?.spatialReference}readTemplatesFromService(e,t){return[de(this.subtypeCode,t)]}readTitleFromService(e,t){const r=pe(this.subtypeCode,t);return null!=r?r.name:null}get url(){return this.parent?.url}get userHasUpdateItemPrivileges(){return!!this.parent?.userHasUpdateItemPrivileges}async addAttachment(e,t){const{parent:r}=this;if(!r)throw be("addAttachment");if(e.getAttribute(r.subtypeField)!==this.subtypeCode)throw new n.Z("subtype-sublayer:addAttachment","The feature provided does not belong to this SubtypeSublayer");return r.addAttachment(e,t)}async updateAttachment(e,t,r){const{parent:i}=this;if(!i)throw be("updateAttachment");if(e.getAttribute(i.subtypeField)!==this.subtypeCode)throw new n.Z("subtype-sublayer:updateAttachment","The feature provided does not belong to this SubtypeSublayer");return i.updateAttachment(e,t,r)}async deleteAttachments(e,t){const{parent:r}=this;if(!r)throw be("deleteAttachments");if(e.getAttribute(r.subtypeField)!==this.subtypeCode)throw new n.Z("subtype-sublayer:deleteAttachments","The feature provided does not belong to this SubtypeSublayer");return r.deleteAttachments(e,t)}async applyEdits(e,t){if(!this.parent)throw be("applyEdits");return this.parent.applyEdits(e,t)}createPopupTemplate(e){let t=this;const{parent:r,fields:i,title:s}=this;if(r){const{displayField:e,editFieldsInfo:n,objectIdField:o}=r;t={displayField:e,editFieldsInfo:n,fields:i,objectIdField:o,title:s}}return(0,te.eZ)(t,e)}createQuery(){if(!this.parent)throw be("createQuery");const e=(0,Z.rP)(this.parent),t=`${this.parent.subtypeField}=${this.subtypeCode}`;return e.where=(0,d._)(t,this.parent.definitionExpression),e}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e){return this._getLayerDomain(e)}hasUserOverrides(){return ie.some((e=>this.originIdOf(e)===f.s3.USER))}async queryAttachments(e,t){const r=await this.load();if(!r.parent)throw be("queryAttachments");const i=e.clone();return i.where=he(i.where,r.parent.subtypeField,r.subtypeCode),r.parent.queryAttachments(e,t)}async queryFeatures(e,t){const r=await this.load();if(!r.parent)throw be("queryFeatures");const i=ee.Z.from(e)??r.createQuery();return null!=e&&(i.where=he(i.where,r.parent.subtypeField,r.subtypeCode)),r.parent.queryFeatures(i,t)}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}};(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],ce.prototype,"capabilities",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],ce.prototype,"effectiveCapabilities",null),(0,i._)([(0,c.Cb)({json:{write:{ignoreOrigin:!0}}})],ce.prototype,"charts",void 0),(0,i._)([(0,c.Cb)({type:Boolean,nonNullable:!0,json:{name:"enableEditing",write:{ignoreOrigin:!0}}})],ce.prototype,"editingEnabled",void 0),(0,i._)([(0,c.Cb)({type:Boolean,readOnly:!0})],ce.prototype,"effectiveEditingEnabled",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],ce.prototype,"elevationInfo",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{name:"layerDefinition.fieldOverrides",origins:{service:{read:!1}},write:{ignoreOrigin:!0,allowNull:!0}}})],ce.prototype,"fieldOverrides",void 0),(0,i._)([(0,G.c)("fieldOverrides")],ce.prototype,"writeFieldOverrides",null),(0,i._)([(0,c.Cb)({...ne.fields,readOnly:!0,json:{read:!1}})],ce.prototype,"fields",null),(0,i._)([(0,c.Cb)(ne.fieldsIndex)],ce.prototype,"fieldsIndex",void 0),(0,i._)([(0,c.Cb)({type:Y.Z,json:{name:"formInfo",write:{ignoreOrigin:!0}}})],ce.prototype,"formTemplate",void 0),(0,i._)([(0,c.Cb)({type:String,readOnly:!0,json:{origins:{service:{read:!1}},write:{ignoreOrigin:!0}}})],ce.prototype,"id",void 0),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],ce.prototype,"geometryType",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],ce.prototype,"type",void 0),(0,i._)([(0,c.Cb)(ae((0,Q.d9)(L.iR)))],ce.prototype,"labelsVisible",void 0),(0,i._)([(0,c.Cb)({type:[W.Z],json:{name:"layerDefinition.drawingInfo.labelingInfo",origins:{service:{read:!1}},read:{reader:X.r},write:{ignoreOrigin:!0}}})],ce.prototype,"labelingInfo",void 0),(0,i._)([(0,c.Cb)({type:["ArcGISFeatureLayer"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],ce.prototype,"layerType",void 0),(0,i._)([(0,c.Cb)(ae((0,Q.d9)(L.rn)))],ce.prototype,"legendEnabled",void 0),(0,i._)([(0,c.Cb)({type:["show","hide"]})],ce.prototype,"listMode",void 0),(0,i._)([(0,c.Cb)((()=>{const e=(0,Q.d9)(L.rO);return e.json.origins.service.read=!1,ae(e)})())],ce.prototype,"minScale",void 0),(0,i._)([(0,c.Cb)((()=>{const e=(0,Q.d9)(L.u1);return e.json.origins.service.read=!1,ae(e)})())],ce.prototype,"maxScale",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],ce.prototype,"effectiveScaleRange",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],ce.prototype,"objectIdField",null),(0,i._)([(0,c.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{write:{ignoreOrigin:!0}}})],ce.prototype,"opacity",void 0),(0,i._)([(0,c.Cb)()],ce.prototype,"parent",void 0),(0,i._)([(0,c.Cb)(ae((0,Q.d9)(L.C_)))],ce.prototype,"popupEnabled",void 0),(0,i._)([(0,c.Cb)({type:k.Z,json:{name:"popupInfo",write:{ignoreOrigin:!0}}})],ce.prototype,"popupTemplate",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],ce.prototype,"defaultPopupTemplate",null),(0,i._)([(0,c.Cb)({types:se,json:{write:{target:"layerDefinition.drawingInfo.renderer",ignoreOrigin:!0}}})],ce.prototype,"renderer",null),(0,i._)([(0,h.r)("service","renderer",["drawingInfo.renderer","subtypeField","type"])],ce.prototype,"readRendererFromService",null),(0,i._)([(0,h.r)("renderer",["layerDefinition.drawingInfo.renderer"])],ce.prototype,"readRenderer",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],ce.prototype,"spatialReference",null),(0,i._)([(0,c.Cb)({type:Number,json:{origins:{service:{read:!1}},write:{ignoreOrigin:!0}}})],ce.prototype,"subtypeCode",void 0),(0,i._)([(0,c.Cb)({type:[K.Z],json:{name:"layerDefinition.templates",write:{ignoreOrigin:!0}}})],ce.prototype,"templates",void 0),(0,i._)([(0,h.r)("service","templates",["geometryType","subtypeField","subtypes","type"])],ce.prototype,"readTemplatesFromService",null),(0,i._)([(0,c.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ce.prototype,"title",void 0),(0,i._)([(0,h.r)("service","title",["subtypes"])],ce.prototype,"readTitleFromService",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],ce.prototype,"url",null),(0,i._)([(0,c.Cb)({readOnly:!0})],ce.prototype,"userHasUpdateItemPrivileges",null),(0,i._)([(0,c.Cb)({type:Boolean,nonNullable:!0,json:{name:"visibility",write:{ignoreOrigin:!0}}})],ce.prototype,"visible",void 0),ce=(0,i._)([(0,b.j)(ye)],ce);const he=(e,t,r)=>{const i=new RegExp(`${t}\\s*=\\s*\\d+`),s=`${t}=${r}`,n=e??"";return i.test(n)?n.replace(i,s):(0,d._)(s,n)},be=e=>new n.Z(`This sublayer must have a parent SubtypeGroupLayer in order to use ${e}`),fe=ce;var ge=r(76259),me=r(60199);const ve="SubtypeGroupLayer";function we(e,t){return new n.Z("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}const Ce=(0,x.v)();let Se=class extends((0,_.B)((0,S.o1)((0,w.h)((0,E.n)((0,j.M)((0,O.Q)((0,v.Y)((0,F.q)((0,I.I)((0,a.R)((0,C.N)((0,m.V)((0,o.p)(g.Z)))))))))))))){constructor(...e){super(...e),this._sublayersCollectionChanged=!1,this._sublayerLookup=new Map,this.fields=null,this.fieldsIndex=null,this.outFields=null,this.subtypes=null,this.sublayers=new(s.Z.ofType(fe)),this.timeInfo=null,this.title="Layer",this.type="subtype-group",this.addHandles((0,p.YP)((()=>this.sublayers),((e,t)=>this._handleSublayersChange(e,t)),p.Z_))}destroy(){this.source?.destroy()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(u.r9).then((async()=>{if(!this.url)throw new n.Z("subtype-grouplayer:missing-url-or-source","SubtypeGroupLayer must be created with either a url or a portal item");if(null==this.layerId)throw new n.Z("subtype-grouplayer:missing-layerid","layerId is required for a SubtypeGroupLayer created with url");return this._initLayerProperties(await this.createGraphicsSource(t))})).then((()=>this._setUserPrivileges(this.serviceItemId,e))).then((()=>(0,Z.nU)(this,e)));return this.addResolvingPromise(r),Promise.resolve(this)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get effectiveEditingEnabled(){return(0,Z.sX)(this)}get parsedUrl(){const e=(0,y.mN)(this.url);return null!=e&&null!=this.layerId&&(e.path=(0,y.v_)(e.path,this.layerId.toString())),e}set source(e){this._get("source")!==e&&this._set("source",e)}readTitleFromService(e,{name:t}){return this.url?(0,T.a7)(this.url,t):t}async addAttachment(e,t){return(0,Z.JD)(this,e,t,ve)}async updateAttachment(e,t,r){return(0,Z.Y5)(this,e,t,r,ve)}async applyEdits(e,t){return(0,Z.Jj)(this,e,t)}on(e,t){return super.on(e,t)}async createGraphicsSource(e){const{default:t}=await(0,u.Hl)(Promise.all([r.e(4599),r.e(3919),r.e(8949)]).then(r.bind(r,73919)),e);return new t({layer:this}).load({signal:e})}createQuery(){const e=(0,Z.rP)(this),t=this.sublayers.map((e=>e.subtypeCode));return e.where=(0,d._)(`${this.subtypeField} IN (${t.join(",")})`,this.definitionExpression),e}async deleteAttachments(e,t){return(0,Z.FV)(this,e,t,ve)}async fetchRecomputedExtents(e){return(0,Z.Ci)(this,e,ve)}findSublayerForFeature(e){const t=this.fieldsIndex.get(this.subtypeField),r=e.attributes[t.name];return this.findSublayerForSubtypeCode(r)}findSublayerForSubtypeCode(e){return this._sublayerLookup.get(e)}getFieldDomain(e,t){return this._getLayerDomain(e)}getField(e){return this.fieldsIndex.get(e)}loadAll(){return(0,l.G)(this,(e=>{e(this.sublayers)}))}async queryAttachments(e,t){return(0,Z.SU)(this,e,t,ve)}async queryFeatures(e,t){const r=await this.load(),i=ee.Z.from(e)??r.createQuery(),s=i.outFields??[];s.includes(this.subtypeField)||(s.push(this.subtypeField),i.outFields=s);const n=await r.source.queryFeatures(i,t);if(n?.features)for(const e of n.features)e.layer=e.sourceLayer=this.findSublayerForFeature(e);return n}async queryObjectIds(e,t){return(0,Z.tD)(this,e,t,ve)}async queryFeatureCount(e,t){return(0,Z.VG)(this,e,t,ve)}async queryExtent(e,t){return(0,Z.KE)(this,e,t,ve)}async queryRelatedFeatures(e,t){return(0,Z.kp)(this,e,t,ve)}async queryRelatedFeaturesCount(e,t){return(0,Z.C9)(this,e,t,ve)}write(e,t){const{origin:r,layerContainerType:i,messages:s}=t;if(this.isTable){if("web-scene"===r||"web-map"===r&&"tables"!==i)return s?.push(we(this,"using a table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&"web-map"===r&&"tables"===i)return s?.push(we(this,"using a non-table source cannot be written to tables in web maps")),null;return this.sublayers?.length?super.write(e,t):(s?.push(new n.Z("web-document-write:invalid-property",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' has invalid value for 'sublayers' property. 'sublayers' collection should contain at least one sublayer`,{layer:this})),null)}serviceSupportsSpatialReference(e){return!!this.loaded&&(0,me.D)(this,e)}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}async _initLayerProperties(e){this._set("source",e);const{sourceJSON:t}=e;if(t&&(this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})),this.isTable)throw new n.Z("subtype-grouplayer:unsupported-source","SubtypeGroupLayer cannot be created using a layer with table source");if(!this.subtypes?.length)throw new n.Z("subtype-grouplayer:missing-subtypes","SubtypeGroupLayer must be created using a layer with subtypes");this._verifyFields(),(0,A.UF)(this.timeInfo,this.fieldsIndex)}async hasDataChanged(){return(0,Z.gG)(this)}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("SubtypeGroupLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some((e=>"geometry"===e.type))||console.log("SubtypeGroupLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_handleSublayersChange(e,t){t&&(t.forEach((e=>{e.parent=null})),this.handles.remove("sublayers-owner"),this._sublayerLookup.clear()),e&&(e.forEach((e=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)})),this._sublayersCollectionChanged=!1,this.handles.add([e.on("after-add",(({item:e})=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)})),e.on("after-remove",(({item:e})=>{e.parent=null,this._sublayerLookup.delete(e.subtypeCode)})),e.on("after-changes",(()=>{this._sublayersCollectionChanged=!0}))],"sublayers-owner"))}};(0,i._)([(0,c.Cb)({readOnly:!0})],Se.prototype,"createQueryVersion",null),(0,i._)([(0,c.Cb)({readOnly:!0})],Se.prototype,"editingEnabled",null),(0,i._)([(0,c.Cb)({readOnly:!0})],Se.prototype,"effectiveEditingEnabled",null),(0,i._)([(0,c.Cb)({...Ce.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Se.prototype,"fields",void 0),(0,i._)([(0,c.Cb)(Ce.fieldsIndex)],Se.prototype,"fieldsIndex",void 0),(0,i._)([(0,c.Cb)(L.id)],Se.prototype,"id",void 0),(0,i._)([(0,c.Cb)({type:["show","hide","hide-children"]})],Se.prototype,"listMode",void 0),(0,i._)([(0,c.Cb)({value:"SubtypeGroupLayer",type:["SubtypeGroupLayer"]})],Se.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.Cb)(Ce.outFields)],Se.prototype,"outFields",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],Se.prototype,"parsedUrl",null),(0,i._)([(0,c.Cb)()],Se.prototype,"source",null),(0,i._)([(0,c.Cb)({type:[D],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Se.prototype,"subtypes",void 0),(0,i._)([(0,c.Cb)({type:s.Z.ofType(fe),json:{origins:{service:{read:{source:"subtypes",reader:(e,t,r)=>{const i=e.map((({code:e})=>{const i=new fe({subtypeCode:e});return i.read(t,r),i}));return new(s.Z.ofType(fe))(i)}}}},name:"layers",write:{overridePolicy(e,t,r){const i=this.originOf("sublayers"),s=f.s3.PORTAL_ITEM;let n=!0;if((0,f.M9)(i)===s&&(0,f.M9)(r.origin)>s){const t=e.some((e=>e.hasUserOverrides()));n=this._sublayersCollectionChanged||t}return{enabled:n,ignoreOrigin:!0}}}}})],Se.prototype,"sublayers",void 0),(0,i._)([(0,c.Cb)({type:ge.Z})],Se.prototype,"timeInfo",void 0),(0,i._)([(0,c.Cb)({json:{origins:{"portal-item":{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0}}}}})],Se.prototype,"title",void 0),(0,i._)([(0,h.r)("service","title",["name"])],Se.prototype,"readTitleFromService",null),(0,i._)([(0,c.Cb)({json:{read:!1}})],Se.prototype,"type",void 0),Se=(0,i._)([(0,b.j)("esri.layers.SubtypeGroupLayer")],Se);const _e=Se},58333:(e,t,r)=>{r.d(t,{ET:()=>n,I4:()=>s,eG:()=>a,lF:()=>o,lj:()=>p,qP:()=>l,wW:()=>u});const i=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},p={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5825,2442],{37140:(e,t,r)=>{function n(){const e=new Float32Array(4);return e[3]=1,e}function o(e){const t=new Float32Array(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}r.d(t,{b:()=>o,c:()=>n}),Object.freeze(Object.defineProperty({__proto__:null,clone:o,create:n,createView:function(e,t){return new Float32Array(e,t,4)},fromValues:function(e,t,r,n){const o=new Float32Array(4);return o[0]=e,o[1]=t,o[2]=r,o[3]=n,o}},Symbol.toStringTag,{value:"Module"}))},58995:(e,t,r)=>{r.d(t,{rS:()=>u});var n=r(2109),o=r(82971),i=r(8744);const s=new o.Z(n.kU),a=new o.Z(n.JL),l=new o.Z(n.mM);function u(e){return e&&((0,i.BZ)(e)||(0,i.fS)(e,a))?a:e&&((0,i.V2)(e)||(0,i.fS)(e,l))?l:s}new o.Z(n.pn)},62073:(e,t,r)=>{r(22021),r(17896);var n,o,i=r(65617);r(29268),r(61277),r(12981),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(o=n||(n={}))[o.NONE=0]="NONE",o[o.CLAMP=1]="CLAMP",o[o.INFINITE_MIN=4]="INFINITE_MIN",o[o.INFINITE_MAX=8]="INFINITE_MAX",n.INFINITE_MIN,n.INFINITE_MAX,n.INFINITE_MAX},16451:(e,t,r)=>{r.d(t,{Z:()=>f});var n=r(43697),o=r(2368),i=r(96674),s=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),u=r(30556),c=r(72729),p=r(70082);let d=class extends((0,o.J)(i.wq)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,c.im)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,n._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"id",void 0),(0,n._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"name",void 0),(0,n._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"domains",void 0),(0,n._)([(0,a.r)("domains")],d.prototype,"readDomains",null),(0,n._)([(0,u.c)("domains")],d.prototype,"writeDomains",null),(0,n._)([(0,s.Cb)({type:[p.Z],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,n._)([(0,l.j)("esri.layers.support.FeatureType")],d);const f=d},14147:(e,t,r)=>{r.d(t,{W:()=>u});var n=r(40330),o=r(3172),i=r(95330),s=r(19238),a=r(48522),l=r(15235);class u{constructor(e,t,r,n){this._parsedUrl=e,this._portalItem=t,this._apiKey=r,this.signal=n,this._rootDocument=null;const o=this._parsedUrl?.path.match(/^(.*)\/SceneServer\/layers\/([\d]*)\/?$/i);o&&(this._urlParts={root:o[1],layerId:parseInt(o[2],10)})}async fetch(){if(!this._urlParts)return null;const e=this._portalItem??await this._portalItemFromServiceItemId();if(null==e)return this._loadFromUrl();const t=await this._findAndLoadRelatedPortalItem(e);return null==t?null:this._loadFeatureLayerFromPortalItem(t)}async fetchPortalItem(){if(!this._urlParts)return null;const e=this._portalItem??await this._portalItemFromServiceItemId();return null==e?null:this._findAndLoadRelatedPortalItem(e)}async _fetchRootDocument(){if(null!=this._rootDocument)return this._rootDocument;if(null==this._urlParts)return this._rootDocument={},{};const e={query:{f:"json",token:this._apiKey},responseType:"json",signal:this.signal},t=`${this._urlParts.root}/SceneServer`;try{const r=await(0,o.default)(t,e);this._rootDocument=r.data}catch{this._rootDocument={}}return this._rootDocument}async _fetchServiceOwningPortalUrl(){const e=this._parsedUrl?.path,t=e?n.id?.findServerInfo(e):null;if(t?.owningSystemUrl)return t.owningSystemUrl;const r=e?e.replace(/(.*\/rest)\/.*/i,"$1")+"/info":null;try{const e=(await(0,o.default)(r,{query:{f:"json"},responseType:"json",signal:this.signal})).data.owningSystemUrl;if(e)return e}catch(e){(0,i.r9)(e)}return null}async _findAndLoadRelatedPortalItem(e){try{return(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:this.signal})).find((e=>"Feature Service"===e.type))||null}catch(e){return(0,i.r9)(e),null}}async _loadFeatureLayerFromPortalItem(e){await e.load({signal:this.signal});const t=await this._findMatchingAssociatedSublayerUrl(e.url??"");return new s.default({url:t,portalItem:e}).load({signal:this.signal})}async _loadFromUrl(){const e=await this._findMatchingAssociatedSublayerUrl(`${this._urlParts?.root}/FeatureServer`);return new s.default({url:e}).load({signal:this.signal})}async _findMatchingAssociatedSublayerUrl(e){const t=e.replace(/^(.*FeatureServer)(\/[\d]*\/?)?$/i,"$1"),r=this._urlParts?.layerId,n=this._fetchRootDocument(),i=e=>{const r={query:{f:"json"},responseType:"json",authMode:e,signal:this.signal};return(0,o.default)(t,r)},s=i("anonymous").catch((()=>i("no-prompt"))),[a,l]=await Promise.all([s,n]),u=l&&l.layers,c=a.data&&a.data.layers;if(!Array.isArray(c))throw new Error("expected layers array");if(Array.isArray(u)){for(let e=0;e<Math.min(u.length,c.length);e++)if(u[e].id===r)return`${t}/${c[e].id}`}else if(null!=r&&r<c.length)return`${t}/${c[r].id}`;throw new Error("could not find matching associated sublayer")}async _portalItemFromServiceItemId(){const e=(await this._fetchRootDocument()).serviceItemId;if(!e)return null;const t=new l.default({id:e,apiKey:this._apiKey}),r=await this._fetchServiceOwningPortalUrl();null!=r&&(t.portal=new a.Z({url:r}));try{return t.load({signal:this.signal})}catch(e){return(0,i.r9)(e),null}}}},15506:(e,t,r)=>{r.d(t,{C:()=>n});const n={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},28694:(e,t,r)=>{r.d(t,{p:()=>o});var n=r(69285);function o(e,t,r){if(!r||!r.features||!r.hasZ)return;const o=(0,n.k)(r.geometryType,t,e.outSpatialReference);if(null!=o)for(const e of r.features)o(e.geometry)}},74889:(e,t,r)=>{r.d(t,{Z:()=>b});var n,o=r(43697),i=r(66577),s=r(38171),a=r(35454),l=r(96674),u=r(22974),c=r(5600),p=(r(75215),r(71715)),d=r(52011),f=r(30556),y=r(82971),h=r(33955),m=r(1231);const g=new a.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=y.Z.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const o=e[t],i=s.Z.fromJSON(o),a=o.geometry&&o.geometry.spatialReference;null==i.geometry||a||(i.geometry.spatialReference=r);const l=o.aggregateGeometries,u=i.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],n=l[e],o=n?.spatialReference;null==t||o||(t.spatialReference=r)}n.push(i)}return n}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);const{features:o}=this;if(o)for(const e of o)if(e&&null!=e.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,h.im)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=y.Z.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,u.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e&&e[r];n.geometry=t&&t.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,o]}=e,i=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((o-e)/r)));for(let e=0,t=i.length;e<t;e++)s?.(i[e].geometry)||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,o],scale:[i,s]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*i+n),(e=>o-e*s),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let n,o;const i=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=r(a[1]);e===n&&s===o||(i.push([e-n,s-o]),n=e,o=s)}else n=t(a[0]),o=r(a[1]),i.push([n,o])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,h.oU)(e)?e.rings:e.paths,o=[];for(let e=0,i=n.length;e<i;e++){const i=n[e],s=this._quantizePoints(i,t,r);s&&o.push(s)}return o.length>0?((0,h.oU)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const i=(0,h.oU)(e)?e.rings:e.paths;let s,a;for(let e=0,n=i.length;e<n;e++){const n=i[e];for(let e=0,o=n.length;e<o;e++){const o=n[e];e>0?(s+=o[0],a+=o[1]):(s=o[0],a=o[1]),o[0]=t(s),o[1]=r(a)}}if(n&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2]),r[3]=o(r[3])}}else if(n)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const i=e.points;let s,a;for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(s+=n[0],a+=n[1]):(s=n[0],a=n[1]),n[0]=t(s),n[1]=r(a)}if(n&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=n(t[2]),t[3]=o(t[3])}else if(n)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=n(t[2])}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=o(t[2])}}:null}};(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,o._)([(0,c.Cb)({type:[s.Z],json:{write:!0}})],w.prototype,"features",void 0),(0,o._)([(0,p.r)("features")],w.prototype,"readFeatures",null),(0,o._)([(0,c.Cb)({type:[m.Z],json:{write:!0}})],w.prototype,"fields",void 0),(0,o._)([(0,c.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,o._)([(0,f.c)("geometryType")],w.prototype,"writeGeometryType",null),(0,o._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,o._)([(0,c.Cb)({types:i.qM,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,o._)([(0,p.r)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,o._)([(0,c.Cb)({type:y.Z,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,o._)([(0,f.c)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,o._)([(0,c.Cb)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,o._)([(0,d.j)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const b=w},58333:(e,t,r)=>{r.d(t,{ET:()=>i,I4:()=>o,eG:()=>l,lF:()=>s,lj:()=>c,qP:()=>a,wW:()=>u});const n=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},i={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n},s={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},91891:(e,t,r)=>{r.d(t,{I_:()=>d,W7:()=>h,qM:()=>g});var n=r(20102),o=r(22974),i=r(92604),s=r(25683),a=r(35065);const l=i.Z.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function u(e,t,r){let o="",i=0;for(;i<r;){const s=e[t+i];if(s<128)o+=String.fromCharCode(s),i++;else if(s>=192&&s<224){if(i+1>=r)throw new n.Z("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const a=(31&s)<<6|63&e[t+i+1];o+=String.fromCharCode(a),i+=2}else if(s>=224&&s<240){if(i+2>=r)throw new n.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(15&s)<<12|(63&e[t+i+1])<<6|63&e[t+i+2];o+=String.fromCharCode(a),i+=3}else{if(!(s>=240&&s<248))throw new n.Z("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=r)throw new n.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(7&s)<<18|(63&e[t+i+1])<<12|(63&e[t+i+2])<<6|63&e[t+i+3];if(a>=65536){const e=55296+(a-65536>>10),t=56320+(1023&a);o+=String.fromCharCode(e,t)}else o+=String.fromCharCode(a);i+=4}}}return o}function c(e,t){const r={byteOffset:0,byteCount:0,fields:Object.create(null)};let n=0;for(let o=0;o<t.length;o++){const i=t[o],s=i.valueType||i.type,a=b[s];r.fields[i.property]=a(e,n),n+=w[s].BYTES_PER_ELEMENT}return r.byteCount=n,r}function p(e,t,r){const o=[];let i,s,a=0;for(s=0;s<e;s+=1){if(i=t[s],i>0){if(o.push(u(r,a,i-1)),0!==r[a+i-1])throw new n.Z("string-array-error","Invalid string array: missing null termination.")}else o.push(null);a+=i}return o}function d(e,t){return new(0,w[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function f(e,t,r){const i=null!=t.header?c(e,t.header):{byteOffset:0,byteCount:0,fields:{count:r}},s={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)};let a=i.byteCount;for(let e=0;e<t.ordering.length;e++){const r=t.ordering[e],l=(0,o.d9)(t[r]);if(l.count=i.fields.count??0,"String"===l.valueType){if(l.byteOffset=a,l.byteCount=i.fields[r+"ByteCount"],"UTF-8"!==l.encoding)throw new n.Z("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new n.Z("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!S(l.valueType))throw new n.Z("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{const e=I(l.valueType);a+=a%e!=0?e-a%e:0,l.byteOffset=a,l.byteCount=e*l.valuesPerElement*l.count}}a+=l.byteCount??0,s.entries[r]=l}return s.byteCount=a-s.byteOffset,s}function y(e,t,r){if(t!==e&&l.error(`Invalid ${r} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new n.Z("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function h(e,t){const r=c(e,t&&t.header);let n=r.byteCount;const o={isDraco:!1,header:r,byteOffset:r.byteCount,byteCount:0,vertexAttributes:{}},i=r.fields,s=null!=i.vertexCount?i.vertexCount:i.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const r={...t.vertexAttributes[e],byteOffset:n,count:s},i=m[e]||"_"+e;o.vertexAttributes[i]=r,n+=I(r.valueType)*r.valuesPerElement*s}const a=i.faceCount;if(t.faces&&a){o.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const r={...t.faces[e],byteOffset:n,count:a};o.faces[e]=r,n+=I(r.valueType)*r.valuesPerElement*a}}const l=i.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&l){o.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const r={...t.featureAttributes[e],byteOffset:n,count:l};o.featureAttributes[e]=r,n+=("UInt64"===r.valueType?8:I(r.valueType))*r.valuesPerElement*l}}return y(n,e.byteLength,"geometry"),o.byteCount=n-o.byteOffset,o}const m={position:a.T.POSITION,normal:a.T.NORMAL,color:a.T.COLOR,uv0:a.T.UV0,region:a.T.UVREGION};function g(e,t,r){if("lepcc-rgb"===e.encoding)return(0,s.IT)(t);if("lepcc-intensity"===e.encoding)return(0,s.ti)(t);if(null!=e.encoding&&""!==e.encoding)throw new n.Z("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(l.warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(l.warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");const o=f(t,e,r);y(o.byteOffset+o.byteCount,t.byteLength,"attribute");const i=o.entries.attributeValues||o.entries.objectIds;if(i){if("String"===i.valueType){const e=o.entries.attributeByteCounts,r=d(t,e),n=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,i);return i.timeEncoding?function(e,t,r){return p(e,t,r).map((e=>{const t=e?Date.parse(e):null;return t&&!Number.isNaN(t)?t:null}))}(e.count,r,n):p(e.count,r,n)}return d(t,i)}throw new n.Z("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const w={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},b={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function S(e){return w.hasOwnProperty(e)}function I(e){return S(e)?w[e].BYTES_PER_ELEMENT:0}},77397:(e,t,r)=>{r.d(t,{xe:()=>S});var n=r(3172),o=(r(67676),r(20102),r(80442),r(95330)),i=r(1533),s=(r(21787),r(46521)),a=(r(52138),r(13598)),l=(r(51305),r(37140)),u=(r(17896),r(65617)),c=(r(2109),r(44547),r(82971),r(58995),r(24470)),p=(r(8744),r(14165),r(91891));r(22303);var d,f,y=r(88669);(f=d||(d={}))[f.INVISIBLE=0]="INVISIBLE",f[f.TRANSPARENT=1]="TRANSPARENT",f[f.OPAQUE=2]="OPAQUE";(0,y.f)(0,0,0,.2),d.OPAQUE;(0,y.f)(0,0,0,.2),d.OPAQUE,r(6206);var h=r(94961),m=r(72119);r(98766),r(60437),r(62073),r(64822),(0,h.a)(),(0,u.c)(),(0,u.c)(),(0,y.c)(),(0,s.c)(),(()=>{const e=new Int8Array(162);let t=0;const r=r=>{for(let n=0;n<r.length;n++)e[t+n]=r[n];t+=6};r([6,2,3,1,5,4]),r([0,2,3,1,5,4]),r([0,2,3,7,5,4]),r([0,1,3,2,6,4]),r([0,1,3,2,0,0]),r([0,1,5,7,3,2]),r([0,1,3,7,6,4]),r([0,1,3,7,6,2]),r([0,1,5,7,6,2]),r([0,1,5,4,6,2]),r([0,1,5,4,0,0]),r([0,1,3,7,5,4]),r([0,2,6,4,0,0]),r([0,0,0,0,0,0]),r([1,3,7,5,0,0]),r([2,3,7,6,4,0]),r([2,3,7,6,0,0]),r([2,3,1,5,7,6]),r([0,1,5,7,6,2]),r([0,1,5,7,6,4]),r([0,1,3,7,6,4]),r([4,5,7,6,2,0]),r([4,5,7,6,0,0]),r([4,5,1,3,7,6]),r([0,2,3,7,5,4]),r([6,2,3,7,5,4]),r([6,2,3,1,5,4])})(),(0,u.c)(),(0,u.c)(),(0,u.c)(),(0,h.a)();var g,w,b=r(51417);function S(e,t,r,i,s){const a=[];for(const n of t)if(n&&s.includes(n.name)){const t=`${e}/nodes/${r}/attributes/${n.key}/0`;a.push({url:t,storageInfo:n})}return(0,o.as)(a.map((e=>(0,n.default)(e.url,{responseType:"array-buffer"}).then((t=>(0,p.qM)(e.storageInfo,t.data)))))).then((e=>{const t=[];for(const r of i){const n={};for(let t=0;t<e.length;t++){const o=e[t].value;null!=o&&(n[a[t].storageInfo.name]=v(o,r))}t.push(n)}return t}))}(0,c.Ue)(),(w=g||(g={}))[w.OUTSIDE=0]="OUTSIDE",w[w.INTERSECTS_CENTER_OUTSIDE=1]="INTERSECTS_CENTER_OUTSIDE",w[w.INTERSECTS_CENTER_INSIDE=2]="INTERSECTS_CENTER_INSIDE",w[w.INSIDE=3]="INSIDE";const I=-32768,C=-(2**31);function v(e,t){if(!e)return null;const r=e[t];return(0,i.z3)(e)?r===I?null:r:(0,i.Hx)(e)?r===C?null:r:r!=r?null:r}const T=new Array(24);new b.a(T,3,!0),(0,u.c)(),(0,u.c)(),(0,s.c)(),(0,a.c)(),(0,l.c)(),(0,c.Ue)(),(0,c.Ue)(),function(e=[0,0,0],t=[-1,-1,-1],r=(0,h.a)()){(0,u.a)(e),(0,m.b)(t),(0,l.b)(r)}(),(0,u.c)(),new Array(72),(0,a.c)()},25683:(e,t,r)=>{r.d(t,{Gi:()=>u,IT:()=>y,ti:()=>g});var n=r(20102);const o=!0,i={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function s(e,t,r){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,r+i.identifierOffset,i.identifierLength)),version:t.getUint16(r+i.versionOffset,o),checksum:t.getUint32(r+i.checksumOffset,o)}}const a={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function l(e,t){return{sizeLo:e.getUint32(t+a.sizeLo,o),sizeHi:e.getUint32(t+a.sizeHi,o),minX:e.getFloat64(t+a.minX,o),minY:e.getFloat64(t+a.minY,o),minZ:e.getFloat64(t+a.minZ,o),maxX:e.getFloat64(t+a.maxX,o),maxY:e.getFloat64(t+a.maxY,o),maxZ:e.getFloat64(t+a.maxZ,o),errorX:e.getFloat64(t+a.errorX,o),errorY:e.getFloat64(t+a.errorY,o),errorZ:e.getFloat64(t+a.errorZ,o),count:e.getUint32(t+a.count,o),reserved:e.getUint32(t+a.reserved,o)}}function u(e){const t=new DataView(e,0);let r=0;const{identifier:o,version:u}=s(e,t,r);if(r+=i.byteCount,"LEPCC "!==o)throw new n.Z("lepcc-decode-error","Bad identifier");if(u>1)throw new n.Z("lepcc-decode-error","Unknown version");const p=l(t,r);if(r+=a.byteCount,p.sizeHi*2**32+p.sizeLo!==e.byteLength)throw new n.Z("lepcc-decode-error","Bad size");const d=new Float64Array(3*p.count),f=[],y=[],h=[],m=[];if(r=c(e,r,f),r=c(e,r,y),r=c(e,r,h),r=c(e,r,m),r!==e.byteLength)throw new n.Z("lepcc-decode-error","Bad length");let g=0,w=0;for(let e=0;e<f.length;e++){w+=f[e];let t=0;for(let r=0;r<y[e];r++){t+=h[g];const e=m[g];d[3*g]=Math.min(p.maxX,p.minX+2*p.errorX*t),d[3*g+1]=Math.min(p.maxY,p.minY+2*p.errorY*w),d[3*g+2]=Math.min(p.maxZ,p.minZ+2*p.errorZ*e),g++}}return{errorX:p.errorX,errorY:p.errorY,errorZ:p.errorZ,result:d}}function c(e,t,r){const n=[];t=p(e,t,n);const o=[];for(let i=0;i<n.length;i++){o.length=0,t=p(e,t,o);for(let e=0;e<o.length;e++)r.push(o[e]+n[i])}return t}function p(e,t,r){const i=new DataView(e,t),s=i.getUint8(0),a=31&s,l=!!(32&s),u=(192&s)>>6;let c=0;if(0===u)c=i.getUint32(1,o),t+=5;else if(1===u)c=i.getUint16(1,o),t+=3;else{if(2!==u)throw new n.Z("lepcc-decode-error","Bad count type");c=i.getUint8(1),t+=2}if(l)throw new n.Z("lepcc-decode-error","LUT not implemented");const p=Math.ceil(c*a/8),d=new Uint8Array(e,t,p);let f=0,y=0,h=0;const m=-1>>>32-a;for(let e=0;e<c;e++){for(;y<a;)f|=d[h]<<y,y+=8,h+=1;r[e]=f&m,f>>>=a,y-=a,y+a>32&&(f|=d[h-1]>>8-y)}return t+h}const d={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function f(e,t){return{sizeLo:e.getUint32(t+d.sizeLo,o),sizeHi:e.getUint32(t+d.sizeHi,o),count:e.getUint32(t+d.count,o),colorMapCount:e.getUint16(t+d.colorMapCount,o),lookupMethod:e.getUint8(t+d.lookupMethod),compressionMethod:e.getUint8(t+d.compressionMethod)}}function y(e){const t=new DataView(e,0);let r=0;const{identifier:o,version:a}=s(e,t,r);if(r+=i.byteCount,"ClusterRGB"!==o)throw new n.Z("lepcc-decode-error","Bad identifier");if(a>1)throw new n.Z("lepcc-decode-error","Unknown version");const l=f(t,r);if(r+=d.byteCount,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new n.Z("lepcc-decode-error","Bad size");if((2===l.lookupMethod||1===l.lookupMethod)&&0===l.compressionMethod){if(3*l.colorMapCount+l.count+r!==e.byteLength||l.colorMapCount>256)throw new n.Z("lepcc-decode-error","Bad count");const t=new Uint8Array(e,r,3*l.colorMapCount),o=new Uint8Array(e,r+3*l.colorMapCount,l.count),i=new Uint8Array(3*l.count);for(let e=0;e<l.count;e++){const r=o[e];i[3*e]=t[3*r],i[3*e+1]=t[3*r+1],i[3*e+2]=t[3*r+2]}return i}if(0===l.lookupMethod&&0===l.compressionMethod){if(3*l.count+r!==e.byteLength||0!==l.colorMapCount)throw new n.Z("lepcc-decode-error","Bad count");return new Uint8Array(e,r).slice()}if(l.lookupMethod<=2&&1===l.compressionMethod){if(r+3!==e.byteLength||1!==l.colorMapCount)throw new n.Z("lepcc-decode-error","Bad count");const o=t.getUint8(r),i=t.getUint8(r+1),s=t.getUint8(r+2),a=new Uint8Array(3*l.count);for(let e=0;e<l.count;e++)a[3*e]=o,a[3*e+1]=i,a[3*e+2]=s;return a}throw new n.Z("lepcc-decode-error","Bad method "+l.lookupMethod+","+l.compressionMethod)}const h={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function m(e,t){return{sizeLo:e.getUint32(t+h.sizeLo,o),sizeHi:e.getUint32(t+h.sizeHi,o),count:e.getUint32(t+h.count,o),scaleFactor:e.getUint16(t+h.scaleFactor,o),bitsPerPoint:e.getUint8(t+h.bitsPerPoint),reserved:e.getUint8(t+h.reserved)}}function g(e){const t=new DataView(e,0);let r=0;const{identifier:o,version:a}=s(e,t,r);if(r+=i.byteCount,"Intensity "!==o)throw new n.Z("lepcc-decode-error","Bad identifier");if(a>1)throw new n.Z("lepcc-decode-error","Unknown version");const l=m(t,r);if(r+=h.byteCount,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new n.Z("lepcc-decode-error","Bad size");const u=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+r!==e.byteLength)throw new n.Z("lepcc-decode-error","Bad size");const t=new Uint8Array(e,r,l.count);for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+r!==e.byteLength)throw new n.Z("lepcc-decode-error","Bad size");const t=new Uint16Array(e,r,l.count);for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}else{const t=[];if(p(e,r,t)!==e.byteLength)throw new n.Z("lepcc-decode-error","Bad size");for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}return u}},19833:(e,t,r)=>{r.d(t,{V5:()=>i,e7:()=>o});var n=r(35671);async function o(e,t=e.popupTemplate){if(null==t)return[];const r=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:o}=t,{objectIdField:i,typeIdField:s,globalIdField:a,relationships:l}=e;if(r.includes("*"))return["*"];const u=o?await(0,n.CH)(e):[],c=(0,n.Q0)(e.fieldsIndex,[...r,...u]);return s&&c.push(s),c&&i&&e.fieldsIndex?.has(i)&&!c.includes(i)&&c.push(i),c&&a&&e.fieldsIndex?.has(a)&&!c.includes(a)&&c.push(a),l&&l.forEach((t=>{const{keyField:r}=t;c&&r&&e.fieldsIndex?.has(r)&&!c.includes(r)&&c.push(r)})),c}function i(e,t){return e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&null!=e.defaultPopupTemplate?e.defaultPopupTemplate:null}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9173,3172,5732,661,5234,9880],{99880:(t,e,n)=>{n.d(e,{V:()=>c});var r=n(68773),o=(n(3172),n(20102)),s=n(92604),a=n(81271);const i=s.Z.getLogger("esri.assets");function c(t){if(!r.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_)(r.default.assetsPath,t)}},5732:(t,e,n)=>{n.d(e,{c:()=>r,g:()=>o});var r="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,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,s,a,i,c){return[t,e,n,r,o,s,a,i,c]}function s(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>s,c:()=>r,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:r,createView:s,fromValues:o},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,n)=>{n.d(e,{A:()=>p,a:()=>c,d:()=>m,e:()=>d,f:()=>f,g:()=>b,h:()=>x,i:()=>a,j:()=>w,k:()=>u,m:()=>l,s:()=>s,t:()=>i,w:()=>h,y:()=>v,z:()=>_});var r=n(65617),o=n(46851);function s(t,e,n,r,o,s,a,i,c,l,h,u,d,f,m,p,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=a,t[6]=i,t[7]=c,t[8]=l,t[9]=h,t[10]=u,t[11]=d,t[12]=f,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 n=e[1],r=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]=n,t[6]=e[9],t[7]=e[13],t[8]=r,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 n=e[0],r=e[1],o=e[2],s=e[3],a=e[4],i=e[5],c=e[6],l=e[7],h=e[8],u=e[9],d=e[10],f=e[11],m=e[12],p=e[13],g=e[14],M=e[15],b=n*i-r*a,y=n*c-o*a,x=n*l-s*a,w=r*c-o*i,_=r*l-s*i,v=o*l-s*c,q=h*p-u*m,O=h*g-d*m,T=h*M-f*m,S=u*g-d*p,E=u*M-f*p,P=d*M-f*g;let B=b*P-y*E+x*S+w*T-_*O+v*q;return B?(B=1/B,t[0]=(i*P-c*E+l*S)*B,t[1]=(o*E-r*P-s*S)*B,t[2]=(p*v-g*_+M*w)*B,t[3]=(d*_-u*v-f*w)*B,t[4]=(c*T-a*P-l*O)*B,t[5]=(n*P-o*T+s*O)*B,t[6]=(g*x-m*v-M*y)*B,t[7]=(h*v-d*x+f*y)*B,t[8]=(a*E-i*T+l*q)*B,t[9]=(r*T-n*E-s*q)*B,t[10]=(m*_-p*x+M*b)*B,t[11]=(u*x-h*_-f*b)*B,t[12]=(i*O-a*S-c*q)*B,t[13]=(n*S-r*O+o*q)*B,t[14]=(p*y-m*w-g*b)*B,t[15]=(h*w-u*y+d*b)*B,t):null}function l(t,e,n){const r=e[0],o=e[1],s=e[2],a=e[3],i=e[4],c=e[5],l=e[6],h=e[7],u=e[8],d=e[9],f=e[10],m=e[11],p=e[12],g=e[13],M=e[14],b=e[15];let y=n[0],x=n[1],w=n[2],_=n[3];return t[0]=y*r+x*i+w*u+_*p,t[1]=y*o+x*c+w*d+_*g,t[2]=y*s+x*l+w*f+_*M,t[3]=y*a+x*h+w*m+_*b,y=n[4],x=n[5],w=n[6],_=n[7],t[4]=y*r+x*i+w*u+_*p,t[5]=y*o+x*c+w*d+_*g,t[6]=y*s+x*l+w*f+_*M,t[7]=y*a+x*h+w*m+_*b,y=n[8],x=n[9],w=n[10],_=n[11],t[8]=y*r+x*i+w*u+_*p,t[9]=y*o+x*c+w*d+_*g,t[10]=y*s+x*l+w*f+_*M,t[11]=y*a+x*h+w*m+_*b,y=n[12],x=n[13],w=n[14],_=n[15],t[12]=y*r+x*i+w*u+_*p,t[13]=y*o+x*c+w*d+_*g,t[14]=y*s+x*l+w*f+_*M,t[15]=y*a+x*h+w*m+_*b,t}function h(t,e,n){const r=n[0],o=n[1],s=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*s+e[12],t[13]=e[1]*r+e[5]*o+e[9]*s+e[13],t[14]=e[2]*r+e[6]*o+e[10]*s+e[14],t[15]=e[3]*r+e[7]*o+e[11]*s+e[15];else{const n=e[0],a=e[1],i=e[2],c=e[3],l=e[4],h=e[5],u=e[6],d=e[7],f=e[8],m=e[9],p=e[10],g=e[11];t[0]=n,t[1]=a,t[2]=i,t[3]=c,t[4]=l,t[5]=h,t[6]=u,t[7]=d,t[8]=f,t[9]=m,t[10]=p,t[11]=g,t[12]=n*r+l*o+f*s+e[12],t[13]=a*r+h*o+m*s+e[13],t[14]=i*r+u*o+p*s+e[14],t[15]=c*r+d*o+g*s+e[15]}return t}function u(t,e,n){const r=n[0],o=n[1],s=n[2];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]*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 d(t,e,n,r){let s,a,i,c,l,h,u,d,f,m,p,g,M,b,y,x,w,_,v,q,O,T,S,E,P=r[0],B=r[1],k=r[2],C=Math.sqrt(P*P+B*B+k*k);return C<(0,o.g)()?null:(C=1/C,P*=C,B*=C,k*=C,s=Math.sin(n),a=Math.cos(n),i=1-a,c=e[0],l=e[1],h=e[2],u=e[3],d=e[4],f=e[5],m=e[6],p=e[7],g=e[8],M=e[9],b=e[10],y=e[11],x=P*P*i+a,w=B*P*i+k*s,_=k*P*i-B*s,v=P*B*i-k*s,q=B*B*i+a,O=k*B*i+P*s,T=P*k*i+B*s,S=B*k*i-P*s,E=k*k*i+a,t[0]=c*x+d*w+g*_,t[1]=l*x+f*w+M*_,t[2]=h*x+m*w+b*_,t[3]=u*x+p*w+y*_,t[4]=c*v+d*q+g*O,t[5]=l*v+f*q+M*O,t[6]=h*v+m*q+b*O,t[7]=u*v+p*q+y*O,t[8]=c*T+d*S+g*E,t[9]=l*T+f*S+M*E,t[10]=h*T+m*S+b*E,t[11]=u*T+p*S+y*E,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function f(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,n){if(0===e)return a(t);let r,s,i,c=n[0],l=n[1],h=n[2],u=Math.sqrt(c*c+l*l+h*h);return u<(0,o.g)()?null:(u=1/u,c*=u,l*=u,h*=u,r=Math.sin(e),s=Math.cos(e),i=1-s,t[0]=c*c*i+s,t[1]=l*c*i+h*r,t[2]=h*c*i-l*r,t[3]=0,t[4]=c*l*i-h*r,t[5]=l*l*i+s,t[6]=h*l*i+c*r,t[7]=0,t[8]=c*h*i+l*r,t[9]=l*h*i-c*r,t[10]=h*h*i+s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function p(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e,n){const r=e[0],o=e[1],s=e[2],a=e[3],i=r+r,c=o+o,l=s+s,h=r*i,u=r*c,d=r*l,f=o*c,m=o*l,p=s*l,g=a*i,M=a*c,b=a*l;return t[0]=1-(f+p),t[1]=u+b,t[2]=d-M,t[3]=0,t[4]=u-b,t[5]=1-(h+p),t[6]=m+g,t[7]=0,t[8]=d+M,t[9]=m-g,t[10]=1-(h+f),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const M=(0,r.c)();function b(t,e,n,r){const o=e[0],s=e[1],a=e[2],i=e[3],c=o+o,l=s+s,h=a+a,u=o*c,d=o*l,f=o*h,m=s*l,p=s*h,g=a*h,M=i*c,b=i*l,y=i*h,x=r[0],w=r[1],_=r[2];return t[0]=(1-(m+g))*x,t[1]=(d+y)*x,t[2]=(f-b)*x,t[3]=0,t[4]=(d-y)*w,t[5]=(1-(u+g))*w,t[6]=(p+M)*w,t[7]=0,t[8]=(f+b)*_,t[9]=(p-M)*_,t[10]=(1-(u+m))*_,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function y(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[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 n=t[0],r=t[1],s=t[2],a=t[3],i=t[4],c=t[5],l=t[6],h=t[7],u=t[8],d=t[9],f=t[10],m=t[11],p=t[12],g=t[13],M=t[14],b=t[15],y=e[0],x=e[1],w=e[2],_=e[3],v=e[4],q=e[5],O=e[6],T=e[7],S=e[8],E=e[9],P=e[10],B=e[11],k=e[12],C=e[13],A=e[14],Y=e[15],j=(0,o.g)();return Math.abs(n-y)<=j*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-x)<=j*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(s-w)<=j*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(a-_)<=j*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(i-v)<=j*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(c-q)<=j*Math.max(1,Math.abs(c),Math.abs(q))&&Math.abs(l-O)<=j*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(h-T)<=j*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(u-S)<=j*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(d-E)<=j*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(f-P)<=j*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(m-B)<=j*Math.max(1,Math.abs(m),Math.abs(B))&&Math.abs(p-k)<=j*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(g-C)<=j*Math.max(1,Math.abs(g),Math.abs(C))&&Math.abs(M-A)<=j*Math.max(1,Math.abs(M),Math.abs(A))&&Math.abs(b-Y)<=j*Math.max(1,Math.abs(b),Math.abs(Y))}function _(t){const e=(0,o.g)(),n=t[0],r=t[1],s=t[2],a=t[4],i=t[5],c=t[6],l=t[8],h=t[9],u=t[10];return Math.abs(1-(n*n+a*a+l*l))<=e&&Math.abs(1-(r*r+i*i+h*h))<=e&&Math.abs(1-(s*s+c*c+u*u))<=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 q=l,O=y;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],a=e[4],i=e[5],c=e[6],l=e[7],h=e[8],u=e[9],d=e[10],f=e[11],m=e[12],p=e[13],g=e[14],M=e[15];return t[0]=i*(d*M-f*g)-u*(c*M-l*g)+p*(c*f-l*d),t[1]=-(r*(d*M-f*g)-u*(o*M-s*g)+p*(o*f-s*d)),t[2]=r*(c*M-l*g)-i*(o*M-s*g)+p*(o*l-s*c),t[3]=-(r*(c*f-l*d)-i*(o*f-s*d)+u*(o*l-s*c)),t[4]=-(a*(d*M-f*g)-h*(c*M-l*g)+m*(c*f-l*d)),t[5]=n*(d*M-f*g)-h*(o*M-s*g)+m*(o*f-s*d),t[6]=-(n*(c*M-l*g)-a*(o*M-s*g)+m*(o*l-s*c)),t[7]=n*(c*f-l*d)-a*(o*f-s*d)+h*(o*l-s*c),t[8]=a*(u*M-f*p)-h*(i*M-l*p)+m*(i*f-l*u),t[9]=-(n*(u*M-f*p)-h*(r*M-s*p)+m*(r*f-s*u)),t[10]=n*(i*M-l*p)-a*(r*M-s*p)+m*(r*l-s*i),t[11]=-(n*(i*f-l*u)-a*(r*f-s*u)+h*(r*l-s*i)),t[12]=-(a*(u*g-d*p)-h*(i*g-c*p)+m*(i*d-c*u)),t[13]=n*(u*g-d*p)-h*(r*g-o*p)+m*(r*d-o*u),t[14]=-(n*(i*g-c*p)-a*(r*g-o*p)+m*(r*c-o*i)),t[15]=n*(i*d-c*u)-a*(r*d-o*u)+h*(r*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],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],i=t[6],c=t[7],l=t[8],h=t[9],u=t[10],d=t[11],f=t[12],m=t[13],p=t[14],g=t[15];return(e*a-n*s)*(u*g-d*p)-(e*i-r*s)*(h*g-d*m)+(e*c-o*s)*(h*p-u*m)+(n*i-r*a)*(l*g-d*f)-(n*c-o*a)*(l*p-u*f)+(r*c-o*i)*(l*m-h*f)},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 n=e[0],r=e[1],o=e[2],s=e[3],a=n+n,i=r+r,c=o+o,l=n*a,h=r*a,u=r*i,d=o*a,f=o*i,m=o*c,p=s*a,g=s*i,M=s*c;return t[0]=1-u-m,t[1]=h+M,t[2]=d-g,t[3]=0,t[4]=h-M,t[5]=1-l-m,t[6]=f+p,t[7]=0,t[8]=d+g,t[9]=f-p,t[10]=1-l-u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=M,r=-e[0],o=-e[1],s=-e[2],a=e[3],i=e[4],c=e[5],l=e[6],h=e[7],u=r*r+o*o+s*s+a*a;return u>0?(n[0]=2*(i*a+h*r+c*s-l*o)/u,n[1]=2*(c*a+h*o+l*r-i*s)/u,n[2]=2*(l*a+h*s+i*o-c*r)/u):(n[0]=2*(i*a+h*r+c*s-l*o),n[1]=2*(c*a+h*o+l*r-i*s),n[2]=2*(l*a+h*s+i*o-c*r)),g(t,e,n),t},fromRotation:m,fromRotationTranslation:g,fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(t,e,n,r,o){const s=e[0],a=e[1],i=e[2],c=e[3],l=s+s,h=a+a,u=i+i,d=s*l,f=s*h,m=s*u,p=a*h,g=a*u,M=i*u,b=c*l,y=c*h,x=c*u,w=r[0],_=r[1],v=r[2],q=o[0],O=o[1],T=o[2],S=(1-(p+M))*w,E=(f+x)*w,P=(m-y)*w,B=(f-x)*_,k=(1-(d+M))*_,C=(g+b)*_,A=(m+y)*v,Y=(g-b)*v,j=(1-(d+p))*v;return t[0]=S,t[1]=E,t[2]=P,t[3]=0,t[4]=B,t[5]=k,t[6]=C,t[7]=0,t[8]=A,t[9]=Y,t[10]=j,t[11]=0,t[12]=n[0]+q-(S*q+B*O+A*T),t[13]=n[1]+O-(E*q+k*O+Y*T),t[14]=n[2]+T-(P*q+C*O+j*T),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:f,fromXRotation:p,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,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,n,r,o,s,a){const i=1/(n-e),c=1/(o-r),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]=(n+e)*i,t[9]=(o+r)*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 n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},getScaling:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[4],a=e[5],i=e[6],c=e[8],l=e[9],h=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(s*s+a*a+i*i),t[2]=Math.sqrt(c*c+l*l+h*h),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,n,r){const s=e[0],i=e[1],c=e[2];let l=s-n[0],h=i-n[1],u=c-n[2];const d=(0,o.g)();if(Math.abs(l)<d&&Math.abs(h)<d&&Math.abs(u)<d)return void a(t);let f=1/Math.sqrt(l*l+h*h+u*u);l*=f,h*=f,u*=f;const m=r[0],p=r[1],g=r[2];let M=p*u-g*h,b=g*l-m*u,y=m*h-p*l;f=Math.sqrt(M*M+b*b+y*y),f?(f=1/f,M*=f,b*=f,y*=f):(M=0,b=0,y=0);let x=h*y-u*b,w=u*M-l*y,_=l*b-h*M;f=Math.sqrt(x*x+w*w+_*_),f?(f=1/f,x*=f,w*=f,_*=f):(x=0,w=0,_=0),t[0]=M,t[1]=x,t[2]=l,t[3]=0,t[4]=b,t[5]=w,t[6]=h,t[7]=0,t[8]=y,t[9]=_,t[10]=u,t[11]=0,t[12]=-(M*s+b*i+y*c),t[13]=-(x*s+w*i+_*c),t[14]=-(l*s+h*i+u*c),t[15]=1},mul:q,multiply:l,multiplyScalar:function(t,e,n){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]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,s,a){const i=1/(e-n),c=1/(r-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+n)*i,t[13]=(o+r)*c,t[14]=(a+s)*l,t[15]=1,t},perspective:function(t,e,n,r,o){const s=1/Math.tan(e/2);let a;return t[0]=s/n,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/(r-o),t[10]=(o+r)*a,t[14]=2*o*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){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]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[4],a=e[5],i=e[6],c=e[7],l=e[8],h=e[9],u=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*o+l*r,t[5]=a*o+h*r,t[6]=i*o+u*r,t[7]=c*o+d*r,t[8]=l*o-s*r,t[9]=h*o-a*r,t[10]=u*o-i*r,t[11]=d*o-c*r,t},rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],a=e[1],i=e[2],c=e[3],l=e[8],h=e[9],u=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o-l*r,t[1]=a*o-h*r,t[2]=i*o-u*r,t[3]=c*o-d*r,t[8]=s*r+l*o,t[9]=a*r+h*o,t[10]=i*r+u*o,t[11]=c*r+d*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],a=e[1],i=e[2],c=e[3],l=e[4],h=e[5],u=e[6],d=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o+l*r,t[1]=a*o+h*r,t[2]=i*o+u*r,t[3]=c*o+d*r,t[4]=l*o-s*r,t[5]=h*o-a*r,t[6]=u*o-i*r,t[7]=d*o-c*r,t},scale:u,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:O,subtract:y,targetTo:function(t,e,n,r){const o=e[0],s=e[1],a=e[2],i=r[0],c=r[1],l=r[2];let h=o-n[0],u=s-n[1],d=a-n[2],f=h*h+u*u+d*d;f>0&&(f=1/Math.sqrt(f),h*=f,u*=f,d*=f);let m=c*d-l*u,p=l*h-i*d,g=i*u-c*h;return f=m*m+p*p+g*g,f>0&&(f=1/Math.sqrt(f),m*=f,p*=f,g*=f),t[0]=m,t[1]=p,t[2]=g,t[3]=0,t[4]=u*g-d*p,t[5]=d*m-h*g,t[6]=h*p-u*m,t[7]=0,t[8]=h,t[9]=u,t[10]=d,t[11]=0,t[12]=o,t[13]=s,t[14]=a,t[15]=1,t},translate:h,transpose:i},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function r(){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)}n.d(e,{I:()=>a,a:()=>s,b:()=>o,c:()=>r});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:r,createView:s,fromValues:function(t,e,n,r,o,s,a,i,c,l,h,u,d,f,m,p){return[t,e,n,r,o,s,a,i,c,l,h,u,d,f,m,p]}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function r(){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)}n.d(e,{I:()=>a,a:()=>r,b:()=>o,c:()=>s});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,createView:s,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},88764:(t,e,n)=>{n.d(e,{q:()=>c});var r,o,s,a=n(5732),i={exports:{}};r=i,o=function(){function t(n,r,o,s,a){for(;s>o;){if(s-o>600){var i=s-o+1,c=r-o+1,l=Math.log(i),h=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*h*(i-h)/i)*(c-i/2<0?-1:1);t(n,r,Math.max(o,Math.floor(r-c*h/i+u)),Math.min(s,Math.floor(r+(i-c)*h/i+u)),a)}var d=n[r],f=o,m=s;for(e(n,o,r),a(n[s],d)>0&&e(n,o,s);f<m;){for(e(n,f,m),f++,m--;a(n[f],d)<0;)f++;for(;a(n[m],d)>0;)m--}0===a(n[o],d)?e(n,o,m):e(n,++m,s),m<=r&&(o=m+1),r<=m&&(s=m-1)}}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}return function(e,r,o,s,a){t(e,r,o||0,s||e.length-1,a||n)}},void 0!==(s=o())&&(r.exports=s);const c=(0,a.g)(i.exports)},2368:(t,e,n)=>{n.d(e,{J:()=>h,j:()=>u});var r=n(43697),o=n(92036),s=(n(80442),n(22974)),a=(n(92604),n(70586)),i=n(31263),c=n(1153),l=n(52011);const h=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,n=t.store,r={},o=new Map;for(const t in e){const a=e[t],c=n?.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 h=this[t];let u=null;u="function"==typeof l?l(h):"reference"===l?h:(0,s.Vo)(h),null!=h&&null==u||(c===i.s3.DEFAULTS?o.set(t,u):r[t]=u)}const l=new(0,Object.getPrototypeOf(this).constructor)(r);if(o.size){const t=(0,c.vw)(l)?.store;if(t)for(const[e,n]of o)t.set(e,n,i.s3.DEFAULTS)}return l}};return e=(0,r._)([(0,l.j)("esri.core.Clonable")],e),e};let u=class extends(h(o.Z)){};u=(0,r._)([(0,l.j)("esri.core.Clonable")],u)},10661:(t,e,n)=>{n.d(e,{s:()=>o});var r=n(42100);class o extends r.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,n)=>{n.d(e,{Q:()=>i});var r=n(67676),o=n(70586),s=n(44553),a=n(88764);class i{constructor(t=9,e){this._compareMinX=u,this._compareMinY=d,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 n=this._data;const r=this._toBBox;if(b(t,n))for(x.clear();n;){for(let o=0,s=n.children.length;o<s;o++){const s=n.children[o],a=n.leaf?r(s):s;b(t,a)&&(n.leaf?e(s):M(t,a)?this._all(s,e):x.push(s))}n=x.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!b(t,e))return!1;for(x.clear();e;){for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],s=e.leaf?n(o):o;if(b(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,n=t.length;e<n;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 T([]),this}remove(t){if(!t)return this;let e,n=this._data,s=null,a=0,i=!1;const c=this._toBBox(t);for(_.clear(),v.clear();n||_.length>0;){if(n||(n=(0,o.j0)(_.pop()),s=_.data[_.length-1],a=v.pop()??0,i=!0),n.leaf&&(e=(0,r.cq)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),_.push(n),this._condense(_),this;i||n.leaf||!M(n,c)?s?(a++,n=s.children[a],i=!1):n=null:(_.push(n),v.push(a),a=0,s=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(w.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else w.pushArray(n.children);n=w.pop()??null}}_build(t,e,n,r){const o=n-e+1;let s=this._maxEntries;if(o<=s){const r=new T(t.slice(e,n+1));return c(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/s**(r-1)));const a=new S([]);a.height=r;const i=Math.ceil(o/s),l=i*Math.ceil(Math.sqrt(s));y(t,e,n,l,this._compareMinX);for(let o=e;o<=n;o+=l){const e=Math.min(o+l-1,n);y(t,o,e,i,this._compareMinY);for(let n=o;n<=e;n+=i){const o=Math.min(n+i-1,e);a.children.push(this._build(t,n,o,r-1))}}return c(a,this._toBBox),a}_chooseSubtree(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,o=1/0;for(let s=0,a=e.children.length;s<a;s++){const a=e.children[s],i=f(a),c=p(t,a)-i;c<o?(o=c,r=i<r?i:r,n=a):c===o&&i<r&&(r=i,n=a)}e=n||e.children[0]}return e}_insert(t,e,n){const r=this._toBBox,o=n?t:r(t);_.clear();const s=this._chooseSubtree(o,this._data,e,_);for(s.children.push(t),h(s,o);e>=0&&_.data[e].children.length>this._maxEntries;)this._split(_,e),e--;this._adjustParentBBoxes(o,_,e)}_split(t,e){const n=t.data[e],r=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,r);const s=this._chooseSplitIndex(n,o,r);if(!s)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const a=n.children.splice(s,n.children.length-s),i=n.leaf?new T(a):new S(a);i.height=n.height,c(n,this._toBBox),c(i,this._toBBox),e?t.data[e-1].children.push(i):this._splitRoot(n,i)}_splitRoot(t,e){this._data=new S([t,e]),this._data.height=t.height+1,c(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,o,s;r=o=1/0;for(let a=e;a<=n-e;a++){const e=l(t,0,a,this._toBBox),i=l(t,a,n,this._toBBox),c=g(e,i),h=f(e)+f(i);c<r?(r=c,s=a,o=h<o?h:o):c===r&&h<o&&(o=h,s=a)}return s}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:u,o=t.leaf?this._compareMinY:d;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,o)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const o=this._toBBox,s=l(t,0,e,o),a=l(t,n-e,n,o);let i=m(s)+m(a);for(let r=e;r<n-e;r++){const e=t.children[r];h(s,t.leaf?o(e):e),i+=m(s)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];h(a,t.leaf?o(e):e),i+=m(a)}return i}_adjustParentBBoxes(t,e,n){for(let r=n;r>=0;r--)h(e.data[r],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const o=t.data[e-1],s=o.children;s.splice((0,r.cq)(s,n,s.length,o.indexHint),1)}else this.clear();else c(n,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,n,r,o){o||(o=new T([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let s,a=e;a<n;a++)s=t.children[a],h(o,t.leaf?r(s):s);return o}function h(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 u(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function f(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 n=Math.max(t.minX,e.minX),r=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-n)*Math.max(0,s-r)}function M(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function b(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function y(t,e,n,r,s){const i=[e,n];for(;i.length;){const e=(0,o.j0)(i.pop()),n=(0,o.j0)(i.pop());if(e-n<=r)continue;const c=n+Math.ceil((e-n)/r/2)*r;(0,a.q)(t,c,n,e,s),i.push(n,c,c,e)}}const x=new s.Z,w=new s.Z,_=new s.Z,v=new s.Z({deallocator:void 0});class q{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class O extends q{constructor(){super(...arguments),this.height=1,this.indexHint=new r.SO}}class T extends O{constructor(t){super(),this.children=t,this.leaf=!0}}class S extends O{constructor(t){super(),this.children=t,this.leaf=!1}}},83025:(t,e,n)=>{n.d(e,{JK:()=>i,QZ:()=>s,Rq:()=>a,bg:()=>o,mB:()=>c});var r=n(1533);function o(t,e=!1){return t<=r.DB?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function s(t){return((0,r.kJ)(t)?t.length:t.byteLength/8)<=r.DB?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function i(t,e){for(let n=0;n<e.length;++n)t[n]=e[n];return t}function c(t){return Array.isArray(t)?new Float64Array(t):t}},85872:(t,e,n)=>{n.d(e,{Z:()=>d});var r=n(43697),o=n(2368),s=n(96674),a=n(5600),i=(n(75215),n(67676),n(80442),n(36030)),c=n(52011),l=n(65617),h=n(94139);let u=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,n,r]=this.origin;return new h.Z({x:e,y:n,z:r,spatialReference:t})}setOriginFormPoint({x:t,y:e,z:n}){this.origin=(0,l.f)(t,e,n??0)}};(0,r._)([(0,i.J)({georeferencedRelative:"georeferenced-relative"},{readOnly:!0})],u.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r._)([(0,c.j)("esri.geometry.support.MeshGeoreferencedRelativeVertexSpace")],u);const d=u},50567:(t,e,n)=>{n.d(e,{Z:()=>l});var r=n(43697),o=n(2368),s=n(96674),a=(n(92604),n(75215),n(67676),n(80442),n(20102),n(36030)),i=n(52011);let c=class extends((0,o.J)(s.wq)){constructor(){super({}),this.type="georeferenced",this.isRelative=!1,this.isGeoreferenced=!0}};(0,r._)([(0,a.J)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,r._)([(0,i.j)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c);const l=c},84555:(t,e,n)=>{n.d(e,{Z:()=>d});var r=n(43697),o=n(2368),s=n(96674),a=n(5600),i=(n(75215),n(67676),n(80442),n(36030)),c=n(52011),l=n(65617),h=n(94139);let u=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,n,r]=this.origin;return new h.Z({x:e,y:n,z:r,spatialReference:t})}setOriginFormPoint({x:t,y:e,z:n}){this.origin=(0,l.f)(t,e,n??0)}};(0,r._)([(0,i.J)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r._)([(0,c.j)("esri.geometry.support.MeshLocalVertexSpace")],u);const d=u},61787:(t,e,n)=>{n.r(e),n.d(e,{default:()=>a});var r=n(80442),o=n(24133),s=n(66459);class a{async createIndex(t,e){const n=new Array;if(!t.vertexAttributes||!t.vertexAttributes.position)return new o.Q;const r=this._createMeshData(t),s=null!=e?await e.invoke("createIndexThread",r,{transferList:n}):this.createIndexThread(r).result;return this._createPooledRBush().fromJSON(s)}createIndexThread(t){const e=new Float64Array(t.position),n=this._createPooledRBush();return t.components?this._createIndexComponentsThread(n,e,t.components.map((t=>new Uint32Array(t)))):this._createIndexAllThread(n,e)}_createIndexAllThread(t,e){const n=new Array(e.length/9);let r=0;for(let t=0;t<e.length;t+=9)n[r++]=i(e,t,t+3,t+6);return t.load(n),{result:t.toJSON()}}_createIndexComponentsThread(t,e,n){let r=0;for(const t of n)r+=t.length/3;const o=new Array(r);let s=0;for(const t of n)for(let n=0;n<t.length;n+=3)o[s++]=i(e,3*t[n],3*t[n+1],3*t[n+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,r.Z)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}}function i(t,e,n,r){return{minX:Math.min(t[e],t[n],t[r]),maxX:Math.max(t[e],t[n],t[r]),minY:Math.min(t[e+1],t[n+1],t[r+1]),maxY:Math.max(t[e+1],t[n+1],t[r+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[n],t[n+1],t[n+2]],p2:[t[r],t[r+1],t[r+2]]}}},3172:(t,e,n)=>{n.r(e),n.d(e,{default:()=>f});var r=n(68773),o=n(40330),s=n(20102),a=n(80442),i=n(22974),c=n(95330),l=n(81271),h=n(19745),u=n(71058),d=n(85958);async function f(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),h=(0,l.jc)(t);h||i||(t=(0,l.Fv)(t));const M={url:t,requestOptions:{...e}};let b=(0,l.oh)(t);if(b){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 n,r;try{r=await t.before(e)}catch(t){n=v("request:interceptor",t,e)}if((r instanceof Error||r instanceof s.Z)&&(n=v("request:interceptor",r,e)),n)throw t.error&&t.error(n),n;return r}}(b,M);if(null!=t)return{data:t,getHeader:x,httpStatus:200,requestOptions:M.requestOptions,url:M.url};b.after||b.error||(b=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||h)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 n.e(9884).then(n.bind(n,29884))):f._abortableFetch||(f._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(t,e);const y=new AbortController;(0,c.fu)(e,(()=>y.abort()));const w={controller:y,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:b,params:M,redoRequest:!1,useIdentity:p.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},_=await async function(t){let e,n;await async function(t){const e=t.params.url,n=t.params.requestOptions,s=t.controller.signal,a=n.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:n.cacheBust&&!("polyfill"in f._abortableFetch)?"no-cache":"default",credentials:"same-origin",headers:n.headers||{},method:"head"===n.method?"HEAD":"GET",mode:"cors",priority:p.priority,redirect:"follow",signal:s},(i||l)&&(t.fetchOptions.body=i||l),"anonymous"===n.authMode&&(t.useIdentity=!1),t.hasToken=!!(/token=/i.test(e)||n.query?.token||i?.get("token")),!t.hasToken&&r.default.apiKey&&(0,u.r)(e)&&(n.query||(n.query={}),n.query.token=r.default.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credentialToken&&!O(e)&&!(0,c.Hc)(s)){let r;"immediate"===n.authMode?(await q(),r=await o.id.getCredential(e,{signal:s}),t.credential=r):"no-prompt"===n.authMode?(await q(),r=await o.id.getCredential(e,{prompt:!1,signal:s}).catch((()=>{})),t.credential=r):o.id&&(r=o.id.findCredential(e)),r&&(t.credentialToken=r.token,t.useSSL=!!r.ssl)}}(t);try{do{[e,n]=await T(t)}while(!await E(t,e,n))}catch(n){const r=v("request:server",n,t.params,e);throw r.details.ssl=t.useSSL,t.interceptor?.error&&t.interceptor.error(r),r}const s=t.params.url;if(n&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!t.hasToken&&!t.credentialToken&&n.user?.username&&!(0,l.kl)(s)){const t=(0,l.P$)(s,!0);t&&p.trustedServers.push(t)}Array.isArray(n.authorizedCrossOriginNoCorsDomains)&&(0,d.Hu)(n.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:n,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 b?.after?.(_),_}let m;const p=r.default.request,g="FormData"in globalThis,M=[499,498,403,401],b=["COM_0056","COM_0057","SB_0008"],y=[/\/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")||f._corsServers.includes(e)||(0,l.kl)(e)}function v(t,e,n,r){let o="Error";const a={url:n.url,requestOptions:n.requestOptions,getHeader:x,ssl:!1};if(e instanceof s.Z)return e.details?(e.details=(0,i.d9)(e.details),e.details.url=n.url,e.details.requestOptions=n.requestOptions):e.details=a,e;if(e){const t=r&&(t=>r.headers.get(t)),n=r?.status,s=e.message;s&&(o=s),t&&(a.getHeader=t),a.httpStatus=(null!=e.httpCode?e.httpCode:e.code)||n||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 q(){o.id||await Promise.all([n.e(7126),n.e(6261),n.e(9255),n.e(1400),n.e(450)]).then(n.bind(n,73660))}function O(t){return y.some((e=>e.test(t)))}async function T(t){let e=t.params.url;const n=t.params.requestOptions,r=t.fetchOptions??{},s=(0,l.jc)(e)||(0,l.HK)(e),i=n.responseType||"json",u=s?0:null!=n.timeout?n.timeout:p.timeout;let m=!1;if(!s){t.useSSL&&(e=(0,l.hO)(e)),n.cacheBust&&"default"===r.cache&&(e=(0,l.ZN)(e,"request.preventCache",Date.now()));let s={...n.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 u;m="delete"===n.method||"post"===n.method||"put"===n.method||!!n.body||c>p.maxUrlLength;const f=n.useProxy||!!(0,l.ed)(e);if(f){const t=(0,l.b7)(e);u=t.path,!m&&u.length+1+c>p.maxUrlLength&&(m=!0),t.query&&(s={...t.query,...s})}if("HEAD"===r.method&&(m||f)){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(f)throw v("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),t.params)}if(m?(r.method="delete"===n.method?"DELETE":"put"===n.method?"PUT":"POST",n.body?e=(0,l.fl)(e,s):(r.body=(0,l.B7)(s),r.headers||(r.headers={}),r.headers["Content-Type"]="application/x-www-form-urlencoded")):e=(0,l.fl)(e,s),f&&(t.useProxy=!0,e=`${u}?${e}`),s.token&&g&&r.body instanceof FormData&&!(0,h.P)(e)&&r.body.set("token",s.token),n.hasOwnProperty("withCredentials"))t.withCredentials=n.withCredentials;else if(!(0,l.D6)(e,(0,l.TI)()))if((0,l.kl)(e))t.withCredentials=!0;else if(o.id){const n=o.id.findServerInfo(e);n?.webTierAuth&&(t.withCredentials=!0)}t.withCredentials&&(r.credentials="include",(0,d.jH)(e)&&await(0,d.jz)(m?(0,l.fl)(e,s):e))}let M,b,y=0,x=!1;u>0&&(y=setTimeout((()=>{x=!0,t.controller.abort()}),u));try{if("native-request-init"===n.responseType)b=r,b.url=e;else if("image"!==n.responseType||"default"!==r.cache||"GET"!==r.method||m||function(t){if(t)for(const e of Object.getOwnPropertyNames(t))if(t[e])return!0;return!1}(n.headers)||!s&&!t.useProxy&&p.proxyUrl&&!_(e)){if(M=await f._abortableFetch(e,r),t.useProxy||function(t){const e=(0,l.P$)(t);e&&!f._corsServers.includes(e)&&f._corsServers.push(e)}(e),"native"===n.responseType)b=M;else if("HEAD"!==r.method)if(M.ok){switch(i){case"array-buffer":b=await M.arrayBuffer();break;case"blob":case"image":b=await M.blob();break;default:b=await M.text()}if(y&&(clearTimeout(y),y=0),"json"===i||"xml"===i||"document"===i)if(b)switch(i){case"json":b=JSON.parse(b);break;case"xml":b=S(b,"application/xml");break;case"document":b=S(b,"text/html")}else b=null;if(b){if("array-buffer"===i||"blob"===i){const t=M.headers.get("Content-Type");if(t&&/application\/json|text\/plain/i.test(t)&&b["blob"===i?"size":"byteLength"]<=750)try{const t=await new Response(b).json();t.error&&(b=t)}catch{}}"image"===i&&b instanceof Blob&&(b=await P(URL.createObjectURL(b),t,!0))}}else{b=await M.text();try{b=JSON.parse(b)}catch{}}}else b=await P(e,t)}catch(r){if("AbortError"===r.name){if(x)throw(0,d.Tf)();throw(0,c.zE)("Request canceled")}if(!(!M&&r instanceof TypeError&&p.proxyUrl)||n.body||"delete"===n.method||"head"===n.method||"post"===n.method||"put"===n.method||t.useProxy||_(e))throw r;t.redoRequest=!0,(0,l.tD)({proxyUrl:p.proxyUrl,urlPrefix:(0,l.P$)(e)??""})}finally{y&&clearTimeout(y)}return[M,b]}function S(t,e){let n;try{n=(new DOMParser).parseFromString(t,e)}catch{}if(!n||n.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return n}async function E(t,e,n){if(t.redoRequest)return t.redoRequest=!1,!1;const r=t.params.requestOptions;if(!e||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let s,a;if(n&&(n.error?s=n.error:"error"===n.status&&Array.isArray(n.messages)&&(s={...n},s[w]=n,s.details=n.messages)),!s&&!e.ok)throw s=new Error(`Unable to load ${e.url} status: ${e.status}`),s[w]=n,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=r.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)&&!O(t.params.url)&&(403!==a||i&&!b.includes(i)&&(null==c||2===c&&t.credentialToken))){await q();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,n=!1){const r=e.controller.signal,o=new Image;return e.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=p.priority,o.src=t,(0,d.fY)(o,t,n,r)}f._abortableFetch=null,f._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(t,e,n)=>{n.d(e,{r:()=>s});var r=n(81271);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(t){const e=(0,r.P$)(t,!0);return!!e&&e.endsWith(".arcgis.com")&&!o.includes(e)&&!t.endsWith("/sharing/rest/generateToken")}},85958:(t,e,n)=>{n.d(e,{Hu:()=>u,Tf:()=>h,fY:()=>i,jH:()=>d,jz:()=>f});var r=n(68773),o=n(80442),s=n(95330),a=n(81271);function i(t,e,n=!1,r){return new Promise(((a,i)=>{if((0,s.Hc)(r))return void i(c());let l=()=>{d(),i(new Error(`Unable to load ${e}`))},h=()=>{const e=t;d(),a(e)},u=()=>{if(!t)return;const e=t;d(),e.src="",i(c())};const d=()=>{(0,o.Z)("esri-image-decode")||(t.removeEventListener("error",l),t.removeEventListener("load",h)),l=null,h=null,t=null,null!=r&&r.removeEventListener("abort",u),u=null,n&&URL.revokeObjectURL(e)};null!=r&&r.addEventListener("abort",u),(0,o.Z)("esri-image-decode")?t.decode().then(h,l):(t.addEventListener("error",l),t.addEventListener("load",h))}))}function c(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error;return t.name="AbortError",t}}const l="Timeout exceeded";function h(){return new Error(l)}function u(t){r.default.request.crossOriginNoCorsDomains||(r.default.request.crossOriginNoCorsDomains={});const e=r.default.request.crossOriginNoCorsDomains;for(let n of t)n=n.toLowerCase(),/^https?:\/\//.test(n)?e[(0,a.P$)(n)??""]=0:(e[(0,a.P$)("http://"+n)??""]=0,e[(0,a.P$)("https://"+n)??""]=0)}function d(t){const e=r.default.request.crossOriginNoCorsDomains;if(e){let n=(0,a.P$)(t);if(n)return n=n.toLowerCase(),!(0,a.D6)(n,(0,a.TI)())&&e[n]<Date.now()-36e5}return!1}async function f(t){const e=r.default.request.crossOriginNoCorsDomains,n=(0,a.P$)(t);e&&n&&(e[n.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{}}}}]);
|