@arcgis/core 5.2.0-next.80 → 5.2.0-next.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/applications/Components/imageryUtils.d.ts +5 -3
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/004966b5bf60a8a80b8c.js +1 -0
- package/assets/esri/core/workers/chunks/027af54888befb209aaa.js +1 -0
- package/assets/esri/core/workers/chunks/03cf74b2e488eb144ad5.js +1 -0
- package/assets/esri/core/workers/chunks/{913fb883455aeac8582b.js → 04f5ff688785a4bd3b03.js} +1 -1
- package/assets/esri/core/workers/chunks/055802283f7e01ee87fb.js +1 -0
- package/assets/esri/core/workers/chunks/06df9ce870360cda06c7.js +1 -0
- package/assets/esri/core/workers/chunks/{08ec5461af74356e7570.js → 075eb62465edb9cbf907.js} +1 -1
- package/assets/esri/core/workers/chunks/{5fe9eea35ddb428efd8b.js → 0b26c01a1190e8fd63fb.js} +1 -1
- package/assets/esri/core/workers/chunks/{24729603dcdbd95fd01e.js → 0d982abff7c9496f7890.js} +1 -1
- package/assets/esri/core/workers/chunks/0fd7590e545864f5fff4.js +1 -0
- package/assets/esri/core/workers/chunks/{b9d1bb106737a05290e1.js → 104d74bc36c28c519396.js} +1 -1
- package/assets/esri/core/workers/chunks/10ac92dcd3738ec23dfb.js +1 -0
- package/assets/esri/core/workers/chunks/11d911f70bf0ca252c19.js +1 -0
- package/assets/esri/core/workers/chunks/1352b5c6767e5421bc02.js +1 -0
- package/assets/esri/core/workers/chunks/1354b8442c2c501238f1.js +1 -0
- package/assets/esri/core/workers/chunks/1438f571f738e83b4d1c.js +1 -0
- package/assets/esri/core/workers/chunks/14469f664fd5ede469fc.js +1 -0
- package/assets/esri/core/workers/chunks/14511c92cbbc26d80c86.js +1 -0
- package/assets/esri/core/workers/chunks/14be79c4cc6137c7db95.js +1 -0
- package/assets/esri/core/workers/chunks/{ef47a5da641cb0d33fdf.js → 197a6d561f77ac74283a.js} +1 -1
- package/assets/esri/core/workers/chunks/19dac19122eeeb5e36b2.js +1 -0
- package/assets/esri/core/workers/chunks/{e4e5a171a4874c5af4a4.js → 1a7d2912c8eac8c83c70.js} +1 -1
- package/assets/esri/core/workers/chunks/{b9c61b20bbc91cb63036.js → 1c3861297f65ee1ca5d0.js} +1 -1
- package/assets/esri/core/workers/chunks/1d1cfe0bee506d34268e.js +1 -0
- package/assets/esri/core/workers/chunks/20db27d9828397d0b37a.js +1 -0
- package/assets/esri/core/workers/chunks/2161cf64601f28bbe72d.js +1 -0
- package/assets/esri/core/workers/chunks/218ddad849745d652a28.js +1 -0
- package/assets/esri/core/workers/chunks/{5b70295da76d9227f64b.js → 22c477147421e68f7f00.js} +1 -1
- package/assets/esri/core/workers/chunks/24944b625ed8dcd904f0.js +1 -0
- package/assets/esri/core/workers/chunks/25696c194457e42b3bdc.js +1 -0
- package/assets/esri/core/workers/chunks/25f6d5604a7959afd5a5.js +1 -0
- package/assets/esri/core/workers/chunks/26c12804a0d801df29bf.js +1 -0
- package/assets/esri/core/workers/chunks/{67ebde34377f98d17cda.js → 26c8ed0aef59ed6d5267.js} +1 -1
- package/assets/esri/core/workers/chunks/{c1e5ffe9a251be5a0744.js → 278760d194203dd27fc3.js} +1 -1
- package/assets/esri/core/workers/chunks/28b576663ed4570ec825.js +1 -0
- package/assets/esri/core/workers/chunks/{841c81c280114412c95b.js → 2a4c91b006de1ceba539.js} +1 -1
- package/assets/esri/core/workers/chunks/2b299aec2a758bcd9731.js +1 -0
- package/assets/esri/core/workers/chunks/2d1c0d80a9843567df8d.js +1 -0
- package/assets/esri/core/workers/chunks/{b084829a3fd709dc47a8.js → 2d683ac4a993ec5fd6f6.js} +1 -1
- package/assets/esri/core/workers/chunks/2d6e1bf7c1981bed4357.js +1 -0
- package/assets/esri/core/workers/chunks/{a8ec5b85c2fa6fb4f391.js → 30b40ee875d46e6fde02.js} +1 -1
- package/assets/esri/core/workers/chunks/31b3744f71750e512d4e.js +1 -0
- package/assets/esri/core/workers/chunks/3239c7994019f15e261d.js +1 -0
- package/assets/esri/core/workers/chunks/{d520d407043bc52e5410.js → 3336ad383c184dd07bb3.js} +1 -1
- package/assets/esri/core/workers/chunks/{c29df43817278f674707.js → 33aaa5a49e396a0aca47.js} +1 -1
- package/assets/esri/core/workers/chunks/{7529c0fcfb83998e63db.js → 34f6093d2c00e3584037.js} +1 -1
- package/assets/esri/core/workers/chunks/36265e5f6d396eadf0be.js +1 -0
- package/assets/esri/core/workers/chunks/{0ae0483b72f5e8d00d55.js → 3715d6b295016eeb5031.js} +1 -1
- package/assets/esri/core/workers/chunks/3851ebf3548e2763b24f.js +1 -0
- package/assets/esri/core/workers/chunks/3a4b117af89dab5153eb.js +1 -0
- package/assets/esri/core/workers/chunks/3a9ef47122e10cecd3a4.js +1 -0
- package/assets/esri/core/workers/chunks/3f0625c31dd46b563160.js +1 -0
- package/assets/esri/core/workers/chunks/40b842d055b87e442156.js +1 -0
- package/assets/esri/core/workers/chunks/{c37b28f200b704ae6002.js → 4239d64f067417e0643c.js} +1 -1
- package/assets/esri/core/workers/chunks/43122c435497228a7583.js +1 -0
- package/assets/esri/core/workers/chunks/44d13f65465646e5f6e9.js +1 -0
- package/assets/esri/core/workers/chunks/463b7952a4825541eb13.js +1 -0
- package/assets/esri/core/workers/chunks/{345510a95e893fa8040a.js → 469e72ab6cd44272f474.js} +1 -1
- package/assets/esri/core/workers/chunks/{bd88228f781a0399d8bd.js → 49e37f653b81f9e4f7cc.js} +1 -1
- package/assets/esri/core/workers/chunks/4c5200e22b8a723f53f9.js +1 -0
- package/assets/esri/core/workers/chunks/4cf2c33494cb75942511.js +1 -0
- package/assets/esri/core/workers/chunks/{2bcb7e43578124538c3c.js → 4d672110aee304692f60.js} +1 -1
- package/assets/esri/core/workers/chunks/4f36596280142be1c666.js +1 -0
- package/assets/esri/core/workers/chunks/50e6e43ea98cb0d05d91.js +1 -0
- package/assets/esri/core/workers/chunks/{8e374ce47256a567ae11.js → 519745cf844c76452a46.js} +1 -1
- package/assets/esri/core/workers/chunks/52042fd36f4a572938f0.js +1 -0
- package/assets/esri/core/workers/chunks/{3b14ed3184743df336a6.js → 53d80202b5f43542d45b.js} +1 -1
- package/assets/esri/core/workers/chunks/54524cc4328f31d8c25d.js +1 -0
- package/assets/esri/core/workers/chunks/5515005e8893bd551aaf.js +1 -0
- package/assets/esri/core/workers/chunks/563a4d6788ad66b676e4.js +1 -0
- package/assets/esri/core/workers/chunks/{eee1fd629619021ea279.js → 56a6c7abfb4d88ea1bb5.js} +1 -1
- package/assets/esri/core/workers/chunks/58d10928959ae1e2e8d9.js +1 -0
- package/assets/esri/core/workers/chunks/598221c7054415b84904.js +1 -0
- package/assets/esri/core/workers/chunks/59f0a2bd40b033ce77e4.js +1 -0
- package/assets/esri/core/workers/chunks/{38660a8cc3623c854d88.js → 5a006ff759fad9fc25cb.js} +1 -1
- package/assets/esri/core/workers/chunks/{087bd698b80ca0cea71e.js → 5aadfd11df6618883c5d.js} +1 -1
- package/assets/esri/core/workers/chunks/5b60fc95757b2a53558a.js +1 -0
- package/assets/esri/core/workers/chunks/5c634b3e6dc76299b1df.js +1 -0
- package/assets/esri/core/workers/chunks/5d30accf1dcda0c70f95.js +1 -0
- package/assets/esri/core/workers/chunks/605da92d28e067f4a4c6.js +1 -0
- package/assets/esri/core/workers/chunks/61f230e50787abbfc8ba.js +1 -0
- package/assets/esri/core/workers/chunks/6270acb7545be2c5126f.js +1 -0
- package/assets/esri/core/workers/chunks/{f3bbebedad51f776bb98.js → 62992c3d98c20f611b7b.js} +1 -1
- package/assets/esri/core/workers/chunks/{ac87be2210f868524996.js → 629f60ee49e0dcfb7165.js} +1 -1
- package/assets/esri/core/workers/chunks/645d5db85f84b1f19b59.js +1 -0
- package/assets/esri/core/workers/chunks/{1f888f026b004447772c.js → 657528eb6a3d3b3cb631.js} +1 -1
- package/assets/esri/core/workers/chunks/66292e98b4111ea3658d.js +1 -0
- package/assets/esri/core/workers/chunks/680496660b2aaa710099.js +1 -0
- package/assets/esri/core/workers/chunks/{ee63c693f2539f3bfa17.js → 6c389e9646a48c26da20.js} +2 -2
- package/assets/esri/core/workers/chunks/{2d1ae18a28491b00091d.js → 6db4a4f9a9ce7cc738d0.js} +1 -1
- package/assets/esri/core/workers/chunks/6eb28086dc28f6d144ec.js +1 -0
- package/assets/esri/core/workers/chunks/{702b2381acf4d1f90094.js → 6f08c8a1e8e3ffd0a96a.js} +1 -1
- package/assets/esri/core/workers/chunks/6f4ee60e89d154e7b1c4.js +1 -0
- package/assets/esri/core/workers/chunks/7230d74ef720431cc75e.js +1 -0
- package/assets/esri/core/workers/chunks/73a8a3baf0fed803ef4f.js +1 -0
- package/assets/esri/core/workers/chunks/{4d7a3b3aaf876da0891b.js → 76e6d894c33221369895.js} +1 -1
- package/assets/esri/core/workers/chunks/7833a82d5bac2aed565e.js +1 -0
- package/assets/esri/core/workers/chunks/7a05f5b0848dd11d2f4f.js +1 -0
- package/assets/esri/core/workers/chunks/{4c82f5f23004f905a18f.js → 7b605ed92e65083da35f.js} +1 -1
- package/assets/esri/core/workers/chunks/7bd8ebb321ecf1f06496.js +1 -0
- package/assets/esri/core/workers/chunks/7d5877eede2f552dea9f.js +1 -0
- package/assets/esri/core/workers/chunks/7eb94fc75926bc739233.js +1 -0
- package/assets/esri/core/workers/chunks/809349086117f199b7a5.js +1 -0
- package/assets/esri/core/workers/chunks/82e62a54b350e7a325f7.js +1 -0
- package/assets/esri/core/workers/chunks/836c458a7eb96391cfda.js +1 -0
- package/assets/esri/core/workers/chunks/83a77d3f45c8c21cec45.js +1 -0
- package/assets/esri/core/workers/chunks/851a5a0262dc8dcb67eb.js +1 -0
- package/assets/esri/core/workers/chunks/865f9adc591056458b6b.js +1 -0
- package/assets/esri/core/workers/chunks/88771a75adcbd54c4fac.js +1 -0
- package/assets/esri/core/workers/chunks/8c6a60d96c73982febd2.js +1 -0
- package/assets/esri/core/workers/chunks/{619aa1381296172ff47b.js → 8e19b2ce9868a9a08da0.js} +1 -1
- package/assets/esri/core/workers/chunks/8ea28a4b1afe8bb2d313.js +1 -0
- package/assets/esri/core/workers/chunks/911f3a1b8dd4bc5c9782.js +1 -0
- package/assets/esri/core/workers/chunks/{40693ee558a1eb1e93f4.js → 918577ea025f67ebe372.js} +1 -1
- package/assets/esri/core/workers/chunks/{fe71a0604f0928113419.js → 958e161634b5bfd50625.js} +1 -1
- package/assets/esri/core/workers/chunks/95ff342e5c29bf91a765.js +1 -0
- package/assets/esri/core/workers/chunks/97162bbbedb02e42d0b8.js +1 -0
- package/assets/esri/core/workers/chunks/{680dd7b7638465eb33de.js → 98739b6e7904045edbab.js} +1 -1
- package/assets/esri/core/workers/chunks/99966339b061eb9945b8.js +1 -0
- package/assets/esri/core/workers/chunks/9aa41d098eeda01ded3a.js +1 -0
- package/assets/esri/core/workers/chunks/{315031323e11a18154e3.js → 9c04233d18a9585b5bfe.js} +1 -1
- package/assets/esri/core/workers/chunks/9c7afe90495766bba37f.js +1 -0
- package/assets/esri/core/workers/chunks/{69b9a327f23e052fced7.js → 9d5d7289a9e23efc7f73.js} +1 -1
- package/assets/esri/core/workers/chunks/9e49a6ce4a133476092f.js +1 -0
- package/assets/esri/core/workers/chunks/9e840a71906c4deef776.js +1 -0
- package/assets/esri/core/workers/chunks/a1bf2111fee455b16e6a.js +29 -0
- package/assets/esri/core/workers/chunks/{910c93bbbf8113a4a51f.js → a2a231a671ff578b7b01.js} +1 -1
- package/assets/esri/core/workers/chunks/a2fd945659ce052f99d2.js +1 -0
- package/assets/esri/core/workers/chunks/{16929524565a677db4dc.js → a406a41a2f117247f1ef.js} +1 -1
- package/assets/esri/core/workers/chunks/a4b63162615a485b08dc.js +1 -0
- package/assets/esri/core/workers/chunks/a9a1061cdf82b372835f.js +1 -0
- package/assets/esri/core/workers/chunks/ab10388dcc17a665ac3b.js +2 -0
- package/assets/esri/core/workers/chunks/ac9a3dfd02160e43fc8a.js +2 -0
- package/assets/esri/core/workers/chunks/af88f8dd1a53e4740aa6.js +1 -0
- package/assets/esri/core/workers/chunks/{2b3f76e03b7a28fc4453.js → b09e9ac5fd928e69b053.js} +1 -1
- package/assets/esri/core/workers/chunks/{6c982779d6d47ec99899.js → b0a9a770b735440846cd.js} +1 -1
- package/assets/esri/core/workers/chunks/b2d6fd436981c890152f.js +1 -0
- package/assets/esri/core/workers/chunks/b3034fbcbe77ef9e7c20.js +1 -0
- package/assets/esri/core/workers/chunks/b4b4fe06364bea9b0750.js +1 -0
- package/assets/esri/core/workers/chunks/b661aae7e3ce955a783e.js +1 -0
- package/assets/esri/core/workers/chunks/b7bcc2d0b0fa8e703c83.js +1 -0
- package/assets/esri/core/workers/chunks/{75fc0b1db8e2e3fd2458.js → b8548eb7680abeaf3cd1.js} +1 -1
- package/assets/esri/core/workers/chunks/b9db8d059c2ea39518e7.js +1 -0
- package/assets/esri/core/workers/chunks/ba67aaa08e4f11e1140a.js +1 -0
- package/assets/esri/core/workers/chunks/ba8777844fef6ed3ac2b.js +1 -0
- package/assets/esri/core/workers/chunks/ba99a650ea64f5024185.js +1 -0
- package/assets/esri/core/workers/chunks/{e421dee5d8b030e79ffb.js → bbeb61d9302323bae9fb.js} +1 -1
- package/assets/esri/core/workers/chunks/bbfd2b4af8e498b61af9.js +1 -0
- package/assets/esri/core/workers/chunks/{cada52d719c35d40958a.js → bd1c870694edd25bf8aa.js} +1 -1
- package/assets/esri/core/workers/chunks/c1f125594e684c1b4ffc.js +1 -0
- package/assets/esri/core/workers/chunks/c30b6bbabd05e4976fba.js +1 -0
- package/assets/esri/core/workers/chunks/c456abf5ee2a1ad5cc5b.js +1 -0
- package/assets/esri/core/workers/chunks/c61e94806b37ca3dd549.js +2 -0
- package/assets/esri/core/workers/chunks/c71368cd64f240da1743.js +1 -0
- package/assets/esri/core/workers/chunks/c899457f19b749516275.js +1 -0
- package/assets/esri/core/workers/chunks/c8d83f71326222b98608.js +1 -0
- package/assets/esri/core/workers/chunks/c9653a15324ca53d50e7.js +1 -0
- package/assets/esri/core/workers/chunks/{9937920e7993814d0b2c.js → ca695ab000a1e8765d69.js} +1 -1
- package/assets/esri/core/workers/chunks/cc1a00694cc9f7c606d6.js +1 -0
- package/assets/esri/core/workers/chunks/{b792857a178da2dd77d6.js → cc419e1c5c1dee7ec972.js} +1 -1
- package/assets/esri/core/workers/chunks/{2ce845c990bb4d701362.js → cc817c9d3f8e8f8c56e4.js} +1 -1
- package/assets/esri/core/workers/chunks/cdd4aeaa3f30bc4ea93a.js +1 -0
- package/assets/esri/core/workers/chunks/cf6799fd008d0d7016f7.js +1 -0
- package/assets/esri/core/workers/chunks/cfcb258b7e464f219434.js +1 -0
- package/assets/esri/core/workers/chunks/d0c8630177d3a4e316f1.js +2 -0
- package/assets/esri/core/workers/chunks/{ac59218847e5ef4c4160.js → d0e00f0bb7b9435e170d.js} +1 -1
- package/assets/esri/core/workers/chunks/{33e293836f5d28dc5d62.js → d13eeff678972a245d5d.js} +1 -1
- package/assets/esri/core/workers/chunks/d1aa87d846a884492b47.js +1 -0
- package/assets/esri/core/workers/chunks/{0179949495c87466b428.js → d3a183d90f1ccc8da2bb.js} +10 -10
- package/assets/esri/core/workers/chunks/d433bfa2abf2ca8239ba.js +1 -0
- package/assets/esri/core/workers/chunks/d4cc8eef64b8c84217a5.js +1 -0
- package/assets/esri/core/workers/chunks/{2740f755c3a322cbd477.js → d672c2a1c8eddd235171.js} +1 -1
- package/assets/esri/core/workers/chunks/{24006cea112d657f053a.js → da233362b06b6db375f1.js} +1 -1
- package/assets/esri/core/workers/chunks/da6134c7883531f21afe.js +1 -0
- package/assets/esri/core/workers/chunks/dbc36b85413fae52b56d.js +1 -0
- package/assets/esri/core/workers/chunks/dd91824692bec809909c.js +1 -0
- package/assets/esri/core/workers/chunks/dd9af4ddefa0b998aa4b.js +1 -0
- package/assets/esri/core/workers/chunks/e2ceddd6bcdabec77cc7.js +1 -0
- package/assets/esri/core/workers/chunks/e3eab61815ef1c521a6c.js +1 -0
- package/assets/esri/core/workers/chunks/e706c37b44e98fbcb5f7.js +1 -0
- package/assets/esri/core/workers/chunks/ead4143d811aab610e00.js +2 -0
- package/assets/esri/core/workers/chunks/ef269dd559c1c79957e5.js +1 -0
- package/assets/esri/core/workers/chunks/efaa455beeefbf97a4c5.js +1 -0
- package/assets/esri/core/workers/chunks/f0692e10af5983f6ad93.js +1 -0
- package/assets/esri/core/workers/chunks/f16b6cd6b325eb600e82.js +1 -0
- package/assets/esri/core/workers/chunks/f1d0208c6b09c1c4b248.js +1 -0
- package/assets/esri/core/workers/chunks/f1fa377e8fa53b02876f.js +1 -0
- package/assets/esri/core/workers/chunks/{ebb722118a220c92efc3.js → f248131df4eaa5291623.js} +1 -1
- package/assets/esri/core/workers/chunks/f762f0f6c83748d8e328.js +1 -0
- package/assets/esri/core/workers/chunks/{b9bdb1f05e904c3655e4.js → f834aa732c3f06525089.js} +1 -1
- package/assets/esri/core/workers/chunks/{fb12d3c63fcac8391e06.js → fa29b5064d6626cfc019.js} +1 -1
- package/assets/esri/core/workers/chunks/fa7a6906598d1002abfd.js +1 -0
- package/assets/esri/core/workers/chunks/{e9e4b27ba06a29e6340c.js → faf14281a74a06fa1f30.js} +1 -1
- package/assets/esri/core/workers/chunks/fb86b334bfca4670dcfa.js +1 -0
- package/assets/esri/core/workers/chunks/{1ef28d4457c8c943ad19.js → fbede01a363895b6381f.js} +1 -1
- package/assets/esri/core/workers/chunks/{073f1d5f89875c6aefb1.js → fc1aeea22f8c9d63864a.js} +1 -1
- package/assets/esri/core/workers/chunks/fcf7299e2ee904ab9882.js +1 -0
- package/assets/esri/core/workers/chunks/{9230ad807020fc2bbf8e.js → fe06cc2f90b2d551e4c1.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a3289e15e0ce92e3813.js → fe335441ea233cb0fad5.js} +1 -1
- package/assets/esri/core/workers/chunks/{d7b6985984071e78c764.js → ffad5fd9c5e98f4fe2c3.js} +1 -1
- package/assets/esri/core/workers/chunks/ffe2cbfea38b92a231d6.js +1 -0
- package/assets/esri/geometry/support/pe-wasm.wasm +0 -0
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
- package/chunks/EmissionComposite.glsl.js +7 -1
- package/chunks/Envelope.js +1 -1
- package/chunks/GaussianSplat.glsl.js +8 -8
- package/chunks/GaussianSplatDepth.glsl.js +4 -4
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/GeodeticUtils.js +1 -1
- package/chunks/GeographicTransformation.js +2 -0
- package/chunks/Geometry.js +1 -1
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorCrosses.js +1 -1
- package/chunks/OperatorCut.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
- package/chunks/OperatorGeodeticLength.js +1 -1
- package/chunks/OperatorGraphicBuffer.js +1 -1
- package/chunks/OperatorIntegrate.js +1 -1
- package/chunks/OperatorIntersects.js +1 -1
- package/chunks/OperatorMultiPartToSinglePart.js +1 -1
- package/chunks/OperatorOverlaps.js +1 -1
- package/chunks/OperatorProject.js +1 -1
- package/chunks/OperatorProximity.js +1 -1
- package/chunks/OperatorProximityGeodesic.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/OperatorSimplifyOGC.js +1 -1
- package/chunks/OperatorTouches.js +1 -1
- package/chunks/OperatorWithin.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/ProjectionTransformation.js +1 -1
- package/chunks/SideCalculator2D-DX0718xq.js +1 -1
- package/chunks/SpatialReference.js +1 -1
- package/chunks/UnitFactory.js +2 -0
- package/chunks/containsOperator.js +1 -1
- package/chunks/disjointOperator.js +1 -1
- package/chunks/equalsOperator.js +1 -1
- package/chunks/pe-wasm.js +1 -1
- package/chunks/relateOperator.js +1 -1
- package/config.js +1 -1
- package/geometry/operators/containsOperator.js +1 -1
- package/geometry/operators/disjointOperator.js +1 -1
- package/geometry/operators/gx/geodeticUtils.js +1 -1
- package/geometry/operators/gx/operatorAutoComplete.js +1 -1
- package/geometry/operators/gx/operatorBuffer.js +1 -1
- package/geometry/operators/gx/operatorDifference.js +1 -1
- package/geometry/operators/gx/operatorGeodesicBuffer.js +1 -1
- package/geometry/operators/gx/operatorGeodeticArea.js +1 -1
- package/geometry/operators/gx/operatorGeodeticDensify.js +1 -1
- package/geometry/operators/gx/operatorGeodeticDistance.js +1 -1
- package/geometry/operators/gx/operatorGeodeticLength.js +1 -1
- package/geometry/operators/gx/operatorIntersection.js +1 -1
- package/geometry/operators/gx/operatorLabelPoint.js +1 -1
- package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
- package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
- package/geometry/operators/gx/operatorProject.js +1 -1
- package/geometry/operators/gx/operatorProximityGeodesic.js +1 -1
- package/geometry/operators/gx/operatorShapePreservingProject.js +1 -1
- package/geometry/operators/gx/operatorSimplify.js +1 -1
- package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
- package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
- package/geometry/operators/gx/operatorUnion.js +1 -1
- package/geometry/operators/json/containsOperator.js +1 -1
- package/geometry/operators/json/disjointOperator.js +1 -1
- package/geometry/operators/projectOperator.js +1 -1
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/support/GeographicTransformation.d.ts +7 -0
- package/geometry/operators/support/GeographicTransformation.js +1 -1
- package/geometry/operators/support/GeographicTransformationStep.d.ts +7 -1
- package/geometry/operators/support/GeographicTransformationStep.js +1 -1
- package/geometry/operators/support/geographicTransformationUtils.d.ts +13 -2
- package/geometry/operators/support/geographicTransformationUtils.js +1 -1
- package/geometry/operators/support/initNoPeFactory.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/operators/support/projectionTransformation.js +1 -1
- package/geometry/projection/projectionUtilsState.js +2 -0
- package/geometry/projectionUtils.js +1 -1
- package/geometry/support/geometryUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/raster/datasets/MRFRaster.js +1 -1
- package/layers/raster/formats/JpgPlus.js +1 -1
- package/layers/raster/formats/RasterCodec.js +1 -1
- package/layers/raster/types.d.ts +65 -0
- package/layers/support/AggregateField.d.ts +9 -3
- package/layers/support/FeatureReductionCluster.d.ts +16 -6
- package/layers/support/I3SExtractChanges.js +2 -0
- package/package.json +3 -3
- package/renderers/support/AuthoringInfo.d.ts +8 -3
- package/support/revision.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/effects/EffectRadial.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightDrawToolRenderer.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightInteractionVisuals.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
- package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
- package/views/3d/state/controllers/ZoomControllerLocal.js +1 -1
- package/views/3d/state/controllers/ZoomStepControllerLocal.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/support/PBFDecoder.js +1 -1
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
- package/views/3d/terrain/PlanarPatch.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl-engine/Stage.js +1 -1
- package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionCompositeTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatDepthPolicy.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +50 -22
- package/views/MapView.d.ts +0 -60
- package/views/View2D.d.ts +59 -1
- package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
- package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
- package/views/support/GroundElevationSampler.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
- package/widgets/BatchAttributeForm/expressions/expressionUtils.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileViewModel.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/Legend/support/utils.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageLocationViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/assets/esri/core/workers/chunks/04105d83556409489835.js +0 -1
- package/assets/esri/core/workers/chunks/05b6b2c0b76afb100e33.js +0 -1
- package/assets/esri/core/workers/chunks/0909816f13d25cacf250.js +0 -1
- package/assets/esri/core/workers/chunks/0933203eee15ea50e123.js +0 -1
- package/assets/esri/core/workers/chunks/0b18de5147d76b68896f.js +0 -1
- package/assets/esri/core/workers/chunks/0d9d33f29124d464a4cb.js +0 -1
- package/assets/esri/core/workers/chunks/0d9fe49812554e7d7ba7.js +0 -1
- package/assets/esri/core/workers/chunks/0da5b27b070ab780f8b3.js +0 -1
- package/assets/esri/core/workers/chunks/0e333aced8b23aa49a0e.js +0 -1
- package/assets/esri/core/workers/chunks/0eaa8265a4cd64297545.js +0 -1
- package/assets/esri/core/workers/chunks/1142f8e9c80207d6bdae.js +0 -1
- package/assets/esri/core/workers/chunks/118ccfa2d685764752ee.js +0 -1
- package/assets/esri/core/workers/chunks/12a64eca4c571926d9d4.js +0 -1
- package/assets/esri/core/workers/chunks/1642fa1263d8f4a45101.js +0 -1
- package/assets/esri/core/workers/chunks/16a04fc184728d66e6e1.js +0 -1
- package/assets/esri/core/workers/chunks/18e0e993c0c39c962e61.js +0 -1
- package/assets/esri/core/workers/chunks/19233d0016e5b154c5ce.js +0 -1
- package/assets/esri/core/workers/chunks/1a467da4c0b33f655199.js +0 -1
- package/assets/esri/core/workers/chunks/1ac8a7a129ba33e05a24.js +0 -1
- package/assets/esri/core/workers/chunks/1d92d53186debd52e753.js +0 -1
- package/assets/esri/core/workers/chunks/1dba93abe84d30f05d8d.js +0 -1
- package/assets/esri/core/workers/chunks/2033e6d42453e4e67048.js +0 -1
- package/assets/esri/core/workers/chunks/20b54e7872d967f3be32.js +0 -1
- package/assets/esri/core/workers/chunks/2501d9459f6d14c797e5.js +0 -1
- package/assets/esri/core/workers/chunks/253c231b5a52f1d2d3a5.js +0 -1
- package/assets/esri/core/workers/chunks/257f1e8316877f611e11.js +0 -1
- package/assets/esri/core/workers/chunks/28924f31f5ba8ebdc60a.js +0 -1
- package/assets/esri/core/workers/chunks/28b09fe50b855a1d8a3f.js +0 -1
- package/assets/esri/core/workers/chunks/2b0558c1716425974563.js +0 -2
- package/assets/esri/core/workers/chunks/2e7c830b5b1fe406169f.js +0 -1
- package/assets/esri/core/workers/chunks/2f4ed8a63d57636a4ebe.js +0 -1
- package/assets/esri/core/workers/chunks/393f79843d5a78c1cc37.js +0 -1
- package/assets/esri/core/workers/chunks/3958d92c737b3a2a3bc2.js +0 -1
- package/assets/esri/core/workers/chunks/3978f00a03e97645b276.js +0 -1
- package/assets/esri/core/workers/chunks/3b5c5356353f1a2303a0.js +0 -1
- package/assets/esri/core/workers/chunks/40e48b720d89cd067892.js +0 -1
- package/assets/esri/core/workers/chunks/436d51b9f1b1b5abc4bc.js +0 -1
- package/assets/esri/core/workers/chunks/44a786aba84918f2b247.js +0 -1
- package/assets/esri/core/workers/chunks/463747a822499dd933ef.js +0 -1
- package/assets/esri/core/workers/chunks/484b251fbcbffcb58323.js +0 -1
- package/assets/esri/core/workers/chunks/495f90fe3d0ad32bb82d.js +0 -1
- package/assets/esri/core/workers/chunks/49a3888bf9e2481642ac.js +0 -1
- package/assets/esri/core/workers/chunks/4ce57dd39075e8fb357c.js +0 -1
- package/assets/esri/core/workers/chunks/5459ba8fdeb2370bb52b.js +0 -1
- package/assets/esri/core/workers/chunks/55924fb0de05e727f5e3.js +0 -1
- package/assets/esri/core/workers/chunks/55dda957c79fb285185f.js +0 -1
- package/assets/esri/core/workers/chunks/56e6d8c4a9ed893ce951.js +0 -1
- package/assets/esri/core/workers/chunks/57159bcac86d660dcceb.js +0 -1
- package/assets/esri/core/workers/chunks/58026fc30d8a0ded4102.js +0 -1
- package/assets/esri/core/workers/chunks/5eb29f0068f1c839d05e.js +0 -1
- package/assets/esri/core/workers/chunks/5f553da48d0ccbbfcd3c.js +0 -2
- package/assets/esri/core/workers/chunks/5fb76575575fe8cfb1f0.js +0 -1
- package/assets/esri/core/workers/chunks/6072c63a5da4366e9942.js +0 -1
- package/assets/esri/core/workers/chunks/626a715fdec93e188e0c.js +0 -1
- package/assets/esri/core/workers/chunks/6525c925bb91facb3575.js +0 -1
- package/assets/esri/core/workers/chunks/6529b5cc3ac6baa29fff.js +0 -2
- package/assets/esri/core/workers/chunks/65d1e338612e59063eba.js +0 -1
- package/assets/esri/core/workers/chunks/66e60351aacbd162775f.js +0 -1
- package/assets/esri/core/workers/chunks/694371f51c52a7a94da4.js +0 -1
- package/assets/esri/core/workers/chunks/69b0dcd7bcd8ec42e2c3.js +0 -1
- package/assets/esri/core/workers/chunks/7260e63252fa5452dc22.js +0 -1
- package/assets/esri/core/workers/chunks/72eb0ac55026a4f5d6a7.js +0 -1
- package/assets/esri/core/workers/chunks/79429c8be5da85713200.js +0 -1
- package/assets/esri/core/workers/chunks/79c0a966f7d11d3c217f.js +0 -1
- package/assets/esri/core/workers/chunks/7b470d6ad182548b9e95.js +0 -1
- package/assets/esri/core/workers/chunks/7b862a074816c099b9ff.js +0 -1
- package/assets/esri/core/workers/chunks/7baa363b3b0a442a63d2.js +0 -1
- package/assets/esri/core/workers/chunks/7d8eb4dbea1916320f74.js +0 -1
- package/assets/esri/core/workers/chunks/7ddf9b2718dd047f15e6.js +0 -1
- package/assets/esri/core/workers/chunks/835af7b4fd92cb4e7af0.js +0 -1
- package/assets/esri/core/workers/chunks/8566449c39eba55147f5.js +0 -1
- package/assets/esri/core/workers/chunks/864691186c449ca2c3db.js +0 -1
- package/assets/esri/core/workers/chunks/88d5541679e77117bf03.js +0 -1
- package/assets/esri/core/workers/chunks/88fd698b940dadcc6dc5.js +0 -1
- package/assets/esri/core/workers/chunks/894ebc64b698e5d7604b.js +0 -1
- package/assets/esri/core/workers/chunks/8be707044d992ef5f1d8.js +0 -1
- package/assets/esri/core/workers/chunks/8c1bddc88cc5f4251021.js +0 -1
- package/assets/esri/core/workers/chunks/8eecc6df6511c8830f5d.js +0 -1
- package/assets/esri/core/workers/chunks/8f0d4aec8bd3cbfefc40.js +0 -1
- package/assets/esri/core/workers/chunks/8fea514aada1195c8f30.js +0 -1
- package/assets/esri/core/workers/chunks/9234a293d61e134f121f.js +0 -1
- package/assets/esri/core/workers/chunks/94bf7f0da6ad3f7ea277.js +0 -1
- package/assets/esri/core/workers/chunks/987594539981483a7c5e.js +0 -1
- package/assets/esri/core/workers/chunks/995a433936fc90d41634.js +0 -2
- package/assets/esri/core/workers/chunks/9bbff8237540409610b3.js +0 -1
- package/assets/esri/core/workers/chunks/9e1392a0c608a13ab036.js +0 -1
- package/assets/esri/core/workers/chunks/9f1211d2267fb7673c4d.js +0 -1
- package/assets/esri/core/workers/chunks/a486d99f9879f94151ba.js +0 -1
- package/assets/esri/core/workers/chunks/a50421fe79f264ae3619.js +0 -1
- package/assets/esri/core/workers/chunks/a5c115fc53edb52ce1de.js +0 -1
- package/assets/esri/core/workers/chunks/a739e617fc461014ad1f.js +0 -1
- package/assets/esri/core/workers/chunks/aa21031c8f12ca438eaa.js +0 -1
- package/assets/esri/core/workers/chunks/ad27689b231e282b7620.js +0 -1
- package/assets/esri/core/workers/chunks/aed16c3e26652960ad3f.js +0 -1
- package/assets/esri/core/workers/chunks/af6e8c961fd768fa7be3.js +0 -1
- package/assets/esri/core/workers/chunks/b3a1a93c6dc9247cb048.js +0 -1
- package/assets/esri/core/workers/chunks/b4abf82b8ac974a55ae1.js +0 -1
- package/assets/esri/core/workers/chunks/b8cd81d8fcc78d272130.js +0 -1
- package/assets/esri/core/workers/chunks/b9a1046ca2cd0cca5da5.js +0 -1
- package/assets/esri/core/workers/chunks/b9d6f89f9b8e9d1bc787.js +0 -1
- package/assets/esri/core/workers/chunks/bab5f4b2424b487b87ac.js +0 -1
- package/assets/esri/core/workers/chunks/c02b3b8b71205f6ce290.js +0 -1
- package/assets/esri/core/workers/chunks/c17dda6fadb8bfad0d51.js +0 -1
- package/assets/esri/core/workers/chunks/c21212c356f65244e34e.js +0 -1
- package/assets/esri/core/workers/chunks/c374e5d5980db74c4aca.js +0 -1
- package/assets/esri/core/workers/chunks/c6bf17b5ff6ec4b980a1.js +0 -1
- package/assets/esri/core/workers/chunks/c99dcc17fbd7acd2ad2e.js +0 -1
- package/assets/esri/core/workers/chunks/ce481eeb27ea9c1782ae.js +0 -1
- package/assets/esri/core/workers/chunks/cec1c87eb3749276ced4.js +0 -1
- package/assets/esri/core/workers/chunks/cef02ed3942c010da2e8.js +0 -29
- package/assets/esri/core/workers/chunks/cfdbc48f58433a3d5fc3.js +0 -1
- package/assets/esri/core/workers/chunks/d456520e4b119a2816b6.js +0 -1
- package/assets/esri/core/workers/chunks/d8da31bfe2bc4174e5aa.js +0 -1
- package/assets/esri/core/workers/chunks/da1c9257793c2817f40f.js +0 -1
- package/assets/esri/core/workers/chunks/dc0c3109b7558b4fe016.js +0 -1
- package/assets/esri/core/workers/chunks/ddd8f6154e265dbb6f9f.js +0 -1
- package/assets/esri/core/workers/chunks/de601f0d5a2a282d2efd.js +0 -1
- package/assets/esri/core/workers/chunks/e227eb44cd139fe2bc1b.js +0 -1
- package/assets/esri/core/workers/chunks/e2ddfc96ddba92302e0c.js +0 -1
- package/assets/esri/core/workers/chunks/e61ab8ef30bbe788b9d7.js +0 -1
- package/assets/esri/core/workers/chunks/e89e6eea380ca2c13b64.js +0 -1
- package/assets/esri/core/workers/chunks/e9d352d030dcad1619a6.js +0 -1
- package/assets/esri/core/workers/chunks/eb95464bd017fb839510.js +0 -1
- package/assets/esri/core/workers/chunks/ed4ac5568dc2815b066d.js +0 -1
- package/assets/esri/core/workers/chunks/ed564358cc7b3ee463a3.js +0 -1
- package/assets/esri/core/workers/chunks/ef2e0a014c982d9c7ca4.js +0 -1
- package/assets/esri/core/workers/chunks/ef9489d1dccb817460bb.js +0 -2
- package/assets/esri/core/workers/chunks/f086c6d229fb34a9d7f9.js +0 -1
- package/assets/esri/core/workers/chunks/f35e749bb5be39880cbe.js +0 -1
- package/assets/esri/core/workers/chunks/f4bc563c71c478d3912f.js +0 -1
- package/assets/esri/core/workers/chunks/f6150b51a9430691a040.js +0 -1
- package/assets/esri/core/workers/chunks/f6f7d885b4d6080e3f58.js +0 -1
- package/assets/esri/core/workers/chunks/f95870bb4d8e4e13e69e.js +0 -1
- package/assets/esri/core/workers/chunks/fa59f10ed0f182a2a7f3.js +0 -1
- package/assets/esri/core/workers/chunks/fc9065d0cd6285fe0f0d.js +0 -1
- /package/assets/esri/core/workers/chunks/{2b0558c1716425974563.js.LICENSE.txt → 6c389e9646a48c26da20.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{995a433936fc90d41634.js.LICENSE.txt → ab10388dcc17a665ac3b.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ef9489d1dccb817460bb.js.LICENSE.txt → ac9a3dfd02160e43fc8a.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ee63c693f2539f3bfa17.js.LICENSE.txt → c61e94806b37ca3dd549.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{5f553da48d0ccbbfcd3c.js.LICENSE.txt → d0c8630177d3a4e316f1.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{6529b5cc3ac6baa29fff.js.LICENSE.txt → ead4143d811aab610e00.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[91,3354,8424],{27749(e,t,i){i.d(t,{e:()=>p,l:()=>d});var n=i(86211),r=i(77085),o=i(5808);let s,a,l,c,u;function h(){return!!s&&(0,r.s1)()}async function d(){if(!h()){const[e]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1666)]).then(i.bind(i,78125)),(0,r.Hh)()]);s=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,c=e.toGeometry,u=(0,r.fz)()}}function p(e,t,i={}){const{curveType:u="geodesic",unit:h}=i;h&&(t=(0,n.oU)(t,h,"meters"));const d=l(e);return c((0,r.g7)(s(e),t,a(d),o.O[u]),d)}const m=Object.freeze(Object.defineProperty({__proto__:null,execute:p,executeMany:function(e,t,i={}){const{curveType:u="geodesic",unit:h}=i;h&&(t=(0,n.oU)(t,h,"meters"));const d=e.map(s),p=l(e);return(0,r.zo)(d,t,a(p),o.O[u]).map(e=>c(e,p))},isLoaded:h,load:d,get supportsCurves(){return u}},Symbol.toStringTag,{value:"Module"}));i.d(t,["g",0,m])},73354(e,t,i){i.d(t,{a:()=>h,b:()=>a,c:()=>r,d:()=>s,e:()=>d,f:()=>u,l:()=>c,n:()=>p,t:()=>o}),i(44208);var n=i(72727);function r(e,t,i){o(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)}function o(e,t,i,r=3,o=r){const s=(0,n.k)(e.length,r,3),a=(0,n.k)(t.length,o,3),l=Math.min(s,a),c=i[0],u=i[1],h=i[2],d=i[4],p=i[5],m=i[6],f=i[8],g=i[9],y=i[10],v=i[12],w=i[13],b=i[14];let C=0,_=0;for(let i=0;i<l;i++){const i=t[C],n=t[C+1],s=t[C+2];e[_]=c*i+d*n+f*s+v,e[_+1]=u*i+p*n+g*s+w,e[_+2]=h*i+m*n+y*s+b,C+=o,_+=r}return e}function s(e,t,i){a(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)}function a(e,t,i,r=3,o=r){const s=(0,n.k)(e.length,r,3),a=(0,n.k)(t.length,o,3),l=Math.min(s,a),c=i[0],u=i[1],h=i[2],d=i[3],p=i[4],m=i[5],f=i[6],g=i[7],y=i[8];let v=0,w=0;for(let i=0;i<l;i++){const i=t[v],n=t[v+1],s=t[v+2];e[w]=c*i+d*n+f*s,e[w+1]=u*i+p*n+g*s,e[w+2]=h*i+m*n+y*s,v+=o,w+=r}}function l(e,t,i,n=3,r=n){const o=Math.min(e.length/n,t.length/r);let s=0,a=0;for(let l=0;l<o;l++)e[a]=i*t[s],e[a+1]=i*t[s+1],e[a+2]=i*t[s+2],s+=r,a+=n;return e}function c(e,t,i,n){u(e.typedBuffer,t.typedBuffer,i,n,e.typedBufferStride,t.typedBufferStride)}function u(e,t,i,n,r=3,o=r){const s=Math.min(e.length/r,t.length/o);let a=0,l=0;const c=1/2.2;for(let u=0;u<s;u++)e[l]=n*(i*t[a])**c,e[l+1]=n*(i*t[a+1])**c,e[l+2]=n*(i*t[a+2])**c,a+=o,l+=r}function h(e,t,i,r=3,o=r){const s=(0,n.k)(e.length,r,3),a=(0,n.k)(t.length,o,3),l=Math.min(s,a);let c=0,u=0;for(let n=0;n<l;n++)e[u]=t[c]+i[0],e[u+1]=t[c+1]+i[1],e[u+2]=t[c+2]+i[2],c+=o,u+=r;return e}function d(e,t){p(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function p(e,t,i=3,n=i){const r=Math.min(e.length/i,t.length/n);let o=0,s=0;for(let a=0;a<r;a++){const r=t[o],a=t[o+1],l=t[o+2],c=r*r+a*a+l*l;if(c>0){const t=1/Math.sqrt(c);e[s]=t*r,e[s+1]=t*a,e[s+2]=t*l}o+=n,s+=i}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:c,normalize:p,normalizeView:d,scale:l,scaleView:function(e,t,i){l(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,i){const n=Math.min(e.count,t.count),r=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride;let l=0,c=0;for(let e=0;e<n;e++)r[c]=s[l]>>i,r[c+1]=s[l+1]>>i,r[c+2]=s[l+2]>>i,l+=a,c+=o},transformMat3:a,transformMat3View:s,transformMat4:o,transformMat4View:r,translate:h},Symbol.toStringTag,{value:"Module"}))},7762(e,t,i){var n,r=i(5482),o=i(98291),s=i(4576),a=i(65529),l=i(36563),c=i(4718),u=i(53966),h=i(93687),d=i(76030),p=i(56507),m=i(62788),f=i(10107),g=i(7695),y=i(64108),v=i(95488),w=i(12195);class b{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class C{constructor(e,t,i,n,r){this.target=e,this.added=t,this.removed=i,this.start=n,this.deleteCount=r}}const _=new h.A(()=>new b,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function M(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function T(e){return e?e instanceof E?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function x(e){if(e?.length)return e[0]}function A(e,t,i,n){const r=Math.min(e.length-i,t.length-n);let o=0;for(;o<r&&e[i+o]===t[n+o];)o++;return o}function S(e,t,i,n){t&&t.forEach((t,r,o)=>{e.push(t),S(e,i.call(n,t,r,o),i,n)})}const D=new Set,R=new Set,Z=new Set,O=new Map;let I=0,E=n=class extends a.nJ{static ofType(e){if(!e)return n;if(O.has(e))return O.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const i in e.typeMap){const n=e.typeMap[i].prototype.declaredClass;t?t+=` | ${n}`:t=n}let i=class extends n{};return(0,r.Cg)([(0,g.u)({Type:e,ensureType:"function"==typeof e?(0,p.dp)(e):(0,p.aq)(e)})],i.prototype,"itemType",void 0),i=(0,r.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],i),O.set(e,i),i}static isCollection(e){return null!=e&&e instanceof n}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new v.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:I++})}normalizeCtorArgs(e){return e?(0,s.yc)(e)||e instanceof n?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,m.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,T(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,i={removed:!1,callback:t};return e.push(i),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{i.removed=!0,e.splice(e.indexOf(i),1)})}return super.on(e,t)}once(e,t){const i="deref"in t?()=>t.deref():()=>t,n=this.on(e,e=>{i()?.call(null,e),n.remove()});return n}add(e,t){if((0,m.gc)(this._observable),this._emitBeforeChanges(1))return this;const i=this.getNextIndex(t??null);return this._splice(i,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,m.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const i=this.getNextIndex(t);return this._splice(i,0,T(e)),this._emitAfterChanges(1),this}at(e){if((0,m.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.map(c.o8)})}concat(...e){(0,m.gc)(this._observable);const t=e.map(T);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const i=this._splice(0,this.length),n=i.length;for(let r=0;r<n;r++)e.call(t,i[r],r,i);this._emitAfterChanges(2)}destroyAll(){this.drain(M)}destroyMany(e){const t=this.removeMany(e);return t.forEach(M),t}every(e,t){return(0,m.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,m.gc)(this._observable);const i=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:i})}find(e,t){return(0,m.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,m.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,m.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,m.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,m.gc)(this._observable);const i=[];return S(i,this,e,t),new n(i)}forEach(e,t){return(0,m.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,m.gc)(this._observable),this._items[e]}getNextIndex(e){(0,m.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,m.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,m.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,m.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,m.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,m.gc)(this._observable);const i=this._items.map(e,t);return new n({items:i})}reorder(e,t=this.length-1){(0,m.gc)(this._observable);const i=this.indexOf(e);if(-1!==i){if(t<0?t=0:t>=this.length&&(t=this.length-1),i!==t){if(this._emitBeforeChanges(4))return e;this._splice(i,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=x(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,m.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,m.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduce(e,t):i.reduce(e)}reduceRight(e,t){(0,m.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduceRight(e,t):i.reduceRight(e)}remove(e){return(0,m.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,m.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=x(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,m.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof n?e.toArray():e,i=this._items,r=[],o=t.length;for(let e=0;e<o;e++){const n=t[e],o=i.indexOf(n);if(o>-1){const n=1+A(t,i,e+1,o+1),s=this._splice(o,n);s&&s.length>0&&r.push.apply(r,s),e+=n-1}}return this._emitAfterChanges(2),r}reverse(){if((0,m.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=x(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,m.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let i=0;i<t;i++)if(e(this.items[i],this.items[i+1])>0)return!0;return!1}splice(e,t,...i){(0,m.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const n=(t?2:0)|(i.length?1:0);if(this._emitBeforeChanges(n))return[];const r=this._splice(e,t,i)||[];return this._emitAfterChanges(n),r}toArray(){return(0,m.gc)(this._observable),this._items.slice()}toJSON(e){return(0,m.gc)(this._observable),this.toArray().map(t=>(0,w.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,m.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,m.gc)(this._observable),this._items.toString()}unshift(...e){return(0,m.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,i){const n=this._items,r=this.itemType;let o,s;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){const t=_.acquire();t.target=this,t.cancellable=!0;for(let i=0,r=s.length;i<r;i++)o=s[i],t.reset(o),this.emit("before-remove",t),t.defaultPrevented&&(s.splice(i,1),n.splice(e,0,o),e+=1,i-=1,r-=1);_.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=_.acquire();e.target=this,e.cancellable=!1;const t=s.length;for(let i=0;i<t;i++)e.reset(s[i]),this.emit("after-remove",e);_.release(e)}}if(i?.length){if(r){const e=[];for(const t of i){const i=r.ensureType(t);null==i&&null!=t||e.push(i)}i=e}const t=this.hasEventListener("before-add"),o=this.hasEventListener("after-add"),s=e===this.length;if(t||o){const r=_.acquire();r.target=this,r.cancellable=!0;const a=_.acquire();a.target=this,a.cancellable=!1;for(const l of i)t?(r.reset(l),this.emit("before-add",r),r.defaultPrevented||(s?n.push(l):n.splice(e++,0,l),this._length=n.length,o&&(a.reset(l),this.emit("after-add",a)))):(s?n.push(l):n.splice(e++,0,l),this._length=n.length,a.reset(l),this.emit("after-add",a));_.release(a),_.release(r)}else{if(s)for(const e of i)n.push(e);else n.splice(e,0,...i);this._length=n.length}}if((i?.length||s?.length)&&this._notifyChangeEvent(i,s),this.hasEventListener("after-splice")){const n=new C(this,i,s,e,t);this.emit("after-splice",n)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const i=_.acquire();i.target=this,i.cancellable=!0,i.type=e,this.emit("before-changes",i),t=i.defaultPrevented,_.release(i)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=_.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),_.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;D.clear(),R.clear(),Z.clear();for(const{added:t,removed:i}of e){if(t)if(0===Z.size&&0===R.size)for(const e of t)D.add(e);else for(const e of t)R.has(e)?(Z.add(e),R.delete(e)):Z.has(e)||D.add(e);if(i)if(0===Z.size&&0===D.size)for(const e of i)R.add(e);else for(const e of i)D.has(e)?D.delete(e):(Z.delete(e),R.add(e))}const i=o.A.acquire();D.forEach(e=>{i.push(e)});const n=o.A.acquire();R.forEach(e=>{n.push(e)});const r=this._items,s=t.items,a=o.A.acquire();if(Z.forEach(e=>{s.indexOf(e)!==r.indexOf(e)&&a.push(e)}),t.listeners&&(i.length||n.length||a.length)){const e={target:this,added:i,removed:n,moved:a},r=t.listeners.length;for(let i=0;i<r;i++){const n=t.listeners[i];n.removed||n.callback.call(this,e)}}o.A.release(i),o.A.release(n),o.A.release(a)}D.clear(),R.clear(),Z.clear()}};(0,r.Cg)([(0,f.MZ)()],E.prototype,"_updating",void 0),(0,r.Cg)([(0,f.MZ)()],E.prototype,"_length",void 0),(0,r.Cg)([(0,f.MZ)()],E.prototype,"length",null),(0,r.Cg)([(0,f.MZ)()],E.prototype,"items",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0})],E.prototype,"updating",null),E=n=(0,r.Cg)([(0,y.$)("esri.core.Collection")],E);const L=E;i.d(t,["A",0,L])},4902(e,t,i){var n=i(5482),r=i(64108);let o=0;const s=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return i=(0,n.Cg)([(0,r.$)("esri.core.Identifiable")],i),i};s(class{}),i.d(t,["s",0,s])},7695(e,t,i){function n(e){return(t,i)=>{t[i]=e}}i.d(t,{u:()=>n})},82534(e,t,i){function n(){return[0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3]]}i.d(t,{o8:()=>r,vt:()=>n});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:r,create:n,fromValues:function(e,t,i,n){return[e,t,i,n]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["zK",0,o])},48163(e,t,i){function n(){return[0,0]}function r(e){return[e[0],e[1]]}function o(e,t){return[e,t]}function s(){return o(1,1)}function a(){return o(-1,-1)}function l(){return o(1,0)}function c(){return o(0,1)}i.d(t,{fA:()=>o,o8:()=>r,vt:()=>n});const u=s(),h=a(),d=l(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:h,ONES:u,UNIT_X:d,UNIT_Y:p,ZEROS:[0,0],clone:r,create:n,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const i=Math.min(2,e.length);for(let n=0;n<i;++n)t[n]=e[n];return t},fromValues:o,negativeOnes:a,ones:s,unitX:l,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["IA",0,h,"Un",0,u])},36708(e,t,i){i.d(t,{C_:()=>d,on:()=>h,wB:()=>l,z7:()=>c});var n=i(37955),r=i(36563),o=i(97768),s=i(17676),a=i(14012);function l(e,t,i={}){return u(e,t,i,p)}function c(e,t,i={}){return u(e,t,i,m)}function u(e,t,i={},n){let r=null;const s=i.once?(e,i)=>{n(e)&&((0,o.xt)(r),t(e,i))}:(e,i)=>{n(e)&&t(e,i)};if(r=(0,a.Cn)(e,s,i.sync,i.equals),i.initial){const t=e();s(t,t)}return r}function h(e,t,i,s={}){let a=null,c=null,u=null;function h(){a&&c&&(c.remove(),s.onListenerRemove?.(a),a=null,c=null)}function d(e){s.once&&s.once&&(0,o.xt)(u),i(e)}const p=l(e,(e,i)=>{h(),(0,n.wb)(e)&&(a=e,c=(0,n.on)(e,t,d),s.onListenerAdd?.(e))},{sync:s.sync,initial:!0});return u=(0,r.hA)(()=>{p.remove(),h()}),u}function d(e,t){return function(e,t,i){if((0,s.G4)(i))return Promise.reject((0,s.NK)());const n=e();if(t?.(n))return Promise.resolve(n);let a=null;function l(){a=(0,o.xt)(a)}return new Promise((n,o)=>{a=(0,r.vE)([(0,s.u7)(i,()=>{l(),o((0,s.NK)())}),u(e,e=>{l(),n(e)},{sync:!1,once:!0},t??p)])})}(e,m,t)}function p(e){return!0}function m(e){return!!e}i(80559),i.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},88930(e,t,i){i.d(t,{S1:()=>a,lL:()=>c,mi:()=>l,rb:()=>u,t:()=>h});var n=i(97770),r=(i(98623),i(92647));const o=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,i,o="system"){if("unknown"===i)return e;const s=new r.oh((0,n.wj)(o)),a=r.c9.fromJSDate(e,{zone:s}),l="decades"===i||"centuries"===i?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(i);return"decades"===i&&(t*=10),"centuries"===i&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,i="milliseconds"){const n=e.getTime(),r=h(t,i,"milliseconds");return new Date(n+r)}function c(e,t,i="system"){const{unit:o}=t,s=Math.max(1,Math.trunc(t.value)),a=new r.oh((0,n.wj)(i)),l=r.c9.fromJSDate(e,{zone:a}),c=e=>e-e%s;switch(o){case"milliseconds":return l.startOf("second").plus({millisecond:c(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:c(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:c(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:c(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:c(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:c(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:c(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===o?10:"centuries"===o?100:1)*s,i=e.year-e.year%t;return e.set({year:i}).toJSDate()}case"unknown":return e}}function u(e){const t=o.exec(e);if(!t)return null;const{hh:i,mm:n,ss:r,ms:a}=t.groups;return Number(i)*s.hours+Number(n)*s.minutes+Number(r||0)*s.seconds+Number(a||0)}function h(e,t,i){return 0===e?0:e*s[t]/s[i]}},35982(e,t,i){i.d(t,{B:()=>u});var n=i(4576),r=i(71511),o=i(36563),s=i(53966),a=i(97768),l=i(17676),c=i(83027);class u{constructor(e,t,i,n,r={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,c.h)(e,{...r,schedule:n}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{r.hasInitialize&&e.invoke("initialize",{}).catch(()=>{});for(const t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>s.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const i=new h(e,t);return this._listeners.push(i),this._connectListener(i),(0,o.hA)(()=>{(0,n.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,n){if(this._thread){const r=this._transferLists[e],o=r?r(t):[];return this._thread.invoke(e,t,{transferList:o,signal:i,jobPriority:n})}return this._promise?this._promise.then(()=>((0,l.Te)(i),this.invokeMethod(e,t,i))):Promise.reject((0,l.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(d):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class h{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new r.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function d(){}},54239(e,t,i){i.d(t,{A:()=>y});var n,r=i(5482),o=i(4576),s=i(66552),a=i(25482),l=i(86211),c=i(67076),u=i(91429),h=i(97348),d=i(43937),p=i(36005);const m=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=m.jsonValues.slice();(0,o.Xy)(f,"orthometric");const g=(0,s.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 y=n=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return m.write(e,t,i)}readHeightModel(e,t,i){return m.read(e)||(i?.messages&&i.messages.push(function(e,t){return new c.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,l.LA)(e)||g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new n({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,l.k1)(t);return new n({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:i}=e;if(!i)return null;const r=(null!=t?h.B.get(t):null)??h.B.get(i);return r?new n({heightModel:0===r.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(r.unit.name),vertCRS:r.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new n;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new c.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,r.Cg)([(0,u.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,r.Cg)([(0,d.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,r.Cg)([(0,p.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,r.Cg)([(0,u.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,r.Cg)([(0,p.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,r.Cg)([(0,p.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,r.Cg)([(0,u.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,r.Cg)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=n=(0,r.Cg)([(0,u.$K)("esri.geometry.HeightModelInfo")],y)},77085(e,t,i){i.d(t,{Hh:()=>a,fz:()=>u,g7:()=>l,s1:()=>s,zo:()=>c});var n=i(76061),r=i(83290);let o;function s(){return!!o&&(0,r.i)()}async function a(){if(!s()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(1088)]).then(i.bind(i,31088)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(5756)]).then(i.bind(i,15756)).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorGeodeticDensifyByLength,t(r.p)}}function l(e,t,i,n){return o.execute(e,t,i,n,null)}function c(e,t,i,r){const s=o.executeMany(new n.S(e),t,i,r,null);return Array.from(s)}function u(){return o.supportsCurves()}},4144(e,t,i){i.r(t),i.d(t,{clipToSpatialReference:()=>l,execute:()=>c,executeMany:()=>u,foldInto360Range:()=>h,foldInto360RangeGeodetic:()=>d,isLoaded:()=>s,load:()=>a,normalizeGeometry:()=>p,supportsCurves:()=>m,transform:()=>f});var n=i(76061),r=i(83290);let o;function s(){return!!o&&(0,r.i)()}async function a(){if(!s()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(9192)]).then(i.bind(i,9192)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(5756)]).then(i.bind(i,15756)).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorProject,t(r.p)}}function l(e,t,i){return o.clipToSpatialReference(e,t,null,i)}function c(e,t){return o.execute(e,t,null)}function u(e,t){const i=o.executeMany(new n.S(e),t,null);return Array.from(i)}function h(e,t){return o.foldInto360Range(e,t)}function d(e,t,i){return o.foldInto360RangeGeodetic(e,t,i)}function p(e,t,i){return o.normalizeGeometry(e,t,i)}function m(){return o.supportsCurves()}function f(e,t,i,n,r){return o.transform(e,t,i,n,r)}},83276(e,t,i){i.r(t),i.d(t,{execute:()=>p,executeMany:()=>m,isLoaded:()=>h,load:()=>d,supportsCurves:()=>u});var n=i(4144),r=i(17499);let o,s,a,l,c,u;function h(){return!!o&&(0,n.isLoaded)()}async function d(){if(!h()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1666)]).then(i.bind(i,78125)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(6129)]).then(i.bind(i,86129)),(0,n.load)()]);o=e.fromGeometry,s=e.fromSpatialReference,a=e.getSpatialReference,l=e.toGeometry,c=t.createProjectionTransformation,u=(0,n.supportsCurves)()}}function p(e,t,i){const u=a(e),h=c(s(u),s(t),i),d=l((0,n.execute)(o(e),h),t);return!i?.zConversionDisabled&&d?.hasZ&&(0,r.g)([d],u,t),d}function m(e,t,i){const u=e.map(o),h=a(e),d=c(s(h),s(t),i),p=(0,n.executeMany)(u,d).map(e=>l(e,t));return!i?.zConversionDisabled&&p&&(0,r.g)(p,h,t),p}},17499(e,t,i){i.d(t,{g:()=>o});var n=i(60408),r=i(62815);function o(e,t,i){let o;for(const s of e)if(s&&(0,n.Pv)(s)&&!("vertexAttributes"in s)){if(!o){const e="type"in s?s.type:(0,n.$B)(s);if(o=(0,r.N)(e,t,i),!o)return}o(s)}}},72727(e,t,i){function n(e,t,i){if(t<=0)return 0;const n=e-i;return n<0?0:Math.floor(n/t)+1}i.d(t,{k:()=>n}),i(53966)},27921(e,t,i){i.d(t,{$Q:()=>b,C:()=>a,Cr:()=>u,H:()=>_,O_:()=>c,Qj:()=>l,T7:()=>v,Tj:()=>w,lU:()=>h,mN:()=>M,vE:()=>T,vt:()=>s});var n=i(34727),r=i(35522),o=i(51850);function s(e=x){return[e[0],e[1],e[2],e[3]]}function a(e,t){return function(e,t,i,n,r=s()){return r[0]=e,r[1]=t,r[2]=i,r[3]=n,r}(t[0],t[1],t[2],t[3],e)}function l(e){return e}function c(e,t,i){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=Math.abs(n-1)>1e-5&&n>1e-12?1/Math.sqrt(n):1;return i[0]=t[0]*r,i[1]=t[1]*r,i[2]=t[2]*r,i[3]=-(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]),i}function u(e,t,i,n=s()){const r=i[0]-t[0],o=i[1]-t[1],a=i[2]-t[2],l=e[0]-t[0],c=e[1]-t[1],u=e[2]-t[2],h=o*u-a*c,d=a*l-r*u,p=r*c-o*l,m=h*h+d*d+p*p,f=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return n[0]=h*f,n[1]=d*f,n[2]=p*f,n[3]=-(n[0]*e[0]+n[1]*e[1]+n[2]*e[2]),n}function h(e,t,i,n=0,o=Math.floor(i*(1/3)),s=Math.floor(i*(2/3))){if(i<3)return!1;t(p,n);let a=o,l=!1;for(;a<i-1&&!l;)t(m,a),a++,l=!(0,r.t2)(p,m);if(!l)return!1;for(a=Math.max(a,s),l=!1;a<i&&!l;)t(f,a),a++,(0,r.Re)(g,p,m),(0,r.S8)(g,g),(0,r.Re)(y,m,f),(0,r.S8)(y,y),l=!(0,r.t2)(p,f)&&!(0,r.t2)(m,f)&&Math.abs((0,r.Om)(g,y))<d;return l?(u(p,m,f,e),!0):(0!==n||1!==o||2!==s)&&h(e,t,i,0,1,2)}i(78955),i(44280),i(32114),i(32728);const d=.99619469809,p=(0,o.vt)(),m=(0,o.vt)(),f=(0,o.vt)(),g=(0,o.vt)(),y=(0,o.vt)();function v(e,t,i){return function(e){return 0===e||1===e}(T(e,t.origin,t.vector,0,i))}function w(e,t){return M(e,t)>=0}function b(e,t){return function(e,t,i,n,o,s,a){const l=(0,r.Om)(e,i),c=M(e,t);if(l>-1e-6&&l<1e-6)return C(c,o,s);const u=-c/l,h=C(l,o,!1);return!(a&&!h&&!C(c,o,s))&&(h?u>n.c0&&(n.c0=u):u<n.c1&&(n.c1=u),n.c0<=n.c1)}(e,t.ray.origin,t.ray.direction,t,!1,!1,!0)}function C(e,t,i){return i?t?e>=0:e<=0:t?e>0:e<0}function _(e,t,i,n=!1){let o=t.at(-1),s=M(e,o),a=n?s>0:s<=0;for(let l=0;l<t.length;l++){const c=t.at(l),u=M(e,c),h=n?u>0:u<=0;a!==h&&(0,r.Cc)(i(),o,c,s/(s-u)),h&&(0,r.C)(i(),c),o=c,s=u,a=h}}function M(e,t){return(0,r.Om)(e,t)+e[3]}function T(e,t,i,o,s){const a=(0,r.Om)(e,i),l=M(e,t);if(0===a)return l>=0?2:3;let c=-l/a;return 1&o&&(c=(0,n.qE)(c,0,1)),!(4&o)&&c<0||!(8&o)&&c>1?l>=0?2:3:((0,r.WQ)(s,t,(0,r.hs)(s,i,c)),l>=0?0:1)}const x=[0,0,1,0];(0,o.vt)()},44280(e,t,i){i.d(t,{g7:()=>a,gr:()=>s});var n=i(34727),r=i(35522),o=i(51850);function s(e,t){return(0,r.Om)(e,t)/(0,r.Bw)(e)}function a(e,t){const i=(0,r.Om)(e,t)/((0,r.Bw)(e)*(0,r.Bw)(t));return-(0,n.XM)(i)}(0,o.vt)(),(0,o.vt)()},32114(e,t,i){i.d(t,{Rc:()=>p,rq:()=>h,Km:()=>d}),i(44208);var n=i(26390),r=i(29242),o=i(9093),s=i(82534),a=i(48163),l=i(51850),c=i(91829);class u{constructor(e){this._create=e,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,n.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const e=2*this._itemsPtr;this._items.length>e&&(this._items.length=e),this._itemsPtr=0}static createVec2f64(){return new u(a.vt)}static createVec3f64(){return new u(l.vt)}static createVec4f64(){return new u(c.vt)}static createMat3f64(){return new u(r.vt)}static createMat4f64(){return new u(o.vt)}static createQuatf64(){return new u(s.vt)}get test(){}}u.createVec2f64();const h=u.createVec3f64(),d=u.createVec4f64(),p=(u.createMat3f64(),u.createMat4f64());u.createQuatf64()},97770(e,t,i){i.d(t,{Ey:()=>I,F8:()=>O,J2:()=>S,Yq:()=>R,_m:()=>D,iS:()=>Z,wj:()=>E});var n=i(66552),r=i(73444),o=i(98623),s=i(92647);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},c={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},f={...m,second:"numeric"},g={hourCycle:"h23"},y={...m,...g},v={...f,...g},w={"short-date":u,"short-date-short-time":{...u,...m},"short-date-short-time-24":{...u,...y},"short-date-long-time":{...u,...f},"short-date-long-time-24":{...u,...v},"short-date-le":u,"short-date-le-short-time":{...u,...m},"short-date-le-short-time-24":{...u,...y},"short-date-le-long-time":{...u,...f},"short-date-le-long-time-24":{...u,...v},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...m},"long-month-day-year-short-time-24":{...h,...y},"long-month-day-year-long-time":{...h,...f},"long-month-day-year-long-time-24":{...h,...v},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...f},"day-short-month-year-long-time-24":{...d,...v},"long-date":p,"long-date-short-time":{...p,...m},"long-date-short-time-24":{...p,...y},"long-date-long-time":{...p,...f},"long-date-long-time-24":{...p,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":f},b=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),C={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},_=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),M=_.find(({type:e})=>"month"===e)?.value.toLowerCase();function T(){const e=(0,r.lR)();return(e&&C[e])??(0,r.QC)()}"mart"!==M&&(C.bs="sr-Latn-CS");let x=new WeakMap;const A=w["short-date-short-time"];function S(e){return w[e]}function D(e){const{dateStyle:t,timeStyle:i,hour12:n,year:r,month:o}=e,s={};return t?s.dateStyle=t:r&&(s.year=r,s.month=o||void 0),i&&!s.year&&(s.timeStyle=i,s.hour12="auto"===n?void 0:"always"===n),s}function R(e,t=A){return function(e){let t=x.get(e);if(!t){const i=T(),n=E(e.timeZone??"system"),r={...e,timeZone:n};t=new Intl.DateTimeFormat(i,r),x.set(e,t)}return t}(t).format(e)}function Z(e,t=A){return R(new Date(e),{...t,...c,...l})}function O(e,t=A){return R(new Date(`1970-01-01T${e}Z`),{...t,...c,...a})}function I(e,t=A){const i=s.c9.fromISO(e,{setZone:!0});if(!i.isValid)return e;if(t.timeZone)return R(i.toJSDate(),t);const n=0===i.offset?"UTC":t.timeZone,r={...t,timeZone:n};return i.toLocaleString(r,{locale:T()})}function E(e){switch(e){case"system":return o.N;case o.L:return"UTC";default:return e}}(0,r.Ml)(()=>{x=new WeakMap}),i.d(t,["_v",0,b])},73444(e,t,i){i.d(t,{JK:()=>l,Ml:()=>g,QC:()=>h,lR:()=>u,oQ:()=>m});var n=i(36563);let r;i(44208);const o=globalThis.esriConfig?.locale,s=globalThis.document?.documentElement;function a(){const e=s?.getAttribute("lang"),t=globalThis.navigator?.language;return o??e??t??"en"}function l(){return void 0===r&&(r=a()),r}const c=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=l()){return d(e)?.language}function h(e=l()){const t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return c.exec(e)?.groups}const p=[];function m(e){return p.push(e),(0,n.hA)(()=>{p.splice(p.indexOf(e),1)})}new Map;const f=[];function g(e){return f.push(e),(0,n.hA)(()=>f.splice(f.indexOf(e),1))}function y(){const e=a();r!==e&&([...f].forEach(t=>t(e)),r=e,[...p].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),s&&new MutationObserver(()=>{y()}).observe(s,{attributeFilter:["lang"]})},38732(e,t,i){i.r(t),i.d(t,{default:()=>x});var n=i(5482),r=i(11254),o=i(49186),s=i(97768),a=i(25728),l=i(17676),c=i(84952),u=i(91429),h=i(54239),d=i(4146),p=i(89186),m=i(18768),f=i(34287),g=i(8303),y=i(10873),v=i(87378),w=i(35982);class b 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&&(C.forEach((e,t)=>{e===this&&C.delete(t)}),this.destroy())}}const C=new Map;var _=i(36005);let M=class extends((0,p.f)((0,m.b)((0,f.q)((0,g.A)((0,a.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=C.get(e);return t||(null!=e?(t=new b(t=>e.immediate.schedule(t)),C.set(e,t)):(t=new b,C.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,s.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}}}get memoizedElevationQueryDependencies(){return[this.loadStatus,this.tileInfo,this.fullExtent,this.spatialReference]}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 o.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(l.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}async fetchTile(e,t,i,n){const s=n?.signal,a={responseType:"array-buffer",signal:s,useQueue:n?.useQueue,priority:n?.priority},l={noDataValue:n?.noDataValue,returnFileInfo:!0};await this.load(),await this._fetchTileAvailability(e,t,i,n);const c=await(0,r.A)(this.getTileUrl(e,t,i),a),u=await this._lercDecoder.decode(c.data,l,s);if(!u)throw new o.A("elevation-layer:tile-decode-failed","Failed to decode elevation tile data.");return new v.A({values:u.pixelData,width:u.width,height:u.height,noDataValue:u.noDataValue})}getTileUrl(e,t,i){const n=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,r=(0,c.x0)({...this.parsedUrl.query,blankTile:!n&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${r?"?"+r:""}`}async queryElevation(e,t){const{query:n}=await i.e(91).then(i.bind(i,90091));return(0,l.Te)(t),n(this,e,t)}async createElevationSampler(e,t){const{createSampler:n}=await i.e(91).then(i.bind(i,90091));return(0,l.Te)(t),n(this,e,t)}_fetchTileAvailability(e,t,i,n){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,n):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[T]}};(0,n.Cg)([(0,u.MZ)({readOnly:!0})],M.prototype,"capabilities",void 0),(0,n.Cg)([(0,_.w)("service","capabilities",["capabilities"])],M.prototype,"readCapabilities",null),(0,n.Cg)([(0,u.MZ)({json:{read:{source:"copyrightText"}}})],M.prototype,"copyright",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0,type:h.A})],M.prototype,"heightModelInfo",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],M.prototype,"path",void 0),(0,n.Cg)([(0,u.MZ)({type:["show","hide"]})],M.prototype,"listMode",void 0),(0,n.Cg)([(0,u.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})],M.prototype,"minScale",void 0),(0,n.Cg)([(0,u.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})],M.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],M.prototype,"opacity",void 0),(0,n.Cg)([(0,u.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],M.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,u.MZ)()],M.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],M.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)()],M.prototype,"memoizedElevationQueryDependencies",null),(0,n.Cg)([(0,u.MZ)(y.OZ)],M.prototype,"url",void 0),(0,n.Cg)([(0,u.MZ)()],M.prototype,"version",void 0),(0,n.Cg)([(0,_.w)("version",["currentVersion"])],M.prototype,"readVersion",null),M=(0,n.Cg)([(0,u.$K)("esri.layers.ElevationLayer")],M);const T=Symbol("default-fetch-tile");M.prototype.fetchTile[T]=!0;const x=M},4146(e,t,i){i.d(t,{A:()=>v});var n=i(5482),r=i(11254),o=i(49186),s=i(65529),a=i(4902),l=i(92474),c=i(53966),u=i(17676),h=i(84952),d=i(91429),p=i(5443),m=i(16930),f=i(92602),g=i(79677);let y=0,v=class extends((0,s.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new p.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+y++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([i.e(812),i.e(7982)]).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await Promise.all([i.e(9917),i.e(812),i.e(9362)]).then(i.bind(i,45613));try{return await n(t)}catch(e){const i=t?.portalItem,n=i?.id||"unset",r=i?.portal?.url||f.A.portalUrl;throw c.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,u.zf)(e)||c.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(e,t){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,r.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,n.Cg)([(0,d.MZ)({type:p.A})],v.prototype,"fullExtent",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n.Cg)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,d.MZ)({type:m.A})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n.Cg)([(0,d.MZ)()],v.prototype,"url",void 0),(0,n.Cg)([(0,d.MZ)({type:g.A})],v.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n.Cg)([(0,d.$K)("esri.layers.Layer")],v)},89186(e,t,i){var n=i(5482),r=i(91429),o=i(16930),s=i(87045),a=i(65509),l=i(25943),c=i(36005);i.d(t,["f",0,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 n=t.capabilities?.toLowerCase().includes("tilemap");let{minLOD:r,maxLOD:o,minScale:c,maxScale:u}=t;if(null==r&&null==o&&(0!==c||0!==u)){const e=e=>Math.round(1e4*e)/1e4;c=e(c||t.tileInfo.lods[0].scale),u=e(u||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const i of t.tileInfo.lods){const t=e(i.scale);r=t>=c?i.level:r,o=t>=u?i.level:o}}if(n)return new l.d({layer:this,minLOD:r,maxLOD:o});if(t.tileInfo){const e=new s.A;return e.read(t.tileInfo,i),new a.A(e,r,o)}return null}};return(0,n.Cg)([(0,r.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,n.Cg)([(0,r.MZ)()],i.prototype,"minScale",void 0),(0,n.Cg)([(0,c.w)("service","minScale")],i.prototype,"readMinScale",null),(0,n.Cg)([(0,r.MZ)()],i.prototype,"maxScale",void 0),(0,n.Cg)([(0,c.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,n.Cg)([(0,r.MZ)({type:o.A})],i.prototype,"spatialReference",void 0),(0,n.Cg)([(0,r.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,n.Cg)([(0,r.MZ)({type:s.A})],i.prototype,"tileInfo",void 0),(0,n.Cg)([(0,r.MZ)()],i.prototype,"tilemapCache",void 0),(0,n.Cg)([(0,c.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,n.Cg)([(0,r.MZ)()],i.prototype,"version",void 0),i=(0,n.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}])},63490(e,t,i){i.d(t,{Mr:()=>l,TH:()=>a});var n=i(5482),r=i(69540),o=i(25482),s=i(91429);let a=class extends((0,r.OU)(o.o)){constructor(){super(...arguments),this.url=null}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"lod",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"rasterFunction",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=(0,n.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],a);let l=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.constantElevation=null}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],l.prototype,"constantElevation",void 0),l=(0,n.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],l),i.d(t,["E1",0,e=>null!=e&&"number"==typeof e.constantElevation])},23281(e,t,i){i.d(t,{eR:()=>_,Qv:()=>R,fs:()=>x,Yp:()=>Z,o:()=>O,RR:()=>M,l6:()=>T});var n=i(66552),r=(i(86211),i(28735),i(5482)),o=i(69540),s=i(25482),a=i(91429),l=i(69622),c=i(21325);let u=class extends l.A{set horizontalWKID(e){e?(0,c.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,c.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1&&!Number.isNaN(t)&&i?.length>1&&n?.length>1&&r?.length>1}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"horizontalWKID",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"verticalWKID",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"z",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientation")],u);const h=u;let d=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,heading:s,pitch:a,roll:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>m.push(e)),m.push(u),h?.forEach(e=>m.push(e)),d?.forEach(e=>m.push(e)),p?.forEach(e=>m.push(e))),m.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"heading",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pitch",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"roll",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"z",void 0),d=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],d);const p=d;let m=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:i,ellipsoidRadius:n,squaredEccentricity:r,properties:o}=this,s=`${o}`.split("|");return s.splice(1,1),`${e}|${t}|${i}|${n}|${r}|${s.join("|")}`}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],m.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"latitude",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"longitude",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"ellipsoidRadius",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"squaredEccentricity",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],m.prototype,"properties",void 0),m=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],m);const f=m;let g=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,omega:s,phi:a,kappa:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>m.push(e)),m.push(u),h?.forEach(e=>m.push(e)),d?.forEach(e=>m.push(e)),p?.forEach(e=>m.push(e))),m.map(e=>isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"omega",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"phi",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"kappa",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"z",void 0),g=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],g);const y=g;let v=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1||!Number.isNaN(t)||i?.length>1||n?.length>1||r?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,yaw:s,pitch:a,roll:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>m.push(e)),m.push(u),h?.forEach(e=>m.push(e)),h?.forEach(e=>m.push(e)),d?.forEach(e=>m.push(e)),p?.forEach(e=>m.push(e))),m.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const w=v,b=new Map;b.set("2",{desc:"Using Omega Phi Kappa",constructor:y}),b.set("1",{desc:"Using Heading, Pitch and Roll",constructor:p}),b.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:w}),b.set("4",{desc:"Using Local Tangent Plane",constructor:f});var C=i(63490);function _(e,t,i){return e?(0,C.E1)(e)?new C.Mr(e):function(e,t,i){let{url:n}=e;return n?(n=function(e,t,i){return t&&(e=`${t}${e}`),i&&(e+=`${i}`),e}(n,t,i),new C.TH({...e,url:n})):null}(e,t,i):e}const M=new n.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),T=new n.J({Feet:"feet",Meter:"meter"}),x=new n.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),A=new Map;A.set("1",function(e){const[t,i,n,r,o,s,a,l,c,u,h,d,p,m,f,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,heading:s,pitch:a,roll:l,...D([c,u,h,d,p,m],[g,y],[v,w,b],[C,_],f)}}),A.set("3",function(e){const[t,i,n,r,o,s,a,l,c,u,h,d,p,m,f,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,yaw:s,pitch:a,roll:l,...D([c,u,h,d,p,m],[g,y],[v,w,b],[C,_],f)}}),A.set("2",function(e){const[t,i,n,r,o,s,a,l,c,u,h,d,p,m,f,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,omega:s,phi:a,kappa:l,...D([c,u,h,d,p,m],[g,y],[v,w,b],[C,_],f)}}),A.set("4",function(e){const[t,i,n,r,o,...s]=e.slice(1),a=A.get(o),l=b.get(o)?.constructor;return a&&l?{latitude:t,longitude:i,ellipsoidRadius:n,squaredEccentricity:r,properties:new l(a([o,"",...s]))}:null});const S=e=>{const t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function D(e,t,i,n,r){const o=S(e),s=S(t),a=S(i),l=S(n);return{affineTransformations:6===o?.length?o:void 0,focalLength:6===o?.length?parseFloat(r):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}function R(e){return Array.isArray(e)&&e?.length>5&&!e.some(isNaN)}function Z(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}function O(e,t,i){const n=function(e,t){return e?.length?e.map(({field:e,order:i})=>{const n=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return n?{fieldName:n.name,sortOrder:"desc"===i?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(i,t);if(n?.length)return n;if(!e){const e=t.find(e=>e.name.toLocaleLowerCase()==="sequenceorder".toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}const r=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return r?[{fieldName:r.name,sortOrder:"asc"}]:null}},39357(e,t,i){i.d(t,{A:()=>a});var n,r=i(5482),o=i(25482),s=i(91429);let a=n=class extends o.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=n=(0,r.Cg)([(0,s.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,i){i.d(t,{A:()=>u});var n,r=i(5482),o=i(4718),s=i(91429),a=i(39357),l=i(76357),c=i(93223);let u=class extends l.A{static{n=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const i=String(e);this.codedValues.some(e=>(String(e.code)===i&&(t=e.name),!!t))}return t}clone(){return new n({codedValues:(0,o.o8)(this.codedValues),name:this.name})}};(0,r.Cg)([(0,s.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],u.prototype,"codedValues",void 0),(0,r.Cg)([(0,c.e)({codedValue:"coded-value"})],u.prototype,"type",void 0),u=n=(0,r.Cg)([(0,s.$K)("esri.layers.support.CodedValueDomain")],u)},76357(e,t,i){i.d(t,{A:()=>c});var n=i(5482),r=i(66552),o=i(25482),s=i(91429),a=i(93223);const l=new r.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends o.o{constructor(e){super(e),this.name=null,this.type=null}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n.Cg)([(0,a.e)(l),(0,s.MZ)({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,n.Cg)([(0,s.$K)("esri.layers.support.Domain")],c)},90091(e,t,i){i.d(t,{createSampler:()=>R,query:()=>D});var n=i(60999),r=i(49186),o=i(97768),s=i(17676),a=i(86211),l=i(99917),c=i(19419),u=i(4576),h=i(72802);class d{constructor(e,t){this.layer=e,this.parameters=t}}class p extends d{constructor(e,t,i){super(e,i),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach(e=>e.tile=null);else{const{tileInfo:t,tilemapCache:i}=this.layer,n=g(t,i)[e].level;this.geometry.coordinates.forEach(e=>e.tile=t.tileAt(n,e.x,e.y))}}allElevationTilesFetched(){return!this.geometry.coordinates.some(e=>!e.elevationTile)}clearElevationTiles(){for(const e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(const t of this.geometry.coordinates)!t.elevationTile&&t.tile?.id&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(const t of this.geometry.coordinates){const i=t.tile?.id;t.tile=i?e[i]:null}}getTilesToFetch(){return(0,u.Am)(this.geometry.coordinates.filter(({tile:e,elevationTile:t})=>e?.id&&!t),(e,t)=>e.tile?.id===t.tile?.id).map(({tile:e})=>e)}forEachTileToFetch(e){for(const t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,()=>t.tile=null)}}class m extends d{constructor(e,t,i,n){super(e,i),this.maskExtents=n,this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.clone().intersection(e.fullExtent)}selectTilesAtLOD(e,t){const i=this._maximumLodForRequests(t),n=Math.min(i,e);n<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(n)}_maximumLodForRequests(e){const{tileInfo:t,tilemapCache:i}=this.layer,n=g(t,i);if(!e)return n.length-1;const r=this.extent;if(null==r)return-1;for(let i=n.length-1;i>=0;i--){const o=n[i],s=o.resolution*t.size[0],a=o.resolution*t.size[1];if(Math.ceil(r.width/s)*Math.ceil(r.height/a)<=e)return i}return-1}allElevationTilesFetched(){return this._candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this._fetchedCandidates.clear()}populateElevationTiles(e){for(const t of this._candidateTiles){const i=t.id&&e[t.id];i&&(this._fetchedCandidates.add(t),this.elevationTiles.push(i))}}remapTiles(e){this._candidateTiles=y(this._candidateTiles.map(t=>e[t.id]))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){const i=this._candidateTiles;this._candidateTiles=[],i.forEach(i=>{if(this._fetchedCandidates.has(i))return void t?.(i);let n=!1;e(i,()=>n=!0),n?t?.(i):this._candidateTiles.push(i)}),this._candidateTiles=y(this._candidateTiles,t)}_selectCandidateTilesCoveringExtentAt(e){this._candidateTiles.length=0;const t=this.extent;if(null==t)return;const{tileInfo:i,tilemapCache:n}=this.layer,r=g(i,n)[e],o=i.tileAt(r.level,t.xmin,t.ymin),s=o.extent,a=r.resolution*i.size[0],l=r.resolution*i.size[1],c=Math.ceil((t.xmax-s[0])/a),u=Math.ceil((t.ymax-s[1])/l);for(let e=0;e<u;e++)for(let t=0;t<c;t++){const n=new h.U(o.level,o.row-e,o.col+t);i.updateTileInfo(n),this._tileIsMasked(n)||this._candidateTiles.push(n)}}_tileIsMasked(e){return this.maskExtents?.some(t=>(0,c.gR)(t,e.extent))??!1}}function f(e){return null!=e?.tileInfo}function g(e,t){const i=e.lods;if(f(t)){const{effectiveMinLOD:e,effectiveMaxLOD:n}=t;return i.filter(t=>t.level>=e&&t.level<=n)}return i}function y(e,t){const i={},n=[];for(const r of e){const e=r.id;e&&!i[e]?(i[e]=r,n.push(r)):t?.(r)}const r=n.sort((e,t)=>e.level-t.level);return r.filter((e,i)=>{for(let n=0;n<i;n++){const i=r[n].extent;if(i&&(0,c.gR)(i,e.extent))return t?.(e),!1}return!0})}class v{constructor(e,t){this.data=e,this.safeWidth=.99999999*(e.width-1),this.dx=(e.width-1)/(t[2]-t[0]),this.dy=(e.width-1)/(t[3]-t[1]),this.x0=t[0],this.y1=t[3]}}class w{constructor(e,t=null){if(this.key=e,null!=t){const i=e.extent;this._samplerData=new v(t,i)}}get zmin(){return null!=this._samplerData?this._samplerData.data.minValue:0}get zmax(){return null!=this._samplerData?this._samplerData.data.maxValue:0}get hasNoDataValues(){return!!this._samplerData?.data.hasNoDataValues}sample(e,t){if(null==this._samplerData)return;const{safeWidth:i,data:n,dx:r,dy:o,y1:s,x0:a}=this._samplerData,{width:l,values:c,noDataValue:u}=n,h=b(o*(s-t),0,i),d=b(r*(e-a),0,i),p=Math.floor(h),m=Math.floor(d),f=p*l+m,g=f+l,y=c[f],v=c[g],w=c[f+1],C=c[g+1];if(y!==u&&v!==u&&w!==u&&C!==u){const e=d-m,t=y+(w-y)*e;return t+(v+(C-v)*e-t)*(h-p)}}}function b(e,t,i){return e<t?t:e>i?i:e}var C=i(87378),_=i(48526),M=i(86738),T=i(82799);class x{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new x(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,l.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});const i=new _.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),n=(0,l.project)(i,e);if(!n)return null;const r=this.coordinates.map((e,t)=>{const i=e.clone(),r=n.points[t];return i.x=r[0],i.y=r[1],i}),o=this.clone(r);return o.spatialReference=e,o}projectSync(e){if(this.spatialReference.equals(e))return this.clone();const t=new _.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,l.project)(t,e);if(!i)return null;const n=this.coordinates.map((e,t)=>{const n=e.clone(),r=i.points[t];return n.x=r[0],n.y=r[1],n}),r=this.clone(n);return r.spatialReference=e,r}static fromGeometry(e){const t=new x(e);if(e instanceof x)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,i)=>{const n=e.clone(t);return n.spatialReference=i,n},t;switch(e.type){case"point":{const i=e,{hasZ:n,hasM:r}=i;return t.coordinates=n&&r?[new A(i.x,i.y,i.z,i.m)]:n?[new A(i.x,i.y,i.z)]:r?[new A(i.x,i.y,null,i.m)]:[new A(i.x,i.y)],t._exporter=(t,i)=>e.hasM?new M.A(t[0].x,t[0].y,t[0].z,t[0].m,i):new M.A(t[0].x,t[0].y,t[0].z,i),t}case"multipoint":{const i=e,{hasZ:n,hasM:r}=i;return t.coordinates=n&&r?i.points.map(e=>new A(e[0],e[1],e[2],e[3])):n?i.points.map(e=>new A(e[0],e[1],e[2])):r?i.points.map(e=>new A(e[0],e[1],null,e[2])):i.points.map(e=>new A(e[0],e[1])),t._exporter=(t,i)=>e.hasM?new _.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:i}):new _.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:i}),t}case"polyline":{const i=e,n=[],r=[],{hasZ:o,hasM:s}=e;let a=0;for(const e of i.paths)if(r.push([a,a+e.length]),a+=e.length,o&&s)for(const t of e)n.push(new A(t[0],t[1],t[2],t[3]));else if(o)for(const t of e)n.push(new A(t[0],t[1],t[2]));else if(s)for(const t of e)n.push(new A(t[0],t[1],null,t[2]));else for(const t of e)n.push(new A(t[0],t[1]));return t.coordinates=n,t._exporter=(t,i)=>{const n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),o=r.map(e=>n.slice(e[0],e[1]));return new T.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:i})},t}}}}class A{constructor(e,t,i=null,n=null,r=null,o=null){this.x=e,this.y=t,this.z=i,this.m=n,this.tile=r,this.elevationTile=o}clone(){return new A(this.x,this.y,this.z,this.m)}}var S=i(57984);async function D(e,t,i){if(!e)throw new r.A(P,"Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof x)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new r.A("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");const n={...z,...i},s=n.signal;if("integrated-mesh-3dtiles"===e.type){const r=x.fromGeometry(t);if(e.queryElevationCallback&&e.replacesTerrain){const o=12.9*(i?.minDemResolution||0)+.71,a=await e.queryElevationCallback(r,{signal:s,maxGeometricError:o}),l=r.coordinates.map(()=>({demResolution:1,source:e})),c=await a.project(t.spatialReference,s);if(c){if(void 0!==n.noDataValue&&n.noDataValue!==Number.MAX_VALUE)for(const e of c.coordinates)e.z===Number.MAX_VALUE&&(e.z=n.noDataValue);return{geometry:c.export(),noDataValue:n.noDataValue??Number.MAX_VALUE,sampleInfo:l}}}const o=r.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:o}}const c=new p(e,t.spatialReference,n);return await e.load({signal:s}),await async function(e,t,i){let n;const o=e.layer.tileInfo.spatialReference;if(t instanceof x?n=await t.project(o,i):(await(0,l.initializeProjection)([{source:t.spatialReference,dest:o}],{signal:i}),n=(0,l.project)(t,o)),!n)throw new r.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${o.wkid}'`);e.geometry=x.fromGeometry(n)}(c,t,s),await I(c,s),await N(c,s),function(e){e.geometry.coordinates.forEach(t=>{const i=t.elevationTile;let n=e.parameters.noDataValue;if(i){const e=i.sample(t.x,t.y);null==e?t.elevationTile=null:n=e}t.z=n})}(c),async function(e,t){const i=await e.geometry.project(e.outSpatialReference,t);(0,o.Lw)(i);const n={geometry:i.export(),noDataValue:e.parameters.noDataValue};return e.parameters.returnSampleInfo&&(n.sampleInfo=function(e){const t=e.layer.tileInfo,i=(0,a.GA)(t.spatialReference);return e.geometry.coordinates.map(n=>{let r=-1;return n.elevationTile&&n.elevationTile!==e.outsideExtentTile&&(r=t.lodAt(n.elevationTile.key.level).resolution*i),{demResolution:r,source:-1===r?void 0:e.layer}})}(e)),e.geometry.coordinates.forEach(e=>{e.tile=null,e.elevationTile=null}),n}(c,s)}async function R(e,t,i){if(e=Array.isArray(e)?e:[e],0===(e=i?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice()).length)throw new r.A(P,"Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new r.A("elevation-query:invalid-extent","Invalid or undefined extent");const n={...z,...i,returnSampleInfo:!0},o=Z(e[e.length-1],t,n);return 1===e.length?o:O(e,t,await o,n)}async function Z(e,t,i,n){const r=i.signal;await e.load({signal:r});const o=t.spatialReference,s=e.tileInfo.spatialReference;o.equals(s)||(await(0,l.initializeProjection)([{source:o,dest:s}],{signal:r}),t=(0,l.project)(t,s));const a=new m(e,t,i,n);await I(a,r),await N(a,r);const c=a.elevationTiles,u=a.layer.tileInfo,h=a.parameters.noDataValue;return new S.C({noDataValue:h,tiles:c,tileInfo:u})}async function O(e,t,i,n){if(e.pop(),!e.length)return i;const r=i.samplers.filter(e=>!e.tile.hasNoDataValues).map(e=>(0,c.VY)(e.extent)),o=await Z(e[e.length-1],t,n,r);if(0===o.samplers.length)return i;const s=i.samplers.concat(o.samplers),a=n.noDataValue;return O(e,t,new S.C({samplers:s,noDataValue:a}),n)}async function I(e,t){"geometry"===e.type&&function(e){if(null==e.layer.fullExtent)return;const t=new w(new h.U(-1,-1,-1));t.sample=()=>e.parameters.noDataValue,e.outsideExtentTile=t;const i=e.layer.fullExtent;e.geometry.coordinates.forEach(e=>{const n=e.x,r=e.y;(n<i.xmin||n>i.xmax||r<i.ymin||r>i.ymax)&&(e.elevationTile=t)})}(e);const i=e.parameters.demResolution;if("number"==typeof i)!function(e,t){const i=function(e,t){const{tileInfo:i,tilemapCache:n}=e.layer,r=t/(0,a.GA)(i.spatialReference),o=g(i,n);let s=o[0],l=0;for(let e=1;e<o.length;e++){const t=o[e];Math.abs(t.resolution-r)<Math.abs(s.resolution-r)&&(s=t,l=e)}return l}(e,t);e.selectTilesAtLOD(i)}(e,i);else if("finest-contiguous"===i)await async function(e,t){const{tileInfo:i,tilemapCache:n}=e.layer,r=j(i,n,e.parameters.minDemResolution);await E(e,r,t)}(e,t);else{if("auto"!==i)throw new r.A("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${i}', expected a number, "finest-contiguous" or "auto"`);await async function(e,t){(function(e){const{tileInfo:t,tilemapCache:i}=e.layer,n=j(t,i,e.parameters.minDemResolution);e.selectTilesAtLOD(n,e.parameters.maximumAutoTileRequests)})(e),function(e){const t=e.layer.tileInfo;let i=0;const n={},r=e=>{null!=e.id&&(e.id in n?n[e.id]++:(n[e.id]=1,i++))},o=e=>{if(null==e.id)return;const t=n[e.id];1===t?(delete n[e.id],i--):n[e.id]=t-1};e.forEachTileToFetch(r,o);let s=!0;for(;s&&(s=!1,e.forEachTileToFetch(n=>{i<=e.parameters.maximumAutoTileRequests||(o(n),t.upsampleTile(n)&&(s=!0),r(n))},o),s););}(e);const i=e.layer.tilemapCache;if(!i||f(i))return L(e,t);const r=e.getTilesToFetch(),o={},a=r.map(async e=>{const r=new h.U(0,0,0),a=await(0,n.Ke)(i.fetchAvailabilityUpsample(e.level,e.row,e.col,r,{signal:t}));!1!==a.ok?null!=e.id&&(o[e.id]=r):(0,s.QP)(a.error)});await(0,s.qr)(Promise.all(a),t),e.remapTiles(o)}(e,t)}}async function E(e,t,i){const n=e.layer;if(e.selectTilesAtLOD(t),t<0)return;const o=n.tilemapCache,a=e.getTilesToFetch();try{if(o&&!f(o))await(0,s.qr)(Promise.all(a.map(e=>o.fetchAvailability(e.level,e.row,e.col,{signal:i}))),i);else if(await N(e,i),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new r.A("elevation-query:has-unavailable-tiles","Some elevation tiles are unavailable")}catch(n){(0,s.QP)(n),await E(e,t-1,i)}}async function L(e,t){const i=e.layer.tileInfo;await N(e,t);let n=!1;e.forEachTileToFetch((e,t)=>{i.upsampleTile(e)?n=!0:t()}),n&&await L(e,t)}function j(e,t,i=0){const n=g(e,t);let r=n.length-1;if(i>0){const t=i/(0,a.GA)(e.spatialReference),o=n.findIndex(e=>e.resolution<t);0===o?r=0:o>0&&(r=o-1)}return r}const z={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0,signal:null};async function N(e,t){const i=e.getTilesToFetch(),n={},r=e.parameters.cache,o=e.parameters.noDataValue,a={noDataValue:o,signal:t},l=i.map(async t=>{if(null==t.id)return;const i=`${e.layer.uid}:${t.id}:${o}`,s=r?.get(i),l=s??C.A.from(await e.layer.fetchTile(t.level,t.row,t.col,a));r?.put(i,l),n[t.id]=new w(t,l)});await(0,s.qr)(Promise.allSettled(l),t),e.populateElevationTiles(n)}const P="elevation-query:invalid-layer"},7236(e,t,i){i.d(t,{A:()=>c});var n=i(5482),r=i(65529),o=i(53966),s=i(91429),a=i(86738),l=i(28735);let c=class extends r.nJ{queryElevation(e){const t=this.projectIfRequired(e,this.spatialReference);if(!t)return null;switch(e.type){case"point":return function(e,t,i){return e.hasZ=!0,e.z=i.elevationAt(t.x,t.y),e}(e,t,this);case"polyline":return function(e,t,i){u.spatialReference=t.spatialReference;const n=e.hasM&&!e.hasZ;for(let r=0;r<e.paths.length;r++){const o=e.paths[r],s=t.paths[r];for(let e=0;e<o.length;e++){const t=o[e],r=s[e];u.x=r[0],u.y=r[1],n&&(t[3]=t[2]),t[2]=i.elevationAt(u.x,u.y)}}return e.hasZ=!0,e}(e,t,this);case"multipoint":return function(e,t,i){u.spatialReference=t.spatialReference;const n=e.hasM&&!e.hasZ;for(let r=0;r<e.points.length;r++){const o=e.points[r],s=t.points[r];u.x=s[0],u.y=s[1],n&&(o[3]=o[2]),o[2]=i.elevationAt(u.x,u.y)}return e.hasZ=!0,e}(e,t,this);default:return null}}projectIfRequired(e,t){if(null==e)return null;const i=e.spatialReference;if(i.equals(t))return e;const n=(0,l.Cv)(e,t);return n||o.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${i.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),n}};c=(0,n.Cg)([(0,s.$K)("esri.layers.support.ElevationSampler")],c);const u=new a.A},87378(e,t,i){i.d(t,{A:()=>a});var n,r=i(34275),o=i(56507);const s=Symbol("ElevationTileDataClass");class a{static{n=s}constructor({values:e,width:t,height:i,noDataValue:o}){this[n]=!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=o}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,n=-1/0,r=!0;for(const o of t)o===e?this._hasNoDataValues=!0:(i=o<i?o:i,n=o>n?o:n,r=!1);r?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=n>-3e38?n:0)}static{this.from=(0,o.qf)(a)}}},20437(e,t,i){i.d(t,{A:()=>m});var n,r=i(5482),o=i(66552),s=i(25482),a=i(91429),l=i(56507),c=i(8631),u=i(98453),h=i(36005),d=i(93223);const p=new o.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let m=class extends s.o{static{n=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?.value??null}readValueType(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?p.fromJSON(i.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"description",void 0),(0,r.Cg)([(0,h.w)("description")],m.prototype,"readDescription",null),(0,r.Cg)([(0,a.MZ)({types:c.g,json:{read:{reader:c.r},write:!0}})],m.prototype,"domain",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r.Cg)([(0,d.e)(u.m)],m.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"valueType",void 0),(0,r.Cg)([(0,h.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=n=(0,r.Cg)([(0,a.$K)("esri.layers.support.Field")],m)},41628(e,t,i){i.d(t,{A:()=>l});var n,r=i(5482),o=i(91429),s=i(76357),a=i(93223);let l=class extends s.A{static{n=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new n({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r.Cg)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,i){t[i]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,r.Cg)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,i){t[i]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,r.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=n=(0,r.Cg)([(0,o.$K)("esri.layers.support.RangeDomain")],l)},57984(e,t,i){i.d(t,{C:()=>u});var n=i(5482),r=i(53966),o=i(86211),s=i(91429),a=i(16930),l=i(19419),c=i(7236);let u=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){const t=e.noDataValue,i="tiles"in e?e.tiles.map(i=>new h({tile:i,tileInfo:e.tileInfo,noDataValue:t})):e.samplers;super({noDataValue:t,samplers:i});const n=i[0];if(n){this.extent=n.extent.clone();const{min:e,max:t}=n.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<i.length;e++){const t=i[e];this.extent.union(t.extent),this.demResolution.min=Math.min(this.demResolution.min,t.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,t.demResolution.max)}}else{const t="tileInfo"in e?e.tileInfo:null;this.extent=(0,l.w1)((0,l.vt)(),t?.spatialReference??a.A.WGS84),this.demResolution={min:0,max:0}}}elevationAt(e,t){let i;for(const n of this.samplers)if(n.containsAt(e,t)&&(i=n.elevationAt(e,t),i!==n.noDataValue))return i;return null!=i?i:(r.A.getLogger(this).warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler`),this.noDataValue)}};(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],u.prototype,"noDataValue",void 0),(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],u.prototype,"samplers",void 0),u=(0,n.Cg)([(0,s.$K)("esri.layers.support.TileElevationSampler")],u);let h=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){super(e);const t=e.tile.key.extent;this.extent=(0,l.w1)(t,e.tileInfo.spatialReference),this.extent.zmin=e.tile.zmin,this.extent.zmax=e.tile.zmax;const i=(0,o.GA)(e.tileInfo.spatialReference),n=e.tileInfo.lodAt(e.tile.key.level).resolution*i;this.demResolution={min:n,max:n}}contains(e){const t=this.projectIfRequired(e,this.spatialReference);return null!=t&&this.containsAt(t.x,t.y)}containsAt(e,t){return(0,l.Rj)(this.tile.key.extent,e,t)}elevationAt(e,t){return this.containsAt(e,t)?this.tile.sample(e,t)??this.noDataValue:this.noDataValue}};(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"tile",void 0),(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"noDataValue",void 0),(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"tileInfo",void 0),h=(0,n.Cg)([(0,s.$K)("esri.layers.support.TileElevationSampler.SingleTileElevationSampler")],h)},65509(e,t,i){i.d(t,{A:()=>o});var n=i(49186),r=i(17676);class o{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 n=this.tileInfo?.lodAt(e);return!n||e<this.minLOD||e>this.maxLOD?"unavailable":n.cols&&n.rows?i>=n.cols[0]&&i<=n.cols[1]&&t>=n.rows[0]&&t<=n.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,i,o){await(0,r.NO)(o);const s=this.getAvailability(e,t,i);if("unavailable"===s)throw new n.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i});return s}async fetchAvailabilityUpsample(e,t,i,n,o){await(0,r.NO)(o),n.level=e,n.row=t,n.col=i;const s=this.tileInfo;return s.updateTileInfo(n),this.fetchAvailability(e,t,i,o).catch(e=>{if((0,r.zf)(e))throw e;if(s.upsampleTile(n))return this.fetchAvailabilityUpsample(n.level,n.row,n.col,n,o);throw e})}}},8631(e,t,i){i.d(t,{r:()=>d,g:()=>h});var n,r=i(53177),o=i(76357),s=i(5482),a=i(91429),l=i(93223);let c=class extends o.A{static{n=this}constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,s.Cg)([(0,l.e)({inherited:"inherited"})],c.prototype,"type",void 0),c=n=(0,s.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],c);var u=i(41628);const h={key:"type",base:o.A,typeMap:{range:u.A,"coded-value":r.A,inherited:c}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return u.A.fromJSON(e);case"codedValue":return r.A.fromJSON(e);case"inherited":return c.fromJSON(e)}return null}},98453(e,t,i){const n=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"});i.d(t,["m",0,n])},77548(e,t,i){i.d(t,{Gh:()=>O,tk:()=>A,BR:()=>x,p2:()=>M,qd:()=>S,wI:()=>T,G$:()=>R,$x:()=>D,Ov:()=>w,cM:()=>d,UC:()=>p,Qz:()=>m,OP:()=>Z,TU:()=>v,F2:()=>f,XX:()=>y,Qi:()=>b,jy:()=>C});var n=i(70333),r=i(11254),o=i(7762),s=(i(84952),i(36563)),a=i(36708),l=i(4146);const c=new WeakMap;function u(e){return!e.destroyed&&(c.has(e)||e.addHandles([(0,a.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||u(t))},t=>c.set(e,t),a.pc),(0,s.hA)(()=>c.delete(e))]),c.get(e))}function h(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function d(e){return h(e,"knowledge-graph")&&"layers"in e}function p(e){return h(e,"knowledge-graph-sublayer")}function m(e){return h(e,"link-chart")&&"layers"in e}function f(e){return h(e,"subtype-group")&&"sublayers"in e}function g(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}i(16215);const y={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function w(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function b(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function C(e){return function(e){return h(e,"catalog-footprint")}(e)||function(e){return h(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return h(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function _(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!C(e))return;const i=t?.graphic,n="featureReduction"in e?e.featureReduction:null;if(i){if(i.isAggregate){const e=i.origin;return e&&"featureReductionProvider"in e&&n?_(n)?n:null:void 0}return e}return t?.checkFeatureReduction&&n?_(n)?n:null:e}async function T(e,t){const i=n.id?.findServerInfo(e);if(null!=i?.currentVersion)return i.owningSystemUrl||null;const o=e.toLowerCase().indexOf("/rest/services");if(-1===o)return null;const s=`${e.slice(0,o)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,r.A)(s,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function x(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function A(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function S(e){const t=new o.A;for(const i of e.allLayers.concat(e.allTables))u(i)||g(i)||"annotation-feature"===i.type||"dimension-feature"===i.type||("charts"in i&&t.push(i),"subtype-group"===i.type&&t.push(...i.sublayers));return t}function D(e,t){return null}function R(e){return null}function Z(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function O(e,t){if(!t||!Z(e))return;const i=(e.url,null);i&&(e.url=i)}},38969(e,t,i){i.d(t,{i:()=>r});var n=i(37955);function r(e,t){return new Promise((i,r)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?i():(t((0,n.Oo)(e,"canplay",i)),t((0,n.Oo)(e,"error",r)))})}},73133(e,t,i){const n=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});i.d(t,["j",0,n])},7861(e,t,i){i.d(t,{L:()=>r});var n=i(11254);async function r(e,t){return(await(0,n.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},16215(e,t,i){i.d(t,{S:()=>r});const n=Symbol("BasemapInstance");function r(e){return null!=e&&"object"==typeof e&&n in e}i.d(t,["Y",0,n])},79677(e,t,i){i.d(t,{A:()=>h});var n,r=i(5482),o=i(25482),s=i(88930),a=i(91429),l=(i(98623),i(10184)),c=i(36005),u=i(43937);let h=class extends o.o{static{n=this}static get allTime(){return d}static get empty(){return p}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,r=e.end?.getTime()??e.end;return t===n&&i===r}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let i=this.start;i&&(i=(0,s.lL)(i,new l.A({value:1,unit:e}),t));let r=this.end;if(r){const i=(0,s.lL)(r,new l.A({value:1,unit:e}),t);r=r.getTime()===i.getTime()?i:(0,s.S1)(i,1,e,t)}return new n({start:i,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,r=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;let s,a;return r>=t&&r<=i?s=r:t>=r&&t<=o&&(s=t),i>=r&&i<=o?a=i:o>=t&&o<=i&&(a=o),null==s||null==a||isNaN(s)||isNaN(a)?n.empty:new n({start:s===-1/0?null:new Date(s),end:a===1/0?null:new Date(a)})}offset(e,t,i="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const r=new n,{start:o,end:a}=this;return null!=o&&(r.start=(0,s.S1)(o,e,t,i)),null!=a&&(r.end=(0,s.S1)(a,e,t,i)),r}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:i})}};(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,r.Cg)([(0,c.w)("end")],h.prototype,"readEnd",null),(0,r.Cg)([(0,u.K)("end")],h.prototype,"writeEnd",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,r.Cg)([(0,c.w)("start")],h.prototype,"readStart",null),(0,r.Cg)([(0,u.K)("start")],h.prototype,"writeStart",null),h=n=(0,r.Cg)([(0,a.$K)("esri.time.TimeExtent")],h);const d=new h,p=new h({start:void 0,end:void 0})},10184(e,t,i){i.d(t,{A:()=>u});var n=i(5482),r=i(69540),o=i(25482),s=i(88930),a=i(91429),l=i(73133),c=i(93223);let u=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,c.e)(l.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,n.Cg)([(0,a.$K)("esri.time.TimeInterval")],u)},68747(e,t,i){i.r(t),i.d(t,{generateCombinationsPanoramicWorker:()=>x,generateCombinationsWorker:()=>T});var n=i(34727),r=i(17676);i(17799),i(69052),i(799),i(86211),i(18047),new Map,i(77690),i(29242),i(51850),i(37585),i(35522);var o=i(49186),s=(i(56507),i(86738),i(39829),i(82799),i(16930));i(34403),i(21325),i(99917),i(65708),i(49590),i(27749),i(39663),i(7817),i(10222),i(4576),i(63490),i(87811);var a=i(53966),l=(i(44208),i(27921),i(5443));i(83276),i(19419),i(38732),i(87772),i(23281),i(90091),i(87378),i(22796),i(57984),i(87045),i(72802),i(7861);const c=[1920,1080],u={xmin:-150,ymin:1,xmax:20,ymax:80,spatialReference:{wkid:4326}},h=(s.A.fromJSON(u.spatialReference),.001);new l.A({xmin:u.xmin+h,ymin:u.ymin+h,xmax:u.xmax-h,ymax:u.ymax-h,spatialReference:u.spatialReference}),(0,n.KJ)(Math.acos(.05));var d=i(5482),p=i(97768),m=i(61893),f=i(10107),g=i(64108);let y=class extends m.Z{constructor(e){super(e),this.autoLoad=!1,this.customParameters=null,this.datasetFormat=null,this.url=null,this.rotation=null}destroy(){this._cache=(0,p.pR)(this._cache)}get layer(){return this._cache}get size(){if(!this._cache?.loaded||!this._cache.serviceRasterInfo)return;const{serviceRasterInfo:e}=this._cache;return[e.width,e.height]}async load(e){if(this._cache?.loaded)return await this._cache.load(e),{layer:this._cache,size:this.size};const{url:t,customParameters:n}=this;let o=this.datasetFormat;if(!t)throw new Error("URL is required to load NonPanoramicMedia.");const s=await i.e(7835).then(i.bind(i,97835));if((0,r.Te)(e),o||(o=s.guessExtensionFromURI(t)),!o){try{o=await s.getDatasetFormat(t)}catch(e){a.A.getLogger(this).warn("non-panoramic-media:dataset-format",e)}(0,r.Te)(e)}o??="UNKNOWN FORMAT",this.datasetFormat=o;const l=(await Promise.all([i.e(2754),i.e(9235),i.e(3500),i.e(1003),i.e(2806),i.e(124)]).then(i.bind(i,90124))).default;(0,r.Te)(e),this._cache=new l({url:t,ioConfig:{skipExtensions:["aux.xml","jgw"],skipMapInfo:!0,datasetFormat:o},customParameters:n??void 0});const c=this._cache.load(e);return this.addResolvingPromise(c),await c,(0,r.Te)(e),{layer:this._cache,size:this.size}}};(0,d.Cg)([(0,f.MZ)()],y.prototype,"_cache",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"autoLoad",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"customParameters",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"datasetFormat",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"url",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"layer",null),(0,d.Cg)([(0,f.MZ)()],y.prototype,"rotation",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"size",null),y=(0,d.Cg)([(0,g.$)("esri.widgets.OrientedImageryViewer.support.NonPanoramicMedia")],y);var v=i(37955),w=i(38969);class b extends o.A{constructor(e,t,i){super(e,t,i),this.name="unknown",this.name=e}}const C=new Set(["JPG","JPEG","TIFF","TIF","MRF"]),_=new Set(["MRF","TIFF","TIF"]);let M=class extends m.Z{constructor(e){super(e),this._size=[0,0],this._cache=null,this.autoLoad=!1,this.cameraHeading=null,this.extension=null,this.imagePyramid=null,this.type="image",this.uiStrings={}}destroy(){this._cache=null}get horizonPitch(){const{matrix:e}=this;return e?(0,n.KJ)(Math.asin(-e[6])):0}get horizonRoll(){const{matrix:e}=this;return e?(0,n.KJ)(Math.atan(e[7]/e[8])):0}get horizonYaw(){const{matrix:e,cameraHeading:t}=this;return e?(0,n.KJ)(Math.atan2(e[3],e[0])):t?-t:0}get size(){return this._size}async load(e){const{guessExtensionFromURI:t}=await i.e(7835).then(i.bind(i,97835));if((0,r.Te)(e),"video"===this.type)return this.loadVideoMesh(e);let n=this.extension;if(n||(n=t(this.url)),!n||!C.has(n))throw new b("unsupported-format",this.uiStrings["unsupported-format"]??"Unsupported image format: {extension}",{datasetFormat:n??"UNKNOWN FORMAT"});return _.has(n)?this.loadOptimizedImageMesh(e):this.loadImageMesh(e)}async loadOptimizedImageMesh(e){const{loadMeshes:t,loadPyramid:n,loadRaster:o}=await Promise.all([i.e(6860),i.e(118),i.e(3494)]).then(i.bind(i,21060)),s=await o(this.url,e);(0,r.Te)(e),this.imagePyramid=await n(s,{pitch:this.horizonPitch,yaw:this.horizonYaw,roll:this.horizonRoll},e),(0,r.Te)(e);const a=this.imagePyramid.getLowResolutionTiles(),l=await t(a,e);return(0,r.Te)(e),this._size=this.imagePyramid.imageSize,{meshOrMeshes:l,size:this._size,tileKeys:a?.map(e=>e.key)}}async loadVideoMesh(e){const{createImageSphere:t}=await Promise.all([i.e(6860),i.e(118),i.e(3494)]).then(i.bind(i,21060));if((0,r.Te)(e),this._cache){const i=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:i,size:this._size}}const n=await this._resolveMedia(e);(0,r.Te)(e),this._cache=n.media,this._size=[...c];const o=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:o,size:this._size}}async loadImageMesh(e){const{createImageSphere:t}=await Promise.all([i.e(6860),i.e(118),i.e(3494)]).then(i.bind(i,21060));if((0,r.Te)(e),this._cache){const i=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:i,size:this._size}}const n=await this._resolveMedia(e);(0,r.Te)(e),this._cache=n.media;const o=n.mesh;return this._size=[n.media.width,n.media.height],{meshOrMeshes:o,size:this._size}}async _resolveMedia(e){const t=Promise.withResolvers(),n=(0,r.u7)(e?.signal,t.resolve),o="video"===this.type?document.createElement("video"):document.createElement("img");o.crossOrigin="anonymous",o.src=this.url;let s=null;const a="video"===this.type?(0,w.i)(o,this.addHandles):await new Promise((e,t)=>{s=[(0,v.on)(o,"error",e=>{t(e)}),(0,v.on)(o,"load",e)]}).finally(()=>{s?.forEach(e=>e.remove()),s=null}),l=Promise.race([a,t.promise]);this.addResolvingPromise(l);try{await l}finally{n?.remove()}(0,r.Te)(e);const c=o;if(!c)throw new b("unknown","Could not load media",{url:this.url});const{createImageSphere:u}=await Promise.all([i.e(6860),i.e(118),i.e(3494)]).then(i.bind(i,21060));(0,r.Te)(e);const h=await u({data:o,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{media:c,mesh:h}}};function T(e){return function(e,t){const{cameraPitch:i,cameraRoll:n,cameraLocation:r}=e,{x:o,y:s,z:a,spatialReference:l}=r;if(t.every(e=>0===e)||!t||!t.length||!l)throw new Error("Invalid parameters");const[c,u,,h,d]=t,p=[-h,0,h],m=[-d,0,d],f=[-c,0,c],g=[-u,0,u],y=[];for(const t of p)for(const r of m)for(const c of f)for(const u of f)for(const h of g){const d={...e};d.cameraPitch=i+t,d.cameraRoll=n+r,d.cameraLocation={x:o+c,y:s+u,z:a?a+h:0,spatialReference:{wkid:l.wkid}},y.push(d)}return y}(e.imageToWorldProps,e.accuracyParameters)}function x(e){return function(e,t){const{cameraHeading:i,cameraLocation:n}=e,{x:r,y:o,z:s,spatialReference:a}=n;if(!t||t.every(e=>0===e)||!t.length||!a)throw new Error("Invalid parameters");const[l,c,u]=t,h=u>0?[-u,0,u]:[],d=l>0?[-l,0,l]:[],p=c>0?[-c,0,c]:[],m=[];for(const t of h)for(const n of d)for(const l of d)for(const c of p){const u={...e};u.cameraHeading=i+t,u.cameraLocation={x:r+n,y:o+l,z:s?s+c:0,spatialReference:{wkid:a.wkid}},m.push(u)}return m}(e.imageToWorldProps,e.accuracyParameters)}(0,d.Cg)([(0,f.MZ)()],M.prototype,"_size",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"autoLoad",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"cameraHeading",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"extension",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"horizonPitch",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"horizonRoll",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"horizonYaw",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"id",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"imagePyramid",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"matrix",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"size",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"type",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"uiStrings",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"url",void 0),M=(0,d.Cg)([(0,g.$)("esri.widgets.PanoramicViewer.support.PanoramicMedia")],M),i(9093),i(91829),i(58083),i(79258),i(73354),i(28208),i(28735)},28208(e,t,i){var n=i(86738),r=i(16930);const o=new n.A({x:0,y:0,z:0,spatialReference:r.A.WebMercator});i.d(t,["NU",0,.3515625,"ZH",0,o])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5165,6958],{25728(t,e,r){r.d(e,{M:()=>_});var i=r(5482),s=r(69622),o=r(76953),n=r(4718);class a{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(8),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new a,r=this._originStores[0];r&&r.forEach((t,r)=>{e.set(r,(0,n.o8)(t),0)});for(let r=2;r<8;r++){const i=this._originStores[r];i&&i.forEach((i,s)=>{t&&t.has(s)||e.set(s,(0,n.o8)(i),r)})}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=7){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=r){const i=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),i!==e}return!1}delete(t,e=7){const r=this._originStores[e];if(!r)return;const i=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return i}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],i=r?.get(t),s=this._values.get(t);return this._values.set(t,i),this._propertyOriginMap.set(t,e),s!==i}originOf(t){return this._propertyOriginMap.get(t)||0}isAtOrigin(t,e){return this.has(t,e)&&this.originOf(t)===e}isBelowOrigin(t,e){return!this.has(t)||this.originOf(t)<e}forEach(t){this._values.forEach(t)}}var l=r(35666),u=r(45917),p=r(88620),c=r(64108);const d=t=>{const e=t;let r=class extends e{constructor(...t){super(...t);const e=(0,p.oY)(this),r=e.store,i=new a;e.store=i,(0,o.k)(e,r,i)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const r=h(this),i=(0,l.aB)(e);return r.get(t,i)}originOf(t){return(0,l.OL)(this.originIdOf(t))}originIdOf(t){return h(this).originOf(t)}revertToOrigin(t,e){const r=h(this),i=(0,l.aB)(e),s=(0,p.oY)(this);"*"===t&&r.keys(i).forEach(t=>this.revertToOrigin(t,e)),s.invalidate(t),r.revert(t,i),s.commit(t)}revertAllToOrigin(t){const e=h(this),r=(0,l.aB)(t);e.keys(r).forEach(e=>this.revertToOrigin(e,t))}};return r=(0,i.Cg)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],r),r};function h(t){return(0,p.oY)(t).store}d(s.A);var g=r(91429),y=r(16649),f=r(49422);const v=t=>{const e=t;let r=class extends e{constructor(...t){super(...t)}clear(t,e="user"){(0,p.oY)(this).clearOrigin(t,(0,l.aB)(e))}write(t,e){return(0,f.M)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,p.oY)(this).setAtOrigin(t,e,(0,l.aB)(r))}removeOrigin(t){const e=m(this),r=(0,l.aB)(t),i=e.keys(r);for(const t of i)e.originOf(t)===r&&e.set(t,e.get(t,r),7)}updateOrigin(t,e){const r=m(this),i=(0,l.aB)(e),s=(0,y.Jt)(this,t);for(let e=i+1;e<8;++e)r.delete(t,e);r.set(t,s,i)}toJSON(t){return this.write({},t)}};return r=(0,i.Cg)([(0,g.$K)("esri.core.WriteableMultiOriginJSONMixin")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function m(t){return(0,p.oY)(t).store}const _=t=>{const e=v(d(t));let r=class extends e{};return r=(0,i.Cg)([(0,c.$)("esri.core.MultiOriginJSONSupport")],r),r};_(s.A)},60999(t,e,r){r.d(e,{DZ:()=>g,Ke:()=>h,Tj:()=>p,UT:()=>y,aD:()=>v,jJ:()=>u});var i=r(5482),s=r(69622),o=r(97768),n=r(17676),a=r(10107),l=r(64108);function u(t,e,r){return(0,n.Lx)(t.map((t,i)=>e.apply(r,[t,i])))}async function p(t,e,r){return(await(0,n.Lx)(t.map((t,i)=>e.apply(r,[t,i])))).map(t=>t.value)}function c(t){return{ok:!0,value:t}}function d(t){return{ok:!1,error:t}}async function h(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return c(await t)}catch(t){return d(t)}}async function g(t){try{return c(await t)}catch(t){return(0,n.QP)(t),d(t)}}function y(t,e){return new f(t,e)}let f=class extends s.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){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=t(r),this.promise.then(t=>{this._result=c(t),this._cleanup()},t=>{this._result=d(t),this._cleanup()}),this._abortHandle=(0,n.u7)(e,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 t;this._sequence=new Promise(e=>{t=this._sequence.then(()=>e,()=>e)});const e=await t;return{[Symbol.dispose]:e}}async run(t){const e={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}}},60408(t,e,r){function i(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function s(t){return void 0!==t.points}function o(t){return void 0!==t.x&&void 0!==t.y}function n(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function u(t){return t?o(t)?"esriGeometryPoint":n(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":i(t)?"esriGeometryEnvelope":s(t)?"esriGeometryMultipoint":null:null}function p(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function c(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}r.d(e,{$B:()=>u,Bi:()=>a,Pv:()=>p,Rg:()=>n,U9:()=>s,W0:()=>c,ZC:()=>i,fT:()=>o,uW:()=>l})},45165(t,e,r){r.r(e);var i=r(5482),s=r(49186),o=r(25728),n=r(76030),a=r(91429),l=r(4146),u=r(8303);let p=class extends((0,u.A)((0,o.M)(l.A))){constructor(t){super(t),this.resourceInfo=null,this.persistenceEnabled=!0,this.type="unsupported"}initialize(){this.addResolvingPromise(new Promise((t,e)=>{(0,n._)(()=>{const t=this.resourceInfo&&(this.resourceInfo.layerType||this.resourceInfo.type);let r="Unsupported layer type";t&&(r+=" "+t),e(new s.A("layer:unsupported-layer-type",r,{layerType:t}))})}))}read(t,e){const r={resourceInfo:t};null!=t.id&&(r.id=t.id),null!=t.title&&(r.title=t.title),super.read(r,e)}write(t,e){return Object.assign(t||{},this.resourceInfo,{id:this.id})}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"resourceInfo",void 0),(0,i.Cg)([(0,a.MZ)({type:["show","hide"]})],p.prototype,"listMode",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,readOnly:!1})],p.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1},readOnly:!0,value:"unsupported"})],p.prototype,"type",void 0),p=(0,i.Cg)([(0,a.$K)("esri.layers.UnsupportedLayer")],p);const c=p;r.d(e,["default",0,c])},8303(t,e,r){var i=r(5482),s=r(92602),o=r(70333),n=r(11254),a=r(60999),l=r(49186),u=r(36563),p=r(53966),c=r(97768),d=r(17676),h=r(84952),g=r(91429),y=r(77548),f=r(20655),v=r(80812),m=r(41318),_=r(10407),I=r(36005),w=r(43937);const E={credential:null,user:null};r.d(e,["A",0,t=>{const e=t;let P=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.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(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new v.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,d.Te)(e),await i({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,d.zf)(t)||p.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async reloadFromPortal(t){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:e}=await r.e(1204).then(r.bind(r,41204)),i=new AbortController,s=(0,u.rE)(i);return this.addHandles(s,"reloadFromPortal"),await e({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},{signal:i.signal})}catch(t){throw(0,d.zf)(t)||p.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,d.QP)(t),!0)))}async setUserPrivileges(t,e){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(t){(0,d.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const i=!o.id?.findCredential(this.url),s=t===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,y.wI)(this.url,e)}catch(t){(0,d.QP)(t)}if(!n||!(0,h.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;a=await(o.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,d.QP)(t)}const l=!0,u=!1,p=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:p}};try{if(s?await r.reload():(r=new v.default({id:t,portal:{url:n}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,i)}catch(t){(0,d.QP)(t)}return{features:{edit:l,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(t,e){const r=(0,_.It)(t);return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,d.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?o.id?.findCredential(this.url):null;if(!e)return!0;const r=E.credential===e?E.user:await this._fetchEditingUser(t);return E.credential=e,E.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=f.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!=t?t.signal:null,p=await(0,a.Ke)((0,n.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?m.A.fromJSON(p.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,i=this.portalItem?.id&&(this.portalItem.portal||f.A.getDefault());return r&&i&&!(0,h.ut)(i.restUrl,r.restUrl)?(e.messages&&e.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(t,{...e,layer:this})}};return(0,i.Cg)([(0,g.MZ)({type:v.default})],P.prototype,"portalItem",null),(0,i.Cg)([(0,I.w)("web-document","portalItem",["itemId"])],P.prototype,"readPortalItem",null),(0,i.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],P.prototype,"writePortalItem",null),(0,i.Cg)([(0,g.MZ)({clonable:!1})],P.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasUpdateItemPrivileges",void 0),P=(0,i.Cg)([(0,g.$K)("esri.layers.mixins.PortalLayer")],P),P}])},10407(t,e,r){r.d(e,{It:()=>h,LG:()=>n,OM:()=>u,Sm:()=>p,Y:()=>a,bK:()=>l,sQ:()=>c});var i=r(99917),s=r(16930),o=r(28735);function n(t,e){if(!a(t,e)){const r=t.typeKeywords;r?r.push(e):t.typeKeywords=[e]}}function a(t,e){return!!t.typeKeywords?.includes(e)}function l(t){return a(t,d.HOSTED_SERVICE)}function u(t,e){const r=t.typeKeywords;if(r){const t=r.indexOf(e);t>-1&&r.splice(t,1)}}function p(t,e,r){r?n(t,e):u(t,e)}async function c(t){const e=t.clone().normalize();let r;if(e.length>1)for(const t of e)r?t.width>r.width&&(r=t):r=t;else r=e[0];return async function(t){const e=t.spatialReference;if(e.isWGS84)return t.clone();if(e.isWebMercator)return(0,o.ci)(t);const r=s.A.WGS84;return await(0,i.initializeProjection)(e,r),(0,i.project)(t,r)}(r)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",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",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function h(t){const{portal:e,isOrgItem:r,itemControl:i}=t,s=e.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}}}r.d(e,["mm",0,d])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4508,8846],{73354(t,n,e){e.d(n,{a:()=>f,b:()=>l,c:()=>o,d:()=>u,e:()=>g,f:()=>s,l:()=>c,n:()=>p,t:()=>i}),e(44208);var r=e(72727);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l),c=e[0],s=e[1],f=e[2],g=e[4],p=e[5],y=e[6],d=e[8],m=e[9],h=e[10],v=e[12],A=e[13],w=e[14];let M=0,x=0;for(let e=0;e<a;e++){const e=n[M],r=n[M+1],u=n[M+2];t[x]=c*e+g*r+d*u+v,t[x+1]=s*e+p*r+m*u+A,t[x+2]=f*e+y*r+h*u+w,M+=i,x+=o}return t}function u(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function l(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l),c=e[0],s=e[1],f=e[2],g=e[3],p=e[4],y=e[5],d=e[6],m=e[7],h=e[8];let v=0,A=0;for(let e=0;e<a;e++){const e=n[v],r=n[v+1],u=n[v+2];t[A]=c*e+g*r+d*u,t[A+1]=s*e+p*r+m*u,t[A+2]=f*e+y*r+h*u,v+=i,A+=o}}function a(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let u=0,l=0;for(let a=0;a<i;a++)t[l]=e*n[u],t[l+1]=e*n[u+1],t[l+2]=e*n[u+2],u+=o,l+=r;return t}function c(t,n,e,r){s(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function s(t,n,e,r,o=3,i=o){const u=Math.min(t.length/o,n.length/i);let l=0,a=0;const c=1/2.2;for(let s=0;s<u;s++)t[a]=r*(e*n[l])**c,t[a+1]=r*(e*n[l+1])**c,t[a+2]=r*(e*n[l+2])**c,l+=i,a+=o}function f(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l);let c=0,s=0;for(let r=0;r<a;r++)t[s]=n[c]+e[0],t[s+1]=n[c+1]+e[1],t[s+2]=n[c+2]+e[2],c+=i,s+=o;return t}function g(t,n){p(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function p(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,u=0;for(let l=0;l<o;l++){const o=n[i],l=n[i+1],a=n[i+2],c=o*o+l*l+a*a;if(c>0){const n=1/Math.sqrt(c);t[u]=n*o,t[u+1]=n*l,t[u+2]=n*a}i+=r,u+=e}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:s,linearToSRGBView:c,normalize:p,normalizeView:g,scale:a,scaleView:function(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,u=n.typedBuffer,l=n.typedBufferStride;let a=0,c=0;for(let t=0;t<r;t++)o[c]=u[a]>>e,o[c+1]=u[a+1]>>e,o[c+2]=u[a+2]>>e,a+=l,c+=i},transformMat3:l,transformMat3View:u,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function u(){return i(1,1)}function l(){return i(-1,-1)}function a(){return i(1,0)}function c(){return i(0,1)}e.d(n,{fA:()=>i,o8:()=>o,vt:()=>r});const s=u(),f=l(),g=a(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:s,UNIT_X:g,UNIT_Y:p,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,negativeOnes:l,ones:u,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,f,"Un",0,s])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function l(){return o(0,1,0,0)}function a(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>o,vt:()=>r});const s=[0,0,0,0],f=i(),g=u(),p=l(),y=a(),d=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:d,UNIT_X:g,UNIT_Y:p,UNIT_Z:y,ZEROS:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitW:c,unitX:u,unitY:l,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,f,"uY",0,s])},48353(t,n,e){e.d(n,{l:()=>c});var r=e(34727),o=e(58083),i=e(51850);function u(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),u=Math.cos(n),l=e;return l[0]=-r,l[4]=-i*o,l[8]=u*o,l[12]=0,l[1]=o,l[5]=-i*r,l[9]=u*r,l[13]=0,l[2]=0,l[6]=u,l[10]=i,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}var l=e(49208),a=e(21325);function c(t,n,e,r){const i=(0,l.Tp)(t,r);if(null==i)return!1;const c=i.source.spatialReferenceId,y=i.dest.spatialReferenceId;if(c===y&&!s(y)&&(0!==c||(0,a.aI)(t,r)))return(0,o.kN)(e,n),!0;if(s(y)){const t=l.w5[c][10],r=l.w5[10][y];return null!=t&&null!=r&&(t(n,0,g,0),r(g,0,p,0),u(f*g[0],f*g[1],e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}const d=s(c);if((3===y||11===y||2===y||5===y)&&(2===c||d||3===c||5===c)){const t=l.w5[c][10],r=l.w5[10][y];return null!=t&&null!=r&&(t(n,0,g,0),r(g,0,p,0),d?function(t,n,e){u(t,n,e),(0,o.mg)(e,e)}(f*g[0],f*g[1],e):(0,o.D_)(e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}return!1}function s(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),g=(0,i.vt)(),p=(0,i.vt)()},65806(t,n,e){e.d(n,{g:()=>u});var r=e(51850),o=e(91218),i=e(9762);function u(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e))return l[0]=t.x,l[1]=t.y,l[2]=t.z??0,(0,i.projectBuffer)(l,t.spatialReference,0,n,e,0);const u=(0,o.tryProject)(t,e,r);return!!u&&(n[0]=u.x,n[1]=u.y,n[2]=u.z??0,!0)}const l=(0,r.vt)()},1193(t,n,e){e.r(n),e.d(n,{default:()=>f});var r,o=e(5482),i=e(69540),u=e(25482),l=e(4718),a=e(53966),c=e(91429),s=e(31199);let f=r=class extends((0,i.OU)(u.o)){constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,s.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,s.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clonePositional(){const t={position:(0,l.o8)(this.position),normal:(0,l.o8)(this.normal),tangent:(0,l.o8)(this.tangent),uv:this.uv,color:this.color};return new r(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"color",void 0),(0,o.Cg)([(0,c.wg)("color")],f.prototype,"castColor",null),(0,o.Cg)([(0,c.MZ)({nonNullable:!0,json:{write:s.B}})],f.prototype,"position",void 0),(0,o.Cg)([(0,c.wg)("position")],f.prototype,"castPosition",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"uv",void 0),(0,o.Cg)([(0,c.wg)("uv")],f.prototype,"castUv",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"normal",void 0),(0,o.Cg)([(0,c.wg)("normal")],f.prototype,"castNormal",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"tangent",void 0),(0,o.Cg)([(0,c.wg)("tangent")],f.prototype,"castTangent",null),f=r=(0,o.Cg)([(0,c.$K)("esri.geometry.support.MeshVertexAttributes")],f)},72727(t,n,e){function r(t,n,e){if(n<=0)return 0;const r=t-e;return r<0?0:Math.floor(r/n)+1}e.d(n,{k:()=>r}),e(53966)},31199(t,n,e){function r(t,n,e,r){const{loggerTag:o,stride:i}=n;return t.length%i!==0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new e([])):t}function o(t,n,e,o,i){if(!t)return t;if(t instanceof n)return r(t,o,n,i);for(const u of e)if(t instanceof u)return r(new n(t),o,n,i);if(Array.isArray(t))return r(new n(t),o,n,i);{const r=e.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new n([])}}function i(t,n,e){n[e]=function(t){const n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e];return n}(t)}e.d(n,{B:()=>i,b:()=>o})},28846(t,n,e){e.d(n,{convertMeshVertexSpace:()=>c});var r=e(49186),o=e(4718),i=e(17676),u=e(1193),l=e(66895),a=e(72258);async function c(t,n,e){await Promise.resolve(),(0,i.Te)(e);const c=(0,a.UR)(t,n,{useEllipsoid:e?.useEllipsoid});if(!c)throw new r.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");return t.clone((0,l.Lz)(void 0,{vertexAttributes:new u.default({...c,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),vertexSpace:n,transform:null}))}},66895(t,n,e){e.d(n,{$N:()=>s,Lz:()=>i,QN:()=>f,WO:()=>a,hz:()=>l,o2:()=>o});const r=Symbol("meshContext");function o(t){return t&&"object"==typeof t&&r in t?t[r]:void 0}function i(t,n){const e=o(t);return{...t,[r]:{...e,...n}}}const u=Symbol("meshMaterialContext");function l(t){return t&&"object"==typeof t&&u in t?t[u]:void 0}function a(t){const n=l(t);if(n?.materialMap)return t;const e={materialMap:new Map};return{...t,[u]:e}}const c=Symbol("meshTextureContext");function s(t){return t&&"object"==typeof t&&c in t?t[c]:void 0}function f(t){const n=s(t);if(n?.textureMap)return t;const e={textureMap:new Map};return{...t,[c]:e}}},22141(t,n,e){e.d(n,{$5:()=>x,CN:()=>v,KM:()=>B,Mv:()=>T,X4:()=>A,gr:()=>M,qs:()=>b,si:()=>w,xA:()=>S});var r=e(34727),o=e(77690),i=e(29242),u=e(58083),l=e(9093),a=e(35522),c=e(51850),s=e(73941),f=e(48353),g=e(9762),p=(e(79258),e(21325)),y=e(28735),d=e(13030),m=e(73354),h=e(50867);function v(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function A(t,n,e,r,o,i){return F(0,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function w(t,n,e,r,o,i){return F(1,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function M(t,n,e,r){return(0,g.projectBuffer)(t,n,0,e,r,0)?e:null}function x(t,n,e,r){return(0,g.projectBuffer)(t,n,0,e,r,0)?e:null}function b(t,n,e){return(0,o.Ge)(R,e),(0,m.b)(n,t,R),(0,r.or)(R)&&(0,m.n)(n,n),n}function B(t,n,e){return(0,o.z0)(R,e),(0,h.t)(n,t,R),(0,r.or)(R)&&(0,m.n)(n,n,4),n}function S(t,n,e,r,o,i){if(!F(0,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function T(t,n,e,r,o,i){if(!F(1,d.xs.fromTypedArray(t,16),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function C(t,n,e,r,i){switch((0,f.l)(r,e,j,r),1===t&&(0,u.B8)(j,j),n){case 0:return(0,o.Ge)(i,j);case 1:return(0,o.z0)(i,j)}}function F(t,n,e,r,o,i,u,l){if(!n)return;const c=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,s.q8)(t)||(0,s.KQ)(t)}(o))for(let r=0;r<c;r++)i.getVec(r,N),n.getVec(r,_),(0,a.ei)(_,_,C(t,e,N,u,R)),l.setVec(r,_);else for(let o=0;o<c;o++){i.getVec(o,N),n.getVec(o,_);const c=(0,y.jg)(r.get(o,1));let s=Math.cos(c);1===e!=(0===t)&&(s=1/s),C(t,e,N,u,R),0===t?(R[0]*=s,R[1]*=s,R[2]*=s,R[3]*=s,R[4]*=s,R[5]*=s):(R[0]*=s,R[3]*=s,R[6]*=s,R[1]*=s,R[4]*=s,R[7]*=s),(0,a.ei)(_,_,R),(0,a.S8)(_,_),l.setVec(o,_)}return l}const N=(0,c.vt)(),_=(0,c.vt)(),j=(0,l.vt)(),R=(0,i.vt)();e.d(n,["JP",0,"Projection may be possible after calling projection.load()."])},72258(t,n,e){e.d(n,{UR:()=>M,p5:()=>w,xK:()=>C});var r=e(53966),o=e(34727),i=e(86211),u=e(77690),l=e(29242),a=e(58083),c=e(9093),s=e(35522),f=e(51850),g=e(73941),p=e(98764),y=e(48353),d=e(65806),m=e(27615),h=e(73354),v=e(22141);const A=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function w(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,s.Re)(t,o,i),!0}const o=(0,p.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:u}=e,l=R;if(!(0,y.l)(r,u,l,o))return!1;const c=(0,a.B8)(R,l);return null!=c&&((0,s.Z0)(t,i,c),!0)}function M(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,l=(0,m.Hq)(r)?o:null,f=S(t.spatialReference,e,3);if((0,m.yJ)(r,n)&&(!l||(0,a.t2)(l.localMatrix,c.zK))&&T(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const u=x(n,i);if(!(0,y.l)(n,r,F,u))return(0,v.CN)(A(),n,u),null;if(e&&(0,a.lw)(F,F,e.localMatrix),!(0,y.l)(n,o,N,u))return(0,v.CN)(A(),u,n),null;(0,a.B8)(N,N);const l=(0,a.lw)(F,N,F);return B(l,n,i,3),b(t,l)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const u=x(t,i);if(!(0,y.l)(t,r,F,u))return(0,v.CN)(A(),t,u),null;e&&(0,a.lw)(F,F,e.localMatrix),B(F,t,i,1);const l=new Float64Array(n.position.length),c=function(t,n,e,r,o){(0,h.t)(r,t,n);const i=new Float64Array(t.length);return(0,v.$5)(r,o,i,e)?i:((0,v.CN)(A(),o,e),null)}(n.position,F,t,l,u);if(!c)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,v.qs)(o,u,i),(0,v.si)(u,t,n,e,r,u)?u:((0,v.CN)(A(),r,n),null)}(c,t,l,u,n.normal,F);if(n.normal&&!f)return null;const g=function(t,n,e,r,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,v.KM)(o,u,i),(0,v.Mv)(u,t,n,e,r,u)?u:((0,v.CN)(A(),r,n),null)}(c,t,l,u,n.tangent,F);if(n.tangent&&!g)return null;if(o){const t=(0,s.ze)(j,o);(0,h.a)(c,c,t)}return{position:c,normal:f,tangent:g}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const l=x(n,i);if(!(0,y.l)(n,o,F,l))return(0,v.CN)(A(),n,l),null;const c=1/S(n,i,2);(0,a.hs)(F,F,[c,c,c]);const s=(0,a.B8)(N,F),{position:f,normal:g,tangent:p}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,h.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=b(t,e.localMatrix);return(0,h.a)(r.position,r.position,n),r}(t,r,e),d=new Float64Array(f.length),m=function(t,n,e,r,o){const i=(0,v.gr)(t,n,r,o);if(!i)return(0,v.CN)(A(),n,o),null;const u=new Float64Array(i.length);return(0,h.t)(u,i,e),u}(f,n,s,d,l);if(!m)return null;const w=(0,u.Ge)(_,s),M=function(t,n,e,r,o,i,u){if(null==t)return null;const l=u??new Float32Array(t.length);return(0,v.X4)(t,n,e,r,o,l)?((0,h.b)(l,l,i),l):((0,v.CN)(A(),e,o),null)}(g,f,n,d,l,w,g!==t.normal?g:void 0);if(!M&&g)return null;const B=function(t,n,e,r,o,i,u){if(null==t)return null;const l=u??new Float32Array(t.length);return(0,v.xA)(t,n,e,r,o,l)?((0,h.b)(l,l,i,4),l):((0,v.CN)(A(),e,o),null)}(p,f,n,d,l,w,p!==t.tangent?p:void 0);return!B&&p?null:{position:m,normal:M,tangent:B}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const u=S(e,i,3),l=r||!T(u)?(0,a.C)(F,n?.localMatrix??c.zK):null;l&&B(l,e,i,3);const{position:f,normal:g,tangent:p}=l?b(t,l):t,y=i?.allowBufferReuse,d=y?f:new Float64Array(f.length);let m=f;if(r&&(m=(0,h.a)(d,m,r)),o){const t=(0,s.ze)(j,o);m=(0,h.a)(d,m,t)}return{position:m!==t.position||y?m:m.slice(),normal:g!==t.normal||y?g:g?.slice(),tangent:p!==t.tangent||y?p:p?.slice()}}(t,t.vertexSpace,n.origin,e)}}function x(t,n){return n?.useEllipsoid&&(0,g.B3)(t)?p.Y0:(0,p.lO)(t)}function b(t,n){const e=new Float64Array(t.position.length);(0,h.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,v.qs)(t.normal,r,n),o&&t.tangent&&(0,v.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function B(t,n,e,r){const o=S(n,e,r);T(o)||(0,a.hs)(t,t,[o,o,o])}function S(t,n,e){const r=!!(1&e),o=!!(2&e),i=n?.sourceUnit,u=n?.targetUnit;if(!i&&!u)return 1;let l=C(i,t);r||!i||T(l)||(A().warn("source unit conversion not supported"),l=1);let a=1/C(u,t);return o||!u||T(a)||(A().warn("target unit conversion not supported"),a=1),l*a}function T(t){return(0,o.Io)(t,1)}function C(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const F=(0,c.vt)(),N=(0,c.vt)(),_=(0,l.vt)(),j=(0,f.vt)(),R=(0,c.vt)()}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4508,8846],{73354(t,n,e){e.d(n,{a:()=>f,b:()=>l,c:()=>o,d:()=>u,e:()=>g,f:()=>s,l:()=>c,n:()=>p,t:()=>i}),e(44208);var r=e(72727);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l),c=e[0],s=e[1],f=e[2],g=e[4],p=e[5],y=e[6],d=e[8],m=e[9],h=e[10],v=e[12],A=e[13],w=e[14];let M=0,x=0;for(let e=0;e<a;e++){const e=n[M],r=n[M+1],u=n[M+2];t[x]=c*e+g*r+d*u+v,t[x+1]=s*e+p*r+m*u+A,t[x+2]=f*e+y*r+h*u+w,M+=i,x+=o}return t}function u(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function l(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l),c=e[0],s=e[1],f=e[2],g=e[3],p=e[4],y=e[5],d=e[6],m=e[7],h=e[8];let v=0,A=0;for(let e=0;e<a;e++){const e=n[v],r=n[v+1],u=n[v+2];t[A]=c*e+g*r+d*u,t[A+1]=s*e+p*r+m*u,t[A+2]=f*e+y*r+h*u,v+=i,A+=o}}function a(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let u=0,l=0;for(let a=0;a<i;a++)t[l]=e*n[u],t[l+1]=e*n[u+1],t[l+2]=e*n[u+2],u+=o,l+=r;return t}function c(t,n,e,r){s(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function s(t,n,e,r,o=3,i=o){const u=Math.min(t.length/o,n.length/i);let l=0,a=0;const c=1/2.2;for(let s=0;s<u;s++)t[a]=r*(e*n[l])**c,t[a+1]=r*(e*n[l+1])**c,t[a+2]=r*(e*n[l+2])**c,l+=i,a+=o}function f(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l);let c=0,s=0;for(let r=0;r<a;r++)t[s]=n[c]+e[0],t[s+1]=n[c+1]+e[1],t[s+2]=n[c+2]+e[2],c+=i,s+=o;return t}function g(t,n){p(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function p(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,u=0;for(let l=0;l<o;l++){const o=n[i],l=n[i+1],a=n[i+2],c=o*o+l*l+a*a;if(c>0){const n=1/Math.sqrt(c);t[u]=n*o,t[u+1]=n*l,t[u+2]=n*a}i+=r,u+=e}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:s,linearToSRGBView:c,normalize:p,normalizeView:g,scale:a,scaleView:function(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,u=n.typedBuffer,l=n.typedBufferStride;let a=0,c=0;for(let t=0;t<r;t++)o[c]=u[a]>>e,o[c+1]=u[a+1]>>e,o[c+2]=u[a+2]>>e,a+=l,c+=i},transformMat3:l,transformMat3View:u,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function u(){return i(1,1)}function l(){return i(-1,-1)}function a(){return i(1,0)}function c(){return i(0,1)}e.d(n,{fA:()=>i,o8:()=>o,vt:()=>r});const s=u(),f=l(),g=a(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:s,UNIT_X:g,UNIT_Y:p,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,negativeOnes:l,ones:u,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,f,"Un",0,s])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function l(){return o(0,1,0,0)}function a(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>o,vt:()=>r});const s=[0,0,0,0],f=i(),g=u(),p=l(),y=a(),d=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:d,UNIT_X:g,UNIT_Y:p,UNIT_Z:y,ZEROS:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitW:c,unitX:u,unitY:l,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,f,"uY",0,s])},48353(t,n,e){e.d(n,{l:()=>c});var r=e(34727),o=e(58083),i=e(51850);function u(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),u=Math.cos(n),l=e;return l[0]=-r,l[4]=-i*o,l[8]=u*o,l[12]=0,l[1]=o,l[5]=-i*r,l[9]=u*r,l[13]=0,l[2]=0,l[6]=u,l[10]=i,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}var l=e(49208),a=e(21325);function c(t,n,e,r){const i=(0,l.Tp)(t,r);if(null==i)return!1;const c=i.source.spatialReferenceId,y=i.dest.spatialReferenceId;if(c===y&&!s(y)&&(0!==c||(0,a.aI)(t,r)))return(0,o.kN)(e,n),!0;if(s(y)){const t=l.w5[c][10],r=l.w5[10][y];return null!=t&&null!=r&&(t(n,0,g,0),r(g,0,p,0),u(f*g[0],f*g[1],e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}const d=s(c);if((3===y||11===y||2===y||5===y)&&(2===c||d||3===c||5===c)){const t=l.w5[c][10],r=l.w5[10][y];return null!=t&&null!=r&&(t(n,0,g,0),r(g,0,p,0),d?function(t,n,e){u(t,n,e),(0,o.mg)(e,e)}(f*g[0],f*g[1],e):(0,o.D_)(e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}return!1}function s(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),g=(0,i.vt)(),p=(0,i.vt)()},65806(t,n,e){e.d(n,{g:()=>u});var r=e(51850),o=e(99917),i=e(9762);function u(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e))return l[0]=t.x,l[1]=t.y,l[2]=t.z??0,(0,i.projectBuffer)(l,t.spatialReference,0,n,e,0);const u=(0,o.tryProject)(t,e,r);return!!u&&(n[0]=u.x,n[1]=u.y,n[2]=u.z??0,!0)}const l=(0,r.vt)()},1193(t,n,e){e.r(n),e.d(n,{default:()=>f});var r,o=e(5482),i=e(69540),u=e(25482),l=e(4718),a=e(53966),c=e(91429),s=e(31199);let f=r=class extends((0,i.OU)(u.o)){constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,s.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,s.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clonePositional(){const t={position:(0,l.o8)(this.position),normal:(0,l.o8)(this.normal),tangent:(0,l.o8)(this.tangent),uv:this.uv,color:this.color};return new r(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"color",void 0),(0,o.Cg)([(0,c.wg)("color")],f.prototype,"castColor",null),(0,o.Cg)([(0,c.MZ)({nonNullable:!0,json:{write:s.B}})],f.prototype,"position",void 0),(0,o.Cg)([(0,c.wg)("position")],f.prototype,"castPosition",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"uv",void 0),(0,o.Cg)([(0,c.wg)("uv")],f.prototype,"castUv",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"normal",void 0),(0,o.Cg)([(0,c.wg)("normal")],f.prototype,"castNormal",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"tangent",void 0),(0,o.Cg)([(0,c.wg)("tangent")],f.prototype,"castTangent",null),f=r=(0,o.Cg)([(0,c.$K)("esri.geometry.support.MeshVertexAttributes")],f)},72727(t,n,e){function r(t,n,e){if(n<=0)return 0;const r=t-e;return r<0?0:Math.floor(r/n)+1}e.d(n,{k:()=>r}),e(53966)},31199(t,n,e){function r(t,n,e,r){const{loggerTag:o,stride:i}=n;return t.length%i!==0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new e([])):t}function o(t,n,e,o,i){if(!t)return t;if(t instanceof n)return r(t,o,n,i);for(const u of e)if(t instanceof u)return r(new n(t),o,n,i);if(Array.isArray(t))return r(new n(t),o,n,i);{const r=e.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new n([])}}function i(t,n,e){n[e]=function(t){const n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e];return n}(t)}e.d(n,{B:()=>i,b:()=>o})},28846(t,n,e){e.d(n,{convertMeshVertexSpace:()=>c});var r=e(49186),o=e(4718),i=e(17676),u=e(1193),l=e(66895),a=e(72258);async function c(t,n,e){await Promise.resolve(),(0,i.Te)(e);const c=(0,a.UR)(t,n,{useEllipsoid:e?.useEllipsoid});if(!c)throw new r.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");return t.clone((0,l.Lz)(void 0,{vertexAttributes:new u.default({...c,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),vertexSpace:n,transform:null}))}},66895(t,n,e){e.d(n,{$N:()=>s,Lz:()=>i,QN:()=>f,WO:()=>a,hz:()=>l,o2:()=>o});const r=Symbol("meshContext");function o(t){return t&&"object"==typeof t&&r in t?t[r]:void 0}function i(t,n){const e=o(t);return{...t,[r]:{...e,...n}}}const u=Symbol("meshMaterialContext");function l(t){return t&&"object"==typeof t&&u in t?t[u]:void 0}function a(t){const n=l(t);if(n?.materialMap)return t;const e={materialMap:new Map};return{...t,[u]:e}}const c=Symbol("meshTextureContext");function s(t){return t&&"object"==typeof t&&c in t?t[c]:void 0}function f(t){const n=s(t);if(n?.textureMap)return t;const e={textureMap:new Map};return{...t,[c]:e}}},22141(t,n,e){e.d(n,{$5:()=>x,CN:()=>v,KM:()=>B,Mv:()=>T,X4:()=>A,gr:()=>M,qs:()=>b,si:()=>w,xA:()=>S});var r=e(34727),o=e(77690),i=e(29242),u=e(58083),l=e(9093),a=e(35522),c=e(51850),s=e(73941),f=e(48353),g=e(9762),p=(e(79258),e(21325)),y=e(28735),d=e(13030),m=e(73354),h=e(50867);function v(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function A(t,n,e,r,o,i){return F(0,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function w(t,n,e,r,o,i){return F(1,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function M(t,n,e,r){return(0,g.projectBuffer)(t,n,0,e,r,0)?e:null}function x(t,n,e,r){return(0,g.projectBuffer)(t,n,0,e,r,0)?e:null}function b(t,n,e){return(0,o.Ge)(R,e),(0,m.b)(n,t,R),(0,r.or)(R)&&(0,m.n)(n,n),n}function B(t,n,e){return(0,o.z0)(R,e),(0,h.t)(n,t,R),(0,r.or)(R)&&(0,m.n)(n,n,4),n}function S(t,n,e,r,o,i){if(!F(0,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function T(t,n,e,r,o,i){if(!F(1,d.xs.fromTypedArray(t,16),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function C(t,n,e,r,i){switch((0,f.l)(r,e,j,r),1===t&&(0,u.B8)(j,j),n){case 0:return(0,o.Ge)(i,j);case 1:return(0,o.z0)(i,j)}}function F(t,n,e,r,o,i,u,l){if(!n)return;const c=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,s.q8)(t)||(0,s.KQ)(t)}(o))for(let r=0;r<c;r++)i.getVec(r,N),n.getVec(r,_),(0,a.ei)(_,_,C(t,e,N,u,R)),l.setVec(r,_);else for(let o=0;o<c;o++){i.getVec(o,N),n.getVec(o,_);const c=(0,y.jg)(r.get(o,1));let s=Math.cos(c);1===e!=(0===t)&&(s=1/s),C(t,e,N,u,R),0===t?(R[0]*=s,R[1]*=s,R[2]*=s,R[3]*=s,R[4]*=s,R[5]*=s):(R[0]*=s,R[3]*=s,R[6]*=s,R[1]*=s,R[4]*=s,R[7]*=s),(0,a.ei)(_,_,R),(0,a.S8)(_,_),l.setVec(o,_)}return l}const N=(0,c.vt)(),_=(0,c.vt)(),j=(0,l.vt)(),R=(0,i.vt)();e.d(n,["JP",0,"Projection may be possible after calling projection.load()."])},72258(t,n,e){e.d(n,{UR:()=>M,p5:()=>w,xK:()=>C});var r=e(53966),o=e(34727),i=e(86211),u=e(77690),l=e(29242),a=e(58083),c=e(9093),s=e(35522),f=e(51850),g=e(73941),p=e(98764),y=e(48353),d=e(65806),m=e(27615),h=e(73354),v=e(22141);const A=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function w(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,s.Re)(t,o,i),!0}const o=(0,p.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:u}=e,l=R;if(!(0,y.l)(r,u,l,o))return!1;const c=(0,a.B8)(R,l);return null!=c&&((0,s.Z0)(t,i,c),!0)}function M(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,l=(0,m.Hq)(r)?o:null,f=S(t.spatialReference,e,3);if((0,m.yJ)(r,n)&&(!l||(0,a.t2)(l.localMatrix,c.zK))&&T(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const u=x(n,i);if(!(0,y.l)(n,r,F,u))return(0,v.CN)(A(),n,u),null;if(e&&(0,a.lw)(F,F,e.localMatrix),!(0,y.l)(n,o,N,u))return(0,v.CN)(A(),u,n),null;(0,a.B8)(N,N);const l=(0,a.lw)(F,N,F);return B(l,n,i,3),b(t,l)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const u=x(t,i);if(!(0,y.l)(t,r,F,u))return(0,v.CN)(A(),t,u),null;e&&(0,a.lw)(F,F,e.localMatrix),B(F,t,i,1);const l=new Float64Array(n.position.length),c=function(t,n,e,r,o){(0,h.t)(r,t,n);const i=new Float64Array(t.length);return(0,v.$5)(r,o,i,e)?i:((0,v.CN)(A(),o,e),null)}(n.position,F,t,l,u);if(!c)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,v.qs)(o,u,i),(0,v.si)(u,t,n,e,r,u)?u:((0,v.CN)(A(),r,n),null)}(c,t,l,u,n.normal,F);if(n.normal&&!f)return null;const g=function(t,n,e,r,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,v.KM)(o,u,i),(0,v.Mv)(u,t,n,e,r,u)?u:((0,v.CN)(A(),r,n),null)}(c,t,l,u,n.tangent,F);if(n.tangent&&!g)return null;if(o){const t=(0,s.ze)(j,o);(0,h.a)(c,c,t)}return{position:c,normal:f,tangent:g}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const l=x(n,i);if(!(0,y.l)(n,o,F,l))return(0,v.CN)(A(),n,l),null;const c=1/S(n,i,2);(0,a.hs)(F,F,[c,c,c]);const s=(0,a.B8)(N,F),{position:f,normal:g,tangent:p}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,h.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=b(t,e.localMatrix);return(0,h.a)(r.position,r.position,n),r}(t,r,e),d=new Float64Array(f.length),m=function(t,n,e,r,o){const i=(0,v.gr)(t,n,r,o);if(!i)return(0,v.CN)(A(),n,o),null;const u=new Float64Array(i.length);return(0,h.t)(u,i,e),u}(f,n,s,d,l);if(!m)return null;const w=(0,u.Ge)(_,s),M=function(t,n,e,r,o,i,u){if(null==t)return null;const l=u??new Float32Array(t.length);return(0,v.X4)(t,n,e,r,o,l)?((0,h.b)(l,l,i),l):((0,v.CN)(A(),e,o),null)}(g,f,n,d,l,w,g!==t.normal?g:void 0);if(!M&&g)return null;const B=function(t,n,e,r,o,i,u){if(null==t)return null;const l=u??new Float32Array(t.length);return(0,v.xA)(t,n,e,r,o,l)?((0,h.b)(l,l,i,4),l):((0,v.CN)(A(),e,o),null)}(p,f,n,d,l,w,p!==t.tangent?p:void 0);return!B&&p?null:{position:m,normal:M,tangent:B}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const u=S(e,i,3),l=r||!T(u)?(0,a.C)(F,n?.localMatrix??c.zK):null;l&&B(l,e,i,3);const{position:f,normal:g,tangent:p}=l?b(t,l):t,y=i?.allowBufferReuse,d=y?f:new Float64Array(f.length);let m=f;if(r&&(m=(0,h.a)(d,m,r)),o){const t=(0,s.ze)(j,o);m=(0,h.a)(d,m,t)}return{position:m!==t.position||y?m:m.slice(),normal:g!==t.normal||y?g:g?.slice(),tangent:p!==t.tangent||y?p:p?.slice()}}(t,t.vertexSpace,n.origin,e)}}function x(t,n){return n?.useEllipsoid&&(0,g.B3)(t)?p.Y0:(0,p.lO)(t)}function b(t,n){const e=new Float64Array(t.position.length);(0,h.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,v.qs)(t.normal,r,n),o&&t.tangent&&(0,v.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function B(t,n,e,r){const o=S(n,e,r);T(o)||(0,a.hs)(t,t,[o,o,o])}function S(t,n,e){const r=!!(1&e),o=!!(2&e),i=n?.sourceUnit,u=n?.targetUnit;if(!i&&!u)return 1;let l=C(i,t);r||!i||T(l)||(A().warn("source unit conversion not supported"),l=1);let a=1/C(u,t);return o||!u||T(a)||(A().warn("target unit conversion not supported"),a=1),l*a}function T(t){return(0,o.Io)(t,1)}function C(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const F=(0,c.vt)(),N=(0,c.vt)(),_=(0,l.vt)(),j=(0,f.vt)(),R=(0,c.vt)()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,8393],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},98783(t,e,r){r.d(e,{O:()=>o});var s=r(61691),n=r(55537),i=r(76061),a=r(39117);class o{getOperatorType(){return 10104}accelerateGeometry(t,e,r){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}isSimple(t,e,r,s,n){return 5===(0,a.$)(t,e,r,s,n)}executeMany(t,e,r,s){return new u(t,e,r,s)}execute(t,e,r,s){const a=new i.S([t]),o=this.executeMany(a,e,r,s).next();return o||(0,n.d)("null output"),o}}class u extends s.G{m_inputGeometryCursor;m_spatialReference;m_progressTracker;m_index;m_bForceSimplify;constructor(t,e,r,s){super(),t||(0,n.a)(""),this.m_progressTracker=s,this.m_bForceSimplify=r,this.m_index=-1,this.m_inputGeometryCursor=t,this.m_spatialReference=e}next(){const t=this.m_inputGeometryCursor.next();return t?((0,n.c)(t),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(t)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(t){return t||(0,n.a)(""),(0,a.a0)(t,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(t,e,r){r.d(e,{JR:()=>S,ME:()=>M,MY:()=>O,NO:()=>C,Nh:()=>E,V2:()=>b,_s:()=>Z,e6:()=>I,gh:()=>_,tr:()=>V,uX:()=>x});var s=r(5482),n=r(16930),i=r(19419),a=r(60408),o=r(21325),u=r(513),h=r(50954),l=r(79567),c=r(52006),m=r(49663),g=r(46068),f=r(92722);class x{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:u,segmentFlags:h,segmentIndices:l,segmentParams:c,segmentCountArc:m,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=l,this.segmentParams=c,this.segmentCountArc=m,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=b(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:l}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(h.subarray(0,e),0),o.vertexM?.set(l.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,o.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new 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=F(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 d(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 d{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=F(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],u=e[r++];r++,r++;const h=e[r++],l=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[h,l]]};const c=2&s?0:1,m=1&s?0:1;return{a:[this.end,[o,u],c,m,a,n,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,s.mS)(r,new R(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=t,u=P(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new R(t,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,c.yP)(r)}const[a,o,h,m]=n;e={xmin:a,ymin:o,xmax:h,ymax:m,spatialReference:u}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:u}}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function M(t){let e,r,s;if((0,a.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,u=[n,i];null!=a&&u.push(a),null!=o&&u.push(o),r=[[u]],e=1}else(0,a.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,A(e[0],(0,c.yP)(e.at(-1)))&&--t),t),0));const n=b(s,e,s.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,c.Ed)(t)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:h,vertexM:l}=n;function m(t){u[2*f]=t[0],u[2*f+1]=t[1],i&&(h[f]=t[2]),o&&(l[f]=t[g]),++f}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let f=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])u[2*f]=t,u[2*f+1]=e,++f;return n}for(const t of r[0])m(t);return n}const x="polygon"===s,{partOffsets:p}=n;let y=0;if(!(0,c.Ed)(t)){for(const t of r){if(p[y++]=f,0===t.length)continue;let e=t.length;if(x&&A(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)m(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];u[2*f]=e,u[2*f+1]=s,++f}}return p[y]=f,n}function v(t){const e=d+t;if(e<=(n.segmentParams?.length??0))return;let r=e*G;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let d=0;for(const t of r){if(n.partOffsets[y++]=f,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];m(r);const i=f-1;(0,c.wY)(s)?(v(10),++n.segmentCountArc,d=Z(r,s,n,i,d),r=s.a[0]):(0,c.DA)(s)?(v(10),++n.segmentCountArc,d=w(r,s,n,i,d),r=s.a[0]):(0,c.aO)(s)?(v(10),++n.segmentCountArc,d=I(r,s,n,i,d),r=s.c[0]):(0,c.n1)(s)?(v(4),++n.segmentCountBezier,d=V(0,s,n,i,d),r=s.b[0]):r=s}x&&A(e,r)||m(r)}return n.partOffsets[y]=f,n}function _(t){const e=F(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=P(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const h=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);h.push(t)}return u?{rings:[],curveRings:h,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:h,hasZ:n,hasM:i,spatialReference:a}}function E(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const h=b(t,u,a,s,n,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=r[e++],h.vertexXY[2*t+1]=r[e++],s&&(h.vertexZ[t]=r[e++]),n&&(h.vertexM[t]=r[e++]);return h}const l=2+Number(s)+Number(n);let c=0,m=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[m],i=e+t-Number(o);h.partOffsets[++m]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=r[c++],h.vertexXY[2*t+1]=r[c++],s&&(h.vertexZ[t]=r[c++]),n&&(h.vertexM[t]=r[c++]);o&&(c+=l)}return h}function S({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:u}){const h=new f.A([],[],o,u);i=Math.max(i,1);const l="polygon"===t;let c=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,m=h.coords.length;for(let t=c;t<i;++t)h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(s[t]),u&&h.coords.push(n[t]);if(l){const t=c;h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(s[t]),u&&h.coords.push(n[t])}h.lengths.push((h.coords.length-m)/h.stride),c=i}return"point"===t&&(h.lengths.length=0),h}function O(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class R{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function P({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function F({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function A(t,e){return t.every((t,r)=>t===e[r])}function b(t,e,r,s,n,i,a,o){a??=0,o??=0;const u=new x({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let h=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),n&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(h);let c=0;return u.vertexXY=new Float64Array(l,c,2*e),c+=u.vertexXY.byteLength,s&&(u.vertexZ=new Float64Array(l,c,e),c+=u.vertexZ.byteLength),n&&(u.vertexM=new Float64Array(l,c,e),c+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(l,c,u.segmentParamCount),c+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(l,c,e),u.segmentIndices.fill(k),c+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(l,c,r+1),c+=u.partOffsets.byteLength,u.partFlags=new Int8Array(l,c,r+1),c+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(l,c,e),u.segmentFlags.fill(1),c+=u.segmentFlags.byteLength),u}function Z(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[u,h],l,c,m,f,x]=e.a;let p=4;c||(p|=1),l||(p|=2);const y=(0,g.SW)(t,e),[v,d]=(0,g.Uk)(y,.5);return n[a++]=p,n[a++]=f,n[a++]=x,n[a++]=m,n[a++]=u,n[a++]=h,n[a++]=y.u2-y.u1,n[a++]=y.u1,n[a++]=v,n[a++]=d,a}function w(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,m.io)(t,e);return Y(o,4,...(0,u.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,Y((0,h.pM)(t,e),0,...e.c[1],n,a)}function Y(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:u,thetaEnd:h,radius:l}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),n[i++]=e,n[i++]=l,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=h-u,n[i++]=u,n[i++]=r,n[i++]=s,i}function V(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:u},h,l){return a[h]=2,o[h]=l,u[l++]=r,u[l++]=s,u[l++]=n,u[l++]=i,l}const G=1.61803,k=-1},5095(t,e,r){r.d(e,{fz:()=>u,g7:()=>i,pn:()=>o,zo:()=>a});var s=r(76061);const n=new(r(98783).O);function i(t,e,r){return n.execute(t,e,r,null)}function a(t,e,r){const i=n.executeMany(new s.S(t),e,r,null);return Array.from(i)}function o(t,e,r,s){return n.isSimple(t,e,r,s,null)}function u(){return n.supportsCurves()}},25802(t,e,r){r.r(e),r.d(e,{execute:()=>i,executeMany:()=>a,isSimple:()=>o});var s=r(5095),n=r(83299);function i(t){const e=(0,n.fromGeometry)(t),r=e.getSpatialReference();return(0,n.toGeometry)((0,s.g7)(e.getGeometry(),r,!1),r)}function a(t){const[e,r]=(0,n.fromGeometries)(t);return(0,s.zo)(e,r,!1).map(t=>(0,n.toGeometry)(t,r))}function o(t){const e=(0,n.fromGeometry)(t);return(0,s.pn)(e.getGeometry(),e.getSpatialReference(),!1,null)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7444],{70007(e,t,n){n.d(t,{c:()=>i});var s=n(55537);function i(e,t){const n=e.getGeometryType();return n===s.G.enumPoint?e:(0,s.j)(n)?function(e){if(function(e){for(let t=0,n=e.getPathCount();t<n;t++){const n=e.getPathSize(t);if(0===n)return!1;if(1===n){if(0===e.getSegmentCountPath(t))return!1;if(e.getSegmentType(e.getPathStart(t))===s.G.enumLine)return!1;if(!e.isClosedPath(t))return!1}}return!0}(e))return e;const t=e.createInstance();for(let n=0,i=e.getPathCount();n<i;n++){const i=e.getPathSize(n);if(0!==i){if(1===i){if(0===e.getSegmentCountPath(n))continue;if(e.getSegmentType(e.getPathStart(n))===s.G.enumLine)continue;if(!e.isClosedPath(n))continue}t.addPath(e,n,!0)}}return t}(e):n===s.G.enumMultiPoint||n===s.G.enumEnvelope?e:n===s.G.enumMultipatch?((0,s.t)("not implemented for multipatch"),e):e}},37444(e,t,n){n.r(t),n.d(t,{OperatorGeodesicBuffer:()=>T});var s=n(61691),i=n(55537),r=n(79187),m=n(39117),o=n(5482),a=n(88885),h=n(95213),c=n(11878),u=n(83661),l=n(31139),_=n(70007),f=n(5247),d=n(76061);class g{m_sr=null;m_gcs=null;m_transform=null;m_progressTracker;m_a=0;m_eSquared=0;m_rpu=0;m_radTolerance=0;m_q90=0;m_gcs90=0;m_gcs180=0;m_gcs360=0;m_gcs60=0;m_ellipticToGeodesicMaxRatio=0;m_curveType=0;m_bShapePreserving=!1;m_distance=0;m_absDistance=0;m_convergenceOffset=0;m_cornerStep=0;m_segmentStep=0;constructor(e){this.m_progressTracker=e}bufferPolygon(e){const t=new a.P,n=new G(this,e,t);return this.processGnomonicBufferPiecesCursor(!0,n)}bufferPolyline(e){const t=new G(this,e,null);return this.processGnomonicBufferPiecesCursor(!0,t)}bufferMultiPoint(e){const t=new k(this,e);return this.processGnomonicBufferPiecesCursor(!1,t)}bufferPoint(e){const t=e.getXY();t.scale(this.m_rpu);let n=new a.P;if(this.bufferPoint2D(t,!1,n)){const e=(0,h.e)(null,n,!0);n=(0,m.a6)(n,e,!0,!0,-1,this.m_progressTracker,0,!1)}return n=(new m.O).foldInto360RangeGeodetic(n,this.m_gcs,2),n}processGnomonicBufferPiecesCursor(e,t){const n=t;let s=n.getGnomonic();const i=(0,m.e)((0,m.ad)());let o=new m.ae,a=(new m._).executeMany(o,i,this.m_progressTracker,2);const l=(0,u.d)(6,!1),_=(0,u.m)(r.Envelope2D,6);this.initializeGrid(l,_);const f=[null,null,null,null,null,null],d=[null,null,null,null,null,null],g=[null,null,null,null,null,null];let P,p,x;for(;null!==(P=n.next());){if(p=n.getGnomonic(),p!==s){if(null!==s){let t=a.next();if(o=null,a=null,null!=t){const n=(0,h.e)(i,t,!0),r=(0,h.f)(n);t=s.unproject(t,r,this.m_progressTracker),this.putInGridCursors(e,t,i,!0,l,_,f,d,g)}}null!==p&&(o=new m.ae,a=(new m._).executeMany(o,i,this.m_progressTracker,2)),s=p}if(n.isRunningInGnomonic()){if(p.project(P),n.needsSimplify()){const e=(0,h.e)(null,P,!0);P=(0,m.a6)(P,e,!0,!0,-1,this.m_progressTracker,0,!1)}o.tick(D(P)),a.tock()}else this.putInGridCursors(e,P,i,!0,l,_,f,d,g)}let b=!1;for(let e=0;e<6;e++)if(null!=g[e]){b=!0;break}if(b){let t=!1;const r=[null,null,null,null,null,null];if(e){const s=n.m_densified;if(n.m_densified=null,null!==s){const n=new c.T;n.scale(1/this.m_rpu,1/this.m_rpu),s.applyTransformation(n),this.m_distance>0?this.putInGridCursors(e,s,i,!1,l,_,f,d,g):(this.processInGrid(e,s,!1,l,_,f,r),t=!0)}}const u=new m.ae,P=(new m._).executeMany(u,this.m_gcs,this.m_progressTracker,2);if(null!==a){let t=a.next();o=null,a=null;const n=(0,h.e)(i,t,!0),r=(0,h.f)(n);t=s.unproject(t,r,this.m_progressTracker),this.putInGridCursors(e,t,i,!0,l,_,f,d,g)}for(let e=0;e<6;e++)if(null!=g[e]){let n=g[e].next();g[e]=null,d[e]=null,t&&null!==r[e]&&(n=(new m.Y).execute(r[e],n,i,this.m_progressTracker));const s=(0,h.e)(i,n,!0),o=(0,h.f)(s);n=f[e].unproject(n,o,this.m_progressTracker),n=(new m.H).execute(n,this.m_gcs,!0,this.m_progressTracker),u.tick(D(n)),P.tock()}x=P.next()}else{let t,r=!1;if(e){let e=n.m_densified;if(n.m_densified=null,null!==e){const n=new c.T;n.scale(1/this.m_rpu,1/this.m_rpu),e.applyTransformation(n),p.project(e);const s=(0,h.e)(null,e,!0);e=(0,m.a6)(e,s,!1,!0,-1,this.m_progressTracker,0,!1),this.m_distance>0?(o.tick(D(e)),a.tock()):(t=e,r=!0)}}let u=a.next();o=null,a=null,r&&(u=(new m.Y).execute(t,u,i,this.m_progressTracker));const l=(0,h.e)(i,u,!0),_=(0,h.f)(l);x=s.unproject(u,_,this.m_progressTracker),x=(new m.H).execute(x,this.m_gcs,!0,this.m_progressTracker)}return x=(new m.O).foldInto360RangeGeodetic(x,this.m_gcs,2),x}putInGridCursors(e,t,n,s,i,r,o,a,h){const c=[null,null,null,null,null,null];this.processInGrid(e,t,s,i,r,o,c);for(let e=0;e<6;e++)null!==c[e]&&(null===a[e]&&(a[e]=new m.ae,h[e]=(new m._).executeMany(a[e],n,this.m_progressTracker,2)),a[e].tick(D(c[e])),h[e].tock())}processInGrid(e,t,n,s,i,r,o){const a=.01,c=this.insertGeodeticPointsAlongGrid(t,i,a);for(let e=0;e<6;e++){if(s[e])continue;const _=i[e].clone();_.inflateCoords(a,a);const f=(0,h.h)(t,_),d=(0,h.c)(null,f,!1).total();let g=(0,l.c)(c,_,d,Number.NaN,this.m_progressTracker);if(null!==g&&!g.isEmpty()){if(g===c&&(g=g.clone()),null===r[e]){const t=new u.P;e<3?t.setCoords(0,1):t.setCoords(0,-1);const n=new u.P;n.setAdd(i[e].getCenter(),t),r[e]=v(this.m_gcs,n)}r[e].project(g);const t=(0,h.e)(null,g,!0);g=(0,m.a6)(g,t,n,!0,-1,this.m_progressTracker,0,!1),o[e]=g}}}insertGeodeticPointsAlongGrid(e,t,n){const s=r.Envelope2D.construct(t[3].xmin,t[3].ymin,t[2].xmax,t[2].ymax),i=(0,m.af)(this.m_gcs,s,e,!0,this.m_progressTracker),o=new a.E,h=o.addGeometry(i);return(0,m.ag)(o,h,this.m_gcs,0,2,!0,t[0].xmax+n),(0,m.ag)(o,h,this.m_gcs,0,2,!0,t[1].xmax+n),(0,m.ag)(o,h,this.m_gcs,0,2,!1,t[1].ymin+n),0!==n&&((0,m.ag)(o,h,this.m_gcs,0,2,!0,t[0].xmax-n),(0,m.ag)(o,h,this.m_gcs,0,2,!0,t[1].xmax-n),(0,m.ag)(o,h,this.m_gcs,0,2,!1,t[1].ymin-n)),o.getGeometry(h)}initializeGrid(e,t){for(let t=0;t<6;t++)e[t]=!1;t[0].setCoords({xmin:-this.m_gcs180,ymin:0,xmax:-this.m_gcs60,ymax:this.m_gcs90}),t[1].setCoords({xmin:-this.m_gcs60,ymin:0,xmax:this.m_gcs60,ymax:this.m_gcs90}),t[2].setCoords({xmin:this.m_gcs60,ymin:0,xmax:this.m_gcs180,ymax:this.m_gcs90}),t[3].setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:-this.m_gcs60,ymax:0}),t[4].setCoords({xmin:-this.m_gcs60,ymin:-this.m_gcs90,xmax:this.m_gcs60,ymax:0}),t[5].setCoords({xmin:this.m_gcs60,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:0})}checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(e,t,n,s,i,r){const o=e[0],a=e.at(-1),h=o.y<a.y?o.y:a.y,c=o.y>a.y?o.y:a.y,l=m.a9.q(this.m_a,this.m_eSquared,h),_=m.a9.q(this.m_a,this.m_eSquared,c);if(this.m_q90-(l+t+this.m_absDistance)>.001&&this.m_q90+(_-t-this.m_absDistance)>.001)return!1;const f=n-u.l,d=s+u.l,g=f-Math.PI,P=f+Math.PI,y=d+Math.PI,S=[Number.NaN],C=[Number.NaN],w=[Number.NaN],v=[Number.NaN];let D=!1;if(b(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,o,f,g,a,d,S,C),b(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,a,y,d,o,g,w,v),(d<S[0]&&S[0]<y||d<C[0]&&C[0]<y)&&(D=!0),D||(g<w[0]&&w[0]<f||g<v[0]&&v[0]<f)&&(D=!0),!D&&i)return!1;const I=[];for(let t=e.length-1;t>=0;t--)I.push(e[t]);r.setEmpty(),r.addPathPoint2D(null,0,!0);let G=0;G=p(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,this.m_curveType,e,f,d,i,G,r),G=x(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,a,d,y,this.m_cornerStep,i,G,r,S[0],C[0]),G=p(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,this.m_curveType,I,y,P,i,G,r),G=x(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,o,g,f,this.m_cornerStep,i,G,r,w[0],v[0]);let k=!1;return i||(k=this.checkAndPrepForPole(r)),D||k}bufferPoint2D(e,t,n){n.setEmpty(),n.addPathPoint2D(null,0,!0),x(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,e,-this.m_cornerStep,2*Math.PI,this.m_cornerStep,t,0,n);let s=!1;return t||(s=this.checkAndPrepForPole(n)),s}checkAndPrepForPole(e){const t=this.checkAndPrepForPoleTouch(e),n=this.checkAndPrepForPoleWrap(e);return t||n}checkAndPrepForPoleTouch(e){const t=new r.Envelope2D;return e.queryEnvelope(t),!(!(0,m.ah)(t.ymax,this.m_gcs90)&&!(0,m.ah)(t.ymin,-this.m_gcs90)||(this.prepPoleTouch(e),0))}checkAndPrepForPoleWrap(e){const t=e.getXY(0),n=e.getXY(e.getPointCount()-1);return Math.abs(t.x-n.x)>this.m_gcs180?(this.prepSinglePoleWrap(e),!0):this.checkAndPrepForDoublePoleWrap(e)}checkAndPrepForDoublePoleWrap(e){return e.calculateArea2D()<0&&(this.prepDoublePoleWrap(e),!0)}prepPoleTouch(e){const t=new a.P;t.insertPath2D(-1,null,0,0,!0);const n=e.getPathStart(0),s=e.getPathEnd(0),i=s-n;let r=-1;for(r=n;r<s;r++){const t=e.getXY(r),n=(0,m.ah)(t.y,this.m_gcs90),s=(0,m.ah)(t.y,-this.m_gcs90);if(!n&&!s)break}let o=r,h=!1,c=Number.NaN;do{const s=e.getXY(o),r=(0,m.ah)(s.y,this.m_gcs90),a=(0,m.ah)(s.y,-this.m_gcs90),l=n+(o+1-n)%i;if(r||a){let n=u.P.construct(c,s.y);t.insertPoint2D(0,-1,n);const i=e.getXY(l),r=(0,m.ah)(i.y,this.m_gcs90),o=(0,m.ah)(i.y,-this.m_gcs90);r||o||(n=u.P.construct(i.x,s.y),h?t.setXY(t.getPointCount()-1,n):t.insertPoint2D(0,-1,n)),h=!0}else t.insertPoint2D(0,-1,s),c=s.x,h=!1;o=l}while(o!==r);e.setEmpty(),e.add(t,!1)}prepSinglePoleWrap(e){const t=new a.P,n=new a.P,s=new c.T,i=e.getXY(e.getPathStart(0)),o=e.getXY(e.getPathEnd(0)-1),_=this.m_gcs360,f=this.m_gcs180,d=new r.Envelope2D;d.setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:this.m_gcs90});const g=new r.Envelope2D;e.queryEnvelope(g);const P=Math.ceil(g.width()/_);let p,x;i.x>o.x?(p=-_,x=this.m_gcs90):(p=_,x=-this.m_gcs90),s.setShiftCoords(p,0),t.addPath(e,0,!0),n.add(t,!1);const b=new h.P;for(let e=0;e<P;e++)n.applyTransformation(s),n.getPointByVal(0,b),t.lineToPoint(b),t.addSegmentsFromPath(n,0,0,n.getSegmentCount()-1,!1);const y=t.getXY(0),S=t.getXY(t.getPointCount()-1);y.y=x,S.y=x,t.lineTo(S);const C=new u.P;for(C.setCoordsPoint2D(S),C.x-=.5*p;Math.abs(C.x-y.x)>f;)t.lineTo(C),C.x-=.5*p;t.lineTo(y);const w=d.getCenterX(),v=new r.Envelope2D;t.queryEnvelope(v);let D=0;const I=v.getCenter().x;I-w>f?D=-Math.ceil((I-w-f)/_):w-I>f&&(D=Math.ceil((w-I-f)/_)),0!==D&&(s.setShiftCoords(D*_,0),t.applyTransformation(s));const G=new a.E,k=G.addGeometry(t);(0,m.ag)(G,k,this.m_gcs,0,2,!0,d.xmin),(0,m.ag)(G,k,this.m_gcs,0,2,!0,d.xmax);const T=G.getGeometry(k),M=(0,h.h)(T,d);M.inflateCoords(0,1);const E=(0,h.c)(null,M,!0).total(),N=(0,l.c)(T,d,E,Number.NaN,this.m_progressTracker);e.setEmpty(),e.add(N,!1)}prepDoublePoleWrap(e){const t=this.m_gcs360,n=this.m_gcs180,s=new r.Envelope2D;s.setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:this.m_gcs90});const i=s.getCenter().x,o=new r.Envelope2D;e.queryPathEnvelope(0,o);let _,f=0,d=o.getCenter().x;if(d-i>n?f=-Math.ceil((d-i-n)/t):i-d>n&&(f=Math.ceil((i-d-n)/t)),0!==f){const n=new c.T;n.setShiftCoords(f*t,0),e.getImpl().applyTransformationToPath(n,0),e.queryPathEnvelope(0,o),d=o.getCenter().x}const g=new r.Envelope2D;s.containsExclusiveEnvelope(o)?(_=!1,g.setCoords({env2D:s})):(_=!0,g.setCoords({env2D:s}),g.xmin-=t,g.xmax+=t);let P=e.createInstance();P.addPathPoint2D(null,0,!0);const p=new u.P;if(p.setCoords(g.xmin,g.ymin),P.insertPoint2D(0,-1,p),p.setCoords(g.xmin,g.ymax),P.insertPoint2D(0,-1,p),p.setCoords(.5*(g.xmin+g.xmax),g.ymax),P.insertPoint2D(0,-1,p),p.setCoords(g.xmax,g.ymax),P.insertPoint2D(0,-1,p),p.setCoords(g.xmax,g.ymin),P.insertPoint2D(0,-1,p),p.setCoords(.5*(g.xmin+g.xmax),g.ymin),P.insertPoint2D(0,-1,p),_){P.addPath(e,0,!0);const n=new c.T;d<i?n.setShiftCoords(t,0):n.setShiftCoords(-t,0),e.getImpl().applyTransformationToPath(n,0),P.addPath(e,0,!0);const r=new a.E,o=r.addGeometry(P);(0,m.ag)(r,o,this.m_gcs,0,2,!0,s.xmin),(0,m.ag)(r,o,this.m_gcs,0,2,!0,s.xmax),P=r.getGeometry(o);const u=(0,h.h)(P,s);u.inflateCoords(0,1);const _=(0,h.c)(null,u,!0).total();P=(0,l.c)(P,s,_,Number.NaN,this.m_progressTracker)}else P.addPath(e,0,!0);e.setEmpty(),e.add(P,!1)}setMinCornerStep(){const e={stack:[],error:void 0,hasError:!1};try{let t=Math.min(Math.PI*this.m_a-this.m_absDistance,this.m_absDistance);t=Math.min(t,.125*this.m_a*Math.PI);const n=new u.P;n.setCoords(0,10*this.m_rpu);const s=0;let i=45*this.m_rpu;const r=(0,o.mS)(e,new u.S(new m.ai,new m.ai),!1),a=(0,o.mS)(e,new u.S(new m.ai,new m.ai),!1),h=(0,o.mS)(e,new u.S(new m.ai,new m.ai),!1),c=(0,o.mS)(e,new u.S(new m.ai,new m.ai),!1),l=new u.P,_=new u.P,f=new u.P,d=new u.P;for(m.aj.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,s,r.at(0),r.at(1)),l.setCoords(r.at(0).val,r.at(1).val),m.aj.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,i,a.at(0),a.at(1)),_.setCoords(a.at(0).val,a.at(1).val);;){const e={stack:[],error:void 0,hasError:!1};try{const r=.5*(s+i);m.aj.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,r,h.at(0),h.at(1)),f.setCoords(h.at(0).val,h.at(1).val);const u=(0,o.mS)(e,new m.ai,!1),g=(0,o.mS)(e,new m.ai,!1);m.aj.geodeticDistance(this.m_a,this.m_eSquared,l.x,l.y,_.x,_.y,u,g,null,2),m.aj.geodeticCoordinate(this.m_a,this.m_eSquared,l.x,l.y,.5*u.val,g.val,c.at(0),c.at(1),2),d.setCoords(c.at(0).val,c.at(1).val);const P=(0,o.mS)(e,new m.ai,!1);if(m.aj.geodeticDistance(this.m_a,this.m_eSquared,f.x,f.y,d.x,d.y,P,null,null,2),P.val<=this.m_convergenceOffset)break;i*=.9,m.aj.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,i,a.at(0),a.at(1)),_.setCoords(a.at(0).val,a.at(1).val)}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}const g=i-s,P=2*Math.PI/Math.ceil(2*Math.PI/g);this.m_cornerStep=P}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}setMinSegmentStep(){const e={stack:[],error:void 0,hasError:!1};try{let t=Math.min(Math.PI*this.m_a-this.m_absDistance,this.m_absDistance);t=Math.min(t,.125*this.m_a*Math.PI);const n=new u.P,s=new u.P;n.setCoords(0,10*this.m_rpu),s.setCoords(10*this.m_rpu,10*this.m_rpu);const i=(0,o.mS)(e,new m.ai,!1),r=(0,o.mS)(e,new m.ai,!1),a=(0,o.mS)(e,new m.ai,!1);m.aj.geodeticDistance(this.m_a,this.m_eSquared,n.x,n.y,s.x,s.y,a,i,r,this.m_curveType);const h=(0,o.mS)(e,new u.S(new m.ai,new m.ai),!1),c=(0,o.mS)(e,new u.S(new m.ai,new m.ai),!1),l=new u.P,_=(0,o.mS)(e,new m.ai,!1),f=(0,o.mS)(e,new u.S(new m.ai,new m.ai),!1),d=(0,o.mS)(e,new u.S(new m.ai,new m.ai),!1),g=(0,o.mS)(e,new u.S(new m.ai,new m.ai),!1),P=(0,o.mS)(e,new u.S(new m.ai,new m.ai),!1),p=new u.P,x=new u.P,b=new u.P,y=new u.P,S=0;let C=1;const w=i.val,v=r.val,D=w-.5*Math.PI,I=v+.5*Math.PI,G=a.val;for(m.aj.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,D,f.at(0),f.at(1)),p.setCoords(f.at(0).val,f.at(1).val),m.aj.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,I,d.at(0),d.at(1)),x.setCoords(d.at(0).val,d.at(1).val);;){const e={stack:[],error:void 0,hasError:!1};try{const i=.5*(S+C);m.aj.geodeticCoordinate(this.m_a,this.m_eSquared,n.x,n.y,i*G,w,h.at(0),h.at(1),this.m_curveType),l.setCoords(h.at(0).val,h.at(1).val),m.aj.geodeticDistance(this.m_a,this.m_eSquared,n.x,n.y,l.x,l.y,null,null,_,this.m_curveType);const r=_.val+.5*Math.PI;m.aj.geodesicCoordinate(this.m_a,this.m_eSquared,l.x,l.y,t,r,g.at(0),g.at(1)),b.setCoords(g.at(0).val,g.at(1).val);const a=(0,o.mS)(e,new m.ai,!1),u=(0,o.mS)(e,new m.ai,!1);m.aj.geodeticDistance(this.m_a,this.m_eSquared,p.x,p.y,x.x,x.y,a,u,null,2),m.aj.geodeticCoordinate(this.m_a,this.m_eSquared,p.x,p.y,.5*a.val,u.val,P.at(0),P.at(1),2),y.setCoords(P.at(0).val,P.at(1).val);const f=(0,o.mS)(e,new m.ai,!1);if(m.aj.geodeticDistance(this.m_a,this.m_eSquared,b.x,b.y,y.x,y.y,f,null,null,2),f.val<=this.m_convergenceOffset)break;{const e={stack:[],error:void 0,hasError:!1};try{C*=.9,m.aj.geodeticCoordinate(this.m_a,this.m_eSquared,n.x,n.y,C*G,w,c.at(0),c.at(1),this.m_curveType),s.setCoords(c.at(0).val,c.at(1).val);const i=(0,o.mS)(e,new m.ai,!1);m.aj.geodeticDistance(this.m_a,this.m_eSquared,n.x,n.y,s.x,s.y,null,null,i,this.m_curveType);const r=i.val+.5*Math.PI;m.aj.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,r,d.at(0),d.at(1)),x.setCoords(d.at(0).val,d.at(1).val)}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}let k=C*G;k>1e5&&(k=1e5),this.m_segmentStep=k}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}setConvergenceOffset(){let e;e=this.m_absDistance>5e4?100:this.m_absDistance>1e4?10:1,this.m_absDistance/e<500&&(e=this.m_absDistance/500),e<.01&&(e=.01),this.m_convergenceOffset=e}}function P(e,t,n,s,o,c,l){if(e.isEmpty())return new a.P({vd:e.getDescription()});let _=e;if((0,i.n)(_)){const e=10*t.getTolerance(0);_=(new f.O).execute(_,0,e,0,l,12e3)}const d=new g(l);d.m_sr=t,d.m_gcs=t.getGCS(),d.m_transform=(0,m.B)(t,d.m_gcs,null);const P=(0,m.r)();d.m_gcs.querySpheroidData(P);const p=new r.Envelope2D;_.queryEnvelope(p),d.m_a=P.majorSemiAxis,d.m_eSquared=P.e2,d.m_rpu=d.m_gcs.getUnit().getUnitToBaseFactor(),d.m_gcs90=.5*Math.PI/d.m_rpu,d.m_gcs180=Math.PI/d.m_rpu,d.m_gcs360=2*Math.PI/d.m_rpu,d.m_gcs60=d.m_gcs360/6,d.m_q90=m.a9.q90(d.m_a,d.m_eSquared),d.m_ellipticToGeodesicMaxRatio=.5*d.m_a*Math.PI/d.m_q90;const x=d.m_gcs.getTolerance(0);d.m_radTolerance=x*d.m_rpu,4===n?(d.m_curveType=2,d.m_bShapePreserving=!0):(d.m_curveType=n,d.m_bShapePreserving=!1),d.m_distance=s,d.m_absDistance=Math.abs(s),Number.isNaN(o)||o<=0?d.setConvergenceOffset():d.m_convergenceOffset=Math.max(o,.001),d.m_convergenceOffset/=c;let b,y=_.getGeometryType();if((0,i.h)(y)){const e=new a.a({vd:_.getDescription()});e.addSegment(_,!0),b=e,y=i.G.enumPolyline}else if(y===i.G.enumEnvelope){const e=_,t=new r.Envelope2D;e.queryEnvelope(t);const n=(0,h.f)((0,h.c)(d.m_sr,p,!0));if(t.minDimension()<=n)if(0===t.maxDimension()){const t=new h.P({vd:_.getDescription()});e.getCenter(t),b=t,y=i.G.enumPoint}else{const t=new a.a({vd:_.getDescription()});t.addEnvelope(e,!1),b=t,y=i.G.enumPolyline}else{const t=new a.P({vd:_.getDescription()});t.addEnvelope(e,!1),b=t,y=i.G.enumPolygon}}else b=_;if(d.setMinCornerStep(),(0,i.f)(y)||d.setMinSegmentStep(),d.m_absDistance<=.5*d.m_convergenceOffset)return y!==i.G.enumPolygon?new a.P({vd:b.getDescription()}):d.m_bShapePreserving?b:(0,m.aa)(b,d.m_sr,d.m_curveType,d.m_segmentStep,-1,l);if(d.m_distance<0&&y!==i.G.enumPolygon)return new a.P({vd:b.getDescription()});if(d.m_bShapePreserving&&(0,i.j)(y)){const e=(0,m.aa)(b,t,4,Number.NaN,d.m_convergenceOffset,l);b=(new m.O).execute(e,d.m_transform,l)}else b=(new m.O).execute(b,d.m_transform,l);if(b=(0,m.ab)(b,d.m_gcs),b.isEmpty())return new a.P({vd:b.getDescription()});!d.m_bShapePreserving&&(0,i.j)(y)&&(b=(0,m.ac)(d.m_rpu,b)),b=function(e,t){const n=e.getGeometryType();let s;if(s=(0,i.j)(n)?e.getPathCount():n===i.G.enumMultiPoint?e.getPointCount():1,1===s)return e;const m=[],o=[];for(let a=0;a<s;a++){m.push(a);const s=new u.P;if((0,i.j)(n)){const t=new r.Envelope2D;e.queryPathEnvelope(a,t),s.assign(t.getCenter())}else s.assign(e.getXY(a));const h=t.toGeohash(s);o.push(h)}m.sort((e,t)=>o[e]<o[t]?-1:o[e]>o[t]?1:0);const a=e.createInstance();for(let t=0;t<s;t++){const s=m[t];(0,i.j)(n)?a.addPath(e,s,!0):a.addPoints(e,s,s+1)}return a}(b,d.m_gcs);let S=new a.P;switch(y){case i.G.enumPolygon:S=d.bufferPolygon(b);break;case i.G.enumPolyline:S=d.bufferPolyline(b);break;case i.G.enumMultiPoint:S=d.bufferMultiPoint(b);break;case i.G.enumPoint:S=d.bufferPoint(b);break;default:(0,i.o)("")}const C=(new m.O).execute(S,d.m_transform.getInverse(),l);return C.mergeVertexDescription(b.getDescription()),C}function p(e,t,n,s,i,r,a,h,c,l,_){const f={stack:[],error:void 0,hasError:!1};try{const d=new u.P;d.setNAN(),c||_.getPointCount()>0&&(d.setCoordsPoint2D(_.getXY(_.getPointCount()-1)),d.scale(n));const g=(0,o.mS)(f,new m.ai,!1),P=(0,o.mS)(f,new u.S(new m.ai,new m.ai),!1),p=new u.P,x=new u.P,b=r.at(-1),S=1/n;for(let n=0;n<r.length;n++){const o=r[n];let u;0===n?u=a:n===r.length-1?u=h:(m.aj.geodeticDistance(e,t,b.x,b.y,o.x,o.y,null,null,g,i),u=g.val-.5*Math.PI),m.aj.geodesicCoordinate(e,t,o.x,o.y,s,u,P.at(0),P.at(1)),c?x.setCoords(P.at(0).val,P.at(1).val):(p.setCoords(P.at(0).val,P.at(1).val),l=y(o.x,p.x,d.x,l),x.setCoords(l+p.x,p.y),d.setCoordsPoint2D(x)),x.scale(S),_.insertPoint2D(0,-1,x)}return l}catch(e){f.error=e,f.hasError=!0}finally{(0,o.hk)(f)}}function x(e,t,n,s,i,r,a,h,c,l,_,f=Number.NaN,d=Number.NaN){const g={stack:[],error:void 0,hasError:!1};try{if(a-r<h)return l;const P=(0,o.mS)(g,new u.S(new m.ai,new m.ai),!1),p=new u.P,x=new u.P,b=new u.P;x.setNAN(),c||_.getPointCount()>0&&(x.setCoordsPoint2D(_.getXY(_.getPointCount()-1)),x.scale(n));let S=Math.ceil(r/h),C=S++*h;C===r&&(C=S++*h);let w=r;const v=1/n;for(;C<a+h&&(w<f&&f<C?(C=f,S--):w<d&&d<C&&(C=d,S--),!(C>=a));)m.aj.geodesicCoordinate(e,t,i.x,i.y,s,C,P.at(0),P.at(1)),c?b.setCoords(P.at(0).val,P.at(1).val):(p.setCoords(P.at(0).val,P.at(1).val),l=y(i.x,p.x,x.x,l),b.setCoords(l+p.x,p.y),x.setCoordsPoint2D(b)),b.scale(v),_.insertPoint2D(0,-1,b),w=C,C=S++*h;return l}catch(e){g.error=e,g.hasError=!0}finally{(0,o.hk)(g)}}function b(e,t,n,s,i,r,a,h,c,l,_){const f={stack:[],error:void 0,hasError:!1};try{const n=new u.P,d=new u.P,g=(0,o.mS)(f,new u.S(new m.ai,new m.ai),!1);m.aj.geodesicCoordinate(e,t,i.x,i.y,s,r,g.at(0),g.at(1)),n.setCoords(g.at(0).val,g.at(1).val),m.aj.geodesicCoordinate(e,t,i.x,i.y,s,a,g.at(0),g.at(1)),d.setCoords(g.at(0).val,g.at(1).val);const P=(0,o.mS)(f,new m.ai,!1);for(m.aj.geodeticDistance(e,t,h.x,h.y,n.x,n.y,null,P,null,0),l[0]=P.val,m.aj.geodeticDistance(e,t,h.x,h.y,d.x,d.y,null,P,null,0),_[0]=P.val;l[0]<=_[0];)l[0]+=u.n;for(;l[0]>_[0];)l[0]-=u.n;for(;l[0]>=c;)l[0]-=u.n,_[0]-=u.n;for(;l[0]<c;)l[0]+=u.n,_[0]+=u.n}catch(e){f.error=e,f.hasError=!0}finally{(0,o.hk)(f)}}function y(e,t,n,s){if(Number.isNaN(n)){for(;s+t-e>Math.PI;)s-=u.n;for(;e-(s+t)>Math.PI;)s+=u.n;return s}return s+t-n>Math.PI?s-=u.n:n-(s+t)>Math.PI&&(s+=u.n),s}function S(e,t,n,s,i,r){const a={stack:[],error:void 0,hasError:!1};try{if(s>=r)return!1;const h=n[0],c=n.at(-1),u=(0,o.mS)(a,new m.ai,!1),l=(0,o.mS)(a,new m.ai,!1),_=(0,o.mS)(a,new m.ai,!1);m.aj.greatEllipticDistance(e,t,i.x,i.y,h.x,h.y,u,null,null),m.aj.greatEllipticDistance(e,t,i.x,i.y,c.x,c.y,l,null,null),m.aj.greatEllipticDistance(e,t,h.x,h.y,c.x,c.y,_,null,null);let f=Math.min(u.val,l.val)+_.val,d=f+s;if(d<r)return!0;const g=(0,o.mS)(a,new m.ai,!1);f=Math.max(u.val,l.val);for(let s=1;s<n.length-1;s++){const r=n[s];m.aj.greatEllipticDistance(e,t,i.x,i.y,r.x,r.y,g,null,null),g.val>f&&(f=g.val)}return d=f+s,d<r}catch(e){a.error=e,a.hasError=!0}finally{(0,o.hk)(a)}}function C(e,t,n,s,i,r,o,a){let h;if(s.length%2==0){const e=s.length>>1,t=s[e],n=s[e-1];h=u.P.lerp(t,n,.5)}else h=s[s.length-1>>1].clone();const c=h.clone(),l=(0,m.ak)(e,t,c,75/180*Math.PI);return!!S(e,t,s,i,c,l)&&(null!==r&&(r.setCoordsPoint2D(h),r.scale(1/n)),null!==o&&o.setCoordsPoint2D(c),null!==a&&(a[0]=l),!0)}function w(e,t,n,s,i,r){const a={stack:[],error:void 0,hasError:!1};try{if(s>=r)return!1;const h=(0,o.mS)(a,new m.ai,!1);return m.aj.greatEllipticDistance(e,t,i.x,i.y,n.x,n.y,h,null,null),h.val+s<r}catch(e){a.error=e,a.hasError=!0}finally{(0,o.hk)(a)}}function v(e,t){return new m.ap(e,t)}function D(e){return(0,h.j)(e,0)||(0,h.s)(e,0),e}class I{m_bRunningInGnomonic=!1;m_bNeedsSimplify=!1;m_gnomonic=null;m_gnomonicCenterRad=new u.P;m_minGnomonicRadius=Number.NaN;m_progressTracker;constructor(e){this.m_progressTracker=e}isRunningInGnomonic(){return this.m_bRunningInGnomonic}needsSimplify(){return this.m_bNeedsSimplify}getGnomonic(){return this.m_gnomonic}}class G extends I{m_bufferer;m_multiPath;m_segIter=null;m_bNextSegmentCannotJoin=!1;m_currentDensifiedDelta=[0];m_currentBufferedDelta=0;m_lastAzimuth=0;m_startAzimuth=[0];m_endAzimuth=[0];m_numWinds=0;m_debugCounter=0;m_bufferHelper=new a.P;m_densifiedPoints=[];m_densified;constructor(e,t,n){super(e.m_progressTracker),this.m_bufferer=e,this.m_multiPath=t,this.m_densified=n,this.m_bNeedsSimplify=!0;const s=new r.Envelope2D;this.m_multiPath.queryEnvelope(s);const i=s.getCenter(),o=i.clone();o.scale(this.m_bufferer.m_rpu),this.m_gnomonic=v(this.m_bufferer.m_gcs,i),this.m_gnomonicCenterRad=o.clone(),this.m_minGnomonicRadius=(0,m.ak)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,o,75/180*Math.PI)}next(){let e;if(this.m_bNextSegmentCannotJoin)return this.m_bNextSegmentCannotJoin=!1,this.m_segIter.nextSegment(),e=this.m_bufferHelper.clone(),e;if(null===this.m_segIter){if(this.m_segIter=this.m_multiPath.getImpl().querySegmentIterator(),!this.m_segIter.nextPath())return null;null!==this.m_densified&&this.m_densified.addPathPoint2D(null,0,!0)}if(!this.m_segIter.hasNextSegment()){if(!this.m_segIter.nextPath())return null;null!=this.m_densified&&this.m_densified.addPathPoint2D(null,0,!0)}let t=null;this.m_currentBufferedDelta=0,this.m_currentDensifiedDelta=[0],this.m_numWinds=0,this.m_lastAzimuth=Number.NaN,this.m_bNextSegmentCannotJoin=!1,this.m_densifiedPoints.length=0;let n=0;const s=new u.P,i=new u.P;for(;this.m_segIter.hasNextSegment()&&this.m_numWinds<16;){const e=this.m_segIter.nextSegment();if(s.setCoordsPoint2D(e.getStartXY()),i.setCoordsPoint2D(e.getEndXY()),s.scale(this.m_bufferer.m_rpu),i.scale(this.m_bufferer.m_rpu),(0,m.al)(s,i))s.x=i.x;else if((0,m.am)(s,i))i.x=s.x;else{let e=-1,t=-1;const n=this.m_segIter.getPathIndex(),r=this.m_multiPath.getPathStart(n),o=this.m_multiPath.getPathEnd(n);if(e=this.m_segIter.getStartPointIndex()-1,t=this.m_segIter.getEndPointIndex()+1,e<r&&(e=this.m_multiPath.isClosedPath(n)?o-1:-1),t>o-1&&(t=this.m_multiPath.isClosedPath(n)?r:-1),-1!==e){const t=this.m_multiPath.getXY(e);t.scale(this.m_bufferer.m_rpu),(0,m.am)(t,s)&&(s.x=t.x)}if(-1!==t){const e=this.m_multiPath.getXY(t);e.scale(this.m_bufferer.m_rpu),(0,m.al)(i,e)&&(i.x=e.x)}}this.m_densifiedPoints.length=0;const r=(0,m.an)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_curveType,s,i,this.m_bufferer.m_segmentStep,Number.NaN,this.m_bufferer.m_radTolerance,this.m_startAzimuth,this.m_endAzimuth,this.m_densifiedPoints,this.m_currentDensifiedDelta);if(0===n)this.m_bRunningInGnomonic=this.isSegmentBufferInCurrentGnomonic(this.m_densifiedPoints),this.m_bRunningInGnomonic||(this.m_bRunningInGnomonic=this.tryUpdateGnomonic(this.m_densifiedPoints));else if(this.m_bRunningInGnomonic){if(!this.isSegmentBufferInCurrentGnomonic(this.m_densifiedPoints)){this.m_segIter.previousSegment(),this.m_segIter.previousSegment(),this.m_segIter.nextSegment();break}}else if(C(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_densifiedPoints,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,null,null,null)){this.m_segIter.previousSegment(),this.m_segIter.previousSegment(),this.m_segIter.nextSegment();break}if(0===r||(0,m.ao)(s,i)?(this.m_bufferHelper.setEmpty(),this.m_bufferer.bufferPoint2D(s,this.m_bRunningInGnomonic,this.m_bufferHelper),this.m_bNextSegmentCannotJoin=!0):(this.m_bufferHelper.setEmpty(),this.m_bNextSegmentCannotJoin=this.checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(r,this.m_bufferHelper)),this.m_bNextSegmentCannotJoin){this.m_segIter.previousSegment(),this.m_segIter.hasPreviousSegment()?(this.m_segIter.previousSegment(),this.m_segIter.nextSegment()):this.m_segIter.resetToFirstSegment(),null!=this.m_densified&&this.m_densified.insertPointsFromPoints(this.m_densified.getPathCount()-1,-1,this.m_densifiedPoints,0,this.m_densifiedPoints.length-1,!0);break}null!=this.m_densified&&this.m_densified.insertPointsFromPoints(this.m_densified.getPathCount()-1,-1,this.m_densifiedPoints,0,this.m_densifiedPoints.length-1,!0),null===t&&(t=new a.P,t.addPathPoint2D(null,0,!0)),this.addJoinAndBufferLeftSide(t),n++}if(this.m_currentDensifiedDelta=[0],n>0){const e=this.m_segIter.getStartPointIndex(),r=this.m_segIter.getPathIndex();for(;n>0;){if(this.m_segIter.previousSegment(),s.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getStartPointIndex())),i.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getEndPointIndex())),s.scale(this.m_bufferer.m_rpu),i.scale(this.m_bufferer.m_rpu),this.m_bRunningInGnomonic)if((0,m.al)(s,i))s.x=i.x;else if((0,m.am)(s,i))i.x=s.x;else{let e=-1,t=-1;const n=this.m_segIter.getPathIndex(),r=this.m_multiPath.getPathStart(n),o=this.m_multiPath.getPathEnd(n);if(e=this.m_segIter.getStartPointIndex()-1,t=this.m_segIter.getEndPointIndex()+1,e<r&&(e=this.m_multiPath.isClosedPath(n)?o-1:-1),t>o-1&&(t=this.m_multiPath.isClosedPath(n)?r:-1),-1!==e){const t=this.m_multiPath.getXY(e);t.scale(this.m_bufferer.m_rpu),(0,m.am)(t,s)&&(s.x=t.x)}if(-1!==t){const e=this.m_multiPath.getXY(t);e.scale(this.m_bufferer.m_rpu),(0,m.al)(i,e)&&(i.x=e.x)}}this.m_densifiedPoints.length=0,(0,m.an)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_curveType,i,s,this.m_bufferer.m_segmentStep,Number.NaN,this.m_bufferer.m_radTolerance,this.m_startAzimuth,this.m_endAzimuth,this.m_densifiedPoints,this.m_currentDensifiedDelta),this.addJoinAndBufferLeftSide(t),n--}return s.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getStartPointIndex())),s.scale(this.m_bufferer.m_rpu),this.m_currentBufferedDelta=x(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,s,this.m_lastAzimuth+.5*Math.PI,this.m_lastAzimuth+1.5*Math.PI,this.m_bufferer.m_cornerStep,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,t),this.m_segIter.resetToVertex(e,r),this.m_segIter.nextSegment(),t}return this.m_bNextSegmentCannotJoin=!1,this.m_segIter.nextSegment(),e=this.m_bufferHelper.clone(),e}isSegmentBufferInCurrentGnomonic(e){return null!==this.m_gnomonic&&S(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,this.m_gnomonicCenterRad,this.m_minGnomonicRadius)}tryUpdateGnomonic(e){const t=new u.P,n=new u.P,s=[0];return C(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,t,n,s)?(this.m_gnomonicCenterRad.setCoordsPoint2D(n),this.m_minGnomonicRadius=s[0],this.m_gnomonic=v(this.m_bufferer.m_gcs,t),!0):(this.m_gnomonic=null,!1)}checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(e,t){return this.m_bufferer.checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(this.m_densifiedPoints,e,this.m_startAzimuth[0],this.m_endAzimuth[0],this.m_bRunningInGnomonic,t)}addJoinAndBufferLeftSide(e){const t=this.m_densifiedPoints[0];let n=Number.NaN,s=this.m_startAzimuth[0]-u.l;const i=this.m_endAzimuth[0]+u.l;let r=!1;if(!Number.isNaN(this.m_lastAzimuth)){this.m_lastAzimuth>=this.m_startAzimuth[0]?(n=this.m_lastAzimuth+u.l,s=n+Math.PI-(this.m_lastAzimuth-this.m_startAzimuth[0])):(n=this.m_lastAzimuth+u.l,s=n+Math.PI-(u.n-(this.m_startAzimuth[0]-this.m_lastAzimuth))),r=!(this.m_lastAzimuth>=this.m_startAzimuth[0]&&this.m_lastAzimuth-this.m_startAzimuth[0]<=Math.PI||this.m_lastAzimuth<this.m_startAzimuth[0]&&this.m_startAzimuth[0]-this.m_lastAzimuth>=Math.PI);let i=!1;if(Math.abs(s-n)<=.5*this.m_bufferer.m_cornerStep&&(r||(i=!0)),i){if(e.removePointFromPath(0,e.getPointCount()-1),!this.m_bRunningInGnomonic){const t=new u.P;t.setCoordsPoint2D(e.getXY(e.getPointCount()-1)),t.scale(this.m_bufferer.m_rpu),t.x-this.m_currentBufferedDelta<-Math.PI?this.m_currentBufferedDelta-=u.n:t.x-this.m_currentBufferedDelta>Math.PI&&(this.m_currentBufferedDelta+=u.n)}s=.5*(s+n)}else if(r){const n=new u.P;n.setCoordsPoint2D(t),n.scale(1/this.m_bufferer.m_rpu),e.insertPoint2D(0,-1,n)}else x(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,this.m_densifiedPoints[0],n,s,this.m_bufferer.m_cornerStep,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,e)}this.m_startAzimuth[0]!==this.m_lastAzimuth&&this.m_numWinds++,p(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,this.m_bufferer.m_curveType,this.m_densifiedPoints,s,i,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,e),this.m_lastAzimuth=this.m_endAzimuth[0]}}class k extends I{m_bufferer;m_multiPoint;m_pointIndex=-1;constructor(e,t){super(e.m_progressTracker),this.m_bufferer=e,this.m_multiPoint=t,this.m_bNeedsSimplify=!1;const n=new r.Envelope2D;this.m_multiPoint.queryEnvelope(n);const s=n.getCenter(),i=s.clone();i.scale(this.m_bufferer.m_rpu),this.m_gnomonic=v(this.m_bufferer.m_gcs,s),this.m_gnomonicCenterRad=i.clone(),this.m_minGnomonicRadius=(0,m.ak)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,i,75/180*Math.PI)}next(){if(this.m_bNeedsSimplify=!1,++this.m_pointIndex===this.m_multiPoint.getPointCount())return null;const e=this.m_multiPoint.getXY(this.m_pointIndex);e.scale(this.m_bufferer.m_rpu),this.m_bRunningInGnomonic=this.isPointBufferInCurrentGnomonic(e),this.m_bRunningInGnomonic||(this.m_bRunningInGnomonic=this.tryUpdateGnomonic(e));const t=new a.P,n=this.m_bufferer.bufferPoint2D(e,this.m_bRunningInGnomonic,t);return this.m_bNeedsSimplify=n,t}isPointBufferInCurrentGnomonic(e){return null!==this.m_gnomonic&&w(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,this.m_gnomonicCenterRad,this.m_minGnomonicRadius)}tryUpdateGnomonic(e){const t=new u.P,n=new u.P,s=[0];return function(e,t,n,s,i,r,o,a){const h=(0,m.ak)(e,t,s,75/180*Math.PI);return!!w(e,t,s,i,s,h)&&(null!==r&&(r.setCoordsPoint2D(s),r.scale(1/n)),null!==o&&o.setCoordsPoint2D(s),null!==a&&(a[0]=h),!0)}(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,t,n,s)?(this.m_gnomonicCenterRad.setCoordsPoint2D(n),this.m_minGnomonicRadius=s[0],this.m_gnomonic=v(this.m_bufferer.m_gcs,t),!0):(this.m_gnomonic=null,!1)}}class T{getOperatorType(){return 10110}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,s,i,r,o,a){if(o){const o=new M(e,t,n,s,i,!1,r,a);return(new m._).executeMany(o,t,a)}return new M(e,t,n,s,i,!1,r,a)}execute(e,t,n,s,r,m,o){const a=new d.S([e]),h=[s],c=this.executeMany(a,t,n,h,r,!1,m,o).next();return c||(0,i.d)("geodesic buffer null output"),c}}class M extends s.G{m_inputGeoms;m_spatialReference;m_curveType;m_progressTracker;m_distances;m_convergenceOffset;m_currentUnionEnvelope2D=new r.Envelope2D;m_bOutlineOnly;m_bUnion;m_index=-1;m_dindex=-1;constructor(e,t,n,s,r,m,o,a){super(),this.m_progressTracker=a,m&&(0,i.t)(""),t||(0,i.a)(""),0===t.getCoordinateSystemType()&&(0,i.a)(""),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_curveType=n,this.m_distances=s,this.m_convergenceOffset=r,this.m_bOutlineOnly=m,this.m_bUnion=o}next(){let e;for(;e=this.m_inputGeoms.next();)return(0,i.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.geodesicBuffer(e,this.m_distances[this.m_dindex]);return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}geodesicBuffer(e,t){return function(e,t,n,s,r,m){s<Number.MAX_VALUE&&s>-Number.MAX_VALUE||(0,i.a)("Geodesic_bufferer.buffer - bad distance"),(0,i.c)(e);const o=(0,_.c)(e),a=o.getGeometryType();if((0,i.i)(a)){const e=o.getPointCount(),h=8e6;if(Math.abs(s)>h&&(e>50||a!==i.G.enumMultiPoint&&4===n&&e>2)){let e=o;const i=s>0?1:-1,a=7e6;let c=s,u=1;do{u++,c=(Math.abs(c)-a)*i}while(Math.abs(c)>h);c=s;for(let s=0;s<u-1;s++)e=P(e,t,n,a*i,r,u,m),c=(Math.abs(c)-a)*i;return e=P(e,t,n,c,r,u,m),e}}return P(o,t,n,s,r,1,m)}(e,this.m_spatialReference,this.m_curveType,t,this.m_convergenceOffset,this.m_progressTracker)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4123],{66344(t,e,i){i.d(e,{q:()=>o});const s=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class h{get size(){return this._size}constructor(t=10485760,e=.3){this._maxSize=t,this._maxClientSizeRatio=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(t){this._clients.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._clients.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(t,e){const i=this._db.get(t.id+e);return i?.size??0}put(t,e,i,h,n){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==i&&this._notifyRemove(e,o.entry,o.size,0)),h>this._maxSize)return void this._notifyRemove(e,i,h,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!h||h<0)return s||console.warn(`Refusing to cache entry with size ${h} for key ${e}`),void this._notifyRemove(e,i,0,0);const c=1+Math.max(n,-4)- -3;this._db.set(e,new r(i,h,c)),this._size+=h,t.size+=h,this._checkSize()}updateSize(t,e){e=t.id+e;const i=this._db.get(e);if(!i)return;this._size-=i.size,t.size-=i.size;let s=i.entry.usedMemory;for(;s>this._maxSize;){const t=this._notifyRemove(e,i.entry,s,1);if(!(null!=t&&t>0))return void this._db.delete(e);s=t}i.size=s,this._size+=s,t.size+=s,this._checkSize()}pop(t,e){e=t.id+e;const i=this._db.get(e);if(i)return this._size-=i.size,t.size-=i.size,this._db.delete(e),++this._hit,i.entry;++this._miss}get(t,e){e=t.id+e;const i=this._db.get(e);if(void 0!==i)return this._db.delete(e),i.lives=i.lifetime,this._db.set(e,i),++this._hit,i.entry;++this._miss}peek(t,e){const i=this._db.get(t.id+e);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},i=new Array;this._db.forEach((t,s)=>{const h=t.lifetime;i[h]=(i[h]||0)+t.size,this._clients.forEach(i=>{const{id:h,name:r}=i;if(s.startsWith(h)){const i=e[r]||0;e[r]=i+t.size}})});const s={};this._clients.forEach(t=>{const i=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const h=e[i]||0;e[i]=h,s[i]=Math.round(100*t.hitRate)+"%"}else s[i]="0%"});const h=Object.keys(e);h.sort((t,i)=>e[i]-e[t]),h.forEach(i=>t[i]=Math.round(e[i]/2**20)+"MB / "+s[i]);for(let e=i.length-1;e>=0;--e){const s=i[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._clients.forEach(t=>t.resetHitRate())}clear(t){const e=t.id;this._db.forEach((t,i)=>{i.startsWith(e)&&(this._size-=t.size,this._db.delete(i),this._notifyRemove(i,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._clients.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(const[e,i]of this._db)e.startsWith(t.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,i,s){const h=this._clients.get(t.split(n)[0])?.removeFunc,r=h?.(e,s,i);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._clients.forEach(t=>this._checkSizeLimits(this._maxClientSize,t)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){const i=e??this;if(i.size<=t)return;const s=e?.id;let h=!0;for(;h;){h=!1;for(const[r,o]of this._db)if(0===o.lifetime&&(!s||r.startsWith(s))){const s=e??this._clients.get(r.split(n)[0]);if(this._purgeItem(r,o,s),i.size<=.9*t)return;h||=this._db.has(r)}}for(const[h,r]of this._db)if(!s||h.startsWith(s)){const s=e??this._clients.get(h.split(n)[0]);if(this._purgeItem(h,r,s),i.size<=.9*t)return}}_purgeItem(t,e,i){if(this._db.delete(t),e.lives<=1){this._size-=e.size,i&&(i.size-=e.size);const s=this._notifyRemove(t,e.entry,e.size,1);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),e.lives=e.lifetime,e.size=s,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}new h(0);class r{constructor(t,e,i){this.entry=t,this.size=e,this.lifetime=i,this.lives=i}}const n=":";class o{constructor(t,e){this.removeFunc=e,this.id="",this.name="",this.size=0,this._storage=new h(t,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,i=1){this._storage.put(this,t,e,i,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},44123(t,e,i){i.d(e,{WhereClauseCache:()=>r});var s=i(66344),h=i(89696);class r{constructor(t,e){this._cache=new s.q(t),this._invalidCache=new s.q(e)}get(t,e){const i=`${e?.uid}:${t}`,s=this._cache.get(i);if(s)return s;if(null!=this._invalidCache.get(i))return null;try{const s=h.A.create(t,{fieldsIndex:e});return this._cache.put(i,s),s}catch(t){return this._invalidCache.put(i,t),null}}getError(t,e){const i=`${e?.uid}:${t}`;return this._invalidCache.get(i)??null}}}}]);
|