@arcgis/core 5.2.0-next.136 → 5.2.0-next.138
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/analysis/LineOfSightAnalysisObserver.d.ts +12 -0
- package/analysis/LineOfSightAnalysisObserver.js +1 -1
- package/analysis/LineOfSightAnalysisTarget.d.ts +12 -0
- package/analysis/LineOfSightAnalysisTarget.js +1 -1
- package/arcade/featureset/sources/FeatureLayerParquet.js +1 -1
- package/arcgisGlobal.d.ts +4 -0
- package/assets/components/assets/icon/blockHeightMedium16.json +1 -0
- package/assets/components/assets/icon/blockHeightMedium24.json +1 -0
- package/assets/components/assets/icon/blockHeightMedium32.json +1 -0
- package/assets/components/assets/icon/blockHeightShort16.json +1 -0
- package/assets/components/assets/icon/blockHeightShort24.json +1 -0
- package/assets/components/assets/icon/blockHeightShort32.json +1 -0
- package/assets/components/assets/icon/blockHeightTall16.json +1 -0
- package/assets/components/assets/icon/blockHeightTall24.json +1 -0
- package/assets/components/assets/icon/blockHeightTall32.json +1 -0
- package/assets/components/assets/icon/cursorCircle16.json +1 -0
- package/assets/components/assets/icon/cursorCircle24.json +1 -0
- package/assets/components/assets/icon/cursorCircle32.json +1 -0
- package/assets/components/assets/icon/dictionary16.json +1 -0
- package/assets/components/assets/icon/dictionary24.json +1 -0
- package/assets/components/assets/icon/dictionary32.json +1 -0
- package/assets/components/assets/icon/jobDependency16.json +1 -0
- package/assets/components/assets/icon/jobDependency24.json +1 -0
- package/assets/components/assets/icon/jobDependency32.json +1 -0
- package/assets/components/assets/icon/referenceChip16.json +1 -0
- package/assets/components/assets/icon/referenceChip24.json +1 -0
- package/assets/components/assets/icon/referenceChip32.json +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{4e6f95d8c624d513849a.js → 05963f57cbe5a5249496.js} +1 -1
- package/assets/esri/core/workers/chunks/{0b8681ca4a83e97f1f71.js → 067de1910190da228291.js} +1 -1
- package/assets/esri/core/workers/chunks/{3c0fd1c6cda44e9f40ab.js → 070684943698fa43c2b4.js} +1 -1
- package/assets/esri/core/workers/chunks/{bc1cb4b9a02e6c78deb7.js → 076e8d2e08ff2a013736.js} +1 -1
- package/assets/esri/core/workers/chunks/{c10e040368065411506a.js → 10445313d0d57b34511b.js} +1 -1
- package/assets/esri/core/workers/chunks/{d537c59b46cdaaf66034.js → 1188d0a136fffc009643.js} +1 -1
- package/assets/esri/core/workers/chunks/{20af3f085f60c32c6c53.js → 178083d8ed7707b45ca2.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5efe3e800c6e23efcf3.js → 1819c45655c836b9a8d7.js} +1 -1
- package/assets/esri/core/workers/chunks/1b946714ca4a1a7359d4.js +2 -0
- package/assets/esri/core/workers/chunks/{d8d8b38ac8a91d9e45fc.js → 1cc744ab5eee5ee3bed8.js} +1 -1
- package/assets/esri/core/workers/chunks/{05e39b4de7f62c5b22cc.js → 20f75cc777af13fa249b.js} +1 -1
- package/assets/esri/core/workers/chunks/2a1ec30f9ad305763f81.js +2 -0
- package/assets/esri/core/workers/chunks/34570e6bbf559f18c1a5.js +1 -0
- package/assets/esri/core/workers/chunks/{60f6d5da9480dd36e877.js → 3dddae78286d05eb10fc.js} +1 -1
- package/assets/esri/core/workers/chunks/{9efd30bbd02ec0d1031b.js → 3ec3589f6e74d7cb87cf.js} +1 -1
- package/assets/esri/core/workers/chunks/{0bec054fca104f3bf141.js → 3f776d9fd2ab68b21fca.js} +1 -1
- package/assets/esri/core/workers/chunks/402a82c77420254831bc.js +1 -0
- package/assets/esri/core/workers/chunks/{e2ebf0ea3af2e6907987.js → 406f24ec13eb30d43405.js} +1 -1
- package/assets/esri/core/workers/chunks/43fc42405167a5537039.js +1 -0
- package/assets/esri/core/workers/chunks/{ddedc414bb478b376221.js → 46b2d4addfc73f9183a4.js} +1 -1
- package/assets/esri/core/workers/chunks/498d6dfd3bb0d3490548.js +1 -0
- package/assets/esri/core/workers/chunks/{36ef86701883a20dd6f6.js → 4a640548032355e57acd.js} +1 -1
- package/assets/esri/core/workers/chunks/5566f14afb63065e438f.js +1 -0
- package/assets/esri/core/workers/chunks/{c3b96d1d43afccd23e45.js → 590e6c70206122e4cc3c.js} +2 -2
- package/assets/esri/core/workers/chunks/{54860dd53a46cf4c47f3.js → 59295b99bdff4045a0e7.js} +1 -1
- package/assets/esri/core/workers/chunks/5aeb5e18514644fe2cf9.js +1 -0
- package/assets/esri/core/workers/chunks/{5da86409d70098fc6a10.js → 5b3cfe95314a75a735c1.js} +1 -1
- package/assets/esri/core/workers/chunks/{a54678bfa0f1807b61cd.js → 5c855af73ee3c3e764fb.js} +1 -1
- package/assets/esri/core/workers/chunks/{06da3409992bb1fa85b0.js → 5e90c1b49f2b7e21d05a.js} +39 -31
- package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +1 -0
- package/assets/esri/core/workers/chunks/{30f808cac8a34f95ea6e.js → 6079d27f4ab319fb8f0c.js} +1 -1
- package/assets/esri/core/workers/chunks/66c2a28a851130b87c04.js +1 -0
- package/assets/esri/core/workers/chunks/{dac90b3631f7f7158f68.js → 67f15538c51838201fc7.js} +1 -1
- package/assets/esri/core/workers/chunks/{cfaba0470619786e1ef8.js → 68d8ae42ab71d01a70a5.js} +2 -2
- package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +1 -0
- package/assets/esri/core/workers/chunks/{864e7030c4ddbfcf0114.js → 6ccf9535013fe672c93b.js} +1 -1
- package/assets/esri/core/workers/chunks/{ba7f0cf7e495d3ec2d55.js → 6e62581d933e7298d1f6.js} +1 -1
- package/assets/esri/core/workers/chunks/{83b5dd4029e00abd80bf.js → 700b1d5bc67b7e1b3ff3.js} +1 -1
- package/assets/esri/core/workers/chunks/{f9fea72cc222a30ef2f9.js → 72399062767abdfb0bee.js} +1 -1
- package/assets/esri/core/workers/chunks/{2a7fbfd77002a24bf737.js → 747461bb6a1bc2f0a64d.js} +1 -1
- package/assets/esri/core/workers/chunks/{c333f6ed42985bb2b11f.js → 7851aef196eea5d6c94e.js} +1 -1
- package/assets/esri/core/workers/chunks/{f0b6bd6fab5320c3082f.js → 7a05b18f655c1167ce0a.js} +1 -1
- package/assets/esri/core/workers/chunks/{04296b75d0f81fbd1bb5.js → 864194927d05ebc4cc31.js} +1 -1
- package/assets/esri/core/workers/chunks/{3c4a13a9f0b305394a26.js → 876f7633c15f1e31078d.js} +1 -1
- package/assets/esri/core/workers/chunks/{62298dba3f6cbdc3f4ae.js → 879b2f0ff1977bca9376.js} +1 -1
- package/assets/esri/core/workers/chunks/{b547b3bce729c9dac90d.js → 898359be6996fd9763b8.js} +1 -1
- package/assets/esri/core/workers/chunks/8cb716f110d164030309.js +1 -0
- package/assets/esri/core/workers/chunks/8dc1c3042267618fd710.js +2 -0
- package/assets/esri/core/workers/chunks/{625f02db93d7fbf175ca.js → 9001e9a1e81bce175ddd.js} +1 -1
- package/assets/esri/core/workers/chunks/{9ffa6c8d93d3443834c6.js → 912080c90b5cc2e817cf.js} +1 -1
- package/assets/esri/core/workers/chunks/96c50a0dda0f1503ef92.js +2 -0
- package/assets/esri/core/workers/chunks/{13e4379441499599c3b5.js → 9cbde13e536676767900.js} +1 -1
- package/assets/esri/core/workers/chunks/{408db4f32850b77264ae.js → 9cd3fcb5fca6f9dbbcd8.js} +1 -1
- package/assets/esri/core/workers/chunks/a054da6cbd8ee4774a57.js +1 -0
- package/assets/esri/core/workers/chunks/a05790444115e4cf1bcc.js +1 -0
- package/assets/esri/core/workers/chunks/{d1f2685782b423ef87a6.js → a556dd4e9e6d35e33a2c.js} +1 -1
- package/assets/esri/core/workers/chunks/{00d576d355599c88931e.js → bc38def1983089514e4b.js} +1 -1
- package/assets/esri/core/workers/chunks/{0725e515f3004bdd5c56.js → ca2adcbcf44454484fd5.js} +1 -1
- package/assets/esri/core/workers/chunks/{f3507b9e831ffd7a6bf8.js → cca8bd07bcd1d267a2e8.js} +1 -1
- package/assets/esri/core/workers/chunks/cfae60b9d2f2939e9c16.js +1 -0
- package/assets/esri/core/workers/chunks/{1d6b2a64f4e40e5cc13d.js → d201fbf3ceff946d2bd6.js} +1 -1
- package/assets/esri/core/workers/chunks/{4439078780d9ba49fd26.js → d51bb11baadc741c46bc.js} +1 -1
- package/assets/esri/core/workers/chunks/db1ab9b9c8bf5c7635d3.js +1 -0
- package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +1 -0
- package/assets/esri/core/workers/chunks/e630f3c56c077cb2bd8e.js +1 -0
- package/assets/esri/core/workers/chunks/e81173724e8de8c1e65b.js +1 -0
- package/assets/esri/core/workers/chunks/{2025288bed125594ceda.js → f6e62d2d279a328cbed7.js} +1 -1
- package/assets/esri/core/workers/chunks/{47c19778fcee7154ca38.js → f8bc474434fd365ab174.js} +1 -1
- package/assets/esri/core/workers/chunks/{9a20dc26cb9c7b2087cf.js → f95a1f878c9c1146180e.js} +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.en.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-TW.json +1 -1
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/Component.glsl.js +3 -3
- package/chunks/DefaultMaterial.glsl.js +2 -2
- package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
- package/chunks/Envelope.js +1 -1
- package/chunks/Envelope2D.js +1 -1
- package/chunks/FocusArea.glsl.js +8 -10
- package/chunks/GaussianSplat.glsl.js +2 -2
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/GeodeticUtils.js +1 -1
- package/chunks/Geometry.js +1 -1
- package/chunks/GeometryCleaner-CIE8Wfmb.js +1 -1
- package/chunks/GlobalIllumination.glsl.js +3 -3
- package/chunks/LineMarker.glsl.js +35 -42
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorAffineTransform.js +1 -1
- package/chunks/OperatorClip.js +1 -1
- package/chunks/OperatorDensify.js +1 -1
- package/chunks/OperatorDistance.js +1 -1
- package/chunks/OperatorGeneralize.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
- package/chunks/OperatorGeodeticDistance.js +1 -1
- package/chunks/OperatorGeodeticLength.js +1 -1
- package/chunks/OperatorGraphicBuffer.js +1 -1
- package/chunks/OperatorIntegrate.js +1 -1
- package/chunks/OperatorMultiPartToSinglePart.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/Path.glsl.js +2 -2
- package/chunks/Point2D.js +1 -1
- package/chunks/RealisticTree.glsl.js +2 -2
- package/chunks/RibbonLine.glsl.js +51 -57
- package/chunks/SideCalculator2D-DX0718xq.js +1 -1
- package/chunks/Terrain.glsl.js +2 -2
- package/chunks/Transformation2D.js +1 -1
- package/chunks/UnitFactory.js +1 -1
- package/config.js +1 -1
- package/core/workers/RemoteClient.js +1 -1
- package/core/workers/workerFactory.js +1 -1
- package/editing/fieldUtils.d.ts +12 -0
- package/editing/sharedTemplates/templateDefinitions/TemplateDefinitionBase.js +1 -1
- package/geometry/operators/extendOperator.js +1 -1
- package/geometry/operators/gx/operatorAlphaShape.js +1 -1
- package/geometry/operators/gx/operatorBoundary.js +1 -1
- package/geometry/operators/gx/operatorBuffer.js +1 -1
- package/geometry/operators/gx/operatorConvexHull.js +1 -1
- package/geometry/operators/gx/operatorLabelPoint.js +1 -1
- package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
- package/geometry/operators/gx/operatorLocateBetween.js +1 -1
- package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
- package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
- package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
- package/geometry/operators/isNearOperator.js +1 -1
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/support/curves/ellipticArc7Utils.js +1 -1
- package/geometry/support/ellipseUtils.js +2 -0
- package/interfaces.d.ts +15 -18
- package/kernel.js +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/ParquetLayer.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/list/LayerItemCollection.d.ts +1 -0
- package/layers/list/types.d.ts +5 -1
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/orientedImagery/queries.js +1 -1
- package/layers/support/TimeSeriesCalculation.d.ts +1 -1
- package/layers/support/TimeSeriesCalculation.js +1 -1
- package/layers/support/dataSeriesUtils.d.ts +10 -0
- package/layers/support/timeSeriesUtils.js +17 -6
- package/libs/lyr3d/Lyr3DModule.js +1 -1
- package/networks/UtilityNetwork.d.ts +15 -0
- package/networks/UtilityNetwork.js +1 -1
- package/package.json +4 -4
- package/popup/FeatureContent.d.ts +14 -1
- package/popup/FeatureContent.js +1 -1
- package/popup/FeatureContentCollection.d.ts +4 -10
- package/popup/FeatureContentCollection.js +1 -1
- package/popup/actions.js +1 -1
- package/popup/support/featureUtils.js +1 -1
- package/renderers/support/RenderingInfo.js +1 -1
- package/renderers/support/renderingInfoUtils.js +1 -1
- package/renderers/visualVariables/SizeVariable.d.ts +16 -20
- package/renderers/visualVariables/support/SizeStop.d.ts +6 -2
- package/rest/networks/support/TraceLocation.js +1 -1
- package/rest/networks/support/TraceResult.d.ts +7 -0
- package/rest/networks/support/TraceResult.js +1 -1
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/opacity.js +1 -1
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/support/timeSeriesUtils.js +1 -1
- package/smartMapping/statistics/histogramForTimeSeries.d.ts +11 -0
- package/smartMapping/statistics/histogramForTimeSeries.js +2 -0
- package/smartMapping/statistics/summaryStatisticsForTimeSeries.d.ts +11 -0
- package/smartMapping/statistics/summaryStatisticsForTimeSeries.js +2 -0
- package/smartMapping/statistics/support/timeSeriesUtils.js +24 -0
- package/smartMapping/statistics/types.d.ts +50 -0
- package/support/tests/serviceMockDependencies.js +1 -1
- package/support/tests/setupServiceMocksMesh.js +1 -1
- package/symbols/cim/CIMPlacements.js +1 -1
- package/symbols/cim/callouts/calloutAnalysisUtils.js +1 -1
- package/symbols/cim/callouts/effects/BackgroundCallout.js +1 -1
- package/symbols/cim/callouts/effects/BalloonCallout.js +1 -1
- package/symbols/cim/callouts/effects/PointSymbolCallout.js +1 -1
- package/symbols/cim/callouts/effects/calloutUtils.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
- package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/CollisionJob.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/SymbolFader.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/jobsUtil.js +1 -1
- package/views/2d/engine/webgl/collisions/LabelMetric.js +1 -1
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/ComputedAnimatedParams.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/ComputedMarkerParams.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/CalloutMeshWriterPolicy.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextParams.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/layers/SketchLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/labelingUtils.js +1 -1
- package/views/2d/layers/features/schema/ExceedsLimitCache.js +1 -1
- package/views/2d/layers/features/schema/TimeSchema.js +2 -0
- package/views/2d/layers/features/schema/processor/LabelMatcherSchema.js +1 -1
- package/views/2d/layers/features/schema/processor/MatcherSchema.js +1 -1
- package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
- package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
- package/views/2d/layers/support/annodime/cimAnnotations.js +1 -1
- package/views/2d/layers/support/vectorTileDebugUtils.js +1 -1
- package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
- package/views/2d/types.d.ts +2 -1
- package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +24 -0
- package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedObserverManipulatedObject3D.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
- package/views/3d/camera/constraintUtils.js +1 -1
- package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
- package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
- package/views/3d/interactive/editingTools/tooltipUtils3D.js +1 -1
- package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
- package/views/3d/state/controllers/GroundNavigationController.js +1 -1
- package/views/3d/state/controllers/momentum/GroundNavigationMomentumController.js +1 -1
- package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +16 -8
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +5 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +12 -0
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
- package/views/3d/webgl-engine/effects/focusArea/FocusArea.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/SelectionManager.d.ts +3 -3
- package/views/draw/support/Reshape.js +1 -1
- package/views/interactive/options/bindViewToolOptions.js +1 -1
- package/views/interactive/sketch/SketchLabelOptions.d.ts +3 -0
- package/views/interactive/sketch/SketchLabelOptions.js +1 -1
- package/views/interactive/sketch/SketchTooltipOptions.d.ts +3 -0
- package/views/interactive/sketch/SketchTooltipOptions.js +1 -1
- package/views/interactive/sketch/SketchValueOptions.d.ts +3 -0
- package/views/interactive/sketch/SketchValueOptions.js +1 -1
- package/views/interactive/snapping/SnappingOptions.d.ts +3 -0
- package/views/interactive/snapping/SnappingOptions.js +1 -1
- package/views/interactive/snapping/snappingUtils.js +1 -1
- package/views/interactive/tooltip/fields/parsingAndFormattingUtils.js +1 -1
- package/views/layers/SketchLayerView.d.ts +34 -0
- package/views/layers/SketchLayerView.js +2 -0
- package/views/layers/types.d.ts +3 -2
- package/views/selection/types.d.ts +15 -4
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/Bookmarks/BookmarksViewModel.d.ts +4 -0
- package/widgets/Bookmarks/BookmarksVisibleElements.d.ts +5 -1
- package/widgets/Bookmarks/types.d.ts +2 -0
- package/widgets/Editor/EditorViewModel.d.ts +31 -30
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/components/Settings.js +1 -1
- package/widgets/Editor/types.d.ts +44 -0
- package/widgets/Editor.d.ts +30 -27
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.d.ts +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.d.ts +6 -0
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Histogram/types.d.ts +10 -2
- package/widgets/HistogramRangeSlider/types.d.ts +4 -1
- package/widgets/LayerList/LayerListViewModel.d.ts +2 -1
- package/widgets/Legend/LegendViewModel.d.ts +2 -0
- package/widgets/Legend/styles/card/CardView.d.ts +2 -0
- package/widgets/Legend/styles/classic/ClassicView.d.ts +4 -1
- package/widgets/Legend.d.ts +3 -0
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +7 -0
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/support/VideoFeatureCache.js +2 -0
- package/widgets/OrientedImageryViewer/types.d.ts +9 -0
- package/widgets/OrientedImageryViewer.d.ts +7 -0
- package/widgets/OrientedImageryViewer.js +2 -2
- package/widgets/PanoramicVideoViewer.js +1 -1
- package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
- package/widgets/ScaleRangeSlider/types.d.ts +9 -2
- package/widgets/Sketch/SketchViewModel.d.ts +32 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch.d.ts +27 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/Slider/types.d.ts +58 -13
- package/widgets/Slider.d.ts +6 -0
- package/widgets/smartMapping/BinaryColorSizeSlider/BinaryColorSizeSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/ClassedColorSlider/ClassedColorSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/ClassedSizeSlider/ClassedSizeSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/ColorSizeSlider/ColorSizeSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/ColorSlider/ColorSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/HeatmapSlider/HeatmapSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/OpacitySlider/OpacitySliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/SizeSlider/SizeSliderViewModel.d.ts +3 -0
- package/widgets/smartMapping/SmartMappingPrimaryHandleSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/SmartMappingSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/types.d.ts +30 -7
- package/widgets/support/FilterBuilder/FilterBuilderViewModel.d.ts +21 -11
- package/widgets/support/FilterBuilder/FilterBuilderViewModel.js +1 -1
- package/widgets/support/FilterBuilder/types.d.ts +28 -0
- package/widgets/support/FilterBuilder.js +1 -1
- package/widgets/support/FilterCondition/FilterConditionViewModel.d.ts +24 -0
- package/widgets/support/FilterCondition/FilterConditionViewModel.js +1 -1
- package/widgets/support/FilterCondition/types.d.ts +16 -1
- package/widgets/support/FilterCondition.js +1 -1
- package/widgets/support/SnappingControls/snappingLayerListUtils.js +1 -1
- package/widgets/support/iconUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0606ab6fdfc1dfea3856.js +0 -1
- package/assets/esri/core/workers/chunks/078dcd17f46403d44b24.js +0 -1
- package/assets/esri/core/workers/chunks/1289204f8ca96032c17a.js +0 -1
- package/assets/esri/core/workers/chunks/12b5a645c0987a0efe54.js +0 -2
- package/assets/esri/core/workers/chunks/152fe3d6ad7aebbd23d1.js +0 -1
- package/assets/esri/core/workers/chunks/17b938ba49fb1e7ab8c4.js +0 -1
- package/assets/esri/core/workers/chunks/1dbb3e25e005a8220779.js +0 -2
- package/assets/esri/core/workers/chunks/3d6fef25af7e1a51e1bd.js +0 -1
- package/assets/esri/core/workers/chunks/3ef367c9b7bf1588307d.js +0 -1
- package/assets/esri/core/workers/chunks/5f4feca26102088ea565.js +0 -1
- package/assets/esri/core/workers/chunks/74211d096cc3296e0968.js +0 -1
- package/assets/esri/core/workers/chunks/7926faab76a721a2e1c4.js +0 -1
- package/assets/esri/core/workers/chunks/ad28486bc6afaa346de5.js +0 -1
- package/assets/esri/core/workers/chunks/ad29c729e90b5866713c.js +0 -1
- package/assets/esri/core/workers/chunks/b72a2514aa4cc4ae7d1b.js +0 -1
- package/assets/esri/core/workers/chunks/bb51cf52b8ea8283f4f8.js +0 -1
- package/assets/esri/core/workers/chunks/be761749f8d77fbd9df5.js +0 -1
- package/assets/esri/core/workers/chunks/dbfd25aa0d19aed5890c.js +0 -1
- package/assets/esri/core/workers/chunks/de28a86775235bd5d3c4.js +0 -2
- package/assets/esri/core/workers/chunks/f6cfc901267a229de7a1.js +0 -2
- package/assets/esri/core/workers/chunks/fb147097149a89e671ff.js +0 -1
- package/support/revision.js +0 -2
- /package/assets/esri/core/workers/chunks/{1dbb3e25e005a8220779.js.LICENSE.txt → 1b946714ca4a1a7359d4.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{f6cfc901267a229de7a1.js.LICENSE.txt → 2a1ec30f9ad305763f81.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{c3b96d1d43afccd23e45.js.LICENSE.txt → 590e6c70206122e4cc3c.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{cfaba0470619786e1ef8.js.LICENSE.txt → 68d8ae42ab71d01a70a5.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{de28a86775235bd5d3c4.js.LICENSE.txt → 8dc1c3042267618fd710.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{12b5a645c0987a0efe54.js.LICENSE.txt → 96c50a0dda0f1503ef92.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../../core/Accessor.js";import{watch as n,initial as r}from"../../../core/reactiveUtils.js";import{property as i,subclass as a}from"../../../core/accessorSupport/decorators.js";import{isStringField as o,isNumericField as s,isObjectIDField as c,isGlobalIDField as l,isIntegerField as u,isTimeOnlyField as d,normalizeFieldName as f}from"../../../layers/support/fieldUtils.js";import{defaultOperatorNamesByFieldType as p}from"./conditionUtils.js";
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../../core/Accessor.js";import{watch as n,initial as r}from"../../../core/reactiveUtils.js";import{property as i,subclass as a}from"../../../core/accessorSupport/decorators.js";import{isStringField as o,isNumericField as s,isObjectIDField as c,isGlobalIDField as l,isIntegerField as u,isTimeOnlyField as d,normalizeFieldName as f}from"../../../layers/support/fieldUtils.js";import{defaultOperatorNamesByFieldType as p}from"./conditionUtils.js";const m=new Set([`isBlank`,`isNotBlank`,`isEmpty`,`isNotEmpty`]);let h=class extends t{constructor(e){super(e),this.fieldName=null,this.layer=null,this.operator=`is`,this.operators=p,this.value=null}initialize(){this.fieldName??=this.defaultFieldName,this.addHandles([n(()=>this.layer,async e=>{e&&!e.loaded&&await e.load()},r),n(()=>[this.domain,this.operator],()=>{let{domain:e,operator:t}=this;this.value==null&&e?.type===`coded-value`&&e.codedValues.length&&(t===`is`||t===`isNot`)&&(this.value=e.codedValues[0].code)})])}get defaultFieldName(){let{fields:e,fieldName:t}=this;return t||(e?.length?e[0].name:void 0)}get domain(){let{fieldName:e,layer:t}=this;if(e&&t)return t.getFieldDomain(e)}get field(){let{fieldName:e,layer:t}=this;if(e&&t)return t.fieldsIndex.get(e)}get fields(){return(this.layer?.fields??[]).filter(e=>!!(o(e)||s(e)||c(e)||l(e)))}get fieldLabel(){let{field:e}=this;return e&&(e.alias||e.name)||``}get isGlobalIDField(){let{field:e}=this;return e?l(e):!1}get isIntegerField(){return u(this.field)}get isNumericField(){return s(this.field)}get isObjectIDField(){let{field:e}=this;return e?c(e):!1}get isStringField(){return o(this.field)}get isTimeOnlyField(){return d(this.field)}get normalizedFieldName(){return f(this.field?.name)}get normalizedValue(){let{value:e,isNumericField:t,isObjectIDField:n}=this;return e==null||e===``?``:t||n?`${e}`:`'${e}'`}get state(){let{layer:e}=this;return e?e.loaded?`ready`:`loading`:`disabled`}get valueAsString(){let{value:e}=this;return e==null||e===``?``:`${e}`}get valueInputType(){return this.isNumericField||this.isObjectIDField?`number`:`text`}get valueInputIsHidden(){let{operator:e}=this;return e?m.has(e):!1}get visibleOperators(){let{field:e,operators:t}=this;return e?this.isStringField||this.isGlobalIDField?t.string:this.isNumericField?t.number:this.isObjectIDField?t.id:[]:[]}get whereClause(){let{normalizedFieldName:e,operator:t,normalizedValue:n}=this;return!e||!t?null:t===`isBlank`?`${e} IS NULL`:t===`isNotBlank`?`${e} IS NOT NULL`:t===`isEmpty`?`${e} = ''`:t===`isNotEmpty`?`${e} <> ''`:n===``?null:t===`is`?`${e} = ${n}`:t===`isNot`?`${e} <> ${n}`:t===`startsWith`?`${e} LIKE ${n}%`:t===`endsWith`?`${e} LIKE %${n}`:t===`contains`?`${e} LIKE %${n}%`:t===`doesNotContain`?`${e} NOT LIKE %${n}%`:null}};e([i()],h.prototype,`defaultFieldName`,null),e([i()],h.prototype,`domain`,null),e([i()],h.prototype,`field`,null),e([i()],h.prototype,`fields`,null),e([i()],h.prototype,`fieldLabel`,null),e([i()],h.prototype,`fieldName`,void 0),e([i()],h.prototype,`isIntegerField`,null),e([i()],h.prototype,`isNumericField`,null),e([i()],h.prototype,`isObjectIDField`,null),e([i()],h.prototype,`isStringField`,null),e([i()],h.prototype,`isTimeOnlyField`,null),e([i()],h.prototype,`layer`,void 0),e([i()],h.prototype,`normalizedFieldName`,null),e([i()],h.prototype,`normalizedValue`,null),e([i()],h.prototype,`operator`,void 0),e([i()],h.prototype,`operators`,void 0),e([i()],h.prototype,`state`,null),e([i()],h.prototype,`value`,void 0),e([i()],h.prototype,`valueAsString`,null),e([i()],h.prototype,`valueInputType`,null),e([i()],h.prototype,`valueInputIsHidden`,null),e([i()],h.prototype,`visibleOperators`,null),e([i()],h.prototype,`whereClause`,null),h=e([a(`esri.widgets.support.FilterCondition.FilterConditionViewModel`)],h);export{h as default};
|
|
@@ -10,7 +10,22 @@ export type OperatorName = "is" | "isNot" | "isBlank" | "isNotBlank" | "isEmpty"
|
|
|
10
10
|
*
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
|
-
export interface OperatorNamesByFieldType {
|
|
13
|
+
export interface OperatorNamesByFieldType {
|
|
14
|
+
/** @internal */
|
|
15
|
+
date: OperatorName[];
|
|
16
|
+
/** @internal */
|
|
17
|
+
dateOnly: OperatorName[];
|
|
18
|
+
/** @internal */
|
|
19
|
+
id: OperatorName[];
|
|
20
|
+
/** @internal */
|
|
21
|
+
number: OperatorName[];
|
|
22
|
+
/** @internal */
|
|
23
|
+
timeOnly: OperatorName[];
|
|
24
|
+
/** @internal */
|
|
25
|
+
timestampOffset: OperatorName[];
|
|
26
|
+
/** @internal */
|
|
27
|
+
string: OperatorName[];
|
|
28
|
+
}
|
|
14
29
|
|
|
15
30
|
/**
|
|
16
31
|
* Names of operators that can be used to combine multiple filter conditions.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{property as t,cast as n,subclass as r}from"../../core/accessorSupport/decorators.js";import{getEffectiveFieldAlias as i}from"../../editing/fieldUtils.js";import a from"../Widget.js";import{loadCalciteComponents as o}from"./componentsUtils.js";import{tsx as s,messageBundle as c}from"./widget.js";import l from"./FilterCondition/FilterConditionViewModel.js";const u={},d=`esri-filter-condition`,f={base:d,valueInputContainer:`${d}__value-input-container`};let p=class extends a{constructor(e,t){super(e,t),this.messages=null,this.messagesCommon=null,this.viewModel=new l,this.visibleElements={...u}}loadDependencies(){return o({input:()=>import(`@esri/calcite-components/dist/components/calcite-input`),option:()=>import(`@esri/calcite-components/dist/components/calcite-option`),select:()=>import(`@esri/calcite-components/dist/components/calcite-select`)})}get
|
|
2
|
+
import{__decorate as e}from"tslib";import{property as t,cast as n,subclass as r}from"../../core/accessorSupport/decorators.js";import{getEffectiveFieldAlias as i}from"../../editing/fieldUtils.js";import a from"../Widget.js";import{loadCalciteComponents as o}from"./componentsUtils.js";import{tsx as s,messageBundle as c}from"./widget.js";import l from"./FilterCondition/FilterConditionViewModel.js";const u={},d=`esri-filter-condition`,f={base:d,valueInputContainer:`${d}__value-input-container`};let p=class extends a{constructor(e,t){super(e,t),this.messages=null,this.messagesCommon=null,this.viewModel=new l,this.visibleElements={...u}}loadDependencies(){return o({input:()=>import(`@esri/calcite-components/dist/components/calcite-input`),option:()=>import(`@esri/calcite-components/dist/components/calcite-option`),select:()=>import(`@esri/calcite-components/dist/components/calcite-select`)})}get domain(){return this.viewModel.domain}get field(){return this.viewModel.field}get fields(){return this.viewModel.fields}get fieldLabel(){return this.viewModel.fieldLabel}get fieldName(){return this.viewModel.fieldName}set fieldName(e){this.viewModel.fieldName=e}get layer(){return this.viewModel.layer}set layer(e){this.viewModel.layer=e}get normalizedFieldName(){return this.viewModel.normalizedFieldName}get operator(){return this.viewModel.operator}set operator(e){this.viewModel.operator=e}get operators(){return this.viewModel.operators}set operators(e){this.viewModel.operators=e}get state(){return this.viewModel.state}get value(){return this.viewModel.value}set value(e){this.viewModel.value=e}get valueAsString(){return this.viewModel.valueAsString}castVisibleElements(e){return{...u,...e}}get whereClause(){return this.viewModel.whereClause}render(){return s(`div`,{class:f.base},this._renderFieldSelection(),this._renderOperatorSelection(),this._renderValueInput())}_renderFieldSelection(){let{layer:e,normalizedFieldName:t}=this;return s(`div`,null,s(`calcite-select`,{afterCreate:()=>{this.fieldName||=this.viewModel.defaultFieldName},bind:this,label:this.messages.chooseField,width:`full`,onCalciteSelectChange:({currentTarget:e})=>{this.value=null,this.fieldName=e.value}},this.fields.map(n=>{let r=i(n,e);return this._renderOption(n.name,r,t)})))}_renderOperatorSelection(){let{messages:e,operator:t}=this,{visibleOperators:n}=this.viewModel;if(n.length)return s(`div`,null,s(`calcite-select`,{afterUpdate:e=>{let t=e.value;n.includes(t)||(this.operator=n[0])},bind:this,label:e.operator,required:!0,width:`full`,onCalciteSelectChange:e=>{this.operator=e.currentTarget.value}},n.map(n=>this._renderOption(n,e.operators[n],t))))}_renderOption(e,t,n){return s(`calcite-option`,{key:e,label:t??e,selected:e===n,value:e})}_renderValueInput(){let{valueAsString:e,domain:t,messages:n,operator:r}=this;if(!this.viewModel.valueInputIsHidden){if(t?.type===`coded-value`&&t.codedValues.length&&(r===`is`||r===`isNot`)){let r=t.codedValues[0].code;return s(`div`,{key:`value-select`},s(`calcite-select`,{afterCreate:()=>this._afterSelectCreateOrUpdate(r),afterUpdate:()=>this._afterSelectCreateOrUpdate(r),bind:this,label:n.value,required:!0,width:`full`,onCalciteSelectChange:({currentTarget:e})=>{this._onValueChange(e.value)}},t.codedValues.map(({code:t,name:n})=>this._renderOption(`${t}`,n,e))))}return s(`div`,{class:f.valueInputContainer,key:`value-input`},s(`calcite-input`,{label:n.value,type:this.viewModel.valueInputType,value:e,onCalciteInputInput:({currentTarget:e})=>{this._onValueChange(e.value)}}))}}_afterSelectCreateOrUpdate(e){this.value??=e}_onValueChange(e){let{viewModel:t}=this;!e||e===``?this.value=null:t.isStringField||t.isGlobalIDField?this.value=e.toString():(t.isNumericField||t.isObjectIDField)&&(this.value=parseFloat(e))}};e([t()],p.prototype,`domain`,null),e([t()],p.prototype,`field`,null),e([t()],p.prototype,`fields`,null),e([t()],p.prototype,`fieldLabel`,null),e([t()],p.prototype,`fieldName`,null),e([t()],p.prototype,`layer`,null),e([t(),c(`esri/widgets/support/FilterCondition/t9n/FilterCondition`)],p.prototype,`messages`,void 0),e([t(),c(`esri/t9n/common`)],p.prototype,`messagesCommon`,void 0),e([t()],p.prototype,`normalizedFieldName`,null),e([t()],p.prototype,`operator`,null),e([t()],p.prototype,`operators`,null),e([t()],p.prototype,`state`,null),e([t()],p.prototype,`value`,null),e([t()],p.prototype,`valueAsString`,null),e([t()],p.prototype,`viewModel`,void 0),e([t()],p.prototype,`visibleElements`,void 0),e([n(`visibleElements`)],p.prototype,`castVisibleElements`,null),e([t()],p.prototype,`whereClause`,null),p=e([r(`esri.widgets.support.FilterCondition`)],p);export{p as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{getNormalizedChildLayerProperty as e}from"../../LayerList/support/layerListUtils.js";const t=e=>n(e)||r(e),n=e=>{if(!(`type`in e))return!1;switch(e.type){case`feature`:case`geojson`:case`csv`:case`graphics`:case`wfs`:case`map-notes`:case`oriented-imagery`:case`scene`:case`building-scene`:case`subtype-sublayer`:return!0;default:return!1}},r=n=>{let r=e(n);if(r!=null&&n.hasOwnProperty(r)&&n[r]!=null){for(let e of n[r])if(t(e))return!0}return!1},i=(e,t)=>t==null||e==null?!1:t.test(e.title)?`self`:e.children.some(e=>i(e,t)!==!1)?`children`:!1;export{t as isValidSnappingLayer,r as isValidSnappingLayerGroup,n as isValidSnappingLayerSource,i as itemTitleMatchesFilter};
|
|
2
|
+
import{getNormalizedChildLayerProperty as e}from"../../LayerList/support/layerListUtils.js";const t=e=>n(e)||r(e),n=e=>{if(!(`type`in e))return!1;switch(e.type){case`feature`:case`geojson`:case`csv`:case`graphics`:case`wfs`:case`map-notes`:case`oriented-imagery`:case`scene`:case`sketch`:case`building-scene`:case`subtype-sublayer`:return!0;default:return!1}},r=n=>{let r=e(n);if(r!=null&&n.hasOwnProperty(r)&&n[r]!=null){for(let e of n[r])if(t(e))return!0}return!1},i=(e,t)=>t==null||e==null?!1:t.test(e.title)?`self`:e.children.some(e=>i(e,t)!==!1)?`children`:!1;export{t as isValidSnappingLayer,r as isValidSnappingLayerGroup,n as isValidSnappingLayerSource,i as itemTitleMatchesFilter};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
const e={danger:`exclamation-mark-circle`,info:`information`,neutral:void 0,success:`check`,warning:`exclamation-mark-triangle`,brand:void 0};function t(e){if(typeof e!=`object`||!e)return`layer`;if(`isTable`in e&&e.isTable)return`table`;if(!(`type`in e))return`layer`;switch(e.type){case`feature`:return`feature-layer`;case`graphics`:return`layer-graphics`;case`group`:return`layers`;case`subtype-group`:return`subtype`;case`csv`:return`layer-csv`;case`geojson`:return`layer-geojson`;case`map-notes`:return`layer-map-notes`;case`knowledge-graph`:return`knowledge-layer`;case`link-chart`:return`knowledge-graph`;case`annotation-feature`:return`layer-annotation`;case`dimension-feature`:return`layer-dimension`;case`wfs`:return`layer-wfs`;default:return`layer`}}function n(e){let t=e.layer,n=t&&`geometryType`in t?t.geometryType:void 0,r=e.geometry?.type;return r===`polyline`||n===`polyline`?`line`:r===`mesh`||n===`mesh`||n===`multipatch`?`cube`:r===`multipoint`||n===`multipoint`?`point`:r||n||`table`}export{n as getIconForFeature,t as getIconForLayer,e as iconByKind};
|
|
2
|
+
const e={danger:`exclamation-mark-circle`,info:`information`,neutral:void 0,success:`check`,warning:`exclamation-mark-triangle`,brand:void 0};function t(e){if(typeof e!=`object`||!e)return`layer`;if(`isTable`in e&&e.isTable)return`table`;if(!(`type`in e))return`layer`;switch(e.type){case`feature`:return`feature-layer`;case`graphics`:return`layer-graphics`;case`group`:return`layers`;case`subtype-group`:return`subtype`;case`csv`:return`layer-csv`;case`geojson`:return`layer-geojson`;case`map-notes`:case`sketch`:return`layer-map-notes`;case`knowledge-graph`:return`knowledge-layer`;case`link-chart`:return`knowledge-graph`;case`annotation-feature`:return`layer-annotation`;case`dimension-feature`:return`layer-dimension`;case`wfs`:return`layer-wfs`;default:return`layer`}}function n(e){let t=e.layer,n=t&&`geometryType`in t?t.geometryType:void 0,r=e.geometry?.type;return r===`polyline`||n===`polyline`?`line`:r===`mesh`||n===`mesh`||n===`multipatch`?`cube`:r===`multipoint`||n===`multipoint`?`point`:r||n||`table`}export{n as getIconForFeature,t as getIconForLayer,e as iconByKind};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,4809,7992],{32198(e,t,r){function n(e,t,r,n){var s,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(s=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");s&&(n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}r.d(t,{Cg:()=>n,hk:()=>i,mS:()=>s}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function i(e){function t(t){e.error=e.hasError?new o(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function s(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(s,function(e){return t(e),s()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},1123(e,t,r){r.r(t),r.d(t,{invokeGeometryOp:()=>i});var n=r(83299);function s(e,t){let r;return{loaded:!1,load:()=>r??=t().then(t=>{o[e]={loaded:!0,execute:t}})}}const o={disjoint:s("disjoint",async()=>{let{OperatorDisjoint:e}=await r.e(7029).then(()=>r(97029)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),intersects:s("intersects",async()=>{let{OperatorIntersects:e}=await r.e(31).then(()=>r(70031)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),touches:s("touches",async()=>{let{OperatorTouches:e}=await r.e(6810).then(()=>r(46810)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),crosses:s("crosses",async()=>{let{OperatorCrosses:e}=await r.e(9821).then(()=>r(29821)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),within:s("within",async()=>{let{OperatorWithin:e}=await r.e(2802).then(()=>r(22802)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),contains:s("contains",async()=>{let{OperatorContains:e}=await r.e(892).then(()=>r(70892)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),overlaps:s("overlaps",async()=>{let{OperatorOverlaps:e}=await r.e(5181).then(()=>r(85181)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),equals:s("equals",async()=>{let{OperatorEquals:e}=await r.e(468).then(()=>r(70468)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),relate:s("relate",async()=>{let{OperatorRelate:e}=await r.e(9672).then(()=>r(39672)),t=new e;return(e,r,s,o)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),o,null)}),intersection:s("intersection",async()=>{let{execute:e}=await r.e(1327).then(()=>r(33708));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),union:s("union",async()=>{let{executeMany:e}=await r.e(8298).then(()=>r(28298));return(t,r)=>(0,n.toGeometry)(e(t.map(e=>(0,n.fromGeometryToGXGeometry)(e)),(0,n.fromSpatialReference)(r)),null)}),difference:s("difference",async()=>{let{execute:e}=await r.e(9074).then(()=>r(49074));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),symmetricDifference:s("symmetricDifference",async()=>{let{execute:e}=await r.e(8613).then(()=>r(68613));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),clip:s("clip",async()=>{let{execute:e}=await r.e(6027).then(()=>r(96027));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r).asEnvelope2D(),(0,n.fromSpatialReference)(s)),null)}),cut:s("cut",async()=>{let{execute:e}=await r.e(756).then(()=>r(90756));return(t,r,s)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)).map(e=>(0,n.toGeometry)(e,null)).filter(e=>null!=e)}),area:s("area",async()=>{let{convertFromSpatialReferenceUnit:e,toAreaUnit:t}=await r.e(547).then(()=>r(40547));return(r,s,o)=>{let i=(0,n.fromGeometryToGXGeometry)(r).calculateArea2D();return e(s,t(o),i)}}),geodeticArea:s("geodeticArea",async()=>{let{load:e,execute:t}=await r.e(6742).then(()=>r(86742)),{convert:s,squareMeters:o,toAreaUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l)=>{let u=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),l);return s(o,i(a),u)}}),length:s("length",async()=>{let{convertFromSpatialReferenceUnit:e,toLengthUnit:t}=await r.e(547).then(()=>r(40547));return(r,s,o)=>{let i=(0,n.fromGeometryToGXGeometry)(r).calculateLength2D();return e(s,t(o),i)}}),geodeticLength:s("geodeticLength",async()=>{let{load:e,execute:t}=await r.e(5223).then(()=>r(35223)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l)=>{let u=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),l);return s(o,i(a),u)}}),distance:s("distance",async()=>{let{OperatorDistance:e}=await r.e(2994).then(()=>r(22994)),{convertFromSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547)),o=new e;return(e,r,i,a)=>{let l=o.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),null);return t(i,s(a),l)}}),geodeticDistance:s("geodeticDistance",async()=>{let{load:e,execute:t}=await r.e(9716).then(()=>r(29716)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l,u)=>{let m=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(a),u);return s(o,i(l),m)}}),densify:s("densify",async()=>{let{execute:e}=await r.e(1735).then(()=>r(91735)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547));return(r,o,i,a)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),i,0,0),null))}),geodeticDensify:s("geodeticDensify",async()=>{let{load:e,execute:t}=await r.e(7085).then(()=>r(77085)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l,u)=>(a=s(i(l),o,a),(0,n.toGeometry)(t((0,n.fromGeometryToGXGeometry)(e),a,(0,n.fromSpatialReference)(r),u),null))}),generalize:s("generalize",async()=>{let{execute:e}=await r.e(787).then(()=>r(70787)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547));return(r,o,i,a,l)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),i,l),null))}),buffer:s("buffer",async()=>{let{execute:e}=await Promise.all([r.e(6870),r.e(5227)]).then(()=>r(15227)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547));return(r,o,i,a)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(o),i),null))}),geodesicBuffer:s("geodesicBuffer",async()=>{let{load:e,execute:t}=await r.e(4988).then(()=>r(24988)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l,u)=>(a=s(i(l),o,a),(0,n.toGeometry)(t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),u,a,NaN),null))}),offset:s("offset",async()=>{let{execute:e}=await Promise.all([r.e(6870),r.e(6070)]).then(()=>r(66070)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547));return(r,o,i,a,l,u,m)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(o),i,l,u,m),null))}),rotate:s("rotate",async()=>{let{executeRotate:e}=await r.e(4791).then(()=>r(64791));return(t,r,s,o)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),r,s,o),null)}),centroid:s("centroid",async()=>{let{OperatorCentroid2D:e}=await r.e(9447).then(()=>r(9447)),t=new e;return e=>{let r=t.execute((0,n.fromGeometryToGXGeometry)(e),null);return r.isNAN()?null:{x:r.x,y:r.y}}}),labelPoint:s("labelPoint",async()=>{let{execute:e}=await r.e(4945).then(()=>r(54945));return t=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t)),null)}),multiPartToSinglePart:s("multiPartToSinglePart",async()=>{let{executeMany:e}=await r.e(3193).then(()=>r(33193));return(t,r)=>e([(0,n.fromGeometryToGXGeometry)(t)],(0,n.fromSpatialReference)(r)).map(e=>(0,n.toGeometry)(e,null)).filter(e=>null!=e)}),isSelfIntersecting:s("isSelfIntersecting",async()=>{let{executeIsSelfIntersecting:e}=await r.e(3755).then(()=>r(83755));return(t,r)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r))}),isSimple:s("isSimple",async()=>{let{isSimpleAsFeature:e}=await r.e(1150).then(()=>r(81150));return(t,r)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r),!1)}),simplify:s("simplify",async()=>{let{execute:e}=await r.e(1150).then(()=>r(81150));return(t,r)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r),!1),null)}),convexHull:s("convexHull",async()=>{let{execute:e}=await r.e(1577).then(()=>r(91577));return t=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t)),null)}),getNearestCoordinate:s("getNearestCoordinate",async()=>{let{executeNearestCoordinate:e}=await r.e(6556).then(()=>r(6556));return(t,r)=>{let s=e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r));return null==s?null:{...s,coordinate:(0,n.toGeometry)(s.coordinate,null)}}}),getNearestVertex:s("getNearestVertex",async()=>{let{executeNearestVertex:e}=await r.e(4064).then(()=>r(64064));return(t,r)=>{let s=e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r));return null==s?null:{...s,coordinate:(0,n.toGeometry)(s.coordinate,null)}}})};function i(e,t){let r=o[e];return r.loaded?r.execute.apply(void 0,t):r.load().then(()=>i(e,t))}},61691(e,t,r){r.d(t,{G:()=>n});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>s});var n=r(61691);class s extends n.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){let e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},34304(e,t,r){r.d(t,{DF:()=>l,FD:()=>s,ct:()=>u});let n=1e-6;function s(){return n}const o=Math.random,i=Math.PI/180,a=180/Math.PI;function l(e){return e*i}function u(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(e,t){return Math.abs(e-t)<=n*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:s,setEpsilon:function(e){n=e},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"})),r.d(t,["Ov",0,o])},69397(e,t,r){r.d(t,{Qf:()=>a,Qh:()=>o,lM:()=>s});var n=r(34275);function s(e){if(!e)return 0;let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=i(e[r],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=m;for(let n=0;n<t;n++)r+=i(e[n]);return r}(e);let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=i(e[r]));return t}function i(e,t=!0){switch(typeof e){case"object":return t?o(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+h:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return m+e.length*t}const u=32,m=16,h=145},87992(e,t,r){r.d(t,{JR:()=>T,ME:()=>w,MY:()=>R,NO:()=>v,Nh:()=>M,V2:()=>P,_s:()=>A,e6:()=>F,gh:()=>S,jm:()=>C,tr:()=>I,uX:()=>g});var n=r(32198),s=r(16930),o=r(19419),i=r(60408),a=r(21325),l=r(513),u=r(50954),m=r(79567),h=r(52006),f=r(49663),c=r(46068),y=r(92722);class g{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:o,partCount:i,partOffsets:a,partFlags:l,segmentFlags:u,segmentIndices:m,segmentParams:h,segmentCountArc:f,segmentCountBezier:c}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=o,this.partCount=i,this.partOffsets=a,this.partFlags=l,this.segmentFlags=u,this.segmentIndices=m,this.segmentParams=h,this.segmentCountArc=f,this.segmentCountBezier=c}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-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 e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:n,hasM:s,segmentCountArc:o,segmentCountBezier:i}=this,a=P(e,t,r,n,s,this.hasCurves(),o,i);a.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:u,vertexM:m}=this;if(a.vertexXY.set(l.subarray(0,2*t),0),a.vertexZ?.set(u.subarray(0,t),0),a.vertexM?.set(m.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,r+1)),a.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(r.subarray(0,t),0),a.segmentParams.set(n.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,a.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(e){this.geometry=e,this.value=new d(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(e){this.geometry=e,this.index=-1,this._readVertex=O(e),this._segments=new x(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class x{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new G(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class G{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=O(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],n=t[r++],s=t[r++],o=t[r++];return{b:[this.end,[e,n],[s,o]]}}let n=t[r++],s=t[r++],o=t[r++],i=t[r++],a=t[r++],l=t[r++];r++,r++;let u=t[r++],m=t[r++];if(!(4&n)&&1===o)return{c:[this.end,[u,m]]};let h=2&n?0:1,f=1&n?0:1;return{a:[this.end,[a,l],h,f,i,s,o]}}}function v(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,o.Ie)(),(0,n.mS)(r,new X(e,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(t,function(e){let t,{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:a}=e,l=E(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new X(e,["vertexZ","vertexM"]),!1);let s=(0,o.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,m.e)(s,e,r),e=(0,h.yP)(r)}let[i,a,u,f]=s;t={xmin:i,ymin:a,xmax:u,ymax:f,spatialReference:l}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}else{let e,n,o,i;e=n=1/0,o=i=-1/0;for(let t=0;t<r;++t){let r=s[2*t],a=s[2*t+1];e=Math.min(e,r),o=Math.max(o,r),n=Math.min(n,a),i=Math.max(i,a)}t={xmin:e,ymin:n,xmax:o,ymax:i,spatialReference:l}}if(i){let e=1/0,r=-1/0;for(let t of i)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(a){let e=1/0,r=-1/0;for(let t of a)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}function w(e){let t,r,n;if((0,i.fT)(e)){n="point";let{x:s,y:o,z:i,m:a}=e,l=[s,o];null!=i&&l.push(i),null!=a&&l.push(a),r=[[l]],t=1}else(0,i.U9)(e)?(n="multipoint",r=[e.points],t=e.points.length):(0,i.Rg)(e)?(n="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(n="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,b(t[0],(0,h.yP)(t.at(-1)))&&--e),e),0));let s=P(n,t,n.includes("point")?0:r.length,(0,i.Pv)(e),(0,i.W0)(e),(0,h.Ed)(e)),{hasZ:o,hasM:a,vertexXY:l,vertexZ:u,vertexM:m}=s;function f(e){l[2*y]=e[0],l[2*y+1]=e[1],o&&(u[y]=e[2]),a&&(m[y]=e[c]),++y}s.spatialReference=e.spatialReference??void 0;let c=s.hasZ?3:2,y=0;if(!s.isMultipart()){if(!o&&!a){for(let[e,t]of r[0])l[2*y]=e,l[2*y+1]=t,++y;return s}for(let e of r[0])f(e);return s}let g="polygon"===n,{partOffsets:p}=s,d=0;if(!(0,h.Ed)(e)){for(let e of r){if(p[d++]=y,0===e.length)continue;let t=e.length;if(g&&b(e[0],e.at(-1))&&--t,o||a)for(let r=0;r<t;++r)f(e[r]);else for(let r=0;r<t;++r){let[t,n]=e[r];l[2*y]=t,l[2*y+1]=n,++y}}return p[d]=y,s}function x(e){let t=G+e;if(t<=(s.segmentParams?.length??0))return;let r=t*V;r=20*Math.ceil(r/20);let n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let G=0;for(let e of r){if(s.partOffsets[d++]=y,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let n=e[t];f(r);let o=y-1;(0,h.wY)(n)?(x(10),++s.segmentCountArc,G=A(r,n,s,o,G),r=n.a[0]):(0,h.DA)(n)?(x(10),++s.segmentCountArc,G=_(r,n,s,o,G),r=n.a[0]):(0,h.aO)(n)?(x(10),++s.segmentCountArc,G=F(r,n,s,o,G),r=n.c[0]):(0,h.n1)(n)?(x(4),++s.segmentCountBezier,G=I(0,n,s,o,G),r=n.b[0]):r=n}g&&b(t,r)||f(r)}return s.partOffsets[d]=y,s}function S(e){let t=O(e),{vertexCount:r,partCount:n,hasZ:s,hasM:o}=e,i=E(e),a=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:i}}let n=[];for(;a<r;)n.push(t(a++));return{points:n,spatialReference:i,hasZ:s,hasM:o}}if(!e.hasCurves()){let r=[];for(let s=0;s<n;++s){let n=!!(1&e.partFlags[s]),o=e.partOffsets[s+1],i=[];for(;a<o;)i.push(t(a++));n&&i.length>0&&i.push([...i[0]]),r.push(i)}return"polygon"===e.type?{rings:r,hasZ:s,hasM:o,spatialReference:i}:{paths:r,hasZ:s,hasM:o,spatialReference:i}}let l=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);l.push(e)}return"polygon"===e.type?{rings:[],curveRings:l,hasZ:s,hasM:o,spatialReference:i}:{paths:[],curvePaths:l,hasZ:s,hasM:o,spatialReference:i}}function M(e,{lengths:t,coords:r,hasZ:n,hasM:s},o){let i=e.includes("point")?0:t.length,a="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?i:0);n??=!1,s??=!1;let u=P(e,l,i,n,s,!1,0,0);if(u.spatialReference=o??void 0,!u.isMultipart()){for(let e=0,t=0;e<l;++e)u.vertexXY[2*e]=r[t++],u.vertexXY[2*e+1]=r[t++],n&&(u.vertexZ[e]=r[t++]),s&&(u.vertexM[e]=r[t++]);return u}let m=2+Number(n)+Number(s),h=0,f=0;u.partOffsets[0]=0;for(let e of t){let t=u.partOffsets[f],o=t+e-Number(a);u.partOffsets[++f]=o;for(let e=t;e<o;++e)u.vertexXY[2*e]=r[h++],u.vertexXY[2*e+1]=r[h++],n&&(u.vertexZ[e]=r[h++]),s&&(u.vertexM[e]=r[h++]);a&&(h+=m)}return u}function T({type:e,vertexCount:t,vertexXY:r,vertexZ:n,vertexM:s,partCount:o,partOffsets:i,partFlags:a,hasZ:l,hasM:u}){let m=new y.A([],[],l,u);o=Math.max(o,1);let h=0;for(let e=0;e<o;++e){let o=i?.[e+1]??t,f=m.coords.length;for(let e=h;e<o;++e)m.coords.push(r[2*e],r[2*e+1]),l&&m.coords.push(n[e]),u&&m.coords.push(s[e]);if(a&&1&a[e]){let e=h;m.coords.push(r[2*e],r[2*e+1]),l&&m.coords.push(n[e]),u&&m.coords.push(s[e])}m.lengths.push((m.coords.length-f)/m.stride),h=o}return"point"===e&&(m.lengths.length=0),m}function C(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function R(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let n=e.getLatestID();(n<=0||n===r)&&(n=void 0);let s=e.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:t};let o=s.isCustomWkid()?0:s.getOldID();if(o<=0)return{wkt:t};let i=e.getLatestVerticalID();return(i<=0||i===o)&&(i=void 0),{wkid:r,wkt:t,latestWkid:n,vcsWkid:o,latestVcsWkid:i}}(e.getSpatialReference()),e=e.getGeometry()),new g({...e.toFlatGeometry(),spatialReference:t})}class X{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function E({spatialReference:e}){return e instanceof s.A?e.toJSON():e}function O({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?n=>[e[2*n],e[2*n+1],t[n],r[n]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function b(e,t){return e.every((e,r)=>e===t[r])}function P(e,t,r,n,s,o,i,a){i??=0,a??=0;let l=new g({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:a}),u=2*Float64Array.BYTES_PER_ELEMENT*t;n&&(u+=Float64Array.BYTES_PER_ELEMENT*t),s&&(u+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),o&&(u+=t*Int8Array.BYTES_PER_ELEMENT,u+=t*Int32Array.BYTES_PER_ELEMENT,u+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let m=new ArrayBuffer(u),h=0;return l.vertexXY=new Float64Array(m,h,2*t),h+=l.vertexXY.byteLength,n&&(l.vertexZ=new Float64Array(m,h,t),h+=l.vertexZ.byteLength),s&&(l.vertexM=new Float64Array(m,h,t),h+=l.vertexM.byteLength),o&&(l.segmentParams=new Float64Array(m,h,l.segmentParamCount),h+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(m,h,t),l.segmentIndices.fill(Y),h+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(m,h,r+1),h+=l.partOffsets.byteLength,l.partFlags=new Int8Array(m,h,r+1),h+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,r).fill(1)),o&&(l.segmentFlags=new Int8Array(m,h,t),l.segmentFlags.fill(1),h+=l.segmentFlags.byteLength),l}function A(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){r[o]=4,n[o]=i;let[a,[l,u],m,h,f,y,g]=t.a,p=4;h||(p|=1),m||(p|=2);let d=(0,c.SW)(e,t),[x,G]=(0,c.Uk)(d,.5);return s[i++]=p,s[i++]=y,s[i++]=g,s[i++]=f,s[i++]=l,s[i++]=u,s[i++]=d.u2-d.u1,s[i++]=d.u1,s[i++]=x,s[i++]=G,i}function _(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){r[o]=4,n[o]=i;let a=(0,f.io)(e,t);return Z(a,4,...(0,l.mq)(a,.5),s,i)}function F(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){return r[o]=4,n[o]=i,Z((0,u.pM)(e,t),0,...t.c[1],s,i)}function Z(e,t,r,n,s,o){let{cx:i,cy:a,thetaStart:l,thetaEnd:u,radius:m}=e;return l>u||(t|=1),Math.abs(u-l)<=Math.PI||(t|=2),s[o++]=t,s[o++]=m,s[o++]=1,s[o++]=0,s[o++]=i,s[o++]=a,s[o++]=u-l,s[o++]=l,s[o++]=r,s[o++]=n,o}function I(e,{b:[t,[r,n],[s,o]]},{segmentFlags:i,segmentIndices:a,segmentParams:l},u,m){return i[u]=2,a[u]=m,l[m++]=r,l[m++]=n,l[m++]=s,l[m++]=o,m}const V=1.61803,Y=-1},52006(e,t,r){function n(e){return"curveRings"in e&&!!e.curveRings?.length||"curvePaths"in e&&!!e.curvePaths?.length}function s(e){return"curveRings"in e?e.curveRings:e.curvePaths}function o(e){return"b"in e}function i(e){return"c"in e}function a(e){return Array.isArray(e)}function l(e){return"a"in e}function u(e){return"a"in e&&4===e.a.length}function m(e){return"a"in e&&7===e.a.length}function h(e,t){return s(e).flat().some(e=>function(e,t){return!(a(e)||(o(e)?t.has("cubic-bezier"):i(e)?t.has("circular-arc"):!u(e)&&!m(e)||t.has("elliptic-arc")))}(e,t))}function f(e){return a(e)?e:o(e)?e.b[0]:i(e)?e.c[0]:e.a[0]}function c(e){if(o(e)){let[t,r,n]=e.b;return{b:[[...t],[...r],[...n]]}}if(i(e)){let[t,r]=e.c;return{c:[[...t],[...r]]}}if(a(e))return[...e];if(u(e)){let[t,r,n,s]=e.a;return{a:[[...t],[...r],n,s]}}if(m(e)){let[t,r,n,s,o,i,a]=e.a;return{a:[[...t],[...r],n,s,o,i,a]}}return e}r.d(t,{DA:()=>u,Ed:()=>n,FD:()=>s,FG:()=>l,V8:()=>h,Xq:()=>a,aO:()=>i,n1:()=>o,tk:()=>c,wY:()=>m,yP:()=>f}),r(4576)},60408(e,t,r){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function s(e){return void 0!==e.points}function o(e){return void 0!==e.x&&void 0!==e.y}function i(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?o(e)?"esriGeometryPoint":i(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function m(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>m,Rg:()=>i,U9:()=>s,W0:()=>h,ZC:()=>n,fT:()=>o,uW:()=>l})},92722(e,t,r){r.d(t,{A:()=>s});var n=r(69397);class s{constructor(e=[],t=[],r=!1,n=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:n}){return new s(e,t,r||!1,n||!1)}static fromRect([e,t,r,n]){let o=r-e,i=n-t;return new s([5],[e,t,o,0,0,i,-o,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let e=0,t=0;for(let r of this.lengths){if(r<3)continue;let{stride:n}=this,s=this.coords[n*t],o=this.coords[n*t+1];for(let i=1;i<r;i+=1){let r=n*(t+i),a=this.coords[r],l=this.coords[r+1];e+=-.5*(a-s)*(l+o),s=a,o=l}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);let{stride:r}=this;for(let n of this.lengths){for(let s=0;s<n;s++){let n=r*(t+s);e(this.coords[n],this.coords[n+1])}t+=n}}deltaDecode(){let e=this.clone(),{coords:t,lengths:r}=e,n=0,{stride:s}=this;for(let e of r){for(let r=1;r<e;r++){let e=s*(n+r);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}n+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let t=Array.from(this.lengths),{stride:r,size:n}=this,o=this.coords.slice(0,n*r);return e?(e.set(o),new s(t,e,this.hasZ,this.hasM)):new s(t,Array.from(o),this.hasZ,this.hasM)}justXY(){let{stride:e,size:t}=this;if(2===e)return this;let r=Array(t*e);for(let t=0,n=0;t<r.length;t+=e)r[n++]=this.coords[t],r[n++]=this.coords[t+1];return new s(this.lengths,r,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[928],{57582(t,e,i){i.d(e,{af:()=>n,rK:()=>r}),i(92602);const s="arial-unicode-ms";function n(t){if(!t)return s;let e=t.toLowerCase().split(" ").join("-");switch(e){case"serif":return"noto-serif";case"sans-serif":return"arial-unicode-ms";case"monospace":return"ubuntu-mono";case"fantasy":return"cabin-sketch";case"cursive":return"redressed";default:return e}}function r(t){let e=function(t){if(!t.weight)return"";switch(t.weight.toLowerCase()){case"bold":case"bolder":return"-bold"}return""}(t)+function(t){if(!t.style)return"";switch(t.style.toLowerCase()){case"italic":case"oblique":return"-italic"}return""}(t);return n(t.family)+(e.length>0?e:"-regular")}new Map,new Set,i.d(e,["Vb",0,s])},85560(t,e,i){function s(){let t=new Float32Array(6);return t[0]=1,t[3]=1,t}function n(t,e,i,s){let n=e[s],r=e[s+1];t[s]=i[0]*n+i[2]*r+i[4],t[s+1]=i[1]*n+i[3]*r+i[5]}i.d(e,{vt:()=>s}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){let e=new Float32Array(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},create:s,fromValues:function(t,e,i,s,n,r){let h=new Float32Array(6);return h[0]=t,h[1]=e,h[2]=i,h[3]=s,h[4]=n,h[5]=r,h},transform:n,transformMany:function(t,e,i,s=0,r=0,h=2){let a=r||e.length/h;for(let r=s;r<a;r++)n(t,e,i,r*h)}},Symbol.toStringTag,{value:"Module"}))},88340(t,e,i){function s(){return new Float32Array(2)}function n(t,e){let i=new Float32Array(2);return i[0]=t,i[1]=e,i}function r(){return s()}function h(){return n(1,1)}function a(){return n(1,0)}function o(){return n(0,1)}i.d(e,{fA:()=>n,vt:()=>s});const l=r(),u=h(),c=a(),_=o();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:_,ZEROS:l,clone:function(t){let e=new Float32Array(2);return e[0]=t[0],e[1]=t[1],e},create:s,fromValues:n,ones:h,unitX:a,unitY:o,zeros:r},Symbol.toStringTag,{value:"Module"})),i.d(e,["Un",0,u,"uY",0,l])},16905(t,e,i){i.d(e,{$0:()=>l,B8:()=>r,D_:()=>n,Tl:()=>o,e$:()=>a,lw:()=>h});var s=i(34304);function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function r(t,e){let i=e[0],s=e[1],n=e[2],r=e[3],h=e[4],a=e[5],o=i*r-s*n;return o?(o=1/o,t[0]=r*o,t[1]=-s*o,t[2]=-n*o,t[3]=i*o,t[4]=(n*a-r*h)*o,t[5]=(s*h-i*a)*o,t):null}function h(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],o=e[5],l=i[0],u=i[1],c=i[2],_=i[3],p=i[4],f=i[5];return t[0]=s*l+r*u,t[1]=n*l+h*u,t[2]=s*c+r*_,t[3]=n*c+h*_,t[4]=s*p+r*f+a,t[5]=n*p+h*f+o,t}function a(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],o=e[5],l=Math.sin(i),u=Math.cos(i);return t[0]=s*u+r*l,t[1]=n*u+h*l,t[2]=s*-l+r*u,t[3]=n*-l+h*u,t[4]=a,t[5]=o,t}function o(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],o=e[5],l=i[0],u=i[1];return t[0]=s,t[1]=n,t[2]=r,t[3]=h,t[4]=s*l+r*u+a,t[5]=n*l+h*u+o,t}function l(t,e){let i=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=i,t[2]=-i,t[3]=s,t[4]=0,t[5]=0,t}function u(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t[4]=e[4]-i[4],t[5]=e[5]-i[5],t}const c=h,_=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t[4]=e[4]+i[4],t[5]=e[5]+i[5],t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},determinant:function(t){return t[0]*t[3]-t[1]*t[2]},equals:function(t,e){let i=t[0],n=t[1],r=t[2],h=t[3],a=t[4],o=t[5],l=e[0],u=e[1],c=e[2],_=e[3],p=e[4],f=e[5],m=(0,s.FD)();return Math.abs(i-l)<=m*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(n-u)<=m*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-c)<=m*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(h-_)<=m*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(a-p)<=m*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(o-f)<=m*Math.max(1,Math.abs(o),Math.abs(f))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+1)},fromRotation:l,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},identity:n,invert:r,mul:c,multiply:h,multiplyScalar:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*i,t[5]=e[5]*i,t},multiplyScalarAndAdd:function(t,e,i,s){return t[0]=e[0]+i[0]*s,t[1]=e[1]+i[1]*s,t[2]=e[2]+i[2]*s,t[3]=e[3]+i[3]*s,t[4]=e[4]+i[4]*s,t[5]=e[5]+i[5]*s,t},rotate:a,scale:function(t,e,i){let s=e[0],n=e[1],r=e[2],h=e[3],a=e[4],o=e[5],l=i[0],u=i[1];return t[0]=s*l,t[1]=n*l,t[2]=r*u,t[3]=h*u,t[4]=a,t[5]=o,t},set:function(t,e,i,s,n,r,h){return t[0]=e,t[1]=i,t[2]=s,t[3]=n,t[4]=r,t[5]=h,t},str:function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},sub:_,subtract:u,translate:o},Symbol.toStringTag,{value:"Module"}))},36745(t,e,i){i.d(e,{z:()=>a});var s=i(4718),n=i(51118),r=i(60408),h=i(92722);class a{static fromOptimized(t,e,i=1){return(new o).initialize(t,e,i)}static fromJSON(t){let[e,i]=u(t),s=(0,r.Pv)(t),n=(0,r.W0)(t);return(new c).initialize(e,i,s,n,1)}static fromOptimizedCIM(t,e,i=1){return(new _).initialize(t,e,i)}static fromJSONCIM(t,e=1){let[i,s]=u(t),n=(0,r.Pv)(t),h=(0,r.W0)(t);return(new p).initialize(i,s,n,h,e)}static fromFeatureSetReader(t){let e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimized(e,i):null}static fromFeatureSetReaderCIM(t){let e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimizedCIM(e,i):null}static createEmptyOptimized(t,e=!1,i=!1,s=1){return(new _).initialize(new h.A([],[],e,i),t,s)}static createEmptyJSON(t,e=!1,i=!1){return(new c).initialize([],t,e,i,1)}static createEmptyOptimizedCIM(t,e=!1,i=!1,s=1){return(new _).initialize(new h.A([],[],e,i),t,s)}static createEmptyJSONCIM(t,e=!1,i=!1,s=1){return(new p).initialize([],t,e,i,s)}asJSON(){let t=(0,n.x)(this),{hasZ:e,hasM:i}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:i}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:i?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:i}:{paths:t,hasZ:e,hasM:i}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,i=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;let s=t,n=e;for(;this.nextPoint();)i+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return i+=(t-s)*(e+n),-.5*i}invertY(){this.yFactor*=-1}}class o extends a{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,i){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=i,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){let e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){let t=this._end,e=this._geometry.coords,i=this._pathOffset;return(new o).initialize(new h.A([this.pathSize],e.slice(i,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){let t=this._end,e=this._stride,i=this._geometry.coords,s=0;for(let n=this._pathOffset+e;n<t;n+=e){let t=i[n-e],r=i[n-e+1],h=i[n]-t,a=i[n+1]-r;s+=Math.sqrt(h*h+a*a)}return s}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(let e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){let e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){let t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){let t=this._geometry.coords,e=this._pathOffset,i=this._end-this._stride;for(let s=0;s<this._stride;s++)if(t[e+s]!==t[i+s])return!1;return!0}clone(){return(new o).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){let{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){let t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function l(t){let e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function u(t){return(0,r.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,r.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,r.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,r.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,r.fT)(t)?[[[l(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class c extends a{initialize(t,e,i,s,n){return this._paths=t,this.geometryType=e,this.hasZ=i,this.hasM=s,this._pathIndex=this._pointIndex=-1,this.yFactor=n,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){let t=this._currentPath.length,e=this._currentPath,i=0;for(let s=1;s<t;s++){let t=e[s-1],n=e[s],r=t[0],h=t[1],a=n[0]-r,o=n[1]-h;i+=Math.sqrt(a*a+o*o)}return i}startPath(){this._paths.push([])}getCurrentPath(){return(new c).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){let e=(0,n.x)(t);for(let t of e)this.pushPath(t)}asOptimized(){let{hasZ:t,hasM:e}=this,i=new h.A([],[],t,e),{coords:s,lengths:n}=i;if("esriGeometryPoint"===this.geometryType)s.push(...this._paths[0][0]),n.length=0;else for(let i of this._paths){for(let n of i)s.push(n[0]),s.push(n[1]*this.yFactor),t&&s.push(n[2]),e&&s.push(n[this._mIndex]);n.push(i.length)}return i}isClosed(){let t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}clone(){return(new c).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class _ extends o{initialize(t,e,i){return super.initialize(t,e,i),this._controlPoints||=this._controlPoints=Array(this.totalSize).fill(void 0).map(t=>new Set),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){let t=(new _).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class p extends c{initialize(t,e,i,s,n){return super.initialize(t,e,i,s,n)}clone(){return(new p).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},78957(t,e,i){i.d(e,{d:()=>u,R:()=>M});class s{constructor(t=n){this._data=[],this._compare=t}get size(){return this._data.length}enqueue(t){if(null==t)return;let{_data:e,_compare:i}=this;e.push(t);let s=e.length-1>>>0,n=e[s];for(;s>0;){let t=s-1>>1,r=e[t];if(!(i(r,n)<=0))break;e[t]=n,e[s]=r,s=t}}dequeue(){let{_data:t,_compare:e}=this,i=t[0],s=t.pop();if(0===t.length)return i;t[0]=s;let n,r,h=0,a=t.length,o=t[0],l=null;for(;;){let i=2*h+1,s=2*h+2;if(l=null,i<a&&(n=t[i],e(n,o)>0&&(l=i)),s<a&&(r=t[s],(null===l&&e(r,o)<=0||null!==l&&e(r,n)<=0)&&(l=s)),null===l)break;t[h]=t[l],t[l]=o,h=l}return i}}const n=(t,e)=>t<e?-1:+(t>e);var r=i(19419),h=i(537),a=i(12359),o=i(95108),l=i(12176);function u(t){if(0===t.totalSize)return null;let e=(0,h.z8)(t);if(!e)return null;let i=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19,s=0,n=0;t.reset();for(let e=0;t.nextPath();e++){let i=t.getCurrentRingArea();i>n&&(n=i,s=e)}if(t.seekPath(s),0===t.pathSize)return null;t.seekPathStart();let o=(0,h.B$)(t);if(Math.abs(n)<=2*i*i)return[(o[0]+o[2])/2,(o[1]+o[3])/2];t.seekPathStart();let l=(0,a.w2)(t,(0,r.vt)());if(null===l)return null;if(t.totalPoints<4)return l;let u=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],f=[NaN,NaN,NaN,NaN],m=[NaN,NaN,NaN,NaN],d=!1,P=_(l,t,!0);0===P.distance&&(d=!0,u[0][0]=l[0],u[0][1]=l[1],P=_(l,t,!1)),f[0]=P.distance,m[0]=0;let M=[NaN,NaN],b=!1,C=.25,w=-1,S=NaN;do{if(S=NaN,u[1]=p(t,g(o[0],o[2],C),0,e),!isNaN(u[1][0])&&!isNaN(u[1][1])&&(P=_(u[1],t,!1),S=P.distance),!isNaN(S)&&S>i&&c(u[1],t))b=!0,f[1]=S,m[1]=x(u[1],l);else if(!isNaN(S)&&S>w&&(w=S,M[0]=u[1][0],M[1]=u[1][1]),C-=.01,C<.1){if(!(w>=0))break;b=!0,f[1]=w,u[1][0]=M[0],u[1][1]=M[1],m[1]=x(u[1],l)}}while(!b);b=!1,C=.5,w=-1;let v=.01,z=1;do{if(S=NaN,u[2]=p(t,g(o[0],o[2],C),0,e),!isNaN(u[2][0])&&!isNaN(u[2][1])&&(P=_(u[2],t,!1),S=P.distance),!isNaN(S)&&S>i&&c(u[2],t))b=!0,f[2]=S,m[2]=x(u[2],l);else if(!isNaN(S)&&S>w)w=S,M[0]=u[2][0],M[1]=u[2][1];else if(S>w&&(w=S,M[0]=u[2][0],M[1]=u[2][1]),C=.5+v*z,v+=.01,z*=-1,C<.3||C>.7){if(!(w>=0))break;b=!0,f[2]=w,u[2][0]=M[0],u[2][1]=M[1],m[2]=x(u[2],l)}}while(!b);b=!1,C=.75,w=-1;do{if(S=NaN,u[3]=p(t,g(o[0],o[2],C),0,e),!isNaN(u[3][0])&&!isNaN(u[3][1])&&(P=_(u[3],t,!1),S=P.distance),!isNaN(S)&&S>i&&c(u[3],t))b=!0,f[3]=S,m[3]=x(u[3],l);else if(S>w&&(w=S,M[0]=u[3][0],M[1]=u[3][1]),C+=.01,C>.9){if(!(w>=0))break;b=!0,f[3]=w,u[3][0]=M[0],u[3][1]=M[1],m[3]=x(u[3],l)}}while(!b);let I,A=[0,1,2,3],k=+!d;for(let t=k;t<4;t++)for(let t=k;t<3;t++){let e=m[t],i=m[t+1];y(e,i)>0&&(I=A[t],A[t]=A[t+1],A[t+1]=I,m[t]=i,m[t+1]=e)}let T=k,E=0,L=0;for(let t=k;t<4;t++){switch(t){case 0:L=2*f[A[t]];break;case 1:L=1.66666666*f[A[t]];break;case 2:L=1.33333333*f[A[t]];break;case 3:L=f[A[t]]}L>E&&(E=L,T=A[t])}return u[T]}function c(t,e){let i,s,n,r,h=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(i=e.x,s=e.y;e.nextPoint();i=n,s=r)n=e.x,r=e.y,s>t[1]!=r>t[1]&&((n-i)*(t[1]-s)-(r-s)*(t[0]-i)>0?h++:h--);return 0!==h}function _(t,e,i){if(i&&c(t,e))return{coord:t,distance:0};let s=1/0,n=0,r=0,h=[0,0],a=[0,0],l=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(h[0]=e.x,h[1]=e.y;e.nextPoint();h=a){a=[e.x,e.y],(0,o.gR)(l,t,h,a);let i=x(t,l);i<s&&(s=i,n=l[0],r=l[1])}return{coord:[n,r],distance:Math.sqrt(s)}}function p(t,e,i,s){let n=[e,0],h=1/0,a=1/0,o=!1,u=!1,c=[[e,s[1]-1],[e,s[3]+1]],_=[0,0],p=[0,0],d=[0,0],g=[[0,0],[0,0]],x=(0,r.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(g[0][0]=t.x,g[0][1]=t.y;t.nextPoint();g[0][0]=g[1][0],g[0][1]=g[1][1]){if(g[1][0]=t.x,g[1][1]=t.y,null===f(x,g)||(p[0]=c[0][0],p[1]=c[0][1],d[0]=c[1][0],d[1]=c[1][1],0===m(x,p,d))||!(0,l.Ql)(c[0],c[1],g[0],g[1],_))continue;let e=_[1];h>a?e<h&&(h=e,o=!0):e<a&&(a=e,u=!0)}return o&&u?n[1]=(h+a)/2:n[0]=n[1]=NaN,n}function f(t,e){if(e.length<2)return null;t||=(0,r.vt)();let[i,s]=e[0],[n,h]=e[1];return t[0]=Math.min(i,n),t[1]=Math.min(s,h),t[2]=Math.max(i,n),t[3]=Math.max(s,h),t}function m(t,e,i){let s=d(e,t),n=d(i,t),r=t[0],h=t[1],a=t[2],o=t[3];if(s&n)return 0;if(!(s|n))return 4;let l=!!s|(n?2:0);do{let l=i[0]-e[0],u=i[1]-e[1];if(l>u)3&s?(1&s?(e[1]+=u*(r-e[0])/l,e[0]=r):(e[1]+=u*(a-e[0])/l,e[0]=a),s=d(e,t)):3&n?(1&n?(i[1]+=u*(r-i[0])/l,i[0]=r):(i[1]+=u*(a-i[0])/l,i[0]=a),n=d(i,t)):s?(4&s?(e[0]+=l*(h-e[1])/u,e[1]=h):(e[0]+=l*(o-e[1])/u,e[1]=o),s=d(e,t)):(4&n?(i[0]+=l*(h-i[1])/u,i[1]=h):(i[0]+=l*(o-i[1])/u,i[1]=o),n=d(i,t));else if(12&s?(4&s?(e[0]+=l*(h-e[1])/u,e[1]=h):(e[0]+=l*(o-e[1])/u,e[1]=o),s=d(e,t)):12&n?(4&n?(i[0]+=l*(h-i[1])/u,i[1]=h):(i[0]+=l*(o-i[1])/u,i[1]=o),n=d(i,t)):s?(1&s?(e[1]+=u*(r-e[0])/l,e[0]=r):(e[1]+=u*(a-e[0])/l,e[0]=a),s=d(e,t)):(1&n?(i[1]+=u*(r-i[0])/l,i[0]=r):(i[1]+=u*(a-i[0])/l,i[0]=a),n=d(i,t)),s&n)return 0}while(s|n);return l}function d(t,e){return+(t[0]<e[0])|(t[0]>e[2])<<1|(t[1]<e[1])<<2|(t[1]>e[3])<<3}function g(t,e,i){return t+(e-t)*i}function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function y(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;let i=isNaN(t),s=isNaN(e);return i<s?-1:+(i>s)}class P{constructor(t,e,i,s){this.x=t,this.y=e,this.cellSize=i,this.distancefromCellCenter=(0,o.Xf)(t,e,s),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function M(t){if(!t.nextPath()||!t.pathSize)return null;let e=(0,h.B$)(t),i=e[2]-e[0],n=e[3]-e[1];if(0===i||0===n)return[e[0]+i/2,e[1]+n/2];let r=Math.max(Math.min(i,n)/100,1),o=new s((t,e)=>e.maxDistanceToPolygon-t.maxDistanceToPolygon),l=Math.min(i,n),u=l/2,c=0,_=0;for(c=e[0];c<e[2];c+=l)for(_=e[1];_<e[3];_+=l)o.enqueue(new P(c+u,_+u,u,t));t.reset(),t.nextPath();let p=(0,a.IK)(t);if(null===p)return null;let f,m=new P(p[0],p[1],0,t);for(;o.size>0;)f=o.dequeue(),f.distancefromCellCenter>m.distancefromCellCenter&&(m=f),!(f.maxDistanceToPolygon-m.distancefromCellCenter<=r)&&(u=f.cellSize/2,o.enqueue(new P(f.x-u,f.y-u,u,t)),o.enqueue(new P(f.x+u,f.y-u,u,t)),o.enqueue(new P(f.x-u,f.y+u,u,t)),o.enqueue(new P(f.x+u,f.y+u,u,t)));return[m.x,m.y]}},35833(t,e,i){i.d(e,{ai:()=>d,g1:()=>g,kT:()=>x,qc:()=>y});var s=i(18370),n=i(36745),r=i(6774);const h=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(1797)]).then(()=>i(46160))),a=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6491)]).then(()=>i(55666))),o=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(8679)]).then(()=>i(51190))),l=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(837)]).then(()=>i(97528))),u=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(3030)]).then(()=>i(50795))),c=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6870),i.e(6936)]).then(()=>i(15605))),_=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(3456)]).then(()=>i(3637))),p=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(4790)]).then(()=>i(67520))),f=(0,s.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1948)]).then(()=>i(83299)));let m;function d(t){switch(t.type){case"CIMGeometricEffectDonut":case"CIMGeometricEffectBuffer":return h.getImportPromise();case"CIMGeometricEffectEnclosingPolygon":return a.getImportPromise();case"CIMGeometricEffectOffset":return Promise.all([p.getImportPromise(),c.getImportPromise(),u.getImportPromise()]);case"CIMGeometricEffectControlMeasureLine":return c.getImportPromise();case"CIMGeometricEffectTaperedPolygon":return Promise.all([_.getImportPromise(),o.getImportPromise(),l.getImportPromise()]);default:return Promise.resolve()}}function g(t){return"CIMMarkerPlacementAtMeasuredUnits"===t.type?f.getImportPromise():Promise.resolve()}class x{constructor(t){this._geometry=t}next(){let t=this._geometry;return this._geometry=null,t}}function y(t,e,i){if(!t)return null;m||=new r.O3(0,0,0,1);let s,h,a=i?-1:1,o="esriGeometryPolygon"===t.geometryType,l=o?3:2,u=o?3:2;for(m.reset(l),m.setPixelMargin(e+1),m.setExtent(512);t.nextPath();)if(!(t.pathSize<u)){for(t.nextPoint(),s=t.x,h=a*t.y,m.moveTo(s,h);t.nextPoint();)s=t.x,h=a*t.y,m.lineTo(s,h);o&&m.close()}let c=m.result(!1);if(c){let e=n.z.createEmptyOptimizedCIM(t.geometryType);for(let t of c){e.startPath();for(let i of t)e.pushXY(i.x,a*i.y)}return e.reset(),e}return null}i.d(e,["$Z",0,h,"NS",0,l,"Xs",0,o,"hd",0,u,"lX",0,a,"mO",0,c,"vZ",0,f,"xR",0,p,"yM",0,_])},78653(t,e,i){i.d(e,{A:()=>se,c:()=>ne});var s=i(99452);class n{constructor(){this.type="CIMBackgroundCallout"}static{this.instance=null}static local(){return null===n.instance&&(n.instance=new n),n.instance}execute(t,e,i){if("CIMBackgroundCallout"!==e?.type)throw Error("Invalid effect type for BackgroundCalloutEffect");return new r(t,e,i)}}class r{constructor(t,e,i){let{geomUnitsPerPoint:n}=i;if(!n)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for BackgroundCalloutEffect");let r=n*(i.scaleFactor??1);this._inputGeometries=t,this._part=e.part,this._leaderTolerance=(e.leaderTolerance??0)*r,this._leaderOffset=(e.leaderOffset??0)*r,this._gap=(e.gap??0)*r,this._lineStyle=e.lineStyle,this._margins=(0,s.QB)(e.margin,r),this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(!e)continue;let i=(0,s.XD)(e.bounds,this._margins);switch(this._part){case"accent-bar":return(0,s.W)(i,e.layoutAnchor,this._gap,t.yFactor);case"background":return(0,s._T)(i,t.yFactor);default:return(0,s.gR)(i,e.layoutAnchor)||(0,s.Io)((0,s.E0)(i,e.layoutAnchor),e.layoutAnchor)<this._leaderTolerance?null:(0,s.n_)(i,e.layoutAnchor,this._lineStyle,this._leaderOffset,t.yFactor,e.anchor)}}return null}}class h{constructor(){this.type="CIMBalloonCallout"}static{this.instance=null}static local(){return null===h.instance&&(h.instance=new h),h.instance}execute(t,e,i){if("CIMBalloonCallout"!==e?.type)throw Error("Invalid effect type for BalloonCalloutEffect");return new a(t,e,i)}}class a{constructor(t,e,i){let{geomUnitsPerPoint:n}=i;if(!n)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for BalloonCalloutEffect");let r=n*(i.scaleFactor??1);this._inputGeometries=t,this._balloonStyle=e.balloonStyle,this._dartWidth=null==e.dartWidth?null:e.dartWidth*r,this._leaderTolerance=(e.leaderTolerance??0)*r,this._margins=(0,s.QB)(e.margin,r),this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(e)return(0,s.IF)((0,s.XD)(e.bounds,this._margins),e.anchor,this._balloonStyle,this._leaderTolerance,t.yFactor,this._dartWidth,e.layoutAnchor)}return null}}class o{constructor(){this.type="CIMPointSymbolCallout"}static{this.instance=null}static local(){return null===o.instance&&(o.instance=new o),o.instance}execute(t,e,i){if("CIMPointSymbolCallout"!==e?.type)throw Error("Invalid effect type for PointSymbolCalloutEffect");return new l(t,e,i)}}class l{constructor(t,e,i){let{geomUnitsPerPoint:s}=i;if(!s)throw Error("geomUnitsPerPoint is required in EffectExecutionContext for PointSymbolCalloutEffect");let n=s*(i.scaleFactor??1);this._inputGeometries=t,this._part=e.part,this._leaderTolerance=(e.leaderTolerance??0)*n,this._leaderOffset=(e.leaderOffset??0)*n,this._lineStyle=e.lineStyle,this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=(0,s.EE)(t,this._calloutContext);if(e)return"marker"===this._part?(0,s.DJ)((0,s.gX)(e.bounds),t.yFactor):(0,s.gR)(e.bounds,e.layoutAnchor)||(0,s.Io)((0,s.E0)(e.bounds,e.layoutAnchor),e.layoutAnchor)<this._leaderTolerance?null:(0,s.n_)(e.bounds,e.layoutAnchor,this._lineStyle,this._leaderOffset,t.yFactor,e.anchor)}return null}}var u=i(36745);class c{constructor(){this.type="CIMSimpleLineCallout"}static{this.instance=null}static local(){return null===c.instance&&(c.instance=new c),c.instance}execute(t,e,i){if("CIMSimpleLineCallout"!==e?.type)throw Error("Invalid effect type for SimpleLineCalloutEffect");return new _(t,e,i)}}class _{constructor(t,e,i){this._inputGeometries=t,this._autoSnap=e.autoSnap??!0;let s=i.geomUnitsPerPoint*(i.scaleFactor??1);this._leaderTolerance=(e.leaderTolerance??0)*s,this._calloutContext=i.callout}next(){let t;for(;t=this._inputGeometries.next();){let e=this._createLeaderGeometry(t);if(e)return e}return null}_createLeaderGeometry(t){let e=(0,s.EE)(t,this._calloutContext);if(e){let i=this._autoSnap?(0,s.E0)(e.bounds,e.layoutAnchor):function(t){return{x:t.xmin,y:t.ymin}}(e.bounds);return function(t,e){return e.x>=t.xmin&&e.x<=t.xmax&&e.y>=t.ymin&&e.y<=t.ymax}(e.bounds,e.layoutAnchor)||!this._passesLeaderTolerance(i,e.layoutAnchor)?null:function(t,e,i){let s=u.z.createEmptyOptimizedCIM("esriGeometryPolyline",!1,!1,i);return s.startPath(),s.pushXY(t.x,i*t.y),s.pushXY(e.x,i*e.y),s.reset(),s}(i,e.anchor,t.yFactor)}return"esriGeometryPolyline"===t.geometryType&&this._passesPolylineTolerance(t)?t.clone():null}_passesLeaderTolerance(t,e){return this._leaderTolerance<=0||function(t,e){return Math.hypot(e.x-t.x,e.y-t.y)}(t,e)>=this._leaderTolerance}_passesPolylineTolerance(t){if(this._leaderTolerance<=0)return!0;let e=t.clone(),i=0;for(;e.nextPath();)i+=e.pathLength();return i>=this._leaderTolerance}}class p{static{this.instance=null}static local(){return null===p.instance&&(p.instance=new p),p.instance}execute(t,e,i){return new f(t,e)}}class f{constructor(t,e){this._inputGeometries=t,this._angleTolerance=void 0===e.angleTolerance?120:e.angleTolerance,this._maxCosAngle=Math.cos((1-Math.abs(this._angleTolerance)/180)*Math.PI)}next(){let t=this._inputGeometries.next();if(!t)return null;for(;t;){if("esriGeometryPolygon"===t.geometryType)this._isClosed=!0;else if("esriGeometryPolyline"===t.geometryType)this._isClosed=!1;else{if("esriGeometryEnvelope"!==t.geometryType){t=this._inputGeometries.next();continue}if(this._maxCosAngle)return t;this._isClosed=!0}for(;t.nextPath();)this._processPath(t);return t.reset(),t}return null}_processPath(t){if(t.nextPoint()){let e=t.x,i=t.y,s=e,n=i,r=t.pathSize,h=0,a=0,o=0,l=0,u=0,c=0;this._isClosed&&++r;for(let _=1;t.nextPoint()||_<r;++_){let p,f;this._isClosed&&_===r-1?(p=e,f=i):(p=t.x,f=t.y);let m=p-s,d=f-n,g=Math.sqrt(m*m+d*d);_>1&&g>0&&o>0&&(h*m+a*d)/g/o<=this._maxCosAngle&&t.setControlPointAt(_-1),1===_&&(l=m,u=d,c=g),g>0&&(s=p,n=f,h=m,a=d,o=g)}this._isClosed&&o>0&&c>0&&(h*l+a*u)/c/o<=this._maxCosAngle&&t.setControlPointAt(0)}}}var m=i(51118),d=i(98939);function g(t,e){t[4]=e}class x{constructor(t,e=!0,i=!0,s=0){this._angleToLine=!0,this._keepUpright=!1,this.isClosed=!1,this.geometryCursor=null,this.geometryCursor=!e&&"esriGeometryPolygon"===t.geometryType||!i&&"esriGeometryPolyline"===t.geometryType?null:t,this.geomUnitsPerPoint=s,this.iterateMultiPath=!1,this.iteratePath=!1,this.internalPlacement=new d.W}next(){if(!this.geometryCursor)return null;let t=this.processMultiPath(this.geometryCursor);if((!this.iterateMultiPath||!t)&&(this.geometryCursor=null),!t)return null;let e=t.getAngle();if(this._angleToLine&&this._keepUpright&&Math.abs(e)>.5*Math.PI){let i=e+Math.PI,s=Math.atan2(Math.sin(i),Math.cos(i));Number.isNaN(s)||t.setRotate(s)}return t}processMultiPath(t){for(;this.iteratePath||t.pathIndex<t.totalSize-1;){this.iteratePath||t.nextPath(),this.iterateMultiPath=!0;let e=this.processPath(t);if(e)return e}return this.iterateMultiPath=!1,null}}class y{constructor(t,e,i,s=0){this.isClosed=!1,this.inputGeometries=t,this.acceptPolygon=e,this.acceptPolyline=i,this.geomUnitsPerPoint=s,this.iteratePath=!1,this.multiPathCursor=null}next(){for(;;){if(!this.multiPathCursor){let t=this.inputGeometries.next();for(;t&&(this.isClosed=this.acceptPolygon&&"esriGeometryPolygon"===t.geometryType||"esriGeometryEnvelope"===t.geometryType,this.multiPathCursor=t,!this.multiPathCursor);)t=this.inputGeometries.next();if(!this.multiPathCursor)return null}for(;this.iteratePath||this.multiPathCursor.nextPath();){this.multiPathCursor.seekPathStart();let t=this.processPath(this.multiPathCursor);if(t)return t}this.multiPathCursor=null}}}class P{constructor(t=0,e=!1){}isEmpty(t){if(!t.nextPoint())return!0;let e,i,s,n;for(e=t.x,i=t.y;t.nextPoint();e=i,i=n)if(s=t.x,n=t.y,s!==e||n!==i)return t.seekPathStart(),!1;return t.seekPathStart(),!0}normalize(t){let e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);0!==e&&(t[0]/=e,t[1]/=e)}getLength(t,e,i,s){let n=i-t,r=s-e;return Math.sqrt(n*n+r*r)}getSegLength(t){let[[e,i],[s,n]]=t;return this.getLength(e,i,s,n)}getCoord2D(t,e,i,s,n){return[t+(i-t)*n,e+(s-e)*n]}getSegCoord2D(t,e){let[[i,s],[n,r]]=t;return this.getCoord2D(i,s,n,r,e)}getAngle(t,e,i,s,n){let r=i-t,h=s-e;return Math.atan2(h,r)}getAngleCS(t,e,i,s,n,r){t??=[0,0];let h=s-e,a=n-i,o=Math.sqrt(h*h+a*a);return 0===o?(t[0]=1,t[1]=0,t):(t[0]=h/o,t[1]=a/o,t)}getSegAngleCS(t,e,i){let[[s,n],[r,h]]=e;return this.getAngleCS(t,s,n,r,h,i)}cut(t,e,i,s,n,r){return[n<=0?[t,e]:this.getCoord2D(t,e,i,s,n),r>=1?[i,s]:this.getCoord2D(t,e,i,s,r)]}getSubCurve(t,e,i){let s=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this.appendSubCurve(s,t,e,i)?s:null}appendSubCurve(t,e,i,s){t.startPath(),e.seekPathStart();let n=0,r=!0;if(!e.nextPoint())return!1;let h=e.x,a=e.y;for(;e.nextPoint();){let o=this.getLength(h,a,e.x,e.y);if(0!==o){if(r){if(n+o>i){let l=(i-n)/o,u=1,c=!1;n+o>=s&&(u=(s-n)/o,c=!0);let _=this.cut(h,a,e.x,e.y,l,u);if(_&&t.pushPoints(_),c)break;r=!1}}else{if(n+o>s){let i=this.cut(h,a,e.x,e.y,0,(s-n)/o);i&&t.pushPoint(i[1]);break}t.pushXY(e.x,e.y)}n+=o,h=e.x,a=e.y}else h=e.x,a=e.y}return!0}getCIMPointAlong(t,e){if(!t.nextPoint())return null;let i,s,n,r,h=0;for(i=t.x,s=t.y;t.nextPoint();i=n,s=r){n=t.x,r=t.y;let a=this.getLength(i,s,n,r);if(0!==a){if(h+a>e){let t=(e-h)/a;return this.getCoord2D(i,s,n,r,t)}h+=a}}return null}offset(t,e,i,s,n){if(!t||t.length<2)return null;let r=0,h=t[r++],a=r;for(;r<t.length;){let e=t[r];(e[0]!==h[0]||e[1]!==h[1])&&(r!==a&&(t[a]=t[r]),h=t[a++]),r++}let o=t[0][0]===t[a-1][0]&&t[0][1]===t[a-1][1];if(o&&--a,a<(o?3:2))return null;let l=[];h=o?t[a-1]:null;let u=t[0];for(let n=0;n<a;n++){let r=n===a-1?o?t[0]:null:t[n+1];if(h)if(r){let t=[r[0]-u[0],r[1]-u[1]];this.normalize(t);let n=[u[0]-h[0],u[1]-h[1]];this.normalize(n);let a=n[0]*t[1]-n[1]*t[0],o=n[0]*t[0]+n[1]*t[1];if(0===a&&1===o){u=r;continue}if(a>=0==e<=0){if(o<1){let i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);let r=Math.sqrt((1+o)/2);if(r>1/s){let t=-Math.abs(e)/r;l.push([u[0]-i[0]*t,u[1]-i[1]*t])}}}else switch(i){case"Mitered":{let i=Math.sqrt((1+o)/2);if(i>0&&1/i<s){let s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);let r=Math.abs(e)/i;l.push([u[0]-s[0]*r,u[1]-s[1]*r]);break}}case"Bevelled":l.push([u[0]+n[1]*e,u[1]-n[0]*e]),l.push([u[0]+t[1]*e,u[1]-t[0]*e]);break;case"Rounded":if(o<1){l.push([u[0]+n[1]*e,u[1]-n[0]*e]);let i=Math.floor(2.5*(1-o));if(i>0){let s=1/i,r=s;for(let h=1;h<i;h++,r+=s){let i=[n[1]*(1-r)+t[1]*r,-n[0]*(1-r)-t[0]*r];this.normalize(i),l.push([u[0]+i[0]*e,u[1]+i[1]*e])}}l.push([u[0]+t[1]*e,u[1]-t[0]*e])}break;default:if(a<0)l.push([u[0]+(n[1]+n[0])*e,u[1]+(n[1]-n[0])*e]),l.push([u[0]+(t[1]-t[0])*e,u[1]-(t[0]+t[1])*e]);else{let i=Math.sqrt((1+Math.abs(o))/2),s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);let r=e/i;l.push([u[0]-s[0]*r,u[1]-s[1]*r])}}}else{let t=[u[0]-h[0],u[1]-h[1]];this.normalize(t),l.push([u[0]+t[1]*e,u[1]-t[0]*e])}else{let t=[r[0]-u[0],r[1]-u[1]];this.normalize(t),l.push([u[0]+t[1]*e,u[1]-t[0]*e])}h=u,u=r}return l.length<(o?3:2)?null:(o&&l.push([l[0][0],l[0][1]]),l)}}class M{static{this.instance=null}static local(){return null===M.instance&&(M.instance=new M),M.instance}execute(t,e,i){return new b(t,e,i)}}class b extends y{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new P;let s=i.geomUnitsPerPoint;this._width=(void 0===e.width?5:e.width)*s,this._arrowType=void 0===e.geometricEffectArrowType?void 0===e.arrowType?"OpenEnded":e.arrowType:e.geometricEffectArrowType,this._offsetFlattenError=.03*s}processPath(t){let e=u.z.createEmptyOptimizedCIM(t.geometryType);switch(this._arrowType){case"OpenEnded":default:this._constructSimpleArrow(e,t,!0);break;case"Block":this._constructSimpleArrow(e,t,!1);break;case"Crossed":this._constructCrossedArrow(e,t)}return e}_constructSimpleArrow(t,e,i){let s=e.pathLength(),n=this._width;s<2*n&&(n=s/2);let r=this._curveHelper.getSubCurve(e,0,s-n);if(!r||!r.nextPath())return;r.seekPathStart();let h=n/2;if(this._curveHelper.isEmpty(r))return;let a=(0,m.A)(r),o=this._constructOffset(a,-h);if(!o)return;let l=this._constructOffset(a,h);if(!l)return;let u=this._constructArrowBasePoint(o,-h/2);if(!u)return;let c=this._constructArrowBasePoint(l,h/2);if(!c)return;e.seekInPath(e.pathSize-1);let _=[e.x,e.y];t.pushPath(l),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(c),t.nextPoint(),t.setControlPoint(),t.pushPoint(_),t.nextPoint(),t.setControlPoint(),t.pushPoint(u),t.nextPoint(),t.setControlPoint(),t.pushPoints(o.reverse()),t.setControlPoint(),i||(t.setControlPointAt(0),t.setControlPointAt(t.pathSize-1),t.pushPoint(l[0])),t.reset()}_constructCrossedArrow(t,e){let i=e.pathLength(),s=this._width;i<3.732050807568877*s&&(s=i/3.732050807568877),e.seekPathStart();let n=this._curveHelper.getSubCurve(e,0,i-2.732050807568877*s);if(!n)return;n.nextPath();let r=s/2;if(this._curveHelper.isEmpty(n))return;let h=(0,m.A)(n),a=this._constructOffset(h,r);if(!a)return;let o=this._constructOffset(h,-r);if(!o)return;let l=this._curveHelper.getSubCurve(e,0,i-s);if(!l||(l.nextPath(),this._curveHelper.isEmpty(l)))return;let u=(0,m.A)(l),c=this._constructOffset(u,r);if(!c)return;let _=this._constructOffset(u,-r);if(!_)return;let p=c[c.length-1],f=this._constructArrowBasePoint(c,r/2);if(!f)return;let d=_[_.length-1],g=this._constructArrowBasePoint(_,-r/2);if(!g)return;e.seekInPath(e.pathSize-1);let x=[e.x,e.y];t.pushPath(a),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(d),t.nextPoint(),t.setControlPoint(),t.pushPoint(g),t.nextPoint(),t.setControlPoint(),t.pushPoint(x),t.nextPoint(),t.setControlPoint(),t.pushPoint(f),t.nextPoint(),t.setControlPoint(),t.pushPoint(p),t.nextPoint(),t.setControlPoint(),t.pushPoints(o.reverse()),t.nextPoint(),t.setControlPoint(),t.reset()}_constructOffset(t,e){return this._curveHelper.offset(t,e,"Rounded",4,this._offsetFlattenError)}_constructArrowBasePoint(t,e){if(!t||t.length<2)return null;let i=t[t.length-2],s=t[t.length-1],n=[s[0]-i[0],s[1]-i[1]];return this._curveHelper.normalize(n),[s[0]+n[1]*e,s[1]-n[0]*e]}}var C=i(16930),w=i(35833);class S{static{this.instance=null}static local(){return null===S.instance&&(S.instance=new S),S.instance}execute(t,e,i){return new v(t,e,i)}}class v{constructor(t,e,i){let s=i.geomUnitsPerPoint,n=i.tileKey,r=i.maxInflateSize;this._preventClipping=i.preventClipping,this._inputGeometries=t,this._tileKey=n,this._curveHelper=new P,this._size=(void 0===e.size?1:e.size)*s,this._maxInflateSize=r*s,this._offsetFlattenError=.03*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._size)return t;if("esriGeometryEnvelope"===t.geometryType)if(this._size>0){let e=u.z.createEmptyOptimizedCIM(t.geometryType),i=(0,m.x)(t)[0],s=this._curveHelper.offset(i,this._size,"Rounded",4,this._offsetFlattenError);if(s)return e.pushPath(s),e}else if(this._size<0){let e=t.asJSON();if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._size>0)return u.z.fromJSONCIM({xmin:e.xmin-this._size,xmax:e.xmax+this._size,ymin:e.ymin-this._size,ymax:e.ymax+this._size})}let e=!this._preventClipping&&this._tileKey?(0,w.qc)(t,this._maxInflateSize,!0):t;if(!e)continue;let{bufferExecute:i}=w.$Z.module,s=i({...e.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}},this._size);return s?u.z.fromJSONCIM(s):null}return null}}var z=i(34727),I=i(28076);const A=Math.PI/180,k=2*Math.PI;class T{static{this.instance=null}static local(){return null===T.instance&&(T.instance=new T),T.instance}execute(t,e,i){return new E(t,e,i)}}class E{constructor(t,e,i){let s=i.geomUnitsPerPoint;this._inputGeometries=t,this._geomUnitsPerPoint=s,this._radius=(e.radius??I.D.CIMGeometricEffectCircularSector.radius)*s,this._startAngle=(e.startAngle??I.D.CIMGeometricEffectCircularSector.startangle)*A,this._endAngle=(e.endAngle??I.D.CIMGeometricEffectCircularSector.endangle)*A}next(){if(this._radius<=0)return null;let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",t.hasZ,!1),i=!1;for(;t.nextPath();)for(;t.nextPoint();)e.pushPath(this._buildRing(t.x,t.y,t.hasZ?t.z:void 0)),i=!0;if(i)return e}t=this._inputGeometries.next()}return null}_buildRing(t,e,i){let s=[this._makePoint(t,e,i)],n=L(this._startAngle),r=L(this._endAngle);for(;r<n;)r+=k;let h=r-n;if(0===h)return s.push(this._makePoint(t+this._radius*Math.cos(r),e+this._radius*Math.sin(r),i)),s.push(this._makePoint(t,e,i)),s;let a=.25*this._geomUnitsPerPoint,o=this._radius<=.5*a?k:2*Math.acos((0,z.qE)(1-a/this._radius,-1,1)),l=Math.max(1,Math.ceil(h/o)),u=h/l,c=r;for(let n=0;n<=l;n++,c-=u)s.push(this._makePoint(t+this._radius*Math.cos(c),e+this._radius*Math.sin(c),i));return s.push(this._makePoint(t,e,i)),s}_makePoint(t,e,i){return null==i?[t,e]:[t,e,i]}}function L(t){return(t%=k)<0?t+k:t}i(86211);var G=i(95108);class N{static{this.instance=null}static local(){return null===N.instance&&(N.instance=new N),N.instance}execute(t,e,i){return new O(t,e,i)}}class O{constructor(t,e,i){this._defaultPointSize=20,this._inputGeometries=t,this._geomUnitsPerPoint=i.geomUnitsPerPoint??1,this._scale=i?.scale,this._rule=e.rule??"FullGeometry",this._spatialReference=i?.spatialReference??C.A.WebMercator,this._width=this._computeWidth(e.width??25),this._defaultSize=this._defaultPointSize*this._geomUnitsPerPoint}next(){let t;for(;t=this._inputGeometries.next();){let e=this._processGeom((0,m.x)(t));if(e?.length)return u.z.fromJSONCIM({paths:e})}return null}_computeWidth(t){if(!function(t){return"ParallelOffsetByValue"===t}(this._rule)||null==this._scale||!this._spatialReference.metersPerUnit)return t*this._geomUnitsPerPoint;let e=this._scale/(96*39.37*this._spatialReference.metersPerUnit);return t/(this._spatialReference.metersPerUnit*e)}_clone(t){return[t[0],t[1]]}_mid(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}_mix(t,e,i,s){return[t[0]*e+i[0]*s,t[1]*e+i[1]*s]}_add(t,e){return[t[0]+e[0],t[1]+e[1]]}_add2(t,e,i){return[t[0]+e,t[1]+i]}_sub(t,e){return[t[0]-e[0],t[1]-e[1]]}_dist(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}_norm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}_normalize(t,e=1){let i=e/this._norm(t);t[0]*=i,t[1]*=i}_leftPerpendicular(t){let e=-t[1],i=t[0];t[0]=e,t[1]=i}_leftPerp(t){return[-t[1],t[0]]}_rightPerpendicular(t){let e=t[1],i=-t[0];t[0]=e,t[1]=i}_rightPerp(t){return[t[1],-t[0]]}_dotProduct(t,e){return t[0]*e[0]+t[1]*e[1]}_crossProduct(t,e){return t[0]*e[1]-t[1]*e[0]}_rotateDirect(t,e,i){let s=t[0]*e-t[1]*i,n=t[0]*i+t[1]*e;t[0]=s,t[1]=n}_makeCtrlPt(t){let e=[t[0],t[1]];return g(e,1),e}_addAngledTicks(t,e,i,s){let n=this._sub(i,e);this._normalize(n);let r,h=this._crossProduct(n,this._sub(s,e));r=h>0?this._rightPerp(n):this._leftPerp(n);let a=Math.abs(h)/2,o=[];o.push([e[0]+(r[0]-n[0])*a,e[1]+(r[1]-n[1])*a]),o.push(e),o.push(i),o.push([i[0]+(r[0]+n[0])*a,i[1]+(r[1]+n[1])*a]),t.push(o)}_addBezier2(t,e,i,s,n){if(0===n--)return void t.push(s);let r=this._mid(e,i),h=this._mid(i,s),a=this._mid(r,h);this._addBezier2(t,e,r,a,n),this._addBezier2(t,a,h,s,n)}_addBezier3(t,e,i,s,n,r){if(0===r--)return void t.push(n);let h=this._mid(e,i),a=this._mid(i,s),o=this._mid(s,n),l=this._mid(h,a),u=this._mid(a,o),c=this._mid(l,u);this._addBezier3(t,e,h,l,c,r),this._addBezier3(t,c,u,o,n,r)}_add90DegArc(t,e,i,s,n){let r=n??this._crossProduct(this._sub(i,e),this._sub(s,e))>0,h=this._mid(e,i),a=this._sub(h,e);r?this._leftPerpendicular(a):this._rightPerpendicular(a),h[0]+=a[0],h[1]+=a[1],this._addBezier3(t,e,this._mix(e,.33333,h,.66667),this._mix(i,.33333,h,.66667),i,4)}_addArrow(t,e,i){let s=e[0],n=e[1],r=e[e.length-1],h=this._sub(s,n),a=this._norm(h);this._normalize(h);let o=Math.abs(this._crossProduct(h,this._sub(r,n))),l=this._dotProduct(h,this._sub(r,n));l<.05*a?l=.05*a:l>.95*a&&(l=.95*a);let u=.5*o,c=this._leftPerp(h),_=[n[0]+h[0]*l,n[1]+h[1]*l],p=e.length-1,f=[];f.push(i?[-c[0],-c[1]]:c);let m=[-h[0],-h[1]];for(let t=1;t<p-1;t++){let i=this._sub(e[t+1],e[t]);this._normalize(i);let s=this._dotProduct(i,m),n=this._crossProduct(i,m),r=Math.sqrt((1+s)/2),h=this._sub(i,m);this._normalize(h),h[0]/=r,h[1]/=r,f.push(n<0?[-h[0],-h[1]]:h),m=i}f.push(this._rightPerp(m));for(let i=f.length-1;i>0;i--)t.push([e[i][0]+f[i][0]*u,e[i][1]+f[i][1]*u]);t.push([_[0]+f[0][0]*u,_[1]+f[0][1]*u]),t.push([_[0]+f[0][0]*o,_[1]+f[0][1]*o]),t.push(s),t.push([_[0]-f[0][0]*o,_[1]-f[0][1]*o]),t.push([_[0]-f[0][0]*u,_[1]-f[0][1]*u]);for(let i=1;i<f.length;i++)t.push([e[i][0]-f[i][0]*u,e[i][1]-f[i][1]*u])}_addDash(t,e,i){let s=this._norm(i)/7;this._normalize(i);let n=[];for(let r=0;r<=7;r++)n.push([e[0]+i[0]*r*s,e[1]+i[1]*r*s]),1&r&&(t.push(n),n=[])}_cp2(t,e,i){return t.length>=2?t[1]:this._add2(t[0],e*this._defaultSize,i*this._defaultSize)}_cp3(t,e,i,s){if(t.length>=3)return t[2];let n=this._mix(t[0],1-i,e,i),r=this._sub(e,t[0]);return this._normalize(r),this._rightPerpendicular(r),[n[0]+r[0]*s*this._defaultSize,n[1]+r[1]*s*this._defaultSize]}_arrowPath(t){if(t.length>2)return t;let e=t[0],i=this._cp2(t,-4,0),s=this._sub(e,i);this._normalize(s);let n=this._rightPerp(s);return[e,i,[e[0]+(n[0]-s[0])*this._defaultSize,e[1]+(n[1]-s[1])*this._defaultSize]]}_arrowLastSeg(t){let e,i=t[0],s=this._cp2(t,-4,0);if(t.length>=3)e=t[t.length-1];else{let t=this._sub(i,s);this._normalize(t);let n=this._rightPerp(t);e=[i[0]+(n[0]-t[0])*this._defaultSize,i[1]+(n[1]-t[1])*this._defaultSize]}return[s,e]}_offsetPath(t,e){let{offsetExecute:i}=w.mO.module,s=i({paths:[t],spatialReference:this._spatialReference.toJSON()},e,{joins:"miter",miterLimit:4}),[n]=(0,m.x)(u.z.fromJSONCIM(s));return n?.length?n:null}_processGeom(t){if(!t)return null;let e=[];for(let i of t){let t=i.length>1&&(0,G.Yl)(i)<this._defaultSize;if(!i||0===i.length||t)continue;let s=i.length,n=i[0];switch(this._rule){case"PerpendicularFromFirstSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,4),r=[];r.push(s),r.push(this._mid(n,t)),e.push(r);break}case"ReversedFirstSegment":{let t=this._cp2(i,0,-1);e.push([t,n]);break}case"PerpendicularToSecondSegment":{if(i.length<3)return[];let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=[];r.push(this._mid(t,s)),r.push(n),e.push(r);break}case"SecondSegmentWithTicks":{if(i.length<3)return[];let t,s=this._cp2(i,-4,1),r=this._cp3(i,s,.882353,-1.94),h=this._sub(r,s);t=this._crossProduct(h,this._sub(n,s))>0?this._rightPerp(h):this._leftPerp(h);let a=[];a.push([s[0]+(t[0]-h[0])/3,s[1]+(t[1]-h[1])/3]),a.push(s),a.push(r),a.push([r[0]+(t[0]+h[0])/3,r[1]+(t[1]+h[1])/3]),e.push(a);break}case"DoublePerpendicular":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let o=[];o.push(n),o.push([s[0]+h[0]*a,s[1]+h[1]*a]),e.push(o);let l=[];l.push([s[0]-h[0]*a,s[1]-h[1]*a]),l.push(t),e.push(l);break}case"OppositeToFirstSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let o=[];o.push([s[0]+h[0]*a,s[1]+h[1]*a]),o.push([s[0]-h[0]*a,s[1]-h[1]*a]),e.push(o);break}case"TriplePerpendicular":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,4),r=this._mid(n,t),h=this._sub(r,s);this._normalize(h);let a=this._crossProduct(h,this._sub(n,s));this._leftPerpendicular(h);let o=[];o.push([s[0]+h[0]*a*.8,s[1]+h[1]*a*.8]),o.push([r[0]+.8*(n[0]-r[0]),r[1]+.8*(n[1]-r[1])]),e.push(o),e.push([s,r]);let l=[];l.push([s[0]-h[0]*a*.8,s[1]-h[1]*a*.8]),l.push([r[0]+.8*(t[0]-r[0]),r[1]+.8*(t[1]-r[1])]),e.push(l);break}case"HalfCircleFirstSegment":{let t,s=this._cp2(i,0,-1),r=this._cp3(i,s,.5,4),h=this._mid(n,s),a=this._sub(s,n),o=Math.cos(Math.PI/18),l=Math.sin(Math.PI/18),u=Math.sqrt((1+o)/2),c=Math.sqrt((1-o)/2),_=[];this._crossProduct(a,this._sub(r,n))>0?(_.push(n),a=this._sub(n,h),t=s):(_.push(s),a=this._sub(s,h),t=n),this._rotateDirect(a,u,c),a[0]/=u,a[1]/=u;for(let t=1;t<=18;t++)_.push(this._add(h,a)),this._rotateDirect(a,o,l);_.push(t),e.push(_);break}case"HalfCircleSecondSegment":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,1,-1),r=this._sub(n,t);this._normalize(r);let h=this._crossProduct(r,this._sub(s,t))/2;this._leftPerpendicular(r);let a=[t[0]+r[0]*h,t[1]+r[1]*h];r=this._sub(t,a);let o=Math.cos(Math.PI/18),l=Math.sin(Math.PI/18);h>0&&(l=-l);let u=[t];for(let t=1;t<=18;t++)this._rotateDirect(r,o,l),u.push(this._add(a,r));e.push(u);break}case"HalfCircleExtended":{let t,r=this._cp2(i,0,-2),h=this._cp3(i,r,1,-1);if(s>=4)t=i[3];else{let e=this._sub(n,r);t=this._add(h,e)}let a=this._dist(r,h)/2/.75,o=this._sub(r,n);this._normalize(o,a);let l=this._sub(h,t);this._normalize(l,a);let u=[t,h];e.push(u);let c=[this._clone(h)];this._addBezier3(c,h,this._add(h,l),this._add(r,o),r,4),c.push(n),e.push(c);break}case"OpenCircle":{let t=this._cp2(i,-2,0),s=this._sub(t,n),r=Math.cos(Math.PI/18),h=-Math.sin(Math.PI/18),a=[t];for(let t=1;t<=33;t++)this._rotateDirect(s,r,h),a.push(this._add(n,s));e.push(a);break}case"CoverageEdgesWithTicks":{let t,r,h=this._cp2(i,0,-1);if(s>=3)t=i[2];else{let e=this._sub(h,n),i=this._leftPerp(e);t=[n[0]+i[0]-.25*e[0],n[1]+i[1]-.25*e[1]]}if(s>=4)r=i[3];else{let e=this._mid(n,h),i=this._sub(n,h);this._normalize(i),this._leftPerpendicular(i);let s=this._crossProduct(i,this._sub(t,e));this._rightPerpendicular(i),r=[t[0]+i[0]*s*2,t[1]+i[1]*s*2]}let a,o,l=this._sub(h,n);a=this._crossProduct(l,this._sub(t,n))>0?this._rightPerp(l):this._leftPerp(l),o=[],o.push(t),o.push(n),o.push([n[0]+(a[0]-l[0])/3,n[1]+(a[1]-l[1])/3]),e.push(o),a=this._crossProduct(l,this._sub(r,h))>0?this._rightPerp(l):this._leftPerp(l),o=[],o.push([h[0]+(a[0]+l[0])/3,h[1]+(a[1]+l[1])/3]),o.push(h),o.push(r),e.push(o);break}case"GapExtentWithDoubleTicks":{let t,r=this._cp2(i,0,2),h=this._cp3(i,r,0,1);if(s>=4)t=i[3];else{let e=this._sub(r,n);t=this._add(h,e)}this._addAngledTicks(e,n,r,this._mid(h,t)),this._addAngledTicks(e,h,t,this._mid(n,r));break}case"GapExtentMidline":{let t,r=this._cp2(i,2,0),h=this._cp3(i,r,0,1);if(s>=4)t=i[3];else{let e=this._sub(r,n);t=this._add(h,e)}let a=[];a.push(this._mid(n,h)),a.push(this._mid(r,t)),e.push(a);break}case"Chevron":{let t,r=this._cp2(i,-1,-1);if(s>=3)t=i[2];else{let e=this._sub(r,n);this._leftPerpendicular(e),t=this._add(n,e)}e.push([r,this._makeCtrlPt(n),t]);break}case"PerpendicularWithArc":{let t=this._cp2(i,0,-2),r=this._cp3(i,t,.5,-1),h=this._sub(t,n),a=this._norm(h);h[0]/=a,h[1]/=a;let o=this._crossProduct(h,this._sub(r,n)),l=this._dotProduct(h,this._sub(r,n));l<.05*a?l=.05*a:l>.95*a&&(l=.95*a);let u=[n[0]+h[0]*l,n[1]+h[1]*l],c=this._leftPerp(h),_=[];if(_.push([u[0]-c[0]*o,u[1]-c[1]*o]),_.push([u[0]+c[0]*o,u[1]+c[1]*o]),e.push(_),s>=4){let t=i[3],s=this._dotProduct(h,this._sub(t,n));s<.1*a?s=.1*a:s>.9*a&&(s=.9*a);let r=[n[0]+h[0]*s,n[1]+h[1]*s],o=this._crossProduct(h,this._sub(t,n)),l=[];l.push([r[0]-c[0]*o,r[1]-c[1]*o]),l.push([r[0]+c[0]*o,r[1]+c[1]*o]),e.push(l)}let p=[t[0]+c[0]*o,t[1]+c[1]*o];c=this._sub(t,p);let f=Math.cos(Math.PI/18),m=Math.sin(Math.PI/18);o<0&&(m=-m),_=[n,t];for(let t=1;t<=9;t++)this._rotateDirect(c,f,m),_.push(this._add(p,c));e.push(_);break}case"ClosedHalfCircle":{let t=this._cp2(i,2,0),s=this._mid(n,t),r=this._sub(t,s),h=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),o=[n,t];for(let t=1;t<=18;t++)this._rotateDirect(r,h,a),o.push(this._add(s,r));e.push(o);break}case"TripleParallelExtended":{let t=this._cp2(i,0,-2),s=this._cp3(i,t,1,-2),r=this._mid(n,t),h=this._sub(s,t);this._normalize(h);let a=Math.abs(this._crossProduct(h,this._sub(r,t)))/2,o=this._dist(t,s),l=[t,n];l.push([n[0]+h[0]*o*.5,n[1]+h[1]*o*.5]),e.push(l);let u=[];u.push([r[0]-h[0]*a,r[1]-h[1]*a]),u.push([r[0]+h[0]*o*.375,r[1]+h[1]*o*.375]),g(u[u.length-1],1),u.push([r[0]+h[0]*o*.75,r[1]+h[1]*o*.75]),e.push(u);let c=[t,s];e.push(c);break}case"ParallelWithTicks":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n)),a=this._leftPerp(r);this._addAngledTicks(e,n,t,s),this._addAngledTicks(e,this._add2(n,a[0]*h,a[1]*h),this._add2(t,a[0]*h,a[1]*h),this._mid(n,t));break}case"Parallel":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._leftPerp(r),a=this._crossProduct(r,this._sub(s,n)),o=[n,t];e.push(o),o=[],o.push([n[0]+h[0]*a,n[1]+h[1]*a]),o.push([t[0]+h[0]*a,t[1]+h[1]*a]),e.push(o);break}case"PerpendicularToFirstSegment":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._mid(n,t),h=this._sub(t,n);this._normalize(h);let a=this._crossProduct(h,this._sub(s,n));this._leftPerpendicular(h);let o=[];o.push([r[0]-h[0]*a*.25,r[1]-h[1]*a*.25]),o.push([r[0]+h[0]*a*1.25,r[1]+h[1]*a*1.25]),e.push(o);break}case"ParallelOffset":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]-r[0]*h,n[1]-r[1]*h]),a.push([t[0]-r[0]*h,t[1]-r[1]*h]),e.push(a);let o=[];o.push([n[0]+r[0]*h,n[1]+r[1]*h]),o.push([t[0]+r[0]*h,t[1]+r[1]*h]),e.push(o);break}case"OffsetOpposite":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]-r[0]*h,n[1]-r[1]*h]),a.push([t[0]-r[0]*h,t[1]-r[1]*h]),e.push(a);break}case"OffsetSame":{let t=this._cp2(i,3,0),s=this._cp3(i,t,.5,-1),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r);let a=[];a.push([n[0]+r[0]*h,n[1]+r[1]*h]),a.push([t[0]+r[0]*h,t[1]+r[1]*h]),e.push(a);break}case"CircleWithArc":{let t,r,h=this._cp2(i,3,0),a=this._cp3(i,h,.5,-1);if(s>=4)t=i[3],r=this._crossProduct(this._sub(t,h),this._sub(a,h))>0;else{t=h,r=this._crossProduct(this._sub(t,n),this._sub(a,n))>0;let e=24*this._geomUnitsPerPoint,i=this._sub(t,n);this._normalize(i,e);let s=Math.sqrt(2)/2;this._rotateDirect(i,s,r?s:-s),h=this._add(n,i)}let o=this._sub(h,n),l=Math.cos(Math.PI/18),u=Math.sin(Math.PI/18),c=[h];for(let t=1;t<=36;t++)this._rotateDirect(o,l,u),c.push(this._add(n,o));this._add90DegArc(c,h,t,a,r),g(c[c.length-8],1),e.push(c);break}case"DoubleJog":{let t,r=this._cp2(i,-3,1),h=this._cp3(i,r,-1,-.5);if(s>=4)t=i[3];else{let e=n;n=r,t=h;let i=this._dist(n,e),s=this._dist(t,e),a=30*this._geomUnitsPerPoint;.5*i<a&&(a=.5*i),.5*s<a&&(a=.5*s),r=this._mix(n,a/i,e,(i-a)/i),h=this._mix(t,a/s,e,(s-a)/s)}let a=this._mid(n,r),o=this._mid(t,h),l=this._dist(n,r),u=this._dist(h,t),c=Math.min(l,u)/8;c=Math.min(c,24*this._geomUnitsPerPoint);let _=Math.cos(Math.PI/4),p=this._sub(n,r);this._normalize(p,c),this._crossProduct(p,this._sub(t,r))>0?this._rotateDirect(p,_,-_):this._rotateDirect(p,_,_);let f=[];f.push(r),f.push(this._add(a,p)),f.push(this._sub(a,p)),f.push(n),e.push(f),p=this._sub(t,h),this._normalize(p,c),this._crossProduct(p,this._sub(n,h))<0?this._rotateDirect(p,_,_):this._rotateDirect(p,_,-_),f=[],f.push(h),f.push(this._add(o,p)),f.push(this._sub(o,p)),f.push(t),e.push(f);break}case"PerpendicularOffset":{let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=this._sub(s,t);this._crossProduct(r,this._sub(n,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);let h=[r[0]/8,r[1]/8],a=this._sub(this._mid(t,s),h);e.push([a,n]);break}case"LineExcludingLastSegment":{let t=this._arrowPath(i),s=[],n=t.length-2;for(;n--;)s.push(t[n]);e.push(s);break}case"MultivertexArrow":{let t=this._arrowPath(i),s=[];this._addArrow(s,t,!1),e.push(s);break}case"CrossedArrow":{let t=this._arrowPath(i),s=[];this._addArrow(s,t,!0),e.push(s);break}case"ChevronArrow":{let[t,s]=this._arrowLastSeg(i),r=10*this._geomUnitsPerPoint,h=this._sub(n,t),a=this._norm(h);this._normalize(h);let o=this._crossProduct(h,this._sub(s,t)),l=this._dotProduct(h,this._sub(s,t));l<.05*a?l=.05*a:l>.95*a-r&&(l=.95*a-r);let u=[t[0]+h[0]*l,t[1]+h[1]*l],c=this._leftPerp(h),_=[];_.push([u[0]+c[0]*o+h[0]*r,u[1]+c[1]*o+h[1]*r]),_.push(n),_.push([u[0]-c[0]*o+h[0]*r,u[1]-c[1]*o+h[1]*r]),e.push(_);break}case"ChevronArrowOffset":{let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=this._crossProduct(r,this._sub(s,t)),o=this._dotProduct(r,this._sub(s,t));o<.05*h?o=.05*h:o>.95*h&&(o=.95*h);let l=[t[0]+r[0]*o,t[1]+r[1]*o];this._leftPerpendicular(r);let u=[];u.push([l[0]+r[0]*a*.5,l[1]+r[1]*a*.5]),u.push(this._mid(l,n)),u.push([l[0]-r[0]*a*.5,l[1]-r[1]*a*.5]),e.push(u);break}case"PartialFirstSegment":{let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=this._dotProduct(r,this._sub(s,t));a<.05*h?a=.05*h:a>.95*h&&(a=.95*h);let o=[t[0]+r[0]*a,t[1]+r[1]*a];e.push([t,o]);break}case"Arch":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,1),r=this._sub(n,t),h=this._mix(s,1,r,.55),a=this._mix(s,1,r,-.55),o=[n];this._addBezier2(o,n,h,s,4),this._addBezier2(o,s,a,t,4),e.push(o);break}case"CurvedParallelTicks":{let t=this._cp2(i,-4,1),s=this._cp3(i,t,.882353,-1.94),r=this._sub(s,t);this._crossProduct(r,this._sub(n,t))>0?this._rightPerpendicular(r):this._leftPerpendicular(r);let h=[r[0]/8,r[1]/8],a=this._sub(this._mid(t,s),h),o=this._sub(this._mix(t,.75,s,.25),h),l=this._sub(this._mix(t,.25,s,.75),h),u=[t];this._addBezier2(u,t,o,a,3),this._addBezier2(u,a,l,s,3),e.push(u);for(let t=0;t<8;t++){let i=u[2*t+1],s=[this._clone(i)];s.push(this._add(i,[r[0]/4,r[1]/4])),e.push(s)}break}case"Arc90Degrees":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,1),r=[t];this._add90DegArc(r,t,n,s),e.push(r);break}case"TipWithPerpendicularAndTicks":{let[t,s]=this._arrowLastSeg(i),r=10*this._geomUnitsPerPoint,h=this._sub(n,t),a=this._norm(h);this._normalize(h);let o=this._crossProduct(h,this._sub(s,t)),l=this._dotProduct(h,this._sub(s,t));l<.05*a?l=.05*a:l>.95*a-r&&(l=.95*a-r);let u=this._leftPerp(h),c=[n[0]-h[0]*r,n[1]-h[1]*r],_=.5*Math.max(a-l-r,r);o=Math.abs(o);let p=[];p.push([c[0]+u[0]*(o+_)-h[0]*_,c[1]+u[1]*(o+_)-h[1]*_]),p.push([c[0]+u[0]*o,c[1]+u[1]*o]),p.push([c[0]-u[0]*o,c[1]-u[1]*o]),p.push([c[0]-u[0]*(o+_)-h[0]*_,c[1]-u[1]*(o+_)-h[1]*_]),e.push(p),e.push([c,n]);break}case"ConcentricCircles":{let t=this._cp2(i,1,0),r=this._cp3(i,t,2,0),h=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),o=this._dist(t,n),l=[o,0],u=[];for(let t=0;t<=36;t++)u.push(this._add(n,l)),this._rotateDirect(l,h,a);if(e.push(u),s>=4){u=[];let t=i[3];o=this._dist(t,n),l=[o,0];for(let t=0;t<=36;t++)u.push(this._add(n,l)),0===t&&(u.push(this._add(n,l)),g(u[1],1)),this._rotateDirect(l,h,a);e.push(u)}u=[],o=this._dist(r,n),l=[o,0];for(let t=0;t<=36;t++)u.push(this._add(n,l)),this._rotateDirect(l,h,a);e.push(u);break}case"DoubleJogArrow":{n=this._arrowPath(i)[0];let[t,s]=this._arrowLastSeg(i),r=this._sub(n,t),h=this._norm(r);this._normalize(r);let a=Math.abs(this._crossProduct(r,this._sub(s,n))),o=Math.abs(this._dotProduct(r,this._sub(s,n)));o<.05*h?o=.05*h:o>.95*h&&(o=.95*h);let l=Math.max(a,o),u=this._leftPerp(r),c=[],_=[n[0]-r[0]*o*.5+u[0]*a*.5,n[1]-r[1]*o*.5+u[1]*a*.5];c.push([_[0],_[1]]),_[0]+=r[0]*l*.5+u[0]*l*.4,_[1]+=r[1]*l*.5+u[1]*l*.4,c.push([_[0],_[1]]),_[0]-=u[0]*l*.25,_[1]-=u[1]*l*.25,c.push([_[0],_[1]]),_[0]+=r[0]*l*.5+u[0]*l*.4,_[1]+=r[1]*l*.5+u[1]*l*.4,c.push([_[0],_[1]]),e.push(c),c=[],_[0]=n[0]-r[0]*o*.5-u[0]*a*.5,_[1]=n[1]-r[1]*o*.5-u[1]*a*.5,c.push([_[0],_[1]]),_[0]+=r[0]*l*.5-u[0]*l*.4,_[1]+=r[1]*l*.5-u[1]*l*.4,c.push([_[0],_[1]]),_[0]+=u[0]*l*.25,_[1]+=u[1]*l*.25,c.push([_[0],_[1]]),_[0]+=r[0]*l*.5-u[0]*l*.4,_[1]+=r[1]*l*.5-u[1]*l*.4,c.push([_[0],_[1]]),e.push(c);break}case"LinkedChevrons":{let t=this._cp2(i,-5,0),s=this._cp3(i,t,-.2,1),r=this._sub(n,t);this._normalize(r);let h=this._leftPerp(r),a=Math.abs(this._crossProduct(r,this._sub(s,t)));e.push([t,n]);let o=[];o.push([n[0]-r[0]*a+h[0]*a,n[1]-r[1]*a+h[1]*a]),o.push(n),o.push([n[0]-r[0]*a-h[0]*a,n[1]-r[1]*a-h[1]*a]),e.push(o),this._addDash(e,t,[-r[0]*a+h[0]*a,-r[1]*a+h[1]*a]),this._addDash(e,t,[-r[0]*a-h[0]*a,-r[1]*a-h[1]*a]);break}case"SegmentThenHalfCircle":{let t,r=this._cp2(i,2,0),h=this._cp3(i,r,1.5,0);t=s>=4?i[3]:this._cp3(i,r,1.25,-.5);let a=this._sub(r,n);this._normalize(a);let o=.5*this._dist(r,h),l=this._crossProduct(a,this._sub(t,n))>0,u=Math.cos(Math.PI/18),c=Math.sin(Math.PI/18);l&&(c=-c);let _=[n,r];a[0]*=o,a[1]*=o;let p=this._add(r,a);a[0]=-a[0],a[1]=-a[1];for(let t=1;t<=18;t++)this._rotateDirect(a,u,c),_.push(this._add(p,a));e.push(_);break}case"LineWithStraightTicks":{let t=this._cp2(i,-2,1),s=this._cp3(i,t,-1,-.5),r=this._sub(s,t);this._normalize(r);let h=this._dotProduct(r,this._sub(t,n)),a=this._dotProduct(r,this._sub(s,n)),o=[n];o.push([n[0]+r[0]*h,n[1]+r[1]*h]),o.push(t),e.push(o),o=[n],o.push([n[0]+r[0]*a,n[1]+r[1]*a]),o.push(s),e.push(o);break}case"DoubleCurve":{let t=this._cp2(i,-5,-1),s=this._cp3(i,t,2,0),r=Math.atan2(1,5),h=Math.cos(r),a=Math.sin(r),o=this._sub(t,n),l=this._dist(n,t);this._normalize(o),this._rotateDirect(o,h,-a);let u=[n];u.push([n[0]+o[0]*l*.5,n[1]+o[1]*l*.5]),g(u[1],1),u.push([n[0]+o[0]*l*.8,n[1]+o[1]*l*.8]),this._addBezier2(u,u[2],[n[0]+o[0]*l,n[1]+o[1]*l],t,3);let c=this._sub(s,t),_=this._dist(t,s);this._normalize(c),this._rotateDirect(c,h,-a),this._addBezier2(u,t,[s[0]-c[0]*_,s[1]-c[1]*_],[s[0]-c[0]*_*.8,s[1]-c[1]*_*.8],3),u.push(s),e.push(u);break}case"ParallelWithTicksByWidth":{let t=this._cp2(i,0,-1),s=this._cp3(i,t,.5,3),r=this._sub(t,n);this._normalize(r);let h=this._crossProduct(r,this._sub(s,n));this._leftPerpendicular(r),h>0?(this._addAngledTicks(e,n,[n[0]+r[0]*h,n[1]+r[1]*h],t),this._addAngledTicks(e,t,[t[0]+r[0]*h,t[1]+r[1]*h],n)):(this._addAngledTicks(e,[n[0]+r[0]*h,n[1]+r[1]*h],n,t),this._addAngledTicks(e,[t[0]+r[0]*h,t[1]+r[1]*h],n,t));break}case"EnclosingRoundedRectangle":{let t=this._cp2(i,3,-2),e=[Math.min(n[0],t[0]),Math.max(n[1],t[1])],s=[Math.max(n[0],t[0]),Math.min(n[1],t[1])],r=s[0]-e[0],h=e[1]-s[1],a=Math.min(r,h)/10,o=[];o.push([e[0]+a+.75*(r-2*a),e[1]]),o.push([s[0]-a,e[1]]),this._add90DegArc(o,[s[0]-a,e[1]],[s[0],e[1]-a],[s[0],e[1]]),o.push([s[0],s[1]+a]),this._add90DegArc(o,[s[0],s[1]+a],[s[0]-a,s[1]],s),o.push([e[0]+a,s[1]]),this._add90DegArc(o,[e[0]+a,s[1]],[e[0],s[1]+a],[e[0],s[1]]),o.push([e[0],e[1]-a]),this._add90DegArc(o,[e[0],e[1]-a],[e[0]+a,e[1]],e),o.push([e[0]+a+.75*(r-2*a),e[1]]);break}case"ParallelOffsetByValue":{if(i.length<2||0===this._width)break;let t=this._offsetPath(i,.5*this._width);t&&e.push(t);let s=this._offsetPath(i,.5*-this._width);s&&e.push(s);break}default:e.push(i)}}return e}}class R{static{this.instance=null}static local(){return null===R.instance&&(R.instance=new R),R.instance}execute(t,e,i){return new X(t,e,i)}}class X extends y{constructor(t,e,i){super(t,!0,!0),this._curveHelper=new P;let s=i?.geomUnitsPerPoint;this._beginCut=(void 0===e.beginCut?1:e.beginCut)*s,this._endCut=(void 0===e.endCut?1:e.endCut)*s,this._middleCut=(void 0===e.middleCut?0:e.middleCut)*s,this._invert=void 0!==e.invert&&e.invert,this._beginCut<0&&(this._beginCut=0),this._endCut<0&&(this._endCut=0),this._middleCut<0&&(this._middleCut=0)}processPath(t){let{_beginCut:e,_endCut:i,_middleCut:s}=this,n=t.pathLength(),r=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._invert){if(0!==e||0!==i||0!==s)if(e+i+s>=n)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else this._curveHelper.appendSubCurve(r,t,0,e),this._curveHelper.appendSubCurve(r,t,.5*(n-s),.5*(n+s)),this._curveHelper.appendSubCurve(r,t,n-i,i)}else if(0===e&&0===i&&0===s)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else e+i+s<n&&(0===s?this._curveHelper.appendSubCurve(r,t,e,n-i):(this._curveHelper.appendSubCurve(r,t,e,.5*(n-s)),this._curveHelper.appendSubCurve(r,t,.5*(n+s),n-i)));return 0===r.totalSize?null:r}}var F=i(45733);class Y{constructor(){this._values=[],this.extPtGap=0,this.ctrlPtGap=0,this._length=0,this._currentValue=0}isEmpty(){return 0===this._values.length}size(){return this._values.length}init(t,e=!0){if(this._setEmpty(),!t||0===t.length)return!1;for(let i=0;i<t.length;i++){let s=Math.abs(t[i]);e&&s<1e-7&&(s=1e-7),this._values.push(s),this._length+=s}return 0!==this._length&&(this.ctrlPtGap=this.extPtGap=0,this._currentValue=-1,!0)}scale(t){let e=this._values?this._values.length:0;for(let i=0;i<e;++i)this._values[i]*=t;this._length*=t,this.extPtGap*=t,this.ctrlPtGap*=t}addValue(t){this._length+=t,this._values.push(t)}firstValue(){return this._values[0]}lastValue(){return this._values[this._values.length-1]}nextValue(){return this._currentValue++,this._currentValue===this._values.length&&(this._currentValue=0),this._values[this._currentValue]}reset(){this._currentValue=-1}length(){return this._length}_setEmpty(){this.extPtGap=this.ctrlPtGap=this._length=0,this._currentValue=-1,this._values.length=0}}class D{constructor(){this.pt=null,this.ca=0,this.sa=0}}class W{constructor(){this.reset()}reset(){this.segment=null,this.segmentLength=0,this.abscissa=0,this.isPathEnd=!1,this.isPartEnd=!1}isValid(){return null!==this.segment}copyTo(t){t.segment=this.segment,t.segmentLength=this.segmentLength,t.abscissa=this.abscissa,t.isPathEnd=this.isPathEnd,t.isPartEnd=this.isPartEnd}}class U extends P{constructor(t=0,e=!1){super(t,e),this._tempPos=new W,this._tempPt=[0,0],this._tolerance=.03,this._currentPosition=new W}updateTolerance(t){this._tolerance=.03*t}init(t,e,i=!0){return i?(this._patternLength=e.length(),this._partExtPtGap=e.extPtGap,this._partCtrlPtGap=e.ctrlPtGap):(this._patternLength=0,this._partExtPtGap=0,this._partCtrlPtGap=0),this._currentPosition.reset(),this._partSegCount=0,this._pathCursor=t,this._seg=-1,this._setPosAtNextPart()}curPositionIsValid(){return this._currentPosition.isValid()}nextPosition(t,e=0){let i=new W;return!!this._nextPosition(t,i,null,e)&&(i.copyTo(this._currentPosition),!0)}curPointAndAngle(t){t.pt=this._getPoint(this._currentPosition);let[e,i]=this._getAngleCS(this._tempPt,this._currentPosition);t.ca=e,t.sa=i}nextPointAndAngle(t,e,i=0){let s=this._tempPos;if(!this._nextPosition(t,s,null,i))return!1;s.copyTo(this._currentPosition),e.pt=this._getPoint(s);let[n,r]=this._getAngleCS(this._tempPt,s);return e.ca=n,e.sa=r,!0}nextCurve(t){if(0===t)return null;let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");e.startPath(),e.nextPath();let i=new W;return this._nextPosition(t,i,e,1)?(i.copyTo(this._currentPosition),e):null}isPathEnd(){return this._currentPosition.isPathEnd}getPathEnd(){return this._currentPosition.segment[1]}getPt(t){return this._pathCursor.seekInPath(t),[this._pathCursor.x,this._pathCursor.y]}getSeg(t){return[this.getPt(t),this.getPt(t+1)]}_nextPosition(t,e,i,s){if(this._currentPosition.isPathEnd)return!1;let n=this._currentPosition.abscissa;for(this._currentPosition.segmentLength>0&&(n/=this._currentPosition.segmentLength),this._currentPosition.copyTo(e);e.abscissa+t*this._partLengthRatio>e.segmentLength+this._tolerance;){if(i){if(0===i.pathSize)if(0===n){let t=e.segment[0];i.pushXY(t[0],t[1])}else i.pushPoint(this.getSegCoord2D(e.segment,n));let t=e.segment[1];i.pushXY(t[0],t[1])}if(n=0,t-=(e.segmentLength-e.abscissa)/this._partLengthRatio,this._partSegCount)e.segment=this._nextSegment(),e.segmentLength=this.getSegLength(e.segment),e.abscissa=0,this._partSegCount--;else{if(!this._setPosAtNextPart())return 0!==s&&(e.segmentLength=this.getSegLength(e.segment),e.isPartEnd=!0,1===s?(e.abscissa=e.segmentLength,e.isPathEnd=!0):e.abscissa=e.segmentLength+t,!0);this._currentPosition.copyTo(e)}}if(e.abscissa+=t*this._partLengthRatio,i){0===i.pathSize&&(0===n?i.pushPoint(e.segment[0]):i.pushPoint(this.getSegCoord2D(e.segment,n)));let t=e.abscissa/e.segmentLength;1===t?i.pushPoint(e.segment[1]):i.pushPoint(this.getSegCoord2D(e.segment,t))}return this._partSegCount||Math.abs(e.abscissa-e.segmentLength)<this._tolerance&&(e.isPathEnd=this._partIsLast,e.isPartEnd=!0),!0}_getPoint(t){let e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegCoord2D(this._currentPosition.segment,e)}_getAngleCS(t,e){let i=e.segmentLength<=0?0:e.abscissa/e.segmentLength;return this.getSegAngleCS(t,this._currentPosition.segment,i)}_setPosAtNextPart(){for(;this._partSegCount;)this._hasNextSegment()&&this._nextSegment(),this._partSegCount--;if(!this._hasNextSegment())return!1;for(this._partLength=0,this._partIsLast=!0,this._partSegCount=0;this._hasNextSegment();)if(this._partLength+=this.getSegLength(this._nextSegment()),this._partSegCount++,this._pathCursor.getControlPointAt(this._getEndPointIndex())){this._partIsLast=!this._hasNextSegment();break}let t=this._partSegCount;for(;t;)this._previousSegment(),--t;this._currentPosition.segment=this._nextSegment(),this._currentPosition.segmentLength=this.getSegLength(this._currentPosition.segment),this._currentPosition.abscissa=0,this._currentPosition.isPathEnd=this._currentPosition.isPartEnd=!1,--this._partSegCount;let e=this._getStartPointIndex();this._ctrlPtBegin=this._pathCursor.getControlPointAt(e);let i=e+this._partSegCount+1;if(i>=this._pathCursor.pathSize&&(i=0),this._ctrlPtEnd=this._pathCursor.getControlPointAt(i),this._patternLength>0){let t=this._ctrlPtBegin?this._partCtrlPtGap:this._partExtPtGap,e=this._ctrlPtEnd?this._partCtrlPtGap:this._partExtPtGap,i=Math.round((this._partLength-(t+e))/this._patternLength);i<=0&&(i=t+e>0?0:1),this._partLengthRatio=this._partLength/(t+e+i*this._patternLength),this._partLengthRatio<.01&&(this._partLengthRatio=1)}else this._partLengthRatio=1;return!0}_hasNextSegment(){return this._seg<this._pathCursor.pathSize-2}_previousSegment(){return this.getSeg(--this._seg)}_nextSegment(){return this.getSeg(++this._seg)}_getStartPointIndex(){return this._seg}_getEndPointIndex(){return this._seg+1}}class B{static{this.instance=null}static local(){return null===B.instance&&(B.instance=new B),B.instance}execute(t,e,i){return new H(t,e,i)}}class H extends y{constructor(t,e,i){super(t,!0,!0),this._firstCurve=null;let s=i.geomUnitsPerPoint;this._walker=new U,this._walker.updateTolerance(s),this._endings=e.lineDashEnding??"NoConstraint",this._customDashPos=-(e.offsetAlongLine??0)*s,this._offsetAtEnd=(e.customEndingOffset??0)*s;let n=(0,F.FH)(e).dashTemplate;n??=[];let r=(0,F.OI)(n);n=r.hidesLine?[-1]:r.dashTemplate,this._pattern=new Y,this._pattern.init(n,!1),this._pattern.scale(s)}processPath(t){if(this._pattern.size()%2==1)return null;if(0===this._pattern.length()){this.iteratePath=!1;let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}if(!this.iteratePath){let e=!0;switch(this._endings){case"HalfPattern":case"HalfGap":default:this._pattern.extPtGap=0;break;case"FullPattern":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.firstValue());break;case"FullGap":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.lastValue());break;case"NoConstraint":this.isClosed||(e=!1);break;case"Custom":this.isClosed||(this._pattern.extPtGap=.5*this._offsetAtEnd)}let i=t.pathLength();if(this._pattern.isEmpty()||i<.1*this._pattern.length()){let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}if(!this._walker.init(t,this._pattern,e)){let e=(0,m.A)(t);return u.z.fromJSONCIM({paths:[e]})}}let e;if(this.iteratePath)e=this._pattern.nextValue();else{let t;switch(this._endings){case"HalfPattern":default:t=.5*this._pattern.firstValue();break;case"HalfGap":t=.5*-this._pattern.lastValue();break;case"FullGap":t=-this._pattern.lastValue();break;case"FullPattern":t=0;break;case"NoConstraint":case"Custom":t=-this._customDashPos}let i=t/this._pattern.length();i-=Math.floor(i),t=i*this._pattern.length(),this._pattern.reset(),e=this._pattern.nextValue();let s=!1;for(;t>=e;)t-=e,e=this._pattern.nextValue(),s=!s;e-=t,s?(this._walker.nextPosition(e),e=this._pattern.nextValue()):this.isClosed&&(this._firstCurve=this._walker.nextCurve(e),e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue())}0===e&&(e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue());let i=this._walker.nextCurve(e);if(i)if(this._walker.isPathEnd()){if(this.iteratePath=!1,this._firstCurve){for(this._firstCurve.nextPath();this._firstCurve.nextPoint();)i.pushXY(this._firstCurve.x,this._firstCurve.y);this._firstCurve=null}}else e=this._pattern.nextValue(),!this._walker.nextPosition(e)||this._walker.isPathEnd()?(this.iteratePath=!1,this._firstCurve&&=(i.pushCursor(this._firstCurve),null)):this.iteratePath=!0;else this.iteratePath=!1,i=this._firstCurve,this._firstCurve=null;return i?.reset(),i}}class V{static{this.instance=null}static local(){return null===V.instance&&(V.instance=new V),V.instance}execute(t,e,i){return new q(t,e,i)}}class q{constructor(t,e,i){this._inputGeometries=t,this._tileKey=i.tileKey,this._maxInflateSize=i.maxInflateSize*i.geomUnitsPerPoint,this._preventClipping=i.preventClipping,this._width=(void 0===e.width?2:e.width)*i.geomUnitsPerPoint,e.method,this._option=e.option??"Accurate"}next(){let t;for(;t=this._inputGeometries.next();){if("esriGeometryEnvelope"===t.geometryType&&this._width>0){let e=t.asJSON();return Math.min(e.xmax-e.xmin,e.ymax-e.ymin)-2*this._width<0?t:u.z.fromJSONCIM({paths:[[[e.xmin+this._width,e.ymin+this._width],[e.xmax-this._width,e.ymin+this._width],[e.xmax-this._width,e.ymax-this._width],[e.xmin+this._width,e.ymax-this._width],[e.xmin+this._width,e.ymin+this._width]],[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}if("esriGeometryPolygon"===t.geometryType){if(0===this._width)return t.clone();let{bufferExecute:e}=w.$Z.module,i=!this._preventClipping&&this._tileKey?(0,w.qc)(t,this._maxInflateSize,!0):t.clone();if(!i)continue;let s=e({...i.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}},-this._width);if(s)for(let t of s.rings)if(t){i.startPath();for(let e of t.reverse())i.pushXY(e[0],i.yFactor*e[1])}return i}}return null}}var J=i(537);class Z{static{this.instance=null}static local(){return null===Z.instance&&(Z.instance=new Z),Z.instance}execute(t,e,i){return new j(t,e,i)}}class j{constructor(t,e,i){this._inputGeometries=t,this._medhod=e.method}next(){let t=this._inputGeometries.next(),e=this._medhod;for(;null!=t;){if(t.totalSize>0)switch(e){case"RectangularBox":return $(t);case"ConvexHull":return this._constructConvexHull(t);default:return K(t)}t=this._inputGeometries.next()}return null}_constructConvexHull(t){switch(t.geometryType){case"esriGeometryPolyline":case"esriGeometryPolygon":{let{convexHullExecute:e}=w.lX.module,i=e({...t.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}});return i?u.z.fromJSONCIM(i):null}case"esriGeometryEnvelope":return t;default:return null}}}function $(t){let e=(0,J.z8)(t),i={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]};return u.z.fromJSONCIM(i)}function K(t){switch(t.geometryType){case"esriGeometryPolyline":{let e=[];for(;t.nextPath();)Q(t,e);return u.z.fromJSONCIM({rings:e})}case"esriGeometryPolygon":case"esriGeometryEnvelope":return t;default:return null}}function Q(t,e){if(t.seekPathStart(),!t.nextPoint())return;let i=t.x,s=t.y,n=[[i,s]];for(e.push(n);t.nextPoint();)n.push([t.x,t.y]);n.push([i,s])}class tt{static{this.instance=null}static local(){return null===tt.instance&&(tt.instance=new tt),tt.instance}execute(t,e,i){return new et(t,e,i)}}class et extends y{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new P;let s=i.geomUnitsPerPoint;this._length=(void 0===e.length?20:e.length)*s,this._angle=void 0===e.angle?225:e.angle,this._position=void 0===e.position?50:e.position,this._length<0&&(this._length=-this._length),this._position<20&&(this._position=20),this._position>80&&(this._position=80),this._mirror=!1}processPath(t){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._curveHelper.isEmpty(t))return null;t.seekInPath(0);let i=t.x,s=t.y;t.seekInPath(t.pathSize-1);let n=t.x,r=t.y,h=[n-i,r-s];this._curveHelper.normalize(h);let a=i+(n-i)*this._position/100,o=s+(r-s)*this._position/100,l=Math.cos((90-this._angle)/180*Math.PI),c=Math.sin((90-this._angle)/180*Math.PI);this._mirror&&(c=-c),this._mirror=!this._mirror;let _=[a-this._length/2*l,o-this._length/2*c],p=[a+this._length/2*l,o+this._length/2*c];return e.pushPath([[i,s],_,p,[n,r]]),e}}class it{static{this.instance=null}static local(){return null===it.instance&&(it.instance=new it),it.instance}execute(t,e,i){return new st(t,e,i)}}class st{constructor(t,e,i){this._inputGeometries=t;let s=i.geomUnitsPerPoint;this._offsetX=void 0===e.offsetX?0:e.offsetX*s,this._offsetY=void 0===e.offsetY?0:e.offsetY*s}next(){let t=this._inputGeometries.next();for(;t;){if(t.totalSize>0)return this._move(t.clone(),this._offsetX,this._offsetY);t=this._inputGeometries.next()}return null}_move(t,e,i){for(;t.nextPath();)for(;t.nextPoint();)t.x+=e,t.y+=i;return t.reset(),t}}var nt=i(60408);class rt{static{this.instance=null}static local(){return null===rt.instance&&(rt.instance=new rt),rt.instance}execute(t,e,i){return new ht(t,e,i)}}class ht{constructor(t,e,i){let s=i.geomUnitsPerPoint,n=i.maxInflateSize;this._preventClipping=i.preventClipping,this._inputGeometries=t,this._tileKey=i.tileKey,this._curveHelper=new P,this._offset=(e.offset??1)*s,this._method=e.method??"Square",this._maxInflateSize=Math.max(Math.abs(n*s),10),this._offsetFlattenError=.03*s}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._offset)return t.clone();if("esriGeometryEnvelope"===t.geometryType){if("Rounded"===this._method&&this._offset>0){let e=(0,m.A)(t),i=this._curveHelper.offset(e,-this._offset,this._method,4,this._offsetFlattenError);if(i){let e=u.z.createEmptyOptimizedCIM(t.geometryType);return e.pushPath(i),e}return null}let e=t.asJSON();if((0,nt.ZC)(e)&&Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._offset>0)return u.z.fromJSONCIM({xmin:e.xmin-this._offset,xmax:e.xmax+this._offset,ymin:e.ymin-this._offset,ymax:e.ymax+this._offset})}let e=!this._preventClipping&&this._tileKey?(0,w.qc)(t,this._maxInflateSize,!0):t.clone();if(!e)continue;let{simplifyOGCExecute:i}=w.xR.module,{offsetExecute:s}=w.mO.module,{graphicBufferExecuteMany:n}=w.hd.module,r=i({...e.asJSON(),spatialReference:{wkid:C.A.WebMercator.wkid}});if(!r)continue;let h,a=at(this._method);return"esriGeometryPolygon"===t.geometryType?("square"===a&&(a="bevel"),h=n([r],[this._offset],a,"round")[0]):h=s(r,-this._offset,{joins:a,flattenError:this._offsetFlattenError,miterLimit:4}),h?u.z.fromJSONCIM(h):null}return null}}function at(t){switch(t){case"Rounded":return"round";case"Bevelled":return"bevel";case"Mitered":return"miter";case"Square":return"square"}}var ot=i(12359);class lt{static{this.instance=null}static local(){return null===lt.instance&&(lt.instance=new lt),lt.instance}execute(t,e,i){return new ut(t,e,i)}}class ut{constructor(t,e,i){let s=i.geomUnitsPerPoint;this._inputGeometries=t,this._executionContext=i,this._length=(void 0===e.length?I.D.CIMGeometricEffectRadial.length:e.length)*s,this._angle=void 0===e.angle?I.D.CIMGeometricEffectRadial.angle:e.angle*Math.PI/180,this._lx=Math.cos(this._angle)*this._length,this._ly=Math.sin(this._angle)*this._length}next(){let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return t.nextPath()&&t.nextPoint()&&(this._executionContext.effectOrigin=[t.x,t.y],e.pushPath([[t.x,t.y],[t.x+this._lx,t.y+this._ly]])),e}if("esriGeometryPolygon"===t.geometryType){let e=(0,ot.IK)(t);if(!e)return null;let i=u.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this._executionContext.effectOrigin=[e[0],e[1]],i.pushPath([[e[0],e[1]],[e[0]+this._lx,e[1]+this._ly]]),i}t=this._inputGeometries.next()}return null}}class ct{static{this.instance=null}static local(){return null===ct.instance&&(ct.instance=new ct),ct.instance}execute(t,e,i){return new _t(t,e,i)}}class _t{constructor(t,e,i){this._inputGeometries=t,this._reverse=void 0===e.reverse||e.reverse}next(){let t=this._inputGeometries.next();for(;t;){if(!this._reverse)return t;if("esriGeometryPolyline"===t.geometryType)return pt(t.clone());t=this._inputGeometries.next()}return null}}function pt(t){for(;t.nextPath();)for(let e=0;e<t.pathSize/2;e++){t.seekInPath(e);let i=t.x,s=t.y;t.seekInPath(t.pathSize-e-1);let n=t.x,r=t.y;t.x=i,t.y=s,t.seekInPath(e),t.x=n,t.y=r}return t.reset(),t}class ft{static{this.instance=null}static local(){return null===ft.instance&&(ft.instance=new ft),ft.instance}execute(t,e,i){return new mt(t,e,i)}}class mt{constructor(t,e,i){this._inputGeometries=t,this._rotateAngle=void 0===e.angle?0:e.angle*Math.PI/180}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._rotateAngle||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){let e=(0,J.z8)(t),i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;return t.reset(),this._rotate(t.clone(),i,s)}t=this._inputGeometries.next()}return null}_rotate(t,e,i){let s=Math.cos(this._rotateAngle),n=Math.sin(this._rotateAngle);for(;t.nextPath();)for(;t.nextPoint();){let r=t.x-e,h=t.y-i;t.x=e+r*s-h*n,t.y=i+r*n+h*s}return t.reset(),t}}class dt{static{this.instance=null}static local(){return null===dt.instance&&(dt.instance=new dt),dt.instance}execute(t,e,i){return new gt(t,e,i)}}class gt{constructor(t,e,i){this._inputGeometries=t,this._xFactor=void 0===e.xScaleFactor?1.15:e.xScaleFactor,this._yFactor=void 0===e.yScaleFactor?1.15:e.yScaleFactor}next(){let t=this._inputGeometries.next();if(t){if(1===this._xFactor&&1===this._yFactor||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){let e=(0,J.z8)(t),i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;return t.reset(),this._scaleCursor(t.clone(),i,s)}}return null}_scaleCursor(t,e,i){for(;t.nextPath();)for(;t.nextPoint();)t.x=e+(t.x-e)*this._xFactor,t.y=i+(t.y-i)*this._yFactor;return t.reset(),t}}class xt{constructor(){this._polyline=[]}beginPath(t){this._polyline.push([t])}lineTo(t){if(0===this._polyline.length)throw Error("No path started. Call beginPath first.");this._polyline[this._polyline.length-1].push(t)}getPointCount(){return this._polyline.reduce((t,e)=>t+e.length,0)}addSegment(t,e,i){i&&this.beginPath(t),this.lineTo(e)}getXY(t){let e=0;for(let i of this._polyline){if(t<e+i.length)return i[t-e];e+=i.length}return null}getGeometry(){return this._polyline}}class yt{static{this.instance=null}static local(){return null===yt.instance&&(yt.instance=new yt),yt.instance}execute(t,e,i){return new Pt(t,e,i)}}class Pt extends y{constructor(t,e,i){super(t,!1,!0),this._suppress=void 0!==e.suppress&&e.suppress,this._invert=void 0!==e.invert&&e.invert}processPath(t){if(t.totalSize<=0)return null;if(!this._suppress){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.nextPoint();)e.pushXY(t.x,t.y);return e}let e=[],i=Array(t.pathSize),s=0;for(t.seekPathStart();t.nextPoint();)i[s++]=t.getControlPoint(),e.push([t.x,t.y]);let n=!0,r=!0,h=!1,a=!this._invert;s=0;let o=new xt,l=e[0];for(;s<e.length-1;){let t=e[s+1],u=i[s],c=i[s+1];s++,r&&=(a=u||c?this._invert:!this._invert,!1),a?(o.addSegment(l,t,n),n=!1):h=!0,l=t,c&&(a?(a=!1,n=!0):a=!0)}let c=o.getGeometry();if(0===c.length)return null;if(!h&&e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){let t=c[c.length-1];return(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1])&&t.push([t[0][0],t[0][1]]),u.z.fromJSONCIM({paths:c})}let _=c[c.length-1];return o.getPointCount()>1&&"esriGeometryPolygon"===t.geometryType&&_[0][0]===_[_.length-1][0]&&_[0][1]===_[_.length-1][1]&&c.length>1&&(c[c.length-1].push(...c[0]),c.splice(0,1)),u.z.fromJSONCIM({paths:c})}}var Mt=i(49186),bt=i(53966),Ct=i(6774);const wt=()=>bt.A.getLogger("esri.symbols.cim.effects.EffectTaperedPolygon");class St{static{this.instance=null}static local(){return null===St.instance&&(St.instance=new St),St.instance}execute(t,e,i){return new vt(t,e,i)}}class vt extends y{constructor(t,e,i){super(t,!1,!0),this._slopeS=0,this._slopeC=1,this._lastTangent1=new Ct.bR(NaN,NaN),this._lastWidth=0;let s=i.geomUnitsPerPoint;this._geomUnitsPerPoint=s,this._halfFromWidth=Math.abs(void 0===e.fromWidth?0:e.fromWidth)*s*.5,this._halfToWidth=Math.abs(void 0===e.toWidth?1:e.toWidth)*s*.5,this._originalLength=(void 0===e.length?0:e.length)*s,this._length=0}processPath(t){if(t.totalSize<=0)return null;if(this._halfFromWidth<=0&&this._halfToWidth<=0){let e=u.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.prevPoint();)e.pushXY(t.x,t.y);for(t.seekPathStart();t.nextPoint();)e.pushXY(t.x,t.y);return e}let e=t.getCurrentPath().asJSON(),{generalizeExecute:i}=w.NS.module,s=i(e,.25*this._geomUnitsPerPoint,{removeDegenerateParts:!0}),n=null==s?null:(0,nt.Bi)(s)?s.rings:(0,nt.Rg)(s)?s.paths:null;if(!n)return wt().error(new Mt.A("mapview-bad-resource","Unable to process geometry")),null;let{lengthExecute:r}=w.Xs.module,h=r(s);if((0===this._originalLength||this._originalLength>h)&&h>0){this._length=h;let t=(this._halfToWidth-this._halfFromWidth)/this._length;if(Math.abs(t)<1){let e=t*t;this._slopeC=Math.sqrt(1/(1+e)),this._slopeS=Math.sqrt(e/(1+e)),t<0&&(this._slopeS=-this._slopeS)}else this._slopeC=this._slopeS=.7071}else this._length=this._originalLength,this._slopeC=1,this._slopeS=0;let a=[];for(let t of n){let e=new xt,i=new xt,s=0;this._setFromOffset(t.slice(0,2),e,i);for(let n=0,r=3;r<=t.length;++n,++r)s=this._setOffset(t.slice(n,r),s,e,i);this._setToOffset(t.slice(-2),s,e,i);let[n]=e.getGeometry(),[r]=i.getGeometry();a.push([...n,...r.reverse()])}let o={rings:a,spatialReference:{wkid:C.A.WebMercator.wkid}},{simplifyExecute:l}=w.yM.module,c=l(o);return u.z.fromJSONCIM(c)}_setFromOffset([[t,e],[i,s]],n,r){let h=this._halfFromWidth,a=new Ct.bR(i-t,s-e).normalize().scale(h);n.beginPath([t-a.y,e+a.x]),r.beginPath([t+a.y,e-a.x])}_setToOffset([[t,e],[i,s]],n,r,h){let a;a=(n+=Math.sqrt((i-t)**2+(s-e)**2))>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*n/this._length;let o=new Ct.bR(i-t,s-e).normalize().scale(a);r.lineTo([i-o.y,s+o.x]),h.lineTo([i+o.y,s-o.x])}_setOffset([[t,e],[i,s],[n,r]],h,a,o){let l,u=Math.sqrt((i-t)**2+(s-e)**2);l=h+u>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*(h+u)/this._length,h+=u;let c=new Ct.bR(i,s),_=new Ct.bR(i-t,s-e).normalize(),p=new Ct.bR(n-i,r-s).normalize(),f=Ct.bR.sub(p,_),m=a.getPointCount(),d=o.getPointCount();_.leftPerpendicular(),p.leftPerpendicular();let g=_.x*p.x+_.y*p.y;if(g>.99){let t=Ct.bR.add(_,p).scale(l/2),e=t.clone().rotate(this._slopeC,this._slopeS);a.lineTo([c.x+e.x,c.y+e.y]);let i=t.rotateReverse(this._slopeC,this._slopeS);o.lineTo([c.x-i.x,c.y-i.y])}else{let i=_.x*p.y-_.y*p.x;if(f.scale(1/i),i<0){f.scale(-l).rotateReverse(this._slopeC,this._slopeS);let t=o.getXY(d-1);t||wt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let e=Ct.bR.add(c,f).sub(Ct.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){let t=_.clone().scale(-l).rotateReverse(this._slopeC,this._slopeS),e=p.clone().scale(-l).rotateReverse(this._slopeC,this._slopeS);o.lineTo([c.x+t.x,c.y+t.y]),o.lineTo([c.x,c.y]),o.lineTo([c.x+e.x,c.y+e.y])}else o.lineTo([c.x+f.x,c.y+f.y])}else{f.scale(l).rotate(this._slopeC,this._slopeS);let t=a.getXY(m-1);t||wt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let e=Ct.bR.add(c,f).sub(Ct.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){let t=_.clone().scale(l).rotate(this._slopeC,this._slopeS),e=p.clone().scale(l).rotate(this._slopeC,this._slopeS);a.lineTo([c.x+t.x,c.y+t.y]),a.lineTo([c.x,c.y]),a.lineTo([c.x+e.x,c.y+e.y])}else a.lineTo([c.x+f.x,c.y+f.y])}let s=Math.acos(g),n=1;if(l>.25){let t=2*Math.acos(1-.25/l);t<s&&(n=Math.round(s/t))}let r=Math.cos(s/n),h=Math.sin(s/n),u=_.clone();if(i<0){u.rotate(this._slopeC,this._slopeS);let i=a.getXY(m-1);i||wt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let s=Ct.bR.add(c,u.clone().scale(this._lastWidth)),n=Ct.bR.sub(s,Ct.bR.fromArray(i)),r=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&r>0){let i=new Ct.bR(t,e),s=this._lastTangent1.clone().scale(this._lastWidth);s.rotate(this._slopeC,this._slopeS);let n=_.clone().scale(this._lastWidth);n.rotate(this._slopeC,this._slopeS),a.lineTo([i.x+s.x,i.y+s.y]),a.lineTo([i.x,i.y]),a.lineTo([i.x+n.x,i.y+n.y])}}else{u.scale(-1).rotateReverse(this._slopeC,this._slopeS);let i=o.getXY(d-1);i||wt().error(new Mt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));let s=Ct.bR.add(c,u.clone().scale(this._lastWidth)),n=Ct.bR.sub(s,Ct.bR.fromArray(i)),r=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&r>0){let i=new Ct.bR(t,e),s=this._lastTangent1.clone().scale(-this._lastWidth);s.rotateReverse(this._slopeC,this._slopeS);let n=_.clone().scale(-this._lastWidth);n.rotateReverse(this._slopeC,this._slopeS),o.lineTo([i.x+s.x,i.y+s.y]),o.lineTo([i.x,i.y]),o.lineTo([i.x+n.x,i.y+n.y])}}u.scale(l);for(let t=0;t<=n;t++)i<0?(a.lineTo([c.x+u.x,c.y+u.y]),u.rotateReverse(r,h)):(o.lineTo([c.x+u.x,c.y+u.y]),u.rotate(r,h))}return this._lastTangent1.setCoords(_.x,_.y),this._lastWidth=l,h}}class zt{static{this.instance=null}static local(){return null===zt.instance&&(zt.instance=new zt),zt.instance}execute(t,e,i){return new It(t,e,i)}}class It{constructor(t,e,i){this._inputGeometries=t;let s=i.geomUnitsPerPoint;this._height=(void 0===e.amplitude?2:e.amplitude)*s,this._period=(void 0===e.period?3:e.period)*s,this._style=e.waveform??"Sinus",this._height<=0&&(this._height=Math.abs(this._height)),this._period<=0&&(this._period=Math.abs(this._period)),this._pattern=new Y,this._pattern.addValue(this._period),this._pattern.addValue(this._period),this._walker=new U,this._walker.updateTolerance(s)}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._height||0===this._period)return t;let e=this._processGeom(t);if(e)return e;t=this._inputGeometries.next()}return null}_processGeom(t){let e=u.z.createEmptyOptimizedCIM(t.geometryType);for(;t.nextPath();){e.startPath();let i=t.pathLength();if(this._walker.init(t,this._pattern))switch(this._style){case"Sinus":default:this._constructCurve(e,i,!1);break;case"Square":this._constructSquare(e,i);break;case"Triangle":this._constructTriangle(e,i);break;case"Random":this._constructCurve(e,i,!0)}else for(;t.nextPoint();)e.pushXY(t.x,t.y)}return e}_constructCurve(t,e,i){let s=Math.round(e/this._period);0===s&&(s=1);let n=16*s+1,r=e/s,h=this._period/16,a=1/n,o=2*Math.PI*e/r,l=2*Math.PI*Math.random(),u=2*Math.PI*Math.random(),c=2*Math.PI*Math.random(),_=.75-Math.random()/2,p=.75-Math.random()/2,f=new D;this._walker.curPointAndAngle(f),t.pushPoint(f.pt);let m=0;for(;;){if(!this._walker.nextPointAndAngle(h,f)){t.pushPoint(this._walker.getPathEnd());break}{let e,s=m;if(m+=a,i){let t=this._height/2*(1+.3*Math.sin(_*o*s+l));e=t*Math.sin(o*s+u),e+=t*Math.sin(p*o*s+c),e/=2}else e=.5*this._height*Math.sin(.5*o*s);t.pushXY(f.pt[0]-e*f.sa,f.pt[1]+e*f.ca)}}}_constructSquare(t,e){Math.round(e/this._period);let i=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){let s=new D;this._walker.curPointAndAngle(s);let n=new D;if(this._walker.nextPointAndAngle(this._period,n)){let r=new D;this._walker.nextPointAndAngle(this._period,r)&&(i?(t.pushPoint(s.pt),i=!1):t.pushPoint(s.pt),t.pushXY(s.pt[0]-this._height/2*s.sa,s.pt[1]+this._height/2*s.ca),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(n.pt[0]+this._height/2*n.sa,n.pt[1]-this._height/2*n.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}_constructTriangle(t,e){Math.round(e/this._period);let i=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){let s=new D;this._walker.curPointAndAngle(s);let n=new D;if(this._walker.nextPointAndAngle(this._period/2,n)){let r=new D;this._walker.nextPointAndAngle(this._period,r)&&(this._walker.nextPosition(this._period/2)&&(i?(t.pushPoint(s.pt),i=!1):t.pushPoint(s.pt),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca)),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}}class At{static{this.instance=null}static local(){return null===At.instance&&(At.instance=new At),At.instance}execute(t,e,i){return new kt(t,e,i)}}class kt extends x{constructor(t,e,i){super(t),this._geometryWalker=new U,this._geometryWalker.updateTolerance(i),this._angleToLine=e.angleToLine??!0,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset?e.offset:0)*i,this._originalEndings=e.endings??"WithHalfGap",this._offsetAtEnd=(e.customEndingOffset?e.customEndingOffset:0)*i,this._position=-(e.offsetAlongLine?e.offsetAlongLine:0)*i,this._pattern=new Y,this._pattern.init(e.placementTemplate),this._pattern.scale(i),this._endings=this._originalEndings}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath)e=this._pattern.nextValue();else{this._endings="WithFullGap"===this._originalEndings&&this.isClosed?"WithMarkers":this._originalEndings,this._pattern.extPtGap=0;let i,s=!0;switch(this._endings){case"NoConstraint":i=-this._position,i=this._adjustPosition(i),s=!1;break;case"WithHalfGap":default:i=-this._pattern.lastValue()/2;break;case"WithFullGap":i=-this._pattern.lastValue(),this._pattern.extPtGap=this._pattern.lastValue();break;case"WithMarkers":i=0;break;case"Custom":i=-this._position,i=this._adjustPosition(i),this._pattern.extPtGap=.5*this._offsetAtEnd}if(!this._geometryWalker.init(t,this._pattern,s))return null;this._pattern.reset();let n=0;for(;i>n;)i-=n,n=this._pattern.nextValue();n-=i,e=n,this.iteratePath=!0}let i=new D;return!this._geometryWalker.nextPointAndAngle(e,i)||"WithFullGap"===this._endings&&this._geometryWalker.isPathEnd()?(this.iteratePath=!1,null):"WithMarkers"===this._endings&&this._geometryWalker.isPathEnd()&&(this.iteratePath=!1,this.isClosed)?null:(this.internalPlacement.setTranslate(i.pt[0]-this._offset*i.sa,i.pt[1]+this._offset*i.ca),this._angleToLine&&this.internalPlacement.setRotateCS(i.ca,i.sa),this.internalPlacement)}_adjustPosition(t){let e=t/this._pattern.length();return e-=Math.floor(e),e*this._pattern.length()}}class Tt{static{this.instance=null}static local(){return null===Tt.instance&&(Tt.instance=new Tt),Tt.instance}execute(t,e,i){return new Et(t,e,i)}}class Et extends x{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new P,this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._type=e.extremityPlacement??"Both",this._position=void 0===e.offsetAlongLine?0:e.offsetAlongLine*i,this._beginProcessed=!1}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){let e;switch(this._type){case"Both":default:this._beginProcessed?(e=this._atExtremities(t,this._position,!1),this._beginProcessed=!1,this.iterateMultiPath=!1,this.iteratePath=!1):(e=this._atExtremities(t,this._position,!0),this._beginProcessed=!0,this.iterateMultiPath=!0,this.iteratePath=!0);break;case"JustBegin":e=this._atExtremities(t,this._position,!0);break;case"JustEnd":e=this._atExtremities(t,this._position,!1);case"None":}return e}_atExtremities(t,e,i){if(this._placePerPart||(i?t.seekPath(0):t.seekPath(t.totalSize-1)),i||t.seekPathEnd(),i?t.nextPoint():t.prevPoint()){let s=0,[n,r]=[0,0],[h,a]=[t.x,t.y],o=[0,0];for(;i?t.nextPoint():t.prevPoint();){n=h,r=a,h=t.x,a=t.y;let i=this._curveHelper.getLength(n,r,h,a);if(s+i>e){let t=(e-s)/i,[l,u]=this._curveHelper.getAngleCS(o,n,r,h,a,t),c=this._curveHelper.getCoord2D(n,r,h,a,t);return this.internalPlacement.setTranslate(c[0]-this._offset*u,c[1]+this._offset*l),this._angleToLine&&this.internalPlacement.setRotateCS(-l,-u),this.internalPlacement}s+=i}}return null}}const Lt=.001;class Gt{static{this.instance=null}static local(){return null===Gt.instance&&(Gt.instance=new Gt),Gt.instance}execute(t,e,i){return new Nt(t,e,i)}}class Nt extends x{constructor(t,e,i){super(t),this._segmentIterator=null,this._segCount=0,this._firstSeg=!0,this._seg=null,this._ms=[],this._from=0,this._to=0,this._pt=null,this._walker=new U,this._walker.updateTolerance(i),this._placePerPart=e.placePerPart??!1,this._angleToLine=e.angleToLine??!1,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset??0)*i,this._interval=e.interval??0,this._interval<=0&&(this._interval=.01),this._skipRate=e.skipMarkerRate??0,this._skipRate<=1&&(this._skipRate=0),this._placeAtExtremities=e.placeAtExtremities??!1}processPath(t){if(!this.iteratePath){let{fromGeometry:e}=w.vZ.module,i=e(t.getCurrentPath().asJSON()).getGeometry(),s=i.getPathStart(0);this._segmentIterator=i.querySegmentIteratorAtVertex(s),this._segCount=i.getSegmentCountPath(0),this._firstSeg=!0,this.iteratePath=!0,this._pt=i.getXY(0).clone()}for(;0===this._ms.length&&this._segmentIterator?.hasNextSegment();){--this._segCount,this._seg=this._segmentIterator.nextSegment(),this._from=this._seg.getStartAttributeAsDbl(2,0),this._to=this._seg.getEndAttributeAsDbl(2,0);let e=!isNaN(this._from),i=!isNaN(this._to);e&&(this._from=Math.round(this._from/Lt)*Lt,Math.abs(this._from)<Lt&&(this._from=0)),i&&(this._to=Math.round(this._to/Lt)*Lt,Math.abs(this._to)<Lt&&(this._to=0));let s=e?Math.floor(this._from/this._interval):0,n=i?Math.floor(this._to/this._interval):0;if(e&&(this._placeAtExtremities||!this._firstSeg||!this._placePerPart&&t.pathIndex>0)&&Math.abs(s*this._interval-this._from)<Lt&&(!this._skipRate||s%this._skipRate)&&this._ms.push(this._from),this._firstSeg=!1,e&&i&&!(Math.abs(this._from-this._to)<Lt))if(this._from<=this._to){s*this._interval<this._from+Lt&&++s,n*this._interval>this._to-Lt&&--n;for(let t=s;t<=n;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}else{s*this._interval>this._from-Lt&&--s,n*this._interval<this._to+Lt&&++n;for(let t=n;t<=s;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}}let e=0;if(0===this._ms.length){if(this.iteratePath=!1,!this._segCount&&this._placeAtExtremities&&!isNaN(this._to)&&(this._placePerPart||t.pathIndex===t.totalSize-1)){let t=Math.floor(this._to/this._interval);Math.abs(t*this._interval-this._to)<Lt&&(!this._skipRate||t%this._skipRate)&&(this._ms.push(this._to),e=1)}if(0===this._ms.length)return null}let i=this._ms.pop(),s=isNaN(this._from)||isNaN(this._to)||Math.abs(this._from-this._to)<Lt?e:(i-this._from)/(this._to-this._from);this._seg.queryCoord2D(s,this._pt);let{x:n,y:r}=this._seg.getTangent(s).normalize();return this.internalPlacement.setTranslate(this._pt.x-this._offset*r,this._pt.y+this._offset*n),this._angleToLine&&(this._keepUpright&&n<0&&(n=-n,r=-r),this.internalPlacement.setRotateCS(n,r)),this.internalPlacement.setMeasure(i),this.internalPlacement}}class Ot{static{this.instance=null}static local(){return null===Ot.instance&&(Ot.instance=new Ot),Ot.instance}execute(t,e,i){return new Rt(t,e,i)}}class Rt extends x{constructor(t,e,i){super(t),this._walker=new U,this._walker.updateTolerance(i),this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._beginGap=void 0===e.beginPosition?0:e.beginPosition*i,this._endGap=void 0===e.endPosition?0:e.endPosition*i,this._flipFirst=void 0===e.flipFirst||e.flipFirst,this._pattern=new Y,this._pattern.init(e.positionArray,!1),this._subPathLen=0,this._totalPathLen=0,this._posCount=this._pattern.size(),this._pathIndexes=[],this._pathLengths=[],this._pathStarts=[],this._posIndex=0,this._positions=[],this._isFirst=!0,this._prevPos=0}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){return this._pattern.isEmpty()?null:this._placePerPart?this._processPathPerPart(t):this._processMultiPart(t)}_processPathPerPart(t){let e;if(this.iteratePath){let t=this._pattern.nextValue()*this._subPathLen,i=this._beginGap+t;e=i-this._prevPos,this._prevPos=i}else{if(this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0,this._subPathLen=t.pathLength()-this._beginGap-this._endGap,this._subPathLen<0)return this.iteratePath=!1,null;if(!this._walker.init(t,this._pattern,!1))return null;this._pattern.reset();let i=this._pattern.nextValue()*this._subPathLen,s=this._beginGap+i;e=s-this._prevPos,this._prevPos=s,this.iteratePath=!0}let i=new D;return this._walker.nextPointAndAngle(e,i,1)?(this._posCount--,0===this._posCount&&(this.iteratePath=!1),this._setPlacement(i)):(this.iteratePath=!1,null)}_processMultiPart(t){if(!this.iteratePath){if(!this._initializeMultiPart(t))return null;this.iteratePath=!0}if(this._posIndex>=this._positions.length)return this.iteratePath=!1,null;let e=this._getPositionAtDistance(t,this._positions[this._posIndex]);if(null==e)return this.iterateMultiPath=!1,this.iteratePath=!1,null;this._posIndex++;let i=this._posIndex<this._positions.length;return this.iterateMultiPath=i,this.iteratePath=i,this._setPlacement(e)}_initializeMultiPart(t){this._pathIndexes.length=0,this._pathLengths.length=0,this._pathStarts.length=0,this._positions.length=0,this._totalPathLen=0,this._posIndex=0,this._isFirst=!0;for(let e=0;e<t.totalSize;e++){if(!t.seekPath(e))continue;let i=t.pathLength();i<=0||(this._pathIndexes.push(e),this._pathStarts.push(this._totalPathLen),this._pathLengths.push(i),this._totalPathLen+=i)}if(this._subPathLen=this._totalPathLen-this._beginGap-this._endGap,this._subPathLen<0||!this._pathIndexes.length)return!1;this._pattern.reset();for(let t=0;t<this._pattern.size();t++)this._positions.push(this._beginGap+this._pattern.nextValue()*this._subPathLen);return this._positions.length>0}_getPositionAtDistance(t,e){let i=Math.max(0,Math.min(e,this._totalPathLen)),s=this._pathIndexes.length-1;for(let t=0;t<this._pathIndexes.length-1;t++)if(i<=this._pathStarts[t]+this._pathLengths[t]){s=t;break}if(!t.seekPath(this._pathIndexes[s])||!this._walker.init(t,this._pattern,!1))return null;let n=new D,r=Math.max(0,Math.min(i-this._pathStarts[s],this._pathLengths[s]));return this._walker.nextPointAndAngle(r,n,1)?n:null}_setPlacement(t){this.internalPlacement.setTranslate(t.pt[0]-this._offset*t.sa,t.pt[1]+this._offset*t.ca);let e,i,s=this._isFirst&&this._flipFirst;return this._angleToLine?(e=t.ca,i=t.sa):(e=1,i=0),s&&(e=-e,i=-i),this.internalPlacement.setRotateCS(e,i),this._isFirst=!1,this.internalPlacement}}var Xt=i(87811);const Ft=1e-6;class Yt{static{this.instance=null}static local(){return null===Yt.instance&&(Yt.instance=new Yt),Yt.instance}execute(t,e,i,s){return new Dt(t,e,i,s)}}class Dt{constructor(t,e,i,s){if(this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,this._currentX=0,this._currentY=0,this._accelerationMap=null,this._testInsidePolygon=!1,this._verticalSubdivision=!0,this._stepX=Math.abs(e.stepX??16)*i,this._stepY=Math.abs(e.stepY??16)*i,this._stepX=Math.round(128*this._stepX)/128,this._stepY=Math.round(128*this._stepY)/128,0!==this._stepX&&0!==this._stepY){if(this._gridType=e.gridType??"Fixed","Random"===this._gridType){let t=e.seed??13;this._randomLCG=new Xt.A(1*t),this._randomness=(e.randomness??100)/100,this._gridAngle=0,this._shiftOddRows=!1,this._cosAngle=1,this._sinAngle=0,this._offsetX=0,this._offsetY=0,this._buildRandomValues()}else{if(this._randomness=0,this._gridAngle=e.gridAngle??0,this._shiftOddRows=e.shiftOddRows??!1,this._offsetX=(e.offsetX??0)*i,this._offsetY=(e.offsetY??0)*i,this._cosAngle=Math.cos(this._gridAngle/180*Math.PI),this._sinAngle=-Math.sin(this._gridAngle/180*Math.PI),this._stepX)if(this._offsetX<0)for(;this._offsetX<-.5*this._stepX;)this._offsetX+=this._stepX;else for(;this._offsetX>=.5*this._stepX;)this._offsetX-=this._stepX;if(this._stepY)if(this._offsetY<0)for(;this._offsetY<-.5*this._stepY;)this._offsetY+=this._stepY;else for(;this._offsetY>=.5*this._stepY;)this._offsetY-=this._stepY}if(this._graphicOriginX=0,this._graphicOriginY=0,null!=s){let[t,e,i,n]=s.split("/"),r=parseFloat(t),h=parseFloat(e),a=parseFloat(i),o=parseFloat(n);this._graphicOriginX=512*-(o*2**r+a),this._graphicOriginY=512*h,this._testInsidePolygon=!0}this._internalPlacement=new d.W,this._calculateMinMax(t),this._geometryCursor=t}}next(){return this._geometryCursor?this._nextInside():null}_buildRandomValues(){if(!Dt._randValues){Dt._randValues=[];for(let t=0;t<24;t++)for(let t=0;t<24;t++)Dt._randValues.push(this._randomLCG.getFloat()),Dt._randValues.push(this._randomLCG.getFloat())}}_calculateMinMax(t){let e,i,s,n,r,h,a,o,l,u,c,_,p,f;this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,a=o=p=c=Number.MAX_VALUE,l=u=f=_=-Number.MAX_VALUE;let m=1!==this._cosAngle;for(t.reset();t.nextPath();)for(;t.nextPoint();)h=t.x,r=t.y,e=h-this._graphicOriginX-this._offsetX,i=r-this._graphicOriginY-this._offsetY,m?(s=this._cosAngle*e-this._sinAngle*i,n=this._sinAngle*e+this._cosAngle*i):(s=e,n=i),a=Math.min(a,s),l=Math.max(l,s),o=Math.min(o,n),u=Math.max(u,n),c=Math.min(c,r),_=Math.max(_,r),p=Math.min(p,h),f=Math.max(f,h);c=c===Number.MAX_VALUE?-512-this._stepY:c,_=_===-Number.MAX_VALUE?this._stepY:_,p=p===Number.MAX_VALUE?-this._stepX:p,f=f===-Number.MAX_VALUE?512+this._stepX:f;let d=_-c,g=f-p;if(this._verticalSubdivision=d>=g,this._polygonMin=this._verticalSubdivision?c:p,this._testInsidePolygon){let t=0-this._graphicOriginX-this._offsetX-this._stepX,e=512-this._graphicOriginX-this._offsetX+this._stepX,i=-512-this._graphicOriginY-this._offsetY-this._stepY,s=0-this._graphicOriginY-this._offsetY+this._stepY;if(m){let n=[[t,i],[t,s],[e,i],[e,s]];t=i=Number.MAX_VALUE,e=s=-Number.MAX_VALUE;for(let r of n){let n=this._cosAngle*r[0]-this._sinAngle*r[1],h=this._sinAngle*r[0]+this._cosAngle*r[1];t=Math.min(t,n),e=Math.max(e,n),i=Math.min(i,h),s=Math.max(s,h)}}a=a===Number.MAX_VALUE?t:Math.max(a,t),o=o===Number.MAX_VALUE?i:Math.max(o,i),l=l===-Number.MAX_VALUE?e:Math.min(l,e),u=u===-Number.MAX_VALUE?s:Math.min(u,s)}this._xMin=Math.round(a/this._stepX),this._xMax=Math.round(l/this._stepX),this._yMin=Math.round(o/this._stepY),this._yMax=Math.round(u/this._stepY),this._currentX=this._xMax+1,this._currentY=this._yMin-1,this._buildAccelerationMap(t,p,f,c,_)}_buildAccelerationMap(t,e,i,s,n){t.reset();let r=new Map,h=this._verticalSubdivision,a=h?n-s:i-e,o=Math.ceil(a/10);if(o<=1)return;let l,u,c,_,p,f,m,d,g,x,y,P=Math.floor(a/o);for(o++,this._delta=P,h?(g=-512-2*this._stepY,x=2*this._stepY,y=s):(g=-2*this._stepX,x=512+2*this._stepX,y=e);t.nextPath();)if(!(t.pathSize<2)&&t.nextPoint())for(l=t.x,u=t.y;t.nextPoint();l=c,u=_){if(c=t.x,_=t.y,h){if(u===_||u<g&&_<g||u>x&&_>x)continue;p=Math.min(u,_),f=Math.max(u,_)}else{if(l===c||l<g&&c<g||l>x&&c>x)continue;p=Math.min(l,c),f=Math.max(l,c)}for(;p<f;)m=Math.floor((p-y)/P),Wt(m,l,u,c,_,r),p+=P;d=Math.floor((f-y)/P),d>m&&Wt(d,l,u,c,_,r)}this._accelerationMap=r}_nextInside(){for(;;){if(this._currentX>this._xMax){if(this._currentY++,this._currentY>this._yMax)return null;this._currentX=this._xMin,this._shiftOddRows&&this._currentY%2&&this._currentX--}let t=this._currentX*this._stepX+this._offsetX;this._shiftOddRows&&this._currentY%2&&(t+=.5*this._stepX);let e,i,s=this._currentY*this._stepY+this._offsetY;if(this._currentX++,"Random"===this._gridType){let n=(this._currentX%24+24)%24,r=(this._currentY%24+24)%24;e=this._graphicOriginX+t+this._stepX*this._randomness*(.5-Dt._randValues[24*r+n])*2/3,i=this._graphicOriginY+s+this._stepY*this._randomness*(.5-Dt._randValues[24*r+n+1])*2/3}else e=this._graphicOriginX+this._cosAngle*t+this._sinAngle*s,i=this._graphicOriginY-this._sinAngle*t+this._cosAngle*s;if(!this._testInsidePolygon||this._isInsidePolygon(e,i,this._geometryCursor))return this._internalPlacement.setTranslate(e,i),this._internalPlacement}}_isInsidePolygon(t,e,i){if(null==this._accelerationMap)return function(t,e,i){let s,n,r,h,a=0;for(t+=Ft,e+=Ft,i.reset();i.nextPath();)if(i.nextPoint())for(s=i.x,n=i.y;i.nextPoint();s=r,n=h)r=i.x,h=i.y,n>e!=h>e&&((r-s)*(e-n)-(h-n)*(t-s)>0?a++:a--);return 0!==a}(t,e,i);t+=Ft,e+=Ft;let s=this._verticalSubdivision,n=Math.floor(((s?e:t)-this._polygonMin)/this._delta),r=this._accelerationMap.get(n);if(!r)return!1;let h,a,o,l=0;for(let i of r){if(h=i[0],a=i[1],s){if(h[1]>e==a[1]>e)continue;o=(a[0]-h[0])*(e-h[1])-(a[1]-h[1])*(t-h[0])}else{if(h[0]>t==a[0]>t)continue;o=(a[1]-h[1])*(t-h[0])-(a[0]-h[0])*(e-h[1])}o>0?l++:l--}return 0!==l}}function Wt(t,e,i,s,n,r){let h=r.get(t);h||(h=[],r.set(t,h)),h.push([[e,i],[s,n]])}class Ut{static{this.instance=null}static local(){return null===Ut.instance&&(Ut.instance=new Ut),Ut.instance}execute(t,e,i){return new Bt(t,e,i)}}class Bt extends x{constructor(t,e,i){super(t),this._curveHelper=new P,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._relativeTo=e.relativeTo??"LineMiddle",this._position=void 0===e.startPointOffset?0:e.startPointOffset*i,this._epsilon=.001*i}processPath(t){let e=this._position;if("SegmentMidpoint"===this._relativeTo){if(this.iteratePath||=!0,t.nextPoint()){let[e,i]=[t.x,t.y],[s,n]=[0,0],r=[0,0];for(;t.nextPoint();){s=t.x,n=t.y;let h=this._curveHelper.getLength(e,i,s,n);if(h<this._epsilon){e=s,i=n;continue}let a=.5+this._position/h,[o,l]=this._curveHelper.getAngleCS(r,e,i,s,n,a),u=this._curveHelper.getCoord2D(e,i,s,n,a);return this.internalPlacement.setTranslate(u[0]-this._offset*l,u[1]+this._offset*o),this._angleToLine&&this.internalPlacement.setRotateCS(o,l),this.internalPlacement}}return this.iteratePath=!1,null}let i="LineEnd"===this._relativeTo;return this.onLine(t,e,i)}onLine(t,e,i){let s,n=!1;switch(this._relativeTo){case"LineMiddle":default:t.seekPathStart(),s=t.pathLength()/2+e;break;case"LineBeginning":s=e;break;case"LineEnd":s=e,n=!0}i?t.seekPathEnd():t.seekPathStart();let r=0;if(i?t.prevPoint():t.nextPoint()){let[e,h]=[t.x,t.y],[a,o]=[0,0],l=[0,0];for(;i?t.prevPoint():t.nextPoint();){a=t.x,o=t.y;let i=this._curveHelper.getLength(e,h,a,o);if(r+i>s){let t=(s-r)/i,[u,c]=this._curveHelper.getAngleCS(l,e,h,a,o,t),_=this._curveHelper.getCoord2D(e,h,a,o,t),p=n?-this._offset:this._offset;return this.internalPlacement.setTranslate(_[0]-p*c,_[1]+p*u),this._angleToLine&&(n?this.internalPlacement.setRotateCS(-u,-c):this.internalPlacement.setRotateCS(u,c)),this.internalPlacement}e=a,h=o,r+=i}}return null}}class Ht{static{this.instance=null}static local(){return null===Ht.instance&&(Ht.instance=new Ht),Ht.instance}execute(t,e,i){return new Vt(t,e,i)}}class Vt extends x{constructor(t,e,i){super(t),this._curveHelper=new P,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0===e.offset?0:e.offset*i,this._endPoints=void 0===e.placeOnEndPoints||e.placeOnEndPoints,this._controlPoints=void 0===e.placeOnControlPoints||e.placeOnControlPoints,this._regularVertices=void 0===e.placeOnRegularVertices||e.placeOnRegularVertices,this._tags=[],this._tagIterator=0}processPath(t){if(this.iteratePath||=(this._preparePath(t),!0),this._tagIterator>=this._tags.length)return this._tags.length=0,this._tagIterator=0,this.iteratePath=!1,null;let e=this._tags[this._tagIterator];this._angleToLine&&this.internalPlacement.setRotate(e[2]);let i=e[0],s=e[1];if(0!==this._offset){let t=Math.cos(e[2]),n=Math.sin(e[2]);i-=this._offset*n,s+=this._offset*t}return this.internalPlacement.setTranslate(i,s),this._tagIterator++,this.internalPlacement}_preparePath(t){this._tags.length=0,this._tagIterator=0,t.seekPathStart();let e=t.isClosed(),i=0,s=!1,n=0,r=0;if(t.seekPathStart(),t.nextPoint()){let h=t.x,a=t.y,o=t.getControlPoint(),l=!0,u=t.nextPoint();for(;u;){let c=t.x,_=t.y,p=t.getControlPoint();(this._angleToLine||0!==this._offset)&&(n=this._curveHelper.getAngle(h,a,c,_,0)),l?(l=!1,e?(i=n,s=o):(this._endPoints||this._controlPoints&&o)&&this._tags.push([h,a,n])):o?this._controlPoints&&this._tags.push([h,a,qt(r,n)]):this._regularVertices&&this._tags.push([h,a,qt(r,n)]),(this._angleToLine||0!==this._offset)&&(r=this._curveHelper.getAngle(h,a,c,_,1)),u=t.nextPoint(),u||(e?p||s?this._controlPoints&&this._tags.push([c,_,qt(r,i)]):this._regularVertices&&this._tags.push([c,_,qt(r,i)]):(this._endPoints||this._controlPoints&&p)&&this._tags.push([c,_,r])),h=c,a=_,o=p}}this._tagIterator=0}}function qt(t,e){let i=Math.PI;for(;Math.abs(e-t)>i+2e-15;)e-t>i?e-=2*i:e+=2*i;return(t+e)/2}var Jt=i(78957);class Zt{static{this.instance=null}static local(){return null===Zt.instance&&(Zt.instance=new Zt),Zt.instance}execute(t,e,i){return new jt(t,e,i)}}class jt{constructor(t,e,i){this._geometryCursor=t,this._offsetX=void 0===e.offsetX?0:e.offsetX*i,this._offsetY=void 0===e.offsetY?0:e.offsetY*i,this._method=void 0===e.method?"OnPolygon":e.method,this._placementPerPart=void 0!==e.placePerPart&&e.placePerPart,this._internalPlacement=new d.W}next(){let t=this._geometryCursor;if(!t)return null;if(!this._placementPerPart)return this._geometryCursor=null,this._polygonCenter(t);for(;t.nextPath();)if(!(t.getCurrentRingArea()<0))return this._polygonCenter(t.getCurrentPath());return this._geometryCursor=null,null}_polygonCenter(t){let e=!1;switch(this._method){case"CenterOfMass":{let i=(0,ot.TP)(t);i&&(this._internalPlacement.setTranslate(i[0]+this._offsetX,i[1]+this._offsetY),e=!0)}break;case"BoundingBoxCenter":{let i=(0,J.z8)(t);i&&(this._internalPlacement.setTranslate((i[2]+i[0])/2+this._offsetX,(i[3]+i[1])/2+this._offsetY),e=!0)}break;default:{let i=(0,Jt.d)(t);null!==i&&(this._internalPlacement.setTranslate(i[0]+this._offsetX,i[1]+this._offsetY),e=!0)}}return e?this._internalPlacement:null}}var $t=i(86235),Kt=i(14057);class Qt{static{this.instance=null}static local(){return null===Qt.instance&&(Qt.instance=new Qt),Qt.instance}execute(t,e,i){return new te(t,i)}}class te{constructor(t,e){this._cursor=t,this._context=e}next(){let t=this._cursor.next();if(!t||0===t.totalSize)return null;if(this._context.callout?.preserveInputGeometry)return t;let{matcher:e,target:i,tileKey:s}=this._context,n=e&&i&&null!=s?e.getMatcherGeometryOverride((0,Kt.$)(s,i.getObjectId())):null;if(!n)return t;let r=u.z.fromOptimizedCIM(n.geometry.clone(),n.geometryType);return r.invertY(),r}}class ee{static{this.instance=null}static local(){return null===ee.instance&&(ee.instance=new ee),ee.instance}execute(t){return new ie(t)}}class ie extends x{constructor(t){super(t),this._curveHelper=new P}processPath(t){if(this.iteratePath=!0,t.nextPoint()){let[e,i]=[t.x,t.y];if(t.nextPoint()){let[s,n]=[t.x,t.y],r=(e+s)/2,h=(i+n)/2;this.internalPlacement.setTranslate(r,h);let a=this._curveHelper.getAngle(e,i,s,n,0);return this.internalPlacement.setRotate(a),this.internalPlacement}}return this.iteratePath=!1,null}}function se(t){if(!t)return null;switch(t.type){case"CIMGeometricEffectAddControlPoints":return p.local();case"CIMGeometricEffectArrow":return M.local();case"CIMGeometricEffectBuffer":return S.local();case"CIMGeometricEffectCircularSector":return T.local();case"CIMGeometricEffectControlMeasureLine":return N.local();case"CIMGeometricEffectCut":return R.local();case"CIMGeometricEffectDashes":return B.local();case"CIMGeometricEffectDonut":return V.local();case"CIMGeometricEffectJog":return tt.local();case"CIMGeometricEffectMove":return it.local();case"CIMGeometricEffectOffset":return rt.local();case"CIMGeometricEffectRadial":return lt.local();case"CIMGeometricEffectReverse":return ct.local();case"CIMGeometricEffectRotate":return ft.local();case"CIMGeometricEffectScale":return dt.local();case"CIMGeometricEffectSuppress":return yt.local();case"CIMGeometricEffectTaperedPolygon":return St.local();case"CIMGeometricEffectWave":return zt.local();case"CIMGeometricEffectEnclosingPolygon":return Z.local();case"CIMSimpleLineCallout":return c.local();case"CIMBackgroundCallout":return n.local();case"CIMBalloonCallout":return h.local();case"CIMPointSymbolCallout":return o.local();case"PrivateDimensionEffect":return $t.HZ.local();case"PrivateMatcherGeometryOverrideEffect":return Qt.local()}return null}function ne(t){if(!t)return null;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":return At.local();case"CIMMarkerPlacementAtExtremities":return Tt.local();case"CIMMarkerPlacementAtMeasuredUnits":return Gt.local();case"CIMMarkerPlacementAtRatioPositions":return Ot.local();case"CIMMarkerPlacementInsidePolygon":return Yt.local();case"CIMMarkerPlacementOnLine":return Ut.local();case"PrivatePlacementMultipoint":return ee.local();case"CIMMarkerPlacementOnVertices":return Ht.local();case"CIMMarkerPlacementPolygonCenter":return Zt.local()}return null}},98939(t,e,i){i.d(e,{W:()=>s});class s{constructor(){this.setIdentity()}getAngle(){return(null==this.rz||0===this.rz&&1!==this.rzCos&&0!==this.rzSin)&&(this.rz=Math.atan2(this.rzSin,this.rzCos)),this.rz}setIdentity(){this.tx=0,this.ty=0,this.tz=0,this.s=1,this.rx=0,this.ry=0,this.rz=0,this.rzCos=1,this.rzSin=0}setTranslate(t,e){this.tx=t,this.ty=e}setTranslateZ(t){this.tz=t}setRotateCS(t,e){this.rz=void 0,this.rzCos=t,this.rzSin=e}setRotate(t){this.rz=t,this.rzCos=void 0,this.rzSin=void 0}setRotateY(t){this.ry=t}setScale(t){this.s=t}setMeasure(t){this.m=t}}},99452(t,e,i){i.d(e,{DJ:()=>f,E0:()=>l,EE:()=>n,IF:()=>m,Io:()=>x,Je:()=>g,QB:()=>r,W:()=>p,XD:()=>h,_T:()=>_,gR:()=>a,gX:()=>o,n_:()=>c,pT:()=>d});var s=i(36745);function n(t,e){let{relativeAnchor:i,relativeLayoutAnchor:s,absoluteAnchor:n,bodyBounds:r}=e??{},h=t.clone();if("esriGeometryPoint"===h.geometryType||"esriGeometryMultipoint"===h.geometryType){if(!h.nextPath()||(h.seekPathStart(),!h.nextPoint()))return null;let t=n??(i?{x:h.x+i.x,y:h.y+i.y}:{x:h.x,y:h.y});return{anchor:t,layoutAnchor:n??(s?{x:h.x+s.x,y:h.y+s.y}:t),bounds:r?a(r,h.x,h.y):{xmin:h.x,ymin:h.y,xmax:h.x,ymax:h.y}}}if(r&&1===h.totalSize&&1===h.totalPoints){if(!h.seekPath(0)||(h.seekPathStart(),!h.nextPoint()))return null;let t=n??(i?{x:h.x+i.x,y:h.y+i.y}:{x:h.x,y:h.y});return{anchor:t,layoutAnchor:n??(s?{x:h.x+s.x,y:h.y+s.y}:t),bounds:a(r,h.x,h.y)}}if(h.totalSize<2)return null;function a(t,e,i){return{xmin:t.xmin+e,ymin:t.ymin+i,xmax:t.xmax+e,ymax:t.ymax+i}}let o=h.totalSize-1,l={xmin:1/0,ymin:1/0,xmax:-1/0,ymax:-1/0};for(let t=0;t<o;t++){if(!h.seekPath(t))return null;for(h.seekPathStart();h.nextPoint();)y(l,h.x,h.y)}return function(t){return Number.isFinite(t.xmin)&&Number.isFinite(t.ymin)&&Number.isFinite(t.xmax)&&Number.isFinite(t.ymax)}(l)&&h.seekPath(o)&&(h.seekPathStart(),h.nextPoint())?{anchor:n??{x:h.x,y:h.y},layoutAnchor:n??{x:h.x,y:h.y},bounds:l}:null}function r(t,e){return{left:(t?.left??0)*e,right:(t?.right??0)*e,top:(t?.top??0)*e,bottom:(t?.bottom??0)*e}}function h(t,e){return{xmin:t.xmin-e.left,ymin:t.ymin-e.bottom,xmax:t.xmax+e.right,ymax:t.ymax+e.top}}function a(t,e){return e.x>=t.xmin&&e.x<=t.xmax&&e.y>=t.ymin&&e.y<=t.ymax}function o(t){return{x:.5*(t.xmin+t.xmax),y:.5*(t.ymin+t.ymax)}}function l(t,e){let i,s,n=.5*(t.xmin+t.xmax),r=.5*(t.ymin+t.ymax);return i=e.x<t.xmin?t.xmin:e.x>t.xmax?t.xmax:e.x<n?Math.abs(e.x-t.xmin)<Math.abs(e.x-n)?t.xmin:n:Math.abs(e.x-t.xmax)<Math.abs(e.x-n)?t.xmax:n,s=e.y<t.ymin?t.ymin:e.y>t.ymax?t.ymax:e.y<r?Math.abs(e.y-t.ymin)<Math.abs(e.y-r)?t.ymin:r:Math.abs(e.y-t.ymax)<Math.abs(e.y-r)?t.ymax:r,{x:i,y:s}}function u(t,e){let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax);if(e.x>=t.xmin&&e.x<=t.xmax){if(e.y<=t.ymin)return"bottom";if(e.y>=t.ymax)return"top"}else{if(e.x<t.xmin)return"left";if(e.x>t.xmax)return"right"}let n=[{side:"left",distance:Math.abs(e.x-t.xmin)},{side:"right",distance:Math.abs(e.x-t.xmax)},{side:"bottom",distance:Math.abs(e.y-t.ymin)},{side:"top",distance:Math.abs(e.y-t.ymax)}];return n.sort((t,e)=>t.distance-e.distance),n[0].distance===n[1].distance?e.x<i?"left":e.y<s?"bottom":"top":n[0].side}function c(t,e,i,s,n,r=e){let h=i??0,a=u(t,e),o=4===h?function(t,e,i){return"left"===i||"right"===i?{x:"left"===i?t.xmin:t.xmax,y:t.ymin}:{x:A(e.x,t.xmin,t.xmax),y:"top"===i?t.ymax:t.ymin}}(t,e,a):l(t,e);return P(function(t){return t.filter((e,i)=>0===i||e.x!==t[i-1].x||e.y!==t[i-1].y)}(function(t,e,i,s,n,r){let h=Math.max(r,Math.min(i.xmax-i.xmin,i.ymax-i.ymin)/4);switch(n){case 1:{if("left"===s||"right"===s){let i=.5*(t.x+e.x);return[t,{x:i,y:t.y},{x:i,y:e.y},e]}let i=.5*(t.y+e.y);return[t,{x:t.x,y:i},{x:e.x,y:i},e]}case 2:{let i=I(t,s,h);return[t,i,z(i,e,s),e]}case 3:{let i=I(t,s,h);if("left"===s||"right"===s){let s=.5*(i.x+e.x);return[t,i,{x:s,y:i.y},{x:s,y:e.y},e]}let n=.5*(i.y+e.y);return[t,i,{x:i.x,y:n},{x:e.x,y:n},e]}case 4:{let t="top"===s?i.ymax:i.ymin;return[{x:i.xmin,y:t},{x:i.xmax,y:t},e]}case 5:case 6:{let i=5===n?-1:1,r=x(t,e)/4||h,a={x:.5*(t.x+e.x),y:.5*(t.y+e.y)};return"left"===s||"right"===s?[t,{x:a.x,y:a.y+i*r},e]:[t,{x:a.x+i*r,y:a.y},e]}default:return[t,e]}}(s>0?I(o,a,s):o,r,t,a,h,s)),n)}function _(t,e){return M([{x:t.xmin,y:t.ymin},{x:t.xmin,y:t.ymax},{x:t.xmax,y:t.ymax},{x:t.xmax,y:t.ymin},{x:t.xmin,y:t.ymin}],e)}function p(t,e,i,s){switch(a(t,e)?"left":u(t,e)){case"left":return P([{x:t.xmin-i,y:t.ymin},{x:t.xmin-i,y:t.ymax}],s);case"top":return P([{x:t.xmin,y:t.ymax+i},{x:t.xmax,y:t.ymax+i}],s);case"right":return P([{x:t.xmax+i,y:t.ymax},{x:t.xmax+i,y:t.ymin}],s);case"bottom":return P([{x:t.xmax,y:t.ymin-i},{x:t.xmin,y:t.ymin-i}],s)}}function f(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPoint",!1,!1,e);return i.startPath(),i.pushXY(t.x,e*t.y),i.reset(),i}function m(t,e,i,s,n,r=null,h=e){let o=d(t,i),l=a(o,h)?null:function(t,e,i,s,n,r){let h=t.xmax-t.xmin,a=t.ymax-t.ymin,o=t.xmin+h/2,l=t.ymin+a/2,u=-1;if(e.x>=t.xmin&&e.x<=t.xmax?e.y<=t.ymin?u=e.x<=o?7:6:e.y>=t.ymax&&(u=e.x<=o?2:3):u=e.x<t.xmin?e.y<=l?0:1:e.y<=l?5:4,u<0)return null;let c=function(t){let e=t.xmax-t.xmin,i=t.ymax-t.ymin;return[{x:t.xmin,y:t.ymin+i/4},{x:t.xmin,y:t.ymax-i/4},{x:t.xmin+e/4,y:t.ymax},{x:t.xmax-e/4,y:t.ymax},{x:t.xmax,y:t.ymax-i/4},{x:t.xmax,y:t.ymin+i/4},{x:t.xmax-e/4,y:t.ymin},{x:t.xmin+e/4,y:t.ymin}]}(t)[u];if(x(c,e)<n)return null;let _,p,f=g(t,s),m=1===s?h/4-f:h/2,d=1===s?a/4-f:a/2,y=null==r?h/8:Math.min(r/2,Math.max(m,0)),P=null==r?a/8:Math.min(r/2,Math.max(d,0));switch(u){case 0:case 1:_={x:c.x,y:c.y-P},p={x:c.x,y:c.y+P};break;case 2:case 3:_={x:c.x-y,y:c.y},p={x:c.x+y,y:c.y};break;case 4:case 5:_={x:c.x,y:c.y+P},p={x:c.x,y:c.y-P};break;default:_={x:c.x+y,y:c.y},p={x:c.x-y,y:c.y}}return{index:u,points:[_,i,p]}}(o,h,e,i,s,r);switch(i){case 1:return function(t,e,i){let s=function(t){let e=g(t,1),i=[{x:t.xmin+e,y:t.ymin}];return w(i,t.xmin+e,t.ymin+e,e,-Math.PI/2,-Math.PI),i.push({x:t.xmin,y:t.ymax-e}),w(i,t.xmin+e,t.ymax-e,e,Math.PI,Math.PI/2),i.push({x:t.xmax-e,y:t.ymax}),w(i,t.xmax-e,t.ymax-e,e,Math.PI/2,0),i.push({x:t.xmax,y:t.ymin+e}),w(i,t.xmax-e,t.ymin+e,e,0,-Math.PI/2),i.push(i[0]),i}(t);return e&&S(s,e),M(s,i)}(o,l,n);case 2:return function(t,e,i){if(!e)return function(t,e){return M(b(t),e)}(t,i);let s=b(t),n=s.length,r=C(s,e.points[0]),h=C(s,e.points[e.points.length-1]),a=(h-r+n)%n,o=n-a;return a<=o?s.splice(r+1,Math.max(a-1,0),...e.points):s.splice(h+1,Math.max(o-1,0),...e.points.slice().reverse()),M(s,i)}(o,l,n);default:return function(t,e,i){let s=[{x:t.xmin,y:t.ymin},{x:t.xmin,y:t.ymax},{x:t.xmax,y:t.ymax},{x:t.xmax,y:t.ymin},{x:t.xmin,y:t.ymin}];return e&&S(s,e),M(s,i)}(o,l,n)}}function d(t,e){if(2!==e)return t;let i=.5*(t.xmin+t.xmax),s=.5*(t.ymin+t.ymax),n=.5*(t.xmax-t.xmin)*Math.SQRT2,r=.5*(t.ymax-t.ymin)*Math.SQRT2;return{xmin:i-n,ymin:s-r,xmax:i+n,ymax:s+r}}function g(t,e){return 1===e?Math.min(t.xmax-t.xmin,t.ymax-t.ymin)/8:0}function x(t,e){return Math.hypot(e.x-t.x,e.y-t.y)}function y(t,e,i){t.xmin=Math.min(t.xmin,e),t.ymin=Math.min(t.ymin,i),t.xmax=Math.max(t.xmax,e),t.ymax=Math.max(t.ymax,i)}function P(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPolyline",!1,!1,e);i.startPath();for(let s of t)i.pushXY(s.x,e*s.y);return i.reset(),i}function M(t,e){let i=s.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,e);i.startPath();for(let s of function(t){if(!t.length)return t;let e=t[0],i=t[t.length-1];return e.x===i.x&&e.y===i.y?t:[...t,e]}(t))i.pushXY(s.x,e*s.y);return i.reset(),i}function b(t){let e=.5*(t.xmin+t.xmax),i=.5*(t.ymin+t.ymax),s=.5*(t.xmax-t.xmin),n=.5*(t.ymax-t.ymin),r=[];for(let t=0;t<32;t++){let h=2*Math.PI*t/32;r.push({x:e+s*Math.cos(h),y:i+n*Math.sin(h)})}return r}function C(t,e){let i=0,s=1/0;for(let n=0;n<t.length;n++){let r=x(t[n],e);r<s&&(s=r,i=n)}return i}function w(t,e,i,s,n,r){for(let h=1;h<=4;h++){let a=n+(r-n)*h/4;t.push({x:e+s*Math.cos(a),y:i+s*Math.sin(a)})}}function S(t,e){let[i,,s]=e.points;for(let n=0;n<t.length-1;n++)if(v(i,t[n],t[n+1])&&v(s,t[n],t[n+1]))return void t.splice(n+1,0,...e.points)}function v(t,e,i){let s=1e-9,n=(t.x-e.x)*(i.y-e.y)-(t.y-e.y)*(i.x-e.x);return!(Math.abs(n)>s)&&t.x>=Math.min(e.x,i.x)-s&&t.x<=Math.max(e.x,i.x)+s&&t.y>=Math.min(e.y,i.y)-s&&t.y<=Math.max(e.y,i.y)+s}function z(t,e,i){return"left"===i||"right"===i?{x:t.x,y:e.y}:{x:e.x,y:t.y}}function I(t,e,i){switch(e){case"left":return{x:t.x-i,y:t.y};case"top":return{x:t.x,y:t.y+i};case"right":return{x:t.x+i,y:t.y};case"bottom":return{x:t.x,y:t.y-i}}}function A(t,e,i){return Math.max(e,Math.min(i,t))}},35521(t,e,i){var s=i(28076);s.D.CIMSolidStroke.capstyle,s.D.CIMSolidStroke.joinstyle,s.D.CIMSolidStroke.miterlimit},75585(t,e,i){function s(t){let e="normal",i="normal";if(t){let s=t.toLowerCase();s.includes("italic")?e="italic":s.includes("oblique")&&(e="oblique"),s.includes("bold")?i="bold":s.includes("light")&&(i="lighter")}return{style:e,weight:i}}i.d(e,{_:()=>s})},69754(t,e,i){i.d(e,{Z:()=>l,q:()=>o});var s=i(68197),n=i(75585);const r=/([A-Za-z_][\w-]*)\s*=\s*(['"])(.*?)\2/g,h=/&(amp|lt|gt|quot|apos);/g,a=/<\s*\/?\s*(?:CLR|BOL|_BOL|ITA|_ITA|UND|_UND|FNT|CHR)\b/i;function o(t){return a.test(t)}function l(t){if(!t.supportsRichText||!t.textString.includes("<"))return null;let e=function(t){return{font:{...t.font},fontSize:t.symbol?.height&&!isNaN(t.symbol.height)?t.symbol.height:10,characterSpacing:0}}(t),i=[],s=[],n=u(e),r="",h=!1,a=t.textString,o=()=>{if(!r)return;let t=c(r);if(!t)return void(r="");let e=s[s.length-1];e&&function(t,e){return t.fontSize===e.fontSize&&t.characterSpacing===e.characterSpacing&&t.font.family===e.font.family&&t.font.style===e.font.style&&t.font.weight===e.font.weight&&t.font.decoration===e.font.decoration&&function(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}(t.color,e.color)}(e,n)?e.text+=t:s.push({text:t,font:{...n.font},fontSize:n.fontSize,characterSpacing:n.characterSpacing,color:n.color}),r=""},l=0;for(;l<a.length;){let t=a[l];if("<"!==t){r+=t,l++;continue}let e=a.indexOf(">",l+1);if(-1===e)return null;let s=_(a.slice(l+1,e));if(!s)return null;if(h=!0,o(),s.isEnd){let t=i.pop();if(!t||t.name!==s.name)return null;n=t.previous}else{let t=u(n);n=p(n,s),i.push({name:s.name,previous:t})}l=e+1}return i.length?null:(o(),h?s.filter(t=>t.text.length>0):null)}function u(t){return{font:{...t.font},fontSize:t.fontSize,characterSpacing:t.characterSpacing,color:t.color}}function c(t){return t.replaceAll(h,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"apos":return"'";default:return t}})}function _(t){let e=t.trim();if(!e)return null;let i=e.startsWith("/"),s=i?e.slice(1).trim():e,n=/^([A-Za-z_][\w-]*)/.exec(s);if(!n)return null;let h,a=n[1],o=s.slice(a.length),l={};for(r.lastIndex=0;h=r.exec(o);)l[h[1]]=h[3];return{isEnd:i,name:a,attributes:l}}function p(t,e){let i=u(t);switch(e.name.toUpperCase()){case"BOL":i.font.weight="bold";break;case"_BOL":i.font.weight="normal";break;case"ITA":i.font.style="italic";break;case"_ITA":i.font.style="normal";break;case"UND":i.font.decoration="underline";break;case"_UND":i.font.decoration="none";break;case"FNT":!function(t,e){let{name:i,style:s,size:r,scale:h,wght:a,ital:o}=e;if(i&&(t.font.family=i),s){let e=(0,n._)(s);t.font.style=e.style,t.font.weight=e.weight}if(a){let e=Number(a);t.font.weight=e>=600?"bold":"normal"}if(o){let e=Number(o);isNaN(e)||(t.font.style=0===e?"normal":"italic")}if(r){let e=Number(r);!isNaN(e)&&e>0&&(t.fontSize=e)}if(h){let e=Number(h);!isNaN(e)&&e>0&&(t.fontSize*=e/100)}}(i,e.attributes);break;case"CLR":i.color=function(t){if(t.hex){let e=s.A.fromHex(t.hex)?.toArray();if(e){let i="alpha"in t?d(t.alpha):e[3];return[e[0],e[1],e[2],i]}}if("red"in t||"green"in t||"blue"in t)return[f(t.red),f(t.green),f(t.blue),d(t.alpha)];let e=m(t.cyan),i=m(t.magenta),n=m(t.yellow),r=m(t.black),h=d(t.alpha),a=m(t.tint,100)/100,o=1-r;return[Math.round(255*(1-e)*o*a),Math.round(255*(1-i)*o*a),Math.round(255*(1-n)*o*a),h]}(e.attributes);break;case"CHR":!function(t,e){let i=Number(e.spacing);!isNaN(i)&&i>=0&&(t.characterSpacing=i/100)}(i,e.attributes)}return i}function f(t){let e=Number(t);return function(t){return Math.max(0,Math.min(255,Math.round(t)))}(isNaN(e)?0:e)}function m(t,e=0){let i=Number(t);return function(t){return Math.max(0,Math.min(1,t))}((isNaN(i)?e:i)/100)}function d(t){return Math.round(255*m(t,100))}},18989(t,e,i){i.d(e,{A:()=>s});class s{constructor(t=0,e=0,i=0,s=0){this.x=t,this.y=e,this.width=i,this.height=s}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}},63933(t,e,i){function s(t){if(!t)return 0;switch(t){case"Left":case"left":return-1;case"Right":case"right":return 1;case"justify":case"Justify":return 2;case"Center":case"center":return 0}}function n(t){if(!t)return 0;switch(t){case"Top":case"top":return 1;case"Center":case"middle":return 0;case"Baseline":case"baseline":return 2;case"Bottom":case"bottom":return-1}}function r(t){switch(t){case 1:case"right":return-1;case 2:case"justify":return 1;case 0:case"center":return 0;case-1:case"left":return 1;default:return console.debug(`Found invalid horizontal alignment ${t}`),0}}function h(t){switch(t){case 1:case"top":return 1;case 0:case"middle":return 0;case-1:case 2:case"baseline":case"bottom":return-1;default:return console.debug(`Found invalid vertical alignment ${t}`),0}}i.d(e,{Dy:()=>h,UD:()=>n,iT:()=>r,xy:()=>s})},15660(t,e,i){i.d(e,{A:()=>n});var s=i(88340);class n{constructor(t,e,i,n){this.transformedX=0,this.transformedY=0,this.center=(0,s.fA)(t,e),this.centerT=(0,s.vt)(),this.halfWidth=i/2,this.halfHeight=n/2,this.width=i,this.height=n}get x(){return this.center[0]}get y(){return this.center[1]}get blX(){return this.center[0]+this.halfWidth}get blY(){return this.center[1]+this.halfHeight}get trX(){return this.center[0]-this.halfWidth}get trY(){return this.center[1]-this.halfHeight}get xmin(){return this.x-this.halfWidth}get xmax(){return this.x+this.halfWidth}get ymin(){return this.y-this.halfHeight}get ymax(){return this.y+this.halfHeight}set x(t){this.center[0]=t}set y(t){this.center[1]=t}clone(){return new n(this.x,this.y,this.width,this.height)}serialize(t){return t.writeF32(this.center[0]),t.writeF32(this.center[1]),t.push(this.width),t.push(this.height),t}findCollisionDelta(t,e=4){let i=Math.abs(t.centerT[0]-this.centerT[0]),s=Math.abs(t.centerT[1]-this.centerT[1]),n=(t.halfWidth+this.halfWidth+e)/i,r=(t.halfHeight+this.halfHeight+e)/s;return Math.log2(Math.min(n,r))}extend(t){let e=Math.min(this.xmin,t.xmin),i=Math.min(this.ymin,t.ymin),s=Math.max(this.xmax,t.xmax)-e,n=Math.max(this.ymax,t.ymax)-i,r=e+s/2,h=i+n/2;this.width=s,this.height=n,this.halfWidth=s/2,this.halfHeight=n/2,this.x=r,this.y=h}static deserialize(t){let e=t.readF32(),i=t.readF32(),s=t.readInt32(),r=t.readInt32();return new n(e,i,s,r)}}},75434(t,e,i){i.d(e,{HB:()=>w,tA:()=>C});var s=i(90629),n=i(16905),r=i(85560),h=i(37585),a=i(88340),o=i(63933),l=i(18989),u=i(15660);const c=Math.PI/180;class _{static fromGlyph(t,e,i,s,n){let{mosaicItem:r,rect:h,shaping:a,code:o}=i,l=r.rect;return new _({width:0===o?h.width:l.width*s,height:0===o?h.height:l.height*s,x:s*(t+a.xOffset+h.left),y:s*(e+a.yOffset-h.top),textureBinding:r.textureBinding,texcoords:{topLeft:[l.x,l.y],topRight:[l.x+l.width,l.y],bottomLeft:[l.x,l.y+l.height],bottomRight:[l.x+l.width,l.y+l.height]},fontSize:n?.fontSize,color:n?.color})}constructor(t){this._rotationT=(0,r.vt)(),this._transform=(0,r.vt)(),this._angle=0,this._bounds=null,this.width=t.width,this.height=t.height,this.x=t.x,this.y=t.y,this.textureBinding=t.textureBinding,this.texcoords=t.texcoords,this.fontSize=t.fontSize,this.color=t.color}set angle(t){this._angle=t,(0,n.$0)(this._rotationT,-t),this._offsets=this._bounds=null}get angle(){return this._angle}get offsets(){if(!this._offsets){let{x:t,y:e,width:i,height:s}=this,a=(0,n.$0)((0,r.vt)(),-this.angle),o=(0,n.lw)((0,r.vt)(),a,this._transform);this._offsets={topLeft:(0,h.l0)([0,0],[t,e],o),topRight:(0,h.l0)([0,0],[t+i,e],o),bottomLeft:(0,h.l0)([0,0],[t,e+s],o),bottomRight:(0,h.l0)([0,0],[t+i,e+s],o)}}return this._offsets}get bounds(){if(this.width<=0)return null;if(!this._bounds){let t=this.offsets,e=1/0,i=1/0,s=-1/0,n=-1/0;for(let[r,h]of[t.topLeft,t.topRight,t.bottomLeft,t.bottomRight])e=Math.min(e,r),i=Math.min(i,h),s=Math.max(s,r),n=Math.max(n,h);let r=s-e,h=n-i,a=e+r/2,o=i+h/2;this._bounds=new u.A(a,o,r,h)}return this._bounds}setTransform(t){this._transform=t,this._offsets=null}}const p=(t,e)=>({code:0,mosaicItem:{rect:new l.A(0,0,11,8),sdf:!0,page:0,textureBinding:e},rect:{height:4,width:t,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0}});function f(t){return"underline"===t?(0,s.Lz)(2):0}function m(t,e,i,s,n){switch(t){case"underline":return(i??n?.baseline??22)+4+f(t)/e;case"line-through":return s??n?.midline??16;default:return 0}}function d(t,e){return t.forEach(t=>(0,h.l0)(t,t,e)),{topLeft:t[0],topRight:t[1],bottomLeft:t[2],bottomRight:t[3]}}class g{constructor(t,e,i,s){this._rotation=0,this._decorate(t,e,i,s),this.glyphs=t,this.bounds=this._createBounds(t),this.isMultiline=e.length>1,this._hasRotation=0!==i.angle,this._transform=this._createGlyphTransform(this.bounds,i),this._borderLineSizePx=i.borderLineSizePx,(i.borderLineSizePx||i.hasBackground)&&([this.bounds,this.textBox]=this.shapeBackground(this._transform));for(let e of t)e.setTransform(this._transform)}setRotation(t){if(0===t&&0===this._rotation)return;this._rotation=t;let e=this._transform,i=(0,n.$0)((0,r.vt)(),t);(0,n.lw)(e,i,e);for(let t of this.glyphs)t.setTransform(this._transform)}_decorate(t,e,i,s){if(!i.decoration||"none"===i.decoration||!t.length)return;let n=i.scale,r=t[0].textureBinding;for(let h of e){let e=h.scale??n,a=m(i.decoration,e,h.baseline,h.midline,s),o=h.startX*e,l=h.startY*e,u=(h.width+h.glyphWidthEnd)*e;t.push(_.fromGlyph(o,l+a*e,p(u,r),1))}}shapeBackground(t){let e=(1.5+(this._borderLineSizePx||0))/2,i=this._borderLineSizePx?e:0,{xmin:s,ymin:n,xmax:r,ymax:h,x:a,y:o,width:l,height:c}=this.bounds,_=[s-8,n-8],p=[r+8,n-8],f=[s-8,h+8],m=[r+8,h+8],g=d([[_[0]-e,_[1]-e],[p[0]+e,p[1]-e],[_[0]+i,_[1]+i],[p[0]-i,p[1]+i]],t),x=d([[f[0]+i,f[1]-i],[m[0]-i,m[1]-i],[f[0]-e,f[1]+e],[m[0]+e,m[1]+e]],t),y=d([[_[0]-e,_[1]-e],[_[0]+i,_[1]+i],[f[0]-e,f[1]+e],[f[0]+i,f[1]-i]],t),P=d([[p[0]-i,p[1]+i],[p[0]+e,p[1]-e],[m[0]-i,m[1]-i],[m[0]+e,m[1]+e]],t),M={main:d([_,p,f,m],t),top:g,bot:x,left:y,right:P};return[new u.A(a,o,l+2*e,c+2*e),M]}get boundsT(){let t=this.bounds,e=(0,h.hZ)((0,a.vt)(),t.x,t.y);if((0,h.l0)(e,e,this._transform),this._hasRotation){let i=Math.max(t.width,t.height);return new u.A(e[0],e[1],i,i)}return new u.A(e[0],e[1],t.width,t.height)}_createBounds(t){let e=1/0,i=1/0,s=0,n=0;for(let r of t)e=Math.min(e,r.offsets.topLeft[0]),i=Math.min(i,r.offsets.topLeft[1]),s=Math.max(s,r.offsets.bottomRight[0]),n=Math.max(n,r.offsets.bottomRight[1]);let r=s-e,h=n-i,a=e+r/2,o=i+h/2;return new u.A(a,o,r,h)}_createGlyphTransform(t,e){let i=c*e.angle,s=(0,r.vt)(),o=(0,a.vt)();return(0,n.Tl)(s,s,(0,h.hZ)(o,e.xOffset,-e.yOffset)),e.useCIMAngleBehavior?(0,n.e$)(s,s,i):((0,n.Tl)(s,s,(0,h.hZ)(o,t.x,t.y)),(0,n.e$)(s,s,i),(0,n.Tl)(s,s,(0,h.hZ)(o,-t.x,-t.y))),s}}class x{constructor(t,e,i,s,n,r){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.start=Math.max(0,Math.min(e,i)),this.end=Math.max(0,Math.max(e,i)),this.end<t.length&&(this.glyphWidthEnd=t[this.end].rect.width),this.width=s,this.yMin=n,this.yMax=r}}const y=t=>10===t,P=t=>32===t;function M(t,e,i){let s=[],n=1/i.scale,r=i.maxLineWidth*n,h=e?t.length-1:0,a=e?-1:t.length,o=e?-1:1,l=h,u=0,c=0,_=l,p=_,f=0,m=1/0,d=0;for(;l!==a;){let{code:e,rect:i,shaping:n}=t[l],a=Math.abs(i.top);if(!y(e)&&!P(e)&&(m=Math.min(m,a),d=Math.max(d,a+i.height)),y(e))l!==h&&(s.push(new x(t,_,l-o,u,m===1/0?0:m,d)),m=1/0,d=0),u=0,_=l+o,p=l+o,c=0;else if(P(e))p=l+o,c=0,f=n.xAdvance,u+=n.xAdvance;else if(u>r){if(p!==_){let e=p-2*o;u-=f,s.push(new x(t,_,e,u-c,m,d)),m=1/0,d=0,_=p,u=c}else s.push(new x(t,_,l-o,u,m,d)),m=1/0,d=0,_=l,p=l,u=0;u+=n.xAdvance,c+=n.xAdvance}else u+=n.xAdvance,c+=n.xAdvance;l+=o}let g=new x(t,_,l-o,u,m,d);return g.start>=0&&g.end<t.length&&s.push(g),s}function b(t,e,i){let s=0;for(let n=e;n<i;n++)P(t[n].code)&&!y(t[n+1].code)&&s++;return s}function C(t,e){return"glyphs"===t.type?function(t,e){let i=e.scale,s=[],n=t.sdfPadding,{faceInfo:r,glyphs:h,isRightToLeft:a}=t,l="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,u=M(h,a,e),c=u.length?function(t,e){let i=0;for(let e=0;e<t.length;e++){let{width:s}=t[e];i=Math.max(s,i)}let s="underline"===e.decoration?4:0,n=t[0].yMin;return{x:0,y:n,height:t[t.length-1].yMax+e.lineHeight*(t.length-1)+s-n,width:i}}(u,e):{y:0,height:0,width:0},p=l?a?1:-1:(0,o.xy)(e.horizontalAlignment),f=(0,o.UD)(e.verticalAlignment),m=+(2===f),d=m?0:f-1,x=r?.baseline??22,C=u.length>1,w=m?C?-c.y-c.height:-x:-c.y+d*(c.height/2);for(let r=0;r<u.length;r++){let{start:a,end:o,width:f}=u[r],m=l&&r<u.length-1?b(h,a,o):0,d=m>0?(c.width-f)/m:0,g=-1*(p+1)*((d>0?c.width:f)/2)-n,x=(t.isRightToLeft?u.length-1-r:r)*e.lineHeight+w-n;u[r].startX=g,u[r].startY=x;for(let t=a;t<=o;t++){let e=h[t];if(y(e.code))continue;let n=_.fromGlyph(g,x,e,i);g+=e.shaping.xAdvance,d>0&&P(e.code)&&(g+=d),s.push(n)}}return new g(s,u,e,r)}(t,e):function(t,e){let i=S(t,e),s=function(t,e){let i=[],s=e.maxLineWidth,n=0,r=0,h=0,a=0,o=0,l=0;for(;n<t.length;){let e=t[n],{glyph:u}=e;if(y(u.code))0!==n&&i.push({width:r,start:a,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),r=0,a=n+1,o=a,h=0,l=0;else if(P(u.code))o=n+1,h=0,l=e.xAdvance,r+=e.xAdvance;else if(r>s){if(o!==a){let e=o-2;r-=l,i.push({width:r-h,start:a,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),a=o,r=h}else i.push({width:r,start:a,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),a=n,o=n,r=0;r+=e.xAdvance,h+=e.xAdvance}else r+=e.xAdvance,h+=e.xAdvance;n++}if(a<t.length){let e=t.length-1;i.push({width:r,start:a,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1})}return function(t,e){for(let i=0;i<e.length;i++){let s=e[i],n=0,r=1/0,h=0,a=0;for(let e=s.start;e<=s.end;e++){let i=t[e];"underline"===i.decoration&&(a=Math.max(a,i.underlineOffset)),!y(i.glyph.code)&&!P(i.glyph.code)&&(n=Math.max(n,i.baseline),h=Math.max(h,i.lineHeight))}let o=1/0,l=-1/0;for(let e=s.start;e<=s.end;e++){let i=t[e];y(i.glyph.code)||P(i.glyph.code)||(o=Math.min(o,n-i.baseline+i.top),l=Math.max(l,n-i.baseline+i.bottom),r=Math.min(r,n-i.baseline+i.midline))}a>0&&(l=Math.max(l,n+a)),s.baseline=n,s.midline=r===1/0?n:r,s.lineHeight=Math.max(h,l),s.yMin=o===1/0?0:o,s.yMax=l===-1/0?0:l,s.startY=i>0?e[i-1].startY+e[i-1].lineHeight:0}return e}(t,i)}(i,e),n=s.length?function(t){let e=0;for(let i of t)e=Math.max(i.width+i.glyphWidthEnd,e);let i=t[0].yMin;return{x:0,y:i,height:v(t[t.length-1])-i,width:e}}(s):{width:0},r=[],h="underline"===e.decoration?"none":e.decoration,a="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,l=a?-1:(0,o.xy)(e.horizontalAlignment),u=(0,o.UD)(e.verticalAlignment),c=2===u,p=s.length?s[0].yMin:0,f=s.length?v(s[s.length-1]):0,m=f-p,d=c?s.length>1?-f:-(s[0]?.baseline??0):1===u?-p:-1===u?-f:-(p+m/2);for(let t=0;t<s.length;t++){let e=s[t],h=a&&t<s.length-1?z(i,e.start,e.end):0,o=h>0?(n.width-e.width)/h:0,u=-1*(l+1)*((o>0?n.width:e.width)/2),c=e.startY+d,p=null;e.startX=u,e.startY=c;for(let t=e.start;t<=e.end;t++){let s=i[t],{glyph:n,scale:h,fontSize:a}=s,l=u;if(y(n.code)){p=I(r,p,c,e.baseline);continue}"underline"===s.decoration?(p&&p.underlineOffset!==s.underlineOffset||p&&!A(p.color,s.color))&&(p=I(r,p,c,e.baseline)):p=I(r,p,c,e.baseline);let f=c+e.baseline-s.baseline;r.push(_.fromGlyph(u/h,f/h,n,h,{fontSize:a,color:s.color})),u+=s.xAdvance,"underline"===s.decoration&&(p??={startX:l,endX:u,glyphWidthEnd:n.rect.width*h,textureBinding:n.mosaicItem.textureBinding,underlineOffset:s.underlineOffset,color:s.color},p.endX=u,p.glyphWidthEnd=n.rect.width*h,p.textureBinding=p.textureBinding??n.mosaicItem.textureBinding),o>0&&P(n.code)&&(u+=o,p&&(p.endX=u))}I(r,p,c,e.baseline)}return new g(r,s,{...e,decoration:h})}(t,e)}function w(t,e){return"glyphs"===t.type?function(t,e){let i=e.scale,{faceInfo:s,glyphs:n}=t,r=n.reduce((t,e)=>Math.max(t,e.rect.height),0),h=n.filter(t=>!y(t.code)&&t.mosaicItem.textureBinding).map(t=>_.fromGlyph(-t.rect.width/2,-r,t,i));return new g(h,[],e,s)}(t,e):function(t,e){let i=S(t,e),s=i.reduce((t,e)=>Math.max(t,e.glyph.rect.height*e.scale),0),n=i.filter(t=>!y(t.glyph.code)&&t.glyph.mosaicItem.textureBinding).map(t=>_.fromGlyph(-t.glyph.rect.width/2,-s/t.scale,t.glyph,t.scale,{fontSize:t.fontSize,color:t.color}));return new g(n,[],e)}(t,e)}function S(t,e){let i=e.lineHeightRatio??1,n=[];for(let e of t.runs){let t=(0,s.Lz)(e.fontSize),r=t/e.glyphs.sdfSize,h=29/24*t*i,a=(e.glyphs.faceInfo?.baseline??22)*r,o=(e.glyphs.faceInfo?.midline??16)*r,l=4*r+f(e.decoration),u=1+(e.characterSpacing??0);for(let i of e.glyphs.glyphs){let s=i.shaping.xAdvance*r,c=Math.abs(i.rect.top)*r,_=c+i.rect.height*r;n.push({glyph:i,scale:r,fontSize:t,decoration:e.decoration,underlineOffset:l,color:e.color,xAdvance:y(i.code)||P(i.code)?s:s*u,top:c,bottom:_,lineHeight:h,baseline:a,midline:o})}}return n}function v(t){return t.startY+t.lineHeight}function z(t,e,i){let s=0;for(let n=e;n<i;n++)P(t[n].glyph.code)&&!y(t[n+1].glyph.code)&&s++;return s}function I(t,e,i,s){return e&&t.push(_.fromGlyph(e.startX,i+s+e.underlineOffset,p(e.endX-e.startX+e.glyphWidthEnd,e.textureBinding),1,{color:e.color})),null}function A(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}},69221(t,e,i){i.d(e,{Lu:()=>r,hV:()=>n});var s=i(90629);function n(t){return(0,s.PN)(Math.round((0,s.Lz)(t)))}function r(t){let e=(0,s.PN)(32),i=(0,s.PN)(512);return Math.max(e,Math.min(t||i,i))}i(39829)},86235(t,e,i){i.d(e,{HZ:()=>r});var s=i(36745),n=i(14057);class r{static{this.instance=null}static local(){return null===r.instance&&(r.instance=new r),r.instance}execute(t,e,i){return new h(t,e,i)}}class h{constructor(t,e,i){this._cursor=t,this._effect=e,this._context=i}next(){let t=this._cursor.next();if(t&&t.totalSize>0){let e=t.asJSON(),i=o[this._effect.part](e,{...this._effect,target:this._context.target,scaleFactor:this._context.scaleFactor,matcher:this._context.matcher,tileKey:this._context.tileKey,geomUnitsPerPoint:this._context.geomUnitsPerPoint});return i?s.z.fromJSONCIM(i):null}return null}}function a(t,e){let i=e.matcher,s=e.target.getObjectId(),r=(0,n.$)(e.tileKey,s),h=i.getAnalyzedGraphic(r);return h?(h.evaluateWithGeometry(t,e.geomUnitsPerPoint*e.scaleFactor),h):null}const o={textPoint:function(t,e){let i=a(t,e);return i&&i.textPoint?{x:i.textPoint[0],y:i.textPoint[1],spatialReference:t.spatialReference}:t},beginDimensionLine:function(t,e){let i=a(t,e);if(!i||!i.dimensionLine)return t;let s=i.dimensionLine[0],n=s[1][0],r=s[1][1],h=s[0][0],o=s[0][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,o]]]}},endDimensionLine:function(t,e){let i=a(t,e);if(!i||!i.dimensionLine)return t;let s=i.dimensionLine[1],n=s[1][0],r=s[1][1],h=s[0][0],o=s[0][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,o]]]}},beginExtensionLine:function(t,e){let i=a(t,e);if(!i||!i.extensionLines)return t;let s=i.extensionLines[0],n=s[0][0],r=s[0][1],h=s[1][0],o=s[1][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,o]]]}},endExtensionLine:function(t,e){let i=a(t,e);if(!i||!i.extensionLines)return t;let s=i.extensionLines[1],n=s[0][0],r=s[0][1],h=s[1][0],o=s[1][1];return{spatialReference:t.spatialReference,paths:[[[n,r],[h,o]]]}}};i.d(e,["Bd",0,"beginMarker","Cr",0,"beginExtensionLine","FF",0,"endMarker","Fn",0,"beginDimensionLine","NR",0,"textPoint","tz",0,"endDimensionLine","w0",0,"endExtensionLine"])},14057(t,e,i){function s(t,e){return`${t}_${e}`}i.d(e,{$:()=>s})}}]);
|