@arcgis/core 4.29.7 → 4.29.9
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/{4984e2b79d862114d6a6.js → 1a8d56e01ddfec2257c3.js} +1 -1
- package/assets/esri/core/workers/chunks/{a8ac511280f873960d46.js → 1dc474a28d5ddac1a4b7.js} +1 -1
- package/assets/esri/core/workers/chunks/{3afb525a131b6841276b.js → 1e4d779a884f13762601.js} +1 -1
- package/assets/esri/core/workers/chunks/{2447a4d5886aeb0ff72a.js → 205597cd91cb7ff3d2b4.js} +1 -1
- package/assets/esri/core/workers/chunks/{6c50daccd84ba5545bfe.js → 22ebdec0867e44d8d58c.js} +1 -1
- package/assets/esri/core/workers/chunks/{fc5ac713872766571e07.js → 31c065746e53f7518c17.js} +1 -1
- package/assets/esri/core/workers/chunks/{da4616b02dd0c3dd3d5d.js → 321547d796a2ecd72ab4.js} +1 -1
- package/assets/esri/core/workers/chunks/{6c3ae96ec90e9ed7dd50.js → 32be478638e9e643ea32.js} +1 -1
- package/assets/esri/core/workers/chunks/{c556644bb0cf88770939.js → 413978b96c88d5ff01ee.js} +1 -1
- package/assets/esri/core/workers/chunks/{a61f337802ae963d7f65.js → 59f03847a9eb96e5f65c.js} +1 -1
- package/assets/esri/core/workers/chunks/{7a98d2e026f63a581b1e.js → 5b08309b184f5d8345a0.js} +1 -1
- package/assets/esri/core/workers/chunks/{8225febaf0a412f4cee4.js → 5e4465448b2728cafab0.js} +1 -1
- package/assets/esri/core/workers/chunks/6301990e489d31596bc8.js +1 -0
- package/assets/esri/core/workers/chunks/631bda7b99a27f4453c1.js +1 -0
- package/assets/esri/core/workers/chunks/{c527692694688a5b3b07.js → 658a8ee9a4f24bc03f7f.js} +1 -1
- package/assets/esri/core/workers/chunks/{9a8ab968ebb18480481d.js → 8699eaadd3fb6709fd94.js} +1 -1
- package/assets/esri/core/workers/chunks/{b139cf91bc148aa84419.js → 96cb79adabfbbcc3e707.js} +1 -1
- package/assets/esri/core/workers/chunks/99ac2a6a5be0604ee4c2.js +1 -0
- package/assets/esri/core/workers/chunks/{2433b39624a7e274cb98.js → b4c41a8244b7371e864e.js} +1 -1
- package/assets/esri/core/workers/chunks/{48db6e0bbb1a9c043193.js → b7a78246d25dc07f173d.js} +1 -1
- package/assets/esri/core/workers/chunks/{60ab18c6a04d4b2f1d4c.js → bb05528d2ca12c57a031.js} +1 -1
- package/assets/esri/core/workers/chunks/{b42a83db83851cb57d44.js → bed684a8d38fa7ac5eb7.js} +1 -1
- package/assets/esri/core/workers/chunks/{5227f9eea6988aadad7f.js → cf0dc0ccbeaf9458de6e.js} +1 -1
- package/assets/esri/core/workers/chunks/{f59b5ea05caca8a1a398.js → d40408be9bbcb0021d18.js} +1 -1
- package/assets/esri/core/workers/chunks/{fe74ee642bc72fe18210.js → d576aa444ad7c9289617.js} +1 -1
- package/assets/esri/core/workers/chunks/{f60e5dd0e712cf32f782.js → f2e8b75ad3b574894ade.js} +1 -1
- package/assets/esri/core/workers/chunks/{b9c55ff1f21db198ce03.js → ff96940be6a4c8489ebb.js} +1 -1
- package/chunks/Laserlines.glsl.js +1 -1
- package/chunks/sphere.js +1 -1
- package/chunks/vec32.js +1 -1
- package/chunks/vec42.js +1 -1
- package/core/libs/gl-matrix-2/math/quat.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/core/libs/gl-matrix-2/math/vec4.js +1 -1
- package/geometry/support/sphere.js +1 -1
- package/interfaces.d.ts +5 -5
- package/kernel.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/mixins/FeatureLayerBase.js +1 -1
- package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/voxel/VoxelVolume.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
- package/views/2d/engine/webgl/mesh/MultiTileMeshData.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
- package/views/2d/layers/RouteLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
- package/views/2d/layers/features/sources/strategies/AFetchLoadStrategy.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +1 -1
- package/views/2d/layers/features/support/GraphicsReader.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
- package/views/3d/camera/constraintUtils/distance.js +1 -1
- package/views/3d/camera/constraintUtils/tilt.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/layers/support/makeScheduleFunction.js +5 -0
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
- package/views/3d/state/controllers/global/ZoomController.js +1 -1
- package/views/3d/state/controllers/global/ZoomStepController.js +1 -1
- package/views/3d/state/controllers/momentum/ZoomSphericalMomentumController.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/support/geometryUtils/sphere.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
- package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
- package/views/support/geometry3dUtils.js +1 -1
- package/assets/esri/core/workers/chunks/967812e66fef41febb98.js +0 -1
- package/assets/esri/core/workers/chunks/a28b7d868346e13468bb.js +0 -1
- package/assets/esri/core/workers/chunks/ccd53b81c2688dd11584.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3180],{68612:(t,n,e)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,a,u,s,c){return[t,n,e,r,o,a,u,s,c]}e.d(n,{IJ:()=>a,Su:()=>r,WK:()=>o});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,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:function(t,n){return new Float64Array(t,n,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},87104:(t,n,e)=>{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]]}e.d(n,{IJ:()=>a,Su:()=>r,ct:()=>o});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:function(t,n){return new Float64Array(t,n,16)},fromValues:function(t,n,e,r,o,a,u,s,c,i,l,f,M,h,E,I){return[t,n,e,r,o,a,u,s,c,i,l,f,M,h,E,I]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,n,e)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{IJ:()=>a,Su:()=>r,ct:()=>o});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,createView:function(t,n){return new Float64Array(t,n,4)},fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},85256:(t,n,e)=>{function r(){return[0,0]}function o(t,n){return[t,n]}function a(){return o(1,1)}function u(){return o(1,0)}function s(){return o(0,1)}e.d(n,{Qw:()=>c,Su:()=>r,WK:()=>o});const c=a(),i=u(),l=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:i,UNIT_Y:l,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:function(t,n){return new Float64Array(t,n,2)},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:a,unitX:u,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},77556:(t,n,e)=>{e.d(n,{KU:()=>f,QT:()=>E,S_:()=>s,WO:()=>a,_7:()=>c,aU:()=>l,iW:()=>i,kr:()=>o,oL:()=>u,yy:()=>M});var r=e(47364);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,u,s,c,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=s,t[7]=c,t[8]=i,t}function u(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],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8],f=l*u-s*i,M=-l*a+s*c,h=i*a-u*c;let E=e*f+r*M+o*h;return E?(E=1/E,t[0]=f*E,t[1]=(-l*r+o*i)*E,t[2]=(s*r-o*u)*E,t[3]=M*E,t[4]=(l*e-o*c)*E,t[5]=(-s*e+o*a)*E,t[6]=h*E,t[7]=(-i*e+r*c)*E,t[8]=(u*e-r*a)*E,t):null}function c(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8];return t[0]=u*l-s*i,t[1]=o*i-r*l,t[2]=r*s-o*u,t[3]=s*c-a*l,t[4]=e*l-o*c,t[5]=o*a-e*s,t[6]=a*i-u*c,t[7]=r*c-e*i,t[8]=e*u-r*a,t}function i(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=e[0],h=e[1],E=e[2],I=e[3],S=e[4],O=e[5],T=e[6],A=e[7],N=e[8];return t[0]=M*r+h*u+E*i,t[1]=M*o+h*s+E*l,t[2]=M*a+h*c+E*f,t[3]=I*r+S*u+O*i,t[4]=I*o+S*s+O*l,t[5]=I*a+S*c+O*f,t[6]=T*r+A*u+N*i,t[7]=T*o+A*s+N*l,t[8]=T*a+A*c+N*f,t}function l(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}function f(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=e+e,s=r+r,c=o+o,i=e*u,l=r*u,f=r*s,M=o*u,h=o*s,E=o*c,I=a*u,S=a*s,O=a*c;return t[0]=1-f-E,t[3]=l-O,t[6]=M+S,t[1]=l+O,t[4]=1-i-E,t[7]=h-I,t[2]=M-S,t[5]=h+I,t[8]=1-i-f,t}function M(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8],f=n[9],M=n[10],h=n[11],E=n[12],I=n[13],S=n[14],O=n[15],T=e*s-r*u,A=e*c-o*u,N=e*i-a*u,m=r*c-o*s,R=r*i-a*s,b=o*i-a*c,d=l*I-f*E,_=l*S-M*E,C=l*O-h*E,L=f*S-M*I,P=f*O-h*I,p=M*O-h*S;let F=T*p-A*P+N*L+m*C-R*_+b*d;return F?(F=1/F,t[0]=(s*p-c*P+i*L)*F,t[1]=(c*C-u*p-i*_)*F,t[2]=(u*P-s*C+i*d)*F,t[3]=(o*P-r*p-a*L)*F,t[4]=(e*p-o*C+a*_)*F,t[5]=(r*C-e*P-a*d)*F,t[6]=(I*b-S*R+O*m)*F,t[7]=(S*N-E*b-O*A)*F,t[8]=(E*R-I*N+O*T)*F,t):null}function h(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 E(t){const n=(0,r.Au)(),e=t[0],o=t[1],a=t[2],u=t[3],s=t[4],c=t[5],i=t[6],l=t[7],f=t[8];return Math.abs(1-(e*e+u*u+i*i))<=n&&Math.abs(1-(o*o+s*s+l*l))<=n&&Math.abs(1-(a*a+c*c+f*f))<=n}const I=i,S=h;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:c,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],u=t[5],s=t[6],c=t[7],i=t[8];return n*(i*a-u*c)+e*(-i*o+u*s)+r*(c*o-a*s)},equals:function(t,n){const e=t[0],o=t[1],a=t[2],u=t[3],s=t[4],c=t[5],i=t[6],l=t[7],f=t[8],M=n[0],h=n[1],E=n[2],I=n[3],S=n[4],O=n[5],T=n[6],A=n[7],N=n[8],m=(0,r.Au)();return Math.abs(e-M)<=m*Math.max(1,Math.abs(e),Math.abs(M))&&Math.abs(o-h)<=m*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(a-E)<=m*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(u-I)<=m*Math.max(1,Math.abs(u),Math.abs(I))&&Math.abs(s-S)<=m*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(c-O)<=m*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(i-T)<=m*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(l-A)<=m*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(f-N)<=m*Math.max(1,Math.abs(f),Math.abs(N))},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:f,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:E,mul:I,multiply:i,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:M,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],u=n[5],s=n[6],c=n[8],i=n[9],l=n[10],f=l*u-s*i,M=-l*a+s*c,h=i*a-u*c,E=e*f+r*M+o*h;if(!E)return null;const I=1/E;return t[0]=f*I,t[1]=(-l*r+o*i)*I,t[2]=(s*r-o*u)*I,t[3]=M*I,t[4]=(l*e-o*c)*I,t[5]=(-s*e+o*a)*I,t[6]=h*I,t[7]=(-i*e+r*c)*I,t[8]=(u*e-r*a)*I,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],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=Math.sin(e),h=Math.cos(e);return t[0]=h*r+M*u,t[1]=h*o+M*s,t[2]=h*a+M*c,t[3]=h*u-M*r,t[4]=h*s-M*o,t[5]=h*c-M*a,t[6]=i,t[7]=l,t[8]=f,t},scale:l,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:S,subtract:h,translate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=e[0],h=e[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=s,t[5]=c,t[6]=M*r+h*u+i,t[7]=M*o+h*s+l,t[8]=M*a+h*c+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},41512:(t,n,e)=>{e.d(n,{C0:()=>l,WO:()=>O,Wu:()=>I,fO:()=>h,iW:()=>f,sF:()=>P,yG:()=>i});var r=e(68612),o=e(2620),a=e(62484),u=e(47364),s=e(98472),c=e(74784);function i(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,u.Au)()?(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],u=n[3],s=e[0],c=e[1],i=e[2],l=e[3];return t[0]=r*l+u*s+o*i-a*c,t[1]=o*l+u*c+a*s-r*i,t[2]=a*l+u*i+r*c-o*s,t[3]=u*l-r*s-o*c-a*i,t}function M(t,n,e,r){const o=n[0],a=n[1],s=n[2],c=n[3];let i,l,f,M,h,E=e[0],I=e[1],S=e[2],O=e[3];return l=o*E+a*I+s*S+c*O,l<0&&(l=-l,E=-E,I=-I,S=-S,O=-O),1-l>(0,u.Au)()?(i=Math.acos(l),f=Math.sin(i),M=Math.sin((1-r)*i)/f,h=Math.sin(r*i)/f):(M=1-r,h=r),t[0]=M*o+h*E,t[1]=M*a+h*I,t[2]=M*s+h*S,t[3]=M*c+h*O,t}function h(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function E(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 I(t,n,e,r){const o=.5*Math.PI/180;n*=o,e*=o,r*=o;const a=Math.sin(n),u=Math.cos(n),s=Math.sin(e),c=Math.cos(e),i=Math.sin(r),l=Math.cos(r);return t[0]=a*c*l-u*s*i,t[1]=u*s*l+a*c*i,t[2]=u*c*i-a*s*l,t[3]=u*c*l+a*s*i,t}const S=c.c,O=c.s,T=c.g,A=f,N=c.d,m=c.h,R=c.l,b=c.i,d=b,_=c.j,C=_,L=c.n,P=c.a,p=c.e,F=(0,a.Su)(),y=(0,a.WK)(1,0,0),g=(0,a.WK)(0,1,0),w=(0,o.Su)(),D=(0,o.Su)(),U=(0,r.Su)();Object.freeze(Object.defineProperty({__proto__:null,add:T,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:h,copy:S,dot:m,equals:p,exactEquals:P,fromEuler:I,fromMat3:E,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],u=e*e+r*r+o*o+a*a,s=u?1/u:0;return t[0]=-e*s,t[1]=-r*s,t[2]=-o*s,t[3]=a*s,t},len:d,length:b,lerp:R,mul:A,multiply:f,normalize:L,random:function(t){const n=u.QR,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],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c+u*s,t[1]=o*c+a*s,t[2]=a*c-o*s,t[3]=u*c-r*s,t},rotateY:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c-a*s,t[1]=o*c+u*s,t[2]=a*c+r*s,t[3]=u*c-o*s,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c+o*s,t[1]=o*c-r*s,t[2]=a*c+u*s,t[3]=u*c-a*s,t},rotationTo:function(t,n,e){const r=(0,s.k)(n,e);return r<-.999999?((0,s.b)(F,y,n),(0,s.D)(F)<1e-6&&(0,s.b)(F,g,n),(0,s.n)(F,F),i(t,F,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,s.b)(F,n,e),t[0]=F[0],t[1]=F[1],t[2]=F[2],t[3]=1+r,L(t,t))},scale:N,set:O,setAxes:function(t,n,e,r){const o=U;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],L(t,E(t,o))},setAxisAngle:i,slerp:M,sqlerp:function(t,n,e,r,o,a){return M(w,n,o,a),M(D,e,r,a),M(t,w,D,2*a*(1-a)),t},sqrLen:C,squaredLength:_,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},51120:(t,n,e)=>{e.d(n,{y:()=>i});var r=e(53648),o=e(15008),a=e(62484);function u(t,n,e){const r=Math.sin(t),o=Math.cos(t),a=Math.sin(n),u=Math.cos(n),s=e;return s[0]=-r,s[4]=-a*o,s[8]=u*o,s[12]=0,s[1]=o,s[5]=-a*r,s[9]=u*r,s[13]=0,s[2]=0,s[6]=u,s[10]=a,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=e(38380),c=e(60544);function i(t,n,e,r){if(null==t||null==r)return!1;const a=(0,s.Se)(t,s.Wy),i=(0,s.Se)(r,s.mq);if(a===i&&!l(i)&&(a!==s.o3.UNKNOWN||(0,c.yK)(t,r)))return(0,o.mu)(e,n),!0;if(l(i)){const t=s.yw[a][s.o3.LON_LAT],r=s.yw[s.o3.LON_LAT][i];return null!=t&&null!=r&&(t(n,0,M,0),r(M,0,h,0),u(f*M[0],f*M[1],e),e[12]=h[0],e[13]=h[1],e[14]=h[2],!0)}if((i===s.o3.WEB_MERCATOR||i===s.o3.PLATE_CARREE||i===s.o3.WGS84)&&(a===s.o3.WGS84||a===s.o3.CGCS2000&&i===s.o3.PLATE_CARREE||a===s.o3.SPHERICAL_ECEF||a===s.o3.WEB_MERCATOR)){const t=s.yw[a][s.o3.LON_LAT],r=s.yw[s.o3.LON_LAT][i];return null!=t&&null!=r&&(t(n,0,M,0),r(M,0,h,0),a===s.o3.SPHERICAL_ECEF?function(t,n,e){u(t,n,e),(0,o.oL)(e,e)}(f*M[0],f*M[1],e):(0,o.ZX)(e),e[12]=h[0],e[13]=h[1],e[14]=h[2],!0)}return!1}function l(t){return t===s.o3.SPHERICAL_ECEF||t===s.o3.SPHERICAL_MARS_PCPF||t===s.o3.SPHERICAL_MOON_PCPF}const f=(0,r.EF)(1),M=(0,a.Su)(),h=(0,a.Su)()},82448:(t,n,e)=>{e.d(n,{_s:()=>i});var r=e(22080),o=e(56156),a=e(60544);const u=new o.c(r._),s=new o.c(r.IP),c=new o.c(r.Om);function i(t){const n=l.get(t);if(n)return n;let e=u;if(t)if(t===s)e=s;else if(t===c)e=c;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,a.cJ)(n)||(0,a.cJ)(r)?e=s:((0,a.C_)(n)||(0,a.C_)(r))&&(e=c);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===f?e=s:t===M&&(e=c)}}}return l.set(t,e),e}new o.c(r.MJ);const l=new Map,f=s.wkt.toUpperCase(),M=c.wkt.toUpperCase()},58632:(t,n,e)=>{e.d(n,{Su:()=>a,XX:()=>s,Oq:()=>u}),e(53648);var r=e(98472),o=e(62484);function a(t=E){return[t[0],t[1],t[2],t[3]]}function u(t){return t}function s(t,n,e,o=0,u=Math.floor(e*(1/3)),E=Math.floor(e*(2/3))){if(e<3)return!1;n(i,o);let I=u,S=!1;for(;I<e-1&&!S;)n(l,I),I++,S=!(0,r.j)(i,l);if(!S)return!1;for(I=Math.max(I,E),S=!1;I<e&&!S;)n(f,I),I++,(0,r.f)(M,i,l),(0,r.n)(M,M),(0,r.f)(h,l,f),(0,r.n)(h,h),S=!(0,r.j)(i,f)&&!(0,r.j)(l,f)&&Math.abs((0,r.k)(M,h))<c;return S?(function(t,n,e,r=a()){const o=e[0]-n[0],u=e[1]-n[1],s=e[2]-n[2],c=t[0]-n[0],i=t[1]-n[1],l=t[2]-n[2],f=u*l-s*i,M=s*c-o*l,h=o*i-u*c,E=f*f+M*M+h*h,I=Math.abs(E-1)>1e-5&&E>1e-12?1/Math.sqrt(E):1;r[0]=f*I,r[1]=M*I,r[2]=h*I,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2])}(i,l,f,t),!0):(0!==o||1!==u||2!==E)&&s(t,n,e,0,1,2)}e(74784),e(48880),e(20136),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)();const c=.99619469809,i=(0,o.Su)(),l=(0,o.Su)(),f=(0,o.Su)(),M=(0,o.Su)(),h=(0,o.Su)(),E=[0,0,1,0];var I,S;(S=I||(I={}))[S.NONE=0]="NONE",S[S.CLAMP=1]="CLAMP",S[S.INFINITE_MIN=4]="INFINITE_MIN",S[S.INFINITE_MAX=8]="INFINITE_MAX",I.INFINITE_MIN,I.INFINITE_MAX,I.INFINITE_MAX},48880:(t,n,e)=>{e.d(n,{i4:()=>u});var r=e(53648),o=e(98472),a=e(62484);function u(t,n){const e=(0,o.k)(t,n)/((0,o.l)(t)*(0,o.l)(n));return-(0,r.Uj)(e)}(0,a.Su)(),(0,a.Su)()},20136:(t,n,e)=>{e.d(n,{SW:()=>M,QX:()=>h,Wq:()=>f});var r=e(52324),o=e(68612),a=e(87104),u=e(2620),s=e(85256),c=e(62484),i=e(37008);class l{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.o)((()=>this._reset())),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(s.Su)}static createVec3f64(){return new l(c.Su)}static createVec4f64(){return new l(i.Su)}static createMat3f64(){return new l(o.Su)}static createMat4f64(){return new l(a.Su)}static createQuatf64(){return new l(u.Su)}get test(){return{length:this._items.length}}}l.createVec2f64();const f=l.createVec3f64(),M=(l.createVec4f64(),l.createMat3f64(),l.createMat4f64()),h=l.createQuatf64()},89560:(t,n,e)=>{e.d(n,{O:()=>o,Y:()=>r});class r{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class o extends r{constructor(t,n,e,r=!1,o=e){super(t,e,o),this.indices=n,this.exclusive=r}}},4636:(t,n,e)=>{var r;e.d(n,{K:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.PREVPOSITION="prevPosition",t.NEXTPOSITION="nextPosition",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(r||(r={}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3180],{68612:(t,n,e)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,a,u,s,c){return[t,n,e,r,o,a,u,s,c]}e.d(n,{IJ:()=>a,Su:()=>r,WK:()=>o});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,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:function(t,n){return new Float64Array(t,n,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},87104:(t,n,e)=>{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]]}e.d(n,{IJ:()=>a,Su:()=>r,ct:()=>o});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:function(t,n){return new Float64Array(t,n,16)},fromValues:function(t,n,e,r,o,a,u,s,c,i,l,f,M,h,E,I){return[t,n,e,r,o,a,u,s,c,i,l,f,M,h,E,I]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,n,e)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{IJ:()=>a,Su:()=>r,ct:()=>o});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,createView:function(t,n){return new Float64Array(t,n,4)},fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},85256:(t,n,e)=>{function r(){return[0,0]}function o(t,n){return[t,n]}function a(){return o(1,1)}function u(){return o(1,0)}function s(){return o(0,1)}e.d(n,{Qw:()=>c,Su:()=>r,WK:()=>o});const c=a(),i=u(),l=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:i,UNIT_Y:l,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:function(t,n){return new Float64Array(t,n,2)},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:a,unitX:u,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},77556:(t,n,e)=>{e.d(n,{KU:()=>f,QT:()=>E,S_:()=>s,WO:()=>a,_7:()=>c,aU:()=>l,iW:()=>i,kr:()=>o,oL:()=>u,yy:()=>M});var r=e(47364);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,u,s,c,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=s,t[7]=c,t[8]=i,t}function u(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],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8],f=l*u-s*i,M=-l*a+s*c,h=i*a-u*c;let E=e*f+r*M+o*h;return E?(E=1/E,t[0]=f*E,t[1]=(-l*r+o*i)*E,t[2]=(s*r-o*u)*E,t[3]=M*E,t[4]=(l*e-o*c)*E,t[5]=(-s*e+o*a)*E,t[6]=h*E,t[7]=(-i*e+r*c)*E,t[8]=(u*e-r*a)*E,t):null}function c(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8];return t[0]=u*l-s*i,t[1]=o*i-r*l,t[2]=r*s-o*u,t[3]=s*c-a*l,t[4]=e*l-o*c,t[5]=o*a-e*s,t[6]=a*i-u*c,t[7]=r*c-e*i,t[8]=e*u-r*a,t}function i(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=e[0],h=e[1],E=e[2],I=e[3],S=e[4],O=e[5],T=e[6],A=e[7],N=e[8];return t[0]=M*r+h*u+E*i,t[1]=M*o+h*s+E*l,t[2]=M*a+h*c+E*f,t[3]=I*r+S*u+O*i,t[4]=I*o+S*s+O*l,t[5]=I*a+S*c+O*f,t[6]=T*r+A*u+N*i,t[7]=T*o+A*s+N*l,t[8]=T*a+A*c+N*f,t}function l(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}function f(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=e+e,s=r+r,c=o+o,i=e*u,l=r*u,f=r*s,M=o*u,h=o*s,E=o*c,I=a*u,S=a*s,O=a*c;return t[0]=1-f-E,t[3]=l-O,t[6]=M+S,t[1]=l+O,t[4]=1-i-E,t[7]=h-I,t[2]=M-S,t[5]=h+I,t[8]=1-i-f,t}function M(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8],f=n[9],M=n[10],h=n[11],E=n[12],I=n[13],S=n[14],O=n[15],T=e*s-r*u,A=e*c-o*u,N=e*i-a*u,m=r*c-o*s,R=r*i-a*s,b=o*i-a*c,_=l*I-f*E,d=l*S-M*E,C=l*O-h*E,L=f*S-M*I,P=f*O-h*I,p=M*O-h*S;let F=T*p-A*P+N*L+m*C-R*d+b*_;return F?(F=1/F,t[0]=(s*p-c*P+i*L)*F,t[1]=(c*C-u*p-i*d)*F,t[2]=(u*P-s*C+i*_)*F,t[3]=(o*P-r*p-a*L)*F,t[4]=(e*p-o*C+a*d)*F,t[5]=(r*C-e*P-a*_)*F,t[6]=(I*b-S*R+O*m)*F,t[7]=(S*N-E*b-O*A)*F,t[8]=(E*R-I*N+O*T)*F,t):null}function h(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 E(t){const n=(0,r.Au)(),e=t[0],o=t[1],a=t[2],u=t[3],s=t[4],c=t[5],i=t[6],l=t[7],f=t[8];return Math.abs(1-(e*e+u*u+i*i))<=n&&Math.abs(1-(o*o+s*s+l*l))<=n&&Math.abs(1-(a*a+c*c+f*f))<=n}const I=i,S=h;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:c,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],u=t[5],s=t[6],c=t[7],i=t[8];return n*(i*a-u*c)+e*(-i*o+u*s)+r*(c*o-a*s)},equals:function(t,n){const e=t[0],o=t[1],a=t[2],u=t[3],s=t[4],c=t[5],i=t[6],l=t[7],f=t[8],M=n[0],h=n[1],E=n[2],I=n[3],S=n[4],O=n[5],T=n[6],A=n[7],N=n[8],m=(0,r.Au)();return Math.abs(e-M)<=m*Math.max(1,Math.abs(e),Math.abs(M))&&Math.abs(o-h)<=m*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(a-E)<=m*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(u-I)<=m*Math.max(1,Math.abs(u),Math.abs(I))&&Math.abs(s-S)<=m*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(c-O)<=m*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(i-T)<=m*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(l-A)<=m*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(f-N)<=m*Math.max(1,Math.abs(f),Math.abs(N))},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:f,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:E,mul:I,multiply:i,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:M,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],u=n[5],s=n[6],c=n[8],i=n[9],l=n[10],f=l*u-s*i,M=-l*a+s*c,h=i*a-u*c,E=e*f+r*M+o*h;if(!E)return null;const I=1/E;return t[0]=f*I,t[1]=(-l*r+o*i)*I,t[2]=(s*r-o*u)*I,t[3]=M*I,t[4]=(l*e-o*c)*I,t[5]=(-s*e+o*a)*I,t[6]=h*I,t[7]=(-i*e+r*c)*I,t[8]=(u*e-r*a)*I,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],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=Math.sin(e),h=Math.cos(e);return t[0]=h*r+M*u,t[1]=h*o+M*s,t[2]=h*a+M*c,t[3]=h*u-M*r,t[4]=h*s-M*o,t[5]=h*c-M*a,t[6]=i,t[7]=l,t[8]=f,t},scale:l,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:S,subtract:h,translate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=e[0],h=e[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=s,t[5]=c,t[6]=M*r+h*u+i,t[7]=M*o+h*s+l,t[8]=M*a+h*c+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},41512:(t,n,e)=>{e.d(n,{C0:()=>l,WO:()=>O,Wu:()=>I,fO:()=>h,iW:()=>f,sF:()=>P,yG:()=>i});var r=e(68612),o=e(2620),a=e(62484),u=e(47364),s=e(98472),c=e(74784);function i(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,u.Au)()?(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],u=n[3],s=e[0],c=e[1],i=e[2],l=e[3];return t[0]=r*l+u*s+o*i-a*c,t[1]=o*l+u*c+a*s-r*i,t[2]=a*l+u*i+r*c-o*s,t[3]=u*l-r*s-o*c-a*i,t}function M(t,n,e,r){const o=n[0],a=n[1],s=n[2],c=n[3];let i,l,f,M,h,E=e[0],I=e[1],S=e[2],O=e[3];return l=o*E+a*I+s*S+c*O,l<0&&(l=-l,E=-E,I=-I,S=-S,O=-O),1-l>(0,u.Au)()?(i=Math.acos(l),f=Math.sin(i),M=Math.sin((1-r)*i)/f,h=Math.sin(r*i)/f):(M=1-r,h=r),t[0]=M*o+h*E,t[1]=M*a+h*I,t[2]=M*s+h*S,t[3]=M*c+h*O,t}function h(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function E(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 I(t,n,e,r){const o=.5*Math.PI/180;n*=o,e*=o,r*=o;const a=Math.sin(n),u=Math.cos(n),s=Math.sin(e),c=Math.cos(e),i=Math.sin(r),l=Math.cos(r);return t[0]=a*c*l-u*s*i,t[1]=u*s*l+a*c*i,t[2]=u*c*i-a*s*l,t[3]=u*c*l+a*s*i,t}const S=c.c,O=c.s,T=c.f,A=f,N=c.b,m=c.g,R=c.l,b=c.i,_=b,d=c.j,C=d,L=c.n,P=c.a,p=c.e,F=(0,a.Su)(),y=(0,a.WK)(1,0,0),g=(0,a.WK)(0,1,0),w=(0,o.Su)(),D=(0,o.Su)(),U=(0,r.Su)();Object.freeze(Object.defineProperty({__proto__:null,add:T,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:h,copy:S,dot:m,equals:p,exactEquals:P,fromEuler:I,fromMat3:E,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],u=e*e+r*r+o*o+a*a,s=u?1/u:0;return t[0]=-e*s,t[1]=-r*s,t[2]=-o*s,t[3]=a*s,t},len:_,length:b,lerp:R,mul:A,multiply:f,normalize:L,random:function(t){const n=u.QR,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],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c+u*s,t[1]=o*c+a*s,t[2]=a*c-o*s,t[3]=u*c-r*s,t},rotateY:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c-a*s,t[1]=o*c+u*s,t[2]=a*c+r*s,t[3]=u*c-o*s,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c+o*s,t[1]=o*c-r*s,t[2]=a*c+u*s,t[3]=u*c-a*s,t},rotationTo:function(t,n,e){const r=(0,s.k)(n,e);return r<-.999999?((0,s.b)(F,y,n),(0,s.H)(F)<1e-6&&(0,s.b)(F,g,n),(0,s.n)(F,F),i(t,F,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,s.b)(F,n,e),t[0]=F[0],t[1]=F[1],t[2]=F[2],t[3]=1+r,L(t,t))},scale:N,set:O,setAxes:function(t,n,e,r){const o=U;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],L(t,E(t,o))},setAxisAngle:i,slerp:M,sqlerp:function(t,n,e,r,o,a){return M(w,n,o,a),M(D,e,r,a),M(t,w,D,2*a*(1-a)),t},sqrLen:C,squaredLength:d,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},51120:(t,n,e)=>{e.d(n,{y:()=>i});var r=e(53648),o=e(15008),a=e(62484);function u(t,n,e){const r=Math.sin(t),o=Math.cos(t),a=Math.sin(n),u=Math.cos(n),s=e;return s[0]=-r,s[4]=-a*o,s[8]=u*o,s[12]=0,s[1]=o,s[5]=-a*r,s[9]=u*r,s[13]=0,s[2]=0,s[6]=u,s[10]=a,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=e(38380),c=e(60544);function i(t,n,e,r){if(null==t||null==r)return!1;const a=(0,s.Se)(t,s.Wy),i=(0,s.Se)(r,s.mq);if(a===i&&!l(i)&&(a!==s.o3.UNKNOWN||(0,c.yK)(t,r)))return(0,o.mu)(e,n),!0;if(l(i)){const t=s.yw[a][s.o3.LON_LAT],r=s.yw[s.o3.LON_LAT][i];return null!=t&&null!=r&&(t(n,0,M,0),r(M,0,h,0),u(f*M[0],f*M[1],e),e[12]=h[0],e[13]=h[1],e[14]=h[2],!0)}if((i===s.o3.WEB_MERCATOR||i===s.o3.PLATE_CARREE||i===s.o3.WGS84)&&(a===s.o3.WGS84||a===s.o3.CGCS2000&&i===s.o3.PLATE_CARREE||a===s.o3.SPHERICAL_ECEF||a===s.o3.WEB_MERCATOR)){const t=s.yw[a][s.o3.LON_LAT],r=s.yw[s.o3.LON_LAT][i];return null!=t&&null!=r&&(t(n,0,M,0),r(M,0,h,0),a===s.o3.SPHERICAL_ECEF?function(t,n,e){u(t,n,e),(0,o.oL)(e,e)}(f*M[0],f*M[1],e):(0,o.ZX)(e),e[12]=h[0],e[13]=h[1],e[14]=h[2],!0)}return!1}function l(t){return t===s.o3.SPHERICAL_ECEF||t===s.o3.SPHERICAL_MARS_PCPF||t===s.o3.SPHERICAL_MOON_PCPF}const f=(0,r.EF)(1),M=(0,a.Su)(),h=(0,a.Su)()},82448:(t,n,e)=>{e.d(n,{_s:()=>i});var r=e(22080),o=e(56156),a=e(60544);const u=new o.c(r._),s=new o.c(r.IP),c=new o.c(r.Om);function i(t){const n=l.get(t);if(n)return n;let e=u;if(t)if(t===s)e=s;else if(t===c)e=c;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,a.cJ)(n)||(0,a.cJ)(r)?e=s:((0,a.C_)(n)||(0,a.C_)(r))&&(e=c);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===f?e=s:t===M&&(e=c)}}}return l.set(t,e),e}new o.c(r.MJ);const l=new Map,f=s.wkt.toUpperCase(),M=c.wkt.toUpperCase()},58632:(t,n,e)=>{e.d(n,{Su:()=>a,XX:()=>s,Oq:()=>u}),e(53648);var r=e(98472),o=e(62484);function a(t=E){return[t[0],t[1],t[2],t[3]]}function u(t){return t}function s(t,n,e,o=0,u=Math.floor(e*(1/3)),E=Math.floor(e*(2/3))){if(e<3)return!1;n(i,o);let I=u,S=!1;for(;I<e-1&&!S;)n(l,I),I++,S=!(0,r.j)(i,l);if(!S)return!1;for(I=Math.max(I,E),S=!1;I<e&&!S;)n(f,I),I++,(0,r.f)(M,i,l),(0,r.n)(M,M),(0,r.f)(h,l,f),(0,r.n)(h,h),S=!(0,r.j)(i,f)&&!(0,r.j)(l,f)&&Math.abs((0,r.k)(M,h))<c;return S?(function(t,n,e,r=a()){const o=e[0]-n[0],u=e[1]-n[1],s=e[2]-n[2],c=t[0]-n[0],i=t[1]-n[1],l=t[2]-n[2],f=u*l-s*i,M=s*c-o*l,h=o*i-u*c,E=f*f+M*M+h*h,I=Math.abs(E-1)>1e-5&&E>1e-12?1/Math.sqrt(E):1;r[0]=f*I,r[1]=M*I,r[2]=h*I,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2])}(i,l,f,t),!0):(0!==o||1!==u||2!==E)&&s(t,n,e,0,1,2)}e(74784),e(48880),e(20136),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)();const c=.99619469809,i=(0,o.Su)(),l=(0,o.Su)(),f=(0,o.Su)(),M=(0,o.Su)(),h=(0,o.Su)(),E=[0,0,1,0];var I,S;(S=I||(I={}))[S.NONE=0]="NONE",S[S.CLAMP=1]="CLAMP",S[S.INFINITE_MIN=4]="INFINITE_MIN",S[S.INFINITE_MAX=8]="INFINITE_MAX",I.INFINITE_MIN,I.INFINITE_MAX,I.INFINITE_MAX},48880:(t,n,e)=>{e.d(n,{i4:()=>u});var r=e(53648),o=e(98472),a=e(62484);function u(t,n){const e=(0,o.k)(t,n)/((0,o.l)(t)*(0,o.l)(n));return-(0,r.Uj)(e)}(0,a.Su)(),(0,a.Su)()},20136:(t,n,e)=>{e.d(n,{SW:()=>M,QX:()=>h,Wq:()=>f});var r=e(52324),o=e(68612),a=e(87104),u=e(2620),s=e(85256),c=e(62484),i=e(37008);class l{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.o)((()=>this._reset())),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(s.Su)}static createVec3f64(){return new l(c.Su)}static createVec4f64(){return new l(i.Su)}static createMat3f64(){return new l(o.Su)}static createMat4f64(){return new l(a.Su)}static createQuatf64(){return new l(u.Su)}get test(){return{length:this._items.length}}}l.createVec2f64();const f=l.createVec3f64(),M=(l.createVec4f64(),l.createMat3f64(),l.createMat4f64()),h=l.createQuatf64()},89560:(t,n,e)=>{e.d(n,{O:()=>o,Y:()=>r});class r{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class o extends r{constructor(t,n,e,r=!1,o=e){super(t,e,o),this.indices=n,this.exclusive=r}}},4636:(t,n,e)=>{var r;e.d(n,{K:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.PREVPOSITION="prevPosition",t.NEXTPOSITION="nextPosition",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(r||(r={}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9944],{98472:(t,n,e)=>{e.d(n,{A:()=>m,B:()=>c,C:()=>M,D:()=>T,E:()=>S,H:()=>f,a:()=>p,b:()=>B,c:()=>o,e:()=>U,f:()=>l,g:()=>u,h:()=>g,i:()=>b,j:()=>E,k:()=>v,l:()=>a,m:()=>V,n:()=>y,o:()=>Y,p:()=>w,q:()=>k,r:()=>x,s:()=>s,t:()=>I,u:()=>D,v:()=>h,w:()=>O,x:()=>X,y:()=>d,z:()=>_});var r=e(62484),i=e(47364);function a(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function l(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function c(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}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}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function m(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function d(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function M(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function g(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function x(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}function k(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return Math.sqrt(e*e+r*r+i*i)}function p(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}function w(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function b(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function y(t,n){const e=n[0],r=n[1],i=n[2];let a=e*e+r*r+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a),t}function v(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function B(t,n,e){const r=n[0],i=n[1],a=n[2],o=e[0],s=e[1],u=e[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t}function V(t,n,e,r){const i=n[0],a=n[1],o=n[2];return t[0]=i+r*(e[0]-i),t[1]=a+r*(e[1]-a),t[2]=o+r*(e[2]-o),t}function U(t,n,e){const r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r+e[4]*i+e[8]*a+e[12],t[1]=e[1]*r+e[5]*i+e[9]*a+e[13],t[2]=e[2]*r+e[6]*i+e[10]*a+e[14],t}function I(t,n,e){const r=n[0],i=n[1],a=n[2];return t[0]=r*e[0]+i*e[3]+a*e[6],t[1]=r*e[1]+i*e[4]+a*e[7],t[2]=r*e[2]+i*e[5]+a*e[8],t}function D(t,n,e){const r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],u=n[1],l=n[2],c=i*l-a*u,f=a*s-r*l,h=r*u-i*s,m=i*h-a*f,d=a*c-r*h,M=r*f-i*c,g=2*o;return t[0]=s+c*g+2*m,t[1]=u+f*g+2*d,t[2]=l+h*g+2*M,t}const P=(0,r.Su)(),A=(0,r.Su)();function E(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function S(t,n,e){const r=e[0]-n[0],i=e[1]-n[1],a=e[2]-n[2];let o=r*r+i*i+a*a;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=i*o,t[2]=a*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const _=l,F=c,q=f,Y=k,O=p,T=a,X=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:u,angle:function(t,n){y(P,t),y(A,n);const e=v(P,A);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,i,a){const o=1-a,s=o*o,u=a*a,l=s*o,c=3*a*s,f=3*u*o,h=u*a;return t[0]=n[0]*l+e[0]*c+r[0]*f+i[0]*h,t[1]=n[1]*l+e[1]*c+r[1]*f+i[1]*h,t[2]=n[2]*l+e[2]*c+r[2]*f+i[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},copy:o,cross:B,direction:S,dist:Y,distance:k,div:q,divide:f,dot:v,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],a=t[2],o=n[0],s=n[1],u=n[2],l=(0,i.Au)();return Math.abs(e-o)<=l*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(r-s)<=l*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-u)<=l*Math.max(1,Math.abs(a),Math.abs(u))},exactEquals:E,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,i,a){const o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,l=o*(a-1),c=o*(3-2*a);return t[0]=n[0]*s+e[0]*u+r[0]*l+i[0]*c,t[1]=n[1]*s+e[1]*u+r[1]*l+i[1]*c,t[2]=n[2]*s+e[2]*u+r[2]*l+i[2]*c,t},inverse:b,len:T,length:a,lerp:V,max:M,min:d,mul:F,multiply:c,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},normalize:y,random:function(t,n){n=n||1;const e=i.QR,r=2*e()*Math.PI,a=2*e()-1,o=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=a*n,t},rotateX:function(t,n,e,r){const i=[],a=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateY:function(t,n,e,r){const i=[],a=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateZ:function(t,n,e,r){const i=[],a=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:g,scaleAndAdd:x,set:s,sign:m,sqrDist:O,sqrLen:X,squaredDistance:p,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:_,subtract:l,transformMat3:I,transformMat4:U,transformQuat:D},Symbol.toStringTag,{value:"Module"}))},62484:(t,n,e)=>{function r(){return[0,0,0]}function i(t){return[t[0],t[1],t[2]]}function a(t,n,e){return[t,n,e]}function o(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function s(){return a(1,1,1)}function u(){return a(1,0,0)}function l(){return a(0,1,0)}function c(){return a(0,0,1)}e.d(n,{IR:()=>d,Qw:()=>h,Su:()=>r,UV:()=>m,WK:()=>a,cX:()=>f,ct:()=>i,eu:()=>o,wx:()=>M});const f=[0,0,0],h=s(),m=u(),d=l(),M=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_X:m,UNIT_Y:d,UNIT_Z:M,ZEROS:f,clone:i,create:r,createView:function(t,n){return new Float64Array(t,n,3)},fromArray:o,fromValues:a,ones:s,unitX:u,unitY:l,unitZ:c,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},47364:(t,n,e)=>{e.d(n,{Af:()=>u,Au:()=>i,QR:()=>a,Yf:()=>l});let r=1e-6;function i(){return r}const a=Math.random,o=Math.PI/180,s=180/Math.PI;function u(t){return t*o}function l(t){return t*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:i,setEpsilon:function(t){r=t},toDegree:l,toRadian:u},Symbol.toStringTag,{value:"Module"}))},53648:(t,n,e)=>{e.d(n,{Cq:()=>s,EF:()=>l,Iv:()=>k,SE:()=>w,UB:()=>c,Uj:()=>f,aU:()=>u,gJ:()=>g,gP:()=>m,ig:()=>p,qk:()=>o,sj:()=>h,w7:()=>a});var r=e(98472);const i=new Float32Array(1);function a(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function o(t,n,e){return Math.min(Math.max(t,n),e)}function s(t,n,e){return t+(n-t)*e}function u(t,n,e,r,i){return s(r,i,(t-n)/(e-n))}function l(t){return t*Math.PI/180}function c(t){return 180*t/Math.PI}function f(t){return Math.acos(o(t,-1,1))}function h(t){return Math.asin(o(t,-1,1))}function m(t,n,e=1e-6){return t===n||!(!Number.isFinite(t)||!Number.isFinite(n))&&(t>n?t-n:n-t)<=e}const d=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));const M=BigInt("1000000");function g(t){return x(Math.max(-w,Math.min(t,w)))}function x(t){return i[0]=t,i[0]}function k(t,n){const e=(0,r.l)(t),i=h(t[2]/e),a=Math.atan2(t[1]/e,t[0]/e);return(0,r.s)(n,e,i,a),n}function p(t){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],e=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(m(n,1)&&m(e,1)&&m(r,1))}!function(t){const n=function(t){return d.setFloat64(0,t),d.getBigInt64(0)}(t=Math.abs(t)),e=function(t){return d.setBigInt64(0,t),d.getFloat64(0)}(n<=M?M:n-M);Math.abs(t-e)}(1);const w=x(34028234663852886e22)},69944:(t,n,e)=>{e.r(n),e.d(n,{default:()=>h});var r=e(53648),i={};i.defaultNoDataValue=(0,r.gJ)(-1/0),i.decode=function(t,n){var e=(n=n||{}).encodedMaskData||null===n.encodedMaskData,l=u(t,n.inputOffset||0,e),c=null!=n.noDataValue?(0,r.gJ)(n.noDataValue):i.defaultNoDataValue,f=a(l,n.pixelType||Float32Array,n.encodedMaskData,c,n.returnMask),h={width:l.width,height:l.height,pixelData:f.resultPixels,minValue:l.pixels.minValue,maxValue:l.pixels.maxValue,noDataValue:c};return f.resultMask&&(h.maskData=f.resultMask),n.returnEncodedMask&&l.mask&&(h.encodedMaskData=l.mask.bitset?l.mask.bitset:null),n.returnFileInfo&&(h.fileInfo=o(l,c),n.computeUsedBitDepths&&(h.fileInfo.bitDepths=s(l))),h};var a=function(t,n,e,r,i){var a,o,s=0,u=t.pixels.numBlocksX,c=t.pixels.numBlocksY,f=Math.floor(t.width/u),h=Math.floor(t.height/c),m=2*t.maxZError;e=e||(t.mask?t.mask.bitset:null),a=new n(t.width*t.height),i&&e&&(o=new Uint8Array(t.width*t.height));for(var d,M,g=new Float32Array(f*h),x=0;x<=c;x++){var k=x!==c?h:t.height%c;if(0!==k)for(var p=0;p<=u;p++){var w=p!==u?f:t.width%u;if(0!==w){var b,y,v,B,V=x*t.width*h+p*f,U=t.width-w,I=t.pixels.blocks[s];if(I.encoding<2?(0===I.encoding?b=I.rawData:(l(I.stuffedData,I.bitsPerPixel,I.numValidPixels,I.offset,m,g,t.pixels.maxValue),b=g),y=0):v=2===I.encoding?0:I.offset,e)for(M=0;M<k;M++){for(7&V&&(B=e[V>>3],B<<=7&V),d=0;d<w;d++)7&V||(B=e[V>>3]),128&B?(o&&(o[V]=1),a[V++]=I.encoding<2?b[y++]:v):(o&&(o[V]=0),a[V++]=r),B<<=1;V+=U}else if(I.encoding<2)for(M=0;M<k;M++){for(d=0;d<w;d++)a[V++]=b[y++];V+=U}else for(M=0;M<k;M++)if(a.fill)a.fill(v,V,V+w),V+=w+U;else{for(d=0;d<w;d++)a[V++]=v;V+=U}if(1===I.encoding&&y!==I.numValidPixels)throw"Block and Mask do not match";s++}}}return{resultPixels:a,resultMask:o}},o=function(t,n){return{fileIdentifierString:t.fileIdentifierString,fileVersion:t.fileVersion,imageType:t.imageType,height:t.height,width:t.width,maxZError:t.maxZError,eofOffset:t.eofOffset,mask:t.mask?{numBlocksX:t.mask.numBlocksX,numBlocksY:t.mask.numBlocksY,numBytes:t.mask.numBytes,maxValue:t.mask.maxValue}:null,pixels:{numBlocksX:t.pixels.numBlocksX,numBlocksY:t.pixels.numBlocksY,numBytes:t.pixels.numBytes,maxValue:t.pixels.maxValue,minValue:t.pixels.minValue,noDataValue:n}}},s=function(t){for(var n=t.pixels.numBlocksX*t.pixels.numBlocksY,e={},r=0;r<n;r++){var i=t.pixels.blocks[r];0===i.encoding?e.float32=!0:1===i.encoding?e[i.bitsPerPixel]=!0:e[0]=!0}return Object.keys(e)},u=function(t,n,e){var r={},i=new Uint8Array(t,n,10);if(r.fileIdentifierString=String.fromCharCode.apply(null,i),"CntZImage"!=r.fileIdentifierString.trim())throw"Unexpected file identifier string: "+r.fileIdentifierString;n+=10;var a=new DataView(t,n,24);if(r.fileVersion=a.getInt32(0,!0),r.imageType=a.getInt32(4,!0),r.height=a.getUint32(8,!0),r.width=a.getUint32(12,!0),r.maxZError=a.getFloat64(16,!0),n+=24,!e)if(a=new DataView(t,n,16),r.mask={},r.mask.numBlocksY=a.getUint32(0,!0),r.mask.numBlocksX=a.getUint32(4,!0),r.mask.numBytes=a.getUint32(8,!0),r.mask.maxValue=a.getFloat32(12,!0),n+=16,r.mask.numBytes>0){var o=new Uint8Array(Math.ceil(r.width*r.height/8)),s=(a=new DataView(t,n,r.mask.numBytes)).getInt16(0,!0),u=2,l=0;do{if(s>0)for(;s--;)o[l++]=a.getUint8(u++);else{var c=a.getUint8(u++);for(s=-s;s--;)o[l++]=c}s=a.getInt16(u,!0),u+=2}while(u<r.mask.numBytes);if(-32768!==s||l<o.length)throw"Unexpected end of mask RLE encoding";r.mask.bitset=o,n+=r.mask.numBytes}else 0==(r.mask.numBytes|r.mask.numBlocksY|r.mask.maxValue)&&(o=new Uint8Array(Math.ceil(r.width*r.height/8)),r.mask.bitset=o);a=new DataView(t,n,16),r.pixels={},r.pixels.numBlocksY=a.getUint32(0,!0),r.pixels.numBlocksX=a.getUint32(4,!0),r.pixels.numBytes=a.getUint32(8,!0),r.pixels.maxValue=a.getFloat32(12,!0),n+=16;var f=r.pixels.numBlocksX,h=r.pixels.numBlocksY,m=f+(r.width%f>0?1:0),d=h+(r.height%h>0?1:0);r.pixels.blocks=new Array(m*d);for(var M=1e9,g=0,x=0;x<d;x++)for(var k=0;k<m;k++){var p=0,w=t.byteLength-n;a=new DataView(t,n,Math.min(10,w));var b={};r.pixels.blocks[g++]=b;var y=a.getUint8(0);if(p++,b.encoding=63&y,b.encoding>3)throw"Invalid block encoding ("+b.encoding+")";if(2!==b.encoding){if(0!==y&&2!==y){if(y>>=6,b.offsetType=y,2===y)b.offset=a.getInt8(1),p++;else if(1===y)b.offset=a.getInt16(1,!0),p+=2;else{if(0!==y)throw"Invalid block offset type";b.offset=a.getFloat32(1,!0),p+=4}if(M=Math.min(b.offset,M),1===b.encoding)if(y=a.getUint8(p),p++,b.bitsPerPixel=63&y,y>>=6,b.numValidPixelsType=y,2===y)b.numValidPixels=a.getUint8(p),p++;else if(1===y)b.numValidPixels=a.getUint16(p,!0),p+=2;else{if(0!==y)throw"Invalid valid pixel count type";b.numValidPixels=a.getUint32(p,!0),p+=4}}var v;if(n+=p,3!=b.encoding)if(0===b.encoding){var B=(r.pixels.numBytes-1)/4;if(B!==Math.floor(B))throw"uncompressed block has invalid length";v=new ArrayBuffer(4*B),new Uint8Array(v).set(new Uint8Array(t,n,4*B));for(var V=new Float32Array(v),U=0;U<V.length;U++)M=Math.min(M,V[U]);b.rawData=V,n+=4*B}else if(1===b.encoding){var I=Math.ceil(b.numValidPixels*b.bitsPerPixel/8),D=Math.ceil(I/4);v=new ArrayBuffer(4*D),new Uint8Array(v).set(new Uint8Array(t,n,I)),b.stuffedData=new Uint32Array(v),n+=I}}else n++,M=Math.min(M,0)}return r.pixels.minValue=M,r.eofOffset=n,r},l=function(t,n,e,r,i,a,o){var s,u,l,c=(1<<n)-1,f=0,h=0,m=Math.ceil((o-r)/i),d=4*t.length-Math.ceil(n*e/8);for(t[t.length-1]<<=8*d,s=0;s<e;s++){if(0===h&&(l=t[f++],h=32),h>=n)u=l>>>h-n&c,h-=n;else{var M=n-h;u=(l&c)<<M&c,u+=(l=t[f++])>>>(h=32-M)}a[s]=u<m?r+u*i:o}return a};const c=i.decode;class f{_decode(t){const n=c(t.buffer,t.options);return Promise.resolve({result:n,transferList:[n.pixelData.buffer]})}}function h(){return new f}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9944],{98472:(t,n,e)=>{e.d(n,{A:()=>m,B:()=>c,C:()=>M,D:()=>f,E:()=>S,H:()=>T,a:()=>p,b:()=>B,c:()=>o,e:()=>U,f:()=>l,g:()=>u,h:()=>g,i:()=>b,j:()=>E,k:()=>v,l:()=>a,m:()=>V,n:()=>y,o:()=>Y,p:()=>w,q:()=>k,r:()=>x,s:()=>s,t:()=>I,u:()=>D,v:()=>h,w:()=>O,x:()=>X,y:()=>d,z:()=>_});var r=e(62484),i=e(47364);function a(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function l(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function c(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}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}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function m(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function d(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function M(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function g(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function x(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}function k(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return Math.sqrt(e*e+r*r+i*i)}function p(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}function w(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function b(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function y(t,n){const e=n[0],r=n[1],i=n[2];let a=e*e+r*r+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a),t}function v(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function B(t,n,e){const r=n[0],i=n[1],a=n[2],o=e[0],s=e[1],u=e[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t}function V(t,n,e,r){const i=n[0],a=n[1],o=n[2];return t[0]=i+r*(e[0]-i),t[1]=a+r*(e[1]-a),t[2]=o+r*(e[2]-o),t}function U(t,n,e){const r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r+e[4]*i+e[8]*a+e[12],t[1]=e[1]*r+e[5]*i+e[9]*a+e[13],t[2]=e[2]*r+e[6]*i+e[10]*a+e[14],t}function I(t,n,e){const r=n[0],i=n[1],a=n[2];return t[0]=r*e[0]+i*e[3]+a*e[6],t[1]=r*e[1]+i*e[4]+a*e[7],t[2]=r*e[2]+i*e[5]+a*e[8],t}function D(t,n,e){const r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],u=n[1],l=n[2],c=i*l-a*u,f=a*s-r*l,h=r*u-i*s,m=i*h-a*f,d=a*c-r*h,M=r*f-i*c,g=2*o;return t[0]=s+c*g+2*m,t[1]=u+f*g+2*d,t[2]=l+h*g+2*M,t}const P=(0,r.Su)(),A=(0,r.Su)();function E(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function S(t,n,e){const r=e[0]-n[0],i=e[1]-n[1],a=e[2]-n[2];let o=r*r+i*i+a*a;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=i*o,t[2]=a*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const _=l,F=c,q=f,Y=k,O=p,T=a,X=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:u,angle:function(t,n){y(P,t),y(A,n);const e=v(P,A);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,i,a){const o=1-a,s=o*o,u=a*a,l=s*o,c=3*a*s,f=3*u*o,h=u*a;return t[0]=n[0]*l+e[0]*c+r[0]*f+i[0]*h,t[1]=n[1]*l+e[1]*c+r[1]*f+i[1]*h,t[2]=n[2]*l+e[2]*c+r[2]*f+i[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},copy:o,cross:B,direction:S,dist:Y,distance:k,div:q,divide:f,dot:v,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],a=t[2],o=n[0],s=n[1],u=n[2],l=(0,i.Au)();return Math.abs(e-o)<=l*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(r-s)<=l*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-u)<=l*Math.max(1,Math.abs(a),Math.abs(u))},exactEquals:E,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,i,a){const o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,l=o*(a-1),c=o*(3-2*a);return t[0]=n[0]*s+e[0]*u+r[0]*l+i[0]*c,t[1]=n[1]*s+e[1]*u+r[1]*l+i[1]*c,t[2]=n[2]*s+e[2]*u+r[2]*l+i[2]*c,t},inverse:b,len:T,length:a,lerp:V,max:M,min:d,mul:F,multiply:c,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},normalize:y,random:function(t,n){n=n||1;const e=i.QR,r=2*e()*Math.PI,a=2*e()-1,o=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=a*n,t},rotateX:function(t,n,e,r){const i=[],a=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateY:function(t,n,e,r){const i=[],a=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateZ:function(t,n,e,r){const i=[],a=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:g,scaleAndAdd:x,set:s,sign:m,sqrDist:O,sqrLen:X,squaredDistance:p,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:_,subtract:l,transformMat3:I,transformMat4:U,transformQuat:D},Symbol.toStringTag,{value:"Module"}))},62484:(t,n,e)=>{function r(){return[0,0,0]}function i(t){return[t[0],t[1],t[2]]}function a(t,n,e){return[t,n,e]}function o(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function s(){return a(1,1,1)}function u(){return a(1,0,0)}function l(){return a(0,1,0)}function c(){return a(0,0,1)}e.d(n,{IR:()=>d,Qw:()=>h,Su:()=>r,UV:()=>m,WK:()=>a,cX:()=>f,ct:()=>i,eu:()=>o,wx:()=>M});const f=[0,0,0],h=s(),m=u(),d=l(),M=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_X:m,UNIT_Y:d,UNIT_Z:M,ZEROS:f,clone:i,create:r,createView:function(t,n){return new Float64Array(t,n,3)},fromArray:o,fromValues:a,ones:s,unitX:u,unitY:l,unitZ:c,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},47364:(t,n,e)=>{e.d(n,{Af:()=>u,Au:()=>i,QR:()=>a,Yf:()=>l});let r=1e-6;function i(){return r}const a=Math.random,o=Math.PI/180,s=180/Math.PI;function u(t){return t*o}function l(t){return t*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:i,setEpsilon:function(t){r=t},toDegree:l,toRadian:u},Symbol.toStringTag,{value:"Module"}))},53648:(t,n,e)=>{e.d(n,{Cq:()=>s,EF:()=>l,Iv:()=>k,SE:()=>w,UB:()=>c,Uj:()=>f,aU:()=>u,gJ:()=>g,gP:()=>m,ig:()=>p,qk:()=>o,sj:()=>h,w7:()=>a});var r=e(98472);const i=new Float32Array(1);function a(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function o(t,n,e){return Math.min(Math.max(t,n),e)}function s(t,n,e){return t+(n-t)*e}function u(t,n,e,r,i){return s(r,i,(t-n)/(e-n))}function l(t){return t*Math.PI/180}function c(t){return 180*t/Math.PI}function f(t){return Math.acos(o(t,-1,1))}function h(t){return Math.asin(o(t,-1,1))}function m(t,n,e=1e-6){return t===n||!(!Number.isFinite(t)||!Number.isFinite(n))&&(t>n?t-n:n-t)<=e}const d=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));const M=BigInt("1000000");function g(t){return x(Math.max(-w,Math.min(t,w)))}function x(t){return i[0]=t,i[0]}function k(t,n){const e=(0,r.l)(t),i=h(t[2]/e),a=Math.atan2(t[1]/e,t[0]/e);return(0,r.s)(n,e,i,a),n}function p(t){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],e=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(m(n,1)&&m(e,1)&&m(r,1))}!function(t){const n=function(t){return d.setFloat64(0,t),d.getBigInt64(0)}(t=Math.abs(t)),e=function(t){return d.setBigInt64(0,t),d.getFloat64(0)}(n<=M?M:n-M);Math.abs(t-e)}(1);const w=x(34028234663852886e22)},69944:(t,n,e)=>{e.r(n),e.d(n,{default:()=>h});var r=e(53648),i={};i.defaultNoDataValue=(0,r.gJ)(-1/0),i.decode=function(t,n){var e=(n=n||{}).encodedMaskData||null===n.encodedMaskData,l=u(t,n.inputOffset||0,e),c=null!=n.noDataValue?(0,r.gJ)(n.noDataValue):i.defaultNoDataValue,f=a(l,n.pixelType||Float32Array,n.encodedMaskData,c,n.returnMask),h={width:l.width,height:l.height,pixelData:f.resultPixels,minValue:l.pixels.minValue,maxValue:l.pixels.maxValue,noDataValue:c};return f.resultMask&&(h.maskData=f.resultMask),n.returnEncodedMask&&l.mask&&(h.encodedMaskData=l.mask.bitset?l.mask.bitset:null),n.returnFileInfo&&(h.fileInfo=o(l,c),n.computeUsedBitDepths&&(h.fileInfo.bitDepths=s(l))),h};var a=function(t,n,e,r,i){var a,o,s=0,u=t.pixels.numBlocksX,c=t.pixels.numBlocksY,f=Math.floor(t.width/u),h=Math.floor(t.height/c),m=2*t.maxZError;e=e||(t.mask?t.mask.bitset:null),a=new n(t.width*t.height),i&&e&&(o=new Uint8Array(t.width*t.height));for(var d,M,g=new Float32Array(f*h),x=0;x<=c;x++){var k=x!==c?h:t.height%c;if(0!==k)for(var p=0;p<=u;p++){var w=p!==u?f:t.width%u;if(0!==w){var b,y,v,B,V=x*t.width*h+p*f,U=t.width-w,I=t.pixels.blocks[s];if(I.encoding<2?(0===I.encoding?b=I.rawData:(l(I.stuffedData,I.bitsPerPixel,I.numValidPixels,I.offset,m,g,t.pixels.maxValue),b=g),y=0):v=2===I.encoding?0:I.offset,e)for(M=0;M<k;M++){for(7&V&&(B=e[V>>3],B<<=7&V),d=0;d<w;d++)7&V||(B=e[V>>3]),128&B?(o&&(o[V]=1),a[V++]=I.encoding<2?b[y++]:v):(o&&(o[V]=0),a[V++]=r),B<<=1;V+=U}else if(I.encoding<2)for(M=0;M<k;M++){for(d=0;d<w;d++)a[V++]=b[y++];V+=U}else for(M=0;M<k;M++)if(a.fill)a.fill(v,V,V+w),V+=w+U;else{for(d=0;d<w;d++)a[V++]=v;V+=U}if(1===I.encoding&&y!==I.numValidPixels)throw"Block and Mask do not match";s++}}}return{resultPixels:a,resultMask:o}},o=function(t,n){return{fileIdentifierString:t.fileIdentifierString,fileVersion:t.fileVersion,imageType:t.imageType,height:t.height,width:t.width,maxZError:t.maxZError,eofOffset:t.eofOffset,mask:t.mask?{numBlocksX:t.mask.numBlocksX,numBlocksY:t.mask.numBlocksY,numBytes:t.mask.numBytes,maxValue:t.mask.maxValue}:null,pixels:{numBlocksX:t.pixels.numBlocksX,numBlocksY:t.pixels.numBlocksY,numBytes:t.pixels.numBytes,maxValue:t.pixels.maxValue,minValue:t.pixels.minValue,noDataValue:n}}},s=function(t){for(var n=t.pixels.numBlocksX*t.pixels.numBlocksY,e={},r=0;r<n;r++){var i=t.pixels.blocks[r];0===i.encoding?e.float32=!0:1===i.encoding?e[i.bitsPerPixel]=!0:e[0]=!0}return Object.keys(e)},u=function(t,n,e){var r={},i=new Uint8Array(t,n,10);if(r.fileIdentifierString=String.fromCharCode.apply(null,i),"CntZImage"!=r.fileIdentifierString.trim())throw"Unexpected file identifier string: "+r.fileIdentifierString;n+=10;var a=new DataView(t,n,24);if(r.fileVersion=a.getInt32(0,!0),r.imageType=a.getInt32(4,!0),r.height=a.getUint32(8,!0),r.width=a.getUint32(12,!0),r.maxZError=a.getFloat64(16,!0),n+=24,!e)if(a=new DataView(t,n,16),r.mask={},r.mask.numBlocksY=a.getUint32(0,!0),r.mask.numBlocksX=a.getUint32(4,!0),r.mask.numBytes=a.getUint32(8,!0),r.mask.maxValue=a.getFloat32(12,!0),n+=16,r.mask.numBytes>0){var o=new Uint8Array(Math.ceil(r.width*r.height/8)),s=(a=new DataView(t,n,r.mask.numBytes)).getInt16(0,!0),u=2,l=0;do{if(s>0)for(;s--;)o[l++]=a.getUint8(u++);else{var c=a.getUint8(u++);for(s=-s;s--;)o[l++]=c}s=a.getInt16(u,!0),u+=2}while(u<r.mask.numBytes);if(-32768!==s||l<o.length)throw"Unexpected end of mask RLE encoding";r.mask.bitset=o,n+=r.mask.numBytes}else 0==(r.mask.numBytes|r.mask.numBlocksY|r.mask.maxValue)&&(o=new Uint8Array(Math.ceil(r.width*r.height/8)),r.mask.bitset=o);a=new DataView(t,n,16),r.pixels={},r.pixels.numBlocksY=a.getUint32(0,!0),r.pixels.numBlocksX=a.getUint32(4,!0),r.pixels.numBytes=a.getUint32(8,!0),r.pixels.maxValue=a.getFloat32(12,!0),n+=16;var f=r.pixels.numBlocksX,h=r.pixels.numBlocksY,m=f+(r.width%f>0?1:0),d=h+(r.height%h>0?1:0);r.pixels.blocks=new Array(m*d);for(var M=1e9,g=0,x=0;x<d;x++)for(var k=0;k<m;k++){var p=0,w=t.byteLength-n;a=new DataView(t,n,Math.min(10,w));var b={};r.pixels.blocks[g++]=b;var y=a.getUint8(0);if(p++,b.encoding=63&y,b.encoding>3)throw"Invalid block encoding ("+b.encoding+")";if(2!==b.encoding){if(0!==y&&2!==y){if(y>>=6,b.offsetType=y,2===y)b.offset=a.getInt8(1),p++;else if(1===y)b.offset=a.getInt16(1,!0),p+=2;else{if(0!==y)throw"Invalid block offset type";b.offset=a.getFloat32(1,!0),p+=4}if(M=Math.min(b.offset,M),1===b.encoding)if(y=a.getUint8(p),p++,b.bitsPerPixel=63&y,y>>=6,b.numValidPixelsType=y,2===y)b.numValidPixels=a.getUint8(p),p++;else if(1===y)b.numValidPixels=a.getUint16(p,!0),p+=2;else{if(0!==y)throw"Invalid valid pixel count type";b.numValidPixels=a.getUint32(p,!0),p+=4}}var v;if(n+=p,3!=b.encoding)if(0===b.encoding){var B=(r.pixels.numBytes-1)/4;if(B!==Math.floor(B))throw"uncompressed block has invalid length";v=new ArrayBuffer(4*B),new Uint8Array(v).set(new Uint8Array(t,n,4*B));for(var V=new Float32Array(v),U=0;U<V.length;U++)M=Math.min(M,V[U]);b.rawData=V,n+=4*B}else if(1===b.encoding){var I=Math.ceil(b.numValidPixels*b.bitsPerPixel/8),D=Math.ceil(I/4);v=new ArrayBuffer(4*D),new Uint8Array(v).set(new Uint8Array(t,n,I)),b.stuffedData=new Uint32Array(v),n+=I}}else n++,M=Math.min(M,0)}return r.pixels.minValue=M,r.eofOffset=n,r},l=function(t,n,e,r,i,a,o){var s,u,l,c=(1<<n)-1,f=0,h=0,m=Math.ceil((o-r)/i),d=4*t.length-Math.ceil(n*e/8);for(t[t.length-1]<<=8*d,s=0;s<e;s++){if(0===h&&(l=t[f++],h=32),h>=n)u=l>>>h-n&c,h-=n;else{var M=n-h;u=(l&c)<<M&c,u+=(l=t[f++])>>>(h=32-M)}a[s]=u<m?r+u*i:o}return a};const c=i.decode;class f{_decode(t){const n=c(t.buffer,t.options);return Promise.resolve({result:n,transferList:[n.pixelData.buffer]})}}function h(){return new f}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2168,8528],{8528:(e,t,s)=>{s.d(t,{c:()=>i,g:()=>n});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},11004:(e,t,s)=>{s.d(t,{o:()=>n});var i=s(74452);class n{constructor(e,t){this._storage=new i.kB,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this),t&&this._storage.registerRemoveFunc("",t)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,s=1){this._storage.put(this,e,t,s,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},74452:(e,t,s)=>{s.d(t,{ML:()=>o,kB:()=>a});var i,n,r=s(24680);(n=i||(i={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(e,t,s){this.name=e,this._storage=t,this.id=u+++":",this.size=0,this.maxSize=-1,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),s&&(this._storage.registerRemoveFunc(this.id,s),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get storageSize(){return this._storage.size}getSize(e){return this._storage.getSize(this,e)}resetHitRate(){this._hit=this._miss=0}put(e,t,s,i=0){this._storage.put(this,e,t,s,i)}pop(e){const t=this._storage.pop(this,e);return void 0===t?++this._miss:++this._hit,t}get(e){const t=this._storage.get(this,e);return void 0===t?++this._miss:++this._hit,t}peek(e){return this._storage.peek(this,e)}updateSize(e,t,s){this._storage.updateSize(this,e,t,s)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class a{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.c,this._users=new r.c}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(e){this._users.push(e)}deregister(e){this._users.removeUnordered(e)}registerRemoveFunc(e,t){this._removeFuncs.push([e,t])}deregisterRemoveFunc(e){this._removeFuncs.filterInPlace((t=>t[0]!==e))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const s=this._db.get(e.id+t);return s?.size??0}put(e,t,s,n,r){t=e.id+t;const o=this._db.get(t);if(o&&(this._size-=o.size,e.size-=o.size,this._db.delete(t),o.entry!==s&&this._notifyRemove(t,o.entry,o.size,i.ALL)),n>this._maxSize)return void this._notifyRemove(t,s,n,i.ALL);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return console.warn(`Refusing to cache entry with size ${n} for key ${t}`),void this._notifyRemove(t,s,0,i.ALL);const a=1+Math.max(r,-4)- -3;this._db.set(t,new l(s,n,a)),this._size+=n,e.size+=n,this._checkSize()}updateSize(e,t,s,n){t=e.id+t;const r=this._db.get(t);if(r&&r.entry===s){for(this._size-=r.size,e.size-=r.size;n>this._maxSize;){const e=this._notifyRemove(t,s,n,i.SOME);if(!(null!=e&&e>0))return void this._db.delete(t);n=e}r.size=n,this._size+=n,e.size+=n,this._checkSize()}}pop(e,t){t=e.id+t;const s=this._db.get(t);if(s)return this._size-=s.size,e.size-=s.size,this._db.delete(t),++this._hit,s.entry;++this._miss}get(e,t){t=e.id+t;const s=this._db.get(t);if(void 0!==s)return this._db.delete(t),s.lives=s.lifetime,this._db.set(t,s),++this._hit,s.entry;++this._miss}peek(e,t){const s=this._db.get(e.id+t);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},s=new Array;this._db.forEach(((e,i)=>{const n=e.lifetime;s[n]=(s[n]||0)+e.size,this._users.forAll((s=>{const{id:n,name:r}=s;if(i.startsWith(n)){const s=t[r]||0;t[r]=s+e.size}}))}));const i={};this._users.forAll((e=>{const s=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const n=t[s]||0;t[s]=n,i[s]=Math.round(100*e.hitRate)+"%"}else i[s]="0%"}));const n=Object.keys(t);n.sort(((e,s)=>t[s]-t[e])),n.forEach((s=>e[s]=Math.round(t[s]/2**20)+"MB / "+i[s]));for(let t=s.length-1;t>=0;--t){const i=s[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forAll((e=>e.resetHitRate()))}clear(e){const t=e.id;this._db.forEach(((e,s)=>{s.startsWith(t)&&(this._size-=e.size,this._db.delete(s),this._notifyRemove(s,e.entry,e.size,i.ALL))})),e.size=0}clearAll(){this._db.forEach(((e,t)=>this._notifyRemove(t,e.entry,e.size,i.ALL))),this._users.forAll((e=>e.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,s,i){let n;return this._removeFuncs.some((r=>{if(e.startsWith(r[0])){const e=r[1](t,i,s);return"number"==typeof e&&(n=e),!0}return!1})),n}_checkSize(){this._users.forAll((e=>this._checkSizeLimits(e))),this._checkSizeLimits()}_checkSizeLimits(e){const t=e??this;if(t.maxSize<0||t.size<=t.maxSize)return;const s=e?.id;let i=!0;for(;i;){i=!1;for(const[n,r]of this._db)if(0===r.lifetime&&(!s||n.startsWith(s))){if(this._purgeItem(n,r,e),t.size<=.9*t.maxSize)return;i||=this._db.has(n)}}for(const[i,n]of this._db)if((!s||i.startsWith(s))&&(this._purgeItem(i,n,e),t.size<=.9*t.maxSize))return}_purgeItem(e,t,s=this._users.find((t=>e.startsWith(t.id)))){if(this._db.delete(e),t.lives<=1){this._size-=t.size,s&&(s.size-=t.size);const n=this._notifyRemove(e,t.entry,t.size,i.SOME);null!=n&&n>0&&(this._size+=n,s&&(s.size+=n),t.lives=t.lifetime,t.size=n,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}let u=0;class l{constructor(e,t,s){this.entry=e,this.size=t,this.lifetime=s,this.lives=s}}},39180:(e,t,s)=>{function i(e){return null!=a(e)||null!=o(e)}function n(e){return u.test(e)}function r(e){return a(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let s=!0;if(h&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,i=0;for(;!t&&i<=e.length;)t=!l.test(e[i]),i++;s=!t}}return s}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=u.exec(e);if(!t?.groups)return null;const s=t.groups,i=+s.year,n=+s.month-1,r=+s.day,o=+(s.hours??"0"),a=+(s.minutes??"0"),l=+(s.seconds??"0");if(o>23)return null;if(a>59)return null;if(l>59)return null;const h=s.ms??"0",c=h?+h.padEnd(3,"0").substring(0,3):0;let d;if(s.isUTC||!s.offsetSign)d=Date.UTC(i,n,r,o,a,l,c);else{const e=+s.offsetHours,t=+s.offsetMinutes;d=6e4*("+"===s.offsetSign?-1:1)*(60*e+t)+Date.UTC(i,n,r,o,a,l,c)}return Number.isNaN(d)?null:d}s.d(t,{H9:()=>i,_:()=>n,sn:()=>r});const u=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,l=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,h=!Number.isNaN(new Date("technology 10").getTime())},3024:(e,t,s)=>{s.d(t,{U:()=>o});var i=s(92400),n=s(24680),r=s(85304);class o{constructor(e=9,t){this._compareMinX=h,this._compareMinY=c,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),x.prune(),S.prune(),b.prune(),I.prune()}all(e){this._all(this._data,e)}search(e,t){let s=this._data;const i=this._toBBox;if(g(e,s))for(x.clear();s;){for(let n=0,r=s.children.length;n<r;n++){const r=s.children[n],o=s.leaf?i(r):r;g(e,o)&&(s.leaf?t(r):y(e,o)?this._all(r,t):x.push(r))}s=x.pop()}}collides(e){let t=this._data;const s=this._toBBox;if(!g(e,t))return!1;for(x.clear();t;){for(let i=0,n=t.children.length;i<n;i++){const n=t.children[i],r=t.leaf?s(n):n;if(g(e,r)){if(t.leaf||y(e,r))return!0;x.push(n)}}t=x.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,s=e.length;t<s;t++)this.insert(e[t]);return this}let t=this._build(e.slice(0,e.length),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new F([]),this}remove(e){if(!e)return this;let t,s=this._data,n=null,r=0,o=!1;const a=this._toBBox(e);for(b.clear(),I.clear();s||b.length>0;){if(s||(s=b.pop(),n=b.data[b.length-1],r=I.pop()??0,o=!0),s.leaf&&(t=(0,i.IP)(s.children,e,s.children.length,s.indexHint),-1!==t))return s.children.splice(t,1),b.push(s),this._condense(b),this;o||s.leaf||!y(s,a)?n?(r++,s=n.children[r],o=!1):s=null:(b.push(s),I.push(r),r=0,n=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_all(e,t){let s=e;for(S.clear();s;){if(!0===s.leaf)for(const e of s.children)t(e);else S.pushArray(s.children);s=S.pop()??null}}_build(e,t,s,i){const n=s-t+1;let r=this._maxEntries;if(n<=r){const i=new F(e.slice(t,s+1));return a(i,this._toBBox),i}i||(i=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(i-1)));const o=new v([]);o.height=i;const u=Math.ceil(n/r),l=u*Math.ceil(Math.sqrt(r));_(e,t,s,l,this._compareMinX);for(let n=t;n<=s;n+=l){const t=Math.min(n+l-1,s);_(e,n,t,u,this._compareMinY);for(let s=n;s<=t;s+=u){const n=Math.min(s+u-1,t);o.children.push(this._build(e,s,n,i-1))}}return a(o,this._toBBox),o}_chooseSubtree(e,t,s,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==s;){let s,i=1/0,n=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=d(o),u=p(e,o)-a;u<n?(n=u,i=a<i?a:i,s=o):u===n&&a<i&&(i=a,s=o)}t=s||t.children[0]}return t}_insert(e,t,s){const i=this._toBBox,n=s?e:i(e);b.clear();const r=this._chooseSubtree(n,this._data,t,b);for(r.children.push(e),l(r,n);t>=0&&b.data[t].children.length>this._maxEntries;)this._split(b,t),t--;this._adjustParentBBoxes(n,b,t)}_split(e,t){const s=e.data[t],i=s.children.length,n=this._minEntries;this._chooseSplitAxis(s,n,i);const r=this._chooseSplitIndex(s,n,i);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=s.children.splice(r,s.children.length-r),u=s.leaf?new F(o):new v(o);u.height=s.height,a(s,this._toBBox),a(u,this._toBBox),t?e.data[t-1].children.push(u):this._splitRoot(s,u)}_splitRoot(e,t){this._data=new v([e,t]),this._data.height=e.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(e,t,s){let i,n,r;i=n=1/0;for(let o=t;o<=s-t;o++){const t=u(e,0,o,this._toBBox),a=u(e,o,s,this._toBBox),l=m(t,a),h=d(t)+d(a);l<i?(i=l,r=o,n=h<n?h:n):l===i&&h<n&&(n=h,r=o)}return r}_chooseSplitAxis(e,t,s){const i=e.leaf?this._compareMinX:h,n=e.leaf?this._compareMinY:c;this._allDistMargin(e,t,s,i)<this._allDistMargin(e,t,s,n)&&e.children.sort(i)}_allDistMargin(e,t,s,i){e.children.sort(i);const n=this._toBBox,r=u(e,0,t,n),o=u(e,s-t,s,n);let a=f(r)+f(o);for(let i=t;i<s-t;i++){const t=e.children[i];l(r,e.leaf?n(t):t),a+=f(r)}for(let i=s-t-1;i>=t;i--){const t=e.children[i];l(o,e.leaf?n(t):t),a+=f(o)}return a}_adjustParentBBoxes(e,t,s){for(let i=s;i>=0;i--)l(t.data[i],e)}_condense(e){for(let t=e.length-1;t>=0;t--){const s=e.data[t];if(0===s.children.length)if(t>0){const n=e.data[t-1],r=n.children;r.splice((0,i.IP)(r,s,r.length,n.indexHint),1)}else this.clear();else a(s,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function a(e,t){u(e,0,e.children.length,t,e)}function u(e,t,s,i,n){n||(n=new F([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=t;o<s;o++)r=e.children[o],l(n,e.leaf?i(r):r);return n}function l(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function h(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function d(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function p(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function m(e,t){const s=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,n-s)*Math.max(0,r-i)}function y(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function g(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function _(e,t,s,i,n){const o=[t,s];for(;o.length;){const t=o.pop(),s=o.pop();if(t-s<=i)continue;const a=s+Math.ceil((t-s)/i/2)*i;(0,r.q)(e,a,s,t,n),o.push(s,a,a,t)}}const x=new n.c,S=new n.c,b=new n.c,I=new n.c({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class M extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new i.is}}class F extends M{constructor(e){super(),this.children=e,this.leaf=!0}}class v extends M{constructor(e){super(),this.children=e,this.leaf=!1}}},57896:(e,t,s)=>{s.d(t,{Eq:()=>d,KG:()=>g,_8:()=>y,_I:()=>l,aE:()=>u,du:()=>m,on:()=>c}),s(40196),s(2952);var i=s(60976),n=s(38912),r=s(70680),o=s(10860),a=s(37176);function u(e,t,s={}){return h(e,t,s,f)}function l(e,t,s={}){return h(e,t,s,p)}function h(e,t,s={},i){let n=null;const o=s.once?(e,s)=>{i(e)&&((0,r.oR)(n),t(e,s))}:(e,s)=>{i(e)&&t(e,s)};if(n=(0,a.M9)(e,o,s.sync,s.equals),s.initial){const t=e();o(t,t)}return n}function c(e,t,s,o={}){let a=null,l=null,h=null;function c(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function d(e){o.once&&o.once&&(0,r.oR)(h),s(e)}const f=u(e,((e,s)=>{c(),(0,i.sh)(e)&&(a=e,l=(0,i.on)(e,t,d),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return h=(0,n.uU)((()=>{f.remove(),c()})),h}function d(e,t){return function(e,t,s){if((0,o.wv)(s))return Promise.reject((0,o.Uh)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function u(){a=(0,r.oR)(a)}return new Promise(((i,r)=>{a=(0,n.Ip)([(0,o.wD)(s,(()=>{u(),r((0,o.Uh)())})),h(e,(e=>{u(),i(e)}),{sync:!1,once:!0},t??f)])}))}(e,p,t)}function f(e){return!0}function p(e){return!!e}s(41168);const m={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},20480:(e,t,s)=>{s.d(t,{WW:()=>I});var i=s(6220),n=s(20744),r=s(66360),o=s(7488),a=s(48516),u=s(44048),l=s(60544),h=s(29120),c=(s(60708),s(2600)),d=s(6704),f=s(21980),p=s(28176),m=s(81976);const y=()=>r.c.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function _(e){return"polyline"===e[0].type}function x(e,t,s){if(t){const t=function(e,t){if(!(e instanceof a.c||e instanceof o.c)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw y().error(e),new n.c(e)}const s=(0,u.iM)(e),i=[];for(const e of s){const s=[];i.push(s),s.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const n=e[i][0],r=e[i][1],o=e[i+1][0],a=e[i+1][1],u=Math.sqrt((o-n)*(o-n)+(a-r)*(a-r)),l=(a-r)/u,h=(o-n)/u,c=u/t;if(c>1){for(let e=1;e<=c-1;e++){const i=e*t,o=h*i+n,a=l*i+r;s.push([o,a])}const e=(u+Math.floor(c-1)*t)/2,i=h*e+n,o=l*e+r;s.push([i,o])}s.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new o.c({rings:i,spatialReference:e.spatialReference}):new a.c({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,h.aq)(t,!0)}return s&&(e=(0,u.wb)(e,s)),e}function S(e,t,s){if(Array.isArray(e)){const i=e[0];if(i>t){const s=(0,u.yK)(i,t);e[0]=i+s*(-2*t)}else if(i<s){const t=(0,u.yK)(i,s);e[0]=i+t*(-2*s)}}else{const i=e.x;if(i>t){const s=(0,u.yK)(i,t);e=e.clone().offset(s*(-2*t),0)}else if(i<s){const t=(0,u.yK)(i,s);e=e.clone().offset(t*(-2*s),0)}}return e}function b(e,t){let s=-1;for(let i=0;i<t.cutIndexes.length;i++){const n=t.cutIndexes[i],r=t.geometries[i],o=(0,u.iM)(r);for(let e=0;e<o.length;e++){const t=o[e];t.some((s=>{if(s[0]<180)return!0;{let s=0;for(let e=0;e<t.length;e++){const i=t[e][0];s=i>s?i:s}s=Number(s.toFixed(9));const i=-360*(0,u.yK)(s,180);for(let s=0;s<t.length;s++){const t=r.getPoint(e,s);r.setPoint(e,s,t.clone().offset(i,0))}return!0}}))}if(n===s){if(g(e))for(const t of(0,u.iM)(r))e[n]=e[n].addRing(t);else if(_(e))for(const t of(0,u.iM)(r))e[n]=e[n].addPath(t)}else s=n,e[n]=r}return e}async function I(e,t,s){if(!Array.isArray(e))return I([e],t);t&&"string"!=typeof t&&y().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??i.default.geometryServiceUrl;let r,g,_,w,M,F,v,z,B=0;const E=[],R=[];for(const t of e)if(null!=t)if(r||(r=t.spatialReference,g=(0,l.Nq)(r),_=r.isWebMercator,F=_?102100:4326,w=u.Hh[F].maxX,M=u.Hh[F].minX,v=u.Hh[F].plus180Line,z=u.Hh[F].minus180Line),g)if("mesh"===t.type)R.push(t);else if("point"===t.type)R.push(S(t.clone(),w,M));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>S(e,w,M))),R.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);R.push(e.rings?new o.c(e):e)}else if(t.extent){const e=t.extent,s=(0,u.yK)(e.xmin,M)*(2*w);let i=0===s?t.clone():(0,u.wb)(t.clone(),s);e.offset(s,0),e.intersects(v)&&e.xmax!==w?(B=e.xmax>B?e.xmax:B,i=x(i,_),E.push(i),R.push("cut")):e.intersects(z)&&e.xmin!==M?(B=e.xmax*(2*w)>B?e.xmax*(2*w):B,i=x(i,_,360),E.push(i),R.push("cut")):R.push(i)}else R.push(t.clone());else R.push(t);else R.push(t);let T=(0,u.yK)(B,w),j=-90;const q=T,A=new a.c;for(;T>0;){const e=360*T-180;A.addPath([[e,j],[e,-1*j]]),j*=-1,T--}if(E.length>0&&q>0){const t=b(E,await async function(e,t,s,i){const n=(0,f.UX)(e),r=t[0].spatialReference,o={...i,responseType:"json",query:{...n.query,f:"json",sr:(0,l.um)(r),target:JSON.stringify({geometryType:(0,d.Ce)(t[0]),geometries:t}),cutter:JSON.stringify(s)}},a=await(0,c.c)(n.path+"/cut",o),{cutIndexes:u,geometries:h=[]}=a.data;return{cutIndexes:u,geometries:h.map((e=>{const t=(0,d.h4)(e);return t.spatialReference=r,t}))}}(n,E,A,s)),i=[],r=[];for(let s=0;s<R.length;s++){const n=R[s];if("cut"!==n)r.push(n);else{const n=t.shift(),o=e[s];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(i.push(n),r.push("simplify")):r.push(_?(0,h.w7)(n):n)}}if(!i.length)return r;const o=await async function(e,t,s){const i="string"==typeof e?(0,p.as)(e):e,n=t[0].spatialReference,r=(0,d.Ce)(t[0]),o={...s,query:{...i.query,f:"json",sr:(0,l.um)(n),geometries:JSON.stringify((0,m.y)(t))}},{data:a}=await(0,c.c)(i.path+"/simplify",o);return(0,m.Q)(a.geometries,r,n)}(n,i,s),a=[];for(let e=0;e<r.length;e++){const t=r[e];"simplify"!==t?a.push(t):a.push(_?(0,h.w7)(o.shift()):o.shift())}return a}const k=[];for(let e=0;e<R.length;e++){const t=R[e];if("cut"!==t)k.push(t);else{const e=E.shift();k.push(!0===_?(0,h.w7)(e):e)}}return k}},44048:(e,t,s)=>{s.d(t,{Hh:()=>o,iM:()=>l,wb:()=>u,yK:()=>a});var i=s(48516),n=s(56156),r=s(6704);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.c({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.c.WebMercator}),minus180Line:new i.c({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.c.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.c({paths:[[[180,-180],[180,180]]],spatialReference:n.c.WGS84}),minus180Line:new i.c({paths:[[[-180,-180],[-180,180]]],spatialReference:n.c.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){const s=l(e);for(const e of s)for(const s of e)s[0]+=t;return e}function l(e){return(0,r.Cs)(e)?e.rings:e.paths}},6904:(e,t,s)=>{s.d(t,{c:()=>a});var i=s(9456),n=s(3024),r=s(83372);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.U(9,(0,i.c)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((s,i)=>{e[t++]=i})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.FZ)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,s){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,s)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},9107:(e,t,s)=>{s.d(t,{c:()=>p});var i=s(92400),n=s(20744),r=s(77860),o=s(66360),a=s(77048),u=s(83372),l=s(97088),h=s(6904),c=s(83624),d=s(51752);const f=(0,a.Su)();class p{constructor(e){this.geometryInfo=e,this._boundsStore=new h.c,this._featuresById=new Map,this._markedIds=new Set,this.events=new r.c,this.featureAdapter=d.u}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,s,i,n]=this.fullBounds;return{xmin:t,ymin:s,xmax:i,ymax:n,spatialReference:(0,c.C6)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map((e=>this._upsert(e)));return this._emitChanged(),t.filter(i.G6)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const s of e){const e=this._boundsStore.get(s.objectId);e&&t((0,a.Qv)(f,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,s)=>{this._markedIds.has(s)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.c.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.c("featurestore:invalid-feature","feature id is missing",{feature:e}));const s=this._featuresById.get(t);let i;if(this._markedIds.add(t),s?(e.displayId=s.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t)):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);i=(0,l.C_)(null!=i?i:(0,u.Su)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e)}_upsert(e){const t=e?.objectId;if(null==t)return o.c.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.c("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const s=this._featuresById.get(t);if(!s)return this._add(e),e;this._markedIds.add(t);const{geometry:i,attributes:r}=e;for(const e in r)s.attributes[e]=r[e];return i&&(s.geometry=i,this._boundsStore.set(t,(0,l.C_)((0,u.Su)(),i,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),s}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._markedIds.delete(t),this._boundsStore.delete(t),this._featuresById.delete(t),e}}},53784:(e,t,s)=>{s.r(t),s.d(t,{default:()=>I});var i=s(2600),n=s(40196),r=s(20744),o=s(66360),a=s(10860),u=s(6704),l=s(60544),h=s(97088),c=s(9107),d=s(7684),f=s(47302),p=s(35756),m=s(17724),y=s(49372),g=s(16424),_=s(36408),x=s(564),S=s(28484);const b={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!1,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0}};class I{constructor(){this._queryEngine=null,this._snapshotFeatures=async e=>{const t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e,t={}){this._loadOptions={url:e.url,customParameters:e.customParameters};const s=[],[i]=await Promise.all([e.url?this._fetch(t?.signal):null,this._checkProjection(e.spatialReference)]),n=(0,p.kt)(i,{geometryType:e.geometryType}),o=e.fields||n.fields||[],a=null!=e.hasZ?e.hasZ:n.hasZ,u=n.geometryType;let h=e.objectIdField||n.objectIdFieldName||"__OBJECTID";const d=e.spatialReference||l.UH;let y=e.timeInfo;o===n.fields&&n.unknownFields.length>0&&s.push({name:"geojson-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:n.unknownFields}});const I=new g.c(o);let w=I.get(h);w?("esriFieldTypeString"!==w.type&&(w.type="esriFieldTypeOID"),w.editable=!1,w.nullable=!1,h=w.name):(w={alias:h,name:h,type:"string"===n.objectIdFieldType?"esriFieldTypeString":"esriFieldTypeOID",editable:!1,nullable:!1},o.unshift(w));const M={};for(const e of o){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),!e.name)throw new r.c("geojson-layer:invalid-field-name","field name is missing",{field:e});if(!_.M.jsonValues.includes(e.type))throw new r.c("geojson-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});if(e.name!==w.name){const t=(0,x.gB)(e);void 0!==t&&(M[e.name]=t)}null==e.length&&(e.length=(0,x.G0)(e))}if(y){if(y.startTimeField){const e=I.get(y.startTimeField);e?(y.startTimeField=e.name,e.type="esriFieldTypeDate"):y.startTimeField=null}if(y.endTimeField){const e=I.get(y.endTimeField);e?(y.endTimeField=e.name,e.type="esriFieldTypeDate"):y.endTimeField=null}if(y.trackIdField){const e=I.get(y.trackIdField);e?y.trackIdField=e.name:(y.trackIdField=null,s.push({name:"geojson-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:y}}))}y.startTimeField||y.endTimeField||(s.push({name:"geojson-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:y}}),y=null)}const F=u?(0,m.w7)(u):void 0,v=I.dateFields.length?{timeZoneIANA:S.Gw}:null,z={warnings:s,featureErrors:[],layerDefinition:{...b,drawingInfo:F??void 0,templates:(0,m.QD)(M),extent:void 0,geometryType:u,objectIdField:h,fields:o,hasZ:!!a,timeInfo:y,dateFieldsTimeReference:v}};this._queryEngine=new f.U({fieldsIndex:g.c.fromLayerJSON({fields:o,timeInfo:y,dateFieldsTimeReference:v}),geometryType:u,hasM:!1,hasZ:a,objectIdField:h,spatialReference:d,timeInfo:y,featureStore:new c.c({geometryType:u,hasM:!1,hasZ:a}),cacheSpatialQueries:!0});const B=this._queryEngine.fieldsIndex.requiredFields.indexOf(w);B>-1&&this._queryEngine.fieldsIndex.requiredFields.splice(B,1),this._createDefaultAttributes=(0,m.GA)(M,h);const E=await this._createFeatures(i);this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,E);const R=this._normalizeFeatures(E,z.featureErrors);this._queryEngine.featureStore.addMany(R);const{fullExtent:T,timeExtent:j}=await this._queryEngine.fetchRecomputedExtents();if(z.layerDefinition.extent=T,j){const{start:e,end:t}=j;z.layerDefinition.timeInfo.timeExtent=[e,t]}return z}async applyEdits(e){const{spatialReference:t,geometryType:s}=this._queryEngine;return await Promise.all([(0,y.Oo)(t,s),(0,d.Qv)(e.adds,t),(0,d.Qv)(e.updates,t)]),await this._waitSnapshotComplete(),this._applyEdits(e)}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(e,t.signal)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForSnapping(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,n.kn)(this._snapshotFeatures),this._snapshotTask.promise.then((e=>{this._queryEngine.featureStore.clear(),this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,e);const t=this._normalizeFeatures(e);t&&this._queryEngine.featureStore.addMany(t)}),(e=>{this._queryEngine.featureStore.clear(),(0,a.mA)(e)||o.c.getLogger("esri.layers.GeoJSONLayer").error(new r.c("geojson-layer:refresh","An error occurred during refresh",{error:e}))})),await this._waitSnapshotComplete();const{fullExtent:t,timeExtent:s}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:s}}async _createFeatures(e){if(null==e)return[];const{geometryType:t,hasZ:s,objectIdField:i}=this._queryEngine,n=(0,p.MN)(e,{geometryType:t,hasZ:s,objectIdField:i});if(!(0,l.yK)(this._queryEngine.spatialReference,l.UH))for(const e of n)null!=e.geometry&&(e.geometry=(0,h.C)((0,d.yU)((0,h.qw)(e.geometry,this._queryEngine.geometryType,this._queryEngine.hasZ,!1),l.UH,this._queryEngine.spatialReference)));return n}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){const{url:t,customParameters:s}=this._loadOptions,n=(await(0,i.c)(t,{responseType:"json",query:{...s},signal:e})).data;return(0,p.ii)(n),n}_normalizeFeatures(e,t){const{objectIdField:s,fieldsIndex:i}=this._queryEngine,n=[];for(const r of e){const e=this._createDefaultAttributes(),o=(0,y.uo)(i,e,r.attributes,!0);o?t?.push(o):(this._assignObjectId(e,r.attributes,!0),r.attributes=e,r.objectId=e[s],n.push(r))}return n}async _applyEdits(e){const{adds:t,updates:s,deletes:i}=e,n={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(n,t),s?.length&&this._applyUpdateEdits(n,s),i?.length){for(const e of i)n.deleteResults.push((0,y.GI)(e));this._queryEngine.featureStore.removeManyById(i)}const{fullExtent:r,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:r,timeExtent:o,featureEditResults:n}}_applyAddEdits(e,t){const{addResults:s}=e,{geometryType:i,hasM:n,hasZ:r,objectIdField:o,spatialReference:a,featureStore:l,fieldsIndex:c}=this._queryEngine,f=[];for(const n of t){if(n.geometry&&i!==(0,u.Ce)(n.geometry)){s.push((0,y.or)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),r=(0,y.uo)(c,t,n.attributes);if(r)s.push(r);else{if(this._assignObjectId(t,n.attributes),n.attributes=t,null!=n.uid){const t=n.attributes[o];e.uidToObjectId[n.uid]=t}if(null!=n.geometry){const e=n.geometry.spatialReference??a;n.geometry=(0,d.yU)((0,y.OM)(n.geometry,e),e,a)}f.push(n),s.push((0,y.GI)(n.attributes[o]))}}l.addMany((0,h.od)([],f,i,r,n,o))}_applyUpdateEdits({updateResults:e},t){const{geometryType:s,hasM:i,hasZ:n,objectIdField:r,spatialReference:o,featureStore:a,fieldsIndex:l}=this._queryEngine;for(const c of t){const{attributes:t,geometry:f}=c,p=t?.[r];if(null==p){e.push((0,y.or)(`Identifier field ${r} missing`));continue}if(!a.has(p)){e.push((0,y.or)(`Feature with object id ${p} missing`));continue}const m=(0,h.G0)(a.getFeature(p),s,n,i);if(null!=f){if(s!==(0,u.Ce)(f)){e.push((0,y.or)("Incorrect geometry type."));continue}const t=f.spatialReference??o;m.geometry=(0,d.yU)((0,y.OM)(f,t),t,o)}if(t){const s=(0,y.uo)(l,m.attributes,t);if(s){e.push(s);continue}}a.add((0,h.ye)(m,s,n,i,r)),e.push((0,y.GI)(p))}}_createObjectIdGenerator(e,t){const s=e.fieldsIndex.get(e.objectIdField);if("esriFieldTypeString"===s.type)return()=>s.name+"-"+Date.now().toString(16);let i=Number.NEGATIVE_INFINITY;for(const e of t)e.objectId&&(i=Math.max(i,e.objectId));return i=Math.max(0,i)+1,()=>i++}_assignObjectId(e,t,s=!1){const i=this._queryEngine.objectIdField;e[i]=s&&i in t?t[i]:this._objectIdGenerator()}async _checkProjection(e){try{await(0,d.Qv)(l.UH,e)}catch{throw new r.c("geojson-layer","Projection not supported")}}}},35756:(e,t,s)=>{s.d(t,{MN:()=>F,ii:()=>w,kt:()=>M,uG:()=>h});var i=s(39180),n=s(20744),r=s(60544),o=s(34888),a=s(85152),u=s(564);const l={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function h(e){return l[e]}function*c(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*d(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function f(e){for(const t of e)if(t.length>2)return!0;return!1}function p(e){let t=0;for(let s=0;s<e.length;s++){const i=e[s],n=e[(s+1)%e.length];t+=i[0]*n[1]-n[0]*i[1]}return t<=0}function m(e){const t=e[0],s=e[e.length-1];return t[0]===s[0]&&t[1]===s[1]&&t[2]===s[2]||e.push(t),e}function y(e,t,s){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,s){return x(e,t.coordinates,s),e}(e,t,s);case"MultiLineString":return function(e,t,s){for(const i of t.coordinates)x(e,i,s);return e}(e,t,s);case"MultiPolygon":return function(e,t,s){for(const i of t.coordinates){g(e,i[0],s);for(let t=1;t<i.length;t++)_(e,i[t],s)}return e}(e,t,s);case"Point":return function(e,t,s){return b(e,t.coordinates,s),e}(e,t,s);case"Polygon":return function(e,t,s){const i=t.coordinates;g(e,i[0],s);for(let t=1;t<i.length;t++)_(e,i[t],s);return e}(e,t,s)}}function g(e,t,s){const i=m(t);!function(e){return!p(e)}(i)?x(e,i,s):S(e,i,s)}function _(e,t,s){const i=m(t);!function(e){return p(e)}(i)?x(e,i,s):S(e,i,s)}function x(e,t,s){for(const i of t)b(e,i,s);e.lengths.push(t.length)}function S(e,t,s){for(let i=t.length-1;i>=0;i--)b(e,t[i],s);e.lengths.push(t.length)}function b(e,t,s){const[i,n,r]=t;e.coords.push(i,n),s.hasZ&&e.coords.push(r||0)}function I(e){switch(typeof e){case"string":return(0,i._)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function w(e,t=4326){if(!e)throw new n.c("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new n.c("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:s}=e;if(!s)return;const i="string"==typeof s?s:"name"===s.type?s.properties.name:"EPSG"===s.type?s.properties.code:null,o=(0,r.__)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!i||!o.test(i))throw new n.c("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:s})}function M(e,t={}){const s=[],i=new Set,n=new Set;let r,o=!1,a=null,l=!1,{geometryType:p=null}=t,m=!1;for(const t of c(e)){const{geometry:e,properties:c,id:y}=t;if((!e||(p||(p=h(e.type)),h(e.type)===p))&&(o||(o=f(d(e))),l||(l=null!=y,l&&(r=typeof y,c&&(a=Object.keys(c).filter((e=>c[e]===y))))),c&&a&&l&&null!=y&&(a.length>1?a=a.filter((e=>c[e]===y)):1===a.length&&(a=c[a[0]]===y?a:[])),!m&&c)){let e=!0;for(const t in c){if(i.has(t))continue;const r=c[t];if(null==r){e=!1,n.add(t);continue}const o=I(r);if("unknown"===o){n.add(t);continue}n.delete(t),i.add(t);const a=(0,u.gP)(t);a&&s.push({name:a,alias:t,type:o})}m=e}}const y=(0,u.gP)(1===a?.length&&a[0]||null)??void 0;if(y)for(const e of s)if(e.name===y&&(0,u.iW)(e)){e.type="esriFieldTypeOID";break}return{fields:s,geometryType:p,hasZ:o,objectIdFieldName:y,objectIdFieldType:r,unknownFields:Array.from(n)}}function F(e,t){return Array.from(function*(e,t={}){const{geometryType:s,objectIdField:i}=t;for(const n of e){const{geometry:e,properties:r,id:u}=n;if(e&&h(e.type)!==s)continue;const l=r||{};let c;i&&(c=l[i],null==u||c||(l[i]=c=u));const d=new o._M(e?y(new a.c,e,t):null,l,null,c??void 0);yield d}}(c(e),t))}},17724:(e,t,s)=>{s.d(t,{G4:()=>d,GA:()=>h,QD:()=>c,w7:()=>a});var i=s(9456),n=s(62088),r=s(13136),o=s(9504);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.qe:"esriGeometryPolyline"===e?o.MZ:o.yq}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function h(e,t){if((0,i.c)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let s=`this.${t} = null;`;for(const t in e)s+=`this${u.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const i=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${s};\n }\n }\n `)();return()=>new i}catch(s){return()=>({[t]:null,...e})}}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.ct)(e)}}]}function d(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,supportsAsyncConvert3D:!1},query:r.u,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,zDefault:void 0}}}},49372:(e,t,s)=>{s.d(t,{GI:()=>h,OM:()=>m,Oo:()=>y,or:()=>u,uo:()=>d});var i=s(39180),n=s(60544),r=s(564);class o{constructor(){this.code=null,this.description=null}}class a{constructor(e){this.error=new o,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=e}}function u(e){return new a(e)}class l{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function h(e){return new l(e)}const c=new Set;function d(e,t,s,i=!1){c.clear();for(const n in s){const o=e.get(n);if(!o)continue;const a=f(o,s[n]);if(c.add(o.name),o&&(i||o.editable)){const e=(0,r.YT)(o,a);if(e)return u((0,r.Ke)(e,o,a));t[o.name]=a}}for(const t of e?.requiredFields??[])if(!c.has(t.name))return u(`missing required field "${t.name}"`);return null}function f(e,t){let s=t;return(0,r.iW)(e)&&"string"==typeof t?s=parseFloat(t):(0,r.AZ)(e)&&null!=t&&"string"!=typeof t?s=String(t):(0,r.gp)(e)&&"string"==typeof t&&(s=(0,i.sn)(t)),(0,r.OJ)(s)}let p;function m(e,t){if(!e||!(0,n.U3)(t))return e;if("rings"in e||"paths"in e){if(null==p)throw new TypeError("geometry engine not loaded");return p.simplify(t,e)}return e}async function y(e,t){!(0,n.U3)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==p&&(p=await Promise.all([s.e(984),s.e(2704)]).then(s.bind(s,82704))),p}()}},81976:(e,t,s)=>{s.d(t,{Q:()=>r,y:()=>n});var i=s(6704);function n(e){return{geometryType:(0,i.Ce)(e[0]),geometries:e.map((e=>e.toJSON()))}}function r(e,t,s){const n=(0,i.uG)(t);return e.map((e=>{const t=n.fromJSON(e);return t.spatialReference=s,t}))}},21980:(e,t,s)=>{s.d(t,{OW:()=>a,UX:()=>o,sR:()=>r}),s(6220),s(47620);var i=s(62088),n=s(28176);function r(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function o(e){return"string"==typeof e?(0,n.as)(e):(0,i.ct)(e)}function a(e,t,s){const i={};for(const n in e){if("declaredClass"===n)continue;const r=e[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r))i[n]=r.map((e=>a({item:e},t,s).item));else if("object"==typeof r)if(r.toJSON){const e=r.toJSON(s?.[n]);i[n]=t?e:JSON.stringify(e)}else i[n]=t?r:JSON.stringify(r);else i[n]=r}return i}s(20572)},9504:(e,t,s)=>{s.d(t,{MZ:()=>r,aV:()=>l,gF:()=>a,gP:()=>u,qe:()=>n,wp:()=>h,yq:()=>o});const i=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},r={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]}},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},u={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},l={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},h={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2168,8528],{8528:(e,t,s)=>{s.d(t,{c:()=>i,g:()=>n});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},11004:(e,t,s)=>{s.d(t,{o:()=>n});var i=s(74452);class n{constructor(e,t){this._storage=new i.kB,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this),t&&this._storage.registerRemoveFunc("",t)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,s=1){this._storage.put(this,e,t,s,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},74452:(e,t,s)=>{s.d(t,{ML:()=>o,kB:()=>a});var i,n,r=s(24680);(n=i||(i={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(e,t,s){this.name=e,this._storage=t,this.id=u+++":",this.size=0,this.maxSize=-1,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),s&&(this._storage.registerRemoveFunc(this.id,s),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get storageSize(){return this._storage.size}getSize(e){return this._storage.getSize(this,e)}resetHitRate(){this._hit=this._miss=0}put(e,t,s,i=0){this._storage.put(this,e,t,s,i)}pop(e){const t=this._storage.pop(this,e);return void 0===t?++this._miss:++this._hit,t}get(e){const t=this._storage.get(this,e);return void 0===t?++this._miss:++this._hit,t}peek(e){return this._storage.peek(this,e)}updateSize(e,t,s){this._storage.updateSize(this,e,t,s)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class a{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.c,this._users=new r.c}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(e){this._users.push(e)}deregister(e){this._users.removeUnordered(e)}registerRemoveFunc(e,t){this._removeFuncs.push([e,t])}deregisterRemoveFunc(e){this._removeFuncs.filterInPlace((t=>t[0]!==e))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const s=this._db.get(e.id+t);return s?.size??0}put(e,t,s,n,r){t=e.id+t;const o=this._db.get(t);if(o&&(this._size-=o.size,e.size-=o.size,this._db.delete(t),o.entry!==s&&this._notifyRemove(t,o.entry,o.size,i.ALL)),n>this._maxSize)return void this._notifyRemove(t,s,n,i.ALL);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return console.warn(`Refusing to cache entry with size ${n} for key ${t}`),void this._notifyRemove(t,s,0,i.ALL);const a=1+Math.max(r,-4)- -3;this._db.set(t,new l(s,n,a)),this._size+=n,e.size+=n,this._checkSize()}updateSize(e,t,s,n){t=e.id+t;const r=this._db.get(t);if(r&&r.entry===s){for(this._size-=r.size,e.size-=r.size;n>this._maxSize;){const e=this._notifyRemove(t,s,n,i.SOME);if(!(null!=e&&e>0))return void this._db.delete(t);n=e}r.size=n,this._size+=n,e.size+=n,this._checkSize()}}pop(e,t){t=e.id+t;const s=this._db.get(t);if(s)return this._size-=s.size,e.size-=s.size,this._db.delete(t),++this._hit,s.entry;++this._miss}get(e,t){t=e.id+t;const s=this._db.get(t);if(void 0!==s)return this._db.delete(t),s.lives=s.lifetime,this._db.set(t,s),++this._hit,s.entry;++this._miss}peek(e,t){const s=this._db.get(e.id+t);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},s=new Array;this._db.forEach(((e,i)=>{const n=e.lifetime;s[n]=(s[n]||0)+e.size,this._users.forAll((s=>{const{id:n,name:r}=s;if(i.startsWith(n)){const s=t[r]||0;t[r]=s+e.size}}))}));const i={};this._users.forAll((e=>{const s=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const n=t[s]||0;t[s]=n,i[s]=Math.round(100*e.hitRate)+"%"}else i[s]="0%"}));const n=Object.keys(t);n.sort(((e,s)=>t[s]-t[e])),n.forEach((s=>e[s]=Math.round(t[s]/2**20)+"MB / "+i[s]));for(let t=s.length-1;t>=0;--t){const i=s[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forAll((e=>e.resetHitRate()))}clear(e){const t=e.id;this._db.forEach(((e,s)=>{s.startsWith(t)&&(this._size-=e.size,this._db.delete(s),this._notifyRemove(s,e.entry,e.size,i.ALL))})),e.size=0}clearAll(){this._db.forEach(((e,t)=>this._notifyRemove(t,e.entry,e.size,i.ALL))),this._users.forAll((e=>e.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,s,i){let n;return this._removeFuncs.some((r=>{if(e.startsWith(r[0])){const e=r[1](t,i,s);return"number"==typeof e&&(n=e),!0}return!1})),n}_checkSize(){this._users.forAll((e=>this._checkSizeLimits(e))),this._checkSizeLimits()}_checkSizeLimits(e){const t=e??this;if(t.maxSize<0||t.size<=t.maxSize)return;const s=e?.id;let i=!0;for(;i;){i=!1;for(const[n,r]of this._db)if(0===r.lifetime&&(!s||n.startsWith(s))){if(this._purgeItem(n,r,e),t.size<=.9*t.maxSize)return;i||=this._db.has(n)}}for(const[i,n]of this._db)if((!s||i.startsWith(s))&&(this._purgeItem(i,n,e),t.size<=.9*t.maxSize))return}_purgeItem(e,t,s=this._users.find((t=>e.startsWith(t.id)))){if(this._db.delete(e),t.lives<=1){this._size-=t.size,s&&(s.size-=t.size);const n=this._notifyRemove(e,t.entry,t.size,i.SOME);null!=n&&n>0&&(this._size+=n,s&&(s.size+=n),t.lives=t.lifetime,t.size=n,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}let u=0;class l{constructor(e,t,s){this.entry=e,this.size=t,this.lifetime=s,this.lives=s}}},39180:(e,t,s)=>{function i(e){return null!=a(e)||null!=o(e)}function n(e){return u.test(e)}function r(e){return a(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let s=!0;if(h&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,i=0;for(;!t&&i<=e.length;)t=!l.test(e[i]),i++;s=!t}}return s}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=u.exec(e);if(!t?.groups)return null;const s=t.groups,i=+s.year,n=+s.month-1,r=+s.day,o=+(s.hours??"0"),a=+(s.minutes??"0"),l=+(s.seconds??"0");if(o>23)return null;if(a>59)return null;if(l>59)return null;const h=s.ms??"0",c=h?+h.padEnd(3,"0").substring(0,3):0;let d;if(s.isUTC||!s.offsetSign)d=Date.UTC(i,n,r,o,a,l,c);else{const e=+s.offsetHours,t=+s.offsetMinutes;d=6e4*("+"===s.offsetSign?-1:1)*(60*e+t)+Date.UTC(i,n,r,o,a,l,c)}return Number.isNaN(d)?null:d}s.d(t,{H9:()=>i,_:()=>n,sn:()=>r});const u=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,l=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,h=!Number.isNaN(new Date("technology 10").getTime())},3024:(e,t,s)=>{s.d(t,{U:()=>o});var i=s(92400),n=s(24680),r=s(85304);class o{constructor(e=9,t){this._compareMinX=h,this._compareMinY=c,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),x.prune(),S.prune(),b.prune(),I.prune()}all(e){this._all(this._data,e)}search(e,t){let s=this._data;const i=this._toBBox;if(g(e,s))for(x.clear();s;){for(let n=0,r=s.children.length;n<r;n++){const r=s.children[n],o=s.leaf?i(r):r;g(e,o)&&(s.leaf?t(r):y(e,o)?this._all(r,t):x.push(r))}s=x.pop()}}collides(e){let t=this._data;const s=this._toBBox;if(!g(e,t))return!1;for(x.clear();t;){for(let i=0,n=t.children.length;i<n;i++){const n=t.children[i],r=t.leaf?s(n):n;if(g(e,r)){if(t.leaf||y(e,r))return!0;x.push(n)}}t=x.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,s=e.length;t<s;t++)this.insert(e[t]);return this}let t=this._build(e.slice(0,e.length),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new F([]),this}remove(e){if(!e)return this;let t,s=this._data,n=null,r=0,o=!1;const a=this._toBBox(e);for(b.clear(),I.clear();s||b.length>0;){if(s||(s=b.pop(),n=b.data[b.length-1],r=I.pop()??0,o=!0),s.leaf&&(t=(0,i.IP)(s.children,e,s.children.length,s.indexHint),-1!==t))return s.children.splice(t,1),b.push(s),this._condense(b),this;o||s.leaf||!y(s,a)?n?(r++,s=n.children[r],o=!1):s=null:(b.push(s),I.push(r),r=0,n=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_all(e,t){let s=e;for(S.clear();s;){if(!0===s.leaf)for(const e of s.children)t(e);else S.pushArray(s.children);s=S.pop()??null}}_build(e,t,s,i){const n=s-t+1;let r=this._maxEntries;if(n<=r){const i=new F(e.slice(t,s+1));return a(i,this._toBBox),i}i||(i=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(i-1)));const o=new v([]);o.height=i;const u=Math.ceil(n/r),l=u*Math.ceil(Math.sqrt(r));_(e,t,s,l,this._compareMinX);for(let n=t;n<=s;n+=l){const t=Math.min(n+l-1,s);_(e,n,t,u,this._compareMinY);for(let s=n;s<=t;s+=u){const n=Math.min(s+u-1,t);o.children.push(this._build(e,s,n,i-1))}}return a(o,this._toBBox),o}_chooseSubtree(e,t,s,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==s;){let s,i=1/0,n=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=d(o),u=p(e,o)-a;u<n?(n=u,i=a<i?a:i,s=o):u===n&&a<i&&(i=a,s=o)}t=s||t.children[0]}return t}_insert(e,t,s){const i=this._toBBox,n=s?e:i(e);b.clear();const r=this._chooseSubtree(n,this._data,t,b);for(r.children.push(e),l(r,n);t>=0&&b.data[t].children.length>this._maxEntries;)this._split(b,t),t--;this._adjustParentBBoxes(n,b,t)}_split(e,t){const s=e.data[t],i=s.children.length,n=this._minEntries;this._chooseSplitAxis(s,n,i);const r=this._chooseSplitIndex(s,n,i);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=s.children.splice(r,s.children.length-r),u=s.leaf?new F(o):new v(o);u.height=s.height,a(s,this._toBBox),a(u,this._toBBox),t?e.data[t-1].children.push(u):this._splitRoot(s,u)}_splitRoot(e,t){this._data=new v([e,t]),this._data.height=e.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(e,t,s){let i,n,r;i=n=1/0;for(let o=t;o<=s-t;o++){const t=u(e,0,o,this._toBBox),a=u(e,o,s,this._toBBox),l=m(t,a),h=d(t)+d(a);l<i?(i=l,r=o,n=h<n?h:n):l===i&&h<n&&(n=h,r=o)}return r}_chooseSplitAxis(e,t,s){const i=e.leaf?this._compareMinX:h,n=e.leaf?this._compareMinY:c;this._allDistMargin(e,t,s,i)<this._allDistMargin(e,t,s,n)&&e.children.sort(i)}_allDistMargin(e,t,s,i){e.children.sort(i);const n=this._toBBox,r=u(e,0,t,n),o=u(e,s-t,s,n);let a=f(r)+f(o);for(let i=t;i<s-t;i++){const t=e.children[i];l(r,e.leaf?n(t):t),a+=f(r)}for(let i=s-t-1;i>=t;i--){const t=e.children[i];l(o,e.leaf?n(t):t),a+=f(o)}return a}_adjustParentBBoxes(e,t,s){for(let i=s;i>=0;i--)l(t.data[i],e)}_condense(e){for(let t=e.length-1;t>=0;t--){const s=e.data[t];if(0===s.children.length)if(t>0){const n=e.data[t-1],r=n.children;r.splice((0,i.IP)(r,s,r.length,n.indexHint),1)}else this.clear();else a(s,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function a(e,t){u(e,0,e.children.length,t,e)}function u(e,t,s,i,n){n||(n=new F([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=t;o<s;o++)r=e.children[o],l(n,e.leaf?i(r):r);return n}function l(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function h(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function d(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function p(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function m(e,t){const s=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,n-s)*Math.max(0,r-i)}function y(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function g(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function _(e,t,s,i,n){const o=[t,s];for(;o.length;){const t=o.pop(),s=o.pop();if(t-s<=i)continue;const a=s+Math.ceil((t-s)/i/2)*i;(0,r.q)(e,a,s,t,n),o.push(s,a,a,t)}}const x=new n.c,S=new n.c,b=new n.c,I=new n.c({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class M extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new i.is}}class F extends M{constructor(e){super(),this.children=e,this.leaf=!0}}class v extends M{constructor(e){super(),this.children=e,this.leaf=!1}}},57896:(e,t,s)=>{s.d(t,{Eq:()=>d,KG:()=>g,_8:()=>y,_I:()=>l,aE:()=>u,du:()=>m,on:()=>c}),s(40196),s(2952);var i=s(60976),n=s(38912),r=s(70680),o=s(10860),a=s(37176);function u(e,t,s={}){return h(e,t,s,f)}function l(e,t,s={}){return h(e,t,s,p)}function h(e,t,s={},i){let n=null;const o=s.once?(e,s)=>{i(e)&&((0,r.oR)(n),t(e,s))}:(e,s)=>{i(e)&&t(e,s)};if(n=(0,a.M9)(e,o,s.sync,s.equals),s.initial){const t=e();o(t,t)}return n}function c(e,t,s,o={}){let a=null,l=null,h=null;function c(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function d(e){o.once&&o.once&&(0,r.oR)(h),s(e)}const f=u(e,((e,s)=>{c(),(0,i.sh)(e)&&(a=e,l=(0,i.on)(e,t,d),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return h=(0,n.uU)((()=>{f.remove(),c()})),h}function d(e,t){return function(e,t,s){if((0,o.wv)(s))return Promise.reject((0,o.Uh)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function u(){a=(0,r.oR)(a)}return new Promise(((i,r)=>{a=(0,n.Ip)([(0,o.wD)(s,(()=>{u(),r((0,o.Uh)())})),h(e,(e=>{u(),i(e)}),{sync:!1,once:!0},t??f)])}))}(e,p,t)}function f(e){return!0}function p(e){return!!e}s(41168);const m={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},20480:(e,t,s)=>{s.d(t,{WW:()=>I});var i=s(6220),n=s(20744),r=s(66360),o=s(7488),a=s(48516),u=s(44048),l=s(60544),h=s(29120),c=(s(60708),s(2600)),d=s(6704),f=s(21980),p=s(28176),m=s(81976);const y=()=>r.c.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function _(e){return"polyline"===e[0].type}function x(e,t,s){if(t){const t=function(e,t){if(!(e instanceof a.c||e instanceof o.c)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw y().error(e),new n.c(e)}const s=(0,u.iM)(e),i=[];for(const e of s){const s=[];i.push(s),s.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const n=e[i][0],r=e[i][1],o=e[i+1][0],a=e[i+1][1],u=Math.sqrt((o-n)*(o-n)+(a-r)*(a-r)),l=(a-r)/u,h=(o-n)/u,c=u/t;if(c>1){for(let e=1;e<=c-1;e++){const i=e*t,o=h*i+n,a=l*i+r;s.push([o,a])}const e=(u+Math.floor(c-1)*t)/2,i=h*e+n,o=l*e+r;s.push([i,o])}s.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new o.c({rings:i,spatialReference:e.spatialReference}):new a.c({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,h.aq)(t,!0)}return s&&(e=(0,u.wb)(e,s)),e}function S(e,t,s){if(Array.isArray(e)){const i=e[0];if(i>t){const s=(0,u.yK)(i,t);e[0]=i+s*(-2*t)}else if(i<s){const t=(0,u.yK)(i,s);e[0]=i+t*(-2*s)}}else{const i=e.x;if(i>t){const s=(0,u.yK)(i,t);e=e.clone().offset(s*(-2*t),0)}else if(i<s){const t=(0,u.yK)(i,s);e=e.clone().offset(t*(-2*s),0)}}return e}function b(e,t){let s=-1;for(let i=0;i<t.cutIndexes.length;i++){const n=t.cutIndexes[i],r=t.geometries[i],o=(0,u.iM)(r);for(let e=0;e<o.length;e++){const t=o[e];t.some((s=>{if(s[0]<180)return!0;{let s=0;for(let e=0;e<t.length;e++){const i=t[e][0];s=i>s?i:s}s=Number(s.toFixed(9));const i=-360*(0,u.yK)(s,180);for(let s=0;s<t.length;s++){const t=r.getPoint(e,s);r.setPoint(e,s,t.clone().offset(i,0))}return!0}}))}if(n===s){if(g(e))for(const t of(0,u.iM)(r))e[n]=e[n].addRing(t);else if(_(e))for(const t of(0,u.iM)(r))e[n]=e[n].addPath(t)}else s=n,e[n]=r}return e}async function I(e,t,s){if(!Array.isArray(e))return I([e],t);t&&"string"!=typeof t&&y().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??i.default.geometryServiceUrl;let r,g,_,w,M,F,v,z,B=0;const E=[],R=[];for(const t of e)if(null!=t)if(r||(r=t.spatialReference,g=(0,l.Nq)(r),_=r.isWebMercator,F=_?102100:4326,w=u.Hh[F].maxX,M=u.Hh[F].minX,v=u.Hh[F].plus180Line,z=u.Hh[F].minus180Line),g)if("mesh"===t.type)R.push(t);else if("point"===t.type)R.push(S(t.clone(),w,M));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>S(e,w,M))),R.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);R.push(e.rings?new o.c(e):e)}else if(t.extent){const e=t.extent,s=(0,u.yK)(e.xmin,M)*(2*w);let i=0===s?t.clone():(0,u.wb)(t.clone(),s);e.offset(s,0),e.intersects(v)&&e.xmax!==w?(B=e.xmax>B?e.xmax:B,i=x(i,_),E.push(i),R.push("cut")):e.intersects(z)&&e.xmin!==M?(B=e.xmax*(2*w)>B?e.xmax*(2*w):B,i=x(i,_,360),E.push(i),R.push("cut")):R.push(i)}else R.push(t.clone());else R.push(t);else R.push(t);let T=(0,u.yK)(B,w),j=-90;const q=T,A=new a.c;for(;T>0;){const e=360*T-180;A.addPath([[e,j],[e,-1*j]]),j*=-1,T--}if(E.length>0&&q>0){const t=b(E,await async function(e,t,s,i){const n=(0,f.UX)(e),r=t[0].spatialReference,o={...i,responseType:"json",query:{...n.query,f:"json",sr:(0,l.um)(r),target:JSON.stringify({geometryType:(0,d.Ce)(t[0]),geometries:t}),cutter:JSON.stringify(s)}},a=await(0,c.c)(n.path+"/cut",o),{cutIndexes:u,geometries:h=[]}=a.data;return{cutIndexes:u,geometries:h.map((e=>{const t=(0,d.h4)(e);return t.spatialReference=r,t}))}}(n,E,A,s)),i=[],r=[];for(let s=0;s<R.length;s++){const n=R[s];if("cut"!==n)r.push(n);else{const n=t.shift(),o=e[s];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(i.push(n),r.push("simplify")):r.push(_?(0,h.w7)(n):n)}}if(!i.length)return r;const o=await async function(e,t,s){const i="string"==typeof e?(0,p.as)(e):e,n=t[0].spatialReference,r=(0,d.Ce)(t[0]),o={...s,query:{...i.query,f:"json",sr:(0,l.um)(n),geometries:JSON.stringify((0,m.y)(t))}},{data:a}=await(0,c.c)(i.path+"/simplify",o);return(0,m.Q)(a.geometries,r,n)}(n,i,s),a=[];for(let e=0;e<r.length;e++){const t=r[e];"simplify"!==t?a.push(t):a.push(_?(0,h.w7)(o.shift()):o.shift())}return a}const k=[];for(let e=0;e<R.length;e++){const t=R[e];if("cut"!==t)k.push(t);else{const e=E.shift();k.push(!0===_?(0,h.w7)(e):e)}}return k}},44048:(e,t,s)=>{s.d(t,{Hh:()=>o,iM:()=>l,wb:()=>u,yK:()=>a});var i=s(48516),n=s(56156),r=s(6704);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.c({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.c.WebMercator}),minus180Line:new i.c({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.c.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.c({paths:[[[180,-180],[180,180]]],spatialReference:n.c.WGS84}),minus180Line:new i.c({paths:[[[-180,-180],[-180,180]]],spatialReference:n.c.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){const s=l(e);for(const e of s)for(const s of e)s[0]+=t;return e}function l(e){return(0,r.Cs)(e)?e.rings:e.paths}},6904:(e,t,s)=>{s.d(t,{c:()=>a});var i=s(9456),n=s(3024),r=s(83372);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.U(9,(0,i.c)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((s,i)=>{e[t++]=i})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.FZ)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,s){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,s)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},9107:(e,t,s)=>{s.d(t,{c:()=>p});var i=s(92400),n=s(20744),r=s(77860),o=s(66360),a=s(77048),u=s(83372),l=s(97088),h=s(6904),c=s(83624),d=s(16736);const f=(0,a.Su)();class p{constructor(e){this.geometryInfo=e,this._boundsStore=new h.c,this._featuresById=new Map,this._markedIds=new Set,this.events=new r.c,this.featureAdapter=d.u}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,s,i,n]=this.fullBounds;return{xmin:t,ymin:s,xmax:i,ymax:n,spatialReference:(0,c.C6)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map((e=>this._upsert(e)));return this._emitChanged(),t.filter(i.G6)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const s of e){const e=this._boundsStore.get(s.objectId);e&&t((0,a.Qv)(f,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,s)=>{this._markedIds.has(s)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.c.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.c("featurestore:invalid-feature","feature id is missing",{feature:e}));const s=this._featuresById.get(t);let i;if(this._markedIds.add(t),s?(e.displayId=s.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t)):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);i=(0,l.C_)(null!=i?i:(0,u.Su)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e)}_upsert(e){const t=e?.objectId;if(null==t)return o.c.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.c("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const s=this._featuresById.get(t);if(!s)return this._add(e),e;this._markedIds.add(t);const{geometry:i,attributes:r}=e;for(const e in r)s.attributes[e]=r[e];return i&&(s.geometry=i,this._boundsStore.set(t,(0,l.C_)((0,u.Su)(),i,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),s}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._markedIds.delete(t),this._boundsStore.delete(t),this._featuresById.delete(t),e}}},53784:(e,t,s)=>{s.r(t),s.d(t,{default:()=>I});var i=s(2600),n=s(40196),r=s(20744),o=s(66360),a=s(10860),u=s(6704),l=s(60544),h=s(97088),c=s(9107),d=s(7684),f=s(47302),p=s(35756),m=s(17724),y=s(49372),g=s(16424),_=s(36408),x=s(564),S=s(28484);const b={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!1,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0}};class I{constructor(){this._queryEngine=null,this._snapshotFeatures=async e=>{const t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e,t={}){this._loadOptions={url:e.url,customParameters:e.customParameters};const s=[],[i]=await Promise.all([e.url?this._fetch(t?.signal):null,this._checkProjection(e.spatialReference)]),n=(0,p.kt)(i,{geometryType:e.geometryType}),o=e.fields||n.fields||[],a=null!=e.hasZ?e.hasZ:n.hasZ,u=n.geometryType;let h=e.objectIdField||n.objectIdFieldName||"__OBJECTID";const d=e.spatialReference||l.UH;let y=e.timeInfo;o===n.fields&&n.unknownFields.length>0&&s.push({name:"geojson-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:n.unknownFields}});const I=new g.c(o);let w=I.get(h);w?("esriFieldTypeString"!==w.type&&(w.type="esriFieldTypeOID"),w.editable=!1,w.nullable=!1,h=w.name):(w={alias:h,name:h,type:"string"===n.objectIdFieldType?"esriFieldTypeString":"esriFieldTypeOID",editable:!1,nullable:!1},o.unshift(w));const M={};for(const e of o){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),!e.name)throw new r.c("geojson-layer:invalid-field-name","field name is missing",{field:e});if(!_.M.jsonValues.includes(e.type))throw new r.c("geojson-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});if(e.name!==w.name){const t=(0,x.gB)(e);void 0!==t&&(M[e.name]=t)}null==e.length&&(e.length=(0,x.G0)(e))}if(y){if(y.startTimeField){const e=I.get(y.startTimeField);e?(y.startTimeField=e.name,e.type="esriFieldTypeDate"):y.startTimeField=null}if(y.endTimeField){const e=I.get(y.endTimeField);e?(y.endTimeField=e.name,e.type="esriFieldTypeDate"):y.endTimeField=null}if(y.trackIdField){const e=I.get(y.trackIdField);e?y.trackIdField=e.name:(y.trackIdField=null,s.push({name:"geojson-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:y}}))}y.startTimeField||y.endTimeField||(s.push({name:"geojson-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:y}}),y=null)}const F=u?(0,m.w7)(u):void 0,v=I.dateFields.length?{timeZoneIANA:S.Gw}:null,z={warnings:s,featureErrors:[],layerDefinition:{...b,drawingInfo:F??void 0,templates:(0,m.QD)(M),extent:void 0,geometryType:u,objectIdField:h,fields:o,hasZ:!!a,timeInfo:y,dateFieldsTimeReference:v}};this._queryEngine=new f.U({fieldsIndex:g.c.fromLayerJSON({fields:o,timeInfo:y,dateFieldsTimeReference:v}),geometryType:u,hasM:!1,hasZ:a,objectIdField:h,spatialReference:d,timeInfo:y,featureStore:new c.c({geometryType:u,hasM:!1,hasZ:a}),cacheSpatialQueries:!0});const B=this._queryEngine.fieldsIndex.requiredFields.indexOf(w);B>-1&&this._queryEngine.fieldsIndex.requiredFields.splice(B,1),this._createDefaultAttributes=(0,m.GA)(M,h);const E=await this._createFeatures(i);this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,E);const R=this._normalizeFeatures(E,z.featureErrors);this._queryEngine.featureStore.addMany(R);const{fullExtent:T,timeExtent:j}=await this._queryEngine.fetchRecomputedExtents();if(z.layerDefinition.extent=T,j){const{start:e,end:t}=j;z.layerDefinition.timeInfo.timeExtent=[e,t]}return z}async applyEdits(e){const{spatialReference:t,geometryType:s}=this._queryEngine;return await Promise.all([(0,y.Oo)(t,s),(0,d.Qv)(e.adds,t),(0,d.Qv)(e.updates,t)]),await this._waitSnapshotComplete(),this._applyEdits(e)}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(e,t.signal)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForSnapping(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,n.kn)(this._snapshotFeatures),this._snapshotTask.promise.then((e=>{this._queryEngine.featureStore.clear(),this._objectIdGenerator=this._createObjectIdGenerator(this._queryEngine,e);const t=this._normalizeFeatures(e);t&&this._queryEngine.featureStore.addMany(t)}),(e=>{this._queryEngine.featureStore.clear(),(0,a.mA)(e)||o.c.getLogger("esri.layers.GeoJSONLayer").error(new r.c("geojson-layer:refresh","An error occurred during refresh",{error:e}))})),await this._waitSnapshotComplete();const{fullExtent:t,timeExtent:s}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:s}}async _createFeatures(e){if(null==e)return[];const{geometryType:t,hasZ:s,objectIdField:i}=this._queryEngine,n=(0,p.MN)(e,{geometryType:t,hasZ:s,objectIdField:i});if(!(0,l.yK)(this._queryEngine.spatialReference,l.UH))for(const e of n)null!=e.geometry&&(e.geometry=(0,h.C)((0,d.yU)((0,h.qw)(e.geometry,this._queryEngine.geometryType,this._queryEngine.hasZ,!1),l.UH,this._queryEngine.spatialReference)));return n}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){const{url:t,customParameters:s}=this._loadOptions,n=(await(0,i.c)(t,{responseType:"json",query:{...s},signal:e})).data;return(0,p.ii)(n),n}_normalizeFeatures(e,t){const{objectIdField:s,fieldsIndex:i}=this._queryEngine,n=[];for(const r of e){const e=this._createDefaultAttributes(),o=(0,y.uo)(i,e,r.attributes,!0);o?t?.push(o):(this._assignObjectId(e,r.attributes,!0),r.attributes=e,r.objectId=e[s],n.push(r))}return n}async _applyEdits(e){const{adds:t,updates:s,deletes:i}=e,n={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(n,t),s?.length&&this._applyUpdateEdits(n,s),i?.length){for(const e of i)n.deleteResults.push((0,y.GI)(e));this._queryEngine.featureStore.removeManyById(i)}const{fullExtent:r,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:r,timeExtent:o,featureEditResults:n}}_applyAddEdits(e,t){const{addResults:s}=e,{geometryType:i,hasM:n,hasZ:r,objectIdField:o,spatialReference:a,featureStore:l,fieldsIndex:c}=this._queryEngine,f=[];for(const n of t){if(n.geometry&&i!==(0,u.Ce)(n.geometry)){s.push((0,y.or)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),r=(0,y.uo)(c,t,n.attributes);if(r)s.push(r);else{if(this._assignObjectId(t,n.attributes),n.attributes=t,null!=n.uid){const t=n.attributes[o];e.uidToObjectId[n.uid]=t}if(null!=n.geometry){const e=n.geometry.spatialReference??a;n.geometry=(0,d.yU)((0,y.OM)(n.geometry,e),e,a)}f.push(n),s.push((0,y.GI)(n.attributes[o]))}}l.addMany((0,h.od)([],f,i,r,n,o))}_applyUpdateEdits({updateResults:e},t){const{geometryType:s,hasM:i,hasZ:n,objectIdField:r,spatialReference:o,featureStore:a,fieldsIndex:l}=this._queryEngine;for(const c of t){const{attributes:t,geometry:f}=c,p=t?.[r];if(null==p){e.push((0,y.or)(`Identifier field ${r} missing`));continue}if(!a.has(p)){e.push((0,y.or)(`Feature with object id ${p} missing`));continue}const m=(0,h.G0)(a.getFeature(p),s,n,i);if(null!=f){if(s!==(0,u.Ce)(f)){e.push((0,y.or)("Incorrect geometry type."));continue}const t=f.spatialReference??o;m.geometry=(0,d.yU)((0,y.OM)(f,t),t,o)}if(t){const s=(0,y.uo)(l,m.attributes,t);if(s){e.push(s);continue}}a.add((0,h.ye)(m,s,n,i,r)),e.push((0,y.GI)(p))}}_createObjectIdGenerator(e,t){const s=e.fieldsIndex.get(e.objectIdField);if("esriFieldTypeString"===s.type)return()=>s.name+"-"+Date.now().toString(16);let i=Number.NEGATIVE_INFINITY;for(const e of t)e.objectId&&(i=Math.max(i,e.objectId));return i=Math.max(0,i)+1,()=>i++}_assignObjectId(e,t,s=!1){const i=this._queryEngine.objectIdField;e[i]=s&&i in t?t[i]:this._objectIdGenerator()}async _checkProjection(e){try{await(0,d.Qv)(l.UH,e)}catch{throw new r.c("geojson-layer","Projection not supported")}}}},35756:(e,t,s)=>{s.d(t,{MN:()=>F,ii:()=>w,kt:()=>M,uG:()=>h});var i=s(39180),n=s(20744),r=s(60544),o=s(34888),a=s(85152),u=s(564);const l={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function h(e){return l[e]}function*c(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*d(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function f(e){for(const t of e)if(t.length>2)return!0;return!1}function p(e){let t=0;for(let s=0;s<e.length;s++){const i=e[s],n=e[(s+1)%e.length];t+=i[0]*n[1]-n[0]*i[1]}return t<=0}function m(e){const t=e[0],s=e[e.length-1];return t[0]===s[0]&&t[1]===s[1]&&t[2]===s[2]||e.push(t),e}function y(e,t,s){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,s){return x(e,t.coordinates,s),e}(e,t,s);case"MultiLineString":return function(e,t,s){for(const i of t.coordinates)x(e,i,s);return e}(e,t,s);case"MultiPolygon":return function(e,t,s){for(const i of t.coordinates){g(e,i[0],s);for(let t=1;t<i.length;t++)_(e,i[t],s)}return e}(e,t,s);case"Point":return function(e,t,s){return b(e,t.coordinates,s),e}(e,t,s);case"Polygon":return function(e,t,s){const i=t.coordinates;g(e,i[0],s);for(let t=1;t<i.length;t++)_(e,i[t],s);return e}(e,t,s)}}function g(e,t,s){const i=m(t);!function(e){return!p(e)}(i)?x(e,i,s):S(e,i,s)}function _(e,t,s){const i=m(t);!function(e){return p(e)}(i)?x(e,i,s):S(e,i,s)}function x(e,t,s){for(const i of t)b(e,i,s);e.lengths.push(t.length)}function S(e,t,s){for(let i=t.length-1;i>=0;i--)b(e,t[i],s);e.lengths.push(t.length)}function b(e,t,s){const[i,n,r]=t;e.coords.push(i,n),s.hasZ&&e.coords.push(r||0)}function I(e){switch(typeof e){case"string":return(0,i._)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function w(e,t=4326){if(!e)throw new n.c("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new n.c("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:s}=e;if(!s)return;const i="string"==typeof s?s:"name"===s.type?s.properties.name:"EPSG"===s.type?s.properties.code:null,o=(0,r.__)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!i||!o.test(i))throw new n.c("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:s})}function M(e,t={}){const s=[],i=new Set,n=new Set;let r,o=!1,a=null,l=!1,{geometryType:p=null}=t,m=!1;for(const t of c(e)){const{geometry:e,properties:c,id:y}=t;if((!e||(p||(p=h(e.type)),h(e.type)===p))&&(o||(o=f(d(e))),l||(l=null!=y,l&&(r=typeof y,c&&(a=Object.keys(c).filter((e=>c[e]===y))))),c&&a&&l&&null!=y&&(a.length>1?a=a.filter((e=>c[e]===y)):1===a.length&&(a=c[a[0]]===y?a:[])),!m&&c)){let e=!0;for(const t in c){if(i.has(t))continue;const r=c[t];if(null==r){e=!1,n.add(t);continue}const o=I(r);if("unknown"===o){n.add(t);continue}n.delete(t),i.add(t);const a=(0,u.gP)(t);a&&s.push({name:a,alias:t,type:o})}m=e}}const y=(0,u.gP)(1===a?.length&&a[0]||null)??void 0;if(y)for(const e of s)if(e.name===y&&(0,u.iW)(e)){e.type="esriFieldTypeOID";break}return{fields:s,geometryType:p,hasZ:o,objectIdFieldName:y,objectIdFieldType:r,unknownFields:Array.from(n)}}function F(e,t){return Array.from(function*(e,t={}){const{geometryType:s,objectIdField:i}=t;for(const n of e){const{geometry:e,properties:r,id:u}=n;if(e&&h(e.type)!==s)continue;const l=r||{};let c;i&&(c=l[i],null==u||c||(l[i]=c=u));const d=new o._M(e?y(new a.c,e,t):null,l,null,c??void 0);yield d}}(c(e),t))}},17724:(e,t,s)=>{s.d(t,{G4:()=>d,GA:()=>h,QD:()=>c,w7:()=>a});var i=s(9456),n=s(62088),r=s(13136),o=s(9504);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.qe:"esriGeometryPolyline"===e?o.MZ:o.yq}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function h(e,t){if((0,i.c)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let s=`this.${t} = null;`;for(const t in e)s+=`this${u.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const i=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${s};\n }\n }\n `)();return()=>new i}catch(s){return()=>({[t]:null,...e})}}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.ct)(e)}}]}function d(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,supportsAsyncConvert3D:!1},query:r.u,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,zDefault:void 0}}}},49372:(e,t,s)=>{s.d(t,{GI:()=>h,OM:()=>m,Oo:()=>y,or:()=>u,uo:()=>d});var i=s(39180),n=s(60544),r=s(564);class o{constructor(){this.code=null,this.description=null}}class a{constructor(e){this.error=new o,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=e}}function u(e){return new a(e)}class l{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function h(e){return new l(e)}const c=new Set;function d(e,t,s,i=!1){c.clear();for(const n in s){const o=e.get(n);if(!o)continue;const a=f(o,s[n]);if(c.add(o.name),o&&(i||o.editable)){const e=(0,r.YT)(o,a);if(e)return u((0,r.Ke)(e,o,a));t[o.name]=a}}for(const t of e?.requiredFields??[])if(!c.has(t.name))return u(`missing required field "${t.name}"`);return null}function f(e,t){let s=t;return(0,r.iW)(e)&&"string"==typeof t?s=parseFloat(t):(0,r.AZ)(e)&&null!=t&&"string"!=typeof t?s=String(t):(0,r.gp)(e)&&"string"==typeof t&&(s=(0,i.sn)(t)),(0,r.OJ)(s)}let p;function m(e,t){if(!e||!(0,n.U3)(t))return e;if("rings"in e||"paths"in e){if(null==p)throw new TypeError("geometry engine not loaded");return p.simplify(t,e)}return e}async function y(e,t){!(0,n.U3)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==p&&(p=await Promise.all([s.e(984),s.e(2704)]).then(s.bind(s,82704))),p}()}},81976:(e,t,s)=>{s.d(t,{Q:()=>r,y:()=>n});var i=s(6704);function n(e){return{geometryType:(0,i.Ce)(e[0]),geometries:e.map((e=>e.toJSON()))}}function r(e,t,s){const n=(0,i.uG)(t);return e.map((e=>{const t=n.fromJSON(e);return t.spatialReference=s,t}))}},21980:(e,t,s)=>{s.d(t,{OW:()=>a,UX:()=>o,sR:()=>r}),s(6220),s(47620);var i=s(62088),n=s(28176);function r(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function o(e){return"string"==typeof e?(0,n.as)(e):(0,i.ct)(e)}function a(e,t,s){const i={};for(const n in e){if("declaredClass"===n)continue;const r=e[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r))i[n]=r.map((e=>a({item:e},t,s).item));else if("object"==typeof r)if(r.toJSON){const e=r.toJSON(s?.[n]);i[n]=t?e:JSON.stringify(e)}else i[n]=t?r:JSON.stringify(r);else i[n]=r}return i}s(20572)},9504:(e,t,s)=>{s.d(t,{MZ:()=>r,aV:()=>l,gF:()=>a,gP:()=>u,qe:()=>n,wp:()=>h,yq:()=>o});const i=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},r={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]}},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},u={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},l={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},h={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|