@arcgis/core 5.1.0-next.19 → 5.1.0-next.20
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/components/assets/carousel/t9n/messages.ar.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.bg.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.bs.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.ca.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.cs.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.da.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.de.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.el.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.es.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.et.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.fi.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.fr.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.he.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.hr.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.hu.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.id.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.it.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.ja.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.ko.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.lt.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.lv.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.nl.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.no.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.pl.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.pt-BR.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.pt-PT.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.ro.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.ru.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.sk.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.sl.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.sr.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.sv.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.th.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.tr.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.uk.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.vi.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.zh-CN.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.zh-HK.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0140dc583e20b031eac9.js +1 -0
- package/assets/esri/core/workers/chunks/018859b79f9ce7528ac7.js +1 -0
- package/assets/esri/core/workers/chunks/01dd849a2d335e9f3e16.js +1 -0
- package/assets/esri/core/workers/chunks/{6b3d8280a24f7a3aac40.js → 026c00ee272c64e53daf.js} +1 -1
- package/assets/esri/core/workers/chunks/02cab89336504e95ed99.js +1 -0
- package/assets/esri/core/workers/chunks/06df187a116709f69952.js +1 -0
- package/assets/esri/core/workers/chunks/0711c856144cd8700e7e.js +1 -0
- package/assets/esri/core/workers/chunks/0883c4e63424d6746ada.js +1 -0
- package/assets/esri/core/workers/chunks/0987cb20148f65222b44.js +1 -0
- package/assets/esri/core/workers/chunks/0a1f88cf16bcbb53b371.js +1 -0
- package/assets/esri/core/workers/chunks/0a66a2b4aaab0774c34f.js +1 -0
- package/assets/esri/core/workers/chunks/0bb3beedae1b73beb1fc.js +1 -0
- package/assets/esri/core/workers/chunks/0ca405ca26676137a4be.js +1 -0
- package/assets/esri/core/workers/chunks/0ce968c89c35535da63e.js +1 -0
- package/assets/esri/core/workers/chunks/0d56e3b3265a4470aaa6.js +1 -0
- package/assets/esri/core/workers/chunks/0debabe324c873066885.js +1 -0
- package/assets/esri/core/workers/chunks/0df585420c9cec6a7265.js +1 -0
- package/assets/esri/core/workers/chunks/0facd2c143a04cc7c4ff.js +1 -0
- package/assets/esri/core/workers/chunks/108d652a959e7de31cbf.js +1 -0
- package/assets/esri/core/workers/chunks/13d1cb50232ae761425b.js +2 -0
- package/assets/esri/core/workers/chunks/144c719d5ba9e3a30961.js +1 -0
- package/assets/esri/core/workers/chunks/1482262d0788ee65ddf7.js +1 -0
- package/assets/esri/core/workers/chunks/1503ca177e2466ec0e87.js +1 -0
- package/assets/esri/core/workers/chunks/1597d7b380d510ff5252.js +1 -0
- package/assets/esri/core/workers/chunks/15d7c9f5a55985ed00b4.js +1 -0
- package/assets/esri/core/workers/chunks/166652b7d69bf216d7a4.js +1 -0
- package/assets/esri/core/workers/chunks/179b3385c24ad8a05e1d.js +1 -0
- package/assets/esri/core/workers/chunks/{4f2c29168c9de0b08741.js → 1880c3b293cdfa804625.js} +1 -1
- package/assets/esri/core/workers/chunks/18a40606e4c39f244ecd.js +1 -0
- package/assets/esri/core/workers/chunks/190bc75254bc0542a6be.js +1 -0
- package/assets/esri/core/workers/chunks/1be4e308280149eae4fb.js +1 -0
- package/assets/esri/core/workers/chunks/1bea32b02d35ddb9b118.js +1 -0
- package/assets/esri/core/workers/chunks/1d0153c7d65bd9ea7d39.js +1 -0
- package/assets/esri/core/workers/chunks/1d697642fb2a6332b7f9.js +1 -0
- package/assets/esri/core/workers/chunks/1d78ec98eef7fef08f86.js +1 -0
- package/assets/esri/core/workers/chunks/1df8330823841b5bb6a5.js +1 -0
- package/assets/esri/core/workers/chunks/1e6062dc68c26fcf608f.js +1 -0
- package/assets/esri/core/workers/chunks/1e6271524602e159dbad.js +1 -0
- package/assets/esri/core/workers/chunks/1ee3d44e6d7add0b24cb.js +1 -0
- package/assets/esri/core/workers/chunks/1f54ed4a5238ba1a2551.js +1 -0
- package/assets/esri/core/workers/chunks/1f96d597ba736e088168.js +1 -0
- package/assets/esri/core/workers/chunks/1fa2bf0d6740092ec619.js +1 -0
- package/assets/esri/core/workers/chunks/210ef3f1cc6ef8a831bf.js +1 -0
- package/assets/esri/core/workers/chunks/23c856265dd24ce54fdb.js +1028 -0
- package/assets/esri/core/workers/chunks/241ef4a1bea20b49d812.js +1 -0
- package/assets/esri/core/workers/chunks/25bc7c7bc2793d209640.js +1 -0
- package/assets/esri/core/workers/chunks/2662750d5761ed2d0eb7.js +1 -0
- package/assets/esri/core/workers/chunks/26e41b08efe77d247409.js +1 -0
- package/assets/esri/core/workers/chunks/297b58f29c496923e1f3.js +1 -0
- package/assets/esri/core/workers/chunks/2a2a9fa62969644ea200.js +1 -0
- package/assets/esri/core/workers/chunks/2abb64323839367c9205.js +1 -0
- package/assets/esri/core/workers/chunks/2b296378d21e4e3c11d4.js +1 -0
- package/assets/esri/core/workers/chunks/2b76a8897ad7ba284d33.js +1 -0
- package/assets/esri/core/workers/chunks/2bd8bf6749d101d82d61.js +1 -0
- package/assets/esri/core/workers/chunks/2cbcf34cf896a438999b.js +1 -0
- package/assets/esri/core/workers/chunks/2ddb8bb00b3af83ebd7c.js +1 -0
- package/assets/esri/core/workers/chunks/2de299ff3a902d380be6.js +1 -0
- package/assets/esri/core/workers/chunks/2e06baf6469820697f17.js +1 -0
- package/assets/esri/core/workers/chunks/{531c55f3b8e708ccf767.js → 2f3aeaa25a76ab94b8e5.js} +1 -1
- package/assets/esri/core/workers/chunks/305b2a8dc6438c5fd4aa.js +1 -0
- package/assets/esri/core/workers/chunks/33de1d899a4fa9ab6ab1.js +1 -0
- package/assets/esri/core/workers/chunks/36da644678e6acf3bdb5.js +1 -0
- package/assets/esri/core/workers/chunks/3861644c06cfebe8f40c.js +2 -0
- package/assets/esri/core/workers/chunks/38d5dd4d457428244302.js +1 -0
- package/assets/esri/core/workers/chunks/394b645d51e7bf799382.js +1 -0
- package/assets/esri/core/workers/chunks/3a8320a40916c755c031.js +1 -0
- package/assets/esri/core/workers/chunks/3c2eb386c0165150e039.js +1 -0
- package/assets/esri/core/workers/chunks/3d0aa5f2db79c022243e.js +1 -0
- package/assets/esri/core/workers/chunks/3e26f9af6b8c75bad97a.js +1 -0
- package/assets/esri/core/workers/chunks/3ed7f19f77a11fa4d047.js +1 -0
- package/assets/esri/core/workers/chunks/3f812b0a28afb47aaaf0.js +2 -0
- package/assets/esri/core/workers/chunks/403060849a2573bbf110.js +1 -0
- package/assets/esri/core/workers/chunks/41a95ad470ec42ecd5a2.js +1 -0
- package/assets/esri/core/workers/chunks/43c8b1473695574c663e.js +2 -0
- package/assets/esri/core/workers/chunks/452d71789a1b77cff48d.js +1 -0
- package/assets/esri/core/workers/chunks/465cc0e00f03cdb640b2.js +1 -0
- package/assets/esri/core/workers/chunks/48a56b19bf825f05cc6e.js +1 -0
- package/assets/esri/core/workers/chunks/4d16b6ac52e25bd7e6aa.js +1 -0
- package/assets/esri/core/workers/chunks/4d7f7b1e7663cf6088d1.js +1 -0
- package/assets/esri/core/workers/chunks/50ab9a3f8bbb268fae59.js +1 -0
- package/assets/esri/core/workers/chunks/51ade971dda3ebe90f31.js +1 -0
- package/assets/esri/core/workers/chunks/{cbcb3530375e280bfeac.js → 53f8c1d56ef3b24d2226.js} +1 -1
- package/assets/esri/core/workers/chunks/544bfa97837770a8792f.js +1 -0
- package/assets/esri/core/workers/chunks/{ec63c0fa21cd3c872633.js → 54794b18edc584fd7515.js} +1 -1
- package/assets/esri/core/workers/chunks/561484ab6ed564e4b90f.js +1 -0
- package/assets/esri/core/workers/chunks/5690b49f355a5e2083a9.js +1 -0
- package/assets/esri/core/workers/chunks/56c7d7c7217557375fb6.js +1 -0
- package/assets/esri/core/workers/chunks/592f6bf0283152481f21.js +1 -0
- package/assets/esri/core/workers/chunks/5a6a6e7151085a3cd3dd.js +1 -0
- package/assets/esri/core/workers/chunks/5a6d6082c5bcb1a80eda.js +1 -0
- package/assets/esri/core/workers/chunks/5b2dd164dd84fd1ca4f7.js +1 -0
- package/assets/esri/core/workers/chunks/5b70ee8122262de5bbdf.js +1 -0
- package/assets/esri/core/workers/chunks/5b991b0d4ca257291cb0.js +1 -0
- package/assets/esri/core/workers/chunks/5e3019ba1b4c88977a19.js +1 -0
- package/assets/esri/core/workers/chunks/5e360f933da02d8d2455.js +1 -0
- package/assets/esri/core/workers/chunks/5e4ea6a2784eed1423f1.js +1 -0
- package/assets/esri/core/workers/chunks/5eb9fdb076488de9cd83.js +1 -0
- package/assets/esri/core/workers/chunks/5f6942ac94acd7842926.js +1 -0
- package/assets/esri/core/workers/chunks/601e44839fd46e449aa8.js +1 -0
- package/assets/esri/core/workers/chunks/62c228ca16fdc7a2c695.js +1 -0
- package/assets/esri/core/workers/chunks/639202a461b17840a13f.js +1 -0
- package/assets/esri/core/workers/chunks/63934843c9f4ef779a07.js +1 -0
- package/assets/esri/core/workers/chunks/63b5b57f27c7c6194d44.js +1 -0
- package/assets/esri/core/workers/chunks/{003019c2741aef2d1aa0.js → 65520a443e3811255bea.js} +1 -1
- package/assets/esri/core/workers/chunks/693d269637135047a0c4.js +1 -0
- package/assets/esri/core/workers/chunks/{36215b2c0b1020743458.js → 6a14ec2d2de6778a4e7a.js} +1 -1
- package/assets/esri/core/workers/chunks/6ac84e6d33104e74398d.js +1 -0
- package/assets/esri/core/workers/chunks/6cdda5aa35fa12ea9345.js +1 -0
- package/assets/esri/core/workers/chunks/6d3467997b5d01630b08.js +1 -0
- package/assets/esri/core/workers/chunks/6dfcb0c804e63e87e311.js +1 -0
- package/assets/esri/core/workers/chunks/6f079f1fd6d00d2d174c.js +1 -0
- package/assets/esri/core/workers/chunks/6fde745f3a62e7f5a97d.js +1 -0
- package/assets/esri/core/workers/chunks/70263c2182dc43046742.js +1 -0
- package/assets/esri/core/workers/chunks/72cd450b24fdfcef6547.js +1 -0
- package/assets/esri/core/workers/chunks/7386a61f9610b8e5c608.js +1 -0
- package/assets/esri/core/workers/chunks/73e02f6c7ccc2013c812.js +1 -0
- package/assets/esri/core/workers/chunks/73e384fd93cf22503d84.js +1 -0
- package/assets/esri/core/workers/chunks/74a6d840813ac29b0bda.js +1 -0
- package/assets/esri/core/workers/chunks/{f6aa34577c5fab8cc1f5.js → 74e3c224e879edb37812.js} +1 -1
- package/assets/esri/core/workers/chunks/75664587bb80f4e187e1.js +1 -0
- package/assets/esri/core/workers/chunks/75fd96fd9557ac1f8e10.js +1 -0
- package/assets/esri/core/workers/chunks/7642905920e169a147f3.js +1 -0
- package/assets/esri/core/workers/chunks/764d080f77dec5e7a02c.js +1 -0
- package/assets/esri/core/workers/chunks/777b0e07f72c42470d36.js +1 -0
- package/assets/esri/core/workers/chunks/7873ee080c175d17a444.js +1 -0
- package/assets/esri/core/workers/chunks/7975abb2162a82c88edb.js +1 -0
- package/assets/esri/core/workers/chunks/7a2dd3d85d31dce29d94.js +1 -0
- package/assets/esri/core/workers/chunks/7b297a2f712361bfae2e.js +1 -0
- package/assets/esri/core/workers/chunks/7cec3252e3ee56424b9e.js +1 -0
- package/assets/esri/core/workers/chunks/7d274a077bdfa8c485e8.js +1 -0
- package/assets/esri/core/workers/chunks/7dd1e93469d0b1d652bc.js +1 -0
- package/assets/esri/core/workers/chunks/8012fdc49a7a10982f78.js +1 -0
- package/assets/esri/core/workers/chunks/835a929e37811d0f82cb.js +1 -0
- package/assets/esri/core/workers/chunks/835d6dd8c5a00682d879.js +1 -0
- package/assets/esri/core/workers/chunks/83d913dab3c2b0d6a7cc.js +1 -0
- package/assets/esri/core/workers/chunks/854fe80272b59fafc2e9.js +1 -0
- package/assets/esri/core/workers/chunks/85e0fd618625a639387f.js +1 -0
- package/assets/esri/core/workers/chunks/85f309c1888c1c8411b1.js +1 -0
- package/assets/esri/core/workers/chunks/86161025b53b916328ff.js +1 -0
- package/assets/esri/core/workers/chunks/861817be5e050e9522ab.js +1 -0
- package/assets/esri/core/workers/chunks/86465d4bb185d7460087.js +1 -0
- package/assets/esri/core/workers/chunks/87e7378b242debbfd575.js +1 -0
- package/assets/esri/core/workers/chunks/8838ff9668b472af16a1.js +1 -0
- package/assets/esri/core/workers/chunks/889835e61ea97f090082.js +1 -0
- package/assets/esri/core/workers/chunks/8aabc71d7f15c4407d7d.js +1 -0
- package/assets/esri/core/workers/chunks/8c2e5b116bac21e7d577.js +1 -0
- package/assets/esri/core/workers/chunks/8cf58806671ed491a456.js +1 -0
- package/assets/esri/core/workers/chunks/8d1d0c3f0532aa98487d.js +1 -0
- package/assets/esri/core/workers/chunks/8d6da6573d07385f4ed5.js +1 -0
- package/assets/esri/core/workers/chunks/90b19e60c056f32623e7.js +1 -0
- package/assets/esri/core/workers/chunks/91718795fc4ca6516ac7.js +1 -0
- package/assets/esri/core/workers/chunks/91e56959b2fddf1a9743.js +1 -0
- package/assets/esri/core/workers/chunks/925980d26d71987ac80c.js +1 -0
- package/assets/esri/core/workers/chunks/93515f52d9b5fa12bd04.js +1 -0
- package/assets/esri/core/workers/chunks/9461f7225c42cf15a114.js +1 -0
- package/assets/esri/core/workers/chunks/946698d9cefffdb63082.js +1 -0
- package/assets/esri/core/workers/chunks/978649cb6df99ee728be.js +1 -0
- package/assets/esri/core/workers/chunks/99101789035f1787c630.js +1 -0
- package/assets/esri/core/workers/chunks/9a2b1f0ca66c1b87c830.js +1 -0
- package/assets/esri/core/workers/chunks/9c6e96b1c2b0418a4f1c.js +1 -0
- package/assets/esri/core/workers/chunks/9f1f5fb648302c43ad12.js +1 -0
- package/assets/esri/core/workers/chunks/9f5f4da954228d876219.js +1 -0
- package/assets/esri/core/workers/chunks/a010fc1123bc0eeda478.js +1 -0
- package/assets/esri/core/workers/chunks/a1a12552d34ea9eea130.js +1 -0
- package/assets/esri/core/workers/chunks/a2323c957c8b2fe225b4.js +1 -0
- package/assets/esri/core/workers/chunks/a34e3c6da7d98569c052.js +1 -0
- package/assets/esri/core/workers/chunks/a36a33f43610c3cd985b.js +1 -0
- package/assets/esri/core/workers/chunks/a381932eef77f4d80292.js +1 -0
- package/assets/esri/core/workers/chunks/a495e60996a36ce19a32.js +1 -0
- package/assets/esri/core/workers/chunks/a53fa34681efff8fc024.js +1 -0
- package/assets/esri/core/workers/chunks/a7a9716582b256d76e5b.js +1 -0
- package/assets/esri/core/workers/chunks/a96c7432ca97cbeef4b8.js +1 -0
- package/assets/esri/core/workers/chunks/{ec0fcb1834c88090e7af.js → aa60f735ccd39cedef7e.js} +1 -1
- package/assets/esri/core/workers/chunks/aa9c11f25d95372998a3.js +1 -0
- package/assets/esri/core/workers/chunks/{128cdb4a02549abc68b5.js → aec33bdb355bd04f28ae.js} +1 -1
- package/assets/esri/core/workers/chunks/aece665144aed2065ffc.js +1 -0
- package/assets/esri/core/workers/chunks/af75e91b88e747aa76ac.js +1 -0
- package/assets/esri/core/workers/chunks/b089947c9a492c96ca27.js +1 -0
- package/assets/esri/core/workers/chunks/b35ea099334c867bde02.js +1 -0
- package/assets/esri/core/workers/chunks/b553264db0f10bb8c5f7.js +1 -0
- package/assets/esri/core/workers/chunks/b586f1021a27c5e1551a.js +2 -0
- package/assets/esri/core/workers/chunks/{236f8137ae505c8f0764.js → b65550b2f685ba760b2c.js} +1 -1
- package/assets/esri/core/workers/chunks/b6e4c35b76379088035c.js +1 -0
- package/assets/esri/core/workers/chunks/b730131e52f9220db031.js +1 -0
- package/assets/esri/core/workers/chunks/{9332db133a0925d522fe.js → b8b2f160518e3a225d99.js} +1 -1
- package/assets/esri/core/workers/chunks/bbf2afa05314e267893f.js +1 -0
- package/assets/esri/core/workers/chunks/bc982142e61598bd367c.js +1 -0
- package/assets/esri/core/workers/chunks/bcd701892ee120e13a18.js +1 -0
- package/assets/esri/core/workers/chunks/bd278f8081be8304be8d.js +1 -0
- package/assets/esri/core/workers/chunks/bd2f577cae61facdde4a.js +1 -0
- package/assets/esri/core/workers/chunks/c1a26956713262cb3cb3.js +1 -0
- package/assets/esri/core/workers/chunks/c1dc14b07282474a7c2d.js +1 -0
- package/assets/esri/core/workers/chunks/c327fe276238af60fda4.js +1 -0
- package/assets/esri/core/workers/chunks/c4a78ab84186c7be599a.js +1 -0
- package/assets/esri/core/workers/chunks/c4dc60617152d885f3da.js +1 -0
- package/assets/esri/core/workers/chunks/c6d5f6cfbb31a3fd11ff.js +1 -0
- package/assets/esri/core/workers/chunks/c7f27a84268a9b0d8cdb.js +1 -0
- package/assets/esri/core/workers/chunks/c80c6e60c87c3e5f5e62.js +1 -0
- package/assets/esri/core/workers/chunks/c91993503de5faa404f0.js +1 -0
- package/assets/esri/core/workers/chunks/c9a42d86185a0ad35dd1.js +1 -0
- package/assets/esri/core/workers/chunks/c9d600dc6b6b5aafff1c.js +1 -0
- package/assets/esri/core/workers/chunks/ca33847a997ccfe8ddc2.js +1 -0
- package/assets/esri/core/workers/chunks/ca64867bc322a354be8e.js +1 -0
- package/assets/esri/core/workers/chunks/cb6a7ca4ba2cf0b5ced7.js +1 -0
- package/assets/esri/core/workers/chunks/cc3939983cf6f78f7243.js +1 -0
- package/assets/esri/core/workers/chunks/cca19c9564be2d02a277.js +1 -0
- package/assets/esri/core/workers/chunks/ccc2f2b3db008d8a495f.js +1 -0
- package/assets/esri/core/workers/chunks/cce2ea441adb47d15a06.js +1 -0
- package/assets/esri/core/workers/chunks/ce063df750018024c9ed.js +1 -0
- package/assets/esri/core/workers/chunks/ce3e192fbb53a9c6eb3b.js +1 -0
- package/assets/esri/core/workers/chunks/d3734c8de029f1a65315.js +1 -0
- package/assets/esri/core/workers/chunks/d7229019876c0e4ff545.js +1 -0
- package/assets/esri/core/workers/chunks/d72d5031887373d35610.js +1 -0
- package/assets/esri/core/workers/chunks/d7840c3e792efcccee35.js +1 -0
- package/assets/esri/core/workers/chunks/d9f900975ac915a0f24f.js +1 -0
- package/assets/esri/core/workers/chunks/da780342f16e65b55ac8.js +1 -0
- package/assets/esri/core/workers/chunks/db005d9419bb718b3962.js +1 -0
- package/assets/esri/core/workers/chunks/db5bbc240a1b8cd5af52.js +1 -0
- package/assets/esri/core/workers/chunks/dcc8363faa22e6211351.js +1 -0
- package/assets/esri/core/workers/chunks/dcef87f7d06c45cd928b.js +1 -0
- package/assets/esri/core/workers/chunks/dd5d66f067e2386e0514.js +1 -0
- package/assets/esri/core/workers/chunks/dd6efa0afe879bd11a2e.js +1 -0
- package/assets/esri/core/workers/chunks/deaca3cd202851ecf9c2.js +1 -0
- package/assets/esri/core/workers/chunks/df321c37b61099f6e4c2.js +1 -0
- package/assets/esri/core/workers/chunks/e021b2f0e15aee5bf3ad.js +1 -0
- package/assets/esri/core/workers/chunks/e0344b45af88081fa186.js +1 -0
- package/assets/esri/core/workers/chunks/{77fc225259f1c5800095.js → e2661d39c48376163adf.js} +1 -1
- package/assets/esri/core/workers/chunks/e2bdb0e87422e222646e.js +1 -0
- package/assets/esri/core/workers/chunks/e3fe1db9380633292b27.js +1 -0
- package/assets/esri/core/workers/chunks/e67bdd8bf38ebe89a344.js +1 -0
- package/assets/esri/core/workers/chunks/e6f51f66b71e0d6525ec.js +1 -0
- package/assets/esri/core/workers/chunks/e7bee85f28d7ec03825a.js +1 -0
- package/assets/esri/core/workers/chunks/e8495c655a0a4f534636.js +1 -0
- package/assets/esri/core/workers/chunks/e9dd60d0220036545ebb.js +1 -0
- package/assets/esri/core/workers/chunks/ea245d3a6fd601fffd88.js +1 -0
- package/assets/esri/core/workers/chunks/eb4ffb72c9360062141c.js +1 -0
- package/assets/esri/core/workers/chunks/ebae903845643d60b44a.js +1 -0
- package/assets/esri/core/workers/chunks/ebb0372e8da0f75c09dd.js +1 -0
- package/assets/esri/core/workers/chunks/eef102e13fd8878eeb96.js +1 -0
- package/assets/esri/core/workers/chunks/ef267b938327c41727c1.js +1 -0
- package/assets/esri/core/workers/chunks/ef72f4822284bcad75d8.js +1 -0
- package/assets/esri/core/workers/chunks/efb2a8879011d2d77a81.js +1 -0
- package/assets/esri/core/workers/chunks/f0e6a26a3625068b08ab.js +1 -0
- package/assets/esri/core/workers/chunks/f12f96770a45ce6d1ed7.js +1 -0
- package/assets/esri/core/workers/chunks/f349f64f683620bdf9b5.js +30 -0
- package/assets/esri/core/workers/chunks/f379f94adbe79dc305a2.js +1 -0
- package/assets/esri/core/workers/chunks/f4301ea9a6cb3bcef906.js +1 -0
- package/assets/esri/core/workers/chunks/f5144e570952ca62a1b0.js +1 -0
- package/assets/esri/core/workers/chunks/f5cebeaad3e7d87d7997.js +1 -0
- package/assets/esri/core/workers/chunks/f6c9742691ccdaed44a2.js +1 -0
- package/assets/esri/core/workers/chunks/f76c2b09e6ba9d107898.js +1 -0
- package/assets/esri/core/workers/chunks/f7d67b7c9785a1955b17.js +1 -0
- package/assets/esri/core/workers/chunks/faad127dc07e54e7f6d1.js +1 -0
- package/assets/esri/core/workers/chunks/fcf962f3dec6b5440983.js +1 -0
- package/assets/esri/core/workers/chunks/feececf6809231f72c5a.js +1 -0
- package/chunks/Compositing.glsl.js +3 -4
- package/chunks/OITBlend.glsl.js +8 -7
- package/config.d.ts +94 -34
- package/config.js +1 -1
- package/core/SetUtils.js +1 -1
- package/geometry/support/curves/curveUtils.js +1 -1
- package/identity/IdentityManager.d.ts +11 -7
- package/identity/IdentityManagerBase.d.ts +13 -9
- package/kernel.js +1 -1
- package/layers/SubtypeGroupLayer.d.ts +0 -1
- package/layers/support/EditingCapabilities.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/package.json +4 -4
- package/rest/query/operations/pbfFlatFeatureSet.js +1 -1
- package/smartMapping/raster/renderers/classBreaks.d.ts +1 -1
- package/smartMapping/raster/renderers/flow.d.ts +2 -1
- package/smartMapping/renderers/color.d.ts +19 -3
- package/smartMapping/renderers/dotDensity.d.ts +6 -1
- package/smartMapping/renderers/heatmap.d.ts +4 -1
- package/smartMapping/renderers/location.d.ts +2 -2
- package/smartMapping/renderers/opacity.d.ts +2 -2
- package/smartMapping/renderers/pieChart.d.ts +2 -2
- package/smartMapping/renderers/predominance.d.ts +2 -2
- package/smartMapping/renderers/relationship.d.ts +2 -2
- package/smartMapping/renderers/size.d.ts +7 -6
- package/smartMapping/renderers/support/rendererUtils.d.ts +2 -2
- package/smartMapping/renderers/type.d.ts +4 -3
- package/smartMapping/renderers/univariateColorSize.d.ts +2 -2
- package/smartMapping/statistics/support/ageUtils.d.ts +3 -2
- package/smartMapping/statistics/types.d.ts +8 -7
- package/smartMapping/support/adapters/types.d.ts +6 -0
- package/smartMapping/symbology/color.d.ts +1 -1
- package/smartMapping/symbology/support/colorRamps.d.ts +2 -2
- package/smartMapping/symbology/support/colorRamps.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/OccludedVisibility.d.ts +1 -1
- package/symbols/support/OccludedVisibility.js +1 -1
- package/symbols/support/Symbol3DEmissive.d.ts +33 -17
- package/views/2d/engine/webgl/MaterialManager.js +1 -1
- package/views/2d/engine/webgl/brushes/BrushClip.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLBrushStencil.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/interactive/SnappingVisualizer2D.js +1 -1
- package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
- package/views/2d/webglDeps.js +1 -1
- package/views/3d/environment/CloudsComposition.js +1 -1
- package/views/3d/environment/CloudsTechnique.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/environment/FogTechnique.js +1 -1
- package/views/3d/environment/NoiseTextureAtlasTechnique.js +1 -1
- package/views/3d/environment/PrecipitationTechnique.js +1 -1
- package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/GraphicStateTracking.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
- package/views/3d/terrain/BlendLayersTechnique.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
- package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowCompositionTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
- package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightApplyTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightBlurTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightDownsampleTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightToSingleTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlightTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAABlendWeightsTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAABlurTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAAEdgeDetectTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAOBlurTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlendTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITDimTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/Compositor.js +2 -0
- package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
- package/views/3d/webgl-engine/lib/Program.js +1 -1
- 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/materials/renderers/MergedBuffer.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/PerBufferData.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/CompositingTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/CutFillCompositionTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/CutFillDepthTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/CutFillMaskTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/OverlayCompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
- package/views/View.d.ts +8 -0
- package/views/draw/DrawTool.js +1 -1
- package/views/draw/plugins/PolygonPlugin.js +1 -1
- package/views/draw/support/InteractiveHandle.js +1 -1
- package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
- package/views/draw/support/managers/TooltipManager.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/interactive/snapping/SnappingVisualizer.js +1 -1
- package/views/interactive/snapping/candidates/EdgeSnappingCandidate.js +1 -1
- package/views/interactive/snapping/featureSources/queryEngineUtils.js +1 -1
- package/views/interactive/snapping/hints/CurveSnappingHint.js +2 -0
- package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
- package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
- package/views/support/imageReprojection.js +1 -1
- package/views/webgl/AllocationTracer.js +1 -1
- package/views/webgl/AppleAmdDriverHelper.js +1 -1
- package/views/webgl/Program.js +1 -1
- package/views/webgl/ProgramCache.js +1 -1
- package/views/webgl/ProgramTemplate.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/WebGLDriverTestModule.js +1 -1
- package/views/webgl/testAppleAmdDrawArrays.js +1 -1
- package/views/webgl/testFloatBufferBlend.js +1 -1
- package/views/webgl/testSVGPremultipliedAlpha.js +1 -1
- package/webscene/Glow.d.ts +19 -14
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/EditorViewModel.d.ts +15 -4
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflowData.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflowData.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/Workflow.js +1 -1
- package/widgets/Editor/components/Notices.js +1 -1
- package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
- package/widgets/Editor/support/EditorItem.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.d.ts +17 -5
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +17 -5
- package/widgets/FeatureTable.d.ts +16 -4
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +9 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.d.ts +9 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Sketch/support/PluginManager.js +1 -1
- package/assets/esri/core/workers/chunks/00bb90a3f0560800279b.js +0 -1
- package/assets/esri/core/workers/chunks/02d862fe58670c1f4722.js +0 -1
- package/assets/esri/core/workers/chunks/033b4f9ca08791e0c001.js +0 -1
- package/assets/esri/core/workers/chunks/045e4e520d6dffe06ba7.js +0 -1
- package/assets/esri/core/workers/chunks/04f82b740325e3388d23.js +0 -1
- package/assets/esri/core/workers/chunks/05d6cd51ca970705e46a.js +0 -1
- package/assets/esri/core/workers/chunks/08d73543c713984f6ecf.js +0 -1028
- package/assets/esri/core/workers/chunks/0b59e5be22139387bd84.js +0 -1
- package/assets/esri/core/workers/chunks/0e1d559d05229ef92e35.js +0 -1
- package/assets/esri/core/workers/chunks/0e6ffb02a929130ddb50.js +0 -1
- package/assets/esri/core/workers/chunks/112227b862b935123ddf.js +0 -2
- package/assets/esri/core/workers/chunks/11882cbb28710e5f9fc5.js +0 -1
- package/assets/esri/core/workers/chunks/12cfe900ce04af22f162.js +0 -1
- package/assets/esri/core/workers/chunks/1336f685bae5f1251558.js +0 -1
- package/assets/esri/core/workers/chunks/13512a23655258fa77f4.js +0 -1
- package/assets/esri/core/workers/chunks/13da9e3b96d8f653cbad.js +0 -1
- package/assets/esri/core/workers/chunks/1469e6d1d0d4e310b8f8.js +0 -1
- package/assets/esri/core/workers/chunks/15d46482ec096e3ce161.js +0 -1
- package/assets/esri/core/workers/chunks/1757133063fac226fdd4.js +0 -1
- package/assets/esri/core/workers/chunks/1794db88a2006711eff3.js +0 -1
- package/assets/esri/core/workers/chunks/189e22df73414a1a3989.js +0 -1
- package/assets/esri/core/workers/chunks/1951ff6789b9a598f122.js +0 -1
- package/assets/esri/core/workers/chunks/1ba756289468064f6204.js +0 -1
- package/assets/esri/core/workers/chunks/1cfa8d404d42b9eccf78.js +0 -1
- package/assets/esri/core/workers/chunks/1e916e552ce7d53692d2.js +0 -1
- package/assets/esri/core/workers/chunks/1fb6b65d8fd21fb9a21e.js +0 -1
- package/assets/esri/core/workers/chunks/2011da6dfc4bb89829c6.js +0 -1
- package/assets/esri/core/workers/chunks/203ef5459fc5dde12851.js +0 -1
- package/assets/esri/core/workers/chunks/215c54520d0da638fe57.js +0 -1
- package/assets/esri/core/workers/chunks/22045f85e503ae0ec8f4.js +0 -1
- package/assets/esri/core/workers/chunks/2351b713ba3d05de0728.js +0 -1
- package/assets/esri/core/workers/chunks/249630af2fb01257eb75.js +0 -1
- package/assets/esri/core/workers/chunks/24dd404612c35f6a3fc3.js +0 -1
- package/assets/esri/core/workers/chunks/25d34552bfb255af9467.js +0 -1
- package/assets/esri/core/workers/chunks/27c34a73fb380fc57f6e.js +0 -1
- package/assets/esri/core/workers/chunks/27d60fd727e9a68973f6.js +0 -1
- package/assets/esri/core/workers/chunks/27e14277128446e76b45.js +0 -1
- package/assets/esri/core/workers/chunks/2a3e82a230b7ee4dfd55.js +0 -1
- package/assets/esri/core/workers/chunks/2c69d8bb1c950b95278d.js +0 -1
- package/assets/esri/core/workers/chunks/2c6dbb9a8d7cc35f5093.js +0 -1
- package/assets/esri/core/workers/chunks/2d376f82cdf020e1fca9.js +0 -1
- package/assets/esri/core/workers/chunks/2d67ab4927a968d5c8d4.js +0 -1
- package/assets/esri/core/workers/chunks/2e50b7651f8c037bb3b0.js +0 -1
- package/assets/esri/core/workers/chunks/2e63e18df96e5a2461de.js +0 -1
- package/assets/esri/core/workers/chunks/2e82e284bbb3ff769a0b.js +0 -1
- package/assets/esri/core/workers/chunks/31184dc458281af654c7.js +0 -1
- package/assets/esri/core/workers/chunks/3214763f268622f09986.js +0 -1
- package/assets/esri/core/workers/chunks/32a1ccc145c9f6091e13.js +0 -1
- package/assets/esri/core/workers/chunks/34691b147318b2cfdd45.js +0 -1
- package/assets/esri/core/workers/chunks/34b367f617a7b3db55e0.js +0 -1
- package/assets/esri/core/workers/chunks/37d4a0b941bb2a7f113a.js +0 -1
- package/assets/esri/core/workers/chunks/3875b075ffaa1ed0089f.js +0 -1
- package/assets/esri/core/workers/chunks/3d3b1ce112be6ea31d93.js +0 -1
- package/assets/esri/core/workers/chunks/3dfc088a2c5289e6c79f.js +0 -1
- package/assets/esri/core/workers/chunks/3f3c63420644f9522ab1.js +0 -1
- package/assets/esri/core/workers/chunks/3fcab49eb215a477d8c4.js +0 -1
- package/assets/esri/core/workers/chunks/41108f58f0f439ebba3f.js +0 -1
- package/assets/esri/core/workers/chunks/415957a42e45eb21aa84.js +0 -1
- package/assets/esri/core/workers/chunks/4375d046b041a770c871.js +0 -1
- package/assets/esri/core/workers/chunks/43c797bfc2191b51875b.js +0 -1
- package/assets/esri/core/workers/chunks/460a82f3e4838b13e3b4.js +0 -1
- package/assets/esri/core/workers/chunks/473e43a74f56cb9bfe65.js +0 -1
- package/assets/esri/core/workers/chunks/4801e48cd4a14bacab78.js +0 -1
- package/assets/esri/core/workers/chunks/499d594dc0d282dfe777.js +0 -1
- package/assets/esri/core/workers/chunks/4ad6f80488aa218b95e3.js +0 -1
- package/assets/esri/core/workers/chunks/4db259316b193fcc4541.js +0 -1
- package/assets/esri/core/workers/chunks/4e9863a11d09900baf30.js +0 -1
- package/assets/esri/core/workers/chunks/4fe210314813ea1f7a26.js +0 -1
- package/assets/esri/core/workers/chunks/51603e99469847aa3ac4.js +0 -1
- package/assets/esri/core/workers/chunks/52705ccbb452a3edb064.js +0 -1
- package/assets/esri/core/workers/chunks/53e348f5585fa8c53fe8.js +0 -2
- package/assets/esri/core/workers/chunks/54c545f44b7ce21fb604.js +0 -1
- package/assets/esri/core/workers/chunks/54db2d2418721e92fbb0.js +0 -1
- package/assets/esri/core/workers/chunks/552e5c413828e181f89a.js +0 -1
- package/assets/esri/core/workers/chunks/558e9fed2e58cbbf9947.js +0 -1
- package/assets/esri/core/workers/chunks/55c5c4fcec0f8c4d59b2.js +0 -1
- package/assets/esri/core/workers/chunks/58134617fb7530836b81.js +0 -1
- package/assets/esri/core/workers/chunks/58c4be467a922fe37f01.js +0 -1
- package/assets/esri/core/workers/chunks/5924fe7de9f5ff8984ad.js +0 -1
- package/assets/esri/core/workers/chunks/5cd39bb8123adc80d8a7.js +0 -1
- package/assets/esri/core/workers/chunks/5cd8bbb719d95cb32cab.js +0 -1
- package/assets/esri/core/workers/chunks/5dba08099036e69e0a04.js +0 -1
- package/assets/esri/core/workers/chunks/5eb5d3b2329ec648cf3f.js +0 -1
- package/assets/esri/core/workers/chunks/5f10f39835cb40179000.js +0 -1
- package/assets/esri/core/workers/chunks/5f9eeab833a6c08c76c4.js +0 -1
- package/assets/esri/core/workers/chunks/606b4f1be91905a10bdb.js +0 -1
- package/assets/esri/core/workers/chunks/628056a312d919e98fa3.js +0 -1
- package/assets/esri/core/workers/chunks/62e9a9821f1563515ab4.js +0 -1
- package/assets/esri/core/workers/chunks/639302042c30e4265694.js +0 -1
- package/assets/esri/core/workers/chunks/645e086291b04bc036d7.js +0 -1
- package/assets/esri/core/workers/chunks/651b46aeabf22ff53a38.js +0 -1
- package/assets/esri/core/workers/chunks/65ad8838911a6d71816b.js +0 -1
- package/assets/esri/core/workers/chunks/65f86594c42ff82095fe.js +0 -1
- package/assets/esri/core/workers/chunks/6772468d1721d6d2a529.js +0 -1
- package/assets/esri/core/workers/chunks/677f5e444ff588ab670f.js +0 -1
- package/assets/esri/core/workers/chunks/6869f975d42b5a2936e2.js +0 -1
- package/assets/esri/core/workers/chunks/69ab42b965bccc3bad4f.js +0 -1
- package/assets/esri/core/workers/chunks/6a083fde0e207625fd0b.js +0 -1
- package/assets/esri/core/workers/chunks/6a9a96aa811c1d3b6edb.js +0 -1
- package/assets/esri/core/workers/chunks/6b3494e5a32912ee6325.js +0 -1
- package/assets/esri/core/workers/chunks/6b5d2cef309a2581d0d1.js +0 -1
- package/assets/esri/core/workers/chunks/6bf7d8de86b9eb76f920.js +0 -1
- package/assets/esri/core/workers/chunks/6c0b7890c8eec7febe28.js +0 -1
- package/assets/esri/core/workers/chunks/6c85396c90941a042c33.js +0 -1
- package/assets/esri/core/workers/chunks/6d02fdcaa1559b741f89.js +0 -1
- package/assets/esri/core/workers/chunks/6f337c3ccd84d90a35e5.js +0 -1
- package/assets/esri/core/workers/chunks/71159f66d9867aaea6cf.js +0 -1
- package/assets/esri/core/workers/chunks/711bec78dc00fad0f78d.js +0 -1
- package/assets/esri/core/workers/chunks/71ad08a5b69cf2e6714e.js +0 -1
- package/assets/esri/core/workers/chunks/7382c9882525101eddad.js +0 -1
- package/assets/esri/core/workers/chunks/750dfcbfcadf0629daf6.js +0 -1
- package/assets/esri/core/workers/chunks/75907e5d009b71ce723b.js +0 -1
- package/assets/esri/core/workers/chunks/79c69ae86a1f4a56f7c7.js +0 -1
- package/assets/esri/core/workers/chunks/79ee97609f72e4cf989c.js +0 -1
- package/assets/esri/core/workers/chunks/7a037fbfd91dd22e3bf0.js +0 -1
- package/assets/esri/core/workers/chunks/7cf8fc491877d59caf3a.js +0 -1
- package/assets/esri/core/workers/chunks/7d2b1e5402a88b6bee85.js +0 -1
- package/assets/esri/core/workers/chunks/7ec83fc059325e207825.js +0 -1
- package/assets/esri/core/workers/chunks/7ee7529fcbd0d169047c.js +0 -1
- package/assets/esri/core/workers/chunks/7f385e9c88df3395e678.js +0 -1
- package/assets/esri/core/workers/chunks/80d51d58db09b9f96cb5.js +0 -1
- package/assets/esri/core/workers/chunks/81a45d7e9dadf678b584.js +0 -1
- package/assets/esri/core/workers/chunks/81c758bdc07ed9d9a132.js +0 -1
- package/assets/esri/core/workers/chunks/822a115c7d718e4e3d2b.js +0 -1
- package/assets/esri/core/workers/chunks/825ffcde4f224006e776.js +0 -1
- package/assets/esri/core/workers/chunks/83711695e16912e9b9c5.js +0 -1
- package/assets/esri/core/workers/chunks/8374658d17f69bde6b08.js +0 -1
- package/assets/esri/core/workers/chunks/84b6ac0965d83704ba5d.js +0 -1
- package/assets/esri/core/workers/chunks/88a02b3a802d484c08a8.js +0 -1
- package/assets/esri/core/workers/chunks/89cd0e3420ab31e98a77.js +0 -1
- package/assets/esri/core/workers/chunks/8c3bf66f8543cedc72ef.js +0 -1
- package/assets/esri/core/workers/chunks/8cade3af17a8bb6d4e37.js +0 -1
- package/assets/esri/core/workers/chunks/8eea620f770576d18809.js +0 -1
- package/assets/esri/core/workers/chunks/9138503cc61989b00444.js +0 -1
- package/assets/esri/core/workers/chunks/920d6330df72e2f01d19.js +0 -1
- package/assets/esri/core/workers/chunks/936974764f433eb928a8.js +0 -1
- package/assets/esri/core/workers/chunks/99c9f35a29f9f6c9e4ce.js +0 -1
- package/assets/esri/core/workers/chunks/9a52bb5949ca836b7e79.js +0 -1
- package/assets/esri/core/workers/chunks/9a5327d3c3658e60564d.js +0 -1
- package/assets/esri/core/workers/chunks/9dc7abca1d1eb9ba5b58.js +0 -1
- package/assets/esri/core/workers/chunks/9e054c264b17f04b7efa.js +0 -1
- package/assets/esri/core/workers/chunks/a143a6f8e2f21548b244.js +0 -1
- package/assets/esri/core/workers/chunks/a33a3c9bbe6bc7273285.js +0 -1
- package/assets/esri/core/workers/chunks/a48a6232fa33084cb686.js +0 -1
- package/assets/esri/core/workers/chunks/a4947d5d2fa6b7bd399b.js +0 -1
- package/assets/esri/core/workers/chunks/a49f1172b17c14527acf.js +0 -1
- package/assets/esri/core/workers/chunks/a7d4d257f49f3b153c26.js +0 -1
- package/assets/esri/core/workers/chunks/aaf3ed508d30ed583915.js +0 -1
- package/assets/esri/core/workers/chunks/aceec85ce64a3e6d8761.js +0 -1
- package/assets/esri/core/workers/chunks/b10b3eb8c2ed9be14ab2.js +0 -1
- package/assets/esri/core/workers/chunks/b220fedcb8a2d6450408.js +0 -1
- package/assets/esri/core/workers/chunks/b315b3771d0d19681aa5.js +0 -1
- package/assets/esri/core/workers/chunks/b397a9f87082705301a4.js +0 -2
- package/assets/esri/core/workers/chunks/b40e4ed067da65c3d7ce.js +0 -1
- package/assets/esri/core/workers/chunks/b4b16914950792c46bd3.js +0 -1
- package/assets/esri/core/workers/chunks/b5f291e8ed7f7cac158d.js +0 -1
- package/assets/esri/core/workers/chunks/b6969a42602517a6ef1c.js +0 -1
- package/assets/esri/core/workers/chunks/b732ad893d352db79ee1.js +0 -1
- package/assets/esri/core/workers/chunks/b9226dd0342cfd30ece0.js +0 -1
- package/assets/esri/core/workers/chunks/baad696d84ab78b3d00e.js +0 -2
- package/assets/esri/core/workers/chunks/bab1c3f48d089d71e983.js +0 -30
- package/assets/esri/core/workers/chunks/bab6dee8f4715d05d984.js +0 -1
- package/assets/esri/core/workers/chunks/bc2dcbdc414d157ab727.js +0 -1
- package/assets/esri/core/workers/chunks/bcb254cb7297fec88679.js +0 -1
- package/assets/esri/core/workers/chunks/bd2125e0a68378533641.js +0 -1
- package/assets/esri/core/workers/chunks/bdb4f216ae8881b98604.js +0 -1
- package/assets/esri/core/workers/chunks/bde2c3199f667b63dbe8.js +0 -1
- package/assets/esri/core/workers/chunks/be52d98da81b413388b3.js +0 -1
- package/assets/esri/core/workers/chunks/bf42b5c77f5757dc9328.js +0 -1
- package/assets/esri/core/workers/chunks/bf595eb10f99b8a96baa.js +0 -1
- package/assets/esri/core/workers/chunks/c0b6706f86665cec85f8.js +0 -1
- package/assets/esri/core/workers/chunks/c2ef5e5a3a4fad7f65db.js +0 -1
- package/assets/esri/core/workers/chunks/c3c6d337ff53e5d921e8.js +0 -1
- package/assets/esri/core/workers/chunks/c461c19e4fdbdd2e94d4.js +0 -1
- package/assets/esri/core/workers/chunks/c5fa5645f3a10dfdd7fb.js +0 -1
- package/assets/esri/core/workers/chunks/c66aa57b6360963bd938.js +0 -1
- package/assets/esri/core/workers/chunks/c873ac660e7d5dc88781.js +0 -1
- package/assets/esri/core/workers/chunks/c99f36159b5ed6f9267e.js +0 -1
- package/assets/esri/core/workers/chunks/c9a57f6d0d35b968ebea.js +0 -1
- package/assets/esri/core/workers/chunks/ca6a65f149e7f34dab9c.js +0 -1
- package/assets/esri/core/workers/chunks/cb5f4820277f3fc7ff2f.js +0 -1
- package/assets/esri/core/workers/chunks/cf4202ad468501ef24cf.js +0 -1
- package/assets/esri/core/workers/chunks/d03d50f3247327257d8b.js +0 -1
- package/assets/esri/core/workers/chunks/d1bfb6a229a58e2af761.js +0 -1
- package/assets/esri/core/workers/chunks/d2017b0b27b9e4ada922.js +0 -1
- package/assets/esri/core/workers/chunks/d2d9c1f32a75befe168b.js +0 -1
- package/assets/esri/core/workers/chunks/d309172ad61de2b3c15d.js +0 -1
- package/assets/esri/core/workers/chunks/d3416e6da0c1cbb53b3a.js +0 -1
- package/assets/esri/core/workers/chunks/d39f5d57f7e35c00ca16.js +0 -1
- package/assets/esri/core/workers/chunks/d4422e6e1f09d8c9352e.js +0 -1
- package/assets/esri/core/workers/chunks/d4770dddfbfdc3845749.js +0 -1
- package/assets/esri/core/workers/chunks/d5b4487a983921572e58.js +0 -1
- package/assets/esri/core/workers/chunks/d5f06cb4797629648997.js +0 -1
- package/assets/esri/core/workers/chunks/d78b2f85ec9212a973e8.js +0 -1
- package/assets/esri/core/workers/chunks/d7f89a3372730dacc04c.js +0 -1
- package/assets/esri/core/workers/chunks/d9dc8d9fc8ab2706f96b.js +0 -1
- package/assets/esri/core/workers/chunks/da42da04a9df651b06cc.js +0 -1
- package/assets/esri/core/workers/chunks/dc7860179a2d1fd05ac2.js +0 -1
- package/assets/esri/core/workers/chunks/dc7df2072c0ebed5602c.js +0 -1
- package/assets/esri/core/workers/chunks/dc96f2f6e0e02e47476f.js +0 -1
- package/assets/esri/core/workers/chunks/dd24cddc406f610d2483.js +0 -1
- package/assets/esri/core/workers/chunks/dd3789e71270a4640551.js +0 -1
- package/assets/esri/core/workers/chunks/dd6d4a0f1f3215ca34a5.js +0 -1
- package/assets/esri/core/workers/chunks/de6438fdbe38d32c4ad5.js +0 -1
- package/assets/esri/core/workers/chunks/ded71a656e2626a411f9.js +0 -1
- package/assets/esri/core/workers/chunks/df1fa0f7e8f7e2bcc2e6.js +0 -1
- package/assets/esri/core/workers/chunks/df80d5345765b769416f.js +0 -1
- package/assets/esri/core/workers/chunks/e16d542648bae86e890f.js +0 -1
- package/assets/esri/core/workers/chunks/e1827e86226bf9a0f4ea.js +0 -1
- package/assets/esri/core/workers/chunks/e2e03622936d2b35afc0.js +0 -1
- package/assets/esri/core/workers/chunks/e33f5780fb45ac7ca889.js +0 -1
- package/assets/esri/core/workers/chunks/e3ee2b699c42fd113b46.js +0 -1
- package/assets/esri/core/workers/chunks/e4611ebd7dba7692a914.js +0 -1
- package/assets/esri/core/workers/chunks/e508f8e707eb3207cfcc.js +0 -1
- package/assets/esri/core/workers/chunks/e52793690dff1a199647.js +0 -1
- package/assets/esri/core/workers/chunks/e55859fce1908c24423a.js +0 -1
- package/assets/esri/core/workers/chunks/e56a10a475ce128b5fce.js +0 -1
- package/assets/esri/core/workers/chunks/e93df239fc54af2bd6ba.js +0 -1
- package/assets/esri/core/workers/chunks/ea633a6a3b9ea8ce965d.js +0 -1
- package/assets/esri/core/workers/chunks/eae1c098c16e2faaf90d.js +0 -1
- package/assets/esri/core/workers/chunks/eaf5d55060ffc55aac39.js +0 -1
- package/assets/esri/core/workers/chunks/ece363681bb09072f379.js +0 -1
- package/assets/esri/core/workers/chunks/edaae0fc63d16b0f675d.js +0 -2
- package/assets/esri/core/workers/chunks/ee31d9f44e028df16bd5.js +0 -1
- package/assets/esri/core/workers/chunks/ee89564d11c077169b31.js +0 -1
- package/assets/esri/core/workers/chunks/ee905e24320241959965.js +0 -1
- package/assets/esri/core/workers/chunks/eebf59ac2dd60b9fb262.js +0 -1
- package/assets/esri/core/workers/chunks/ef4237dc7b67c9039826.js +0 -1
- package/assets/esri/core/workers/chunks/ef9106ee818ec732b670.js +0 -1
- package/assets/esri/core/workers/chunks/f0780abe66118b3a0bf2.js +0 -1
- package/assets/esri/core/workers/chunks/f121a0bf33c03abfa0b6.js +0 -1
- package/assets/esri/core/workers/chunks/f4329e3e4e072fac8dc0.js +0 -1
- package/assets/esri/core/workers/chunks/f5dbffd5e8b3c16336a1.js +0 -1
- package/assets/esri/core/workers/chunks/f62e37863a549f72093c.js +0 -1
- package/assets/esri/core/workers/chunks/f984248e2ce417e49f2f.js +0 -1
- package/assets/esri/core/workers/chunks/fab7e3e07d700d7bb651.js +0 -1
- package/assets/esri/core/workers/chunks/fcc8d0b60f7c2397e550.js +0 -1
- package/assets/esri/core/workers/chunks/fcf592dc8c017a08fee0.js +0 -1
- package/assets/esri/core/workers/chunks/fcf6a47f44c917490deb.js +0 -1
- package/assets/esri/core/workers/chunks/fe3c8a6fc080fdf2ad94.js +0 -1
- package/assets/esri/core/workers/chunks/fe5aec7e2da4465422b4.js +0 -1
- package/assets/esri/core/workers/chunks/fefc94944f07c768ad66.js +0 -1
- package/views/3d/webgl-engine/lib/CompositingHelper.js +0 -2
- /package/assets/esri/core/workers/chunks/{53e348f5585fa8c53fe8.js.LICENSE.txt → 13d1cb50232ae761425b.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{b397a9f87082705301a4.js.LICENSE.txt → 3861644c06cfebe8f40c.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{112227b862b935123ddf.js.LICENSE.txt → 3f812b0a28afb47aaaf0.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{edaae0fc63d16b0f675d.js.LICENSE.txt → 43c8b1473695574c663e.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{baad696d84ab78b3d00e.js.LICENSE.txt → b586f1021a27c5e1551a.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2343],{2343(r,e,t){t.d(e,{l:()=>d});var n,o,a,i,s=t(11053),u={exports:{}},l=(n||(n=1,o=u,a="undefined"!=typeof document?document.currentScript?.src:void 0,i=async function(r={}){var e,t=r,n="./this.program",o="";try{o=new URL(".",a).href}catch{}e=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)};var i,s,u,l,d,c,f,m,h,p,v,w,y,g,E=console.log.bind(console),k=console.error.bind(console),_=!1,b=!1;function A(){var r=l.buffer;d=new Int8Array(r),f=new Int16Array(r),t.HEAPU8=c=new Uint8Array(r),m=new Uint16Array(r),h=new Int32Array(r),t.HEAPU32=p=new Uint32Array(r),v=new Float32Array(r),t.HEAPF64=w=new Float64Array(r),y=new BigInt64Array(r),g=new BigUint64Array(r)}var F,P=0,D=null;function S(r){P++,t.monitorRunDependencies?.(P)}function T(r){if(P--,t.monitorRunDependencies?.(P),0==P&&D){var e=D;D=null,e()}}function C(r){t.onAbort?.(r),k(r="Aborted("+r+")"),_=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw u?.(e),e}async function x(r){if(!i)try{var t=await e(r);return new Uint8Array(t)}catch{}return function(r){if(r==F&&i)return new Uint8Array(i);throw"both async and sync fetching of the wasm failed"}(r)}class M{name="ExitStatus";constructor(r){this.message=`Program terminated with exit(${r})`,this.status=r}}var N=r=>{for(;r.length>0;)r.shift()(t)},R=[],O=r=>R.push(r),j=[],B=r=>j.push(r),W=!0,z=r=>Hr(r),$=()=>qr();class I{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){p[this.ptr+4>>2]=r}get_type(){return p[this.ptr+4>>2]}set_destructor(r){p[this.ptr+8>>2]=r}get_destructor(){return p[this.ptr+8>>2]}set_caught(r){r=r?1:0,d[this.ptr+12]=r}get_caught(){return 0!=d[this.ptr+12]}set_rethrown(r){r=r?1:0,d[this.ptr+13]=r}get_rethrown(){return 0!=d[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){p[this.ptr+16>>2]=r}get_adjusted_ptr(){return p[this.ptr+16>>2]}}var U=()=>{var r=h[+lr.varargs>>2];return lr.varargs+=4,r},L=U,V={isAbs:r=>"/"===r.charAt(0),splitPath:r=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(r).slice(1),normalizeArray:(r,e)=>{for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];"."===o?r.splice(n,1):".."===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift("..");return r},normalize:r=>{var e=V.isAbs(r),t="/"===r.slice(-1);return(r=V.normalizeArray(r.split("/").filter(r=>!!r),!e).join("/"))||e||(r="."),r&&t&&(r+="/"),(e?"/":"")+r},dirname:r=>{var e=V.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.slice(0,-1)),t+n):"."},basename:r=>r&&r.match(/([^\/]+|\/)\/*$/)[1],join:(...r)=>V.normalize(r.join("/")),join2:(r,e)=>V.normalize(r+"/"+e)},H=r=>{(H=r=>crypto.getRandomValues(r))(r)},q={resolve:(...r)=>{for(var e="",t=!1,n=r.length-1;n>=-1&&!t;n--){var o=n>=0?r[n]:sr.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");if(!o)return"";e=o+"/"+e,t=V.isAbs(o)}return(t?"/":"")+(e=V.normalizeArray(e.split("/").filter(r=>!!r),!t).join("/"))||"."},relative:(r,e)=>{function t(r){for(var e=0;e<r.length&&""===r[e];e++);for(var t=r.length-1;t>=0&&""===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=q.resolve(r).slice(1),e=q.resolve(e).slice(1);for(var n=t(r.split("/")),o=t(e.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(i))).join("/")}},X="undefined"!=typeof TextDecoder?new TextDecoder:void 0,G=(r,e=0,t=NaN)=>{for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.buffer&&X)return X.decode(r.subarray(e,o));for(var a="";e<o;){var i=r[e++];if(128&i){var s=63&r[e++];if(192!=(224&i)){var u=63&r[e++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&r[e++])<65536)a+=String.fromCharCode(i);else{var l=i-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},Y=[],K=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},J=(r,e,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<r.length;++i){var s=r.codePointAt(i);if(s<=127){if(t>=a)break;e[t++]=s}else if(s<=2047){if(t+1>=a)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=a)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s,i++}}return e[t]=0,t-o},Q=(r,e,t)=>{var n=K(r)+1,o=new Array(n),a=J(r,o,0,o.length);return o.length=a,o},Z={ttys:[],init(){},shutdown(){},register(r,e){Z.ttys[r]={input:[],output:[],ops:e},sr.registerDevice(r,Z.stream_ops)},stream_ops:{open(r){var e=Z.ttys[r.node.rdev];if(!e)throw new sr.ErrnoError(43);r.tty=e,r.seekable=!1},close(r){r.tty.ops.fsync(r.tty)},fsync(r){r.tty.ops.fsync(r.tty)},read(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new sr.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=r.tty.ops.get_char(r.tty)}catch(r){throw new sr.ErrnoError(29)}if(void 0===s&&0===a)throw new sr.ErrnoError(6);if(null==s)break;a++,e[t+i]=s}return a&&(r.node.atime=Date.now()),a},write(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new sr.ErrnoError(60);try{for(var a=0;a<n;a++)r.tty.ops.put_char(r.tty,e[t+a])}catch(r){throw new sr.ErrnoError(29)}return n&&(r.node.mtime=r.node.ctime=Date.now()),a}},default_tty_ops:{get_char:r=>(()=>{if(!Y.length){var r=null;if("undefined"!=typeof window&&"function"==typeof window.prompt&&null!==(r=window.prompt("Input: "))&&(r+="\n"),!r)return null;Y=Q(r)}return Y.shift()})(),put_char(r,e){null===e||10===e?(E(G(r.output)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output?.length>0&&(E(G(r.output)),r.output=[])},ioctl_tcgets:r=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(r,e,t)=>0,ioctl_tiocgwinsz:r=>[24,80]},default_tty1_ops:{put_char(r,e){null===e||10===e?(k(G(r.output)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output?.length>0&&(k(G(r.output)),r.output=[])}}},rr=r=>{C()},er={ops_table:null,mount:r=>er.createNode(null,"/",16895,0),createNode(r,e,t,n){if(sr.isBlkdev(t)||sr.isFIFO(t))throw new sr.ErrnoError(63);er.ops_table||={dir:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr,lookup:er.node_ops.lookup,mknod:er.node_ops.mknod,rename:er.node_ops.rename,unlink:er.node_ops.unlink,rmdir:er.node_ops.rmdir,readdir:er.node_ops.readdir,symlink:er.node_ops.symlink},stream:{llseek:er.stream_ops.llseek}},file:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr},stream:{llseek:er.stream_ops.llseek,read:er.stream_ops.read,write:er.stream_ops.write,mmap:er.stream_ops.mmap,msync:er.stream_ops.msync}},link:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr,readlink:er.node_ops.readlink},stream:{}},chrdev:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr},stream:sr.chrdev_stream_ops}};var o=sr.createNode(r,e,t,n);return sr.isDir(o.mode)?(o.node_ops=er.ops_table.dir.node,o.stream_ops=er.ops_table.dir.stream,o.contents={}):sr.isFile(o.mode)?(o.node_ops=er.ops_table.file.node,o.stream_ops=er.ops_table.file.stream,o.usedBytes=0,o.contents=null):sr.isLink(o.mode)?(o.node_ops=er.ops_table.link.node,o.stream_ops=er.ops_table.link.stream):sr.isChrdev(o.mode)&&(o.node_ops=er.ops_table.chrdev.node,o.stream_ops=er.ops_table.chrdev.stream),o.atime=o.mtime=o.ctime=Date.now(),r&&(r.contents[e]=o,r.atime=r.mtime=r.ctime=o.atime),o},getFileDataAsTypedArray:r=>r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0),expandFileStorage(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage(r,e){if(r.usedBytes!=e)if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr(r){var e={};return e.dev=sr.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,sr.isDir(r.mode)?e.size=4096:sr.isFile(r.mode)?e.size=r.usedBytes:sr.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.atime),e.mtime=new Date(r.mtime),e.ctime=new Date(r.ctime),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr(r,e){for(const t of["mode","atime","mtime","ctime"])null!=e[t]&&(r[t]=e[t]);void 0!==e.size&&er.resizeFileStorage(r,e.size)},lookup(r,e){throw er.doesNotExistError},mknod:(r,e,t,n)=>er.createNode(r,e,t,n),rename(r,e,t){var n;try{n=sr.lookupNode(e,t)}catch(r){}if(n){if(sr.isDir(r.mode))for(var o in n.contents)throw new sr.ErrnoError(55);sr.hashRemoveNode(n)}delete r.parent.contents[r.name],e.contents[t]=r,r.name=t,e.ctime=e.mtime=r.parent.ctime=r.parent.mtime=Date.now()},unlink(r,e){delete r.contents[e],r.ctime=r.mtime=Date.now()},rmdir(r,e){var t=sr.lookupNode(r,e);for(var n in t.contents)throw new sr.ErrnoError(55);delete r.contents[e],r.ctime=r.mtime=Date.now()},readdir:r=>[".","..",...Object.keys(r.contents)],symlink(r,e,t){var n=er.createNode(r,e,41471,0);return n.link=t,n},readlink(r){if(!sr.isLink(r.mode))throw new sr.ErrnoError(28);return r.link}},stream_ops:{read(r,e,t,n,o){var a=r.node.contents;if(o>=r.node.usedBytes)return 0;var i=Math.min(r.node.usedBytes-o,n);if(i>8&&a.subarray)e.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)e[t+s]=a[o+s];return i},write(r,e,t,n,o,a){if(e.buffer===d.buffer&&(a=!1),!n)return 0;var i=r.node;if(i.mtime=i.ctime=Date.now(),e.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=e.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=e.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(e.subarray(t,t+n),o),n}if(er.expandFileStorage(i,o+n),i.contents.subarray&&e.subarray)i.contents.set(e.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=e[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&sr.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new sr.ErrnoError(28);return n},mmap(r,e,t,n,o){if(!sr.isFile(r.node.mode))throw new sr.ErrnoError(43);var a,i,s=r.node.contents;if(2&o||!s||s.buffer!==d.buffer){if(i=!0,!(a=rr()))throw new sr.ErrnoError(48);s&&((t>0||t+e<s.length)&&(s=s.subarray?s.subarray(t,t+e):Array.prototype.slice.call(s,t,t+e)),d.set(s,a))}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(r,e,t,n,o)=>(er.stream_ops.write(r,e,0,n,t,!1),0)}},tr=async r=>{var t=await e(r);return new Uint8Array(t)},nr=(...r)=>sr.createDataFile(...r),or=[],ar=(r,e,t,n,o,a,i,s,u,l)=>{var d=e?q.resolve(V.join2(r,e)):r;function c(t){function c(t){l?.(),s||nr(r,e,t,n,o,u),a?.(),T()}((r,e,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return or.forEach(a=>{o||a.canHandle(e)&&(a.handle(r,e,t,n),o=!0)}),o})(t,d,c,()=>{i?.(),T()})||c(t)}S(),"string"==typeof t?tr(t).then(c,i):c(t)},ir=(r,e)=>{var t=0;return r&&(t|=365),e&&(t|=146),t},sr={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,filesystems:null,syncFSRequests:0,readFiles:{},ErrnoError:class{name="ErrnoError";constructor(r){this.errno=r}},FSStream:class{shared={};get object(){return this.node}set object(r){this.node=r}get isRead(){return 1!=(2097155&this.flags)}get isWrite(){return!!(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(r){this.shared.flags=r}get position(){return this.shared.position}set position(r){this.shared.position=r}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.id=sr.nextInode++,this.name=e,this.mode=t,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&this.readMode)===this.readMode}set read(r){r?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(r){r?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return sr.isDir(this.mode)}get isDevice(){return sr.isChrdev(this.mode)}},lookupPath(r,e={}){if(!r)throw new sr.ErrnoError(44);e.follow_mount??=!0,V.isAbs(r)||(r=sr.cwd()+"/"+r);r:for(var t=0;t<40;t++){for(var n=r.split("/").filter(r=>!!r),o=sr.root,a="/",i=0;i<n.length;i++){var s=i===n.length-1;if(s&&e.parent)break;if("."!==n[i])if(".."!==n[i]){a=V.join2(a,n[i]);try{o=sr.lookupNode(o,n[i])}catch(r){if(44===r?.errno&&s&&e.noent_okay)return{path:a};throw r}if(!sr.isMountpoint(o)||s&&!e.follow_mount||(o=o.mounted.root),sr.isLink(o.mode)&&(!s||e.follow)){if(!o.node_ops.readlink)throw new sr.ErrnoError(52);var u=o.node_ops.readlink(o);V.isAbs(u)||(u=V.dirname(a)+"/"+u),r=u+"/"+n.slice(i+1).join("/");continue r}}else{if(a=V.dirname(a),sr.isRoot(o)){r=a+"/"+n.slice(i+1).join("/");continue r}o=o.parent}}return{path:a,node:o}}throw new sr.ErrnoError(32)},getPath(r){for(var e;;){if(sr.isRoot(r)){var t=r.mount.mountpoint;return e?"/"!==t[t.length-1]?`${t}/${e}`:t+e:t}e=e?`${r.name}/${e}`:r.name,r=r.parent}},hashName(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%sr.nameTable.length},hashAddNode(r){var e=sr.hashName(r.parent.id,r.name);r.name_next=sr.nameTable[e],sr.nameTable[e]=r},hashRemoveNode(r){var e=sr.hashName(r.parent.id,r.name);if(sr.nameTable[e]===r)sr.nameTable[e]=r.name_next;else for(var t=sr.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode(r,e){var t=sr.mayLookup(r);if(t)throw new sr.ErrnoError(t);for(var n=sr.hashName(r.id,e),o=sr.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===r.id&&a===e)return o}return sr.lookup(r,e)},createNode(r,e,t,n){var o=new sr.FSNode(r,e,t,n);return sr.hashAddNode(o),o},destroyNode(r){sr.hashRemoveNode(r)},isRoot:r=>r===r.parent,isMountpoint:r=>!!r.mounted,isFile:r=>32768==(61440&r),isDir:r=>16384==(61440&r),isLink:r=>40960==(61440&r),isChrdev:r=>8192==(61440&r),isBlkdev:r=>24576==(61440&r),isFIFO:r=>4096==(61440&r),isSocket:r=>!(49152&~r),flagsToPermissionString(r){var e=["r","w","rw"][3&r];return 512&r&&(e+="w"),e},nodePermissions:(r,e)=>sr.ignorePermissions||(!e.includes("r")||292&r.mode)&&(!e.includes("w")||146&r.mode)&&(!e.includes("x")||73&r.mode)?0:2,mayLookup:r=>sr.isDir(r.mode)?sr.nodePermissions(r,"x")||(r.node_ops.lookup?0:2):54,mayCreate(r,e){if(!sr.isDir(r.mode))return 54;try{return sr.lookupNode(r,e),20}catch(r){}return sr.nodePermissions(r,"wx")},mayDelete(r,e,t){var n;try{n=sr.lookupNode(r,e)}catch(r){return r.errno}var o=sr.nodePermissions(r,"wx");if(o)return o;if(t){if(!sr.isDir(n.mode))return 54;if(sr.isRoot(n)||sr.getPath(n)===sr.cwd())return 10}else if(sr.isDir(n.mode))return 31;return 0},mayOpen:(r,e)=>r?sr.isLink(r.mode)?32:sr.isDir(r.mode)&&("r"!==sr.flagsToPermissionString(e)||576&e)?31:sr.nodePermissions(r,sr.flagsToPermissionString(e)):44,checkOpExists(r,e){if(!r)throw new sr.ErrnoError(e);return r},MAX_OPEN_FDS:4096,nextfd(){for(var r=0;r<=sr.MAX_OPEN_FDS;r++)if(!sr.streams[r])return r;throw new sr.ErrnoError(33)},getStreamChecked(r){var e=sr.getStream(r);if(!e)throw new sr.ErrnoError(8);return e},getStream:r=>sr.streams[r],createStream:(r,e=-1)=>(r=Object.assign(new sr.FSStream,r),-1==e&&(e=sr.nextfd()),r.fd=e,sr.streams[e]=r,r),closeStream(r){sr.streams[r]=null},dupStream(r,e=-1){var t=sr.createStream(r,e);return t.stream_ops?.dup?.(t),t},doSetAttr(r,e,t){var n=r?.stream_ops.setattr,o=n?r:e;n??=e.node_ops.setattr,sr.checkOpExists(n,63),n(o,t)},chrdev_stream_ops:{open(r){var e=sr.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open?.(r)},llseek(){throw new sr.ErrnoError(70)}},major:r=>r>>8,minor:r=>255&r,makedev:(r,e)=>r<<8|e,registerDevice(r,e){sr.devices[r]={stream_ops:e}},getDevice:r=>sr.devices[r],getMounts(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push(...n.mounts)}return e},syncfs(r,e){"function"==typeof r&&(e=r,r=!1),sr.syncFSRequests++,sr.syncFSRequests>1&&k(`warning: ${sr.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=sr.getMounts(sr.root.mount),n=0;function o(r){return sr.syncFSRequests--,e(r)}function a(r){if(r)return a.errored?void 0:(a.errored=!0,o(r));++n>=t.length&&o(null)}t.forEach(e=>{if(!e.type.syncfs)return a(null);e.type.syncfs(e,r,a)})},mount(r,e,t){var n,o="/"===t,a=!t;if(o&&sr.root)throw new sr.ErrnoError(10);if(!o&&!a){var i=sr.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,sr.isMountpoint(n))throw new sr.ErrnoError(10);if(!sr.isDir(n.mode))throw new sr.ErrnoError(54)}var s={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(s);return u.mount=s,s.root=u,o?sr.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount(r){var e=sr.lookupPath(r,{follow_mount:!1});if(!sr.isMountpoint(e.node))throw new sr.ErrnoError(28);var t=e.node,n=t.mounted,o=sr.getMounts(n);Object.keys(sr.nameTable).forEach(r=>{for(var e=sr.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&sr.destroyNode(e),e=t}}),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(r,e)=>r.node_ops.lookup(r,e),mknod(r,e,t){var n=sr.lookupPath(r,{parent:!0}).node,o=V.basename(r);if(!o)throw new sr.ErrnoError(28);if("."===o||".."===o)throw new sr.ErrnoError(20);var a=sr.mayCreate(n,o);if(a)throw new sr.ErrnoError(a);if(!n.node_ops.mknod)throw new sr.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},statfs:r=>sr.statfsNode(sr.lookupPath(r,{follow:!0}).node),statfsStream:r=>sr.statfsNode(r.node),statfsNode(r){var e={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:sr.nextInode,ffree:sr.nextInode-1,fsid:42,flags:2,namelen:255};return r.node_ops.statfs&&Object.assign(e,r.node_ops.statfs(r.mount.opts.root)),e},create:(r,e=438)=>(e&=4095,e|=32768,sr.mknod(r,e,0)),mkdir:(r,e=511)=>(e&=1023,e|=16384,sr.mknod(r,e,0)),mkdirTree(r,e){var t=r.split("/"),n="";for(var o of t)if(o){(n||V.isAbs(r))&&(n+="/"),n+=o;try{sr.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:(r,e,t)=>(void 0===t&&(t=e,e=438),e|=8192,sr.mknod(r,e,t)),symlink(r,e){if(!q.resolve(r))throw new sr.ErrnoError(44);var t=sr.lookupPath(e,{parent:!0}).node;if(!t)throw new sr.ErrnoError(44);var n=V.basename(e),o=sr.mayCreate(t,n);if(o)throw new sr.ErrnoError(o);if(!t.node_ops.symlink)throw new sr.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename(r,e){var t,n,o=V.dirname(r),a=V.dirname(e),i=V.basename(r),s=V.basename(e);if(t=sr.lookupPath(r,{parent:!0}).node,n=sr.lookupPath(e,{parent:!0}).node,!t||!n)throw new sr.ErrnoError(44);if(t.mount!==n.mount)throw new sr.ErrnoError(75);var u,l=sr.lookupNode(t,i),d=q.relative(r,a);if("."!==d.charAt(0))throw new sr.ErrnoError(28);if("."!==(d=q.relative(e,o)).charAt(0))throw new sr.ErrnoError(55);try{u=sr.lookupNode(n,s)}catch(r){}if(l!==u){var c=sr.isDir(l.mode),f=sr.mayDelete(t,i,c);if(f)throw new sr.ErrnoError(f);if(f=u?sr.mayDelete(n,s,c):sr.mayCreate(n,s))throw new sr.ErrnoError(f);if(!t.node_ops.rename)throw new sr.ErrnoError(63);if(sr.isMountpoint(l)||u&&sr.isMountpoint(u))throw new sr.ErrnoError(10);if(n!==t&&(f=sr.nodePermissions(t,"w")))throw new sr.ErrnoError(f);sr.hashRemoveNode(l);try{t.node_ops.rename(l,n,s),l.parent=n}catch(r){throw r}finally{sr.hashAddNode(l)}}},rmdir(r){var e=sr.lookupPath(r,{parent:!0}).node,t=V.basename(r),n=sr.lookupNode(e,t),o=sr.mayDelete(e,t,!0);if(o)throw new sr.ErrnoError(o);if(!e.node_ops.rmdir)throw new sr.ErrnoError(63);if(sr.isMountpoint(n))throw new sr.ErrnoError(10);e.node_ops.rmdir(e,t),sr.destroyNode(n)},readdir(r){var e=sr.lookupPath(r,{follow:!0}).node;return sr.checkOpExists(e.node_ops.readdir,54)(e)},unlink(r){var e=sr.lookupPath(r,{parent:!0}).node;if(!e)throw new sr.ErrnoError(44);var t=V.basename(r),n=sr.lookupNode(e,t),o=sr.mayDelete(e,t,!1);if(o)throw new sr.ErrnoError(o);if(!e.node_ops.unlink)throw new sr.ErrnoError(63);if(sr.isMountpoint(n))throw new sr.ErrnoError(10);e.node_ops.unlink(e,t),sr.destroyNode(n)},readlink(r){var e=sr.lookupPath(r).node;if(!e)throw new sr.ErrnoError(44);if(!e.node_ops.readlink)throw new sr.ErrnoError(28);return e.node_ops.readlink(e)},stat(r,e){var t=sr.lookupPath(r,{follow:!e}).node;return sr.checkOpExists(t.node_ops.getattr,63)(t)},fstat(r){var e=sr.getStreamChecked(r),t=e.node,n=e.stream_ops.getattr,o=n?e:t;return n??=t.node_ops.getattr,sr.checkOpExists(n,63),n(o)},lstat:r=>sr.stat(r,!0),doChmod(r,e,t,n){sr.doSetAttr(r,e,{mode:4095&t|-4096&e.mode,ctime:Date.now(),dontFollow:n})},chmod(r,e,t){var n;n="string"==typeof r?sr.lookupPath(r,{follow:!t}).node:r,sr.doChmod(null,n,e,t)},lchmod(r,e){sr.chmod(r,e,!0)},fchmod(r,e){var t=sr.getStreamChecked(r);sr.doChmod(t,t.node,e,!1)},doChown(r,e,t){sr.doSetAttr(r,e,{timestamp:Date.now(),dontFollow:t})},chown(r,e,t,n){var o;o="string"==typeof r?sr.lookupPath(r,{follow:!n}).node:r,sr.doChown(null,o,n)},lchown(r,e,t){sr.chown(r,e,t,!0)},fchown(r,e,t){var n=sr.getStreamChecked(r);sr.doChown(n,n.node,!1)},doTruncate(r,e,t){if(sr.isDir(e.mode))throw new sr.ErrnoError(31);if(!sr.isFile(e.mode))throw new sr.ErrnoError(28);var n=sr.nodePermissions(e,"w");if(n)throw new sr.ErrnoError(n);sr.doSetAttr(r,e,{size:t,timestamp:Date.now()})},truncate(r,e){if(e<0)throw new sr.ErrnoError(28);var t;t="string"==typeof r?sr.lookupPath(r,{follow:!0}).node:r,sr.doTruncate(null,t,e)},ftruncate(r,e){var t=sr.getStreamChecked(r);if(e<0||!(2097155&t.flags))throw new sr.ErrnoError(28);sr.doTruncate(t,t.node,e)},utime(r,e,t){var n=sr.lookupPath(r,{follow:!0}).node;sr.checkOpExists(n.node_ops.setattr,63)(n,{atime:e,mtime:t})},open(r,e,n=438){if(""===r)throw new sr.ErrnoError(44);var o,a;if(n=64&(e="string"==typeof e?(r=>{var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===e)throw new Error(`Unknown file open mode: ${r}`);return e})(e):e)?4095&n|32768:0,"object"==typeof r)o=r;else{a=r.endsWith("/");var i=sr.lookupPath(r,{follow:!(131072&e),noent_okay:!0});o=i.node,r=i.path}var s=!1;if(64&e)if(o){if(128&e)throw new sr.ErrnoError(20)}else{if(a)throw new sr.ErrnoError(31);o=sr.mknod(r,511|n,0),s=!0}if(!o)throw new sr.ErrnoError(44);if(sr.isChrdev(o.mode)&&(e&=-513),65536&e&&!sr.isDir(o.mode))throw new sr.ErrnoError(54);if(!s){var u=sr.mayOpen(o,e);if(u)throw new sr.ErrnoError(u)}512&e&&!s&&sr.truncate(o,0),e&=-131713;var l=sr.createStream({node:o,path:sr.getPath(o),flags:e,seekable:!0,position:0,stream_ops:o.stream_ops,ungotten:[],error:!1});return l.stream_ops.open&&l.stream_ops.open(l),s&&sr.chmod(o,511&n),!t.logReadFiles||1&e||r in sr.readFiles||(sr.readFiles[r]=1),l},close(r){if(sr.isClosed(r))throw new sr.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{sr.closeStream(r.fd)}r.fd=null},isClosed:r=>null===r.fd,llseek(r,e,t){if(sr.isClosed(r))throw new sr.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new sr.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new sr.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read(r,e,t,n,o){if(n<0||o<0)throw new sr.ErrnoError(28);if(sr.isClosed(r))throw new sr.ErrnoError(8);if(1==(2097155&r.flags))throw new sr.ErrnoError(8);if(sr.isDir(r.node.mode))throw new sr.ErrnoError(31);if(!r.stream_ops.read)throw new sr.ErrnoError(28);var a=void 0!==o;if(a){if(!r.seekable)throw new sr.ErrnoError(70)}else o=r.position;var i=r.stream_ops.read(r,e,t,n,o);return a||(r.position+=i),i},write(r,e,t,n,o,a){if(n<0||o<0)throw new sr.ErrnoError(28);if(sr.isClosed(r))throw new sr.ErrnoError(8);if(!(2097155&r.flags))throw new sr.ErrnoError(8);if(sr.isDir(r.node.mode))throw new sr.ErrnoError(31);if(!r.stream_ops.write)throw new sr.ErrnoError(28);r.seekable&&1024&r.flags&&sr.llseek(r,0,2);var i=void 0!==o;if(i){if(!r.seekable)throw new sr.ErrnoError(70)}else o=r.position;var s=r.stream_ops.write(r,e,t,n,o,a);return i||(r.position+=s),s},mmap(r,e,t,n,o){if(2&n&&!(2&o)&&2!=(2097155&r.flags))throw new sr.ErrnoError(2);if(1==(2097155&r.flags))throw new sr.ErrnoError(2);if(!r.stream_ops.mmap)throw new sr.ErrnoError(43);if(!e)throw new sr.ErrnoError(28);return r.stream_ops.mmap(r,e,t,n,o)},msync:(r,e,t,n,o)=>r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0,ioctl(r,e,t){if(!r.stream_ops.ioctl)throw new sr.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile(r,e={}){if(e.flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw new Error(`Invalid encoding type "${e.encoding}"`);var t=sr.open(r,e.flags),n=sr.stat(r).size,o=new Uint8Array(n);return sr.read(t,o,0,n,0),"utf8"===e.encoding&&(o=G(o)),sr.close(t),o},writeFile(r,e,t={}){t.flags=t.flags||577;var n=sr.open(r,t.flags,t.mode);if("string"==typeof e&&(e=new Uint8Array(Q(e))),!ArrayBuffer.isView(e))throw new Error("Unsupported data type");sr.write(n,e,0,e.byteLength,void 0,t.canOwn),sr.close(n)},cwd:()=>sr.currentPath,chdir(r){var e=sr.lookupPath(r,{follow:!0});if(null===e.node)throw new sr.ErrnoError(44);if(!sr.isDir(e.node.mode))throw new sr.ErrnoError(54);var t=sr.nodePermissions(e.node,"x");if(t)throw new sr.ErrnoError(t);sr.currentPath=e.path},createDefaultDirectories(){sr.mkdir("/tmp"),sr.mkdir("/home"),sr.mkdir("/home/web_user")},createDefaultDevices(){sr.mkdir("/dev"),sr.registerDevice(sr.makedev(1,3),{read:()=>0,write:(r,e,t,n,o)=>n,llseek:()=>0}),sr.mkdev("/dev/null",sr.makedev(1,3)),Z.register(sr.makedev(5,0),Z.default_tty_ops),Z.register(sr.makedev(6,0),Z.default_tty1_ops),sr.mkdev("/dev/tty",sr.makedev(5,0)),sr.mkdev("/dev/tty1",sr.makedev(6,0));var r=new Uint8Array(1024),e=0,t=()=>(0===e&&(H(r),e=r.byteLength),r[--e]);sr.createDevice("/dev","random",t),sr.createDevice("/dev","urandom",t),sr.mkdir("/dev/shm"),sr.mkdir("/dev/shm/tmp")},createSpecialDirectories(){sr.mkdir("/proc");var r=sr.mkdir("/proc/self");sr.mkdir("/proc/self/fd"),sr.mount({mount(){var e=sr.createNode(r,"fd",16895,73);return e.stream_ops={llseek:er.stream_ops.llseek},e.node_ops={lookup(r,e){var t=+e,n=sr.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path},id:t+1};return o.parent=o,o},readdir:()=>Array.from(sr.streams.entries()).filter(([r,e])=>e).map(([r,e])=>r.toString())},e}},{},"/proc/self/fd")},createStandardStreams(r,e,t){r?sr.createDevice("/dev","stdin",r):sr.symlink("/dev/tty","/dev/stdin"),e?sr.createDevice("/dev","stdout",null,e):sr.symlink("/dev/tty","/dev/stdout"),t?sr.createDevice("/dev","stderr",null,t):sr.symlink("/dev/tty1","/dev/stderr"),sr.open("/dev/stdin",0),sr.open("/dev/stdout",1),sr.open("/dev/stderr",1)},staticInit(){sr.nameTable=new Array(4096),sr.mount(er,{},"/"),sr.createDefaultDirectories(),sr.createDefaultDevices(),sr.createSpecialDirectories(),sr.filesystems={MEMFS:er}},init(r,e,n){sr.initialized=!0,r??=t.stdin,e??=t.stdout,n??=t.stderr,sr.createStandardStreams(r,e,n)},quit(){for(var r of(sr.initialized=!1,sr.streams))r&&sr.close(r)},findObject(r,e){var t=sr.analyzePath(r,e);return t.exists?t.object:null},analyzePath(r,e){try{r=(n=sr.lookupPath(r,{follow:!e})).path}catch(r){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=sr.lookupPath(r,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=V.basename(r),n=sr.lookupPath(r,{follow:!e}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(r){t.error=r.errno}return t},createPath(r,e,t,n){r="string"==typeof r?r:sr.getPath(r);for(var o=e.split("/").reverse();o.length;){var a=o.pop();if(a){var i=V.join2(r,a);try{sr.mkdir(i)}catch(r){if(20!=r.errno)throw r}r=i}}return i},createFile(r,e,t,n,o){var a=V.join2("string"==typeof r?r:sr.getPath(r),e),i=ir(n,o);return sr.create(a,i)},createDataFile(r,e,t,n,o,a){var i=e;r&&(r="string"==typeof r?r:sr.getPath(r),i=e?V.join2(r,e):r);var s=ir(n,o),u=sr.create(i,s);if(t){if("string"==typeof t){for(var l=new Array(t.length),d=0,c=t.length;d<c;++d)l[d]=t.charCodeAt(d);t=l}sr.chmod(u,146|s);var f=sr.open(u,577);sr.write(f,t,0,t.length,0,a),sr.close(f),sr.chmod(u,s)}},createDevice(r,e,t,n){var o=V.join2("string"==typeof r?r:sr.getPath(r),e),a=ir(!!t,!!n);sr.createDevice.major??=64;var i=sr.makedev(sr.createDevice.major++,0);return sr.registerDevice(i,{open(r){r.seekable=!1},close(r){n?.buffer?.length&&n(10)},read(r,e,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(r){throw new sr.ErrnoError(29)}if(void 0===u&&0===i)throw new sr.ErrnoError(6);if(null==u)break;i++,e[n+s]=u}return i&&(r.node.atime=Date.now()),i},write(r,e,t,o,a){for(var i=0;i<o;i++)try{n(e[t+i])}catch(r){throw new sr.ErrnoError(29)}return o&&(r.node.mtime=r.node.ctime=Date.now()),i}}),sr.mkdev(o,a,i)},forceLoadFile(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");try{r.contents=(void 0)(r.url),r.usedBytes=r.contents.length}catch(r){throw new sr.ErrnoError(29)}},createLazyFile(r,e,t,n,o){if("undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a={isDevice:!1,url:t},i=sr.createFile(r,e,a,n,o);a.contents?i.contents=a.contents:a.url&&(i.contents=null,i.url=a.url),Object.defineProperties(i,{usedBytes:{get:function(){return this.contents.length}}});var s={};function u(r,e,t,n,o){var a=r.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)e[t+s]=a[o+s];else for(s=0;s<i;s++)e[t+s]=a.get(o+s);return i}return Object.keys(i.stream_ops).forEach(r=>{var e=i.stream_ops[r];s[r]=(...r)=>(sr.forceLoadFile(i),e(...r))}),s.read=(r,e,t,n,o)=>(sr.forceLoadFile(i),u(r,e,t,n,o)),s.mmap=(r,e,t,n,o)=>{sr.forceLoadFile(i);var a=rr();if(!a)throw new sr.ErrnoError(48);return u(r,d,a,e,t),{ptr:a,allocated:!0}},i.stream_ops=s,i}},ur=(r,e)=>r?G(c,r,e):"",lr={DEFAULT_POLLMASK:5,calculateAt(r,e,t){if(V.isAbs(e))return e;var n;if(n=-100===r?sr.cwd():lr.getStreamFromFD(r).path,0==e.length){if(!t)throw new sr.ErrnoError(44);return n}return n+"/"+e},writeStat(r,e){h[r>>2]=e.dev,h[r+4>>2]=e.mode,p[r+8>>2]=e.nlink,h[r+12>>2]=e.uid,h[r+16>>2]=e.gid,h[r+20>>2]=e.rdev,y[r+24>>3]=BigInt(e.size),h[r+32>>2]=4096,h[r+36>>2]=e.blocks;var t=e.atime.getTime(),n=e.mtime.getTime(),o=e.ctime.getTime();return y[r+40>>3]=BigInt(Math.floor(t/1e3)),p[r+48>>2]=t%1e3*1e3*1e3,y[r+56>>3]=BigInt(Math.floor(n/1e3)),p[r+64>>2]=n%1e3*1e3*1e3,y[r+72>>3]=BigInt(Math.floor(o/1e3)),p[r+80>>2]=o%1e3*1e3*1e3,y[r+88>>3]=BigInt(e.ino),0},writeStatFs(r,e){h[r+4>>2]=e.bsize,h[r+40>>2]=e.bsize,h[r+8>>2]=e.blocks,h[r+12>>2]=e.bfree,h[r+16>>2]=e.bavail,h[r+20>>2]=e.files,h[r+24>>2]=e.ffree,h[r+28>>2]=e.fsid,h[r+44>>2]=e.flags,h[r+36>>2]=e.namelen},doMsync(r,e,t,n,o){if(!sr.isFile(e.node.mode))throw new sr.ErrnoError(43);if(2&n)return 0;var a=c.slice(r,r+t);sr.msync(e,a,o,t,n)},getStreamFromFD:r=>sr.getStreamChecked(r),varargs:void 0,getStr:r=>ur(r)},dr={},cr=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function fr(r){return this.fromWireType(p[r>>2])}var mr={},hr={},pr={},vr=class extends Error{constructor(r){super(r),this.name="InternalError"}},wr=r=>{throw new vr(r)},yr=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&wr("Mismatched type converter count");for(var o=0;o<r.length;++o)_r(r[o],n[o])}r.forEach(r=>pr[r]=e);var o=new Array(e.length),a=[],i=0;e.forEach((r,e)=>{hr.hasOwnProperty(r)?o[e]=hr[r]:(a.push(r),mr.hasOwnProperty(r)||(mr[r]=[]),mr[r].push(()=>{o[e]=hr[r],++i===a.length&&n(o)}))}),0===a.length&&n(o)},gr=r=>{for(var e="";;){var t=c[r++];if(!t)return e;e+=String.fromCharCode(t)}},Er=class extends Error{constructor(r){super(r),this.name="BindingError"}},kr=r=>{throw new Er(r)};function _r(r,e,t={}){return function(r,e,t={}){var n=e.name;if(r||kr(`type "${n}" must have a positive integer typeid pointer`),hr.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;kr(`Cannot register type '${n}' twice`)}if(hr[r]=e,delete pr[r],mr.hasOwnProperty(r)){var o=mr[r];delete mr[r],o.forEach(r=>r())}}(r,e,t)}var br,Ar=(r,e,t)=>{switch(e){case 1:return t?r=>d[r]:r=>c[r];case 2:return t?r=>f[r>>1]:r=>m[r>>1];case 4:return t?r=>h[r>>2]:r=>p[r>>2];case 8:return t?r=>y[r>>3]:r=>g[r>>3];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Fr=[],Pr=[0,1,,1,null,1,!0,1,!1,1],Dr=r=>{r>9&&0===--Pr[r+1]&&(Pr[r]=void 0,Fr.push(r))},Sr=r=>(r||kr(`Cannot use deleted val. handle = ${r}`),Pr[r]),Tr=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Fr.pop()||Pr.length;return Pr[e]=r,Pr[e+1]=1,e}}},Cr={name:"emscripten::val",fromWireType:r=>{var e=Sr(r);return Dr(r),e},toWireType:(r,e)=>Tr(e),argPackAdvance:8,readValueFromPointer:fr,destructorFunction:null},xr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(v[r>>2])};case 8:return function(r){return this.fromWireType(w[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Mr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Nr=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||kr(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Rr=(r,e,n)=>{t.hasOwnProperty(r)?((void 0===n||void 0!==t[r].overloadTable&&void 0!==t[r].overloadTable[n])&&kr(`Cannot register public name '${r}' twice`),Nr(t,r,r),t[r].overloadTable.hasOwnProperty(n)&&kr(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`),t[r].overloadTable[n]=e):(t[r]=e,t[r].argCount=n)},Or=(r,e,n)=>{t.hasOwnProperty(r)||wr("Replacing nonexistent public symbol"),void 0!==t[r].overloadTable&&void 0!==n?t[r].overloadTable[n]=e:(t[r]=e,t[r].argCount=n)},jr=[],Br=r=>{var e=jr[r];return e||(jr[r]=e=br.get(r)),e},Wr=(r,e,t=!1)=>{r=gr(r);var n=Br(e);return"function"!=typeof n&&kr(`unknown function pointer with signature ${r}: ${e}`),n};class zr extends Error{}var $r,Ir,Ur,Lr,Vr,Hr,qr,Xr=r=>{var e=Ir(r),t=gr(e);return Lr(e),t},Gr=(r,e,t)=>J(r,c,e,t),Yr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Kr=(r,e)=>{for(var t=r>>1,n=t+e/2,o=t;!(o>=n)&&m[o];)++o;if(o-t>16&&Yr)return Yr.decode(m.subarray(t,o));for(var a="",i=t;!(i>=n);++i){var s=m[i];if(0==s)break;a+=String.fromCharCode(s)}return a},Jr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,o=(t-=2)<2*r.length?t/2:r.length,a=0;a<o;++a){var i=r.charCodeAt(a);f[e>>1]=i,e+=2}return f[e>>1]=0,e-n},Qr=r=>2*r.length,Zr=(r,e)=>{for(var t="",n=0;!(n>=e/4);n++){var o=h[r+4*n>>2];if(!o)break;t+=String.fromCodePoint(o)}return t},re=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,o=n+t-4,a=0;a<r.length;++a){var i=r.codePointAt(a);if(i>65535&&a++,h[e>>2]=i,(e+=4)+4>o)break}return h[e>>2]=0,e-n},ee=r=>{for(var e=0,t=0;t<r.length;++t)r.codePointAt(t)>65535&&t++,e+=4;return e},te=(r,e)=>{var t=hr[r];return void 0===t&&kr(`${e} has unknown type ${Xr(r)}`),t},ne=(r,e,t)=>{var n=[],o=r.toWireType(n,t);return n.length&&(p[e>>2]=Tr(n)),o},oe={},ae=r=>{var e=oe[r];return void 0===e?gr(r):e},ie=[],se=()=>globalThis,ue=(r,e)=>Math.ceil(r/e)*e,le=r=>{var e=(r-l.buffer.byteLength+65535)/65536|0;try{return l.grow(e),A(),1}catch(r){}},de={},ce=()=>{if(!ce.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:n||"./this.program"};for(var e in de)void 0===de[e]?delete r[e]:r[e]=de[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);ce.strings=t}return ce.strings},fe=(r,e)=>{r<128?e.push(r):e.push(r%128|128,r>>7)},me=[],he=(r,e)=>{br.set(r,e),jr[r]=br.get(r)};sr.createPreloadedFile=ar,sr.staticInit(),er.doesNotExistError=new sr.ErrnoError(44),er.doesNotExistError.stack="<generic error, no stack>",t.noExitRuntime&&(W=t.noExitRuntime),t.preloadPlugins&&(or=t.preloadPlugins),t.print&&(E=t.print),t.printErr&&(k=t.printErr),t.wasmBinary&&(i=t.wasmBinary),t.arguments&&t.arguments,t.thisProgram&&(n=t.thisProgram),t.addRunDependency=S,t.removeRunDependency=T,t.addFunction=(r,e)=>{var t=(r=>($r||($r=new WeakMap,((r,e)=>{if($r)for(var t=0;t<0+e;t++){var n=Br(t);n&&$r.set(n,t)}})(0,br.length)),$r.get(r)||0))(r);if(t)return t;var n=(()=>{if(me.length)return me.pop();try{br.grow(1)}catch(r){if(!(r instanceof RangeError))throw r;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return br.length-1})();try{he(n,r)}catch(t){if(!(t instanceof TypeError))throw t;var o=((r,e)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function((r=>{for(var e={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},t={parameters:[],results:"v"==r[0]?[]:[e[r[0]]]},n=1;n<r.length;++n)t.parameters.push(e[r[n]]);return t})(e),r);var t=[1];((r,e)=>{var t=r.slice(0,1),n=r.slice(1),o={i:127,p:127,j:126,f:125,d:124,e:111};for(var a of(e.push(96),fe(n.length,e),n))e.push(o[a]);"v"==t?e.push(0):e.push(1,o[t])})(e,t);var n=[0,97,115,109,1,0,0,0,1];fe(t.length,n),n.push(...t),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var o=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(o,{e:{f:r}}).exports.f})(r,e);he(n,o)}return $r.set(r,n),n},t.UTF8ToString=ur,t.FS_createPreloadedFile=ar,t.FS_unlink=(...r)=>sr.unlink(...r),t.FS_createPath=(...r)=>sr.createPath(...r),t.FS_createDevice=(...r)=>sr.createDevice(...r),t.FS_createDataFile=nr,t.FS_createLazyFile=(...r)=>sr.createLazyFile(...r);var pe={j:(r,e,t)=>{throw new I(r).init(e,t),r},w:function(r,e,t){lr.varargs=t;try{var n=lr.getStreamFromFD(r);switch(e){case 0:if((o=U())<0)return-28;for(;sr.streams[o];)o++;return sr.dupStream(n,o).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var o=U();return n.flags|=o,0;case 12:return o=L(),f[o+0>>1]=2,0}return-28}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},N:function(r,e,t){lr.varargs=t;try{var n=lr.getStreamFromFD(r);switch(e){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var o=n.tty.ops.ioctl_tcgets(n),a=L();h[a>>2]=o.c_iflag||0,h[a+4>>2]=o.c_oflag||0,h[a+8>>2]=o.c_cflag||0,h[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)d[a+i+17]=o.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){a=L();var s=h[a>>2],u=h[a+4>>2],l=h[a+8>>2],c=h[a+12>>2],m=[];for(i=0;i<32;i++)m.push(d[a+i+17]);return n.tty.ops.ioctl_tcsets(n.tty,e,{c_iflag:s,c_oflag:u,c_cflag:l,c_lflag:c,c_cc:m})}return 0;case 21519:return n.tty?(a=L(),h[a>>2]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=L(),sr.ioctl(n,e,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var p=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=L(),f[a>>1]=p[0],f[a+2>>1]=p[1]}return 0;default:return-28}}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},O:function(r,e,t,n){lr.varargs=n;try{e=lr.getStr(e),e=lr.calculateAt(r,e);var o=n?U():0;return sr.open(e,t,o).fd}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},P:()=>C(""),z:r=>{var e=dr[r];delete dr[r];var t=e.rawConstructor,n=e.rawDestructor,o=e.fields,a=o.map(r=>r.getterReturnType).concat(o.map(r=>r.setterArgumentType));yr([r],a,r=>{var a={};return o.forEach((e,t)=>{var n=e.fieldName,i=r[t],s=r[t].optional,u=e.getter,l=e.getterContext,d=r[t+o.length],c=e.setter,f=e.setterContext;a[n]={read:r=>i.fromWireType(u(l,r)),write:(r,e)=>{var t=[];c(f,r,d.toWireType(t,e)),cr(t)},optional:s}}),[{name:e.name,fromWireType:r=>{var e={};for(var t in a)e[t]=a[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var o in a)if(!(o in e)&&!a[o].optional)throw new TypeError(`Missing field: "${o}"`);var i=t();for(o in a)a[o].write(i,e[o]);return null!==r&&r.push(n,i),i},argPackAdvance:8,readValueFromPointer:fr,destructorFunction:n}]})},y:(r,e,t,n,o)=>{e=gr(e);const a=0n===n;let i=r=>r;if(a){const r=8*t;i=e=>BigInt.asUintN(r,e),o=i(o)}_r(r,{name:e,fromWireType:i,toWireType:(r,e)=>("number"==typeof e&&(e=BigInt(e)),e),argPackAdvance:8,readValueFromPointer:Ar(e,t,!a),destructorFunction:null})},U:(r,e,t,n)=>{_r(r,{name:e=gr(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(c[r])},destructorFunction:null})},S:r=>_r(r,Cr),x:(r,e,t)=>{_r(r,{name:e=gr(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:xr(e,t),destructorFunction:null})},l:(r,e,t,n,o,a,i,s)=>{var u=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(p[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1===e?r:r.slice(0,e)})(r=gr(r)),o=Wr(n,o,i),Rr(r,function(){((r,e)=>{var t=[],n={};throw e.forEach(function r(e){n[e]||hr[e]||(pr[e]?pr[e].forEach(r):(t.push(e),n[e]=!0))}),new zr(`${r}: `+t.map(Xr).join([", "]))})(`Cannot call ${r} due to unbound types`,u)},e-1),yr([],u,t=>{var n=[t[0],null].concat(t.slice(1));return Or(r,function(r,e,t,n,o){var a=e.length;a<2&&kr("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var i=function(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}(e),s="void"!==e[0].name,u=a-2,l=new Array(u),d=[],c=[];return Mr(r,function(...r){c.length=0,d.length=1,d[0]=o;for(var t=0;t<u;++t)l[t]=e[t+2].toWireType(c,r[t]),d.push(l[t]);return function(r){if(i)cr(c);else for(var t=2;t<e.length;t++){var n=1===t?void 0:l[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(s)return e[0].fromWireType(r)}(n(...d))})}(r,n,0,o,a),e-1),[]})},d:(r,e,t,n,o)=>{e=gr(e);let a=r=>r;if(0===n){var i=32-8*t;a=r=>r<<i>>>i,o=a(o)}_r(r,{name:e,fromWireType:a,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:Ar(e,t,0!==n),destructorFunction:null})},b:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][e];function o(r){var e=p[r>>2],t=p[r+4>>2];return new n(d.buffer,t,e)}_r(r,{name:t=gr(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},T:(r,e)=>{_r(r,{name:e=gr(e),fromWireType(r){for(var e,t=p[r>>2],n=r+4,o=n,a=0;a<=t;++a){var i=n+a;if(a==t||0==c[i]){var s=ur(o,i-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=i+1}}return Lr(r),e},toWireType(r,e){var t;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||kr("Cannot pass non-string to std::string"),t=n?K(e):e.length;var o=Ur(4+t+1),a=o+4;return p[o>>2]=t,n?Gr(e,a,t+1):c.set(e,a),null!==r&&r.push(Lr,o),o},argPackAdvance:8,readValueFromPointer:fr,destructorFunction(r){Lr(r)}})},r:(r,e,t)=>{var n,o,a,i;t=gr(t),2===e?(n=Kr,o=Jr,i=Qr,a=r=>m[r>>1]):4===e&&(n=Zr,o=re,i=ee,a=r=>p[r>>2]),_r(r,{name:t,fromWireType:r=>{for(var t,o=p[r>>2],i=r+4,s=0;s<=o;++s){var u=r+4+s*e;if(s==o||0==a(u)){var l=n(i,u-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=u+e}}return Lr(r),t},toWireType:(r,n)=>{"string"!=typeof n&&kr(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),s=Ur(4+a+e);return p[s>>2]=a/e,o(n,s+4,a+e),null!==r&&r.push(Lr,s),s},argPackAdvance:8,readValueFromPointer:fr,destructorFunction(r){Lr(r)}})},A:(r,e,t,n,o,a)=>{dr[r]={name:gr(e),rawConstructor:Wr(t,n),rawDestructor:Wr(o,a),fields:[]}},c:(r,e,t,n,o,a,i,s,u,l)=>{dr[r].fields.push({fieldName:gr(e),getterReturnType:t,getter:Wr(n,o),getterContext:a,setterArgumentType:i,setter:Wr(s,u),setterContext:l})},V:(r,e)=>{_r(r,{isVoid:!0,name:e=gr(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},R:r=>{do{var e=p[r>>2],t=p[(r+=4)>>2],n=p[(r+=4)>>2];r+=4;var o=ur(e);sr.createPath("/",V.dirname(o),!0,!0),sr.createDataFile(o,null,d.subarray(n,n+t),!0,!0,!0)}while(p[r>>2])},G:()=>{throw 1/0},X:(r,e,t)=>(r=Sr(r),e=te(e,"emval::as"),ne(e,t,r)),B:(r,e,t,n,o)=>(r=ie[r])(e=Sr(e),e[t=ae(t)],n,o),a:Dr,Y:r=>0===r?Tr(se()):(r=ae(r),Tr(se()[r])),C:(r,e,t)=>{var n=((r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=te(p[e+4*n>>2],`parameter ${n}`);return t})(r,e),o=n.shift();r--;var a=new Array(r),i=`methodCaller<(${n.map(r=>r.name).join(", ")}) => ${o.name}>`;return(r=>{var e=ie.length;return ie.push(r),e})(Mr(i,(e,i,s,u)=>{for(var l=0,d=0;d<r;++d)a[d]=n[d].readValueFromPointer(u+l),l+=n[d].argPackAdvance;var c=1===t?Reflect.construct(i,a):i.apply(e,a);return ne(o,s,c)}))},n:(r,e)=>(r=Sr(r),e=Sr(e),Tr(r[e])),h:r=>{r>9&&(Pr[r+1]+=1)},D:()=>Tr([]),i:r=>Tr(ae(r)),s:r=>{var e=Sr(r);cr(e),Dr(r)},W:(r,e,t)=>{r=Sr(r),e=Sr(e),t=Sr(t),r[e]=t},m:(r,e)=>{var t=(r=te(r,"_emval_take_value")).readValueFromPointer(e);return Tr(t)},I:(r,e,t,n)=>{var o=(new Date).getFullYear(),a=new Date(o,0,1),i=new Date(o,6,1),s=a.getTimezoneOffset(),u=i.getTimezoneOffset(),l=Math.max(s,u);p[r>>2]=60*l,h[e>>2]=Number(s!=u);var d=r=>{var e=r>=0?"-":"+",t=Math.abs(r);return`UTC${e}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`},c=d(s),f=d(u);u<s?(Gr(c,t,17),Gr(f,n,17)):(Gr(c,n,17),Gr(f,t,17))},H:r=>{var e=c.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var o=e*(1+.2/n);o=Math.min(o,r+100663296);var a=Math.min(t,ue(Math.max(r,o),65536));if(le(a))return!0}return!1},K:(r,e)=>{var t=0,n=0;for(var o of ce()){var a=e+t;p[r+n>>2]=a,t+=Gr(o,a,1/0)+1,n+=4}return 0},L:(r,e)=>{var t=ce();p[r>>2]=t.length;var n=0;for(var o of t)n+=K(o)+1;return p[e>>2]=n,0},Q:(r,e)=>{(r=>{W||(t.onExit?.(r),_=!0),((r,e)=>{throw e})(0,new M(r))})(r)},u:function(r){try{var e=lr.getStreamFromFD(r);return sr.close(e),0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},M:function(r,e,t,n){try{var o=((r,e,t)=>{for(var n=0,o=0;o<t;o++){var a=p[e>>2],i=p[e+4>>2];e+=8;var s=sr.read(r,d,a,i,void 0);if(s<0)return-1;if(n+=s,s<i)break}return n})(lr.getStreamFromFD(r),e,t);return p[n>>2]=o,0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},J:function(r,e,t,n){e=(r=>r<-9007199254740992||r>9007199254740992?NaN:Number(r))(e);try{if(isNaN(e))return 61;var o=lr.getStreamFromFD(r);return sr.llseek(o,e,t),y[n>>3]=BigInt(o.position),o.getdents&&0===e&&0===t&&(o.getdents=null),0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},v:function(r,e,t,n){try{var o=((r,e,t)=>{for(var n=0,o=0;o<t;o++){var a=p[e>>2],i=p[e+4>>2];e+=8;var s=sr.write(r,d,a,i,void 0);if(s<0)return-1;if(n+=s,s<i)break}return n})(lr.getStreamFromFD(r),e,t);return p[n>>2]=o,0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},o:function(r,e){var t=$();try{return Br(r)(e)}catch(r){if(z(t),r!==r+0)throw r;Vr(1,0)}},k:function(r,e,t){var n=$();try{return Br(r)(e,t)}catch(r){if(z(n),r!==r+0)throw r;Vr(1,0)}},p:function(r,e,t,n){var o=$();try{return Br(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}},t:function(r,e,t,n,o){var a=$();try{return Br(r)(e,t,n,o)}catch(r){if(z(a),r!==r+0)throw r;Vr(1,0)}},F:function(r,e,t,n,o,a,i,s,u,l){var d=$();try{return Br(r)(e,t,n,o,a,i,s,u,l)}catch(r){if(z(d),r!==r+0)throw r;Vr(1,0)}},q:function(r){var e=$();try{Br(r)()}catch(r){if(z(e),r!==r+0)throw r;Vr(1,0)}},e:function(r,e){var t=$();try{Br(r)(e)}catch(r){if(z(t),r!==r+0)throw r;Vr(1,0)}},E:function(r,e,t,n){var o=$();try{Br(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}},f:function(r,e,t){var n=$();try{Br(r)(e,t)}catch(r){if(z(n),r!==r+0)throw r;Vr(1,0)}},g:function(r,e,t,n){var o=$();try{Br(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}}},ve=await async function(){function r(r,e){return ve=r.exports,l=ve.Z,A(),br=ve.aa,function(r){Ir=r.$,t._malloc=Ur=r.ba,t._free=Lr=r.ca,Vr=r.da,Hr=r.ea,qr=r.fa}(ve),T(),ve}S();var e={a:pe};return t.instantiateWasm?new Promise((n,o)=>{t.instantiateWasm(e,(e,t)=>{n(r(e))})}):(F??=function(r){return t.locateFile?t.locateFile(r,o):o+r}("lyr3DWorker.wasm"),function(e){return r(e.instance)}(await async function(r,e,t){if(!r&&"function"==typeof WebAssembly.instantiateStreaming)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(r){k(`wasm streaming compile failed: ${r}`),k("falling back to ArrayBuffer instantiation")}return async function(r,e){try{var t=await x(r);return await WebAssembly.instantiate(t,e)}catch(r){k(`failed to asynchronously prepare wasm: ${r}`),C(r)}}(e,t)}(i,F,e)))}();return function(){if(t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.shift()()}(),function r(){function e(){t.calledRun=!0,_||(b=!0,t.noFSInit||sr.initialized||sr.init(),ve._(),sr.ignorePermissions=!1,s?.(t),t.onRuntimeInitialized?.(),function(){if(t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)O(t.postRun.shift());N(R)}())}P>0?D=r:(function(){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)B(t.preRun.shift());N(j)}(),P>0?D=r:t.setStatus?(t.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>t.setStatus(""),1),e()},1)):e())}(),b?t:new Promise((r,e)=>{s=r,u=e})},o.exports=i,o.exports.default=i),u.exports);const d=function(r,e){for(var t=0;t<e.length;t++){const n=e[t];if("string"!=typeof n&&!Array.isArray(n))for(const e in n)if("default"!==e&&!(e in r)){const t=Object.getOwnPropertyDescriptor(n,e);t&&Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:()=>n[e]})}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,s.g)(l)},[l])},11053(r,e,t){t.d(e,{c:()=>n,g:()=>o});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof self?self:{};function o(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2369],{18768(e,t,i){i.d(t,{b:()=>o});var s=i(5482),r=i(53966),n=i(91429),l=i(60694);const o=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Jf)(e,r.A.getLogger(this)))}};return(0,s.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,s.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,s.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],i),i}},35982(e,t,i){i.d(t,{B:()=>a});var s=i(4576),r=i(36563),n=i(53966),l=i(74887),o=i(83027);class a{constructor(e,t,i,s,r={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._promise=(0,o.h)(e,{...r,schedule:s}).then(e=>{if(void 0===this._thread){this._thread=e,this._promise=null,r.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()}),this._promise.catch(t=>n.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const i={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(i),this._connectListener(i),(0,r.hA)(()=>{i.removed=!0,(0,s.TF)(this._listeners,i),this._thread&&null!=i.threadHandle&&i.threadHandle.remove()})}[Symbol.dispose](){this.destroy()}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null,this._listeners.length=0,this._transferLists={}}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,s){if(this._thread){const r=this._transferLists[e],n=r?r(t):[];return this._thread.invoke(e,t,{transferList:n,signal:i,jobPriority:s})}return this._promise?this._promise.then(()=>((0,l.Te)(i),this.invokeMethod(e,t,i))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(h):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then(t=>{e.removed||(e.threadHandle=t)})}}function h(){}},54239(e,t,i){i.d(t,{A:()=>m});var s,r=i(5482),n=i(4576),l=i(66552),o=i(25482),a=i(86211),h=i(67076),c=i(91429),u=i(43937),d=i(36005);const p=(0,l.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=p.jsonValues.slice();(0,n.Xy)(g,"orthometric");const v=(0,l.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=s=class extends o.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return p.write(e,t,i)}readHeightModel(e,t,i){return p.read(e)||(i?.messages&&i.messages.push(function(e,t){return new h.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return v.read(e)||(i?.messages&&i.messages.push(y(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,a.LA)(e)||v.read(e)||(i?.messages&&i.messages.push(y(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new s({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,a.k1)(t);return new s({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new s;return t.read(e,{origin:"web-scene"}),t}};function y(e,t){return new h.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,r.Cg)([(0,c.MZ)({type:p.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,r.Cg)([(0,u.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,r.Cg)([(0,d.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,r.Cg)([(0,c.MZ)({type:v.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:v.jsonValues,write:{writer:v.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,r.Cg)([(0,d.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,r.Cg)([(0,d.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,r.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,r.Cg)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=s=(0,r.Cg)([(0,c.$K)("esri.geometry.HeightModelInfo")],m)},62369(e,t,i){i.r(t),i.d(t,{default:()=>j});var s=i(5482),r=i(11254),n=i(49186),l=i(97768),o=i(25728),a=i(74887),h=i(84952),c=i(91429),u=i(54239),d=i(4146),p=i(89186),g=i(18768),v=i(16131),m=i(8303),y=i(10873),f=i(87378),w=i(35982);class M extends w.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,i){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},i):Promise.resolve(null)}release(){--this.ref<=0&&(S.forEach((e,t)=>{e===this&&S.delete(t)}),this.destroy())}}const S=new Map;var _=i(34727),x=i(19419),b=(i(44208),i(86211)),A=i(5443),C=i(86738),T=i(16930),k=i(21325),R=i(28735),L=i(91806),V=i(87045);class z{constructor(e){const t=z.checkUnsupported(e);if(null!=t)throw t;const i=e;this.spatialReference=i.spatialReference,this._isWebMercator=this.spatialReference.isWebMercator,this._isGCS=(0,k.EA)(this.spatialReference),this.origin=[i.origin.x,i.origin.y],this.pixelSize=i.size[0],this.dpi=i.dpi;const s=i.lods.reduce((e,t)=>(t.level<e.minLod.level&&(e.minLod=t),e.max=Math.max(e.max,t.level),e),{minLod:i.lods[0],max:-1/0}),r=s.minLod,n=2**r.level;let l=r.resolution*n,o=r.scale*n;this.levels=new Array(s.max+1);for(let e=0;e<this.levels.length;e++)this.levels[e]={resolution:l,scale:o,tileSize:[l*i.size[0],l*i.size[1]]},l/=2,o/=2}clone(){return new z(this.toTileInfo())}toTileInfo(){return new V.A({dpi:this.dpi,origin:new C.A({x:this.origin[0],y:this.origin[1],spatialReference:this.spatialReference}),size:[this.pixelSize,this.pixelSize],spatialReference:this.spatialReference,lods:this.levels.map((e,t)=>new L.A({level:t,scale:e.scale,resolution:e.resolution}))})}getExtent(e,t,i,s){const r=this.levels[e],n=r.tileSize[0],l=r.tileSize[1];s[0]=this.origin[0]+i*n,s[2]=this.origin[0]+(i+1)*n,s[3]=this.origin[1]-t*l,s[1]=this.origin[1]-(t+1)*l}convertExtentToRadians(e,t){this._isWebMercator?(t[0]=(0,R.yw)(e[0]),t[1]=(0,R.jg)(e[1]),t[2]=(0,R.yw)(e[2]),t[3]=(0,R.jg)(e[3])):this._isGCS&&(t[0]=(0,_.kU)(e[0]),t[1]=(0,_.kU)(e[1]),t[2]=(0,_.kU)(e[2]),t[3]=(0,_.kU)(e[3]))}getExtentGeometry(e,t,i,s=new A.A){return this.getExtent(e,t,i,U),s.spatialReference=this.spatialReference,s.xmin=U[0],s.ymin=U[1],s.xmax=U[2],s.ymax=U[3],s.zmin=void 0,s.zmax=void 0,s}ensureMaxLod(e){if(null==e)return!1;let t=!1;for(;this.levels.length<=e;){const{resolution:e,scale:i}=this.levels[this.levels.length-1],s=e/2*this.pixelSize;this.levels.push({resolution:e/2,scale:i/2,tileSize:[s,s]}),t=!0}return t}capMaxLod(e){this.levels.length>e+1&&(this.levels.length=e+1)}getMaxLod(){return this.levels.length-1}scaleAtLevel(e){return this.levels[0].scale/2**e}levelAtScale(e){const t=this.levels[0].scale;return e>=t?0:Math.log(t/e)*Math.LOG2E}resolutionAtLevel(e){return this.levels[0].resolution/2**e}compatibleWith(e,t=1/0){if(z.checkUnsupported(e))return!1;const i=new z(e);if(!i.spatialReference.equals(this.spatialReference))return!1;if(i.pixelSize!==this.pixelSize)return!1;const s=Math.min(this.levels.length-1,i.levels.length-1,t),r=this.levels[s].resolution;let n=.5*r;return!(!(0,_.Sp)(i.origin[0],this.origin[0],n)||!(0,_.Sp)(i.origin[1],this.origin[1],n))&&(n=.5*r/2**s/this.pixelSize*12,(0,_.Sp)(r,i.levels[s].resolution,n))}rootTilesInExtent(e,t=null,i=1/0){const s=new Array,r=this.levels[0].tileSize;if(null==e||0===r[0]||0===r[1])return s;z.computeRowColExtent(e,r,this.origin,U);let n=U[1],l=U[3],o=U[0],a=U[2];const h=a-o,c=l-n;if(h*c>i){const e=Math.floor(Math.sqrt(i));c>e&&(n=n+Math.floor(.5*c)-Math.floor(.5*e),l=n+e),h>e&&(o=o+Math.floor(.5*h)-Math.floor(.5*e),a=o+e)}for(let e=n;e<l;e++)for(let t=o;t<a;t++)s.push([0,e,t]);return null!=t&&(t[0]=this.origin[0]+o*r[0],t[1]=this.origin[1]-l*r[1],t[2]=this.origin[0]+a*r[0],t[3]=this.origin[1]-n*r[1]),s}static computeRowColExtent(e,t,i,s){const r=.001*(e[2]-e[0]+(e[3]-e[1]));s[0]=Math.max(0,Math.floor((e[0]+r-i[0])/t[0])),s[2]=Math.max(0,Math.ceil((e[2]-r-i[0])/t[0])),s[1]=Math.max(0,Math.floor((i[1]-e[3]+r)/t[1])),s[3]=Math.max(0,Math.ceil((i[1]-e[1]-r)/t[1]))}static isPowerOfTwo(e){const t=e.lods,i=t[0].resolution*2**t[0].level;return!t.some(e=>!(0,_.b6)(e.resolution,i/2**e.level))}static hasGapInLevels(e){const t=e.lods.map(e=>e.level);t.sort((e,t)=>e-t);for(let e=1;e<t.length;e++)if(t[e]!==t[0]+e)return!0;return!1}static tileSizeSupported(e){const t=e.size[1];return t===e.size[0]&&!(t&t-1)&&t>=128&&t<=512}static hasOriginPerLODs(e){const t=e.origin;return e.lods.some(e=>null!=e.origin&&(e.origin[0]!==t.x||e.origin[1]!==t.y))}static getMissingTileInfoError(){return new n.A("tilingscheme:tile-info-missing","Tiling scheme must have tiling information")}static checkUnsupported(e){return null==e?new n.A("tilingscheme:tile-info-missing","Tiling scheme must have tiling information"):e.lods.length<1?new n.A("tilingscheme:generic","Tiling scheme must have at least one level"):z.isPowerOfTwo(e)?z.hasGapInLevels(e)?new n.A("tilingscheme:gaps","Tiling scheme levels must not have gaps between min and max level"):z.tileSizeSupported(e)?z.hasOriginPerLODs(e)?new n.A("tilingscheme:multiple-origin","Tiling scheme levels must not have their own origin"):null:new n.A("tilingscheme:tile-size","Tiles must be square and size must be one of [128, 256, 512]"):new n.A("tilingscheme:power-of-two","Tiling scheme must be power of two")}static fromExtent(e,t){const i=e[2]-e[0],s=e[3]-e[1],r=(0,b.GA)(t),n=1.2*Math.max(i,s),l=n/256,o=l*r*(96/.0254),a=new z(new V.A({size:[256,256],origin:new C.A({x:e[0]-.5*(n-i),y:e[3]+.5*(n-s)}),lods:[new L.A({level:0,resolution:l,scale:o})],spatialReference:t}));return a.ensureMaxLod(20),a}static makeWebMercatorAuxiliarySphere(e){const t=new z(z.WebMercatorAuxiliarySphereTileInfo);return t.ensureMaxLod(e),t}static makeGCSWithTileSize(e,t=256,i=16){const s=256/t,r=new z(new V.A({size:[t,t],origin:new C.A({x:-180,y:90,spatialReference:e}),spatialReference:e,lods:[new L.A({level:0,resolution:.703125*s,scale:295497598.570834*s})]}));return r.ensureMaxLod(i),r}static{this.WebMercatorAuxiliarySphereTileInfo=new V.A({size:[256,256],origin:new C.A({x:-20037508.342787,y:20037508.342787,spatialReference:T.A.WebMercator}),spatialReference:T.A.WebMercator,lods:[new L.A({level:0,resolution:156543.03392800014,scale:591657527.591555})]})}static{this.WebMercatorAuxiliarySphere=z.makeWebMercatorAuxiliarySphere(19)}get test(){}}const U=(0,x.vt)(),D=(0,_.$8)(_.pq/10),O=(0,x.vt)();z.WebMercatorAuxiliarySphere.getExtent(0,0,0,O),(0,x.vt)([-180,-90,180,90]);var I=i(36005);let E=class extends((0,p.f)((0,g.b)((0,v.q)((0,m.A)((0,o.M)(d.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=S.get(e);return t||(null!=e?(t=new M(t=>e.immediate.schedule(t)),S.set(e,t)):(t=new M,S.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,l.Gz)(this._lercDecoder)}readCapabilities(e,t){const i=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return i?{operations:{supportsTileMap:i.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}readVersion(e,t){let i=t.currentVersion;return i||(i=9.3),i}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new n.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(a.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}fetchTile(e,t,i,s){const n=s?.signal,l={responseType:"array-buffer",signal:n},o={noDataValue:s?.noDataValue,returnFileInfo:!0};return this.load().then(()=>this._fetchTileAvailability(e,t,i,s)).then(()=>(0,r.A)(this.getTileUrl(e,t,i),l)).then(e=>this._lercDecoder.decode(e.data,o,n)).then(e=>new f.A(e?new f.A({values:e.pixelData,width:e.width,height:e.height,noDataValue:e.noDataValue}):{values:[],width:0,height:0,noDataValue:s?.noDataValue??D}))}getTileUrl(e,t,i){const s=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,r=(0,h.x0)({...this.parsedUrl.query,blankTile:!s&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${r?"?"+r:""}`}async queryElevation(e,t){const{query:s}=await i.e(91).then(i.bind(i,90091));return(0,a.Te)(t),s(this,e,t)}async createElevationSampler(e,t){const{createSampler:s}=await i.e(91).then(i.bind(i,90091));return(0,a.Te)(t),s(this,e,t)}_fetchTileAvailability(e,t,i,s){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,s):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await(0,r.A)(this.parsedUrl.path,t);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[Z]}};(0,s.Cg)([(0,c.MZ)({readOnly:!0})],E.prototype,"capabilities",void 0),(0,s.Cg)([(0,I.w)("service","capabilities",["capabilities"])],E.prototype,"readCapabilities",null),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"copyrightText"}}})],E.prototype,"copyright",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,type:u.A})],E.prototype,"heightModelInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],E.prototype,"path",void 0),(0,s.Cg)([(0,c.MZ)({type:["show","hide"]})],E.prototype,"listMode",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],E.prototype,"minScale",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],E.prototype,"maxScale",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],E.prototype,"opacity",void 0),(0,s.Cg)([(0,c.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],E.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,c.MZ)()],E.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],E.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)(y.OZ)],E.prototype,"url",void 0),(0,s.Cg)([(0,c.MZ)()],E.prototype,"version",void 0),(0,s.Cg)([(0,I.w)("version",["currentVersion"])],E.prototype,"readVersion",null),E=(0,s.Cg)([(0,c.$K)("esri.layers.ElevationLayer")],E);const Z=Symbol("default-fetch-tile");E.prototype.fetchTile[Z]=!0;const j=E},87378(e,t,i){i.d(t,{A:()=>o});var s,r=i(34275),n=i(56507);const l=Symbol("ElevationTileDataClass");class o{static{s=l}constructor({values:e,width:t,height:i,noDataValue:n}){this[s]=!0,this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,this.values=(0,r.vZ)(e)?e:new Float32Array(e),this.width=t,this.height=i,this.noDataValue=n}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let i=1/0,s=-1/0,r=!0;for(const n of t)n===e?this._hasNoDataValues=!0:(i=n<i?n:i,s=n>s?n:s,r=!1);r?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=s>-3e38?s:0)}static{this.from=(0,n.qf)(o)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9186,9397],{25943(e,t,i){i.d(t,{d:()=>_});var l,s=i(5482),r=i(11254),o=i(69622),n=i(49186),a=i(36563),c=(i(44208),i(66344)),h=i(15142),p=i(74887),u=i(36708),f=i(76030),d=i(84952),v=i(91429),m=i(72802),g=i(4718),w=i(69397),y=i(34275);class b{constructor(e){!function(e){if(!e?.location)throw new n.A("tilemap:missing-location","Location missing from tilemap response");if(!1===e.valid)throw new n.A("tilemap:invalid","Tilemap response was marked as invalid");if(!e.data)throw new n.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(e.data))throw new n.A("tilemap:data-mismatch","Data must be an array of numbers");if(e.data.length!==e.location.width*e.location.height)throw new n.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(e);const{location:t,data:i}=e;this.location=Object.freeze((0,g.o8)(t));const l=this.location.width,s=this.location.height;let r=!0,o=!0;const a=function(e,t=!1){return e<=y.y9?t?new Array(e).fill(0):new Array(e):new Uint32Array(e)}(Math.ceil(l*s/32));let c=0;for(let e=0;e<i.length;e++){const t=e%32;i[e]?(o=!1,a[c]|=1<<t):r=!1,31===t&&++c}o?(this._availability="unavailable",this.byteSize=40):r?(this._availability="available",this.byteSize=40):(this._availability=a,this.byteSize=40+(0,w.Qf)(a))}getAvailability(e,t){if("unavailable"===this._availability||"available"===this._availability)return this._availability;const i=(e-this.location.top)*this.location.width+(t-this.location.left),l=i%32,s=i>>5,r=this._availability;return s<0||s>r.length?"unknown":r[s]&1<<l?"available":"unavailable"}static fromDefinition(e,t){const i=e.service.request||r.A,{row:l,col:s,width:o,height:a}=e,c={query:{f:"json"}};return t=t?{...c,...t}:c,i(function(e){let t;if(e.service.tileServers?.length){const i=e.service.tileServers;t=`${i&&i.length?i[e.row%i.length]:e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}else t=`${e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`;const i=e.service.query;return i&&(t=`${t}?${i}`),t}(e),t).then(e=>e.data).catch(e=>{if(422===e?.details?.httpStatus)return{location:{top:l,left:s,width:o,height:a},valid:!0,data:new Array(o*a).fill(0)};throw e}).then(e=>{if(e.location&&(e.location.top!==l||e.location.left!==s||e.location.width!==o||e.location.height!==a))throw new n.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:e,definition:{top:l,left:s,width:o,height:a}});return b.fromJSON(e)})}static fromJSON(e){return Object.freeze(new b(e))}}function A(e){return`${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}function C(e,t,i){return new n.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i})}let _=class extends o.A{static{l=this}constructor(e){super(e),this._pendingTilemapRequests={},this.request=r.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new c.q(2097152),this.addHandles((0,u.wB)(()=>{const{layer:e}=this;return[e?.parsedUrl,e?.tileServers,e?.apiKey,e?.customParameters]},()=>this._initializeTilemapDefinition(),u.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(e,t,i){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return"unavailable";const l=this._tilemapFromCache(e,t,i,this._tmpTilemapDefinition);return l?l.getAvailability(t,i):"unknown"}fetchAvailability(e,t,i,l){return!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD?Promise.reject(C(e,t,i)):this._fetchTilemap(e,t,i,l).catch(e=>e).then(l=>{if(l instanceof b){const s=l.getAvailability(t,i);if("unavailable"===s)throw C(e,t,i);return s}if((0,p.zf)(l))throw l;return"unknown"})}fetchAvailabilityUpsample(e,t,i,l,s){l.level=e,l.row=t,l.col=i;const r=this.layer.tileInfo;r.updateTileInfo(l);const o=this.fetchAvailability(e,t,i,s).catch(e=>{if((0,p.zf)(e))throw e;if(r.upsampleTile(l))return this.fetchAvailabilityUpsample(l.level,l.row,l.col,l,s);throw e});return this._fetchAvailabilityUpsamplePrefetch(e,t,i,s,o),o}async _fetchAvailabilityUpsamplePrefetch(e,t,i,s,r){if(!this._prefetchingEnabled)return;const o=`prefetch-${e}-${t}-${i}`;if(this.hasHandles(o))return;const n=new AbortController;r.then(()=>n.abort(),()=>n.abort());let c=!1;const h=(0,a.hA)(()=>{c||(c=!0,n.abort())});if(this.addHandles(h,o),await(0,f.md)(10,n.signal).catch(()=>{}),c||(c=!0,this.removeHandles(o)),(0,p.G4)(n))return;const u=new m.U(e,t,i),d={...s,signal:n.signal},v=this.layer.tileInfo;for(let e=0;l._prefetches.length<l._maxPrefetch&&v.upsampleTile(u);++e){const e=this.fetchAvailability(u.level,u.row,u.col,d);l._prefetches.push(e);const t=()=>{l._prefetches.removeUnordered(e)};e.then(t,t)}}static{this._maxPrefetch=4}static{this._prefetches=new h.A({initialSize:l._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(e,t,i,l){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return Promise.reject(new n.A("tilemap-cache:level-unavailable",`Level ${e} is unavailable in the service`));const s=this._tmpTilemapDefinition,r=this._tilemapFromCache(e,t,i,s);if(r)return Promise.resolve(r);const o=l?.signal;return l={...l,signal:null},new Promise((e,t)=>{(0,p.u7)(o,()=>t((0,p.NK)()));const i=A(s);let r=this._pendingTilemapRequests[i];if(!r){r=b.fromDefinition(s,l).then(e=>(this._tilemapCache.put(i,e,e.byteSize),e));const e=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=r,r.then(e,e)}r.then(e,t)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;const{parsedUrl:e,apiKey:t,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:e.path,query:(0,d.x0)({...e.query,...i,token:t??e.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(e,t,i,l){l.level=e,l.row=t-t%this.size,l.col=i-i%this.size;const s=A(l);return this._tilemapCache.get(s)}get test(){}};(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"layer",void 0),(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"minLOD",void 0),(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"maxLOD",void 0),(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"request",void 0),(0,s.Cg)([(0,v.MZ)({constructOnly:!0})],_.prototype,"size",void 0),_=l=(0,s.Cg)([(0,v.$K)("esri.layers.support.TilemapCache")],_)},65509(e,t,i){i.d(t,{A:()=>r});var l=i(49186),s=i(74887);class r{constructor(e,t=0,i=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=i,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(i)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,i){const l=this.tileInfo?.lodAt(e);return!l||e<this.minLOD||e>this.maxLOD?"unavailable":l.cols&&l.rows?i>=l.cols[0]&&i<=l.cols[1]&&t>=l.rows[0]&&t<=l.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,i,r){await(0,s.NO)(r);const o=this.getAvailability(e,t,i);if("unavailable"===o)throw new l.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i});return o}async fetchAvailabilityUpsample(e,t,i,l,r){await(0,s.NO)(r),l.level=e,l.row=t,l.col=i;const o=this.tileInfo;return o.updateTileInfo(l),this.fetchAvailability(e,t,i,r).catch(e=>{if((0,s.zf)(e))throw e;if(o.upsampleTile(l))return this.fetchAvailabilityUpsample(l.level,l.row,l.col,l,r);throw e})}}},69397(e,t,i){i.d(t,{Qf:()=>a,Qh:()=>o,RS:()=>s,Ul:()=>f,lM:()=>r,qK:()=>h});var l=i(34275);const s=16;function r(e){if(!e)return 0;let t=h;for(const i in e)e.hasOwnProperty(i)&&(t+=n(e[i],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let i=p;for(let l=0;l<t;l++)i+=n(e[l]);return i}(e);let t=h;for(const i in e)e.hasOwnProperty(i)&&(t+=n(e[i]));return t}function n(e,t=!0){switch(typeof e){case"object":return t?o(e):h;case"string":return function(e){return 32+e.length}(e);case"number":return s;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,l.iu)(t)?t.byteLength+u:Array.isArray(t)?c(t,s):0:0),0)}function c(e,t){return p+e.length*t}const h=32,p=16,u=145,f=64},72802(e,t,i){i.d(t,{U:()=>s});var l=i(19419);class s{constructor(e,t,i,s=(0,l.vt)()){this._level=e,this._row=t,this._col=i,this.extent=s}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new s(e.level,e.row,e.col,e.extent)}}},87045(e,t,i){i.d(t,{A:()=>y});var l,s=i(5482),r=i(66552),o=i(25482),n=i(86211),a=i(91429),c=i(56507),h=i(86738),p=i(16930),u=i(21325),f=i(28735),d=i(91806),v=i(72802),m=i(36005),g=i(43937);const w=new r.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let y=class extends o.o{static{l=this}static create(e={}){const{resolutionFactor:t=1,scales:i,size:s=256,spatialReference:r=p.A.WebMercator,numLODs:o=24}=e;if(!(0,u.fn)(r)){const e=[];if(i)for(let t=0;t<i.length;t++){const l=i[t];e.push(new d.A({level:t,scale:l,resolution:l}))}else{let t=5e-4;for(let i=o-1;i>=0;i--)e.unshift(new d.A({level:i,scale:t,resolution:t})),t*=2}return new l({dpi:96,lods:e,origin:new h.A(0,0,r),size:[s,s],spatialReference:r})}const a=(0,u.Vp)(r),c=e.origin?new h.A({x:e.origin.x,y:e.origin.y,spatialReference:r}):new h.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:r}:{x:0,y:0,spatialReference:r}),f=1/(39.37*(0,n.GA)(r)*96),v=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],l=t*f;v.push(new d.A({level:e,scale:t,resolution:l}))}else{let e=(0,u.EA)(r)?512/s*591657527.5917094:256/s*591657527.591555;const i=Math.ceil(o/t);v.push(new d.A({level:0,scale:e,resolution:e*f}));for(let l=1;l<i;l++){const i=e/2**t,s=i*f;v.push(new d.A({level:l,scale:i,resolution:s})),e=i}}return new l({dpi:96,lods:v,origin:c,size:[s,s],spatialReference:r})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const i=(0,u.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return h.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const l=[],s=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{l.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,s[e.level]=e})),this._set("scales",l),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const i=Math.floor(e),l=i+1;return t[i]/(t[i]/t[l])**(e-i)}scaleToZoom(e){const t=this.scales,i=t.length-1;let l=0;for(;l<i;l++){const i=t[l],s=t[l+1];if(i<=e)return l;if(s===e)return l+1;if(i>e&&s<e)return l+Math.log(i/e)/Math.log(i/s)}return l}tileAt(e,t,i,l){const s=this.lodAt(e);if(!s)return null;let r,o;if("number"==typeof t)r=t,o=i;else if((0,u.aI)(t.spatialReference,this.spatialReference))r=t.x,o=t.y,l=i;else{const e=(0,f.Cv)(t,this.spatialReference);if(null==e)return null;r=e.x,o=e.y,l=i}const n=s.resolution*this.size[0],a=s.resolution*this.size[1];return l??=new v.U(0,0,0),l.level=e,l.row=Math.floor((this.origin.y-o)/a+.001),l.col=Math.floor((r-this.origin.x)/n+.001),this.updateTileInfo(l),l}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;const l=e.level-i.level,s=i.resolution*this.size[0]/2**l,r=i.resolution*this.size[1]/2**l;return e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*r,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+r,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const i=this.lodAt(t.level);if(null==i)return null;const{resolution:l}=i,s=l*this.size[0],r=l*this.size[1];return e[0]=this.origin.x+t.col*s,e[1]=this.origin.y-(t.row+1)*r,e[2]=e[0]+s,e[3]=e[1]+r,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return l.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const i=[],s=this.lods.length-t;for(let e=0;e<s;e++){const l=e+t,{scale:s,resolution:r}=l>=0?this.lods[l]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new d.A({level:e,scale:s,resolution:r}))}return new l({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const l=e[i];this._upsampleLevels[l.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/l.resolution:0},t=l}}};(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"dpi",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{read:w.read,write:w.write,origins:{"web-scene":{read:!1,write:!1}}}})],y.prototype,"format",void 0),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"isWrappable",null),(0,s.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],y.prototype,"origin",void 0),(0,s.Cg)([(0,m.w)("origin")],y.prototype,"readOrigin",null),(0,s.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],y.prototype,"lods",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"scales",void 0),(0,s.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],y.prototype,"size",void 0),(0,s.Cg)([(0,m.w)("size",["rows","cols"])],y.prototype,"readSize",null),(0,s.Cg)([(0,g.K)("size",{cols:{type:c.jz},rows:{type:c.jz}})],y.prototype,"writeSize",null),(0,s.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],y.prototype,"spatialReference",void 0),y=l=(0,s.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],y)},89186(e,t,i){i.d(t,{f:()=>h});var l=i(5482),s=i(91429),r=i(16930),o=i(87045),n=i(65509),a=i(25943),c=i(36005);const h=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,i){const l=t.capabilities?.includes("Tilemap");let{minLOD:s,maxLOD:r,minScale:c,maxScale:h}=t;if(null==s&&null==r&&(0!==c||0!==h)){const e=e=>Math.round(1e4*e)/1e4;c=e(c||t.tileInfo.lods[0].scale),h=e(h||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const i of t.tileInfo.lods){const t=e(i.scale);s=t>=c?i.level:s,r=t>=h?i.level:r}}if(l)return new a.d({layer:this,minLOD:s,maxLOD:r});if(t.tileInfo){const e=new o.A;return e.read(t.tileInfo,i),new n.A(e,s,r)}return null}};return(0,l.Cg)([(0,s.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,l.Cg)([(0,s.MZ)()],i.prototype,"minScale",void 0),(0,l.Cg)([(0,c.w)("service","minScale")],i.prototype,"readMinScale",null),(0,l.Cg)([(0,s.MZ)()],i.prototype,"maxScale",void 0),(0,l.Cg)([(0,c.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,l.Cg)([(0,s.MZ)({type:r.A})],i.prototype,"spatialReference",void 0),(0,l.Cg)([(0,s.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,l.Cg)([(0,s.MZ)({type:o.A})],i.prototype,"tileInfo",void 0),(0,l.Cg)([(0,s.MZ)()],i.prototype,"tilemapCache",void 0),(0,l.Cg)([(0,c.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,l.Cg)([(0,s.MZ)()],i.prototype,"version",void 0),i=(0,l.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}},91806(e,t,i){i.d(t,{A:()=>a});var l,s=i(5482),r=i(25482),o=i(91429),n=i(56507);let a=class extends r.o{static{l=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new l({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,s.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,s.Cg)([(0,o.MZ)({type:n.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,s.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,s.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,s.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,s.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=l=(0,s.Cg)([(0,o.$K)("esri.layers.support.LOD")],a)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9657],{8303(e,t,r){r.d(t,{A:()=>b});var i=r(5482),s=r(92602),o=r(70333),l=r(11254),n=r(60999),a=r(49186),u=r(53966),h=r(97768),p=r(74887),c=r(84952),y=r(91429),d=r(77548),g=r(20655),m=r(80812),f=r(41318),S=r(10407),w=r(36005),C=r(43937);const b=e=>{const t=e;let b=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!o.id?.findCredential(this.url),s=e===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let l,n;if(s)l=r.portal.url;else try{l=await(0,d.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!l||!(0,c.b8)(l,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;n=await(o.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,h=!1;if(!n)return{features:{edit:a,fullEdit:u},content:{updateItem:h}};try{if(s?await r.reload():(r=new m.default({id:e,portal:{url:l}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(e,t){const r=(0,S.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=v.credential===t?v.user:await this._fetchEditingUser(e);return v.credential=t,v.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=g.A.getDefault();if(s&&s.loaded&&(0,c.S8)(s.restUrl)===(0,c.S8)(i))return s.user;const a=`${i}/community/self`,u=null!=e?e.signal:null,h=await(0,n.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?f.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return r&&i&&!(0,c.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,y.MZ)({type:m.default})],b.prototype,"portalItem",null),(0,i.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],b.prototype,"readPortalItem",null),(0,i.Cg)([(0,C.K)("web-document","portalItem",{itemId:{type:String}})],b.prototype,"writePortalItem",null),(0,i.Cg)([(0,y.MZ)({clonable:!1})],b.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasUpdateItemPrivileges",void 0),b=(0,i.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],b),b},v={credential:null,user:null}},10407(e,t,r){r.d(t,{It:()=>y,LG:()=>l,OM:()=>u,Sm:()=>h,Y:()=>n,bK:()=>a,mm:()=>c,sQ:()=>p});var i=r(91218),s=r(16930),o=r(28735);function l(e,t){if(!n(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function n(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return n(e,c.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function h(e,t,r){r?l(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const r=s.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const c={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function y(e){const{portal:t,isOrgItem:r,itemControl:i}=e,s=t.user?.privileges;let o=!s||s.includes("features:user:edit"),l=!!r&&!!s?.includes("features:user:fullEdit");const n="update"===i||"admin"===i;return n?l=o=!0:l&&(o=!0),{features:{edit:o,fullEdit:l},content:{updateItem:n}}}},20378(e,t,r){r.d(t,{A:()=>p});var i=r(5482),s=r(68197),o=r(66552),l=r(25482),n=r(91429),a=r(36005);const u=new o.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let h=0,p=class extends l.o{constructor(e){super(e),this.id="sym"+h++,this.type=null,this.color=new s.A([0,0,0,1])}readColor(e){return null!=e?.[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,i.Cg)([(0,n.MZ)({type:u.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:u.write,isRequired:!0}}})],p.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:s.A,json:{write:{allowNull:!0}}})],p.prototype,"color",void 0),(0,i.Cg)([(0,a.w)("color")],p.prototype,"readColor",null),p=(0,i.Cg)([(0,n.$K)("esri.symbols.Symbol")],p)},31593(e,t,r){r.d(t,{A:()=>b});var i=r(5482),s=r(66552),o=r(4718),l=r(90629),n=r(91429),a=r(20378),u=r(93223);let h=class extends a.A{constructor(e){super(e),this.type="simple-line"}get width(){return this._get("width")??.75}set width(e){this._set("width",e)}hash(){return`${this.type}.${this.width}`}};(0,i.Cg)([(0,u.e)({esriSLS:"simple-line"},{readOnly:!0})],h.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],h.prototype,"width",null),h=(0,i.Cg)([(0,n.$K)("esri.symbols.LineSymbol")],h);var p,c=r(68197),y=r(25482),d=r(83213),g=r(43937),m=r(36005);let f=p=class extends y.o{constructor(e){super(e),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(e,t,r,i){t[r]="web-map"===i?.origin?"arrow":e}set color(e){this._set("color",e)}readColor(e){return null!=e?.[0]?[e[0],e[1],e[2],e[3]/255]:e}writeColor(e,t,r,i){"web-map"===i?.origin||(t[r]=e)}clone(){return new p({color:(0,o.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,i.Cg)([(0,n.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],f.prototype,"placement",void 0),(0,i.Cg)([(0,u.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,n.MZ)({json:{origins:{"web-map":{write:!1}}}})],f.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:d.z})],f.prototype,"style",void 0),(0,i.Cg)([(0,g.K)("style")],f.prototype,"writeStyle",null),(0,i.Cg)([(0,n.MZ)({type:c.A,value:null,json:{write:{allowNull:!0}}})],f.prototype,"color",null),(0,i.Cg)([(0,m.w)("color")],f.prototype,"readColor",null),(0,i.Cg)([(0,g.K)("color")],f.prototype,"writeColor",null),f=p=(0,i.Cg)([(0,n.$K)("esri.symbols.LineSymbolMarker")],f);const S=f;var w;const C=new s.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let b=w=class extends h{constructor(...e){super(...e),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(e,t,r,i,s,o){if(e&&"string"!=typeof e)return e;const n={};return null!=e&&(n.style=e),null!=t&&(n.color=t),null!=r&&(n.width=(0,l.cr)(r)),null!=i&&(n.cap=i),null!=s&&(n.join=s),null!=o&&(n.miterLimit=(0,l.cr)(o)),n}clone(){return new w({color:(0,o.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,i.Cg)([(0,u.e)({esriSLS:"simple-line"},{readOnly:!0})],b.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:C.apiValues,json:{read:C.read,write:C.write}})],b.prototype,"style",void 0),(0,i.Cg)([(0,n.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(e,t,r)=>({enabled:"round"!==e&&null==r?.origin})}}})],b.prototype,"cap",void 0),(0,i.Cg)([(0,n.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(e,t,r)=>({enabled:"round"!==e&&null==r?.origin})}}})],b.prototype,"join",void 0),(0,i.Cg)([(0,n.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":S}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],b.prototype,"marker",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{read:!1,write:!1}})],b.prototype,"miterLimit",void 0),b=w=(0,i.Cg)([(0,n.$K)("esri.symbols.SimpleLineSymbol")],b)},53930(e,t,r){r.d(t,{A:()=>g});var i,s=r(5482),o=r(68197),l=r(66552),n=r(4718),a=r(90629),u=r(91429),h=r(89420),p=r(31593),c=r(43937),y=r(93223);const d=new l.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let g=i=class extends h.A{constructor(...e){super(...e),this.color=new o.A([255,255,255,.25]),this.type="simple-marker",this.style="circle",this.outline=new p.A}normalizeCtorArgs(e,t,r,i){if(e&&"string"!=typeof e)return e;const s={};return e&&(s.style=e),null!=t&&(s.size=(0,a.cr)(t)),r&&(s.outline=r),i&&(s.color=i),s}writeColor(e,t){e&&"x"!==this.style&&"cross"!==this.style&&(t.color=e.toJSON()),null===e&&(t.color=null)}get size(){return this._get("size")??12}set size(e){this._set("size",e)}set path(e){this.style="path",this._set("path",e)}clone(){return new i({angle:this.angle,color:(0,n.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,s.Cg)([(0,u.MZ)({type:o.A})],g.prototype,"color",void 0),(0,s.Cg)([(0,c.K)("color")],g.prototype,"writeColor",null),(0,s.Cg)([(0,y.e)({esriSMS:"simple-marker"},{readOnly:!0})],g.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)()],g.prototype,"size",null),(0,s.Cg)([(0,u.MZ)({type:d.apiValues,json:{read:d.read,write:d.write}})],g.prototype,"style",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],g.prototype,"path",null),(0,s.Cg)([(0,u.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":p.A}},json:{default:null,write:!0}})],g.prototype,"outline",void 0),g=i=(0,s.Cg)([(0,u.$K)("esri.symbols.SimpleMarkerSymbol")],g)},58592(e,t,r){r.d(t,{A:()=>c});var i,s=r(5482),o=r(4718),l=r(90629),n=r(91429),a=r(89420),u=r(77040),h=r(93223),p=r(36005);let c=i=class extends a.A{constructor(...e){super(...e),this.color=null,this.type="picture-marker",this.url=null,this.source=null}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e&&null==e.imageData)return e;const i={};return e&&(i.url=e),null!=t&&(i.width=(0,l.cr)(t)),null!=r&&(i.height=(0,l.cr)(r)),i}get height(){return this._get("height")??12}set height(e){this._set("height",e)}readHeight(e,t){return t.size||e}get width(){return this._get("width")??12}set width(e){this._set("width",e)}readWidth(e,t){return t.size||e}get size(){return this._get("size")??null}set size(e){this._set("size",e)}clone(){const e=new i({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return e._set("source",(0,o.o8)(this.source)),e}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,s.Cg)([(0,n.MZ)({json:{write:!1}})],c.prototype,"color",void 0),(0,s.Cg)([(0,h.e)({esriPMS:"picture-marker"},{readOnly:!0})],c.prototype,"type",void 0),(0,s.Cg)([(0,n.MZ)(u.ku)],c.prototype,"url",void 0),(0,s.Cg)([(0,n.MZ)(u.k7)],c.prototype,"source",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],c.prototype,"height",null),(0,s.Cg)([(0,p.w)("height",["height","size"])],c.prototype,"readHeight",null),(0,s.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],c.prototype,"width",null),(0,s.Cg)([(0,n.MZ)({json:{write:!1}})],c.prototype,"size",null),c=i=(0,s.Cg)([(0,n.$K)("esri.symbols.PictureMarkerSymbol")],c)},60999(e,t,r){r.d(t,{DZ:()=>d,Ke:()=>y,Tj:()=>h,UT:()=>g,aD:()=>f,jJ:()=>u});var i=r(5482),s=r(69622),o=r(97768),l=r(74887),n=r(10107),a=r(64108);function u(e,t,r){return(0,l.Lx)(e.map((e,i)=>t.apply(r,[e,i])))}async function h(e,t,r){return(await(0,l.Lx)(e.map((e,i)=>t.apply(r,[e,i])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function c(e){return{ok:!1,error:e}}async function y(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return c(e)}}async function d(e){try{return p(await e)}catch(e){return(0,l.QP)(e),c(e)}}function g(e,t){return new m(e,t)}let m=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,o.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=c(e),this._cleanup()}),this._abortHandle=(0,l.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,o.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,n.MZ)()],m.prototype,"value",null),(0,i.Cg)([(0,n.MZ)()],m.prototype,"error",null),(0,i.Cg)([(0,n.MZ)()],m.prototype,"finished",null),(0,i.Cg)([(0,n.MZ)()],m.prototype,"promise",void 0),(0,i.Cg)([(0,n.MZ)()],m.prototype,"_result",void 0),m=(0,i.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],m);class f{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}}},63201(e,t,r){r.r(t),r.d(t,{default:()=>I});var i=r(5482),s=r(92602),o=r(11254),l=r(25728),n=r(74887),a=r(84952),u=r(91429),h=r(5443),p=r(21325),c=r(4146),y=r(63074),d=r(16131),g=r(8303),m=r(54310),f=r(25036),S=r(10873),w=r(58592),C=r(94985),b=r(31593),v=r(53930),M=r(20378),_=r(36005);const A=["atom","xml"],P={base:M.A,key:"type",typeMap:{"simple-line":b.A},errorContext:"symbol"},$={base:M.A,key:"type",typeMap:{"picture-marker":w.A,"simple-marker":v.A},errorContext:"symbol"},D={base:M.A,key:"type",typeMap:{"simple-fill":C.A},errorContext:"symbol"};let E=class extends((0,y.dM)((0,m.J)((0,d.q)((0,g.A)((0,f.j)((0,l.M)(c.A))))))){constructor(...e){super(...e),this.description=null,this.fullExtent=null,this.legendEnabled=!0,this.lineSymbol=null,this.pointSymbol=null,this.polygonSymbol=null,this.operationalLayerType="GeoRSS",this.url=null,this.type="geo-rss"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readFeatureCollections(e,t){return t.featureCollection.layers.forEach(e=>{const t=e.layerDefinition.drawingInfo.renderer.symbol;t&&"esriSFS"===t.type&&t.outline?.style.includes("esriSFS")&&(t.outline.style="esriSLSSolid")}),t.featureCollection.layers}get hasPoints(){return this._hasGeometry("esriGeometryPoint")}get hasPolylines(){return this._hasGeometry("esriGeometryPolyline")}get hasPolygons(){return this._hasGeometry("esriGeometryPolygon")}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,a.e7)(this.url,A)||"GeoRSS":e}set title(e){this._set("title",e)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service","Feature Service","Feature Collection","Scene Service"]},e).catch(n.QP).then(()=>this._fetchService(t)).then(e=>{this.read(e,{origin:"service"})})),Promise.resolve(this)}async hasDataChanged(){const e=await this._fetchService();return this.read(e,{origin:"service",ignoreDefaults:!0}),!0}async _fetchService(e){const t=this.spatialReference,{data:r}=await(0,o.A)(s.A.geoRSSServiceUrl,{query:{url:this.url,refresh:!!this.loaded||void 0,outSR:(0,p.oT)(t)?void 0:t.wkid??JSON.stringify(t)},signal:e});return r}_hasGeometry(e){return this.featureCollections?.some(t=>t.featureSet?.geometryType===e&&t.featureSet.features?.length>0)??!1}};(0,i.Cg)([(0,u.MZ)()],E.prototype,"description",void 0),(0,i.Cg)([(0,u.MZ)()],E.prototype,"featureCollections",void 0),(0,i.Cg)([(0,_.w)("service","featureCollections",["featureCollection.layers"])],E.prototype,"readFeatureCollections",null),(0,i.Cg)([(0,u.MZ)({type:h.A,json:{name:"lookAtExtent"}})],E.prototype,"fullExtent",void 0),(0,i.Cg)([(0,u.MZ)(S.id)],E.prototype,"id",void 0),(0,i.Cg)([(0,u.MZ)(S.fV)],E.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,u.MZ)({types:P,json:{write:!0}})],E.prototype,"lineSymbol",void 0),(0,i.Cg)([(0,u.MZ)({type:["show","hide"]})],E.prototype,"listMode",void 0),(0,i.Cg)([(0,u.MZ)({types:$,json:{write:!0}})],E.prototype,"pointSymbol",void 0),(0,i.Cg)([(0,u.MZ)({types:D,json:{write:!0}})],E.prototype,"polygonSymbol",void 0),(0,i.Cg)([(0,u.MZ)({type:["GeoRSS"]})],E.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,u.MZ)(S.OZ)],E.prototype,"url",void 0),(0,i.Cg)([(0,u.MZ)({json:{origins:{service:{read:{source:"name",reader:e=>e||void 0}}}}})],E.prototype,"title",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1},value:"geo-rss"})],E.prototype,"type",void 0),E=(0,i.Cg)([(0,u.$K)("esri.layers.GeoRSSLayer")],E);const I=E},65851(e,t,r){r.d(t,{A:()=>n});var i=r(5482),s=r(91429),o=r(31593),l=r(20378);let n=class extends l.A{constructor(e){super(e),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,i.Cg)([(0,s.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":o.A}},json:{default:null,write:!0}})],n.prototype,"outline",void 0),(0,i.Cg)([(0,s.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],n.prototype,"type",void 0),n=(0,i.Cg)([(0,s.$K)("esri.symbols.FillSymbol")],n)},68197(e,t,r){r.d(t,{A:()=>u});var i=r(40876),s=r(4576),o=r(34727),l=r(56507);function n(e){return(0,o.qE)((0,l.Vr)(e),0,255)}function a(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class u{static blendColors(e,t,r,i=new u){return i.r=Math.round(e.r+(t.r-e.r)*r),i.g=Math.round(e.g+(t.g-e.g)*r),i.b=Math.round(e.b+(t.b-e.b)*r),i.a=e.a+(t.a-e.a)*r,i._sanitize()}static fromRgb(e,t){const r=(0,i.lT)(e);return r?u.fromArray(r,t):null}static fromHex(e,t=new u){const r=(0,i.oW)(e);return r?u.fromArray(r,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,i.Eq)(e);return r?u.fromArray(r,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,s.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,s=4===r||8===r,o=`#${a(this.r,i)}${a(this.g,i)}${a(this.b,i)}${s?a(Math.round(255*this.a),i):""}`;return t?o.toUpperCase():o}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=n(this.r),r=n(this.g),i=n(this.b);return 0===e||1!==this.a?[t,r,i,n(255*this.a)]:[t,r,i]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}u.prototype.declaredClass="esri.Color"},77040(e,t,r){r.d(t,{k7:()=>n,ku:()=>l});var i=r(84952),s=r(97159);function o(e,t){if(!(0,i.oP)(e)){const r=function(e){if(!e)return null;const{origin:t,layer:r}=e;if("service"!==t&&"portal-item"!==t)return null;const i=r?.type;return"feature"===i||"stream"===i?r.parsedUrl?.path:"map-image"===i||"tile"===i?e.url?.path:null}(t);if(r)return(0,i.fj)(r,"images",e)}return(0,s.f)(e,t)}const l={json:{read:{source:["imageData","url"],reader:function(e,t,r){return t.imageData?(0,i.Hg)({mediaType:t.contentType||"image/png",isBase64:!0,data:t.imageData}):o(t.url,r)}},write:{writer(e,t,r,o){!function(e,t,r,o){if((0,i.DB)(e)){const l=(0,i.r$)(e);if(!l)return;t.contentType=l.mediaType,t.imageData=l.data,r&&r.imageData===t.imageData&&r.url&&(0,s.w)(r.url,t,"url",o)}else(0,s.w)(e,t,"url",o)}(e,t,this.source,o)}}}},n={readOnly:!0,json:{read:{source:["imageData","url"],reader(e,t,r){const i={};return t.imageData&&(i.imageData=t.imageData),t.contentType&&(i.contentType=t.contentType),t.url&&(i.url=o(t.url,r)),i}}}}},78553(e,t,r){r.d(t,{D:()=>o,p:()=>s});var i=r(56507);function s(e){const t=(0,i.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function o(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},83213(e,t,r){r.d(t,{x:()=>i,z:()=>s});const i=["begin","end","begin-end"],s=["arrow","circle","square","diamond","cross","x"]},89420(e,t,r){r.d(t,{A:()=>a});var i=r(5482),s=r(90629),o=r(91429),l=r(56507),n=r(20378);let a=class extends n.A{constructor(e){super(e),this.angle=0,this.type=null}get xoffset(){return this._get("xoffset")??0}set xoffset(e){this._set("xoffset",e)}get yoffset(){return this._get("yoffset")??0}set yoffset(e){this._set("yoffset",e)}get size(){return this._get("size")??9}set size(e){this._set("size",e)}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,i.Cg)([(0,o.MZ)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],a.prototype,"angle",void 0),(0,i.Cg)([(0,o.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],a.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,cast:s.cr,json:{write:!0}})],a.prototype,"xoffset",null),(0,i.Cg)([(0,o.MZ)({type:Number,cast:s.cr,json:{write:!0}})],a.prototype,"yoffset",null),(0,i.Cg)([(0,o.MZ)({cast:e=>"auto"===e?e:(0,l.GB)((0,s.cr)(e)),json:{write:!0}})],a.prototype,"size",null),a=(0,i.Cg)([(0,o.$K)("esri.symbols.MarkerSymbol")],a)},94985(e,t,r){r.d(t,{A:()=>y});var i,s=r(5482),o=r(68197),l=r(66552),n=r(4718),a=r(91429),u=r(65851),h=r(31593),p=r(93223);const c=new l.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let y=i=class extends u.A{constructor(...e){super(...e),this.color=new o.A([0,0,0,.25]),this.outline=new h.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e)return e;const i={};return e&&(i.style=e),t&&(i.outline=t),r&&(i.color=r),i}clone(){return new i({color:(0,n.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,s.Cg)([(0,a.MZ)({type:o.A})],y.prototype,"color",void 0),(0,s.Cg)([(0,a.MZ)()],y.prototype,"outline",void 0),(0,s.Cg)([(0,p.e)({esriSFS:"simple-fill"},{readOnly:!0})],y.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)({type:c.apiValues,json:{read:c.read,write:c.write}})],y.prototype,"style",void 0),y=i=(0,s.Cg)([(0,a.$K)("esri.symbols.SimpleFillSymbol")],y)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,2109],{926(e,t,i){i.d(t,{Dd:()=>d,Jn:()=>f,Qc:()=>p,getApiKey:()=>c,getSessionToken:()=>h});var s=i(92602),n=i(11254),r=i(84952);const o=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,a=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),l=new Map;let u=null;function c(e){if(!p(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),i=s.A.apiKeys;if(Array.isArray(i.scopes))for(const e of i.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return i.basemapStyles&&o.test(e)?i.basemapStyles:s.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?s.A.apiKey:null}async function h(e){if(!s.A.sessions?.basemap?.enabled||!o.test(e))return null;const t=c(e);if(!t)return null;u&&await u;const{styleFamily:i="arcgis",autoRefresh:r,duration:a=43200}=s.A.sessions.basemap,h=`${t}:${i}`,d=l.get(h);if(d&&(!r||d.endTime>Date.now()))return d.sessionToken;let f;u=(0,n.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:a,styleFamily:i,token:t}});try{f=(await u).data,f.endTime-=5e3,l.set(h,f)}finally{u=null}return f.sessionToken}function d(){return null!=s.A.apiKey||null!=s.A.apiKeys.basemapStyles}function f(e,t){return t?p(e):null!=c(e)}function p(e){const t=(0,r.$z)(e,!0);return!!t&&!a.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},2272(e,t,i){i.d(t,{Dl:()=>u,gf:()=>h,jV:()=>l,lF:()=>c});var s=i(92602),n=i(70333),r=i(4718),o=i(84952),a=i(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,r.o8)(e)}function c(e,t,i){const s={};for(const n in e){if("declaredClass"===n)continue;const r=e[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r))s[n]=r.map(e=>c(e));else if("object"==typeof r)if(r.toJSON){const e=r.toJSON(i?.[n]);s[n]=t?e:JSON.stringify(e)}else s[n]=t?r:JSON.stringify(r);else s[n]=r}return s}async function h(e,t,r){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??n.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!n.id&&s.A.request.useIdentity&&await Promise.all([i.e(7632),i.e(4476),i.e(148)]).then(i.bind(i,50148));const l=await n.id.getCredential(e,r);return l?.token}},6518(e,t,i){i.d(t,{F:()=>a});var s=i(44208),n=i(75503),r=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.wq(9,(0,s.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((i,s)=>{e[t++]=s}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},14607(e,t,i){i.d(t,{B:()=>u,GP:()=>a,qg:()=>c});var s=i(799),n=i(73444);const r={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,n.JK)()){let t=(e=e.toLowerCase())in r;if(!t){const i=e.split("-");i.length>1&&i[0]in r&&(e=i[0],t=!0),t||(e="en")}const[i,s,o="#,##0.###"]=r[e];return{decimal:i,group:s,pattern:o}}function a(e,t){const i=o((t={...t}).locale);t.customs=i;const s=t.pattern||i.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,i){const s=(i=i||{}).customs.group,n=i.customs.decimal,r=t.split(";"),o=r[0];if((t=r[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,u=o.match(a);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===i.fractional&&(i.places=0),t.replace(a,function(e,t,i){!0===(i=i||{}).places&&(i.places=0),i.places===1/0&&(i.places=6);const s=t.split("."),n="string"==typeof i.places&&i.places.indexOf(",");let r=i.places;n?r=i.places.slice(n+1):+r>=0||(r=(s[1]||[]).length),i.round<0||(e=Number(e.toFixed(Number(r))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(s[1]||i.places){n&&(i.places=i.places.slice(0,Math.max(0,n)));const e=void 0!==i.places?i.places:s[1]&&s[1].lastIndexOf("0")+1;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+r<a.length&&(o[1]=a.slice(0,Math.max(0,Number(r))))}else o[1]&&o.pop();const l=s[0].replace(",","");let u=l.indexOf("0");-1!==u&&(u=l.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),l.includes("#")||(o[0]=o[0].slice(-u)));let c,h,d=s[0].lastIndexOf(",");if(-1!==d){c=s[0].length-d-1;const e=s[0].slice(0,d);d=e.lastIndexOf(","),-1!==d&&(h=e.length-d-1)}const f=[];for(let e=o[0];e;){const t=e.length-c;f.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",h&&(c=h,h=void 0)}return o[0]=f.reverse().join(i.group||","),o.join(i.decimal||".")}(e,u[0],{decimal:n,group:s,places:i.places,round:i.round}))}(e,s,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),i=e.pattern||t.pattern,n=t.group,r=t.decimal;let a=1;if(i.includes("%"))a/=100;else if(i.includes("‰"))a/=1e3;else if(i.includes("¤"))throw new Error("currency notation not supported");const u=i.split(";");1===u.length&&u.push("-"+u[0]);const c=d(u,t=>(t="(?:"+(0,s.Cj)(t,".")+")").replace(l,t=>{const i={signed:!1,separator:e.strict?n:[n,""],fractional:e.fractional,decimal:r,exponent:!1},s=t.split(".");let o=e.places;1===s.length&&1!==a&&(s[1]="###"),1===s.length||0===o?i.fractional=!1:(void 0===o&&(o=e.pattern?s[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(i.fractional=!0),!e.places&&+o<s[1].length&&(o+=","+s[1].length),i.places=o);const l=s[0].split(",");return l.length>1&&(i.groupSize=l.pop().length,l.length>1&&(i.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=h(e),i=d(e.fractional,t=>{let i="";return t&&0!==e.places&&(i="\\"+e.decimal,e.places===1/0?i="(?:"+i+"\\d+)?":i+="\\d{"+e.places+"}"),i},!0);let s=t+i;return i&&(s="(?:(?:"+s+")|(?:"+i+"))"),s+d(e.exponent,t=>t?"([eE]"+h({signed:e.eSigned})+")":"")}(i)+")"}),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:n,decimal:r,factor:a}}function c(e,t){const i=u(t),s=new RegExp("^"+i.regexp+"$").exec(e);if(!s)return NaN;let n=s[1];if(!s[1]){if(!s[2])return NaN;n=s[2],i.factor*=-1}return n=n.replaceAll(new RegExp("["+i.group+"\\s\\xa0]","g"),"").replace(i.decimal,"."),Number(n)*i.factor}function h(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",d(e.signed,e=>e?"[-+]":"",!0)+d(e.separator,t=>{if(!t)return"(?:\\d+)";" "===(t=(0,s.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const i=e.groupSize,n=e.groupSize2;if(n){const e="(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*["+t+"]\\d{"+i+"})";return i-n>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(i-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*)"},!0)}const d=(e,t,i)=>{if(!Array.isArray(e))return t(e);const s=[];for(let i=0;i<e.length;i++)s.push(t(e[i]));return f(s.join("|"),Boolean(i))},f=(e,t)=>"("+(t?"?:":"")+e+")"},25209(e,t,i){i.r(t),i.d(t,{default:()=>$});var s=i(11254),n=i(60999),r=i(67482),o=i(49186),a=i(53966),l=i(74887),u=i(84952),c=i(91218),h=i(16930),d=i(21325),f=i(28735),p=i(43334),m=i(92722),y=i(83221),g=i(31464),_=i(56390),x=i(14607),b=i(30524),S=i(54625);const v=/^\s*"([\S\s]*)"\s*$/,I=/""/g,w=[","," ",";","|","\t"];function*F(e,t,i){let s=0;for(;s<=e.length;){const n=e.indexOf(t,s),r=e.slice(s,n>-1?n:void 0);s+=r.length+t.length,i&&!r.trim()||(yield r)}}function M(e){const t=e.includes("\r\n")?"\r\n":"\n";return F(e,t,!0)}function B(e,t){return F(e,t,!1)}function A(e,t,i){e=e.trim(),t=t?.trim();const s=[],n=Array.from(new Set([i?.delimiter,...w])).filter(e=>null!=e);for(const i of n){const n=N(e,i).length,r=N(t,i).length??n;n>1&&s.push({weight:Math.min(n,r),delimiter:i})}const r=s.sort(({weight:e},{weight:t})=>t-e).map(({delimiter:e})=>e);for(const t of r){const s=T(e,t).names,n=(0,S.i_)(s,i?.longitudeField,i?.latitudeField);if(n.longitudeFieldName&&n.latitudeFieldName)return{delimiter:t,locationInfo:n}}return{delimiter:r[0],locationInfo:null}}function*z(e,t,i,s=()=>Object.create(null)){const n=M(e);n.next();let r="",o="",a=0,l=s(),u=0;e:for(const e of n){const n=B(e,i);for(const e of n)if(r+=o+e,o="",a+=E(e),a%2==0){if(a>0){const e=v.exec(r);if(!e){l=s(),u=0,r="",a=0;continue e}l[t[u]]=e[1].replaceAll(I,'"'),u++}else l[t[u]]=r,u++;r="",a=0}else o=i;0===a?(yield l,l=s(),u=0):o="\n"}}function T(e,t){const i=N(e,t).filter(e=>null!=e),s=i.map(e=>(0,b.rS)(e));for(let e=s.length-1;e>=0;e--)s[e]||(s.splice(e,1),i.splice(e,1));return{names:s,aliases:i}}function N(e,t){if(!e?.length)return[];const i=[];let s="",n="",r=0;const o=B(e,t);for(const e of o)if(s+=n+e,n="",r+=E(e),r%2==0){if(r>0){const e=v.exec(s);e&&i.push(e[1].replaceAll(I,'"'))}else i.push(s);s="",r=0}else n=t;return i}function E(e){let t=0,i=0;for(i=e.indexOf('"',i);i>=0;)t++,i=e.indexOf('"',i+1);return t}function C(e,t,i,s,n){const r=[],o=z(e,i,t),a=[];for(const e of o){if(10===a.length)break;a.push(e)}for(let e=0;e<i.length;e++){const t=i[e],o=s[e];if(t===n.longitudeFieldName||t===n.latitudeFieldName)r.push({name:t,type:"esriFieldTypeDouble",alias:o});else{let e;switch(O(a.map(e=>e[t]))){case"integer":e="esriFieldTypeInteger";break;case"double":e="esriFieldTypeDouble";break;case"date":e="esriFieldTypeDate";break;default:e="esriFieldTypeString"}r.push({name:t,type:e,alias:o,length:(0,b._b)(e)})}}return r}function O(e){if(!e.length)return"string";const t=/[^+\-.,0-9]/;return e.map(e=>{if(""!==e){if(!t.test(e)){let t=k(e);if(!isNaN(t))return/[.,]/.test(e)||!Number.isInteger(t)||t>214783647||t<-214783648?"double":"integer";if(e.includes("E")){if(t=Number(e),!Number.isNaN(t))return"double";if(e.includes(",")&&(e=e.replace(",","."),t=Number(e),!Number.isNaN(t)))return"double"}}return(0,r.Cq)(e)?"date":"string"}}).reduce((e,t)=>void 0===e?t:void 0===t?e:e===t?t:"string"===e||"string"===t?"string":"double"===e||"double"===t?"double":void 0)}const k=function(){const e=(0,x.B)(),t=new RegExp("^"+e.regexp+"$"),i=new RegExp("["+e.group+"\\s\\xa0]","g"),s=e.factor;return n=>{const r=t.exec(n);if(e.factor=s,!r)return NaN;let o=r[1];if(!r[1]){if(!r[2])return NaN;o=r[2],e.factor*=-1}return o=o.replace(i,"").replace(e.decimal,"."),+o*e.factor}}();function R(e){return JSON.parse(JSON.stringify(e))}var q=i(64714),Y=i(60694),L=i(95466),j=i(54218),X=i(98623);const D=(0,q.F0)("esriGeometryPoint"),P=["csv"],G=[0,0];class U{constructor(e,t){this.x=e,this.y=t}}class ${constructor(){this._queryEngine=null,this._snapshotFeatures=async e=>{const t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){this._loadOptions=e;const[i]=await Promise.all([this._fetch(t.signal),this._checkProjection(e?.parsingOptions?.spatialReference)]),s=function(e,t){const i=t.parsingOptions||{},s={delimiter:i.delimiter,layerDefinition:null,locationInfo:{latitudeFieldName:i.latitudeField,longitudeFieldName:i.longitudeField}},n=s.layerDefinition={name:(0,Y.cr)((0,u.e7)(t.url,P)||"csv"),dateFieldsTimeReference:{timeZoneIANA:X.n$},drawingInfo:D,geometryType:"esriGeometryPoint",objectIdField:null,fields:[],timeInfo:i.timeInfo,extent:{xmin:Number.POSITIVE_INFINITY,ymin:Number.POSITIVE_INFINITY,xmax:Number.NEGATIVE_INFINITY,ymax:Number.NEGATIVE_INFINITY,spatialReference:i.spatialReference||{wkid:4326}}},r=M(e),a=r.next().value?.trim(),l=r.next().value?.trim();if(!a)throw new o.A("csv-layer:empty-csv","CSV is empty",{csv:e});const{delimiter:c,locationInfo:h}=A(a,l,i);if(!c)throw new o.A("csv-layer:invalid-delimiter","Unable to detect the delimiter from CSV",{firstLine:a,secondLine:l,parsingOptions:i});if(!h)throw new o.A("csv-layer:location-fields-not-found","Unable to identify latitude and longitude fields from the CSV file",{firstLine:a,secondLine:l,parsingOptions:i});s.locationInfo=h,s.delimiter=c;const{names:d,aliases:f}=T(a,c),p=C(e,s.delimiter,d,f,s.locationInfo);if(i.fields?.length){const e=new L.A(i.fields);for(const t of p){const i=e.get(t.name);i&&Object.assign(t,i)}}if(!p.some(e=>"esriFieldTypeOID"===e.type&&(n.objectIdField=e.name,!0))){const e={name:"__OBJECTID",alias:"__OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1};n.objectIdField=e.name,p.unshift(e)}n.fields=p;const m=new L.A(n.fields);if(s.locationInfo&&(s.locationInfo.latitudeFieldName=m.get(s.locationInfo.latitudeFieldName).name,s.locationInfo.longitudeFieldName=m.get(s.locationInfo.longitudeFieldName).name),n.timeInfo){const e=n.timeInfo;if(e.startTimeField){const t=m.get(e.startTimeField);t?(e.startTimeField=t.name,t.type="esriFieldTypeDate"):e.startTimeField=null}if(e.endTimeField){const t=m.get(e.endTimeField);t?(e.endTimeField=t.name,t.type="esriFieldTypeDate"):e.endTimeField=null}if(e.trackIdField){const t=m.get(e.trackIdField);e.trackIdField=t?t.name:null}e.startTimeField||e.endTimeField||(n.timeInfo=null)}return s}(i,e);this._locationInfo=s.locationInfo,this._delimiter=s.delimiter,this._queryEngine=this._createQueryEngine(s);const n=this._createFeatures(i);this._queryEngine.featureStore.addMany(n);const{fullExtent:r,timeExtent:a}=await this._queryEngine.fetchRecomputedExtents();if(s.layerDefinition.extent=r,a){const{start:e,end:t}=a;s.layerDefinition.timeInfo.timeExtent=[e,t]}return s}async applyEdits(){throw new o.A("csv-layer:editing-not-supported","applyEdits() is not supported on CSVLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),(await this._queryEngine.executeQueryForIds(e,t.signal)).filter(j.Et)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,n.UT)(this._snapshotFeatures),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),e&&this._queryEngine.featureStore.addMany(e)},e=>{this._queryEngine.featureStore.clear(),(0,l.zf)(e)||a.A.getLogger("esri.layers.CSVLayer").error(new o.A("csv-layer:refresh","An error occurred during refresh",{error:e}))}),await this._waitSnapshotComplete();const{fullExtent:t,timeExtent:i}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:i}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){const{url:t,customParameters:i}=this._loadOptions;if(!t)throw new o.A("csv-layer:invalid-source","url not defined");const n=(0,u.An)(t);return(await(0,s.A)(n.path,{query:{...n.query,...i},responseType:"text",signal:e})).data}_createQueryEngine(e){const{objectIdField:t,fields:i,extent:s,timeInfo:n}=e.layerDefinition,r=new y.A({geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1}),o={type:"object-id",fieldName:t};return new _.do({fieldsIndex:L.A.fromLayerJSON({fields:i,dateFieldsTimeReference:{timeZoneIANA:X.n$}}),geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1,timeInfo:n,featureIdInfo:o,spatialReference:s.spatialReference||{wkid:4326},featureStore:r})}_createFeatures(e){const{latitudeFieldName:t,longitudeFieldName:i}=this._locationInfo,{objectIdField:s,fieldsIndex:n,spatialReference:o}=this._queryEngine;let a=[];const l=[],u=n.fields.filter(e=>e.name!==s).map(e=>e.name);let y=0;const g={};for(const e of n.fields)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,b.lD)(e);void 0!==t&&(g[e.name]=t)}const _=z(e,u,this._delimiter,(0,q.Vx)(g,s));for(const e of _){const o=this._parseCoordinateValue(e[t]),u=this._parseCoordinateValue(e[i]);if(null!=u&&null!=o&&!isNaN(o)&&!isNaN(u)){e[t]=o,e[i]=u;for(const s in e)if(s!==t&&s!==i)if(n.isDateField(s))e[s]=(0,r._U)(e[s]);else if(n.isNumericField(s)){const t=k(e[s]);isNaN(t)?e[s]=null:e[s]=t}else null!=e[s]&&(e[s]=R(e[s]));e[s]=y,y++,a.push(new U(u,o)),l.push(e)}}if(!(0,d.aI)({wkid:4326},o))if((0,d.K8)(o))for(const e of a)[e.x,e.y]=(0,f.je)(e.x,e.y,G);else a=(0,c.projectMany)(a,h.A.WGS84,o);const x=[];for(let e=0;e<a.length;e++){const{x:t,y:i}=a[e],n=l[e];n[s]=e+1,x.push(new p.Om(new m.A([],[t,i]),n,null,n[s]))}return x}_parseCoordinateValue(e){if(null==e||""===e)return null;let t=k(e);return(isNaN(t)||Math.abs(t)>181)&&(t=parseFloat(e)),t}async _checkProjection(e){try{await(0,g.Nk)(d.KK,e)}catch{throw new o.A("csv-layer:projection-not-supported","Projection not supported")}}}},36708(e,t,i){i.d(t,{C_:()=>d,OH:()=>m,Vh:()=>y,on:()=>h,pc:()=>g,wB:()=>l,z7:()=>u});var s=i(37955),n=i(36563),r=i(97768),o=i(74887),a=i(14012);function l(e,t,i={}){return c(e,t,i,f)}function u(e,t,i={}){return c(e,t,i,p)}function c(e,t,i={},s){let n=null;const o=i.once?(e,i)=>{s(e)&&((0,r.xt)(n),t(e,i))}:(e,i)=>{s(e)&&t(e,i)};if(n=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){const t=e();o(t,t)}return n}function h(e,t,i,o={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,r.xt)(c),i(e)}const f=l(e,(e,i)=>{h(),(0,s.wb)(e)&&(a=e,u=(0,s.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return c=(0,n.hA)(()=>{f.remove(),h()}),c}function d(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,r.xt)(a)}return new Promise((s,r)=>{a=(0,n.vE)([(0,o.u7)(i,()=>{l(),r((0,o.NK)())}),c(e,e=>{l(),s(e)},{sync:!1,once:!0},t??f)])})}(e,p,t)}function f(e){return!0}function p(e){return!!e}i(80559);const m={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},37730(e,t,i){i.d(t,{T:()=>n});var s=i(43334);const n={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,i)=>new s.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},54625(e,t,i){i.d(t,{i_:()=>n});var s=i(30524);function n(e,t,i){t=(0,s.rS)(t)?.toLowerCase(),i=(0,s.rS)(i)?.toLowerCase();const n=e.map(e=>e.toLowerCase()),a=t?e[n.indexOf(t)]:null,l=i?e[n.indexOf(i)]:null;return{longitudeFieldName:a||e[n.indexOf(o.find(e=>n.includes(e)))],latitudeFieldName:l||e[n.indexOf(r.find(e=>n.includes(e)))]}}const r=["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"]},60408(e,t,i){function s(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function r(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?r(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":s(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}i.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>c,Rg:()=>o,U9:()=>n,W0:()=>h,ZC:()=>s,fT:()=>r,uW:()=>l})},60999(e,t,i){i.d(t,{DZ:()=>p,Ke:()=>f,Tj:()=>c,UT:()=>m,aD:()=>g,jJ:()=>u});var s=i(5482),n=i(69622),r=i(97768),o=i(74887),a=i(10107),l=i(64108);function u(e,t,i){return(0,o.Lx)(e.map((e,s)=>t.apply(i,[e,s])))}async function c(e,t,i){return(await(0,o.Lx)(e.map((e,s)=>t.apply(i,[e,s])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function f(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function p(e){try{return h(await e)}catch(e){return(0,o.QP)(e),d(e)}}function m(e,t){return new y(e,t)}let y=class extends n.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,a.MZ)()],y.prototype,"value",null),(0,s.Cg)([(0,a.MZ)()],y.prototype,"error",null),(0,s.Cg)([(0,a.MZ)()],y.prototype,"finished",null),(0,s.Cg)([(0,a.MZ)()],y.prototype,"promise",void 0),(0,s.Cg)([(0,a.MZ)()],y.prototype,"_result",void 0),y=(0,s.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,s.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,s.hk)(t)}}}},64714(e,t,i){i.d(t,{F0:()=>a,Vx:()=>c,e2:()=>d,f:()=>f});var s=i(44208),n=i(4718),r=i(99352),o=i(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function c(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let i=`this${h(t)} = null;`;for(const t in e)i+=`this${h(t)} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new s}catch(i){return()=>({[t]:null,...e})}}function h(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function d(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(e)}}]}function f(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},65864(e,t,i){i.d(t,{rS:()=>c,xD:()=>d});var s=i(5443),n=i(91075),r=i(48526),o=i(86738),a=i(39829),l=i(82799),u=i(60408);function c(e){return null==e?null:e instanceof n.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?r.A.fromJSON(e):(0,u.ZC)(e)?s.A.fromJSON(e):null}const h={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:s.A,esriGeometryMultipoint:r.A,esriGeometryMultiPatch:a.A};function d(e){return e&&h[e]||null}},66344(e,t,i){i.d(t,{q:()=>a});const s=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class n{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear(),this._db.clear()}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,n,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==i&&this._notifyRemove(t,a.entry,a.size,0)),n>this._maxSize)return void this._notifyRemove(t,i,n,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return s||console.warn(`Refusing to cache entry with size ${n} for key ${t}`),void this._notifyRemove(t,i,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new r(i,n,l)),this._size+=n,e.size+=n,this._checkSize()}updateSize(e,t){t=e.id+t;const i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let s=i.entry.usedMemory;for(;s>this._maxSize;){const e=this._notifyRemove(t,i.entry,s,1);if(!(null!=e&&e>0))return void this._db.delete(t);s=e}i.size=s,this._size+=s,e.size+=s,this._checkSize()}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach((e,s)=>{const n=e.lifetime;i[n]=(i[n]||0)+e.size,this._users.forEach(i=>{const{id:n,name:r}=i;if(s.startsWith(n)){const i=t[r]||0;t[r]=i+e.size}})});const s={};this._users.forEach(e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const n=t[i]||0;t[i]=n,s[i]=Math.round(100*e.hitRate)+"%"}else s[i]="0%"});const n=Object.keys(t);n.sort((e,i)=>t[i]-t[e]),n.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+s[i]);for(let t=i.length-1;t>=0;--t){const s=i[t];s&&(e["Priority "+(t+-3-1)]=Math.round(s/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._users.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,s){const n=this._users.get(e.split(o)[0])?.removeFunc,r=n?.(t,s,i);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._checkSizeLimits(this.maxSize)}setMaxSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const i=t??this;if(i.size<=e)return;const s=t?.id;let n=!0;for(;n;){n=!1;for(const[r,a]of this._db)if(0===a.lifetime&&(!s||r.startsWith(s))){const s=t??this._users.get(r.split(o)[0]);if(this._purgeItem(r,a,s),i.size<=.9*e)return;n||=this._db.has(r)}}for(const[n,r]of this._db)if(!s||n.startsWith(s)){const s=t??this._users.get(n.split(o)[0]);if(this._purgeItem(n,r,s),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const s=this._notifyRemove(e,t.entry,t.size,1);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new n(0);class r{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class a{constructor(e,t){this.removeFunc=t,this._storage=new n,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy(),this._storage=null}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},67482(e,t,i){function s(e){return null!=a(e)||null!=o(e)}function n(e){return l.test(e)}function r(e){return a(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let i=!0;if(c&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,s=0;for(;!t&&s<=e.length;)t=!u.test(e[s]),s++;i=!t}}return i}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.exec(e);if(!t?.groups)return null;const i=t.groups,s=+i.year,n=+i.month-1,r=+i.day,o=+(i.hours??"0"),a=+(i.minutes??"0"),u=+(i.seconds??"0");if(o>23)return null;if(a>59)return null;if(u>59)return null;const c=i.ms??"0",h=c?+c.padEnd(3,"0").slice(0,3):0;let d;if(i.isUTC||!i.offsetSign)d=Date.UTC(s,n,r,o,a,u,h);else{const e=+i.offsetHours,t=+i.offsetMinutes;d=6e4*("+"===i.offsetSign?-1:1)*(60*e+t)+Date.UTC(s,n,r,o,a,u,h)}return Number.isNaN(d)?null:d}i.d(t,{Br:()=>n,Cq:()=>s,_U:()=>r});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,c=!Number.isNaN(new Date("technology 10").getTime())},75503(e,t,i){i.d(t,{wq:()=>a});var s=i(4576),n=i(21818),r=(i(44208),i(15142)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=f,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),S.prune(),v.prune(),I.prune(),w.prune()}all(e){l(this._data,e)}search(e,t){let i=this._data;const s=this._toBBox;if(x(e,i))for(S.clear();i;){for(let n=0,r=i.children.length;n<r;n++){const r=i.children[n],o=i.leaf?s(r):r;x(e,o)&&(i.leaf?t(r):_(e,o)?l(r,t):S.push(r))}i=S.pop()}}collides(e){let t=this._data;const i=this._toBBox;if(!x(e,t))return!1;for(S.clear();t;){for(let s=0,n=t.children.length;s<n;s++){const n=t.children[s],r=t.leaf?i(n):n;if(x(e,r)){if(t.leaf||_(e,r))return!0;S.push(n)}}t=S.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new B([]),this}remove(e){if(!e)return this;let t,i=this._data,r=null,o=0,a=!1;const l=this._toBBox(e);for(I.clear(),w.clear();i||I.length>0;){if(i||(i=I.pop(),r=I.data[I.length-1],o=w.pop()??0,a=!0),i.leaf&&(t=(0,s.qh)(i.children,(0,n.z)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),I.push(i),this._condense(I),this;a||i.leaf||!_(i,l)?r?(o++,i=r.children[o],a=!1):i=null:(I.push(i),w.push(o),o=0,r=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,s){const n=i-t+1;let r=this._maxEntries;if(n<=r){const s=new B(e.slice(t,i+1));return u(s,this._toBBox),s}s||(s=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(s-1)));const o=new A([]);o.height=s;const a=Math.ceil(n/r),l=a*Math.ceil(Math.sqrt(r));b(e,t,i,l,this._compareMinX);for(let n=t;n<=i;n+=l){const t=Math.min(n+l-1,i);b(e,n,t,a,this._compareMinY);for(let i=n;i<=t;i+=a){const n=Math.min(i+a-1,t);o.children.push(this._build(e,i,n,s-1))}}return u(o,this._toBBox),o}_insert(e,t,i){const s=this._toBBox,n=i?e:s(e);I.clear();const r=function(e,t,i,s){for(;s.push(t),!0!==t.leaf&&s.length-1!==i;){let i,s=1/0,n=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=p(o),l=y(e,o)-a;l<n?(n=l,s=a<s?a:s,i=o):l===n&&a<s&&(s=a,i=o)}t=i||t.children[0]}return t}(n,this._data,t,I);for(r.children.push(e),h(r,n);t>=0&&I.data[t].children.length>this._maxEntries;)this._split(I,t),t--;!function(e,t,i){for(let s=i;s>=0;s--)h(t.data[s],e)}(n,I,t)}_split(e,t){const i=e.data[t],s=i.children.length,n=this._minEntries;this._chooseSplitAxis(i,n,s);const r=this._chooseSplitIndex(i,n,s);if(!r)return;const o=i.children.splice(r,i.children.length-r),a=i.leaf?new B(o):new A(o);a.height=i.height,u(i,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new A([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let s,n,r;s=n=1/0;for(let o=t;o<=i-t;o++){const t=c(e,0,o,this._toBBox),a=c(e,o,i,this._toBBox),l=g(t,a),u=p(t)+p(a);l<s?(s=l,r=o,n=u<n?u:n):l===s&&u<n&&(n=u,r=o)}return r}_chooseSplitAxis(e,t,i){const s=e.leaf?this._compareMinX:d,n=e.leaf?this._compareMinY:f;this._allDistMargin(e,t,i,s)<this._allDistMargin(e,t,i,n)&&e.children.sort(s)}_allDistMargin(e,t,i,s){e.children.sort(s);const n=this._toBBox,r=c(e,0,t,n),o=c(e,i-t,i,n);let a=m(r)+m(o);for(let s=t;s<i-t;s++){const t=e.children[s];h(r,e.leaf?n(t):t),a+=m(r)}for(let s=i-t-1;s>=t;s--){const t=e.children[s];h(o,e.leaf?n(t):t),a+=m(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const i=e.data[t];if(0===i.children.length)if(t>0){const n=e.data[t-1],r=n.children;r.splice((0,s.qh)(r,i,r.length,n.indexHint),1)}else this.clear();else u(i,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let i=e;for(v.clear();i;){if(!0===i.leaf)for(const e of i.children)t((0,n.z)(e));else v.pushArray(i.children);i=v.pop()??null}}function u(e,t){c(e,0,e.children.length,t,e)}function c(e,t,i,s,n){n||(n=new B([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=t;o<i;o++)r=e.children[o],h(n,e.leaf?s(r):r);return n}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function f(e,t){return e.minY-t.minY}function p(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function m(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const i=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,n-i)*Math.max(0,r-s)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function x(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,i,s,n){const r=[t,i];for(;r.length;){const t=r.pop(),i=r.pop();if(t-i<=s)continue;const a=i+Math.ceil((t-i)/s/2)*s;(0,o.q)(e,a,i,t,n),r.push(i,a,a,t)}}const S=new r.A,v=new r.A,I=new r.A,w=new r.A({deallocator:void 0});class F{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class M extends F{constructor(){super(...arguments),this.height=1,this.indexHint=new s.vW}}class B extends M{constructor(e){super(),this.children=e,this.leaf=!0}}class A extends M{constructor(e){super(),this.children=e,this.leaf=!1}}},83221(e,t,i){i.d(t,{A:()=>p});var s=i(4576),n=i(49186),r=i(65529),o=i(53966),a=i(70328),l=i(19419),u=i(90708),c=i(6518),h=i(51441),d=i(37730);const f=(0,a.vt)();class p{constructor(e){this.geometryInfo=e,this._boundsStore=new c.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,i,s,n]=this.fullBounds;return{xmin:t,ymin:i,xmax:s,ymax:n,spatialReference:(0,h.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(s.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const i of e){const e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(f,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let s;if(i?(e.displayId=i.displayId,s=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);s=(0,u.jQ)(null!=s?s:(0,l.vt)(),e.geometry),null!=s&&this._boundsStore.set(t,s),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;const{geometry:s,attributes:r}=e;for(const e in r)i.attributes[e]=r[e];return s&&(i.geometry=s,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),s)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},93470(e,t,i){i.d(t,{Cb:()=>r,HW:()=>c,JR:()=>n,JZ:()=>l,WR:()=>a,b6:()=>h,fT:()=>s,nC:()=>u,yM:()=>o});const s=[252,146,31,255],n=[153,153,153,255],r={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},u={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},c={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},h={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},98453(e,t,i){i.d(t,{m:()=>s});const s=new(i(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1054,1550,1666,6061,6312,7992,8125,9169,9397],{4197(t,e,r){r.d(e,{Vj:()=>c,cj:()=>u,jh:()=>a,l5:()=>o,xm:()=>i});var n=r(34275),s=r(9093);function a(t){return t<=n.y9?new Array(t).fill(0):new Float64Array(t)}function i(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=n.y9?Array.from(t):new Float64Array(t)}function o(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function u(t){return[...t]}function c(t){const e=(0,s.vt)();for(let r=0;r<16;++r)e[r]=t[r];return e}},9093(t,e,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}r.d(e,{o8:()=>s,vt:()=>n,zK:()=>a});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:s,create:n,fromValues:function(t,e,r,n,s,a,i,o,u,c,h,l,f,g,m,x){return[t,e,r,n,s,a,i,o,u,c,h,l,f,g,m,x]}},Symbol.toStringTag,{value:"Module"}))},15546(t,e,r){r.d(e,{a:()=>i,c:()=>a});var n=r(55537),s=r(83661);function a(t,e){if(!t.isEmpty())switch(t.getGeometryType()){case n.G.enumPolygon:return o(t);case n.G.enumPolyline:return l(t.getImpl());case n.G.enumLine:case n.G.enumBezier:case n.G.enumEllipticArc:return function(t){const e=t.calculateLength2D();return 0===e?t.getStartXY():t.calculateWeightedCentroid2D().mul(1/e)}(t);case n.G.enumMultiPoint:return function(t){const e=new s.K(0),r=new s.K(0),n=t.getImpl(),a=n.getAttributeStreamRef(0),i=n.getPointCount(),o=new s.P;for(let t=0;t<i;t++)a.queryPoint2D(2*t,o),e.add(o.x),r.add(o.y);const u=new s.P;return u.setCoords(e.getResult(),r.getResult()),u.divThis(i)}(t);case n.G.enumEnvelope:return t.getCenterXY();case n.G.enumPoint:return t.getXY();default:return s.P.construct(Number.NaN,Number.NaN)}return s.P.construct(Number.NaN,Number.NaN)}function i(t,e){return o(t,e)}function o(t,e=-1){const r=new s.K(0),n=new s.K(0),a=t.getImpl();let i;const o=a.hasNonLinearSegments();let l;const f=a.getXY(0);if(-1===e){if(l=a.calculateArea2D(),0===l)return h(t);o&&(i=a.querySegmentIterator());for(let t=0,e=a.getPathCount();t<e;t++)u(f,a,t,r,n),o&&c(f,i,r,n)}else{if(l=a.calculateRingArea2D(e),0===l)return h(t,e);o&&(i=a.querySegmentIterator(),i.resetToPath(e)),u(f,a,e,r,n),o&&c(f,i,r,n)}const g=new s.P,m=new s.P;return g.setCoords(r.getResult(),n.getResult()),m.assign(g.mul(1/l).add(f)),m}function u(t,e,r,n,a){const i=e.getPathStart(r),o=e.getPathEnd(r);if(o-i<3)return;const u=e.getAttributeStreamRef(0),c=u.readPoint2D(2*i),h=u.readPoint2D(2*(i+1));h.subThis(c);const l=new s.K(0),f=e.hasNonLinearSegments(),g=1/3,m=new s.P;for(let t=i+2;t<o;t++){u.queryPoint2D(2*t,m),m.subThis(c);const e=.5*m.crossProduct(h);f&&l.add(e);const r=g*e;n.add((h.x+m.x)*r),a.add((h.y+m.y)*r),h.setCoordsPoint2D(m)}const x=f?l.getResult():e.calculateRingArea2D(r),d=c.sub(t).mul(x);n.add(d.x),a.add(d.y)}function c(t,e,r,s){let a;for(e.nextPath()||(0,n.d)("centroid");null!==(a=e.nextCurve());){const e=a.calculateWeightedAreaCentroid2D(t);r.add(e.x),s.add(e.y)}}function h(t,e=-1){return l(t.getImpl(),e)}function l(t,e=-1){const r=-1===e?t.calculateLength2D():t.calculatePathLength2D(e);if(0===r)return function(t,e=-1){if(-1!==e)return t.getXY(t.getPathStart(e));const r=new s.K(0),n=new s.K(0);for(let e=0;e<t.getPathCount();++e){const s=t.getXY(t.getPathStart(e));r.add(s.x),n.add(s.y)}return s.P.construct(r.getResult(),n.getResult()).mul(1/t.getPathCount())}(t,e);const n=new s.K(0),a=new s.K(0),i=t.querySegmentIterator();for(-1!==e&&i.resetToPath(e);i.nextPath();){const r=i.getPathIndex(),s=t.getXY(t.getPathStart(r));for(;i.hasNextSegment();){const t=i.nextSegment(),e=t.calculateLength2D();if(0===e)continue;const r=t.calculateWeightedCentroid2D().sub(s.mul(e));n.add(r.x),a.add(r.y)}const o=s.mul(t.calculatePathLength2D(r));if(n.add(o.x),a.add(o.y),-1!==e)break}const o=new s.P;return o.setCoords(n.getResult(),a.getResult()),o.mul(1/r)}},17077(t,e,r){r.d(e,{execute:()=>n.e});var n=r(48265);r(78125)},48265(t,e,r){r.d(e,{c:()=>u,e:()=>i});var n=r(15546),s=r(78125);const a=new class{getOperatorType(){return 10205}accelerateGeometry(t,e,r){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}execute(t,e){return(0,n.c)(t)}};function i(t){const e=a.execute((0,s.fromGeometry)(t),null);return(0,s.toPoint)(e,(0,s.getSpatialReference)(t))}const o=a.supportsCurves(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:o},Symbol.toStringTag,{value:"Module"}))},61691(t,e,r){r.d(e,{G:()=>n});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},69397(t,e,r){r.d(e,{Qf:()=>u,Qh:()=>i,RS:()=>s,Ul:()=>g,lM:()=>a,qK:()=>h});var n=r(34275);const s=16;function a(t){if(!t)return 0;let e=h;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return c(t,8);let r=l;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?i(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?c(e,s):0:0),0)}function c(t,e){return l+t.length*e}const h=32,l=16,f=145,g=64},70328(t,e,r){r.d(e,{BI:()=>v,DC:()=>l,Ej:()=>g,Ie:()=>p,Jt:()=>y,Ne:()=>m,RF:()=>h,aI:()=>C,fA:()=>i,gE:()=>u,hZ:()=>d,iT:()=>f,is:()=>M,qv:()=>P,vI:()=>x,vY:()=>o,v_:()=>E,vt:()=>a,w1:()=>c});var n=r(5443),s=(r(19419),r(4197));function a(t=E){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function i(t,e,r,n,s,i,o=a()){return o[0]=t,o[1]=e,o[2]=r,o[3]=n,o[4]=s,o[5]=i,o}function o(t,e=a()){return function(t,e,r,n=a()){return d(n,P),function(t,e,r=0,n=e.length/3){let s=t[0],a=t[1],i=t[2],o=t[3],u=t[4],c=t[5];for(let t=0;t<n;t++)s=Math.min(s,e[r+3*t]),a=Math.min(a,e[r+3*t+1]),i=Math.min(i,e[r+3*t+2]),o=Math.max(o,e[r+3*t]),u=Math.max(u,e[r+3*t+1]),c=Math.max(c,e[r+3*t+2]);t[0]=s,t[1]=a,t[2]=i,t[3]=o,t[4]=u,t[5]=c}(n,t,e,r),n}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[r,n,a,i,o,u]=t;return e[0]=r,e[1]=n,e[2]=a,e[3]=r,e[4]=n,e[5]=u,e[6]=r,e[7]=o,e[8]=a,e[9]=r,e[10]=o,e[11]=u,e[12]=i,e[13]=n,e[14]=a,e[15]=i,e[16]=n,e[17]=u,e[18]=i,e[19]=o,e[20]=a,e[21]=i,e[22]=o,e[23]=u,e}function c(t,e){const r=isFinite(t[2])||isFinite(t[5]);return new n.A(r?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function g(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function m(t,e,r=t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function x(t,e,r=t){return r[3]=e[0],r[4]=e[1],r[5]=e[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?d(t,P):a(P)}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function v(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=Number.NEGATIVE_INFINITY,t[3]=n,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function M(t){return 6===t.length}function C(t,e,r){if(null==t||null==e)return t===e;if(!M(t)||!M(e))return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}const P=[1/0,1/0,1/0,-1/0,-1/0,-1/0],E=[0,0,0,0,0,0];a()},76061(t,e,r){r.d(e,{S:()=>s});var n=r(61691);class s extends n.G{constructor(t){super(),this.m_iGeom=-1,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}}},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>d,fromGeometry:()=>x,fromMultipoint:()=>p,fromPoint:()=>y,fromPolygon:()=>v,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>P,getSpatialReference:()=>m,toExtent:()=>w,toGeometry:()=>E,toMultipoint:()=>A,toPoint:()=>I,toPolygon:()=>S,toPolyline:()=>R});var n=r(83661),s=(r(79187),r(55537)),a=r(95213),i=r(88885),o=r(5443),u=r(48526),c=r(86738),h=r(39829),l=r(82799),f=(r(90293),r(83299));const g="_gxVersion";function m(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function x(t){switch(t.type){case"point":return y(t);case"multipoint":return p(t);case"polyline":return M(t);case"polygon":return v(t);case"extent":return d(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function d(t){if(!t.getCacheValue(g)){const e=new a.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(g,e)}return t.getCacheValue(g)}function p(t){if(!t.getCacheValue(g)){const e=new i.M,r=new a.P,n=t.points,s=t.hasM,o=t.hasZ,u=o?3:2;for(let t=0,a=n.length;t<a;t++){const a=n[t];r.setXYCoords(a[0],a[1]),o&&r.setZ(a[2]??0),s&&r.setM(a[u]??NaN),e.add(r)}t.setCacheValue(g,e)}return t.getCacheValue(g)}function y(t){if(!t.getCacheValue(g)){const e=new a.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(g,e)}return t.getCacheValue(g)}function v(t){if(!t.getCacheValue(g)){const{curveRings:e,hasM:r,hasZ:n,rings:s}=t,a=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:n,rings:s});t.setCacheValue(g,a)}return t.getCacheValue(g)}function M(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:n,paths:s}=t,a=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:n,paths:s});t.setCacheValue(g,a)}return t.getCacheValue(g)}function C(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:n,paths:s}=t,a=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:n,paths:s});t.setCacheValue(g,a)}return t.getCacheValue(g)}function P(t){return(0,f.fromSpatialReference)(t)}function E(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return I(t,e);case s.G.enumEnvelope:return w(t,e);case s.G.enumMultiPoint:return A(t,e);case s.G.enumPolyline:return R(t,e);case s.G.enumPolygon:return S(t,e)}return null}function w(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),n=t.getDescription();if(n.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(n.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(g,t),r}function A(t,e){if(t.isEmpty())return null;const r=t.getDescription(),n=r.hasM(),s=r.hasZ(),i=[],o=new a.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];s&&r.push(o.getZ()),n&&r.push(o.getM()),i.push(r)}const c=new u.A({hasM:n,hasZ:s,points:i,spatialReference:e});return c.setCacheValue(g,t),c}function I(t,e){if(t instanceof n.P)return new c.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new c.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(r.m=t.getM()),s.hasZ()&&(r.z=t.getZ()),r.setCacheValue(g,t),r}function S(t,e){if(t.isEmpty())return null;const r=h.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}function R(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}},87992(t,e,r){r.d(e,{JR:()=>A,ME:()=>P,MY:()=>I,NO:()=>C,Nh:()=>w,V2:()=>_,_s:()=>O,e6:()=>N,gh:()=>E,tr:()=>F,uX:()=>d});var n=r(5482),s=r(69397),a=r(16930),i=(r(70328),r(19419)),o=r(60408),u=r(21325),c=r(513),h=r(50954),l=r(79567),f=r(52006),g=r(49663),m=r(46068),x=r(92722);class d{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:a,partCount:i,partOffsets:o,partFlags:u,segmentFlags:c,segmentIndices:h,segmentParams:l,segmentCountArc:f,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=a,this.partCount=i,this.partOffsets=o,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=h,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:n,hasM:s,segmentCountArc:a,segmentCountBezier:i}=this,o=_(t,e,r,n,s,this.hasCurves(),a,i);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:h}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(c.subarray(0,e),0),o.vertexM?.set(h.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:n,segmentParamCount:s}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(n.subarray(0,s),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return new p(this)}}class p{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=V(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=V(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++],n=e[r++],s=e[r++],a=e[r++];return{b:[this.end,[t,n],[s,a]]}}const n=e[r++],s=e[r++],a=e[r++],i=e[r++],o=e[r++],u=e[r++];r++,r++;const c=e[r++],h=e[r++];if(!Boolean(4&n)&&1===a)return{c:[this.end,[c,h]]};const l=2&n?0:1,f=1&n?0:1;return{a:[this.end,[o,u],l,f,i,s,a]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,n.mS)(r,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:s,vertexZ:a,vertexM:o}=t,u=R(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new S(t,["vertexZ","vertexM"]),!1);const s=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(s,t,r),t=(0,f.yP)(r)}const[a,o,c,h]=s;e={xmin:a,ymin:o,xmax:c,ymax:h,spatialReference:u}}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}else{let t,n,a,i;t=n=1/0,a=i=-1/0;for(let e=0;e<r;++e){const r=s[2*e],o=s[2*e+1];t=Math.min(t,r),a=Math.max(a,r),n=Math.min(n,o),i=Math.max(i,o)}e={xmin:t,ymin:n,xmax:a,ymax:i,spatialReference:u}}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,n.hk)(r)}}function P(t){let e,r,n;if((0,o.fT)(t)){n="point";const{x:s,y:a,z:i,m:o}=t,u=[s,a];null!=i&&u.push(i),null!=o&&u.push(o),r=[[u]],e=1}else(0,o.U9)(t)?(n="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(n="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(n="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,b(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=_(n,e,n.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,f.Ed)(t)),{hasZ:a,hasM:i,vertexXY:u,vertexZ:c,vertexM:h}=s;function l(t){u[2*m]=t[0],u[2*m+1]=t[1],a&&(c[m]=t[2]),i&&(h[m]=t[g]),++m}s.spatialReference=t.spatialReference??void 0;const g=s.hasZ?3:2;let m=0;if(!s.isMultipart()){if(!a&&!i){for(const[t,e]of r[0])u[2*m]=t,u[2*m+1]=e,++m;return s}for(const t of r[0])l(t);return s}const x="polygon"===n,{partOffsets:d}=s;let p=0;if(!s.hasCurves()){for(const t of r){if(d[p++]=m,0===t.length)continue;let e=t.length;if(x&&b(t[0],t.at(-1))&&--e,a||i)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,n]=t[r];u[2*m]=e,u[2*m+1]=n,++m}}return d[p]=m,s}function y(t){const e=v+t;if(e<=(s.segmentParams?.length??0))return;let r=e*G;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let v=0;for(const t of r){if(s.partOffsets[p++]=m,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const n=t[e];l(r);const a=m-1;(0,f.wY)(n)?(y(10),++s.segmentCountArc,v=O(r,n,s,a,v),r=n.a[0]):(0,f.DA)(n)?(y(10),++s.segmentCountArc,v=Z(r,n,s,a,v),r=n.a[0]):(0,f.aO)(n)?(y(10),++s.segmentCountArc,v=N(r,n,s,a,v),r=n.c[0]):(0,f.n1)(n)?(y(4),++s.segmentCountBezier,v=F(0,n,s,a,v),r=n.b[0]):r=n}x&&b(e,r)||l(r)}return s.partOffsets[p]=m,s}function E(t){const e=V(t),{vertexCount:r,partCount:n,hasZ:s,hasM:a}=t,i=R(t);if("point"===t.type){const[e,r]=t.vertexXY,n=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:r,z:n,m:s,spatialReference:i}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:i,hasZ:s,hasM:a}}const u="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=t.partOffsets[s+1],a=new Array;for(;o<n;)a.push(e(o++));u&&a.length>0&&a.push(a[0]),r.push(a)}return u?{rings:r,hasZ:s,hasM:a,spatialReference:i}:{paths:r,hasZ:s,hasM:a,spatialReference:i}}const c=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);c.push(t)}return u?{rings:[],curveRings:c,hasZ:s,hasM:a,spatialReference:i}:{paths:[],curvePaths:c,hasZ:s,hasM:a,spatialReference:i}}function w(t,{lengths:e,coords:r,hasZ:n,hasM:s},a){const i=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?i:0);n??=!1,s??=!1;const c=_(t,u,i,n,s,!1,0,0);if(c.spatialReference=a??void 0,!c.isMultipart()){for(let t=0,e=0;t<u;++t)c.vertexXY[2*t]=r[e++],c.vertexXY[2*t+1]=r[e++],n&&(c.vertexZ[t]=r[e++]),s&&(c.vertexM[t]=r[e++]);return c}const h=2+Number(n)+Number(s);let l=0,f=0;c.partOffsets[0]=0;for(const t of e){const e=c.partOffsets[f],a=e+t-Number(o);c.partOffsets[++f]=a;for(let t=e;t<a;++t)c.vertexXY[2*t]=r[l++],c.vertexXY[2*t+1]=r[l++],n&&(c.vertexZ[t]=r[l++]),s&&(c.vertexM[t]=r[l++]);o&&(l+=h)}return c}function A({type:t,vertexCount:e,vertexXY:r,vertexZ:n,vertexM:s,partCount:a,partOffsets:i,hasZ:o,hasM:u}){const c=new x.A([],[],o,u);a=Math.max(a,1);const h="polygon"===t;let l=0;for(let t=0;t<a;++t){const a=i?.[t+1]??e,f=c.coords.length;for(let t=l;t<a;++t)c.coords.push(r[2*t],r[2*t+1]),o&&c.coords.push(n[t]),u&&c.coords.push(s[t]);if(h){const t=l;c.coords.push(r[2*t],r[2*t+1]),o&&c.coords.push(n[t]),u&&c.coords.push(s[t])}c.lengths.push((c.coords.length-f)/c.stride),l=a}return"point"===t&&(c.lengths.length=0),c}function I(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 n=t.getLatestID();(n<=0||n===r)&&(n=void 0);const s=t.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:e};const a=s.isCustomWkid()?0:s.getOldID();if(a<=0)return{wkt:e};let i=t.getLatestVerticalID();return(i<=0||i===a)&&(i=void 0),{wkid:r,wkt:e,latestWkid:n,vcsWkid:a,latestVcsWkid:i}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class S{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function R({spatialReference:t}){return t instanceof a.A?t.toJSON():t}function V({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?n=>[t[2*n],t[2*n+1],e[n],r[n]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function b(t,e){return t.every((t,r)=>t===e[r])}function _(t,e,r,n,s,a,i,o){i??=0,o??=0;const u=new d({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:o});let c=2*Float64Array.BYTES_PER_ELEMENT*e;n&&(c+=Float64Array.BYTES_PER_ELEMENT*e),s&&(c+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(c+=(r+1)*Int32Array.BYTES_PER_ELEMENT,c+=(r+1)*Int8Array.BYTES_PER_ELEMENT),a&&(c+=e*Int8Array.BYTES_PER_ELEMENT,c+=e*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(c);let l=0;return u.vertexXY=new Float64Array(h,l,2*e),l+=u.vertexXY.byteLength,n&&(u.vertexZ=new Float64Array(h,l,e),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(h,l,e),l+=u.vertexM.byteLength),a&&(u.segmentParams=new Float64Array(h,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(h,l,e),u.segmentIndices.fill(T),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(h,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(h,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),a&&(u.segmentFlags=new Int8Array(h,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function O(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},a,i){r[a]=4,n[a]=i;const[o,[u,c],h,l,f,g,x]=e.a;let d=4;l||(d|=1),h||(d|=2);const p=(0,m.SW)(t,e),[y,v]=(0,m.Uk)(p,.5);return s[i++]=d,s[i++]=g,s[i++]=x,s[i++]=f,s[i++]=u,s[i++]=c,s[i++]=p.u2-p.u1,s[i++]=p.u1,s[i++]=y,s[i++]=v,i}function Z(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},a,i){r[a]=4,n[a]=i;const o=(0,g.i)(t,e);return Y(o,4,...(0,c.mq)(o,.5),s,i)}function N(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},a,i){return r[a]=4,n[a]=i,Y((0,h.pM)(t,e),0,...e.c[1],s,i)}function Y(t,e,r,n,s,a){const{cx:i,cy:o,thetaStart:u,thetaEnd:c,radius:h}=t;return u>c||(e|=1),Math.abs(c-u)<=Math.PI||(e|=2),s[a++]=e,s[a++]=h,s[a++]=1,s[a++]=0,s[a++]=i,s[a++]=o,s[a++]=c-u,s[a++]=u,s[a++]=r,s[a++]=n,a}function F(t,{b:[e,[r,n],[s,a]]},{segmentFlags:i,segmentIndices:o,segmentParams:u},c,h){return i[c]=2,o[c]=h,u[h++]=r,u[h++]=n,u[h++]=s,u[h++]=a,h}const G=1.61803,T=-1},92722(t,e,r){r.d(e,{A:()=>s});var n=r(69397);class s{constructor(t=[],e=[],r=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:n}){return new s(t,e,r||!1,n||!1)}static fromRect([t,e,r,n]){const a=r-t,i=n-e;return new s([5],[t,e,a,0,0,i,-a,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let s=this.coords[n*e],a=this.coords[n*e+1];for(let i=1;i<r;i+=1){const r=n*(e+i),o=this.coords[r],u=this.coords[r+1];t+=-.5*(o-s)*(u+a),s=o,a=u}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let s=0;s<n;s++){const n=r*(e+s);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let n=0;const{stride:s}=this;for(const t of r){for(let r=1;r<t;r++){const t=s*(n+r);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}n+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:n}=this,a=this.coords.slice(0,n*r);return t?(t.set(a),new s(e,t)):new s(e,Array.from(a),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,n=0;e<r.length;e+=t)r[n++]=this.coords[e],r[n++]=this.coords[e+1];return new s(this.lengths,r,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7656],{7656(e,t,r){r.r(t),r.d(t,{default:()=>q});var i=r(5482),s=r(11254),a=r(7762),o=r(49186),n=r(81583),l=r(25728),d=r(74887),u=r(86211),p=r(91429),y=r(56507),m=r(35666),c=r(5443),h=r(83960),f=r(21325),g=r(4146),v=r(52136),b=r(98534),I=r(18768),x=r(63074),w=r(69208),S=r(16131),C=r(8303),M=r(54310),O=r(25036),Z=r(91921),T=r(82935),A=r(10873),E=r(69622),N=r(39516);function L(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var F=r(63389);const P={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let j=class extends E.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=L(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,F.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(P[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const r=L(this.floors,t),i=(0,N.mA)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,h.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t?.forEach(i);const s=this._get("visibleSublayers");return!s||s.length!==e.length||s.some((t,r)=>e[r]!==t)?e:s}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i.Cg)([(0,p.MZ)({readOnly:!0})],j.prototype,"dynamicLayers",null),(0,i.Cg)([(0,p.MZ)()],j.prototype,"floors",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],j.prototype,"hasDynamicLayers",null),(0,i.Cg)([(0,p.MZ)()],j.prototype,"layer",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],j.prototype,"layers",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],j.prototype,"layerDefs",null),(0,i.Cg)([(0,p.MZ)({type:Number})],j.prototype,"scale",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],j.prototype,"version",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],j.prototype,"visibleSublayers",null),j=(0,i.Cg)([(0,p.$K)("esri.layers.support.ExportImageParameters")],j);var D=r(33446),_=r(15775),U=r(91908),J=r(88625),R=r(79677),V=r(56400),k=r(36005),$=r(43937);let K=class extends((0,x.dM)((0,T.e)((0,O.j)((0,Z.I)((0,b.V)((0,I.b)((0,S.q)((0,C.A)((0,l.M)((0,M.J)((0,v.p)((0,w.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new j({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new J.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,i)=>{const{save:s,saveAs:a}=await r.e(390).then(r.bind(r,10390));switch(e){case 0:return s(this,t);case 1:return a(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const s=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let a=!1;const o=(0,m.aB)(i.origin);let n;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===o){const e=this.createSublayersForOrigin("service").sublayers;a=(0,F.Zx)(s,e,2)}else if(o>3){const e=this.createSublayersForOrigin("portal-item");a=(0,F.Zx)(s,e.sublayers,(0,m.aB)(e.origin)),n=e.originWithPartialOverrides}const l=[],d={writeSublayerStructure:a,...i,minimumWritableOrigin:n};let u=a||this.hasVisibleLayersForOrigin(o);s.forEach(e=>{const t=e.write({},d);l.push(t),u=u||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),u&&(t.visibleLayers=s.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,i){const s=i?.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=i?.floors??null,this._exportImageParameters.scale=i?.scale||(0,h.X_)({extent:e,width:t})*s;const a=this._exportImageParameters.toJSON(),o=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},n=e?.spatialReference,l=(0,f.YX)(n);if(i?.scale&&e){const r=e.width/t*((0,u.GA)(e?.spatialReference)*u.dy);a.dpi=i.scale/r}a.dpi*=s;const d={};if(i?.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();d.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(d.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:l,imageSR:l,size:t+","+r,...a,...o,...d}}async fetchImage(e,t,r,i){const{data:s}=await this._fetchImage("image",e,t,r,i);return s}async fetchImageBitmap(e,t,r,i){const{data:s,url:a}=await this._fetchImage("blob",e,t,r,i);return(0,D.m)(s,a,i?.signal)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,s.A)(this.url,t),{extent:i,fullExtent:a,timeExtent:o}=r,n=i||a;return{fullExtent:n&&c.A.fromJSON(n),timeExtent:o&&R.A.fromJSON({start:o[0],end:o[1]})}}loadAll(){return(0,n.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,U.D)(this,e)}async _fetchImage(e,t,r,i,a){const n={responseType:e,signal:a?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,a),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=n.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new o.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:n.query});try{const{data:e}=await(0,s.A)(l,n);return{data:e,url:l}}catch(e){if((0,d.zf)(e))throw e;throw new o.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,s.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,i.Cg)([(0,p.MZ)((0,V.P6)("dateFieldsTimeReference"))],K.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],K.prototype,"datesInUnknownTimezone",void 0),(0,i.Cg)([(0,p.MZ)()],K.prototype,"dpi",void 0),(0,i.Cg)([(0,p.MZ)()],K.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)()],K.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,p.MZ)()],K.prototype,"imageFormat",void 0),(0,i.Cg)([(0,k.w)("imageFormat",["supportedImageFormatTypes"])],K.prototype,"readImageFormat",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],K.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],K.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,p.MZ)()],K.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],K.prototype,"isReference",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],K.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,p.MZ)({type:["ArcGISMapServiceLayer"]})],K.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],K.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)((0,V.P6)("preferredTimeReference"))],K.prototype,"preferredTimeZone",void 0),(0,i.Cg)([(0,p.MZ)()],K.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,p.MZ)({type:a.A.ofType(_.A),json:{write:{ignoreOrigin:!0}}})],K.prototype,"sublayers",void 0),(0,i.Cg)([(0,$.K)("sublayers",{layers:{type:[_.A]},visibleLayers:{type:[y.jz]}})],K.prototype,"writeSublayers",null),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],K.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],K.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)(A.OZ)],K.prototype,"url",void 0),K=(0,i.Cg)([(0,p.$K)("esri.layers.MapImageLayer")],K);const q=K},10184(e,t,r){r.d(t,{A:()=>u});var i=r(5482),s=r(69540),a=r(25482),o=r(88930),n=r(91429),l=r(73133),d=r(93223);let u=class extends((0,s.OU)(a.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,d.e)(l.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,i.Cg)([(0,n.$K)("esri.time.TimeInterval")],u)},82935(e,t,r){r.d(t,{B:()=>y,e:()=>m});var i=r(5482),s=r(91429),a=r(89317),o=r(30524),n=r(96184),l=r(73133),d=r(79677),u=r(10184),p=r(36005);const y={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:a.K}}},m=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,s=l.j.fromJSON(r.timeOffsetUnits);return i&&s?new u.A({value:i,unit:s}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,s.MZ)({type:d.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:u.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,s.MZ)({value:null,type:n.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,s.MZ)(y)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TemporalLayer")],r),r}},83960(e,t,r){r.d(t,{X_:()=>a,oW:()=>n,zx:()=>o});var i=r(34727),s=r(86211);function a(e,t){const r=t||e.extent,i=e.width,a=(0,s.GA)(r?.spatialReference);return r&&i?r.width/i*a*s.dy*96:0}function o(e,t,r){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,r)}function n(e,t){return(0,i.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},91908(e,t,r){r.d(t,{D:()=>a});var i=r(60694);const s=[];function a(e,t){if((0,i.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}s.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},96184(e,t,r){r.d(t,{A:()=>m});var i=r(5482),s=r(69540),a=r(25482),o=r(91429),n=r(79677),l=r(10184),d=r(56400),u=r(36005),p=r(43937);function y(e,t){return l.A.fromJSON({value:e,unit:t})}let m=class extends((0,s.OU)(a.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?n.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],m.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:n.A,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,u.w)("fullTimeExtent",["timeExtent"])],m.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,p.K)("fullTimeExtent")],m.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"interval",void 0),(0,i.Cg)([(0,u.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],m.prototype,"readInterval",null),(0,i.Cg)([(0,p.K)("interval")],m.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,d.P6)("timeReference",!0))],m.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],m.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],m.prototype,"stops",void 0),m=(0,i.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],m)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5165,7546],{8303(e,t,r){r.d(t,{A:()=>w});var i=r(5482),s=r(92602),o=r(70333),n=r(11254),a=r(60999),l=r(49186),u=r(53966),c=r(97768),p=r(74887),h=r(84952),d=r(91429),g=r(77548),y=r(20655),f=r(80812),v=r(41318),m=r(10407),_=r(36005),I=r(43937);const w=e=>{const t=e;let w=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new f.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!o.id?.findCredential(this.url),s=e===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let n,a;if(s)n=r.portal.url;else try{n=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!n||!(0,h.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(s?await r.reload():(r=new f.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,m.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=O.credential===t?O.user:await this._fetchEditingUser(e);return O.credential=t,O.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=y.A.getDefault();if(s&&s.loaded&&(0,h.S8)(s.restUrl)===(0,h.S8)(i))return s.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,n.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?v.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||y.A.getDefault());return r&&i&&!(0,h.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,d.MZ)({type:f.default})],w.prototype,"portalItem",null),(0,i.Cg)([(0,_.w)("web-document","portalItem",["itemId"])],w.prototype,"readPortalItem",null),(0,i.Cg)([(0,I.K)("web-document","portalItem",{itemId:{type:String}})],w.prototype,"writePortalItem",null),(0,i.Cg)([(0,d.MZ)({clonable:!1})],w.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasUpdateItemPrivileges",void 0),w=(0,i.Cg)([(0,d.$K)("esri.layers.mixins.PortalLayer")],w),w},O={credential:null,user:null}},10407(e,t,r){r.d(t,{It:()=>d,LG:()=>n,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,mm:()=>h,sQ:()=>p});var i=r(91218),s=r(16930),o=r(28735);function n(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,h.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?n(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const r=s.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const h={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function d(e){const{portal:t,isOrgItem:r,itemControl:i}=e,s=t.user?.privileges;let o=!s||s.includes("features:user:edit"),n=!!r&&!!s?.includes("features:user:fullEdit");const a="update"===i||"admin"===i;return a?n=o=!0:n&&(o=!0),{features:{edit:o,fullEdit:n},content:{updateItem:a}}}},25728(e,t,r){r.d(t,{M:()=>_});var i=r(5482),s=r(69622),o=r(76953),n=r(4718),a=r(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new l,r=this._originStores[0];r&&r.forEach((e,r)=>{t.set(r,(0,n.o8)(e),0)});for(let r=2;r<a.AU;r++){const i=this._originStores[r];i&&i.forEach((i,s)=>{e&&e.has(s)||t.set(s,(0,n.o8)(i),r)})}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=7){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=7){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r?.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),s!==i}originOf(e){return this._propertyOriginMap.get(e)||0}isAtOrigin(e,t){return this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(e)}}var u=r(45917),c=r(88620),p=r(64108);const h=e=>{const t=e;let r=class extends t{constructor(...e){super(...e);const t=(0,c.oY)(this),r=t.store,i=new l;t.store=i,(0,o.k)(t,r,i)}read(e,t){(0,u.L)(this,e,t)}getAtOrigin(e,t){const r=d(this),i=(0,a.aB)(t);return r.get(e,i)}originOf(e){return(0,a.OL)(this.originIdOf(e))}originIdOf(e){return d(this).originOf(e)}revertToOrigin(e,t){const r=d(this),i=(0,a.aB)(t),s=(0,c.oY)(this);"*"===e&&r.keys(i).forEach(e=>this.revertToOrigin(e,t)),s.invalidate(e),r.revert(e,i),s.commit(e)}revertAllToOrigin(e){const t=d(this),r=(0,a.aB)(e);t.keys(r).forEach(t=>this.revertToOrigin(t,e))}};return r=(0,i.Cg)([(0,p.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],r),r};function d(e){return(0,c.oY)(e).store}h(s.A);var g=r(91429),y=r(16649),f=r(49422);const v=e=>{const t=e;let r=class extends t{constructor(...e){super(...e)}clear(e,t="user"){(0,c.oY)(this).clearOrigin(e,(0,a.aB)(t))}write(e,t){return(0,f.M)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,c.oY)(this).setAtOrigin(e,t,(0,a.aB)(r))}removeOrigin(e){const t=m(this),r=(0,a.aB)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),7)}updateOrigin(e,t){const r=m(this),i=(0,a.aB)(t),s=(0,y.Jt)(this,e);for(let t=i+1;t<a.AU;++t)r.delete(e,t);r.set(e,s,i)}toJSON(e){return this.write({},e)}};return r=(0,i.Cg)([(0,g.$K)("esri.core.WriteableMultiOriginJSONMixin")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function m(e){return(0,c.oY)(e).store}const _=e=>{const t=v(h(e));let r=class extends t{};return r=(0,i.Cg)([(0,p.$)("esri.core.MultiOriginJSONSupport")],r),r};_(s.A)},45165(e,t,r){r.r(t),r.d(t,{default:()=>p});var i=r(5482),s=r(49186),o=r(25728),n=r(76030),a=r(91429),l=r(4146),u=r(8303);let c=class extends((0,u.A)((0,o.M)(l.A))){constructor(e){super(e),this.resourceInfo=null,this.persistenceEnabled=!0,this.type="unsupported"}initialize(){this.addResolvingPromise(new Promise((e,t)=>{(0,n._)(()=>{const e=this.resourceInfo&&(this.resourceInfo.layerType||this.resourceInfo.type);let r="Unsupported layer type";e&&(r+=" "+e),t(new s.A("layer:unsupported-layer-type",r,{layerType:e}))})}))}read(e,t){const r={resourceInfo:e};null!=e.id&&(r.id=e.id),null!=e.title&&(r.title=e.title),super.read(r,t)}write(e,t){return Object.assign(e||{},this.resourceInfo,{id:this.id})}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],c.prototype,"resourceInfo",void 0),(0,i.Cg)([(0,a.MZ)({type:["show","hide"]})],c.prototype,"listMode",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,readOnly:!1})],c.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1},readOnly:!0,value:"unsupported"})],c.prototype,"type",void 0),c=(0,i.Cg)([(0,a.$K)("esri.layers.UnsupportedLayer")],c);const p=c},60999(e,t,r){r.d(t,{DZ:()=>g,Ke:()=>d,Tj:()=>c,UT:()=>y,aD:()=>v,jJ:()=>u});var i=r(5482),s=r(69622),o=r(97768),n=r(74887),a=r(10107),l=r(64108);function u(e,t,r){return(0,n.Lx)(e.map((e,i)=>t.apply(r,[e,i])))}async function c(e,t,r){return(await(0,n.Lx)(e.map((e,i)=>t.apply(r,[e,i])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return h(e)}}async function g(e){try{return p(await e)}catch(e){return(0,n.QP)(e),h(e)}}function y(e,t){return new f(e,t)}let f=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,o.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=h(e),this._cleanup()}),this._abortHandle=(0,n.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,o.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,a.MZ)()],f.prototype,"value",null),(0,i.Cg)([(0,a.MZ)()],f.prototype,"error",null),(0,i.Cg)([(0,a.MZ)()],f.prototype,"finished",null),(0,i.Cg)([(0,a.MZ)()],f.prototype,"promise",void 0),(0,i.Cg)([(0,a.MZ)()],f.prototype,"_result",void 0),f=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],f);class v{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}}}}]);
|