@arcgis/core 6.0.0-next.36 → 6.0.0-next.37
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/{0202eb8c2b2865f99981.js → 00311d1b18d5952a014b.js} +1 -1
- package/assets/esri/core/workers/chunks/0b21d0e2e5a91c34a108.js +1 -0
- package/assets/esri/core/workers/chunks/{f717005e14a7e9141df7.js → 2050c844b5a29b1df28a.js} +1 -1
- package/assets/esri/core/workers/chunks/2c3612379111457c3221.js +1 -0
- package/assets/esri/core/workers/chunks/2f9072563194026e320e.js +1 -0
- package/assets/esri/core/workers/chunks/{d9a240a3c6bf85124474.js → 342a97974a78007b25e0.js} +1 -1
- package/assets/esri/core/workers/chunks/34467f7d84baffd772a3.js +1 -0
- package/assets/esri/core/workers/chunks/{4d18b48d4a282a0f341c.js → 427d929dc7f89b0a1ea9.js} +1 -1
- package/assets/esri/core/workers/chunks/432728c557be5dfa26b5.js +1 -0
- package/assets/esri/core/workers/chunks/46969f379623810b2eca.js +1 -0
- package/assets/esri/core/workers/chunks/592b5db1459c02cf6a0c.js +1 -0
- package/assets/esri/core/workers/chunks/6a21dc13a465757ba007.js +1 -0
- package/assets/esri/core/workers/chunks/{379db67f78161ebd5468.js → 7023651ed6398dcf8efb.js} +1 -1
- package/assets/esri/core/workers/chunks/{90360c0bd053d3e3fd77.js → 7027a0e7bfabb3bb7fc2.js} +1 -1
- package/assets/esri/core/workers/chunks/78818c2a898444f7e890.js +1 -0
- package/assets/esri/core/workers/chunks/{40c2674dae73f0942751.js → 7d497df6e13162156342.js} +1 -1
- package/assets/esri/core/workers/chunks/8a3dfe997712dc2ddead.js +1 -0
- package/assets/esri/core/workers/chunks/{81bcc495e6eaf2cf7474.js → 8f82a0a6747f673a2a7e.js} +1 -1
- package/assets/esri/core/workers/chunks/9826baa3c15ea2062669.js +1 -0
- package/assets/esri/core/workers/chunks/{d3369ffed19f4c264dcd.js → 9ab0735e86cf8932bf9d.js} +1 -1
- package/assets/esri/core/workers/chunks/ab0ea4042f4e13874aed.js +1 -0
- package/assets/esri/core/workers/chunks/ab98ade3257360015d6c.js +1 -0
- package/assets/esri/core/workers/chunks/{796c6195b6bf59dcc9bd.js → b25a05c58b0fd0f6ac60.js} +1 -1
- package/assets/esri/core/workers/chunks/b90271ce38522bcf813b.js +1 -0
- package/assets/esri/core/workers/chunks/ba91df9835cdea7698a9.js +1 -0
- package/assets/esri/core/workers/chunks/bfe13ac9fa1aafb190a1.js +1 -0
- package/assets/esri/core/workers/chunks/ce0274847ccce6a1ac53.js +1 -0
- package/assets/esri/core/workers/chunks/cf2e5f827cea7d7319ce.js +1 -0
- package/assets/esri/core/workers/chunks/dae2036faa28dade2119.js +1 -0
- package/assets/esri/core/workers/chunks/{e8fb2ba7b7a4f0916325.js → eed4b90494a54f8b337b.js} +1 -1
- package/assets/esri/core/workers/chunks/fc77eb7683e708774168.js +1 -0
- package/chunks/Clouds.glsl.js +7 -11
- package/config.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/kernel.js +1 -1
- package/layers/BaseElevationLayer.js +1 -1
- package/layers/ElevationLayer.js +1 -1
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/IntegratedMeshLayer.d.ts +2 -0
- package/layers/IntegratedMeshLayer.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
- package/layers/support/ElevationQuery.js +1 -1
- package/layers/video/VideoController.js +3 -3
- package/layers/video/types.d.ts +12 -0
- package/package.json +3 -3
- package/views/2d/engine/Bitmap.js +1 -1
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
- package/views/2d/engine/webgl/Overlay.js +1 -1
- package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
- package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
- package/views/2d/engine/webgl/VideoScreenRenderer.js +1 -1
- package/views/2d/engine/webgl/animations/store/AnimationStore.js +1 -1
- package/views/2d/engine/webgl/collisions/LabelStore.js +1 -1
- package/views/2d/engine/webgl/effects/highlight/HighlightGradient.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/blend/BlendTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/colorize/ColorizeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityResources.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapResources.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/magnifier/MagnifierTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/opacity/OpacityTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterHighlightTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/textureUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTexture.js +1 -1
- package/views/2d/engine/webgl/textureUtils.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/webglDeps.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/graphics/ElevationAligners.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/support/engineContent/marker.js +1 -1
- package/views/3d/support/flow/StreamlineResources3D.js +1 -1
- package/views/3d/support/flow/StreamlineResources3DOverlay.js +1 -1
- package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
- package/views/3d/support/flow/geometryUtils.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianTileBuilder.js +2 -0
- package/views/3d/support/gaussianSplatting/formatConstants.js +2 -0
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/webgl/RenderNode.d.ts +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatUnpacking.glsl.js +15 -11
- package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
- package/views/3d/webgl-engine/lib/AttributeView.js +1 -1
- package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/DDSUtil.js +1 -1
- package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +1 -1
- package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBuffer.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBufferView.js +1 -1
- package/views/3d/webgl-engine/lib/VerticesView.js +2 -0
- package/views/3d/webgl-engine/lib/attributeViewUtils.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/strokes.js +1 -1
- package/views/3d/webgl-engine/lib/glUtil3D.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/WaterTextureRepository.js +1 -1
- package/views/3d/webgl-engine/materials/internal/lineMarkerBufferUtils.js +2 -0
- package/views/3d/webgl-engine/materials/internal/ribbonLineBufferUtils.js +2 -0
- package/views/3d/webgl-engine/materials/renderers/VaoRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/stippleTextureRepository.js +1 -1
- package/views/draw/support/ManagedTooltipField.js +1 -1
- package/views/support/TextureCompressionHelper.js +1 -1
- package/views/support/imageReprojection.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/views/webgl/rasterUtils.js +1 -1
- package/views/webgl/testSVGPremultipliedAlpha.js +1 -1
- package/views/webgl/textureUtils.js +1 -1
- package/widgets/ScaleRangeSlider/types.d.ts +3 -3
- package/assets/esri/core/workers/chunks/039d9bc5b5015012f811.js +0 -1
- package/assets/esri/core/workers/chunks/08140725277de5d2e41a.js +0 -1
- package/assets/esri/core/workers/chunks/16cda273927ab0a39544.js +0 -1
- package/assets/esri/core/workers/chunks/29c610ce1c81ebb84a6b.js +0 -1
- package/assets/esri/core/workers/chunks/3223f9fbc76ba9ef8d13.js +0 -1
- package/assets/esri/core/workers/chunks/3fdcc383bbd9cf0d274c.js +0 -1
- package/assets/esri/core/workers/chunks/46c290108a90518ef695.js +0 -1
- package/assets/esri/core/workers/chunks/48b8b57f559a53c6c513.js +0 -1
- package/assets/esri/core/workers/chunks/4a979fce1c971b614a18.js +0 -1
- package/assets/esri/core/workers/chunks/5bd1414220e42cb8ebcf.js +0 -1
- package/assets/esri/core/workers/chunks/5d781c2c6204cffffd0d.js +0 -1
- package/assets/esri/core/workers/chunks/723df53cfa0189837d01.js +0 -1
- package/assets/esri/core/workers/chunks/7400b8c454b47ee4fb3c.js +0 -1
- package/assets/esri/core/workers/chunks/7af4edc6e87d27b9d467.js +0 -1
- package/assets/esri/core/workers/chunks/990e96139b5a1dccb061.js +0 -1
- package/assets/esri/core/workers/chunks/a607541959169741a943.js +0 -1
- package/assets/esri/core/workers/chunks/aa779896fd9e5c341349.js +0 -1
- package/assets/esri/core/workers/chunks/c131e0dd180a4c10e12e.js +0 -1
- package/assets/esri/core/workers/chunks/f3b4159c0722df8ffe13.js +0 -1
- package/assets/esri/core/workers/chunks/f75eec2cbc541eec9712.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7237],{11006(t,e,i){function n(t,e,i,n,s){r(t,e,i||0,n||t.length-1,s||o)}function r(t,e,i,n,o){for(;n>i;){if(n-i>600){var l=n-i+1,h=e-i+1,a=Math.log(l),u=.5*Math.exp(2*a/3),f=.5*Math.sqrt(a*u*(l-u)/l)*(h-l/2<0?-1:1);r(t,e,Math.max(i,Math.floor(e-h*u/l+f)),Math.min(n,Math.floor(e+(l-h)*u/l+f)),o)}var c=t[e],d=i,y=n;for(s(t,i,e),o(t[n],c)>0&&s(t,i,n);d<y;){for(s(t,d,y),d++,y--;o(t[d],c)<0;)d++;for(;o(t[y],c)>0;)y--}0===o(t[i],c)?s(t,i,y):s(t,++y,n),y<=e&&(i=y+1),e<=y&&(n=y-1)}}function s(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function o(t,e){return t<e?-1:+(t>e)}i.d(e,{q:()=>n})},69540(t,e,i){var n=i(32198),r=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),l=i(88620),h=i(64108);const a=Symbol("ClonableMixin"),u=t=>{var e;let i=t,r=class extends i{constructor(){super(...arguments),this[e]=!0}static{e=a}clone(t){let e=(0,l.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");let i=e.metadata,n=e.store,r={},h=new Map;for(let e in i){let o=i[e],l=n?.originOf(e),a=o.clonable;if(o.readOnly||!1===a||7!==l&&0!==l&&5!==l&&4!==l)continue;let u=this[e],f=null;if("function"==typeof a)f=a(u,t);else if("reference"===a)f=u;else if(f=(0,s.TU)(u,t),null!=u&&null==f)continue;0===l?h.set(e,f):r[e]=f}let a=new(0,Object.getPrototypeOf(this).constructor)(r);if(h.size){let t=(0,l.oY)(a)?.store;if(t)for(let[e,i]of h)t.set(e,i,0)}return a}};return r=(0,n.Cg)([(0,h.$)("esri.core.Clonable")],r),r},f=u(r.A);i.d(e,["OU",0,u,"Pw",0,f])},67482(t,e,i){function n(t){return null!==r(t)}function r(t){return function(t){let e=s.exec(t);if(!e?.groups)return null;let i=e.groups,n=+i.year,r=i.month-1,o=+i.day,l=+(i.hours??"0"),h=+(i.minutes??"0"),a=+(i.seconds??"0");if(l>23||h>59||a>59)return null;let u,f=i.ms??"0",c=f?+f.padEnd(3,"0").slice(0,3):0;if(i.isUTC||!i.offsetSign)u=Date.UTC(n,r,o,l,h,a,c);else{let t=+i.offsetHours,e=+i.offsetMinutes;u=6e4*("+"===i.offsetSign?-1:1)*(60*t+e)+Date.UTC(n,r,o,l,h,a,c)}return Number.isNaN(u)?null:u}(t)??function(t){let e=new Date(t),i=e.getTime();return Number.isNaN(i)?null:t.toLowerCase()===e.toUTCString().toLowerCase()?i:null}(t)??function(t){if(!o.test(t))return null;let e=new Date(t);return Number.isNaN(e.getTime())?null:e.getTime()-6e4*e.getTimezoneOffset()}(t)}i.d(e,{C:()=>n,_:()=>r});const s=/^(?:(?<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})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(t,e,i){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(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]]}i.d(e,{o8:()=>r,vt:()=>n});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(t,e,i,n,r,s,o,l,h,a,u,f,c,d,y,m){return[t,e,i,n,r,s,o,l,h,a,u,f,c,d,y,m]}},Symbol.toStringTag,{value:"Module"})),i.d(e,["zK",0,s])},35522(t,e,i){i.d(e,{$A:()=>T,Bw:()=>s,C:()=>o,Cc:()=>P,DI:()=>b,Io:()=>g,Ln:()=>_,Om:()=>I,Qr:()=>f,Re:()=>a,S8:()=>v,T9:()=>m,WQ:()=>h,Z0:()=>A,_S:()=>d,aI:()=>G,ei:()=>B,fw:()=>C,gL:()=>S,hG:()=>x,hZ:()=>l,hs:()=>p,jk:()=>y,lw:()=>u,m3:()=>M,oW:()=>O,t2:()=>Z,tn:()=>c,ze:()=>w});var n=i(51850),r=i(34304);function s(t){let e=t[0],i=t[1],n=t[2];return Math.sqrt(e*e+i*i+n*n)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function l(t,e,i,n){return t[0]=e,t[1]=i,t[2]=n,t}function h(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t}function a(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t}function u(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t}function f(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t[2]=e[2]/i[2],t}function c(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function y(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t[2]=Math.min(e[2],i[2]),t}function m(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t[2]=Math.max(e[2],i[2]),t}function p(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function _(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t}function g(t,e){let i=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(i*i+n*n+r*r)}function x(t,e){let i=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2];return i*i+n*n+r*r}function M(t){let e=t[0],i=t[1],n=t[2];return e*e+i*i+n*n}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function v(t,e=t){let i=e[0],n=e[1],r=e[2],s=i*i+n*n+r*r;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function T(t,e,i){let n=e[0],r=e[1],s=e[2],o=i[0],l=i[1],h=i[2];return t[0]=r*h-s*l,t[1]=s*o-n*h,t[2]=n*l-r*o,t}function P(t,e,i,n){let r=e[0],s=e[1],o=e[2];return t[0]=r+n*(i[0]-r),t[1]=s+n*(i[1]-s),t[2]=o+n*(i[2]-o),t}function A(t,e,i){let n=e[0],r=e[1],s=e[2];return t[0]=i[0]*n+i[4]*r+i[8]*s+i[12],t[1]=i[1]*n+i[5]*r+i[9]*s+i[13],t[2]=i[2]*n+i[6]*r+i[10]*s+i[14],t}function B(t,e,i){let n=e[0],r=e[1],s=e[2];return t[0]=n*i[0]+r*i[3]+s*i[6],t[1]=n*i[1]+r*i[4]+s*i[7],t[2]=n*i[2]+r*i[5]+s*i[8],t}function S(t,e,i){return C(t,e,i[0],i[1],i[2],i[3])}function C(t,e,i,n,r,s){let o=e[0],l=e[1],h=e[2],a=n*h-r*l,u=r*o-i*h,f=i*l-n*o,c=n*f-r*u,d=r*a-i*f,y=i*u-n*a,m=2*s;return t[0]=o+a*m+2*c,t[1]=l+u*m+2*d,t[2]=h+f*m+2*y,t}const R=(0,n.vt)(),F=(0,n.vt)();function Z(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function G(t,e){if(t===e)return!0;let i=t[0],n=t[1],s=t[2],o=e[0],l=e[1],h=e[2],a=(0,r.FD)();return Math.abs(i-o)<=a*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-l)<=a*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(s-h)<=a*Math.max(1,Math.abs(s),Math.abs(h))}function O(t,e,i){let n=i[0]-e[0],r=i[1]-e[1],s=i[2]-e[2],o=n*n+r*r+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=n*o,t[1]=r*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const j=a,q=u,N=f,Y=g,X=x,k=s,L=M;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:h,angle:function(t,e){v(R,t),v(F,e);let i=I(R,F);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(t,e,i,n,r,s){let o=1-s,l=o*o,h=s*s,a=l*o,u=3*s*l,f=3*h*o,c=h*s;return t[0]=e[0]*a+i[0]*u+n[0]*f+r[0]*c,t[1]=e[1]*a+i[1]*u+n[1]*f+r[1]*c,t[2]=e[2]*a+i[2]*u+n[2]*f+r[2]*c,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,i=1){return t[0]=Math.min(Math.max(t[0],e),i),t[1]=Math.min(Math.max(t[1],e),i),t[2]=Math.min(Math.max(t[2],e),i),t},copy:o,cross:T,crossAndNormalize:function(t,e,i){let n=e[0],r=e[1],s=e[2],o=i[0],l=i[1],h=i[2],a=r*h-s*l,u=s*o-n*h,f=n*l-r*o,c=Math.sqrt(a*a+u*u+f*f);return t[0]=a/c,t[1]=u/c,t[2]=f/c,t},direction:O,dist:Y,distance:g,div:N,divide:f,dot:I,equals:G,exactEquals:Z,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,i,n,r,s){let o=s*s,l=o*(2*s-3)+1,h=o*(s-2)+s,a=o*(s-1),u=o*(3-2*s);return t[0]=e[0]*l+i[0]*h+n[0]*a+r[0]*u,t[1]=e[1]*l+i[1]*h+n[1]*a+r[1]*u,t[2]=e[2]*l+i[2]*h+n[2]*a+r[2]*u,t},inverse:b,len:k,length:s,lerp:P,max:m,min:y,mul:q,multiply:u,negate:w,normalize:v,random:function(t,e=1){let i=r.Ov,n=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=s*e,t},rotateX:function(t,e,i,n){let r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[0],s[1]=r[1]*Math.cos(n)-r[2]*Math.sin(n),s[2]=r[1]*Math.sin(n)+r[2]*Math.cos(n),t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},rotateY:function(t,e,i,n){let r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[2]*Math.sin(n)+r[0]*Math.cos(n),s[1]=r[1],s[2]=r[2]*Math.cos(n)-r[0]*Math.sin(n),t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},rotateZ:function(t,e,i,n){let r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[0]*Math.cos(n)-r[1]*Math.sin(n),s[1]=r[0]*Math.sin(n)+r[1]*Math.cos(n),s[2]=r[2],t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:p,scaleAndAdd:_,scaleTo:function(t,e){return p(t,t,e/k(t))},set:l,sign:d,sqrDist:X,sqrLen:L,squaredDistance:x,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:j,subtract:a,transformMat3:B,transformMat4:A,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:S,transformQuatValues:C},Symbol.toStringTag,{value:"Module"})),i.d(e,["Il",0,k,"jb",0,j,"lo",0,X,"uE",0,L])},75503(t,e,i){i.d(e,{wq:()=>l});var n=i(4576),r=i(21818),s=(i(44208),i(15142)),o=i(11006);class l{constructor(t=9,e){this._compareMinX=c,this._compareMinY=d,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),w.prune(),b.prune(),v.prune(),I.prune()}all(t){h(this._data,t)}search(t,e){let i=this._data,n=this._toBBox;if(x(t,i))for(w.clear();i;){for(let r=0,s=i.children.length;r<s;r++){let s=i.children[r],o=i.leaf?n(s):s;x(t,o)&&(i.leaf?e(s):g(t,o)?h(s,e):w.push(s))}i=w.pop()}}collides(t){let e=this._data,i=this._toBBox;if(!x(t,e))return!1;for(w.clear();e;){for(let n=0,r=e.children.length;n<r;n++){let r=e.children[n],s=e.leaf?i(r):r;if(x(t,s)){if(e.leaf||g(t,s))return!0;w.push(r)}}e=w.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,i=t.length;e<i;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){let t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(t){if(!t)return this;let e,i=this._data,s=null,o=0,l=!1,h=this._toBBox(t);for(v.clear(),I.clear();i||v.length>0;){if(i||(i=v.pop(),s=v.data[v.length-1],o=I.pop()??0,l=!0),i.leaf&&(e=(0,n.qh)(i.children,(0,r.z)(t),i.children.length,i.indexHint),-1!==e))return i.children.splice(e,1),v.push(i),this._condense(v),this;l||i.leaf||!g(i,h)?s?(o++,i=s.children[o],l=!1):i=null:(v.push(i),I.push(o),o=0,s=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,i,n){let r=i-e+1,s=this._maxEntries;if(r<=s){let n=new A(t.slice(e,i+1));return a(n,this._toBBox),n}n||(n=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(n-1)));let o=new B([]);o.height=n;let l=Math.ceil(r/s),h=l*Math.ceil(Math.sqrt(s));M(t,e,i,h,this._compareMinX);for(let r=e;r<=i;r+=h){let e=Math.min(r+h-1,i);M(t,r,e,l,this._compareMinY);for(let i=r;i<=e;i+=l){let r=Math.min(i+l-1,e);o.children.push(this._build(t,i,r,n-1))}}return a(o,this._toBBox),o}_insert(t,e,i){let n=this._toBBox,r=i?t:n(t);v.clear();let s=function(t,e,i,n){for(;n.push(e),!0!==e.leaf&&n.length-1!==i;){let i,n=1/0,r=1/0;for(let s=0,o=e.children.length;s<o;s++){let o=e.children[s],l=y(o),h=p(t,o)-l;h<r?(r=h,n=l<n?l:n,i=o):h===r&&l<n&&(n=l,i=o)}e=i||e.children[0]}return e}(r,this._data,e,v);for(s.children.push(t),f(s,r);e>=0&&v.data[e].children.length>this._maxEntries;)this._split(v,e),e--;!function(t,e,i){for(let n=i;n>=0;n--)f(e.data[n],t)}(r,v,e)}_split(t,e){let i=t.data[e],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);let s=this._chooseSplitIndex(i,r,n);if(!s)return;let o=i.children.splice(s,i.children.length-s),l=i.leaf?new A(o):new B(o);l.height=i.height,a(i,this._toBBox),a(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(i,l)}_splitRoot(t,e){this._data=new B([t,e]),this._data.height=t.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(t,e,i){let n,r,s;n=r=1/0;for(let o=e;o<=i-e;o++){let e=u(t,0,o,this._toBBox),l=u(t,o,i,this._toBBox),h=_(e,l),a=y(e)+y(l);h<n?(n=h,s=o,r=a<r?a:r):h===n&&a<r&&(r=a,s=o)}return s}_chooseSplitAxis(t,e,i){let n=t.leaf?this._compareMinX:c,r=t.leaf?this._compareMinY:d;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,r)&&t.children.sort(n)}_allDistMargin(t,e,i,n){t.children.sort(n);let r=this._toBBox,s=u(t,0,e,r),o=u(t,i-e,i,r),l=m(s)+m(o);for(let n=e;n<i-e;n++){let e=t.children[n];f(s,t.leaf?r(e):e),l+=m(s)}for(let n=i-e-1;n>=e;n--){let e=t.children[n];f(o,t.leaf?r(e):e),l+=m(o)}return l}_condense(t){for(let e=t.length-1;e>=0;e--){let i=t.data[e];if(0===i.children.length)if(e>0){let r=t.data[e-1],s=r.children;s.splice((0,n.qh)(s,i,s.length,r.indexHint),1)}else this.clear();else a(i,this._toBBox)}}_initFormat(t){let e=["return a"," - b",";"];this._compareMinX=Function("a","b",e.join(t[0])),this._compareMinY=Function("a","b",e.join(t[1])),this._toBBox=Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function h(t,e){let i=t;for(b.clear();i;){if(!0===i.leaf)for(let t of i.children)e((0,r.z)(t));else b.pushArray(i.children);i=b.pop()??null}}function a(t,e){u(t,0,t.children.length,e,t)}function u(t,e,i,n,r){r||=new A([]),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=e;o<i;o++)s=t.children[o],f(r,t.leaf?n(s):s);return r}function f(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function y(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function _(t,e){let i=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),s=Math.min(t.maxY,e.maxY);return Math.max(0,r-i)*Math.max(0,s-n)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function x(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function M(t,e,i,n,r){let s=[e,i];for(;s.length;){let e=s.pop(),i=s.pop();if(e-i<=n)continue;let l=i+Math.ceil((e-i)/n/2)*n;(0,o.q)(t,l,i,e,r),s.push(i,l,l,e)}}const w=new s.A,b=new s.A,v=new s.A,I=new s.A({deallocator:void 0});class T{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class P extends T{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class A extends P{constructor(t){super(),this.children=t,this.leaf=!0}}class B extends P{constructor(t){super(),this.children=t,this.leaf=!1}}},69397(t,e,i){i.d(e,{Qf:()=>h,Qh:()=>o,lM:()=>s,ro:()=>a,rq:()=>u});var n=i(44208),r=i(34275);function s(t){if(!t)return 0;let e=f;for(let i in t)t.hasOwnProperty(i)&&(e+=l(t[i],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return h(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let i=c;for(let n=0;n<e;n++)i+=l(t[n]);return i}(t);let e=f;for(let i in t)t.hasOwnProperty(i)&&(e+=l(t[i]));return e}function l(t,e=!0){switch(typeof t){case"object":return e?o(t):f;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,e)=>t+a(e),0)}function a(t,e=16){return t?(0,r.iu)(t)?t.byteLength+y:Array.isArray(t)?u(t,e):0:0}function u(t,e){return c+t.length*e}const f=32,c=16,d=(0,n.A)("ios")||!(0,n.A)("chrome")&&!(0,n.A)("opr")?8:4,y=145;i.d(e,["JY",0,d])},48526(t,e,i){i.d(e,{A:()=>p});var n,r=i(32198),s=i(4576),o=i(4718),l=i(91429),h=i(5443),a=i(91075),u=i(86738),f=i(16930),c=i(90634),d=i(47610),y=i(56993),m=i(43937);let p=n=class extends a.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:i,hasZ:n,spatialReference:r}=t;switch(e??=[],e?.at(0)?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=f.A.WGS84,{...t,hasM:i,hasZ:n,points:e,spatialReference:r}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let t=(0,c.ge)(this);return t?new h.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){let{points:t,spatialReference:e,hasM:i,hasZ:r}=this;return new n({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:i,hasZ:r})}equals(t){if(this===t)return!0;if(null==t)return!1;let e=this.spatialReference,i=t.spatialReference;return!(null!=e!=(null!=i)||null!=e&&null!=i&&!e.equals(i))&&(0,s.aI)(this.points,t.points,d.v6)}addPoint(t){return(0,y.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;let e=this.points[t],i={x:e[0],y:e[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(i.z=e[2],n=3),this.hasM&&(i.m=e[n]),new u.A(i)}removePoint(t){if(!this._validateInputs(t))return null;let e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)&&((0,y.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points")),this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,r.Cg)([(0,l.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],p.prototype,"points",void 0),(0,r.Cg)([(0,m.K)("points")],p.prototype,"writePoints",null),p=n=(0,r.Cg)([(0,l.$K)("esri.geometry.Multipoint")],p),p.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,i){i.d(e,{A:()=>y});var n,r=i(32198),s=i(4718),o=i(91429),l=i(5443),h=i(91075),a=i(86738),u=i(16930),f=i(90634),c=i(56993),d=i(43937);let y=n=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:i,hasZ:n,spatialReference:r}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=u.A.WGS84,{...t,hasM:i,hasZ:n,paths:e,spatialReference:r}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,s.o8)(t)}get extent(){let t=(0,f.Z3)(this),{spatialReference:e}=this;return t?new l.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;let e=this.paths,i=e.length;if(function(t){return!Array.isArray(t[0])}(t)){let n=[];for(let e=0,i=t.length;e<i;e++)n[e]=t[e].toArray();e[i]=n}else e[i]=t.slice();return this.notifyChange("paths"),this}clone(){let t=new n;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;let i=this.paths[t][e],n=this.hasZ,r=this.hasM;return n&&!r?new a.A(i[0],i[1],i[2],void 0,this.spatialReference):r&&!n?new a.A(i[0],i[1],void 0,i[2],this.spatialReference):n&&r?new a.A(i[0],i[1],i[2],i[3],this.spatialReference):new a.A(i[0],i[1],this.spatialReference)}insertPoint(t,e,i){return this._validateInputs(t,e,!0)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t].splice(e,0,i),this.notifyChange("paths")),this}removePath(t){if(!this._validateInputs(t,null))return null;let e=this.paths.splice(t,1)[0],i=this.spatialReference,n=e.map(t=>new a.A(t,i));return this.notifyChange("paths"),n}removePoint(t,e){if(!this._validateInputs(t,e))return null;let i=new a.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(t,e,i){return this._validateInputs(t,e)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t][e]=i,this.notifyChange("paths")),this}_validateInputs(t,e,i=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){let n=this.paths[t];if(i&&(e<0||e>n.length)||!i&&(e<0||e>=n.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],y.prototype,"curvePaths",void 0),(0,r.Cg)([(0,d.K)("curvePaths")],y.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],y.prototype,"paths",void 0),(0,r.Cg)([(0,d.K)("paths")],y.prototype,"writePaths",null),y=n=(0,r.Cg)([(0,o.$K)("esri.geometry.Polyline")],y),y.prototype.toJSON.isDefaultToJSON=!0},4197(t,e,i){i.d(e,{Vj:()=>o,cj:()=>s,jh:()=>r});var n=i(9093);function r(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function s(t){return[...t]}function o(t){let e=(0,n.vt)();for(let i=0;i<16;++i)e[i]=t[i];return e}},6774(t,e,i){i.d(e,{O3:()=>s,Ox:()=>o,bR:()=>n});class n{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new n(t[0],t[1])}clone(){return new n(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){let t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){let t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){let t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){let i=this.x,n=this.y;return this.x=i*t-n*e,this.y=i*e+n*t,this}rotateReverse(t,e){let i=this.x,n=this.y;return this.x=i*t+n*e,this.y=-i*e+n*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){let t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){let i=e.x-t.x,n=e.y-t.y;return Math.sqrt(i*i+n*n)}static add(t,e){return new n(t.x+e.x,t.y+e.y)}static sub(t,e){return new n(t.x-e.x,t.y-e.y)}}class r{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class s{constructor(t,e,i,n=8,r=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=n,this._pixelMargin=r,this._tileSize=512*n,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;let i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new n(t,e),this._firstPt=new n(t,e),this._dist=0}lineTo(t,e){let i,s,o,l,h,a,u,f,c=this._isIn(t,e),d=new n(t,e),y=n.distance(this._prevPt,d);if(c)this._prevIsIn?this._lineTo(t,e,!0):(i=this._prevPt,s=d,o=this._intersect(s,i),this._start=this._dist+y*(1-this._r),this._lineTo(o.x,o.y,!0),this._lineTo(s.x,s.y,!0));else if(this._prevIsIn)s=this._prevPt,i=d,o=this._intersect(s,i),this._lineTo(o.x,o.y,!0),this._lineTo(i.x,i.y,!1);else{let t=this._prevPt,e=d;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{let i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(l=(this._xmin-t.x)/(e.x-t.x),f=t.y+l*(e.y-t.y),f<this._ymin?a=!1:f>this._ymax?a=!0:i.push(new r(l,this._xmin,f))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(l=(this._xmax-t.x)/(e.x-t.x),f=t.y+l*(e.y-t.y),f<this._ymin?a=!1:f>this._ymax?a=!0:i.push(new r(l,this._xmax,f))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(l=(this._ymin-t.y)/(e.y-t.y),u=t.x+l*(e.x-t.x),u<=this._xmin?h=!1:u>=this._xmax?h=!0:i.push(new r(l,u,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(l=(this._ymax-t.y)/(e.y-t.y),u=t.x+l*(e.x-t.x),u<=this._xmin?h=!1:u>=this._xmax?h=!0:i.push(new r(l,u,this._ymax))),0===i.length)h?a?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):a?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+y*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+y*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=y,this._prevIsIn=c,this._prevPt=d}close(){if(this._line.length>2){let t=this._firstPt,e=this._prevPt;(t.x!==e.x||t.y!==e.y)&&this.lineTo(t.x,t.y);let i=this._line,n=i.length;for(;n>=4&&(i[0].x===i[1].x&&i[0].x===i[n-2].x||i[0].y===i[1].y&&i[0].y===i[n-2].y);)i.pop(),i[0].x=i[n-2].x,i[0].y=i[n-2].y,--n}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&l.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw Error("Only valid for lines");this._pushLine();let t=this._lines,e=t.length;if(0===e)return null;let i=[];for(let n=0;n<e;n++)i.push({line:t[n],start:this._starts[n]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,r,s;if(e.x>=this._xmin&&e.x<=this._xmax)r=e.y<=this._ymin?this._ymin:this._ymax,s=(r-t.y)/(e.y-t.y),i=t.x+s*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,s=(i-t.x)/(e.x-t.x),r=t.y+s*(e.y-t.y);else{r=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;let n=(i-t.x)/(e.x-t.x),o=(r-t.y)/(e.y-t.y);n<o?(s=n,r=t.y+n*(e.y-t.y)):(s=o,i=t.x+o*(e.x-t.x))}return this._r=s,new n(i,r)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3===this._type?(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new n(t,e)),this._isH=!1,this._isV=!1):i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new n(t,e)))}_lineTo(t,e,i){let r,s;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(r=this._line[this._line.length-1],r.equals(t,e)))return;this._line.push(new n(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){r=this._line[this._line.length-1];let i=r.x===t,o=r.y===e;if(i&&o)return;this._isH&&i||this._isV&&o?(r.x=t,r.y=e,s=this._line[this._line.length-2],s.x===t&&s.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(s=this._line[this._line.length-2],this._isH=s.x===t,this._isV=s.y===e)):(this._isH=s.x===t,this._isV=s.y===e)):(this._line.push(new n(t,e)),this._isH=i,this._isV=o)}else this._line.push(new n(t,e))}}class o{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];let i=this._ratio;this._line.push(new n(t*i,e*i))}lineTo(t,e){let i=this._ratio;this._line.push(new n(t*i,e*i))}close(){let t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class l{static simplify(t,e,i){if(!i)return;let n=-e,r=t+e,s=-e,o=t+e,h=[],a=[],u=i.length;for(let t=0;t<u;++t){let e=i[t];if(!e||e.length<2)continue;let l,u=e[0],f=e.length;for(let i=1;i<f;++i)l=e[i],u.x===l.x&&(u.x<=n&&(u.y>l.y?(h.push(t),h.push(i),h.push(0),h.push(-1)):(a.push(t),a.push(i),a.push(0),a.push(-1))),u.x>=r&&(u.y<l.y?(h.push(t),h.push(i),h.push(1),h.push(-1)):(a.push(t),a.push(i),a.push(1),a.push(-1)))),u.y===l.y&&(u.y<=s&&(u.x<l.x?(h.push(t),h.push(i),h.push(2),h.push(-1)):(a.push(t),a.push(i),a.push(2),a.push(-1))),u.y>=o&&(u.x>l.x?(h.push(t),h.push(i),h.push(3),h.push(-1)):(a.push(t),a.push(i),a.push(3),a.push(-1)))),u=l}if(0===h.length||0===a.length)return;l.fillParent(i,a,h),l.fillParent(i,h,a);let f=[];l.calcDeltas(f,a,h),l.calcDeltas(f,h,a),l.addDeltas(f,i)}static fillParent(t,e,i){let n=i.length,r=e.length;for(let s=0;s<r;s+=4){let r=e[s],o=e[s+1],l=e[s+2],a=t[r][o-1],u=t[r][o],f=8092,c=-1;for(let e=0;e<n;e+=4){if(i[e+2]!==l)continue;let n=i[e],r=i[e+1],s=t[n][r-1],o=t[n][r];switch(l){case 0:case 1:if(h(a.y,s.y,o.y)&&h(u.y,s.y,o.y)){let t=Math.abs(o.y-s.y);t<f&&(f=t,c=e)}break;case 2:case 3:if(h(a.x,s.x,o.x)&&h(u.x,s.x,o.x)){let t=Math.abs(o.x-s.x);t<f&&(f=t,c=e)}}}e[s+3]=c}}static calcDeltas(t,e,i){let n=e.length;for(let r=0;r<n;r+=4){let n=l.calcDelta(r,e,i,[]);t.push(e[r]),t.push(e[r+1]),t.push(e[r+2]),t.push(n)}}static calcDelta(t,e,i,n){let r=e[t+3];if(-1===r)return 0;let s=n.length;return s>1&&n[s-2]===r?0:(n.push(r),l.calcDelta(r,i,e,n)+1)}static addDeltas(t,e){let i=t.length,n=0;for(let e=0;e<i;e+=4){let i=t[e+3];i>n&&(n=i)}for(let r=0;r<i;r+=4){let i=e[t[r]],s=t[r+1],o=n-t[r+3];switch(t[r+2]){case 0:i[s-1].x-=o,i[s].x-=o,1===s&&(i[i.length-1].x-=o),s===i.length-1&&(i[0].x-=o);break;case 1:i[s-1].x+=o,i[s].x+=o,1===s&&(i[i.length-1].x+=o),s===i.length-1&&(i[0].x+=o);break;case 2:i[s-1].y-=o,i[s].y-=o,1===s&&(i[i.length-1].y-=o),s===i.length-1&&(i[0].y-=o);break;case 3:i[s-1].y+=o,i[s].y+=o,1===s&&(i[i.length-1].y+=o),s===i.length-1&&(i[0].y+=o)}}}}const h=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},70328(t,e,i){i.d(e,{BI:()=>A,C:()=>o,DC:()=>c,Ej:()=>x,Ie:()=>T,Jt:()=>P,Lu:()=>w,Ne:()=>b,RF:()=>f,TF:()=>_,VL:()=>y,aI:()=>S,fA:()=>l,gE:()=>a,gX:()=>g,hZ:()=>I,iT:()=>d,is:()=>B,pg:()=>M,uJ:()=>p,vI:()=>v,vY:()=>h,vt:()=>s,w1:()=>u,yr:()=>m}),i(35522);var n=i(5443),r=(i(19419),i(4197));function s(t=R){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e){for(let i=0;i<6;i++)t[i]=e[i];return t}function l(t,e,i,n,r,o,l=s()){return l[0]=t,l[1]=e,l[2]=i,l[3]=n,l[4]=r,l[5]=o,l}function h(t,e=s()){return function(t,e,i,n=s()){return I(n,C),function(t,e,i=0,n=e.length/3){let r=t[0],s=t[1],o=t[2],l=t[3],h=t[4],a=t[5];for(let t=0;t<n;t++)r=Math.min(r,e[i+3*t]),s=Math.min(s,e[i+3*t+1]),o=Math.min(o,e[i+3*t+2]),l=Math.max(l,e[i+3*t]),h=Math.max(h,e[i+3*t+1]),a=Math.max(a,e[i+3*t+2]);t[0]=r,t[1]=s,t[2]=o,t[3]=l,t[4]=h,t[5]=a}(n,t,e,i),n}(t,0,t.length/3,e)}function a(t,e=(0,r.jh)(24)){let[i,n,s,o,l,h]=t;return e[0]=i,e[1]=n,e[2]=s,e[3]=i,e[4]=n,e[5]=h,e[6]=i,e[7]=l,e[8]=s,e[9]=i,e[10]=l,e[11]=h,e[12]=o,e[13]=n,e[14]=s,e[15]=o,e[16]=n,e[17]=h,e[18]=o,e[19]=l,e[20]=s,e[21]=o,e[22]=l,e[23]=h,e}function u(t,e){return isFinite(t[2])||isFinite(t[5])?new n.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}):new n.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function f(t,e,i=t){i[0]=Math.min(t[0],e[0]),i[1]=Math.min(t[1],e[1]),i[2]=Math.min(t[2],e[2]),i[3]=Math.max(t[3],e[3]),i[4]=Math.max(t[4],e[4]),i[5]=Math.max(t[5],e[5])}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function d(t,[e,i,n]){!function(t,e,i,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.min(t[2],n),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],i),t[5]=Math.max(t[5],n)}(t,e,i,n)}function y(t){return t[0]>=t[3]?0:t[3]-t[0]}function m(t){return t[1]>=t[4]?0:t[4]-t[1]}function p(t){return t[2]>=t[5]?0:t[5]-t[2]}function _(t){let e=y(t),i=p(t),n=m(t);return e*e+i*i+n*n}function g(t,e=[0,0,0]){return e[0]=t[0]+y(t)/2,e[1]=t[1]+m(t)/2,e[2]=t[2]+p(t)/2,e}function x(t,e=[0,0,0]){return e[0]=y(t),e[1]=m(t),e[2]=p(t),e}function M(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function w(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function b(t,e,i=t){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i!==t&&(i[3]=t[3],i[4]=t[4],i[5]=t[5]),i}function v(t,e,i=t){return i[3]=e[0],i[4]=e[1],i[5]=e[2],i!==t&&(i[0]=t[0],i[1]=t[1],i[2]=t[2]),t}function I(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function T(t){return t?I(t,C):s(C)}function P(t,e){return t[0]=e[0],t[1]=e[1],t[2]=-1/0,t[3]=e[2],t[4]=e[3],t[5]=1/0,t}function A(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=-1/0,t[3]=n,t[4]=r,t[5]=1/0,t}function B(t){return 6===t.length}function S(t,e,i){if(null==t||null==e)return t===e;if(!B(t)||!B(e))return!1;if(i){for(let n=0;n<t.length;n++)if(!i(t[n],e[n]))return!1}else for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],R=[0,0,0,0,0,0];s(),i.d(e,["qv",0,C,"v_",0,R])},60408(t,e,i){function n(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function r(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function l(t){return void 0!==t.rings||void 0!==t.curveRings}function h(t){return"object"==typeof t&&"vertexAttributes"in t}function a(t){return t?s(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":l(t)?"esriGeometryPolygon":n(t)?"esriGeometryEnvelope":r(t)?"esriGeometryMultipoint":null:null}function u(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}i.d(e,{$B:()=>a,Bi:()=>l,Pv:()=>u,Rg:()=>o,U9:()=>r,W0:()=>f,ZC:()=>n,fT:()=>s,uW:()=>h})},65864(t,e,i){i.d(e,{rS:()=>u,xD:()=>c});var n=i(5443),r=i(91075),s=i(48526),o=i(86738),l=i(39829),h=i(82799),a=i(60408);function u(t){return null==t?null:t instanceof r.A?t:(0,a.fT)(t)?o.A.fromJSON(t):(0,a.Rg)(t)?h.A.fromJSON(t):(0,a.Bi)(t)?l.A.fromJSON(t):(0,a.U9)(t)?s.A.fromJSON(t):(0,a.ZC)(t)?n.A.fromJSON(t):null}const f={esriGeometryPoint:o.A,esriGeometryPolyline:h.A,esriGeometryPolygon:l.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:l.A};function c(t){return t&&f[t]||null}},43334(t,e,i){i.d(e,{N3:()=>l,Om:()=>o});var n=i(69397),r=i(27647),s=i(92722);class o{constructor(t,e,i,n,r=0,s=null,o=null){this.geometry=t,this.attributes=e,this.centroid=i,this.objectId=n,this.displayId=r,this.distance=s,this.vertexCount=o}static fromJSON(t){let e=t.geometry?s.A.fromJSON(t.geometry):null,i=t.centroid?s.A.fromJSON(t.centroid):null,n=t.objectId;return new o(e,t.attributes,i,n,void 0,t.distance,t.vertexCount)}weakClone(){return new o(this.geometry,this.attributes,this.centroid,this.objectId,this.displayId,this.distance,this.vertexCount)}clone(){return new o(this.geometry?.clone(),{...this.attributes},this.centroid?.clone(),this.objectId,this.displayId,this.distance,this.vertexCount)}ensureCentroid(t){return this.centroid??=(0,r.Q)(this.geometry),this.centroid}get usedMemory(){return 128+(0,n.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function l(t){return!!t.geometry?.coords?.length}},58512(t,e,i){i.d(e,{A:()=>n});class n{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){let t=new n;return t.globalIdFieldName=this.globalIdFieldName,t.geohashFieldName=this.geohashFieldName,t.geometryProperties=this.geometryProperties,t.geometryType=this.geometryType,t.spatialReference=this.spatialReference,t.hasZ=this.hasZ,t.hasM=this.hasM,t.features=this.features,t.fields=this.fields,t.transform=this.transform,t.exceededTransferLimit=this.exceededTransferLimit,t.uniqueIdField=this.uniqueIdField,t.queryGeometry=this.queryGeometry,t.queryGeometryType=this.queryGeometryType,t}}},92722(t,e,i){i.d(e,{A:()=>r});var n=i(69397);class r{constructor(t=[],e=[],i=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=i,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:i,hasM:n}){return new r(t,e,i||!1,n||!1)}static fromRect([t,e,i,n]){let s=i-t,o=n-e;return new r([5],[t,e,s,0,0,o,-s,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let t=0,e=0;for(let i of this.lengths){if(i<3)continue;let{stride:n}=this,r=this.coords[n*e],s=this.coords[n*e+1];for(let o=1;o<i;o+=1){let i=n*(e+o),l=this.coords[i],h=this.coords[i+1];t+=-.5*(l-r)*(h+s),r=l,s=h}e+=i}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);let{stride:i}=this;for(let n of this.lengths){for(let r=0;r<n;r++){let n=i*(e+r);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){let t=this.clone(),{coords:e,lengths:i}=t,n=0,{stride:r}=this;for(let t of i){for(let i=1;i<t;i++){let t=r*(n+i);e[t]+=e[t-r],e[t+1]+=e[t+1-r]}n+=t}return t}clone(t){if(this.isPoint)return new r([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let e=Array.from(this.lengths),{stride:i,size:n}=this,s=this.coords.slice(0,n*i);return t?(t.set(s),new r(e,t,this.hasZ,this.hasM)):new r(e,Array.from(s),this.hasZ,this.hasM)}justXY(){let{stride:t,size:e}=this;if(2===t)return this;let i=Array(e*t);for(let e=0,n=0;e<i.length;e+=t)i[n++]=this.coords[e],i[n++]=this.coords[e+1];return new r(this.lengths,i,!1,!1)}}},27647(t,e,i){i.d(e,{Q:()=>s});var n=i(92722);function r(t,e){return t?e?4:3:e?3:2}function s(t){if(null==t||!t?.lengths.length)return null;let{lengths:e,coords:i,stride:r,hasZ:s,hasM:h}=t,a=new n.A([],[],s,!1),u=a.coords,f=[],c=s?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0],d=0;for(let t of e){let e=o(c,i,d,t,s,h);e&&f.push(e),d+=t*r}if(f.sort((t,e)=>{let i=t[2]-e[2];return 0===i&&s&&(i=t[4]-e[4]),i}),f.length){let t=6*f[0][2];u[0]=f[0][0]/t,u[1]=f[0][1]/t,s&&(t=6*f[0][4],u[2]=0===t?0:f[0][3]/t),(u[0]<c[0]||u[0]>c[1]||u[1]<c[2]||u[1]>c[3]||s&&(u[2]<c[4]||u[2]>c[5]))&&(u.length=0)}if(!u.length){let n=t.lengths[0]?l(i,0,e[0],s,h):null;if(!n)return null;u[0]=n[0],u[1]=n[1],s&&(u[2]=n[2]??0)}return a}function o(t,e,i,n,s,o){let l=r(s,o),h=i,a=i+l,u=0,f=0,c=0,d=0,y=0;for(let i=0,r=n-1;i<r;i++,h+=l,a+=l){let i=e[h],n=e[h+1],r=e[h+2],o=e[a],l=e[a+1],m=e[a+2],p=i*l-o*n;d+=p,u+=(i+o)*p,f+=(n+l)*p,s&&(p=i*m-o*r,c+=(r+m)*p,y+=p),i<t[0]&&(t[0]=i),i>t[1]&&(t[1]=i),n<t[2]&&(t[2]=n),n>t[3]&&(t[3]=n),s&&(r<t[4]&&(t[4]=r),r>t[5]&&(t[5]=r))}if(d>0&&(d*=-1),y>0&&(y*=-1),!d)return null;let m=[u,f,.5*d];return s&&(m[3]=c,m[4]=.5*y),m}function l(t,e,i,n,s){let o=r(n,s),l=e,c=e+o,d=0,y=0,m=0,p=0;for(let e=0,r=i-1;e<r;e++,l+=o,c+=o){let e=t[l],i=t[l+1],r=t[l+2],s=t[c],o=t[c+1],_=t[c+2],g=n?a(e,i,r,s,o,_):h(e,i,s,o);if(g)if(d+=g,n){let t=f(e,i,r,s,o,_);y+=g*t[0],m+=g*t[1],p+=g*t[2]}else{let t=u(e,i,s,o);y+=g*t[0],m+=g*t[1]}}return d>0?n?[y/d,m/d,p/d]:[y/d,m/d]:i>0?n?[t[e],t[e+1],t[e+2]]:[t[e],t[e+1]]:null}function h(t,e,i,n){let r=i-t,s=n-e;return Math.sqrt(r*r+s*s)}function a(t,e,i,n,r,s){let o=n-t,l=r-e,h=s-i;return Math.sqrt(o*o+l*l+h*h)}function u(t,e,i,n){return[t+.5*(i-t),e+.5*(n-e)]}function f(t,e,i,n,r,s){return[t+.5*(n-t),e+.5*(r-e),i+.5*(s-i)]}},6518(t,e,i){i.d(e,{F:()=>l});var n=i(44208),r=i(75503),s=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class l{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,n.A)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let t=Array(this._idByBounds.size),e=0;this._idByBounds.forEach((i,n)=>{t[e++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(t=>this._idByBounds.has(t))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let t=(0,s.Ie)();for(let e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){let e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,i){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,i)}(this._index,t,t=>e(this._idByBounds.get(t)))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){let e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(t,e,i){i.d(e,{A:()=>d});var n=i(4576),r=i(49186),s=i(65529),o=i(53966),l=i(70328),h=i(19419),a=i(90708),u=i(6518),f=i(37730);const c=(0,l.vt)();class d{constructor(t){this.geometryInfo=t,this._boundsStore=new u.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=f.T}get usedMemory(){return this._usedMemory}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 t=0;return this._featuresById.forEach(e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;let[e,i,n,r]=this.fullBounds;return{xmin:e,ymin:i,xmax:n,ymax:r,spatialReference:t}}add(t){this._add(t),this._emitChanged()}addMany(t){for(let e of t)this._add(e);this._emitChanged()}upsertMany(t){let e=t.map(t=>this._upsert(t));return this._emitChanged(),e.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(t){let e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(let e of t){let t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(let i of t){let t=this._boundsStore.get(i.objectId);t&&e((0,l.Jt)(c,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach(e=>t(e))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,t=>{e(this._featuresById.get(t))})}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;let e=t.objectId;if(null==e)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:t}));let i,n=this._featuresById.get(e);n?(t.displayId=n.displayId,i=this._boundsStore.get(e),this._boundsStore.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(t),t.geometry?.coords?.length?(i=(0,a.jQ)(i??(0,h.vt)(),t.geometry),null!=i&&this._boundsStore.set(e,i),this._featuresById.set(e,t),this._usedMemory+=this.estimateFeatureUsedMemory?.(t)??0):(this._boundsStore.set(e,null),this._featuresById.set(e,t))}_upsert(t){let e=t?.objectId;if(null==e)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:t})),null;let i=this._featuresById.get(e);if(!i)return this._add(t),t;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;let{geometry:n,attributes:s}=t;for(let t in s)i.attributes[t]=s[t];return n&&(i.geometry=n,this._boundsStore.set(e,(0,a.jQ)((0,h.vt)(),n)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);let e=t.objectId;return this._boundsStore.delete(e),this._featuresById.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(t)??0,t}}},54339(t,e,i){function n(t,e){switch(e.type){case"object-id":case"unique-id-simple":return t.attributes[e.fieldName];case"unique-id-composite":{let i=[];for(let n of e.fieldNames)i.push(t.attributes[n]??null);return JSON.stringify(i)}}}function r(t,e){if("uniqueIdFields"in e&&e.uniqueIdFields?.length){if(1===e.uniqueIdFields.length)return t.attributes?.[e.uniqueIdFields[0]];let i=e.uniqueIdFields.map(e=>t.attributes?.[e]);return JSON.stringify(i)}return"objectIdField"in e&&e.objectIdField?t.attributes?.[e.objectIdField]:null}i.d(e,{W:()=>n,r:()=>r})},37730(t,e,i){var n=i(43334);const r={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e,i)=>new n.Om(e,t.attributes,null,t.objectId,t.displayId,t.distance,t.vertexCount),getGeometry:t=>t.geometry,getCentroid:(t,e)=>t.ensureCentroid(e)};i.d(e,["T",0,r])},31464(t,e,i){i.d(e,{Cv:()=>d,Nk:()=>c,lK:()=>m});var n=i(4576),r=i(99917),s=i(60408),o=i(21325),l=i(28735);const h=[0,0];function a(t,e){let i=(0,o.K8)(t)?l.je:l.tD;if((0,s.fT)(e)){let t={x:0,y:0};return[t.x,t.y]=i(e.x,e.y,h),null!=e.z&&(t.z=e.z),null!=e.m&&(t.m=e.m),t}if((0,s.ZC)(e)){let t={xmin:0,ymin:0,xmax:0,ymax:0};return[t.xmin,t.ymin]=i(e.xmin,e.ymin,h),[t.xmax,t.ymax]=i(e.xmax,e.ymax,h),e.hasZ&&(t.zmin=e.zmin,t.zmax=e.zmax,t.hasZ=!0),e.hasM&&(t.mmin=e.mmin,t.mmax=e.mmax,t.hasM=!0),t}if((0,s.Bi)(e))return{rings:u(e.rings,i),hasM:e.hasM,hasZ:e.hasZ};if((0,s.Rg)(e))return{paths:u(e.paths,i),hasM:e.hasM,hasZ:e.hasZ};if((0,s.U9)(e))return{points:f(e.points,i),hasM:e.hasM,hasZ:e.hasZ};throw Error()}function u(t,e){let i=[];for(let n of t)i.push(f(n,e));return i}function f(t,e){let i=[];for(let n of t){let t=e(n[0],n[1],[0,0]);i.push(t),n.length>2&&t.push(n[2]),n.length>3&&t.push(n[3])}return i}async function c(t,e){if(!t||!e)return;let i=Array.isArray(t)?t.map(t=>null==t.geometry?null:t.geometry.spatialReference).filter(n.Ru):[t];await(0,r.initializeProjection)(i.map(t=>({source:t,dest:e})))}function d(t,e,i,n){if(!t)return null;if(i||(i=e,e=t.spatialReference),!(0,o.fn)(e)||!(0,o.fn)(i)||(0,o.aI)(e,i))return t;if((0,l.y7)(e,i)){let e=a(i,t);return e.spatialReference=i,e}let[s]=(0,r.projectMany)([t],e,i,n);return s}const y=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(t,e,i,n){if(!t?.length||!e||!i||(0,o.aI)(e,i))return t;let r={geometries:t,inSpatialReference:e,outSpatialReference:i,options:n,resolve:Promise.withResolvers()};return this._jobs.push(r),this._timer??=setTimeout(this._process,10),r.resolve.promise}_process(){this._timer=null;let t=this._jobs.shift();if(!t)return;let e,{geometries:i,inSpatialReference:n,outSpatialReference:s,resolve:o,options:h}=t,u=i.filter(t=>null!=t);e=(0,l.y7)(n,s)&&null==h?.extendedParams?u.map(t=>a(s,t)):(0,r.projectMany)(u,n,s,h);let f=0,c=i.map(t=>null==t?null:e[f++]);o.resolve(c),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function m(t,e,i,n){return y.push(t,e,i,n)}},90708(t,e,i){i.d(e,{Ap:()=>A,B2:()=>p,DF:()=>b,Di:()=>Z,E2:()=>F,IE:()=>m,Nl:()=>k,PR:()=>T,Rk:()=>U,Ux:()=>O,Ye:()=>S,ZF:()=>N,aQ:()=>V,jH:()=>X,jQ:()=>D,kz:()=>L,oN:()=>G,q3:()=>Y,qN:()=>v,zv:()=>j});var n=i(49186),r=i(53966),s=i(97768),o=i(70328),l=i(19419),h=i(60408),a=i(43334),u=i(58512),f=i(92722),c=i(54339);const d=()=>r.A.getLogger("esri.layers.graphics.featureConversionUtils"),y={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryMultiPatch:3,esriGeometryEnvelope:0};function m({scale:t,translate:e},i){return Math.round((i-e[0])/t[0])}function p({scale:t,translate:e},i){return Math.round((e[1]-i)/t[1])}function _({scale:t,translate:e},i){return Math.round((i-e[0])/t[0])}function g({scale:t,translate:e},i){return Math.round((i-e[1])/t[1])}function x({scale:t,translate:e},i,n){return i*t[n]+e[n]}function M(t,e,i){return e&&(t.hasZ=!0),i&&(t.hasM=!0),t}function w(t,e,i,n){if(e&&n&&t!==i)return(e,i,n,r)=>{n[r++]=e[i++],n[r++]=e[i++],t?i++:n[r++]=0,n[r++]=e[i++]??0};let r=+!!i+2+ +!!n,s=r-((!t&&i?1:0)+(!e&&n?1:0));return(t,e,i,n)=>{for(let o=0;o<r;++o)i[n++]=o<s?t[e++]??0:0}}function b(t,e,i){if(!t)return null;let{coords:n,hasZ:r,hasM:s}=t,[o,l]=n,h=r?n[2]:0,a=s?n[+!!r+2]:0;return{x:o,y:l,z:e?h:void 0,m:i?a:void 0}}function v(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{x:n,y:r,z:s,m:o}=t,l=[n,r];return e&&l.push(s??0),i&&l.push(o??0),new f.A([],l,e,i)}function I(t,e,i){if(null==t)return null;let{coords:n,stride:r,hasZ:s,hasM:o}=t,l=w(s,o,e,i),h=[];for(let t=0;t<n.length;t+=r){let e=[];l(n,t,e,0),h.push(e)}return M({points:h},e,i)}function T(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{points:n,hasZ:r,hasM:s}=t,o=new f.A([n.length],[],e,i),{coords:l,stride:a}=o,u=0,c=w(r??!1,s??!1,e,i);for(let t of n)c(t,0,l,u),u+=a;return o}function P(t,e,i){if(!t)return null;let{coords:n,lengths:r,stride:s,hasZ:o,hasM:l}=t,h=0,a=w(o,l,e,i),u=[];for(let t of r){let e=[];for(let i=0;i<t;i++){let t=[];a(n,h,t,0),h+=s,e.push(t)}u.push(e)}return M({paths:u},e,i)}function A(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{paths:n,hasZ:r,hasM:s}=t,o=w(r??!1,s??!1,e,i),l=new f.A([],[],e,i),{lengths:a,coords:u,stride:c}=l,d=0;for(let t of n){for(let e of t)o(e,0,u,d),d+=c;a.push(t.length)}return l}function B(t,e,i){if(!t)return null;let{coords:n,lengths:r,stride:s,hasZ:o,hasM:l}=t,h=0,a=w(o,l,e,i),u=[];for(let t of r){let e=[];for(let i=0;i<t;i++){let t=[];a(n,h,t,0),h+=s,e.push(t)}u.push(e)}return M({rings:u},e,i)}function S(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{rings:n,hasZ:r,hasM:s}=t,o=new f.A([],[],e,i),{lengths:l,coords:a,stride:u}=o,c=0,d=w(r??!1,s??!1,e,i);for(let t of n){for(let e of t)d(e,0,a,c),c+=u;l.push(t.length)}return o}const C=[],R=[];function F(t,e,i,n,r){C[0]=t;let[s]=Z(R,C,e,i,n,r);return W(C),W(R),s}function Z(t,e,i,r,s,o){if(W(t),!i){for(let i of e){let e=(0,c.W)(i,o);t.push(new a.Om(null,i.attributes,null,e,void 0,i.distance,i.vertexCount))}return t}switch(i){case"esriGeometryPoint":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o,centroid:l}=s,u=(0,h.Pv)(e),f=(0,h.W0)(e);t.push(new a.Om(e?v(e,i&&u,n&&f):null,o,l?v(l,!1,!1):null,(0,c.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);case"esriGeometryMultipoint":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o}=s,l=(0,h.Pv)(e),u=(0,h.W0)(e);t.push(new a.Om(e?T(e,i&&l,n&&u):null,o,null,(0,c.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);case"esriGeometryPolyline":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o,centroid:l}=s,u=(0,h.Pv)(e),f=(0,h.W0)(e);t.push(new a.Om(e?A(e,i&&u,n&&f):null,o,l?v(l,!1,!1):null,(0,c.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);case"esriGeometryPolygon":case"esriGeometryMultiPatch":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o,centroid:l}=s,u=(0,h.Pv)(e),f=(0,h.W0)(e);t.push(new a.Om(e?S(e,i&&u,n&&f):null,o,l?v(l,!1,!1):null,(0,c.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);default:d().error("convertToFeatureSet:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${i}'`)),W(t)}return t}function G(t,e,i,n){R[0]=t,q(C,R,e,i,n);let r=C[0];return W(C),W(R),r}function O(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){return null==t?null:(0,h.fT)(t)?v(t,e,i):(0,h.Bi)(t)?S(t,e,i):(0,h.Rg)(t)?A(t,e,i):(0,h.U9)(t)?T(t,e,i):void d().error("convertFromGeometry:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${t}'`))}function j(t,e,i,r){if(null==t)return null;let s="coords"in t?t:t.geometry;if(null==s)return null;switch(e){case"esriGeometryPoint":return b(s,i,r);case"esriGeometryMultipoint":return I(s,i,r);case"esriGeometryPolyline":return P(s,i,r);case"esriGeometryPolygon":return B(s,i,r);default:return d().error("convertToGeometry:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${e}'`)),null}}function q(t,e,i,r,s){if(W(t),null==i)return function(t,e){for(let i of e)t.push({attributes:i.attributes});return t}(t,e);switch(i){case"esriGeometryPoint":return function(t,e,i,n){for(let{geometry:r,attributes:s}of e)t.push({attributes:s,geometry:b(r,i,n)});return t}(t,e,r,s);case"esriGeometryMultipoint":return function(t,e,i,n){for(let{geometry:r,attributes:s}of e)t.push({geometry:r&&I(r,i,n),attributes:s});return t}(t,e,r,s);case"esriGeometryPolyline":return function(t,e,i,n){for(let{geometry:r,attributes:s}of e)t.push({geometry:r&&P(r,i,n),attributes:s});return t}(t,e,r,s);case"esriGeometryPolygon":return function(t,e,i,n){for(let{geometry:r,attributes:s,centroid:o}of e){let e=B(r,i,n),l=b(o,!1,!1);t.push(o?{geometry:e,attributes:s,centroid:l}:{geometry:e,attributes:s})}return t}(t,e,r,s);default:d().error("convertToFeatureSet:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${i}'`))}return t}function N(t){let{spatialReference:e,transform:i,fields:n,hasM:r,hasZ:s,features:o,geometryType:l,exceededTransferLimit:h,queryGeometry:a,queryGeometryType:u}=t,f={features:q([],o,l,s,r),fields:n,geometryType:l,spatialReference:e,queryGeometry:j(a,u,s,r)};return i&&(f.transform=i),h&&(f.exceededTransferLimit=h),r&&(f.hasM=r),s&&(f.hasZ=s),f}function Y(t,e){let i=new u.A,{hasM:n,hasZ:r,features:s,spatialReference:o,geometryType:l,exceededTransferLimit:h,transform:a,fields:f,globalIdFieldName:c}=t;return f&&(i.fields=f),i.geometryType=l??null,i.spatialReference=o??null,s&&Z(i.features,s,l,r,n,e),h&&(i.exceededTransferLimit=h),n&&(i.hasM=n),r&&(i.hasZ=r),a&&(i.transform=a),c&&(i.globalIdFieldName=c),i}function X(t,e){let{geometryType:i,features:n}=e;if(!t)return e;for(let e=0;e<n.length;e++){let r=n[e],s=r.weakClone();s.geometry=k(r.geometry,i,t),s.centroid=k(r.centroid,"esriGeometryPoint",t),n[e]=s}return e.transform=t,e}function k(t,e,i,n,r,s=!1){if(null==t||!t?.coords.length)return null;let o=y[e],{coords:l,lengths:h,stride:a,hasZ:u,hasM:c}=t;n??=u,r??=c;let d=new f.A([],[],n,r),x=d.stride,M=w(u,c,n,r),b=0,v=[0,0,0,0].slice(x),I=s?_:m,T=s?g:p;function P(){M(l,b,v,0),b+=a,v[0]=I(i,v[0]),v[1]=T(i,v[1])}if(t.isPoint)return P(),d.coords.push(...v),d;let A=0;for(let t of h){if(t<o)continue;let e=1;P(),d.coords.push(...v);let[i,n]=v;for(let r=1;r<t;r++){P();let[t,r]=v;(i!==t||n!==r)&&(s||(v[0]-=i,v[1]-=n),d.coords.push(...v),i=t,n=r,e++)}e>=o?(d.lengths.push(e),A=d.coords.length):W(d.coords,A)}return W(d.coords,A),d.coords.length?d:null}function L(t,e,i,n=t.hasZ,r=t.hasM){if(!t.coords.length)return null;let s=y[e],{coords:o,lengths:l,stride:h,hasZ:a,hasM:u}=t,c=new f.A([],[],n,r),d=c.stride,m=w(a,u,n,r);if(t.isPoint)return m(o,0,c.coords,0),c;let p=0,_=i*i;for(let t of l){if(t<s){p+=t*h;continue}let e=c.coords.length/d,i=p,n=p+(t-1)*h;m(o,i,c.coords,c.coords.length),E(c.coords,o,h,_,m,i,n),m(o,n,c.coords,c.coords.length);let r=c.coords.length/d-e;r>=s?c.lengths.push(r):W(c.coords,e*d),p+=t*h}return c.coords.length?c:null}function z(t,e,i,n){let r=t[e],s=t[e+1],o=t[i],l=t[i+1],h=t[n],a=t[n+1],u=o,f=l,c=h-u,d=a-f;if(0!==c||0!==d){let t=((r-u)*c+(s-f)*d)/(c*c+d*d);t>1?(u=h,f=a):t>0&&(u+=c*t,f+=d*t)}return c=r-u,d=s-f,c*c+d*d}function E(t,e,i,n,r,s,o){let l,h=n,a=0;for(let t=s+i;t<o;t+=i)l=z(e,t,s,o),l>h&&(a=t,h=l);h>n&&(a-s>i&&E(t,e,i,n,r,s,a),r(e,a,t,t.length),o-a>i&&E(t,e,i,n,r,a,o))}function D(t,e){if(!e?.coords?.length)return null;let i=1/0,n=1/0,r=-1/0,s=-1/0,{coords:h,stride:a}=e;for(let t=0;t<h.length;t+=a){let e=h[t],o=h[t+1];i=Math.min(i,e),r=Math.max(r,e),n=Math.min(n,o),s=Math.max(s,o)}return(0,o.is)(t)?(0,o.BI)(t,i,n,r,s):(0,l.fA)(i,n,r,s,t),t}function V(t,e){let{coords:i,lengths:n,stride:r,hasZ:o,hasM:l}=t;if(!i.length)return void(n.length=0);(0,s.Lw)(e);let{originPosition:h,scale:a,translate:u}=e,f=$;f.originPosition=h;let c=f.scale;c[0]=a[0]??1,c[1]=-(a[1]??1),c[2]=a[2]??1,c[3]=a[3]??1;let d=f.translate;if(d[0]=u[0]??0,d[1]=u[1]??0,d[2]=u[2]??0,d[3]=u[3]??0,l&&!o&&(c[2]=c[3],d[2]=d[3]),!n.length){for(let t=0;t<r;++t)i[t]=x(f,i[t],t);return void(n.length=0)}let y=0;for(let t=0;t<n.length;t++){let e=n[t];n[t]=e;for(let t=0;t<r;++t)i[y+t]=x(f,i[y+t],t);let s=i[y],o=i[y+1];y+=r;for(let t=1;t<e;t++,y+=r){s+=i[y]*c[0],o+=i[y+1]*c[1],i[y]=s,i[y+1]=o;for(let t=2;t<r;++t)i[y+t]=x(f,i[y+t],t)}}}function J(t,e,i,n){let r=0,s=t[n*e],o=t[n*(e+1)];for(let l=1;l<i;l++){let i=s+t[n*(e+l)],h=o+t[n*(e+l)+1],a=(i-s)*(h+o);s=i,o=h,r+=a}return.5*r}function U(t,e){let{coords:i,lengths:n}=t,r=0,s=0;for(let t=0;t<n.length;t++){let o=n[t];s+=J(i,r,o,e),r+=o}return Math.abs(s)}function W(t,e=0){t.length!==e&&(t.length=e)}const $={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},85113(t,e,i){i.d(e,{BM:()=>T,bd:()=>P,sO:()=>I,xD:()=>f});var n=i(67482),r=i(49186),s=i(21325),o=i(90708),l=i(43334),h=i(92722),a=i(30524);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function f(t){return u[t]}function*c(t){switch(t.type){case"Feature":yield t;break;case"FeatureCollection":for(let e of t.features)e&&(yield e)}}function*d(t){if(t)switch(t.type){case"Point":yield t.coordinates;break;case"LineString":case"MultiPoint":yield*t.coordinates;break;case"MultiLineString":case"Polygon":for(let e of t.coordinates)yield*e;break;case"MultiPolygon":for(let e of t.coordinates)for(let t of e)yield*t}}function y(t){for(let e of t)if(e.length>2)return!0;return!1}function m(t){let e=0;for(let i=0;i<t.length;i++){let n=t[i],r=t[(i+1)%t.length];e+=n[0]*r[1]-r[0]*n[1]}return e<=0}function p(t){let e=t[0],i=t[t.length-1];(e[0]!==i[0]||e[1]!==i[1]||e[2]!==i[2])&&t.push(e)}function _(t,e){let{coordinates:i,type:n}=t,r=e.hasZ??!1;switch(n){case"Point":{let t=r||3!==i.length?r&&2===i.length?[...i,0]:[...i]:i.slice(0,2);return new h.A([],t,r,!1)}case"LineString":return(0,o.Ap)({paths:[i],hasZ:!0},r,!1);case"MultiLineString":return(0,o.Ap)({paths:i,hasZ:!0},r,!1);case"MultiPoint":return(0,o.PR)({points:i,hasZ:!0},r,!1);case"Polygon":case"MultiPolygon":{let t=new h.A([],[],r,!1);for(let e of"Polygon"===n?[i]:i){g(t,e[0],r);for(let i=1;i<e.length;i++)x(t,e[i],r)}return t}}}function g(t,e,i){p(e),function(t){return!m(t)}(e)?w(t,e,i):M(t,e,i)}function x(t,e,i){p(e),function(t){return m(t)}(e)?w(t,e,i):M(t,e,i)}function M(t,e,i){for(let n of e)b(t,n,i);t.lengths.push(e.length)}function w(t,e,i){for(let n=e.length-1;n>=0;n--)b(t,e[n],i);t.lengths.push(e.length)}function b(t,[e,i,n],r){t.coords.push(e,i),r&&t.coords.push(n||0)}function v(t){switch(typeof t){case"string":return(0,n.C)(t)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function I(t,e=4326){if(!t)throw new r.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==t.type&&"FeatureCollection"!==t.type)throw new r.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:t});let{crs:i}=t;if(!i)return;let n="string"==typeof i?i:"name"===i.type?i.properties.name:"EPSG"===i.type?i.properties.code:null,o=(0,s.oT)({wkid:e})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${e})$`,"i");if(!n||!o.test(n))throw new r.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:i})}function T(t,e={}){let i,n=[],r=new Set,s=new Set,o=!1,l=null,h=!1,{geometryType:u=null}=e;for(let e of c(t)){let{geometry:t,properties:c,id:m}=e;if((!t||(u||=f(t.type),f(t.type)===u))&&(o||=y(d(t)),h||(h=null!=m,h&&(i=typeof m,c&&(l=Object.keys(c).filter(t=>c[t]===m)))),c&&l&&h&&null!=m&&(l.length>1?l=l.filter(t=>c[t]===m):1===l.length&&(l=c[l[0]]===m?l:[])),c))for(let t in c){if(r.has(t))continue;let e=v(c[t]);if("unknown"===e){s.add(t);continue}s.delete(t),r.add(t);let i=(0,a.rS)(t);i&&n.push({name:i,alias:t,type:e})}}let m=(0,a.rS)(1===l?.length&&l[0]||null)??void 0;if(m)for(let t of n)if(t.name===m&&(0,a.WA)(t)){t.type="esriFieldTypeOID";break}return{fields:n,geometryType:u,hasZ:o,objectIdFieldName:m,objectIdFieldType:i,unknownFields:Array.from(s)}}function P(t,e){return Array.from(function*(t,e={}){let{geometryType:i,objectIdField:n}=e;for(let r of t){let{geometry:t,properties:s,id:o}=r;if(t&&f(t.type)!==i)continue;let h,a=s||{};n&&(h=a[n],null!=o&&!h&&(a[n]=h=o)),yield new l.Om(t&&_(t,e),a,null,h)}}(c(t),e))}},14289(t,e,i){i.r(e),i.d(e,{default:()=>P});var n=i(56507),r=i(17676),s=i(19419),o=i(21325),l=i(6774),h=i(90708),a=i(92722),u=i(83221),f=i(31464),c=i(85113);const d=new TextEncoder;class y{constructor(){this._bytes=[]}finish(){return new Uint8Array(this._bytes)}writeBooleanField(t,e){this._writeTag(t,0),this.writeVarint(+!!e)}writeDoubleField(t,e){this._writeTag(t,1);let i=new ArrayBuffer(8);new DataView(i).setFloat64(0,e,!0),this._writeBytes(new Uint8Array(i))}writeMessage(t,e,i){this._writeTag(t,2);let n=this._bytes.length;for(let t=0;t<5;t++)this._bytes.push(0);let r=this._bytes.length;e(i,this),this._writeMessageLength(n,this._bytes.length-r)}writeStringField(t,e){let i=d.encode(e);this._writeTag(t,2),this.writeVarint(i.byteLength),this._writeBytes(i)}writeSVarintField(t,e){this._writeTag(t,0),this.writeVarint(e<0?2*-e-1:2*e)}writeVarint(t){for(;t>127;)this._bytes.push(127&t|128),t=Math.floor(t/128);this._bytes.push(t)}writeVarintField(t,e){this._writeTag(t,0),this.writeVarint(e)}_writeBytes(t){for(let e of t)this._bytes.push(e)}_writeMessageLength(t,e){let i=0;for(;e>127;)this._bytes[t+i++]=127&e|128,e=Math.floor(e/128);this._bytes[t+i++]=e,this._bytes.splice(t+i,5-i)}_writeTag(t,e){this.writeVarint(t<<3|e)}}function m(t,e,i){let n=new y;return n.writeMessage(3,p,{cursor:e,extent:i,keyIndices:new Map,keys:[],name:t,valueIndices:new Map,values:[]}),Uint8Array.from(n.finish()).buffer}function p(t,e){for(e.writeVarintField(15,1),e.writeStringField(1,t.name),e.writeVarintField(5,t.extent);t.cursor.next();)e.writeMessage(2,_,t);for(let i of t.keys)e.writeStringField(3,i);for(let i of t.values)e.writeMessage(4,M,i)}function _(t,e){let i=t.cursor.getId();"number"==typeof i&&e.writeVarintField(1,i),e.writeMessage(2,g,t),e.writeVarintField(3,t.cursor.getType()),e.writeMessage(4,x,t.cursor)}function g(t,e){let i=t.cursor.getAttributes();if(i)for(let n of Object.keys(i)){let r=w(i[n]);if(null==r)continue;let s=t.keyIndices.get(n);s??(s=t.keys.length,t.keyIndices.set(n,s),t.keys.push(n));let o=`${typeof r}:${r}`,l=t.valueIndices.get(o);l??(l=t.values.length,t.valueIndices.set(o,l),t.values.push(r)),e.writeVarint(s),e.writeVarint(l)}}function x(t,e){let i=t.getType(),n=0,r=0;for(let s=0;s<t.getPathCount();s++){let o=t.getPathLength(s),l=1===i?o:1;e.writeVarint(b(1,l));let h=3===i?o-1:o;for(let o=0;o<h;o++){1===o&&1!==i&&e.writeVarint(b(2,h-1));let l=t.getX(s,o),a=t.getY(s,o);e.writeVarint(v(l-n)),e.writeVarint(v(a-r)),n=l,r=a}3===i&&e.writeVarint(b(7,1))}}function M(t,e){"string"==typeof t?e.writeStringField(1,t):"boolean"==typeof t?e.writeBooleanField(7,t):Number.isInteger(t)?t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t):e.writeDoubleField(3,t)}function w(t){return"string"==typeof t||"boolean"==typeof t||"number"==typeof t?t:null==t?null:JSON.stringify(t)??null}function b(t,e){return(e<<3)+(7&t)}function v(t){return t<<1^t>>31}const I=4096,T=[{geometryType:"esriGeometryPolygon",vectorTileGeometryType:3},{geometryType:"esriGeometryPolyline",vectorTileGeometryType:2},{geometryType:"esriGeometryPoint",vectorTileGeometryType:1},{geometryType:"esriGeometryMultipoint",vectorTileGeometryType:1}];class P{constructor(){this._buffer=128,this._featureIds=new Map,this._name="",this._stores=[],this._webMercatorStores=null,this._tolerance=.375}destroy(){for(let{store:t}of this._stores)t.clear();for(let{store:t}of this._webMercatorStores??[])t.clear();this._webMercatorStores=null,this._featureIds.clear(),this._stores.length=0}async initialize({definition:t,name:e,requestOptions:i},s={}){if(null==t.data)throw Error(`GeoJSON source '${e}' must define a data property.`);if(!0===t.lineMetrics)throw Error("GeoJSON lineMetrics are not supported.");if(t.promoteId&&t.generateId)throw Error("GeoJSON promoteId and generateId cannot be used together.");let o="string"==typeof t.data?(await(0,n.A)(t.data,{...i,responseType:"json",signal:s.signal})).data:t.data;(0,r.Te)(s),(0,c.sO)(o),this.destroy(),this._buffer=t.buffer??128,this._name=e,this._tolerance=t.tolerance??.375;let l=0;for(let{geometryType:e,vectorTileGeometryType:i}of T){let n=(0,c.bd)(o,{geometryType:e,hasZ:!1}),r=A(o,e,t);if(0===n.length)continue;let s=new u.A({geometryType:e,hasM:!1,hasZ:!1}),h=[];for(let[t,e]of n.entries())e.geometry&&(e.objectId=l++,this._featureIds.set(e.objectId,r[t]??null),h.push(e));h.length>0&&(s.addMany(h),this._stores.push({geometryType:e,store:s,vectorTileGeometryType:i}))}return(0,r.Te)(s),{geometryTypes:["polygon","line","point"].filter(t=>this._stores.some(({vectorTileGeometryType:e})=>e===function(t){switch(t){case"polygon":return 3;case"line":return 2;case"point":return 1}}(t)))}}requestTile(t,e={}){(0,r.Te)(e);let i=this._getTileFeatures(t),n=i.length>0?m(this._name,new S(i),I):new ArrayBuffer(0);return(0,r.Te)(e),{result:n,transferList:[n]}}_getStores(t){return(0,o.K8)(t)?(this._webMercatorStores||=this._stores.map(({geometryType:t,store:e,vectorTileGeometryType:i})=>{let n=new u.A({geometryType:t,hasM:!1,hasZ:!1});return e.forEach(e=>{let i=function(t,e){return t?(0,h.Ux)((0,f.Cv)((0,h.zv)(t,e,!1,!1),o.KK,o.ch))??null:null}(e.geometry,t);if(i){let t=e.weakClone();t.geometry=i,n.add(t)}}),{geometryType:t,store:n,vectorTileGeometryType:i}}),this._webMercatorStores):this._stores}_getTileFeatures({col:t,row:e,origin:i,tileSpan:n,spatialReference:r}){let l=i.x+t*n,h=i.y-e*n,{valid:a}=(0,o.Vp)(r),u=a[1]-a[0],f=this._getStores(r),c=n/I,d=this._buffer*c,y=this._tolerance*c,m=[];for(let t of[-u,0,u]){let e=(0,s.fA)(l-d-t,h-n-d,l+n+d-t,h+d),i={scale:[c,-c,1,1],translate:[l-t,h,0,0]};for(let{geometryType:t,store:n,vectorTileGeometryType:r}of f)n.forEachInBounds(e,e=>{let n=B(e,t,r,i,y,this._buffer);n&&m.push({attributes:e.attributes,geometry:n,id:this._featureIds.get(e.objectId),type:r})})}return m}}function A(t,e,i){let n=[],r="FeatureCollection"===t.type?t.features:[t];for(let t=0;t<r.length;t++){let s=r[t];if(!s.geometry||(0,c.xD)(s.geometry.type)!==e)continue;let o=i.promoteId?s.properties?.[i.promoteId]:!0===i.generateId?t:s.id;n.push("number"==typeof o||"string"==typeof o?o:null)}return n}function B(t,e,i,n,r,s){if(!t.geometry)return null;let o=r>0?(0,h.kz)(t.geometry,e,r,!1,!1):t.geometry;return function(t,e,i){if(!t)return null;let n=new l.O3(0,0,0,8,i/8);if(n.setExtent(I),n.reset(e),1===e)for(let e=0;e<t.size;e++){let i=e*t.stride;n.moveTo(t.coords[i],t.coords[i+1])}else{let i=0;for(let r of t.lengths){n.moveTo(t.coords[i],t.coords[i+1]);for(let e=1;e<r;e++){let r=i+e*t.stride;n.lineTo(t.coords[r],t.coords[r+1])}3===e&&n.close(),i+=r*t.stride}}let r=n.result();if(!r)return null;let s=1===e?[r.length]:r.map(t=>t.length),o=[];for(let t of r)for(let e of t)o.push(e.x,e.y);return new a.A(s,o)}((0,h.Nl)(o,e,n,!1,!1,!0),i,s)}class S{constructor(t){this._features=t,this._index=-1,this._pathOffsets=[]}get _feature(){return this._features[this._index]}destroy(){}getAttributes(){return this._feature.attributes}getId(){return this._feature.id}getPathCount(){return 1===this._feature.type?1:this._feature.geometry.lengths.length}getPathLength(t){return 1===this._feature.type?this._feature.geometry.size:this._feature.geometry.lengths[t]}getType(){return this._feature.type}getX(t,e){return this._feature.geometry.coords[this._getCoordinateIndex(t,e)]}getY(t,e){return this._feature.geometry.coords[this._getCoordinateIndex(t,e)+1]}next(){return!(++this._index>=this._features.length||(this._pathOffsets=function(t){let e=Array(t.lengths.length),i=0;for(let n=0;n<t.lengths.length;n++)e[n]=i,i+=t.lengths[n];return e}(this._feature.geometry),0))}_getCoordinateIndex(t,e){return(1===this._feature.type?e:this._pathOffsets[t]+e)*this._feature.geometry.stride}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2772,6451],{80200(e,t,i){i.d(t,{d:()=>c});const n={Base64:0,Hex:1,String:2,Raw:3};function s(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function r(e,t,i,n,r,o){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(n,o)),r),i)}function o(e,t,i,n,s,o,l){return r(t&i|~t&n,e,t,s,o,l)}function l(e,t,i,n,s,o,l){return r(t&n|i&~n,e,t,s,o,l)}function a(e,t,i,n,s,o,l){return r(t^i^n,e,t,s,o,l)}function h(e,t,i,n,s,o,l){return r(i^(t|~n),e,t,s,o,l)}function u(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,n=-271733879,r=-1732584194,u=271733878;for(let t=0;t<e.length;t+=16){let c=i,p=n,f=r,m=u;i=o(i,n,r,u,e[t],7,-680876936),u=o(u,i,n,r,e[t+1],12,-389564586),r=o(r,u,i,n,e[t+2],17,606105819),n=o(n,r,u,i,e[t+3],22,-1044525330),i=o(i,n,r,u,e[t+4],7,-176418897),u=o(u,i,n,r,e[t+5],12,1200080426),r=o(r,u,i,n,e[t+6],17,-1473231341),n=o(n,r,u,i,e[t+7],22,-45705983),i=o(i,n,r,u,e[t+8],7,1770035416),u=o(u,i,n,r,e[t+9],12,-1958414417),r=o(r,u,i,n,e[t+10],17,-42063),n=o(n,r,u,i,e[t+11],22,-1990404162),i=o(i,n,r,u,e[t+12],7,1804603682),u=o(u,i,n,r,e[t+13],12,-40341101),r=o(r,u,i,n,e[t+14],17,-1502002290),n=o(n,r,u,i,e[t+15],22,1236535329),i=l(i,n,r,u,e[t+1],5,-165796510),u=l(u,i,n,r,e[t+6],9,-1069501632),r=l(r,u,i,n,e[t+11],14,643717713),n=l(n,r,u,i,e[t],20,-373897302),i=l(i,n,r,u,e[t+5],5,-701558691),u=l(u,i,n,r,e[t+10],9,38016083),r=l(r,u,i,n,e[t+15],14,-660478335),n=l(n,r,u,i,e[t+4],20,-405537848),i=l(i,n,r,u,e[t+9],5,568446438),u=l(u,i,n,r,e[t+14],9,-1019803690),r=l(r,u,i,n,e[t+3],14,-187363961),n=l(n,r,u,i,e[t+8],20,1163531501),i=l(i,n,r,u,e[t+13],5,-1444681467),u=l(u,i,n,r,e[t+2],9,-51403784),r=l(r,u,i,n,e[t+7],14,1735328473),n=l(n,r,u,i,e[t+12],20,-1926607734),i=a(i,n,r,u,e[t+5],4,-378558),u=a(u,i,n,r,e[t+8],11,-2022574463),r=a(r,u,i,n,e[t+11],16,1839030562),n=a(n,r,u,i,e[t+14],23,-35309556),i=a(i,n,r,u,e[t+1],4,-1530992060),u=a(u,i,n,r,e[t+4],11,1272893353),r=a(r,u,i,n,e[t+7],16,-155497632),n=a(n,r,u,i,e[t+10],23,-1094730640),i=a(i,n,r,u,e[t+13],4,681279174),u=a(u,i,n,r,e[t],11,-358537222),r=a(r,u,i,n,e[t+3],16,-722521979),n=a(n,r,u,i,e[t+6],23,76029189),i=a(i,n,r,u,e[t+9],4,-640364487),u=a(u,i,n,r,e[t+12],11,-421815835),r=a(r,u,i,n,e[t+15],16,530742520),n=a(n,r,u,i,e[t+2],23,-995338651),i=h(i,n,r,u,e[t],6,-198630844),u=h(u,i,n,r,e[t+7],10,1126891415),r=h(r,u,i,n,e[t+14],15,-1416354905),n=h(n,r,u,i,e[t+5],21,-57434055),i=h(i,n,r,u,e[t+12],6,1700485571),u=h(u,i,n,r,e[t+3],10,-1894986606),r=h(r,u,i,n,e[t+10],15,-1051523),n=h(n,r,u,i,e[t+1],21,-2054922799),i=h(i,n,r,u,e[t+8],6,1873313359),u=h(u,i,n,r,e[t+15],10,-30611744),r=h(r,u,i,n,e[t+6],15,-1560198380),n=h(n,r,u,i,e[t+13],21,1309151649),i=h(i,n,r,u,e[t+4],6,-145523070),u=h(u,i,n,r,e[t+11],10,-1120210379),r=h(r,u,i,n,e[t+2],15,718787259),n=h(n,r,u,i,e[t+9],21,-343485551),i=s(i,c),n=s(n,p),r=s(r,f),u=s(u,m)}return[i,n,r,u]}function c(e,t=n.Hex){let i=t||n.Base64,s=u(function(e){let t=[];for(let i=0,n=8*e.length;i<n;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case n.Raw:return s;case n.Hex:return function(e){let t="0123456789abcdef",i=[];for(let n=0,s=4*e.length;n<s;n++)i.push(t.charAt(e[n>>2]>>n%4*8+4&15)+t.charAt(e[n>>2]>>n%4*8&15));return i.join("")}(s);case n.String:return function(e){let t=[];for(let i=0,n=32*e.length;i<n;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(s);case n.Base64:return function(e){let t=[];for(let i=0,n=4*e.length;i<n;i+=3){let n=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let s=0;s<4;s++)8*i+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-s)&63))}return t.join("")}(s)}}i.d(t,["T",0,n])},87024(e,t,i){i.d(t,{P:()=>f});var n=i(49186),s=i(80200),r=i(76553),o=i(84952),l=i(13069),a=i(96156),h=i(35666),u=i(10107),c=i(85648),p=i(97159);function f(e){let t=e?.origins??[void 0];return(i,n)=>{let s=function(e,t,i){if("resource"===e?.type)return function(e,t,i){let n=(0,a.z4)(t,i);return{type:String,read:(e,t,i)=>{let s=(0,p.r)(e,t,i);return n.type===String?s:"function"==typeof n.type?new n.type({url:s}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(t,s,l,a){if(!a?.resources)return"string"==typeof t?void(s[l]=(0,p.t)(t,a)):void(s[l]=t.write({},a));let u=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),f=(0,p.t)(u,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),y=n.type!==String&&(!(0,r.H)(this)||a?.origin&&this.originIdOf(i)>(0,h.aB)(a.origin)),_={object:this,propertyName:i,value:t,targetUrl:f,dest:s,targetPropertyName:l,context:a,params:e};a?.portalItem&&f&&!(0,o.oP)(f)?y&&e?.contentAddressed?m(_):y?function(e){let{context:t,targetUrl:i,params:n,value:s,dest:r,targetPropertyName:l}=e;if(!t.portalItem)return;let a=t.portalItem.resourceFromPath(i),h=g(s,i,t),u=(0,c.n)(h),p=(0,o.Zo)(a.path),f=n?.compress??!1;u===p?(t.resources&&d({...e,resource:a,content:h,compress:f,updates:t.resources.toUpdate}),r[l]=i):m(e)}(_):function({context:e,targetUrl:t,dest:i,targetPropertyName:n}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),i[n]=t)}(_):a?.portalItem&&(null==f||null!=(0,p.i)(f)||(0,o.w8)(f)||y)?m(_):s[l]=f}}}}(e,t,i);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{let{read:e,write:t}=p.b;return{read:e,write:t}}}}(e,i,n);for(let e of t){let t=(0,u.rM)(i,e,n);for(let e in s)t[e]=s[e]}}}function m(e){let{targetUrl:t,params:i,value:r,context:a,dest:h,targetPropertyName:u}=e;if(!a.portalItem)return;let f=(0,p.p)(t),m=g(r,t,a);if(i?.contentAddressed&&"json"!==m.type)return void a.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${m.type} with content addressing. Content addressing is only supported for json resources.`,{content:m}));let y=i?.contentAddressed&&"json"===m.type?(0,s.d)(m.jsonString):f?.filename??(0,l.lk)(),_=i?.prefix??f?.prefix,x=(0,o.fj)(_,y),v=`${x}.${(0,c.n)(m)}`;if(i?.contentAddressed&&a.resources&&"json"===m.type){let e=a.resources.toKeep.find(({resource:e})=>e.path===v)??a.resources.toAdd.find(({resource:e})=>e.path===v);if(e)return void(h[u]=e.resource.itemRelativeUrl)}let C=a.portalItem.resourceFromPath(v);(0,o.w8)(t)&&a.resources&&a.resources.pendingOperations.push((0,o.tk)(t).then(e=>{C.path=`${x}.${(0,c.n)({type:"blob",blob:e})}`,h[u]=C.itemRelativeUrl}).catch(()=>{}));let w=i?.compress??!1;a.resources&&d({...e,resource:C,content:m,compress:w,updates:a.resources.toAdd}),h[u]=C.itemRelativeUrl}function d({object:e,propertyName:t,updates:i,resource:n,content:s,compress:r}){i.push({resource:n,content:s,compress:r,finish:i=>{!function(e,t,i){"string"==typeof e[t]?e[t]=i.url:e[t].url=i.url}(e,t,i)}})}function g(e,t,i){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(i))}}},83027(e,t,i){const n=i(29953).ho;i.d(t,["h",0,n])},35982(e,t,i){i.d(t,{B:()=>u});var n=i(4576),s=i(71511),r=i(36563),o=i(53966),l=i(97768),a=i(17676),h=i(83027);class u{constructor(e,t,i,n,s={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,h.h)(e,{...s,schedule:n}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{s.hasInitialize&&e.invoke("initialize",{}).catch(()=>{});for(let t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){let i=new c(e,t);return this._listeners.push(i),this._connectListener(i),(0,r.hA)(()=>{(0,n.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,l.xt)(this._onClientConnectedHandle),this._thread&&=(this._thread.close(),null),this._promise=null;for(let e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,n){return this._invokeMethod(e,[t],i,n)}invokeMethodWithArgs(e,t,i,n){return this._invokeMethod(e,t,i,n)}_invokeMethod(e,t,i,n){if(this._thread){let s=this._transferLists[e],r=s?s(...t):[];return this._thread.apply(e,t,{transferList:r,signal:i,jobPriority:n})}return this._promise?this._promise.then(()=>((0,a.Te)(i),this._invokeMethod(e,t,i,n))):Promise.reject((0,a.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(p):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,a.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class c{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new s.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function p(){}},89056(e,t,i){i.d(t,{b3:()=>c,jZ:()=>u});var n=i(12195),s=i(19419),r=i(537),o=i(95108),l=i(60408),a=i(80754),h=i(21325);function u(e){return p(e,!0)}function c(e){return p(e,!1)}function p(e,t){if(null==e)return null;let i=e.spatialReference,s=(0,h.Vp)(i),o=(0,n.W)(e)?e.toJSON():e;if(!s)return o;let u=(0,h.K8)(i)?102100:4326,c=a.j7[u].maxX,p=a.j7[u].minX;if((0,l.fT)(o))return m(o,c,p);if((0,l.U9)(o))return o.points=o.points.map(e=>m(e,c,p)),o;if((0,l.ZC)(o))return f(o,s);if((0,l.Bi)(o)||(0,l.Rg)(o)){let e=(0,r.Rg)(v,o),i={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},n=(0,a.kd)(i.xmin,p),s=2*c*n,l=0===s?o:(0,a.kS)(o,s);return i.xmin+=s,i.xmax+=s,i.xmax>c?_(l,c,t):i.xmin<p?_(l,p,t):l}return o}function f(e,t){if(!t)return e;let i=function(e,t){let i=[],{ymin:n,ymax:s,xmin:r,xmax:o}=e,l=e.xmax-e.xmin,[a,h]=t.valid,{x:u,frameId:c}=d(e.xmin,t),{x:p,frameId:f}=d(e.xmax,t),m=u===p&&l>0;if(l>2*h){let e={xmin:r<o?u:p,ymin:n,xmax:h,ymax:s},t={xmin:a,ymin:n,xmax:r<o?p:u,ymax:s},l={xmin:0,ymin:n,xmax:h,ymax:s},m={xmin:a,ymin:n,xmax:0,ymax:s},d=[],y=[];g(e,l)&&d.push(c),g(e,m)&&y.push(c),g(t,l)&&d.push(f),g(t,m)&&y.push(f);for(let e=c+1;e<f;e++)d.push(e),y.push(e);i.push(new x(e,[c]),new x(t,[f]),new x(l,d),new x(m,y))}else u>p||m?i.push(new x({xmin:u,ymin:n,xmax:h,ymax:s},[c]),new x({xmin:a,ymin:n,xmax:p,ymax:s},[f])):i.push(new x({xmin:u,ymin:n,xmax:p,ymax:s},[c]));return i}(e,t).map(e=>e.extent);return i.length<2?i[0]||e:i.length>2?(e.xmin=t.valid[0],e.xmax=t.valid[1],e):{rings:i.map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}}function m(e,t,i){if(Array.isArray(e)){let n=e[0];if(n>t){let i=(0,a.kd)(n,t);e[0]=n+-2*t*i}else if(n<i){let t=(0,a.kd)(n,i);e[0]=n+-2*i*t}}else{let n=e.x;if(n>t){let i=(0,a.kd)(n,t);e.x+=-2*t*i}else if(n<i){let t=(0,a.kd)(n,i);e.x+=-2*i*t}}return e}function d(e,t){let i,[n,s]=t.valid,r=2*s,o=0;return e>s?(i=Math.ceil(Math.abs(e-s)/r),e-=i*r,o=i):e<n&&(i=Math.ceil(Math.abs(e-n)/r),e+=i*r,o=-i),{x:e,frameId:o}}function g(e,t){let{xmin:i,ymin:n,xmax:s,ymax:r}=t;return y(e,i,n)&&y(e,i,r)&&y(e,s,r)&&y(e,s,n)}function y(e,t,i){return t>=e.xmin&&t<=e.xmax&&i>=e.ymin&&i<=e.ymax}function _(e,t,i=!0){let n=!(0,l.Rg)(e);if(n&&(0,o.m3)(e),i)return(new C).cut(e,t);let s=n?e.rings:e.paths,r=n?4:2,a=s.length,h=-2*t;for(let e=0;e<a;e++){let t=s[e];if(t&&t.length>=r){let e=[];for(let[i,...n]of t)e.push([i+h,...n]);s.push(e)}}return n?e.rings=s:e.paths=s,e}class x{constructor(e,t){this.extent=e,this.frameIds=t}}const v=(0,s.vt)();class C{constructor(){this._linesIn=[],this._linesOut=[]}cut(e,t){let i;if(this._xCut=t,e.rings)this._closed=!0,i=e.rings,this._minPts=4;else{if(!e.paths)return null;this._closed=!1,i=e.paths,this._minPts=2}for(let e of i){if(!e||e.length<this._minPts)continue;let t=!0;for(let i of e)t?(this.moveTo(i),t=!1):this.lineTo(i);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),i=[];for(let e of this._linesIn)e&&e.length>=this._minPts&&i.push(e);let n=-2*this._xCut;for(let e of this._linesOut)if(e&&e.length>=this._minPts){for(let t of e)t[0]+=n;i.push(e)}return this._closed?e.rings=i:e.paths=i,e}moveTo(e){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(e[0]),this._moveTo(e,this._prevSide),this._prevPt=e,this._firstPt=e}lineTo(e){let t=this._side(e[0]);if(t*this._prevSide===-1){let i=this._intersect(this._prevPt,e);this._lineTo(i,0),this._prevSide=0,this._lineTo(e,t)}else this._lineTo(e,t);this._prevSide=t,this._prevPt=e}close(){let e=this._firstPt,t=this._prevPt;(e[0]!==t[0]||e[1]!==t[1])&&this.lineTo(e),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(e,t){this._closed?(this._lineIn.push(w(e,t<=0?e[0]:this._xCut)),this._lineOut.push(w(e,t>=0?e[0]:this._xCut))):(t<=0&&this._lineIn.push(e.slice()),t>=0&&this._lineOut.push(e.slice()))}_lineTo(e,t){this._closed?(S(this._lineIn,e,t<=0?e[0]:this._xCut),S(this._lineOut,e,t>=0?e[0]:this._xCut)):t<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(e.slice())):t>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(e.slice())):this._prevSide<0?(this._lineIn.push(e.slice()),this._lineOut.push(e.slice())):this._prevSide>0&&(this._lineOut.push(e.slice()),this._lineIn.push(e.slice()))}_checkClosingPt(e){let t=e.length;t>3&&e[0][0]===this._xCut&&e[t-2][0]===this._xCut&&e[1][0]===this._xCut&&(e[0]=e[t-2].slice(),e.pop())}_side(e){return e<this._xCut?-1:+(e>this._xCut)}_intersect(e,t){let i=(this._xCut-e[0])/(t[0]-e[0]),n=[this._xCut,e[1]+i*(t[1]-e[1])],s=Math.min(e.length,t.length);for(let r=2;r<s;r++)n.push(e[r]+i*(t[r]-e[r]));return n}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function w(e,t){let i=e.slice();return i[0]=t,i}function S(e,t,i){let n=e.length;n>1&&e[n-1][0]===i&&e[n-2][0]===i?e[n-1]=w(t,i):e.push(w(t,i))}},58325(e,t,i){i.d(t,{A:()=>S});var n,s=i(32198),r=i(56507),o=i(7762),l=i(25482),a=i(84952),h=i(91429),u=i(4718),c=i(67076),p=i(87024),f=i(39829),m=i(99917),d=i(16930),g=i(21325),y=i(88546),_=i(72772),x=i(98697),v=i(43937);let C=n=class extends l.o{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,i,n){if(this._needWGS84Conversion(n))this._doWGS84Conversion(t,i,n);else if(n.layer?.spatialReference&&!n.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,m.canProjectWithoutEngine)(e.spatialReference,n.layer.spatialReference))return void(n?.messages&&n.messages.push(new c.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:n.layer.spatialReference,context:n})));let s=new f.A;(0,m.projectPolygon)(e,s,n.layer.spatialReference),t[i]=s.toJSON(n)}else t[i]=e.toJSON(n)}_needWGS84Conversion(e){if("integrated-mesh-3dtiles"===e.layer?.type){let t=e.layer;return!t.esriCrsSpatialReference||!(0,g.aI)(t.esriCrsSpatialReference,this.geometry.spatialReference)}return!1}_doWGS84Conversion(e,t,i){let n=!0;if((0,_.isInitialized)()){let s=[this],r=(0,x.Ir)(null,s,d.A.WGS84);if(r.length>1){let s=(0,_.switchMeshModificationPolygonVCSSync)({modifications:r,inVCS:5773});if(s.success&&s.modifications){let r=[this.clone()];(0,x.H1)(s.modifications,r),1===r.length&&r[0].geometry&&(r[0].geometry.spatialReference=y.Zx,e[t]=r[0].geometry.toJSON(i),n=!1)}}}n&&i?.messages&&i.messages.push(new c.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:this.geometry.spatialReference,context:i}))}clone(){return new n({geometry:(0,u.o8)(this.geometry),type:this.type})}};var w;(0,s.Cg)([(0,h.MZ)({type:f.A}),(0,p.P)()],C.prototype,"geometry",void 0),(0,s.Cg)([(0,v.K)(["web-scene","portal-item"],"geometry")],C.prototype,"writeGeometry",null),(0,s.Cg)([(0,h.MZ)({type:["clip","mask","replace"],nonNullable:!0}),(0,p.P)()],C.prototype,"type",void 0),C=n=(0,s.Cg)([(0,h.$K)("esri.layers.support.SceneModification")],C);let S=w=class extends((0,l.T)(o.A.ofType(C))){constructor(e){super(e),this.url=null}clone(){return new w({url:this.url,items:this.items.map(e=>e.clone())})}toJSON(e){return this.toArray().map(t=>t.toJSON(e)).filter(e=>!!e.geometry)}static fromJSON(e,t){let i=new w;for(let n of e)i.add(C.fromJSON(n,t));return i}static async fromUrl(e,t,i,n=!1){let s={url:(0,a.An)(e),origin:"service"},o=await(0,r.A)(e,{responseType:"json",signal:i?.signal}),l=t.toJSON(),h=[];for(let e of o.data){let t=l;n&&e.geometry.spatialReference&&(t=e.geometry.spatialReference),h.push(C.fromJSON({...e,geometry:{spatialReference:t,...e.geometry}},s))}return new w({url:e,items:h})}};(0,s.Cg)([(0,h.MZ)({type:String})],S.prototype,"url",void 0),S=w=(0,s.Cg)([(0,h.$K)("esri.layers.support.SceneModifications")],S)},85648(e,t,i){i.d(t,{n:()=>s});var n=i(84952);function s(e){return r[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){let t=(0,n.Zo)(e);return a[t]||o}(e.url)}(e)]||l}const r={},o="text/plain",l=r[o],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(let e in a)r[a[e]]=e},80215(e,t,i){i.d(t,{Q:()=>s});const n=Symbol("GroundInstance");function s(e){return"object"==typeof e&&!!e&&n in e}},72772(e,t,i){i.r(t),i.d(t,{addSpatialReferenceInfo:()=>a,destroyWasm:()=>u,initialize:()=>c,isInitialized:()=>p,process:()=>l,switchMeshModificationPolygonVCSSync:()=>h});var n=i(2741);function s(e){return(0,n.s)(`esri/libs/lyr3d/${e}`)}i(49186),new Map;let r,o=null;async function l(e){await c();let t={status:1,error:"",jobDescJson:"",data:new Uint8Array,missingInputs:[]};if(e.inputs.length<1)return{result:t,transferList:[]};let i={ptrs:[],sizes:[]};for(let t of e.inputs){let e=o._malloc(t.byteLength);new Uint8Array(o.HEAPU8.buffer,e,t.byteLength).set(new Uint8Array(t)),i.ptrs.push(e),i.sizes.push(t.byteLength)}let n=o.process(e.jobDescJson,e.id,i,e.isMissingResourceCase);t.status=n.status,t.missingInputs=n.missingInputs.slice();let s=0===n.status&&n.data,r=2===t.status&&t.missingInputs.length>0;t.jobDescJson=n.jobDescJson.slice(),t.error=n.error.slice(),s?t.data=n.data.slice():r&&(t.originalInputs=e.inputs.slice());for(let e=0;e<i.ptrs.length;++e)o._free(i.ptrs[e]);let l=[];if(s)l.push(t.data.buffer);else if(r)for(let t of e.inputs)l.push(t);return{result:t,transferList:l}}async function a(e){await c(),o.add_spatial_reference_info(e.sr,e.isGCS,e.toMetersXY,e.toMetersZ)}function h(e){if(!o)return{success:!1,modifications:null};let t=o._malloc(8*e.modifications.length),i=new Float64Array(o.HEAPF64.buffer,t,e.modifications.length);i.set(e.modifications);let n=o.switch_mesh_modification_polygon_vcs(t,e.modifications.length,e.inVCS),s=null;return n&&(s=i.slice()),o._free(t),{success:n,modifications:s}}function u(){o&&=(o.uninitialize_lyr3d_worker_wasm(),null)}function c(){return p()?Promise.resolve():(r||=async function(){let{default:e}=await i.e(2343).then(()=>i(2343));return async function(e,t){return t({locateFile:s})}(0,e)}().then(e=>{o=e,o.initialize_lyr3d_worker_wasm(),r=null}),r)}function p(){return null!==o}},98697(e,t,i){i.d(t,{Cm:()=>f,H1:()=>x,Ir:()=>g,_b:()=>c,sQ:()=>p});var n=i(53966),s=i(15142),r=i(51850),o=i(35982),l=i(39829),a=i(99917),h=i(27993),u=i(89056);class c{constructor(e,t,i,n,s,r){this.layout=e,this.interleavedVertexData=t,this.indices=i,this.hasColors=n,this.hasModifications=s,this.positionData=r}}class p{constructor(e,t,i,n,s,r,o,l,a){this.componentOffsets=e,this.featureIds=t,this.anchorIds=i,this.anchors=n,this.transformedGeometry=s,this.globalTrafo=r,this.obb=o,this.geometryMinElevation=l,this.geometryMaxElevation=a}}class f extends o.B{constructor(e){super("SceneLayerWorker","process",{process:e=>[e.geometryBuffer],project:e=>[e.positions.buffer],transformNormals:e=>[e.normals.buffer]},e,{hasInitialize:!0}),this._schemasByContext=new Map,this._modificationsByContext=new Map}_onClientConnected(e){for(let[t,i]of this._schemasByContext)e.invoke("setLegacySchema",{context:t,jsonSchema:i}).catch(()=>{});for(let t of this._modificationsByContext.values())e.invoke("setModifications",t).catch(()=>{})}setModifications(e,t,i){let n={context:e,modifications:t,isGeodetic:i};return this._modificationsByContext.set(e,n),this.broadcast(n,"setModifications")}setLegacySchema(e,t){let i=JSON.stringify(t);return this._schemasByContext.set(e,i),this.broadcast({context:e,jsonSchema:i},"setLegacySchema")}destroyContext(e){return this._schemasByContext.delete(e),this._modificationsByContext.delete(e),this.broadcast(e,"destroyContext")}async destroyContextAndSelf(e){await this.destroyContext(e),this.destroy()}project(e,t){return this.invokeMethod("project",e,t)}transformNormals(e,t){return this.invokeMethod("transformNormals",e,t)}}const m=new s.A({deallocator:null}),d=(0,r.vt)();function g(e,t,i,s=!1){m.clear();let r=1/0,o=1/0,h=-1/0,c=-1/0,p=!1;for(let e of t){let t="clip"===e.type?2:+("mask"===e.type),f=e.geometry,d=f.spatialReference??i;if(d!==i&&!(0,a.canProjectWithoutEngine)(d,i)){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}let g=f.rings;if(d!==i){let e=y(f.rings,d,i);if(null==e){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}g=e}let x=g;if(s){let e=(0,u.jZ)(new l.A({rings:g,spatialReference:i}));null!=e&&(g=e.rings)}let v=1===x.length&&g.length>1?[...g.map(e=>[e]),x]:[g];if(v.some(e=>0===e.length||e.some(e=>e.length<3||e.some(e=>!_(e)))))n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:f});else{p||=1===t;for(let e of v){m.push(t),m.push(e.length);for(let t of e){m.push(t.length);for(let e of t){let t=e[2]??0;m.push(e[0]),m.push(e[1]),m.push(t),r=Math.min(r,e[0]),o=Math.min(o,e[1]),h=Math.max(h,e[0]),c=Math.max(c,e[1])}}}}}if(null!=e)if(p){let t=1e-4;m.push(2),m.push(2),m.push(4),m.push(r-t),m.push(o-t),m.push(0),m.push(h+t),m.push(o-t),m.push(0),m.push(h+t),m.push(c+t),m.push(0),m.push(r-t),m.push(c+t),m.push(0),m.push(4),m.push(e[0]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[3]),m.push(0),m.push(e[0]),m.push(e[3]),m.push(0)}else m.push(1),m.push(1),m.push(4),m.push(e[0]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[3]),m.push(0),m.push(e[0]),m.push(e[3]),m.push(0);m.push(3);let f=new Float64Array(m.length);for(let e=0;e<m.length;++e)f[e]=m.at(e);return f}function y(e,t,i){let n=[];for(let s of e){let e=[];for(let n of s){if(!(0,h.F)(n,t,d,i)||!_(d))return null;e.push([d[0],d[1],d[2]])}n.push(e)}return n}function _(e){return Number.isFinite(e[0])&&Number.isFinite(e[1])&&(null==e[2]||Number.isFinite(e[2]))}function x(e,t){let i=0;for(let n of t){let t=n.geometry,s=t.rings.length,r=t.rings.some(e=>e.length<3);if(0!==s&&!r){i+=1,i+=1;for(let n=0;n<t.rings.length;++n){let s=t.rings[n];i+=1;for(let r=0;r<s.length;++r){let s=[e[i+0],e[i+1],e[i+2]];i+=3,t.setPoint(n,r,s)}}}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1150,1948,2994,3093,5223,5360,6742,7992,9447,9716],{32198(e,t,r){function n(e,t,r,n){var s,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function s(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(s=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");s&&(n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}r.d(t,{Cg:()=>n,hk:()=>a,mS:()=>s}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function a(e){function t(t){e.error=e.hasError?new i(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function s(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(s,function(e){return t(e),s()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},57694(e,t,r){r.d(t,{a:()=>a,c:()=>i});var n=r(55537),s=r(83661);function i(e,t){if(!e.isEmpty())switch(e.getGeometryType()){case n.G.enumPolygon:return o(e);case n.G.enumPolyline:return h(e.getImpl());case n.G.enumLine:case n.G.enumBezier:case n.G.enumEllipticArc:return function(e){let t=e.calculateLength2D();return 0===t?e.getStartXY():e.calculateWeightedCentroid2D().mul(1/t)}(e);case n.G.enumMultiPoint:return function(e){let t=new s.K(0),r=new s.K(0),n=e.getImpl(),i=n.getAttributeStreamRef(0),a=n.getPointCount(),o=new s.P;for(let e=0;e<a;e++)i.queryPoint2D(2*e,o),t.add(o.x),r.add(o.y);let u=new s.P;return u.setCoords(t.getResult(),r.getResult()),u.divThis(a)}(e);case n.G.enumEnvelope:return e.getCenterXY();case n.G.enumPoint:return e.getXY();default:return s.P.construct(NaN,NaN)}return s.P.construct(NaN,NaN)}function a(e,t){return o(e,t)}function o(e,t=-1){let r,n,i=new s.K(0),a=new s.K(0),o=e.getImpl(),h=o.hasNonLinearSegments(),m=o.getXY(0);if(-1===t){if(n=o.calculateArea2D(),0===n)return c(e);h&&(r=o.querySegmentIterator());for(let e=0,t=o.getPathCount();e<t;e++)u(m,o,e,i,a),h&&l(m,r,i,a)}else{if(n=o.calculateRingArea2D(t),0===n)return c(e,t);h&&(r=o.querySegmentIterator(),r.resetToPath(t)),u(m,o,t,i,a),h&&l(m,r,i,a)}let f=new s.P,g=new s.P;return f.setCoords(i.getResult(),a.getResult()),g.assign(f.mul(1/n).add(m)),g}function u(e,t,r,n,i){let a=t.getPathStart(r),o=t.getPathEnd(r);if(o-a<3)return;let u=t.getAttributeStreamRef(0),l=u.readPoint2D(2*a),c=u.readPoint2D(2*(a+1));c.subThis(l);let h=new s.K(0),m=t.hasNonLinearSegments(),f=new s.P;for(let e=a+2;e<o;e++){u.queryPoint2D(2*e,f),f.subThis(l);let t=.5*f.crossProduct(c);m&&h.add(t);let r=.3333333333333333*t;n.add((c.x+f.x)*r),i.add((c.y+f.y)*r),c.setCoordsPoint2D(f)}let g=m?h.getResult():t.calculateRingArea2D(r),p=l.sub(e).mul(g);n.add(p.x),i.add(p.y)}function l(e,t,r,s){let i;for(t.nextPath()||(0,n.d)("centroid");null!==(i=t.nextCurve());){let t=i.calculateWeightedAreaCentroid2D(e);r.add(t.x),s.add(t.y)}}function c(e,t=-1){return h(e.getImpl(),t)}function h(e,t=-1){let r=-1===t?e.calculateLength2D():e.calculatePathLength2D(t);if(0===r)return function(e,t=-1){if(-1!==t)return e.getXY(e.getPathStart(t));let r=new s.K(0),n=new s.K(0);for(let t=0;t<e.getPathCount();++t){let s=e.getXY(e.getPathStart(t));r.add(s.x),n.add(s.y)}return s.P.construct(r.getResult(),n.getResult()).mul(1/e.getPathCount())}(e,t);let n=new s.K(0),i=new s.K(0),a=e.querySegmentIterator();for(-1!==t&&a.resetToPath(t);a.nextPath();){let r=a.getPathIndex(),s=e.getXY(e.getPathStart(r));for(;a.hasNextSegment();){let e=a.nextSegment(),t=e.calculateLength2D();if(0===t)continue;let r=e.calculateWeightedCentroid2D().sub(s.mul(t));n.add(r.x),i.add(r.y)}let o=s.mul(e.calculatePathLength2D(r));if(n.add(o.x),i.add(o.y),-1!==t)break}let o=new s.P;return o.setCoords(n.getResult(),i.getResult()),o.mul(1/r)}},30921(e,t,r){r.d(t,{D:()=>P,m:()=>c,s:()=>d,w:()=>y});var n=r(32198),s=r(55537),i=r(88885),a=r(39117),o=r(83661),u=r(79187),l=r(95213);function c(){return{outPoint:new o.P,index:-1,t:NaN}}function h(e,t,r){return{outPoint:e.clone(),index:t,t:r}}function m(e,t,r,n){e.outPoint.assign(t),e.index=r,e.t=n}function f(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function g(e,t,r,n){e.index=r,e.t=n,t.queryCoord2D(e.t,e.outPoint)}function p(e,t){let r=c();f(r,e),f(e,t),f(t,r)}function y(e,t,r,n,i,o){if(e.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){let t=n.nextSegment();if(0!==(0,a.K)(e,t.getEndXY(),0))return m(i,t.getEndXY(),-1,NaN),m(o,t.getEndXY(),-1,NaN),!0}n.resetToFirstPath()}if(t.getGeometryType()===s.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){let e=r.nextSegment();if(0!==(0,a.K)(t,e.getEndXY(),0))return m(i,e.getEndXY(),-1,NaN),m(o,e.getEndXY(),-1,NaN),!0}r.resetToFirstPath()}return!1}function d(e){let t=e.getPathCount(),r=(0,o.c)(e.getSegmentCount(),0),n=0;for(let s=0;s<t;++s){let t=n+e.getSegmentCountPath(s);for(let i=n,a=e.getPathStart(s);i<t;++i,++a)r[i]=a;n=t}return(0,i.s)(e.getPointCount(),r),r}function v(e,t){return!!Number.isNaN(t)||e<=t}function x(e){let t=new i.P;return t.addEnvelope(e,!1),t}class P{m_progressTracker;m_env2DgeometryA=null;m_env2DgeometryB=null;m_maxSqrDistance;m_maxDistance;m_progressCounter=0;m_bIsNearCalc;constructor(e,t){if(this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,this.m_maxDistance=Number.isNaN(this.m_maxDistance)?1/0:e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+2**-52,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,r,n){if((e.getGeometryType()!==l.P.type||t.getGeometryType()!==l.P.type)&&(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!v(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return 1/0;let s=h(new o.P,(0,o.b)(),NaN),i=h(new o.P,(0,o.b)(),NaN),a=this._ExecuteBruteForce(e,t,s,i);return v(a,this.m_maxDistance)?(null!==r&&f(r,s),null!==n&&f(n,i),a):1/0}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let r=!0;if(e.getGeometryType()!==l.P.type&&e.getGeometryType()!==l.E.type||t.getGeometryType()!==l.P.type&&t.getGeometryType()!==l.E.type||(r=!1),r){if(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}let n=h(new o.P,(0,o.b)(),NaN),s=h(new o.P,(0,o.b)(),NaN);return this._ExecuteBruteForce(e,t,n,s)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,r,n){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(e,t,r,n);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,r,n);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,r,n);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(e,t,r,n);default:return NaN}}distancePointGeometry(e,t,r,n){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(e,t,r,n);case s.G.enumMultiPoint:return this.distancePointMultipoint(e,t,r,n);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(e,t,r,n);case s.G.enumEnvelope:return this.distancePointEnvelope(e,t,r,n);default:return NaN}}distancePointPoint(e,t,r,n){let s=e.getXY(),i=t.getXY();return m(r,s,0,0),m(n,i,0,0),Math.sqrt(o.P.sqrDistance(s,i))}distancePointMultipoint(e,t,r,n){let s=e.getXY(),i=this.m_maxSqrDistance,a=i,u=!1,l=t.getPointCount(),c=new o.P;for(let e=0;e<l;++e)if(t.queryXY(e,c),a=o.P.sqrDistance(s,c),this.m_bIsNearCalc){if(a<=i)return 0}else if(!(a>i)&&(!u&&a===i||a<i)&&(i=a,m(r,s,0,0),m(n,c,e,0),u=!0,0===i))return 0;return u?Math.sqrt(i):1/0}distancePointMultipath(e,t,r,n){let i=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),l=e.getXY();if(!i&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,a.K)(t,l,0))return m(r,l,0,0),m(n,l,-1,NaN),0;t.getImpl().getAccelerators();let c=this.m_maxSqrDistance,h=c,f=-1,g=new u.Envelope2D,p=t.querySegmentIterator(),y=!1;for(;p.nextPath();)for(;p.hasNextSegment();){let e=p.nextSegment();e.queryEnvelope(g);let t=g.sqrDistance(l);if(t>c||!this.m_bIsNearCalc&&y&&t===c)continue;f=e.getClosestCoordinate(l,!1);let s=e.getCoord2D(f);if(h=o.P.sqrDistance(l,s),this.m_bIsNearCalc){if(h<=c)return 0}else{if(h>c)continue;if((!y||h<c)&&(c=h,m(r,l,0,0),m(n,s,p.getStartPointIndex(),f),y=!0,0===c))return 0}}return y?Math.sqrt(c):1/0}distancePointEnvelope(e,t,r,n){let s=e.getXY();m(r,s,0,0),m(n,s,-1,NaN);let i=t.asEnvelope2D();return i.contains(s)?0:Math.sqrt(i.sqrDistance(s,n.outPoint))}distanceMultipointGeometry(e,t,r,n){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distancePointMultipoint(t,e,n,r);return this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,r,n,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(e,t,r,n);case s.G.enumEnvelope:return this.distanceMultipointMultipath(e,x(t),r,n);default:return NaN}}distanceMultipointMultipoint(e,t,r,s,i,a){let u={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===i&&1===a){let n=Math.trunc((0,o.a)(Math.sqrt(e.getPointCount())+1,1,(0,o.i)())),i=Math.trunc((0,o.a)(Math.sqrt(t.getPointCount())+1,1,(0,o.i)()));if((n>=4||i>=4)&&this.distanceMultipointMultipoint(e,t,r,s,n,i)<=this.m_maxSqrDistance)return 0}let l=this.m_maxSqrDistance,c=[e],h=[t],f=this.swapGeometriesIfBGtA(c,h);f&&(this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),a=(0,o.s)(i,i=a),p(r,s)),(0,n.mS)(u,(0,o.m)(()=>{p(r,s),this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!f),!1);let g=c[0].getImpl(),y=h[0].getImpl(),d=g.getPointCount(),v=y.getPointCount(),x=v>1,P=!1,M=new o.P,D=new o.P;for(let e=0;e<d;e+=i){if(g.queryXY(e,M),x){let e=this.m_env2DgeometryB.sqrDistance(M);if(this.m_bIsNearCalc){if(e>l)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(M)<=l)return 0}else if(e>=l)continue}for(let t=0;t<v;t+=a){y.queryXY(t,D);let n=o.P.sqrDistance(M,D);if(this.m_bIsNearCalc){if(n<=l)return 0}else if(!(n>l||P&&n===l)&&(!P||n<l)&&(m(r,M,e,0),m(s,D,t,0),P=!0,l=n,0===l))return P?Math.sqrt(l):1/0}}return P?Math.sqrt(l):1/0}catch(e){u.error=e,u.hasError=!0}finally{(0,n.hk)(u)}}distanceMultipointMultipath(e,t,r,n){let i=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon,l=t.querySegmentIterator();l.stripAttributes();let c=new u.Envelope2D,h=new o.P,f=this.m_maxSqrDistance,g=e.getImpl(),p=g.getPointCount(),y=p>1,d=!1;for(;l.nextPath();)for(;l.hasNextSegment();){let e=l.nextSegment();if(e.queryLooseEnvelope(c),y){let e=c.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>f)continue}else if(e>f||d&&e===f)continue}for(let s=0;s<p;s++){if(g.queryXY(s,h),i&&0!==(0,a.K)(t,h,0))return m(r,h,-1,NaN),m(n,h,s,0),0;{let e=c.sqrDistance(h);if(this.m_bIsNearCalc){if(e>f)continue}else if(e>f)continue}let o=e.getClosestCoordinate(h,!1),u=e.getCoord2D(o);h.subThis(u);let p=h.sqrLength();if(this.m_bIsNearCalc){if(p<=f)return 0}else if(!(p>f)&&(!d||p<f)&&(f=p,m(r,g.getXY(s),s,0),m(n,u,l.getStartPointIndex(),o),d=!0,0===f))return 0}i=!1}return d?Math.sqrt(f):1/0}distanceEnvelopeGeometry(e,t,r,n){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(t,e,n,r);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distanceMultipointMultipath(t,x(e),n,r);return this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(x(e),t,r,n);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,r,n);default:return NaN}}distanceEnvelopeEnvelope(e,t,r,n){r.t=NaN,r.index=-1,n.t=NaN,n.index=-1;let s=e.asEnvelope2D(),i=t.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(i,r.outPoint,n.outPoint))}distanceMultipathGeometry(e,t,r,n){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distancePointMultipath(t,e,n,r);return this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distanceMultipointMultipath(t,e,n,r);return this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(e,t,r,n);case s.G.enumEnvelope:return this.distanceMultipathMultipath(e,x(t),r,n);default:return NaN}}distanceMultipathMultipath(e,t,r,s){let a={stack:[],error:void 0,hasError:!1};try{let l=[e],h=[t],m=this.swapGeometriesIfAGtB(l,h);m&&(this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),p(r,s)),(0,n.mS)(a,(0,o.m)(()=>{p(r,s),this.m_env2DgeometryB=(0,o.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!m),!1);let v=l[0],x=h[0],P=v.querySegmentIterator();P.stripAttributes();let M=x.querySegmentIterator();if(M.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){let e=Math.trunc((0,o.a)(Math.sqrt(v.getPointCount())+1,1,(0,o.i)())),t=Math.trunc((0,o.a)(Math.sqrt(v.getPointCount())+1,1,(0,o.i)()));if(this.distanceMultipointMultipoint(v,x,r,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){let e=c(),t=c();if(y(v,x,P,M,e,t))return f(r,e),f(s,t),0}let D=d(v),w=[],_=new i.S,C=new u.Envelope2D,A=new u.Envelope2D,E=new u.Envelope2D,S=this.m_maxSqrDistance,b=!0,R=!1;for(let e=0,t=D.length;e<t;++e){v.querySegment(D[e],_,!0);let t=_.get();if(t.queryEnvelope(C),!(C.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>S)){if(this.m_bIsNearCalc&&C.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=S)return 0;for(;M.nextPath();){if(this.progress_(),b)x.queryPathEnvelope(M.getPathIndex(),E),w[M.getPathIndex()]=E.clone();else if(C.sqrDistanceEnvelope(w[M.getPathIndex()],null,null)>S)continue;for(;M.hasNextSegment();){let n=M.nextSegment();if(n.queryEnvelope(A),C.sqrDistanceEnvelope(A,null,null)<=S){let i=!C.isIntersecting(A),a=[0],o=[0],u=t.distance(n,i,a,o);if(u*=u,this.m_bIsNearCalc&&u<=this.m_maxSqrDistance)return 0;if(u<S||u===S&&D[e]<r.index){if(R=!0,g(r,t,D[e],a[0]),g(s,n,M.getStartPointIndex(),o[0]),0===u)return 0;S=u}}}}M.resetToFirstPath(),b=!1}}return R?Math.sqrt(S):1/0}catch(e){a.error=e,a.hasError=!0}finally{(0,n.hk)(a)}}swapGeometriesIfAGtB(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,o.s)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},61691(e,t,r){r.d(t,{G:()=>n});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},9447(e,t,r){r.d(t,{OperatorCentroid2D:()=>s});var n=r(57694);class s{getOperatorType(){return 10205}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t){return(0,n.c)(e)}}},22994(e,t,r){r.d(t,{OperatorDistance:()=>i});var n=r(55537),s=r(30921);class i{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}execute(e,t,r){return this.executeEx(e,t,r,null,null,NaN)}executeEx(e,t,r,i,a,o){if(e.isEmpty()||t.isEmpty())return NaN;(0,n.t)(e),(0,n.t)(t);let u=e,l=t;Number.isNaN(o)&&(o=1/0);let c=new s.D(o,r).calculate(u,l,i,a);return Number.isFinite(c)?c:NaN}}},76061(e,t,r){r.d(t,{S:()=>s});var n=r(61691);class s extends n.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){let e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},69540(e,t,r){var n=r(32198),s=r(69622),i=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),u=r(64108);const l=Symbol("ClonableMixin"),c=e=>{var t;let r=e,s=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=l}clone(e){let t=(0,o.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,n=t.store,s={},u=new Map;for(let t in r){let a=r[t],o=n?.originOf(t),l=a.clonable;if(a.readOnly||!1===l||7!==o&&0!==o&&5!==o&&4!==o)continue;let c=this[t],h=null;if("function"==typeof l)h=l(c,e);else if("reference"===l)h=c;else if(h=(0,i.TU)(c,e),null!=c&&null==h)continue;0===o?u.set(t,h):s[t]=h}let l=new(0,Object.getPrototypeOf(this).constructor)(s);if(u.size){let e=(0,o.oY)(l)?.store;if(e)for(let[t,r]of u)e.set(t,r,0)}return l}};return s=(0,n.Cg)([(0,u.$)("esri.core.Clonable")],s),s},h=c(s.A);r.d(t,["OU",0,c,"Pw",0,h])},95488(e,t,r){r.d(t,{I:()=>s});var n=r(11406);class s extends n.T{notify(){let e=this._observers;if(e&&e.length>0){let t=e.slice();for(let e of t)e.onInvalidated(),e.onCommitted()}}}},35522(e,t,r){r.d(t,{$A:()=>C,Bw:()=>i,C:()=>a,Cc:()=>A,DI:()=>D,Io:()=>v,Ln:()=>d,Om:()=>_,Qr:()=>h,Re:()=>l,S8:()=>w,T9:()=>p,WQ:()=>u,Z0:()=>E,_S:()=>f,aI:()=>O,ei:()=>S,fw:()=>R,gL:()=>b,hG:()=>x,hZ:()=>o,hs:()=>y,jk:()=>g,lw:()=>c,m3:()=>P,oW:()=>q,t2:()=>I,tn:()=>m,ze:()=>M});var n=r(51850),s=r(34304);function i(e){let t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function u(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function l(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function h(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function m(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function f(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function g(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function p(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function y(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function d(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function v(e,t){let r=t[0]-e[0],n=t[1]-e[1],s=t[2]-e[2];return Math.sqrt(r*r+n*n+s*s)}function x(e,t){let r=t[0]-e[0],n=t[1]-e[1],s=t[2]-e[2];return r*r+n*n+s*s}function P(e){let t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function M(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function D(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t=e){let r=t[0],n=t[1],s=t[2],i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}function _(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function C(e,t,r){let n=t[0],s=t[1],i=t[2],a=r[0],o=r[1],u=r[2];return e[0]=s*u-i*o,e[1]=i*a-n*u,e[2]=n*o-s*a,e}function A(e,t,r,n){let s=t[0],i=t[1],a=t[2];return e[0]=s+n*(r[0]-s),e[1]=i+n*(r[1]-i),e[2]=a+n*(r[2]-a),e}function E(e,t,r){let n=t[0],s=t[1],i=t[2];return e[0]=r[0]*n+r[4]*s+r[8]*i+r[12],e[1]=r[1]*n+r[5]*s+r[9]*i+r[13],e[2]=r[2]*n+r[6]*s+r[10]*i+r[14],e}function S(e,t,r){let n=t[0],s=t[1],i=t[2];return e[0]=n*r[0]+s*r[3]+i*r[6],e[1]=n*r[1]+s*r[4]+i*r[7],e[2]=n*r[2]+s*r[5]+i*r[8],e}function b(e,t,r){return R(e,t,r[0],r[1],r[2],r[3])}function R(e,t,r,n,s,i){let a=t[0],o=t[1],u=t[2],l=n*u-s*o,c=s*a-r*u,h=r*o-n*a,m=n*h-s*c,f=s*l-r*h,g=r*c-n*l,p=2*i;return e[0]=a+l*p+2*m,e[1]=o+c*p+2*f,e[2]=u+h*p+2*g,e}const N=(0,n.vt)(),G=(0,n.vt)();function I(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function O(e,t){if(e===t)return!0;let r=e[0],n=e[1],i=e[2],a=t[0],o=t[1],u=t[2],l=(0,s.FD)();return Math.abs(r-a)<=l*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-o)<=l*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-u)<=l*Math.max(1,Math.abs(i),Math.abs(u))}function q(e,t,r){let n=r[0]-t[0],s=r[1]-t[1],i=r[2]-t[2],a=n*n+s*s+i*i;return a>0?(a=1/Math.sqrt(a),e[0]=n*a,e[1]=s*a,e[2]=i*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const B=l,Z=c,Y=h,F=v,T=x,X=i,L=P;Object.freeze(Object.defineProperty({__proto__:null,abs:m,add:u,angle:function(e,t){w(N,e),w(G,t);let r=_(N,G);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,n,s,i){let a=1-i,o=a*a,u=i*i,l=o*a,c=3*i*o,h=3*u*a,m=u*i;return e[0]=t[0]*l+r[0]*c+n[0]*h+s[0]*m,e[1]=t[1]*l+r[1]*c+n[1]*h+s[1]*m,e[2]=t[2]*l+r[2]*c+n[2]*h+s[2]*m,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:a,cross:C,crossAndNormalize:function(e,t,r){let n=t[0],s=t[1],i=t[2],a=r[0],o=r[1],u=r[2],l=s*u-i*o,c=i*a-n*u,h=n*o-s*a,m=Math.sqrt(l*l+c*c+h*h);return e[0]=l/m,e[1]=c/m,e[2]=h/m,e},direction:q,dist:F,distance:v,div:Y,divide:h,dot:_,equals:O,exactEquals:I,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,n,s,i){let a=i*i,o=a*(2*i-3)+1,u=a*(i-2)+i,l=a*(i-1),c=a*(3-2*i);return e[0]=t[0]*o+r[0]*u+n[0]*l+s[0]*c,e[1]=t[1]*o+r[1]*u+n[1]*l+s[1]*c,e[2]=t[2]*o+r[2]*u+n[2]*l+s[2]*c,e},inverse:D,len:X,length:i,lerp:A,max:p,min:g,mul:Z,multiply:c,negate:M,normalize:w,random:function(e,t=1){let r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,a=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(n)*a,e[1]=Math.sin(n)*a,e[2]=i*t,e},rotateX:function(e,t,r,n){let s=[],i=[];return s[0]=t[0]-r[0],s[1]=t[1]-r[1],s[2]=t[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},rotateY:function(e,t,r,n){let s=[],i=[];return s[0]=t[0]-r[0],s[1]=t[1]-r[1],s[2]=t[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},rotateZ:function(e,t,r,n){let s=[],i=[];return s[0]=t[0]-r[0],s[1]=t[1]-r[1],s[2]=t[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:d,scaleTo:function(e,t){return y(e,e,t/X(e))},set:o,sign:f,sqrDist:T,sqrLen:L,squaredDistance:x,squaredLength:P,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:B,subtract:l,transformMat3:S,transformMat4:E,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:b,transformQuatValues:R},Symbol.toStringTag,{value:"Module"})),r.d(t,["Il",0,X,"jb",0,B,"lo",0,T,"uE",0,L])},69397(e,t,r){r.d(t,{Qf:()=>u,Qh:()=>a,lM:()=>i,ro:()=>l,rq:()=>c});var n=r(44208),s=r(34275);function i(e){if(!e)return 0;let t=h;for(let r in e)e.hasOwnProperty(r)&&(t+=o(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let r=m;for(let n=0;n<t;n++)r+=o(e[n]);return r}(e);let t=h;for(let r in e)e.hasOwnProperty(r)&&(t+=o(e[r]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?a(e):h;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+l(t),0)}function l(e,t=16){return e?(0,s.iu)(e)?e.byteLength+g:Array.isArray(e)?c(e,t):0:0}function c(e,t){return m+e.length*t}const h=32,m=16,f=(0,n.A)("ios")||!(0,n.A)("chrome")&&!(0,n.A)("opr")?8:4,g=145;r.d(t,["JY",0,f])},87992(e,t,r){r.d(t,{JR:()=>_,ME:()=>M,MY:()=>A,NO:()=>P,Nh:()=>w,V2:()=>N,_s:()=>G,e6:()=>O,gh:()=>D,jm:()=>C,tr:()=>B,uX:()=>p});var n=r(32198),s=(r(69397),r(16930)),i=r(19419),a=r(60408),o=r(21325),u=r(513),l=r(50954),c=r(79567),h=r(52006),m=r(49663),f=r(46068),g=r(92722);class p{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:i,partCount:a,partOffsets:o,partFlags:u,segmentFlags:l,segmentIndices:c,segmentParams:h,segmentCountArc:m,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=u,this.segmentFlags=l,this.segmentIndices=c,this.segmentParams=h,this.segmentCountArc=m,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:n,hasM:s,segmentCountArc:i,segmentCountBezier:a}=this,o=N(e,t,r,n,s,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;let{vertexXY:u,vertexZ:l,vertexM:c}=this;if(o.vertexXY.set(u.subarray(0,2*t),0),o.vertexZ?.set(l.subarray(0,t),0),o.vertexM?.set(c.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;o.partFlags.set(t.subarray(0,r+1)),o.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;o.segmentFlags.set(e.subarray(0,t),0),o.segmentIndices.set(r.subarray(0,t),0),o.segmentParams.set(n.subarray(0,s),0)}return o}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,o.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(e){this.geometry=e,this.value=new d(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(e){this.geometry=e,this.index=-1,this._readVertex=b(e),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class v{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new x(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class x{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=b(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],n=t[r++],s=t[r++],i=t[r++];return{b:[this.end,[e,n],[s,i]]}}let n=t[r++],s=t[r++],i=t[r++],a=t[r++],o=t[r++],u=t[r++];r++,r++;let l=t[r++],c=t[r++];if(!(4&n)&&1===i)return{c:[this.end,[l,c]]};let h=2&n?0:1,m=1&n?0:1;return{a:[this.end,[o,u],h,m,a,s,i]}}}function P(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,i.Ie)(),(0,n.mS)(r,new E(e,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(t,function(e){let t,{vertexCount:r,vertexXY:s,vertexZ:a,vertexM:o}=e,u=S(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new E(e,["vertexZ","vertexM"]),!1);let s=(0,i.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,c.e)(s,e,r),e=(0,h.yP)(r)}let[a,o,l,m]=s;t={xmin:a,ymin:o,xmax:l,ymax:m,spatialReference:u}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}else{let e,n,i,a;e=n=1/0,i=a=-1/0;for(let t=0;t<r;++t){let r=s[2*t],o=s[2*t+1];e=Math.min(e,r),i=Math.max(i,r),n=Math.min(n,o),a=Math.max(a,o)}t={xmin:e,ymin:n,xmax:i,ymax:a,spatialReference:u}}if(a){let e=1/0,r=-1/0;for(let t of a)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(o){let e=1/0,r=-1/0;for(let t of o)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}function M(e){let t,r,n;if((0,a.fT)(e)){n="point";let{x:s,y:i,z:a,m:o}=e,u=[s,i];null!=a&&u.push(a),null!=o&&u.push(o),r=[[u]],t=1}else(0,a.U9)(e)?(n="multipoint",r=[e.points],t=e.points.length):(0,a.Rg)(e)?(n="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(n="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,R(t[0],(0,h.yP)(t.at(-1)))&&--e),e),0));let s=N(n,t,n.includes("point")?0:r.length,(0,a.Pv)(e),(0,a.W0)(e),(0,h.Ed)(e)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:l,vertexM:c}=s;function m(e){u[2*g]=e[0],u[2*g+1]=e[1],i&&(l[g]=e[2]),o&&(c[g]=e[f]),++g}s.spatialReference=e.spatialReference??void 0;let f=s.hasZ?3:2,g=0;if(!s.isMultipart()){if(!i&&!o){for(let[e,t]of r[0])u[2*g]=e,u[2*g+1]=t,++g;return s}for(let e of r[0])m(e);return s}let p="polygon"===n,{partOffsets:y}=s,d=0;if(!(0,h.Ed)(e)){for(let e of r){if(y[d++]=g,0===e.length)continue;let t=e.length;if(p&&R(e[0],e.at(-1))&&--t,i||o)for(let r=0;r<t;++r)m(e[r]);else for(let r=0;r<t;++r){let[t,n]=e[r];u[2*g]=t,u[2*g+1]=n,++g}}return y[d]=g,s}function v(e){let t=x+e;if(t<=(s.segmentParams?.length??0))return;let r=t*Z;r=20*Math.ceil(r/20);let n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let x=0;for(let e of r){if(s.partOffsets[d++]=g,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let n=e[t];m(r);let i=g-1;(0,h.wY)(n)?(v(10),++s.segmentCountArc,x=G(r,n,s,i,x),r=n.a[0]):(0,h.DA)(n)?(v(10),++s.segmentCountArc,x=I(r,n,s,i,x),r=n.a[0]):(0,h.aO)(n)?(v(10),++s.segmentCountArc,x=O(r,n,s,i,x),r=n.c[0]):(0,h.n1)(n)?(v(4),++s.segmentCountBezier,x=B(0,n,s,i,x),r=n.b[0]):r=n}p&&R(t,r)||m(r)}return s.partOffsets[d]=g,s}function D(e){let t=b(e),{vertexCount:r,partCount:n,hasZ:s,hasM:i}=e,a=S(e),o=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:a}}let n=[];for(;o<r;)n.push(t(o++));return{points:n,spatialReference:a,hasZ:s,hasM:i}}if(!e.hasCurves()){let r=[];for(let s=0;s<n;++s){let n=!!(1&e.partFlags[s]),i=e.partOffsets[s+1],a=[];for(;o<i;)a.push(t(o++));n&&a.length>0&&a.push([...a[0]]),r.push(a)}return"polygon"===e.type?{rings:r,hasZ:s,hasM:i,spatialReference:a}:{paths:r,hasZ:s,hasM:i,spatialReference:a}}let u=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);u.push(e)}return"polygon"===e.type?{rings:[],curveRings:u,hasZ:s,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:s,hasM:i,spatialReference:a}}function w(e,{lengths:t,coords:r,hasZ:n,hasM:s},i){let a=e.includes("point")?0:t.length,o="polygon"===e,u="point"===e?1:t.reduce((e,t)=>e+t,0)-(o?a:0);n??=!1,s??=!1;let l=N(e,u,a,n,s,!1,0,0);if(l.spatialReference=i??void 0,!l.isMultipart()){for(let e=0,t=0;e<u;++e)l.vertexXY[2*e]=r[t++],l.vertexXY[2*e+1]=r[t++],n&&(l.vertexZ[e]=r[t++]),s&&(l.vertexM[e]=r[t++]);return l}let c=2+Number(n)+Number(s),h=0,m=0;l.partOffsets[0]=0;for(let e of t){let t=l.partOffsets[m],i=t+e-Number(o);l.partOffsets[++m]=i;for(let e=t;e<i;++e)l.vertexXY[2*e]=r[h++],l.vertexXY[2*e+1]=r[h++],n&&(l.vertexZ[e]=r[h++]),s&&(l.vertexM[e]=r[h++]);o&&(h+=c)}return l}function _({type:e,vertexCount:t,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:a,partFlags:o,hasZ:u,hasM:l}){let c=new g.A([],[],u,l);i=Math.max(i,1);let h=0;for(let e=0;e<i;++e){let i=a?.[e+1]??t,m=c.coords.length;for(let e=h;e<i;++e)c.coords.push(r[2*e],r[2*e+1]),u&&c.coords.push(n[e]),l&&c.coords.push(s[e]);if(o&&1&o[e]){let e=h;c.coords.push(r[2*e],r[2*e+1]),u&&c.coords.push(n[e]),l&&c.coords.push(s[e])}c.lengths.push((c.coords.length-m)/c.stride),h=i}return"point"===e&&(c.lengths.length=0),c}function C(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function A(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let n=e.getLatestID();(n<=0||n===r)&&(n=void 0);let s=e.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:t};let i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:t};let a=e.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:t,latestWkid:n,vcsWkid:i,latestVcsWkid:a}}(e.getSpatialReference()),e=e.getGeometry()),new p({...e.toFlatGeometry(),spatialReference:t})}class E{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function S({spatialReference:e}){return e instanceof s.A?e.toJSON():e}function b({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?n=>[e[2*n],e[2*n+1],t[n],r[n]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function R(e,t){return e.every((e,r)=>e===t[r])}function N(e,t,r,n,s,i,a,o){a??=0,o??=0;let u=new p({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o}),l=2*Float64Array.BYTES_PER_ELEMENT*t;n&&(l+=Float64Array.BYTES_PER_ELEMENT*t),s&&(l+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(l+=(r+1)*Int32Array.BYTES_PER_ELEMENT,l+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(l+=t*Int8Array.BYTES_PER_ELEMENT,l+=t*Int32Array.BYTES_PER_ELEMENT,l+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let c=new ArrayBuffer(l),h=0;return u.vertexXY=new Float64Array(c,h,2*t),h+=u.vertexXY.byteLength,n&&(u.vertexZ=new Float64Array(c,h,t),h+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(c,h,t),h+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,h,u.segmentParamCount),h+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,h,t),u.segmentIndices.fill(Y),h+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,h,r+1),h+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,h,r+1),h+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(c,h,t),u.segmentFlags.fill(1),h+=u.segmentFlags.byteLength),u}function G(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){r[i]=4,n[i]=a;let[o,[u,l],c,h,m,g,p]=t.a,y=4;h||(y|=1),c||(y|=2);let d=(0,f.SW)(e,t),[v,x]=(0,f.Uk)(d,.5);return s[a++]=y,s[a++]=g,s[a++]=p,s[a++]=m,s[a++]=u,s[a++]=l,s[a++]=d.u2-d.u1,s[a++]=d.u1,s[a++]=v,s[a++]=x,a}function I(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){r[i]=4,n[i]=a;let o=(0,m.io)(e,t);return q(o,4,...(0,u.mq)(o,.5),s,a)}function O(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,a){return r[i]=4,n[i]=a,q((0,l.pM)(e,t),0,...t.c[1],s,a)}function q(e,t,r,n,s,i){let{cx:a,cy:o,thetaStart:u,thetaEnd:l,radius:c}=e;return u>l||(t|=1),Math.abs(l-u)<=Math.PI||(t|=2),s[i++]=t,s[i++]=c,s[i++]=1,s[i++]=0,s[i++]=a,s[i++]=o,s[i++]=l-u,s[i++]=u,s[i++]=r,s[i++]=n,i}function B(e,{b:[t,[r,n],[s,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:u},l,c){return a[l]=2,o[l]=c,u[c++]=r,u[c++]=n,u[c++]=s,u[c++]=i,c}const Z=1.61803,Y=-1},48526(e,t,r){r.d(t,{A:()=>y});var n,s=r(32198),i=r(4576),a=r(4718),o=r(91429),u=r(5443),l=r(91075),c=r(86738),h=r(16930),m=r(90634),f=r(47610),g=r(56993),p=r(43937);let y=n=class extends l.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:n,spatialReference:s}=e;switch(t??=[],t?.at(0)?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return s??=h.A.WGS84,{...e,hasM:r,hasZ:n,points:t,spatialReference:s}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,m.ge)(this);return e?new u.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,a.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:r,hasZ:s}=this;return new n({points:(0,a.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:s})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,r=e.spatialReference;return!(null!=t!=(null!=r)||null!=t&&null!=r&&!t.equals(r))&&(0,i.aI)(this.points,e.points,f.v6)}addPoint(e){return(0,g.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(r.z=t[2],n=3),this.hasM&&(r.m=t[n]),new c.A(r)}removePoint(e){if(!this._validateInputs(e))return null;let t=new c.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)&&((0,g.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,s.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,s.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,s.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=n=(0,s.Cg)([(0,o.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>g});var n,s=r(32198),i=r(4718),a=r(91429),o=r(5443),u=r(91075),l=r(86738),c=r(16930),h=r(90634),m=r(56993),f=r(43937);let g=n=class extends u.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:n,spatialReference:s}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return s??=c.A.WGS84,{...e,hasM:r,hasZ:n,paths:t,spatialReference:s}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,i.o8)(e)}get extent(){let e=(0,h.Z3)(this),{spatialReference:t}=this;return e?new o.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,i.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let n=[];for(let t=0,r=e.length;t<r;t++)n[t]=e[t].toArray();t[r]=n}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new n;return e.spatialReference=this.spatialReference,e.paths=(0,i.o8)(this.paths),e.curvePaths=(0,i.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],n=this.hasZ,s=this.hasM;return n&&!s?new l.A(r[0],r[1],r[2],void 0,this.spatialReference):s&&!n?new l.A(r[0],r[1],void 0,r[2],this.spatialReference):n&&s?new l.A(r[0],r[1],r[2],r[3],this.spatialReference):new l.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)&&((0,m.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,n=t.map(e=>new l.A(e,r));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new l.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)&&((0,m.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths")),this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let n=this.paths[e];if(r&&(t<0||t>n.length)||!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,s.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],g.prototype,"curvePaths",void 0),(0,s.Cg)([(0,f.K)("curvePaths")],g.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,s.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],g.prototype,"paths",void 0),(0,s.Cg)([(0,f.K)("paths")],g.prototype,"writePaths",null),g=n=(0,s.Cg)([(0,a.$K)("esri.geometry.Polyline")],g),g.prototype.toJSON.isDefaultToJSON=!0},95360(e,t,r){r.r(t),r.d(t,{execute:()=>d,geodeticDistanceExecute:()=>y,geodeticDistanceIsLoaded:()=>m,geodeticDistanceLoad:()=>g,geodeticDistanceSupportsCurves:()=>c,isLoaded:()=>f,load:()=>p,supportsCurves:()=>h});var n=r(86211),s=r(29716),i=r(85036),a=r(5808);let o,u,l,c,h;function m(){return!!o&&(0,s.s)()}function f(){return(0,i.Q)("geodeticDistanceOperator","isLoaded","geodeticDistanceIsLoaded"),m()}async function g(){if(!m()){let[e]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)),(0,s.load)()]);o=e.fromGeometry,u=e.fromSpatialReference,l=e.getSpatialReference,c=(0,s.f)(),h=c}}function p(){return(0,i.Q)("geodeticDistanceOperator","load","geodeticDistanceLoad"),g()}function y(e,t,r={}){let{curveType:i="geodesic",unit:c}=r,h=l(e),m=(0,s.execute)(o(e),o(t),u(h),a.O[i]);return m&&c&&(m=(0,n.oU)(m,"meters",c)),m}function d(e,t,r={}){return(0,i.Q)("geodeticDistanceOperator","execute","geodeticDistanceExecute"),y(e,t,r)}},86742(e,t,r){r.d(t,{execute:()=>o,f:()=>u,load:()=>a,s:()=>i});var n=r(83290);let s;function i(){return!!s&&(0,n.i)()}async function a(){if(!i()){let[e,t]=await Promise.all([Promise.all([r.e(2024),r.e(6558)]).then(()=>r(6558)),r.e(3375).then(()=>r(15756)).then(({injectPe:e})=>e),(0,n.l)()]);s=new e.OperatorGeodeticArea,t(n.p)}}function o(e,t,r){return s.execute(e,t,r,null)}function u(){return s.supportsCurves()}},29716(e,t,r){r.d(t,{execute:()=>o,f:()=>u,load:()=>a,s:()=>i});var n=r(83290);let s;function i(){return!!s&&(0,n.i)()}async function a(){if(!i()){let[e,t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(2024),r.e(3394)]).then(()=>r(12764)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(8344)]).then(()=>r(15756)).then(({injectPe:e})=>e),(0,n.l)()]);s=new e.OperatorGeodeticDistance,t(n.p)}}function o(e,t,r,n){return s.execute(e,t,r,n,null)}function u(){return s.supportsCurves()}},35223(e,t,r){r.d(t,{execute:()=>o,f:()=>u,load:()=>a,s:()=>i});var n=r(83290);let s;function i(){return!!s&&(0,n.i)()}async function a(){if(!i()){let[e,t]=await Promise.all([r.e(8879).then(()=>r(28879)),r.e(3375).then(()=>r(15756)).then(({injectPe:e})=>e),(0,n.l)()]);s=new e.OperatorGeodeticLength,t(n.p)}}function o(e,t,r){return s.execute(e,t,r,null)}function u(){return s.supportsCurves()}},81150(e,t,r){r.d(t,{execute:()=>a,isSimpleAsFeature:()=>u,z:()=>o});var n=r(76061),s=(r(55537),r(88885),r(39117));r(95213);const i=new s.J;function a(e,t,r){return i.execute(e,t,r,null)}function o(e,t,r){let s=i.executeMany(new n.S(e),t,r,null);return Array.from(s)}function u(e,t,r){return i.isSimpleAsFeature(e,t,r,null,null)}},85036(e,t,r){r.d(t,{Q:()=>i});var n=r(51447),s=r(53966);function i(e,t,r){(0,n.io)(s.A.getLogger(`esri.geometry.operators.${e}`),`${t} is deprecated. Refactor using @arcgis/codemod or manually replace usages with ${r} instead.`,{replacement:r,warnOnce:!0})}},5808(e,t,r){r.d(t,["O",0,{geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}])},65806(e,t,r){r.d(t,{g:()=>a});var n=r(51850),s=r(99917),i=r(9762);function a(e,t,r,n){if((0,s.canProjectWithoutEngine)(e.spatialReference,r))return o[0]=e.x,o[1]=e.y,o[2]=e.z??0,(0,i.projectBuffer)(o,e.spatialReference,0,t,r,0);let a=(0,s.tryProject)(e,r,n);return!!a&&(t[0]=a.x,t[1]=a.y,t[2]=a.z??0,!0)}const o=(0,n.vt)()},27993(e,t,r){r.d(t,{F:()=>o});var n=r(99917),s=r(16930),i=r(9762),a=r(65806);function o(e,t,r,s){return!(null==t||null==s||e.length<2)&&((0,n.canProjectWithoutEngine)(t,s)?(0,i.projectBuffer)(e,t,0,r,s,0,1):(u.x=e[0],u.y=e[1],u.z=e[2],u.spatialReference=t,(0,a.g)(u,r,s)))}const u={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:s.A.WGS84,type:"point"}},60408(e,t,r){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function s(e){return void 0!==e.points}function i(e){return void 0!==e.x&&void 0!==e.y}function a(e){return void 0!==e.paths||void 0!==e.curvePaths}function o(e){return void 0!==e.rings||void 0!==e.curveRings}function u(e){return"object"==typeof e&&"vertexAttributes"in e}function l(e){return e?i(e)?"esriGeometryPoint":a(e)?"esriGeometryPolyline":o(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>l,Bi:()=>o,Pv:()=>c,Rg:()=>a,U9:()=>s,W0:()=>h,ZC:()=>n,fT:()=>i,uW:()=>u})},65864(e,t,r){r.d(t,{rS:()=>c,xD:()=>m});var n=r(5443),s=r(91075),i=r(48526),a=r(86738),o=r(39829),u=r(82799),l=r(60408);function c(e){return null==e?null:e instanceof s.A?e:(0,l.fT)(e)?a.A.fromJSON(e):(0,l.Rg)(e)?u.A.fromJSON(e):(0,l.Bi)(e)?o.A.fromJSON(e):(0,l.U9)(e)?i.A.fromJSON(e):(0,l.ZC)(e)?n.A.fromJSON(e):null}const h={esriGeometryPoint:a.A,esriGeometryPolyline:u.A,esriGeometryPolygon:o.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:i.A,esriGeometryMultiPatch:o.A};function m(e){return e&&h[e]||null}},92722(e,t,r){r.d(t,{A:()=>s});var n=r(69397);class s{constructor(e=[],t=[],r=!1,n=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:n}){return new s(e,t,r||!1,n||!1)}static fromRect([e,t,r,n]){let i=r-e,a=n-t;return new s([5],[e,t,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let e=0,t=0;for(let r of this.lengths){if(r<3)continue;let{stride:n}=this,s=this.coords[n*t],i=this.coords[n*t+1];for(let a=1;a<r;a+=1){let r=n*(t+a),o=this.coords[r],u=this.coords[r+1];e+=-.5*(o-s)*(u+i),s=o,i=u}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);let{stride:r}=this;for(let n of this.lengths){for(let s=0;s<n;s++){let n=r*(t+s);e(this.coords[n],this.coords[n+1])}t+=n}}deltaDecode(){let e=this.clone(),{coords:t,lengths:r}=e,n=0,{stride:s}=this;for(let e of r){for(let r=1;r<e;r++){let e=s*(n+r);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}n+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let t=Array.from(this.lengths),{stride:r,size:n}=this,i=this.coords.slice(0,n*r);return e?(e.set(i),new s(t,e,this.hasZ,this.hasM)):new s(t,Array.from(i),this.hasZ,this.hasM)}justXY(){let{stride:e,size:t}=this;if(2===e)return this;let r=Array(t*e);for(let t=0,n=0;t<r.length;t+=e)r[n++]=this.coords[t],r[n++]=this.coords[t+1];return new s(this.lengths,r,!1,!1)}}},32728(e,t,r){r.d(t,{YH:()=>a,nu:()=>o,wp:()=>i}),r(34727);var n=r(35522),s=r(51850);function i(e,t){let r=Math.sqrt(t[0]*t[0]+t[4]*t[4]+t[8]*t[8]),s=Math.sqrt(t[1]*t[1]+t[5]*t[5]+t[9]*t[9]),i=Math.sqrt(t[2]*t[2]+t[6]*t[6]+t[10]*t[10]);return(0,n.hZ)(e,r,s,i),e}function a(e,t,r){r||=e;let s=(0,n.Om)(e,t);(0,n.hZ)(r,e[0]-s*t[0],e[1]-s*t[1],e[2]-s*t[2]),(0,n.S8)(r,r)}function o(e,t,r,i=(0,s.vt)()){let a=(0,n.Bw)(e),o=(0,n.Bw)(t),c=(0,n.Om)(e,t)/(a*o);if(c<.9999999999999999){let s=Math.acos(c),h=((1-r)*a+r*o)/Math.sin(s),m=h/a*Math.sin((1-r)*s),f=h/o*Math.sin(r*s);return(0,n.hs)(u,e,m),(0,n.hs)(l,t,f),(0,n.WQ)(i,u,l)}return(0,n.Cc)(i,e,t,r)}(0,s.vt)(),(0,s.vt)(),(0,s.vt)();const u=(0,s.vt)(),l=(0,s.vt)()},71246(e,t,r){r.r(t),r.d(t,{area2D:()=>$,areaHorizontal:()=>ae,autoArea2D:()=>te,autoDistance2DBetweenPoints:()=>ne,autoLength2D:()=>re,autoSize2D:()=>se,distance2DBetweenPoints:()=>ee,geodeticArea:()=>W,geodeticDistanceBetweenPoints:()=>Q,geodeticDistanceBetweenPointsMany:()=>U,geodeticLength:()=>J,length2D:()=>H,preloadGeodetic:()=>K,simplify:()=>oe});var n=r(14690),s=r(95213),i=r(86211);function a(e,t){return{type:(0,i.t$)(t),value:e,unit:t}}function o(e,t){return{type:(0,i.t$)(t),value:e,unit:t}}function u(e,t,r="arithmetic"){return{type:(0,i.t$)(t),value:e,unit:t,rotationType:r}}function l(e,t){return null==e?t:null==t||e.value>(0,i.oU)(t.value,t.unit,e.unit)?e:t}a(0,"meters"),o(0,"square-meters"),u(0,"radians"),u(0,"degrees"),u(0,"degrees","geographic");var c=r(35522),h=r(51850),m=r(73941),f=r(87992),g=r(39829),p=r(99917),y=r(16930),d=r(98764),v=r(86742);let x,P,M,D,w;async function _(){if(!x||!(0,v.s)()){let[e]=await Promise.all([r.e(506).then(()=>r(78125)),(0,v.load)()]);x=e.fromGeometry,P=e.fromSpatialReference,M=e.getSpatialReference,D=(0,v.f)(),w=D}}r(85036);var C=r(95360),A=r(35223);let E,S,b,R,N;async function G(){if(!E||!(0,A.s)()){let[e]=await Promise.all([r.e(506).then(()=>r(78125)),(0,A.load)()]);E=e.fromGeometry,S=e.fromSpatialReference,b=e.getSpatialReference,R=(0,A.f)(),N=R}}var I=r(21325);function O(e,t,r){let n=e.calculateArea2D();if(n&&r&&t){if((0,I.EA)(t))throw Error("Unable to convert from an angular area unit to a linear area unit.");let e=(0,i.B5)(t);e!==r&&(e?n=(0,i.oU)(n,e,r):(n*=(0,i.GA)(t)**2,n=(0,i.oU)(n,"square-meters",r)))}return n}const q=new(r(9447).OperatorCentroid2D);function B(e){return q.execute(e,null)}const Z=new(r(22994).OperatorDistance);var Y=r(29716),F=r(81150),T=r(5808),X=r(83299),L=r(27993);function k(e,t,r,n,s){(0,c.C)(z,e),(0,c.WQ)(V,e,t),(0,L.F)(z,r,z,s),(0,L.F)(V,r,V,s),(0,c.Re)(n,V,z),(0,c.S8)(n,n)}const z=(0,h.vt)(),V=(0,h.vt)();var j=r(32728);async function W(e,t){return e=new f.uX({...e}),we(await ue(e,t))}function K(){_(),G(),(0,C.geodeticDistanceLoad)()}async function J(e,t){return e=new f.uX({...e}),we(await le(e,t))}async function Q(e,t,r){return we(await he(e,t,r))}async function U(e,t,r){return e=new f.uX({...e}),t=new f.uX({...t}),we(await async function(e,t,r){await(0,Y.load)();let i=(0,n.constructFromFlatGeometry)(e),o=(0,n.constructFromFlatGeometry)(t);if(i.getPointCount()!==o.getPointCount())throw Error("Input multipoints must have the same number of points.");let u=r?.unit??"meters",l=xe(e),c=T.O[r?.curveType??"geodesic"],h=new s.P,m=new s.P,f=[];for(let e=0;e<i.getPointCount();e++){i.getPointByVal(e,h),o.getPointByVal(e,m);let t=(0,Y.execute)(h,m,l,c);f.push(a(Pe(t,u),u))}return f}(e,t,r))}async function $(e,t){return we(me(e=new f.uX({...e}),t))}async function H(e,t){return we(fe(e=new f.uX({...e}),t))}async function ee(e,t,r){return we(ge(e,t,r))}async function te(e,t){return e=new f.uX({...e}),we(await ie(e.spatialReference,ue,me)(e,t))}async function re(e,t){return e=new f.uX({...e}),we(await ie(e.spatialReference,le,fe)(e,t))}async function ne(e,t,r){return we(await ie(e.spatialReference,he,ge)(e,t,r))}async function se(e,t,r,n,s){let i=ie(e.spatialReference,he,ge),[a,o,u,c]=await Promise.all([i(n,r,s),i(e,t,s),i(r,t,s),i(n,e,s)]);return we({width:l(a,o),height:l(c,u)})}function ie(e,t,r){switch(function(e){return(0,I.EA)(e)||(0,I.K8)(e)?0:1}(e)){case 0:return t;case 1:return r}}async function ae(e,t){return we(function(e,t){let r=function(e){return e?(0,m.B3)(e)?(0,I.oT)(e)||(0,I.K8)(e)||(0,I.x1)(e)||(0,m.jA)(e)||(0,I.aI)(e,d.Y0)?{mode:1,spatialReference:d.Y0}:{mode:0,spatialReference:e}:{mode:1,spatialReference:(0,d.lO)(e)}:null}(e.spatialReference);if(!r)throw Error("Cannot compute horizontal area without a valid spatial reference.");switch(r.mode){case 0:return me(e,t);case 1:return function(e,t,r){let n;if((0,I.aI)(t.spatialReference,e.spatialReference))n=t.clone();else{let r=g.A.fromJSON((0,f.gh)(t)),s=(0,p.projectWithoutEngine)(r,r.spatialReference,e.spatialReference);if(!s)throw Error(`Cannot project geometry from ${r.spatialReference?.wkid??"unknown"} to ${e.spatialReference.wkid}.`);n=(0,f.ME)(s)}let s=Ae,i=_e,a=Ce;!function(e,t,r,n){let{vertexCount:s,vertexXY:i,vertexZ:a,spatialReference:o}=e;(0,c.hZ)(t,0,0,0);for(let e=0,r=0;e<s;++e)t[0]+=i[r++],t[1]+=i[r++],t[2]+=a[e];(0,c.hs)(t,t,1/s);let u=Se;(0,c.S8)(u,t);let l=be,h=Math.atan2(u[1],u[0]);(0,c.hZ)(l,-Math.sin(h),Math.cos(h),0),(0,I.aI)(o,d.Y0)&&(k(t,u,d.GD,u,o),k(t,l,d.GD,l,o)),(0,j.YH)(l,u,r),(0,c.$A)(n,r,u);let m=Ee;for(let e=0,o=0;e<s;++e)(0,c.hZ)(m,i[o],i[o+1],a[e]),(0,c.Re)(m,m,t),i[o++]=(0,c.Om)(r,m),i[o++]=(0,c.Om)(n,m);e.vertexZ=void 0,e.spatialReference=y.A.WebMercator}(n,s,i,a);let{area:o,centroid:u,length:l}=me(n,r);return{area:o,centroid:ve(u,s,i,a,e.spatialReference,t.spatialReference??y.A.WGS84),length:l}}(r,e,t)}}(e=new f.uX({...e}),t))}async function oe(e){return we(ye(new f.uX({...e})))}async function ue(e,t){await Promise.allSettled([(0,v.load)(),t?.returnLength?(0,A.load)():void 0]);let r=t?.unit??"square-meters",s=t?.lengthUnit??(0,i.Bd)(r),a=T.O[t?.curveType??"geodesic"],{geometry:u,spatialReference:l}=function(e){let t=xe(e),r=(0,n.constructFromFlatGeometry)(e);return{geometry:de((0,F.execute)(r,t,!1))??r,spatialReference:t}}(e),c=(0,v.execute)(u,l,a);return{area:o((0,i.oU)(c,"square-meters",r),r),centroid:t?.returnCentroid?pe(u,e.spatialReference):void 0,length:t?.returnLength?ce(u,l,{...t,unit:s}):void 0}}async function le(e,t){return await(0,A.load)(),ce((0,n.constructFromFlatGeometry)(e),xe(e),t)}function ce(e,t,r){let n=r?.unit??"meters",s=T.O[r?.curveType??"geodesic"];return a(Pe((0,A.execute)(e,t,s),n),n)}async function he(e,t,r){await(0,Y.load)();let n=r?.unit??"meters";return a(Pe((0,Y.execute)(De(e),De(t),xe(e),T.O[r?.curveType??"geodesic"]),n),n)}function me(e,t){let r=t?.unit??"square-meters",s=t?.lengthUnit??(0,i.Bd)(r),a=ye(e)??e,u=(0,n.constructFromFlatGeometry)(a);return{area:o(O(u,a.spatialReference,r),r),centroid:t?.returnCentroid?Me(B(u),a.spatialReference):void 0,length:t?.returnLength?fe(a,{unit:s}):void 0}}function fe(e,t){let r=t?.unit??"meters";return a(function(e,t,r){let n=e.calculateLength2D();return n&&r&&t&&(n=(0,i.PQ)(n,t,r)),n}((0,n.constructFromFlatGeometry)(e),e.spatialReference,r),r)}function ge(e,t,r){let n=r?.unit??"meters";return a(function(e,t,r,n){let s=Z.execute(e,t,null);return s&&n&&r&&(s=(0,i.PQ)(s,r,n)),s}(De(e),De(t),e.spatialReference,n),n)}function pe(e,t){return Me(B(e),t)}function ye(e){let t=de((0,F.execute)((0,n.constructFromFlatGeometry)(e),(0,X.fromSpatialReference)(e.spatialReference),!1));return t?function(e,t,r){switch(r){case"point":case"multipoint":case"polyline":case"polygon":return(0,f.MY)(e,t)}}(t,e.spatialReference,e.type):null}function de(e){return null==e||e.isEmpty()?null:e}function ve(e,t,r,n,s,i){if(!e)return e;(0,c.hs)(r,r,e.x),(0,c.hs)(n,n,e.y);let a=Ee;return(0,c.WQ)(a,r,n),(0,c.WQ)(a,a,t),e.x=a[0],e.y=a[1],e.z=a[2],e.spatialReference=s,(0,p.projectWithoutEngine)(e,e.spatialReference,i)?.toJSON()??void 0}function xe(e){let t=(0,X.fromSpatialReference)(e.spatialReference);if(!t)throw Error("Cannot compute measurements without a valid spatial reference.");return t}function Pe(e,t){return"meters"===t?e:(0,i.oU)(e,"meters",t)}function Me(e,t){return{x:e.x,y:e.y,spatialReference:t}}function De(e){let t=new s.P;return t.setXYCoords(e.x,e.y),null!=e.z&&t.setZ(e.z),null!=e.m&&t.setM(e.m),t}function we(e,...t){let r=(0,f.jm)(...t);return r.length?{result:e,transferList:r}:{result:e}}const _e=(0,h.vt)(),Ce=(0,h.vt)(),Ae=(0,h.vt)(),Ee=(0,h.vt)(),Se=(0,h.vt)(),be=(0,h.vt)()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5992],{32198(t,e,n){function r(t,e,n,r){var o,a=arguments.length,u=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(u=(a<3?o(u):a>3?o(e,n,u):o(e,n))||u);return a>3&&u&&Object.defineProperty(e,n,u),u}function o(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>u,mS:()=>o}),Object.create,Object.create;var a="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function u(t){function e(e){t.error=t.hasError?new a(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function o(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(o);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(o,function(t){return e(t),o()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69540(t,e,n){var r=n(32198),o=n(69622),a=(n(44208),n(4718)),u=(n(53966),n(97768)),i=n(88620),l=n(64108);const c=Symbol("ClonableMixin"),s=t=>{var e;let n=t,o=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=c}clone(t){let e=(0,i.oY)(this);(0,u.Lw)(e,"unable to clone instance of non-accessor class");let n=e.metadata,r=e.store,o={},l=new Map;for(let e in n){let u=n[e],i=r?.originOf(e),c=u.clonable;if(u.readOnly||!1===c||7!==i&&0!==i&&5!==i&&4!==i)continue;let s=this[e],f=null;if("function"==typeof c)f=c(s,t);else if("reference"===c)f=s;else if(f=(0,a.TU)(s,t),null!=s&&null==f)continue;0===i?l.set(e,f):o[e]=f}let c=new(0,Object.getPrototypeOf(this).constructor)(o);if(l.size){let t=(0,i.oY)(c)?.store;if(t)for(let[e,n]of l)t.set(e,n,0)}return c}};return o=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],o),o},f=s(o.A);n.d(e,["OU",0,s,"Pw",0,f])},29242(t,e,n){function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,a,u,i,l){return[t,e,n,r,o,a,u,i,l]}n.d(e,{fA:()=>o,vt:()=>r});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,fromValues:o},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b){return[t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},48163(t,e,n){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function a(t,e){return[t,e]}function u(){return a(1,1)}function i(){return a(-1,-1)}function l(){return a(1,0)}function c(){return a(0,1)}n.d(e,{fA:()=>a,o8:()=>o,vt:()=>r});const s=u(),f=i(),h=l(),M=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:s,UNIT_X:h,UNIT_Y:M,ZEROS:[0,0],clone:o,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:a,negativeOnes:i,ones:u,unitX:l,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,f,"Un",0,s])},51850(t,e,n){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,e,n){return[t,e,n]}function u(t,e,n){return[t,e,n]}function i(t,e=[0,0,0]){let n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function l(){return a(1,1,1)}function c(){return a(1,0,0)}function s(){return a(0,1,0)}function f(){return a(0,0,1)}n.d(e,{CN:()=>u,ci:()=>i,fA:()=>a,o8:()=>o,vt:()=>r});const h=[0,0,0],M=l(),d=c(),b=s(),m=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:M,UNIT_X:d,UNIT_Y:b,UNIT_Z:m,ZEROS:h,clone:o,create:r,freeze:u,fromArray:i,fromValues:a,ones:l,unitX:c,unitY:s,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,m,"Cw",0,d,"JP",0,b,"Un",0,M,"uY",0,h])},91829(t,e,n){function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function a(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function i(){return o(0,1,0,0)}function l(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}n.d(e,{_Y:()=>c,fA:()=>o,vt:()=>r});const s=[0,0,0,0],f=a(),h=u(),M=i(),d=l(),b=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:b,UNIT_X:h,UNIT_Y:M,UNIT_Z:d,ZEROS:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,e,n,r){return[t,e,n,r]},fromArray:function(t,e=[0,0,0,0]){let n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:a,unitW:c,unitX:u,unitY:i,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,f,"uY",0,s])},34304(t,e,n){n.d(e,{DF:()=>l,FD:()=>o,ct:()=>c});let r=1e-6;function o(){return r}const a=Math.random,u=Math.PI/180,i=180/Math.PI;function l(t){return t*u}function c(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:l},Symbol.toStringTag,{value:"Module"})),n.d(e,["Ov",0,a])},77690(t,e,n){n.d(e,{B8:()=>i,Ge:()=>M,I0:()=>h,KC:()=>l,a4:()=>c,hZ:()=>a,hs:()=>f,lw:()=>s,mg:()=>u,z0:()=>o});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function a(t,e,n,r,o,a,u,i,l,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=l,t[8]=c,t}function u(t,e){if(t===e){let n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function i(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=s*u-i*c,h=-s*a+i*l,M=c*a-u*l,d=n*f+r*h+o*M;return d?(d=1/d,t[0]=f*d,t[1]=(-s*r+o*c)*d,t[2]=(i*r-o*u)*d,t[3]=h*d,t[4]=(s*n-o*l)*d,t[5]=(-i*n+o*a)*d,t[6]=M*d,t[7]=(-c*n+r*l)*d,t[8]=(u*n-r*a)*d,t):null}function l(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8];return t[0]=u*s-i*c,t[1]=o*c-r*s,t[2]=r*i-o*u,t[3]=i*l-a*s,t[4]=n*s-o*l,t[5]=o*a-n*i,t[6]=a*c-u*l,t[7]=r*l-n*c,t[8]=n*u-r*a,t}function c(t){let e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],l=t[7],c=t[8];return e*(c*a-u*l)+n*(-c*o+u*i)+r*(l*o-a*i)}function s(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=n[0],M=n[1],d=n[2],b=n[3],m=n[4],p=n[5],g=n[6],y=n[7],w=n[8];return t[0]=h*r+M*u+d*c,t[1]=h*o+M*i+d*s,t[2]=h*a+M*l+d*f,t[3]=b*r+m*u+p*c,t[4]=b*o+m*i+p*s,t[5]=b*a+m*l+p*f,t[6]=g*r+y*u+w*c,t[7]=g*o+y*i+w*s,t[8]=g*a+y*l+w*f,t}function f(t,e,n){let r=n[0],o=n[1],a=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=a*e[6],t[7]=a*e[7],t[8]=a*e[8],t}function h(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n+n,i=r+r,l=o+o,c=n*u,s=r*u,f=r*i,h=o*u,M=o*i,d=o*l,b=a*u,m=a*i,p=a*l;return t[0]=1-f-d,t[3]=s-p,t[6]=h+m,t[1]=s+p,t[4]=1-c-d,t[7]=M-b,t[2]=h-m,t[5]=M+b,t[8]=1-c-f,t}function M(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15],g=n*i-r*u,y=n*l-o*u,w=n*c-a*u,v=r*l-o*i,A=r*c-a*i,S=o*c-a*l,I=s*b-f*d,C=s*m-h*d,O=s*p-M*d,U=f*m-h*b,T=f*p-M*b,x=h*p-M*m,E=g*x-y*T+w*U+v*O-A*C+S*I;return E?(E=1/E,t[0]=(i*x-l*T+c*U)*E,t[1]=(l*O-u*x-c*C)*E,t[2]=(u*T-i*O+c*I)*E,t[3]=(o*T-r*x-a*U)*E,t[4]=(n*x-o*O+a*C)*E,t[5]=(r*O-n*T-a*I)*E,t[6]=(b*S-m*A+p*v)*E,t[7]=(m*w-d*S-p*y)*E,t[8]=(d*A-b*w+p*g)*E,t):null}function d(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const b=s,m=d;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:c,equals:function(t,e){let n=t[0],o=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8],h=e[0],M=e[1],d=e[2],b=e[3],m=e[4],p=e[5],g=e[6],y=e[7],w=e[8],v=(0,r.FD)();return Math.abs(n-h)<=v*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(o-M)<=v*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(a-d)<=v*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(u-b)<=v*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(i-m)<=v*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(l-p)<=v*Math.max(1,Math.abs(l),Math.abs(p))&&Math.abs(c-g)<=v*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(s-y)<=v*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(f-w)<=v*Math.max(1,Math.abs(f),Math.abs(w))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},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,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:h,fromRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[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:i,isOrthoNormal:function(t){let e=(0,r.FD)(),n=t[0],o=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8];return Math.abs(1-(n*n+u*u+c*c))<=e&&Math.abs(1-(o*o+i*i+s*s))<=e&&Math.abs(1-(a*a+l*l+f*f))<=e},mul:b,multiply:s,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:M,normalFromMat4Legacy:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[4],u=e[5],i=e[6],l=e[8],c=e[9],s=e[10],f=s*u-i*c,h=-s*a+i*l,M=c*a-u*l,d=n*f+r*h+o*M;if(!d)return null;let b=1/d;return t[0]=f*b,t[1]=(-s*r+o*c)*b,t[2]=(i*r-o*u)*b,t[3]=h*b,t[4]=(s*n-o*l)*b,t[5]=(-i*n+o*a)*b,t[6]=M*b,t[7]=(-c*n+r*l)*b,t[8]=(u*n-r*a)*b,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=Math.sin(n),M=Math.cos(n);return t[0]=M*r+h*u,t[1]=M*o+h*i,t[2]=M*a+h*l,t[3]=M*u-h*r,t[4]=M*i-h*o,t[5]=M*l-h*a,t[6]=c,t[7]=s,t[8]=f,t},scale:f,scaleByVec2:function(t,e,n){let r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:d,translate:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=n[0],M=n[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=i,t[5]=l,t[6]=h*r+M*u+c,t[7]=h*o+M*i+s,t[8]=h*a+M*l+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},58083(t,e,n){n.d(e,{$0:()=>p,$h:()=>U,B8:()=>s,C:()=>a,D_:()=>i,N9:()=>y,O7:()=>O,Qw:()=>c,Tl:()=>h,X_:()=>S,e$:()=>d,eL:()=>b,hM:()=>g,hZ:()=>u,hs:()=>M,kN:()=>m,l:()=>I,lw:()=>f,mg:()=>l,o1:()=>C,sC:()=>A,t2:()=>E,t5:()=>T,tZ:()=>_,ut:()=>F});var r=n(51850),o=n(34304);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function u(t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b,m){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=l,t[8]=c,t[9]=s,t[10]=f,t[11]=h,t[12]=M,t[13]=d,t[14]=b,t[15]=m,t}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function l(t,e){if(t===e){let n=e[1],r=e[2],o=e[3],a=e[6],u=e[7],i=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=o,t[13]=u,t[14]=i}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){return s(t,e)||i(t),t}function s(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15],g=n*i-r*u,y=n*l-o*u,w=n*c-a*u,v=r*l-o*i,A=r*c-a*i,S=o*c-a*l,I=s*b-f*d,C=s*m-h*d,O=s*p-M*d,U=f*m-h*b,T=f*p-M*b,x=h*p-M*m,E=g*x-y*T+w*U+v*O-A*C+S*I;return E?(E=1/E,t[0]=(i*x-l*T+c*U)*E,t[1]=(o*T-r*x-a*U)*E,t[2]=(b*S-m*A+p*v)*E,t[3]=(h*A-f*S-M*v)*E,t[4]=(l*O-u*x-c*C)*E,t[5]=(n*x-o*O+a*C)*E,t[6]=(m*w-d*S-p*y)*E,t[7]=(s*S-h*w+M*y)*E,t[8]=(u*T-i*O+c*I)*E,t[9]=(r*O-n*T-a*I)*E,t[10]=(d*A-b*w+p*g)*E,t[11]=(f*w-s*A-M*g)*E,t[12]=(i*C-u*U-l*I)*E,t[13]=(n*U-r*C+o*I)*E,t[14]=(b*y-d*v-m*g)*E,t[15]=(s*v-f*y+h*g)*E,t):null}function f(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=e[9],M=e[10],d=e[11],b=e[12],m=e[13],p=e[14],g=e[15],y=n[0],w=n[1],v=n[2],A=n[3];return t[0]=y*r+w*i+v*f+A*b,t[1]=y*o+w*l+v*h+A*m,t[2]=y*a+w*c+v*M+A*p,t[3]=y*u+w*s+v*d+A*g,y=n[4],w=n[5],v=n[6],A=n[7],t[4]=y*r+w*i+v*f+A*b,t[5]=y*o+w*l+v*h+A*m,t[6]=y*a+w*c+v*M+A*p,t[7]=y*u+w*s+v*d+A*g,y=n[8],w=n[9],v=n[10],A=n[11],t[8]=y*r+w*i+v*f+A*b,t[9]=y*o+w*l+v*h+A*m,t[10]=y*a+w*c+v*M+A*p,t[11]=y*u+w*s+v*d+A*g,y=n[12],w=n[13],v=n[14],A=n[15],t[12]=y*r+w*i+v*f+A*b,t[13]=y*o+w*l+v*h+A*m,t[14]=y*a+w*c+v*M+A*p,t[15]=y*u+w*s+v*d+A*g,t}function h(t,e,n){let r=n[0],o=n[1],a=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*a+e[12],t[13]=e[1]*r+e[5]*o+e[9]*a+e[13],t[14]=e[2]*r+e[6]*o+e[10]*a+e[14],t[15]=e[3]*r+e[7]*o+e[11]*a+e[15];else{let n=e[0],u=e[1],i=e[2],l=e[3],c=e[4],s=e[5],f=e[6],h=e[7],M=e[8],d=e[9],b=e[10],m=e[11];t[0]=n,t[1]=u,t[2]=i,t[3]=l,t[4]=c,t[5]=s,t[6]=f,t[7]=h,t[8]=M,t[9]=d,t[10]=b,t[11]=m,t[12]=n*r+c*o+M*a+e[12],t[13]=u*r+s*o+d*a+e[13],t[14]=i*r+f*o+b*a+e[14],t[15]=l*r+h*o+m*a+e[15]}return t}function M(t,e,n){let r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let u=r[0],i=r[1],l=r[2],c=Math.sqrt(u*u+i*i+l*l);if(c<=(0,o.FD)())return void a(t,e);c=1/c,u*=c,i*=c,l*=c;let s=Math.sin(n),f=Math.cos(n),h=1-f,M=e[0],d=e[1],b=e[2],m=e[3],p=e[4],g=e[5],y=e[6],w=e[7],v=e[8],A=e[9],S=e[10],I=e[11],C=u*u*h+f,O=i*u*h+l*s,U=l*u*h-i*s,T=u*i*h-l*s,x=i*i*h+f,E=l*i*h+u*s,F=u*l*h+i*s,_=i*l*h-u*s,P=l*l*h+f;t[0]=M*C+p*O+v*U,t[1]=d*C+g*O+A*U,t[2]=b*C+y*O+S*U,t[3]=m*C+w*O+I*U,t[4]=M*T+p*x+v*E,t[5]=d*T+g*x+A*E,t[6]=b*T+y*x+S*E,t[7]=m*T+w*x+I*E,t[8]=M*F+p*_+v*P,t[9]=d*F+g*_+A*P,t[10]=b*F+y*_+S*P,t[11]=m*F+w*_+I*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function b(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[4],u=e[5],i=e[6],l=e[7],c=e[8],s=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*o+c*r,t[5]=u*o+s*r,t[6]=i*o+f*r,t[7]=l*o+h*r,t[8]=c*o-a*r,t[9]=s*o-u*r,t[10]=f*o-i*r,t[11]=h*o-l*r,t}function m(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function p(t,e,n){if(0===e)return i(t);let r=n[0],a=n[1],u=n[2],l=Math.sqrt(r*r+a*a+u*u);if(l<=(0,o.FD)())return null;l=1/l,r*=l,a*=l,u*=l;let c=Math.sin(e),s=Math.cos(e),f=1-s;return t[0]=r*r*f+s,t[1]=a*r*f+u*c,t[2]=u*r*f-a*c,t[3]=0,t[4]=r*a*f-u*c,t[5]=a*a*f+s,t[6]=u*a*f+r*c,t[7]=0,t[8]=r*u*f+a*c,t[9]=a*u*f-r*c,t[10]=u*u*f+s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function w(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=r+r,l=o+o,c=a+a,s=r*i,f=r*l,h=r*c,M=o*l,d=o*c,b=a*c,m=u*i,p=u*l,g=u*c;return t[0]=1-(M+b),t[1]=f+g,t[2]=h-p,t[3]=0,t[4]=f-g,t[5]=1-(s+b),t[6]=d+m,t[7]=0,t[8]=h+p,t[9]=d-m,t[10]=1-(s+M),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function A(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){let n=e[0],r=e[1],o=e[2],a=e[4],u=e[5],i=e[6],l=e[8],c=e[9],s=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(a*a+u*u+i*i),t[2]=Math.sqrt(l*l+c*c+s*s),t}function I(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function C(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=e[3],l=o+o,c=a+a,s=u+u,f=o*l,h=o*c,M=o*s,d=a*c,b=a*s,m=u*s,p=i*l,g=i*c,y=i*s,w=r[0],v=r[1],A=r[2];return t[0]=(1-(d+m))*w,t[1]=(h+y)*w,t[2]=(M-g)*w,t[3]=0,t[4]=(h-y)*v,t[5]=(1-(f+m))*v,t[6]=(b+p)*v,t[7]=0,t[8]=(M+g)*A,t[9]=(b-p)*A,t[10]=(1-(f+d))*A,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function O(t,e,n,r,o){let a=e[0],u=e[1],i=e[2],l=e[3],c=a+a,s=u+u,f=i+i,h=a*c,M=a*s,d=a*f,b=u*s,m=u*f,p=i*f,g=l*c,y=l*s,w=l*f,v=r[0],A=r[1],S=r[2],I=o[0],C=o[1],O=o[2],U=(1-(b+p))*v,T=(M+w)*v,x=(d-y)*v,E=(M-w)*A,F=(1-(h+p))*A,_=(m+g)*A,P=(d+y)*S,q=(m-g)*S,D=(1-(h+b))*S;return t[0]=U,t[1]=T,t[2]=x,t[3]=0,t[4]=E,t[5]=F,t[6]=_,t[7]=0,t[8]=P,t[9]=q,t[10]=D,t[11]=0,t[12]=n[0]+I-(U*I+E*C+P*O),t[13]=n[1]+C-(T*I+F*C+q*O),t[14]=n[2]+O-(x*I+_*C+D*O),t[15]=1,t}function U(t,e,n,r,o,a,u){let i=1/(n-e),l=1/(o-r),c=1/(a-u);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(n+e)*i,t[9]=(o+r)*l,t[10]=(u+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*a*2*c,t[15]=0,t}function T(t,e,n,r){let a=e[0],u=e[1],l=e[2],c=a-n[0],s=u-n[1],f=l-n[2],h=(0,o.FD)();if(Math.abs(c)<h&&Math.abs(s)<h&&Math.abs(f)<h)return void i(t);let M=1/Math.sqrt(c*c+s*s+f*f);c*=M,s*=M,f*=M;let d=r[0],b=r[1],m=r[2],p=b*f-m*s,g=m*c-d*f,y=d*s-b*c;M=Math.sqrt(p*p+g*g+y*y),M?(M=1/M,p*=M,g*=M,y*=M):(p=0,g=0,y=0);let w=s*y-f*g,v=f*p-c*y,A=c*g-s*p;M=Math.sqrt(w*w+v*v+A*A),M?(M=1/M,w*=M,v*=M,A*=M):(w=0,v=0,A=0),t[0]=p,t[1]=w,t[2]=c,t[3]=0,t[4]=g,t[5]=v,t[6]=s,t[7]=0,t[8]=y,t[9]=A,t[10]=f,t[11]=0,t[12]=-(p*a+g*u+y*l),t[13]=-(w*a+v*u+A*l),t[14]=-(c*a+s*u+f*l),t[15]=1}function x(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function E(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function F(t){let e=(0,o.FD)(),n=t[0],r=t[1],a=t[2],u=t[4],i=t[5],l=t[6],c=t[8],s=t[9],f=t[10];return Math.abs(1-(n*n+u*u+c*c))<=e&&Math.abs(1-(r*r+i*i+s*s))<=e&&Math.abs(1-(a*a+l*l+f*f))<=e}function _(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const P=f,q=x;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15];return t[0]=i*(h*p-M*m)-f*(l*p-c*m)+b*(l*M-c*h),t[1]=-(r*(h*p-M*m)-f*(o*p-a*m)+b*(o*M-a*h)),t[2]=r*(l*p-c*m)-i*(o*p-a*m)+b*(o*c-a*l),t[3]=-(r*(l*M-c*h)-i*(o*M-a*h)+f*(o*c-a*l)),t[4]=-(u*(h*p-M*m)-s*(l*p-c*m)+d*(l*M-c*h)),t[5]=n*(h*p-M*m)-s*(o*p-a*m)+d*(o*M-a*h),t[6]=-(n*(l*p-c*m)-u*(o*p-a*m)+d*(o*c-a*l)),t[7]=n*(l*M-c*h)-u*(o*M-a*h)+s*(o*c-a*l),t[8]=u*(f*p-M*b)-s*(i*p-c*b)+d*(i*M-c*f),t[9]=-(n*(f*p-M*b)-s*(r*p-a*b)+d*(r*M-a*f)),t[10]=n*(i*p-c*b)-u*(r*p-a*b)+d*(r*c-a*i),t[11]=-(n*(i*M-c*f)-u*(r*M-a*f)+s*(r*c-a*i)),t[12]=-(u*(f*m-h*b)-s*(i*m-l*b)+d*(i*h-l*f)),t[13]=n*(f*m-h*b)-s*(r*m-o*b)+d*(r*h-o*f),t[14]=-(n*(i*m-l*b)-u*(r*m-o*b)+d*(r*l-o*i)),t[15]=n*(i*h-l*f)-u*(r*h-o*f)+s*(r*l-o*i),t},copy:a,determinant:function(t){let e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],l=t[7],c=t[8],s=t[9],f=t[10],h=t[11],M=t[12],d=t[13],b=t[14],m=t[15];return(e*u-n*a)*(f*m-h*b)-(e*i-r*a)*(s*m-h*d)+(e*l-o*a)*(s*b-f*d)+(n*i-r*u)*(c*m-h*M)-(n*l-o*u)*(c*b-f*M)+(r*l-o*i)*(c*d-s*M)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8],h=t[9],M=t[10],d=t[11],b=t[12],m=t[13],p=t[14],g=t[15],y=e[0],w=e[1],v=e[2],A=e[3],S=e[4],I=e[5],C=e[6],O=e[7],U=e[8],T=e[9],x=e[10],E=e[11],F=e[12],_=e[13],P=e[14],q=e[15],D=(0,o.FD)();return Math.abs(n-y)<=D*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-w)<=D*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(a-v)<=D*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(u-A)<=D*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(i-S)<=D*Math.max(1,Math.abs(i),Math.abs(S))&&Math.abs(l-I)<=D*Math.max(1,Math.abs(l),Math.abs(I))&&Math.abs(c-C)<=D*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(s-O)<=D*Math.max(1,Math.abs(s),Math.abs(O))&&Math.abs(f-U)<=D*Math.max(1,Math.abs(f),Math.abs(U))&&Math.abs(h-T)<=D*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(M-x)<=D*Math.max(1,Math.abs(M),Math.abs(x))&&Math.abs(d-E)<=D*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(b-F)<=D*Math.max(1,Math.abs(b),Math.abs(F))&&Math.abs(m-_)<=D*Math.max(1,Math.abs(m),Math.abs(_))&&Math.abs(p-P)<=D*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(g-q)<=D*Math.max(1,Math.abs(g),Math.abs(q))},exactEquals:E,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n+n,i=r+r,l=o+o,c=n*u,s=r*u,f=r*i,h=o*u,M=o*i,d=o*l,b=a*u,m=a*i,p=a*l;return t[0]=1-f-d,t[1]=s+p,t[2]=h-m,t[3]=0,t[4]=s-p,t[5]=1-c-d,t[6]=M+b,t[7]=0,t[8]=h+m,t[9]=M-b,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=v,r=-e[0],o=-e[1],a=-e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=r*r+o*o+a*a+u*u;return f>0?(n[0]=2*(i*u+s*r+l*a-c*o)/f,n[1]=2*(l*u+s*o+c*r-i*a)/f,n[2]=2*(c*u+s*a+i*o-l*r)/f):(n[0]=2*(i*u+s*r+l*a-c*o),n[1]=2*(l*u+s*o+c*r-i*a),n[2]=2*(c*u+s*a+i*o-l*r)),w(t,e,n),t},fromRotation:p,fromRotationTranslation:w,fromRotationTranslationScale:C,fromRotationTranslationScaleOrigin:O,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:m,fromXRotation:g,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:y,frustum:U,getRotation:I,getScale:S,getTranslation:A,hasIdentityRotation:_,identity:i,invert:s,invertOrIdentity:c,isOrthoNormal:F,lookAt:T,mul:P,multiply:f,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,a,u){let i=1/(e-n),l=1/(r-o),c=1/(a-u);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*i,t[13]=(o+r)*l,t[14]=(u+a)*c,t[15]=1,t},perspective:function(t,e,n,r,o){let a,u=1/Math.tan(e/2);return t[0]=u/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(a=1/(r-o),t[10]=(o+r)*a,t[14]=2*o*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let o=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),u=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),l=2/(u+i),c=2/(o+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(u-i)*l*.5,t[9]=(o-a)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:b,rotateY:function(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[0],u=e[1],i=e[2],l=e[3],c=e[8],s=e[9],f=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o-c*r,t[1]=u*o-s*r,t[2]=i*o-f*r,t[3]=l*o-h*r,t[8]=a*r+c*o,t[9]=u*r+s*o,t[10]=i*r+f*o,t[11]=l*r+h*o,t},rotateZ:function(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[0],u=e[1],i=e[2],l=e[3],c=e[4],s=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o+c*r,t[1]=u*o+s*r,t[2]=i*o+f*r,t[3]=l*o+h*r,t[4]=c*o-a*r,t[5]=s*o-u*r,t[6]=f*o-i*r,t[7]=h*o-l*r,t},scale:M,set:u,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:q,subtract:x,targetTo:function(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=r[0],l=r[1],c=r[2],s=o-n[0],f=a-n[1],h=u-n[2],M=s*s+f*f+h*h;M>0&&(M=1/Math.sqrt(M),s*=M,f*=M,h*=M);let d=l*h-c*f,b=c*s-i*h,m=i*f-l*s;return M=d*d+b*b+m*m,M>0&&(M=1/Math.sqrt(M),d*=M,b*=M,m*=M),t[0]=d,t[1]=b,t[2]=m,t[3]=0,t[4]=f*m-h*b,t[5]=h*d-s*m,t[6]=s*b-f*d,t[7]=0,t[8]=s,t[9]=f,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=u,t[15]=1,t},translate:h,transpose:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>C,Bw:()=>a,C:()=>u,Cc:()=>O,DI:()=>A,Io:()=>g,Ln:()=>p,Om:()=>I,Qr:()=>f,Re:()=>c,S8:()=>S,T9:()=>b,WQ:()=>l,Z0:()=>U,_S:()=>M,aI:()=>q,ei:()=>T,fw:()=>E,gL:()=>x,hG:()=>y,hZ:()=>i,hs:()=>m,jk:()=>d,lw:()=>s,m3:()=>w,oW:()=>D,t2:()=>P,tn:()=>h,ze:()=>v});var r=n(51850),o=n(34304);function a(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function M(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function b(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function p(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function g(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function y(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function w(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e=t){let n=e[0],r=e[1],o=e[2],a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2];return t[0]=o*l-a*i,t[1]=a*u-r*l,t[2]=r*i-o*u,t}function O(t,e,n,r){let o=e[0],a=e[1],u=e[2];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=u+r*(n[2]-u),t}function U(t,e,n){let r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12],t[1]=n[1]*r+n[5]*o+n[9]*a+n[13],t[2]=n[2]*r+n[6]*o+n[10]*a+n[14],t}function T(t,e,n){let r=e[0],o=e[1],a=e[2];return t[0]=r*n[0]+o*n[3]+a*n[6],t[1]=r*n[1]+o*n[4]+a*n[7],t[2]=r*n[2]+o*n[5]+a*n[8],t}function x(t,e,n){return E(t,e,n[0],n[1],n[2],n[3])}function E(t,e,n,r,o,a){let u=e[0],i=e[1],l=e[2],c=r*l-o*i,s=o*u-n*l,f=n*i-r*u,h=r*f-o*s,M=o*c-n*f,d=n*s-r*c,b=2*a;return t[0]=u+c*b+2*h,t[1]=i+s*b+2*M,t[2]=l+f*b+2*d,t}const F=(0,r.vt)(),_=(0,r.vt)();function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function q(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],u=e[0],i=e[1],l=e[2],c=(0,o.FD)();return Math.abs(n-u)<=c*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-i)<=c*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))}function D(t,e,n){let r=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2],u=r*r+o*o+a*a;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=o*u,t[2]=a*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const k=c,j=s,R=f,z=g,N=y,B=a,L=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:l,angle:function(t,e){S(F,t),S(_,e);let n=I(F,_);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,o,a){let u=1-a,i=u*u,l=a*a,c=i*u,s=3*a*i,f=3*l*u,h=l*a;return t[0]=e[0]*c+n[0]*s+r[0]*f+o[0]*h,t[1]=e[1]*c+n[1]*s+r[1]*f+o[1]*h,t[2]=e[2]*c+n[2]*s+r[2]*f+o[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:u,cross:C,crossAndNormalize:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2],c=o*l-a*i,s=a*u-r*l,f=r*i-o*u,h=Math.sqrt(c*c+s*s+f*f);return t[0]=c/h,t[1]=s/h,t[2]=f/h,t},direction:D,dist:z,distance:g,div:R,divide:f,dot:I,equals:q,exactEquals:P,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,a){let u=a*a,i=u*(2*a-3)+1,l=u*(a-2)+a,c=u*(a-1),s=u*(3-2*a);return t[0]=e[0]*i+n[0]*l+r[0]*c+o[0]*s,t[1]=e[1]*i+n[1]*l+r[1]*c+o[1]*s,t[2]=e[2]*i+n[2]*l+r[2]*c+o[2]*s,t},inverse:A,len:B,length:a,lerp:O,max:b,min:d,mul:j,multiply:s,negate:v,normalize:S,random:function(t,e=1){let n=o.Ov,r=2*n()*Math.PI,a=2*n()-1,u=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=a*e,t},rotateX:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:p,scaleTo:function(t,e){return m(t,t,e/B(t))},set:i,sign:M,sqrDist:N,sqrLen:L,squaredDistance:y,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:k,subtract:c,transformMat3:T,transformMat4:U,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:x,transformQuatValues:E},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,B,"jb",0,k,"lo",0,N,"uE",0,L])},78955(t,e,n){n.d(e,{Bw:()=>m,C:()=>o,Cc:()=>w,LI:()=>h,Om:()=>y,S8:()=>g,T9:()=>f,WQ:()=>u,Z0:()=>v,aI:()=>S,hG:()=>b,hZ:()=>a,hs:()=>M,jk:()=>s,m3:()=>p,t2:()=>A});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function s(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function f(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function h(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function M(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function d(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+r*r+o*o+a*a)}function b(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+o*o+a*a}function m(t){let e=t[0],n=t[1],r=t[2],o=t[3];return Math.sqrt(e*e+n*n+r*r+o*o)}function p(t){let e=t[0],n=t[1],r=t[2],o=t[3];return e*e+n*n+r*r+o*o}function g(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n*n+r*r+o*o+a*a;return u>0&&(u=1/Math.sqrt(u),t[0]=n*u,t[1]=r*u,t[2]=o*u,t[3]=a*u),t}function y(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function w(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=e[3];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=u+r*(n[2]-u),t[3]=i+r*(n[3]-i),t}function v(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12]*u,t[1]=n[1]*r+n[5]*o+n[9]*a+n[13]*u,t[2]=n[2]*r+n[6]*o+n[10]*a+n[14]*u,t[3]=n[3]*r+n[7]*o+n[11]*a+n[15]*u,t}function A(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function S(t,e){let n=t[0],o=t[1],a=t[2],u=t[3],i=e[0],l=e[1],c=e[2],s=e[3],f=(0,r.FD)();return Math.abs(n-i)<=f*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-l)<=f*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(a-c)<=f*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(u-s)<=f*Math.max(1,Math.abs(u),Math.abs(s))}const I=i,C=l,O=c,U=d,T=b,x=m,E=p;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:o,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:U,distance:d,div:O,divide:c,dot:y,equals:S,exactEquals:A,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:x,length:m,lerp:w,max:f,min:s,mul:C,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:g,random:function(t,e=1){let n,o,a,u,i,l,c=r.Ov;do{n=2*c()-1,o=2*c()-1,i=n*n+o*o}while(i>=1);do{a=2*c()-1,u=2*c()-1,l=a*a+u*u}while(l>=1);let s=Math.sqrt((1-i)/l);return t[0]=e*n,t[1]=e*o,t[2]=e*a*s,t[3]=e*u*s,t},round:h,scale:M,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},set:a,sqrDist:T,sqrLen:E,squaredDistance:b,squaredLength:p,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:I,subtract:i,transformMat4:v,transformQuat:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2],c=n[3],s=c*r+i*a-l*o,f=c*o+l*r-u*a,h=c*a+u*o-i*r,M=-u*r-i*o-l*a;return t[0]=s*c+M*-u+f*-l-h*-i,t[1]=f*c+M*-i+h*-u-s*-l,t[2]=h*c+M*-l+s*-i-f*-u,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},34727(t,e,n){n.d(e,{$8:()=>S,Cc:()=>u,Hx:()=>b,Io:()=>v,KJ:()=>c,OS:()=>O,Sp:()=>h,XM:()=>s,YN:()=>f,ZH:()=>d,b6:()=>A,cU:()=>o,gg:()=>M,hs:()=>i,kU:()=>l,or:()=>C,pF:()=>T,qE:()=>a});const r=new Float32Array(1);function o(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function a(t,e,n){return Math.min(Math.max(t,e),n)}function u(t,e,n){return t+(e-t)*n}function i(t,e,n,r,o){return u(r,o,(t-e)/(n-e))}function l(t){return t*Math.PI/180}function c(t){return 180*t/Math.PI}function s(t){return Math.acos(a(t,-1,1))}function f(t){return Math.asin(a(t,-1,1))}function h(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}function M(t,e,n=1e-6){return!h(t,e,n)&&t>e}function d(t,e,n=1e-6){return!h(t,e,n)&&t<e}function b(t,e,n=1e-6){return h(t,e,n)||t>e}const m=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function p(t){return m.setFloat64(0,t),m.getBigInt64(0)}const g=1000000n,y=w(1);function w(t){let e=p(t=Math.abs(t)),n=function(t){return m.setBigInt64(0,t),m.getFloat64(0)}(e<=g?g:e-g);return Math.abs(t-n)}function v(t,e,n=y){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=n&&w(Math.min(Math.abs(t),Math.abs(e)))<n)return Math.abs(t-e)<=n;let r=p(t),o=p(e);return!(r<0!=o<0||(r<o?o-r:r-o)>g)}function A(t,e,n=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;let r=Math.abs(t-e),o=Math.abs(t),a=Math.abs(e);if(0===t||0===e||o<1e-12&&a<1e-12){if(r>.01*n)return!1}else if(r/(o+a)>n)return!1;return!0}function S(t){return I(Math.max(-U,Math.min(t,U)))}function I(t){return r[0]=t,r[0]}function C(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=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!(h(e,1)&&h(n,1)&&h(r,1))}function O(t,e){return(t%e+e)%e}const U=I(34028234663852886e22);function T(t,e,n){if(void 0===n||0==+n)return Math[t](e);if(e=+e,n=+n,isNaN(e)||"number"!=typeof n||n%1!=0)return NaN;let r=e.toString().split("e");return r=(e=Math[t](+(r[0]+"e"+(r[1]?+r[1]-n:-n)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+n:n))}n.d(e,["pq",0,U])},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>o});var r=n(37539);function o(t,e,n,o,a,u,i=Math.floor(t.length/3)){let l=(0,r.jd)(e,a);if(null==l)return!1;if(l===r.pO){if(t===o&&n===u)return!0;let e=n+3*i;for(let r=n,a=u;r<e;r++,a++)o[a]=t[r]??0;return!0}let c=n+3*i;for(let e=n,r=u;e<c;e+=3,r+=3)l(t,e,o,r);return!0}},37539(t,e,n){n.d(e,{pO:()=>m,jd:()=>h,Tp:()=>M,wy:()=>d,w5:()=>f,s7:()=>w});var r=n(34727),o=n(86211),a=n(73941),u=n(79258);Math.PI;const i=u.$O.radius,l=u.$O.eccentricitySquared,c={a1:i*l,a2:i*l*i*l,a3:i*l*l/2,a4:i*l*i*l*2.5,a5:i*l+i*l*l/2,a6:1-l};u.$O.radius,u.$O.flattening,u.Sw.radius,u.Sw.flattening,u.sH.radius,u.sH.flattening,u.sH.radius;var s=n(21325);const f={2:{5:m,7:null,9:null,10:m,1:U,6:null,8:null,0:null,3:w,11:v,2:m,4:q},5:{5:m,7:null,9:null,10:m,1:U,6:null,8:null,0:null,3:w,11:v,2:m,4:q},7:{5:null,7:m,9:null,10:m,1:null,6:O,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:C,0:null,3:null,11:null,2:null,4:null},3:{5:p,7:null,9:null,10:p,1:g,6:null,8:null,0:null,3:m,11:S,2:p,4:y},4:{5:D,7:null,9:null,10:D,1:k,6:null,8:null,0:null,3:j,11:function(t,e,n,r){D(t,e,n,r),v(n,r,n,r)},2:D,4:m},1:{5:F,7:null,9:null,10:F,1:m,6:null,8:null,0:null,3:_,11:function(t,e,n,r){F(t,e,n,r),v(n,r,n,r)},2:F,4:P},6:{5:null,7:E,9:null,10:E,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:x,10:x,1:null,6:null,8:m,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:U,6:O,8:C,0:null,3:w,11:v,2:m,4:q},11:{5:A,7:null,9:null,10:A,1:function(t,e,n,r){A(t,e,n,r),U(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){A(t,e,n,r),w(n,r,n,r)},11:m,2:A,4:function(t,e,n,r){A(t,e,n,r),q(n,r,n,r)}}};function h(t,e){return M(t,e)?.projector}function M(t,e){if(null==t||null==e)return null;if(R.source.spatialReference===t&&R.dest.spatialReference===e)return R;let n=b(t,R.source),r=b(e,R.dest);return 0===n&&0===r?(0,s.aI)(t,e)?R.projector=m:R.projector=null:R.projector=f[n][r],R}function d(t,e){switch(h(t,e)){case m:return"copy3";case U:return"wgs84ToSphericalECEF";case w:return"wgs84ToWebMercator";case v:return"wgs84ToPlateCarree";case q:return"wgs84ToWGS84ECEF";case p:return"webMercatorToWGS84";case g:return"webMercatorToSphericalECEF";case y:return"webMercatorToWGS84ECEF";case S:return"webMercatorToPlateCarree";case D:return"wgs84ECEFToWGS84";case k:return"wgs84ECEFToSphericalECEF";case j:return"wgs84ECEFToWebMercator";case F:return"sphericalECEFToWGS84";case _:return"sphericalECEFToWebMercator";case E:return"sphericalMarsPCPFToMars2000";case x:return"sphericalMoonPCPFToMoon2000";case P:return"sphericalECEFToWGS84ECEF";case O:return"mars2000ToSphericalPCPF";case C:return"moon2000ToSphericalPCPF";default:return null}}function b(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,s.EA)(t)?1:(0,o.GA)(t,1)),e.spatialReferenceId=(0,a.jA)(t)?1:(0,s.oT)(t)?2:(0,s.K8)(t)?3:(0,s.r1)(t)?11:t.wkt===a.Ro.wkt?4:4490===t.wkid?5:t.wkt===a.FY.wkt?6:t.wkt===a.LJ.wkt?8:(0,a.q8)(t)?7:(0,a.KQ)(t)?9:0):0}function m(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function p(t,e,n,r){n[r]=N*(t[e]/L),n[r+1]=N*(B-2*Math.atan(Math.exp(-t[e+1]/L))),n[r+2]=t[e+2]??0}function g(t,e,n,r){let o=t[e]/L,a=B-2*Math.atan(Math.exp(-t[e+1]/L)),u=L+(t[e+2]??0),i=Math.cos(a)*u;n[r]=Math.cos(o)*i,n[r+1]=Math.sin(o)*i,n[r+2]=Math.sin(a)*u}function y(t,e,n,r){p(t,e,n,r),q(n,r,n,r)}function w(t,e,n,o){!function(t,e,n,o,a){let u=.4999999*Math.PI,i=(0,r.qE)(z*t[e+1],-u,u),l=Math.sin(i);n[o++]=z*t[e]*a.radius,n[o++]=a.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[o]=t[e+2]??0}(t,e,n,o,u.$O)}function v(t,e,n,r){n[r]=t[e]*Y,n[r+1]=t[e+1]*Y,n[r+2]=t[e+2]??0}function A(t,e,n,r){n[r]=t[e]*Z,n[r+1]=t[e+1]*Z,n[r+2]=t[e+2]??0}function S(t,e,n,r){p(t,e,n,r),v(n,r,n,r)}function I(t,e,n,r,o){let a=o+(t[e+2]??0),u=z*t[e],i=z*t[e+1],l=Math.cos(i)*a;n[r]=Math.cos(u)*l,n[r+1]=Math.sin(u)*l,n[r+2]=Math.sin(i)*a}function C(t,e,n,r){I(t,e,n,r,u.Sw.radius)}function O(t,e,n,r){I(t,e,n,r,u.sH.radius)}function U(t,e,n,r){I(t,e,n,r,u.$O.radius)}function T(t,e,n,o,a){let u=t[e],i=t[e+1],l=t[e+2]??0,c=Math.sqrt(u*u+i*i+l*l),s=(0,r.YN)(l/(0===c?1:c)),f=Math.atan2(i,u);n[o++]=N*f,n[o++]=N*s,n[o]=c-a}function x(t,e,n,r){T(t,e,n,r,u.Sw.radius)}function E(t,e,n,r){T(t,e,n,r,u.sH.radius)}function F(t,e,n,r){T(t,e,n,r,u.$O.radius)}function _(t,e,n,r){F(t,e,n,r),w(n,r,n,r)}function P(t,e,n,r){F(t,e,n,r),q(n,r,n,r)}function q(t,e,n,r){!function(t,e,n,r,o){let a=z*t[e],u=z*t[e+1],i=t[e+2]??0,l=Math.sin(u),c=Math.cos(u),s=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);n[r++]=(s+i)*c*Math.cos(a),n[r++]=(s+i)*c*Math.sin(a),n[r++]=(s*(1-o.eccentricitySquared)+i)*l}(t,e,n,r,u.$O)}function D(t,e,n,r){let o,a,i,l,s,f,h,M,d,b,m,p,g,y,w,v,A,S,I,C,O,U=c,T=t[e],x=t[e+1],E=t[e+2]??0;o=Math.abs(E),a=T*T+x*x,i=Math.sqrt(a),l=a+E*E,s=Math.sqrt(l),C=Math.atan2(x,T),f=E*E/l,h=a/l,y=U.a2/s,w=U.a3-U.a4/s,h>.3?(M=o/s*(1+h*(U.a1+y+f*w)/s),I=Math.asin(M),b=M*M,d=Math.sqrt(1-b)):(d=i/s*(1-f*(U.a5-y-h*w)/s),I=Math.acos(d),b=1-d*d,M=Math.sqrt(b)),m=1-u.$O.eccentricitySquared*b,p=u.$O.radius/Math.sqrt(m),g=U.a6*p,y=i-p*d,w=o-g*M,A=d*y+M*w,v=d*w-M*y,S=v/(g/m+A),I+=S,O=A+v*S/2,E<0&&(I=-I),n[r++]=N*C,n[r++]=N*I,n[r]=O}function k(t,e,n,r){D(t,e,n,r),U(n,r,n,r)}function j(t,e,n,r){D(t,e,n,r),w(n,r,n,r)}const R={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},z=(0,r.kU)(1),N=(0,r.KJ)(1),B=.5*Math.PI,L=u.$O.radius,Y=L*Math.PI/180,Z=180/(L*Math.PI)},98764(t,e,n){n.d(e,{lO:()=>s});var r=n(73941),o=n(16930),a=n(21325);const u=new o.A(r.fv),i=new o.A(r.FY),l=new o.A(r.LJ),c=new o.A(r.Ro);function s(t){let e=f.get(t);if(e)return e;let n=u;if(t)if(t===i)n=i;else if(t===l)n=l;else{let e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,a.tl)(e)||(0,a.tl)(r)?n=i:((0,a.ZL)(e)||(0,a.ZL)(r))&&(n=l);else{let e=t.wkt2??t.wkt;if(e){let t=e.toUpperCase();t===h?n=i:t===M&&(n=l)}}}return f.set(t,n),n}const f=new Map,h=i.wkt.toUpperCase(),M=l.wkt.toUpperCase();n.d(e,["GD",0,u,"Y0",0,c])},64798(t,e,n){n.r(e),n.d(e,{default:()=>q});var r=n(4576),o=n(34275),a=n(82534),u=n(35522);function i(){return new Float32Array(3)}function l(t){let e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function c(t,e,n){let r=new Float32Array(3);return r[0]=t,r[1]=e,r[2]=n,r}function s(){return i()}function f(){return c(1,1,1)}function h(){return c(1,0,0)}function M(){return c(0,1,0)}function d(){return c(0,0,1)}const b=s(),m=f(),p=h(),g=M(),y=d();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:p,UNIT_Y:g,UNIT_Z:y,ZEROS:b,clone:l,create:i,fromValues:c,ones:f,unitX:h,unitY:M,unitZ:d,zeros:s},Symbol.toStringTag,{value:"Module"}));var w=n(51850),v=n(16930),A=n(9762),S=n(63531),I=n(69846),C=n(48425),O=n(59418),U=n(37203);function T(t,e,n){return t?.attributeInfo.useElevation?e?function(t,e){let n=new Float64Array(e);for(let r=0;r<e;r++)n[r]=t[3*r+2];return n}(e,n):null:t?.attributeInfo.storageInfo?(0,O.m0)(t.attributeInfo.storageInfo,t.buffer,n,!0):null}function x(t){switch(t){default:case null:case"none":return t=>t;case"low-four-bit":return t=>15&t;case"high-four-bit":return t=>(240&t)>>4;case"absolute-value":return t=>Math.abs(t);case"modulo-ten":return t=>t%10}}function E(t){let e=0;for(let n of t||[])e|=1<<n;return e}var F=n(57005);class _{transform(t){let e=this._transform(t),n=[e.points.buffer,e.rgb.buffer];null!=e.pointIdFilterMap&&n.push(e.pointIdFilterMap.buffer);for(let t of e.attributes)"buffer"in t.values&&(0,o.mw)(t.values.buffer)&&t.values.buffer!==e.rgb.buffer&&n.push(t.values.buffer);return Promise.resolve({result:e,transferList:n})}_transform(t){let e=function(t,e){if(null==t.encoding||""===t.encoding){let n=(0,O.wH)(e,t);if(null==n.vertexAttributes.position)return;let r=(0,O.MA)(e,n.vertexAttributes.position),o=n.header.fields,a=[o.offsetX,o.offsetY,o.offsetZ],u=[o.scaleX,o.scaleY,o.scaleZ],i=r.length/3,l=new Float64Array(3*i);for(let t=0;t<i;t++)l[3*t]=r[3*t]*u[0]+a[0],l[3*t+1]=r[3*t+1]*u[1]+a[1],l[3*t+2]=r[3*t+2]*u[2]+a[2];return l}if("lepcc-xyz"===t.encoding)return(0,U.Me)(e).result}(t.schema,t.geometryBuffer),n=e.length/3,o=null,a=[],s=T(t.primaryAttributeData,e,n);null!=t.primaryAttributeData&&s&&a.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:s});let f=T(t.modulationAttributeData,e,n);null!=t.modulationAttributeData&&f&&a.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:f});let h=function(t,e,n,r){let{rendererJSON:o,isRGBRenderer:a}=t,u=null,i=null;if(e&&a)u=e;else if(e&&"pointCloudUniqueValueRenderer"===o?.type){i=C.A.fromJSON(o);let t=i.colorUniqueValueInfos;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=(n?n(e[o]):e[o])+"";for(let e=0;e<t.length;e++)if(t[e].values.includes(r)){u[3*o]=t[e].color.r,u[3*o+1]=t[e].color.g,u[3*o+2]=t[e].color.b;break}}}else if(e&&"pointCloudStretchRenderer"===o?.type){i=I.A.fromJSON(o);let t=i.stops;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=n?n(e[o]):e[o],a=t.length-1;if(r<t[0].value)u[3*o]=t[0].color.r,u[3*o+1]=t[0].color.g,u[3*o+2]=t[0].color.b;else if(r>=t[a].value)u[3*o]=t[a].color.r,u[3*o+1]=t[a].color.g,u[3*o+2]=t[a].color.b;else for(let e=1;e<t.length;e++)if(r<t[e].value){let n=(r-t[e-1].value)/(t[e].value-t[e-1].value);u[3*o]=t[e].color.r*n+t[e-1].color.r*(1-n),u[3*o+1]=t[e].color.g*n+t[e-1].color.g*(1-n),u[3*o+2]=t[e].color.b*n+t[e-1].color.b*(1-n);break}}}else if(e&&"pointCloudClassBreaksRenderer"===o?.type){i=S.A.fromJSON(o);let t=i.colorClassBreakInfos;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=n?n(e[o]):e[o];for(let e=0;e<t.length;e++)if(r>=t[e].minValue&&r<=t[e].maxValue){u[3*o]=t[e].color.r,u[3*o+1]=t[e].color.g,u[3*o+2]=t[e].color.b;break}}}else u=new Uint8Array(3*r).fill(255);if(n&&i?.colorModulation){let t=i.colorModulation.minValue,e=i.colorModulation.maxValue,o=.3;for(let a=0;a<r;a++){let r=n[a],i=r>=e?1:r<=t?o:o+.7*(r-t)/(e-t);u[3*a]=i*u[3*a],u[3*a+1]=i*u[3*a+1],u[3*a+2]=i*u[3*a+2]}}return u}(t.rendererInfo,s,f,n);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){let u=t.filterAttributesData.filter(r.Ru).map(t=>{let r=T(t,e,n),o={attributeInfo:t.attributeInfo,values:r};return a.push(o),o});o=new Uint32Array(n),n=function(t,e,n,r,o){let a=t.length/3,u=function(t){return t.map(t=>{let{filterJSON:e}=t;switch(e.type){case"pointCloudValueFilter":return{...t,valuesSet:new Set(e.values)};case"pointCloudBitfieldFilter":return{...t,clearMask:E(e.requiredClearBits),requiredMask:E(e.requiredSetBits)};default:return t}})}(r),i=0;for(let r=0;r<a;r++){let a=!0;for(let t=0;t<u.length&&a;t++){let{clearMask:e,filterJSON:n,requiredMask:i,valuesSet:l}=u[t],c=o[t].values[r];switch(n.type){case"pointCloudValueFilter":{let t="exclude"===n.mode;l.has(c)===t&&(a=!1);break}case"pointCloudBitfieldFilter":((c&i)!==i||0!==(c&e))&&(a=!1);break;case"pointCloudReturnFilter":{let t=15&c,e=c>>>4&15,r=e>1,o=1===t,u=t===e,i=!1;for(let t of n.includedReturns)if("last"===t&&u||"firstOfMany"===t&&o&&r||"lastOfMany"===t&&u&&r||"single"===t&&!r){i=!0;break}i||(a=!1);break}}}a&&(n[i]=r,t[3*i]=t[3*r],t[3*i+1]=t[3*r+1],t[3*i+2]=t[3*r+2],e[3*i]=e[3*r],e[3*i+1]=e[3*r+1],e[3*i+2]=e[3*r+2],i++)}return i}(e,h,o,t.filterInfo,u)}for(let r of t.userAttributesData){let t=T(r,e,n);a.push({attributeInfo:r.attributeInfo,values:t})}3*n<h.length&&(h=h.slice(0,3*n)),function(t,e,n){if(0!==n)for(let r=0;r<e;r++)t[3*r+2]+=n}(e,n,t.elevationOffset);let M=function(t,e,n,r,o){if(!(0,A.projectBuffer)(t,r,0,t,o,0,e))throw Error("Can't reproject");let a=l(n.getCenter((0,w.vt)())),s=i(),f=i(),h=c(n.halfSizeX,n.halfSizeY,n.halfSizeZ);n.getQuaternionConjugate(P);let M=new Float32Array(3*e);for(let n=0;n<e;n++){let e=3*n;s[0]=t[e]-a[0],s[1]=t[e+1]-a[1],s[2]=t[e+2]-a[2],(0,u.gL)(f,s,P),h[0]=Math.max(h[0],Math.abs(f[0])),h[1]=Math.max(h[1],Math.abs(f[1])),h[2]=Math.max(h[2],Math.abs(f[2])),M[e++]=s[0],M[e++]=s[1],M[e]=s[2]}return n.setHalfSize(h),M}(e,n,F.ab.fromData(t.obbData),v.A.fromJSON(t.inSR),v.A.fromJSON(t.outSR));return{obbData:t.obbData,points:M,rgb:h,attributes:a,pointIdFilterMap:o}}}const P=(0,a.vt)();function q(){return new _}},59418(t,e,n){n.d(e,{qs:()=>m,wH:()=>b,MA:()=>h,E5:()=>M,m0:()=>g});var r=n(49186),o=n(4718),a=n(53966),u=n(34275),i=n(37203);const l=()=>a.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function c(t,e,n){let o="",a=0;for(;a<n;){let u=t[e+a];if(u<128)o+=String.fromCharCode(u),a++;else if(u>=192&&u<224){if(a+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");let i=(31&u)<<6|63&t[e+a+1];o+=String.fromCharCode(i),a+=2}else if(u>=224&&u<240){if(a+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let i=(15&u)<<12|(63&t[e+a+1])<<6|63&t[e+a+2];o+=String.fromCharCode(i),a+=3}else{if(!(u>=240&&u<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(a+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let i=(7&u)<<18|(63&t[e+a+1])<<12|(63&t[e+a+2])<<6|63&t[e+a+3];if(i>=65536){let t=55296+(i-65536>>10),e=56320+(1023&i);o+=String.fromCharCode(t,e)}else o+=String.fromCharCode(i);a+=4}}}return o}function s(t,e){let n={byteOffset:0,byteCount:0,fields:Object.create(null)},r=0;for(let o=0;o<e.length;o++){let a=e[o],u=a.valueType||a.type,i=w[u];n.fields[a.property]=i(t,r),r+=y[u].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(t,e,n){let o,a=[],u=0,i=0;for(;i<t;i+=1){if(o=e[i],o>0){if(a.push(c(n,u,o-1)),0!==n[u+o-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else a.push(null);u+=o}return a}function h(t,e){return new(0,y[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function M(t,e){if(!t)return null;let n=t[e];return(0,u.IY)(t)?-32768===n?null:n:(0,u._G)(t)?n===u.h2?null:n:n==n?n:null}function d(t,e,n){if(e!==t&&l().error(`Invalid ${n} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}function b(t,e){let n=s(t,e&&e.header),r=n.byteCount,o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},a=n.fields,u=null==a.vertexCount?a.count:a.vertexCount;for(let t of e.ordering){if(!e.vertexAttributes[t])continue;let n={...e.vertexAttributes[t],byteOffset:r,count:u},a=p[t]||"_"+t;o.vertexAttributes[a]=n,r+=A(n.valueType)*n.valuesPerElement*u}let i=a.faceCount;if(e.faces&&i){o.faces={};for(let t of e.ordering){if(!e.faces[t])continue;let n={...e.faces[t],byteOffset:r,count:i};o.faces[t]=n,r+=A(n.valueType)*n.valuesPerElement*i}}let l=a.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&l){o.featureAttributes={};for(let t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;let n={...e.featureAttributes[t],byteOffset:r,count:l};o.featureAttributes[t]=n,r+=("UInt64"===n.valueType?8:A(n.valueType))*n.valuesPerElement*l}}return d(r,t.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}function m(t,e){return t&&t.compressedAttributes&&"draco"===t.compressedAttributes.encoding?function(t){let e={isDraco:!0,isLegacy:!1,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let n of t)switch(n){case"position":break;case"normal":e.normal=!0;break;case"uv0":e.uv0=!0;break;case"color":e.color=!0;break;case"uv-region":e.uvRegion=!0;break;case"feature-index":e.featureIndex=!0}return e}(t.compressedAttributes.attributes):t?function(t){return{isDraco:!1,isLegacy:!1,color:null!=t.color,normal:null!=t.normal,uv0:null!=t.uv0,uvRegion:null!=t.uvRegion,featureIndex:null!=t.faceRange&&null!=t.featureId}}(t):function(t){let e={isDraco:!1,isLegacy:!0,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let n of t.ordering)if(t.vertexAttributes[n])switch(n){case"position":break;case"normal":e.normal=!0;break;case"color":e.color=!0;break;case"uv0":e.uv0=!0;break;case"region":e.uvRegion=!0}return t.featureAttributes&&t.featureAttributeOrder&&(e.featureIndex=!0),e}(e)}const p={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function g(t,e,n,a=!1){if("lepcc-rgb"===t.encoding)return a?(0,i.mb)(e):function(t){return Array.isArray(t)?t.length<1024?t:new Uint8Array(t):t.length<1024?Array.from(t):t}((0,i.mb)(e));if("lepcc-intensity"===t.encoding)return a?(0,i.Ax)(e):function(t){return Array.isArray(t)?t.length<1024?t:new Uint16Array(t):t.length<1024?Array.from(t):t}((0,i.Ax)(e));if(null!=t.encoding&&""!==t.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(l().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(l().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");let u=function(t,e,n){let a=null==e.header?{byteOffset:0,byteCount:0,fields:{count:n}}:s(t,e.header),u={header:a,byteOffset:a.byteCount,byteCount:0,entries:Object.create(null)},i=a.byteCount;for(let t=0;t<e.ordering.length;t++){let n=e.ordering[t],l=(0,o.o8)(e[n]);if(l.count=a.fields.count??0,"String"===l.valueType){if(l.byteOffset=i,l.byteCount=a.fields[n+"ByteCount"],"UTF-8"!==l.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!v(l.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{let t=A(l.valueType);i+=i%t===0?0:t-i%t,l.byteOffset=i,l.byteCount=t*l.valuesPerElement*l.count}}i+=l.byteCount??0,u.entries[n]=l}return u.byteCount=i-u.byteOffset,u}(e,t,n);d(u.byteOffset+u.byteCount,e.byteLength,"attribute");let c=u.entries.attributeValues||u.entries.objectIds;if(c){if("String"===c.valueType){let t=u.entries.attributeByteCounts,n=h(e,t),r=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,c);return c.timeEncoding?function(t,e,n){return f(t,e,n).map(t=>{let e=t?Date.parse(t):null;return null==e||Number.isNaN(e)?null:e})}(t.count,n,r):f(t.count,n,r)}return a?h(e,c):function(t,e){let n=h(t,e);if(n.length>=1024)return n;let r=[];return n.forEach((t,e)=>r.push(M(n,e))),r}(e,c)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},w={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function v(t){return y.hasOwnProperty(t)}function A(t){return v(t)?y[t].BYTES_PER_ELEMENT:0}},37203(t,e,n){n.d(e,{Ax:()=>c,Me:()=>a,mb:()=>l});var r=n(49186);function o(t,e,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,n+0,10)),version:e.getUint16(n+10,!0),checksum:e.getUint32(n+12,!0)}}function a(t){let e=new DataView(t,0),n=0,{identifier:a,version:i}=o(t,e,n);if(n+=16,"LEPCC "!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(i>1)throw new r.A("lepcc-decode-error","Unknown version");let l=(s=n,{sizeLo:(c=e).getUint32(s+0,!0),sizeHi:c.getUint32(s+4,!0),minX:c.getFloat64(s+8,!0),minY:c.getFloat64(s+16,!0),minZ:c.getFloat64(s+24,!0),maxX:c.getFloat64(s+32,!0),maxY:c.getFloat64(s+40,!0),maxZ:c.getFloat64(s+48,!0),errorX:c.getFloat64(s+56,!0),errorY:c.getFloat64(s+64,!0),errorZ:c.getFloat64(s+72,!0),count:c.getUint32(s+80,!0),reserved:c.getUint32(s+84,!0)});var c,s;if(n+=88,l.sizeHi*2**32+l.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let f=new Float64Array(3*l.count),h=[],M=[],d=[],b=[];if(n=u(t,n,h),n=u(t,n,M),n=u(t,n,d),n=u(t,n,b),n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad length");let m=0,p=0;for(let t=0;t<h.length;t++){p+=h[t];let e=0;for(let n=0;n<M[t];n++){e+=d[m];let t=b[m];f[3*m]=Math.min(l.maxX,l.minX+2*l.errorX*e),f[3*m+1]=Math.min(l.maxY,l.minY+2*l.errorY*p),f[3*m+2]=Math.min(l.maxZ,l.minZ+2*l.errorZ*t),m++}}return{errorX:l.errorX,errorY:l.errorY,errorZ:l.errorZ,result:f}}function u(t,e,n){let r=[];e=i(t,e,r);let o=[];for(let a=0;a<r.length;a++){o.length=0,e=i(t,e,o);for(let t=0;t<o.length;t++)n.push(o[t]+r[a])}return e}function i(t,e,n){let o=new DataView(t,e),a=o.getUint8(0),u=31&a,i=!!(32&a),l=(192&a)>>6,c=0;if(0===l)c=o.getUint32(1,!0),e+=5;else if(1===l)c=o.getUint16(1,!0),e+=3;else{if(2!==l)throw new r.A("lepcc-decode-error","Bad count type");c=o.getUint8(1),e+=2}if(i)throw new r.A("lepcc-decode-error","LUT not implemented");let s=Math.ceil(c*u/8),f=new Uint8Array(t,e,s),h=0,M=0,d=0,b=-1>>>32-u;for(let t=0;t<c;t++){for(;M<u;)h|=f[d]<<M,M+=8,d+=1;n[t]=h&b,h>>>=u,M-=u,M+u>32&&(h|=f[d-1]>>8-M)}return e+d}function l(t){let e=new DataView(t,0),n=0,{identifier:a,version:u}=o(t,e,n);if(n+=16,"ClusterRGB"!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");let i=(c=n,{sizeLo:(l=e).getUint32(c+0,!0),sizeHi:l.getUint32(c+4,!0),count:l.getUint32(c+8,!0),colorMapCount:l.getUint16(c+12,!0),lookupMethod:l.getUint8(c+14),compressionMethod:l.getUint8(c+15)});var l,c;if(n+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===i.lookupMethod||1===i.lookupMethod)&&0===i.compressionMethod){if(3*i.colorMapCount+i.count+n!==t.byteLength||i.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");let e=new Uint8Array(t,n,3*i.colorMapCount),o=new Uint8Array(t,n+3*i.colorMapCount,i.count),a=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++){let n=o[t];a[3*t]=e[3*n],a[3*t+1]=e[3*n+1],a[3*t+2]=e[3*n+2]}return a}if(0===i.lookupMethod&&0===i.compressionMethod){if(3*i.count+n!==t.byteLength||0!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(t,n).slice()}if(i.lookupMethod<=2&&1===i.compressionMethod){if(n+3!==t.byteLength||1!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");let o=e.getUint8(n),a=e.getUint8(n+1),u=e.getUint8(n+2),l=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++)l[3*t]=o,l[3*t+1]=a,l[3*t+2]=u;return l}throw new r.A("lepcc-decode-error","Bad method "+i.lookupMethod+","+i.compressionMethod)}function c(t){let e=new DataView(t,0),n=0,{identifier:a,version:u}=o(t,e,n);if(n+=16,"Intensity "!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");let l=(s=n,{sizeLo:(c=e).getUint32(s+0,!0),sizeHi:c.getUint32(s+4,!0),count:c.getUint32(s+8,!0),scaleFactor:c.getUint16(s+12,!0),bitsPerPoint:c.getUint8(s+14),reserved:c.getUint8(s+15)});var c,s;if(n+=16,l.sizeHi*2**32+l.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let f=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let e=new Uint8Array(t,n,l.count);for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let e=new Uint16Array(t,n,l.count);for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}else{let e=[];if(i(t,n,e)!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}return f}}}]);
|