@arcgis/core 5.2.0-next.40 → 5.2.0-next.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/02ab09285a5c4ca98066.js +1 -0
- package/assets/esri/core/workers/chunks/0646524250bb9fe82935.js +1 -0
- package/assets/esri/core/workers/chunks/0a50efb07eee36237e21.js +1 -0
- package/assets/esri/core/workers/chunks/0a98a13418f53082ca7a.js +1 -0
- package/assets/esri/core/workers/chunks/0ae0483b72f5e8d00d55.js +1 -0
- package/assets/esri/core/workers/chunks/0ae35b02dda9b9662560.js +1 -0
- package/assets/esri/core/workers/chunks/0d1224693a62a26a0e72.js +1 -0
- package/assets/esri/core/workers/chunks/{542d8a6c415098b9857c.js → 0da4816c11b45b4a6289.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a39dd585742960d3ca2.js → 0dcfd82a2669df6eb5a0.js} +1 -1
- package/assets/esri/core/workers/chunks/0f19bc532be24ca64755.js +1 -0
- package/assets/esri/core/workers/chunks/0f674c625f24ac73e25a.js +1 -0
- package/assets/esri/core/workers/chunks/11a3aa43fb940c21f148.js +1 -0
- package/assets/esri/core/workers/chunks/11e00ca5ac1b004f4ecc.js +1 -0
- package/assets/esri/core/workers/chunks/1276df03201c1b855fee.js +1 -0
- package/assets/esri/core/workers/chunks/13c893e448bedc5c1cef.js +1 -0
- package/assets/esri/core/workers/chunks/15c2d9bec0455fc363a9.js +1 -0
- package/assets/esri/core/workers/chunks/15de305ac3d6433748e7.js +1 -0
- package/assets/esri/core/workers/chunks/18d874739ee9ffad7480.js +1 -0
- package/assets/esri/core/workers/chunks/1dc1bfb3425665f560e4.js +1 -0
- package/assets/esri/core/workers/chunks/{1cd8dff4373494b01ad4.js → 1e342d532925569daadb.js} +1 -1
- package/assets/esri/core/workers/chunks/1f118d85d8271ad7690b.js +1 -0
- package/assets/esri/core/workers/chunks/1fece9757de7c10d1e9f.js +1 -0
- package/assets/esri/core/workers/chunks/{a2e754df3215e8b00a8f.js → 2015f4def2ef201bdab8.js} +1 -1
- package/assets/esri/core/workers/chunks/23570397304969f724b3.js +1 -0
- package/assets/esri/core/workers/chunks/24c0b3586bb6500eda53.js +2 -0
- package/assets/esri/core/workers/chunks/26e7884d8639df4d994b.js +1 -0
- package/assets/esri/core/workers/chunks/26fdc8382e009672924e.js +1 -0
- package/assets/esri/core/workers/chunks/{96860b6035e0b06672dd.js → 272c8ab189217240d05f.js} +1 -1
- package/assets/esri/core/workers/chunks/2791f3fe16ca5ee2f39a.js +1 -0
- package/assets/esri/core/workers/chunks/279a9a38b04a21cdfd11.js +1 -0
- package/assets/esri/core/workers/chunks/284e88805184334396fe.js +1 -0
- package/assets/esri/core/workers/chunks/28bc5e8e82f188b30eb9.js +1 -0
- package/assets/esri/core/workers/chunks/2a4868acd546312aa6d8.js +1 -0
- package/assets/esri/core/workers/chunks/2d7cfc68a38dabd8898a.js +1 -0
- package/assets/esri/core/workers/chunks/2da337d7fd9295f6b967.js +1 -0
- package/assets/esri/core/workers/chunks/2e79fb1b8445b2091cdb.js +1 -0
- package/assets/esri/core/workers/chunks/2f29f08cddd5add9388e.js +1 -0
- package/assets/esri/core/workers/chunks/30c53a7e1ad5aa52f2f3.js +1 -0
- package/assets/esri/core/workers/chunks/31c4db1eac8f765bb93f.js +1 -0
- package/assets/esri/core/workers/chunks/321dbc60f44819c2b4de.js +1 -0
- package/assets/esri/core/workers/chunks/32fb597aef66c444758f.js +1 -0
- package/assets/esri/core/workers/chunks/34fcb776e4de1d870bbd.js +30 -0
- package/assets/esri/core/workers/chunks/354199a41de44902de84.js +1 -0
- package/assets/esri/core/workers/chunks/36781219ca9ba5d7fe52.js +1 -0
- package/assets/esri/core/workers/chunks/36999a2e383c8eb3c398.js +1 -0
- package/assets/esri/core/workers/chunks/36f8a912842181e1f0aa.js +1 -0
- package/assets/esri/core/workers/chunks/{ed1d4ebf487c7dcd5c33.js → 37a8cfec11057947b45f.js} +1 -1
- package/assets/esri/core/workers/chunks/{2b2b042a6d6949b06127.js → 381790e1f3df05c7eb68.js} +1 -1
- package/assets/esri/core/workers/chunks/383304d33b496c5d8baa.js +1 -0
- package/assets/esri/core/workers/chunks/{4e28f49d0be20ea50fd7.js → 383392c63202ac044b6c.js} +1 -1
- package/assets/esri/core/workers/chunks/394716bd1ecfd638d708.js +2 -0
- package/assets/esri/core/workers/chunks/399e23d777a043efa9f1.js +1 -0
- package/assets/esri/core/workers/chunks/3aacb935d632834d4154.js +1 -0
- package/assets/esri/core/workers/chunks/3c8e98cf23ad8ef12fcb.js +1 -0
- package/assets/esri/core/workers/chunks/4129b27fcd4103cdc499.js +1 -0
- package/assets/esri/core/workers/chunks/44e64186318728d1be51.js +1 -0
- package/assets/esri/core/workers/chunks/474ea8c97d101e41b3f5.js +1 -0
- package/assets/esri/core/workers/chunks/475c60ed8785d07911c6.js +1 -0
- package/assets/esri/core/workers/chunks/{c7662455252b48531da1.js → 484b3e2a220c440ccbb4.js} +1 -1
- package/assets/esri/core/workers/chunks/4d4710d57c72ec75cccc.js +1 -0
- package/assets/esri/core/workers/chunks/4e1b087453fc5e20e961.js +1 -0
- package/assets/esri/core/workers/chunks/4e94793aab42ebd251ca.js +1 -0
- package/assets/esri/core/workers/chunks/4f59357f535f30a6b5cc.js +1 -0
- package/assets/esri/core/workers/chunks/509cfac9e5d86a8ee449.js +1 -0
- package/assets/esri/core/workers/chunks/510acf2e8781be9b0dba.js +1 -0
- package/assets/esri/core/workers/chunks/5133083222588799493f.js +1 -0
- package/assets/esri/core/workers/chunks/52c4b4dabcb0d162be72.js +1 -0
- package/assets/esri/core/workers/chunks/{697e0ce10d77b90d4fee.js → 538fe46dfd685a490e23.js} +1 -1
- package/assets/esri/core/workers/chunks/5441f96cdd0660229efe.js +1 -0
- package/assets/esri/core/workers/chunks/551d0c5432f7a08dea77.js +1 -0
- package/assets/esri/core/workers/chunks/55924fb0de05e727f5e3.js +1 -0
- package/assets/esri/core/workers/chunks/55af58b6dff52dc040fe.js +2 -0
- package/assets/esri/core/workers/chunks/56bbde1dff96b423fbb9.js +1 -0
- package/assets/esri/core/workers/chunks/57824ecc10b25e3ad794.js +1 -0
- package/assets/esri/core/workers/chunks/{9ba705a6ddabca0f77b1.js → 580451761cadfe308919.js} +1 -1
- package/assets/esri/core/workers/chunks/590e977f8eeb379b86c8.js +1398 -0
- package/assets/esri/core/workers/chunks/5923ebadd4f75be2c9cc.js +1 -0
- package/assets/esri/core/workers/chunks/5b18696109fe84a1010a.js +2 -0
- package/assets/esri/core/workers/chunks/{db96a0c66578b2d1b715.js → 5b30231ae0a8f4b8435f.js} +1 -1
- package/assets/esri/core/workers/chunks/{77a4f6f224d7ca4b69f4.js → 5bf4ab72b9634b06cc5d.js} +1 -1
- package/assets/esri/core/workers/chunks/5ce168ae45ab7e7a71d1.js +1 -0
- package/assets/esri/core/workers/chunks/{7b1678dcf62481469544.js → 5dc17b76c6ecc24e7b9a.js} +1 -1
- package/assets/esri/core/workers/chunks/5e35828216020f33e26b.js +1 -0
- package/assets/esri/core/workers/chunks/5f0d6c853873a7f32527.js +1 -0
- package/assets/esri/core/workers/chunks/5fe9eea35ddb428efd8b.js +1 -0
- package/assets/esri/core/workers/chunks/6010b7be978698a642d0.js +1 -0
- package/assets/esri/core/workers/chunks/613e799377bdb767c955.js +1 -0
- package/assets/esri/core/workers/chunks/6210fb6cd31844f23964.js +1 -0
- package/assets/esri/core/workers/chunks/632ab11cdd4b0d9a5cc5.js +1 -0
- package/assets/esri/core/workers/chunks/64247e439ef3e1f712e9.js +1 -0
- package/assets/esri/core/workers/chunks/661a59133ae34f172174.js +1 -0
- package/assets/esri/core/workers/chunks/67468c50ecb1fbedda87.js +1 -0
- package/assets/esri/core/workers/chunks/6b0acd1a7dd74a7367e0.js +1 -0
- package/assets/esri/core/workers/chunks/6d247ff53421d27628ce.js +1 -0
- package/assets/esri/core/workers/chunks/6e45d0db97ffa4509177.js +1 -0
- package/assets/esri/core/workers/chunks/6f408397e2c8a2ea9805.js +1 -0
- package/assets/esri/core/workers/chunks/700c08dd2e734c15e621.js +1 -0
- package/assets/esri/core/workers/chunks/705d6b108fd121cea887.js +1 -0
- package/assets/esri/core/workers/chunks/71ce1009dadcae8f8094.js +1 -0
- package/assets/esri/core/workers/chunks/72fe7fb03c156f26a589.js +1 -0
- package/assets/esri/core/workers/chunks/733b2e181683d5fc7c95.js +1 -0
- package/assets/esri/core/workers/chunks/7684f0c771d312e05bb4.js +680 -0
- package/assets/esri/core/workers/chunks/79b857bb301f9c4169d6.js +1 -0
- package/assets/esri/core/workers/chunks/79c0a966f7d11d3c217f.js +1 -0
- package/assets/esri/core/workers/chunks/7a818499c1079906c2d7.js +1 -0
- package/assets/esri/core/workers/chunks/7ac47a9ad244100bc3b1.js +1 -0
- package/assets/esri/core/workers/chunks/7b862a074816c099b9ff.js +1 -0
- package/assets/esri/core/workers/chunks/7baa363b3b0a442a63d2.js +1 -0
- package/assets/esri/core/workers/chunks/7cc729b57a6a52c8ac68.js +1 -0
- package/assets/esri/core/workers/chunks/{4abe820bbe4f7ffccc09.js → 7df795bc4fa1d433463b.js} +1 -1
- package/assets/esri/core/workers/chunks/7f7a76f5fef25049fbf8.js +1 -0
- package/assets/esri/core/workers/chunks/7fa9dc39bf0a7a6fdc1f.js +1 -0
- package/assets/esri/core/workers/chunks/821176ee3be724621bb0.js +1 -0
- package/assets/esri/core/workers/chunks/825eb845216762a1ed2f.js +1 -0
- package/assets/esri/core/workers/chunks/82f4aa0533db009b11d8.js +2 -0
- package/assets/esri/core/workers/chunks/{2a344bca6837ca3b5c41.js.LICENSE.txt → 82f4aa0533db009b11d8.js.LICENSE.txt} +0 -6
- package/assets/esri/core/workers/chunks/830d1a7dee43422507ab.js +1 -0
- package/assets/esri/core/workers/chunks/835643f716f7058a2722.js +1 -0
- package/assets/esri/core/workers/chunks/84fa102a93b2144c28fb.js +1 -0
- package/assets/esri/core/workers/chunks/85ce7673d42526a79fd2.js +1 -0
- package/assets/esri/core/workers/chunks/893ffc38e1a43de5b63d.js +1 -0
- package/assets/esri/core/workers/chunks/{93df864c2e829f0fd5ce.js → 8a1970e68bc1e833cb7f.js} +1 -1
- package/assets/esri/core/workers/chunks/{684c9b4bd9590d2db12f.js → 8a410edcdf74ba957159.js} +1 -1
- package/assets/esri/core/workers/chunks/8b73694d5a97638a3a61.js +1 -0
- package/assets/esri/core/workers/chunks/8bb20ef549ec1c86b38e.js +1 -0
- package/assets/esri/core/workers/chunks/{6ef3b8d67b498d655a99.js → 8c5e65982c3f9295e844.js} +1 -1
- package/assets/esri/core/workers/chunks/8cb2fe91d1d8f49c14f8.js +1 -0
- package/assets/esri/core/workers/chunks/{1961b59756933e0a82f2.js → 8dcc6c19d5b3a5ac5512.js} +1 -1
- package/assets/esri/core/workers/chunks/8dee03779b569f233daf.js +1 -0
- package/assets/esri/core/workers/chunks/8ec5e470583b75fceae1.js +1 -0
- package/assets/esri/core/workers/chunks/8f2fecd8a0a972d68590.js +1 -0
- package/assets/esri/core/workers/chunks/9073b0f0ec93d6e243b9.js +1 -0
- package/assets/esri/core/workers/chunks/90ace5f9b4af1beea6bf.js +1 -0
- package/assets/esri/core/workers/chunks/934044f2ef6ce199b399.js +1 -0
- package/assets/esri/core/workers/chunks/94719ac469dadc4c05dc.js +1 -0
- package/assets/esri/core/workers/chunks/94e9cf8e729ec36de5be.js +1 -0
- package/assets/esri/core/workers/chunks/96d5fed0235558c0e348.js +1 -0
- package/assets/esri/core/workers/chunks/98b27cf8acbfa4259758.js +1 -0
- package/assets/esri/core/workers/chunks/9902fcd2070c8eb6d043.js +1 -0
- package/assets/esri/core/workers/chunks/99772ce7e628364434fa.js +1 -0
- package/assets/esri/core/workers/chunks/{b1a0eb6598309e11337f.js → 99e3aa4832ed87474ab4.js} +1 -1
- package/assets/esri/core/workers/chunks/9a6208ab670ad74e6f7d.js +1 -0
- package/assets/esri/core/workers/chunks/9a97f6cda2f36941efae.js +1 -0
- package/assets/esri/core/workers/chunks/9b1199104a6822ab7340.js +1 -0
- package/assets/esri/core/workers/chunks/9ceeae787dc7c194d60e.js +1 -0
- package/assets/esri/core/workers/chunks/9ebc98746b1f085b82b7.js +1 -0
- package/assets/esri/core/workers/chunks/9ee3741eef73f3edb18b.js +1 -0
- package/assets/esri/core/workers/chunks/9fb87a7dba62b527c0ba.js +1 -0
- package/assets/esri/core/workers/chunks/a10f63a08d976be058be.js +1 -0
- package/assets/esri/core/workers/chunks/a183b77854f5b42c1a86.js +1 -0
- package/assets/esri/core/workers/chunks/a23f4d8e7c372f5fb6d7.js +1 -0
- package/assets/esri/core/workers/chunks/a25f51d2d3ff6b9af7ca.js +1 -0
- package/assets/esri/core/workers/chunks/a27172dacdb85a774c4b.js +1 -0
- package/assets/esri/core/workers/chunks/a27cdf4c29dd50a6dab1.js +1 -0
- package/assets/esri/core/workers/chunks/a294dd12b5c708ce04af.js +1 -0
- package/assets/esri/core/workers/chunks/a3c882fe7599dc0f4f27.js +1 -0
- package/assets/esri/core/workers/chunks/a90f7b1c6c69b6033b4c.js +1 -0
- package/assets/esri/core/workers/chunks/a9c641bcdef161c754bf.js +1 -0
- package/assets/esri/core/workers/chunks/a9d391071803b1e9e8a0.js +1 -0
- package/assets/esri/core/workers/chunks/aaa66a04b882b0ba2961.js +1 -0
- package/assets/esri/core/workers/chunks/ae50b2d5e63f62c088d2.js +1 -0
- package/assets/esri/core/workers/chunks/af3ac4bed43e901b59c7.js +1 -0
- package/assets/esri/core/workers/chunks/af97e19516dbbcfb5286.js +1 -0
- package/assets/esri/core/workers/chunks/aff0e7761276036e029d.js +1 -0
- package/assets/esri/core/workers/chunks/b23d1e10fc4161d1f3eb.js +1 -0
- package/assets/esri/core/workers/chunks/b32bdf5730953c2fb16b.js +1 -0
- package/assets/esri/core/workers/chunks/b3f1a442d6b7826e917f.js +1 -0
- package/assets/esri/core/workers/chunks/b4047333265a2665aef9.js +1 -0
- package/assets/esri/core/workers/chunks/b7170816736769d3b7b0.js +1 -0
- package/assets/esri/core/workers/chunks/{5c63b38160c7d063b8af.js → b780514be87a22b49b01.js} +1 -1
- package/assets/esri/core/workers/chunks/b792857a178da2dd77d6.js +1 -0
- package/assets/esri/core/workers/chunks/b819a9187426d0c146df.js +1 -0
- package/assets/esri/core/workers/chunks/{1d92da90fbbc3f98b201.js → b8d788e110c212a879ab.js} +1 -1
- package/assets/esri/core/workers/chunks/b94cd7eac5ff4a78dd5b.js +1 -0
- package/assets/esri/core/workers/chunks/b9d6f89f9b8e9d1bc787.js +1 -0
- package/assets/esri/core/workers/chunks/b9f40681af1fa00b5bbe.js +1 -0
- package/assets/esri/core/workers/chunks/{bc547cf814d6703cef59.js → bb95922cd4631d6f17fb.js} +1 -1
- package/assets/esri/core/workers/chunks/bcb5017500d144b73908.js +1 -0
- package/assets/esri/core/workers/chunks/bd862382f72ebd446b46.js +1 -0
- package/assets/esri/core/workers/chunks/bdd19dab276d20d5381a.js +1 -0
- package/assets/esri/core/workers/chunks/bee5e738ecf8680909c4.js +1 -0
- package/assets/esri/core/workers/chunks/{9be4438ce2c7180adadf.js → bf287f0e2ecb4532dc00.js} +1 -1
- package/assets/esri/core/workers/chunks/{5115059b012ef84407cf.js → bfb6566c27c09deb0929.js} +1 -1
- package/assets/esri/core/workers/chunks/c055c16379f5bb56e930.js +1 -0
- package/assets/esri/core/workers/chunks/c13e55b9efb0b532f7ee.js +1 -0
- package/assets/esri/core/workers/chunks/c1845682cc9a5aac8703.js +261 -0
- package/assets/esri/core/workers/chunks/c369d4266f38e9ea6592.js +1 -0
- package/assets/esri/core/workers/chunks/c3fae4f4522604a9c17e.js +1 -0
- package/assets/esri/core/workers/chunks/c4c25db769a78e677e33.js +1 -0
- package/assets/esri/core/workers/chunks/c50e4e8c6188e64e7d45.js +1 -0
- package/assets/esri/core/workers/chunks/c838cc1c786368b78598.js +1 -0
- package/assets/esri/core/workers/chunks/c8db0a4fb5bc982dc9fc.js +1 -0
- package/assets/esri/core/workers/chunks/{82adfa2dbd40e1becaf4.js → c97451f75c23be979476.js} +1 -1
- package/assets/esri/core/workers/chunks/ca118c42c0f609ca7912.js +1 -0
- package/assets/esri/core/workers/chunks/ca419858910af5505d3d.js +1 -0
- package/assets/esri/core/workers/chunks/cb17cd8aaf77238c0236.js +1 -0
- package/assets/esri/core/workers/chunks/{034dd8ee5152a12412cd.js → cba3316910ff088f4d77.js} +1 -1
- package/assets/esri/core/workers/chunks/cc414fd2e313d89d524d.js +1 -0
- package/assets/esri/core/workers/chunks/{7b8466f892a38a53c600.js → cce83896093279c70449.js} +1 -1
- package/assets/esri/core/workers/chunks/cda04571d7623c17ada2.js +1 -0
- package/assets/esri/core/workers/chunks/cea4b18e7f83c02922b1.js +1 -0
- package/assets/esri/core/workers/chunks/cf03d391d50a4c7aca4f.js +1 -0
- package/assets/esri/core/workers/chunks/d03f427442bb0c287d05.js +1 -0
- package/assets/esri/core/workers/chunks/d082de5dd83bd73d209b.js +1 -0
- package/assets/esri/core/workers/chunks/d08d3c6f21e6ba8268ca.js +1 -0
- package/assets/esri/core/workers/chunks/d36f17d32c654b1ac7fa.js +1 -0
- package/assets/esri/core/workers/chunks/d36fba71c52ea4e71546.js +1 -0
- package/assets/esri/core/workers/chunks/{18f980465db5a86153d1.js → d37a72111dffc4c4db70.js} +1 -1
- package/assets/esri/core/workers/chunks/d41ab2abcfacc87809b5.js +1 -0
- package/assets/esri/core/workers/chunks/d4ed094962a41d756c95.js +1 -0
- package/assets/esri/core/workers/chunks/d5561dff043789494845.js +1 -0
- package/assets/esri/core/workers/chunks/d66d58ed5d66520ab1bf.js +1 -0
- package/assets/esri/core/workers/chunks/d79ce047afbc034f6008.js +1 -0
- package/assets/esri/core/workers/chunks/d847c3cb2043a983145b.js +1 -0
- package/assets/esri/core/workers/chunks/d849bdaf5bdfdc37531a.js +1 -0
- package/assets/esri/core/workers/chunks/da6134c7883531f21afe.js +1 -0
- package/assets/esri/core/workers/chunks/{c48dfda8dcb9551606fb.js → dad39ddf0f8dfb0bef47.js} +1 -1
- package/assets/esri/core/workers/chunks/dadefe369f49e89a2610.js +1 -0
- package/assets/esri/core/workers/chunks/dccb46c7dce68528c72b.js +1 -0
- package/assets/esri/core/workers/chunks/ddafe402f1bc9e8285ef.js +1 -0
- package/assets/esri/core/workers/chunks/de9573871f64c01e9f01.js +1 -0
- package/assets/esri/core/workers/chunks/dedf678490572c500a19.js +30 -0
- package/assets/esri/core/workers/chunks/df174346a7e9b629a392.js +1 -0
- package/assets/esri/core/workers/chunks/df30053a10d4930924d5.js +1 -0
- package/assets/esri/core/workers/chunks/dfbdc72c7ea137e3841d.js +1 -0
- package/assets/esri/core/workers/chunks/e21b3490bfce75405e55.js +1 -0
- package/assets/esri/core/workers/chunks/e2c9393bec747f7876bb.js +1 -0
- package/assets/esri/core/workers/chunks/e3e966777f18164afcd8.js +1 -0
- package/assets/esri/core/workers/chunks/e4a2eefffe16cd5bb20f.js +1 -0
- package/assets/esri/core/workers/chunks/{d0983cc19d19c19c3478.js → e4aacfc1617ccf60bd5a.js} +1 -1
- package/assets/esri/core/workers/chunks/{3a526e1d18490b99332f.js → e5bb7ee670a3ba5ba3fe.js} +1 -1
- package/assets/esri/core/workers/chunks/e5c75459de85a6dd2f14.js +1 -0
- package/assets/esri/core/workers/chunks/{757982a73174aa7ab0d1.js → e6b5c015205d38abe037.js} +1 -1
- package/assets/esri/core/workers/chunks/e798ca23f02a2dd65bd4.js +1 -0
- package/assets/esri/core/workers/chunks/e94f2d6037fba042dc6e.js +1 -0
- package/assets/esri/core/workers/chunks/e9511627418c6864148a.js +1 -0
- package/assets/esri/core/workers/chunks/ec1a2e68957fae48e60b.js +30 -0
- package/assets/esri/core/workers/chunks/ec2e0b2e31fd53b81d0a.js +1 -0
- package/assets/esri/core/workers/chunks/ed552941eca621a51f16.js +1 -0
- package/assets/esri/core/workers/chunks/ee58f4bbc0a1f7d03df0.js +1 -0
- package/assets/esri/core/workers/chunks/f04cb48fc73635d0572f.js +1 -0
- package/assets/esri/core/workers/chunks/f06f591680c9e93e69f6.js +1 -0
- package/assets/esri/core/workers/chunks/f1d3cf674b6bea89e122.js +1 -0
- package/assets/esri/core/workers/chunks/f2ab8e49c7f17f488aa8.js +1 -0
- package/assets/esri/core/workers/chunks/{6a51499c6623ddce5f00.js → f2adf1227a795604d3b8.js} +1 -1
- package/assets/esri/core/workers/chunks/{57c003c6745d450558a7.js → f4aed2b6e92bd0474069.js} +1 -1
- package/assets/esri/core/workers/chunks/f4eda59ec1e816ecc827.js +1 -0
- package/assets/esri/core/workers/chunks/f5d7f69047e1b1116202.js +1 -0
- package/assets/esri/core/workers/chunks/f5d809d30cbb56be852d.js +1 -0
- package/assets/esri/core/workers/chunks/{2d92f0042facb55edcff.js → f65adaaa33d9f3b131f6.js} +1 -1
- package/assets/esri/core/workers/chunks/f8f0de841be17cd05c8f.js +1 -0
- package/assets/esri/core/workers/chunks/f9b654f801cb416e9e17.js +1 -0
- package/assets/esri/core/workers/chunks/fb34d6d96c8c0d53fcf6.js +1 -0
- package/assets/esri/core/workers/chunks/fb51f823b25c827c6b29.js +1 -0
- package/assets/esri/core/workers/chunks/fba8065a3a6fbd877e23.js +1 -0
- package/assets/esri/core/workers/chunks/fd47ee8598e37fea03fe.js +1 -0
- package/assets/esri/core/workers/chunks/fefbde2c2e527bb716ee.js +1 -0
- package/assets/esri/core/workers/chunks/ff089723a27859fe18d1.js +1 -0
- package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
- package/assets/esri/themes/base/_core.scss +0 -6
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/CutFillMinMaxDepth.glsl.js +2 -0
- package/chunks/CutFillTotalDepth.glsl.js +2 -0
- package/chunks/EdgeShader.glsl.js +9 -9
- package/chunks/GaussianSplat.glsl.js +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/config.js +1 -1
- package/editing/geometry/coordUtils.js +1 -1
- package/geohash/geohashUtils.js +1 -1
- package/geometry/support/aaBoundingRect.js +1 -1
- package/geometry/support/quantizationUtils.js +1 -1
- package/geometry/support/sphere.js +1 -1
- package/interfaces.d.ts +5 -0
- package/intl/date.js +1 -1
- package/kernel.js +1 -1
- package/layers/AnnotationFeatureLayer.d.ts +13 -3
- package/layers/DimensionFeatureLayer.d.ts +10 -3
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/graphics/sources/support/sourceUtils.js +1 -1
- package/layers/raster/formats/ImageCanvasDecoder.js +1 -1
- package/layers/raster/formats/Lerc.js +1 -1
- package/layers/raster/formats/RasterCodec.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/package.json +3 -3
- package/support/revision.js +1 -1
- package/views/2d/engine/vectorTiles/GeometryUtils.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/engine/webgl/effects/FeatureEffect.js +1 -1
- package/views/2d/engine/webgl/effects/HighlightEffect.js +1 -1
- package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
- package/views/2d/engine/webgl/effects/highlight/HighlightGradient.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitBlitShader.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/DebugOverlayShader.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HighlightShader.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/WorldExtentStencilShader.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/utility/BitBlitTechnique.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/utility/DebugOverlayTechnique.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/utility/HighlightTechnique.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/utility/WorldExtentClipTechnique.js +2 -0
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/support/DebugOverlay.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/SceneLayerWorkerHandle.js +1 -1
- package/views/3d/layers/i3s/I3SNode.js +1 -1
- package/views/3d/layers/i3s/SphereCone.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/support/cameraUtilsSpherical.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/util/emissionFilter.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/WeatherFader.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
- package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
- package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillComputation.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
- package/views/3d/webgl-engine/lib/Intersector.js +1 -1
- package/views/3d/webgl-engine/lib/IntersectorInterfaces.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/3d/webgl-engine/lib/PolygonIntersections2D.js +2 -0
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/AdjustProjectedPosition.glsl.js +1 -1
- package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/DiscardNonSilhouetteEdges.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShader.glsl.js +1 -1
- package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/EdgeUtil.glsl.js +1 -1
- package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/LineAmplitude.glsl.js +1 -1
- package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/LineOffset.glsl.js +1 -1
- package/views/3d/webgl-engine/{shaders/sources/edgeRenderer → lib/edgeRendering}/UnpackAttributes.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.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/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.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/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/BufferRange.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/CutFillMinMaxDepth.glsl.js +2 -0
- package/views/3d/webgl-engine/shaders/CutFillMinMaxDepthTechnique.js +2 -0
- package/views/3d/webgl-engine/shaders/{CutFillDepth.glsl.js → CutFillTotalDepth.glsl.js} +1 -1
- package/views/3d/webgl-engine/shaders/CutFillTotalDepthTechnique.js +2 -0
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js +1 -1
- package/views/Viewport2DMixin.js +1 -1
- package/views/input/BrowserEventSource.js +1 -1
- package/views/input/InputManager.js +1 -1
- package/views/interactive/snapping/snappingUtils.js +1 -1
- package/views/support/euclideanLengthMeasurementUtils.js +1 -1
- package/views/webgl/VertexAttributeLayouts.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/multipleChoiceInputUtils.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/Legend/support/relationshipRampUtils.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/utils.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/assets/esri/core/workers/chunks/02b043a3c5fa8bcb4c5b.js +0 -1
- package/assets/esri/core/workers/chunks/03437a8ef35c200dbf17.js +0 -1
- package/assets/esri/core/workers/chunks/0603cbd938ab619c706b.js +0 -1
- package/assets/esri/core/workers/chunks/08405116b5feb2d00101.js +0 -1
- package/assets/esri/core/workers/chunks/0a6e03263ab0906d8bcf.js +0 -1
- package/assets/esri/core/workers/chunks/0af6b87a3d77bb93b893.js +0 -1
- package/assets/esri/core/workers/chunks/0edd250159ec259601b3.js +0 -1
- package/assets/esri/core/workers/chunks/0f10d7d592c36ee2d1ea.js +0 -1
- package/assets/esri/core/workers/chunks/0f8fcbd0650b6a924f75.js +0 -1
- package/assets/esri/core/workers/chunks/0f976bfb7db98c2c0e05.js +0 -1
- package/assets/esri/core/workers/chunks/1040bce57ea63a6dbca4.js +0 -2
- package/assets/esri/core/workers/chunks/10510f76f8538c2dfb84.js +0 -1
- package/assets/esri/core/workers/chunks/1079914101d69a40b3eb.js +0 -1
- package/assets/esri/core/workers/chunks/11af659688cf963ea6cd.js +0 -1
- package/assets/esri/core/workers/chunks/15081b361fc42f40b865.js +0 -1
- package/assets/esri/core/workers/chunks/1599dc5309a4e60017ce.js +0 -261
- package/assets/esri/core/workers/chunks/181e98399732f425305d.js +0 -1
- package/assets/esri/core/workers/chunks/1837f97f720d255a1694.js +0 -1
- package/assets/esri/core/workers/chunks/18c4c437ded8bfbd3305.js +0 -1
- package/assets/esri/core/workers/chunks/18f4b2099299942aaf97.js +0 -1
- package/assets/esri/core/workers/chunks/1958facb000b6c16bfe4.js +0 -1
- package/assets/esri/core/workers/chunks/196e7515a43bd0026f49.js +0 -1
- package/assets/esri/core/workers/chunks/1a0903b1d2d5101977c6.js +0 -1
- package/assets/esri/core/workers/chunks/1aa7496a7dc95aae11ac.js +0 -1
- package/assets/esri/core/workers/chunks/1bd49e8d2657c72bf3f9.js +0 -1
- package/assets/esri/core/workers/chunks/1c263ffb7144e171a64f.js +0 -1
- package/assets/esri/core/workers/chunks/1d524690c4b66289bd20.js +0 -1
- package/assets/esri/core/workers/chunks/20fa2c3d4360afa5e136.js +0 -1
- package/assets/esri/core/workers/chunks/210ffc448c73a7bf63aa.js +0 -1
- package/assets/esri/core/workers/chunks/23f81f4a3d7a983eef23.js +0 -1
- package/assets/esri/core/workers/chunks/2540beb53f1443a070d7.js +0 -1
- package/assets/esri/core/workers/chunks/25c1f5e2561986330b80.js +0 -1
- package/assets/esri/core/workers/chunks/2757c4bf0280e27f3484.js +0 -1
- package/assets/esri/core/workers/chunks/294537e1ac43e8dfeaea.js +0 -1
- package/assets/esri/core/workers/chunks/29a1d0659bbc5a039864.js +0 -1
- package/assets/esri/core/workers/chunks/29df3f829006719b2680.js +0 -1
- package/assets/esri/core/workers/chunks/2a344bca6837ca3b5c41.js +0 -2
- package/assets/esri/core/workers/chunks/2a5dbed88bbd96cfac9f.js +0 -1
- package/assets/esri/core/workers/chunks/2b044c8fab2055a8818d.js +0 -1
- package/assets/esri/core/workers/chunks/2d956dacb26d71d1c174.js +0 -1
- package/assets/esri/core/workers/chunks/2da797ae5af9d2ede42d.js +0 -1
- package/assets/esri/core/workers/chunks/2dbcdfdf000226bfe746.js +0 -1
- package/assets/esri/core/workers/chunks/2e495a28494c2351837b.js +0 -1
- package/assets/esri/core/workers/chunks/2ef80e003b4f0393ac2e.js +0 -1
- package/assets/esri/core/workers/chunks/2fc3e43b64300014dddc.js +0 -1
- package/assets/esri/core/workers/chunks/30cf84a47ebefd180bb7.js +0 -1
- package/assets/esri/core/workers/chunks/314bc1b356d43bfa72a8.js +0 -1
- package/assets/esri/core/workers/chunks/34a024eda22d228e1fbe.js +0 -1
- package/assets/esri/core/workers/chunks/37e823202424c11076cb.js +0 -1
- package/assets/esri/core/workers/chunks/38a76bc4ef5c10ab0488.js +0 -1
- package/assets/esri/core/workers/chunks/390f2beee8e3f2a302e4.js +0 -1
- package/assets/esri/core/workers/chunks/3a76fffa2016c16d7989.js +0 -1398
- package/assets/esri/core/workers/chunks/3c2eb386c0165150e039.js +0 -1
- package/assets/esri/core/workers/chunks/3e4b379a6a197b9c4e6b.js +0 -1
- package/assets/esri/core/workers/chunks/3ec91474658eae87b832.js +0 -1
- package/assets/esri/core/workers/chunks/3eee32db0e9a5086b9a8.js +0 -1
- package/assets/esri/core/workers/chunks/406c7723e8db470822bf.js +0 -1
- package/assets/esri/core/workers/chunks/41aca863324387576cf8.js +0 -1
- package/assets/esri/core/workers/chunks/442424200e7475e9a08f.js +0 -1
- package/assets/esri/core/workers/chunks/4452fd0c59431904d533.js +0 -1
- package/assets/esri/core/workers/chunks/448e0596005cba9a4225.js +0 -1
- package/assets/esri/core/workers/chunks/4545cf12ad0824ce6b41.js +0 -1
- package/assets/esri/core/workers/chunks/45530a49fa1f09d1682e.js +0 -1
- package/assets/esri/core/workers/chunks/459e89d1b94a3b204d20.js +0 -30
- package/assets/esri/core/workers/chunks/45b2e58051f42ebd236e.js +0 -1
- package/assets/esri/core/workers/chunks/4611cf051c3c396fdf96.js +0 -1
- package/assets/esri/core/workers/chunks/46e3d33e44e5398221e2.js +0 -1
- package/assets/esri/core/workers/chunks/47656ec12401e53f4bd3.js +0 -1
- package/assets/esri/core/workers/chunks/47948c72bc01bd173c20.js +0 -2
- package/assets/esri/core/workers/chunks/48f1c3a7c9f16d6896f6.js +0 -1
- package/assets/esri/core/workers/chunks/49713dfa4c8b788079d1.js +0 -1
- package/assets/esri/core/workers/chunks/4a8201e09bc3ad5cc00b.js +0 -1
- package/assets/esri/core/workers/chunks/4ad86d6b1be07c97b6f6.js +0 -1
- package/assets/esri/core/workers/chunks/4be0c64bbf2449d57ea5.js +0 -1
- package/assets/esri/core/workers/chunks/4d57c771af4137f74bfb.js +0 -1
- package/assets/esri/core/workers/chunks/4f25aac84d9eb10cac83.js +0 -1
- package/assets/esri/core/workers/chunks/50b34e246f8eef2f6e07.js +0 -1
- package/assets/esri/core/workers/chunks/514ab968c0d75062e6ab.js +0 -1
- package/assets/esri/core/workers/chunks/51838d55d8ec4ce70398.js +0 -1
- package/assets/esri/core/workers/chunks/557300ec03bae84d8afc.js +0 -1
- package/assets/esri/core/workers/chunks/57abf838fcff0f0e2c5e.js +0 -1
- package/assets/esri/core/workers/chunks/57dd017fed2943d24e3d.js +0 -1
- package/assets/esri/core/workers/chunks/59801b2ccaaf4b394e02.js +0 -1
- package/assets/esri/core/workers/chunks/5a2d2dcdfa8d958f277d.js +0 -1
- package/assets/esri/core/workers/chunks/5a62c9f64db4fcae5e52.js +0 -1
- package/assets/esri/core/workers/chunks/5aebecb5c2b3e7887127.js +0 -1
- package/assets/esri/core/workers/chunks/5e68b74fd548c7cdba36.js +0 -1
- package/assets/esri/core/workers/chunks/5f360492560ae07083a6.js +0 -1
- package/assets/esri/core/workers/chunks/6022f43ebd58e21c737a.js +0 -1
- package/assets/esri/core/workers/chunks/6048c89fc4dcd2e9988d.js +0 -1
- package/assets/esri/core/workers/chunks/61efc7f5fab1c2b1f764.js +0 -1
- package/assets/esri/core/workers/chunks/62b137a795e487fa06a1.js +0 -1
- package/assets/esri/core/workers/chunks/632de34ebd2f44b4423d.js +0 -1
- package/assets/esri/core/workers/chunks/63ca17f569407c89bde1.js +0 -30
- package/assets/esri/core/workers/chunks/643c7506f8fe8e06acd2.js +0 -1
- package/assets/esri/core/workers/chunks/6596b12bb286a0b45a68.js +0 -1
- package/assets/esri/core/workers/chunks/65cc9a48ac95523f7aa8.js +0 -1
- package/assets/esri/core/workers/chunks/661f50cb97604453f942.js +0 -1
- package/assets/esri/core/workers/chunks/686c1a1b794ebe1a0341.js +0 -1
- package/assets/esri/core/workers/chunks/6896a6dd36fa91a27151.js +0 -1
- package/assets/esri/core/workers/chunks/68bc674affe2f7269c40.js +0 -1
- package/assets/esri/core/workers/chunks/6c02493a1c1deff49c7e.js +0 -1
- package/assets/esri/core/workers/chunks/6cdf1db30793133294dd.js +0 -1
- package/assets/esri/core/workers/chunks/6ff6783f89ecd3a5e752.js +0 -1
- package/assets/esri/core/workers/chunks/70763c7b68d8abe8d5fe.js +0 -1
- package/assets/esri/core/workers/chunks/716b1f073e3cd807abd3.js +0 -1
- package/assets/esri/core/workers/chunks/71a3f05cb86ae2920f8d.js +0 -1
- package/assets/esri/core/workers/chunks/71b672259bac2befd9c7.js +0 -1
- package/assets/esri/core/workers/chunks/71c996e1ae84d9daddf2.js +0 -1
- package/assets/esri/core/workers/chunks/723bb56de2324b41df4e.js +0 -1
- package/assets/esri/core/workers/chunks/73f61107cb7e6d30bf03.js +0 -1
- package/assets/esri/core/workers/chunks/752c34cee981862add89.js +0 -1
- package/assets/esri/core/workers/chunks/75915f81caaf9e5345a9.js +0 -1
- package/assets/esri/core/workers/chunks/75baf6dff6e7658b17b3.js +0 -1
- package/assets/esri/core/workers/chunks/760dfd585b6c2c1937ce.js +0 -1
- package/assets/esri/core/workers/chunks/76449e50222111ba0eb1.js +0 -1
- package/assets/esri/core/workers/chunks/76789f46b2c65d219cf9.js +0 -1
- package/assets/esri/core/workers/chunks/76bed5497f42f23a27ed.js +0 -1
- package/assets/esri/core/workers/chunks/7849cf0352c0a604e164.js +0 -1
- package/assets/esri/core/workers/chunks/7908aed639521cf572e8.js +0 -1
- package/assets/esri/core/workers/chunks/7d65a8ec5e1f871b9321.js +0 -1
- package/assets/esri/core/workers/chunks/7e4093f42795ba2f8cfd.js +0 -1
- package/assets/esri/core/workers/chunks/7f849c8255140be6097f.js +0 -1
- package/assets/esri/core/workers/chunks/804c31973f7d116523cb.js +0 -1
- package/assets/esri/core/workers/chunks/81726d997a2d34449bb2.js +0 -1
- package/assets/esri/core/workers/chunks/81883bca8a79ee2ddb00.js +0 -1
- package/assets/esri/core/workers/chunks/832ecc1f7d45774c4726.js +0 -1
- package/assets/esri/core/workers/chunks/8461f50e9875db4ccfec.js +0 -1
- package/assets/esri/core/workers/chunks/8598997340682113a2a5.js +0 -1
- package/assets/esri/core/workers/chunks/860a0f9d20f53db1caf4.js +0 -1
- package/assets/esri/core/workers/chunks/867e39bb444947c93586.js +0 -1
- package/assets/esri/core/workers/chunks/88ec63501fa2f6fdadca.js +0 -1
- package/assets/esri/core/workers/chunks/8980767c5b626e4dc3b9.js +0 -1
- package/assets/esri/core/workers/chunks/89dd1b1acb0d69264c93.js +0 -1
- package/assets/esri/core/workers/chunks/8a66a3e8391206f7d8aa.js +0 -1
- package/assets/esri/core/workers/chunks/8a8b7ac6693bdfbebf07.js +0 -1
- package/assets/esri/core/workers/chunks/8ad5e80e911419c1685a.js +0 -1
- package/assets/esri/core/workers/chunks/8b526ca2dd6fc6a7e921.js +0 -1
- package/assets/esri/core/workers/chunks/8e80441eddef1b5be8b9.js +0 -1
- package/assets/esri/core/workers/chunks/8f16a358ed83d2264415.js +0 -1
- package/assets/esri/core/workers/chunks/8fce15ce4cfdccf407f3.js +0 -1
- package/assets/esri/core/workers/chunks/8fd63cb38036f331a803.js +0 -1
- package/assets/esri/core/workers/chunks/91c5205d1274c7f190d5.js +0 -1
- package/assets/esri/core/workers/chunks/92341f36a8b15f34bcca.js +0 -1
- package/assets/esri/core/workers/chunks/937cf55b3b9d324eea73.js +0 -1
- package/assets/esri/core/workers/chunks/93d4bda22bde33fafa57.js +0 -1
- package/assets/esri/core/workers/chunks/9639b1dd27ccc17ee21e.js +0 -1
- package/assets/esri/core/workers/chunks/966d002acec8c72be56a.js +0 -1
- package/assets/esri/core/workers/chunks/986d8c3907aeeb18c4f6.js +0 -1
- package/assets/esri/core/workers/chunks/98e489c2b85feded7776.js +0 -1
- package/assets/esri/core/workers/chunks/9aef0b87f471626abd66.js +0 -1
- package/assets/esri/core/workers/chunks/9ba9a3705623679bc305.js +0 -1
- package/assets/esri/core/workers/chunks/a188d0767825d322f96d.js +0 -1
- package/assets/esri/core/workers/chunks/a4d3cbc02dc1186a9a6d.js +0 -1
- package/assets/esri/core/workers/chunks/a638de0102c3990403d1.js +0 -1
- package/assets/esri/core/workers/chunks/a6bda5f17fb1c03f7e4b.js +0 -1
- package/assets/esri/core/workers/chunks/a6dc01847f39413f78b8.js +0 -1
- package/assets/esri/core/workers/chunks/acc733b4881c3e4e503e.js +0 -1
- package/assets/esri/core/workers/chunks/b022debf9e0bc2bff0e2.js +0 -1
- package/assets/esri/core/workers/chunks/b09935d0105d50a0971b.js +0 -1
- package/assets/esri/core/workers/chunks/b12fc1b5a9da97346684.js +0 -1
- package/assets/esri/core/workers/chunks/b4323e69e624c6b51754.js +0 -1
- package/assets/esri/core/workers/chunks/b45e91249a8ea1559a2b.js +0 -1
- package/assets/esri/core/workers/chunks/b50a42a9f96515beb929.js +0 -1
- package/assets/esri/core/workers/chunks/b5141f240ca79729686d.js +0 -1
- package/assets/esri/core/workers/chunks/b549a4d4b1a34bee8beb.js +0 -1
- package/assets/esri/core/workers/chunks/bb89b6fd93513c61b2d3.js +0 -1
- package/assets/esri/core/workers/chunks/bc553ecc8cbcc1b02717.js +0 -1
- package/assets/esri/core/workers/chunks/bcba02f61cf0abcb5600.js +0 -1
- package/assets/esri/core/workers/chunks/bccc199af4e2e49f7acd.js +0 -1
- package/assets/esri/core/workers/chunks/bd0f488e228a75fbefb3.js +0 -30
- package/assets/esri/core/workers/chunks/bd155794e9bc16dd0474.js +0 -1
- package/assets/esri/core/workers/chunks/bf6ae205fbfbfcd1a0ee.js +0 -1
- package/assets/esri/core/workers/chunks/c148ad0ea9258046ac1f.js +0 -1
- package/assets/esri/core/workers/chunks/c228b058dd91bf0e1102.js +0 -1
- package/assets/esri/core/workers/chunks/c4e44fde4bc4ff89e2bc.js +0 -1
- package/assets/esri/core/workers/chunks/c4fc85281ca83af7abaf.js +0 -1
- package/assets/esri/core/workers/chunks/c610ccbfdb1c5b06c217.js +0 -1
- package/assets/esri/core/workers/chunks/c660a5a1086870a3a6b9.js +0 -1
- package/assets/esri/core/workers/chunks/c8b7ffc5cb3f1493129e.js +0 -1
- package/assets/esri/core/workers/chunks/c9057b0ad2c2bae4a8ce.js +0 -1
- package/assets/esri/core/workers/chunks/c93a68618674b38b932e.js +0 -1
- package/assets/esri/core/workers/chunks/c961aff385e38b081204.js +0 -1
- package/assets/esri/core/workers/chunks/cc0efa716b8414a44398.js +0 -1
- package/assets/esri/core/workers/chunks/cd66bd30f654fe571e57.js +0 -1
- package/assets/esri/core/workers/chunks/cd88e6f02bc2e5b67abf.js +0 -1
- package/assets/esri/core/workers/chunks/cf826787ab8d4b27ad80.js +0 -1
- package/assets/esri/core/workers/chunks/cfbbfa5edffa57bd3a8e.js +0 -1
- package/assets/esri/core/workers/chunks/d0217187aed8bb7038f4.js +0 -1
- package/assets/esri/core/workers/chunks/d1928a8c86a8966e5582.js +0 -1
- package/assets/esri/core/workers/chunks/d2745886ba5a86fd5c4c.js +0 -680
- package/assets/esri/core/workers/chunks/d4c341b15d9244276fb9.js +0 -1
- package/assets/esri/core/workers/chunks/d5faab9799891e5da5a8.js +0 -1
- package/assets/esri/core/workers/chunks/d811924acc9c0be95bba.js +0 -1
- package/assets/esri/core/workers/chunks/db90fb8ac96579259566.js +0 -1
- package/assets/esri/core/workers/chunks/dd0acd0f8b96839b4f24.js +0 -2
- package/assets/esri/core/workers/chunks/dd785e595cd08b2d6284.js +0 -1
- package/assets/esri/core/workers/chunks/e0b47b08ae2c36c76fa2.js +0 -1
- package/assets/esri/core/workers/chunks/e1ddb8e4977b317fd40c.js +0 -1
- package/assets/esri/core/workers/chunks/e4015870412edd69453c.js +0 -1
- package/assets/esri/core/workers/chunks/e7cb1b72f0b54e845741.js +0 -1
- package/assets/esri/core/workers/chunks/e7e7c7cbfd8542bd7a46.js +0 -1
- package/assets/esri/core/workers/chunks/e80376832050a4b6d28a.js +0 -1
- package/assets/esri/core/workers/chunks/e8a885b576da3ec145d3.js +0 -1
- package/assets/esri/core/workers/chunks/e95ee94027c1934086d8.js +0 -1
- package/assets/esri/core/workers/chunks/e961c6140c39921816a8.js +0 -1
- package/assets/esri/core/workers/chunks/eb7daa0f6610983ff8db.js +0 -1
- package/assets/esri/core/workers/chunks/eb842cf470ce28a73187.js +0 -1
- package/assets/esri/core/workers/chunks/eeea5710275c967e8d51.js +0 -1
- package/assets/esri/core/workers/chunks/ef32e454012f3b0e3f77.js +0 -1
- package/assets/esri/core/workers/chunks/f31a8e76f1dde23c0900.js +0 -1
- package/assets/esri/core/workers/chunks/f50bba74ae72c07e131a.js +0 -1
- package/assets/esri/core/workers/chunks/f58ddf37dee066a5c0d8.js +0 -1
- package/assets/esri/core/workers/chunks/f80cadcc2a588da63b38.js +0 -1
- package/assets/esri/core/workers/chunks/f83e3ad67b60744afd6d.js +0 -1
- package/assets/esri/core/workers/chunks/f859c53432f258af77e3.js +0 -2
- package/assets/esri/core/workers/chunks/f8bbb52b865a0a242140.js +0 -1
- package/assets/esri/core/workers/chunks/f8f3579d0c1b65762902.js +0 -1
- package/assets/esri/core/workers/chunks/f9592bcdd9988199a7ea.js +0 -1
- package/assets/esri/core/workers/chunks/fedbeb488d5d7c07c7dc.js +0 -1
- package/assets/esri/core/workers/chunks/ff7e1eb2366d4301d288.js +0 -1
- package/assets/esri/themes/base/_colorVariables.scss +0 -1
- package/assets/esri/themes/base/widgets/_DatePicker.scss +0 -170
- package/assets/esri/themes/base/widgets/_FeatureUtilityNetworkAssociationList.scss +0 -13
- package/assets/esri/themes/base/widgets/_TimePicker.scss +0 -15
- package/chunks/CutFillDepth.glsl.js +0 -2
- package/core/PLRUCache.js +0 -2
- package/views/2d/engine/webgl/BitBlitRenderer.js +0 -2
- package/views/2d/engine/webgl/WorldExtentClipRenderer.js +0 -2
- package/views/2d/engine/webgl/effects/highlight/HighlightRenderer.js +0 -2
- package/views/2d/engine/webgl/shaders/BitBlitPrograms.js +0 -2
- package/views/2d/engine/webgl/shaders/HighlightPrograms.js +0 -2
- package/views/2d/engine/webgl/shaders/StencilPrograms.js +0 -2
- package/views/3d/webgl-engine/shaders/CutFillDepthTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/CutFillDepthTechniqueConfiguration.js +0 -2
- package/views/support/euclideanAreaMeasurementUtils.js +0 -2
- package/widgets/ShadowCast/ShadowVisualizationType.js +0 -2
- /package/assets/esri/core/workers/chunks/{47948c72bc01bd173c20.js.LICENSE.txt → 24c0b3586bb6500eda53.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{f859c53432f258af77e3.js.LICENSE.txt → 394716bd1ecfd638d708.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{1040bce57ea63a6dbca4.js.LICENSE.txt → 55af58b6dff52dc040fe.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{dd0acd0f8b96839b4f24.js.LICENSE.txt → 5b18696109fe84a1010a.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4505],{5482(t,e,r){function n(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function i(t,e,r){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}r.d(e,{Cg:()=>n,hk:()=>o,mS:()=>i}),Object.create,Object.create;var s="function"==typeof SuppressedError?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function o(t){function e(e){t.error=t.hasError?new s(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var r,n=0;return function i(){for(;r=t.stack.pop();)try{if(!r.async&&1===n)return n=0,t.stack.push(r),Promise.resolve().then(i);if(r.dispose){var s=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(s).then(i,function(t){return e(t),i()})}else n|=1}catch(t){e(t)}if(1===n)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},83349(t,e,r){function n(t,e,r){r=r||2;var n,s,a,l,h,c,f,x=e&&e.length,y=x?e[0]*r:t.length,d=i(t,0,y,r,!0),p=[];if(!d||d.next===d.prev)return p;if(x&&(d=u(t,e,d,r)),t.length>80*r){n=a=t[0],s=l=t[1];for(var g=r;g<y;g+=r)(h=t[g])<n&&(n=h),(c=t[g+1])<s&&(s=c),h>a&&(a=h),c>l&&(l=c);f=0!==(f=Math.max(a-n,l-s))?1/f:0}return o(d,p,r,n,s,f),p}function i(t,e,r,n,i){var s,o;if(i===V(t,e,r,n)>0)for(s=e;s<r;s+=n)o=B(s,t[s],t[s+1],o);else for(s=r-n;s>=e;s-=n)o=B(s,t[s],t[s+1],o);if(o&&I(o,o.next)){var a=o.next;P(o),o=a}return o}function s(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!I(n,n.next)&&0!==w(n.prev,n,n.next))n=n.next;else{var i=n.prev;if(P(n),(n=e=i)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,u,f){if(t){!f&&u&&p(t,n,i,u);for(var x,y,d=t;t.prev!==t.next;)if(x=t.prev,y=t.next,u?l(t,n,i,u):a(t))e.push(x.i/r),e.push(t.i/r),e.push(y.i/r),P(t),t=y.next,d=y.next;else if((t=y)===d){f?1===f?o(t=h(s(t),e,r),e,r,n,i,u,2):2===f&&c(t,e,r,n,i,u):o(s(t),e,r,n,i,u,1);break}}}function a(t){var e=t.prev,r=t,n=t.next;if(w(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(m(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&w(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,s=t,o=t.next;if(w(i,s,o)>=0)return!1;for(var a=i.x<s.x?i.x<o.x?i.x:o.x:s.x<o.x?s.x:o.x,l=i.y<s.y?i.y<o.y?i.y:o.y:s.y<o.y?s.y:o.y,h=i.x>s.x?i.x>o.x?i.x:o.x:s.x>o.x?s.x:o.x,c=i.y>s.y?i.y>o.y?i.y:o.y:s.y>o.y?s.y:o.y,u=g(a,l,e,r,n),f=g(h,c,e,r,n),x=t.prevZ,y=t.nextZ;x&&x.z>=u&&y&&y.z<=f;){if(x!==t.prev&&x!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,x.x,x.y)&&w(x.prev,x,x.next)>=0)return!1;if(x=x.prevZ,y!==t.prev&&y!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,y.x,y.y)&&w(y.prev,y,y.next)>=0)return!1;y=y.nextZ}for(;x&&x.z>=u;){if(x!==t.prev&&x!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,x.x,x.y)&&w(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;y&&y.z<=f;){if(y!==t.prev&&y!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,y.x,y.y)&&w(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}function h(t,e,r){var n=t;do{var i=n.prev,o=n.next.next;!I(i,o)&&v(i,n,n.next,o)&&M(i,o)&&M(o,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(o.i/r),P(n),P(n.next),n=t=o),n=n.next}while(n!==t);return s(n)}function c(t,e,r,n,i,a){var l=t;do{for(var h=l.next.next;h!==l.prev;){if(l.i!==h.i&&b(l,h)){var c=L(l,h);return l=s(l,l.next),c=s(c,c.next),o(l,e,r,n,i,a),void o(c,e,r,n,i,a)}h=h.next}l=l.next}while(l!==t)}function u(t,e,r,n){var o,a,l,h=[];for(o=0,a=e.length;o<a;o++)(l=i(t,e[o]*n,o<a-1?e[o+1]*n:t.length,n,!1))===l.next&&(l.steiner=!0),h.push(_(l));for(h.sort(f),o=0;o<h.length;o++)r=s(r=y(h[o],r),r.next);return r}function f(t,e){return t.x-e.x}function x(t){if(t.next.prev===t)return t;let e=t;for(;;){const r=e.next;if(r.prev===e||r===e||r===t)break;e=r}return e}function y(t,e){var r=function(t,e){var r,n=e,i=t.x,s=t.y,o=-1/0;do{if(s<=n.y&&s>=n.next.y&&n.next.y!==n.y){var a=n.x+(s-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=i&&a>o){if(o=a,a===i){if(s===n.y)return n;if(s===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,h=r,c=r.x,u=r.y,f=1/0;n=r;do{i>=n.x&&n.x>=c&&i!==n.x&&m(s<u?i:o,s,c,u,s<u?o:i,s,n.x,n.y)&&(l=Math.abs(s-n.y)/(i-n.x),M(n,t)&&(l<f||l===f&&(n.x>r.x||n.x===r.x&&d(r,n)))&&(r=n,f=l)),n=n.next}while(n!==h);return r}(t,e);if(!r)return e;var n=L(r,t),i=s(r,r.next);let o=x(n);return s(o,o.next),i=x(i),x(e===r?i:e)}function d(t,e){return w(t.prev,t,e.prev)<0&&w(e.next,t,t.next)<0}function p(t,e,r,n){var i=t;do{null===i.z&&(i.z=g(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,s,o,a,l,h=1;do{for(r=t,t=null,s=null,o=0;r;){for(o++,n=r,a=0,e=0;e<h&&(a++,n=n.nextZ);e++);for(l=h;a>0||l>0&&n;)0!==a&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,a--):(i=n,n=n.nextZ,l--),s?s.nextZ=i:t=i,i.prevZ=s,s=i;r=n}s.nextZ=null,h*=2}while(o>1)}(i)}function g(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function _(t){var e=t,r=t;do{(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next}while(e!==t);return r}function m(t,e,r,n,i,s,o,a){return(i-o)*(e-a)-(t-o)*(s-a)>=0&&(t-o)*(n-a)-(r-o)*(e-a)>=0&&(r-o)*(s-a)-(i-o)*(n-a)>=0}function b(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&v(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&(M(t,e)&&M(e,t)&&function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,s=(t.y+e.y)/2;do{r.y>s!=r.next.y>s&&r.next.y!==r.y&&i<(r.next.x-r.x)*(s-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)&&(w(t.prev,t,e.prev)||w(t,e.prev,e))||I(t,e)&&w(t.prev,t,t.next)>0&&w(e.prev,e,e.next)>0)}function w(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function I(t,e){return t.x===e.x&&t.y===e.y}function v(t,e,r,n){var i=T(w(t,e,r)),s=T(w(t,e,n)),o=T(w(r,n,t)),a=T(w(r,n,e));return i!==s&&o!==a||!(0!==i||!A(t,r,e))||!(0!==s||!A(t,n,e))||!(0!==o||!A(r,t,n))||!(0!==a||!A(r,e,n))}function A(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function T(t){return t>0?1:t<0?-1:0}function M(t,e){return w(t.prev,t,t.next)<0?w(t,e,t.next)>=0&&w(t,t.prev,e)>=0:w(t,e,t.prev)<0||w(t,t.next,e)<0}function L(t,e){var r=new k(t.i,t.x,t.y),n=new k(e.i,e.x,e.y),i=t.next,s=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,s.next=n,n.prev=s,n}function B(t,e,r,n){var i=new k(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function P(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function k(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function V(t,e,r,n){for(var i=0,s=e,o=r-n;s<r;s+=n)i+=(t[o]-t[s])*(t[s+1]+t[o+1]),o=s;return i}r.d(e,{e:()=>n}),n.deviation=function(t,e,r,n){var i=e&&e.length,s=i?e[0]*r:t.length,o=Math.abs(V(t,0,s,r));if(i)for(var a=0,l=e.length;a<l;a++){var h=e[a]*r,c=a<l-1?e[a+1]*r:t.length;o-=Math.abs(V(t,h,c,r))}var u=0;for(a=0;a<n.length;a+=3){var f=n[a]*r,x=n[a+1]*r,y=n[a+2]*r;u+=Math.abs((t[f]-t[y])*(t[x+1]-t[f+1])-(t[f]-t[x])*(t[y+1]-t[f+1]))}return 0===o&&0===u?0:Math.abs((u-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var s=0;s<t[i].length;s++)for(var o=0;o<e;o++)r.vertices.push(t[i][s][o]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r}},32488(t,e,r){r.d(e,{A:()=>T});const n=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],i=["آ","أ","إ","ا"],s=["ﻵ","ﻷ","ﻹ","ﻻ"],o=["ﻶ","ﻸ","ﻺ","ﻼ"],a=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],l=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],h=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],c=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],u=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],x=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],y=["ء","ف"],d=["غ","ي"],p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],g=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],_=10,m=11,b=12,w=18,I=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],v=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107],A=[[w,w,w,w,w,w,w,w,w,6,5,6,8,5,w,w,w,w,w,w,w,w,w,w,w,w,w,w,5,5,5,6,8,4,4,m,m,m,4,4,4,4,4,_,9,_,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,w,w,w,w,w,w,5,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,9,4,m,m,m,m,4,4,4,4,0,4,4,w,4,4,m,m,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,1,b,1,b,b,1,b,b,1,b,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,m,m,7,9,7,4,4,b,b,b,b,b,b,b,b,b,b,b,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,3,3,3,3,3,3,3,3,3,3,m,3,3,7,7,7,b,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,b,b,b,b,b,b,b,3,4,b,b,b,b,b,b,7,7,b,b,4,b,b,b,b,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,b,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,b,b,b,b,b,b,b,b,b,b,b,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,b,b,b,b,b,b,b,b,b,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,w,w,w,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,m,m,m,m,m,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,w,w,w,w,w,4,4,4,4,4,w,w,w,w,w,w,2,0,4,4,2,2,2,2,2,2,_,_,4,4,4,0,2,2,2,2,2,2,2,2,2,2,_,_,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,1,b,1,1,1,1,1,1,1,1,1,1,_,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,b,b,b,b,b,b,b,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,m,4,4,_,_,4,4,4,4,4,m,m,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,w],[4,4,4,m,m,m,4,4,4,4,4,_,9,_,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,m,m,4,4,4,m,m,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class T{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,r){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,r){K=[],H=[];for(let n=0;n<r;n++)t[n]=n,e[n]=n,K[n]=n}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,r))return t;e=this.inputFormat,r=this.outputFormat;let n=t;const a=J,c=j(e.charAt(1)),f=j(r.charAt(1)),y=(e.startsWith("I")?"L":e.charAt(0))+c,d=(r.startsWith("I")?"L":r.charAt(0))+f,p=e.charAt(2)+r.charAt(2);a.defInFormat=y,a.defOutFormat=d,a.defSwap=p;const g=M(t,y,d,p,a);let _=!1;return"R"===r.charAt(1)?_=!0:"C"!==r.charAt(1)&&"D"!==r.charAt(1)||(_="rtl"===this.checkContextual(g)),this.sourceToTarget=K,this.targetToSource=function(t){const e=new Array(t.length);for(let r=0;r<t.length;r++)e[t[r]]=r;return e}(this.sourceToTarget),Y=this.targetToSource,n=e.charAt(3)===r.charAt(3)?g:"S"===r.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);const r=(e=String(e)).split("");let n=0,i=1,a=r.length;t||(n=r.length-1,i=-1,a=1);const c=function(t,e,r,n){let i=0;const a=[];let c=0;for(let f=e;f*r<n;f+=r)if(R(t[f])||G(t[f])){if("ل"===t[f]&&D(t,f+r,r,n)){t[f]=Z(t[f+r],0===i?s:o),f+=r,W(t,f,r,n),a[c]=f,c++,i=0;continue}const e=t[f];1===i?t[f]=E(t,f+r,r,n)?z(t[f]):O(t[f],h):!0===E(t,f+r,r,n)?t[f]=O(t[f],u):t[f]=O(t[f],l),G(e)||(i=1),!0===N(e)&&(i=0)}else i=0;return a}(r,n,i,a);let f="";for(let e=0;e<r.length;e++)S(c,c.length,e)>-1?(q(Y,e,!t,-1),K.splice(e,1)):f+=r[e];return f}(_,g):function(t,e){if(0===t.length)return"";void 0===e&&(e=!0);let r="";const n=(t=String(t)).split("");for(let s=0;s<t.length;s++){let o=!1;if(n[s]>="ﹰ"&&n[s]<"\ufeff"){const a=t.charCodeAt(s);n[s]>="ﻵ"&&n[s]<="ﻼ"?(e?(s>0&&" "===n[s-1]?r=r.slice(0,-1)+"ل":(r+="ل",o=!0),r+=i[(a-65269)/2]):(r+=i[(a-65269)/2],r+="ل",s+1<t.length&&" "===n[s+1]?s++:o=!0),o&&(q(Y,s,!0,1),K.splice(s,0,K[s]))):r+=x[a-65136]}else r+=n[s]}return r}(g,_),this.sourceToTarget=K,this.targetToSource=Y,this.levels=H,n}_inputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=L(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch(t){}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return rt.test(t)}}function M(t,e,r,n,i){const s=function(t,e,r){if(void 0===e.inFormat&&(e.inFormat=r.defInFormat),void 0===e.outFormat&&(e.outFormat=r.defOutFormat),void 0===e.swap&&(e.swap=r.defSwap),e.inFormat===e.outFormat)return e;const n=e.inFormat.slice(0,1),i=e.outFormat.slice(0,1);let s,o=e.inFormat.slice(1,4),a=e.outFormat.slice(1,4);return o.startsWith("C")&&(s=L(t),o="ltr"===s||"rtl"===s?s.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=n+o),a.startsWith("C")&&(s=L(t),"rtl"===s?a="RTL":"ltr"===s?(s=function(t){const e=t.split("");return e.reverse(),L(e.join(""))}(t),a=s.toUpperCase()):a="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=i+a),e}(t,{inFormat:e,outFormat:r,swap:n},i);if(s.inFormat===s.outFormat)return t;e=s.inFormat,r=s.outFormat,n=s.swap;const o=e.slice(0,1),a=e.slice(1,4),l=r.slice(0,1),h=r.slice(1,4);if(i.inFormat=e,i.outFormat=r,i.swap=n,"L"===o&&"VLTR"===r){if("LTR"===a)return i.dir=X,B(t,i);if("RTL"===a)return i.dir=tt,B(t,i)}if("V"===o&&"V"===l)return i.dir="RTL"===a?tt:X,V(t,i);if("L"===o&&"VRTL"===r)return"LTR"===a?(i.dir=X,t=B(t,i)):(i.dir=tt,t=B(t,i)),V(t);if("VLTR"===e&&"LLTR"===r)return i.dir=X,B(t,i);if("V"===o&&"L"===l&&a!==h)return t=V(t),"RTL"===a?M(t,"LLTR","VLTR",n,i):M(t,"LRTL","VRTL",n,i);if("VRTL"===e&&"LRTL"===r)return M(t,"LRTL","VRTL",n,i);if("L"===o&&"L"===l){const e=i.swap;return i.swap=e.slice(0,1)+"N","RTL"===a?(i.dir=tt,t=B(t,i),i.swap="N"+e.slice(1,3),i.dir=X,t=B(t,i)):(i.dir=X,t=B(t,i),i.swap="N"+e.slice(1,3),t=M(t,"VLTR","LRTL",i.swap,i)),t}return t}function L(t){const e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function B(t,e){const r=t.split(""),n=[];return P(r,n,e),function(t,e,r){if(0!==r.hiLevel&&r.swap[0]!==r.swap[1])for(let r=0;r<t.length;r++)1===e[r]&&(t[r]=F(t[r]))}(r,n,e),C(2,r,n,e),C(1,r,n,e),H=n,r.join("")}function P(t,e,r){const n=t.length,i=r.dir?g:p;let s=0,o=-1;const a=[],l=[];r.hiLevel=r.dir,r.lastArabic=!1,r.hasUbatAl=!1,r.hasUbatB=!1,r.hasUbatS=!1;for(let e=0;e<n;e++)a[e]=k(t[e]);for(let h=0;h<n;h++){const n=s,c=U(t,a,l,h,r);l[h]=c,s=i[n][c];const u=240&s;s&=15;const f=i[s][Q];if(e[h]=f,u>0)if(16===u){for(let t=o;t<h;t++)e[t]=1;o=-1}else o=-1;if(i[s][$])-1===o&&(o=h);else if(o>-1){for(let t=o;t<h;t++)e[t]=f;o=-1}5===a[h]&&(e[h]=0),r.hiLevel|=f}r.hasUbatS&&function(t,e,r,n){for(let i=0;i<r;i++)if(6===t[i]){e[i]=n.dir;for(let r=i-1;r>=0&&8===t[r];r--)e[r]=n.dir}}(a,e,n,r)}function k(t){const e=t.charCodeAt(0),r=v[e>>8];return r<100?r:A[r-100][255&e]}function V(t,e){const r=t.split("");if(e){const t=[];P(r,t,e),H=t}return r.reverse(),K.reverse(),r.join("")}function S(t,e,r){for(let n=0;n<e;n++)if(t[n]===r)return n;return-1}function R(t){for(let e=0;e<y.length;e++)if(t>=y[e]&&t<=d[e])return!0;return!1}function E(t,e,r,n){for(;e*r<n&&G(t[e]);)e+=r;return!!(e*r<n&&R(t[e]))}function D(t,e,r,n){for(;e*r<n&&G(t[e]);)e+=r;let s=" ";if(!(e*r<n))return!1;s=t[e];for(let t=0;t<i.length;t++)if(i[t]===s)return!0;return!1}function C(t,e,r,n){if(n.hiLevel<t)return;if(1===t&&n.dir===tt&&!n.hasUbatB)return e.reverse(),void K.reverse();const i=e.length;let s,o,a,l,h,c=0;for(;c<i;){if(r[c]>=t){for(s=c+1;s<i&&r[s]>=t;)s++;for(o=c,a=s-1;o<a;o++,a--)l=e[o],e[o]=e[a],e[a]=l,h=K[o],K[o]=K[a],K[a]=h;c=s}c++}}function U(t,e,r,n,i){const s=e[n];return{UBAT_L:()=>(i.lastArabic=!1,0),UBAT_R:()=>(i.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>i.lastArabic?3:2,UBAT_AL:()=>(i.lastArabic=!0,i.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,s;return n<1||n+1>=e.length||2!==(t=r[n-1])&&3!==t||2!==(s=e[n+1])&&3!==s?4:(i.lastArabic&&(s=3),s===t?s:4)},UBAT_ES:()=>2===(n>0?r[n-1]:5)&&n+1<e.length&&2===e[n+1]?2:4,UBAT_ET:()=>{if(n>0&&2===r[n-1])return 2;if(i.lastArabic)return 4;let t=n+1;const s=e.length;for(;t<s&&11===e[t];)t++;return t<s&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===i.inFormat){const r=e.length;let i=n+1;for(;i<r&&12===e[i];)i++;if(i<r){const r=t[n].charCodeAt(0),s=r>=1425&&r<=2303||64286===r,o=e[i];if(s&&(1===o||7===o))return 1}}return n<1||5===e[n-1]?4:r[n-1]},UBAT_B:()=>(i.lastArabic=!0,i.hasUbatB=!0,i.dir),UBAT_S:()=>(i.hasUbatS=!0,4),UBAT_LRE:()=>(i.lastArabic=!1,4),UBAT_RLE:()=>(i.lastArabic=!1,4),UBAT_LRO:()=>(i.lastArabic=!1,4),UBAT_RLO:()=>(i.lastArabic=!1,4),UBAT_PDF:()=>(i.lastArabic=!1,4),UBAT_BN:()=>4}[I[s]]()}function F(t){let e,r=0,i=n.length-1;for(;r<=i;)if(e=Math.floor((r+i)/2),t<n[e][0])i=e-1;else{if(!(t>n[e][0]))return n[e][1];r=e+1}return t}function N(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function z(t){for(let e=0;e<a.length;e++)if(t===a[e])return c[e];return t}function O(t,e){for(let r=0;r<a.length;r++)if(t===a[r])return e[r];return t}function G(t){return t>="ً"&&t<="ٕ"}function j(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function W(t,e,r,n){for(;e*r<n&&G(t[e]);)e+=r;return e*r<n&&(t[e]=" ",!0)}function Z(t,e){for(let r=0;r<i.length;r++)if(t===i[r])return e[r];return t}function q(t,e,r,n){for(let i=0;i<t.length;i++)(t[i]>e||!r&&t[i]===e)&&(t[i]+=n)}let K=[],Y=[],H=[];const J={dir:0,defInFormat:"LLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,defOutFormat:""},Q=5,$=6,X=0,tt=1,et=/^[(I|V)][(L|RCD)][(Y|N)][(S|N)]N$/,rt=/[\u0591-\u06ff\ufb1d-\ufefc]/},34304(t,e,r){r.d(e,{DF:()=>l,FD:()=>i,ct:()=>h});let n=1e-6;function i(){return n}const s=Math.random,o=Math.PI/180,a=180/Math.PI;function l(t){return t*o}function h(t){return t*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:s,equals:function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:i,setEpsilon:function(t){n=t},toDegree:h,toRadian:l},Symbol.toStringTag,{value:"Module"})),r.d(e,["Ov",0,s])},69397(t,e,r){r.d(e,{Qf:()=>a,Qh:()=>s,lM:()=>i});var n=r(34275);function i(t){if(!t)return 0;let e=h;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function s(t){if(!t)return 0;if("number"==typeof t[0])return a(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let r=c;for(let n=0;n<e;n++)r+=o(t[n]);return r}(t);let e=h;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?s(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+u:Array.isArray(e)?l(e,16):0:0),0)}function l(t,e){return c+t.length*e}const h=32,c=16,u=145},51624(t,e,r){r.d(e,{A:()=>h});var n=r(44208),i=r(69397),s=r(93687);const o=4294967296,a=new TextDecoder("utf-8"),l=(0,n.A)("safari")||(0,n.A)("ios")?6:(0,n.A)("ff")?12:32;class h{constructor(t,e,r=0,n=t?.byteLength??0){this._tag=0,this._dataType=99,this._init(t,e,r,n)}[Symbol.dispose](){this.release()}_init(t,e,r,n){this._data=t,this._dataView=e,this._pos=r,this._end=n}get usedMemory(){return 64+(0,i.Qf)(this._data)}asUnsafe(){return this}clone(){return new h(this._data,this._dataView,this._pos,this._end)}clonePooled(){return h.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(t,e,r=0,n=t?.byteLength??0){const i=h.pool.acquire();return i._init(t,e,r,n),i}pos(){return this._pos}move(t){this._pos=t}nextTag(t){for(;;){if(this._pos===this._end)return!1;const e=this._decodeVarint();if(this._tag=e>>3,this._dataType=7&e,!t||t===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const t=this._decodeVarint();return this._tag=t>>3,this._dataType=7&t,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let t=4294967295;if(t=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return t;throw new Error("Varint overflow")}getPackedEnd(){const t=this.getUInt32();return this._pos+t}getUInt64(){return this._decodeVarint()}getSInt32(){const t=this.getUInt32();return t>>>1^-(1&t)}getSInt64(){return this._decodeSVarint()}getBool(){const t=0!==this._data[this._pos];return this._skip(1),t}getEnum(){return this._decodeVarint()}getFixed64(){const t=this._dataView,e=this._pos,r=t.getUint32(e,!0)+t.getUint32(e+4,!0)*o;return this._skip(8),r}getSFixed64(){const t=this._dataView,e=this._pos,r=t.getUint32(e,!0)+t.getInt32(e+4,!0)*o;return this._skip(8),r}getDouble(){const t=this._dataView.getFloat64(this._pos,!0);return this._skip(8),t}getFixed32(){const t=this._dataView.getUint32(this._pos,!0);return this._skip(4),t}getSFixed32(){const t=this._dataView.getInt32(this._pos,!0);return this._skip(4),t}getFloat(){const t=this._dataView.getFloat32(this._pos,!0);return this._skip(4),t}getString(){const t=this._getLength(),e=this._pos,r=this._toString(this._data,e,e+t);return this._skip(t),r}getBytes(){const t=this._getLength(),e=this._pos,r=this._toBytes(this._data,e,e+t);return this._skip(t),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(t,e,r,n){const i=this.getMessage(),s=t(i,e,r,n);return i.release(),s}processMessage(t){const e=this.getMessage(),r=t(e);return e.release(),r}getMessage(){const t=this._getLength(),e=h.pool.acquire();return e._init(this._data,this._dataView,this._pos,this._pos+t),this._skip(t),e}release(){h.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(t){this._skip(t)}_skip(t){if(this._pos+t>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=t}_decodeVarint(){const t=this._data;let e=this._pos,r=0,n=0;if(this._end-e>=10)do{if(n=t[e++],r|=127&n,!(128&n))break;if(n=t[e++],r|=(127&n)<<7,!(128&n))break;if(n=t[e++],r|=(127&n)<<14,!(128&n))break;if(n=t[e++],r|=(127&n)<<21,!(128&n))break;if(n=t[e++],r+=268435456*(127&n),!(128&n))break;if(n=t[e++],r+=34359738368*(127&n),!(128&n))break;if(n=t[e++],r+=4398046511104*(127&n),!(128&n))break;if(n=t[e++],r+=562949953421312*(127&n),!(128&n))break;if(n=t[e++],r+=72057594037927940*(127&n),!(128&n))break;if(n=t[e++],r+=0x8000000000000000*(127&n),!(128&n))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;e!==this._end&&(n=t[e],128&n);)++e,r+=(127&n)*i,i*=128;if(e===this._end)throw new Error("Varint overrun!");++e,r+=n*i}return this._pos=e,r}_decodeSVarint(){const t=this._data;let e,r=0,n=0;const i=1&t[this._pos];if(n=t[this._pos++],r|=127&n,!(128&n))return i?-(r+1)/2:r/2;if(n=t[this._pos++],r|=(127&n)<<7,!(128&n))return i?-(r+1)/2:r/2;if(n=t[this._pos++],r|=(127&n)<<14,!(128&n))return i?-(r+1)/2:r/2;if(n=t[this._pos++],r|=(127&n)<<21,!(128&n))return i?-(r+1)/2:r/2;if(n=t[this._pos++],r+=268435456*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(n=t[this._pos++],r+=34359738368*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(n=t[this._pos++],r+=4398046511104*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(e=BigInt(r),n=t[this._pos++],e+=0x2000000000000n*BigInt(127&n),!(128&n))return Number(i?-(e+1n)/2n:e/2n);if(n=t[this._pos++],e+=0x100000000000000n*BigInt(127&n),!(128&n))return Number(i?-(e+1n)/2n:e/2n);if(n=t[this._pos++],e+=0x8000000000000000n*BigInt(127&n),!(128&n))return Number(i?-(e+1n)/2n:e/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(t,e,r){if((r=Math.min(this._end,r))-e>l){const n=t.subarray(e,r);return a.decode(n)}let n="",i="";for(let s=e;s<r;++s){const e=t[s];128&e?i+="%"+e.toString(16):(n+=decodeURIComponent(i)+String.fromCharCode(e),i="")}return i.length&&(n+=decodeURIComponent(i)),n}_toBytes(t,e,r){return r=Math.min(this._end,r),new Uint8Array(t.buffer,e,r-e)}static{this.pool=new s.A(()=>new h(null,null),void 0,t=>{t._data=null,t._dataView=null})}}},15585(t,e,r){r.d(e,{If:()=>x,O5:()=>g,O9:()=>d,QT:()=>p,l3:()=>y});var n=r(5482),i=r(2741),s=r(49186),o=r(44208),a=r(34727);let l=null,h=null,c=null,u=null;const f=(new Float32Array(0),new Uint32Array(0),new Uint32Array(0),new Uint32Array(0),{vertices:new Float64Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0});async function x(){return l??=async function(){const t=await r.e(2997).then(r.bind(r,42997)),e=await t.default({locateFile:t=>(0,i.s)(`esri/core/libs/libtess/${t}`)});c=e}(),l}async function y(){return h??=async function(){const t=await r.e(9134).then(r.bind(r,99134)),e=await t.default({locateFile:t=>(0,i.s)(`esri/core/libs/libtess/${t}`)});u=e}(),h}function d(){return null!==u}function p(t,e,r=2){const i={stack:[],error:void 0,hasError:!1};try{const a=c;if(!a)throw new s.A("libtess:not-loaded","libtessF32 not loaded");const l=(0,n.mS)(i,w.from(a,t),!1),h=(0,n.mS)(i,v.from(a,e),!1),u=t.length/r*4,f=(0,n.mS)(i,new w(a,u*r),!1),x=a.triangulate(l.ptr,h.ptr,h.size,r,f.ptr,u);if((0,o.A)("esri-tessellation-debug")){const t=a.getError();0!==t&&console.warn("libtess:triangulation",A(t))}return{buffer:f.slice(0,x*r),vertexCount:x}}catch(t){i.error=t,i.hasError=!0}finally{(0,n.hk)(i)}}function g(t,e,r=2,i=!0){const l={stack:[],error:void 0,hasError:!1};try{const h=u;if(!h)throw new s.A("libtess:not-loaded","libtessF64 not loaded");const c=(0,n.mS)(l,I.from(h,t),!1),x=(0,n.mS)(l,v.from(h,e),!1),y=(0,n.mS)(l,new v(h,1),!1),d=(0,n.mS)(l,new v(h,1),!1),p=(0,n.mS)(l,new v(h,1),!1),g=(0,n.mS)(l,new v(h,1),!1),{maxVertexCount:_,maxIndexCount:m,maxOutlineIndexCount:w,maxOutlineRingCount:T}=function(t,e){const r=t.reduce((t,e)=>t+e,0),n=t.length,i=Math.max(0,t.length-1),s=Math.max(0,r+2*i-2),o=Math.max(0,Math.ceil(2*r)),l=Math.max(0,Math.ceil(3*s*2)),h=(0,a.mP)(l,3),c=r>0?Math.max(2,Math.ceil(.25*r)):0,u=r>0?Math.max(1,Math.ceil(c/3)):0;return{maxVertexCount:o,maxIndexCount:h,maxOutlineIndexCount:e?Math.max(0,r+n+c):0,maxOutlineRingCount:e?Math.max(0,n+u):0}}(e,i);let M=0,L=0,B=0,P=0,k=0;{const t={stack:[],error:void 0,hasError:!1};try{const e=(0,n.mS)(t,new I(h,_*r),!1),s=(0,n.mS)(t,new v(h,m),!1),o=(0,n.mS)(t,i?new v(h,w):null,!1),a=(0,n.mS)(t,i?new v(h,T):null,!1);if(h.triangulateIndexed(c.ptr,x.ptr,x.size,r,e.ptr,_,r,s.ptr,m,y.ptr,d.ptr,o?.ptr??0,w,a?.ptr??0,T,p.ptr,g.ptr),k=h.getError(),M=b(h)[y.ptr/Int32Array.BYTES_PER_ELEMENT],L=b(h)[d.ptr/Int32Array.BYTES_PER_ELEMENT],B=b(h)[p.ptr/Int32Array.BYTES_PER_ELEMENT],P=b(h)[g.ptr/Int32Array.BYTES_PER_ELEMENT],0===k){const t=e.slice(0,M*r);return{vertices:t,indices:s.slice(0,L),outlineIndices:i&&o?o.slice(0,B):f.outlineIndices,outlineRingLengths:i&&a?a.slice(0,P):f.outlineRingLengths,vertexCount:M,indexCount:L,outlineIndexCount:i?B:0,outlineRingCount:i?P:0}}}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}if(100903!==k)return(0,o.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",A(k)),f;const V=(0,n.mS)(l,new I(h,M*r),!1),S=(0,n.mS)(l,new v(h,L),!1),R=(0,n.mS)(l,i?new v(h,B):null,!1),E=(0,n.mS)(l,i?new v(h,P):null,!1);if(h.triangulateIndexed(c.ptr,x.ptr,x.size,r,V.ptr,M,r,S.ptr,L,y.ptr,d.ptr,R?.ptr??0,i?B:0,E?.ptr??0,i?P:0,p.ptr,g.ptr),k=h.getError(),0!==k)return(0,o.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",A(k)),f;const D=b(h)[y.ptr/Int32Array.BYTES_PER_ELEMENT],C=b(h)[d.ptr/Int32Array.BYTES_PER_ELEMENT],U=b(h)[p.ptr/Int32Array.BYTES_PER_ELEMENT],F=b(h)[g.ptr/Int32Array.BYTES_PER_ELEMENT],N=V.slice(0,D*r);return{vertices:N,indices:S.slice(0,C),outlineIndices:i&&R?R.slice(0,U):f.outlineIndices,outlineRingLengths:i&&E?E.slice(0,F):f.outlineRingLengths,vertexCount:D,indexCount:C,outlineIndexCount:i?U:0,outlineRingCount:i?F:0}}catch(t){l.error=t,l.hasError=!0}finally{(0,n.hk)(l)}}function _(t){return t.HEAPF64}function m(t){return t.HEAPF32}function b(t){return t.HEAP32}class w{static from(t,e){const r=new w(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(t){m(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return m(this._libtess).slice(r+t,r+e)}}class I{static from(t,e){const r=new I(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float64Array.BYTES_PER_ELEMENT}set(t){_(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return _(this._libtess).slice(r+t,r+e)}}class v{static from(t,e){const r=new v(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateLengthsArray(e)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(t){b(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return function(t){const e=b(t);return new Uint32Array(e.buffer,e.byteOffset,e.length)}(this._libtess).slice(r+t,r+e)}}function A(t){switch(t){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${t}`}}},95108(t,e,r){r.d(e,{$3:()=>h,Ng:()=>o,R3:()=>i,Yl:()=>l,gR:()=>s,m3:()=>u,t9:()=>a});var n=r(4576);function i(t,e){const r=e[0]-t[0],n=e[1]-t[1];if(t.length>2&&e.length>2){const i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}return Math.sqrt(r*r+n*n)}function s(t,e,r,n){const[i,s]=e,[o,a]=r,[l,h]=n,c=l-o,u=h-a,f=c*c+u*u,x=(i-o)*c+(s-a)*u,y=Math.min(1,Math.max(0,x/f));return t[0]=o+c*y,t[1]=a+u*y,t}function o(t,e,r,n,i,s){let o=r,a=n,l=i-o,h=s-a;if(0!==l||0!==h){const r=((t-o)*l+(e-a)*h)/(l*l+h*h);r>1?(o=i,a=s):r>0&&(o+=l*r,a+=h*r)}return l=t-o,h=e-a,l*l+h*h}function a(t,e){return function(t,e,r){const n=t[0]+r*(e[0]-t[0]),i=t[1]+r*(e[1]-t[1]);return t.length>2&&e.length>2?[n,i,t[2]+r*(e[2]-t[2])]:[n,i]}(t,e,.5)}function l(t){const e=t.length;let r=0;for(let n=0;n<e-1;++n)r+=i(t[n],t[n+1]);return r}function h(t,e=0,r=1){let n=0;const i=t.length;let s=t[0];for(let o=1;o<i;o++){const i=t[o];n+=(i[e]-s[e])*(i[r]+s[r]),s=i}if(c(t)){const i=t[0];n+=(i[e]-s[e])*(i[r]+s[r])}return n>=0}function c(t){const e=t.length;return e>0&&!(0,n.aI)(t[0],t[e-1])}function u(t){if("rings"in t)for(const e of t.rings)c(e)&&e.push(e[0].slice())}r(52006)},52006(t,e,r){function n(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function i(t){return"curveRings"in t?t.curveRings:t.curvePaths}function s(t){return"b"in t}function o(t){return"c"in t}function a(t){return Array.isArray(t)}function l(t){return"a"in t}function h(t){return"a"in t&&4===t.a.length}function c(t){return"a"in t&&7===t.a.length}function u(t,e){return i(t).flat().some(t=>function(t,e){return!(a(t)||(s(t)?e.has("cubic-bezier"):o(t)?e.has("circular-arc"):!h(t)&&!c(t)||e.has("elliptic-arc")))}(t,e))}function f(t){return a(t)?t:s(t)?t.b[0]:o(t)?t.c[0]:t.a[0]}function x(t){if(s(t)){const[e,r,n]=t.b;return{b:[[...e],[...r],[...n]]}}if(o(t)){const[e,r]=t.c;return{c:[[...e],[...r]]}}if(a(t))return[...t];if(h(t)){const[e,r,n,i]=t.a;return{a:[[...e],[...r],n,i]}}if(c(t)){const[e,r,n,i,s,o,a]=t.a;return{a:[[...e],[...r],n,i,s,o,a]}}return t}r.d(e,{DA:()=>h,Ed:()=>n,FD:()=>i,FG:()=>l,V8:()=>u,Xq:()=>a,aO:()=>o,n1:()=>s,tk:()=>x,wY:()=>c,yP:()=>f}),r(4576)},36849(t,e,r){r.r(e),r.d(e,{default:()=>Y});var n=r(17676),i=r(6774),s=r(13195);function o(t){return 746===t||747===t||!(t<4352)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103&&!(t>=65097&&t<=65103)||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351&&!(t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=12592&&t<=12687||t>=43360&&t<=43391||t>=55216&&t<=55295||t>=4352&&t<=4607||t>=44032&&t<=55215||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12688&&t<=12703||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543&&12540!==t||t>=65280&&t<=65519&&!(65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||t>=65104&&t<=65135&&!(t>=65112&&t<=65118||t>=65123&&t<=65126)||t>=5120&&t<=5759||t>=6320&&t<=6399||t>=65040&&t<=65055||t>=19904&&t<=19967||t>=40960&&t<=42127||t>=42128&&t<=42191)}function a(t){return!(t<11904)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=65280&&t<=65519||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543||t>=65040&&t<=65055||t>=42128&&t<=42191||t>=40960&&t<=42127)}function l(t){switch(t){case 10:case 32:case 38:case 40:case 41:case 43:case 45:case 47:case 173:case 183:case 8203:case 8208:case 8211:case 8231:return!0}return!1}function h(t){switch(t){case 9:case 10:case 11:case 12:case 13:case 32:return!0}return!1}var c=r(18989);class u{constructor(t,e,r,n,i,s,o){this._glyphItems=t,this._maxWidth=e,this._lineHeight=r,this._letterSpacing=n,this._hAnchor=i,this._vAnchor=s,this._justify=o}getShaping(t,e,r){const n=this._letterSpacing,i=this._lineHeight,s=this._justify,c=this._maxWidth,u=[];let f=0,x=0;for(const e of t){const t=e.codePointAt(0);if(null==t)continue;const i=r&&o(t);let s;for(const e of this._glyphItems)if(s=e[t],s)break;u.push({codePoint:t,x:f,y:x,vertical:i,glyphItem:s}),s&&(f+=s.shaping.xAdvance+n)}let y=f;c>0&&(y=f/Math.max(1,Math.ceil(f/c)));const d=t.includes(""),p=[],g=u.length;for(let t=0;t<g-1;t++){const e=u[t].codePoint,r=a(e);if(l(e)||r){let n=0;if(10===e)n-=1e4;else if(r&&d)n+=150;else{40!==e&&65288!==e||(n+=50);const r=u[t+1].codePoint;41!==r&&65289!==r||(n+=50)}p.push(this._buildBreak(t+1,u[t].x,y,p,n,!1))}}const _=this._optimalBreaks(this._buildBreak(g,f,y,p,0,!0));let m=0;const b=e?-i:i;let w=0;for(let t=0;t<_.length;t++){const e=_[t];let r=w;for(;r<e&&h(u[r].codePoint);)u[r].glyphItem=null,++r;let n=e-1;for(;n>r&&h(u[n].codePoint);)u[n].glyphItem=null,--n;if(r<=n){const t=u[r].x;for(let e=r;e<=n;e++)u[e].x-=t,u[e].y=x;let e=u[n].x;u[n].glyphItem&&(e+=u[n].glyphItem.shaping.xAdvance),m=Math.max(e,m),s&&this._applyJustification(u,r,n)}w=e,x+=b}if(u.length>0){const t=_.length-1,r=(s-this._hAnchor)*m;let n=(-this._vAnchor*(t+1)+.5)*i;e&&t&&(n+=t*i);for(const t of u)t.x+=r,t.y+=n}return u.filter(t=>t.glyphItem)}static getTextBox(t,e){if(!t.length)return null;let r=1/0,n=1/0,i=0,s=0;for(const o of t){const t=o.glyphItem.shaping.xAdvance,a=o.x,l=o.y-17,h=a+t,c=l+e;r=Math.min(r,a),i=Math.max(i,h),n=Math.min(n,l),s=Math.max(s,c)}return{x:r,y:n,width:i-r,height:s-n}}static getBox(t){if(!t.length)return null;let e=1/0,r=1/0,n=0,i=0;for(const s of t){const{height:t,left:o,top:a,width:l}=s.glyphItem.rect,h=s.x,c=s.y-(t-Math.abs(a)),u=h+l+o,f=c+t;e=Math.min(e,h),n=Math.max(n,u),r=Math.min(r,c),i=Math.max(i,f)}return{x:e,y:r,width:n-e,height:i-r}}static addDecoration(t,e){const r=t.length;if(0===r)return;const n={rect:new c.A(4,0,4,8),sdf:!0,page:0};let i=t[0].x+t[0].glyphItem.rect.left,s=t[0].y;for(let o=1;o<r;o++){const r=t[o];if(r.y!==s){const a=t[o-1].x+t[o-1].glyphItem.rect.left+t[o-1].glyphItem.rect.width;t.push({codePoint:0,x:i,y:s+e-3,vertical:!1,glyphItem:{mosaicItem:n,rect:{width:a-i,height:8,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0},code:0}}),s=r.y,i=r.x+r.glyphItem.rect.left}}const o=t[r-1].x+t[r-1].glyphItem.rect.left+t[r-1].glyphItem.rect.width;t.push({codePoint:0,x:i,y:s+e-3,vertical:!1,glyphItem:{mosaicItem:n,rect:{width:o-i,height:8,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0},code:0}})}_breakScore(t,e,r,n){const i=(t-e)*(t-e);return n?t<e?i/2:2*i:i+Math.abs(r)*r}_buildBreak(t,e,r,n,i,s){let o=null,a=this._breakScore(e,r,i,s);for(const t of n){const n=e-t.x,l=this._breakScore(n,r,i,s)+t.score;l<=a&&(o=t,a=l)}return{index:t,x:e,score:a,previousBreak:o}}_optimalBreaks(t){return t?this._optimalBreaks(t.previousBreak).concat(t.index):[]}_applyJustification(t,e,r){const n=t[r],i=n.vertical?24:n.glyphItem?n.glyphItem.shaping.xAdvance:0,s=(n.x+i)*this._justify;for(let n=e;n<=r;n++)t[n].x-=s}}const f=.5;class x{constructor(t,e,r=0,n=-1,i=f){this.x=t,this.y=e,this.angle=r,this.segment=n,this.minzoom=i}}class y{constructor(t,e,r,n,i,o=f,a=s.MG){this.anchor=t,this.labelAngle=e,this.glyphAngle=r,this.page=n,this.alternateVerticalGlyph=i,this.minzoom=o,this.maxzoom=a}}class d{constructor(t,e,r,n,i,s,o,a,l,h,c,u){this.tl=t,this.tr=e,this.bl=r,this.br=n,this.mosaicRect=i,this.labelAngle=s,this.minAngle=o,this.maxAngle=a,this.anchor=l,this.minzoom=h,this.maxzoom=c,this.page=u}}class p{constructor(t){this.shapes=t}}class g{getIconPlacement(t,e,r){const n=new i.bR(t.x,t.y),o=0===r.rotationAlignment,a=r.keepUpright;let l=r.rotate*s.os;o&&(l+=t.angle);const h=new p([]);return h.iconColliders=[],this._addIconPlacement(h,n,e,r,l),o&&a&&this._addIconPlacement(h,n,e,r,l+s.Jo),h}_addIconPlacement(t,e,r,n,o){const a=r.rasterizationScale,l=r.width/a,h=r.height/a,c=n.offset;let u=c[0],x=c[1];switch(n.anchor){case 0:u-=l/2,x-=h/2;break;case 1:x-=h/2;break;case 2:u-=l,x-=h/2;break;case 3:u-=l/2;break;case 4:u-=l/2,x-=h;break;case 5:break;case 7:x-=h;break;case 6:u-=l;break;case 8:u-=l,x-=h}const y=r.rect,p=2/a,g=u-p,_=x-p,m=g+y.width/a,b=_+y.height/a,w=new i.bR(g,_),I=new i.bR(m,b),v=new i.bR(g,b),A=new i.bR(m,_);if(0!==o){const t=Math.cos(o),e=Math.sin(o);w.rotate(t,e),I.rotate(t,e),v.rotate(t,e),A.rotate(t,e)}const T=new d(w,A,v,I,y,o,0,256,e,f,s.MG,0);t.shapes.push(T);{const r=n.size,i=n.padding,a={xTile:e.x,yTile:e.y,dxPixels:u*r-i,dyPixels:x*r-i,hard:!n.optional,partIndex:0,width:l*r+2*i,height:h*r+2*i,angle:o,minLod:f,maxLod:s.MG};t.iconColliders.push(a)}}getTextPlacement(t,e,r,n){const o=new i.bR(t.x,t.y),{keepUpright:a,rotate:l,rotationAlignment:h,size:c}=n,x=l*s.os,g=0===h,_=a,m=n.padding;let b=f;const w=g?t.angle:0,I=t.segment>=0&&g,v=[],A=[],T=!I;let M=Number.POSITIVE_INFINITY,L=Number.NEGATIVE_INFINITY,B=M,P=L;const k=(I||g)&&_,V=c/24;let S=!1;for(const t of e)if(t.vertical){S=!0;break}let R,E=0,D=0;if(!I&&S){const t=u.getTextBox(e,24*n.lineHeight);switch(n.anchor){case 1:E=t.height/2,D=-t.width/2;break;case 2:E=-t.height/2,D=t.width/2;break;case 3:E=t.height/2,D=t.width/2;break;case 4:E=-t.height/2,D=-t.width/2;break;case 5:E=t.height;break;case 7:D=-t.width;break;case 6:D=t.width;break;case 8:E=-t.height}}E+=24*n.offset[0],D+=24*n.offset[1];for(const a of e){const e=a.glyphItem?.mosaicItem,l=a.glyphItem?.rect;if(!e||e.rect.isEmpty)continue;const h=e.rect,c=e.page;if(v&&T){if(void 0!==R&&R!==a.y){let e,r,i,o;S?(e=-P+E,r=M+D,i=P-B,o=L-M):(e=M+E,r=B+D,i=L-M,o=P-B);const a={xTile:t.x,yTile:t.y,dxPixels:e*V-m,dyPixels:r*V-m,hard:!n.optional,partIndex:1,width:i*V+2*m,height:o*V+2*m,angle:x,minLod:f,maxLod:s.MG};v.push(a),M=Number.POSITIVE_INFINITY,L=Number.NEGATIVE_INFINITY,B=M,P=L}R=a.y}const u=[];if(I){const e=.5*l.width,n=(a.x+l.left-3+e)*V*8;if(b=this._placeGlyph(t,b,n,r,t.segment,1,a.vertical,c,u),_&&(b=this._placeGlyph(t,b,n,r,t.segment,-1,a.vertical,c,u)),b>=2)break}else u.push(new y(o,w,w,c,!1)),g&&_&&u.push(new y(o,w+s.Jo,w+s.Jo,c,!1));const p=a.x+l.left,C=a.y-17-l.top,U=p+l.width,F=C+l.height;let N,z,O,G,j,W,Z,q;if(!I&&S)if(a.vertical){const t=(p+U)/2-l.height/2,e=(C+F)/2+l.width/2;N=new i.bR(-e-3+E,t-3+D),z=new i.bR(N.x+h.width,N.y+h.height),O=new i.bR(N.x,z.y),G=new i.bR(z.x,N.y)}else N=new i.bR(3-C+E,p-3+D),z=new i.bR(N.x-h.height,N.y+h.width),O=new i.bR(z.x,N.y),G=new i.bR(N.x,z.y);else N=new i.bR(p-3+E,C-3+D),z=new i.bR(N.x+h.width,N.y+h.height),O=new i.bR(N.x,z.y),G=new i.bR(z.x,N.y);for(const e of u){let r,s,o,c;if(e.alternateVerticalGlyph){if(!j){const t=(C+F)/2+D;j=new i.bR((p+U)/2+E-l.height/2-3,t+l.width/2+3),W=new i.bR(j.x+h.height,j.y-h.width),Z=new i.bR(W.x,j.y),q=new i.bR(j.x,W.y)}r=j,s=Z,o=q,c=W}else r=N,s=O,o=G,c=z;const u=C,f=F,y=e.glyphAngle+x;if(0!==y){const t=Math.cos(y),e=Math.sin(y);r=r.clone(),s=s?.clone(),o=o?.clone(),c=c?.clone(),r.rotate(t,e),c?.rotate(t,e),s?.rotate(t,e),o?.rotate(t,e)}let g=0,_=256;if(I&&S?a.vertical?e.alternateVerticalGlyph?(g=32,_=96):(g=224,_=32):(g=224,_=96):(g=192,_=64),A.push(new d(r,o,s,c,h,e.labelAngle,g,_,e.anchor,e.minzoom,e.maxzoom,e.page)),v&&(!k||this._legible(e.labelAngle)))if(T)p<M&&(M=p),u<B&&(B=u),U>L&&(L=U),f>P&&(P=f);else if(e.minzoom<2){const r={xTile:t.x,yTile:t.y,dxPixels:(p+E)*V-m,dyPixels:(u+E)*V-m,hard:!n.optional,partIndex:1,width:(U-p)*V+2*m,height:(f-u)*V+2*m,angle:y,minLod:e.minzoom,maxLod:e.maxzoom};v.push(r)}}}if(b>=2)return null;if(v&&T){let e,r,i,o;S?(e=-P+E,r=M+D,i=P-B,o=L-M):(e=M+E,r=B+D,i=L-M,o=P-B);const a={xTile:t.x,yTile:t.y,dxPixels:e*V-m,dyPixels:r*V-m,hard:!n.optional,partIndex:1,width:i*V+2*m,height:o*V+2*m,angle:x,minLod:f,maxLod:s.MG};v.push(a)}const C=new p(A);return v&&v.length>0&&(C.textColliders=v),C}_legible(t){const e=(0,s.z0)(t);return e<65||e>=193}_placeGlyph(t,e,r,n,o,a,l,h,c){let u=a;const f=u<0?(0,s.Wh)(t.angle+s.Jo,s.pJ):t.angle;let x=0;r<0&&(u*=-1,r*=-1,x=s.Jo),u>0&&++o;let d=new i.bR(t.x,t.y),p=n[o],g=s.MG;if(n.length<=o)return g;for(;;){const t=p.x-d.x,i=p.y-d.y,a=Math.sqrt(t*t+i*i),_=Math.max(r/a,e),m=t/a,b=i/a,w=(0,s.Wh)(Math.atan2(b,m)+x,s.pJ);if(c.push(new y(d,f,w,h,!1,_,g)),l&&c.push(new y(d,f,w,h,!0,_,g)),_<=e)return _;d=p.clone();do{if(o+=u,n.length<=o||o<0)return _;p=n[o]}while(d.isEqual(p));let I=p.x-d.x,v=p.y-d.y;const A=Math.sqrt(I*I+v*v);I*=a/A,v*=a/A,d.x-=I,d.y-=v,g=_}}}var _=r(51624),m=r(15585);class b{constructor(t,e,r=0){this.values={},this._geometry=void 0,this._pbfGeometry=null,this.featureIndex=r;const n=e.keys,i=e.values,s=t.asUnsafe();for(;s.next();)switch(s.tag()){case 1:this.id=s.getUInt64();break;case 2:{const t=s.getMessage().asUnsafe(),e=this.values;for(;!t.empty();){const r=t.getUInt32(),s=t.getUInt32();e[n[r]]=i[s]}t.release();break}case 3:this.type=s.getUInt32();break;case 4:this._pbfGeometry=s.getMessage();break;default:s.skip()}}getGeometry(t){if(void 0!==this._geometry)return this._geometry;if(!this._pbfGeometry)return null;const e=this._pbfGeometry.asUnsafe();let r,n;this._pbfGeometry=null,t?t.reset(this.type):r=[];let s,o=1,a=0,l=0,h=0;for(;!e.empty();){if(0===a){const t=e.getUInt32();o=7&t,a=t>>3}switch(a--,o){case 1:l+=e.getSInt32(),h+=e.getSInt32(),t?t.moveTo(l,h):r&&(n&&r.push(n),n=[],n.push(new i.bR(l,h)));break;case 2:l+=e.getSInt32(),h+=e.getSInt32(),t?t.lineTo(l,h):n&&n.push(new i.bR(l,h));break;case 7:t?t.close():n&&!n[0].equals(l,h)&&n.push(n[0].clone());break;default:throw e.release(),new Error("Invalid path operation")}}return t?s=t.result():r&&(n&&r.push(n),s=r),e.release(),this._geometry=s,s}}r(44208);class w{constructor(t){this._array=[],this._stride=t}get array(){return this._array}get index(){return 4*this._array.length/this._stride}get itemSize(){return this._stride}get sizeInBytes(){return 4*this._array.length}reset(){this.array.length=0}toBuffer(){return new Uint32Array(this._array).buffer}}class I extends w{constructor(){super(12)}add(t,e,r){const n=this.array;n.push(t),n.push(e),n.push(r)}}class v{constructor(t){this.extent=4096,this.keys=[],this.values=[],this._pbfLayer=t.clone();const e=t.asUnsafe();for(;e.next();)switch(e.tag()){case 1:this.name=e.getString();break;case 3:this.keys.push(e.getString());break;case 4:this.values.push(e.processMessage(v._parseValue));break;case 5:this.extent=e.getUInt32();break;default:e.skip()}}getData(){return this._pbfLayer}static _parseValue(t){for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getInt64();case 5:return t.getUInt64();case 6:return t.getSInt64();case 7:return t.getBool();default:t.skip()}return null}}var A=r(89518);class T extends w{constructor(t){super(t)}add(t,e,r,n,i,s,o,a,l,h,c,u){const f=this.array;let x=(0,A.M9)(t,e);f.push(x);const y=31;x=(0,A.Ss)(Math.round(y*r),Math.round(y*n),Math.round(y*i),Math.round(y*s)),f.push(x),x=(0,A.Ss)(Math.round(y*o),Math.round(y*a),Math.round(y*l),Math.round(y*h)),f.push(x),x=(0,A.M9)(c,0),f.push(x),u&&f.push(...u)}}class M extends w{constructor(t){super(t)}add(t,e,r){const n=this.array;n.push((0,A.M9)(t,e)),r&&n.push(...r)}}class L extends w{constructor(t){super(t)}add(t,e,r,n,i,s,o){const a=this.array,l=this.index;let h=(0,A.M9)(t,e);return a.push(h),h=(0,A.Ss)(Math.round(15*r),Math.round(15*n),i,s),a.push(h),o&&a.push(...o),l}}class B extends w{constructor(t){super(t)}add(t,e,r,n,i,o,a,l,h,c,u,f){const x=this.array;let y=(0,A.M9)(t,e);x.push(y),y=(0,A.M9)(Math.round(8*r),Math.round(8*n)),x.push(y),y=(0,A.M9)((0,A.ws)(i/4,o/4),(0,A.ws)(l,h)),x.push(y),y=(0,A.M9)((0,A.ws)(0,(0,s.z0)(a)),(0,A.ws)(10*c,Math.min(10*u,255))),x.push(y),f&&x.push(...f)}}class P extends w{constructor(t){super(t)}add(t,e,r,n,i){const s=this.array,o=(0,A.M9)(2*t+r,2*e+n);s.push(o),i&&s.push(...i)}}class k{constructor(t,e,r){this.layerExtent=4096,this._features=[],this.layer=t,this.zoom=e,this._spriteInfo=r,this._filter=t.getFeatureFilter()}pushFeature(t){this._filter&&!this._filter.filter(t,this.zoom)||this._features.push(t)}hasFeatures(){return this._features.length>0}getResources(t,e,r){}}class V extends k{constructor(t,e,r,n,i){super(t,e,r),this.type=4,this._circleVertexBuffer=n,this._circleIndexBuffer=i}get circleIndexStart(){return this._circleIndexStart}get circleIndexCount(){return this._circleIndexCount}processFeatures(t){const e=this._circleVertexBuffer,r=this._circleIndexBuffer;this._circleIndexStart=3*r.index,this._circleIndexCount=0;const n=this.layer,i=this.zoom;t&&t.setExtent(this.layerExtent);for(const s of this._features){const o=s.getGeometry(t);if(!o)continue;const a=n.circleMaterial.encodeAttributes(s,i,n);for(const t of o)if(t)for(const n of t){const t=e.index;e.add(n.x,n.y,0,0,a),e.add(n.x,n.y,0,1,a),e.add(n.x,n.y,1,0,a),e.add(n.x,n.y,1,1,a),r.add(t,t+1,t+2),r.add(t+1,t+2,t+3),this._circleIndexCount+=6}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this._circleVertexBuffer.array.length,t+=this._circleIndexBuffer.array.length;const e=new Uint32Array(t),r=new Int32Array(e.buffer);let n=0;e[n++]=this.type,e[n++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[n++]=this.layerUIDs[t];e[n++]=this._circleIndexStart,e[n++]=this._circleIndexCount,e[n++]=this._circleVertexBuffer.array.length;for(let t=0;t<this._circleVertexBuffer.array.length;t++)r[n++]=this._circleVertexBuffer.array[t];e[n++]=this._circleIndexBuffer.array.length;for(let t=0;t<this._circleIndexBuffer.array.length;t++)e[n++]=this._circleIndexBuffer.array[t];return e.buffer}}var S=r(98291),R=r(83349);class E extends k{constructor(t,e,r,n,i,s,o){super(t,e,r),this.type=1,this._patternMap=new Map,this._fillVertexBuffer=n,this._fillIndexBuffer=i,this._outlineVertexBuffer=s,this._outlineIndexBuffer=o}get fillIndexStart(){return this._fillIndexStart}get fillIndexCount(){return this._fillIndexCount}get outlineIndexStart(){return this._outlineIndexStart}get outlineIndexCount(){return this._outlineIndexCount}getResources(t,e,r){const n=this.layer,i=this.zoom,s=n.getPaintProperty("fill-pattern");if(s)if(s.isDataDriven)for(const t of this._features)e(s.getValue(i,t),!0);else e(s.getValue(i),!0)}processFeatures(t){this._fillIndexStart=3*this._fillIndexBuffer.index,this._fillIndexCount=0,this._outlineIndexStart=3*this._outlineIndexBuffer.index,this._outlineIndexCount=0;const e=this.layer,r=this.zoom,{fillMaterial:n,outlineMaterial:i,hasDataDrivenFill:s,hasDataDrivenOutline:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("fill-pattern"),l=a?.isDataDriven;let h=!a&&e.getPaintValue("fill-antialias",r);if(e.outlineUsesFillColor){if(h&&!e.hasDataDrivenOpacity){const t=e.getPaintValue("fill-opacity",r),n=e.getPaintValue("fill-opacity",r+1);t<1&&n<1&&(h=!1)}if(h&&!e.hasDataDrivenColor){const t=e.getPaintValue("fill-color",r),n=e.getPaintValue("fill-color",r+1);t[3]<1&&n[3]<1&&(h=!1)}}const c=this._features,u=t?.validateTessellation;if(l){const s=[];for(const l of c){const c=a.getValue(r,l),u=this._spriteInfo[c];if(!u?.rect)continue;const f=n.encodeAttributes(l,r,e,u),x=h&&o?i.encodeAttributes(l,r,e):[],y=l.getGeometry(t);s.push({ddFillAttributes:f,ddOutlineAttributes:x,page:u.page,geometry:y}),s.sort((t,e)=>t.page-e.page)}for(const{ddFillAttributes:t,ddOutlineAttributes:r,page:n,geometry:i}of s)this._processFeature(i,h,e.outlineUsesFillColor,t,r,u,n)}else for(const a of c){const l=s?n.encodeAttributes(a,r,e):null,c=h&&o?i.encodeAttributes(a,r,e):null,f=a.getGeometry(t);this._processFeature(f,h,e.outlineUsesFillColor,l,c,u)}}serialize(){let t=10;t+=this.layerUIDs.length,t+=this._fillVertexBuffer.array.length,t+=this._fillIndexBuffer.array.length,t+=this._outlineVertexBuffer.array.length,t+=this._outlineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),r=new Int32Array(e.buffer);let n=0;e[n++]=this.type,e[n++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[n++]=this.layerUIDs[t];e[n++]=this._fillIndexStart,e[n++]=this._fillIndexCount,e[n++]=this._outlineIndexStart,e[n++]=this._outlineIndexCount;const i=this._patternMap,s=i.size;if(e[n++]=s,s>0)for(const[t,[r,s]]of i)e[n++]=t,e[n++]=r,e[n++]=s;e[n++]=this._fillVertexBuffer.array.length;for(let t=0;t<this._fillVertexBuffer.array.length;t++)r[n++]=this._fillVertexBuffer.array[t];e[n++]=this._fillIndexBuffer.array.length;for(let t=0;t<this._fillIndexBuffer.array.length;t++)e[n++]=this._fillIndexBuffer.array[t];e[n++]=this._outlineVertexBuffer.array.length;for(let t=0;t<this._outlineVertexBuffer.array.length;t++)r[n++]=this._outlineVertexBuffer.array[t];e[n++]=this._outlineIndexBuffer.array.length;for(let t=0;t<this._outlineIndexBuffer.array.length;t++)e[n++]=this._outlineIndexBuffer.array[t];return e.buffer}_processFeature(t,e,r,n,i,s,o){if(!t)return;const a=t.length,l=!i||0===i.length;if(e&&(!r||l))for(let e=0;e<a;e++)this._processOutline(t[e],i);let h;for(let e=0;e<a;e++){const r=E._area(t[e]);r>32?(void 0!==h&&this._processFill(t,h,n,s,o),h=[e]):r<-32&&void 0!==h&&h.push(e)}void 0!==h&&this._processFill(t,h,n,s,o)}_processOutline(t,e){const r=this._outlineVertexBuffer,n=this._outlineIndexBuffer,s=n.index;let o,a,l;const h=new i.bR(0,0),c=new i.bR(0,0),u=new i.bR(0,0);let f=-1,x=-1,y=-1,d=-1,p=-1,g=!1,_=t.length;if(_<2)return;const m=t[0];let b=t[_-1];for(;_&&b.isEqual(m);)--_,b=t[_-1];if(!(_-0<2)){for(let i=0;i<_;++i){0===i?(o=t[_-1],a=t[0],l=t[1],h.assignSub(a,o),h.normalize(),h.rightPerpendicular()):(o=a,a=l,l=i!==_-1?t[i+1]:t[0],h.assign(c));const s=this._isClipEdge(o,a);-1===d&&(g=s),c.assignSub(l,a),c.normalize(),c.rightPerpendicular();const m=h.x*c.y-h.y*c.x;u.assignAdd(h,c),u.normalize();const b=-u.x*-h.x+-u.y*-h.y;let w=Math.abs(0!==b?1/b:1);w>8&&(w=8),m>=0?(y=r.add(a.x,a.y,h.x,h.y,0,1,e),-1===d&&(d=y),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y),x=r.add(a.x,a.y,w*-u.x,w*-u.y,0,-1,e),-1===p&&(p=x),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y),f=x,x=y,y=r.add(a.x,a.y,u.x,u.y,0,1,e),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y),x=r.add(a.x,a.y,c.x,c.y,0,1,e),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y)):(y=r.add(a.x,a.y,w*u.x,w*u.y,0,1,e),-1===d&&(d=y),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y),x=r.add(a.x,a.y,-h.x,-h.y,0,-1,e),-1===p&&(p=x),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y),f=x,x=y,y=r.add(a.x,a.y,-u.x,-u.y,0,-1,e),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y),f=r.add(a.x,a.y,-c.x,-c.y,0,-1,e),f>=0&&x>=0&&y>=0&&!s&&n.add(f,x,y))}f>=0&&x>=0&&d>=0&&!g&&n.add(f,x,d),f>=0&&d>=0&&p>=0&&!g&&n.add(f,p,d),this._outlineIndexCount+=3*(n.index-s)}}_processFill(t,e,r,n,i){let s;e.length>1&&(s=[]);let o=0;for(const r of e)0!==o&&s.push(o),o+=t[r].length;const a=2*o,l=S.A.acquire();for(const r of e){const e=t[r],n=e.length;for(let t=0;t<n;++t)l.push(e[t].x,e[t].y)}const h=(0,R.e)(l,s,2);if(R.e.deviation(l,s,2,h)>0){const n=e.map(e=>t[e].length),{buffer:s,vertexCount:o}=(0,m.QT)(l,n);if(o>0){const t=this._fillVertexBuffer.index;for(let t=0;t<o;t++)this._fillVertexBuffer.add(s[2*t],s[2*t+1],r);for(let e=0;e<o;e+=3){const r=t+e;this._fillIndexBuffer.add(r,r+1,r+2)}if(void 0!==i){const t=this._patternMap,e=t.get(i);e?e[1]+=o:t.set(i,[this._fillIndexStart+this._fillIndexCount,o])}this._fillIndexCount+=o}}else{const t=h.length;if(t>0){const e=this._fillVertexBuffer.index;let n=0;for(;n<a;)this._fillVertexBuffer.add(l[n++],l[n++],r);let s=0;for(;s<t;)this._fillIndexBuffer.add(e+h[s++],e+h[s++],e+h[s++]);if(void 0!==i){const e=this._patternMap,r=e.get(i);r?r[1]+=t:e.set(i,[this._fillIndexStart+this._fillIndexCount,t])}this._fillIndexCount+=t}}S.A.release(l)}_isClipEdge(t,e){return t.x===e.x?t.x<=-64||t.x>=4160:t.y===e.y&&(t.y<=-64||t.y>=4160)}static _area(t){let e=0;const r=t.length-1;for(let n=0;n<r;n++)e+=(t[n].x-t[n+1].x)*(t[n].y+t[n+1].y);return e+=(t[r].x-t[0].x)*(t[r].y+t[0].y),.5*e}}var D=r(83773);class C extends k{constructor(t,e,r,n,i){super(t,e,r),this.type=2,this._tessellationOptions={pixelCoordRatio:8,halfWidth:0,offset:0},this._patternMap=new Map,this.tessellationProperties={_lineVertexBuffer:null,_lineIndexBuffer:null,_ddValues:null},this.tessellationProperties._lineVertexBuffer=n,this.tessellationProperties._lineIndexBuffer=i,this._lineTessellator=new D.i(U(this.tessellationProperties),F(this.tessellationProperties),t.canUseThinTessellation)}get lineIndexStart(){return this._lineIndexStart}get lineIndexCount(){return this._lineIndexCount}getResources(t,e,r){const n=this.layer,i=this.zoom,s=n.getPaintProperty("line-pattern"),o=n.getPaintProperty("line-dasharray"),a=n.getLayoutProperty("line-cap");if(!s&&!o)return;const l=a?.getValue(i)||0,h=a?.isDataDriven,c=s?.isDataDriven,u=o?.isDataDriven;if(c||u)for(const t of this._features)e(c?s.getValue(i,t):this._getDashArrayKey(t,i,n,o,h,a,l));else if(s)e(s.getValue(i));else if(o){const t=o.getValue(i);e(n.getDashKey(t,l))}}processFeatures(t){this._lineIndexStart=3*this.tessellationProperties._lineIndexBuffer.index,this._lineIndexCount=0;const e=this.layer,r=this.zoom,n=this._features,i=this._tessellationOptions,{hasDataDrivenLine:s,lineMaterial:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("line-pattern"),l=e.getPaintProperty("line-dasharray"),h=a?.isDataDriven,c=l?.isDataDriven;let u;u=e.getLayoutProperty("line-cap");const f=u?.isDataDriven?u:null,x=f?null:e.getLayoutValue("line-cap",r),y=x||0,d=!!f;u=e.getLayoutProperty("line-join");const p=u?.isDataDriven?u:null,g=p?null:e.getLayoutValue("line-join",r);u=e.getLayoutProperty("line-miter-limit");const _=u?.isDataDriven?u:null,m=_?null:e.getLayoutValue("line-miter-limit",r);u=e.getLayoutProperty("line-round-limit");const b=u?.isDataDriven?u:null,w=b?null:e.getLayoutValue("line-round-limit",r);u=e.getPaintProperty("line-width");const I=u?.isDataDriven?u:null,v=I?null:e.getPaintValue("line-width",r);u=e.getPaintProperty("line-offset");const A=u?.isDataDriven?u:null,T=A?null:e.getPaintValue("line-offset",r);if(h||c){const s=[];for(const i of n){const n=h?a.getValue(r,i):this._getDashArrayKey(i,r,e,l,d,f,y),c=this._spriteInfo[n];if(!c?.rect)continue;const u=o.encodeAttributes(i,r,e,c),M=i.getGeometry(t);s.push({ddAttributes:u,page:c.page,cap:f?f.getValue(r,i):x,join:p?p.getValue(r,i):g,miterLimit:_?_.getValue(r,i):m,roundLimit:b?b.getValue(r,i):w,halfWidth:.5*(I?I.getValue(r,i):v),offset:A?A.getValue(r,i):T,geometry:M})}s.sort((t,e)=>t.page-e.page),i.textured=!0;for(const{ddAttributes:t,page:e,cap:r,join:n,miterLimit:o,roundLimit:a,halfWidth:l,offset:h,geometry:c}of s)i.capType=r,i.joinType=n,i.miterLimit=o,i.roundLimit=a,i.halfWidth=l,i.offset=h,this._processFeature(c,t,e)}else{if(a){const t=a.getValue(r),e=this._spriteInfo[t];if(!e?.rect)return}i.textured=!(!a&&!l),i.capType=x,i.joinType=g,i.miterLimit=m,i.roundLimit=w,i.halfWidth=.5*v,i.offset=T;for(const a of n){const n=s?o.encodeAttributes(a,r,e):null;f&&(i.capType=f.getValue(r,a)),p&&(i.joinType=p.getValue(r,a)),_&&(i.miterLimit=_.getValue(r,a)),b&&(i.roundLimit=b.getValue(r,a)),I&&(i.halfWidth=.5*I.getValue(r,a)),A&&(i.offset=A.getValue(r,a));const l=a.getGeometry(t);this._processFeature(l,n)}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this.tessellationProperties._lineVertexBuffer.array.length,t+=this.tessellationProperties._lineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),r=new Int32Array(e.buffer);let n=0;e[n++]=this.type,e[n++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[n++]=this.layerUIDs[t];e[n++]=this._lineIndexStart,e[n++]=this._lineIndexCount;const i=this._patternMap,s=i.size;if(e[n++]=s,s>0)for(const[t,[r,s]]of i)e[n++]=t,e[n++]=r,e[n++]=s;e[n++]=this.tessellationProperties._lineVertexBuffer.array.length;for(let t=0;t<this.tessellationProperties._lineVertexBuffer.array.length;t++)r[n++]=this.tessellationProperties._lineVertexBuffer.array[t];e[n++]=this.tessellationProperties._lineIndexBuffer.array.length;for(let t=0;t<this.tessellationProperties._lineIndexBuffer.array.length;t++)e[n++]=this.tessellationProperties._lineIndexBuffer.array[t];return e.buffer}_processFeature(t,e,r){if(!t)return;const n=t.length;for(let i=0;i<n;i++)this._processGeometry(t[i],e,r)}_processGeometry(t,e,r){if(t.length<2)return;let n,i,s=t[0],o=1;for(;o<t.length;)n=t[o].x-s.x,i=t[o].y-s.y,n*n+i*i<1e-6?t.splice(o,1):(s=t[o],++o);if(t.length<2)return;const a=this.tessellationProperties._lineIndexBuffer,l=3*a.index;this._tessellationOptions.initialDistance=0,this._tessellationOptions.wrapDistance=65535,this.tessellationProperties._ddValues=e,this._lineTessellator.tessellate(t,this._tessellationOptions);const h=3*a.index-l;if(void 0!==r){const t=this._patternMap,e=t.get(r);e?e[1]+=h:t.set(r,[l+this._lineIndexCount,h])}this._lineIndexCount+=h}_getDashArrayKey(t,e,r,n,i,s,o){const a=i?s.getValue(e,t):o,l=n.getValue(e,t);return r.getDashKey(l,a)}}const U=t=>(e,r,n,i,s,o,a,l,h,c,u)=>(t._lineVertexBuffer.add(e,r,a,l,n,i,s,o,h,c,u,t._ddValues),t._lineVertexBuffer.index-1),F=t=>(e,r,n)=>{t._lineIndexBuffer.add(e,r,n)};var N=r(32488),z=r(97768),O=r(799),G=r(4264);function j(t,e){return t.iconMosaicItem&&e.iconMosaicItem?t.iconMosaicItem.page===e.iconMosaicItem.page?0:t.iconMosaicItem.page-e.iconMosaicItem.page:t.iconMosaicItem&&!e.iconMosaicItem?1:!t.iconMosaicItem&&e.iconMosaicItem?-1:0}class W extends k{constructor(t,e,r,n,i,s,o,a,l){super(e,r,l.getSpriteItems()),this.type=3,this._markerMap=new Map,this._glyphMap=new Map,this._glyphBufferDataStorage=new Map,this._isIconSDF=!1,this._sourceTileKey=t,this._iconVertexBuffer=n,this._iconIndexBuffer=i,this._textVertexBuffer=s,this._textIndexBuffer=o,this._placementEngine=a,this._workerTileHandler=l}get markerPageMap(){return this._markerMap}get glyphsPageMap(){return this._glyphMap}get symbolInstances(){return this._symbolInstances}static{this._bidiEngine=new N.A}getResources(t,e,r){const n=this.layer,i=this.zoom;t&&t.setExtent(this.layerExtent);const s=n.getLayoutProperty("icon-image"),o=n.getLayoutProperty("text-field");let a=n.getLayoutProperty("text-transform"),l=n.getLayoutProperty("text-font");const h=[];let c,u,f,x;s&&!s.isDataDriven&&(c=s.getValue(i)),o&&!o.isDataDriven&&(u=o.getValue(i)),a&&a.isDataDriven||(f=n.getLayoutValue("text-transform",i),a=null),l&&l.isDataDriven||(x=n.getLayoutValue("text-font",i),l=null);for(const y of this._features){const d=y.getGeometry(t);if(!d||0===d.length)continue;let p,g;s&&(p=s.isDataDriven?s.getValue(i,y):this._replaceKeys(c,y.values),p&&e(p));let _=!1;if(o&&(g=o.isDataDriven?o.getValue(i,y):this._replaceKeys(u,y.values),g)){switch(g=g.replaceAll("\\n","\n"),a&&(f=a.getValue(i,y)),f){case 2:g=g.toLowerCase();break;case 1:g=g.toUpperCase()}if(W._bidiEngine.hasBidiChar(g)){let t;t="rtl"===W._bidiEngine.checkContextual(g)?"IDNNN":"ICNNN",g=W._bidiEngine.bidiTransform(g,t,"VLYSN"),_=!0}if(g.length>0){l&&(x=l.getValue(i,y));for(const t of x){let e=r[t];e||(e=r[t]=new Set);for(const t of g){const r=t.codePointAt(0);null!=r&&e.add(r)}}}}if(!p&&!g)continue;const m=n.getLayoutValue("symbol-sort-key",i,y),b={feature:y,sprite:p,label:g,rtl:_,geometry:d,hash:(g?(0,O.Wm)(g):0)^(p?(0,O.Wm)(p):0),priority:m,textFont:x};h.push(b)}this._symbolFeatures=h}processFeatures(t){t&&t.setExtent(this.layerExtent);const e=this.layer,r=this.zoom,n=e.getLayoutValue("symbol-placement",r),i=0!==n,o=8*e.getLayoutValue("symbol-spacing",r),a=e.getLayoutProperty("icon-image"),l=e.getLayoutProperty("text-field"),h=a?new G.aR(e,r,i):null,c=l?new G.uU(e,r,i):null,f=this._workerTileHandler;let y;a&&(y=f.getSpriteItems()),this._iconIndexStart=3*this._iconIndexBuffer.index,this._textIndexStart=3*this._textIndexBuffer.index,this._iconIndexCount=0,this._textIndexCount=0,this._markerMap.clear(),this._glyphMap.clear();const d=[];let p=1;c?.size&&(p=c.size/24);const g=c?c.maxAngle*s.os:0,_=c?8*c.size:0;for(const t of this._symbolFeatures){let e,s;h&&y&&t.sprite&&(e=y[t.sprite],e&&e.sdf&&(this._isIconSDF=!0)),e&&h.update(r,t.feature);let a=0;const l=t.label;if(l){(0,z.Lw)(c),c.update(r,t.feature);const e=i&&0===c.rotationAlignment?c.keepUpright:c.writingMode&&c.writingMode.includes(1);let n=.5;switch(c.anchor){case 5:case 1:case 7:n=0;break;case 6:case 2:case 8:n=1}let o=.5;switch(c.anchor){case 5:case 3:case 6:o=0;break;case 7:case 4:case 8:o=1}let h=.5;switch(c.justify){case 0:h=n;break;case 1:h=0;break;case 3:h=1}const x=24*c.letterSpacing,y=i?0:24*c.maxWidth,d=24*c.lineHeight,g=t.textFont.map(t=>f.getGlyphItems(t));if(s=new u(g,y,d,x,n,o,h).getShaping(l,t.rtl,e),s&&s.length>0){let t=1e30,e=-1e30;for(const r of s)t=Math.min(t,r.x),e=Math.max(e,r.x);a=(e-t+48)*p*8}}for(let r of t.geometry){const l=[];if(1===n){if(s?.length&&c?.size){const t=8*c.size*(2+Math.min(2,4*Math.abs(c.offset[1])));r=W._smoothVertices(r,t)}W._pushAnchors(l,r,o,a)}else 2===n?W._pushCenterAnchor(l,r):3===t.feature.type?W._pushCentroid(l,r):l.push(new x(r[0].x,r[0].y));for(const n of l){if(n.x<0||n.x>4096||n.y<0||n.y>4096)continue;if(i&&a>0&&0===c?.rotationAlignment&&!W._honorsTextMaxAngle(r,n,a,g,_))continue;const o={shaping:s,line:r,iconMosaicItem:e,anchor:n,symbolFeature:t,textColliders:[],iconColliders:[],textVertexRanges:[],iconVertexRanges:[]};d.push(o),this._processFeature(o,h,c)}}}d.sort(j),this._addPlacedGlyphs(),this._symbolInstances=d}serialize(){let t=14;t+=this.layerUIDs.length,t+=3*this.markerPageMap.size,t+=3*this.glyphsPageMap.size,t+=W._symbolsSerializationLength(this._symbolInstances),t+=this._iconVertexBuffer.array.length,t+=this._iconIndexBuffer.array.length,t+=this._textVertexBuffer.array.length,t+=this._textIndexBuffer.array.length;const e=new Uint32Array(t),r=new Int32Array(e.buffer),n=new Float32Array(e.buffer),[i,s,o]=this._sourceTileKey.split("/");let a=0;e[a++]=this.type,e[a++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[a++]=this.layerUIDs[t];e[a++]=this._isIconSDF?1:0,e[a++]=parseFloat(i),e[a++]=parseFloat(s),e[a++]=parseFloat(o),e[a++]=this.markerPageMap.size;for(const[t,[r,n]]of this.markerPageMap)e[a++]=t,e[a++]=r,e[a++]=n;e[a++]=this.glyphsPageMap.size;for(const[t,[r,n]]of this.glyphsPageMap)e[a++]=t,e[a++]=r,e[a++]=n;e[a++]=this._iconVertexBuffer.index/4,e[a++]=this._textVertexBuffer.index/4,a=W.serializeSymbols(e,r,n,a,this._symbolInstances),e[a++]=this._iconVertexBuffer.array.length;for(let t=0;t<this._iconVertexBuffer.array.length;t++)r[a++]=this._iconVertexBuffer.array[t];e[a++]=this._iconIndexBuffer.array.length;for(let t=0;t<this._iconIndexBuffer.array.length;t++)e[a++]=this._iconIndexBuffer.array[t];e[a++]=this._textVertexBuffer.array.length;for(let t=0;t<this._textVertexBuffer.array.length;t++)r[a++]=this._textVertexBuffer.array[t];e[a++]=this._textIndexBuffer.array.length;for(let t=0;t<this._textIndexBuffer.array.length;t++)e[a++]=this._textIndexBuffer.array[t];return e.buffer}static _symbolsSerializationLength(t){let e=0;e+=1;for(const r of t||[]){e+=5,e+=1;for(const t of r.textColliders)e+=10;for(const t of r.iconColliders)e+=10;e+=1,e+=2*r.textVertexRanges.length,e+=1,e+=2*r.iconVertexRanges.length}return e}static serializeSymbols(t,e,r,n,i){i=i||[],e[n++]=i.length;for(const t of i){e[n++]=t.anchor.x,e[n++]=t.anchor.y,e[n++]=t.symbolFeature.hash,e[n++]=t.symbolFeature.priority,e[n++]=t.symbolFeature.feature.featureIndex,e[n++]=t.textColliders.length+t.iconColliders.length;for(const i of t.textColliders)e[n++]=i.xTile,e[n++]=i.yTile,e[n++]=i.dxPixels,e[n++]=i.dyPixels,e[n++]=i.hard?1:0,e[n++]=i.partIndex,r[n++]=i.minLod,r[n++]=i.maxLod,e[n++]=i.width,e[n++]=i.height;for(const i of t.iconColliders)e[n++]=i.xTile,e[n++]=i.yTile,e[n++]=i.dxPixels,e[n++]=i.dyPixels,e[n++]=i.hard?1:0,e[n++]=i.partIndex,r[n++]=i.minLod,r[n++]=i.maxLod,e[n++]=i.width,e[n++]=i.height;e[n++]=t.textVertexRanges.length;for(const[r,i]of t.textVertexRanges)e[n++]=r,e[n++]=i;e[n++]=t.iconVertexRanges.length;for(const[r,i]of t.iconVertexRanges)e[n++]=r,e[n++]=i}return n}_replaceKeys(t,e){return t.replaceAll(/{([^{}]+)}/g,(t,r)=>r in e?e[r]:"")}_processFeature(t,e,r){const{line:n,iconMosaicItem:i,shaping:o,anchor:a}=t,l=this.zoom,h=this.layer,c=!!i;let u=!0;c&&(u=e?.optional||!i);const f=o&&o.length>0,x=!f||r?.optional;let y,d;if(c&&(y=this._placementEngine.getIconPlacement(a,i,e)),(y||u)&&(f&&(d=this._placementEngine.getTextPlacement(a,o,n,r)),d||x)){if(y&&d||(x||u?x||d?u||y||(d=null):y=null:(y=null,d=null)),d){const e=h.hasDataDrivenText?h.textMaterial.encodeAttributes(t.symbolFeature.feature,l,h):null;if(this._storePlacedGlyphs(t,d.shapes,l,r.rotationAlignment,e),d.textColliders){t.textColliders=d.textColliders;for(const t of d.textColliders){t.minLod=Math.max(l+(0,s.p6)(t.minLod),0),t.maxLod=Math.min(l+(0,s.p6)(t.maxLod),25);const e=t.angle;if(e){const r=Math.cos(e),n=Math.sin(e),i=t.dxPixels*r-t.dyPixels*n,s=t.dxPixels*n+t.dyPixels*r,o=(t.dxPixels+t.width)*r-t.dyPixels*n,a=(t.dxPixels+t.width)*n+t.dyPixels*r,l=t.dxPixels*r-(t.dyPixels+t.height)*n,h=t.dxPixels*n+(t.dyPixels+t.height)*r,c=(t.dxPixels+t.width)*r-(t.dyPixels+t.height)*n,u=(t.dxPixels+t.width)*n+(t.dyPixels+t.height)*r,f=Math.min(i,o,l,c),x=Math.max(i,o,l,c),y=Math.min(s,a,h,u),d=Math.max(s,a,h,u);t.dxPixels=f,t.dyPixels=y,t.width=x-f,t.height=d-y}}}}if(y){const r=h.hasDataDrivenIcon?h.iconMaterial.encodeAttributes(t.symbolFeature.feature,l,h):null;if(this._addPlacedIcons(t,y.shapes,l,i.page,1===e.rotationAlignment,r),y.iconColliders){t.iconColliders=y.iconColliders;for(const t of y.iconColliders){t.minLod=Math.max(l+(0,s.p6)(t.minLod),0),t.maxLod=Math.min(l+(0,s.p6)(t.maxLod),25);const e=t.angle;if(e){const r=Math.cos(e),n=Math.sin(e),i=t.dxPixels*r-t.dyPixels*n,s=t.dxPixels*n+t.dyPixels*r,o=(t.dxPixels+t.width)*r-t.dyPixels*n,a=(t.dxPixels+t.width)*n+t.dyPixels*r,l=t.dxPixels*r-(t.dyPixels+t.height)*n,h=t.dxPixels*n+(t.dyPixels+t.height)*r,c=(t.dxPixels+t.width)*r-(t.dyPixels+t.height)*n,u=(t.dxPixels+t.width)*n+(t.dyPixels+t.height)*r,f=Math.min(i,o,l,c),x=Math.max(i,o,l,c),y=Math.min(s,a,h,u),d=Math.max(s,a,h,u);t.dxPixels=f,t.dyPixels=y,t.width=x-f,t.height=d-y}}}}}}_addPlacedIcons(t,e,r,n,i,o){const a=Math.max(r-1,0),l=this._iconVertexBuffer,h=this._iconIndexBuffer,c=this._markerMap;for(const u of e){const e=i?0:Math.max(r+(0,s.p6)(u.minzoom),a),f=i?25:Math.min(r+(0,s.p6)(u.maxzoom),25);if(f<=e)continue;const x=u.tl,y=u.tr,d=u.bl,p=u.br,g=u.mosaicRect,_=u.labelAngle,m=u.minAngle,b=u.maxAngle,w=u.anchor,I=l.index,v=g.x,A=g.y,T=v+g.width,M=A+g.height,L=l.index;l.add(w.x,w.y,x.x,x.y,v,A,_,m,b,e,f,o),l.add(w.x,w.y,y.x,y.y,T,A,_,m,b,e,f,o),l.add(w.x,w.y,d.x,d.y,v,M,_,m,b,e,f,o),l.add(w.x,w.y,p.x,p.y,T,M,_,m,b,e,f,o),t.iconVertexRanges.length>0&&t.iconVertexRanges[0][0]+t.iconVertexRanges[0][1]===L?t.iconVertexRanges[0][1]+=4:t.iconVertexRanges.push([L,4]),h.add(I,I+1,I+2),h.add(I+1,I+2,I+3),c.has(n)?c.get(n)[1]+=6:c.set(n,[this._iconIndexStart+this._iconIndexCount,6]),this._iconIndexCount+=6}}_addPlacedGlyphs(){const t=this._textVertexBuffer,e=this._textIndexBuffer,r=this._glyphMap;for(const[n,i]of this._glyphBufferDataStorage)for(const s of i){const i=t.index,o=s.symbolInstance,a=s.ddAttributes,l=t.index;t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.tl[0],s.tl[1],s.xmin,s.ymin,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.tr[0],s.tr[1],s.xmax,s.ymin,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.bl[0],s.bl[1],s.xmin,s.ymax,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.br[0],s.br[1],s.xmax,s.ymax,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),o.textVertexRanges.length>0&&o.textVertexRanges[0][0]+o.textVertexRanges[0][1]===l?o.textVertexRanges[0][1]+=4:o.textVertexRanges.push([l,4]),e.add(i,i+1,i+2),e.add(i+1,i+2,i+3),r.has(n)?r.get(n)[1]+=6:r.set(n,[this._textIndexStart+this._textIndexCount,6]),this._textIndexCount+=6}this._glyphBufferDataStorage.clear()}_storePlacedGlyphs(t,e,r,n,i){const o=Math.max(r-1,0),a=1===n;let l,h,c,u,f,x,y,d,p,g,_;for(const n of e)l=a?0:Math.max(r+(0,s.p6)(n.minzoom),o),h=a?25:Math.min(r+(0,s.p6)(n.maxzoom),25),h<=l||(c=n.tl,u=n.tr,f=n.bl,x=n.br,y=n.labelAngle,d=n.minAngle,p=n.maxAngle,g=n.anchor,_=n.mosaicRect,this._glyphBufferDataStorage.has(n.page)||this._glyphBufferDataStorage.set(n.page,[]),this._glyphBufferDataStorage.get(n.page).push({glyphAnchor:[g.x,g.y],tl:[c.x,c.y],tr:[u.x,u.y],bl:[f.x,f.y],br:[x.x,x.y],xmin:_.x,ymin:_.y,xmax:_.x+_.width,ymax:_.y+_.height,labelAngle:y,minAngle:d,maxAngle:p,minLod:l,maxLod:h,placementLod:o,symbolInstance:t,ddAttributes:i}))}static _pushAnchors(t,e,r,n){r+=n;let o=0;const a=e.length-1;for(let t=0;t<a;t++)o+=i.bR.distance(e[t],e[t+1]);let l=n||r;if(l*=.5,o<=l)return;const h=l/o;let c=0,u=-(r=o/Math.max(Math.round(o/r),1))/2;const f=e.length-1;for(let n=0;n<f;n++){const i=e[n],o=e[n+1],a=o.x-i.x,l=o.y-i.y,f=Math.sqrt(a*a+l*l);let y;for(;u+r<c+f;){u+=r;const e=(u-c)/f,d=(0,s.GW)(i.x,o.x,e),p=(0,s.GW)(i.y,o.y,e);void 0===y&&(y=Math.atan2(l,a)),t.push(new x(d,p,y,n,h))}c+=f}}static _pushCenterAnchor(t,e){let r=0;const n=e.length-1;for(let t=0;t<n;t++)r+=i.bR.distance(e[t],e[t+1]);const o=r/2;let a=0;const l=e.length-1;for(let r=0;r<l;r++){const n=e[r],i=e[r+1],l=i.x-n.x,h=i.y-n.y,c=Math.sqrt(l*l+h*h);if(o<a+c){const e=(o-a)/c,u=(0,s.GW)(n.x,i.x,e),f=(0,s.GW)(n.y,i.y,e),y=Math.atan2(h,l);return void t.push(new x(u,f,y,r,0))}a+=c}}static _deviation(t,e,r){const n=(e.x-t.x)*(r.x-e.x)+(e.y-t.y)*(r.y-e.y),i=(e.x-t.x)*(r.y-e.y)-(e.y-t.y)*(r.x-e.x);return Math.atan2(i,n)}static _honorsTextMaxAngle(t,e,r,n,s){let o=0;const a=r/2;let l=new i.bR(e.x,e.y),h=e.segment+1;for(;o>-a;){if(--h,h<0)return!1;o-=i.bR.distance(t[h],l),l=t[h]}o+=i.bR.distance(t[h],t[h+1]);const c=[];let u=0;const f=t.length;for(;o<a;){const e=t[h];let r,a=h;do{if(++a,a===f)return!1;r=t[a]}while(r.isEqual(e));let l,x=a;do{if(++x,x===f)return!1;l=t[x]}while(l.isEqual(r));const y=this._deviation(e,r,l);for(c.push({deviation:y,distToAnchor:o}),u+=y;o-c[0].distToAnchor>s;)u-=c.shift().deviation;if(Math.abs(u)>n)return!1;o+=i.bR.distance(r,l),h=a}return!0}static _smoothVertices(t,e){if(e<=0)return t;let r=t.length;if(r<3)return t;const n=[];let s=0,o=0;n.push(0);for(let e=1;e<r;e++){const r=i.bR.distance(t[e],t[e-1]);r>0&&(s+=r,n.push(s),o++,o!==e&&(t[o]=t[e]))}if(r=o+1,r<3)return t;e=Math.min(e,.2*s);const a=t[0].x,l=t[0].y,h=t[r-1].x,c=t[r-1].y,u=i.bR.sub(t[0],t[1]);u.normalize(),t[0].x+=e*u.x,t[0].y+=e*u.y,u.assignSub(t[r-1],t[r-2]),u.normalize(),t[r-1].x+=e*u.x,t[r-1].y+=e*u.y,n[0]-=e,n[r-1]+=e;const f=[];f.push(new i.bR(a,l));const x=1e-6,y=.5*e;for(let s=1;s<r-1;s++){let o=0,a=0,l=0;for(let r=s-1;r>=0;r--){const i=y+n[r+1]-n[s];if(i<0)break;const h=n[r+1]-n[r],c=n[s]-n[r]<y?1:i/h;if(c<x)break;const u=c*c,f=c*i-.5*u*h,d=c*h/e,p=t[r+1],g=t[r].x-p.x,_=t[r].y-p.y;o+=d/f*(p.x*c*i+.5*u*(i*g-h*p.x)-u*c*h*g/3),a+=d/f*(p.y*c*i+.5*u*(i*_-h*p.y)-u*c*h*_/3),l+=d}for(let i=s+1;i<r;i++){const r=y-n[i-1]+n[s];if(r<0)break;const h=n[i]-n[i-1],c=n[i]-n[s]<y?1:r/h;if(c<x)break;const u=c*c,f=c*r-.5*u*h,d=c*h/e,p=t[i-1],g=t[i].x-p.x,_=t[i].y-p.y;o+=d/f*(p.x*c*r+.5*u*(r*g-h*p.x)-u*c*h*g/3),a+=d/f*(p.y*c*r+.5*u*(r*_-h*p.y)-u*c*h*_/3),l+=d}f.push(new i.bR(o/l,a/l))}return f.push(new i.bR(h,c)),t[0].x=a,t[0].y=l,t[r-1].x=h,t[r-1].y=c,f}static _pushCentroid(t,e){const r=4096,n=4096,i=e.length-1;let s=0,o=0,a=0,l=e[0].x,h=e[0].y;l>r&&(l=r),l<0&&(l=0),h>n&&(h=n),h<0&&(h=0);for(let t=1;t<i;t++){let i=e[t].x,c=e[t].y,u=e[t+1].x,f=e[t+1].y;i>r&&(i=r),i<0&&(i=0),c>n&&(c=n),c<0&&(c=0),u>r&&(u=r),u<0&&(u=0),f>n&&(f=n),f<0&&(f=0);const x=(i-l)*(f-h)-(u-l)*(c-h);s+=x*(l+i+u),o+=x*(h+c+f),a+=x}s/=3*a,o/=3*a,isNaN(s)||isNaN(o)||t.push(new x(s,o))}}class Z{constructor(t,e,r,n,o,a){if(this._pbfTiles={},this._tileClippers={},this._client=r,this._tile=e,this._sourceDataMaxLOD=n,a){this._styleLayerUIDs=new Set;for(const t of a)this._styleLayerUIDs.add(t)}this._styleRepository=o,this._layers=this._styleRepository?.layers??[];const[l,h,c]=e.tileKey.split("/").map(parseFloat);this._level=l;const u=(0,s.IU)(this._level);for(const e of Object.keys(t)){const r=t[e];if(this._pbfTiles[e]=new _.A(new Uint8Array(r.protobuff),new DataView(r.protobuff)),r.refKey){const[t]=r.refKey.split("/").map(parseFloat),n=l-t;if(n>0){const t=(1<<n)-1,r=h&t,s=c&t;this._tileClippers[e]=new i.O3(n,r,s,8,u)}}this._tileClippers[e]||(this._tileClippers[e]=new i.Ox)}}_canParseStyleLayer(t){return!this._styleLayerUIDs||this._styleLayerUIDs.has(t)}async parse(t){const e=(0,m.If)(),r=this._initialize(t),{returnedBuckets:n}=r;this._processLayers(r),this._linkReferences(r),this._filterFeatures(r);const i=[],s=new Set,o=(t,e)=>{s.has(t)||(i.push({name:t,repeat:e}),s.add(t))},a={};for(const t of n)t.getResources(t.tileClipper,o,a);if(4===this._tile.status)return[];const l=this._fetchResources(i,a,t);return Promise.all([...l,e]).then(()=>this._processFeatures(r.returnedBuckets))}_initialize(t){const e=t?.signal;return{signal:e,sourceNameToTileData:this._parseTileData(this._pbfTiles),layers:this._layers,zoom:this._level,sourceNameToTileClipper:this._tileClippers,sourceNameToUniqueSourceLayerBuckets:{},sourceNameToUniqueSourceLayers:{},returnedBuckets:[],layerIdToBucket:{},referencerUIDToReferencedId:new Map}}_processLayers(t){const{sourceNameToTileData:e,zoom:r,layers:n,sourceNameToTileClipper:i,sourceNameToUniqueSourceLayerBuckets:s,sourceNameToUniqueSourceLayers:o,returnedBuckets:a,layerIdToBucket:l,referencerUIDToReferencedId:h}=t,c=this._sourceDataMaxLOD;for(let t=n.length-1;t>=0;t--){const u=n[t];if(r<c){if(u.minzoom&&r<Math.floor(u.minzoom)||u.maxzoom&&r>=u.maxzoom)continue}else if(u.maxzoom&&r>=u.maxzoom)continue;if(0===u.type||!this._canParseStyleLayer(u.uid)||!e[u.source]||!i[u.source])continue;const f=e[u.source],x=i[u.source],y=u.sourceLayer,d=f[y];if(d){let t=o[u.source];if(t||(t=o[u.source]=new Set),t.add(u.sourceLayer),u.refLayerId)h.set(u.uid,u.refLayerId);else{const t=this._createBucket(u);if(t){t.layerUIDs=[u.uid],t.layerExtent=d.extent,t.tileClipper=x;let e=s[u.source];e||(e=s[u.source]={});let r=e[y];r||(r=e[y]=[]),r.push(t),a.push(t),l[u.id]=t}}}}}_linkReferences(t){const{layerIdToBucket:e,referencerUIDToReferencedId:r}=t;r.forEach((t,r)=>{e[t]&&e[t].layerUIDs.push(r)})}_filterFeatures(t){const{signal:e,sourceNameToTileData:r,sourceNameToUniqueSourceLayerBuckets:i,sourceNameToUniqueSourceLayers:s}=t,o=10*this._level,a=10*(this._level+1),l=[],h=[];for(const t of Object.keys(s))s[t].forEach(e=>{l.push(e),h.push(t)});for(let t=0;t<l.length;t++){const s=h[t],c=l[t];if(!r[s]||!i[s])continue;const u=r[s][c],f=i[s][c];if(!f||0===f.length)continue;if((0,n.G4)(e))return;let x=0;const y=u.getData();for(;y.nextTag(2);){const t=y.getMessage(),e=new b(t,u,x++);t.release();const r=e.values;if(r){const t=r._minzoom;if(t&&t>=a)continue;const e=r._maxzoom;if(e&&e<=o)continue}for(const t of f)t.pushFeature(e)}}}_fetchResources(t,e,r){const n=[],i=this._tile.getWorkerTileHandler();let s,o;t.length>0&&(s=i.fetchSprites(t,this._client,r),n.push(s));for(const t in e){const s=e[t];s.size>0&&(o=i.fetchGlyphs(this._tile.tileKey,t,s,this._client,r),n.push(o))}return n}_processFeatures(t){const e=t.filter(t=>t.hasFeatures()||this._canParseStyleLayer(t.layer.uid));for(const t of e)t.processFeatures(t.tileClipper);return e}_parseTileData(t){const e={};for(const r of Object.keys(t)){const n=t[r],i={};for(;n.next();)switch(n.tag()){case 3:{const t=n.getMessage(),e=new v(t);t.release(),i[e.name]=e;break}default:n.skip()}e[r]=i}return e}_createBucket(t){switch(t.type){case 0:return null;case 1:return this._createFillBucket(t);case 2:return this._createLineBucket(t);case 4:return this._createCircleBucket(t);case 3:return this._createSymbolBucket(t)}}_createFillBucket(t){return new E(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new M(t.fillMaterial.getStride()),new I,new L(t.outlineMaterial.getStride()),new I)}_createLineBucket(t){return new C(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new T(t.lineMaterial.getStride()),new I)}_createCircleBucket(t){return new V(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new P(t.circleMaterial.getStride()),new I)}_createSymbolBucket(t){const e=this._tile;return new W(e.tileKey,t,this._level,new B(t.iconMaterial.getStride()),new I,new B(t.textMaterial.getStride()),new I,e.placementEngine,e.getWorkerTileHandler())}}class q{constructor(t,e,r,n){this.status=0,this.placementEngine=new g,this.tileKey=t,this.refKeys=e,this._workerTileHandler=r,this._styleRepository=n}release(){this.tileKey="",this.refKeys=null,this.status=0,this._workerTileHandler=null}async parse(t,e){const r=e?.signal;if(null!=r){const t=()=>{r.removeEventListener("abort",t),this.status=4};r.addEventListener("abort",t)}let i;const s={bucketsWithData:[],emptyBuckets:null};try{i=await this._parse(t,e)}catch(t){if((0,n.zf)(t))throw t;return{result:s,transferList:[]}}this.status=2;const o=s.bucketsWithData,a=[];for(const t of i)if(t.hasFeatures()){const e=t.serialize();o.push(e)}else a.push(t.layer.uid);const l=[...o];let h=null;return a.length>0&&(h=Uint32Array.from(a),l.push(h.buffer)),s.emptyBuckets=h,{result:s,transferList:l}}setObsolete(){this.status=4}getLayers(){return this._workerTileHandler.getLayers()}getWorkerTileHandler(){return this._workerTileHandler}async _parse(t,e){const r=t.sourceName2DataAndRefKey;return 0===Object.keys(r).length?[]:(this.status=3,new Z(r,this,e.client,t.sourceDataMaxLOD,this._styleRepository,t.styleLayerUIDs).parse(e))}}var K=r(45013);class Y{constructor(){this._spriteInfo={},this._glyphInfo={},this._sourceDataMaxLOD=25}reset(){return this._spriteInfo={},this._glyphInfo={},Promise.resolve()}getLayers(){return this._styleRepository?.layers??[]}async createTileAndParse(t,e){const{key:r}=t,i={};for(const e of Object.keys(t.sourceName2DataAndRefKey)){const r=t.sourceName2DataAndRefKey[e];i[e]=r.refKey}const s=new q(r,i,this,this._styleRepository);try{return await s.parse({...t,sourceDataMaxLOD:this._sourceDataMaxLOD},e)}catch(t){if(s.setObsolete(),s.release(),!(0,n.zf)(t))throw t;return null}}updateStyle(t){if(!t||0===t.length||!this._styleRepository)return;const e=this._styleRepository;for(const r of t){const t=r.type,n=r.data;switch(t){case 0:e.setPaintProperties(n.layer,n.paint);break;case 1:e.setLayoutProperties(n.layer,n.layout);break;case 3:e.deleteStyleLayer(n.layer);break;case 2:e.setStyleLayer(n.layer,n.index);break;case 4:this._spriteInfo={}}}}setStyle(t){const{style:e,sourceDataMaxLOD:r}=t;this._styleRepository=new K.A(e),this._sourceDataMaxLOD=r,this._spriteInfo={},this._glyphInfo={}}fetchSprites(t,e,r){const n=[],i=this._spriteInfo;for(const e of t)void 0===i[e.name]&&n.push(e);return 0===n.length?Promise.resolve():e.invoke("getSprites",n,{signal:r?.signal}).then(t=>{for(const e in t){const r=t[e];i[e]=r}})}getSpriteItems(){return this._spriteInfo}fetchGlyphs(t,e,r,n,i){const s=[];let o=this._glyphInfo[e];return o?r.forEach(t=>{o[t]||s.push(t)}):(o=this._glyphInfo[e]=[],r.forEach(t=>s.push(t))),0===s.length?Promise.resolve():n.invoke("getGlyphs",{tileID:t,font:e,codePoints:s},i).then(t=>{for(let e=0;e<t.length;e++)t[e]&&(o[e]=t[e])})}getGlyphItems(t){return this._glyphInfo[t]}}},18989(t,e,r){r.d(e,{A:()=>n});class n{constructor(t=0,e=0,r=0,n=0){this.x=t,this.y=e,this.width=r,this.height=n}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}},83773(t,e,r){function n(t,e){return t.x===e.x&&t.y===e.y}function i(t){if(!t)return;const e=t.length;if(e<=1)return;let r=0;for(let i=1;i<e;i++)n(t[i],t[r])||++r===i||(t[r]=t[i]);t.length=r+1}function s(t,e){return t.x=e.y,t.y=-e.x,t}function o(t,e){return t.x=-e.y,t.y=e.x,t}function a(t,e){return t.x=e.x,t.y=e.y,t}function l(t,e){return t.x=-e.x,t.y=-e.y,t}function h(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function c(t,e){return t.x*e.y-t.y*e.x}function u(t,e){return t.x*e.x+t.y*e.y}function f(t,e,r,n){return t.x=e.x*r+e.y*n,t.y=e.x*n-e.y*r,t}r.d(e,{i:()=>x});class x{constructor(t,e,r){this._writeVertex=t,this._writeTriangle=e,this._canUseThinTessellation=r,this._prevNormal={x:void 0,y:void 0},this._nextNormal={x:void 0,y:void 0},this._textureNormalLeft={x:0,y:1},this._textureNormalRight={x:0,y:-1},this._textureNormal={x:void 0,y:void 0},this._joinNormal={x:void 0,y:void 0},this._inner={x:void 0,y:void 0},this._outer={x:void 0,y:void 0},this._roundStart={x:void 0,y:void 0},this._roundEnd={x:void 0,y:void 0},this._startBreak={x:void 0,y:void 0},this._endBreak={x:void 0,y:void 0},this._innerPrev={x:void 0,y:void 0},this._innerNext={x:void 0,y:void 0},this._bevelStart={x:void 0,y:void 0},this._bevelEnd={x:void 0,y:void 0},this._bevelMiddle={x:void 0,y:void 0}}tessellate(t,e,r=this._canUseThinTessellation){i(t),r&&e.halfWidth<1.05&&!e.offset?this._tessellateThin(t,e):this._tessellate(t,e)}_tessellateThin(t,e){if(t.length<2)return;const r=e.wrapDistance||65535;let n=e.initialDistance||0,i=!1,s=t[0].x,o=t[0].y;const a=t.length;for(let e=1;e<a;++e){i&&(i=!1,n=0);let a=t[e].x,l=t[e].y,h=a-s,c=l-o,u=Math.sqrt(h*h+c*c);if(h/=u,c/=u,n+u>r){i=!0;const t=(r-n)/u;u=r-n,a=(1-t)*s+t*a,l=(1-t)*o+t*l,--e}const f=this._writeVertex(s,o,0,0,h,c,c,-h,0,-1,n),x=this._writeVertex(s,o,0,0,h,c,-c,h,0,1,n);n+=u;const y=this._writeVertex(a,l,0,0,h,c,c,-h,0,-1,n),d=this._writeVertex(a,l,0,0,h,c,-c,h,0,1,n);this._writeTriangle(f,x,y),this._writeTriangle(x,y,d),s=a,o=l}}_tessellate(t,e){const r=t[0],i=t[t.length-1],x=n(r,i),y=x?3:2;if(t.length<y)return;const d=e.pixelCoordRatio,p=null!=e.capType?e.capType:0,g=null!=e.joinType?e.joinType:2,_=null!=e.miterLimit?Math.min(e.miterLimit,4):2,m=null!=e.roundLimit?Math.min(e.roundLimit,1.05):1.05,b=null!=e.halfWidth?e.halfWidth:2,w=!!e.textured;let I,v,A,T=null;const M=this._prevNormal,L=this._nextNormal;let B=-1,P=-1;const k=this._joinNormal;let V,S;const R=this._textureNormalLeft,E=this._textureNormalRight,D=this._textureNormal;let C=-1,U=-1;const F=e.wrapDistance||65535;let N=e.initialDistance||0;const z=this._writeVertex,O=this._writeTriangle,G=(t,e,r,n,i,s)=>{const o=z(v,A,V,S,r,n,t,e,i,s,N);return C>=0&&U>=0&&o>=0&&O(C,U,o),C=U,U=o,o};x&&(I=t[t.length-2],L.x=i.x-I.x,L.y=i.y-I.y,P=h(L),L.x/=P,L.y/=P);let j=!1;for(let e=0;e<t.length;++e){if(j&&(j=!1,N=0),I&&(M.x=-L.x,M.y=-L.y,B=P,N+B>F&&(j=!0)),j){const r=(F-N)/B;B=F-N,I={x:(1-r)*I.x+r*t[e].x,y:(1-r)*I.y+r*t[e].y},--e}else I=t[e];v=I.x,A=I.y;const r=e<=0&&!j,n=e===t.length-1;if(r||(N+=B),T=n?x?t[1]:null:t[e+1],T?(L.x=T.x-v,L.y=T.y-A,P=h(L),L.x/=P,L.y/=P):(L.x=void 0,L.y=void 0),!x){if(r){o(k,L),V=k.x,S=k.y,2===p&&(G(-L.y-L.x,L.x-L.y,L.x,L.y,0,-1),G(L.y-L.x,-L.x-L.y,L.x,L.y,0,1)),1===p&&(G(-L.y-L.x,L.x-L.y,L.x,L.y,-1,-1),G(L.y-L.x,-L.x-L.y,L.x,L.y,-1,1)),1!==p&&0!==p||(G(-L.y,L.x,L.x,L.y,0,-1),G(L.y,-L.x,L.x,L.y,0,1));continue}if(n){s(k,M),V=k.x,S=k.y,1!==p&&0!==p||(G(M.y,-M.x,-M.x,-M.y,0,-1),G(-M.y,M.x,-M.x,-M.y,0,1)),2===p&&(G(M.y-M.x,-M.x-M.y,-M.x,-M.y,0,-1),G(-M.y-M.x,M.x-M.y,-M.x,-M.y,0,1)),1===p&&(G(M.y-M.x,-M.x-M.y,-M.x,-M.y,1,-1),G(-M.y-M.x,M.x-M.y,-M.x,-M.y,1,1));continue}}let i,y,z=-c(M,L);if(Math.abs(z)<.01)u(M,L)>0?(k.x=M.x,k.y=M.y,z=1,i=Number.MAX_VALUE,y=!0):(o(k,L),z=1,i=1,y=!1);else{k.x=(M.x+L.x)/z,k.y=(M.y+L.y)/z,i=h(k);const t=(i-1)*b*d;y=i>4||t>B&&t>P}V=k.x,S=k.y;let O=g;switch(g){case 0:i<1.05&&(O=2);break;case 1:i<m&&(O=2);break;case 2:i>_&&(O=0)}switch(O){case 2:if(G(k.x,k.y,-M.x,-M.y,0,-1),G(-k.x,-k.y,-M.x,-M.y,0,1),n)break;if(w){const t=j?0:N;C=this._writeVertex(v,A,V,S,L.x,L.y,k.x,k.y,0,-1,t),U=this._writeVertex(v,A,V,S,L.x,L.y,-k.x,-k.y,0,1,t)}break;case 0:{const t=z<0;let e,r,i,h;if(t){const t=C;C=U,U=t,e=R,r=E}else e=E,r=R;if(y)i=t?o(this._innerPrev,M):s(this._innerPrev,M),h=t?s(this._innerNext,L):o(this._innerNext,L);else{const e=t?l(this._inner,k):a(this._inner,k);i=e,h=e}const c=t?s(this._bevelStart,M):o(this._bevelStart,M);G(i.x,i.y,-M.x,-M.y,e.x,e.y);const u=G(c.x,c.y,-M.x,-M.y,r.x,r.y);if(n)break;const x=t?o(this._bevelEnd,L):s(this._bevelEnd,L);if(y){const t=this._writeVertex(v,A,V,S,-M.x,-M.y,0,0,0,0,N);C=this._writeVertex(v,A,V,S,L.x,L.y,h.x,h.y,e.x,e.y,N),U=this._writeVertex(v,A,V,S,L.x,L.y,x.x,x.y,r.x,r.y,N),this._writeTriangle(u,t,U)}else{if(w){const t=this._bevelMiddle;t.x=(c.x+x.x)/2,t.y=(c.y+x.y)/2,f(D,t,-M.x,-M.y),G(t.x,t.y,-M.x,-M.y,D.x,D.y),f(D,t,L.x,L.y),C=this._writeVertex(v,A,V,S,L.x,L.y,t.x,t.y,D.x,D.y,N),U=this._writeVertex(v,A,V,S,L.x,L.y,h.x,h.y,e.x,e.y,N)}else{const t=C;C=U,U=t}G(x.x,x.y,L.x,L.y,r.x,r.y)}if(t){const t=C;C=U,U=t}break}case 1:{const t=z<0;let e,r;if(t){const t=C;C=U,U=t,e=R,r=E}else e=E,r=R;const h=t?l(this._inner,k):a(this._inner,k);let c,x;y?(c=t?o(this._innerPrev,M):s(this._innerPrev,M),x=t?s(this._innerNext,L):o(this._innerNext,L)):(c=h,x=h);const d=t?s(this._roundStart,M):o(this._roundStart,M),p=t?o(this._roundEnd,L):s(this._roundEnd,L),g=G(c.x,c.y,-M.x,-M.y,e.x,e.y),_=G(d.x,d.y,-M.x,-M.y,r.x,r.y);if(n)break;const m=this._writeVertex(v,A,V,S,-M.x,-M.y,0,0,0,0,N);y||this._writeTriangle(C,U,m);const b=l(this._outer,h),I=this._writeVertex(v,A,V,S,L.x,L.y,p.x,p.y,r.x,r.y,N);let T,B;const P=i>2;if(P){let e;i!==Number.MAX_VALUE?(b.x/=i,b.y/=i,e=u(M,b),e=(i*(e*e-1)+1)/e):e=-1,T=t?s(this._startBreak,M):o(this._startBreak,M),T.x+=M.x*e,T.y+=M.y*e,B=t?o(this._endBreak,L):s(this._endBreak,L),B.x+=L.x*e,B.y+=L.y*e}f(D,b,-M.x,-M.y);const F=this._writeVertex(v,A,V,S,-M.x,-M.y,b.x,b.y,D.x,D.y,N);f(D,b,L.x,L.y);const O=w?this._writeVertex(v,A,V,S,L.x,L.y,b.x,b.y,D.x,D.y,N):F,j=m,W=w?this._writeVertex(v,A,V,S,L.x,L.y,0,0,0,0,N):m;let Z=-1,q=-1;if(P&&(f(D,T,-M.x,-M.y),Z=this._writeVertex(v,A,V,S,-M.x,-M.y,T.x,T.y,D.x,D.y,N),f(D,B,L.x,L.y),q=this._writeVertex(v,A,V,S,L.x,L.y,B.x,B.y,D.x,D.y,N)),w?P?(this._writeTriangle(j,_,Z),this._writeTriangle(j,Z,F),this._writeTriangle(W,O,q),this._writeTriangle(W,q,I)):(this._writeTriangle(j,_,F),this._writeTriangle(W,O,I)):P?(this._writeTriangle(m,_,Z),this._writeTriangle(m,Z,q),this._writeTriangle(m,q,I)):(this._writeTriangle(m,_,F),this._writeTriangle(m,O,I)),y?(C=this._writeVertex(v,A,V,S,L.x,L.y,x.x,x.y,e.x,e.y,N),U=I):(C=w?this._writeVertex(v,A,V,S,L.x,L.y,x.x,x.y,e.x,e.y,N):g,this._writeTriangle(C,W,I),U=I),t){const t=C;C=U,U=t}break}}}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,6061,7316],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},29821(t,e,r){r.d(e,{O:()=>n});var s=r(15756);class n extends s.z{getOperatorType(){return 6}execute(t,e,r,n){return(0,s.A)(t,e,r,16,n)}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(t,e,r){r.d(e,{JR:()=>_,ME:()=>M,MY:()=>S,NO:()=>C,Nh:()=>O,V2:()=>Z,_s:()=>Y,e6:()=>V,gh:()=>E,tr:()=>w,uX:()=>x});var s=r(5482),n=r(16930),i=r(19419),a=r(60408),o=r(21325),h=r(513),u=r(50954),l=r(79567),g=r(52006),c=r(49663),m=r(46068),f=r(92722);class x{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:l,segmentParams:g,segmentCountArc:c,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=l,this.segmentParams=g,this.segmentCountArc=c,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=Z(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:l}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(l.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,o.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new v(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class v{constructor(t){this.geometry=t,this.index=-1,this._readVertex=R(t),this._segments=new d(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class d{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new y(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class y{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=R(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],l=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,l]]};const g=2&s?0:1,c=1&s?0:1;return{a:[this.end,[o,h],g,c,a,n,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,s.mS)(r,new P(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=t,h=A(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new P(t,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,g.yP)(r)}const[a,o,u,c]=n;e={xmin:a,ymin:o,xmax:u,ymax:c,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function M(t){let e,r,s;if((0,a.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,a.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,F(e[0],(0,g.yP)(e.at(-1)))&&--t),t),0));const n=Z(s,e,s.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,g.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:l}=n;function c(t){h[2*f]=t[0],h[2*f+1]=t[1],i&&(u[f]=t[2]),o&&(l[f]=t[m]),++f}n.spatialReference=t.spatialReference??void 0;const m=n.hasZ?3:2;let f=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])h[2*f]=t,h[2*f+1]=e,++f;return n}for(const t of r[0])c(t);return n}const x="polygon"===s,{partOffsets:p}=n;let v=0;if(!(0,g.Ed)(t)){for(const t of r){if(p[v++]=f,0===t.length)continue;let e=t.length;if(x&&F(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)c(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*f]=e,h[2*f+1]=s,++f}}return p[v]=f,n}function d(t){const e=y+t;if(e<=(n.segmentParams?.length??0))return;let r=e*X;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let y=0;for(const t of r){if(n.partOffsets[v++]=f,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];c(r);const i=f-1;(0,g.wY)(s)?(d(10),++n.segmentCountArc,y=Y(r,s,n,i,y),r=s.a[0]):(0,g.DA)(s)?(d(10),++n.segmentCountArc,y=b(r,s,n,i,y),r=s.a[0]):(0,g.aO)(s)?(d(10),++n.segmentCountArc,y=V(r,s,n,i,y),r=s.c[0]):(0,g.n1)(s)?(d(4),++n.segmentCountBezier,y=w(0,s,n,i,y),r=s.b[0]):r=s}x&&F(e,r)||c(r)}return n.partOffsets[v]=f,n}function E(t){const e=R(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=A(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function O(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const u=Z(t,h,a,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const l=2+Number(s)+Number(n);let g=0,c=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[c],i=e+t-Number(o);u.partOffsets[++c]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[g++],u.vertexXY[2*t+1]=r[g++],s&&(u.vertexZ[t]=r[g++]),n&&(u.vertexM[t]=r[g++]);o&&(g+=l)}return u}function _({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new f.A([],[],o,h);i=Math.max(i,1);const l="polygon"===t;let g=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,c=u.coords.length;for(let t=g;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(l){const t=g;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-c)/u.stride),g=i}return"point"===t&&(u.lengths.length=0),u}function S(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class P{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function A({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function R({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function F(t,e){return t.every((t,r)=>t===e[r])}function Z(t,e,r,s,n,i,a,o){a??=0,o??=0;const h=new x({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(u);let g=0;return h.vertexXY=new Float64Array(l,g,2*e),g+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(l,g,e),g+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(l,g,e),g+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(l,g,h.segmentParamCount),g+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(l,g,e),h.segmentIndices.fill(k),g+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(l,g,r+1),g+=h.partOffsets.byteLength,h.partFlags=new Int8Array(l,g,r+1),g+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(l,g,e),h.segmentFlags.fill(1),g+=h.segmentFlags.byteLength),h}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],l,g,c,f,x]=e.a;let p=4;g||(p|=1),l||(p|=2);const v=(0,m.SW)(t,e),[d,y]=(0,m.Uk)(v,.5);return n[a++]=p,n[a++]=f,n[a++]=x,n[a++]=c,n[a++]=h,n[a++]=u,n[a++]=v.u2-v.u1,n[a++]=v.u1,n[a++]=d,n[a++]=y,a}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,c.io)(t,e);return I(o,4,...(0,h.mq)(o,.5),n,a)}function V(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,I((0,u.pM)(t,e),0,...e.c[1],n,a)}function I(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:l}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=l,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function w(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,l){return a[u]=2,o[u]=l,h[l++]=r,h[l++]=s,h[l++]=n,h[l++]=i,l}const X=1.61803,k=-1},85672(t,e,r){r.r(e),r.d(e,{execute:()=>a});var s=r(29821),n=r(83299);const i=new s.O;function a(t,e){const r=(0,n.fromGeometry)(t);return i.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(e),r.getSpatialReference(),null)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[547,5612],{59534(e,t,r){r.d(t,{B:()=>s,b:()=>a});var n=r(85935);function s(e){return e.toLowerCase().replaceAll(/[\s-]+/g,"")}class a{constructor(e,t){const r=new Map;for(const t of e){const e=s(t);if(r.has(e))throw new Error(`${t} already added as ${r.get(e)}`);r.set(e,t)}if(null!=t)for(const[e,n]of t){const t=s(e);if(r.has(t))throw new Error(`${e} already associated with ${r.get(t)}`);r.set(t,n)}this._enumMap=r}lookup(e){return this._enumMap.get(s(e))}get(e){const t=this.lookup(e);if(null==t)throw new n.D$("InvalidParameter",null);return t}}},85935(e,t,r){r.d(t,{D$:()=>c,O$:()=>l,i2:()=>f,mT:()=>u,ps:()=>h});var n=r(799);const s={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};function a(e){return"object"==typeof e&&"line"in e&&"column"in e&&"number"==typeof e.line&&"number"==typeof e.column}class o extends Error{constructor(e,t){super(i(t)+("object"==typeof e&&null!=e&&"message"in e?e.message:""),{cause:e}),this.loc=t?.loc??null}}class c extends Error{constructor(e,t,r){super("Execution error - "+i(t)+(0,n.HC)(s[e],r)),this.declaredRootClass="esri.arcade.arcadeexecutionerror",this.loc=t?.loc??null}}function i(e){return null==e?.loc?"":`Line ${e.loc.start.line}:${e.loc.start.column}: `}class u extends Error{constructor(e,t,r){super("Compilation error - "+i(t)+(0,n.HC)(s[e],r)),this.declaredRootClass="esri.arcade.arcadecompilationerror",this.loc=t?.loc??null}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror"}}function f(e,t){return!function(e){if(e instanceof Error&&"loc"in e){const t=e.loc;return null==t||"object"==typeof t&&"start"in t&&null!=t.start&&a(t.start)&&(!("end"in t)||null==t.end||a(t.end))}return!1}(e)||null==e.loc&&null!=t?.loc?new o(e,t):e}const d={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class h extends Error{constructor(e,t){super((0,n.HC)(d[e],t)),this.declaredRootClass="esri.arcade.arcademoduleerror"}}},71409(e,t,r){r.d(t,{A7:()=>d,L2:()=>u,SQ:()=>n,s9:()=>i,y6:()=>f,zD:()=>o});const n=new Map([[1025,109452],[1033,109451],[9001,109404],[9002,109405],[9003,109406],[9005,109407],[9014,109408],[9030,109409],[9031,109410],[9033,109411],[9034,109412],[9035,109413],[9036,109414],[9037,109415],[9038,109416],[9039,109417],[9040,109418],[9041,109419],[9042,109420],[9043,109421],[9050,109422],[9051,109423],[9052,109424],[9053,109425],[9060,109426],[9061,109427],[9062,109428],[9063,109429],[9070,109430],[9080,109431],[9081,109432],[9082,109433],[9083,109434],[9084,109435],[9085,109436],[9086,109437],[9087,109438],[9093,109439],[9094,109440],[9095,109441],[9096,109442],[9097,109444],[9098,109445],[9099,109446],[9300,109447],[9301,109448],[9302,109449],[109001,109442],[109002,109443],[109003,109444],[109004,109445],[109005,109450],[109006,109451],[109007,109452],[109008,109453],[109009,109454],[109010,109455],[109011,109456],[109012,109457],[109013,109458],[109014,109459],[109015,109462],[109016,109464],[109017,109465],[109018,109466],[109030,109460],[109031,109461]]);function s(e){return(t,r)=>[t,{type:e,wkid:t,factor:r}]}const a=s("angular"),o=new Map([a(1031,4.84813681109536e-9),a(9101,1),a(9102,.017453292519943295),a(9103,.0002908882086657216),a(9104,484813681109536e-20),a(9105,.015707963267948967),a(9106,.015707963267948967),a(9109,1e-6),a(9112,.00015707963267948965),a(9113,15707963267948967e-22),a(9114,.0009817477042468104)]),c=s("linear"),i=new Map([c(1025,.001),c(1033,.01),c(9001,1),c(9002,.3048),c(9003,.30480060960121924),c(9005,.3047972654),c(9014,1.8288),c(9030,1852),c(9031,1.0000135965),c(9033,20.11684023368047),c(9034,.2011684023368047),c(9035,1609.3472186944375),c(9036,1e3),c(9037,.9143917962),c(9038,20.1166195164),c(9039,.201166195164),c(9040,.9143984146160287),c(9041,.3047994715386762),c(9042,20.116765121552632),c(9043,.2011676512155263),c(9050,.9143992),c(9051,.3047997333333333),c(9052,20.1167824),c(9053,.201167824),c(9060,.9143992042898124),c(9061,.30479973476327077),c(9062,20.116782494375872),c(9063,.2011678249437587),c(9070,.30480083333333335),c(9080,.30479951024814694),c(9081,.30479841),c(9082,.3047996),c(9083,.3047995),c(9084,.9143985307444408),c(9085,.91439523),c(9086,.9143988),c(9087,.9143985),c(9093,1609.344),c(9094,.3047997101815088),c(9095,.3048007491),c(9096,.9144),c(9097,20.1168),c(9098,.201168),c(9099,.914398),c(9300,.30479933333333337),c(9301,20.116756),c(9302,.20116756),c(109001,.9144),c(109002,.9144018288036576),c(109003,20.1168),c(109004,.201168),c(109005,.1),c(109006,.01),c(109007,.001),c(109008,.0254),c(109009,.025400050800101603),c(109010,5.0292),c(109011,5.029210058420118),c(109012,1853.248),c(109013,1853.184),c(109014,1.7018),c(109015,.8466683600033867),c(109016,.00035277777777777776),c(109017,1e-6),c(109018,1e-9),c(109030,5e4),c(109031,15e4)]),u=i.get(9001),l=s("area"),f=new Map([l(109401,1e4),l(109402,4046.8564224),l(109403,4046.872609874252),l(109404,1),l(109405,.09290304),l(109406,.09290341161327487),l(109407,.09290137299531805),l(109408,3.34450944),l(109409,3429904),l(109410,1.000027193184865),l(109411,404.6872609874253),l(109412,.04046872609874252),l(109413,2589998.470319522),l(109414,1e6),l(109415,.8361123569578626),l(109416,404.6783807676053),l(109417,.04046783807676053),l(109418,.8361244606523066),l(109419,.09290271785025629),l(109420,404.6842389557165),l(109421,.04046842389557164),l(109422,.83612589696064),l(109423,.0929028774400711),l(109424,404.6849341289498),l(109425,.04046849341289498),l(109426,.836125904805842),l(109427,.09290287831176021),l(109428,404.6849379260275),l(109429,.04046849379260275),l(109430,.09290354800069446),l(109431,.09290274144751023),l(109432,.09290207073852812),l(109433,.09290279616016),l(109434,.09290273520025),l(109435,.836124673027592),l(109436,.8361186366467529),l(109437,.8361251654414399),l(109438,.83612461680225),l(109439,2589988.110336),l(109440,.09290286332673177),l(109441,.09290349665192114),l(109442,.83612736),l(109443,.8361307045194736),l(109444,404.68564224),l(109445,.040468564224),l(109446,.836123702404),l(109447,.09290263360044447),l(109448,404.683871963536),l(109449,.0404683871963536),l(109450,.01),l(109451,1e-4),l(109452,1e-6),l(109453,64516e-8),l(109454,.0006451625806477421),l(109455,25.29285264),l(109456,25.29295381171408),l(109457,3434528.149504),l(109458,3434290.937856),l(109459,2.89612324),l(109460,25e8),l(109461,225e8),l(109462,.7168473118308245),l(109463,100),l(109464,1.244521604938271e-7),l(109465,1e-12),l(109466,1e-18)]),d=f.get(109404)},40547(e,t,r){r.d(t,{convert:()=>q,convertFromSpatialReferenceUnit:()=>b,convertToSpatialReferenceUnit:()=>C,meters:()=>a.L2,squareMeters:()=>a.A7,toAreaUnit:()=>y,toLengthUnit:()=>g});var n=r(59534),s=r(85935),a=r(71409);const o=[];function c(e){return 0===e.length?'""':e.startsWith('"')||e.startsWith(".")||e[0]>="0"&&e[0]<="9"?e:'"'+e.trim()+'"'}function i(e){let t="",r="",n=!1;for(let s=0;s<e.length;s++){const a=e[s];n?'"'===a?'"'===e[s+1]?(t+=`\\${a}`,s+=1):n=!1:t+=a:/\s/.test(a)||(","===a?(r+=""!==t?c(t)+",":",",t=""):")"===a||"]"===a?(r+=""!==t?c(t)+"]}":"]}",t=""):"("===a||"["===a?(r+='{ "entity": "'+t.toUpperCase().trim()+'", "values":[',t=""):'"'===a?(n=!0,t=""):t+=a)}return JSON.parse(r)}function u(e){try{for(let t=0;t<o.length;t++)if(o[t].spatialReferenceWkt===e)return o[t].unit;const t=l(i(e));if(null===t)return null;let r=null;for(const e of t.values)if("object"==typeof e&&("UNIT"===e.entity||"ANGLEUNIT"===e.entity||"LENGTHUNIT"===e.entity)){r=e;break}if(null===r)return null;const n=function(e,t,r){if(null!=r)try{if("EPSG"===r.values[0])return{type:e,wkid:Number.parseInt(r.values[1],10),factor:t}}catch(e){}return{type:e,factor:t}}("GEOGCS"===t.entity||"GEOGCRS"===t.entity?"angular":"linear",r.values[1],r.values[2]);return o.push({spatialReferenceWkt:e,unit:n}),o.length>10&&o.shift(),n}catch(e){return null}}function l(e){if(null===e)return null;switch(e.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return e}const t=[];for(const r of e.values)if("object"==typeof r&&void 0!==r.entity)switch(r.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return r;default:t.push(r)}for(const e of t){const t=l(e);if(null!=t)return t}return null}var f=r(86211),d=r(22530);function h(e,t){let r;switch(e){case"linear":r=a.s9;break;case"angular":r=a.zD;break;case"area":r=a.y6;break;default:return null}return r.get(t)}function m(e){const t=e.wkid;if(null!=t){const e=d.A.units[d.A[t]];if(null!=e)switch(e){case"Meter":return h("linear",9001);case"Foot":return h("linear",9002);case"Foot_US":return h("linear",9003);case"Foot_Clarke":return h("linear",9005);case"Yard_Clarke":return h("linear",9037);case"Link_Clarke":return h("linear",9039);case"Yard_Sears":return h("linear",9040);case"Foot_Sears":return h("linear",9041);case"Chain_Sears":return h("linear",9042);case"Chain_Benoit_1895_B":return h("linear",9062);case"Yard_Indian":return h("linear",9084);case"Yard_Indian_1937":return h("linear",9085);case"Foot_Gold_Coast":return h("linear",9094);case"Chain":return h("linear",9097);case"Chain_Sears_1922_Truncated":return h("linear",9301);case"50_Kilometers":return h("linear",109030);case"150_Kilometers":return h("linear",109031);default:throw new Error(`Unknown unit name: ${e}`)}return f.yD.has(t)?h("angular",9105):h("angular",9102)}const r=e.wkt2||e.wkt;if(null!=r){const e=u(r);if(null!=e){if(null!=e.wkid){const t=h(e.type,e.wkid);if(null!=t)return t}return{type:e.type,wkid:-1,factor:e.factor}}}return null}function p(e){if("linear"!==e.type)return null;if(-1===e.wkid)return{type:"area",wkid:-1,factor:e.factor**2};const t=a.SQ.get(e.wkid);return null==t?null:h("area",t)}function y(e){if(null!=e){if("number"==typeof e)return a.y6.get(e)??a.s9.get(e)??a.zD.get(e);if("string"!=typeof e)throw new s.D$("InvalidParameter",null);switch((0,n.B)(e)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return a.y6.get(109404);case"miles":case"mile":case"squaremile":case"squaremiles":return a.y6.get(109439);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return a.y6.get(109414);case"acres":case"acre":case"ac":return a.y6.get(109402);case"hectares":case"hectare":case"ha":return a.y6.get(109401);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return a.y6.get(109442);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return a.y6.get(109405);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return a.y6.get(109409);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return a.y6.get(109452);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return a.y6.get(109451);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return a.y6.get(109450);case"inch":case"inches":case"squareinch":case"squareinches":return a.y6.get(109453);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return a.y6.get(109406);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return a.y6.get(109413)}}}function g(e){if(null!=e){if("number"==typeof e)return a.s9.get(e)??a.zD.get(e)??a.y6.get(e);if("string"!=typeof e)throw new s.D$("InvalidParameter",null);switch((0,n.B)(e)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":case"hectares":case"hectare":case"ha":return a.s9.get(9001);case"miles":case"mile":case"squaremile":case"squaremiles":return a.s9.get(9093);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return a.s9.get(9036);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":case"acres":case"acre":case"ac":return a.s9.get(9096);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return a.s9.get(9002);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return a.s9.get(9030);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return a.s9.get(109007);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return a.s9.get(109006);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return a.s9.get(109005);case"inch":case"inches":case"squareinch":case"squareinches":return a.s9.get(109008);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return a.s9.get(9003);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return a.s9.get(9035)}}}function w(e,t,r){if(e.type!==t.type)throw new Error(`Incompatible unit types. src=${e.type} dest=${t.type}`);return r*(e.factor/t.factor)}function b(e,t,r){if(null==e||null==t)return r;const n=m(e);if(null==n)throw new Error("Unknown spatial reference unit.");const s="area"===t.type&&"linear"===n.type?p(n):n;if(null==s)throw new Error(`Unknown spatial reference ${t.type} unit.`);return w(s,t,r)}function C(e,t,r){if(null==e||null==t)return r;const n=m(t);if(null==n)throw new Error("Unknown spatial reference unit.");const s="area"===e.type&&"linear"===n.type?p(n):n;if(null==s)throw new Error(`Unknown spatial reference ${e.type} unit.`);return w(e,s,r)}function q(e,t,r){return null==e||null==t?r:w(e,t,r)}},69397(e,t,r){r.d(t,{Qf:()=>i,Qh:()=>o,RS:()=>s,Ul:()=>h,i5:()=>d,lM:()=>a,qK:()=>l});var n=r(34275);const s=16;function a(e){if(!e)return 0;let t=l;for(const r in e)e.hasOwnProperty(r)&&(t+=c(e[r],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return i(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let r=f;for(let n=0;n<t;n++)r+=c(e[n]);return r}(e);let t=l;for(const r in e)e.hasOwnProperty(r)&&(t+=c(e[r]));return t}function c(e,t=!0){switch(typeof e){case"object":return t?o(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return s;case"boolean":return 4;default:return 8}}function i(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+d:Array.isArray(t)?u(t,s):0:0),0)}function u(e,t){return f+e.length*t}const l=32,f=16,d=145,h=64},92722(e,t,r){r.d(t,{A:()=>s});var n=r(69397);class s{constructor(e=[],t=[],r=!1,n=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:n}){return new s(e,t,r||!1,n||!1)}static fromRect([e,t,r,n]){const a=r-e,o=n-t;return new s([5],[e,t,a,0,0,o,-a,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let s=this.coords[n*t],a=this.coords[n*t+1];for(let o=1;o<r;o+=1){const r=n*(t+o),c=this.coords[r],i=this.coords[r+1];e+=-.5*(c-s)*(i+a),s=c,a=i}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let s=0;s<n;s++){const n=r*(t+s);e(this.coords[n],this.coords[n+1])}t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;const{stride:s}=this;for(const e of r){for(let r=1;r<e;r++){const e=s*(n+r);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}n+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:r,size:n}=this,a=this.coords.slice(0,n*r);return e?(e.set(a),new s(t,e,this.hasZ,this.hasM)):new s(t,Array.from(a),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const r=new Array(t*e);for(let t=0,n=0;t<r.length;t+=e)r[n++]=this.coords[t],r[n++]=this.coords[t+1];return new s(this.lengths,r,!1,!1)}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[547,5612],{59534(e,t,r){r.d(t,{B:()=>s,b:()=>a});var n=r(85935);function s(e){return e.toLowerCase().replaceAll(/[\s-]+/g,"")}class a{constructor(e,t){const r=new Map;for(const t of e){const e=s(t);if(r.has(e))throw new Error(`${t} already added as ${r.get(e)}`);r.set(e,t)}if(null!=t)for(const[e,n]of t){const t=s(e);if(r.has(t))throw new Error(`${e} already associated with ${r.get(t)}`);r.set(t,n)}this._enumMap=r}lookup(e){return this._enumMap.get(s(e))}get(e){const t=this.lookup(e);if(null==t)throw new n.D$("InvalidParameter",null);return t}}},85935(e,t,r){r.d(t,{D$:()=>c,O$:()=>l,i2:()=>f,mT:()=>u,ps:()=>h});var n=r(799);const s={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};function a(e){return"object"==typeof e&&"line"in e&&"column"in e&&"number"==typeof e.line&&"number"==typeof e.column}class o extends Error{constructor(e,t){super(i(t)+("object"==typeof e&&null!=e&&"message"in e?e.message:""),{cause:e}),this.loc=t?.loc??null}}class c extends Error{constructor(e,t,r){super("Execution error - "+i(t)+(0,n.HC)(s[e],r)),this.declaredRootClass="esri.arcade.arcadeexecutionerror",this.loc=t?.loc??null}}function i(e){return null==e?.loc?"":`Line ${e.loc.start.line}:${e.loc.start.column}: `}class u extends Error{constructor(e,t,r){super("Compilation error - "+i(t)+(0,n.HC)(s[e],r)),this.declaredRootClass="esri.arcade.arcadecompilationerror",this.loc=t?.loc??null}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror"}}function f(e,t){return!function(e){if(e instanceof Error&&"loc"in e){const t=e.loc;return null==t||"object"==typeof t&&"start"in t&&null!=t.start&&a(t.start)&&(!("end"in t)||null==t.end||a(t.end))}return!1}(e)||null==e.loc&&null!=t?.loc?new o(e,t):e}const d={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class h extends Error{constructor(e,t){super((0,n.HC)(d[e],t)),this.declaredRootClass="esri.arcade.arcademoduleerror"}}},71409(e,t,r){const n=new Map([[1025,109452],[1033,109451],[9001,109404],[9002,109405],[9003,109406],[9005,109407],[9014,109408],[9030,109409],[9031,109410],[9033,109411],[9034,109412],[9035,109413],[9036,109414],[9037,109415],[9038,109416],[9039,109417],[9040,109418],[9041,109419],[9042,109420],[9043,109421],[9050,109422],[9051,109423],[9052,109424],[9053,109425],[9060,109426],[9061,109427],[9062,109428],[9063,109429],[9070,109430],[9080,109431],[9081,109432],[9082,109433],[9083,109434],[9084,109435],[9085,109436],[9086,109437],[9087,109438],[9093,109439],[9094,109440],[9095,109441],[9096,109442],[9097,109444],[9098,109445],[9099,109446],[9300,109447],[9301,109448],[9302,109449],[109001,109442],[109002,109443],[109003,109444],[109004,109445],[109005,109450],[109006,109451],[109007,109452],[109008,109453],[109009,109454],[109010,109455],[109011,109456],[109012,109457],[109013,109458],[109014,109459],[109015,109462],[109016,109464],[109017,109465],[109018,109466],[109030,109460],[109031,109461]]);function s(e){return(t,r)=>[t,{type:e,wkid:t,factor:r}]}const a=s("angular"),o=new Map([a(1031,4.84813681109536e-9),a(9101,1),a(9102,.017453292519943295),a(9103,.0002908882086657216),a(9104,484813681109536e-20),a(9105,.015707963267948967),a(9106,.015707963267948967),a(9109,1e-6),a(9112,.00015707963267948965),a(9113,15707963267948967e-22),a(9114,.0009817477042468104)]),c=s("linear"),i=new Map([c(1025,.001),c(1033,.01),c(9001,1),c(9002,.3048),c(9003,.30480060960121924),c(9005,.3047972654),c(9014,1.8288),c(9030,1852),c(9031,1.0000135965),c(9033,20.11684023368047),c(9034,.2011684023368047),c(9035,1609.3472186944375),c(9036,1e3),c(9037,.9143917962),c(9038,20.1166195164),c(9039,.201166195164),c(9040,.9143984146160287),c(9041,.3047994715386762),c(9042,20.116765121552632),c(9043,.2011676512155263),c(9050,.9143992),c(9051,.3047997333333333),c(9052,20.1167824),c(9053,.201167824),c(9060,.9143992042898124),c(9061,.30479973476327077),c(9062,20.116782494375872),c(9063,.2011678249437587),c(9070,.30480083333333335),c(9080,.30479951024814694),c(9081,.30479841),c(9082,.3047996),c(9083,.3047995),c(9084,.9143985307444408),c(9085,.91439523),c(9086,.9143988),c(9087,.9143985),c(9093,1609.344),c(9094,.3047997101815088),c(9095,.3048007491),c(9096,.9144),c(9097,20.1168),c(9098,.201168),c(9099,.914398),c(9300,.30479933333333337),c(9301,20.116756),c(9302,.20116756),c(109001,.9144),c(109002,.9144018288036576),c(109003,20.1168),c(109004,.201168),c(109005,.1),c(109006,.01),c(109007,.001),c(109008,.0254),c(109009,.025400050800101603),c(109010,5.0292),c(109011,5.029210058420118),c(109012,1853.248),c(109013,1853.184),c(109014,1.7018),c(109015,.8466683600033867),c(109016,.00035277777777777776),c(109017,1e-6),c(109018,1e-9),c(109030,5e4),c(109031,15e4)]),u=i.get(9001),l=s("area"),f=new Map([l(109401,1e4),l(109402,4046.8564224),l(109403,4046.872609874252),l(109404,1),l(109405,.09290304),l(109406,.09290341161327487),l(109407,.09290137299531805),l(109408,3.34450944),l(109409,3429904),l(109410,1.000027193184865),l(109411,404.6872609874253),l(109412,.04046872609874252),l(109413,2589998.470319522),l(109414,1e6),l(109415,.8361123569578626),l(109416,404.6783807676053),l(109417,.04046783807676053),l(109418,.8361244606523066),l(109419,.09290271785025629),l(109420,404.6842389557165),l(109421,.04046842389557164),l(109422,.83612589696064),l(109423,.0929028774400711),l(109424,404.6849341289498),l(109425,.04046849341289498),l(109426,.836125904805842),l(109427,.09290287831176021),l(109428,404.6849379260275),l(109429,.04046849379260275),l(109430,.09290354800069446),l(109431,.09290274144751023),l(109432,.09290207073852812),l(109433,.09290279616016),l(109434,.09290273520025),l(109435,.836124673027592),l(109436,.8361186366467529),l(109437,.8361251654414399),l(109438,.83612461680225),l(109439,2589988.110336),l(109440,.09290286332673177),l(109441,.09290349665192114),l(109442,.83612736),l(109443,.8361307045194736),l(109444,404.68564224),l(109445,.040468564224),l(109446,.836123702404),l(109447,.09290263360044447),l(109448,404.683871963536),l(109449,.0404683871963536),l(109450,.01),l(109451,1e-4),l(109452,1e-6),l(109453,64516e-8),l(109454,.0006451625806477421),l(109455,25.29285264),l(109456,25.29295381171408),l(109457,3434528.149504),l(109458,3434290.937856),l(109459,2.89612324),l(109460,25e8),l(109461,225e8),l(109462,.7168473118308245),l(109463,100),l(109464,1.244521604938271e-7),l(109465,1e-12),l(109466,1e-18)]),d=f.get(109404);r.d(t,["A7",0,d,"L2",0,u,"SQ",0,n,"s9",0,i,"y6",0,f,"zD",0,o])},40547(e,t,r){r.d(t,{convert:()=>q,convertFromSpatialReferenceUnit:()=>b,convertToSpatialReferenceUnit:()=>C,meters:()=>a.L2,squareMeters:()=>a.A7,toAreaUnit:()=>y,toLengthUnit:()=>g});var n=r(59534),s=r(85935),a=r(71409);const o=[];function c(e){return 0===e.length?'""':e.startsWith('"')||e.startsWith(".")||e[0]>="0"&&e[0]<="9"?e:'"'+e.trim()+'"'}function i(e){let t="",r="",n=!1;for(let s=0;s<e.length;s++){const a=e[s];n?'"'===a?'"'===e[s+1]?(t+=`\\${a}`,s+=1):n=!1:t+=a:/\s/.test(a)||(","===a?(r+=""!==t?c(t)+",":",",t=""):")"===a||"]"===a?(r+=""!==t?c(t)+"]}":"]}",t=""):"("===a||"["===a?(r+='{ "entity": "'+t.toUpperCase().trim()+'", "values":[',t=""):'"'===a?(n=!0,t=""):t+=a)}return JSON.parse(r)}function u(e){try{for(let t=0;t<o.length;t++)if(o[t].spatialReferenceWkt===e)return o[t].unit;const t=l(i(e));if(null===t)return null;let r=null;for(const e of t.values)if("object"==typeof e&&("UNIT"===e.entity||"ANGLEUNIT"===e.entity||"LENGTHUNIT"===e.entity)){r=e;break}if(null===r)return null;const n=function(e,t,r){if(null!=r)try{if("EPSG"===r.values[0])return{type:e,wkid:Number.parseInt(r.values[1],10),factor:t}}catch(e){}return{type:e,factor:t}}("GEOGCS"===t.entity||"GEOGCRS"===t.entity?"angular":"linear",r.values[1],r.values[2]);return o.push({spatialReferenceWkt:e,unit:n}),o.length>10&&o.shift(),n}catch(e){return null}}function l(e){if(null===e)return null;switch(e.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return e}const t=[];for(const r of e.values)if("object"==typeof r&&void 0!==r.entity)switch(r.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return r;default:t.push(r)}for(const e of t){const t=l(e);if(null!=t)return t}return null}var f=r(86211),d=r(22530);function h(e,t){let r;switch(e){case"linear":r=a.s9;break;case"angular":r=a.zD;break;case"area":r=a.y6;break;default:return null}return r.get(t)}function m(e){const t=e.wkid;if(null!=t){const e=d.A.units[d.A[t]];if(null!=e)switch(e){case"Meter":return h("linear",9001);case"Foot":return h("linear",9002);case"Foot_US":return h("linear",9003);case"Foot_Clarke":return h("linear",9005);case"Yard_Clarke":return h("linear",9037);case"Link_Clarke":return h("linear",9039);case"Yard_Sears":return h("linear",9040);case"Foot_Sears":return h("linear",9041);case"Chain_Sears":return h("linear",9042);case"Chain_Benoit_1895_B":return h("linear",9062);case"Yard_Indian":return h("linear",9084);case"Yard_Indian_1937":return h("linear",9085);case"Foot_Gold_Coast":return h("linear",9094);case"Chain":return h("linear",9097);case"Chain_Sears_1922_Truncated":return h("linear",9301);case"50_Kilometers":return h("linear",109030);case"150_Kilometers":return h("linear",109031);default:throw new Error(`Unknown unit name: ${e}`)}return f.yD.has(t)?h("angular",9105):h("angular",9102)}const r=e.wkt2||e.wkt;if(null!=r){const e=u(r);if(null!=e){if(null!=e.wkid){const t=h(e.type,e.wkid);if(null!=t)return t}return{type:e.type,wkid:-1,factor:e.factor}}}return null}function p(e){if("linear"!==e.type)return null;if(-1===e.wkid)return{type:"area",wkid:-1,factor:e.factor**2};const t=a.SQ.get(e.wkid);return null==t?null:h("area",t)}function y(e){if(null!=e){if("number"==typeof e)return a.y6.get(e)??a.s9.get(e)??a.zD.get(e);if("string"!=typeof e)throw new s.D$("InvalidParameter",null);switch((0,n.B)(e)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return a.y6.get(109404);case"miles":case"mile":case"squaremile":case"squaremiles":return a.y6.get(109439);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return a.y6.get(109414);case"acres":case"acre":case"ac":return a.y6.get(109402);case"hectares":case"hectare":case"ha":return a.y6.get(109401);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return a.y6.get(109442);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return a.y6.get(109405);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return a.y6.get(109409);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return a.y6.get(109452);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return a.y6.get(109451);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return a.y6.get(109450);case"inch":case"inches":case"squareinch":case"squareinches":return a.y6.get(109453);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return a.y6.get(109406);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return a.y6.get(109413)}}}function g(e){if(null!=e){if("number"==typeof e)return a.s9.get(e)??a.zD.get(e)??a.y6.get(e);if("string"!=typeof e)throw new s.D$("InvalidParameter",null);switch((0,n.B)(e)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":case"hectares":case"hectare":case"ha":return a.s9.get(9001);case"miles":case"mile":case"squaremile":case"squaremiles":return a.s9.get(9093);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return a.s9.get(9036);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":case"acres":case"acre":case"ac":return a.s9.get(9096);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return a.s9.get(9002);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return a.s9.get(9030);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return a.s9.get(109007);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return a.s9.get(109006);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return a.s9.get(109005);case"inch":case"inches":case"squareinch":case"squareinches":return a.s9.get(109008);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return a.s9.get(9003);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return a.s9.get(9035)}}}function w(e,t,r){if(e.type!==t.type)throw new Error(`Incompatible unit types. src=${e.type} dest=${t.type}`);return r*(e.factor/t.factor)}function b(e,t,r){if(null==e||null==t)return r;const n=m(e);if(null==n)throw new Error("Unknown spatial reference unit.");const s="area"===t.type&&"linear"===n.type?p(n):n;if(null==s)throw new Error(`Unknown spatial reference ${t.type} unit.`);return w(s,t,r)}function C(e,t,r){if(null==e||null==t)return r;const n=m(t);if(null==n)throw new Error("Unknown spatial reference unit.");const s="area"===e.type&&"linear"===n.type?p(n):n;if(null==s)throw new Error(`Unknown spatial reference ${e.type} unit.`);return w(e,s,r)}function q(e,t,r){return null==e||null==t?r:w(e,t,r)}},69397(e,t,r){r.d(t,{Qf:()=>c,Qh:()=>a,lM:()=>s});var n=r(34275);function s(e){if(!e)return 0;let t=u;for(const r in e)e.hasOwnProperty(r)&&(t+=o(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return c(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return i(e,8);let r=l;for(let n=0;n<t;n++)r+=o(e[n]);return r}(e);let t=u;for(const r in e)e.hasOwnProperty(r)&&(t+=o(e[r]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?a(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function c(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+f:Array.isArray(t)?i(t,16):0:0),0)}function i(e,t){return l+e.length*t}const u=32,l=16,f=145},92722(e,t,r){r.d(t,{A:()=>s});var n=r(69397);class s{constructor(e=[],t=[],r=!1,n=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:n}){return new s(e,t,r||!1,n||!1)}static fromRect([e,t,r,n]){const a=r-e,o=n-t;return new s([5],[e,t,a,0,0,o,-a,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let s=this.coords[n*t],a=this.coords[n*t+1];for(let o=1;o<r;o+=1){const r=n*(t+o),c=this.coords[r],i=this.coords[r+1];e+=-.5*(c-s)*(i+a),s=c,a=i}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let s=0;s<n;s++){const n=r*(t+s);e(this.coords[n],this.coords[n+1])}t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;const{stride:s}=this;for(const e of r){for(let r=1;r<e;r++){const e=s*(n+r);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}n+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:r,size:n}=this,a=this.coords.slice(0,n*r);return e?(e.set(a),new s(t,e,this.hasZ,this.hasM)):new s(t,Array.from(a),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const r=new Array(t*e);for(let t=0,n=0;t<r.length;t+=e)r[n++]=this.coords[t],r[n++]=this.coords[t+1];return new s(this.lengths,r,!1,!1)}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3819],{563(e,t,r){r.d(t,{QueueProcessor:()=>c,SharedConcurrency:()=>h});var s=r(97768),i=r(17676),n=r(9775),o=r(32587),a=r(76030),l=r(44794);class c{constructor(e){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,l.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??d,this._queue=new n.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,s.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){const t=this._controllers.get(e);t?.abort()}clear(){this._queue.clear();const e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,r)=>e(r))}_get(e){const t=this._deferreds.get(e);return t?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){const r=this._get(e);if(r)return r;const s=new AbortController,n=Promise.withResolvers(),o=t?(0,i.u7)(t,()=>s.abort()):null,a=(0,i.NY)(s.signal,()=>{const t=this._processingItems.get(e);t&&t.controller.abort(),l(),n.reject((0,i.NK)())}),l=()=>{a.remove(),o?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,n),this._controllers.set(e,s),n.promise.then(l,l),this._queue.push(e),this._scheduleNext(),n.promise}last(){return this._queue.last()}reset(){const e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(const t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),this.sharedConcurrency.current.value-=1)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,a._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(null==e)return;let t;const r=new AbortController,s=new u(e,r);this._processingItems.set(e,s),this.sharedConcurrency.current.value+=1;try{t=this.process(e,r.signal)}catch(e){this._processError(s,e)}(0,i.$X)(t)?(s.promise=t,t.then(e=>this._processResult(s,e),e=>this._processError(s,e))):this._processResult(s,t)}}class u{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class h{constructor(e){this.limit=e,this.current=(0,l.v)(0)}get full(){return this.current.value>=this.limit}}const d=new h(1/0)},32587(e,t,r){r.d(t,{A:()=>n});var s=r(62788),i=r(95488);class n{constructor(e){this._observable=new i.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,s.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){const t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,s.gc)(this._observable),this._map.entries()}forEach(e,t){(0,s.gc)(this._observable),this._map.forEach((r,s)=>e.call(t,r,s,this),t)}get(e){return(0,s.gc)(this._observable),this._map.get(e)}has(e){return(0,s.gc)(this._observable),this._map.has(e)}keys(){return(0,s.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(const r of t){if(!this._map.has(r))continue;const t=this._map.get(r),s=e(t,r);s!==t&&this.set(r,s)}})}values(){return(0,s.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,s.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},90951(e,t,r){r.d(t,{M:()=>k});var s=r(11254),i=r(5482),n=r(49186),o=r(65529),a=r(44208),l=r(563),c=r(84952);function u(e){const t=new Map;for(const r of e.files){const e=h(r);t.set(r.name,e)}return t}function h(e){const t=new Map;for(const r of e.statistics??[]){const e=r.column.at(-1);null!=e&&t.set(e,{minValue:r.minValue,maxValue:r.maxValue,nullCount:r.nullCount??0,distinctCount:r.distinctCount??null})}return new d(0,0,t)}class d{static fromFile(e){const t=e.numRows(),r=e.byteLength(),s=new Map;for(const t of e.getColumnDescriptors()){const e=t.minValue(),r=t.maxValue(),i=t.distinctCount()??null,n=t.nullCount()??null;null!=e&&null!=r&&s.set(t.name(),{minValue:e,maxValue:r,distinctCount:i,nullCount:n}),t.free()}return new d(t,r,s)}constructor(e,t,r){this.rowCount=e,this.byteSize=t,this.statistics=r}}var p=r(53966),y=r(54625),m=r(39412);const f=()=>p.A.getLogger("esri.layers.ParquetLayer"),g=new Set(["uncompressed","snappy","gzip"]),_=new Set(["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong"]);function w(e,t){switch(t){case"esriGeometryPoint":return e.GeometryType.Point;case"esriGeometryPolygon":case"polygon":return e.GeometryType.Polygon;case"esriGeometryPolyline":case"polyline":return e.GeometryType.Polyline;case"esriGeometryMultipoint":case"multipoint":return e.GeometryType.Multipoint;default:throw new n.A("parquet",`Found unexpected GeometryType: ${t}`)}}async function b(e,t){const r=await(0,m.N)(),s=t.geometryInfo?function(e,t){const r=e.GeometryInfo.new();t.geometry&&r.setGeometry(function(e,t){const r=t.encoding,s=w(e,t.geometryType),i=t.spatialReference.wkid;if(null==i)throw new Error("InternalError: Wkid must be defined.");switch(r.type){case"wkb":return e.GeometryField.fromWkb(r.field,i,s);case"location":{const{yField:t,xField:n}=r;return e.GeometryField.fromLocation(t,n,i,s)}}}(e,t.geometry));const s=t.displayOptimization;if(s){const{index:t,parentColumn:i}=s,n=e=>null!=i?[i,e].join("."):e;if("z"===t.type){const s=e.DisplayOptimizationZBuilder.new();s.setCodeField(n(t.code)),s.setXColumn(n(t.xColumn)),s.setYColumn(n(t.yColumn)),s.setCooordinatePrecision(t.coordinatePrecision),s.setFullExtent(t.fullExtent),s.setSpatialReference(t.wkid,t.wkt),s.setHasZ(!!t.zColumn),s.setHasM(!!t.mColumn),r.setOptmizationZ(s)}if("xz"===t.type){const s=w(e,t.geometryType),i=e.DisplayOptimizationXZBuilder.new();i.setCodeField(n(t.code)),i.setEncoding(t.encoding),i.setFullExtent(t.fullExtent),i.setGeometryType(s),i.setSpatialReference(t.wkid,t.wkt),i.setMaxLevel(t.maxLevel),i.setHasZ(t.hasZ??!1),i.setHasM(t.hasM??!1);for(const r of t.levels??[]){const[t,s]=r.transform.translate,[o,a]=r.transform.scale,l=new Float64Array([t,s]),c=new Float64Array([o,a]),u=n(r.column);i.addLevel(e.MultiscaleGeometryField.new(r.level,r.scale,u,l,c))}r.setOptmizationXZ(i)}}return r}(r,t.geometryInfo):null,i=t.provider.fetchRange.bind(t.provider),o=t.provider.fetchLength.bind(t.provider);try{return await r.ParquetFile.fromUrl(e,i,o,s)}catch(e){throw new n.A("parquet","Failed to parse file",{error:e})}}function v(e){if("xz"===e.index.type&&(e.index.geometryType=function(e){switch(e.toLowerCase()){case"polygon":return"polygon";case"polyline":return"polyline";case"multipoint":return"multipoint";default:throw new n.A("parquet:unsupported",`Geometry type ${e} is unsupported`)}}(e.index.geometryType),"esri-pbf"===e.index.encoding&&(e.index.encoding="esriPBF"),"esriPBF"!==e.index.encoding))return f().warn("parquet:unsupported",`Encoding for display index must be of type esriPBF, but found ${e.index.encoding}`),null;const{xmin:t,ymin:r,xmax:s,ymax:i}=e.index.fullExtent;return Number.isFinite(t)&&Number.isFinite(r)&&Number.isFinite(s)&&Number.isFinite(i)?e:(f().warn("parquet:protocol-violation","Ignoring display optimization, found bad extent",{index:e.index}),null)}function S(e){for(const t of e.compressionCodecs())if(!g.has(t))throw new n.A("parquet:unsupported",`Compression codec ${t} is unsupported. Must be of type ${Array.from(g).join(",")}`)}function x(e){switch(e){case"Point":return"esriGeometryPoint";case"Polygon":case"MultiPolygon":return"esriGeometryPolygon";case"LineString":return"esriGeometryPolyline";case"MultiPoint":return"esriGeometryMultipoint";default:return null}}function C(e,t,r){if(!r)return null;const s=e?e.columns[e.primary_column]:null,i=s?.bbox;if(i?.every(e=>Number.isFinite(e)))switch(i.length){case 4:return{xmin:i[0],ymin:i[1],xmax:i[2],ymax:i[3],spatialReference:r};case 6:return{xmin:i[0],ymin:i[1],xmax:i[3],ymax:i[4],spatialReference:r};default:f().warn("parquet:protocol-violation","Invalid Geoparquet file. BoundingBox size must be 4 or 6.",{geoMetadata:e})}const n=t?.index.fullExtent;return n?{...n,spatialReference:r}:null}class F{static async create(e,t,r,s,i){if(!i){const i=await b(r,{geometryInfo:e,provider:t}),n=d.fromFile(i);return new F(e,t,r,s,n,Promise.resolve(i))}return new F(e,t,r,s,i,null)}constructor(e,t,r,s,i,n){this._geometryInfo=e,this._provider=t,this.url=r,this.id=s,this.statistics=i,this._file=n}destroy(){null!=this._file&&this._file.then(e=>e.free())}get file(){return null==this._file&&(this._file=b(this.url,{geometryInfo:this._geometryInfo,provider:this._provider})),this._file}}const q="_spatial.json",P=new l.QueueProcessor({concurrency:12,process:async e=>{const{data:t}=await(0,s.A)(e.url,e.options);return t}});class R{constructor(e,t=()=>{}){this._geometryInfo=e,this._getCustomParameters=t,this.events=new o.bk}async destroy(){await this.clear()}async clear(){if(this._infos){const e=await this._infos;for(const t of e.values())t.destroy();e.clear(),this._infos=null}}async getMetadata(){const e={stack:[],error:void 0,hasError:!1};try{const t=(await this._getParquetFileNames()).at(0);return t?function(e){S(e);const t=function(e){return e.fields(!1).map(e=>({name:e.name,alias:e.name,type:e.type}))}(e),r=function(e){const t=e.keyValueMetadata("geo");return null!=t?JSON.parse(t):null}(e),s=function(e){if(e.keyValueMetadata("esri"))throw new n.A("parquet:unsupported","File was created using an unsupported experimental display index. Please regenerate the file.");const t=e.keyValueMetadata("geodisplay");if(null!=t)return v(JSON.parse(t));const r=e.keyValueMetadata("org.apache.spark.sql.parquet.row.metadata");if(null!=r){const e=JSON.parse(r);for(const t of e.fields)if(null!=t.metadata&&"type"in t.metadata&&("xz"===t.metadata.type||"z"===t.metadata.type))return v({parentColumn:t.name,index:t.metadata})}return null}(e),i=function(e,t){if(null!=e){const t=e.primary_column;return{type:"wkb",field:t,orientation:"counterclockwise"===e.columns[t].orientation?"counter-clockwise":null}}const r=function(e){const t=e.map(e=>e.toLowerCase());return{longitudeFieldName:e[t.indexOf(y.A0.find(e=>t.includes(e)))],latitudeFieldName:e[t.indexOf(y.bD.find(e=>t.includes(e)))]}}(t.filter(e=>_.has(e.type)).map(e=>e.name));return r.latitudeFieldName&&r.longitudeFieldName?{type:"location",xField:r.longitudeFieldName,yField:r.latitudeFieldName}:null}(r,t);let o,a;if(i)switch(i.type){case"location":a={wkid:4326},o="esriGeometryPoint";break;case"wkb":if(r){const e=r.primary_column,t=r.columns[e];o=function(e){const{geometry_types:t}=e,r=new Set;for(const e of t){const t=x(e);t&&r.add(t)}if(r.size>1)throw new n.A("parquet:unsupported","Parquet mixed geometry types are not supported",{geometryTypes:r});return 1===r.size?r.values().next().value:void 0}(t),a=function(e){const t=e.crs?.id?.code;return t&&"number"==typeof t?{wkid:t}:void 0}(t)}}if(s){const e=s.index;!a&&e.wkid&&(a={wkid:e.wkid}),o||(o="z"===e.type?"esriGeometryPoint":function(e){switch(e){case"polygon":return"esriGeometryPolygon";case"polyline":return"esriGeometryPolyline";case"multipoint":return"esriGeometryMultipoint"}}(e.geometryType))}return{geoMetadata:r,displayOptimization:s,geometryEncoding:i,geometryInfo:a&&o?{geometry:i?{geometryType:o,spatialReference:a,encoding:i}:null,displayOptimization:s}:null,geometryType:o,spatialReference:a,extent:C(r,s,a),fields:t}}((0,i.mS)(e,await b(t,{provider:this}),!1)):null}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}getGeometryInfo(){return this._geometryInfo}async getFiles(){const e=await this._getInfoMap();return Array.from(e.values())}async updateGeometryInfo(e){if(this._geometryInfo)throw new Error("GeometryInfo already set");await this.clear(),this._geometryInfo=e}async fetchLength(e){const{byteLength:t,cacheTag:r}=await this._fetchLengthAndTag(e);if(!(0,a.A)("parquetlayer-cache-enabled"))return t;try{await this._createOrResetCache(e,r)}catch(e){}return t}async fetchRange(e,t,r,s){if(!(0,a.A)("parquetlayer-cache-enabled"))return this._fetchRange(e,t,r,s);const i=new URL(this._getCacheFileName(e));i.searchParams.append("range",`${t}-${r}`);try{const n=await this._openCache(e),o=await n.match(i);if(o)return await o.arrayBuffer();const a=await this._fetchRange(e,t,r,s);return await n.put(i,new Response(a,{headers:{"Content-Type":"application/octet-stream","Content-Length":a.byteLength.toString()}})),a}catch(i){return this._fetchRange(e,t,r,s)}}_getCacheFileName(e){return e}async _requestStatistics(e){const{data:t}=await(0,s.A)(e,{responseType:"json",query:this._getCustomParameters()});return t}async _fetchRange(e,t,r,s){const i={url:e,options:{responseType:"array-buffer",query:this._getCustomParameters()??{},cacheMode:"no-store",useQueue:!0,headers:{range:`bytes=${t}-${r}`}}},o=await P.push(i),a=r-t+1;if(o.byteLength!==a)throw new n.A("InvalidRangeRequest",`request returned ${o.byteLength} bytes for range ${t}-${r}, expected ${a}.`);return o}async _fetchLengthAndTag(e){if((0,c.w8)(e)){const{data:t}=await(0,s.A)(e,{responseType:"blob"});return{byteLength:t.size,cacheTag:null}}const t=await this._requestHead(e),r=t.headers.get("Content-Length");if(null==r)throw new Error("Unable to parse content length");const i=t.headers.get("etag")??t.headers.get("Last-Modified");return{byteLength:parseInt(r,10),cacheTag:i}}async _getInfoMap(){return this._infos||(this._infos=this._fetchParquetFiles()),this._infos}async _updateParquetFileInfos(e){const t=await this._getInfoMap(),r=new Set(e);for(const e of r)if(!t.get(e)){const r=t.size,s=await F.create(this.getGeometryInfo(),this,e,r,null);t.set(e,s)}for(const e of t.keys())if(!r.has(e))throw new Error("Deletion not supported")}async _getFileStatistics(e){this._statistics||(this._statistics=this._fetchStatistics());const t=await this._statistics,r=function(e){return e.split(/[?#]/)[0].split("/").at(-1)??e}(e);return t.get(r)}async _fetchParquetFiles(){const e=(await this._getParquetFileNames()).map(async(e,t)=>{const r=t,s=await this._getFileStatistics(e);return F.create(this.getGeometryInfo(),this,e,r,s)}),t=await Promise.all(e),r=new Map;for(const e of t)r.set(e.url,e);return r}async _fetchStatistics(){const e=await this._getStatisticsFileName();if(null==e)return new Map;const t=await this._resolveFileUrl(e);return u(await this._requestStatistics(t))}async _requestHead(e){const{data:t}=await(0,s.A)(e,{responseType:"native",method:"head",query:this._getCustomParameters()});return t}async _openCache(e){return caches.open(this._getCacheName(e))}_getCacheName(e){return`parquet.v1:${this._getCacheFileName(e)}`}async _createOrResetCache(e,t){const r=this._getCacheName(e),s=new URL(this._getCacheFileName(e));if(s.searchParams.append("metadata","true"),null==t)return void await caches.delete(r);let i=await caches.open(r);const n=await i.match(s),o=await(n?.json());o?.tag!==t&&(await caches.delete(r),i=await caches.open(r));const a=JSON.stringify({tag:t});await i.put(s,new Response(a,{headers:{"Content-Type":"application/json","Content-Length":a.length.toString()}}))}}function A(e){const t=e.split(/[?#]/)[0];return t===q||t.endsWith(q)}var N=r(39131);class I extends R{constructor(e,t,r){super(t,r),this._schema=e,this._isAgol=!!(0,N.py)(this._schema.itemUrl)}async update(e){throw new Error("Unsupported")}async _getParquetFileNames(){return[`${this._baseUrl}/data`]}async _getStatisticsFileName(){return null}_getCacheFileName(e){return`${this._baseUrl}/data`}async _resolveFileUrl(e){return this._resolvedUrl||(this._resolvedUrl=this._fetchResolvedUrl()),this._resolvedUrl}async _fetchLengthAndTag(e){const t=await super._fetchLengthAndTag(e);return t.cacheTag=this._schema.modified.getTime().toString(),t}async _fetchRange(e,t,r,s){try{const i=await this._resolveFileUrl(e);return await super._fetchRange(i,t,r,s)}catch{this._resolvedUrl=null}const i=await this._resolveFileUrl(e);return super._fetchRange(i,t,r,s)}get _baseUrl(){return this._schema.itemCdnUrl??this._schema.itemUrl}async _fetchResolvedUrl(){return this._isAgol?(await(0,s.A)(`${this._baseUrl}/data`,{query:{signedurl:!0,expiration:9,f:"json"}})).data.signedUrl:`${this._baseUrl}/data`}}var M=r(47828);class U extends R{constructor(e,t,r){super(t,r),this._schema=e,this._directoryChanged=!1}get _baseUrl(){return this._schema.itemCdnUrl??this._schema.itemUrl}async update(e){throw new Error("Unsupported")}async _getParquetFileNames(){const e=await this._getResources();return Array.from(e.keys()).filter(e=>e.endsWith(".parquet"))}async _getStatisticsFileName(){const e=await this._getResources();return Array.from(e.keys()).find(A)??null}_getCacheFileName(e){return`${this._baseUrl}/resources/${e}`}async _resolveFileUrl(e){const t=await this._getResource(e);return t.signedUrl?t.signedUrl:`${this._baseUrl}/resources/${e}`}async _fetchLengthAndTag(e){const t=await this._getResource(e),r=this._schema.itemMetadata.modified.getTime().toString();return{byteLength:t.size,cacheTag:r}}async _fetchRange(e,t,r,s){if(this._directoryChanged)throw(0,M.O)();try{const i=await this._resolveFileUrl(e);return await super._fetchRange(i,t,r,s)}catch{if("directory-changed"===await this._refetchResources())throw(0,M.O)()}const i=await this._resolveFileUrl(e);return super._fetchRange(i,t,r,s)}_refetchResources(){return this._directoryChanged?Promise.resolve("directory-changed"):(this._updateResourcesPromise||(this._updateResourcesPromise=this._executeRefetchResources().finally(()=>{this._updateResourcesPromise=null})),this._updateResourcesPromise)}async _executeRefetchResources(){return await this._refetchPortalItemMetadata()?(this.events.emit("sourceChanged"),this._directoryChanged=!0,"directory-changed"):(this._resources=this._fetchResources(),"ok")}async _refetchPortalItemMetadata(){const e=this._schema.itemMetadata.url,t=await(0,s.A)(this._schema.itemUrl,{responseType:"json",query:{f:"json"}}),{modified:r,url:i}=t.data;if(null==i)throw new Error("Portal item metadata must have a url defined.");if(null==r)throw new Error("Portal item metadata must have a modified timestamp defined.");return this._schema.itemMetadata={modified:new Date(r),url:i},e!==i}async _getResources(){return this._resources||(this._resources=this._fetchResources()),await this._resources}async _getResource(e){const t=(await this._getResources()).get(e);if(!t)throw new Error(`Resource ${e} not found.`);return t}async _fetchResources(){const e=new Map;let t=1;const r=function(e){const t=e.split("/").filter(Boolean),r=t.indexOf("resources");if(-1===r||r===t.length-1)throw new Error(`URL does not contain a resources directory name: ${e}`);return`${t.slice(r+1).map(e=>decodeURIComponent(e)).join("/")}/`}(this._schema.itemMetadata.url);for(;-1!==t;){const i=await(0,s.A)(`${this._baseUrl}/resources`,{query:{f:"json",start:t,num:100}});for(const t of i.data.resources)t.resource.startsWith(r)&&e.set(t.resource,t);t=i.data.nextStart}return e}}class T extends R{constructor(e,t=null,r=()=>{}){super(t,r),this._schema=e}async update(e){await this._updateParquetFileInfos(await this._getParquetFileNames()),this._schema=e}async _resolveFileUrl(e){return e}async _getParquetFileNames(){return this._schema.urls.filter(e=>!e.endsWith(".json"))}async _getStatisticsFileName(){return this._schema.urls.find(A)??null}}function k(e,t,r){switch(e.type){case"urls":return new T(e,t,r);case"portal-parquet-file":return new I(e,t,r);case"portal-parquet-layer":return new U(e,t,r)}}},47828(e,t,r){r.d(t,{O:()=>n,c:()=>i});var s=r(49186);function i(e){return null!=e&&"object"==typeof e&&"name"in e&&"FileProviderChangedError"===e.name}function n(e=""){return new s.A("FileProviderChangedError",e)}},9075(e,t,r){r.d(t,{A:()=>a});var s=r(5482),i=r(69540),n=r(25482),o=r(91429);let a=class extends((0,i.OU)(n.o)){constructor(e){super(e),this.type="location",this.xField=null,this.yField=null}};(0,s.Cg)([(0,o.MZ)({type:["location"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"xField",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"yField",void 0),a=(0,s.Cg)([(0,o.$K)("esri.layers.support.GeometryEncodingLocation")],a)},34582(e,t,r){r.d(t,{A:()=>a});var s=r(5482),i=r(69540),n=r(25482),o=r(91429);let a=class extends((0,i.OU)(n.o)){constructor(e){super(e),this.type="wkb",this.field=null}};(0,s.Cg)([(0,o.MZ)({type:["wkb"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:["counter-clockwise"],json:{write:!0}})],a.prototype,"orientation",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"field",void 0),a=(0,s.Cg)([(0,o.$K)("esri.layers.support.GeometryEncodingWkb")],a)},56370(e,t,r){r.d(t,{A:()=>d});var s=r(5482),i=r(69540),n=r(7762),o=r(49186),a=r(25482),l=r(91429),c=r(64108),u=r(97159),h=r(43937);let d=class extends((0,a.T)(i.Pw)){constructor(e){super(e),this.type="files",this.urls=new n.A}writeUrls(e,t,r,s){const i=e.toArray().map(e=>(0,u.t)(e,s)).filter(e=>!!e);i.length?t.urls=i:s.messages?.push(new o.A("parquet-layer:missing-urls","Missing or empty 'urls'",{data:this}))}};(0,s.Cg)([(0,l.MZ)({type:["files"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],d.prototype,"type",void 0),(0,s.Cg)([(0,l.MZ)({type:n.A.ofType(String),json:{write:{isRequired:!0}}})],d.prototype,"urls",void 0),(0,s.Cg)([(0,h.K)("urls")],d.prototype,"writeUrls",null),d=(0,s.Cg)([(0,c.$)("esri.layers.support.ParquetFilesData")],d)},54625(e,t,r){r.d(t,{A0:()=>o,bD:()=>n,i_:()=>i});var s=r(30524);function i(e,t,r){t=(0,s.rS)(t)?.toLowerCase(),r=(0,s.rS)(r)?.toLowerCase();const i=e.map(e=>e.toLowerCase()),a=t?e[i.indexOf(t)]:null,l=r?e[i.indexOf(r)]:null;return{longitudeFieldName:a||e[i.indexOf(o.find(e=>i.includes(e)))],latitudeFieldName:l||e[i.indexOf(n.find(e=>i.includes(e)))]}}const n=["lat","lat83","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],o=["lon","lng","lng83","long","long83","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"]},50639(e,t,r){r.d(t,{G:()=>n});var s=r(9075),i=r(34582);function n(e){switch(e.type){case"wkb":return i.A.fromJSON(e);case"location":return s.A.fromJSON(e)}}},42760(e,t,r){r.d(t,{Dt:()=>y,hG:()=>d,nc:()=>p,sA:()=>h,ye:()=>u}),r(7762);var s=r(49186),i=r(44208),n=r(66552),o=r(16930),a=(r(90951),r(20437)),l=r(30524),c=r(50639);r(56370);const u=new n.J({esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint"});function h(e){return u.toJSON(e)}function d(e){return u.fromJSON(e)}async function p(e,t){if(t.geometryType&&t.spatialReference&&t.geometryEncoding&&t.fields&&t.displayOptimization)return t;if(!e)throw new s.A("parquet:bad-input","No metadata found");const r={...t},n=e.fields.map(e=>a.A.fromJSON(e));if(null==r.fields)r.fields=n;else{const e=new Set(r.fields.map(e=>e.name));if(!(0,i.A)("parquetlayer-legacy-field-overrides-enabled"))for(const t of n)e.has(t.name)||r.fields.push(t)}if(null!=r.geometryEncoding){const e=r.geometryEncoding;switch(e.type){case"wkb":{const t=n.find(t=>t.name===e.field);if(!t)throw new s.A("parquet:unsupported",`Geometry encoding references field ${e.field} which does not exist`);if("blob"!==t.type)throw new s.A("parquet:unsupported",`Invalid field type for geometry encoding. Found ${t.type} but expected 'blob'`);break}case"location":for(const t of[e.xField,e.yField])if(null!=t){const e=n.find(e=>e.name===t);if(!e)throw new s.A("parquet:unsupported",`Geometry encoding references field ${t} which does not exist`);if(!(0,l.WA)(e))throw new s.A("parquet:unsupported",`Invalid field type for location geometry encoding. Found ${e.type} but expected a numeric`)}}}return null==r.geometryEncoding&&(r.geometryEncoding=e.geometryEncoding?(0,c.G)(e.geometryEncoding):null),r.fields=function(e,t){const r=t.geoMetadata;if(null==r)return e;const s=new Set(Object.keys(r.columns));return e.filter(e=>!s.has(e.name))}(r.fields,e),!r.displayOptimization&&e.displayOptimization&&(r.displayOptimization=e.displayOptimization),!r.geometryType&&e.geometryType&&(r.geometryType=d(e.geometryType)),!r.spatialReference&&e.spatialReference&&(r.spatialReference=o.A.fromJSON(e.spatialReference)),r}async function y(e,t){switch(e.type){case"files":return{type:"urls",urls:e.urls.toArray()};case"portal-item":{const r=await e.portalItem.load(t);switch(r.type){case"Apache Parquet":return{type:"portal-parquet-file",itemUrl:r.itemUrl,itemCdnUrl:r.itemCdnUrl,modified:r.modified,size:r.size};case"Parquet layer":case"Parquet Layer":case"Parquet feature layer":case"Parquet Feature Layer":if(!r.url)throw new s.A("parquet:bad-item",`Item of type ${r.type} must have a url defined`,r);return{type:"portal-parquet-layer",itemUrl:r.itemUrl,itemCdnUrl:r.itemCdnUrl,itemMetadata:{modified:r.modified,url:r.url}};default:throw new s.A("parquet:bad-item",`Item of type ${r.type} is not supported`,r)}}}}},39412(e,t,r){r.d(t,{N:()=>n});var s=r(2741);let i=null;async function n(){return i||(i=async function(){const e=await r.e(1687).then(r.bind(r,31687));return await e.default({module_or_path:(0,s.s)("esri/libs/parquet/pkg/bundle_bg.wasm")}),e}()),i}},93470(e,t,r){r.d(t,{Cb:()=>n,HW:()=>u,JR:()=>i,JZ:()=>l,WR:()=>a,b6:()=>h,fT:()=>s,nC:()=>c,yM:()=>o});const s=[252,146,31,255],i=[153,153,153,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s},a={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},c={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},h={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3819],{563(e,t,r){r.d(t,{QueueProcessor:()=>c,SharedConcurrency:()=>h});var s=r(97768),i=r(17676),n=r(9775),o=r(32587),a=r(76030),l=r(44794);class c{constructor(e){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,l.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??d,this._queue=new n.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,s.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){const t=this._controllers.get(e);t?.abort()}clear(){this._queue.clear();const e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,r)=>e(r))}_get(e){const t=this._deferreds.get(e);return t?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){const r=this._get(e);if(r)return r;const s=new AbortController,n=Promise.withResolvers(),o=t?(0,i.u7)(t,()=>s.abort()):null,a=(0,i.NY)(s.signal,()=>{const t=this._processingItems.get(e);t&&t.controller.abort(),l(),n.reject((0,i.NK)())}),l=()=>{a.remove(),o?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,n),this._controllers.set(e,s),n.promise.then(l,l),this._queue.push(e),this._scheduleNext(),n.promise}last(){return this._queue.last()}reset(){const e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(const t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),this.sharedConcurrency.current.value-=1)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,a._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(null==e)return;let t;const r=new AbortController,s=new u(e,r);this._processingItems.set(e,s),this.sharedConcurrency.current.value+=1;try{t=this.process(e,r.signal)}catch(e){this._processError(s,e)}(0,i.$X)(t)?(s.promise=t,t.then(e=>this._processResult(s,e),e=>this._processError(s,e))):this._processResult(s,t)}}class u{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class h{constructor(e){this.limit=e,this.current=(0,l.v)(0)}get full(){return this.current.value>=this.limit}}const d=new h(1/0)},32587(e,t,r){r.d(t,{A:()=>n});var s=r(62788),i=r(95488);class n{constructor(e){this._observable=new i.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,s.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){const t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,s.gc)(this._observable),this._map.entries()}forEach(e,t){(0,s.gc)(this._observable),this._map.forEach((r,s)=>e.call(t,r,s,this),t)}get(e){return(0,s.gc)(this._observable),this._map.get(e)}has(e){return(0,s.gc)(this._observable),this._map.has(e)}keys(){return(0,s.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(const r of t){if(!this._map.has(r))continue;const t=this._map.get(r),s=e(t,r);s!==t&&this.set(r,s)}})}values(){return(0,s.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,s.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},90951(e,t,r){r.d(t,{M:()=>k});var s=r(11254),i=r(5482),n=r(49186),o=r(65529),a=r(44208),l=r(563),c=r(84952);function u(e){const t=new Map;for(const r of e.files){const e=h(r);t.set(r.name,e)}return t}function h(e){const t=new Map;for(const r of e.statistics??[]){const e=r.column.at(-1);null!=e&&t.set(e,{minValue:r.minValue,maxValue:r.maxValue,nullCount:r.nullCount??0,distinctCount:r.distinctCount??null})}return new d(0,0,t)}class d{static fromFile(e){const t=e.numRows(),r=e.byteLength(),s=new Map;for(const t of e.getColumnDescriptors()){const e=t.minValue(),r=t.maxValue(),i=t.distinctCount()??null,n=t.nullCount()??null;null!=e&&null!=r&&s.set(t.name(),{minValue:e,maxValue:r,distinctCount:i,nullCount:n}),t.free()}return new d(t,r,s)}constructor(e,t,r){this.rowCount=e,this.byteSize=t,this.statistics=r}}var p=r(53966),y=r(54625),m=r(39412);const f=()=>p.A.getLogger("esri.layers.ParquetLayer"),g=new Set(["uncompressed","snappy","gzip"]),_=new Set(["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong"]);function w(e,t){switch(t){case"esriGeometryPoint":return e.GeometryType.Point;case"esriGeometryPolygon":case"polygon":return e.GeometryType.Polygon;case"esriGeometryPolyline":case"polyline":return e.GeometryType.Polyline;case"esriGeometryMultipoint":case"multipoint":return e.GeometryType.Multipoint;default:throw new n.A("parquet",`Found unexpected GeometryType: ${t}`)}}async function b(e,t){const r=await(0,m.N)(),s=t.geometryInfo?function(e,t){const r=e.GeometryInfo.new();t.geometry&&r.setGeometry(function(e,t){const r=t.encoding,s=w(e,t.geometryType),i=t.spatialReference.wkid;if(null==i)throw new Error("InternalError: Wkid must be defined.");switch(r.type){case"wkb":return e.GeometryField.fromWkb(r.field,i,s);case"location":{const{yField:t,xField:n}=r;return e.GeometryField.fromLocation(t,n,i,s)}}}(e,t.geometry));const s=t.displayOptimization;if(s){const{index:t,parentColumn:i}=s,n=e=>null!=i?[i,e].join("."):e;if("z"===t.type){const s=e.DisplayOptimizationZBuilder.new();s.setCodeField(n(t.code)),s.setXColumn(n(t.xColumn)),s.setYColumn(n(t.yColumn)),s.setCooordinatePrecision(t.coordinatePrecision),s.setFullExtent(t.fullExtent),s.setSpatialReference(t.wkid,t.wkt),s.setHasZ(!!t.zColumn),s.setHasM(!!t.mColumn),r.setOptmizationZ(s)}if("xz"===t.type){const s=w(e,t.geometryType),i=e.DisplayOptimizationXZBuilder.new();i.setCodeField(n(t.code)),i.setEncoding(t.encoding),i.setFullExtent(t.fullExtent),i.setGeometryType(s),i.setSpatialReference(t.wkid,t.wkt),i.setMaxLevel(t.maxLevel),i.setHasZ(t.hasZ??!1),i.setHasM(t.hasM??!1);for(const r of t.levels??[]){const[t,s]=r.transform.translate,[o,a]=r.transform.scale,l=new Float64Array([t,s]),c=new Float64Array([o,a]),u=n(r.column);i.addLevel(e.MultiscaleGeometryField.new(r.level,r.scale,u,l,c))}r.setOptmizationXZ(i)}}return r}(r,t.geometryInfo):null,i=t.provider.fetchRange.bind(t.provider),o=t.provider.fetchLength.bind(t.provider);try{return await r.ParquetFile.fromUrl(e,i,o,s)}catch(e){throw new n.A("parquet","Failed to parse file",{error:e})}}function v(e){if("xz"===e.index.type&&(e.index.geometryType=function(e){switch(e.toLowerCase()){case"polygon":return"polygon";case"polyline":return"polyline";case"multipoint":return"multipoint";default:throw new n.A("parquet:unsupported",`Geometry type ${e} is unsupported`)}}(e.index.geometryType),"esri-pbf"===e.index.encoding&&(e.index.encoding="esriPBF"),"esriPBF"!==e.index.encoding))return f().warn("parquet:unsupported",`Encoding for display index must be of type esriPBF, but found ${e.index.encoding}`),null;const{xmin:t,ymin:r,xmax:s,ymax:i}=e.index.fullExtent;return Number.isFinite(t)&&Number.isFinite(r)&&Number.isFinite(s)&&Number.isFinite(i)?e:(f().warn("parquet:protocol-violation","Ignoring display optimization, found bad extent",{index:e.index}),null)}function S(e){for(const t of e.compressionCodecs())if(!g.has(t))throw new n.A("parquet:unsupported",`Compression codec ${t} is unsupported. Must be of type ${Array.from(g).join(",")}`)}function x(e){switch(e){case"Point":return"esriGeometryPoint";case"Polygon":case"MultiPolygon":return"esriGeometryPolygon";case"LineString":return"esriGeometryPolyline";case"MultiPoint":return"esriGeometryMultipoint";default:return null}}function C(e,t,r){if(!r)return null;const s=e?e.columns[e.primary_column]:null,i=s?.bbox;if(i?.every(e=>Number.isFinite(e)))switch(i.length){case 4:return{xmin:i[0],ymin:i[1],xmax:i[2],ymax:i[3],spatialReference:r};case 6:return{xmin:i[0],ymin:i[1],xmax:i[3],ymax:i[4],spatialReference:r};default:f().warn("parquet:protocol-violation","Invalid Geoparquet file. BoundingBox size must be 4 or 6.",{geoMetadata:e})}const n=t?.index.fullExtent;return n?{...n,spatialReference:r}:null}class F{static async create(e,t,r,s,i){if(!i){const i=await b(r,{geometryInfo:e,provider:t}),n=d.fromFile(i);return new F(e,t,r,s,n,Promise.resolve(i))}return new F(e,t,r,s,i,null)}constructor(e,t,r,s,i,n){this._geometryInfo=e,this._provider=t,this.url=r,this.id=s,this.statistics=i,this._file=n}destroy(){null!=this._file&&this._file.then(e=>e.free())}get file(){return null==this._file&&(this._file=b(this.url,{geometryInfo:this._geometryInfo,provider:this._provider})),this._file}}const q="_spatial.json",P=new l.QueueProcessor({concurrency:12,process:async e=>{const{data:t}=await(0,s.A)(e.url,e.options);return t}});class R{constructor(e,t=()=>{}){this._geometryInfo=e,this._getCustomParameters=t,this.events=new o.bk}async destroy(){await this.clear()}async clear(){if(this._infos){const e=await this._infos;for(const t of e.values())t.destroy();e.clear(),this._infos=null}}async getMetadata(){const e={stack:[],error:void 0,hasError:!1};try{const t=(await this._getParquetFileNames()).at(0);return t?function(e){S(e);const t=function(e){return e.fields(!1).map(e=>({name:e.name,alias:e.name,type:e.type}))}(e),r=function(e){const t=e.keyValueMetadata("geo");return null!=t?JSON.parse(t):null}(e),s=function(e){if(e.keyValueMetadata("esri"))throw new n.A("parquet:unsupported","File was created using an unsupported experimental display index. Please regenerate the file.");const t=e.keyValueMetadata("geodisplay");if(null!=t)return v(JSON.parse(t));const r=e.keyValueMetadata("org.apache.spark.sql.parquet.row.metadata");if(null!=r){const e=JSON.parse(r);for(const t of e.fields)if(null!=t.metadata&&"type"in t.metadata&&("xz"===t.metadata.type||"z"===t.metadata.type))return v({parentColumn:t.name,index:t.metadata})}return null}(e),i=function(e,t){if(null!=e){const t=e.primary_column;return{type:"wkb",field:t,orientation:"counterclockwise"===e.columns[t].orientation?"counter-clockwise":null}}const r=function(e){const t=e.map(e=>e.toLowerCase());return{longitudeFieldName:e[t.indexOf(y.A0.find(e=>t.includes(e)))],latitudeFieldName:e[t.indexOf(y.bD.find(e=>t.includes(e)))]}}(t.filter(e=>_.has(e.type)).map(e=>e.name));return r.latitudeFieldName&&r.longitudeFieldName?{type:"location",xField:r.longitudeFieldName,yField:r.latitudeFieldName}:null}(r,t);let o,a;if(i)switch(i.type){case"location":a={wkid:4326},o="esriGeometryPoint";break;case"wkb":if(r){const e=r.primary_column,t=r.columns[e];o=function(e){const{geometry_types:t}=e,r=new Set;for(const e of t){const t=x(e);t&&r.add(t)}if(r.size>1)throw new n.A("parquet:unsupported","Parquet mixed geometry types are not supported",{geometryTypes:r});return 1===r.size?r.values().next().value:void 0}(t),a=function(e){const t=e.crs?.id?.code;return t&&"number"==typeof t?{wkid:t}:void 0}(t)}}if(s){const e=s.index;!a&&e.wkid&&(a={wkid:e.wkid}),o||(o="z"===e.type?"esriGeometryPoint":function(e){switch(e){case"polygon":return"esriGeometryPolygon";case"polyline":return"esriGeometryPolyline";case"multipoint":return"esriGeometryMultipoint"}}(e.geometryType))}return{geoMetadata:r,displayOptimization:s,geometryEncoding:i,geometryInfo:a&&o?{geometry:i?{geometryType:o,spatialReference:a,encoding:i}:null,displayOptimization:s}:null,geometryType:o,spatialReference:a,extent:C(r,s,a),fields:t}}((0,i.mS)(e,await b(t,{provider:this}),!1)):null}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}getGeometryInfo(){return this._geometryInfo}async getFiles(){const e=await this._getInfoMap();return Array.from(e.values())}async updateGeometryInfo(e){if(this._geometryInfo)throw new Error("GeometryInfo already set");await this.clear(),this._geometryInfo=e}async fetchLength(e){const{byteLength:t,cacheTag:r}=await this._fetchLengthAndTag(e);if(!(0,a.A)("parquetlayer-cache-enabled"))return t;try{await this._createOrResetCache(e,r)}catch(e){}return t}async fetchRange(e,t,r,s){if(!(0,a.A)("parquetlayer-cache-enabled"))return this._fetchRange(e,t,r,s);const i=new URL(this._getCacheFileName(e));i.searchParams.append("range",`${t}-${r}`);try{const n=await this._openCache(e),o=await n.match(i);if(o)return await o.arrayBuffer();const a=await this._fetchRange(e,t,r,s);return await n.put(i,new Response(a,{headers:{"Content-Type":"application/octet-stream","Content-Length":a.byteLength.toString()}})),a}catch(i){return this._fetchRange(e,t,r,s)}}_getCacheFileName(e){return e}async _requestStatistics(e){const{data:t}=await(0,s.A)(e,{responseType:"json",query:this._getCustomParameters()});return t}async _fetchRange(e,t,r,s){const i={url:e,options:{responseType:"array-buffer",query:this._getCustomParameters()??{},cacheMode:"no-store",useQueue:!0,headers:{range:`bytes=${t}-${r}`}}},o=await P.push(i),a=r-t+1;if(o.byteLength!==a)throw new n.A("InvalidRangeRequest",`request returned ${o.byteLength} bytes for range ${t}-${r}, expected ${a}.`);return o}async _fetchLengthAndTag(e){if((0,c.w8)(e)){const{data:t}=await(0,s.A)(e,{responseType:"blob"});return{byteLength:t.size,cacheTag:null}}const t=await this._requestHead(e),r=t.headers.get("Content-Length");if(null==r)throw new Error("Unable to parse content length");const i=t.headers.get("etag")??t.headers.get("Last-Modified");return{byteLength:parseInt(r,10),cacheTag:i}}async _getInfoMap(){return this._infos||(this._infos=this._fetchParquetFiles()),this._infos}async _updateParquetFileInfos(e){const t=await this._getInfoMap(),r=new Set(e);for(const e of r)if(!t.get(e)){const r=t.size,s=await F.create(this.getGeometryInfo(),this,e,r,null);t.set(e,s)}for(const e of t.keys())if(!r.has(e))throw new Error("Deletion not supported")}async _getFileStatistics(e){this._statistics||(this._statistics=this._fetchStatistics());const t=await this._statistics,r=function(e){return e.split(/[?#]/)[0].split("/").at(-1)??e}(e);return t.get(r)}async _fetchParquetFiles(){const e=(await this._getParquetFileNames()).map(async(e,t)=>{const r=t,s=await this._getFileStatistics(e);return F.create(this.getGeometryInfo(),this,e,r,s)}),t=await Promise.all(e),r=new Map;for(const e of t)r.set(e.url,e);return r}async _fetchStatistics(){const e=await this._getStatisticsFileName();if(null==e)return new Map;const t=await this._resolveFileUrl(e);return u(await this._requestStatistics(t))}async _requestHead(e){const{data:t}=await(0,s.A)(e,{responseType:"native",method:"head",query:this._getCustomParameters()});return t}async _openCache(e){return caches.open(this._getCacheName(e))}_getCacheName(e){return`parquet.v1:${this._getCacheFileName(e)}`}async _createOrResetCache(e,t){const r=this._getCacheName(e),s=new URL(this._getCacheFileName(e));if(s.searchParams.append("metadata","true"),null==t)return void await caches.delete(r);let i=await caches.open(r);const n=await i.match(s),o=await(n?.json());o?.tag!==t&&(await caches.delete(r),i=await caches.open(r));const a=JSON.stringify({tag:t});await i.put(s,new Response(a,{headers:{"Content-Type":"application/json","Content-Length":a.length.toString()}}))}}function A(e){const t=e.split(/[?#]/)[0];return t===q||t.endsWith(q)}var N=r(39131);class I extends R{constructor(e,t,r){super(t,r),this._schema=e,this._isAgol=!!(0,N.py)(this._schema.itemUrl)}async update(e){throw new Error("Unsupported")}async _getParquetFileNames(){return[`${this._baseUrl}/data`]}async _getStatisticsFileName(){return null}_getCacheFileName(e){return`${this._baseUrl}/data`}async _resolveFileUrl(e){return this._resolvedUrl||(this._resolvedUrl=this._fetchResolvedUrl()),this._resolvedUrl}async _fetchLengthAndTag(e){const t=await super._fetchLengthAndTag(e);return t.cacheTag=this._schema.modified.getTime().toString(),t}async _fetchRange(e,t,r,s){try{const i=await this._resolveFileUrl(e);return await super._fetchRange(i,t,r,s)}catch{this._resolvedUrl=null}const i=await this._resolveFileUrl(e);return super._fetchRange(i,t,r,s)}get _baseUrl(){return this._schema.itemCdnUrl??this._schema.itemUrl}async _fetchResolvedUrl(){return this._isAgol?(await(0,s.A)(`${this._baseUrl}/data`,{query:{signedurl:!0,expiration:9,f:"json"}})).data.signedUrl:`${this._baseUrl}/data`}}var M=r(47828);class U extends R{constructor(e,t,r){super(t,r),this._schema=e,this._directoryChanged=!1}get _baseUrl(){return this._schema.itemCdnUrl??this._schema.itemUrl}async update(e){throw new Error("Unsupported")}async _getParquetFileNames(){const e=await this._getResources();return Array.from(e.keys()).filter(e=>e.endsWith(".parquet"))}async _getStatisticsFileName(){const e=await this._getResources();return Array.from(e.keys()).find(A)??null}_getCacheFileName(e){return`${this._baseUrl}/resources/${e}`}async _resolveFileUrl(e){const t=await this._getResource(e);return t.signedUrl?t.signedUrl:`${this._baseUrl}/resources/${e}`}async _fetchLengthAndTag(e){const t=await this._getResource(e),r=this._schema.itemMetadata.modified.getTime().toString();return{byteLength:t.size,cacheTag:r}}async _fetchRange(e,t,r,s){if(this._directoryChanged)throw(0,M.O)();try{const i=await this._resolveFileUrl(e);return await super._fetchRange(i,t,r,s)}catch{if("directory-changed"===await this._refetchResources())throw(0,M.O)()}const i=await this._resolveFileUrl(e);return super._fetchRange(i,t,r,s)}_refetchResources(){return this._directoryChanged?Promise.resolve("directory-changed"):(this._updateResourcesPromise||(this._updateResourcesPromise=this._executeRefetchResources().finally(()=>{this._updateResourcesPromise=null})),this._updateResourcesPromise)}async _executeRefetchResources(){return await this._refetchPortalItemMetadata()?(this.events.emit("sourceChanged"),this._directoryChanged=!0,"directory-changed"):(this._resources=this._fetchResources(),"ok")}async _refetchPortalItemMetadata(){const e=this._schema.itemMetadata.url,t=await(0,s.A)(this._schema.itemUrl,{responseType:"json",query:{f:"json"}}),{modified:r,url:i}=t.data;if(null==i)throw new Error("Portal item metadata must have a url defined.");if(null==r)throw new Error("Portal item metadata must have a modified timestamp defined.");return this._schema.itemMetadata={modified:new Date(r),url:i},e!==i}async _getResources(){return this._resources||(this._resources=this._fetchResources()),await this._resources}async _getResource(e){const t=(await this._getResources()).get(e);if(!t)throw new Error(`Resource ${e} not found.`);return t}async _fetchResources(){const e=new Map;let t=1;const r=function(e){const t=e.split("/").filter(Boolean),r=t.indexOf("resources");if(-1===r||r===t.length-1)throw new Error(`URL does not contain a resources directory name: ${e}`);return`${t.slice(r+1).map(e=>decodeURIComponent(e)).join("/")}/`}(this._schema.itemMetadata.url);for(;-1!==t;){const i=await(0,s.A)(`${this._baseUrl}/resources`,{query:{f:"json",start:t,num:100}});for(const t of i.data.resources)t.resource.startsWith(r)&&e.set(t.resource,t);t=i.data.nextStart}return e}}class T extends R{constructor(e,t=null,r=()=>{}){super(t,r),this._schema=e}async update(e){await this._updateParquetFileInfos(await this._getParquetFileNames()),this._schema=e}async _resolveFileUrl(e){return e}async _getParquetFileNames(){return this._schema.urls.filter(e=>!e.endsWith(".json"))}async _getStatisticsFileName(){return this._schema.urls.find(A)??null}}function k(e,t,r){switch(e.type){case"urls":return new T(e,t,r);case"portal-parquet-file":return new I(e,t,r);case"portal-parquet-layer":return new U(e,t,r)}}},47828(e,t,r){r.d(t,{O:()=>n,c:()=>i});var s=r(49186);function i(e){return null!=e&&"object"==typeof e&&"name"in e&&"FileProviderChangedError"===e.name}function n(e=""){return new s.A("FileProviderChangedError",e)}},9075(e,t,r){r.d(t,{A:()=>a});var s=r(5482),i=r(69540),n=r(25482),o=r(91429);let a=class extends((0,i.OU)(n.o)){constructor(e){super(e),this.type="location",this.xField=null,this.yField=null}};(0,s.Cg)([(0,o.MZ)({type:["location"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"xField",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"yField",void 0),a=(0,s.Cg)([(0,o.$K)("esri.layers.support.GeometryEncodingLocation")],a)},34582(e,t,r){r.d(t,{A:()=>a});var s=r(5482),i=r(69540),n=r(25482),o=r(91429);let a=class extends((0,i.OU)(n.o)){constructor(e){super(e),this.type="wkb",this.field=null}};(0,s.Cg)([(0,o.MZ)({type:["wkb"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:["counter-clockwise"],json:{write:!0}})],a.prototype,"orientation",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"field",void 0),a=(0,s.Cg)([(0,o.$K)("esri.layers.support.GeometryEncodingWkb")],a)},56370(e,t,r){r.d(t,{A:()=>d});var s=r(5482),i=r(69540),n=r(7762),o=r(49186),a=r(25482),l=r(91429),c=r(64108),u=r(97159),h=r(43937);let d=class extends((0,a.T)(i.Pw)){constructor(e){super(e),this.type="files",this.urls=new n.A}writeUrls(e,t,r,s){const i=e.toArray().map(e=>(0,u.t)(e,s)).filter(e=>!!e);i.length?t.urls=i:s.messages?.push(new o.A("parquet-layer:missing-urls","Missing or empty 'urls'",{data:this}))}};(0,s.Cg)([(0,l.MZ)({type:["files"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],d.prototype,"type",void 0),(0,s.Cg)([(0,l.MZ)({type:n.A.ofType(String),json:{write:{isRequired:!0}}})],d.prototype,"urls",void 0),(0,s.Cg)([(0,h.K)("urls")],d.prototype,"writeUrls",null),d=(0,s.Cg)([(0,c.$)("esri.layers.support.ParquetFilesData")],d)},54625(e,t,r){r.d(t,{i_:()=>i});var s=r(30524);function i(e,t,r){t=(0,s.rS)(t)?.toLowerCase(),r=(0,s.rS)(r)?.toLowerCase();const i=e.map(e=>e.toLowerCase()),a=t?e[i.indexOf(t)]:null,l=r?e[i.indexOf(r)]:null;return{longitudeFieldName:a||e[i.indexOf(o.find(e=>i.includes(e)))],latitudeFieldName:l||e[i.indexOf(n.find(e=>i.includes(e)))]}}const n=["lat","lat83","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],o=["lon","lng","lng83","long","long83","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"];r.d(t,["A0",0,o,"bD",0,n])},50639(e,t,r){r.d(t,{G:()=>n});var s=r(9075),i=r(34582);function n(e){switch(e.type){case"wkb":return i.A.fromJSON(e);case"location":return s.A.fromJSON(e)}}},42760(e,t,r){r.d(t,{Dt:()=>y,hG:()=>d,nc:()=>p,sA:()=>h}),r(7762);var s=r(49186),i=r(44208),n=r(66552),o=r(16930),a=(r(90951),r(20437)),l=r(30524),c=r(50639);r(56370);const u=new n.J({esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint"});function h(e){return u.toJSON(e)}function d(e){return u.fromJSON(e)}async function p(e,t){if(t.geometryType&&t.spatialReference&&t.geometryEncoding&&t.fields&&t.displayOptimization)return t;if(!e)throw new s.A("parquet:bad-input","No metadata found");const r={...t},n=e.fields.map(e=>a.A.fromJSON(e));if(null==r.fields)r.fields=n;else{const e=new Set(r.fields.map(e=>e.name));if(!(0,i.A)("parquetlayer-legacy-field-overrides-enabled"))for(const t of n)e.has(t.name)||r.fields.push(t)}if(null!=r.geometryEncoding){const e=r.geometryEncoding;switch(e.type){case"wkb":{const t=n.find(t=>t.name===e.field);if(!t)throw new s.A("parquet:unsupported",`Geometry encoding references field ${e.field} which does not exist`);if("blob"!==t.type)throw new s.A("parquet:unsupported",`Invalid field type for geometry encoding. Found ${t.type} but expected 'blob'`);break}case"location":for(const t of[e.xField,e.yField])if(null!=t){const e=n.find(e=>e.name===t);if(!e)throw new s.A("parquet:unsupported",`Geometry encoding references field ${t} which does not exist`);if(!(0,l.WA)(e))throw new s.A("parquet:unsupported",`Invalid field type for location geometry encoding. Found ${e.type} but expected a numeric`)}}}return null==r.geometryEncoding&&(r.geometryEncoding=e.geometryEncoding?(0,c.G)(e.geometryEncoding):null),r.fields=function(e,t){const r=t.geoMetadata;if(null==r)return e;const s=new Set(Object.keys(r.columns));return e.filter(e=>!s.has(e.name))}(r.fields,e),!r.displayOptimization&&e.displayOptimization&&(r.displayOptimization=e.displayOptimization),!r.geometryType&&e.geometryType&&(r.geometryType=d(e.geometryType)),!r.spatialReference&&e.spatialReference&&(r.spatialReference=o.A.fromJSON(e.spatialReference)),r}async function y(e,t){switch(e.type){case"files":return{type:"urls",urls:e.urls.toArray()};case"portal-item":{const r=await e.portalItem.load(t);switch(r.type){case"Apache Parquet":return{type:"portal-parquet-file",itemUrl:r.itemUrl,itemCdnUrl:r.itemCdnUrl,modified:r.modified,size:r.size};case"Parquet layer":case"Parquet Layer":case"Parquet feature layer":case"Parquet Feature Layer":if(!r.url)throw new s.A("parquet:bad-item",`Item of type ${r.type} must have a url defined`,r);return{type:"portal-parquet-layer",itemUrl:r.itemUrl,itemCdnUrl:r.itemCdnUrl,itemMetadata:{modified:r.modified,url:r.url}};default:throw new s.A("parquet:bad-item",`Item of type ${r.type} is not supported`,r)}}}}r.d(t,["ye",0,u])},39412(e,t,r){r.d(t,{N:()=>n});var s=r(2741);let i=null;async function n(){return i||(i=async function(){const e=await r.e(1687).then(r.bind(r,31687));return await e.default({module_or_path:(0,s.s)("esri/libs/parquet/pkg/bundle_bg.wasm")}),e}()),i}},93470(e,t,r){const s=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s};r.d(t,["Cb",0,i,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,s,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,n])}}]);
|