@arcgis/core 5.2.0-next.36 → 5.2.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/02b043a3c5fa8bcb4c5b.js +1 -0
- package/assets/esri/core/workers/chunks/{acbc14395c31f6da509e.js → 03437a8ef35c200dbf17.js} +1 -1
- package/assets/esri/core/workers/chunks/034dd8ee5152a12412cd.js +1 -0
- package/assets/esri/core/workers/chunks/0a6e03263ab0906d8bcf.js +1 -0
- package/assets/esri/core/workers/chunks/0edd250159ec259601b3.js +1 -0
- package/assets/esri/core/workers/chunks/{401ee7fa500adad77db1.js → 1079914101d69a40b3eb.js} +1 -1
- package/assets/esri/core/workers/chunks/{c72121076e438ed28d60.js → 1599dc5309a4e60017ce.js} +2 -2
- package/assets/esri/core/workers/chunks/181e98399732f425305d.js +1 -0
- package/assets/esri/core/workers/chunks/{47d88e1b003c4519b7b6.js → 18f4b2099299942aaf97.js} +1 -1
- package/assets/esri/core/workers/chunks/196e7515a43bd0026f49.js +1 -0
- package/assets/esri/core/workers/chunks/1aa7496a7dc95aae11ac.js +1 -0
- package/assets/esri/core/workers/chunks/1d524690c4b66289bd20.js +1 -0
- package/assets/esri/core/workers/chunks/{f72f38e7609756a7f8ea.js → 20fa2c3d4360afa5e136.js} +1 -1
- package/assets/esri/core/workers/chunks/{03350a56f840cffe5459.js → 2757c4bf0280e27f3484.js} +1 -1
- package/assets/esri/core/workers/chunks/{93ceb74ac88ef460fe5f.js → 278409028bc5af45b507.js} +1 -1
- package/assets/esri/core/workers/chunks/{2c61bb25578f73ba49bc.js → 29a1d0659bbc5a039864.js} +1 -1
- package/assets/esri/core/workers/chunks/29df3f829006719b2680.js +1 -0
- package/assets/esri/core/workers/chunks/30cf84a47ebefd180bb7.js +1 -0
- package/assets/esri/core/workers/chunks/{71a593fa116770e58832.js → 37a95f097533bad1b338.js} +1 -1
- package/assets/esri/core/workers/chunks/{7335a762412bc8c15a2f.js → 37e823202424c11076cb.js} +1 -1
- package/assets/esri/core/workers/chunks/{ee446250a40e5d89bb5a.js → 3a76fffa2016c16d7989.js} +3 -3
- package/assets/esri/core/workers/chunks/{58ce4bcfb15f378b1b9f.js → 3d6d2b42ba2ad7086d5d.js} +1 -1
- package/assets/esri/core/workers/chunks/3ec91474658eae87b832.js +1 -0
- package/assets/esri/core/workers/chunks/448e0596005cba9a4225.js +1 -0
- package/assets/esri/core/workers/chunks/{f148666308071bdb185a.js → 45530a49fa1f09d1682e.js} +1 -1
- package/assets/esri/core/workers/chunks/{155940ef3d1888272d73.js → 459e89d1b94a3b204d20.js} +2 -2
- package/assets/esri/core/workers/chunks/{f71f5778e03f68f27482.js → 45b2e58051f42ebd236e.js} +1 -1
- package/assets/esri/core/workers/chunks/4611cf051c3c396fdf96.js +1 -0
- package/assets/esri/core/workers/chunks/{efaa1d05705f6b450e8f.js → 46e3d33e44e5398221e2.js} +1 -1
- package/assets/esri/core/workers/chunks/{866950e9ab96aebc6b32.js → 4a8201e09bc3ad5cc00b.js} +1 -1
- package/assets/esri/core/workers/chunks/{110135b0562a3b5708b9.js → 4abe820bbe4f7ffccc09.js} +1 -1
- package/assets/esri/core/workers/chunks/4ad86d6b1be07c97b6f6.js +1 -0
- package/assets/esri/core/workers/chunks/{20ffeb09bb30400de110.js → 4e28f49d0be20ea50fd7.js} +1 -1
- package/assets/esri/core/workers/chunks/4f25aac84d9eb10cac83.js +1 -0
- package/assets/esri/core/workers/chunks/{0197e459fdb04dfb28ef.js → 51838d55d8ec4ce70398.js} +1 -1
- package/assets/esri/core/workers/chunks/542d8a6c415098b9857c.js +1 -0
- package/assets/esri/core/workers/chunks/57abf838fcff0f0e2c5e.js +1 -0
- package/assets/esri/core/workers/chunks/57dd017fed2943d24e3d.js +1 -0
- package/assets/esri/core/workers/chunks/59801b2ccaaf4b394e02.js +1 -0
- package/assets/esri/core/workers/chunks/5a62c9f64db4fcae5e52.js +1 -0
- package/assets/esri/core/workers/chunks/{e84c13ac59e5381b77e2.js → 5aebecb5c2b3e7887127.js} +1 -1
- package/assets/esri/core/workers/chunks/{c19fe4f31e4ef84bbcf6.js → 5e68b74fd548c7cdba36.js} +1 -1
- package/assets/esri/core/workers/chunks/{9dcb2cbf89dcb7558432.js → 5f360492560ae07083a6.js} +1 -1
- package/assets/esri/core/workers/chunks/6022f43ebd58e21c737a.js +1 -0
- package/assets/esri/core/workers/chunks/62b137a795e487fa06a1.js +1 -0
- package/assets/esri/core/workers/chunks/{007485862ce95928717a.js → 632de34ebd2f44b4423d.js} +1 -1
- package/assets/esri/core/workers/chunks/{1ad5fcae6d6a9801cf58.js → 63ca17f569407c89bde1.js} +2 -2
- package/assets/esri/core/workers/chunks/6896a6dd36fa91a27151.js +1 -0
- package/assets/esri/core/workers/chunks/{e6263e1983e703befe48.js → 68bc674affe2f7269c40.js} +1 -1
- package/assets/esri/core/workers/chunks/{759686b896f51f0fe6a9.js → 6a51499c6623ddce5f00.js} +1 -1
- package/assets/esri/core/workers/chunks/6cdf1db30793133294dd.js +1 -0
- package/assets/esri/core/workers/chunks/{b0e4af49fc968b0a910f.js → 6ff6783f89ecd3a5e752.js} +1 -1
- package/assets/esri/core/workers/chunks/{857532de88f21e8c3466.js → 70763c7b68d8abe8d5fe.js} +1 -1
- package/assets/esri/core/workers/chunks/{e67a9f9298d63026e7f6.js → 716b1f073e3cd807abd3.js} +1 -1
- package/assets/esri/core/workers/chunks/71a3f05cb86ae2920f8d.js +1 -0
- package/assets/esri/core/workers/chunks/723bb56de2324b41df4e.js +1 -0
- package/assets/esri/core/workers/chunks/73f61107cb7e6d30bf03.js +1 -0
- package/assets/esri/core/workers/chunks/752c34cee981862add89.js +1 -0
- package/assets/esri/core/workers/chunks/760dfd585b6c2c1937ce.js +1 -0
- package/assets/esri/core/workers/chunks/{595401947e74a0a67144.js → 76449e50222111ba0eb1.js} +1 -1
- package/assets/esri/core/workers/chunks/76bed5497f42f23a27ed.js +1 -0
- package/assets/esri/core/workers/chunks/832ecc1f7d45774c4726.js +1 -0
- package/assets/esri/core/workers/chunks/860a0f9d20f53db1caf4.js +1 -0
- package/assets/esri/core/workers/chunks/867e39bb444947c93586.js +1 -0
- package/assets/esri/core/workers/chunks/8a8b7ac6693bdfbebf07.js +1 -0
- package/assets/esri/core/workers/chunks/8fce15ce4cfdccf407f3.js +1 -0
- package/assets/esri/core/workers/chunks/{5260f623438bd84f2caa.js → 937cf55b3b9d324eea73.js} +1 -1
- package/assets/esri/core/workers/chunks/93df864c2e829f0fd5ce.js +1 -0
- package/assets/esri/core/workers/chunks/{7b5e628ea3d4a51f1c4e.js → 966d002acec8c72be56a.js} +1 -1
- package/assets/esri/core/workers/chunks/{367a3031abbeff0c0090.js → 9aef0b87f471626abd66.js} +1 -1
- package/assets/esri/core/workers/chunks/{f1d211904d5a1de93cb3.js → 9ba9a3705623679bc305.js} +1 -1
- package/assets/esri/core/workers/chunks/{aec82b94787821153d2b.js → a188d0767825d322f96d.js} +1 -1
- package/assets/esri/core/workers/chunks/a638de0102c3990403d1.js +1 -0
- package/assets/esri/core/workers/chunks/b09935d0105d50a0971b.js +1 -0
- package/assets/esri/core/workers/chunks/b2c0262c4a76b8a86200.js +1 -0
- package/assets/esri/core/workers/chunks/{599bd80379423c99799d.js → b4323e69e624c6b51754.js} +1 -1
- package/assets/esri/core/workers/chunks/b5141f240ca79729686d.js +1 -0
- package/assets/esri/core/workers/chunks/b549a4d4b1a34bee8beb.js +1 -0
- package/assets/esri/core/workers/chunks/bb89b6fd93513c61b2d3.js +1 -0
- package/assets/esri/core/workers/chunks/{3bd32387af52fa48d747.js → bc553ecc8cbcc1b02717.js} +1 -1
- package/assets/esri/core/workers/chunks/bcba02f61cf0abcb5600.js +1 -0
- package/assets/esri/core/workers/chunks/{f63e7b01c70352538b1e.js → bd0f488e228a75fbefb3.js} +2 -2
- package/assets/esri/core/workers/chunks/c48dfda8dcb9551606fb.js +1 -0
- package/assets/esri/core/workers/chunks/c4e44fde4bc4ff89e2bc.js +1 -0
- package/assets/esri/core/workers/chunks/c93a68618674b38b932e.js +1 -0
- package/assets/esri/core/workers/chunks/d2745886ba5a86fd5c4c.js +680 -0
- package/assets/esri/core/workers/chunks/d4c341b15d9244276fb9.js +1 -0
- package/assets/esri/core/workers/chunks/d5faab9799891e5da5a8.js +1 -0
- package/assets/esri/core/workers/chunks/d811924acc9c0be95bba.js +1 -0
- package/assets/esri/core/workers/chunks/{4b96aa2dc5b88846bb53.js → e0a4d0288abd334b0673.js} +1 -1
- package/assets/esri/core/workers/chunks/{b22a1c98271c2e4d8808.js → e1ddb8e4977b317fd40c.js} +1 -1
- package/assets/esri/core/workers/chunks/e961c6140c39921816a8.js +1 -0
- package/assets/esri/core/workers/chunks/eb7daa0f6610983ff8db.js +1 -0
- package/assets/esri/core/workers/chunks/eb842cf470ce28a73187.js +1 -0
- package/assets/esri/core/workers/chunks/ed1d4ebf487c7dcd5c33.js +1 -0
- package/assets/esri/core/workers/chunks/f565e203d8fed2672112.js +1 -0
- package/assets/esri/core/workers/chunks/f80cadcc2a588da63b38.js +1 -0
- package/assets/esri/core/workers/chunks/f8bbb52b865a0a242140.js +1 -0
- package/assets/esri/core/workers/chunks/f9592bcdd9988199a7ea.js +1 -0
- package/assets/esri/core/workers/chunks/ff7e1eb2366d4301d288.js +1 -0
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/chunks/NavigationDepth.glsl.js +18 -0
- package/chunks/Path.glsl.js +20 -16
- package/config.js +1 -1
- package/core/accessorSupport/diffUtils.js +1 -1
- package/geometry/FlatGeometry.js +1 -1
- package/geometry/support/Indices.js +1 -1
- package/geometry/support/ShortArray.js +1 -1
- package/geometry/support/UintArray.js +1 -1
- package/geometry/support/meshUtils/geographicUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/mixins/PublishableLayer.js +1 -1
- package/layers/mixins/RefreshableLayer.js +1 -1
- package/layers/raster/functions/pixelUtils.js +1 -1
- package/layers/support/kustoUtils.js +1 -1
- package/package.json +1 -1
- package/popup/Feature.js +1 -1
- package/portal/support/resourceUtils.js +1 -1
- package/renderers/support/rasterTypeUtils.js +1 -1
- package/rest/query/operations/pbfFeatureSetUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/utils.js +1 -1
- package/tables/support/tablesUtils.js +1 -1
- package/views/2d/engine/flow/utils.js +1 -1
- package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/AlignedVertexSpec.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/features/layerAdapters/labelingUtils.js +1 -1
- package/views/2d/layers/support/annodime/dimensionUtils.js +1 -1
- package/views/2d/layers/support/annodime/utils.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/Lyr3DWasm.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/i3s/PointCloudRendererUtil.js +1 -1
- package/views/3d/layers/i3s/PointCloudWorkerUtil.js +1 -1
- package/views/3d/layers/support/lyr3dTypeConversions.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatAtlasPages.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/webgl-engine/core/material/MaterialBase.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +32 -16
- package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/calculateUVZShadowFromDepth.glsl.js +2 -2
- package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
- package/views/3d/webgl-engine/lib/Intersector.js +1 -1
- package/views/3d/webgl-engine/lib/NavigationDepthCache.js +2 -0
- package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
- package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
- package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/PathLayouts.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/NavigationDepth.glsl.js +2 -0
- package/views/3d/webgl-engine/shaders/NavigationDepthTechnique.js +2 -0
- package/views/3d/webgl-engine/shaders/oitResolution.glsl.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/support/euclideanLengthMeasurementUtils.js +1 -1
- package/views/support/selectionUtils.js +1 -1
- package/views/webgl/BufferObject.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/VertexAttributeLayouts.js +1 -1
- package/webscene/spec-certification/utils.js +1 -1
- package/widgets/Editor/legacy/workflowUtils.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/errors.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
- package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
- package/widgets/OrientedImageryViewer/utils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/PanoramicViewer/constants.js +1 -1
- package/widgets/PanoramicViewer/support/importUtils.js +1 -1
- package/widgets/PanoramicViewer/utils.js +1 -1
- package/widgets/support/dateUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0a2f08298a3c932614f2.js +0 -1
- package/assets/esri/core/workers/chunks/0df978697328b6453c94.js +0 -1
- package/assets/esri/core/workers/chunks/168c15cf462f9abcbdd2.js +0 -1
- package/assets/esri/core/workers/chunks/22c447fcc9a28afeb6e3.js +0 -1
- package/assets/esri/core/workers/chunks/24aa98cb2021ddd789ce.js +0 -1
- package/assets/esri/core/workers/chunks/2509da565e5a2b43ac7f.js +0 -1
- package/assets/esri/core/workers/chunks/256cc116e3be4feee593.js +0 -1
- package/assets/esri/core/workers/chunks/2bb3494659609594c4ca.js +0 -1
- package/assets/esri/core/workers/chunks/2c017eae434254610c8e.js +0 -1
- package/assets/esri/core/workers/chunks/303e723e829ea7088d43.js +0 -1
- package/assets/esri/core/workers/chunks/368db1420b8520beae05.js +0 -1
- package/assets/esri/core/workers/chunks/38a6a7c56c592f336a12.js +0 -1
- package/assets/esri/core/workers/chunks/39ff5b2a05a90e1cb214.js +0 -1
- package/assets/esri/core/workers/chunks/3b914ca36e7e2b00cfe6.js +0 -1
- package/assets/esri/core/workers/chunks/3e8fa2a7a36881234479.js +0 -1
- package/assets/esri/core/workers/chunks/451331f69d21c61ec93b.js +0 -1
- package/assets/esri/core/workers/chunks/4656a4bf430d7eed1465.js +0 -1
- package/assets/esri/core/workers/chunks/472ec242cd3070e6acfe.js +0 -1
- package/assets/esri/core/workers/chunks/51d7145f748b4865de7f.js +0 -1
- package/assets/esri/core/workers/chunks/54f54623532f633dc0e2.js +0 -1
- package/assets/esri/core/workers/chunks/570a4725b2a4a19c5148.js +0 -1
- package/assets/esri/core/workers/chunks/586ca90e46f5cbdfeece.js +0 -1
- package/assets/esri/core/workers/chunks/59c22bab85f9cdbb9948.js +0 -1
- package/assets/esri/core/workers/chunks/5dfeefee96659832398a.js +0 -1
- package/assets/esri/core/workers/chunks/6c746ac4bd2e57b8cb41.js +0 -1
- package/assets/esri/core/workers/chunks/6d72a1bdc2664df62c4c.js +0 -1
- package/assets/esri/core/workers/chunks/7085b4c655a19694da04.js +0 -1
- package/assets/esri/core/workers/chunks/777b16b76db406c99c69.js +0 -1
- package/assets/esri/core/workers/chunks/818a481ce579f519de1c.js +0 -1
- package/assets/esri/core/workers/chunks/85a280ee915010a8da3c.js +0 -1
- package/assets/esri/core/workers/chunks/86731e276b31453bc235.js +0 -1
- package/assets/esri/core/workers/chunks/87b86375f8557418dbe6.js +0 -1
- package/assets/esri/core/workers/chunks/8817d25c7f4cf0e6c6bd.js +0 -1
- package/assets/esri/core/workers/chunks/8a9b2efa0603e9fa4e8b.js +0 -1
- package/assets/esri/core/workers/chunks/8aa5bbf9a9b09815725a.js +0 -1
- package/assets/esri/core/workers/chunks/8b68a69ab8fb1679e7b2.js +0 -1
- package/assets/esri/core/workers/chunks/98685bd149dee1d6dc99.js +0 -1
- package/assets/esri/core/workers/chunks/9de673a04c70bd47047e.js +0 -1
- package/assets/esri/core/workers/chunks/9de9cec5c644bc452294.js +0 -1
- package/assets/esri/core/workers/chunks/9fb0431b0628dcb53004.js +0 -680
- package/assets/esri/core/workers/chunks/a2a688dd2ed4565e01ff.js +0 -1
- package/assets/esri/core/workers/chunks/a3ae7c41832c7a8b0570.js +0 -1
- package/assets/esri/core/workers/chunks/a3e86830460e52706a4d.js +0 -1
- package/assets/esri/core/workers/chunks/a58b8903ae17acf117d6.js +0 -1
- package/assets/esri/core/workers/chunks/a99ce2f12c8204ee542a.js +0 -1
- package/assets/esri/core/workers/chunks/ab3d1c00ef514b61ce0b.js +0 -1
- package/assets/esri/core/workers/chunks/ae5363956b4467208e04.js +0 -1
- package/assets/esri/core/workers/chunks/b24b7411a73d1da87c30.js +0 -1
- package/assets/esri/core/workers/chunks/b97b83159fec34f383af.js +0 -1
- package/assets/esri/core/workers/chunks/bec660ee2e7828f965e2.js +0 -1
- package/assets/esri/core/workers/chunks/c7316fd2bdb7ac9eada3.js +0 -1
- package/assets/esri/core/workers/chunks/ca7d4d76a6bf5a3046cd.js +0 -1
- package/assets/esri/core/workers/chunks/cffef41791f0cfa6c26c.js +0 -1
- package/assets/esri/core/workers/chunks/d26b1a9f47b4b2744c89.js +0 -1
- package/assets/esri/core/workers/chunks/d4a96f0402172787823a.js +0 -1
- package/assets/esri/core/workers/chunks/d9fcc63df008f687848a.js +0 -1
- package/assets/esri/core/workers/chunks/e3a4695c31d3f9d55213.js +0 -1
- package/assets/esri/core/workers/chunks/e65d291bab13f7f5323b.js +0 -1
- package/assets/esri/core/workers/chunks/eeee7421f64a52074ff4.js +0 -1
- package/assets/esri/core/workers/chunks/eef7e0bee19c4258ba55.js +0 -1
- package/assets/esri/core/workers/chunks/efaf998d18479a0380ae.js +0 -1
- package/assets/esri/core/workers/chunks/f0573db9a3d3e1499a7e.js +0 -1
- package/assets/esri/core/workers/chunks/f07722efd7fa2b75d4dd.js +0 -1
- package/assets/esri/core/workers/chunks/f137e544076482e348ad.js +0 -1
- package/assets/esri/core/workers/chunks/fd53ef66176ae164e221.js +0 -1
- package/assets/esri/core/workers/chunks/fd956a58787020d610af.js +0 -1
- package/rest/sharedTemplates/addSharedTemplates.js +0 -2
- package/support/featureFlags.js +0 -2
- package/views/2d/engine/webgl/ClippingInfo.js +0 -2
- package/views/2d/engine/webgl/Mesh2D.js +0 -2
- package/views/2d/engine/webgl/shaderGraph/GLSLShaderModule.js +0 -2
- package/views/2d/layers/features/ProcessorTileMessageQueue.js +0 -2
- package/views/3d/support/AsyncWorkerQueue.js +0 -2
- package/views/3d/webgl-engine/lib/PathGeometryData.js +0 -2
- package/widgets/BatchAttributeForm/templates/support/contingentValuesUtils.js +0 -2
- package/widgets/OrientedImageryViewer/components/NavigationAction.js +0 -2
- package/widgets/OrientedImageryViewer/components/NavigationActions.js +0 -2
- package/widgets/OrientedImageryViewer/support/NonPanoramicMediaCollection.js +0 -2
- package/widgets/PanoramicViewer/support/PanoramicMediaCollection.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1075,1948,6061],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(t,e,r){r.d(e,{JR:()=>O,ME:()=>E,MY:()=>P,NO:()=>M,Nh:()=>S,V2:()=>Y,_s:()=>b,e6:()=>w,gh:()=>_,tr:()=>X,uX:()=>p});var s=r(5482),n=r(69397),i=r(16930),a=r(19419),o=r(60408),u=r(21325),h=r(513),l=r(50954),c=r(79567),g=r(52006),m=r(49663),f=r(46068),x=r(92722);class p{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:u,segmentFlags:h,segmentIndices:l,segmentParams:c,segmentCountArc:g,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=l,this.segmentParams=c,this.segmentCountArc=g,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-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 t(t){return t?n.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=Y(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:l}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(h.subarray(0,e),0),o.vertexM?.set(l.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new v(this):[][Symbol.iterator]()}}class v{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=F(t),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class y{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new C(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class C{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=F(t)}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(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],u=e[r++];r++,r++;const h=e[r++],l=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[h,l]]};const c=2&s?0:1,g=1&s?0:1;return{a:[this.end,[o,u],c,g,a,n,i]}}}function M(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,s.mS)(r,new A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:o}=t,u=R(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new A(t,["vertexZ","vertexM"]),!1);const n=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,c.e)(n,t,r),t=(0,g.yP)(r)}const[i,o,h,l]=n;e={xmin:i,ymin:o,xmax:h,ymax:l,spatialReference:u}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:u}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function E(t){let e,r,s;if((0,o.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,u=[n,i];null!=a&&u.push(a),null!=o&&u.push(o),r=[[u]],e=1}else(0,o.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,Z(e[0],(0,g.yP)(e.at(-1)))&&--t),t),0));const n=Y(s,e,s.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,g.Ed)(t)),{hasZ:i,hasM:a,vertexXY:u,vertexZ:h,vertexM:l}=n;function c(t){u[2*f]=t[0],u[2*f+1]=t[1],i&&(h[f]=t[2]),a&&(l[f]=t[m]),++f}n.spatialReference=t.spatialReference??void 0;const m=n.hasZ?3:2;let f=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])u[2*f]=t,u[2*f+1]=e,++f;return n}for(const t of r[0])c(t);return n}const x="polygon"===s,{partOffsets:p}=n;let v=0;if(!(0,g.Ed)(t)){for(const t of r){if(p[v++]=f,0===t.length)continue;let e=t.length;if(x&&Z(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)c(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];u[2*f]=e,u[2*f+1]=s,++f}}return p[v]=f,n}function d(t){const e=y+t;if(e<=(n.segmentParams?.length??0))return;let r=e*k;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let y=0;for(const t of r){if(n.partOffsets[v++]=f,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];c(r);const i=f-1;(0,g.wY)(s)?(d(10),++n.segmentCountArc,y=b(r,s,n,i,y),r=s.a[0]):(0,g.DA)(s)?(d(10),++n.segmentCountArc,y=V(r,s,n,i,y),r=s.a[0]):(0,g.aO)(s)?(d(10),++n.segmentCountArc,y=w(r,s,n,i,y),r=s.c[0]):(0,g.n1)(s)?(d(4),++n.segmentCountBezier,y=X(0,s,n,i,y),r=s.b[0]):r=s}x&&Z(e,r)||c(r)}return n.partOffsets[v]=f,n}function _(t){const e=F(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=R(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const h=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);h.push(t)}return u?{rings:[],curveRings:h,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:h,hasZ:n,hasM:i,spatialReference:a}}function S(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const h=Y(t,u,a,s,n,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=r[e++],h.vertexXY[2*t+1]=r[e++],s&&(h.vertexZ[t]=r[e++]),n&&(h.vertexM[t]=r[e++]);return h}const l=2+Number(s)+Number(n);let c=0,g=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[g],i=e+t-Number(o);h.partOffsets[++g]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=r[c++],h.vertexXY[2*t+1]=r[c++],s&&(h.vertexZ[t]=r[c++]),n&&(h.vertexM[t]=r[c++]);o&&(c+=l)}return h}function O({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:u}){const h=new x.A([],[],o,u);i=Math.max(i,1);const l="polygon"===t;let c=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,g=h.coords.length;for(let t=c;t<i;++t)h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(s[t]),u&&h.coords.push(n[t]);if(l){const t=c;h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(s[t]),u&&h.coords.push(n[t])}h.lengths.push((h.coords.length-g)/h.stride),c=i}return"point"===t&&(h.lengths.length=0),h}function P(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class A{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function R({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function F({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function Z(t,e){return t.every((t,r)=>t===e[r])}function Y(t,e,r,s,n,i,a,o){a??=0,o??=0;const u=new p({type:t,vertexCount:e,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});let h=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),n&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(h);let c=0;return u.vertexXY=new Float64Array(l,c,2*e),c+=u.vertexXY.byteLength,s&&(u.vertexZ=new Float64Array(l,c,e),c+=u.vertexZ.byteLength),n&&(u.vertexM=new Float64Array(l,c,e),c+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(l,c,u.segmentParamCount),c+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(l,c,e),u.segmentIndices.fill(G),c+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(l,c,r+1),c+=u.partOffsets.byteLength,u.partFlags=new Int8Array(l,c,r+1),c+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(l,c,e),u.segmentFlags.fill(1),c+=u.segmentFlags.byteLength),u}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[u,h],l,c,g,m,x]=e.a;let p=4;c||(p|=1),l||(p|=2);const v=(0,f.SW)(t,e),[d,y]=(0,f.Uk)(v,.5);return n[a++]=p,n[a++]=m,n[a++]=x,n[a++]=g,n[a++]=u,n[a++]=h,n[a++]=v.u2-v.u1,n[a++]=v.u1,n[a++]=d,n[a++]=y,a}function V(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,m.io)(t,e);return I(o,4,...(0,h.mq)(o,.5),n,a)}function w(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,I((0,l.pM)(t,e),0,...e.c[1],n,a)}function I(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:u,thetaEnd:h,radius:l}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),n[i++]=e,n[i++]=l,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=h-u,n[i++]=u,n[i++]=r,n[i++]=s,i}function X(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:u},h,l){return a[h]=2,o[h]=l,u[l++]=r,u[l++]=s,u[l++]=n,u[l++]=i,l}const k=1.61803,G=-1},81150(t,e,r){r.d(e,{Pg:()=>u,fz:()=>h,g7:()=>a,zo:()=>o});var s=r(76061),n=(r(55537),r(88885),r(15756));r(95213);const i=new n.f;function a(t,e,r){return i.execute(t,e,r,null)}function o(t,e,r){const n=i.executeMany(new s.S(t),e,r,null);return Array.from(n)}function u(t,e,r){return i.isSimpleAsFeature(t,e,r,null,null)}function h(){return i.supportsCurves()}},3637(t,e,r){r.r(e),r.d(e,{execute:()=>i,executeMany:()=>a,isSimple:()=>o});var s=r(81150),n=r(83299);function i(t){const e=(0,n.fromGeometry)(t),r=e.getSpatialReference();return(0,n.toGeometry)((0,s.g7)(e.getGeometry(),r,!1),r)}function a(t){const[e,r]=(0,n.fromGeometries)(t);return(0,s.zo)(e,r,!1).map(t=>(0,n.toGeometry)(t,r))}function o(t){const e=(0,n.fromGeometry)(t);return(0,s.Pg)(e.getGeometry(),e.getSpatialReference(),!1)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1948,4795,6061,7992,8125,9169],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},90836(t,e,r){r.d(e,{b:()=>o,e:()=>u});var s=r(15756),n=r(78125);class i extends s.z{getOperatorType(){return 2}execute(t,e,r,n){return(0,s.A)(t,e,r,3,n)}}const a=new i;function o(t,e){return a.execute((0,n.fromGeometry)(t),(0,n.fromGeometry)(e),(0,n.fromSpatialReference)(t.spatialReference),null)}const h=a.supportsCurves(),u=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(t){const e=(0,n.getSpatialReference)(t);return a.accelerateGeometry((0,n.fromGeometry)(t),(0,n.fromSpatialReference)(e),1)},execute:o,supportsCurves:h},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>h,Qh:()=>a,RS:()=>n,Ul:()=>g,i5:()=>f,lM:()=>i,qK:()=>c});var s=r(34275);const n=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return h(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let r=l;for(let s=0;s<e;s++)r+=o(t[s]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return n;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+f:Array.isArray(e)?u(e,n):0:0),0)}function u(t,e){return l+t.length*e}const c=32,l=16,f=145,g=64},87992(t,e,r){r.d(e,{JR:()=>Z,ME:()=>E,MY:()=>R,NO:()=>M,Nh:()=>V,V2:()=>_,_s:()=>b,e6:()=>G,gh:()=>P,tr:()=>F,uX:()=>x});var s=r(5482),n=r(69397),i=r(16930),a=r(19419),o=r(60408),h=r(21325),u=r(513),c=r(50954),l=r(79567),f=r(52006),g=r(49663),m=r(46068),p=r(92722);class x{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-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 t(t){return t?n.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=_(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=w(t),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(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new C(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class C{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(t)}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(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,c]]};const l=2&s?0:1,f=1&s?0:1;return{a:[this.end,[o,h],l,f,a,n,i]}}}function M(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,s.mS)(r,new O(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:o}=t,h=S(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new O(t,["vertexZ","vertexM"]),!1);const n=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,f.yP)(r)}const[i,o,u,c]=n;e={xmin:i,ymin:o,xmax:u,ymax:c,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function E(t){let e,r,s;if((0,o.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,o.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,A(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const n=_(s,e,s.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:a,vertexXY:h,vertexZ:u,vertexM:c}=n;function l(t){h[2*m]=t[0],h[2*m+1]=t[1],i&&(u[m]=t[2]),a&&(c[m]=t[g]),++m}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let m=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])h[2*m]=t,h[2*m+1]=e,++m;return n}for(const t of r[0])l(t);return n}const p="polygon"===s,{partOffsets:x}=n;let y=0;if(!(0,f.Ed)(t)){for(const t of r){if(x[y++]=m,0===t.length)continue;let e=t.length;if(p&&A(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*m]=e,h[2*m+1]=s,++m}}return x[y]=m,n}function d(t){const e=v+t;if(e<=(n.segmentParams?.length??0))return;let r=e*X;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(const t of r){if(n.partOffsets[y++]=m,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];l(r);const i=m-1;(0,f.wY)(s)?(d(10),++n.segmentCountArc,v=b(r,s,n,i,v),r=s.a[0]):(0,f.DA)(s)?(d(10),++n.segmentCountArc,v=Y(r,s,n,i,v),r=s.a[0]):(0,f.aO)(s)?(d(10),++n.segmentCountArc,v=G(r,s,n,i,v),r=s.c[0]):(0,f.n1)(s)?(d(4),++n.segmentCountBezier,v=F(0,s,n,i,v),r=s.b[0]):r=s}p&&A(e,r)||l(r)}return n.partOffsets[y]=m,n}function P(t){const e=w(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=S(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function V(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const u=_(t,h,a,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const c=2+Number(s)+Number(n);let l=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(o);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[l++],u.vertexXY[2*t+1]=r[l++],s&&(u.vertexZ[t]=r[l++]),n&&(u.vertexM[t]=r[l++]);o&&(l+=c)}return u}function Z({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new p.A([],[],o,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=u.coords.length;for(let t=l;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(c){const t=l;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-f)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function R(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class O{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function S({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function w({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function A(t,e){return t.every((t,r)=>t===e[r])}function _(t,e,r,s,n,i,a,o){a??=0,o??=0;const h=new x({type:t,vertexCount:e,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});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(u);let l=0;return h.vertexXY=new Float64Array(c,l,2*e),l+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(c,l,e),l+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(c,l,e),l+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(c,l,h.segmentParamCount),l+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(c,l,e),h.segmentIndices.fill(z),l+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(c,l,r+1),l+=h.partOffsets.byteLength,h.partFlags=new Int8Array(c,l,r+1),l+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(c,l,e),h.segmentFlags.fill(1),l+=h.segmentFlags.byteLength),h}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],c,l,f,g,p]=e.a;let x=4;l||(x|=1),c||(x|=2);const y=(0,m.SW)(t,e),[d,v]=(0,m.Uk)(y,.5);return n[a++]=x,n[a++]=g,n[a++]=p,n[a++]=f,n[a++]=h,n[a++]=u,n[a++]=y.u2-y.u1,n[a++]=y.u1,n[a++]=d,n[a++]=v,a}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,g.io)(t,e);return I(o,4,...(0,u.mq)(o,.5),n,a)}function G(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,I((0,c.pM)(t,e),0,...e.c[1],n,a)}function I(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:c}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function F(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,c){return a[u]=2,o[u]=c,h[c++]=r,h[c++]=s,h[c++]=n,h[c++]=i,c}const X=1.61803,z=-1},45328(t,e,r){r.d(e,{execute:()=>s.b});var s=r(90836);r(78125)},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>C,fromPolylineUsingImportOperator:()=>M,fromSpatialReference:()=>E,getSpatialReference:()=>m,toExtent:()=>V,toGeometry:()=>P,toMultipoint:()=>Z,toPoint:()=>R,toPolygon:()=>O,toPolyline:()=>S});var s=r(83661),n=r(55537),i=r(95213),a=r(88885),o=r(5443),h=r(48526),u=r(86738),c=r(39829),l=r(82799),f=(r(90293),r(83299));const g="_gxVersion";function m(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return C(t);case"polygon":return v(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(g)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(g,e)}return t.getCacheValue(g)}function y(t){if(!t.getCacheValue(g)){const e=new a.M,r=new i.P,s=t.points,n=t.hasM,o=t.hasZ,h=o?3:2;for(let t=0,i=s.length;t<i;t++){const i=s[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),n&&r.setM(i[h]??NaN),e.add(r)}t.setCacheValue(g,e)}return t.getCacheValue(g)}function d(t){if(!t.getCacheValue(g)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(g,e)}return t.getCacheValue(g)}function v(t){if(!t.getCacheValue(g)){const{curveRings:e,hasM:r,hasZ:s,rings:n}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:s,rings:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function C(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function M(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function E(t){return t.cache?(t.cache[g]??=(0,f.fromSpatialReference)(t),t.cache[g]):(0,f.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return R(t,e);case n.G.enumEnvelope:return V(t,e);case n.G.enumMultiPoint:return Z(t,e);case n.G.enumPolyline:return S(t,e);case n.G.enumPolygon:return O(t,e)}return null}function V(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),s=t.getDescription();if(s.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(s.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(g,t),r}function Z(t,e){if(t.isEmpty())return null;const r=t.getDescription(),s=r.hasM(),n=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),a.push(r)}const u=new h.A({hasM:s,hasZ:n,points:a,spatialReference:e});return u.setCacheValue(g,t),u}function R(t,e){if(t instanceof s.P)return new u.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new u.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(r.m=t.getM()),n.hasZ()&&(r.z=t.getZ()),r.setCacheValue(g,t),r}function O(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}function S(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,a=s-e;return new n([5],[t,e,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((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){const r=s*(e+a),o=this.coords[r],h=this.coords[r+1];t+=-.5*(o-n)*(h+i),n=o,i=h}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2515],{79897(e,t,s){s.d(t,{U:()=>h});var r=s(5482),n=s(69622),i=s(36563),o=s(36708),l=s(76030),a=s(10107),u=s(64108);let h=class extends n.A{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll()}add(e,t,s={}){return this._installWatch(e,t,s,o.wB)}addWhen(e,t,s={}){return this._installWatch(e,t,s,o.z7)}addOnCollectionChange(e,t,{initial:s=!1,final:r=!1}={}){const n=++this._handleId;return this.addHandles([(0,o.on)(e,"after-changes",this._createSyncUpdatingCallback(),o.OH),(0,o.on)(e,"change",t,{onListenerAdd:s?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:r?e=>t({added:[],removed:e.toArray()}):void 0})],n),(0,i.hA)(()=>this.removeHandles(n))}consumePromise(e){this.addPromise(e)?.catch(()=>{})}addPromise(e){if(null==e)return e;const t=++this._handleId;this.addHandles((0,i.hA)(()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this.hasHandles(c)||this._set("updating",!1))}),t),this._pendingPromises.add(e),this._set("updating",!0);const s=()=>this.removeHandles(t);return e.then(s,s),e}removeAll(){this._pendingPromises.clear(),this.removeAllHandles(),this._set("updating",!1)}_installWatch(e,t,s={},r){const n=++this._handleId;s.sync||this._installSyncUpdatingWatch(e,n);const o=r(e,t,s);return this.addHandles(o,n),(0,i.hA)(()=>this.removeHandles(n))}_installSyncUpdatingWatch(e,t){const s=this._createSyncUpdatingCallback(),r=(0,o.wB)(e,s,{sync:!0,equals:()=>!1});return this.addHandles(r,t),r}_createSyncUpdatingCallback(){return()=>{this.removeHandles(c),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this.addHandles((0,l._)(()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this.removeHandles(c))}),c)}}};(0,r.Cg)([(0,a.MZ)({readOnly:!0})],h.prototype,"updating",void 0),h=(0,r.Cg)([(0,u.$)("esri.core.support.UpdatingHandles")],h);const c=-42},13069(e,t,s){s.d(t,{AG:()=>l,lk:()=>n,vD:()=>o,yS:()=>i});const r="randomUUID"in crypto;function n(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function i(){return`{${n().toUpperCase()}}`}function o(){return`{${n()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},87992(e,t,s){s.d(t,{JR:()=>E,ME:()=>M,MY:()=>T,NO:()=>C,Nh:()=>_,V2:()=>Z,_s:()=>R,e6:()=>z,gh:()=>A,tr:()=>V,uX:()=>f});var r=s(5482),n=s(69397),i=s(16930),o=s(19419),l=s(60408),a=s(21325),u=s(513),h=s(50954),c=s(79567),p=s(52006),g=s(49663),d=s(46068),m=s(92722);class f{constructor({type:e,spatialReference:t,vertexCount:s,vertexXY:r,vertexZ:n,vertexM:i,partCount:o,partOffsets:l,partFlags:a,segmentFlags:u,segmentIndices:h,segmentParams:c,segmentCountArc:p,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=s,this.vertexXY=r,this.vertexZ=n,this.vertexM=i,this.partCount=o,this.partOffsets=l,this.partFlags=a,this.segmentFlags=u,this.segmentIndices=h,this.segmentParams=c,this.segmentCountArc=p,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:s}=this;return e&&e-t-s}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?n.Ul+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(){const{type:e,vertexCount:t,partCount:s,hasZ:r,hasM:n,segmentCountArc:i,segmentCountBezier:o}=this,l=Z(e,t,s,r,n,this.hasCurves(),i,o);l.spatialReference=this.spatialReference;const{vertexXY:a,vertexZ:u,vertexM:h}=this;if(l.vertexXY.set(a.subarray(0,2*t),0),l.vertexZ?.set(u.subarray(0,t),0),l.vertexM?.set(h.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;l.partFlags.set(t.subarray(0,s+1)),l.partOffsets.set(e.subarray(0,s+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:s,segmentParams:r,segmentParamCount:n}=this;l.segmentFlags.set(e.subarray(0,t),0),l.segmentIndices.set(s.subarray(0,t),0),l.segmentParams.set(r.subarray(0,n),0)}return l}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,a.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const s=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,s)=>Math.abs(e-s)>t||isNaN(e)!==isNaN(s);for(let t=0;t<this.vertexCount;++t)if(s(this.vertexXY[2*t],e.vertexXY[2*t])||s(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(s(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(s(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(s(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 v(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class v{constructor(e){this.geometry=e,this.index=-1,this._readVertex=P(e),this._segments=new x(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class x{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new w(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class w{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=P(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(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let s=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[s++],r=t[s++],n=t[s++],i=t[s++];return{b:[this.end,[e,r],[n,i]]}}const r=t[s++],n=t[s++],i=t[s++],o=t[s++],l=t[s++],a=t[s++];s++,s++;const u=t[s++],h=t[s++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[u,h]]};const c=2&r?0:1,p=1&r?0:1;return{a:[this.end,[l,a],c,p,o,n,i]}}}function C(e,t){const s={stack:[],error:void 0,hasError:!1};try{return t??=(0,o.Ie)(),(0,r.mS)(s,new S(e,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(t,function(e){let t;const{vertexCount:s,vertexXY:n,vertexZ:i,vertexM:l}=e,a=O(e);if(e.hasCurves()){const s={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(s,new S(e,["vertexZ","vertexM"]),!1);const n=(0,o.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:s}of t.segments)(0,c.e)(n,e,s),e=(0,p.yP)(s)}const[i,l,u,h]=n;t={xmin:i,ymin:l,xmax:u,ymax:h,spatialReference:a}}catch(e){s.error=e,s.hasError=!0}finally{(0,r.hk)(s)}}else{let e,r,i,o;e=r=1/0,i=o=-1/0;for(let t=0;t<s;++t){const s=n[2*t],l=n[2*t+1];e=Math.min(e,s),i=Math.max(i,s),r=Math.min(r,l),o=Math.max(o,l)}t={xmin:e,ymin:r,xmax:i,ymax:o,spatialReference:a}}if(i){let e=1/0,s=-1/0;for(const t of i)e=Math.min(e,t),s=Math.max(s,t);t.zmin=e,t.zmax=s}if(l){let e=1/0,s=-1/0;for(const t of l)e=Math.min(e,t),s=Math.max(s,t);t.mmin=e,t.mmax=s}return t}(e)),t}catch(e){s.error=e,s.hasError=!0}finally{(0,r.hk)(s)}}function M(e){let t,s,r;if((0,l.fT)(e)){r="point";const{x:n,y:i,z:o,m:l}=e,a=[n,i];null!=o&&a.push(o),null!=l&&a.push(l),s=[[a]],t=1}else(0,l.U9)(e)?(r="multipoint",s=[e.points],t=e.points.length):(0,l.Rg)(e)?(r="polyline",s=e.curvePaths??e.paths,t=s.reduce((e,t)=>e+t.length,0)):(r="polygon",s=e.curveRings??e.rings,t=s.reduce((e,t)=>(0===t.length||(e+=t.length,b(t[0],(0,p.yP)(t.at(-1)))&&--e),e),0));const n=Z(r,t,r.includes("point")?0:s.length,(0,l.Pv)(e),(0,l.W0)(e),(0,p.Ed)(e)),{hasZ:i,hasM:o,vertexXY:a,vertexZ:u,vertexM:h}=n;function c(e){a[2*d]=e[0],a[2*d+1]=e[1],i&&(u[d]=e[2]),o&&(h[d]=e[g]),++d}n.spatialReference=e.spatialReference??void 0;const g=n.hasZ?3:2;let d=0;if(!n.isMultipart()){if(!i&&!o){for(const[e,t]of s[0])a[2*d]=e,a[2*d+1]=t,++d;return n}for(const e of s[0])c(e);return n}const m="polygon"===r,{partOffsets:f}=n;let y=0;if(!(0,p.Ed)(e)){for(const e of s){if(f[y++]=d,0===e.length)continue;let t=e.length;if(m&&b(e[0],e.at(-1))&&--t,i||o)for(let s=0;s<t;++s)c(e[s]);else for(let s=0;s<t;++s){const[t,r]=e[s];a[2*d]=t,a[2*d+1]=r,++d}}return f[y]=d,n}function v(e){const t=x+e;if(t<=(n.segmentParams?.length??0))return;let s=t*N;s=20*Math.ceil(s/20);const r=n.segmentParams;n.segmentParams=new Float64Array(s),null!=r&&n.segmentParams.set(r)}let x=0;for(const e of s){if(n.partOffsets[y++]=d,0===e.length)continue;const t=e[0];let s=t;for(let t=1;t<e.length;++t){const r=e[t];c(s);const i=d-1;(0,p.wY)(r)?(v(10),++n.segmentCountArc,x=R(s,r,n,i,x),s=r.a[0]):(0,p.DA)(r)?(v(10),++n.segmentCountArc,x=I(s,r,n,i,x),s=r.a[0]):(0,p.aO)(r)?(v(10),++n.segmentCountArc,x=z(s,r,n,i,x),s=r.c[0]):(0,p.n1)(r)?(v(4),++n.segmentCountBezier,x=V(0,r,n,i,x),s=r.b[0]):s=r}m&&b(t,s)||c(s)}return n.partOffsets[y]=d,n}function A(e){const t=P(e),{vertexCount:s,partCount:r,hasZ:n,hasM:i}=e,o=O(e);if("point"===e.type){const[t,s]=e.vertexXY,r=e.vertexZ?.[0],n=e.vertexM?.[0];return{x:t,y:s,z:r,m:n,spatialReference:o}}let l=0;if("multipoint"===e.type){const e=[];for(;l<s;)e.push(t(l++));return{points:e,spatialReference:o,hasZ:n,hasM:i}}const a="polygon"===e.type;if(!e.hasCurves()){const s=new Array;for(let n=0;n<r;++n){const r=e.partOffsets[n+1],i=new Array;for(;l<r;)i.push(t(l++));a&&i.length>0&&i.push(i[0]),s.push(i)}return a?{rings:s,hasZ:n,hasM:i,spatialReference:o}:{paths:s,hasZ:n,hasM:i,spatialReference:o}}const u=new Array;for(const{segments:t,startVertex:s}of e.parts){const e=[s];for(const{curve:s}of t)e.push(s);u.push(e)}return a?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:o}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:o}}function _(e,{lengths:t,coords:s,hasZ:r,hasM:n},i){const o=e.includes("point")?0:t.length,l="polygon"===e,a="point"===e?1:t.reduce((e,t)=>e+t,0)-(l?o:0);r??=!1,n??=!1;const u=Z(e,a,o,r,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let e=0,t=0;e<a;++e)u.vertexXY[2*e]=s[t++],u.vertexXY[2*e+1]=s[t++],r&&(u.vertexZ[e]=s[t++]),n&&(u.vertexM[e]=s[t++]);return u}const h=2+Number(r)+Number(n);let c=0,p=0;u.partOffsets[0]=0;for(const e of t){const t=u.partOffsets[p],i=t+e-Number(l);u.partOffsets[++p]=i;for(let e=t;e<i;++e)u.vertexXY[2*e]=s[c++],u.vertexXY[2*e+1]=s[c++],r&&(u.vertexZ[e]=s[c++]),n&&(u.vertexM[e]=s[c++]);l&&(c+=h)}return u}function E({type:e,vertexCount:t,vertexXY:s,vertexZ:r,vertexM:n,partCount:i,partOffsets:o,hasZ:l,hasM:a}){const u=new m.A([],[],l,a);i=Math.max(i,1);const h="polygon"===e;let c=0;for(let e=0;e<i;++e){const i=o?.[e+1]??t,p=u.coords.length;for(let e=c;e<i;++e)u.coords.push(s[2*e],s[2*e+1]),l&&u.coords.push(r[e]),a&&u.coords.push(n[e]);if(h){const e=c;u.coords.push(s[2*e],s[2*e+1]),l&&u.coords.push(r[e]),a&&u.coords.push(n[e])}u.lengths.push((u.coords.length-p)/u.stride),c=i}return"point"===e&&(u.lengths.length=0),u}function T(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,s=e.isCustomWkid()?0:e.getOldID();if(s<=0)return{wkt:t};let r=e.getLatestID();(r<=0||r===s)&&(r=void 0);const n=e.getVCS();if(null==n)return{wkid:s,latestWkid:r,wkt:t};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:s,wkt:t,latestWkid:r,vcsWkid:i,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new f({...e.toFlatGeometry(),spatialReference:t})}class S{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const s of t)e[s]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function O({spatialReference:e}){return e instanceof i.A?e.toJSON():e}function P({vertexXY:e,vertexZ:t,vertexM:s}){return t?s?r=>[e[2*r],e[2*r+1],t[r],s[r]]:s=>[e[2*s],e[2*s+1],t[s]]:s?t=>[e[2*t],e[2*t+1],s[t]]:t=>[e[2*t],e[2*t+1]]}function b(e,t){return e.every((e,s)=>e===t[s])}function Z(e,t,s,r,n,i,o,l){o??=0,l??=0;const a=new f({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:s,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:l});let u=2*Float64Array.BYTES_PER_ELEMENT*t;r&&(u+=Float64Array.BYTES_PER_ELEMENT*t),n&&(u+=Float64Array.BYTES_PER_ELEMENT*t),a.isMultipart()&&(u+=(s+1)*Int32Array.BYTES_PER_ELEMENT,u+=(s+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=t*Int8Array.BYTES_PER_ELEMENT,u+=t*Int32Array.BYTES_PER_ELEMENT,u+=a.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(u);let c=0;return a.vertexXY=new Float64Array(h,c,2*t),c+=a.vertexXY.byteLength,r&&(a.vertexZ=new Float64Array(h,c,t),c+=a.vertexZ.byteLength),n&&(a.vertexM=new Float64Array(h,c,t),c+=a.vertexM.byteLength),i&&(a.segmentParams=new Float64Array(h,c,a.segmentParamCount),c+=a.segmentParams.byteLength,a.segmentIndices=new Int32Array(h,c,t),a.segmentIndices.fill(L),c+=a.segmentIndices.byteLength),a.isMultipart()&&(a.partOffsets=new Int32Array(h,c,s+1),c+=a.partOffsets.byteLength,a.partFlags=new Int8Array(h,c,s+1),c+=a.partFlags.byteLength,"polygon"===a.type&&a.partFlags.subarray(0,s).fill(1)),i&&(a.segmentFlags=new Int8Array(h,c,t),a.segmentFlags.fill(1),c+=a.segmentFlags.byteLength),a}function R(e,t,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,o){s[i]=4,r[i]=o;const[l,[a,u],h,c,p,g,m]=t.a;let f=4;c||(f|=1),h||(f|=2);const y=(0,d.SW)(e,t),[v,x]=(0,d.Uk)(y,.5);return n[o++]=f,n[o++]=g,n[o++]=m,n[o++]=p,n[o++]=a,n[o++]=u,n[o++]=y.u2-y.u1,n[o++]=y.u1,n[o++]=v,n[o++]=x,o}function I(e,t,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,o){s[i]=4,r[i]=o;const l=(0,g.io)(e,t);return F(l,4,...(0,u.mq)(l,.5),n,o)}function z(e,t,{segmentFlags:s,segmentIndices:r,segmentParams:n},i,o){return s[i]=4,r[i]=o,F((0,h.pM)(e,t),0,...t.c[1],n,o)}function F(e,t,s,r,n,i){const{cx:o,cy:l,thetaStart:a,thetaEnd:u,radius:h}=e;return a>u||(t|=1),Math.abs(u-a)<=Math.PI||(t|=2),n[i++]=t,n[i++]=h,n[i++]=1,n[i++]=0,n[i++]=o,n[i++]=l,n[i++]=u-a,n[i++]=a,n[i++]=s,n[i++]=r,i}function V(e,{b:[t,[s,r],[n,i]]},{segmentFlags:o,segmentIndices:l,segmentParams:a},u,h){return o[u]=2,l[u]=h,a[h++]=s,a[h++]=r,a[h++]=n,a[h++]=i,h}const N=1.61803,L=-1},50498(e,t,s){s.d(t,{Ye:()=>c,gy:()=>h,iI:()=>g,yR:()=>p});var r=s(66552),n=s(5443),i=s(91075),o=s(48526),l=s(86738),a=s(39829),u=s(82799);const h=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:i.A,key:"type",typeMap:{extent:n.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}},g=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},91806(e,t,s){s.d(t,{A:()=>a});var r,n=s(5482),i=s(25482),o=s(91429),l=s(56507);let a=class extends i.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,n.Cg)([(0,o.MZ)({type:l.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.LOD")],a)},87045(e,t,s){s.d(t,{A:()=>x});var r,n=s(5482),i=s(66552),o=s(25482),l=s(86211),a=s(91429),u=s(56507),h=s(86738),c=s(16930),p=s(21325),g=s(28735),d=s(91806),m=s(72802),f=s(36005),y=s(43937);const v=new i.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let x=class extends o.o{static{r=this}static create(e={}){const{resolutionFactor:t=1,scales:s,size:n=256,spatialReference:i=c.A.WebMercator,numLODs:o=24}=e;if(!(0,p.fn)(i)){const e=[];if(s)for(let t=0;t<s.length;t++){const r=s[t];e.push(new d.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let s=o-1;s>=0;s--)e.unshift(new d.A({level:s,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new h.A(0,0,i),size:[n,n],spatialReference:i})}const a=(0,p.Vp)(i),u=e.origin?new h.A({x:e.origin.x,y:e.origin.y,spatialReference:i}):new h.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:i}:{x:0,y:0,spatialReference:i}),g=1/(39.37*(0,l.GA)(i)*96),m=[];if(s)for(let e=0;e<s.length;e++){const t=s[e],r=t*g;m.push(new d.A({level:e,scale:t,resolution:r}))}else{let e=(0,p.EA)(i)?512/n*591657527.5917094:256/n*591657527.591555;const s=Math.ceil(o/t);m.push(new d.A({level:0,scale:e,resolution:e*g}));for(let r=1;r<s;r++){const s=e/2**t,n=s*g;m.push(new d.A({level:r,scale:s,resolution:n})),e=s}}return new r({dpi:96,lods:m,origin:u,size:[n,n],spatialReference:i})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const s=(0,p.Vp)(e);return e.isWrappable&&!!s&&Math.abs(s.origin[0]-t.x)<=s.dx}return!1}readOrigin(e,t){return h.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,s=0;const r=[],n=this._levelToLOD={};e&&(t=-1/0,s=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,s=e.scale<s?e.scale:s,n[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const s=Math.floor(e),r=s+1;return t[s]/(t[s]/t[r])**(e-s)}scaleToZoom(e){const t=this.scales,s=t.length-1;let r=0;for(;r<s;r++){const s=t[r],n=t[r+1];if(s<=e)return r;if(n===e)return r+1;if(s>e&&n<e)return r+Math.log(s/e)/Math.log(s/n)}return r}tileAt(e,t,s,r){const n=this.lodAt(e);if(!n)return null;let i,o;if("number"==typeof t)i=t,o=s;else if((0,p.aI)(t.spatialReference,this.spatialReference))i=t.x,o=t.y,r=s;else{const e=(0,g.Cv)(t,this.spatialReference);if(null==e)return null;i=e.x,o=e.y,r=s}const l=n.resolution*this.size[0],a=n.resolution*this.size[1];return r??=new m.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-o)/a+.001),r.col=Math.floor((i-this.origin.x)/l+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let s=this.lodAt(e.level);if(!s&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(s=t)}if(!s)return!1;const r=e.level-s.level,n=s.resolution*this.size[0]/2**r,i=s.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*i,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+i,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const s=this.lodAt(t.level);if(null==s)return null;const{resolution:r}=s,n=r*this.size[0],i=r*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*i,e[2]=e[0]+n,e[3]=e[1]+i,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const s=[],n=this.lods.length-t;for(let e=0;e<n;e++){const r=e+t,{scale:n,resolution:i}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};s.push(new d.A({level:e,scale:n,resolution:i}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:s})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let s=0;s<e.length;s++){const r=e[s];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"compressionQuality",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"dpi",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{read:v.read,write:v.write,origins:{"web-scene":{read:!1,write:!1}}}})],x.prototype,"format",void 0),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],x.prototype,"isWrappable",null),(0,n.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],x.prototype,"origin",void 0),(0,n.Cg)([(0,f.w)("origin")],x.prototype,"readOrigin",null),(0,n.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],x.prototype,"lods",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],x.prototype,"scales",void 0),(0,n.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],x.prototype,"size",void 0),(0,n.Cg)([(0,f.w)("size",["rows","cols"])],x.prototype,"readSize",null),(0,n.Cg)([(0,y.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],x.prototype,"writeSize",null),(0,n.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],x.prototype,"spatialReference",void 0),x=r=(0,n.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],x)},72802(e,t,s){s.d(t,{U:()=>n});var r=s(19419);class n{constructor(e,t,s,n=(0,r.vt)()){this._level=e,this._row=t,this._col=s,this.extent=n}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new n(e.level,e.row,e.col,e.extent)}}},73133(e,t,s){s.d(t,{j:()=>r});const r=(0,s(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"})},79677(e,t,s){s.d(t,{A:()=>p});var r,n=s(5482),i=s(25482),o=s(88930),l=s(91429),a=s(98623),u=s(10184),h=s(36005),c=s(43937);let p=class extends i.o{static{r=this}static get allTime(){return g}static get empty(){return d}static fromArray(e){return new r({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,s=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===r&&s===n}expandTo(e,t=a.qU){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let s=this.start;s&&(s=(0,o.lL)(s,new u.A({value:1,unit:e}),t));let n=this.end;if(n){const s=(0,o.lL)(n,new u.A({value:1,unit:e}),t);n=n.getTime()===s.getTime()?s:(0,o.S1)(s,1,e,t)}return new r({start:s,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,s=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,i=e.end?.getTime()??1/0;let o,l;return n>=t&&n<=s?o=n:t>=n&&t<=i&&(o=t),s>=n&&s<=i?l=s:i>=t&&i<=s&&(l=i),null==o||null==l||isNaN(o)||isNaN(l)?r.empty:new r({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(e,t,s=a.qU){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const n=new r,{start:i,end:l}=this;return null!=i&&(n.start=(0,o.S1)(i,e,t,s)),null!=l&&(n.end=(0,o.S1)(l,e,t,s)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return g.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,s=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:s})}};(0,n.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,n.Cg)([(0,h.w)("end")],p.prototype,"readEnd",null),(0,n.Cg)([(0,c.K)("end")],p.prototype,"writeEnd",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,n.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,n.Cg)([(0,h.w)("start")],p.prototype,"readStart",null),(0,n.Cg)([(0,c.K)("start")],p.prototype,"writeStart",null),p=r=(0,n.Cg)([(0,l.$K)("esri.time.TimeExtent")],p);const g=new p,d=new p({start:void 0,end:void 0})},10184(e,t,s){s.d(t,{A:()=>h});var r=s(5482),n=s(69540),i=s(25482),o=s(88930),l=s(91429),a=s(73133),u=s(93223);let h=class extends((0,n.OU)(i.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,r.Cg)([(0,u.e)(a.j,{nonNullable:!0})],h.prototype,"unit",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],h.prototype,"value",void 0),h=(0,r.Cg)([(0,l.$K)("esri.time.TimeInterval")],h)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1948,5391,6061,7992,8125,9169],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},83587(t,e,r){r.d(e,{c:()=>o,e:()=>i});var s=r(96027),n=r(78125);function i(t,e){const r=(0,n.getSpatialReference)(t),i=(0,n.fromExtent)(e).asEnvelope2D();return(0,n.toGeometry)((0,s.g7)((0,n.fromGeometry)(t),i,(0,n.fromSpatialReference)(r)),r)}const a=(0,s.fz)(),o=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:function(t,e){const r=t.map(n.fromGeometry),i=(0,n.getSpatialReference)(t),a=(0,n.fromExtent)(e).asEnvelope2D();return(0,s.zo)(r,a,(0,n.fromSpatialReference)(i)).map(t=>(0,n.toGeometry)(t,i))},supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>u,Qh:()=>a,RS:()=>n,Ul:()=>g,i5:()=>f,lM:()=>i,qK:()=>c});var s=r(34275);const n=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let r=l;for(let s=0;s<e;s++)r+=o(t[s]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return n;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,n):0:0),0)}function h(t,e){return l+t.length*e}const c=32,l=16,f=145,g=64},87992(t,e,r){r.d(e,{JR:()=>Z,ME:()=>E,MY:()=>S,NO:()=>C,Nh:()=>V,V2:()=>_,_s:()=>b,e6:()=>I,gh:()=>P,tr:()=>F,uX:()=>x});var s=r(5482),n=r(69397),i=r(16930),a=r(19419),o=r(60408),u=r(21325),h=r(513),c=r(50954),l=r(79567),f=r(52006),g=r(49663),m=r(46068),p=r(92722);class x{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-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 t(t){return t?n.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=_(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(h.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=O(t),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(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=O(t)}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(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],u=e[r++];r++,r++;const h=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[h,c]]};const l=2&s?0:1,f=1&s?0:1;return{a:[this.end,[o,u],l,f,a,n,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,s.mS)(r,new R(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:o}=t,u=w(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new R(t,["vertexZ","vertexM"]),!1);const n=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,f.yP)(r)}const[i,o,h,c]=n;e={xmin:i,ymin:o,xmax:h,ymax:c,spatialReference:u}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:u}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function E(t){let e,r,s;if((0,o.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,u=[n,i];null!=a&&u.push(a),null!=o&&u.push(o),r=[[u]],e=1}else(0,o.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,A(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const n=_(s,e,s.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:a,vertexXY:u,vertexZ:h,vertexM:c}=n;function l(t){u[2*m]=t[0],u[2*m+1]=t[1],i&&(h[m]=t[2]),a&&(c[m]=t[g]),++m}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let m=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])u[2*m]=t,u[2*m+1]=e,++m;return n}for(const t of r[0])l(t);return n}const p="polygon"===s,{partOffsets:x}=n;let y=0;if(!(0,f.Ed)(t)){for(const t of r){if(x[y++]=m,0===t.length)continue;let e=t.length;if(p&&A(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];u[2*m]=e,u[2*m+1]=s,++m}}return x[y]=m,n}function d(t){const e=v+t;if(e<=(n.segmentParams?.length??0))return;let r=e*X;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(const t of r){if(n.partOffsets[y++]=m,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];l(r);const i=m-1;(0,f.wY)(s)?(d(10),++n.segmentCountArc,v=b(r,s,n,i,v),r=s.a[0]):(0,f.DA)(s)?(d(10),++n.segmentCountArc,v=Y(r,s,n,i,v),r=s.a[0]):(0,f.aO)(s)?(d(10),++n.segmentCountArc,v=I(r,s,n,i,v),r=s.c[0]):(0,f.n1)(s)?(d(4),++n.segmentCountBezier,v=F(0,s,n,i,v),r=s.b[0]):r=s}p&&A(e,r)||l(r)}return n.partOffsets[y]=m,n}function P(t){const e=O(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=w(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const h=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);h.push(t)}return u?{rings:[],curveRings:h,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:h,hasZ:n,hasM:i,spatialReference:a}}function V(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const h=_(t,u,a,s,n,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=r[e++],h.vertexXY[2*t+1]=r[e++],s&&(h.vertexZ[t]=r[e++]),n&&(h.vertexM[t]=r[e++]);return h}const c=2+Number(s)+Number(n);let l=0,f=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[f],i=e+t-Number(o);h.partOffsets[++f]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=r[l++],h.vertexXY[2*t+1]=r[l++],s&&(h.vertexZ[t]=r[l++]),n&&(h.vertexM[t]=r[l++]);o&&(l+=c)}return h}function Z({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:u}){const h=new p.A([],[],o,u);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=h.coords.length;for(let t=l;t<i;++t)h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(s[t]),u&&h.coords.push(n[t]);if(c){const t=l;h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(s[t]),u&&h.coords.push(n[t])}h.lengths.push((h.coords.length-f)/h.stride),l=i}return"point"===t&&(h.lengths.length=0),h}function S(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class R{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function w({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function O({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function A(t,e){return t.every((t,r)=>t===e[r])}function _(t,e,r,s,n,i,a,o){a??=0,o??=0;const u=new x({type:t,vertexCount:e,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});let h=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),n&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(h);let l=0;return u.vertexXY=new Float64Array(c,l,2*e),l+=u.vertexXY.byteLength,s&&(u.vertexZ=new Float64Array(c,l,e),l+=u.vertexZ.byteLength),n&&(u.vertexM=new Float64Array(c,l,e),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,l,e),u.segmentIndices.fill(z),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(c,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[u,h],c,l,f,g,p]=e.a;let x=4;l||(x|=1),c||(x|=2);const y=(0,m.SW)(t,e),[d,v]=(0,m.Uk)(y,.5);return n[a++]=x,n[a++]=g,n[a++]=p,n[a++]=f,n[a++]=u,n[a++]=h,n[a++]=y.u2-y.u1,n[a++]=y.u1,n[a++]=d,n[a++]=v,a}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,g.io)(t,e);return G(o,4,...(0,h.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,G((0,c.pM)(t,e),0,...e.c[1],n,a)}function G(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=h-u,n[i++]=u,n[i++]=r,n[i++]=s,i}function F(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:u},h,c){return a[h]=2,o[h]=c,u[c++]=r,u[c++]=s,u[c++]=n,u[c++]=i,c}const X=1.61803,z=-1},24815(t,e,r){r.d(e,{execute:()=>s.e}),r(96027),r(78125);var s=r(83587)},96027(t,e,r){r.d(e,{fz:()=>o,g7:()=>i,zo:()=>a});var s=r(76061);const n=new(r(31139).O);function i(t,e,r){return n.execute(t,e,r,null)}function a(t,e,r){const i=n.executeMany(new s.S(t),e,r,null);return Array.from(i)}function o(){return n.supportsCurves()}},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>E,getSpatialReference:()=>m,toExtent:()=>V,toGeometry:()=>P,toMultipoint:()=>Z,toPoint:()=>S,toPolygon:()=>R,toPolyline:()=>w});var s=r(83661),n=r(55537),i=r(95213),a=r(88885),o=r(5443),u=r(48526),h=r(86738),c=r(39829),l=r(82799),f=(r(90293),r(83299));const g="_gxVersion";function m(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return M(t);case"polygon":return v(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(g)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(g,e)}return t.getCacheValue(g)}function y(t){if(!t.getCacheValue(g)){const e=new a.M,r=new i.P,s=t.points,n=t.hasM,o=t.hasZ,u=o?3:2;for(let t=0,i=s.length;t<i;t++){const i=s[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),n&&r.setM(i[u]??NaN),e.add(r)}t.setCacheValue(g,e)}return t.getCacheValue(g)}function d(t){if(!t.getCacheValue(g)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(g,e)}return t.getCacheValue(g)}function v(t){if(!t.getCacheValue(g)){const{curveRings:e,hasM:r,hasZ:s,rings:n}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:s,rings:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function M(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function C(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function E(t){return t.cache?(t.cache[g]??=(0,f.fromSpatialReference)(t),t.cache[g]):(0,f.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return S(t,e);case n.G.enumEnvelope:return V(t,e);case n.G.enumMultiPoint:return Z(t,e);case n.G.enumPolyline:return w(t,e);case n.G.enumPolygon:return R(t,e)}return null}function V(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),s=t.getDescription();if(s.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(s.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(g,t),r}function Z(t,e){if(t.isEmpty())return null;const r=t.getDescription(),s=r.hasM(),n=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),a.push(r)}const h=new u.A({hasM:s,hasZ:n,points:a,spatialReference:e});return h.setCacheValue(g,t),h}function S(t,e){if(t instanceof s.P)return new h.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new h.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(r.m=t.getM()),n.hasZ()&&(r.z=t.getZ()),r.setCacheValue(g,t),r}function R(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}function w(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,a=s-e;return new n([5],[t,e,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((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){const r=s*(e+a),o=this.coords[r],u=this.coords[r+1];t+=-.5*(o-n)*(u+i),n=o,i=u}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[609,1948,2990,6061,7992],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},69397(t,e,r){r.d(e,{Qf:()=>h,Qh:()=>o,RS:()=>n,Ul:()=>f,i5:()=>g,lM:()=>i,qK:()=>c});var s=r(34275);const n=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!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){const e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let r=l;for(let s=0;s<e;s++)r+=a(t[s]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return n;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+g:Array.isArray(e)?u(e,n):0:0),0)}function u(t,e){return l+t.length*e}const c=32,l=16,g=145,f=64},87992(t,e,r){r.d(e,{JR:()=>P,ME:()=>E,MY:()=>A,NO:()=>C,Nh:()=>_,V2:()=>R,_s:()=>F,e6:()=>V,gh:()=>O,tr:()=>X,uX:()=>d});var s=r(5482),n=r(69397),i=r(16930),o=r(19419),a=r(60408),h=r(21325),u=r(513),c=r(50954),l=r(79567),g=r(52006),f=r(49663),m=r(46068),x=r(92722);class d{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:o,partOffsets:a,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:g,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=g,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-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 t(t){return t?n.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:o}=this,a=R(t,e,r,s,n,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(a.vertexXY.set(h.subarray(0,2*e),0),a.vertexZ?.set(u.subarray(0,e),0),a.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,r+1)),a.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(r.subarray(0,e),0),a.segmentParams.set(s.subarray(0,n),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=w(t),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(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(t)}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(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],o=e[r++],a=e[r++],h=e[r++];r++,r++;const u=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,c]]};const l=2&s?0:1,g=1&s?0:1;return{a:[this.end,[a,h],l,g,o,n,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,s.mS)(r,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:a}=t,h=Z(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new S(t,["vertexZ","vertexM"]),!1);const n=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,g.yP)(r)}const[i,a,u,c]=n;e={xmin:i,ymin:a,xmax:u,ymax:c,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,o;t=s=1/0,i=o=-1/0;for(let e=0;e<r;++e){const r=n[2*e],a=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,a),o=Math.max(o,a)}e={xmin:t,ymin:s,xmax:i,ymax:o,spatialReference:h}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function E(t){let e,r,s;if((0,a.fT)(t)){s="point";const{x:n,y:i,z:o,m:a}=t,h=[n,i];null!=o&&h.push(o),null!=a&&h.push(a),r=[[h]],e=1}else(0,a.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,b(e[0],(0,g.yP)(e.at(-1)))&&--t),t),0));const n=R(s,e,s.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,g.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:c}=n;function l(t){h[2*m]=t[0],h[2*m+1]=t[1],i&&(u[m]=t[2]),o&&(c[m]=t[f]),++m}n.spatialReference=t.spatialReference??void 0;const f=n.hasZ?3:2;let m=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])h[2*m]=t,h[2*m+1]=e,++m;return n}for(const t of r[0])l(t);return n}const x="polygon"===s,{partOffsets:d}=n;let p=0;if(!(0,g.Ed)(t)){for(const t of r){if(d[p++]=m,0===t.length)continue;let e=t.length;if(x&&b(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*m]=e,h[2*m+1]=s,++m}}return d[p]=m,n}function y(t){const e=v+t;if(e<=(n.segmentParams?.length??0))return;let r=e*k;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(const t of r){if(n.partOffsets[p++]=m,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];l(r);const i=m-1;(0,g.wY)(s)?(y(10),++n.segmentCountArc,v=F(r,s,n,i,v),r=s.a[0]):(0,g.DA)(s)?(y(10),++n.segmentCountArc,v=Y(r,s,n,i,v),r=s.a[0]):(0,g.aO)(s)?(y(10),++n.segmentCountArc,v=V(r,s,n,i,v),r=s.c[0]):(0,g.n1)(s)?(y(4),++n.segmentCountBezier,v=X(0,s,n,i,v),r=s.b[0]):r=s}x&&b(e,r)||l(r)}return n.partOffsets[p]=m,n}function O(t){const e=w(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,o=Z(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<r;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;a<s;)i.push(e(a++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:o}:{paths:r,hasZ:n,hasM:i,spatialReference:o}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:o}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:o}}function _(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const o=t.includes("point")?0:e.length,a="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);s??=!1,n??=!1;const u=R(t,h,o,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const c=2+Number(s)+Number(n);let l=0,g=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[g],i=e+t-Number(a);u.partOffsets[++g]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[l++],u.vertexXY[2*t+1]=r[l++],s&&(u.vertexZ[t]=r[l++]),n&&(u.vertexM[t]=r[l++]);a&&(l+=c)}return u}function P({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:o,hasZ:a,hasM:h}){const u=new x.A([],[],a,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,g=u.coords.length;for(let t=l;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),a&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(c){const t=l;u.coords.push(r[2*t],r[2*t+1]),a&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-g)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function A(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class S{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function Z({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function w({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function b(t,e){return t.every((t,r)=>t===e[r])}function R(t,e,r,s,n,i,o,a){o??=0,a??=0;const h=new d({type:t,vertexCount:e,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:o,segmentCountBezier:a});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(u);let l=0;return h.vertexXY=new Float64Array(c,l,2*e),l+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(c,l,e),l+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(c,l,e),l+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(c,l,h.segmentParamCount),l+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(c,l,e),h.segmentIndices.fill(N),l+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(c,l,r+1),l+=h.partOffsets.byteLength,h.partFlags=new Int8Array(c,l,r+1),l+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(c,l,e),h.segmentFlags.fill(1),l+=h.segmentFlags.byteLength),h}function F(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){r[i]=4,s[i]=o;const[a,[h,u],c,l,g,f,x]=e.a;let d=4;l||(d|=1),c||(d|=2);const p=(0,m.SW)(t,e),[y,v]=(0,m.Uk)(p,.5);return n[o++]=d,n[o++]=f,n[o++]=x,n[o++]=g,n[o++]=h,n[o++]=u,n[o++]=p.u2-p.u1,n[o++]=p.u1,n[o++]=y,n[o++]=v,o}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){r[i]=4,s[i]=o;const a=(0,f.io)(t,e);return I(a,4,...(0,u.mq)(a,.5),n,o)}function V(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){return r[i]=4,s[i]=o,I((0,c.pM)(t,e),0,...e.c[1],n,o)}function I(t,e,r,s,n,i){const{cx:o,cy:a,thetaStart:h,thetaEnd:u,radius:c}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=o,n[i++]=a,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function X(t,{b:[e,[r,s],[n,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:h},u,c){return o[u]=2,a[u]=c,h[c++]=r,h[c++]=s,h[c++]=n,h[c++]=i,c}const k=1.61803,N=-1},51508(t,e,r){r.r(e),r.d(e,{execute:()=>o});var s=r(15756),n=r(83299);const i=new s.x;function o(t,e){const r=(0,n.fromGeometry)(t);return i.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(e),r.getSpatialReference(),null)}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,o=s-e;return new n([5],[t,e,i,0,0,o,-i,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,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let o=1;o<r;o+=1){const r=s*(e+o),a=this.coords[r],h=this.coords[r+1];t+=-.5*(a-n)*(h+i),n=a,i=h}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,4579,6061,6960,7992],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},69397(t,e,r){r.d(e,{Qf:()=>h,Qh:()=>o,RS:()=>n,Ul:()=>f,i5:()=>g,lM:()=>i,qK:()=>c});var s=r(34275);const n=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!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){const e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let r=l;for(let s=0;s<e;s++)r+=a(t[s]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return n;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+g:Array.isArray(e)?u(e,n):0:0),0)}function u(t,e){return l+t.length*e}const c=32,l=16,g=145,f=64},87992(t,e,r){r.d(e,{JR:()=>P,ME:()=>E,MY:()=>A,NO:()=>C,Nh:()=>_,V2:()=>R,_s:()=>F,e6:()=>V,gh:()=>O,tr:()=>X,uX:()=>d});var s=r(5482),n=r(69397),i=r(16930),o=r(19419),a=r(60408),h=r(21325),u=r(513),c=r(50954),l=r(79567),g=r(52006),f=r(49663),m=r(46068),x=r(92722);class d{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:o,partOffsets:a,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:g,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=g,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-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 t(t){return t?n.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:o}=this,a=R(t,e,r,s,n,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(a.vertexXY.set(h.subarray(0,2*e),0),a.vertexZ?.set(u.subarray(0,e),0),a.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,r+1)),a.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(r.subarray(0,e),0),a.segmentParams.set(s.subarray(0,n),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=w(t),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(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(t)}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(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],o=e[r++],a=e[r++],h=e[r++];r++,r++;const u=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,c]]};const l=2&s?0:1,g=1&s?0:1;return{a:[this.end,[a,h],l,g,o,n,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,s.mS)(r,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:a}=t,h=Z(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new S(t,["vertexZ","vertexM"]),!1);const n=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,g.yP)(r)}const[i,a,u,c]=n;e={xmin:i,ymin:a,xmax:u,ymax:c,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,o;t=s=1/0,i=o=-1/0;for(let e=0;e<r;++e){const r=n[2*e],a=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,a),o=Math.max(o,a)}e={xmin:t,ymin:s,xmax:i,ymax:o,spatialReference:h}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function E(t){let e,r,s;if((0,a.fT)(t)){s="point";const{x:n,y:i,z:o,m:a}=t,h=[n,i];null!=o&&h.push(o),null!=a&&h.push(a),r=[[h]],e=1}else(0,a.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,b(e[0],(0,g.yP)(e.at(-1)))&&--t),t),0));const n=R(s,e,s.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,g.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:c}=n;function l(t){h[2*m]=t[0],h[2*m+1]=t[1],i&&(u[m]=t[2]),o&&(c[m]=t[f]),++m}n.spatialReference=t.spatialReference??void 0;const f=n.hasZ?3:2;let m=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])h[2*m]=t,h[2*m+1]=e,++m;return n}for(const t of r[0])l(t);return n}const x="polygon"===s,{partOffsets:d}=n;let p=0;if(!(0,g.Ed)(t)){for(const t of r){if(d[p++]=m,0===t.length)continue;let e=t.length;if(x&&b(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*m]=e,h[2*m+1]=s,++m}}return d[p]=m,n}function y(t){const e=v+t;if(e<=(n.segmentParams?.length??0))return;let r=e*k;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(const t of r){if(n.partOffsets[p++]=m,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];l(r);const i=m-1;(0,g.wY)(s)?(y(10),++n.segmentCountArc,v=F(r,s,n,i,v),r=s.a[0]):(0,g.DA)(s)?(y(10),++n.segmentCountArc,v=Y(r,s,n,i,v),r=s.a[0]):(0,g.aO)(s)?(y(10),++n.segmentCountArc,v=V(r,s,n,i,v),r=s.c[0]):(0,g.n1)(s)?(y(4),++n.segmentCountBezier,v=X(0,s,n,i,v),r=s.b[0]):r=s}x&&b(e,r)||l(r)}return n.partOffsets[p]=m,n}function O(t){const e=w(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,o=Z(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<r;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;a<s;)i.push(e(a++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:o}:{paths:r,hasZ:n,hasM:i,spatialReference:o}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:o}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:o}}function _(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const o=t.includes("point")?0:e.length,a="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);s??=!1,n??=!1;const u=R(t,h,o,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const c=2+Number(s)+Number(n);let l=0,g=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[g],i=e+t-Number(a);u.partOffsets[++g]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[l++],u.vertexXY[2*t+1]=r[l++],s&&(u.vertexZ[t]=r[l++]),n&&(u.vertexM[t]=r[l++]);a&&(l+=c)}return u}function P({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:o,hasZ:a,hasM:h}){const u=new x.A([],[],a,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,g=u.coords.length;for(let t=l;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),a&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(c){const t=l;u.coords.push(r[2*t],r[2*t+1]),a&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-g)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function A(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class S{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function Z({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function w({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function b(t,e){return t.every((t,r)=>t===e[r])}function R(t,e,r,s,n,i,o,a){o??=0,a??=0;const h=new d({type:t,vertexCount:e,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:o,segmentCountBezier:a});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(u);let l=0;return h.vertexXY=new Float64Array(c,l,2*e),l+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(c,l,e),l+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(c,l,e),l+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(c,l,h.segmentParamCount),l+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(c,l,e),h.segmentIndices.fill(N),l+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(c,l,r+1),l+=h.partOffsets.byteLength,h.partFlags=new Int8Array(c,l,r+1),l+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(c,l,e),h.segmentFlags.fill(1),l+=h.segmentFlags.byteLength),h}function F(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){r[i]=4,s[i]=o;const[a,[h,u],c,l,g,f,x]=e.a;let d=4;l||(d|=1),c||(d|=2);const p=(0,m.SW)(t,e),[y,v]=(0,m.Uk)(p,.5);return n[o++]=d,n[o++]=f,n[o++]=x,n[o++]=g,n[o++]=h,n[o++]=u,n[o++]=p.u2-p.u1,n[o++]=p.u1,n[o++]=y,n[o++]=v,o}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){r[i]=4,s[i]=o;const a=(0,f.io)(t,e);return I(a,4,...(0,u.mq)(a,.5),n,o)}function V(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){return r[i]=4,s[i]=o,I((0,c.pM)(t,e),0,...e.c[1],n,o)}function I(t,e,r,s,n,i){const{cx:o,cy:a,thetaStart:h,thetaEnd:u,radius:c}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=o,n[i++]=a,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function X(t,{b:[e,[r,s],[n,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:h},u,c){return o[u]=2,a[u]=c,h[c++]=r,h[c++]=s,h[c++]=n,h[c++]=i,c}const k=1.61803,N=-1},7978(t,e,r){r.r(e),r.d(e,{execute:()=>o});var s=r(15756),n=r(83299);const i=new s.y;function o(t,e){const r=(0,n.fromGeometry)(t);return i.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(e),r.getSpatialReference())}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,o=s-e;return new n([5],[t,e,i,0,0,o,-i,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,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let o=1;o<r;o+=1){const r=s*(e+o),a=this.coords[r],h=this.coords[r+1];t+=-.5*(a-n)*(h+i),n=a,i=h}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3846],{5482(t,n,r){function e(t,n,r,e){var a,o=arguments.length,u=o<3?n:null===e?e=Object.getOwnPropertyDescriptor(n,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,n,r,e);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(u=(o<3?a(u):o>3?a(n,r,u):a(n,r))||u);return o>3&&u&&Object.defineProperty(n,r,u),u}function a(t,n,r){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var e,a;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");e=n[Symbol.asyncDispose]}if(void 0===e){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");e=n[Symbol.dispose],r&&(a=e)}if("function"!=typeof e)throw new TypeError("Object not disposable.");a&&(e=function(){try{a.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:n,dispose:e,async:r})}else r&&t.stack.push({async:!0});return n}r.d(n,{Cg:()=>e,hk:()=>u,mS:()=>a}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(t,n,r){var e=new Error(r);return e.name="SuppressedError",e.error=t,e.suppressed=n,e};function u(t){function n(n){t.error=t.hasError?new o(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var r,e=0;return function a(){for(;r=t.stack.pop();)try{if(!r.async&&1===e)return e=0,t.stack.push(r),Promise.resolve().then(a);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return e|=2,Promise.resolve(o).then(a,function(t){return n(t),a()})}else e|=1}catch(t){n(t)}if(1===e)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69540(t,n,r){r.d(n,{OU:()=>l,Pw:()=>f});var e=r(5482),a=r(69622),o=(r(44208),r(4718)),u=(r(53966),r(97768)),s=r(88620),i=r(64108);const c=Symbol("ClonableMixin"),l=t=>{var n;const r=t;let a=class extends r{constructor(){super(...arguments),this[n]=!0}static{n=c}clone(t){const n=(0,s.oY)(this);(0,u.Lw)(n,"unable to clone instance of non-accessor class");const r=n.metadata,e=n.store,a={},i=new Map;for(const n in r){const u=r[n],s=e?.originOf(n),c=u.clonable;if(u.readOnly||!1===c||7!==s&&0!==s&&5!==s&&4!==s)continue;const l=this[n];let f=null;if("function"==typeof c)f=c(l,t);else if("reference"===c)f=l;else if(f=(0,o.TU)(l,t),null!=l&&null==f)continue;0===s?i.set(n,f):a[n]=f}const c=new(0,Object.getPrototypeOf(this).constructor)(a);if(i.size){const t=(0,s.oY)(c)?.store;if(t)for(const[n,r]of i)t.set(n,r,0)}return c}};return a=(0,e.Cg)([(0,i.$)("esri.core.Clonable")],a),a},f=l(a.A)},29242(t,n,r){function e(){return[1,0,0,0,1,0,0,0,1]}function a(t,n,r,e,a,o,u,s,i){return[t,n,r,e,a,o,u,s,i]}r.d(n,{fA:()=>a,vt:()=>e,zK:()=>o});const o=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:e,fromValues:a},Symbol.toStringTag,{value:"Module"}))},51850(t,n,r){function e(){return[0,0,0]}function a(t){return[t[0],t[1],t[2]]}function o(t,n,r){return[t,n,r]}function u(t,n,r){return[t,n,r]}function s(t,n=[0,0,0]){const r=Math.min(3,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n}function i(){return[0,0,0]}function c(){return o(1,1,1)}function l(){return o(1,0,0)}function f(){return o(0,1,0)}function h(){return o(0,0,1)}r.d(n,{CN:()=>u,Cb:()=>p,Cw:()=>d,JP:()=>m,S:()=>c,Ul:()=>i,Un:()=>b,ci:()=>s,fA:()=>o,o8:()=>a,uY:()=>M,vt:()=>e});const M=[0,0,0],b=c(),d=l(),m=f(),p=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:b,UNIT_X:d,UNIT_Y:m,UNIT_Z:p,ZEROS:M,clone:a,create:e,freeze:u,fromArray:s,fromValues:o,ones:c,unitX:l,unitY:f,unitZ:h,zeros:i},Symbol.toStringTag,{value:"Module"}))},91829(t,n,r){function e(){return[0,0,0,0]}function a(t,n,r,e){return[t,n,r,e]}function o(t,n,r,e){return[t,n,r,e]}function u(){return a(1,1,1,1)}function s(){return a(1,0,0,0)}function i(){return a(0,1,0,0)}function c(){return a(0,0,1,0)}function l(){return a(0,0,0,1)}r.d(n,{CN:()=>o,Un:()=>h,_Y:()=>l,fA:()=>a,uY:()=>f,vt:()=>e});const f=[0,0,0,0],h=u(),M=s(),b=i(),d=c(),m=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:m,UNIT_X:M,UNIT_Y:b,UNIT_Z:d,ZEROS:f,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:e,freeze:o,fromArray:function(t,n=[0,0,0,0]){const r=Math.min(4,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n},fromValues:a,ones:u,unitW:l,unitX:s,unitY:i,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304(t,n,r){r.d(n,{DF:()=>i,FD:()=>a,Ov:()=>o,ct:()=>c});let e=1e-6;function a(){return e}const o=Math.random,u=Math.PI/180,s=180/Math.PI;function i(t){return t*u}function c(t){return t*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(t,n){return Math.abs(t-n)<=e*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:a,setEpsilon:function(t){e=t},toDegree:c,toRadian:i},Symbol.toStringTag,{value:"Module"}))},77690(t,n,r){r.d(n,{B8:()=>s,Ge:()=>M,I0:()=>h,KC:()=>i,a4:()=>c,hZ:()=>o,hs:()=>f,lw:()=>l,mg:()=>u,z0:()=>a});var e=r(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function o(t,n,r,e,a,o,u,s,i,c){return t[0]=n,t[1]=r,t[2]=e,t[3]=a,t[4]=o,t[5]=u,t[6]=s,t[7]=i,t[8]=c,t}function u(t,n){if(t===n){const r=n[1],e=n[2],a=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=a}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function s(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=n[4],s=n[5],i=n[6],c=n[7],l=n[8],f=l*u-s*c,h=-l*o+s*i,M=c*o-u*i;let b=r*f+e*h+a*M;return b?(b=1/b,t[0]=f*b,t[1]=(-l*e+a*c)*b,t[2]=(s*e-a*u)*b,t[3]=h*b,t[4]=(l*r-a*i)*b,t[5]=(-s*r+a*o)*b,t[6]=M*b,t[7]=(-c*r+e*i)*b,t[8]=(u*r-e*o)*b,t):null}function i(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=n[4],s=n[5],i=n[6],c=n[7],l=n[8];return t[0]=u*l-s*c,t[1]=a*c-e*l,t[2]=e*s-a*u,t[3]=s*i-o*l,t[4]=r*l-a*i,t[5]=a*o-r*s,t[6]=o*c-u*i,t[7]=e*i-r*c,t[8]=r*u-e*o,t}function c(t){const n=t[0],r=t[1],e=t[2],a=t[3],o=t[4],u=t[5],s=t[6],i=t[7],c=t[8];return n*(c*o-u*i)+r*(-c*a+u*s)+e*(i*a-o*s)}function l(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3],s=n[4],i=n[5],c=n[6],l=n[7],f=n[8],h=r[0],M=r[1],b=r[2],d=r[3],m=r[4],p=r[5],y=r[6],g=r[7],v=r[8];return t[0]=h*e+M*u+b*c,t[1]=h*a+M*s+b*l,t[2]=h*o+M*i+b*f,t[3]=d*e+m*u+p*c,t[4]=d*a+m*s+p*l,t[5]=d*o+m*i+p*f,t[6]=y*e+g*u+v*c,t[7]=y*a+g*s+v*l,t[8]=y*o+g*i+v*f,t}function f(t,n,r){const e=r[0],a=r[1],o=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=a*n[3],t[4]=a*n[4],t[5]=a*n[5],t[6]=o*n[6],t[7]=o*n[7],t[8]=o*n[8],t}function h(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=r+r,s=e+e,i=a+a,c=r*u,l=e*u,f=e*s,h=a*u,M=a*s,b=a*i,d=o*u,m=o*s,p=o*i;return t[0]=1-f-b,t[3]=l-p,t[6]=h+m,t[1]=l+p,t[4]=1-c-b,t[7]=M-d,t[2]=h-m,t[5]=M+d,t[8]=1-c-f,t}function M(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=n[4],s=n[5],i=n[6],c=n[7],l=n[8],f=n[9],h=n[10],M=n[11],b=n[12],d=n[13],m=n[14],p=n[15],y=r*s-e*u,g=r*i-a*u,v=r*c-o*u,w=e*i-a*s,O=e*c-o*s,S=a*c-o*i,I=l*d-f*b,x=l*m-h*b,q=l*p-M*b,A=f*m-h*d,R=f*p-M*d,_=h*p-M*m;let j=y*_-g*R+v*A+w*q-O*x+S*I;return j?(j=1/j,t[0]=(s*_-i*R+c*A)*j,t[1]=(i*q-u*_-c*x)*j,t[2]=(u*R-s*q+c*I)*j,t[3]=(a*R-e*_-o*A)*j,t[4]=(r*_-a*q+o*x)*j,t[5]=(e*q-r*R-o*I)*j,t[6]=(d*S-m*O+p*w)*j,t[7]=(m*v-b*S-p*g)*j,t[8]=(b*O-d*v+p*y)*j,t):null}function b(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}const d=l,m=b;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:i,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:c,equals:function(t,n){const r=t[0],a=t[1],o=t[2],u=t[3],s=t[4],i=t[5],c=t[6],l=t[7],f=t[8],h=n[0],M=n[1],b=n[2],d=n[3],m=n[4],p=n[5],y=n[6],g=n[7],v=n[8],w=(0,e.FD)();return Math.abs(r-h)<=w*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(a-M)<=w*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(o-b)<=w*Math.max(1,Math.abs(o),Math.abs(b))&&Math.abs(u-d)<=w*Math.max(1,Math.abs(u),Math.abs(d))&&Math.abs(s-m)<=w*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(i-p)<=w*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(c-y)<=w*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(l-g)<=w*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(f-v)<=w*Math.max(1,Math.abs(f),Math.abs(v))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:a,fromQuat:h,fromRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:function(t){const n=(0,e.FD)(),r=t[0],a=t[1],o=t[2],u=t[3],s=t[4],i=t[5],c=t[6],l=t[7],f=t[8];return Math.abs(1-(r*r+u*u+c*c))<=n&&Math.abs(1-(a*a+s*s+l*l))<=n&&Math.abs(1-(o*o+i*i+f*f))<=n},mul:d,multiply:l,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:M,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],a=n[2],o=n[4],u=n[5],s=n[6],i=n[8],c=n[9],l=n[10],f=l*u-s*c,h=-l*o+s*i,M=c*o-u*i,b=r*f+e*h+a*M;if(!b)return null;const d=1/b;return t[0]=f*d,t[1]=(-l*e+a*c)*d,t[2]=(s*e-a*u)*d,t[3]=h*d,t[4]=(l*r-a*i)*d,t[5]=(-s*r+a*o)*d,t[6]=M*d,t[7]=(-c*r+e*i)*d,t[8]=(u*r-e*o)*d,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3],s=n[4],i=n[5],c=n[6],l=n[7],f=n[8],h=Math.sin(r),M=Math.cos(r);return t[0]=M*e+h*u,t[1]=M*a+h*s,t[2]=M*o+h*i,t[3]=M*u-h*e,t[4]=M*s-h*a,t[5]=M*i-h*o,t[6]=c,t[7]=l,t[8]=f,t},scale:f,scaleByVec2:function(t,n,r){const e=r[0],a=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=a*n[3],t[4]=a*n[4],t[5]=a*n[5],t},set:o,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:b,translate:function(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3],s=n[4],i=n[5],c=n[6],l=n[7],f=n[8],h=r[0],M=r[1];return t[0]=e,t[1]=a,t[2]=o,t[3]=u,t[4]=s,t[5]=i,t[6]=h*e+M*u+c,t[7]=h*a+M*s+l,t[8]=h*o+M*i+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},58083(t,n,r){r.d(n,{$0:()=>m,$h:()=>q,B8:()=>c,C:()=>o,D_:()=>s,N9:()=>y,O7:()=>x,Tl:()=>f,X_:()=>O,e$:()=>M,eL:()=>b,hM:()=>p,hZ:()=>u,hs:()=>h,kN:()=>d,l:()=>S,lw:()=>l,mg:()=>i,o1:()=>I,sC:()=>w,t2:()=>j,t5:()=>R,tZ:()=>D,ut:()=>T,v3:()=>A});var e=r(51850),a=r(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function u(t,n,r,e,a,o,u,s,i,c,l,f,h,M,b,d,m){return t[0]=n,t[1]=r,t[2]=e,t[3]=a,t[4]=o,t[5]=u,t[6]=s,t[7]=i,t[8]=c,t[9]=l,t[10]=f,t[11]=h,t[12]=M,t[13]=b,t[14]=d,t[15]=m,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function i(t,n){if(t===n){const r=n[1],e=n[2],a=n[3],o=n[6],u=n[7],s=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=r,t[6]=n[9],t[7]=n[13],t[8]=e,t[9]=o,t[11]=n[14],t[12]=a,t[13]=u,t[14]=s}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function c(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=n[4],s=n[5],i=n[6],c=n[7],l=n[8],f=n[9],h=n[10],M=n[11],b=n[12],d=n[13],m=n[14],p=n[15],y=r*s-e*u,g=r*i-a*u,v=r*c-o*u,w=e*i-a*s,O=e*c-o*s,S=a*c-o*i,I=l*d-f*b,x=l*m-h*b,q=l*p-M*b,A=f*m-h*d,R=f*p-M*d,_=h*p-M*m;let j=y*_-g*R+v*A+w*q-O*x+S*I;return j?(j=1/j,t[0]=(s*_-i*R+c*A)*j,t[1]=(a*R-e*_-o*A)*j,t[2]=(d*S-m*O+p*w)*j,t[3]=(h*O-f*S-M*w)*j,t[4]=(i*q-u*_-c*x)*j,t[5]=(r*_-a*q+o*x)*j,t[6]=(m*v-b*S-p*g)*j,t[7]=(l*S-h*v+M*g)*j,t[8]=(u*R-s*q+c*I)*j,t[9]=(e*q-r*R-o*I)*j,t[10]=(b*O-d*v+p*y)*j,t[11]=(f*v-l*O-M*y)*j,t[12]=(s*x-u*A-i*I)*j,t[13]=(r*A-e*x+a*I)*j,t[14]=(d*g-b*w-m*y)*j,t[15]=(l*w-f*g+h*y)*j,t):null}function l(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3],s=n[4],i=n[5],c=n[6],l=n[7],f=n[8],h=n[9],M=n[10],b=n[11],d=n[12],m=n[13],p=n[14],y=n[15];let g=r[0],v=r[1],w=r[2],O=r[3];return t[0]=g*e+v*s+w*f+O*d,t[1]=g*a+v*i+w*h+O*m,t[2]=g*o+v*c+w*M+O*p,t[3]=g*u+v*l+w*b+O*y,g=r[4],v=r[5],w=r[6],O=r[7],t[4]=g*e+v*s+w*f+O*d,t[5]=g*a+v*i+w*h+O*m,t[6]=g*o+v*c+w*M+O*p,t[7]=g*u+v*l+w*b+O*y,g=r[8],v=r[9],w=r[10],O=r[11],t[8]=g*e+v*s+w*f+O*d,t[9]=g*a+v*i+w*h+O*m,t[10]=g*o+v*c+w*M+O*p,t[11]=g*u+v*l+w*b+O*y,g=r[12],v=r[13],w=r[14],O=r[15],t[12]=g*e+v*s+w*f+O*d,t[13]=g*a+v*i+w*h+O*m,t[14]=g*o+v*c+w*M+O*p,t[15]=g*u+v*l+w*b+O*y,t}function f(t,n,r){const e=r[0],a=r[1],o=r[2];if(n===t)t[12]=n[0]*e+n[4]*a+n[8]*o+n[12],t[13]=n[1]*e+n[5]*a+n[9]*o+n[13],t[14]=n[2]*e+n[6]*a+n[10]*o+n[14],t[15]=n[3]*e+n[7]*a+n[11]*o+n[15];else{const r=n[0],u=n[1],s=n[2],i=n[3],c=n[4],l=n[5],f=n[6],h=n[7],M=n[8],b=n[9],d=n[10],m=n[11];t[0]=r,t[1]=u,t[2]=s,t[3]=i,t[4]=c,t[5]=l,t[6]=f,t[7]=h,t[8]=M,t[9]=b,t[10]=d,t[11]=m,t[12]=r*e+c*a+M*o+n[12],t[13]=u*e+l*a+b*o+n[13],t[14]=s*e+f*a+d*o+n[14],t[15]=i*e+h*a+m*o+n[15]}return t}function h(t,n,r){const e=r[0],a=r[1],o=r[2];return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*a,t[5]=n[5]*a,t[6]=n[6]*a,t[7]=n[7]*a,t[8]=n[8]*o,t[9]=n[9]*o,t[10]=n[10]*o,t[11]=n[11]*o,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function M(t,n,r,e){let u=e[0],s=e[1],i=e[2],c=Math.sqrt(u*u+s*s+i*i);if(c<=(0,a.FD)())return void o(t,n);c=1/c,u*=c,s*=c,i*=c;const l=Math.sin(r),f=Math.cos(r),h=1-f,M=n[0],b=n[1],d=n[2],m=n[3],p=n[4],y=n[5],g=n[6],v=n[7],w=n[8],O=n[9],S=n[10],I=n[11],x=u*u*h+f,q=s*u*h+i*l,A=i*u*h-s*l,R=u*s*h-i*l,_=s*s*h+f,j=i*s*h+u*l,T=u*i*h+s*l,D=s*i*h-u*l,P=i*i*h+f;t[0]=M*x+p*q+w*A,t[1]=b*x+y*q+O*A,t[2]=d*x+g*q+S*A,t[3]=m*x+v*q+I*A,t[4]=M*R+p*_+w*j,t[5]=b*R+y*_+O*j,t[6]=d*R+g*_+S*j,t[7]=m*R+v*_+I*j,t[8]=M*T+p*D+w*P,t[9]=b*T+y*D+O*P,t[10]=d*T+g*D+S*P,t[11]=m*T+v*D+I*P,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function b(t,n,r){const e=Math.sin(r),a=Math.cos(r),o=n[4],u=n[5],s=n[6],i=n[7],c=n[8],l=n[9],f=n[10],h=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=o*a+c*e,t[5]=u*a+l*e,t[6]=s*a+f*e,t[7]=i*a+h*e,t[8]=c*a-o*e,t[9]=l*a-u*e,t[10]=f*a-s*e,t[11]=h*a-i*e,t}function d(t,n){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]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function m(t,n,r){if(0===n)return s(t);let e=r[0],o=r[1],u=r[2],i=Math.sqrt(e*e+o*o+u*u);if(i<=(0,a.FD)())return null;i=1/i,e*=i,o*=i,u*=i;const c=Math.sin(n),l=Math.cos(n),f=1-l;return t[0]=e*e*f+l,t[1]=o*e*f+u*c,t[2]=u*e*f-o*c,t[3]=0,t[4]=e*o*f-u*c,t[5]=o*o*f+l,t[6]=u*o*f+e*c,t[7]=0,t[8]=e*u*f+o*c,t[9]=o*u*f-e*c,t[10]=u*u*f+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function p(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=e,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 g(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3],s=e+e,i=a+a,c=o+o,l=e*s,f=e*i,h=e*c,M=a*i,b=a*c,d=o*c,m=u*s,p=u*i,y=u*c;return t[0]=1-(M+d),t[1]=f+y,t[2]=h-p,t[3]=0,t[4]=f-y,t[5]=1-(l+d),t[6]=b+m,t[7]=0,t[8]=h+p,t[9]=b-m,t[10]=1-(l+M),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const v=(0,e.vt)();function w(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function O(t,n){const r=n[0],e=n[1],a=n[2],o=n[4],u=n[5],s=n[6],i=n[8],c=n[9],l=n[10];return t[0]=Math.sqrt(r*r+e*e+a*a),t[1]=Math.sqrt(o*o+u*u+s*s),t[2]=Math.sqrt(i*i+c*c+l*l),t}function S(t,n){const r=n[0]+n[5]+n[10];let e=0;return r>0?(e=2*Math.sqrt(r+1),t[3]=.25*e,t[0]=(n[6]-n[9])/e,t[1]=(n[8]-n[2])/e,t[2]=(n[1]-n[4])/e):n[0]>n[5]&&n[0]>n[10]?(e=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/e,t[0]=.25*e,t[1]=(n[1]+n[4])/e,t[2]=(n[8]+n[2])/e):n[5]>n[10]?(e=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/e,t[0]=(n[1]+n[4])/e,t[1]=.25*e,t[2]=(n[6]+n[9])/e):(e=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/e,t[0]=(n[8]+n[2])/e,t[1]=(n[6]+n[9])/e,t[2]=.25*e),t}function I(t,n,r,e){const a=n[0],o=n[1],u=n[2],s=n[3],i=a+a,c=o+o,l=u+u,f=a*i,h=a*c,M=a*l,b=o*c,d=o*l,m=u*l,p=s*i,y=s*c,g=s*l,v=e[0],w=e[1],O=e[2];return t[0]=(1-(b+m))*v,t[1]=(h+g)*v,t[2]=(M-y)*v,t[3]=0,t[4]=(h-g)*w,t[5]=(1-(f+m))*w,t[6]=(d+p)*w,t[7]=0,t[8]=(M+y)*O,t[9]=(d-p)*O,t[10]=(1-(f+b))*O,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function x(t,n,r,e,a){const o=n[0],u=n[1],s=n[2],i=n[3],c=o+o,l=u+u,f=s+s,h=o*c,M=o*l,b=o*f,d=u*l,m=u*f,p=s*f,y=i*c,g=i*l,v=i*f,w=e[0],O=e[1],S=e[2],I=a[0],x=a[1],q=a[2],A=(1-(d+p))*w,R=(M+v)*w,_=(b-g)*w,j=(M-v)*O,T=(1-(h+p))*O,D=(m+y)*O,P=(b+g)*S,k=(m-y)*S,C=(1-(h+d))*S;return t[0]=A,t[1]=R,t[2]=_,t[3]=0,t[4]=j,t[5]=T,t[6]=D,t[7]=0,t[8]=P,t[9]=k,t[10]=C,t[11]=0,t[12]=r[0]+I-(A*I+j*x+P*q),t[13]=r[1]+x-(R*I+T*x+k*q),t[14]=r[2]+q-(_*I+D*x+C*q),t[15]=1,t}function q(t,n,r,e,a,o,u){const s=1/(r-n),i=1/(a-e),c=1/(o-u);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*i,t[6]=0,t[7]=0,t[8]=(r+n)*s,t[9]=(a+e)*i,t[10]=(u+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*o*2*c,t[15]=0,t}function A(t,n,r,e,a,o,u){const s=1/(n-r),i=1/(e-a),c=1/(o-u);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+r)*s,t[13]=(a+e)*i,t[14]=(u+o)*c,t[15]=1,t}function R(t,n,r,e){const o=n[0],u=n[1],i=n[2];let c=o-r[0],l=u-r[1],f=i-r[2];const h=(0,a.FD)();if(Math.abs(c)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void s(t);let M=1/Math.sqrt(c*c+l*l+f*f);c*=M,l*=M,f*=M;const b=e[0],d=e[1],m=e[2];let p=d*f-m*l,y=m*c-b*f,g=b*l-d*c;M=Math.sqrt(p*p+y*y+g*g),M?(M=1/M,p*=M,y*=M,g*=M):(p=0,y=0,g=0);let v=l*g-f*y,w=f*p-c*g,O=c*y-l*p;M=Math.sqrt(v*v+w*w+O*O),M?(M=1/M,v*=M,w*=M,O*=M):(v=0,w=0,O=0),t[0]=p,t[1]=v,t[2]=c,t[3]=0,t[4]=y,t[5]=w,t[6]=l,t[7]=0,t[8]=g,t[9]=O,t[10]=f,t[11]=0,t[12]=-(p*o+y*u+g*i),t[13]=-(v*o+w*u+O*i),t[14]=-(c*o+l*u+f*i),t[15]=1}function _(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t[9]=n[9]-r[9],t[10]=n[10]-r[10],t[11]=n[11]-r[11],t[12]=n[12]-r[12],t[13]=n[13]-r[13],t[14]=n[14]-r[14],t[15]=n[15]-r[15],t}function j(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function T(t){const n=(0,a.FD)(),r=t[0],e=t[1],o=t[2],u=t[4],s=t[5],i=t[6],c=t[8],l=t[9],f=t[10];return Math.abs(1-(r*r+u*u+c*c))<=n&&Math.abs(1-(e*e+s*s+l*l))<=n&&Math.abs(1-(o*o+i*i+f*f))<=n}function D(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=l,k=_;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t[9]=n[9]+r[9],t[10]=n[10]+r[10],t[11]=n[11]+r[11],t[12]=n[12]+r[12],t[13]=n[13]+r[13],t[14]=n[14]+r[14],t[15]=n[15]+r[15],t},adjoint:function(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=n[4],s=n[5],i=n[6],c=n[7],l=n[8],f=n[9],h=n[10],M=n[11],b=n[12],d=n[13],m=n[14],p=n[15];return t[0]=s*(h*p-M*m)-f*(i*p-c*m)+d*(i*M-c*h),t[1]=-(e*(h*p-M*m)-f*(a*p-o*m)+d*(a*M-o*h)),t[2]=e*(i*p-c*m)-s*(a*p-o*m)+d*(a*c-o*i),t[3]=-(e*(i*M-c*h)-s*(a*M-o*h)+f*(a*c-o*i)),t[4]=-(u*(h*p-M*m)-l*(i*p-c*m)+b*(i*M-c*h)),t[5]=r*(h*p-M*m)-l*(a*p-o*m)+b*(a*M-o*h),t[6]=-(r*(i*p-c*m)-u*(a*p-o*m)+b*(a*c-o*i)),t[7]=r*(i*M-c*h)-u*(a*M-o*h)+l*(a*c-o*i),t[8]=u*(f*p-M*d)-l*(s*p-c*d)+b*(s*M-c*f),t[9]=-(r*(f*p-M*d)-l*(e*p-o*d)+b*(e*M-o*f)),t[10]=r*(s*p-c*d)-u*(e*p-o*d)+b*(e*c-o*s),t[11]=-(r*(s*M-c*f)-u*(e*M-o*f)+l*(e*c-o*s)),t[12]=-(u*(f*m-h*d)-l*(s*m-i*d)+b*(s*h-i*f)),t[13]=r*(f*m-h*d)-l*(e*m-a*d)+b*(e*h-a*f),t[14]=-(r*(s*m-i*d)-u*(e*m-a*d)+b*(e*i-a*s)),t[15]=r*(s*h-i*f)-u*(e*h-a*f)+l*(e*i-a*s),t},copy:o,determinant:function(t){const n=t[0],r=t[1],e=t[2],a=t[3],o=t[4],u=t[5],s=t[6],i=t[7],c=t[8],l=t[9],f=t[10],h=t[11],M=t[12],b=t[13],d=t[14],m=t[15];return(n*u-r*o)*(f*m-h*d)-(n*s-e*o)*(l*m-h*b)+(n*i-a*o)*(l*d-f*b)+(r*s-e*u)*(c*m-h*M)-(r*i-a*u)*(c*d-f*M)+(e*i-a*s)*(c*b-l*M)},equals:function(t,n){if(t===n)return!0;const r=t[0],e=t[1],o=t[2],u=t[3],s=t[4],i=t[5],c=t[6],l=t[7],f=t[8],h=t[9],M=t[10],b=t[11],d=t[12],m=t[13],p=t[14],y=t[15],g=n[0],v=n[1],w=n[2],O=n[3],S=n[4],I=n[5],x=n[6],q=n[7],A=n[8],R=n[9],_=n[10],j=n[11],T=n[12],D=n[13],P=n[14],k=n[15],C=(0,a.FD)();return Math.abs(r-g)<=C*Math.max(1,Math.abs(r),Math.abs(g))&&Math.abs(e-v)<=C*Math.max(1,Math.abs(e),Math.abs(v))&&Math.abs(o-w)<=C*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(u-O)<=C*Math.max(1,Math.abs(u),Math.abs(O))&&Math.abs(s-S)<=C*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(i-I)<=C*Math.max(1,Math.abs(i),Math.abs(I))&&Math.abs(c-x)<=C*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(l-q)<=C*Math.max(1,Math.abs(l),Math.abs(q))&&Math.abs(f-A)<=C*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(h-R)<=C*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(M-_)<=C*Math.max(1,Math.abs(M),Math.abs(_))&&Math.abs(b-j)<=C*Math.max(1,Math.abs(b),Math.abs(j))&&Math.abs(d-T)<=C*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(m-D)<=C*Math.max(1,Math.abs(m),Math.abs(D))&&Math.abs(p-P)<=C*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(y-k)<=C*Math.max(1,Math.abs(y),Math.abs(k))},exactEquals:j,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,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=r+r,s=e+e,i=a+a,c=r*u,l=e*u,f=e*s,h=a*u,M=a*s,b=a*i,d=o*u,m=o*s,p=o*i;return t[0]=1-f-b,t[1]=l+p,t[2]=h-m,t[3]=0,t[4]=l-p,t[5]=1-c-b,t[6]=M+d,t[7]=0,t[8]=h+m,t[9]=M-d,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const r=v,e=-n[0],a=-n[1],o=-n[2],u=n[3],s=n[4],i=n[5],c=n[6],l=n[7],f=e*e+a*a+o*o+u*u;return f>0?(r[0]=2*(s*u+l*e+i*o-c*a)/f,r[1]=2*(i*u+l*a+c*e-s*o)/f,r[2]=2*(c*u+l*o+s*a-i*e)/f):(r[0]=2*(s*u+l*e+i*o-c*a),r[1]=2*(i*u+l*a+c*e-s*o),r[2]=2*(c*u+l*o+s*a-i*e)),g(t,n,r),t},fromRotation:m,fromRotationTranslation:g,fromRotationTranslationScale:I,fromRotationTranslationScaleOrigin:x,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:d,fromXRotation:p,fromYRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:y,frustum:q,getRotation:S,getScale:O,getTranslation:w,hasIdentityRotation:D,identity:s,invert:c,invertOrIdentity:function(t,n){return c(t,n)||s(t),t},isOrthoNormal:T,lookAt:R,mul:P,multiply:l,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t[9]=n[9]*r,t[10]=n[10]*r,t[11]=n[11]*r,t[12]=n[12]*r,t[13]=n[13]*r,t[14]=n[14]*r,t[15]=n[15]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t[9]=n[9]+r[9]*e,t[10]=n[10]+r[10]*e,t[11]=n[11]+r[11]*e,t[12]=n[12]+r[12]*e,t[13]=n[13]+r[13]*e,t[14]=n[14]+r[14]*e,t[15]=n[15]+r[15]*e,t},ortho:A,perspective:function(t,n,r,e,a){const o=1/Math.tan(n/2);let u;return t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=a&&a!==1/0?(u=1/(e-a),t[10]=(a+e)*u,t[14]=2*a*e*u):(t[10]=-1,t[14]=-2*e),t},perspectiveFromFieldOfView:function(t,n,r,e){const a=Math.tan(n.upDegrees*Math.PI/180),o=Math.tan(n.downDegrees*Math.PI/180),u=Math.tan(n.leftDegrees*Math.PI/180),s=Math.tan(n.rightDegrees*Math.PI/180),i=2/(u+s),c=2/(a+o);return t[0]=i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(u-s)*i*.5,t[9]=(a-o)*c*.5,t[10]=e/(r-e),t[11]=-1,t[12]=0,t[13]=0,t[14]=e*r/(r-e),t[15]=0,t},rotate:M,rotateX:b,rotateY:function(t,n,r){const e=Math.sin(r),a=Math.cos(r),o=n[0],u=n[1],s=n[2],i=n[3],c=n[8],l=n[9],f=n[10],h=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=o*a-c*e,t[1]=u*a-l*e,t[2]=s*a-f*e,t[3]=i*a-h*e,t[8]=o*e+c*a,t[9]=u*e+l*a,t[10]=s*e+f*a,t[11]=i*e+h*a,t},rotateZ:function(t,n,r){const e=Math.sin(r),a=Math.cos(r),o=n[0],u=n[1],s=n[2],i=n[3],c=n[4],l=n[5],f=n[6],h=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=o*a+c*e,t[1]=u*a+l*e,t[2]=s*a+f*e,t[3]=i*a+h*e,t[4]=c*a-o*e,t[5]=l*a-u*e,t[6]=f*a-s*e,t[7]=h*a-i*e,t},scale:h,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:k,subtract:_,targetTo:function(t,n,r,e){const a=n[0],o=n[1],u=n[2],s=e[0],i=e[1],c=e[2];let l=a-r[0],f=o-r[1],h=u-r[2],M=l*l+f*f+h*h;M>0&&(M=1/Math.sqrt(M),l*=M,f*=M,h*=M);let b=i*h-c*f,d=c*l-s*h,m=s*f-i*l;return M=b*b+d*d+m*m,M>0&&(M=1/Math.sqrt(M),b*=M,d*=M,m*=M),t[0]=b,t[1]=d,t[2]=m,t[3]=0,t[4]=f*m-h*d,t[5]=h*b-l*m,t[6]=l*d-f*b,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=a,t[13]=o,t[14]=u,t[15]=1,t},translate:f,transpose:i},Symbol.toStringTag,{value:"Module"}))},35522(t,n,r){r.d(n,{$A:()=>x,Bw:()=>o,C:()=>u,Cc:()=>q,DI:()=>O,Il:()=>Y,Io:()=>y,Ln:()=>p,Om:()=>I,Qr:()=>f,Re:()=>c,S8:()=>S,T9:()=>d,WQ:()=>i,Z0:()=>A,_S:()=>M,aI:()=>C,ei:()=>R,fw:()=>j,g7:()=>T,gL:()=>_,hG:()=>g,hZ:()=>s,hs:()=>m,jb:()=>U,jk:()=>b,lo:()=>Z,lw:()=>l,m3:()=>v,oW:()=>N,t2:()=>k,tn:()=>h,uE:()=>L,xg:()=>z,ze:()=>w});var e=r(51850),a=r(34304);function o(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function u(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,r,e){return t[0]=n,t[1]=r,t[2]=e,t}function i(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function l(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function f(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function M(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function b(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t}function d(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t}function m(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function p(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t}function y(t,n){const r=n[0]-t[0],e=n[1]-t[1],a=n[2]-t[2];return Math.sqrt(r*r+e*e+a*a)}function g(t,n){const r=n[0]-t[0],e=n[1]-t[1],a=n[2]-t[2];return r*r+e*e+a*a}function v(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function w(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function O(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function S(t,n){const r=n[0],e=n[1],a=n[2];let o=r*r+e*e+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o,t[2]=n[2]*o),t}function I(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function x(t,n,r){const e=n[0],a=n[1],o=n[2],u=r[0],s=r[1],i=r[2];return t[0]=a*i-o*s,t[1]=o*u-e*i,t[2]=e*s-a*u,t}function q(t,n,r,e){const a=n[0],o=n[1],u=n[2];return t[0]=a+e*(r[0]-a),t[1]=o+e*(r[1]-o),t[2]=u+e*(r[2]-u),t}function A(t,n,r){const e=n[0],a=n[1],o=n[2];return t[0]=r[0]*e+r[4]*a+r[8]*o+r[12],t[1]=r[1]*e+r[5]*a+r[9]*o+r[13],t[2]=r[2]*e+r[6]*a+r[10]*o+r[14],t}function R(t,n,r){const e=n[0],a=n[1],o=n[2];return t[0]=e*r[0]+a*r[3]+o*r[6],t[1]=e*r[1]+a*r[4]+o*r[7],t[2]=e*r[2]+a*r[5]+o*r[8],t}function _(t,n,r){return j(t,n,r[0],r[1],r[2],r[3])}function j(t,n,r,e,a,o){const u=n[0],s=n[1],i=n[2],c=e*i-a*s,l=a*u-r*i,f=r*s-e*u,h=e*f-a*l,M=a*c-r*f,b=r*l-e*c,d=2*o;return t[0]=u+c*d+2*h,t[1]=s+l*d+2*M,t[2]=i+f*d+2*b,t}function T(t,n){S(D,t),S(P,n);const r=I(D,P);return r>1?0:r<-1?Math.PI:Math.acos(r)}const D=(0,e.vt)(),P=(0,e.vt)();function k(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function C(t,n){if(t===n)return!0;const r=t[0],e=t[1],o=t[2],u=n[0],s=n[1],i=n[2],c=(0,a.FD)();return Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(e-s)<=c*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(o-i)<=c*Math.max(1,Math.abs(o),Math.abs(i))}function N(t,n,r){const e=r[0]-n[0],a=r[1]-n[1],o=r[2]-n[2];let u=e*e+a*a+o*o;return u>0?(u=1/Math.sqrt(u),t[0]=e*u,t[1]=a*u,t[2]=o*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const U=c,E=l,F=f,z=y,Z=g,Y=o,L=v;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:i,angle:T,bezier:function(t,n,r,e,a,o){const u=1-o,s=u*u,i=o*o,c=s*u,l=3*o*s,f=3*i*u,h=i*o;return t[0]=n[0]*c+r[0]*l+e[0]*f+a[0]*h,t[1]=n[1]*c+r[1]*l+e[1]*f+a[1]*h,t[2]=n[2]*c+r[2]*l+e[2]*f+a[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,r=1){return t[0]=Math.min(Math.max(t[0],n),r),t[1]=Math.min(Math.max(t[1],n),r),t[2]=Math.min(Math.max(t[2],n),r),t},copy:u,cross:x,crossAndNormalize:function(t,n,r){const e=n[0],a=n[1],o=n[2],u=r[0],s=r[1],i=r[2],c=a*i-o*s,l=o*u-e*i,f=e*s-a*u,h=Math.sqrt(c*c+l*l+f*f);return t[0]=c/h,t[1]=l/h,t[2]=f/h,t},direction:N,dist:z,distance:y,div:F,divide:f,dot:I,equals:C,exactEquals:k,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,r,e,a,o){const u=o*o,s=u*(2*o-3)+1,i=u*(o-2)+o,c=u*(o-1),l=u*(3-2*o);return t[0]=n[0]*s+r[0]*i+e[0]*c+a[0]*l,t[1]=n[1]*s+r[1]*i+e[1]*c+a[1]*l,t[2]=n[2]*s+r[2]*i+e[2]*c+a[2]*l,t},inverse:O,len:Y,length:o,lerp:q,max:d,min:b,mul:E,multiply:l,negate:w,normalize:S,random:function(t,n=1){const r=a.Ov,e=2*r()*Math.PI,o=2*r()-1,u=Math.sqrt(1-o*o)*n;return t[0]=Math.cos(e)*u,t[1]=Math.sin(e)*u,t[2]=o*n,t},rotateX:function(t,n,r,e){const a=[],o=[];return a[0]=n[0]-r[0],a[1]=n[1]-r[1],a[2]=n[2]-r[2],o[0]=a[0],o[1]=a[1]*Math.cos(e)-a[2]*Math.sin(e),o[2]=a[1]*Math.sin(e)+a[2]*Math.cos(e),t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t},rotateY:function(t,n,r,e){const a=[],o=[];return a[0]=n[0]-r[0],a[1]=n[1]-r[1],a[2]=n[2]-r[2],o[0]=a[2]*Math.sin(e)+a[0]*Math.cos(e),o[1]=a[1],o[2]=a[2]*Math.cos(e)-a[0]*Math.sin(e),t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t},rotateZ:function(t,n,r,e){const a=[],o=[];return a[0]=n[0]-r[0],a[1]=n[1]-r[1],a[2]=n[2]-r[2],o[0]=a[0]*Math.cos(e)-a[1]*Math.sin(e),o[1]=a[0]*Math.sin(e)+a[1]*Math.cos(e),o[2]=a[2],t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:m,scaleAndAdd:p,set:s,sign:M,sqrDist:Z,sqrLen:L,squaredDistance:g,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:U,subtract:c,transformMat3:R,transformMat4:A,transformQuat:_,transformQuatValues:j},Symbol.toStringTag,{value:"Module"}))},78955(t,n,r){r.d(n,{Bw:()=>m,C:()=>a,Cc:()=>v,LI:()=>h,Om:()=>g,S8:()=>y,T9:()=>f,WQ:()=>u,Z0:()=>w,aI:()=>S,hG:()=>d,hZ:()=>o,hs:()=>M,jk:()=>l,m3:()=>p,t2:()=>O});var e=r(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function o(t,n,r,e,a){return t[0]=n,t[1]=r,t[2]=e,t[3]=a,t}function u(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t}function s(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}function i(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t[3]=n[3]*r[3],t}function c(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t[3]=n[3]/r[3],t}function l(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t[3]=Math.min(n[3],r[3]),t}function f(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t[3]=Math.max(n[3],r[3]),t}function h(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function M(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t}function b(t,n){const r=n[0]-t[0],e=n[1]-t[1],a=n[2]-t[2],o=n[3]-t[3];return Math.sqrt(r*r+e*e+a*a+o*o)}function d(t,n){const r=n[0]-t[0],e=n[1]-t[1],a=n[2]-t[2],o=n[3]-t[3];return r*r+e*e+a*a+o*o}function m(t){const n=t[0],r=t[1],e=t[2],a=t[3];return Math.sqrt(n*n+r*r+e*e+a*a)}function p(t){const n=t[0],r=t[1],e=t[2],a=t[3];return n*n+r*r+e*e+a*a}function y(t,n){const r=n[0],e=n[1],a=n[2],o=n[3];let u=r*r+e*e+a*a+o*o;return u>0&&(u=1/Math.sqrt(u),t[0]=r*u,t[1]=e*u,t[2]=a*u,t[3]=o*u),t}function g(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function v(t,n,r,e){const a=n[0],o=n[1],u=n[2],s=n[3];return t[0]=a+e*(r[0]-a),t[1]=o+e*(r[1]-o),t[2]=u+e*(r[2]-u),t[3]=s+e*(r[3]-s),t}function w(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3];return t[0]=r[0]*e+r[4]*a+r[8]*o+r[12]*u,t[1]=r[1]*e+r[5]*a+r[9]*o+r[13]*u,t[2]=r[2]*e+r[6]*a+r[10]*o+r[14]*u,t[3]=r[3]*e+r[7]*a+r[11]*o+r[15]*u,t}function O(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function S(t,n){const r=t[0],a=t[1],o=t[2],u=t[3],s=n[0],i=n[1],c=n[2],l=n[3],f=(0,e.FD)();return Math.abs(r-s)<=f*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-i)<=f*Math.max(1,Math.abs(a),Math.abs(i))&&Math.abs(o-c)<=f*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(u-l)<=f*Math.max(1,Math.abs(u),Math.abs(l))}const I=s,x=i,q=c,A=b,R=d,_=m,j=p;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:a,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:A,distance:b,div:q,divide:c,dot:g,equals:S,exactEquals:O,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:_,length:m,lerp:v,max:f,min:l,mul:x,multiply:i,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:y,random:function(t,n=1){const r=e.Ov;let a,o,u,s,i,c;do{a=2*r()-1,o=2*r()-1,i=a*a+o*o}while(i>=1);do{u=2*r()-1,s=2*r()-1,c=u*u+s*s}while(c>=1);const l=Math.sqrt((1-i)/c);return t[0]=n*a,t[1]=n*o,t[2]=n*u*l,t[3]=n*s*l,t},round:h,scale:M,scaleAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t},set:o,sqrDist:R,sqrLen:j,squaredDistance:d,squaredLength:p,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:I,subtract:s,transformMat4:w,transformQuat:function(t,n,r){const e=n[0],a=n[1],o=n[2],u=r[0],s=r[1],i=r[2],c=r[3],l=c*e+s*o-i*a,f=c*a+i*e-u*o,h=c*o+u*a-s*e,M=-u*e-s*a-i*o;return t[0]=l*c+M*-u+f*-i-h*-s,t[1]=f*c+M*-s+h*-u-l*-i,t[2]=h*c+M*-i+l*-s-f*-u,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},9762(t,n,r){r.r(n),r.d(n,{projectBuffer:()=>a});var e=r(49208);function a(t,n,r,a,o,u,s=Math.floor(t.length/3)){const i=(0,e.jd)(n,o);if(null==i)return!1;if(i===e.pO){if(t===a&&r===u)return!0;const n=r+3*s;for(let e=r,o=u;e<n;e++,o++)a[o]=t[e]??0;return!0}const c=r+3*s;for(let n=r,e=u;n<c;n+=3,e+=3)i(t,n,a,e);return!0}},49208(t,n,r){r.d(n,{Tp:()=>f,jd:()=>l,pO:()=>M,w5:()=>c});var e=r(34727),a=r(86211),o=r(73941),u=r(79258),s=r(34403),i=r(21325);const c={2:{5:M,7:null,9:null,10:M,1:w,6:null,8:null,0:null,3:d,11:m,2:M,4:q},5:{5:M,7:null,9:null,10:M,1:w,6:null,8:null,0:null,3:d,11:m,2:M,4:q},7:{5:null,7:M,9:null,10:M,1:null,6:v,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:g,0:null,3:null,11:null,2:null,4:null},3:{5:b,7:null,9:null,10:b,1:function(t,n,r,e){const a=t[n]/D,o=T-2*Math.atan(Math.exp(-t[n+1]/D)),u=D+(t[n+2]??0),s=Math.cos(o)*u;r[e]=Math.cos(a)*s,r[e+1]=Math.sin(a)*s,r[e+2]=Math.sin(o)*u},6:null,8:null,0:null,3:M,11:function(t,n,r,e){b(t,n,r,e),m(r,e,r,e)},2:b,4:function(t,n,r,e){b(t,n,r,e),q(r,e,r,e)}},4:{5:A,7:null,9:null,10:A,1:function(t,n,r,e){A(t,n,r,e),w(r,e,r,e)},6:null,8:null,0:null,3:function(t,n,r,e){A(t,n,r,e),d(r,e,r,e)},11:function(t,n,r,e){A(t,n,r,e),m(r,e,r,e)},2:A,4:M},1:{5:x,7:null,9:null,10:x,1:M,6:null,8:null,0:null,3:function(t,n,r,e){x(t,n,r,e),d(r,e,r,e)},11:function(t,n,r,e){x(t,n,r,e),m(r,e,r,e)},2:x,4:function(t,n,r,e){x(t,n,r,e),q(r,e,r,e)}},6:{5:null,7:I,9:null,10:I,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:S,10:S,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:w,6:v,8:g,0:null,3:d,11:m,2:M,4:q},11:{5:p,7:null,9:null,10:p,1:function(t,n,r,e){p(t,n,r,e),w(r,e,r,e)},6:null,8:null,0:null,3:function(t,n,r,e){p(t,n,r,e),d(r,e,r,e)},11:M,2:p,4:function(t,n,r,e){p(t,n,r,e),q(r,e,r,e)}}};function l(t,n){return f(t,n)?.projector}function f(t,n){if(null==t||null==n)return null;if(R.source.spatialReference===t&&R.dest.spatialReference===n)return R;const r=h(t,R.source),e=h(n,R.dest);return 0===r&&0===e?(0,i.aI)(t,n)?R.projector=M:R.projector=null:R.projector=c[r][e],R}function h(t,n){return t?n.spatialReference===t?n.spatialReferenceId:(n.spatialReference=t,"metersPerUnit"in n&&(n.metersPerUnit=(0,a.GA)(t,1)),(0,o.jA)(t)?n.spatialReferenceId=1:(0,i.oT)(t)?n.spatialReferenceId=2:(0,i.K8)(t)?n.spatialReferenceId=3:(0,i.r1)(t)?n.spatialReferenceId=11:t.wkt===o.Ro.wkt?n.spatialReferenceId=4:4490===t.wkid?n.spatialReferenceId=5:t.wkt===o.FY.wkt?n.spatialReferenceId=6:t.wkt===o.LJ.wkt?n.spatialReferenceId=8:(0,o.q8)(t)?n.spatialReferenceId=7:(0,o.KQ)(t)?n.spatialReferenceId=9:n.spatialReferenceId=0):0}function M(t,n,r,e){t!==r&&(r[e++]=t[n++],r[e++]=t[n++],r[e]=t[n]??0)}function b(t,n,r,e){r[e]=j*(t[n]/D),r[e+1]=j*(T-2*Math.atan(Math.exp(-t[n+1]/D))),r[e+2]=t[n+2]??0}function d(t,n,r,a){!function(t,n,r,a,o){const u=.4999999*Math.PI,s=(0,e.qE)(_*t[n+1],-u,u),i=Math.sin(s);r[a++]=_*t[n]*o.radius,r[a++]=o.halfSemiMajorAxis*Math.log((1+i)/(1-i)),r[a]=t[n+2]??0}(t,n,r,a,u.$O)}function m(t,n,r,e){r[e]=t[n]*P,r[e+1]=t[n+1]*P,r[e+2]=t[n+2]??0}function p(t,n,r,e){r[e]=t[n]*k,r[e+1]=t[n+1]*k,r[e+2]=t[n+2]??0}function y(t,n,r,e,a){const o=a+(t[n+2]??0),u=_*t[n],s=_*t[n+1],i=Math.cos(s)*o;r[e]=Math.cos(u)*i,r[e+1]=Math.sin(u)*i,r[e+2]=Math.sin(s)*o}function g(t,n,r,e){y(t,n,r,e,u.Sw.radius)}function v(t,n,r,e){y(t,n,r,e,u.sH.radius)}function w(t,n,r,e){y(t,n,r,e,u.$O.radius)}function O(t,n,r,a,o){const u=t[n],s=t[n+1],i=t[n+2]??0,c=Math.sqrt(u*u+s*s+i*i),l=(0,e.YN)(i/(0===c?1:c)),f=Math.atan2(s,u);r[a++]=j*f,r[a++]=j*l,r[a]=c-o}function S(t,n,r,e){O(t,n,r,e,u.Sw.radius)}function I(t,n,r,e){O(t,n,r,e,u.sH.radius)}function x(t,n,r,e){O(t,n,r,e,u.$O.radius)}function q(t,n,r,e){!function(t,n,r,e,a){const o=_*t[n],u=_*t[n+1],s=t[n+2]??0,i=Math.sin(u),c=Math.cos(u),l=a.radius/Math.sqrt(1-a.eccentricitySquared*i*i);r[e++]=(l+s)*c*Math.cos(o),r[e++]=(l+s)*c*Math.sin(o),r[e++]=(l*(1-a.eccentricitySquared)+s)*i}(t,n,r,e,u.$O)}function A(t,n,r,e){const a=s.TP,o=t[n],i=t[n+1],c=t[n+2]??0;let l,f,h,M,b,d,m,p,y,g,v,w,O,S,I,x,q,A,R,_,T;l=Math.abs(c),f=o*o+i*i,h=Math.sqrt(f),M=f+c*c,b=Math.sqrt(M),_=Math.atan2(i,o),d=c*c/M,m=f/M,S=a.a2/b,I=a.a3-a.a4/b,m>.3?(p=l/b*(1+m*(a.a1+S+d*I)/b),R=Math.asin(p),g=p*p,y=Math.sqrt(1-g)):(y=h/b*(1-d*(a.a5-S-m*I)/b),R=Math.acos(y),g=1-y*y,p=Math.sqrt(g)),v=1-u.$O.eccentricitySquared*g,w=u.$O.radius/Math.sqrt(v),O=a.a6*w,S=h-w*y,I=l-O*p,q=y*S+p*I,x=y*I-p*S,A=x/(O/v+q),R+=A,T=q+x*A/2,c<0&&(R=-R),r[e++]=j*_,r[e++]=j*R,r[e]=T}const R={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:M},_=(0,e.kU)(1),j=(0,e.KJ)(1),T=.5*Math.PI,D=u.$O.radius,P=D*Math.PI/180,k=180/(D*Math.PI)},98764(t,n,r){r.d(n,{GD:()=>u,Y0:()=>c,lO:()=>l});var e=r(73941),a=r(16930),o=r(21325);const u=new a.A(e.fv),s=new a.A(e.FY),i=new a.A(e.LJ),c=new a.A(e.Ro);function l(t){const n=f.get(t);if(n)return n;let r=u;if(t)if(t===s)r=s;else if(t===i)r=i;else{const n=t.wkid,e=t.latestWkid;if(null!=n||null!=e)(0,o.tl)(n)||(0,o.tl)(e)?r=s:((0,o.ZL)(n)||(0,o.ZL)(e))&&(r=i);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?r=s:t===M&&(r=i)}}}return f.set(t,r),r}const f=new Map,h=s.wkt.toUpperCase(),M=i.wkt.toUpperCase()},34403(t,n,r){r.d(n,{TP:()=>u});var e=r(79258);Math.PI;const a=e.$O.radius,o=e.$O.eccentricitySquared,u={a1:a*o,a2:a*o*a*o,a3:a*o*o/2,a4:a*o*a*o*2.5,a5:a*o+a*o*o/2,a6:1-o};e.$O.radius,e.$O.flattening,e.Sw.radius,e.Sw.flattening,e.sH.radius,e.sH.flattening,e.sH.radius},64798(t,n,r){r.r(n),r.d(n,{default:()=>C});var e=r(4576),a=r(34275),o=r(82534),u=r(35522);function s(){return new Float32Array(3)}function i(t){const n=new Float32Array(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function c(t,n,r){const e=new Float32Array(3);return e[0]=t,e[1]=n,e[2]=r,e}function l(){return s()}function f(){return c(1,1,1)}function h(){return c(1,0,0)}function M(){return c(0,1,0)}function b(){return c(0,0,1)}const d=l(),m=f(),p=h(),y=M(),g=b();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:p,UNIT_Y:y,UNIT_Z:g,ZEROS:d,clone:i,create:s,fromValues:c,ones:f,unitX:h,unitY:M,unitZ:b,zeros:l},Symbol.toStringTag,{value:"Module"}));var v=r(51850),w=r(16930),O=r(9762),S=r(63531),I=r(69846),x=r(48425),q=r(59418),A=r(37203);function R(t,n,r){return t?.attributeInfo.useElevation?n?function(t,n){const r=new Float64Array(n);for(let e=0;e<n;e++)r[e]=t[3*e+2];return r}(n,r):null:t?.attributeInfo.storageInfo?(0,q.m0)(t.attributeInfo.storageInfo,t.buffer,r,!0):null}function _(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 j(t){let n=0;for(const r of t||[])n|=1<<r;return n}var T=r(57005);class D{transform(t){const n=this._transform(t),r=[n.points.buffer,n.rgb.buffer];null!=n.pointIdFilterMap&&r.push(n.pointIdFilterMap.buffer);for(const t of n.attributes)"buffer"in t.values&&(0,a.mw)(t.values.buffer)&&t.values.buffer!==n.rgb.buffer&&r.push(t.values.buffer);return Promise.resolve({result:n,transferList:r})}_transform(t){const n=function(t,n){if(null==t.encoding||""===t.encoding){const r=(0,q.wH)(n,t);if(null==r.vertexAttributes.position)return;const e=(0,q.MA)(n,r.vertexAttributes.position),a=r.header.fields,o=[a.offsetX,a.offsetY,a.offsetZ],u=[a.scaleX,a.scaleY,a.scaleZ],s=e.length/3,i=new Float64Array(3*s);for(let t=0;t<s;t++)i[3*t]=e[3*t]*u[0]+o[0],i[3*t+1]=e[3*t+1]*u[1]+o[1],i[3*t+2]=e[3*t+2]*u[2]+o[2];return i}if("lepcc-xyz"===t.encoding)return(0,A.Me)(n).result}(t.schema,t.geometryBuffer);let r=n.length/3,a=null;const o=new Array,u=R(t.primaryAttributeData,n,r);null!=t.primaryAttributeData&&u&&o.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:u});const s=R(t.modulationAttributeData,n,r);null!=t.modulationAttributeData&&s&&o.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:s});let i=function(t,n,r,e){const{rendererJSON:a,isRGBRenderer:o}=t;let u=null,s=null;if(n&&o)u=n;else if(n&&"pointCloudUniqueValueRenderer"===a?.type){s=x.A.fromJSON(a);const t=s.colorUniqueValueInfos;u=new Uint8Array(3*e);const r=_(s.fieldTransformType);for(let a=0;a<e;a++){const e=(r?r(n[a]):n[a])+"";for(let n=0;n<t.length;n++)if(t[n].values.includes(e)){u[3*a]=t[n].color.r,u[3*a+1]=t[n].color.g,u[3*a+2]=t[n].color.b;break}}}else if(n&&"pointCloudStretchRenderer"===a?.type){s=I.A.fromJSON(a);const t=s.stops;u=new Uint8Array(3*e);const r=_(s.fieldTransformType);for(let a=0;a<e;a++){const e=r?r(n[a]):n[a],o=t.length-1;if(e<t[0].value)u[3*a]=t[0].color.r,u[3*a+1]=t[0].color.g,u[3*a+2]=t[0].color.b;else if(e>=t[o].value)u[3*a]=t[o].color.r,u[3*a+1]=t[o].color.g,u[3*a+2]=t[o].color.b;else for(let n=1;n<t.length;n++)if(e<t[n].value){const r=(e-t[n-1].value)/(t[n].value-t[n-1].value);u[3*a]=t[n].color.r*r+t[n-1].color.r*(1-r),u[3*a+1]=t[n].color.g*r+t[n-1].color.g*(1-r),u[3*a+2]=t[n].color.b*r+t[n-1].color.b*(1-r);break}}}else if(n&&"pointCloudClassBreaksRenderer"===a?.type){s=S.A.fromJSON(a);const t=s.colorClassBreakInfos;u=new Uint8Array(3*e);const r=_(s.fieldTransformType);for(let a=0;a<e;a++){const e=r?r(n[a]):n[a];for(let n=0;n<t.length;n++)if(e>=t[n].minValue&&e<=t[n].maxValue){u[3*a]=t[n].color.r,u[3*a+1]=t[n].color.g,u[3*a+2]=t[n].color.b;break}}}else u=new Uint8Array(3*e).fill(255);if(r&&s?.colorModulation){const t=s.colorModulation.minValue,n=s.colorModulation.maxValue,a=.3;for(let o=0;o<e;o++){const e=r[o],s=e>=n?1:e<=t?a:a+(1-a)*(e-t)/(n-t);u[3*o]=s*u[3*o],u[3*o+1]=s*u[3*o+1],u[3*o+2]=s*u[3*o+2]}}return u}(t.rendererInfo,u,s,r);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){const u=t.filterAttributesData.filter(e.Ru).map(t=>{const e=R(t,n,r),a={attributeInfo:t.attributeInfo,values:e};return o.push(a),a});a=new Uint32Array(r),r=function(t,n,r,e,a){const o=t.length/3;let u=0;for(let s=0;s<o;s++){let o=!0;for(let t=0;t<e.length&&o;t++){const{filterJSON:n}=e[t],r=a[t].values[s];switch(n.type){case"pointCloudValueFilter":{const t="exclude"===n.mode;n.values.includes(r)===t&&(o=!1);break}case"pointCloudBitfieldFilter":{const t=j(n.requiredSetBits),e=j(n.requiredClearBits);(r&t)===t&&0===(r&e)||(o=!1);break}case"pointCloudReturnFilter":{const t=15&r,e=r>>>4&15,a=e>1,u=1===t,s=t===e;let i=!1;for(const t of n.includedReturns)if("last"===t&&s||"firstOfMany"===t&&u&&a||"lastOfMany"===t&&s&&a||"single"===t&&!a){i=!0;break}i||(o=!1);break}}}o&&(r[u]=s,t[3*u]=t[3*s],t[3*u+1]=t[3*s+1],t[3*u+2]=t[3*s+2],n[3*u]=n[3*s],n[3*u+1]=n[3*s+1],n[3*u+2]=n[3*s+2],u++)}return u}(n,i,a,t.filterInfo,u)}for(const e of t.userAttributesData){const t=R(e,n,r);o.push({attributeInfo:e.attributeInfo,values:t})}3*r<i.length&&(i=i.slice(0,3*r)),function(t,n,r){if(0!==r)for(let e=0;e<n;e++)t[3*e+2]+=r}(n,r,t.elevationOffset);const c=P(n,r,T.ab.fromData(t.obbData),w.A.fromJSON(t.inSR),w.A.fromJSON(t.outSR));return{obbData:t.obbData,points:c,rgb:i,attributes:o,pointIdFilterMap:a}}}function P(t,n,r,e,a){if(!(0,O.projectBuffer)(t,e,0,t,a,0,n))throw new Error("Can't reproject");const o=i(r.getCenter((0,v.vt)())),l=s(),f=s(),h=c(r.halfSizeX,r.halfSizeY,r.halfSizeZ);r.getQuaternionConjugate(k);const M=new Float32Array(3*n);for(let r=0;r<n;r++){let n=3*r;l[0]=t[n]-o[0],l[1]=t[n+1]-o[1],l[2]=t[n+2]-o[2],(0,u.gL)(f,l,k),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[n++]=l[0],M[n++]=l[1],M[n]=l[2]}return r.setHalfSize(h),M}const k=(0,o.vt)();function C(){return new D}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3846],{5482(t,n,r){function e(t,n,r,e){var a,o=arguments.length,u=o<3?n:null===e?e=Object.getOwnPropertyDescriptor(n,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,n,r,e);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(u=(o<3?a(u):o>3?a(n,r,u):a(n,r))||u);return o>3&&u&&Object.defineProperty(n,r,u),u}function a(t,n,r){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var e,a;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");e=n[Symbol.asyncDispose]}if(void 0===e){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");e=n[Symbol.dispose],r&&(a=e)}if("function"!=typeof e)throw new TypeError("Object not disposable.");a&&(e=function(){try{a.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:n,dispose:e,async:r})}else r&&t.stack.push({async:!0});return n}r.d(n,{Cg:()=>e,hk:()=>u,mS:()=>a}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(t,n,r){var e=new Error(r);return e.name="SuppressedError",e.error=t,e.suppressed=n,e};function u(t){function n(n){t.error=t.hasError?new o(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var r,e=0;return function a(){for(;r=t.stack.pop();)try{if(!r.async&&1===e)return e=0,t.stack.push(r),Promise.resolve().then(a);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return e|=2,Promise.resolve(o).then(a,function(t){return n(t),a()})}else e|=1}catch(t){n(t)}if(1===e)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69540(t,n,r){r.d(n,{OU:()=>l,Pw:()=>f});var e=r(5482),a=r(69622),o=(r(44208),r(4718)),u=(r(53966),r(97768)),s=r(88620),i=r(64108);const c=Symbol("ClonableMixin"),l=t=>{var n;const r=t;let a=class extends r{constructor(){super(...arguments),this[n]=!0}static{n=c}clone(t){const n=(0,s.oY)(this);(0,u.Lw)(n,"unable to clone instance of non-accessor class");const r=n.metadata,e=n.store,a={},i=new Map;for(const n in r){const u=r[n],s=e?.originOf(n),c=u.clonable;if(u.readOnly||!1===c||7!==s&&0!==s&&5!==s&&4!==s)continue;const l=this[n];let f=null;if("function"==typeof c)f=c(l,t);else if("reference"===c)f=l;else if(f=(0,o.TU)(l,t),null!=l&&null==f)continue;0===s?i.set(n,f):a[n]=f}const c=new(0,Object.getPrototypeOf(this).constructor)(a);if(i.size){const t=(0,s.oY)(c)?.store;if(t)for(const[n,r]of i)t.set(n,r,0)}return c}};return a=(0,e.Cg)([(0,i.$)("esri.core.Clonable")],a),a},f=l(a.A)},29242(t,n,r){function e(){return[1,0,0,0,1,0,0,0,1]}function a(t,n,r,e,a,o,u,s,i){return[t,n,r,e,a,o,u,s,i]}r.d(n,{fA:()=>a,vt:()=>e,zK:()=>o});const o=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:e,fromValues:a},Symbol.toStringTag,{value:"Module"}))},51850(t,n,r){function e(){return[0,0,0]}function a(t){return[t[0],t[1],t[2]]}function o(t,n,r){return[t,n,r]}function u(t,n,r){return[t,n,r]}function s(t,n=[0,0,0]){const r=Math.min(3,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n}function i(){return[0,0,0]}function c(){return o(1,1,1)}function l(){return o(1,0,0)}function f(){return o(0,1,0)}function h(){return o(0,0,1)}r.d(n,{CN:()=>u,Cb:()=>p,Cw:()=>d,JP:()=>m,S:()=>c,Ul:()=>i,Un:()=>b,ci:()=>s,fA:()=>o,o8:()=>a,uY:()=>M,vt:()=>e});const M=[0,0,0],b=c(),d=l(),m=f(),p=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:b,UNIT_X:d,UNIT_Y:m,UNIT_Z:p,ZEROS:M,clone:a,create:e,freeze:u,fromArray:s,fromValues:o,ones:c,unitX:l,unitY:f,unitZ:h,zeros:i},Symbol.toStringTag,{value:"Module"}))},91829(t,n,r){function e(){return[0,0,0,0]}function a(t,n,r,e){return[t,n,r,e]}function o(t,n,r,e){return[t,n,r,e]}function u(){return a(1,1,1,1)}function s(){return a(1,0,0,0)}function i(){return a(0,1,0,0)}function c(){return a(0,0,1,0)}function l(){return a(0,0,0,1)}r.d(n,{CN:()=>o,Un:()=>h,_Y:()=>l,fA:()=>a,uY:()=>f,vt:()=>e});const f=[0,0,0,0],h=u(),M=s(),b=i(),d=c(),m=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:m,UNIT_X:M,UNIT_Y:b,UNIT_Z:d,ZEROS:f,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:e,freeze:o,fromArray:function(t,n=[0,0,0,0]){const r=Math.min(4,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n},fromValues:a,ones:u,unitW:l,unitX:s,unitY:i,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304(t,n,r){r.d(n,{DF:()=>i,FD:()=>a,Ov:()=>o,ct:()=>c});let e=1e-6;function a(){return e}const o=Math.random,u=Math.PI/180,s=180/Math.PI;function i(t){return t*u}function c(t){return t*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(t,n){return Math.abs(t-n)<=e*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:a,setEpsilon:function(t){e=t},toDegree:c,toRadian:i},Symbol.toStringTag,{value:"Module"}))},77690(t,n,r){r.d(n,{B8:()=>s,Ge:()=>M,I0:()=>h,KC:()=>i,a4:()=>c,hZ:()=>o,hs:()=>f,lw:()=>l,mg:()=>u,z0:()=>a});var e=r(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function o(t,n,r,e,a,o,u,s,i,c){return t[0]=n,t[1]=r,t[2]=e,t[3]=a,t[4]=o,t[5]=u,t[6]=s,t[7]=i,t[8]=c,t}function u(t,n){if(t===n){const r=n[1],e=n[2],a=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=a}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function s(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=n[4],s=n[5],i=n[6],c=n[7],l=n[8],f=l*u-s*c,h=-l*o+s*i,M=c*o-u*i;let b=r*f+e*h+a*M;return b?(b=1/b,t[0]=f*b,t[1]=(-l*e+a*c)*b,t[2]=(s*e-a*u)*b,t[3]=h*b,t[4]=(l*r-a*i)*b,t[5]=(-s*r+a*o)*b,t[6]=M*b,t[7]=(-c*r+e*i)*b,t[8]=(u*r-e*o)*b,t):null}function i(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=n[4],s=n[5],i=n[6],c=n[7],l=n[8];return t[0]=u*l-s*c,t[1]=a*c-e*l,t[2]=e*s-a*u,t[3]=s*i-o*l,t[4]=r*l-a*i,t[5]=a*o-r*s,t[6]=o*c-u*i,t[7]=e*i-r*c,t[8]=r*u-e*o,t}function c(t){const n=t[0],r=t[1],e=t[2],a=t[3],o=t[4],u=t[5],s=t[6],i=t[7],c=t[8];return n*(c*o-u*i)+r*(-c*a+u*s)+e*(i*a-o*s)}function l(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3],s=n[4],i=n[5],c=n[6],l=n[7],f=n[8],h=r[0],M=r[1],b=r[2],d=r[3],m=r[4],p=r[5],y=r[6],g=r[7],v=r[8];return t[0]=h*e+M*u+b*c,t[1]=h*a+M*s+b*l,t[2]=h*o+M*i+b*f,t[3]=d*e+m*u+p*c,t[4]=d*a+m*s+p*l,t[5]=d*o+m*i+p*f,t[6]=y*e+g*u+v*c,t[7]=y*a+g*s+v*l,t[8]=y*o+g*i+v*f,t}function f(t,n,r){const e=r[0],a=r[1],o=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=a*n[3],t[4]=a*n[4],t[5]=a*n[5],t[6]=o*n[6],t[7]=o*n[7],t[8]=o*n[8],t}function h(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=r+r,s=e+e,i=a+a,c=r*u,l=e*u,f=e*s,h=a*u,M=a*s,b=a*i,d=o*u,m=o*s,p=o*i;return t[0]=1-f-b,t[3]=l-p,t[6]=h+m,t[1]=l+p,t[4]=1-c-b,t[7]=M-d,t[2]=h-m,t[5]=M+d,t[8]=1-c-f,t}function M(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=n[4],s=n[5],i=n[6],c=n[7],l=n[8],f=n[9],h=n[10],M=n[11],b=n[12],d=n[13],m=n[14],p=n[15],y=r*s-e*u,g=r*i-a*u,v=r*c-o*u,S=e*i-a*s,w=e*c-o*s,O=a*c-o*i,I=l*d-f*b,x=l*m-h*b,q=l*p-M*b,A=f*m-h*d,R=f*p-M*d,_=h*p-M*m;let j=y*_-g*R+v*A+S*q-w*x+O*I;return j?(j=1/j,t[0]=(s*_-i*R+c*A)*j,t[1]=(i*q-u*_-c*x)*j,t[2]=(u*R-s*q+c*I)*j,t[3]=(a*R-e*_-o*A)*j,t[4]=(r*_-a*q+o*x)*j,t[5]=(e*q-r*R-o*I)*j,t[6]=(d*O-m*w+p*S)*j,t[7]=(m*v-b*O-p*g)*j,t[8]=(b*w-d*v+p*y)*j,t):null}function b(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}const d=l,m=b;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:i,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:c,equals:function(t,n){const r=t[0],a=t[1],o=t[2],u=t[3],s=t[4],i=t[5],c=t[6],l=t[7],f=t[8],h=n[0],M=n[1],b=n[2],d=n[3],m=n[4],p=n[5],y=n[6],g=n[7],v=n[8],S=(0,e.FD)();return Math.abs(r-h)<=S*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(a-M)<=S*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(o-b)<=S*Math.max(1,Math.abs(o),Math.abs(b))&&Math.abs(u-d)<=S*Math.max(1,Math.abs(u),Math.abs(d))&&Math.abs(s-m)<=S*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(i-p)<=S*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(c-y)<=S*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(l-g)<=S*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(f-v)<=S*Math.max(1,Math.abs(f),Math.abs(v))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:a,fromQuat:h,fromRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:function(t){const n=(0,e.FD)(),r=t[0],a=t[1],o=t[2],u=t[3],s=t[4],i=t[5],c=t[6],l=t[7],f=t[8];return Math.abs(1-(r*r+u*u+c*c))<=n&&Math.abs(1-(a*a+s*s+l*l))<=n&&Math.abs(1-(o*o+i*i+f*f))<=n},mul:d,multiply:l,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:M,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],a=n[2],o=n[4],u=n[5],s=n[6],i=n[8],c=n[9],l=n[10],f=l*u-s*c,h=-l*o+s*i,M=c*o-u*i,b=r*f+e*h+a*M;if(!b)return null;const d=1/b;return t[0]=f*d,t[1]=(-l*e+a*c)*d,t[2]=(s*e-a*u)*d,t[3]=h*d,t[4]=(l*r-a*i)*d,t[5]=(-s*r+a*o)*d,t[6]=M*d,t[7]=(-c*r+e*i)*d,t[8]=(u*r-e*o)*d,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3],s=n[4],i=n[5],c=n[6],l=n[7],f=n[8],h=Math.sin(r),M=Math.cos(r);return t[0]=M*e+h*u,t[1]=M*a+h*s,t[2]=M*o+h*i,t[3]=M*u-h*e,t[4]=M*s-h*a,t[5]=M*i-h*o,t[6]=c,t[7]=l,t[8]=f,t},scale:f,scaleByVec2:function(t,n,r){const e=r[0],a=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=a*n[3],t[4]=a*n[4],t[5]=a*n[5],t},set:o,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:b,translate:function(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3],s=n[4],i=n[5],c=n[6],l=n[7],f=n[8],h=r[0],M=r[1];return t[0]=e,t[1]=a,t[2]=o,t[3]=u,t[4]=s,t[5]=i,t[6]=h*e+M*u+c,t[7]=h*a+M*s+l,t[8]=h*o+M*i+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},58083(t,n,r){r.d(n,{$0:()=>m,$h:()=>q,B8:()=>c,C:()=>o,D_:()=>s,N9:()=>y,O7:()=>x,Tl:()=>f,X_:()=>w,e$:()=>M,eL:()=>b,hM:()=>p,hZ:()=>u,hs:()=>h,kN:()=>d,l:()=>O,lw:()=>l,mg:()=>i,o1:()=>I,sC:()=>S,t2:()=>j,t5:()=>R,tZ:()=>D,ut:()=>T,v3:()=>A});var e=r(51850),a=r(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function u(t,n,r,e,a,o,u,s,i,c,l,f,h,M,b,d,m){return t[0]=n,t[1]=r,t[2]=e,t[3]=a,t[4]=o,t[5]=u,t[6]=s,t[7]=i,t[8]=c,t[9]=l,t[10]=f,t[11]=h,t[12]=M,t[13]=b,t[14]=d,t[15]=m,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function i(t,n){if(t===n){const r=n[1],e=n[2],a=n[3],o=n[6],u=n[7],s=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=r,t[6]=n[9],t[7]=n[13],t[8]=e,t[9]=o,t[11]=n[14],t[12]=a,t[13]=u,t[14]=s}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function c(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=n[4],s=n[5],i=n[6],c=n[7],l=n[8],f=n[9],h=n[10],M=n[11],b=n[12],d=n[13],m=n[14],p=n[15],y=r*s-e*u,g=r*i-a*u,v=r*c-o*u,S=e*i-a*s,w=e*c-o*s,O=a*c-o*i,I=l*d-f*b,x=l*m-h*b,q=l*p-M*b,A=f*m-h*d,R=f*p-M*d,_=h*p-M*m;let j=y*_-g*R+v*A+S*q-w*x+O*I;return j?(j=1/j,t[0]=(s*_-i*R+c*A)*j,t[1]=(a*R-e*_-o*A)*j,t[2]=(d*O-m*w+p*S)*j,t[3]=(h*w-f*O-M*S)*j,t[4]=(i*q-u*_-c*x)*j,t[5]=(r*_-a*q+o*x)*j,t[6]=(m*v-b*O-p*g)*j,t[7]=(l*O-h*v+M*g)*j,t[8]=(u*R-s*q+c*I)*j,t[9]=(e*q-r*R-o*I)*j,t[10]=(b*w-d*v+p*y)*j,t[11]=(f*v-l*w-M*y)*j,t[12]=(s*x-u*A-i*I)*j,t[13]=(r*A-e*x+a*I)*j,t[14]=(d*g-b*S-m*y)*j,t[15]=(l*S-f*g+h*y)*j,t):null}function l(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3],s=n[4],i=n[5],c=n[6],l=n[7],f=n[8],h=n[9],M=n[10],b=n[11],d=n[12],m=n[13],p=n[14],y=n[15];let g=r[0],v=r[1],S=r[2],w=r[3];return t[0]=g*e+v*s+S*f+w*d,t[1]=g*a+v*i+S*h+w*m,t[2]=g*o+v*c+S*M+w*p,t[3]=g*u+v*l+S*b+w*y,g=r[4],v=r[5],S=r[6],w=r[7],t[4]=g*e+v*s+S*f+w*d,t[5]=g*a+v*i+S*h+w*m,t[6]=g*o+v*c+S*M+w*p,t[7]=g*u+v*l+S*b+w*y,g=r[8],v=r[9],S=r[10],w=r[11],t[8]=g*e+v*s+S*f+w*d,t[9]=g*a+v*i+S*h+w*m,t[10]=g*o+v*c+S*M+w*p,t[11]=g*u+v*l+S*b+w*y,g=r[12],v=r[13],S=r[14],w=r[15],t[12]=g*e+v*s+S*f+w*d,t[13]=g*a+v*i+S*h+w*m,t[14]=g*o+v*c+S*M+w*p,t[15]=g*u+v*l+S*b+w*y,t}function f(t,n,r){const e=r[0],a=r[1],o=r[2];if(n===t)t[12]=n[0]*e+n[4]*a+n[8]*o+n[12],t[13]=n[1]*e+n[5]*a+n[9]*o+n[13],t[14]=n[2]*e+n[6]*a+n[10]*o+n[14],t[15]=n[3]*e+n[7]*a+n[11]*o+n[15];else{const r=n[0],u=n[1],s=n[2],i=n[3],c=n[4],l=n[5],f=n[6],h=n[7],M=n[8],b=n[9],d=n[10],m=n[11];t[0]=r,t[1]=u,t[2]=s,t[3]=i,t[4]=c,t[5]=l,t[6]=f,t[7]=h,t[8]=M,t[9]=b,t[10]=d,t[11]=m,t[12]=r*e+c*a+M*o+n[12],t[13]=u*e+l*a+b*o+n[13],t[14]=s*e+f*a+d*o+n[14],t[15]=i*e+h*a+m*o+n[15]}return t}function h(t,n,r){const e=r[0],a=r[1],o=r[2];return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*a,t[5]=n[5]*a,t[6]=n[6]*a,t[7]=n[7]*a,t[8]=n[8]*o,t[9]=n[9]*o,t[10]=n[10]*o,t[11]=n[11]*o,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function M(t,n,r,e){let u=e[0],s=e[1],i=e[2],c=Math.sqrt(u*u+s*s+i*i);if(c<=(0,a.FD)())return void o(t,n);c=1/c,u*=c,s*=c,i*=c;const l=Math.sin(r),f=Math.cos(r),h=1-f,M=n[0],b=n[1],d=n[2],m=n[3],p=n[4],y=n[5],g=n[6],v=n[7],S=n[8],w=n[9],O=n[10],I=n[11],x=u*u*h+f,q=s*u*h+i*l,A=i*u*h-s*l,R=u*s*h-i*l,_=s*s*h+f,j=i*s*h+u*l,T=u*i*h+s*l,D=s*i*h-u*l,k=i*i*h+f;t[0]=M*x+p*q+S*A,t[1]=b*x+y*q+w*A,t[2]=d*x+g*q+O*A,t[3]=m*x+v*q+I*A,t[4]=M*R+p*_+S*j,t[5]=b*R+y*_+w*j,t[6]=d*R+g*_+O*j,t[7]=m*R+v*_+I*j,t[8]=M*T+p*D+S*k,t[9]=b*T+y*D+w*k,t[10]=d*T+g*D+O*k,t[11]=m*T+v*D+I*k,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function b(t,n,r){const e=Math.sin(r),a=Math.cos(r),o=n[4],u=n[5],s=n[6],i=n[7],c=n[8],l=n[9],f=n[10],h=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=o*a+c*e,t[5]=u*a+l*e,t[6]=s*a+f*e,t[7]=i*a+h*e,t[8]=c*a-o*e,t[9]=l*a-u*e,t[10]=f*a-s*e,t[11]=h*a-i*e,t}function d(t,n){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]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function m(t,n,r){if(0===n)return s(t);let e=r[0],o=r[1],u=r[2],i=Math.sqrt(e*e+o*o+u*u);if(i<=(0,a.FD)())return null;i=1/i,e*=i,o*=i,u*=i;const c=Math.sin(n),l=Math.cos(n),f=1-l;return t[0]=e*e*f+l,t[1]=o*e*f+u*c,t[2]=u*e*f-o*c,t[3]=0,t[4]=e*o*f-u*c,t[5]=o*o*f+l,t[6]=u*o*f+e*c,t[7]=0,t[8]=e*u*f+o*c,t[9]=o*u*f-e*c,t[10]=u*u*f+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function p(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=e,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 g(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3],s=e+e,i=a+a,c=o+o,l=e*s,f=e*i,h=e*c,M=a*i,b=a*c,d=o*c,m=u*s,p=u*i,y=u*c;return t[0]=1-(M+d),t[1]=f+y,t[2]=h-p,t[3]=0,t[4]=f-y,t[5]=1-(l+d),t[6]=b+m,t[7]=0,t[8]=h+p,t[9]=b-m,t[10]=1-(l+M),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const v=(0,e.vt)();function S(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function w(t,n){const r=n[0],e=n[1],a=n[2],o=n[4],u=n[5],s=n[6],i=n[8],c=n[9],l=n[10];return t[0]=Math.sqrt(r*r+e*e+a*a),t[1]=Math.sqrt(o*o+u*u+s*s),t[2]=Math.sqrt(i*i+c*c+l*l),t}function O(t,n){const r=n[0]+n[5]+n[10];let e=0;return r>0?(e=2*Math.sqrt(r+1),t[3]=.25*e,t[0]=(n[6]-n[9])/e,t[1]=(n[8]-n[2])/e,t[2]=(n[1]-n[4])/e):n[0]>n[5]&&n[0]>n[10]?(e=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/e,t[0]=.25*e,t[1]=(n[1]+n[4])/e,t[2]=(n[8]+n[2])/e):n[5]>n[10]?(e=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/e,t[0]=(n[1]+n[4])/e,t[1]=.25*e,t[2]=(n[6]+n[9])/e):(e=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/e,t[0]=(n[8]+n[2])/e,t[1]=(n[6]+n[9])/e,t[2]=.25*e),t}function I(t,n,r,e){const a=n[0],o=n[1],u=n[2],s=n[3],i=a+a,c=o+o,l=u+u,f=a*i,h=a*c,M=a*l,b=o*c,d=o*l,m=u*l,p=s*i,y=s*c,g=s*l,v=e[0],S=e[1],w=e[2];return t[0]=(1-(b+m))*v,t[1]=(h+g)*v,t[2]=(M-y)*v,t[3]=0,t[4]=(h-g)*S,t[5]=(1-(f+m))*S,t[6]=(d+p)*S,t[7]=0,t[8]=(M+y)*w,t[9]=(d-p)*w,t[10]=(1-(f+b))*w,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function x(t,n,r,e,a){const o=n[0],u=n[1],s=n[2],i=n[3],c=o+o,l=u+u,f=s+s,h=o*c,M=o*l,b=o*f,d=u*l,m=u*f,p=s*f,y=i*c,g=i*l,v=i*f,S=e[0],w=e[1],O=e[2],I=a[0],x=a[1],q=a[2],A=(1-(d+p))*S,R=(M+v)*S,_=(b-g)*S,j=(M-v)*w,T=(1-(h+p))*w,D=(m+y)*w,k=(b+g)*O,P=(m-y)*O,C=(1-(h+d))*O;return t[0]=A,t[1]=R,t[2]=_,t[3]=0,t[4]=j,t[5]=T,t[6]=D,t[7]=0,t[8]=k,t[9]=P,t[10]=C,t[11]=0,t[12]=r[0]+I-(A*I+j*x+k*q),t[13]=r[1]+x-(R*I+T*x+P*q),t[14]=r[2]+q-(_*I+D*x+C*q),t[15]=1,t}function q(t,n,r,e,a,o,u){const s=1/(r-n),i=1/(a-e),c=1/(o-u);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*i,t[6]=0,t[7]=0,t[8]=(r+n)*s,t[9]=(a+e)*i,t[10]=(u+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*o*2*c,t[15]=0,t}function A(t,n,r,e,a,o,u){const s=1/(n-r),i=1/(e-a),c=1/(o-u);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+r)*s,t[13]=(a+e)*i,t[14]=(u+o)*c,t[15]=1,t}function R(t,n,r,e){const o=n[0],u=n[1],i=n[2];let c=o-r[0],l=u-r[1],f=i-r[2];const h=(0,a.FD)();if(Math.abs(c)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void s(t);let M=1/Math.sqrt(c*c+l*l+f*f);c*=M,l*=M,f*=M;const b=e[0],d=e[1],m=e[2];let p=d*f-m*l,y=m*c-b*f,g=b*l-d*c;M=Math.sqrt(p*p+y*y+g*g),M?(M=1/M,p*=M,y*=M,g*=M):(p=0,y=0,g=0);let v=l*g-f*y,S=f*p-c*g,w=c*y-l*p;M=Math.sqrt(v*v+S*S+w*w),M?(M=1/M,v*=M,S*=M,w*=M):(v=0,S=0,w=0),t[0]=p,t[1]=v,t[2]=c,t[3]=0,t[4]=y,t[5]=S,t[6]=l,t[7]=0,t[8]=g,t[9]=w,t[10]=f,t[11]=0,t[12]=-(p*o+y*u+g*i),t[13]=-(v*o+S*u+w*i),t[14]=-(c*o+l*u+f*i),t[15]=1}function _(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t[9]=n[9]-r[9],t[10]=n[10]-r[10],t[11]=n[11]-r[11],t[12]=n[12]-r[12],t[13]=n[13]-r[13],t[14]=n[14]-r[14],t[15]=n[15]-r[15],t}function j(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function T(t){const n=(0,a.FD)(),r=t[0],e=t[1],o=t[2],u=t[4],s=t[5],i=t[6],c=t[8],l=t[9],f=t[10];return Math.abs(1-(r*r+u*u+c*c))<=n&&Math.abs(1-(e*e+s*s+l*l))<=n&&Math.abs(1-(o*o+i*i+f*f))<=n}function D(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 k=l,P=_;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t[9]=n[9]+r[9],t[10]=n[10]+r[10],t[11]=n[11]+r[11],t[12]=n[12]+r[12],t[13]=n[13]+r[13],t[14]=n[14]+r[14],t[15]=n[15]+r[15],t},adjoint:function(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=n[4],s=n[5],i=n[6],c=n[7],l=n[8],f=n[9],h=n[10],M=n[11],b=n[12],d=n[13],m=n[14],p=n[15];return t[0]=s*(h*p-M*m)-f*(i*p-c*m)+d*(i*M-c*h),t[1]=-(e*(h*p-M*m)-f*(a*p-o*m)+d*(a*M-o*h)),t[2]=e*(i*p-c*m)-s*(a*p-o*m)+d*(a*c-o*i),t[3]=-(e*(i*M-c*h)-s*(a*M-o*h)+f*(a*c-o*i)),t[4]=-(u*(h*p-M*m)-l*(i*p-c*m)+b*(i*M-c*h)),t[5]=r*(h*p-M*m)-l*(a*p-o*m)+b*(a*M-o*h),t[6]=-(r*(i*p-c*m)-u*(a*p-o*m)+b*(a*c-o*i)),t[7]=r*(i*M-c*h)-u*(a*M-o*h)+l*(a*c-o*i),t[8]=u*(f*p-M*d)-l*(s*p-c*d)+b*(s*M-c*f),t[9]=-(r*(f*p-M*d)-l*(e*p-o*d)+b*(e*M-o*f)),t[10]=r*(s*p-c*d)-u*(e*p-o*d)+b*(e*c-o*s),t[11]=-(r*(s*M-c*f)-u*(e*M-o*f)+l*(e*c-o*s)),t[12]=-(u*(f*m-h*d)-l*(s*m-i*d)+b*(s*h-i*f)),t[13]=r*(f*m-h*d)-l*(e*m-a*d)+b*(e*h-a*f),t[14]=-(r*(s*m-i*d)-u*(e*m-a*d)+b*(e*i-a*s)),t[15]=r*(s*h-i*f)-u*(e*h-a*f)+l*(e*i-a*s),t},copy:o,determinant:function(t){const n=t[0],r=t[1],e=t[2],a=t[3],o=t[4],u=t[5],s=t[6],i=t[7],c=t[8],l=t[9],f=t[10],h=t[11],M=t[12],b=t[13],d=t[14],m=t[15];return(n*u-r*o)*(f*m-h*d)-(n*s-e*o)*(l*m-h*b)+(n*i-a*o)*(l*d-f*b)+(r*s-e*u)*(c*m-h*M)-(r*i-a*u)*(c*d-f*M)+(e*i-a*s)*(c*b-l*M)},equals:function(t,n){if(t===n)return!0;const r=t[0],e=t[1],o=t[2],u=t[3],s=t[4],i=t[5],c=t[6],l=t[7],f=t[8],h=t[9],M=t[10],b=t[11],d=t[12],m=t[13],p=t[14],y=t[15],g=n[0],v=n[1],S=n[2],w=n[3],O=n[4],I=n[5],x=n[6],q=n[7],A=n[8],R=n[9],_=n[10],j=n[11],T=n[12],D=n[13],k=n[14],P=n[15],C=(0,a.FD)();return Math.abs(r-g)<=C*Math.max(1,Math.abs(r),Math.abs(g))&&Math.abs(e-v)<=C*Math.max(1,Math.abs(e),Math.abs(v))&&Math.abs(o-S)<=C*Math.max(1,Math.abs(o),Math.abs(S))&&Math.abs(u-w)<=C*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(s-O)<=C*Math.max(1,Math.abs(s),Math.abs(O))&&Math.abs(i-I)<=C*Math.max(1,Math.abs(i),Math.abs(I))&&Math.abs(c-x)<=C*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(l-q)<=C*Math.max(1,Math.abs(l),Math.abs(q))&&Math.abs(f-A)<=C*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(h-R)<=C*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(M-_)<=C*Math.max(1,Math.abs(M),Math.abs(_))&&Math.abs(b-j)<=C*Math.max(1,Math.abs(b),Math.abs(j))&&Math.abs(d-T)<=C*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(m-D)<=C*Math.max(1,Math.abs(m),Math.abs(D))&&Math.abs(p-k)<=C*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(y-P)<=C*Math.max(1,Math.abs(y),Math.abs(P))},exactEquals:j,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,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=r+r,s=e+e,i=a+a,c=r*u,l=e*u,f=e*s,h=a*u,M=a*s,b=a*i,d=o*u,m=o*s,p=o*i;return t[0]=1-f-b,t[1]=l+p,t[2]=h-m,t[3]=0,t[4]=l-p,t[5]=1-c-b,t[6]=M+d,t[7]=0,t[8]=h+m,t[9]=M-d,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const r=v,e=-n[0],a=-n[1],o=-n[2],u=n[3],s=n[4],i=n[5],c=n[6],l=n[7],f=e*e+a*a+o*o+u*u;return f>0?(r[0]=2*(s*u+l*e+i*o-c*a)/f,r[1]=2*(i*u+l*a+c*e-s*o)/f,r[2]=2*(c*u+l*o+s*a-i*e)/f):(r[0]=2*(s*u+l*e+i*o-c*a),r[1]=2*(i*u+l*a+c*e-s*o),r[2]=2*(c*u+l*o+s*a-i*e)),g(t,n,r),t},fromRotation:m,fromRotationTranslation:g,fromRotationTranslationScale:I,fromRotationTranslationScaleOrigin:x,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:d,fromXRotation:p,fromYRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:y,frustum:q,getRotation:O,getScale:w,getTranslation:S,hasIdentityRotation:D,identity:s,invert:c,invertOrIdentity:function(t,n){return c(t,n)||s(t),t},isOrthoNormal:T,lookAt:R,mul:k,multiply:l,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t[9]=n[9]*r,t[10]=n[10]*r,t[11]=n[11]*r,t[12]=n[12]*r,t[13]=n[13]*r,t[14]=n[14]*r,t[15]=n[15]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t[9]=n[9]+r[9]*e,t[10]=n[10]+r[10]*e,t[11]=n[11]+r[11]*e,t[12]=n[12]+r[12]*e,t[13]=n[13]+r[13]*e,t[14]=n[14]+r[14]*e,t[15]=n[15]+r[15]*e,t},ortho:A,perspective:function(t,n,r,e,a){const o=1/Math.tan(n/2);let u;return t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=a&&a!==1/0?(u=1/(e-a),t[10]=(a+e)*u,t[14]=2*a*e*u):(t[10]=-1,t[14]=-2*e),t},perspectiveFromFieldOfView:function(t,n,r,e){const a=Math.tan(n.upDegrees*Math.PI/180),o=Math.tan(n.downDegrees*Math.PI/180),u=Math.tan(n.leftDegrees*Math.PI/180),s=Math.tan(n.rightDegrees*Math.PI/180),i=2/(u+s),c=2/(a+o);return t[0]=i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(u-s)*i*.5,t[9]=(a-o)*c*.5,t[10]=e/(r-e),t[11]=-1,t[12]=0,t[13]=0,t[14]=e*r/(r-e),t[15]=0,t},rotate:M,rotateX:b,rotateY:function(t,n,r){const e=Math.sin(r),a=Math.cos(r),o=n[0],u=n[1],s=n[2],i=n[3],c=n[8],l=n[9],f=n[10],h=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=o*a-c*e,t[1]=u*a-l*e,t[2]=s*a-f*e,t[3]=i*a-h*e,t[8]=o*e+c*a,t[9]=u*e+l*a,t[10]=s*e+f*a,t[11]=i*e+h*a,t},rotateZ:function(t,n,r){const e=Math.sin(r),a=Math.cos(r),o=n[0],u=n[1],s=n[2],i=n[3],c=n[4],l=n[5],f=n[6],h=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=o*a+c*e,t[1]=u*a+l*e,t[2]=s*a+f*e,t[3]=i*a+h*e,t[4]=c*a-o*e,t[5]=l*a-u*e,t[6]=f*a-s*e,t[7]=h*a-i*e,t},scale:h,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:P,subtract:_,targetTo:function(t,n,r,e){const a=n[0],o=n[1],u=n[2],s=e[0],i=e[1],c=e[2];let l=a-r[0],f=o-r[1],h=u-r[2],M=l*l+f*f+h*h;M>0&&(M=1/Math.sqrt(M),l*=M,f*=M,h*=M);let b=i*h-c*f,d=c*l-s*h,m=s*f-i*l;return M=b*b+d*d+m*m,M>0&&(M=1/Math.sqrt(M),b*=M,d*=M,m*=M),t[0]=b,t[1]=d,t[2]=m,t[3]=0,t[4]=f*m-h*d,t[5]=h*b-l*m,t[6]=l*d-f*b,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=a,t[13]=o,t[14]=u,t[15]=1,t},translate:f,transpose:i},Symbol.toStringTag,{value:"Module"}))},35522(t,n,r){r.d(n,{$A:()=>x,Bw:()=>o,C:()=>u,Cc:()=>q,DI:()=>w,Il:()=>Y,Io:()=>y,Ln:()=>p,Om:()=>I,Qr:()=>f,Re:()=>c,S8:()=>O,T9:()=>d,WQ:()=>i,Z0:()=>A,_S:()=>M,aI:()=>C,ei:()=>R,fw:()=>j,g7:()=>T,gL:()=>_,hG:()=>g,hZ:()=>s,hs:()=>m,jb:()=>N,jk:()=>b,lo:()=>Z,lw:()=>l,m3:()=>v,oW:()=>F,t2:()=>P,tn:()=>h,uE:()=>L,xg:()=>z,ze:()=>S});var e=r(51850),a=r(34304);function o(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function u(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,r,e){return t[0]=n,t[1]=r,t[2]=e,t}function i(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function l(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function f(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function M(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function b(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t}function d(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t}function m(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function p(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t}function y(t,n){const r=n[0]-t[0],e=n[1]-t[1],a=n[2]-t[2];return Math.sqrt(r*r+e*e+a*a)}function g(t,n){const r=n[0]-t[0],e=n[1]-t[1],a=n[2]-t[2];return r*r+e*e+a*a}function v(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function S(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function w(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function O(t,n){const r=n[0],e=n[1],a=n[2];let o=r*r+e*e+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o,t[2]=n[2]*o),t}function I(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function x(t,n,r){const e=n[0],a=n[1],o=n[2],u=r[0],s=r[1],i=r[2];return t[0]=a*i-o*s,t[1]=o*u-e*i,t[2]=e*s-a*u,t}function q(t,n,r,e){const a=n[0],o=n[1],u=n[2];return t[0]=a+e*(r[0]-a),t[1]=o+e*(r[1]-o),t[2]=u+e*(r[2]-u),t}function A(t,n,r){const e=n[0],a=n[1],o=n[2];return t[0]=r[0]*e+r[4]*a+r[8]*o+r[12],t[1]=r[1]*e+r[5]*a+r[9]*o+r[13],t[2]=r[2]*e+r[6]*a+r[10]*o+r[14],t}function R(t,n,r){const e=n[0],a=n[1],o=n[2];return t[0]=e*r[0]+a*r[3]+o*r[6],t[1]=e*r[1]+a*r[4]+o*r[7],t[2]=e*r[2]+a*r[5]+o*r[8],t}function _(t,n,r){return j(t,n,r[0],r[1],r[2],r[3])}function j(t,n,r,e,a,o){const u=n[0],s=n[1],i=n[2],c=e*i-a*s,l=a*u-r*i,f=r*s-e*u,h=e*f-a*l,M=a*c-r*f,b=r*l-e*c,d=2*o;return t[0]=u+c*d+2*h,t[1]=s+l*d+2*M,t[2]=i+f*d+2*b,t}function T(t,n){O(D,t),O(k,n);const r=I(D,k);return r>1?0:r<-1?Math.PI:Math.acos(r)}const D=(0,e.vt)(),k=(0,e.vt)();function P(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function C(t,n){if(t===n)return!0;const r=t[0],e=t[1],o=t[2],u=n[0],s=n[1],i=n[2],c=(0,a.FD)();return Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(e-s)<=c*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(o-i)<=c*Math.max(1,Math.abs(o),Math.abs(i))}function F(t,n,r){const e=r[0]-n[0],a=r[1]-n[1],o=r[2]-n[2];let u=e*e+a*a+o*o;return u>0?(u=1/Math.sqrt(u),t[0]=e*u,t[1]=a*u,t[2]=o*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const N=c,U=l,E=f,z=y,Z=g,Y=o,L=v;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:i,angle:T,bezier:function(t,n,r,e,a,o){const u=1-o,s=u*u,i=o*o,c=s*u,l=3*o*s,f=3*i*u,h=i*o;return t[0]=n[0]*c+r[0]*l+e[0]*f+a[0]*h,t[1]=n[1]*c+r[1]*l+e[1]*f+a[1]*h,t[2]=n[2]*c+r[2]*l+e[2]*f+a[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,r=1){return t[0]=Math.min(Math.max(t[0],n),r),t[1]=Math.min(Math.max(t[1],n),r),t[2]=Math.min(Math.max(t[2],n),r),t},copy:u,cross:x,crossAndNormalize:function(t,n,r){const e=n[0],a=n[1],o=n[2],u=r[0],s=r[1],i=r[2],c=a*i-o*s,l=o*u-e*i,f=e*s-a*u,h=Math.sqrt(c*c+l*l+f*f);return t[0]=c/h,t[1]=l/h,t[2]=f/h,t},direction:F,dist:z,distance:y,div:E,divide:f,dot:I,equals:C,exactEquals:P,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,r,e,a,o){const u=o*o,s=u*(2*o-3)+1,i=u*(o-2)+o,c=u*(o-1),l=u*(3-2*o);return t[0]=n[0]*s+r[0]*i+e[0]*c+a[0]*l,t[1]=n[1]*s+r[1]*i+e[1]*c+a[1]*l,t[2]=n[2]*s+r[2]*i+e[2]*c+a[2]*l,t},inverse:w,len:Y,length:o,lerp:q,max:d,min:b,mul:U,multiply:l,negate:S,normalize:O,random:function(t,n=1){const r=a.Ov,e=2*r()*Math.PI,o=2*r()-1,u=Math.sqrt(1-o*o)*n;return t[0]=Math.cos(e)*u,t[1]=Math.sin(e)*u,t[2]=o*n,t},rotateX:function(t,n,r,e){const a=[],o=[];return a[0]=n[0]-r[0],a[1]=n[1]-r[1],a[2]=n[2]-r[2],o[0]=a[0],o[1]=a[1]*Math.cos(e)-a[2]*Math.sin(e),o[2]=a[1]*Math.sin(e)+a[2]*Math.cos(e),t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t},rotateY:function(t,n,r,e){const a=[],o=[];return a[0]=n[0]-r[0],a[1]=n[1]-r[1],a[2]=n[2]-r[2],o[0]=a[2]*Math.sin(e)+a[0]*Math.cos(e),o[1]=a[1],o[2]=a[2]*Math.cos(e)-a[0]*Math.sin(e),t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t},rotateZ:function(t,n,r,e){const a=[],o=[];return a[0]=n[0]-r[0],a[1]=n[1]-r[1],a[2]=n[2]-r[2],o[0]=a[0]*Math.cos(e)-a[1]*Math.sin(e),o[1]=a[0]*Math.sin(e)+a[1]*Math.cos(e),o[2]=a[2],t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:m,scaleAndAdd:p,set:s,sign:M,sqrDist:Z,sqrLen:L,squaredDistance:g,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:N,subtract:c,transformMat3:R,transformMat4:A,transformQuat:_,transformQuatValues:j},Symbol.toStringTag,{value:"Module"}))},78955(t,n,r){r.d(n,{Bw:()=>m,C:()=>a,Cc:()=>v,LI:()=>h,Om:()=>g,S8:()=>y,T9:()=>f,WQ:()=>u,Z0:()=>S,aI:()=>O,hG:()=>d,hZ:()=>o,hs:()=>M,jk:()=>l,m3:()=>p,t2:()=>w});var e=r(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function o(t,n,r,e,a){return t[0]=n,t[1]=r,t[2]=e,t[3]=a,t}function u(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t}function s(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}function i(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t[3]=n[3]*r[3],t}function c(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t[3]=n[3]/r[3],t}function l(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t[3]=Math.min(n[3],r[3]),t}function f(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t[3]=Math.max(n[3],r[3]),t}function h(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function M(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t}function b(t,n){const r=n[0]-t[0],e=n[1]-t[1],a=n[2]-t[2],o=n[3]-t[3];return Math.sqrt(r*r+e*e+a*a+o*o)}function d(t,n){const r=n[0]-t[0],e=n[1]-t[1],a=n[2]-t[2],o=n[3]-t[3];return r*r+e*e+a*a+o*o}function m(t){const n=t[0],r=t[1],e=t[2],a=t[3];return Math.sqrt(n*n+r*r+e*e+a*a)}function p(t){const n=t[0],r=t[1],e=t[2],a=t[3];return n*n+r*r+e*e+a*a}function y(t,n){const r=n[0],e=n[1],a=n[2],o=n[3];let u=r*r+e*e+a*a+o*o;return u>0&&(u=1/Math.sqrt(u),t[0]=r*u,t[1]=e*u,t[2]=a*u,t[3]=o*u),t}function g(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function v(t,n,r,e){const a=n[0],o=n[1],u=n[2],s=n[3];return t[0]=a+e*(r[0]-a),t[1]=o+e*(r[1]-o),t[2]=u+e*(r[2]-u),t[3]=s+e*(r[3]-s),t}function S(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3];return t[0]=r[0]*e+r[4]*a+r[8]*o+r[12]*u,t[1]=r[1]*e+r[5]*a+r[9]*o+r[13]*u,t[2]=r[2]*e+r[6]*a+r[10]*o+r[14]*u,t[3]=r[3]*e+r[7]*a+r[11]*o+r[15]*u,t}function w(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function O(t,n){const r=t[0],a=t[1],o=t[2],u=t[3],s=n[0],i=n[1],c=n[2],l=n[3],f=(0,e.FD)();return Math.abs(r-s)<=f*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-i)<=f*Math.max(1,Math.abs(a),Math.abs(i))&&Math.abs(o-c)<=f*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(u-l)<=f*Math.max(1,Math.abs(u),Math.abs(l))}const I=s,x=i,q=c,A=b,R=d,_=m,j=p;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:a,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:A,distance:b,div:q,divide:c,dot:g,equals:O,exactEquals:w,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:_,length:m,lerp:v,max:f,min:l,mul:x,multiply:i,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:y,random:function(t,n=1){const r=e.Ov;let a,o,u,s,i,c;do{a=2*r()-1,o=2*r()-1,i=a*a+o*o}while(i>=1);do{u=2*r()-1,s=2*r()-1,c=u*u+s*s}while(c>=1);const l=Math.sqrt((1-i)/c);return t[0]=n*a,t[1]=n*o,t[2]=n*u*l,t[3]=n*s*l,t},round:h,scale:M,scaleAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t},set:o,sqrDist:R,sqrLen:j,squaredDistance:d,squaredLength:p,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:I,subtract:s,transformMat4:S,transformQuat:function(t,n,r){const e=n[0],a=n[1],o=n[2],u=r[0],s=r[1],i=r[2],c=r[3],l=c*e+s*o-i*a,f=c*a+i*e-u*o,h=c*o+u*a-s*e,M=-u*e-s*a-i*o;return t[0]=l*c+M*-u+f*-i-h*-s,t[1]=f*c+M*-s+h*-u-l*-i,t[2]=h*c+M*-i+l*-s-f*-u,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},9762(t,n,r){r.r(n),r.d(n,{projectBuffer:()=>a});var e=r(49208);function a(t,n,r,a,o,u,s=Math.floor(t.length/3)){const i=(0,e.jd)(n,o);if(null==i)return!1;if(i===e.pO){if(t===a&&r===u)return!0;const n=r+3*s;for(let e=r,o=u;e<n;e++,o++)a[o]=t[e]??0;return!0}const c=r+3*s;for(let n=r,e=u;n<c;n+=3,e+=3)i(t,n,a,e);return!0}},49208(t,n,r){r.d(n,{Tp:()=>f,jd:()=>l,pO:()=>M,w5:()=>c});var e=r(34727),a=r(86211),o=r(73941),u=r(79258),s=r(34403),i=r(21325);const c={2:{5:M,7:null,9:null,10:M,1:S,6:null,8:null,0:null,3:d,11:m,2:M,4:q},5:{5:M,7:null,9:null,10:M,1:S,6:null,8:null,0:null,3:d,11:m,2:M,4:q},7:{5:null,7:M,9:null,10:M,1:null,6:v,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:g,0:null,3:null,11:null,2:null,4:null},3:{5:b,7:null,9:null,10:b,1:function(t,n,r,e){const a=t[n]/D,o=T-2*Math.atan(Math.exp(-t[n+1]/D)),u=D+(t[n+2]??0),s=Math.cos(o)*u;r[e]=Math.cos(a)*s,r[e+1]=Math.sin(a)*s,r[e+2]=Math.sin(o)*u},6:null,8:null,0:null,3:M,11:function(t,n,r,e){b(t,n,r,e),m(r,e,r,e)},2:b,4:function(t,n,r,e){b(t,n,r,e),q(r,e,r,e)}},4:{5:A,7:null,9:null,10:A,1:function(t,n,r,e){A(t,n,r,e),S(r,e,r,e)},6:null,8:null,0:null,3:function(t,n,r,e){A(t,n,r,e),d(r,e,r,e)},11:function(t,n,r,e){A(t,n,r,e),m(r,e,r,e)},2:A,4:M},1:{5:x,7:null,9:null,10:x,1:M,6:null,8:null,0:null,3:function(t,n,r,e){x(t,n,r,e),d(r,e,r,e)},11:function(t,n,r,e){x(t,n,r,e),m(r,e,r,e)},2:x,4:function(t,n,r,e){x(t,n,r,e),q(r,e,r,e)}},6:{5:null,7:I,9:null,10:I,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:O,10:O,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:S,6:v,8:g,0:null,3:d,11:m,2:M,4:q},11:{5:p,7:null,9:null,10:p,1:function(t,n,r,e){p(t,n,r,e),S(r,e,r,e)},6:null,8:null,0:null,3:function(t,n,r,e){p(t,n,r,e),d(r,e,r,e)},11:M,2:p,4:function(t,n,r,e){p(t,n,r,e),q(r,e,r,e)}}};function l(t,n){return f(t,n)?.projector}function f(t,n){if(null==t||null==n)return null;if(R.source.spatialReference===t&&R.dest.spatialReference===n)return R;const r=h(t,R.source),e=h(n,R.dest);return 0===r&&0===e?(0,i.aI)(t,n)?R.projector=M:R.projector=null:R.projector=c[r][e],R}function h(t,n){return t?n.spatialReference===t?n.spatialReferenceId:(n.spatialReference=t,"metersPerUnit"in n&&(n.metersPerUnit=(0,a.GA)(t,1)),(0,o.jA)(t)?n.spatialReferenceId=1:(0,i.oT)(t)?n.spatialReferenceId=2:(0,i.K8)(t)?n.spatialReferenceId=3:(0,i.r1)(t)?n.spatialReferenceId=11:t.wkt===o.Ro.wkt?n.spatialReferenceId=4:4490===t.wkid?n.spatialReferenceId=5:t.wkt===o.FY.wkt?n.spatialReferenceId=6:t.wkt===o.LJ.wkt?n.spatialReferenceId=8:(0,o.q8)(t)?n.spatialReferenceId=7:(0,o.KQ)(t)?n.spatialReferenceId=9:n.spatialReferenceId=0):0}function M(t,n,r,e){t!==r&&(r[e++]=t[n++],r[e++]=t[n++],r[e]=t[n]??0)}function b(t,n,r,e){r[e]=j*(t[n]/D),r[e+1]=j*(T-2*Math.atan(Math.exp(-t[n+1]/D))),r[e+2]=t[n+2]??0}function d(t,n,r,a){!function(t,n,r,a,o){const u=.4999999*Math.PI,s=(0,e.qE)(_*t[n+1],-u,u),i=Math.sin(s);r[a++]=_*t[n]*o.radius,r[a++]=o.halfSemiMajorAxis*Math.log((1+i)/(1-i)),r[a]=t[n+2]??0}(t,n,r,a,u.$O)}function m(t,n,r,e){r[e]=t[n]*k,r[e+1]=t[n+1]*k,r[e+2]=t[n+2]??0}function p(t,n,r,e){r[e]=t[n]*P,r[e+1]=t[n+1]*P,r[e+2]=t[n+2]??0}function y(t,n,r,e,a){const o=a+(t[n+2]??0),u=_*t[n],s=_*t[n+1],i=Math.cos(s)*o;r[e]=Math.cos(u)*i,r[e+1]=Math.sin(u)*i,r[e+2]=Math.sin(s)*o}function g(t,n,r,e){y(t,n,r,e,u.Sw.radius)}function v(t,n,r,e){y(t,n,r,e,u.sH.radius)}function S(t,n,r,e){y(t,n,r,e,u.$O.radius)}function w(t,n,r,a,o){const u=t[n],s=t[n+1],i=t[n+2]??0,c=Math.sqrt(u*u+s*s+i*i),l=(0,e.YN)(i/(0===c?1:c)),f=Math.atan2(s,u);r[a++]=j*f,r[a++]=j*l,r[a]=c-o}function O(t,n,r,e){w(t,n,r,e,u.Sw.radius)}function I(t,n,r,e){w(t,n,r,e,u.sH.radius)}function x(t,n,r,e){w(t,n,r,e,u.$O.radius)}function q(t,n,r,e){!function(t,n,r,e,a){const o=_*t[n],u=_*t[n+1],s=t[n+2]??0,i=Math.sin(u),c=Math.cos(u),l=a.radius/Math.sqrt(1-a.eccentricitySquared*i*i);r[e++]=(l+s)*c*Math.cos(o),r[e++]=(l+s)*c*Math.sin(o),r[e++]=(l*(1-a.eccentricitySquared)+s)*i}(t,n,r,e,u.$O)}function A(t,n,r,e){const a=s.TP,o=t[n],i=t[n+1],c=t[n+2]??0;let l,f,h,M,b,d,m,p,y,g,v,S,w,O,I,x,q,A,R,_,T;l=Math.abs(c),f=o*o+i*i,h=Math.sqrt(f),M=f+c*c,b=Math.sqrt(M),_=Math.atan2(i,o),d=c*c/M,m=f/M,O=a.a2/b,I=a.a3-a.a4/b,m>.3?(p=l/b*(1+m*(a.a1+O+d*I)/b),R=Math.asin(p),g=p*p,y=Math.sqrt(1-g)):(y=h/b*(1-d*(a.a5-O-m*I)/b),R=Math.acos(y),g=1-y*y,p=Math.sqrt(g)),v=1-u.$O.eccentricitySquared*g,S=u.$O.radius/Math.sqrt(v),w=a.a6*S,O=h-S*y,I=l-w*p,q=y*O+p*I,x=y*I-p*O,A=x/(w/v+q),R+=A,T=q+x*A/2,c<0&&(R=-R),r[e++]=j*_,r[e++]=j*R,r[e]=T}const R={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:M},_=(0,e.kU)(1),j=(0,e.KJ)(1),T=.5*Math.PI,D=u.$O.radius,k=D*Math.PI/180,P=180/(D*Math.PI)},98764(t,n,r){r.d(n,{GD:()=>u,Y0:()=>c,lO:()=>l});var e=r(73941),a=r(16930),o=r(21325);const u=new a.A(e.fv),s=new a.A(e.FY),i=new a.A(e.LJ),c=new a.A(e.Ro);function l(t){const n=f.get(t);if(n)return n;let r=u;if(t)if(t===s)r=s;else if(t===i)r=i;else{const n=t.wkid,e=t.latestWkid;if(null!=n||null!=e)(0,o.tl)(n)||(0,o.tl)(e)?r=s:((0,o.ZL)(n)||(0,o.ZL)(e))&&(r=i);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?r=s:t===M&&(r=i)}}}return f.set(t,r),r}const f=new Map,h=s.wkt.toUpperCase(),M=i.wkt.toUpperCase()},34403(t,n,r){r.d(n,{TP:()=>u});var e=r(79258);Math.PI;const a=e.$O.radius,o=e.$O.eccentricitySquared,u={a1:a*o,a2:a*o*a*o,a3:a*o*o/2,a4:a*o*a*o*2.5,a5:a*o+a*o*o/2,a6:1-o};e.$O.radius,e.$O.flattening,e.Sw.radius,e.Sw.flattening,e.sH.radius,e.sH.flattening,e.sH.radius},64798(t,n,r){r.r(n),r.d(n,{default:()=>C});var e=r(4576),a=r(34275),o=r(82534),u=r(35522);function s(){return new Float32Array(3)}function i(t){const n=new Float32Array(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function c(t,n,r){const e=new Float32Array(3);return e[0]=t,e[1]=n,e[2]=r,e}function l(){return s()}function f(){return c(1,1,1)}function h(){return c(1,0,0)}function M(){return c(0,1,0)}function b(){return c(0,0,1)}const d=l(),m=f(),p=h(),y=M(),g=b();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:p,UNIT_Y:y,UNIT_Z:g,ZEROS:d,clone:i,create:s,fromValues:c,ones:f,unitX:h,unitY:M,unitZ:b,zeros:l},Symbol.toStringTag,{value:"Module"}));var v=r(51850),S=r(16930),w=r(9762),O=r(63531),I=r(69846),x=r(48425),q=r(59418),A=r(37203);function R(t,n,r){return t?.attributeInfo.useElevation?n?function(t,n){const r=new Float64Array(n);for(let e=0;e<n;e++)r[e]=t[3*e+2];return r}(n,r):null:t?.attributeInfo.storageInfo?(0,q.m0)(t.attributeInfo.storageInfo,t.buffer,r,!0):null}function _(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 j(t){let n=0;for(const r of t||[])n|=1<<r;return n}var T=r(57005);class D{transform(t){const n=this._transform(t),r=[n.points.buffer,n.rgb.buffer];null!=n.pointIdFilterMap&&r.push(n.pointIdFilterMap.buffer);for(const t of n.attributes)"buffer"in t.values&&(0,a.mw)(t.values.buffer)&&t.values.buffer!==n.rgb.buffer&&r.push(t.values.buffer);return Promise.resolve({result:n,transferList:r})}_transform(t){const n=function(t,n){if(null==t.encoding||""===t.encoding){const r=(0,q.wH)(n,t);if(null==r.vertexAttributes.position)return;const e=(0,q.MA)(n,r.vertexAttributes.position),a=r.header.fields,o=[a.offsetX,a.offsetY,a.offsetZ],u=[a.scaleX,a.scaleY,a.scaleZ],s=e.length/3,i=new Float64Array(3*s);for(let t=0;t<s;t++)i[3*t]=e[3*t]*u[0]+o[0],i[3*t+1]=e[3*t+1]*u[1]+o[1],i[3*t+2]=e[3*t+2]*u[2]+o[2];return i}if("lepcc-xyz"===t.encoding)return(0,A.Me)(n).result}(t.schema,t.geometryBuffer);let r=n.length/3,a=null;const o=new Array,u=R(t.primaryAttributeData,n,r);null!=t.primaryAttributeData&&u&&o.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:u});const s=R(t.modulationAttributeData,n,r);null!=t.modulationAttributeData&&s&&o.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:s});let i=function(t,n,r,e){const{rendererJSON:a,isRGBRenderer:o}=t;let u=null,s=null;if(n&&o)u=n;else if(n&&"pointCloudUniqueValueRenderer"===a?.type){s=x.A.fromJSON(a);const t=s.colorUniqueValueInfos;u=new Uint8Array(3*e);const r=_(s.fieldTransformType);for(let a=0;a<e;a++){const e=(r?r(n[a]):n[a])+"";for(let n=0;n<t.length;n++)if(t[n].values.includes(e)){u[3*a]=t[n].color.r,u[3*a+1]=t[n].color.g,u[3*a+2]=t[n].color.b;break}}}else if(n&&"pointCloudStretchRenderer"===a?.type){s=I.A.fromJSON(a);const t=s.stops;u=new Uint8Array(3*e);const r=_(s.fieldTransformType);for(let a=0;a<e;a++){const e=r?r(n[a]):n[a],o=t.length-1;if(e<t[0].value)u[3*a]=t[0].color.r,u[3*a+1]=t[0].color.g,u[3*a+2]=t[0].color.b;else if(e>=t[o].value)u[3*a]=t[o].color.r,u[3*a+1]=t[o].color.g,u[3*a+2]=t[o].color.b;else for(let n=1;n<t.length;n++)if(e<t[n].value){const r=(e-t[n-1].value)/(t[n].value-t[n-1].value);u[3*a]=t[n].color.r*r+t[n-1].color.r*(1-r),u[3*a+1]=t[n].color.g*r+t[n-1].color.g*(1-r),u[3*a+2]=t[n].color.b*r+t[n-1].color.b*(1-r);break}}}else if(n&&"pointCloudClassBreaksRenderer"===a?.type){s=O.A.fromJSON(a);const t=s.colorClassBreakInfos;u=new Uint8Array(3*e);const r=_(s.fieldTransformType);for(let a=0;a<e;a++){const e=r?r(n[a]):n[a];for(let n=0;n<t.length;n++)if(e>=t[n].minValue&&e<=t[n].maxValue){u[3*a]=t[n].color.r,u[3*a+1]=t[n].color.g,u[3*a+2]=t[n].color.b;break}}}else u=new Uint8Array(3*e).fill(255);if(r&&s?.colorModulation){const t=s.colorModulation.minValue,n=s.colorModulation.maxValue,a=.3;for(let o=0;o<e;o++){const e=r[o],s=e>=n?1:e<=t?a:a+(1-a)*(e-t)/(n-t);u[3*o]=s*u[3*o],u[3*o+1]=s*u[3*o+1],u[3*o+2]=s*u[3*o+2]}}return u}(t.rendererInfo,u,s,r);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){const u=t.filterAttributesData.filter(e.Ru).map(t=>{const e=R(t,n,r),a={attributeInfo:t.attributeInfo,values:e};return o.push(a),a});a=new Uint32Array(r),r=function(t,n,r,e,a){const o=t.length/3,u=function(t){return t.map(t=>{const{filterJSON:n}=t;switch(n.type){case"pointCloudValueFilter":return{...t,valuesSet:new Set(n.values)};case"pointCloudBitfieldFilter":return{...t,clearMask:j(n.requiredClearBits),requiredMask:j(n.requiredSetBits)};default:return t}})}(e);let s=0;for(let e=0;e<o;e++){let o=!0;for(let t=0;t<u.length&&o;t++){const{clearMask:n,filterJSON:r,requiredMask:s,valuesSet:i}=u[t],c=a[t].values[e];switch(r.type){case"pointCloudValueFilter":{const t="exclude"===r.mode;i.has(c)===t&&(o=!1);break}case"pointCloudBitfieldFilter":(c&s)===s&&0===(c&n)||(o=!1);break;case"pointCloudReturnFilter":{const t=15&c,n=c>>>4&15,e=n>1,a=1===t,u=t===n;let s=!1;for(const t of r.includedReturns)if("last"===t&&u||"firstOfMany"===t&&a&&e||"lastOfMany"===t&&u&&e||"single"===t&&!e){s=!0;break}s||(o=!1);break}}}o&&(r[s]=e,t[3*s]=t[3*e],t[3*s+1]=t[3*e+1],t[3*s+2]=t[3*e+2],n[3*s]=n[3*e],n[3*s+1]=n[3*e+1],n[3*s+2]=n[3*e+2],s++)}return s}(n,i,a,t.filterInfo,u)}for(const e of t.userAttributesData){const t=R(e,n,r);o.push({attributeInfo:e.attributeInfo,values:t})}3*r<i.length&&(i=i.slice(0,3*r)),function(t,n,r){if(0!==r)for(let e=0;e<n;e++)t[3*e+2]+=r}(n,r,t.elevationOffset);const c=k(n,r,T.ab.fromData(t.obbData),S.A.fromJSON(t.inSR),S.A.fromJSON(t.outSR));return{obbData:t.obbData,points:c,rgb:i,attributes:o,pointIdFilterMap:a}}}function k(t,n,r,e,a){if(!(0,w.projectBuffer)(t,e,0,t,a,0,n))throw new Error("Can't reproject");const o=i(r.getCenter((0,v.vt)())),l=s(),f=s(),h=c(r.halfSizeX,r.halfSizeY,r.halfSizeZ);r.getQuaternionConjugate(P);const M=new Float32Array(3*n);for(let r=0;r<n;r++){let n=3*r;l[0]=t[n]-o[0],l[1]=t[n+1]-o[1],l[2]=t[n+2]-o[2],(0,u.gL)(f,l,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[n++]=l[0],M[n++]=l[1],M[n]=l[2]}return r.setHalfSize(h),M}const P=(0,o.vt)();function C(){return new D}}}]);
|