@arcgis/core 5.1.0-next.37 → 5.1.0-next.39
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/applications/WebEditor/sketchUtils.js +1 -1
- package/arcade/batchExec.js +1 -1
- package/assets/esri/core/libs/libtess/libtess-f32.wasm +0 -0
- package/assets/esri/core/libs/libtess/libtess-f64.wasm +0 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{11058e660139c427c3e7.js → 01777e91cd4e0bf04fd0.js} +1 -1
- package/assets/esri/core/workers/chunks/{666db81085bc97831b18.js → 02a0a58ca5916db1db19.js} +1 -1
- package/assets/esri/core/workers/chunks/{3d18b8c1c759c7240721.js → 03c8453ae72a4e190252.js} +1 -1
- package/assets/esri/core/workers/chunks/{828998d33a48be161782.js → 04981ae9d7728208ffce.js} +1 -1
- package/assets/esri/core/workers/chunks/{b2cf19a28aa5c32a99e3.js → 04b04548d4eb0941a01e.js} +1 -1
- package/assets/esri/core/workers/chunks/{64870f555fefa85a5c59.js → 06003996a378c45bc605.js} +1 -1
- package/assets/esri/core/workers/chunks/{ce063df750018024c9ed.js → 0601c316da0256a60538.js} +1 -1
- package/assets/esri/core/workers/chunks/{653d61aaaacb169b9418.js → 0d321b3496adc640d96a.js} +1 -1
- package/assets/esri/core/workers/chunks/0dd12d6af0cf7707109c.js +2 -0
- package/assets/esri/core/workers/chunks/0de66f13e84830a654fb.js +1 -0
- package/assets/esri/core/workers/chunks/{1ff40e6057916e8482b3.js → 0eb57ef4a1b387c951d6.js} +1 -1
- package/assets/esri/core/workers/chunks/{0554f310066937098099.js → 10941b50f5933d168df6.js} +1 -1
- package/assets/esri/core/workers/chunks/{22aeab5c363645c04806.js → 13a009229c96ecb7b04f.js} +1 -1
- package/assets/esri/core/workers/chunks/13d55e3c9aea04116eaa.js +1 -0
- package/assets/esri/core/workers/chunks/{3b86e8eb553122d3b68d.js → 167e4ff7cbc88b42db71.js} +1 -1
- package/assets/esri/core/workers/chunks/16a767cc5f3e2e0e49c2.js +1 -0
- package/assets/esri/core/workers/chunks/19cbaeda71486df01d0f.js +1 -0
- package/assets/esri/core/workers/chunks/{96132a37bc08c7fa8f2e.js → 1a6a77902dd8c84e059a.js} +1 -1
- package/assets/esri/core/workers/chunks/{00947268b6de12329146.js → 1f5d9e5d4ddc623fd511.js} +1 -1
- package/assets/esri/core/workers/chunks/{a2d045217a42ecc36308.js → 236b4ab3da0bc8f788a2.js} +1 -1
- package/assets/esri/core/workers/chunks/{0a66a2b4aaab0774c34f.js → 23af269e88f9ac101ffb.js} +1 -1
- package/assets/esri/core/workers/chunks/{da60a6df2f7858a2910e.js → 244dd7a948ca8a7dc6ef.js} +1 -1
- package/assets/esri/core/workers/chunks/25946077568ab14c7bfc.js +1 -0
- package/assets/esri/core/workers/chunks/{bb7e0334f438daa665da.js → 26cafd20c8d03c274389.js} +1 -1
- package/assets/esri/core/workers/chunks/284ce99af7bdd73dc7e9.js +1 -0
- package/assets/esri/core/workers/chunks/{1d0153c7d65bd9ea7d39.js → 2b386374330d96387aec.js} +1 -1
- package/assets/esri/core/workers/chunks/2c12b1488819c038c6b1.js +1 -0
- package/assets/esri/core/workers/chunks/2d2c10c31cc1460dd96a.js +1 -0
- package/assets/esri/core/workers/chunks/2fa86dacc8a12a6a6c43.js +1 -0
- package/assets/esri/core/workers/chunks/{8bd24534ed185afcb124.js → 30cdb2d1d9f018f1642d.js} +1 -1
- package/assets/esri/core/workers/chunks/{5691c1624190abeaebea.js → 34484afe767d60f85982.js} +1 -1
- package/assets/esri/core/workers/chunks/35d115bde474c380c791.js +1 -0
- package/assets/esri/core/workers/chunks/{6a0c371ec3acd7529fe6.js → 36a0e48113ab59a4f21d.js} +1 -1
- package/assets/esri/core/workers/chunks/{cc3939983cf6f78f7243.js → 38c28189f273636e4017.js} +1 -1
- package/assets/esri/core/workers/chunks/{e00000468fb8ec2b3d43.js → 392941013107bbd96503.js} +1 -1
- package/assets/esri/core/workers/chunks/{43f60f41d353d3fc7c4b.js → 399fcea09dfb1ad6deaa.js} +1 -1
- package/assets/esri/core/workers/chunks/39d71e83261bff46f6bf.js +1 -0
- package/assets/esri/core/workers/chunks/{a52a8254577840a23aba.js → 3d4bb59ab2f644f4d675.js} +1 -1
- package/assets/esri/core/workers/chunks/3e2953ea62817e75d840.js +1 -0
- package/assets/esri/core/workers/chunks/{582d45a41e29005f6c63.js → 4005d37d03c834da7629.js} +1 -1
- package/assets/esri/core/workers/chunks/{285f3b07de852bfc1604.js → 427183ea93e759943a78.js} +1 -1
- package/assets/esri/core/workers/chunks/{4ceba469398ef55de8ea.js → 42b556d56013350c9d80.js} +1 -1
- package/assets/esri/core/workers/chunks/{446bc8461403ed1ac7b2.js → 4577df99c92c7ec0f9de.js} +1 -1
- package/assets/esri/core/workers/chunks/{7a2dd3d85d31dce29d94.js → 49d6249e98f023344e0a.js} +1 -1
- package/assets/esri/core/workers/chunks/{6ca2064ea96bdb594f52.js → 4b0d6309abf273f1f79f.js} +1 -1
- package/assets/esri/core/workers/chunks/{6f3f7f785241edacdb8b.js → 4b5737021a149aa786af.js} +1 -1
- package/assets/esri/core/workers/chunks/{210ef3f1cc6ef8a831bf.js → 4b79ebfb3328f9483147.js} +1 -1
- package/assets/esri/core/workers/chunks/{305b2a8dc6438c5fd4aa.js → 4d378d4e021a33b0047e.js} +1 -1
- package/assets/esri/core/workers/chunks/{114aecdbd2bd92b24de2.js → 52175ff9e8c2c136f90a.js} +1 -1
- package/assets/esri/core/workers/chunks/{dfee98e7d1b206f33ba9.js → 54db91c0a3bd1946e026.js} +1 -1
- package/assets/esri/core/workers/chunks/{c79e8003812b789724af.js → 5b2fe488a461bc433f59.js} +1 -1
- package/assets/esri/core/workers/chunks/{1fa2bf0d6740092ec619.js → 5b70295da76d9227f64b.js} +1 -1
- package/assets/esri/core/workers/chunks/5e59ff96aecdf2adcb3b.js +1 -0
- package/assets/esri/core/workers/chunks/{0f2d6f267d235db48767.js → 5e9595eb6ae6a40e7265.js} +1 -1
- package/assets/esri/core/workers/chunks/{776a7179d32fe62a37e3.js → 604f9e7228a66b6cf2f9.js} +1 -1
- package/assets/esri/core/workers/chunks/{d0d836502321e7a80e61.js → 60d0f8a949b130baff81.js} +1 -1
- package/assets/esri/core/workers/chunks/60e4312044fe40dfd41d.js +2 -0
- package/assets/esri/core/workers/chunks/{98a84dc2988297bd6ab1.js → 6258ae3d991ce652d97f.js} +1 -1
- package/assets/esri/core/workers/chunks/{e0d6292aaa3f8a796de3.js → 65865c25487d23dd2e31.js} +1 -1
- package/assets/esri/core/workers/chunks/{d4b97ca16d79809ed6f2.js → 65ea5028eb12457a3aeb.js} +1 -1
- package/assets/esri/core/workers/chunks/{cf100c80b75ba74b479c.js → 66a4d764937918a2779f.js} +1 -1
- package/assets/esri/core/workers/chunks/{ebcfc20c1d92d90bf661.js → 6afdaa6c4555c467dca7.js} +1 -1
- package/assets/esri/core/workers/chunks/6ee956d5a92ca905f53f.js +1 -0
- package/assets/esri/core/workers/chunks/{14e05d37e10ebba8cf10.js → 6f58ec80abebb7bfbbb0.js} +1 -1
- package/assets/esri/core/workers/chunks/{5698098c3691b3b49283.js → 73d7337ac9efdbad14a4.js} +1 -1
- package/assets/esri/core/workers/chunks/{568d32ceee1409809e5a.js → 749c368f5cc2366716f1.js} +1 -1
- package/assets/esri/core/workers/chunks/{586bc903e2c285649bf2.js → 77769663cd712822d33e.js} +1 -1
- package/assets/esri/core/workers/chunks/{620965d2e1a9ccf81d43.js → 77f6659e400064d38130.js} +1 -1
- package/assets/esri/core/workers/chunks/{8ed7ff651241f8adc4bf.js → 78472f69053061a18967.js} +1 -1
- package/assets/esri/core/workers/chunks/{0e7d3f3479fcb366cc6f.js → 80a1ccabd4257cc61e0d.js} +1 -1
- package/assets/esri/core/workers/chunks/{0d156e14fc34d0600fd5.js → 81b830f0d620587966ca.js} +1 -1
- package/assets/esri/core/workers/chunks/{9cd548ea00b641d8e65d.js → 8333561a938bcdf6c2e6.js} +1 -1
- package/assets/esri/core/workers/chunks/{283ce37403c5e7a76e95.js → 8677865189081e0b83bc.js} +1 -1
- package/assets/esri/core/workers/chunks/{087403b53f15eb4d375c.js → 86f70bd786d6d57fde69.js} +1 -1
- package/assets/esri/core/workers/chunks/88c6cc90606409b5c884.js +1 -0
- package/assets/esri/core/workers/chunks/{8e10e4c25869af9da5ba.js → 8967a02f394a63f11030.js} +1 -1
- package/assets/esri/core/workers/chunks/{d2fa8bd3f4cd3cf6b436.js → 89dbea6f436d45a3b185.js} +1 -1
- package/assets/esri/core/workers/chunks/{8eed5b6cac937099102c.js → 8d5bc17557a31ed79ed8.js} +1 -1
- package/assets/esri/core/workers/chunks/{2d6165796af522858e56.js → 8e18ac7b22d8dca1e1e2.js} +1 -1
- package/assets/esri/core/workers/chunks/{ae72c530d52a6d4461be.js → 8e3cb1c584951c3d1eb7.js} +1 -1
- package/assets/esri/core/workers/chunks/92f6d637f4786ba0d3e3.js +1 -0
- package/assets/esri/core/workers/chunks/93846f8b77fc802069a7.js +1 -0
- package/assets/esri/core/workers/chunks/{34f2e9d7466abc0919e7.js → 9639b1dd27ccc17ee21e.js} +1 -1
- package/assets/esri/core/workers/chunks/{7ebd836b98d14c7d3ecf.js → 969f58a2de4ebe63619d.js} +1 -1
- package/assets/esri/core/workers/chunks/{9a3e5053e95db36f26dc.js → 9a95c28d4a3b3b4b2c50.js} +1 -1
- package/assets/esri/core/workers/chunks/{c3e4f8664988e50bda55.js → 9b365a6242b0287f8727.js} +1 -1
- package/assets/esri/core/workers/chunks/{e021b2f0e15aee5bf3ad.js → 9b80569819cd1c72a9ff.js} +1 -1
- package/assets/esri/core/workers/chunks/{3dcb4ee8b862689a141b.js → 9bd68abc6b5b07b2add3.js} +1 -1
- package/assets/esri/core/workers/chunks/{952ff668d202e80b43b0.js → a029db48079af4b5cccd.js} +1 -1
- package/assets/esri/core/workers/chunks/{9cc1b44c5a325a840307.js → a1f36240a31057f998da.js} +1 -1
- package/assets/esri/core/workers/chunks/{ff8de370abf661768380.js → a84d67c1a1008bca2075.js} +1 -1
- package/assets/esri/core/workers/chunks/{c6112dcd6b36e256d7b5.js → a90883ff02c0cc6450c2.js} +1 -1
- package/assets/esri/core/workers/chunks/{0d196cf72cd8bef8d91d.js → abcb39ad1e2d54710766.js} +1 -1
- package/assets/esri/core/workers/chunks/{80f0810527743833b4b7.js → af804beb43d4d10c54d9.js} +1 -1
- package/assets/esri/core/workers/chunks/{fbada7f029b293d934ac.js → b014f0b2385dc82dc683.js} +2 -2
- package/assets/esri/core/workers/chunks/{8c2e5b116bac21e7d577.js → b056b4c79bcd542dd1d2.js} +1 -1
- package/assets/esri/core/workers/chunks/{3b9de873f87f0feeb20b.js → b1ac09d8fa340d194aa2.js} +1 -1
- package/assets/esri/core/workers/chunks/{2f0e850ebea0ffd2708f.js → b1c5f69bd1400e66c635.js} +1 -1
- package/assets/esri/core/workers/chunks/{414a802b6365688d31cb.js → b6e63d8ce3c9ac9762f4.js} +1 -1
- package/assets/esri/core/workers/chunks/{d7229019876c0e4ff545.js → b86cb84c03b76e824213.js} +1 -1
- package/assets/esri/core/workers/chunks/bf9b83e020ff08c51ac1.js +1 -0
- package/assets/esri/core/workers/chunks/{b396b5186d618fad1cee.js → c0ecb68387e342dddf58.js} +1 -1
- package/assets/esri/core/workers/chunks/{623bfacf4b9c9a5387cc.js → c2f3fc1b34a6782b431f.js} +1 -1
- package/assets/esri/core/workers/chunks/c4f64195e44986644993.js +1 -0
- package/assets/esri/core/workers/chunks/{b7a3a7f7fb747f9689d7.js → c7799ba861ac5af08e6a.js} +1 -1
- package/assets/esri/core/workers/chunks/{9c6e96b1c2b0418a4f1c.js → ca1b0cb14ea9ae1bf2a3.js} +1 -1
- package/assets/esri/core/workers/chunks/cce2d2c60d136e1bac75.js +1 -0
- package/assets/esri/core/workers/chunks/{b98366d8a5bc6cc2b219.js → cda2e445eb2ac269abdf.js} +1 -1
- package/assets/esri/core/workers/chunks/{448620052233e51b496c.js → cf74d1605ad2f21699e7.js} +1 -1
- package/assets/esri/core/workers/chunks/d024278a1c2aa7d22be3.js +1 -0
- package/assets/esri/core/workers/chunks/{f4301ea9a6cb3bcef906.js → d0983cc19d19c19c3478.js} +1 -1
- package/assets/esri/core/workers/chunks/{ee582bbe7365b678ec54.js → d50e6681ecb9612e4528.js} +1 -1
- package/assets/esri/core/workers/chunks/{68abe4e70ea48e978642.js → d51c41c1944df0cbab3e.js} +1 -1
- package/assets/esri/core/workers/chunks/{b2f497339493926d4c9e.js → d53b31c9056f82831bc0.js} +1 -1
- package/assets/esri/core/workers/chunks/{ffc87a038712a4c9d2cb.js → d6eddb94f5f2e9759bd0.js} +1 -1
- package/assets/esri/core/workers/chunks/{6cdda5aa35fa12ea9345.js → d7439d357f68160844cb.js} +1 -1
- package/assets/esri/core/workers/chunks/{b5403c8b5099179dc16d.js → d82b543c96f09ded3bf9.js} +2 -2
- package/assets/esri/core/workers/chunks/{6c853fd89f0e9f102c6e.js → dba479176db0a23c8034.js} +1 -1
- package/assets/esri/core/workers/chunks/{6792e981a3c73063a3e6.js → dd26e3a29161ea411e41.js} +1 -1
- package/assets/esri/core/workers/chunks/{0337138d3702a1a52ce0.js → de79645e559a2d1ffa67.js} +1 -1
- package/assets/esri/core/workers/chunks/e09f8b17cb0b92354de8.js +1 -0
- package/assets/esri/core/workers/chunks/{8346c342b822487a5477.js → e47dd011c06ab42c18e0.js} +1 -1
- package/assets/esri/core/workers/chunks/{ba4e018492bd3327cd95.js → e68d7aec0f095b6d743d.js} +1 -1
- package/assets/esri/core/workers/chunks/{ca64867bc322a354be8e.js → e907acaec4c62adac2f2.js} +1 -1
- package/assets/esri/core/workers/chunks/{9813f25192ea27084754.js → ea356a5b90ea44b5cbe1.js} +1 -1
- package/assets/esri/core/workers/chunks/{d30253b4990a76bfd72b.js → eab74d830c2eaa9d133b.js} +1 -1
- package/assets/esri/core/workers/chunks/{eef102e13fd8878eeb96.js → eb36417edc11fa80e312.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5dbda08d7fd4bed1c62.js → eca45cd479f7fd28ca6e.js} +1 -1
- package/assets/esri/core/workers/chunks/{56f64df68bb11c0c74d2.js → f209a7076d67cbf4d205.js} +1 -1
- package/assets/esri/core/workers/chunks/{b81780e5e7cd9a1a010a.js → f36a234ef35faf8ca04d.js} +1 -1
- package/assets/esri/core/workers/chunks/{64450e280d602c5b0863.js → f45e4eb89db31d7a7640.js} +14 -14
- package/assets/esri/core/workers/chunks/{45d57e561fc993bc75ed.js → f9cde38cb56c547e87e5.js} +1 -1
- package/assets/esri/core/workers/chunks/{0efe90bd43ab29dab8ae.js → f9da5c81535eaffc8b9c.js} +1 -1
- package/assets/esri/core/workers/chunks/{23cb0611abe1031c513c.js → fce30184f354fb7d11af.js} +1 -1
- package/assets/esri/core/workers/chunks/{c8ae8d1b456ace0b383b.js → fce8d4ff920baf8856e6.js} +1 -1
- package/assets/esri/core/workers/chunks/{5fa5a2fb69f84e9092ba.js → fd629a3ab558adf52617.js} +1 -1
- package/assets/esri/core/workers/chunks/{4bfc6f8c2d13ca4d2082.js → fdf4c1f202cfddf0f226.js} +1 -1
- package/assets/esri/core/workers/chunks/{5b12865ac53d984d8149.js → fe7dec83e40014c55a6b.js} +1 -1
- package/assets/esri/core/workers/chunks/{5f3b25b30acd7a07f5c0.js → ff31936236dd9b1acb24.js} +1 -1
- package/assets/esri/core/workers/chunks/{122ff8d0d428f31fc5d1.js → ff8ec6369c8a1bee9bb4.js} +1 -1
- package/chunks/Fog.glsl.js +2 -1
- package/chunks/GaussianSplatComposition.glsl.js +21 -3
- package/chunks/GlowBlur.glsl.js +8 -8
- package/chunks/GlowComposition.glsl.js +7 -7
- package/chunks/HUDMaterial.glsl.js +4 -1
- package/chunks/OITBlend.glsl.js +10 -10
- package/chunks/OITDim.glsl.js +3 -4
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/config.js +1 -1
- package/core/Promise.js +1 -1
- package/core/QueueProcessor.js +1 -1
- package/core/has.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/scheduling.js +1 -1
- package/core/workers/Connection.js +1 -1
- package/editing/sharedTemplates/SharedTemplateProvider.js +1 -1
- package/geometry/libtess.js +1 -1
- package/identity/IdentityManagerBase.js +1 -1
- package/intl/messages.js +1 -1
- package/kernel.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/graphics/data/projectionSupport.js +1 -1
- package/layers/graphics/editingSupport.js +1 -1
- package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
- package/layers/graphics/sources/connections/WebSocketConnection.js +1 -1
- package/layers/mixins/EditBusLayer.js +1 -1
- package/layers/raster/functions/rasterProjectionHelper.js +1 -1
- package/libs/lyr3d/Lyr3DModule.js +1 -1
- package/package.json +2 -2
- package/rest/print.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/Bitmap.js +1 -1
- package/views/2d/engine/imagery/RasterBitmap.js +1 -1
- package/views/2d/engine/transitions/FadeTransition.js +1 -1
- package/views/2d/engine/webgl/TextureUploadManager.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueDebugContainer.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterHighlightTechnique.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
- package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
- package/views/2d/layers/imagery/VectorFieldTileView2D.js +1 -1
- package/views/2d/layers/imagery/VectorFieldView2D.js +1 -1
- package/views/2d/layers/support/FeatureCommandQueue.js +1 -1
- package/views/3d/analysis/Dimension/DimensionVisualization.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
- package/views/3d/environment/EnvironmentManager.js +1 -1
- package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshNormals.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/ElevationQuery.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/RasterTile.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPass.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/EmissionDimming.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/WeatherFader.js +2 -0
- package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowBlurTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowCompositionTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlend.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlendTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITDim.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +2 -0
- package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +2 -0
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoardTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechniqueConfiguration.js +2 -0
- package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +10 -10
- package/views/3d/webgl-engine/shaders/PatternTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/oitResolution.glsl.js +2 -0
- package/views/3d/webgl.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/ViewAnimation.js +1 -1
- package/views/analysis/ExclusiveOperationManager.js +1 -1
- package/views/interactive/InteractiveToolBase.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/support/AnalysisViewManager.js +1 -1
- package/views/support/LayerLayerViewInfo.js +1 -1
- package/views/support/LayerViewManager.js +1 -1
- package/views/support/ScheduledQueueProcessor.js +1 -1
- package/views/support/waitForResources.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/Upload.js +1 -1
- package/widgets/Editor/Workflow.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/PanoramicViewer/support/PanoramicMedia.js +1 -1
- package/assets/esri/core/workers/chunks/1ee3d44e6d7add0b24cb.js +0 -1
- package/assets/esri/core/workers/chunks/29ff5325e604dd0adc37.js +0 -1
- package/assets/esri/core/workers/chunks/34cdcee6d0ea595d7aed.js +0 -1
- package/assets/esri/core/workers/chunks/36f91b5c4345a179b8b1.js +0 -1
- package/assets/esri/core/workers/chunks/4d7f7b1e7663cf6088d1.js +0 -1
- package/assets/esri/core/workers/chunks/5d87316d6f973d95745c.js +0 -1
- package/assets/esri/core/workers/chunks/6997b4d5bcc9c4755375.js +0 -1
- package/assets/esri/core/workers/chunks/75664587bb80f4e187e1.js +0 -1
- package/assets/esri/core/workers/chunks/7975abb2162a82c88edb.js +0 -1
- package/assets/esri/core/workers/chunks/889835e61ea97f090082.js +0 -1
- package/assets/esri/core/workers/chunks/917474f9dd2039b82e9d.js +0 -1
- package/assets/esri/core/workers/chunks/9360a24ba765742f4e81.js +0 -1
- package/assets/esri/core/workers/chunks/bd278f8081be8304be8d.js +0 -1
- package/assets/esri/core/workers/chunks/c2e4cf3a277a6f40c7c2.js +0 -1
- package/assets/esri/core/workers/chunks/c7f27a84268a9b0d8cdb.js +0 -1
- package/assets/esri/core/workers/chunks/cd73d37ea0e66db46e45.js +0 -1
- package/assets/esri/core/workers/chunks/d42d670edfae902c677b.js +0 -2
- package/assets/esri/core/workers/chunks/d6c2c9fedde498ad1a8c.js +0 -2
- package/assets/esri/core/workers/chunks/dcef87f7d06c45cd928b.js +0 -1
- package/assets/esri/core/workers/chunks/e011318fb8f8e59bc1f1.js +0 -1
- package/assets/esri/core/workers/chunks/e0344b45af88081fa186.js +0 -1
- package/assets/esri/core/workers/chunks/e16f5f089259988e8993.js +0 -1
- package/assets/esri/core/workers/chunks/ecddd8c7593d3483ed09.js +0 -1
- package/assets/esri/core/workers/chunks/fe21b2d31fbf83224e6b.js +0 -1
- package/views/3d/environment/EnvironmentRenderer.js +0 -2
- package/views/3d/webgl-engine/lib/CutFillColor.js +0 -2
- package/views/3d/webgl-engine/lib/CutFillDepth.js +0 -2
- /package/assets/esri/core/workers/chunks/{d6c2c9fedde498ad1a8c.js.LICENSE.txt → 0dd12d6af0cf7707109c.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d42d670edfae902c677b.js.LICENSE.txt → 60e4312044fe40dfd41d.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{fbada7f029b293d934ac.js.LICENSE.txt → b014f0b2385dc82dc683.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{b5403c8b5099179dc16d.js.LICENSE.txt → d82b543c96f09ded3bf9.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,1695],{99719(e,t,r){r.d(t,{x:()=>n});class n{}},92400(e,t,r){r.d(t,{CU:()=>l,UQ:()=>o,fF:()=>i,o6:()=>s});var n=r(17676);class i{constructor(){}}function s(e,t,r){if(e instanceof i&&!(e instanceof l)){const n=new l;return n.fn=e,n.parameterEvaluator=r,n.context=t,n}return e}class o extends i{constructor(e){super(),this.fn=e}createFunction(e){return(...t)=>this.fn(e,{preparsed:!0,arguments:t})}call(e,t){return this.fn(e,t)}marshalledCall(e,t,r,o){return o(e,t,(t,a,u)=>{u=u.map(t=>t instanceof i&&!(t instanceof l)?s(t,e,o):t);const c=this.call(r,{args:u});return(0,n.$X)(c)?c.then(e=>s(e,r,o)):c})}}class l extends i{constructor(){super(...arguments),this.fn=null,this.context=null}createFunction(e){return this.fn.createFunction(this.context)}call(e,t){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}marshalledCall(e,t,r){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}}},93818(e,t,r){r.d(t,{A:()=>n});class n{constructor(e=[]){this._elements=e}length(){return this._elements.length}get(e){return this._elements[e]}toArray(){return this.slice()}slice(e=0,t=this.length()){const r=[];for(let n=e;n<t;n++)r.push(this.get(n));return r}}},7335(e,t,r){r.d(t,{A:()=>s});var n=r(93818),i=r(7320);class s extends n.A{constructor(e,t,r,n,i){super(e),this._lazyPath=[],this._hasZ=!1,this._hasM=!1,this._hasZ=r,this._hasM=n,this._spRef=t,this._cacheId=i}get(e){if(void 0===this._lazyPath[e]){const t=this._elements[e];if(void 0===t)return;this._lazyPath[e]=new i.A(t,this._spRef,this._hasZ,this._hasM,this._cacheId,e)}return this._lazyPath[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()}}},7320(e,t,r){r.d(t,{A:()=>s});var n=r(93818),i=r(86738);class s extends n.A{constructor(e,t,r,n,i,s){super(e),this._lazyPt=[],this._hasZ=!1,this._hasM=!1,this._spRef=t,this._hasZ=r,this._hasM=n,this._cacheId=i,this._partId=s}get(e){if(void 0===this._lazyPt[e]){const t=this._elements[e];if(void 0===t)return;const r=new i.A(t[0],t[1],this._spRef);this._hasZ&&(r.z=t[2]),this._hasM&&(r.m=this._hasZ?t[3]:t[2]),r.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+e.toString(),this._lazyPt[e]=r}return this._lazyPt[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()+"-"+this._partId.toString()}}},6800(e,t,r){r.d(t,{G:()=>a,y:()=>o});var n=r(99719),i=r(78878),s=r(54218);function o(e){l=e}let l;function a(e){return null===e?null:(0,i.e)(e)?e.clone():(0,i.d)(e)?e:(0,i.h)(e)?e.clone():(0,i.j)(e)?e.toArray().map(e=>a(e)):(0,s.cy)(e)?e.map(e=>a(e)):(0,i.k)(e)?l.createFromArcadeFeature(e):(0,i.l)(e)||(0,i.m)(e)?e:(0,i.n)(e)||"esri.arcade.Attachment"===e?.declaredClass?e.deepClone():("esri.arcade.Portal"===e?.declaredClass||(0,i.o)(e)||e instanceof n.x||(0,i.i)(e),e)}},33325(e,t,r){r.d(t,{$P:()=>c,At:()=>v,JB:()=>S,Lk:()=>p,Qi:()=>C,eB:()=>b,eg:()=>y,f0:()=>h,gO:()=>f,ik:()=>m,ke:()=>a,nE:()=>u,rX:()=>d,yT:()=>g});var n=r(66131),i=r(44729),s=r(15032),o=r(20437),l=r(92647);function a(e){return o.A.fromJSON(e.toJSON())}function u(e){return e.toJSON?e.toJSON():e}function c(e){return e instanceof Date}function p(e){return e instanceof l.c9}function d(e){return e instanceof n.lY}function h(e){return e instanceof i.n}function y(e){return e instanceof s.k}const f=1e3,m={point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"},g={point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"},v={"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger",long:"esriFieldTypeLong",single:"esriFieldTypeSingle",double:"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate","date-only":"esriFieldTypeDateOnly","time-only":"esriFieldTypeTimeOnly","timestamp-offset":"esriFieldTypeTimestampOffset",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"esriFieldTypeXML","big-integer":"esriFieldTypeBigInteger",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeDateOnly:"esriFieldTypeDateOnly",esriFieldTypeTimeOnly:"esriFieldTypeTimeOnly",esriFieldTypeTimestampOffset:"esriFieldTypeTimestampOffset",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"esriFieldTypeXML",esriFieldTypeBigInteger:"esriFieldTypeBigInteger"};function C(e){return void 0===e?"":e=(e=(e=e.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer")).replace(/\/mapserver\/[0-9]*/i,"/MapServer")).split("?")[0]}function S(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(i=t.cmp,function(e){return function(t,r){const n={key:t,value:e[t]},s={key:r,value:e[r]};return i(n,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const l=s.push(t)-1,a=Object.keys(t).sort(n?.(t));for(o="",i=0;i<a.length;i++){const r=a[i],n=e(t[r]);n&&(o&&(o+=","),o+=JSON.stringify(r)+":"+n)}return s.splice(l,1),"{"+o+"}"}(e)}function b(e){switch(e.type){case"catalog-footprint":case"catalog":case"csv":case"feature":case"geojson":case"knowledge-graph-sublayer":case"oriented-imagery":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}},78878(e,t,r){r.d(t,{$:()=>G,A:()=>x,B:()=>te,C:()=>Te,D:()=>ve,E:()=>we,F:()=>Ne,G:()=>Pe,H:()=>ge,I:()=>_,J:()=>R,K:()=>je,L:()=>re,M:()=>J,N:()=>_e,O:()=>E,P:()=>me,Q:()=>oe,R:()=>P,S:()=>ne,T:()=>Ee,U:()=>Be,V:()=>ke,W:()=>Qe,X:()=>Ue,Y:()=>Ce,Z:()=>j,_:()=>Q,a:()=>Ge,a0:()=>Le,a1:()=>de,a2:()=>Re,a3:()=>De,a4:()=>Me,a5:()=>Se,a6:()=>be,b:()=>Je,c:()=>ce,d:()=>q,e:()=>Y,f:()=>W,g:()=>X,h:()=>k,i:()=>I,j:()=>H,k:()=>B,l:()=>V,m:()=>L,n:()=>$,o:()=>z,p:()=>Ke,q:()=>U,r:()=>fe,s:()=>pe,t:()=>he,u:()=>ae,v:()=>F,w:()=>ue,x:()=>xe,y:()=>K,z:()=>D});var n=r(92602),i=r(70333),s=r(66131),o=r(99719),l=r(85935),a=r(92400),u=r(93818),c=r(7335),p=r(7320),d=r(33325),h=r(14607),y=r(44729),f=r(15032),m=r(5443),g=r(91075),v=r(48526),C=r(86738),S=r(39829),b=r(82799),M=r(16930),Z=r(95108),A=r(65864),T=r(73444),O=r(54218),w=r(92647),N=r(94128);class P{constructor(e){this.value=e}}class _{constructor(e){this.value=e}}const F={type:"VOID"},D=Symbol("BREAK"),x=Symbol("CONTINUE");function G(e,t,r){return""===t||null==t||t===r||t===r?e:e=e.split(t).join(r)}function I(e){return e instanceof a.fF}function J(e){return e instanceof o.x}function q(e){return!!((0,O.Kg)(e)||(0,O.Et)(e)||Y(e)||W(e)||X(e)||(0,O.Lm)(e)||null===e||e===F)}function R(e,t){return void 0===e?t:e}function E(e){return null==e?"":(0,O.cy)(e)||H(e)?"Array":Y(e)?"Date":X(e)?"Time":W(e)?"DateOnly":(0,O.Kg)(e)?"String":(0,O.Lm)(e)?"Boolean":(0,O.Et)(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":z(e)?"KnowledgeGraph":e instanceof o.x?"Module":B(e)?"Feature":e instanceof C.A?"Point":e instanceof S.A?"Polygon":e instanceof b.A?"Polyline":e instanceof v.A?"Multipoint":e instanceof m.A?"Extent":I(e)?"Function":L(e)?"FeatureSet":V(e)?"FeatureSetCollection":j(e)?"Voxel":Q(e)?"Pixel":e===F?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function U(e){return e===F}function k(e){return e instanceof g.A}function B(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function j(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function Q(e){return"esri.arcade.Pixel"===e?.arcadeDeclaredClass}function L(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function $(e){return"esri.arcade.Dictionary"===e?.declaredClass}function K(e){return $(e)||B(e)||j(e)||Q(e)}function V(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function z(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function H(e){return e instanceof u.A}function Y(e){return e instanceof s.lY}function W(e){return e instanceof y.n}function X(e){return e instanceof f.k}function ee(e){return null!=e&&"object"==typeof e}function te(e,t,r,n,i){if(e.length<t||e.length>r)throw new l.D$(n,"WrongNumberOfParameters",i)}function re(e){return null==e||U(e)||""===e}function ne(e){return e<0?-Math.round(-e):Math.round(e)}function ie(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=G(t,"‰",""),t=G(t,"¤",""),(0,h.GP)(e,{pattern:t}))}function se(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(oe(t),{locale:(0,T.JK)(),numberingSystem:"latn"})}function oe(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let r="";const n=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(n)||[])switch(i){case"D":r+="d";break;case"DD":r+="dd";break;case"DDD":r+="o";break;case"d":r+="c";break;case"ddd":r+="ccc";break;case"dddd":r+="cccc";break;case"M":r+="L";break;case"MM":r+="LL";break;case"MMM":r+="LLL";break;case"MMMM":r+="LLLL";break;case"YY":r+="yy";break;case"Y":case"YYYY":r+="yyyy";break;case"Q":r+="q";break;case"Z":r+="Z";break;case"ZZ":r+="ZZ";break;case"ZZZ":r+="ZZZ";break;case"ZZZZ":r+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":r+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":r+="'S'";break;case"SS":r+="'SS'";break;case"SSS":r+="u";break;case"A":case"a":r+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":r+=i;break;default:i.length>=2&&i.startsWith("[")&&i.endsWith("]")?r+=`'${i.slice(1,-1)}'`:r+=`'${i}'`}return r}function le(e,t,r){switch(r){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function ae(e,t,r){if(null===e){if(null===t||t===F)return le(null,null,r);if((0,O.Et)(t))return le(0,t,r);if((0,O.Kg)(t))return le(0,fe(t),r);if((0,O.Lm)(t))return le(0,fe(t),r);if(Y(t))return le(0,t.toNumber(),r);if(X(t))return le(e,t.toNumber(),r);if(W(t))return le(e,t.toNumber(),r)}if(e===F){if(null===t||t===F)return le(null,null,r);if((0,O.Et)(t))return le(0,t,r);if((0,O.Kg)(t))return le(0,fe(t),r);if((0,O.Lm)(t))return le(0,fe(t),r);if(Y(t))return le(0,t.toNumber(),r);if(X(t))return le(e,t.toNumber(),r);if(W(t))return le(e,t.toNumber(),r)}else if((0,O.Et)(e)){if((0,O.Et)(t))return le(e,t,r);if((0,O.Lm)(t))return le(e,fe(t),r);if(null===t||t===F)return le(e,0,r);if((0,O.Kg)(t))return le(e,fe(t),r);if(Y(t))return le(e,t.toNumber(),r);if(X(t))return le(e,t.toNumber(),r);if(W(t))return le(e,t.toNumber(),r)}else if((0,O.Kg)(e)){if((0,O.Kg)(t))return le(pe(e),pe(t),r);if(Y(t))return le(fe(e),t.toNumber(),r);if(X(t))return le(fe(e),t.toNumber(),r);if(W(t))return le(fe(e),t.toNumber(),r);if((0,O.Et)(t))return le(fe(e),t,r);if(null===t||t===F)return le(fe(e),0,r);if((0,O.Lm)(t))return le(fe(e),fe(t),r)}else if(Y(e)){if(Y(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=s.lY.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=s.lY.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),le(e.toNumber(),t.toNumber(),r);if(null===t||t===F)return le(e.toNumber(),0,r);if((0,O.Et)(t))return le(e.toNumber(),t,r);if((0,O.Lm)(t))return le(e.toNumber(),fe(t),r);if((0,O.Kg)(t))return le(e.toNumber(),fe(t),r);if(X(t))throw new l.D$(null,"CannotCompareDateAndTime",null);if(W(t))return le(e.toNumber(),t.toNumber(),r)}else if((0,O.Lm)(e)){if((0,O.Lm)(t))return le(e,t,r);if((0,O.Et)(t))return le(fe(e),fe(t),r);if(Y(t))return le(fe(e),t.toNumber(),r);if(X(t))return le(fe(e),t.toNumber(),r);if(W(t))return le(fe(e),t.toNumber(),r);if(null===t||t===F)return le(fe(e),0,r);if((0,O.Kg)(t))return le(fe(e),fe(t),r)}else if(W(e)){if(Y(t))return le(e.toNumber(),t.toNumber(),r);if(null===t||t===F)return le(e.toNumber(),0,r);if((0,O.Et)(t))return le(e.toNumber(),t,r);if((0,O.Lm)(t))return le(e.toNumber(),fe(t),r);if((0,O.Kg)(t))return le(e.toNumber(),fe(t),r);if(X(t))throw new l.D$(null,"CannotCompareDateAndTime",null);if(W(t))return le(e.toNumber(),t.toNumber(),r)}else if(X(e)){if(Y(t))throw new l.D$(null,"CannotCompareDateAndTime",null);if(null===t||t===F)return le(e.toNumber(),0,r);if((0,O.Et)(t))return le(e.toNumber(),t,r);if((0,O.Lm)(t))return le(e.toNumber(),fe(t),r);if((0,O.Kg)(t))return le(e.toNumber(),fe(t),r);if(X(t))return le(e.toNumber(),t.toNumber(),r);if(W(t))throw new l.D$(null,"CannotCompareDateAndTime",null)}return!!ue(e,t)&&("<="===r||">="===r)}function ue(e,t){if(e===t)return!0;if(null===e&&t===F||null===t&&e===F)return!0;if(Y(e)&&Y(t))return e.equals(t);if(X(e)&&X(t))return e.equals(t);if(W(e)&&W(t))return e.equals(t);if(e instanceof c.A)return e.equalityTest(t);if(e instanceof p.A)return e.equalityTest(t);if(e instanceof C.A&&t instanceof C.A){const r=e.cache._arcadeCacheId,n=t.cache._arcadeCacheId;if(null!=r)return r===n}if(ee(e)&&ee(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ce(e,{useNumbersForDates:t}){let r="";for(const n in e){""!==r&&(r+=",");const i=e[n];null==i?r+=JSON.stringify(n)+":null":(0,O.Lm)(i)||(0,O.Et)(i)||(0,O.Kg)(i)?r+=JSON.stringify(n)+":"+JSON.stringify(i):k(i)?r+=JSON.stringify(n)+":"+he(i):X(i)||W(i)?r+=`${JSON.stringify(n)}:${JSON.stringify(i.toString())}`:H(i)||Array.isArray(i)?r+=JSON.stringify(n)+":"+he(i,null,t):Y(i)?r+=t?JSON.stringify(n)+":"+JSON.stringify(i.getTime()):JSON.stringify(n)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(r+=JSON.stringify(n)+":"+i.castToText(t))}return"{"+r+"}"}function pe(e,t){if((0,O.Kg)(e))return e;if(null===e)return"";if((0,O.Et)(e))return ie(e,t);if((0,O.Lm)(e))return e.toString();if(Y(e))return se(e,t);if(X(e))return e.toFormat(t);if(W(e))return e.toFormat(t);if(e instanceof g.A)return JSON.stringify(e.toJSON());if((0,O.cy)(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=ye(e[r]);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let r=0;r<e.length();r++)t[r]=ye(e.get(r));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():I(e)?"object, Function":e===F?"":J(e)?"object, Module":""}function de(e){const t=[];if(e instanceof u.A){for(let r=0;r<e.length();r++)t[r]=fe(e.get(r));return t}if(!(0,O.cy)(e))return null;for(let r=0;r<e.length;r++)t[r]=fe(e[r]);return t}function he(e,t,r=!1){if((0,O.Kg)(e))return e;if(null===e)return"";if((0,O.Et)(e))return ie(e,t);if((0,O.Lm)(e))return e.toString();if(Y(e))return se(e,t);if(X(e))return e.toFormat(t);if(W(e))return e.toFormat(t);if(e instanceof g.A)return e instanceof m.A?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+Ae(e.spatialReference)+"}":Ae(e.toJSON(),(e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0);if((0,O.cy)(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=ye(e[n],r);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let n=0;n<e.length();n++)t[n]=ye(e.get(n),r);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(r):I(e)?"object, Function":e===F?"":J(e)?"object, Module":""}function ye(e,t=!1){if(null===e)return"null";if((0,O.Lm)(e)||(0,O.Kg)(e))return JSON.stringify(e);if((0,O.Et)(e))return e.toString();if(e instanceof g.A)return he(e,null,t);if(e instanceof u.A)return he(e,null,t);if(Array.isArray(e))return he(e,null,t);if(Y(e))return t?JSON.stringify(e.getTime()):JSON.stringify(se(e,""));if(X(e))return JSON.stringify(e.toString());if(W(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===F)return"null";return"null"}function fe(e,t){return(0,O.Et)(e)?e:null===e||""===e?0:Y(e)||W(e)||X(e)?NaN:(0,O.Lm)(e)?e?1:0:(0,O.cy)(e)||""===e||void 0===e?NaN:void 0!==t&&(0,O.Kg)(e)?(t=G(t,"‰",""),t=G(t,"¤",""),(0,h.qg)(e,{pattern:t})):e===F?0:Number(e)}function me(e,t){if(Y(e))return e;if((0,O.Kg)(e)){const r=function(e,t){const r=/ (\d\d)/,n=(0,s.mT)(t);let i=w.c9.fromISO(e,{zone:n});return i.isValid||r.test(e)&&(e=e.replace(r,"T$1"),i=w.c9.fromISO(e,{zone:t}),i.isValid)?i:null}(e,t);if(r)return s.lY.dateTimeToArcadeDate(r)}return null}function ge(e){return(0,O.Lm)(e)?e:(0,O.Kg)(e)?"true"===(e=e.toLowerCase()):!!(0,O.Et)(e)&&0!==e&&!isNaN(e)}function ve(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function Ce(e){if(null===e)return null;if(e instanceof C.A)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof S.A){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if(e instanceof b.A){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return e instanceof v.A?0===e.points.length?null:e:e instanceof m.A?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function Se(e,t){if(!e)return t;if(!e.domain)return t;let r=null,n=null;if(Y(t))r=t.toNumber();else if(W(t))r=t.toString();else if(X(t))r=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)r=pe(t);else{if(null==t)return null;if(""===t)return t;r=fe(t)}for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.code===r&&(n=i)}return null===n?pe(t):n.name}function be(e,t){if(!e)return t;if(!e.domain)return t;let r=null;const n=pe(t);for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.name===n&&(r=i)}return null===r?t:r.code}function Me(e,t,r=null,n=null){if(!t)return null;if(!t.fields)return null;let i,s,o=null;for(let r=0;r<t.fields.length;r++){const n=t.fields[r];n.name.toLowerCase()===e.toString().toLowerCase()&&(o=n)}if(null===o)throw new l.D$(null,"FieldNotFound",null,{key:e});let a=t.typeIdField,u="id",c=t.types;if(t.subtypeField&&(a=t.subtypeField,u="code",c=t.subtypes??[]),null===n&&r&&a)n=r.hasField(a)?r.field(a):null;else if(a&&null!==n){let e=!1;for(const t of c||[])if(n===t[u]){e=!0;break}if(!e)for(const t of c||[])if(n===t.name){n=t[u],e=!0;break}e||(n=null,r&&a&&(n=r.hasField(a)?r.field(a):null))}return null!=n&&c.some(e=>e[u]===n&&(i=e.domains?.[o.name],i&&"inherited"===i.type&&(i=Ze(o.name,t),s=!0),!0)),s||i||(i=Ze(e,t)),{field:o,domain:i}}function Ze(e,t){let r;return t.fields.some(t=>(t.name.toLowerCase()===e.toLowerCase()&&(r=t.domain),!!r)),r}function Ae(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(i=t.cmp,function(e){return function(t,r){const n={key:t,value:e[t]},s={key:r,value:e[r]};return i(n,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const l=s.push(t)-1,a=Object.keys(t).sort(n?.(t));for(o="",i=0;i<a.length;i++){const r=a[i],n=e(t[r]);n&&(o&&(o+=","),o+=JSON.stringify(r)+":"+n)}return s.splice(l,1),"{"+o+"}"}(e)}function Te(e){if(null===e)return null;const t=[];for(const r of e)B(r)?t.push(r.geometry()):t.push(r);return t}function Oe(e,t){if(!(t instanceof C.A))throw new l.D$(null,"InvalidParameter",null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function we(e,t){if((0,O.cy)(e)||H(e)){let r=!1,n=!1,i=[],s=t;if((0,O.cy)(e)){for(const t of e)Oe(i,t);i.length>0&&(s=e[0].spatialReference,r=e[0].hasZ,n=e[0].hasM)}else if(e instanceof p.A)i=e._elements,i.length>0&&(r=e._hasZ,n=e._hasM,s=e.get(0).spatialReference);else{if(!H(e))throw new l.D$(null,"InvalidParameter",null);for(const t of e.toArray())Oe(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:((0,Z.$3)(i)||(i=i.slice().reverse()),new S.A({rings:[i],spatialReference:s,hasZ:r,hasM:n}))}return e}function Ne(e,t){if((0,O.cy)(e)||H(e)){let r=!1,n=!1,i=[],s=t;if((0,O.cy)(e)){for(const t of e)Oe(i,t);i.length>0&&(s=e[0].spatialReference,r=!0===e[0].hasZ,n=!0===e[0].hasM)}else if(e instanceof p.A)i=e._elements,i.length>0&&(r=e._hasZ,n=e._hasM,s=e.get(0).spatialReference);else if(H(e)){for(const t of e.toArray())Oe(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:new b.A({paths:[i],spatialReference:s,hasZ:r,hasM:n})}return e}function Pe(e,t){if((0,O.cy)(e)||H(e)){let r=!1,n=!1,i=[],s=t;if((0,O.cy)(e)){for(const t of e)Oe(i,t);i.length>0&&(s=e[0].spatialReference,r=!0===e[0].hasZ,n=!0===e[0].hasM)}else if(e instanceof p.A)i=e._elements,i.length>0&&(r=e._hasZ,n=e._hasM,s=e.get(0).spatialReference);else if(H(e)){for(const t of e.toArray())Oe(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:new v.A({points:i,spatialReference:s,hasZ:r,hasM:n})}return e}function _e(e,t=!0){if(null==e)return[];if((0,O.cy)(e)){const r=[];for(const n of e){const e=pe(n);(t||""!==e)&&r.push(e)}return r}if(H(e)){const r=[];for(let n=0;n<e.length();n++){const i=pe(e.get(n));(t||""!==i)&&r.push(i)}return r}if(q(e)){const r=pe(e);if(t||""!==r)return[r]}return[]}let Fe=0;function De(){return Fe++,Fe%100==0?(Fe=0,new Promise(e=>{setTimeout(()=>{e()},0)})):Promise.resolve()}function xe(e,t,r){switch(r){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Ge(e,t=null){return null==e?null:(0,O.Lm)(e)||(0,O.Et)(e)||(0,O.Kg)(e)?e:e instanceof g.A?!0===t?.keepGeometryType?e:e.toJSON():e instanceof u.A?e.toArray().map(e=>Ge(e,t)):Array.isArray(e)?e.map(e=>Ge(e,t)):(0,O.$P)(e)?e:Y(e)?e.toJSDate():X(e)?e.toString():W(e)?e.toJSDate():null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(t):null}async function Ie(e,t,r,n,i){const s=await Je(e,t,r);i[n]=s}async function Je(e,t=null,r=null){if(e instanceof u.A&&(e=e.toArray()),null==e)return null;if(q(e)||e instanceof g.A||(0,O.$P)(e)||Y(e))return Ge(e,r);if(Array.isArray(e)){const n=[],i=[];for(const s of e)null===s||q(s)||s instanceof g.A||(0,O.$P)(s)||Y(s)?i.push(Ge(s,r)):(i.push(null),n.push(Ie(s,t,r,i.length-1,i)));return n.length>0&&await Promise.all(n),i}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(t,r):null}function qe(e){return Re(e)?e.parent:e}function Re(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Ee(e,t,r){const n=qe(e.fullSchema());return null===n?null:n.fields?Me(t,n,e,r):null}function Ue(e){const t=qe(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map(e=>({name:e.name,code:e.code})):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map(e=>({name:e.name,code:e.id})):[]}:null:null}function ke(e,t,r,n){const i=qe(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const s=Me(t,i,e,n);if(void 0===r)try{r=e.field(t)}catch(e){return null}return Se(s,r)}function Be(e,t,r,n){const i=qe(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===r){try{r=e.field(t)}catch(e){return null}return r}return be(Me(t,i,e,n),r)}function je(e){return e?.timeZone??"system"}function Qe(e){const t=qe(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const r=[];for(const e of t.fields)r.push((0,d.nE)(e));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===d.yT[t.geometryType]?"":d.yT[t.geometryType],fields:r}}function Le(e,t){const r=s.lY.systemTimeZoneCanonicalName;return"system"===e&&(e=r),{version:$e,engineVersion:i.rE,timeZone:e,userTimeZone:r,spatialReference:t instanceof M.A?t.toJSON():t,application:n.A.applicationName??"",engine:"web",locale:(0,T.JK)()}}const $e="1.35",Ke=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:_,ReturnResult:P,absRound:ne,arcadeVersion:$e,autoCastArrayOfPointsToMultiPoint:Pe,autoCastArrayOfPointsToPolygon:we,autoCastArrayOfPointsToPolyline:Ne,autoCastFeatureToGeometry:Te,binaryOperator:xe,breakResult:D,castAsJson:Ge,castAsJsonAsync:Je,castRecordToText:ce,continueResult:x,defaultExecutingContext:Le,defaultTimeZone:je,defaultUndefined:R,equalityTest:ue,featureDomainCodeLookup:Be,featureDomainValueLookup:ke,featureFullDomain:Ee,featureSchema:Qe,featureSubtypes:Ue,fixNullGeometry:Ce,fixSpatialReference:ve,formatDate:se,formatNumber:ie,getDomain:Me,getDomainCode:be,getDomainValue:Se,getType:E,greaterThanLessThan:ae,isArray:O.cy,isBoolean:O.Lm,isDate:Y,isDateOnly:W,isDictionary:$,isDictionaryLike:K,isEmpty:re,isFeature:B,isFeatureSet:L,isFeatureSetCollection:V,isFunctionParameter:I,isGeometry:k,isGraphic:N.D,isImmutableArray:H,isInteger:O.Fq,isJsDate:O.$P,isKnowledgeGraph:z,isModule:J,isNumber:O.Et,isObject:ee,isPixel:Q,isSimpleType:q,isString:O.Kg,isSubtypeGrouplayer:function(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass},isSubtypeSublayer:Re,isTime:X,isVoid:U,isVoxel:j,multiReplace:G,parseGeometryFromJson:function(e,t){const r=JSON.parse(e);return r&&!r.spatialReference&&(r.spatialReference=t),(0,A.rS)(r)},pcCheck:te,stableStringify:Ae,standardiseDateFormat:oe,tick:De,toBoolean:ge,toDate:me,toNumber:fe,toNumberArray:de,toString:pe,toStringArray:_e,toStringExplicit:he,voidOperation:F},Symbol.toStringTag,{value:"Module"}))},92474(e,t,r){r.d(t,{WV:()=>d,Zm:()=>y,x_:()=>h});var n=r(5482),i=r(49186),s=r(97768),o=r(61893),l=r(17676),a=r(67076),u=r(10107),c=r(64108);const p="loaded",d=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(e=>{const t=this.load.bind(this);this.load=r=>{const n=new Promise((e,t)=>{const n=(0,l.NY)(r,t);this.destroyed&&t(new i.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(e,t).finally(()=>{n&&n.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const e=this._loadController=new AbortController;t({signal:e.signal})}return e(),n}})),this.when(()=>{this._set("loadStatus",p),this._loadController=null},e=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",e),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,s.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===p}get loadWarnings(){return this._get("loadWarnings")}load(e){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new i.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,n.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,n.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,n.Cg)([(0,u.MZ)({type:[a.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,n.Cg)([(0,c.$)("esri.core.Loadable")],r),r},h=d(o.Z);function y(e){return!(!e||!e.load)}},61893(e,t,r){r.d(t,{Z:()=>c,g:()=>u});var n=r(5482),i=r(69622),s=r(36563),o=r(17676),l=r(64108);class a{constructor(){this._resolver=Promise.withResolvers(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,o.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const e=Promise.withResolvers(),t=[...this._resolvingPromises,e.promise],r=this._allPromise=Promise.all(t);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},e=>{this.isFulfilled()||this._allPromise!==r||(0,o.zf)(e)||this._resolver.reject(e)}),e.resolve()}}const u=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this._promiseProps=new a,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return this._promiseProps.promise.then(()=>this).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}addResolvingTask(e){e&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,s.rE)(e)),this._promiseProps.addResolvingPromise(e.promise))}};return r=(0,n.Cg)([(0,l.$)("esri.core.Promise")],r),r},c=u(i.A)},14607(e,t,r){r.d(t,{B:()=>u,GP:()=>l,qg:()=>c});var n=r(799),i=r(73444);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,i.JK)()){let t=(e=e.toLowerCase())in s;if(!t){const r=e.split("-");r.length>1&&r[0]in s&&(e=r[0],t=!0),t||(e="en")}const[r,n,o="#,##0.###"]=s[e];return{decimal:r,group:n,pattern:o}}function l(e,t){const r=o((t={...t}).locale);t.customs=r;const n=t.pattern||r.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,r){const n=(r=r||{}).customs.group,i=r.customs.decimal,s=t.split(";"),o=s[0];if((t=s[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const l=a,u=o.match(l);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===r.fractional&&(r.places=0),t.replace(l,function(e,t,r){!0===(r=r||{}).places&&(r.places=0),r.places===1/0&&(r.places=6);const n=t.split("."),i="string"==typeof r.places&&r.places.indexOf(",");let s=r.places;i?s=r.places.slice(i+1):+s>=0||(s=(n[1]||[]).length),r.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),l=o[1]||"";if(n[1]||r.places){i&&(r.places=r.places.slice(0,Math.max(0,i)));const e=void 0!==r.places?r.places:n[1]&&n[1].lastIndexOf("0")+1;+e>l.length&&(o[1]=l.padEnd(Number(e),"0")),+s<l.length&&(o[1]=l.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();const a=n[0].replace(",","");let u=a.indexOf("0");-1!==u&&(u=a.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),a.includes("#")||(o[0]=o[0].slice(-u)));let c,p,d=n[0].lastIndexOf(",");if(-1!==d){c=n[0].length-d-1;const e=n[0].slice(0,d);d=e.lastIndexOf(","),-1!==d&&(p=e.length-d-1)}const h=[];for(let e=o[0];e;){const t=e.length-c;h.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",p&&(c=p,p=void 0)}return o[0]=h.reverse().join(r.group||","),o.join(r.decimal||".")}(e,u[0],{decimal:i,group:n,places:r.places,round:r.round}))}(e,n,t)}const a=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),r=e.pattern||t.pattern,i=t.group,s=t.decimal;let l=1;if(r.includes("%"))l/=100;else if(r.includes("‰"))l/=1e3;else if(r.includes("¤"))throw new Error("currency notation not supported");const u=r.split(";");1===u.length&&u.push("-"+u[0]);const c=d(u,t=>(t="(?:"+(0,n.Cj)(t,".")+")").replace(a,t=>{const r={signed:!1,separator:e.strict?i:[i,""],fractional:e.fractional,decimal:s,exponent:!1},n=t.split(".");let o=e.places;1===n.length&&1!==l&&(n[1]="###"),1===n.length||0===o?r.fractional=!1:(void 0===o&&(o=e.pattern?n[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(r.fractional=!0),!e.places&&+o<n[1].length&&(o+=","+n[1].length),r.places=o);const a=n[0].split(",");return a.length>1&&(r.groupSize=a.pop().length,a.length>1&&(r.groupSize2=a.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=p(e),r=d(e.fractional,t=>{let r="";return t&&0!==e.places&&(r="\\"+e.decimal,e.places===1/0?r="(?:"+r+"\\d+)?":r+="\\d{"+e.places+"}"),r},!0);let n=t+r;return r&&(n="(?:(?:"+n+")|(?:"+r+"))"),n+d(e.exponent,t=>t?"([eE]"+p({signed:e.eSigned})+")":"")}(r)+")"}),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:s,factor:l}}function c(e,t){const r=u(t),n=new RegExp("^"+r.regexp+"$").exec(e);if(!n)return NaN;let i=n[1];if(!n[1]){if(!n[2])return NaN;i=n[2],r.factor*=-1}return i=i.replaceAll(new RegExp("["+r.group+"\\s\\xa0]","g"),"").replace(r.decimal,"."),Number(i)*r.factor}function p(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",d(e.signed,e=>e?"[-+]":"",!0)+d(e.separator,t=>{if(!t)return"(?:\\d+)";" "===(t=(0,n.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const r=e.groupSize,i=e.groupSize2;if(i){const e="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*["+t+"]\\d{"+r+"})";return r-i>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(r-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(r-1)+"}(?:["+t+"]\\d{"+r+"})*)"},!0)}const d=(e,t,r)=>{if(!Array.isArray(e))return t(e);const n=[];for(let r=0;r<e.length;r++)n.push(t(e[r]));return h(n.join("|"),Boolean(r))},h=(e,t)=>"("+(t?"?:":"")+e+")"},60408(e,t,r){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function l(e){return void 0!==e.rings||void 0!==e.curveRings}function a(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function p(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>l,Pv:()=>c,Rg:()=>o,U9:()=>i,W0:()=>p,ZC:()=>n,fT:()=>s,uW:()=>a})},65864(e,t,r){r.d(t,{rS:()=>c,xD:()=>d});var n=r(5443),i=r(91075),s=r(48526),o=r(86738),l=r(39829),a=r(82799),u=r(60408);function c(e){return null==e?null:e instanceof i.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?a.A.fromJSON(e):(0,u.Bi)(e)?l.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?n.A.fromJSON(e):null}const p={esriGeometryPoint:o.A,esriGeometryPolyline:a.A,esriGeometryPolygon:l.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:l.A};function d(e){return e&&p[e]||null}},39357(e,t,r){r.d(t,{A:()=>l});var n,i=r(5482),s=r(25482),o=r(91429);let l=n=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=n=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],l)},53177(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),s=r(4718),o=r(91429),l=r(39357),a=r(76357),u=r(93223);let c=class extends a.A{static{n=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new n({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[l.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=n=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},76357(e,t,r){r.d(t,{A:()=>u});var n=r(5482),i=r(66552),s=r(25482),o=r(91429),l=r(93223);const a=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n.Cg)([(0,l.e)(a),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,n.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},20437(e,t,r){r.d(t,{A:()=>y});var n,i=r(5482),s=r(66552),o=r(25482),l=r(91429),a=r(56507),u=r(8631),c=r(98453),p=r(36005),d=r(93223);const h=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let y=class extends o.o{static{n=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?h.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"alias",void 0),(0,i.Cg)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],y.prototype,"defaultValue",void 0),(0,i.Cg)([(0,l.MZ)()],y.prototype,"description",void 0),(0,i.Cg)([(0,p.w)("description")],y.prototype,"readDescription",null),(0,i.Cg)([(0,l.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],y.prototype,"domain",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"editable",void 0),(0,i.Cg)([(0,l.MZ)({type:a.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],y.prototype,"length",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"nullable",void 0),(0,i.Cg)([(0,d.e)(c.m)],y.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)()],y.prototype,"valueType",void 0),(0,i.Cg)([(0,p.w)("valueType",["description"])],y.prototype,"readValueType",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{read:!1}})],y.prototype,"visible",void 0),y=n=(0,i.Cg)([(0,l.$K)("esri.layers.support.Field")],y)},41628(e,t,r){r.d(t,{A:()=>a});var n,i=r(5482),s=r(91429),o=r(76357),l=r(93223);let a=class extends o.A{static{n=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new n({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],a.prototype,"maxValue",void 0),(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],a.prototype,"minValue",void 0),(0,i.Cg)([(0,l.e)({range:"range"})],a.prototype,"type",void 0),a=n=(0,i.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],a)},8631(e,t,r){r.d(t,{r:()=>d,g:()=>p});var n,i=r(53177),s=r(76357),o=r(5482),l=r(91429),a=r(93223);let u=class extends s.A{static{n=this}constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,o.Cg)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=n=(0,o.Cg)([(0,l.$K)("esri.layers.support.InheritedDomain")],u);var c=r(41628);const p={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":i.A,inherited:u}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,r){r.d(t,{m:()=>n});const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},20655(e,t,r){r.d(t,{A:()=>N});var n=r(5482),i=r(92602),s=r(70333),o=r(11254),l=r(49186),a=r(44208),u=r(25482),c=r(92474),p=r(97768),d=r(17676),h=r(91429),y=r(56507),f=r(5443),m=r(73444);let g;var v=r(96360),C=r(16405),S=r(69622);let b=class extends S.A{constructor(e){super(e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,n.Cg)([(0,h.MZ)()],b.prototype,"nextQueryParams",void 0),(0,n.Cg)([(0,h.MZ)()],b.prototype,"queryParams",void 0),(0,n.Cg)([(0,h.MZ)()],b.prototype,"results",void 0),(0,n.Cg)([(0,h.MZ)()],b.prototype,"total",void 0),b=(0,n.Cg)([(0,h.$K)("esri.portal.PortalQueryResult")],b);var M,Z=r(41318),A=r(926),T=r(36005);let O;const w={PortalGroup:()=>Promise.resolve({default:v.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:Z.A})};let N=class extends((0,u.T)(c.x_)){static{M=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(e){super(e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.g3DTilesGalleryGroupQuery=null,this.g3dTilesEnabled=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=i.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}destroy(){P.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(const t of e)i.A.request.trustedServers.includes(t)||i.A.request.trustedServers.push(t);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){const e=this.user?.orgId,t=!e||this.canSearchPublic;return this.id&&!t?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,A.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let e=this.url;if(e){const t=e.indexOf("/sharing");e=t>0?e.slice(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){const e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e?e.toLowerCase():e}readUser(e){let t=null;return e&&(t=Z.A.fromJSON(e),t.portal=this),t}load(e){const t=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then(({default:t})=>{(0,d.Te)(e),O=t}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,e)).then(e=>{if(!this.hasAPIKey&&s.id){const e=s.id;this.credential=e.findCredential(this.restUrl),this.credential||this.authMode!==M.AUTH_MODE_AUTO&&this.authMode!==M.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=e.on("credential-create",function(e){const t=s.id;return()=>{const r=e.deref();r&&t.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),P.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=e,this.read(e)});return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();const e=this._getHelperService("defaultElevationLayers"),t=(await Promise.all([r.e(3508),r.e(9953),r.e(812),r.e(9186),r.e(2369),r.e(7716)]).then(r.bind(r,62369))).default;return e?e.map(e=>new t({id:e.id,url:e.url})):[]}async fetchBasemaps(e,t){const r=await this._fetchBasemaps(e,t);if(!0===t?.include3d&&!1!==this.use3dBasemaps){if(this.g3dTilesEnabled&&this.g3DTilesGalleryGroupQuery&&(0,a.A)("enable-feature:basemap-groundlayers")){const e=await this._fetchBasemaps3D(this.g3DTilesGalleryGroupQuery,t);r.unshift(...e)}const n=await this._fetchBasemaps3D(e,t);r.unshift(...n)}return r}async fetchDefault3DBasemap(e){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const t=new C.A;t.query=this.default3DBasemapQuery,t.disableExtraQuery=!0;const r=(await this.queryItems(t,e)).results.find(e=>"Web Scene"===e.type);return r?new O({portalItem:r}):null}fetchCategorySchema(e){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",e).then(e=>e.categorySchema):(0,d.G4)(e)?Promise.reject((0,d.NK)()):Promise.resolve([])}async fetchClassificationSchema(e){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",e).then(e=>e.classificationSchema):null}fetchFeaturedGroups(e){const t=this.featuredGroups,r=new C.A({num:100,sortField:"title"});if(t?.length){const n=[];for(const e of t)n.push(`(title:"${e.title}" AND owner:${e.owner})`);return r.query=n.join(" OR "),this.queryGroups(r,e).then(e=>e.results)}return(0,d.G4)(e)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(e){const t=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){const t=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return g&&!g.destroyed||(g=new M),g}queryGroups(e,t){return this.queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this.queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||(e.sortField="username"),this.queryPortal("/community/users",e,"PortalUser",t)}fetchSelf(e=this.authMode,t=!1,r){const n=this.restUrl+"/portals/self",i={authMode:e,query:{culture:(0,m.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===i.authMode&&(i.authMode="no-prompt"),t&&(i.query.default=!0),this.request(n,i)}queryPortal(e,t,r,n){const i=(0,y.dp)(C.A,t),s=t=>this.request(this.restUrl+e,{...i.toRequestOptions(this),...n}).then(e=>{const r=i.clone();return r.start=e.nextStart,new b({nextQueryParams:r,queryParams:i,total:e.total,results:M._resultsToTypedArray(t,{portal:this},e,n)})}).then(e=>Promise.all(e.results.map(t=>"function"==typeof t.when?t.when():e)).then(()=>e,t=>((0,d.QP)(t),e)));return r&&w[r]?w[r]().then(({default:e})=>((0,d.Te)(n),s(e))):s()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new l.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===M.AUTH_MODE_ANONYMOUS||this.authMode===M.AUTH_MODE_NO_PROMPT&&!s.id)return Promise.reject(new l.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const e=e=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(e||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=e,this.fetchSelf("immediate"))):this.user&&this.credential===e?null:(this.credential=e,this.fetchSelf("immediate"))).then(e=>{e&&(this.sourceJSON=e,this.read(e))});return s.id?s.id.getCredential(this.restUrl,{prompt:this.authMode!==M.AUTH_MODE_NO_PROMPT}).then(t=>e(t)):e(this.credential)}normalizeUrl(e){const t=this.credential?.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}requestToTypedArray(e,t,r){return this.request(e,t).then(e=>{const t=M._resultsToTypedArray(r,{portal:this},e);return Promise.all(t.map(t=>"function"==typeof t.when?t.when():e)).then(()=>t,()=>t)})}request(e,t={}){const r={f:"json",...t.query},{authMode:n=(this.authMode===M.AUTH_MODE_ANONYMOUS||this.authMode===M.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:i=null,cacheBust:s=!1,method:l="auto",responseType:a="json",signal:u}=t,c={authMode:n,body:i,cacheBust:s,method:l,query:r,responseType:a,timeout:0,signal:u};return t.withCredentials&&(c.withCredentials=!0),(0,o.A)(this._normalizeSSL(e),c).then(e=>e.data)}toJSON(){throw new l.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new M({sourceJSON:e})}_getHelperService(e){const t=this.helperServices?.[e];if(!t)throw new l.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){const r=new C.A;r.query=e||((0,A.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const n=await this.queryGroups(r,t);if(!n.total)return[];const i=n.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=i.sortField||"name",r.sortOrder=i.sortOrder||"desc";const s=await i.queryItems(r,t);return s.total?s.results.filter(e=>"Web Map"===e.type).map(e=>new O({portalItem:e})):[]}async _fetchBasemaps3D(e,t){const r=e||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,A.Dd)())return[];const n=new C.A({query:r,disableExtraQuery:!0}),i=await this.queryGroups(n,t);if(!i.total)return[];const s=i.results[0];n.num=100,n.query='type:"Web Scene"',n.sortField=s.sortField||"name",n.sortOrder=s.sortOrder||"desc";const o=await s.queryItems(n,t);return o.total?o.results.filter(e=>"Web Scene"===e.type).map(e=>new O({portalItem:e})):[]}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){const t=O.fromJSON(e);return t.portalItem={portal:this},t}return null}static _resultsToTypedArray(e,t,r,n){let i;if(r){const s=null!=n?n.signal:null;i=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(i=i.map(r=>{const n=Object.assign(e?e.fromJSON(r):r,t);return"function"==typeof n.load&&n.load(s),n}))}else i=[];return i}};(0,n.Cg)([(0,h.MZ)()],N.prototype,"access",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"allSSL",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"authMode",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"authorizedCrossOriginDomains",void 0),(0,n.Cg)([(0,T.w)("authorizedCrossOriginDomains")],N.prototype,"readAuthorizedCrossOriginDomains",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"basemapGalleryGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],N.prototype,"basemapGalleryGroupQuery3D",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"g3DTilesGalleryGroupQuery"}})],N.prototype,"g3DTilesGalleryGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"g3dTilesEnabled"}})],N.prototype,"g3dTilesEnabled",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"bingKey",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canListApps",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canListData",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canListPreProvisionedItems",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canProvisionDirectPurchase",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canSearchPublic",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canShareBingPublic",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canSharePublic",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canSignInArcGIS",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canSignInIDP",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"colorSetsGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"commentsEnabled",void 0),(0,n.Cg)([(0,h.MZ)({type:Date})],N.prototype,"created",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"credential",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"culture",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"currentVersion",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"customBaseUrl",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"default3DBasemapQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"defaultBasemap",void 0),(0,n.Cg)([(0,T.w)("defaultBasemap")],N.prototype,"readDefaultBasemap",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"defaultDevBasemap",void 0),(0,n.Cg)([(0,T.w)("defaultDevBasemap")],N.prototype,"readDefaultDevBasemap",null),(0,n.Cg)([(0,h.MZ)({type:f.A})],N.prototype,"defaultExtent",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"defaultVectorBasemap",void 0),(0,n.Cg)([(0,T.w)("defaultVectorBasemap")],N.prototype,"readDefaultVectorBasemap",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"description",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"devBasemapGalleryGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"eueiEnabled",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"extraQuery",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"featuredGroups",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"featuredItemsGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"galleryTemplatesGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"layoutGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"livingAtlasGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"hasAPIKey",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"hasCategorySchema",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"hasClassificationSchema",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"helpBase",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"helperServices",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"helpMap",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"homePageFeaturedContent",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"homePageFeaturedContentCount",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"httpPort",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"httpsPort",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"id",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"ipCntryCode",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"isOrganization",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"isPortal",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"isReadOnly",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"itemPageUrl",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"layerTemplatesGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"maxTokenExpirationMinutes",void 0),(0,n.Cg)([(0,h.MZ)({type:Date})],N.prototype,"modified",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"name",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"portalHostname",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"portalMode",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"portalProperties",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"region",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"recycleBinEnabled",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"restUrl",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"rotatorPanels",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"showHomePageDescription",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"staticImagesUrl",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],N.prototype,"stylesGroupQuery2d",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],N.prototype,"stylesGroupQuery3d",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"supportsHostedServices",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"symbolSetsGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"templatesGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"thumbnail",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"thumbnailUrl",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"units",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"url",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"urlKey",void 0),(0,n.Cg)([(0,T.w)("urlKey")],N.prototype,"readUrlKey",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"user",void 0),(0,n.Cg)([(0,T.w)("user")],N.prototype,"readUser",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"use3dBasemaps",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"useDefault3dBasemap",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"useStandardizedQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"useVectorBasemaps",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"vectorBasemapGalleryGroupQuery",void 0),N=M=(0,n.Cg)([(0,h.$K)("esri.portal.Portal")],N);const P=new FinalizationRegistry(e=>{e.remove()})},96360(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),s=r(49186),o=r(25482),l=r(91429),a=r(56507),u=r(16405);let c=n=class extends o.o{constructor(e){super(e),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t&&this.portal?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`):null}get url(){const e=this.portal?.restUrl;return e?e+"/community/groups/"+this.id:null}fetchCategorySchema(e){return this.portal.request(this.url+"/categorySchema",e).then(t=>{const r=t.categorySchema||[];return r.some(e=>"contentCategorySetsGroupQuery.LivingAtlas"===e.source)?this._fetchCategorySchemaSet("LivingAtlas",e):r})}fetchMembers(e){return this.portal.request(this.url+"/users",e)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}toJSON(){throw new s.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new n({sourceJSON:e});return t.read(e),t}queryItems(e,t){let r=(0,a.dp)(u.A,e);const n=this.portal;return parseFloat(n.currentVersion)>5?(r=r||new u.A,n.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",t)):(r=r?r.clone():new u.A,r.query="group:"+this.id+(r.query?" "+r.query:""),n.queryItems(r,t))}_fetchCategorySchemaSet(e,t){const r=this.portal;return r.fetchSelf(r.authMode,!0,t).then(e=>{const n=e.contentCategorySetsGroupQuery;if(n){const e=new u.A({disableExtraQuery:!0,num:1,query:n});return r.queryGroups(e,t)}throw new s.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const n=r.results[0],i=new u.A({num:1,query:`typekeywords:"${e}"`});return n.queryItems(i,t)}throw new s.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(e=>e.total?e.results[0].fetchData("json",t).then(e=>{const t=e?.categorySchema;return t?.length?t:[]}):[])}};(0,i.Cg)([(0,l.MZ)()],c.prototype,"access",void 0),(0,i.Cg)([(0,l.MZ)({type:Date})],c.prototype,"created",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"isInvitationOnly",void 0),(0,i.Cg)([(0,l.MZ)({type:Date})],c.prototype,"modified",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"owner",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"portal",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"snippet",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"sortField",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"sortOrder",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"tags",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"thumbnail",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],c.prototype,"thumbnailUrl",null),(0,i.Cg)([(0,l.MZ)()],c.prototype,"title",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],c.prototype,"url",null),c=n=(0,i.Cg)([(0,l.$K)("esri.portal.PortalGroup")],c)},16405(e,t,r){r.d(t,{A:()=>h});var n,i=r(5482),s=r(69622),o=r(66552),l=r(4718),a=r(91429),u=r(5443),c=r(16930),p=r(28735);const d=new o.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let h=n=class extends s.A{constructor(e){super(e),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(e){"asc"!==e&&"desc"!==e||this._set("sortOrder",e)}clone(){return new n({categories:this.categories?(0,l.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(e,t){let r=[];this.categories&&(r=this.categories.map(e=>Array.isArray(e)?JSON.stringify(e):e));let n="";if(this.extent){const e=(0,p.Cv)(this.extent,c.A.WGS84);null!=e&&(n=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`)}let i=this.query;!this.disableExtraQuery&&e.extraQuery&&(i="("+i+")"+e.extraQuery);const s={categories:r,bbox:n,q:i,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(s.sortField=this.sortField.split(",").map(e=>d.toJSON(e.trim())).join(","),s.sortOrder=this.sortOrder),{query:{...t,...s}}}};(0,i.Cg)([(0,a.MZ)()],h.prototype,"categories",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"disableExtraQuery",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A})],h.prototype,"extent",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"filter",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"num",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"query",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"sortField",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"sortOrder",null),(0,i.Cg)([(0,a.MZ)()],h.prototype,"start",void 0),h=n=(0,i.Cg)([(0,a.$K)("esri.portal.PortalQueryParams")],h)},41318(e,t,r){r.d(t,{A:()=>c});var n=r(5482),i=r(49186),s=r(25482),o=r(91429);let l=class extends s.o{constructor(e){super(e),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new i.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,n.Cg)([(0,o.MZ)({type:Date})],l.prototype,"created",void 0),(0,n.Cg)([(0,o.MZ)()],l.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)()],l.prototype,"portal",void 0),(0,n.Cg)([(0,o.MZ)()],l.prototype,"title",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],l.prototype,"url",null),(0,n.Cg)([(0,o.MZ)()],l.prototype,"username",void 0),l=(0,n.Cg)([(0,o.$K)("esri.portal.PortalFolder")],l);var a,u=r(96360);let c=a=class extends s.o{constructor(e){super(e),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t?this.portal.normalizeUrl(`${e}/info/${t}?f=json`):null}get userContentUrl(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.id}`:null}get url(){const e=this.portal?.restUrl;return e?`${e}/community/users/${this.id}`:null}addItem(e){const t=e&&e.item,r=e?.data,n=e?.folder,i={method:"post"};t&&(i.query=t.createPostQuery(),null!=r&&("string"==typeof r?i.query.text=r:"object"==typeof r&&(i.query.text=JSON.stringify(r))));let s=this.userContentUrl;return n&&(s+="/"+("string"==typeof n?n:n.id)),this.portal.request(s+"/addItem",i).then(e=>(t.id=e.id,t.portal=this.portal,t.loaded?t.reload():t.load()))}async deleteItem(e,t=!1){let r=this.userContentUrl;e.ownerFolder&&(r+="/"+e.ownerFolder);const n=t?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${e.id}/delete`,{method:"post",query:n}),e.id=null,e.portal=null}async deleteItems(e,t=!1){e=e.slice();const r=this.userContentUrl+"/deleteItems",n=[],s=e.map(e=>e.id);if(s.length){const o={method:"post",query:{items:s.join(","),permanentDelete:t}},l=await this.portal.request(r,o);for(const t of l.results){const r=e.find(e=>t.itemId===e.id),s=t.success;let o=null;s?(r.id=null,r.portal=null):t.error&&(o=new i.A("portal:delete-item-failed",t.error.message,t.error)),n.push({item:r,success:s,error:o})}}return n}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(e=>{let t;return t=e&&e.folders?e.folders.map(e=>{const t=l.fromJSON(e);return t.portal=this.portal,t}):[],t})}fetchGroups(){return this.portal.request(this.url??"").then(e=>{let t;return t=e&&e.groups?e.groups.map(e=>{const t=u.A.fromJSON(e);return t.portal=this.portal,t}):[],t})}async fetchItems(e){e??={};let t=this.userContentUrl??"";e.folder&&(t+="/"+e.folder.id);const{default:n}=await r.e(812).then(r.bind(r,80812)),i={folders:!1,inRecycleBin:!!e.inRecycleBin||null,foldersContent:!(e.folder||!e.includeSubfolderItems)||null,num:e.num||10,start:e.start||1,sortField:e.sortField||"created",sortOrder:e.sortOrder||"asc"},s=await this.portal.request(t,{query:i});let o;return s?.items?(o=s.items.map(e=>{const t=n.fromJSON(e);return t.portal=this.portal,t}),await Promise.all(o.map(e=>e.load())),{items:o,nextStart:s.nextStart,total:s.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(e=>e.tags)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}queryFavorites(e){return this.favGroupId?(this._favGroup||(this._favGroup=new u.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(e)):Promise.reject(new i.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(e,t){const r=this.userContentUrl,n=t?{folderID:"string"==typeof t?t:t.id}:null;await this.portal.request(r+`/items/${e.id}/restore`,{method:"post",query:n})}toJSON(){throw new i.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new a({sourceJSON:e});return t.read(e),t}};(0,n.Cg)([(0,o.MZ)()],c.prototype,"access",void 0),(0,n.Cg)([(0,o.MZ)({type:Date})],c.prototype,"created",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"culture",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"description",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"email",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"favGroupId",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"fullName",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)({type:Date})],c.prototype,"modified",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"orgId",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"portal",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"preferredView",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"privileges",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"region",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"role",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"roleId",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"thumbnail",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],c.prototype,"thumbnailUrl",null),(0,n.Cg)([(0,o.MZ)()],c.prototype,"units",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],c.prototype,"userContentUrl",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],c.prototype,"url",null),(0,n.Cg)([(0,o.MZ)()],c.prototype,"username",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"userLicenseTypeId",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"userType",void 0),c=a=(0,n.Cg)([(0,o.$K)("esri.portal.PortalUser")],c)},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>p,jV:()=>a,lF:()=>c});var n=r(92602),i=r(70333),s=r(4718),o=r(84952),l=r(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,r){const n={};for(const i in e){if("declaredClass"===i)continue;const s=e[i];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))n[i]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(r?.[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?s:JSON.stringify(s);else n[i]=s}return n}async function p(e,t,s){const o=function(e,t){return e?t&&(0,l.Qc)(e)?t:(0,l.getApiKey)(e)??i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&n.A.request.useIdentity&&await Promise.all([r.e(7632),r.e(318),r.e(148)]).then(r.bind(r,50148));const a=await i.id.getCredential(e,s);return a?.token}},926(e,t,r){r.d(t,{Dd:()=>d,Jn:()=>h,Qc:()=>y,getApiKey:()=>c,getSessionToken:()=>p});var n=r(92602),i=r(11254),s=r(84952);const o=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,l=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),a=new Map;let u=null;function c(e){if(!y(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),r=n.A.apiKeys;if(Array.isArray(r.scopes))for(const e of r.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return r.basemapStyles&&o.test(e)?r.basemapStyles:n.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?n.A.apiKey:null}async function p(e){if(!n.A.sessions?.basemap?.enabled||!o.test(e))return null;const t=c(e);if(!t)return null;u&&await u;const{styleFamily:r="arcgis",autoRefresh:s,duration:l=43200}=n.A.sessions.basemap,p=`${t}:${r}`,d=a.get(p);if(d&&(!s||d.endTime>Date.now()))return d.sessionToken;let h;u=(0,i.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:l,styleFamily:r,token:t}});try{h=(await u).data,h.endTime-=5e3,a.set(p,h)}finally{u=null}return h.sessionToken}function d(){return null!=n.A.apiKey||null!=n.A.apiKeys.basemapStyles}function h(e,t){return t?y(e):null!=c(e)}function y(e){const t=(0,s.$z)(e,!0);return!!t&&!l.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},94128(e,t,r){r.d(t,{D:()=>i,Z:()=>n});const n=Symbol("GraphicInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9186,9397],{69397(e,t,i){i.d(t,{Qf:()=>a,Qh:()=>o,RS:()=>s,Ul:()=>f,i5:()=>u,lM:()=>r,qK:()=>h});var l=i(34275);const s=16;function r(e){if(!e)return 0;let t=h;for(const i in e)e.hasOwnProperty(i)&&(t+=n(e[i],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let i=p;for(let l=0;l<t;l++)i+=n(e[l]);return i}(e);let t=h;for(const i in e)e.hasOwnProperty(i)&&(t+=n(e[i]));return t}function n(e,t=!0){switch(typeof e){case"object":return t?o(e):h;case"string":return function(e){return 32+e.length}(e);case"number":return s;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,l.iu)(t)?t.byteLength+u:Array.isArray(t)?c(t,s):0:0),0)}function c(e,t){return p+e.length*t}const h=32,p=16,u=145,f=64},89186(e,t,i){i.d(t,{f:()=>h});var l=i(5482),s=i(91429),r=i(16930),o=i(87045),n=i(65509),a=i(25943),c=i(36005);const h=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,i){const l=t.capabilities?.includes("Tilemap");let{minLOD:s,maxLOD:r,minScale:c,maxScale:h}=t;if(null==s&&null==r&&(0!==c||0!==h)){const e=e=>Math.round(1e4*e)/1e4;c=e(c||t.tileInfo.lods[0].scale),h=e(h||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const i of t.tileInfo.lods){const t=e(i.scale);s=t>=c?i.level:s,r=t>=h?i.level:r}}if(l)return new a.d({layer:this,minLOD:s,maxLOD:r});if(t.tileInfo){const e=new o.A;return e.read(t.tileInfo,i),new n.A(e,s,r)}return null}};return(0,l.Cg)([(0,s.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,l.Cg)([(0,s.MZ)()],i.prototype,"minScale",void 0),(0,l.Cg)([(0,c.w)("service","minScale")],i.prototype,"readMinScale",null),(0,l.Cg)([(0,s.MZ)()],i.prototype,"maxScale",void 0),(0,l.Cg)([(0,c.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,l.Cg)([(0,s.MZ)({type:r.A})],i.prototype,"spatialReference",void 0),(0,l.Cg)([(0,s.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,l.Cg)([(0,s.MZ)({type:o.A})],i.prototype,"tileInfo",void 0),(0,l.Cg)([(0,s.MZ)()],i.prototype,"tilemapCache",void 0),(0,l.Cg)([(0,c.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,l.Cg)([(0,s.MZ)()],i.prototype,"version",void 0),i=(0,l.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}},91806(e,t,i){i.d(t,{A:()=>a});var l,s=i(5482),r=i(25482),o=i(91429),n=i(56507);let a=class extends r.o{static{l=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 l({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,s.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,s.Cg)([(0,o.MZ)({type:n.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,s.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,s.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,s.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,s.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=l=(0,s.Cg)([(0,o.$K)("esri.layers.support.LOD")],a)},87045(e,t,i){i.d(t,{A:()=>y});var l,s=i(5482),r=i(66552),o=i(25482),n=i(86211),a=i(91429),c=i(56507),h=i(86738),p=i(16930),u=i(21325),f=i(28735),d=i(91806),v=i(72802),m=i(36005),g=i(43937);const w=new r.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 y=class extends o.o{static{l=this}static create(e={}){const{resolutionFactor:t=1,scales:i,size:s=256,spatialReference:r=p.A.WebMercator,numLODs:o=24}=e;if(!(0,u.fn)(r)){const e=[];if(i)for(let t=0;t<i.length;t++){const l=i[t];e.push(new d.A({level:t,scale:l,resolution:l}))}else{let t=5e-4;for(let i=o-1;i>=0;i--)e.unshift(new d.A({level:i,scale:t,resolution:t})),t*=2}return new l({dpi:96,lods:e,origin:new h.A(0,0,r),size:[s,s],spatialReference:r})}const a=(0,u.Vp)(r),c=e.origin?new h.A({x:e.origin.x,y:e.origin.y,spatialReference:r}):new h.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:r}:{x:0,y:0,spatialReference:r}),f=1/(39.37*(0,n.GA)(r)*96),v=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],l=t*f;v.push(new d.A({level:e,scale:t,resolution:l}))}else{let e=(0,u.EA)(r)?512/s*591657527.5917094:256/s*591657527.591555;const i=Math.ceil(o/t);v.push(new d.A({level:0,scale:e,resolution:e*f}));for(let l=1;l<i;l++){const i=e/2**t,s=i*f;v.push(new d.A({level:l,scale:i,resolution:s})),e=i}}return new l({dpi:96,lods:v,origin:c,size:[s,s],spatialReference:r})}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 i=(0,u.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return h.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const l=[],s=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{l.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,s[e.level]=e})),this._set("scales",l),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 i=Math.floor(e),l=i+1;return t[i]/(t[i]/t[l])**(e-i)}scaleToZoom(e){const t=this.scales,i=t.length-1;let l=0;for(;l<i;l++){const i=t[l],s=t[l+1];if(i<=e)return l;if(s===e)return l+1;if(i>e&&s<e)return l+Math.log(i/e)/Math.log(i/s)}return l}tileAt(e,t,i,l){const s=this.lodAt(e);if(!s)return null;let r,o;if("number"==typeof t)r=t,o=i;else if((0,u.aI)(t.spatialReference,this.spatialReference))r=t.x,o=t.y,l=i;else{const e=(0,f.Cv)(t,this.spatialReference);if(null==e)return null;r=e.x,o=e.y,l=i}const n=s.resolution*this.size[0],a=s.resolution*this.size[1];return l??=new v.U(0,0,0),l.level=e,l.row=Math.floor((this.origin.y-o)/a+.001),l.col=Math.floor((r-this.origin.x)/n+.001),this.updateTileInfo(l),l}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;const l=e.level-i.level,s=i.resolution*this.size[0]/2**l,r=i.resolution*this.size[1]/2**l;return e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*r,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+r,!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 i=this.lodAt(t.level);if(null==i)return null;const{resolution:l}=i,s=l*this.size[0],r=l*this.size[1];return e[0]=this.origin.x+t.col*s,e[1]=this.origin.y-(t.row+1)*r,e[2]=e[0]+s,e[3]=e[1]+r,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return l.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 i=[],s=this.lods.length-t;for(let e=0;e<s;e++){const l=e+t,{scale:s,resolution:r}=l>=0?this.lods[l]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new d.A({level:e,scale:s,resolution:r}))}return new l({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const l=e[i];this._upsampleLevels[l.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/l.resolution:0},t=l}}};(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"dpi",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{read:w.read,write:w.write,origins:{"web-scene":{read:!1,write:!1}}}})],y.prototype,"format",void 0),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"isWrappable",null),(0,s.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],y.prototype,"origin",void 0),(0,s.Cg)([(0,m.w)("origin")],y.prototype,"readOrigin",null),(0,s.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],y.prototype,"lods",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"scales",void 0),(0,s.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],y.prototype,"size",void 0),(0,s.Cg)([(0,m.w)("size",["rows","cols"])],y.prototype,"readSize",null),(0,s.Cg)([(0,g.K)("size",{cols:{type:c.jz},rows:{type:c.jz}})],y.prototype,"writeSize",null),(0,s.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],y.prototype,"spatialReference",void 0),y=l=(0,s.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],y)},65509(e,t,i){i.d(t,{A:()=>r});var l=i(49186),s=i(74887);class r{constructor(e,t=0,i=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=i,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(i)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,i){const l=this.tileInfo?.lodAt(e);return!l||e<this.minLOD||e>this.maxLOD?"unavailable":l.cols&&l.rows?i>=l.cols[0]&&i<=l.cols[1]&&t>=l.rows[0]&&t<=l.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,i,r){await(0,s.NO)(r);const o=this.getAvailability(e,t,i);if("unavailable"===o)throw new l.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i});return o}async fetchAvailabilityUpsample(e,t,i,l,r){await(0,s.NO)(r),l.level=e,l.row=t,l.col=i;const o=this.tileInfo;return o.updateTileInfo(l),this.fetchAvailability(e,t,i,r).catch(e=>{if((0,s.zf)(e))throw e;if(o.upsampleTile(l))return this.fetchAvailabilityUpsample(l.level,l.row,l.col,l,r);throw e})}}},72802(e,t,i){i.d(t,{U:()=>s});var l=i(19419);class s{constructor(e,t,i,s=(0,l.vt)()){this._level=e,this._row=t,this._col=i,this.extent=s}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 s(e.level,e.row,e.col,e.extent)}}},25943(e,t,i){i.d(t,{d:()=>_});var l,s=i(5482),r=i(11254),o=i(69622),n=i(49186),a=i(36563),c=(i(44208),i(66344)),h=i(15142),p=i(74887),u=i(36708),f=i(76030),d=i(84952),v=i(91429),m=i(72802),g=i(4718),w=i(69397),y=i(34275);class b{constructor(e){!function(e){if(!e?.location)throw new n.A("tilemap:missing-location","Location missing from tilemap response");if(!1===e.valid)throw new n.A("tilemap:invalid","Tilemap response was marked as invalid");if(!e.data)throw new n.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(e.data))throw new n.A("tilemap:data-mismatch","Data must be an array of numbers");if(e.data.length!==e.location.width*e.location.height)throw new n.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(e);const{location:t,data:i}=e;this.location=Object.freeze((0,g.o8)(t));const l=this.location.width,s=this.location.height;let r=!0,o=!0;const a=function(e,t=!1){return e<=y.y9?t?new Array(e).fill(0):new Array(e):new Uint32Array(e)}(Math.ceil(l*s/32));let c=0;for(let e=0;e<i.length;e++){const t=e%32;i[e]?(o=!1,a[c]|=1<<t):r=!1,31===t&&++c}o?(this._availability="unavailable",this.byteSize=40):r?(this._availability="available",this.byteSize=40):(this._availability=a,this.byteSize=40+(0,w.Qf)(a))}getAvailability(e,t){if("unavailable"===this._availability||"available"===this._availability)return this._availability;const i=(e-this.location.top)*this.location.width+(t-this.location.left),l=i%32,s=i>>5,r=this._availability;return s<0||s>r.length?"unknown":r[s]&1<<l?"available":"unavailable"}static fromDefinition(e,t){const i=e.service.request||r.A,{row:l,col:s,width:o,height:a}=e,c={query:{f:"json"}};return t=t?{...c,...t}:c,i(function(e){let t;if(e.service.tileServers?.length){const i=e.service.tileServers;t=`${i&&i.length?i[e.row%i.length]:e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}else t=`${e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`;const i=e.service.query;return i&&(t=`${t}?${i}`),t}(e),t).then(e=>e.data).catch(e=>{if(422===e?.details?.httpStatus)return{location:{top:l,left:s,width:o,height:a},valid:!0,data:new Array(o*a).fill(0)};throw e}).then(e=>{if(e.location&&(e.location.top!==l||e.location.left!==s||e.location.width!==o||e.location.height!==a))throw new n.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:e,definition:{top:l,left:s,width:o,height:a}});return b.fromJSON(e)})}static fromJSON(e){return Object.freeze(new b(e))}}function A(e){return`${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}function C(e,t,i){return new n.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i})}let _=class extends o.A{static{l=this}constructor(e){super(e),this._pendingTilemapRequests={},this.request=r.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new c.q(2097152),this.addHandles((0,u.wB)(()=>{const{layer:e}=this;return[e?.parsedUrl,e?.tileServers,e?.apiKey,e?.customParameters]},()=>this._initializeTilemapDefinition(),u.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(e,t,i){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return"unavailable";const l=this._tilemapFromCache(e,t,i,this._tmpTilemapDefinition);return l?l.getAvailability(t,i):"unknown"}fetchAvailability(e,t,i,l){return!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD?Promise.reject(C(e,t,i)):this._fetchTilemap(e,t,i,l).catch(e=>e).then(l=>{if(l instanceof b){const s=l.getAvailability(t,i);if("unavailable"===s)throw C(e,t,i);return s}if((0,p.zf)(l))throw l;return"unknown"})}fetchAvailabilityUpsample(e,t,i,l,s){l.level=e,l.row=t,l.col=i;const r=this.layer.tileInfo;r.updateTileInfo(l);const o=this.fetchAvailability(e,t,i,s).catch(e=>{if((0,p.zf)(e))throw e;if(r.upsampleTile(l))return this.fetchAvailabilityUpsample(l.level,l.row,l.col,l,s);throw e});return this._fetchAvailabilityUpsamplePrefetch(e,t,i,s,o),o}async _fetchAvailabilityUpsamplePrefetch(e,t,i,s,r){if(!this._prefetchingEnabled)return;const o=`prefetch-${e}-${t}-${i}`;if(this.hasHandles(o))return;const n=new AbortController;r.then(()=>n.abort(),()=>n.abort());let c=!1;const h=(0,a.hA)(()=>{c||(c=!0,n.abort())});if(this.addHandles(h,o),await(0,f.md)(10,n.signal).catch(()=>{}),c||(c=!0,this.removeHandles(o)),(0,p.G4)(n))return;const u=new m.U(e,t,i),d={...s,signal:n.signal},v=this.layer.tileInfo;for(let e=0;l._prefetches.length<l._maxPrefetch&&v.upsampleTile(u);++e){const e=this.fetchAvailability(u.level,u.row,u.col,d);l._prefetches.push(e);const t=()=>{l._prefetches.removeUnordered(e)};e.then(t,t)}}static{this._maxPrefetch=4}static{this._prefetches=new h.A({initialSize:l._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(e,t,i,l){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return Promise.reject(new n.A("tilemap-cache:level-unavailable",`Level ${e} is unavailable in the service`));const s=this._tmpTilemapDefinition,r=this._tilemapFromCache(e,t,i,s);if(r)return Promise.resolve(r);const o=l?.signal;return l={...l,signal:null},new Promise((e,t)=>{(0,p.u7)(o,()=>t((0,p.NK)()));const i=A(s);let r=this._pendingTilemapRequests[i];if(!r){r=b.fromDefinition(s,l).then(e=>(this._tilemapCache.put(i,e,e.byteSize),e));const e=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=r,r.then(e,e)}r.then(e,t)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;const{parsedUrl:e,apiKey:t,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:e.path,query:(0,d.x0)({...e.query,...i,token:t??e.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(e,t,i,l){l.level=e,l.row=t-t%this.size,l.col=i-i%this.size;const s=A(l);return this._tilemapCache.get(s)}get test(){}};(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"layer",void 0),(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"minLOD",void 0),(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"maxLOD",void 0),(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"request",void 0),(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"size",void 0),_=l=(0,s.Cg)([(0,v.$K)("esri.layers.support.TilemapCache")],_)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9186,9397],{69397(e,t,i){i.d(t,{Qf:()=>a,Qh:()=>o,RS:()=>s,Ul:()=>f,i5:()=>u,lM:()=>r,qK:()=>h});var l=i(34275);const s=16;function r(e){if(!e)return 0;let t=h;for(const i in e)e.hasOwnProperty(i)&&(t+=n(e[i],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let i=p;for(let l=0;l<t;l++)i+=n(e[l]);return i}(e);let t=h;for(const i in e)e.hasOwnProperty(i)&&(t+=n(e[i]));return t}function n(e,t=!0){switch(typeof e){case"object":return t?o(e):h;case"string":return function(e){return 32+e.length}(e);case"number":return s;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,l.iu)(t)?t.byteLength+u:Array.isArray(t)?c(t,s):0:0),0)}function c(e,t){return p+e.length*t}const h=32,p=16,u=145,f=64},89186(e,t,i){i.d(t,{f:()=>h});var l=i(5482),s=i(91429),r=i(16930),o=i(87045),n=i(65509),a=i(25943),c=i(36005);const h=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,i){const l=t.capabilities?.includes("Tilemap");let{minLOD:s,maxLOD:r,minScale:c,maxScale:h}=t;if(null==s&&null==r&&(0!==c||0!==h)){const e=e=>Math.round(1e4*e)/1e4;c=e(c||t.tileInfo.lods[0].scale),h=e(h||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const i of t.tileInfo.lods){const t=e(i.scale);s=t>=c?i.level:s,r=t>=h?i.level:r}}if(l)return new a.d({layer:this,minLOD:s,maxLOD:r});if(t.tileInfo){const e=new o.A;return e.read(t.tileInfo,i),new n.A(e,s,r)}return null}};return(0,l.Cg)([(0,s.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,l.Cg)([(0,s.MZ)()],i.prototype,"minScale",void 0),(0,l.Cg)([(0,c.w)("service","minScale")],i.prototype,"readMinScale",null),(0,l.Cg)([(0,s.MZ)()],i.prototype,"maxScale",void 0),(0,l.Cg)([(0,c.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,l.Cg)([(0,s.MZ)({type:r.A})],i.prototype,"spatialReference",void 0),(0,l.Cg)([(0,s.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,l.Cg)([(0,s.MZ)({type:o.A})],i.prototype,"tileInfo",void 0),(0,l.Cg)([(0,s.MZ)()],i.prototype,"tilemapCache",void 0),(0,l.Cg)([(0,c.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,l.Cg)([(0,s.MZ)()],i.prototype,"version",void 0),i=(0,l.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}},91806(e,t,i){i.d(t,{A:()=>a});var l,s=i(5482),r=i(25482),o=i(91429),n=i(56507);let a=class extends r.o{static{l=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 l({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,s.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,s.Cg)([(0,o.MZ)({type:n.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,s.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,s.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,s.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,s.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=l=(0,s.Cg)([(0,o.$K)("esri.layers.support.LOD")],a)},87045(e,t,i){i.d(t,{A:()=>y});var l,s=i(5482),r=i(66552),o=i(25482),n=i(86211),a=i(91429),c=i(56507),h=i(86738),p=i(16930),u=i(21325),f=i(28735),d=i(91806),v=i(72802),m=i(36005),g=i(43937);const w=new r.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 y=class extends o.o{static{l=this}static create(e={}){const{resolutionFactor:t=1,scales:i,size:s=256,spatialReference:r=p.A.WebMercator,numLODs:o=24}=e;if(!(0,u.fn)(r)){const e=[];if(i)for(let t=0;t<i.length;t++){const l=i[t];e.push(new d.A({level:t,scale:l,resolution:l}))}else{let t=5e-4;for(let i=o-1;i>=0;i--)e.unshift(new d.A({level:i,scale:t,resolution:t})),t*=2}return new l({dpi:96,lods:e,origin:new h.A(0,0,r),size:[s,s],spatialReference:r})}const a=(0,u.Vp)(r),c=e.origin?new h.A({x:e.origin.x,y:e.origin.y,spatialReference:r}):new h.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:r}:{x:0,y:0,spatialReference:r}),f=1/(39.37*(0,n.GA)(r)*96),v=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],l=t*f;v.push(new d.A({level:e,scale:t,resolution:l}))}else{let e=(0,u.EA)(r)?512/s*591657527.5917094:256/s*591657527.591555;const i=Math.ceil(o/t);v.push(new d.A({level:0,scale:e,resolution:e*f}));for(let l=1;l<i;l++){const i=e/2**t,s=i*f;v.push(new d.A({level:l,scale:i,resolution:s})),e=i}}return new l({dpi:96,lods:v,origin:c,size:[s,s],spatialReference:r})}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 i=(0,u.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return h.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const l=[],s=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{l.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,s[e.level]=e})),this._set("scales",l),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 i=Math.floor(e),l=i+1;return t[i]/(t[i]/t[l])**(e-i)}scaleToZoom(e){const t=this.scales,i=t.length-1;let l=0;for(;l<i;l++){const i=t[l],s=t[l+1];if(i<=e)return l;if(s===e)return l+1;if(i>e&&s<e)return l+Math.log(i/e)/Math.log(i/s)}return l}tileAt(e,t,i,l){const s=this.lodAt(e);if(!s)return null;let r,o;if("number"==typeof t)r=t,o=i;else if((0,u.aI)(t.spatialReference,this.spatialReference))r=t.x,o=t.y,l=i;else{const e=(0,f.Cv)(t,this.spatialReference);if(null==e)return null;r=e.x,o=e.y,l=i}const n=s.resolution*this.size[0],a=s.resolution*this.size[1];return l??=new v.U(0,0,0),l.level=e,l.row=Math.floor((this.origin.y-o)/a+.001),l.col=Math.floor((r-this.origin.x)/n+.001),this.updateTileInfo(l),l}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;const l=e.level-i.level,s=i.resolution*this.size[0]/2**l,r=i.resolution*this.size[1]/2**l;return e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*r,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+r,!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 i=this.lodAt(t.level);if(null==i)return null;const{resolution:l}=i,s=l*this.size[0],r=l*this.size[1];return e[0]=this.origin.x+t.col*s,e[1]=this.origin.y-(t.row+1)*r,e[2]=e[0]+s,e[3]=e[1]+r,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return l.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 i=[],s=this.lods.length-t;for(let e=0;e<s;e++){const l=e+t,{scale:s,resolution:r}=l>=0?this.lods[l]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new d.A({level:e,scale:s,resolution:r}))}return new l({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const l=e[i];this._upsampleLevels[l.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/l.resolution:0},t=l}}};(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"dpi",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{read:w.read,write:w.write,origins:{"web-scene":{read:!1,write:!1}}}})],y.prototype,"format",void 0),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"isWrappable",null),(0,s.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],y.prototype,"origin",void 0),(0,s.Cg)([(0,m.w)("origin")],y.prototype,"readOrigin",null),(0,s.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],y.prototype,"lods",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"scales",void 0),(0,s.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],y.prototype,"size",void 0),(0,s.Cg)([(0,m.w)("size",["rows","cols"])],y.prototype,"readSize",null),(0,s.Cg)([(0,g.K)("size",{cols:{type:c.jz},rows:{type:c.jz}})],y.prototype,"writeSize",null),(0,s.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],y.prototype,"spatialReference",void 0),y=l=(0,s.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],y)},65509(e,t,i){i.d(t,{A:()=>r});var l=i(49186),s=i(17676);class r{constructor(e,t=0,i=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=i,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(i)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,i){const l=this.tileInfo?.lodAt(e);return!l||e<this.minLOD||e>this.maxLOD?"unavailable":l.cols&&l.rows?i>=l.cols[0]&&i<=l.cols[1]&&t>=l.rows[0]&&t<=l.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,i,r){await(0,s.NO)(r);const o=this.getAvailability(e,t,i);if("unavailable"===o)throw new l.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i});return o}async fetchAvailabilityUpsample(e,t,i,l,r){await(0,s.NO)(r),l.level=e,l.row=t,l.col=i;const o=this.tileInfo;return o.updateTileInfo(l),this.fetchAvailability(e,t,i,r).catch(e=>{if((0,s.zf)(e))throw e;if(o.upsampleTile(l))return this.fetchAvailabilityUpsample(l.level,l.row,l.col,l,r);throw e})}}},72802(e,t,i){i.d(t,{U:()=>s});var l=i(19419);class s{constructor(e,t,i,s=(0,l.vt)()){this._level=e,this._row=t,this._col=i,this.extent=s}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 s(e.level,e.row,e.col,e.extent)}}},25943(e,t,i){i.d(t,{d:()=>_});var l,s=i(5482),r=i(11254),o=i(69622),n=i(49186),a=i(36563),c=(i(44208),i(66344)),h=i(15142),p=i(17676),u=i(36708),f=i(76030),d=i(84952),v=i(91429),m=i(72802),g=i(4718),w=i(69397),y=i(34275);class b{constructor(e){!function(e){if(!e?.location)throw new n.A("tilemap:missing-location","Location missing from tilemap response");if(!1===e.valid)throw new n.A("tilemap:invalid","Tilemap response was marked as invalid");if(!e.data)throw new n.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(e.data))throw new n.A("tilemap:data-mismatch","Data must be an array of numbers");if(e.data.length!==e.location.width*e.location.height)throw new n.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(e);const{location:t,data:i}=e;this.location=Object.freeze((0,g.o8)(t));const l=this.location.width,s=this.location.height;let r=!0,o=!0;const a=function(e,t=!1){return e<=y.y9?t?new Array(e).fill(0):new Array(e):new Uint32Array(e)}(Math.ceil(l*s/32));let c=0;for(let e=0;e<i.length;e++){const t=e%32;i[e]?(o=!1,a[c]|=1<<t):r=!1,31===t&&++c}o?(this._availability="unavailable",this.byteSize=40):r?(this._availability="available",this.byteSize=40):(this._availability=a,this.byteSize=40+(0,w.Qf)(a))}getAvailability(e,t){if("unavailable"===this._availability||"available"===this._availability)return this._availability;const i=(e-this.location.top)*this.location.width+(t-this.location.left),l=i%32,s=i>>5,r=this._availability;return s<0||s>r.length?"unknown":r[s]&1<<l?"available":"unavailable"}static fromDefinition(e,t){const i=e.service.request||r.A,{row:l,col:s,width:o,height:a}=e,c={query:{f:"json"}};return t=t?{...c,...t}:c,i(function(e){let t;if(e.service.tileServers?.length){const i=e.service.tileServers;t=`${i&&i.length?i[e.row%i.length]:e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}else t=`${e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`;const i=e.service.query;return i&&(t=`${t}?${i}`),t}(e),t).then(e=>e.data).catch(e=>{if(422===e?.details?.httpStatus)return{location:{top:l,left:s,width:o,height:a},valid:!0,data:new Array(o*a).fill(0)};throw e}).then(e=>{if(e.location&&(e.location.top!==l||e.location.left!==s||e.location.width!==o||e.location.height!==a))throw new n.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:e,definition:{top:l,left:s,width:o,height:a}});return b.fromJSON(e)})}static fromJSON(e){return Object.freeze(new b(e))}}function A(e){return`${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}function C(e,t,i){return new n.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i})}let _=class extends o.A{static{l=this}constructor(e){super(e),this._pendingTilemapRequests={},this.request=r.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new c.q(2097152),this.addHandles((0,u.wB)(()=>{const{layer:e}=this;return[e?.parsedUrl,e?.tileServers,e?.apiKey,e?.customParameters]},()=>this._initializeTilemapDefinition(),u.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(e,t,i){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return"unavailable";const l=this._tilemapFromCache(e,t,i,this._tmpTilemapDefinition);return l?l.getAvailability(t,i):"unknown"}fetchAvailability(e,t,i,l){return!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD?Promise.reject(C(e,t,i)):this._fetchTilemap(e,t,i,l).catch(e=>e).then(l=>{if(l instanceof b){const s=l.getAvailability(t,i);if("unavailable"===s)throw C(e,t,i);return s}if((0,p.zf)(l))throw l;return"unknown"})}fetchAvailabilityUpsample(e,t,i,l,s){l.level=e,l.row=t,l.col=i;const r=this.layer.tileInfo;r.updateTileInfo(l);const o=this.fetchAvailability(e,t,i,s).catch(e=>{if((0,p.zf)(e))throw e;if(r.upsampleTile(l))return this.fetchAvailabilityUpsample(l.level,l.row,l.col,l,s);throw e});return this._fetchAvailabilityUpsamplePrefetch(e,t,i,s,o),o}async _fetchAvailabilityUpsamplePrefetch(e,t,i,s,r){if(!this._prefetchingEnabled)return;const o=`prefetch-${e}-${t}-${i}`;if(this.hasHandles(o))return;const n=new AbortController;r.then(()=>n.abort(),()=>n.abort());let c=!1;const h=(0,a.hA)(()=>{c||(c=!0,n.abort())});if(this.addHandles(h,o),await(0,f.md)(10,n.signal).catch(()=>{}),c||(c=!0,this.removeHandles(o)),(0,p.G4)(n))return;const u=new m.U(e,t,i),d={...s,signal:n.signal},v=this.layer.tileInfo;for(let e=0;l._prefetches.length<l._maxPrefetch&&v.upsampleTile(u);++e){const e=this.fetchAvailability(u.level,u.row,u.col,d);l._prefetches.push(e);const t=()=>{l._prefetches.removeUnordered(e)};e.then(t,t)}}static{this._maxPrefetch=4}static{this._prefetches=new h.A({initialSize:l._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(e,t,i,l){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return Promise.reject(new n.A("tilemap-cache:level-unavailable",`Level ${e} is unavailable in the service`));const s=this._tmpTilemapDefinition,r=this._tilemapFromCache(e,t,i,s);if(r)return Promise.resolve(r);const o=l?.signal;return l={...l,signal:null},new Promise((e,t)=>{(0,p.u7)(o,()=>t((0,p.NK)()));const i=A(s);let r=this._pendingTilemapRequests[i];if(!r){r=b.fromDefinition(s,l).then(e=>(this._tilemapCache.put(i,e,e.byteSize),e));const e=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=r,r.then(e,e)}r.then(e,t)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;const{parsedUrl:e,apiKey:t,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:e.path,query:(0,d.x0)({...e.query,...i,token:t??e.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(e,t,i,l){l.level=e,l.row=t-t%this.size,l.col=i-i%this.size;const s=A(l);return this._tilemapCache.get(s)}get test(){}};(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"layer",void 0),(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"minLOD",void 0),(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"maxLOD",void 0),(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"request",void 0),(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"size",void 0),_=l=(0,s.Cg)([(0,v.$K)("esri.layers.support.TilemapCache")],_)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9544],{35522(t,e,n){n.d(e,{$A:()=>w,Bw:()=>o,C:()=>s,Cc:()=>R,DI:()=>_,Il:()=>D,Io:()=>M,Ln:()=>y,Om:()=>S,Qr:()=>h,Re:()=>u,S8:()=>v,T9:()=>g,WQ:()=>l,Z0:()=>E,_S:()=>f,aI:()=>L,ei:()=>T,gL:()=>I,hG:()=>A,hZ:()=>a,hs:()=>p,jb:()=>q,jk:()=>m,lo:()=>z,lw:()=>c,m3:()=>b,oW:()=>P,t2:()=>k,tn:()=>d,uE:()=>N,xg:()=>U,ze:()=>x});var i=n(51850),r=n(34304);function o(t){const e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function g(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function p(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}function M(t,e){const n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)}function A(t,e){const n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function b(t){const e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function _(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function v(t,e){const n=e[0],i=e[1],r=e[2];let o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function w(t,e,n){const i=e[0],r=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=r*l-o*a,t[1]=o*s-i*l,t[2]=i*a-r*s,t}function R(t,e,n,i){const r=e[0],o=e[1],s=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=s+i*(n[2]-s),t}function E(t,e,n){const i=e[0],r=e[1],o=e[2];return t[0]=n[0]*i+n[4]*r+n[8]*o+n[12],t[1]=n[1]*i+n[5]*r+n[9]*o+n[13],t[2]=n[2]*i+n[6]*r+n[10]*o+n[14],t}function T(t,e,n){const i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}function I(t,e,n){const i=n[0],r=n[1],o=n[2],s=n[3],a=e[0],l=e[1],u=e[2],c=r*u-o*l,h=o*a-i*u,d=i*l-r*a,f=r*d-o*h,m=o*c-i*d,g=i*h-r*c,p=2*s;return t[0]=a+c*p+2*f,t[1]=l+h*p+2*m,t[2]=u+d*p+2*g,t}const j=(0,i.vt)(),C=(0,i.vt)();function k(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;const n=t[0],i=t[1],o=t[2],s=e[0],a=e[1],l=e[2],u=(0,r.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function P(t,e,n){const i=n[0]-e[0],r=n[1]-e[1],o=n[2]-e[2];let s=i*i+r*r+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=i*s,t[1]=r*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const q=u,W=c,Z=h,U=M,z=A,D=o,N=b;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(t,e){v(j,t),v(C,e);const n=S(j,C);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,i,r,o){const s=1-o,a=s*s,l=o*o,u=a*s,c=3*o*a,h=3*l*s,d=l*o;return t[0]=e[0]*u+n[0]*c+i[0]*h+r[0]*d,t[1]=e[1]*u+n[1]*c+i[1]*h+r[1]*d,t[2]=e[2]*u+n[2]*c+i[2]*h+r[2]*d,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:s,cross:w,crossAndNormalize:function(t,e,n){const i=e[0],r=e[1],o=e[2],s=n[0],a=n[1],l=n[2],u=r*l-o*a,c=o*s-i*l,h=i*a-r*s,d=Math.sqrt(u*u+c*c+h*h);return t[0]=u/d,t[1]=c/d,t[2]=h/d,t},direction:P,dist:U,distance:M,div:Z,divide:h,dot:S,equals:L,exactEquals:k,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,i,r,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+i[0]*u+r[0]*c,t[1]=e[1]*a+n[1]*l+i[1]*u+r[1]*c,t[2]=e[2]*a+n[2]*l+i[2]*u+r[2]*c,t},inverse:_,len:D,length:o,lerp:R,max:g,min:m,mul:W,multiply:c,negate:x,normalize:v,random:function(t,e=1){const n=r.Ov,i=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(i)*s,t[1]=Math.sin(i)*s,t[2]=o*e,t},rotateX:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:p,scaleAndAdd:y,set:a,sign:f,sqrDist:z,sqrLen:N,squaredDistance:A,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:q,subtract:u,transformMat3:T,transformMat4:E,transformQuat:I},Symbol.toStringTag,{value:"Module"}))},76553(t,e,n){function i(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(e,{H:()=>i})},65806(t,e,n){n.d(e,{g:()=>s});var i=n(51850),r=n(91218),o=n(9762);function s(t,e,n,i){if((0,r.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,o.projectBuffer)(a,t.spatialReference,0,e,n,0);const s=(0,r.tryProject)(t,n,i);return!!s&&(e[0]=s.x,e[1]=s.y,e[2]=s.z??0,!0)}const a=(0,i.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var i=n(91218),r=n(16930),o=n(9762),s=n(65806);function a(t,e,n,r){return!(null==e||null==r||t.length<2)&&((0,i.canProjectWithoutEngine)(e,r)?(0,o.projectBuffer)(t,e,0,n,r,0,1):(l.x=t[0],l.y=t[1],l.z=t[2],l.spatialReference=e,(0,s.g)(l,n,r)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:r.A.WGS84,type:"point"}},61528(t,e,n){n.r(e),n.d(e,{default:()=>L});var i=n(5482),r=n(11254),o=n(49186),s=n(44208),a=n(53966),l=n(25728),u=n(74887),c=n(36708),h=n(91429),d=n(87024),f=n(5443),m=n(16930),g=n(4146),p=n(52136),y=n(18768),M=n(69208),A=n(16131),b=n(8303),x=n(25036),_=n(10873),v=n(58325),S=n(88546),w=n(20655),R=n(24212),E=n(97159),T=n(16215),I=n(72772),j=n(98697),C=n(36005);let k=class extends((0,y.b)((0,A.q)((0,b.A)((0,x.j)((0,l.M)((0,M.d)((0,p.p)(g.A)))))))){readModifications(t,e,n){this._modificationsSource={url:(0,E.f)(t,n),context:n}}initialize(){this.addHandles((0,c.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,c.OH))}constructor(t){super(t),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=S.Zx,this.fullExtent=S.zq,this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null,this.queryElevationCallback=null}set elevationInfo(t){null!=t&&"absolute-height"!==t.mode||this._set("elevationInfo",t),this._validateElevationInfo(t)}async load(t){return this.addResolvingPromise(this._doLoad(t)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(t){const e=[t];for(;e?.length>0;){const t=e.pop();if(!t)return;for(const[n,i]of Object.entries(t)){if("uri"===n)try{const t=new URL("https://tmp"+i).searchParams.get("session");if(t)return t}catch(t){}"object"==typeof i&&null!==i&&e.push(i)}}return null}async requestRootAndSession(t){const e=(t,e)=>new o.A("3dtiles-init:"+t,e);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((n,i)=>{this.url||i(e("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null,new Promise((t,n)=>{if(this.replacesTerrain&&!this._key){const i=this.portalItem?.portal||this.parent?.portalItem?.portal||w.A.getDefault();i.signIn().then(()=>{i.g3dTilesEnabled?(0,r.A)(i.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(e=>{this._key=e.data.keyString,t()},()=>n(e("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):n(e("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+i.url))},()=>n(e("sign-in-failed","Error signing in to Portal")))}else t()}).then(()=>{(0,r.A)(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:t}).then(t=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(t.data))}catch(t){return void i(e("root-parse-failed","Error parsing root tile, details: "+t))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=t.data,this.fullExtent=(0,S.uB)(this._rootTilesetJSON),n(),this._rootRequestPromise=null):i(e("root-is-null","Root tile is null."))},t=>{(0,u.QP)(t),i(e("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,a.A.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",t)})},t=>i(t))})),this._rootRequestPromise}async _doLoad(t){const e=null!=t?t.signal:null;if(this.isUsedAsGroundLayer&&!(0,s.A)("enable-feature:basemap-groundlayers"))throw new o.A("3dtiles-init:not-supported-in-groundlayers","Layer is not supported in basemap.");try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:t=>{if(t.typeKeywords?.includes("IntegratedMesh"))return!0;throw new o.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},t)}catch(t){(0,u.QP)(t)}if(null!=this._modificationsSource){const e=await v.A.fromUrl(this._modificationsSource.url,this.spatialReference,t);if(e&&e.length>0){await(0,I.initialize)();try{const t=(0,j.Ir)(null,e.toArray(),this.spatialReference),n=(0,I.switchMeshModificationPolygonVCSSync)({modifications:t,inVCS:115700});n.success&&n.modifications&&(0,j.cm)(n.modifications,e)}catch(t){a.A.getLogger(this).error("convert-mesh-modification-z-error","Error when converting:",t)}null!=this._modificationsSource&&this.setAtOrigin("modifications",e,this._modificationsSource.context.origin),this._modificationsSource=null}}await this.requestRootAndSession(e)}async beforeSave(){if(null==this._modificationsSource){const{modifications:t}=this;return void(t&&t.length>0&&await(0,I.initialize)())}await this.load().then(()=>{},()=>{})}get hasAttributionData(){return!1}_validateElevationInfo(t){const e="Integrated mesh 3d tiles layers";(0,R.XF)(a.A.getLogger(this),(0,R.B)(e,"absolute-height",t)),(0,R.XF)(a.A.getLogger(this),(0,R.tW)(e,t))}get replacesTerrain(){return!!(0,s.A)("enable-feature:basemap-groundlayers")&&this.hasGoogleUrl&&this.isUsedAsGroundLayer}get isUsedAsGroundLayer(){return(0,T.S)(this.parent)}get hasGoogleUrl(){return!!this.url?.match(/.+\.googleapis.com/)}};(0,i.Cg)([(0,h.MZ)({type:["IntegratedMesh3DTilesLayer"]})],k.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,h.MZ)({type:v.A,clonable:t=>t.clone()}),(0,d.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],k.prototype,"modifications",void 0),(0,i.Cg)([(0,C.w)(["web-scene","portal-item"],"modifications")],k.prototype,"readModifications",null),(0,i.Cg)([(0,h.MZ)({type:m.A})],k.prototype,"spatialReference",void 0),(0,i.Cg)([(0,h.MZ)({type:f.A})],k.prototype,"fullExtent",void 0),(0,i.Cg)([(0,h.MZ)(_.Yj)],k.prototype,"elevationInfo",null),(0,i.Cg)([(0,h.MZ)({type:["show","hide"]})],k.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)(_.OZ)],k.prototype,"url",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],k.prototype,"path",void 0),(0,i.Cg)([(0,h.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"minScale",void 0),(0,i.Cg)([(0,h.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"maxScale",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"hasAttributionData",null),(0,i.Cg)([(0,h.MZ)()],k.prototype,"replacesTerrain",null),(0,i.Cg)([(0,h.MZ)()],k.prototype,"isUsedAsGroundLayer",null),(0,i.Cg)([(0,h.MZ)()],k.prototype,"hasGoogleUrl",null),k=(0,i.Cg)([(0,h.$K)("esri.layers.IntegratedMesh3DTilesLayer")],k);const L=k},88546(t,e,n){n.d(e,{Zx:()=>h,_8:()=>p,uB:()=>y,zq:()=>d});var i=n(34727),r=n(35522),o=n(51850),s=n(73941),a=n(5443),l=n(54239),u=n(16930),c=n(9762);const h=new u.A({wkid:4326,vcsWkid:115700}),d=new a.A(-180,-90,180,90,h);function f(t,e){if(!Array.isArray(t)||t.length<e)return!1;for(const e of t)if("number"!=typeof e)return!1;return!0}const m=7645211,g={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function p(t){return!(!(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)||!t.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function y(t,e=!1){let n=new u.A({wkid:4326,vcsWkid:115700}),l=t.root?.boundingVolume,h=!1,d=t?.root?.transform;if(e&&(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)&&(t.root?.extensions?.ESRI_crs?.boundingVolume?.box||t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))n=new u.A(t.extensions?.ESRI_crs),l=t.root?.extensions?.ESRI_crs?.boundingVolume,d=t.root?.transform,h=!0;else if(!l)return new a.A(-180,-90,180,90,n);if(l.box){const t=l?.box;if(t[3]>m&&t[7]>m&&t[11]>m)return new a.A({...g,spatialReference:n})}const p=(0,o.vt)();if(!h&&l.region&&f(l.region,6)){const t=l.region,e=(0,i.KJ)(t[0]),r=(0,i.KJ)(t[1]),o=t[4],s=(0,i.KJ)(t[2]),u=(0,i.KJ)(t[3]),c=t[5];return new a.A({xmin:e,ymin:r,zmin:o,xmax:s,ymax:u,zmax:c,spatialReference:n})}if(l.sphere&&f(l.sphere,4)){const t=l.sphere,e=(0,o.fA)(t[0],t[1],t[2]),i=t[3]/Math.sqrt(3),m=(0,o.vt)();(0,r.Re)(m,e,(0,o.fA)(i,i,i));const g=(0,o.vt)();if((0,r.WQ)(g,e,(0,o.fA)(i,i,i)),d&&f(d,16)){const t=d;(0,r.Z0)(p,m,t),(0,r.C)(m,p),(0,r.Z0)(p,g,t),(0,r.C)(g,p)}h||((0,c.projectBuffer)(m,s.Ro,0,m,u.A.WGS84,0),(0,c.projectBuffer)(g,s.Ro,0,g,u.A.WGS84,0));const y=(0,o.vt)(),M=(0,o.vt)();return(0,r.jk)(y,m,g),(0,r.T9)(M,m,g),new a.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:M[0],ymax:M[1],zmax:M[2],spatialReference:n})}if(l.box&&f(l.box,12)){const t=l.box,e=(0,o.fA)(t[0],t[1],t[2]),i=(0,o.fA)(t[3],t[4],t[5]),m=(0,o.fA)(t[6],t[7],t[8]),g=(0,o.fA)(t[9],t[10],t[11]),p=[];for(let t=0;t<8;++t)p.push((0,o.vt)());if((0,r.WQ)(p[0],e,i),(0,r.WQ)(p[0],p[0],m),(0,r.WQ)(p[0],p[0],g),(0,r.jb)(p[1],e,i),(0,r.WQ)(p[1],p[1],m),(0,r.WQ)(p[1],p[1],g),(0,r.WQ)(p[2],e,i),(0,r.jb)(p[2],p[2],m),(0,r.WQ)(p[2],p[2],g),(0,r.jb)(p[3],e,i),(0,r.jb)(p[3],p[3],m),(0,r.WQ)(p[3],p[3],g),(0,r.WQ)(p[4],e,i),(0,r.WQ)(p[4],p[4],m),(0,r.jb)(p[4],p[4],g),(0,r.jb)(p[5],e,i),(0,r.WQ)(p[5],p[5],m),(0,r.jb)(p[5],p[5],g),(0,r.WQ)(p[6],e,i),(0,r.jb)(p[6],p[6],m),(0,r.jb)(p[6],p[6],g),(0,r.jb)(p[7],e,i),(0,r.jb)(p[7],p[7],m),(0,r.jb)(p[7],p[7],g),d&&f(d,16)){const t=d;for(let e=0;e<8;++e)(0,r.Z0)(p[e],p[e],t)}const y=(0,o.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),M=(0,o.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let t=0;t<8;++t)h||(0,c.projectBuffer)(p[t],s.Ro,0,p[t],u.A.WGS84,0),(0,r.jk)(M,M,p[t]),(0,r.T9)(y,y,p[t]);return new a.A({xmin:M[0],ymin:M[1],zmin:M[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:n})}return new a.A(-180,-90,180,90,n)}new Map([[5773,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new l.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height)"})],[5709,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"NAP"})]])}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9544],{35522(t,e,n){n.d(e,{$A:()=>w,Bw:()=>o,C:()=>s,Cc:()=>R,DI:()=>_,Il:()=>D,Io:()=>M,Ln:()=>y,Om:()=>S,Qr:()=>h,Re:()=>u,S8:()=>v,T9:()=>g,WQ:()=>l,Z0:()=>E,_S:()=>f,aI:()=>L,ei:()=>T,gL:()=>I,hG:()=>A,hZ:()=>a,hs:()=>p,jb:()=>q,jk:()=>m,lo:()=>z,lw:()=>c,m3:()=>b,oW:()=>P,t2:()=>k,tn:()=>d,uE:()=>N,xg:()=>U,ze:()=>x});var i=n(51850),r=n(34304);function o(t){const e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function g(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function p(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}function M(t,e){const n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)}function A(t,e){const n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function b(t){const e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function _(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function v(t,e){const n=e[0],i=e[1],r=e[2];let o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function w(t,e,n){const i=e[0],r=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=r*l-o*a,t[1]=o*s-i*l,t[2]=i*a-r*s,t}function R(t,e,n,i){const r=e[0],o=e[1],s=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=s+i*(n[2]-s),t}function E(t,e,n){const i=e[0],r=e[1],o=e[2];return t[0]=n[0]*i+n[4]*r+n[8]*o+n[12],t[1]=n[1]*i+n[5]*r+n[9]*o+n[13],t[2]=n[2]*i+n[6]*r+n[10]*o+n[14],t}function T(t,e,n){const i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}function I(t,e,n){const i=n[0],r=n[1],o=n[2],s=n[3],a=e[0],l=e[1],u=e[2],c=r*u-o*l,h=o*a-i*u,d=i*l-r*a,f=r*d-o*h,m=o*c-i*d,g=i*h-r*c,p=2*s;return t[0]=a+c*p+2*f,t[1]=l+h*p+2*m,t[2]=u+d*p+2*g,t}const j=(0,i.vt)(),C=(0,i.vt)();function k(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;const n=t[0],i=t[1],o=t[2],s=e[0],a=e[1],l=e[2],u=(0,r.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function P(t,e,n){const i=n[0]-e[0],r=n[1]-e[1],o=n[2]-e[2];let s=i*i+r*r+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=i*s,t[1]=r*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const q=u,W=c,Z=h,U=M,z=A,D=o,N=b;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(t,e){v(j,t),v(C,e);const n=S(j,C);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,i,r,o){const s=1-o,a=s*s,l=o*o,u=a*s,c=3*o*a,h=3*l*s,d=l*o;return t[0]=e[0]*u+n[0]*c+i[0]*h+r[0]*d,t[1]=e[1]*u+n[1]*c+i[1]*h+r[1]*d,t[2]=e[2]*u+n[2]*c+i[2]*h+r[2]*d,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:s,cross:w,crossAndNormalize:function(t,e,n){const i=e[0],r=e[1],o=e[2],s=n[0],a=n[1],l=n[2],u=r*l-o*a,c=o*s-i*l,h=i*a-r*s,d=Math.sqrt(u*u+c*c+h*h);return t[0]=u/d,t[1]=c/d,t[2]=h/d,t},direction:P,dist:U,distance:M,div:Z,divide:h,dot:S,equals:L,exactEquals:k,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,i,r,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+i[0]*u+r[0]*c,t[1]=e[1]*a+n[1]*l+i[1]*u+r[1]*c,t[2]=e[2]*a+n[2]*l+i[2]*u+r[2]*c,t},inverse:_,len:D,length:o,lerp:R,max:g,min:m,mul:W,multiply:c,negate:x,normalize:v,random:function(t,e=1){const n=r.Ov,i=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(i)*s,t[1]=Math.sin(i)*s,t[2]=o*e,t},rotateX:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:p,scaleAndAdd:y,set:a,sign:f,sqrDist:z,sqrLen:N,squaredDistance:A,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:q,subtract:u,transformMat3:T,transformMat4:E,transformQuat:I},Symbol.toStringTag,{value:"Module"}))},76553(t,e,n){function i(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(e,{H:()=>i})},65806(t,e,n){n.d(e,{g:()=>s});var i=n(51850),r=n(91218),o=n(9762);function s(t,e,n,i){if((0,r.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,o.projectBuffer)(a,t.spatialReference,0,e,n,0);const s=(0,r.tryProject)(t,n,i);return!!s&&(e[0]=s.x,e[1]=s.y,e[2]=s.z??0,!0)}const a=(0,i.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var i=n(91218),r=n(16930),o=n(9762),s=n(65806);function a(t,e,n,r){return!(null==e||null==r||t.length<2)&&((0,i.canProjectWithoutEngine)(e,r)?(0,o.projectBuffer)(t,e,0,n,r,0,1):(l.x=t[0],l.y=t[1],l.z=t[2],l.spatialReference=e,(0,s.g)(l,n,r)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:r.A.WGS84,type:"point"}},61528(t,e,n){n.r(e),n.d(e,{default:()=>L});var i=n(5482),r=n(11254),o=n(49186),s=n(44208),a=n(53966),l=n(25728),u=n(17676),c=n(36708),h=n(91429),d=n(87024),f=n(5443),m=n(16930),g=n(4146),p=n(52136),y=n(18768),M=n(69208),A=n(16131),b=n(8303),x=n(25036),_=n(10873),v=n(58325),S=n(88546),w=n(20655),R=n(24212),E=n(97159),T=n(16215),I=n(72772),j=n(98697),C=n(36005);let k=class extends((0,y.b)((0,A.q)((0,b.A)((0,x.j)((0,l.M)((0,M.d)((0,p.p)(g.A)))))))){readModifications(t,e,n){this._modificationsSource={url:(0,E.f)(t,n),context:n}}initialize(){this.addHandles((0,c.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,c.OH))}constructor(t){super(t),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=S.Zx,this.fullExtent=S.zq,this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null,this.queryElevationCallback=null}set elevationInfo(t){null!=t&&"absolute-height"!==t.mode||this._set("elevationInfo",t),this._validateElevationInfo(t)}async load(t){return this.addResolvingPromise(this._doLoad(t)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(t){const e=[t];for(;e?.length>0;){const t=e.pop();if(!t)return;for(const[n,i]of Object.entries(t)){if("uri"===n)try{const t=new URL("https://tmp"+i).searchParams.get("session");if(t)return t}catch(t){}"object"==typeof i&&null!==i&&e.push(i)}}return null}async requestRootAndSession(t){const e=(t,e)=>new o.A("3dtiles-init:"+t,e);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((n,i)=>{this.url||i(e("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null,new Promise((t,n)=>{if(this.replacesTerrain&&!this._key){const i=this.portalItem?.portal||this.parent?.portalItem?.portal||w.A.getDefault();i.signIn().then(()=>{i.g3dTilesEnabled?(0,r.A)(i.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(e=>{this._key=e.data.keyString,t()},()=>n(e("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):n(e("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+i.url))},()=>n(e("sign-in-failed","Error signing in to Portal")))}else t()}).then(()=>{(0,r.A)(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:t}).then(t=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(t.data))}catch(t){return void i(e("root-parse-failed","Error parsing root tile, details: "+t))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=t.data,this.fullExtent=(0,S.uB)(this._rootTilesetJSON),n(),this._rootRequestPromise=null):i(e("root-is-null","Root tile is null."))},t=>{(0,u.QP)(t),i(e("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,a.A.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",t)})},t=>i(t))})),this._rootRequestPromise}async _doLoad(t){const e=null!=t?t.signal:null;if(this.isUsedAsGroundLayer&&!(0,s.A)("enable-feature:basemap-groundlayers"))throw new o.A("3dtiles-init:not-supported-in-groundlayers","Layer is not supported in basemap.");try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:t=>{if(t.typeKeywords?.includes("IntegratedMesh"))return!0;throw new o.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},t)}catch(t){(0,u.QP)(t)}if(null!=this._modificationsSource){const e=await v.A.fromUrl(this._modificationsSource.url,this.spatialReference,t);if(e&&e.length>0){await(0,I.initialize)();try{const t=(0,j.Ir)(null,e.toArray(),this.spatialReference),n=(0,I.switchMeshModificationPolygonVCSSync)({modifications:t,inVCS:115700});n.success&&n.modifications&&(0,j.cm)(n.modifications,e)}catch(t){a.A.getLogger(this).error("convert-mesh-modification-z-error","Error when converting:",t)}null!=this._modificationsSource&&this.setAtOrigin("modifications",e,this._modificationsSource.context.origin),this._modificationsSource=null}}await this.requestRootAndSession(e)}async beforeSave(){if(null==this._modificationsSource){const{modifications:t}=this;return void(t&&t.length>0&&await(0,I.initialize)())}await this.load().then(()=>{},()=>{})}get hasAttributionData(){return!1}_validateElevationInfo(t){const e="Integrated mesh 3d tiles layers";(0,R.XF)(a.A.getLogger(this),(0,R.B)(e,"absolute-height",t)),(0,R.XF)(a.A.getLogger(this),(0,R.tW)(e,t))}get replacesTerrain(){return!!(0,s.A)("enable-feature:basemap-groundlayers")&&this.hasGoogleUrl&&this.isUsedAsGroundLayer}get isUsedAsGroundLayer(){return(0,T.S)(this.parent)}get hasGoogleUrl(){return!!this.url?.match(/.+\.googleapis.com/)}};(0,i.Cg)([(0,h.MZ)({type:["IntegratedMesh3DTilesLayer"]})],k.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,h.MZ)({type:v.A,clonable:t=>t.clone()}),(0,d.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],k.prototype,"modifications",void 0),(0,i.Cg)([(0,C.w)(["web-scene","portal-item"],"modifications")],k.prototype,"readModifications",null),(0,i.Cg)([(0,h.MZ)({type:m.A})],k.prototype,"spatialReference",void 0),(0,i.Cg)([(0,h.MZ)({type:f.A})],k.prototype,"fullExtent",void 0),(0,i.Cg)([(0,h.MZ)(_.Yj)],k.prototype,"elevationInfo",null),(0,i.Cg)([(0,h.MZ)({type:["show","hide"]})],k.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)(_.OZ)],k.prototype,"url",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],k.prototype,"path",void 0),(0,i.Cg)([(0,h.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"minScale",void 0),(0,i.Cg)([(0,h.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"maxScale",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"hasAttributionData",null),(0,i.Cg)([(0,h.MZ)()],k.prototype,"replacesTerrain",null),(0,i.Cg)([(0,h.MZ)()],k.prototype,"isUsedAsGroundLayer",null),(0,i.Cg)([(0,h.MZ)()],k.prototype,"hasGoogleUrl",null),k=(0,i.Cg)([(0,h.$K)("esri.layers.IntegratedMesh3DTilesLayer")],k);const L=k},88546(t,e,n){n.d(e,{Zx:()=>h,_8:()=>p,uB:()=>y,zq:()=>d});var i=n(34727),r=n(35522),o=n(51850),s=n(73941),a=n(5443),l=n(54239),u=n(16930),c=n(9762);const h=new u.A({wkid:4326,vcsWkid:115700}),d=new a.A(-180,-90,180,90,h);function f(t,e){if(!Array.isArray(t)||t.length<e)return!1;for(const e of t)if("number"!=typeof e)return!1;return!0}const m=7645211,g={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function p(t){return!(!(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)||!t.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function y(t,e=!1){let n=new u.A({wkid:4326,vcsWkid:115700}),l=t.root?.boundingVolume,h=!1,d=t?.root?.transform;if(e&&(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)&&(t.root?.extensions?.ESRI_crs?.boundingVolume?.box||t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))n=new u.A(t.extensions?.ESRI_crs),l=t.root?.extensions?.ESRI_crs?.boundingVolume,d=t.root?.transform,h=!0;else if(!l)return new a.A(-180,-90,180,90,n);if(l.box){const t=l?.box;if(t[3]>m&&t[7]>m&&t[11]>m)return new a.A({...g,spatialReference:n})}const p=(0,o.vt)();if(!h&&l.region&&f(l.region,6)){const t=l.region,e=(0,i.KJ)(t[0]),r=(0,i.KJ)(t[1]),o=t[4],s=(0,i.KJ)(t[2]),u=(0,i.KJ)(t[3]),c=t[5];return new a.A({xmin:e,ymin:r,zmin:o,xmax:s,ymax:u,zmax:c,spatialReference:n})}if(l.sphere&&f(l.sphere,4)){const t=l.sphere,e=(0,o.fA)(t[0],t[1],t[2]),i=t[3]/Math.sqrt(3),m=(0,o.vt)();(0,r.Re)(m,e,(0,o.fA)(i,i,i));const g=(0,o.vt)();if((0,r.WQ)(g,e,(0,o.fA)(i,i,i)),d&&f(d,16)){const t=d;(0,r.Z0)(p,m,t),(0,r.C)(m,p),(0,r.Z0)(p,g,t),(0,r.C)(g,p)}h||((0,c.projectBuffer)(m,s.Ro,0,m,u.A.WGS84,0),(0,c.projectBuffer)(g,s.Ro,0,g,u.A.WGS84,0));const y=(0,o.vt)(),M=(0,o.vt)();return(0,r.jk)(y,m,g),(0,r.T9)(M,m,g),new a.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:M[0],ymax:M[1],zmax:M[2],spatialReference:n})}if(l.box&&f(l.box,12)){const t=l.box,e=(0,o.fA)(t[0],t[1],t[2]),i=(0,o.fA)(t[3],t[4],t[5]),m=(0,o.fA)(t[6],t[7],t[8]),g=(0,o.fA)(t[9],t[10],t[11]),p=[];for(let t=0;t<8;++t)p.push((0,o.vt)());if((0,r.WQ)(p[0],e,i),(0,r.WQ)(p[0],p[0],m),(0,r.WQ)(p[0],p[0],g),(0,r.jb)(p[1],e,i),(0,r.WQ)(p[1],p[1],m),(0,r.WQ)(p[1],p[1],g),(0,r.WQ)(p[2],e,i),(0,r.jb)(p[2],p[2],m),(0,r.WQ)(p[2],p[2],g),(0,r.jb)(p[3],e,i),(0,r.jb)(p[3],p[3],m),(0,r.WQ)(p[3],p[3],g),(0,r.WQ)(p[4],e,i),(0,r.WQ)(p[4],p[4],m),(0,r.jb)(p[4],p[4],g),(0,r.jb)(p[5],e,i),(0,r.WQ)(p[5],p[5],m),(0,r.jb)(p[5],p[5],g),(0,r.WQ)(p[6],e,i),(0,r.jb)(p[6],p[6],m),(0,r.jb)(p[6],p[6],g),(0,r.jb)(p[7],e,i),(0,r.jb)(p[7],p[7],m),(0,r.jb)(p[7],p[7],g),d&&f(d,16)){const t=d;for(let e=0;e<8;++e)(0,r.Z0)(p[e],p[e],t)}const y=(0,o.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),M=(0,o.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let t=0;t<8;++t)h||(0,c.projectBuffer)(p[t],s.Ro,0,p[t],u.A.WGS84,0),(0,r.jk)(M,M,p[t]),(0,r.T9)(y,y,p[t]);return new a.A({xmin:M[0],ymin:M[1],zmin:M[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:n})}return new a.A(-180,-90,180,90,n)}new Map([[5773,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new l.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height)"})],[5709,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"NAP"})]])}}]);
|