@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 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8879],{28879(e,t,n){n.r(t),n.d(t,{OperatorGeodeticLength:()=>c});var r=n(32198),a=n(55537),s=n(47591),o=n(88885),i=n(83661),g=n(39117),l=n(5247);class c{getOperatorType(){return 10311}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n,r){if(4===n)return(new s.O).execute(e,t,r);if(0===t.getCoordinateSystemType()&&(0,a.
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8879],{28879(e,t,n){n.r(t),n.d(t,{OperatorGeodeticLength:()=>c});var r=n(32198),a=n(55537),s=n(47591),o=n(88885),i=n(83661),g=n(39117),l=n(5247);class c{getOperatorType(){return 10311}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n,r){if(4===n)return(new s.O).execute(e,t,r);if(0===t.getCoordinateSystemType()&&(0,a.b)(""),(0,a.t)(e),e.isEmpty()||e.getDimension()<1)return 0;let c=t.getGCS(),u=(0,g.r)();c.querySpheroidData(u);let m,h=u.majorSemiAxis,y=u.e2,p=c.getUnit().getUnitToBaseFactor(),x=e.getGeometryType();if(x===a.G.enumPolygon?m=e.getBoundary():x===a.G.enumEnvelope?m=(0,o.c)(e):(0,a.h)(x)?(m=new o.a({vd:e.getDescription()}),m.addSegment(e,!0)):m=e,m.hasNonLinearSegments()&&(m=(new l.O).execute(m,0,t.getTolerance(0),0,r)),c!==t){let n=t.getSRToGCSTransform();if(t.isPannable()){m=(0,g.ag)(m,t),x===a.G.enumPolyline&&m===e&&(m=e.clone());let n=new i.E;t.getPannableExtent().queryIntervalX(n);for(let e=0,t=m.getPointCount();e<t;e++){let t=m.getXY(e);t.x=(0,g.aE)(t.x,n),m.setXY(e,t)}}let s=m.createInstance();m=(0,g.aF)(n,m,s,r)?s:(new g.O).execute(m,n,r)}return this._ExecuteMultiPathGeodeticLength(m,n,h,y,p)}_ExecuteMultiPathGeodeticLength(e,t,n,a,s){let o={stack:[],error:void 0,hasError:!1};try{let i=(0,r.mS)(o,new g.an,!1),l=0,c=e.querySegmentIterator();for(;c.nextPath();)for(;c.hasNextSegment();){let e=c.nextSegment(),r=e.getStartXY(),o=e.getEndXY();r.scale(s),o.scale(s),g.ao.geodeticDistance(n,a,r.x,r.y,o.x,o.y,i,null,null,t),l+=i.val}return l}catch(e){o.error=e,o.hasError=!0}finally{(0,r.hk)(o)}}}},47591(e,t,n){n.d(t,{O:()=>p});var r=n(55537),a=n(39117),s=n(88885),o=n(83661),i=n(95213),g=n(79187),l=n(5247),c=n(31139);function u(){return{m_pGcs:new o.P,m_xyz:new i.k,m_factor:NaN,m_geoLength:NaN,setValues:m,setLength:h,assign:y}}function m(e,t,n,r){this.m_factor=e,this.m_pGcs.assign(t),this.m_xyz.assign(r),this.m_geoLength=n}function h(e){this.m_geoLength=e}function y(e){this.m_pGcs.assign(e.m_pGcs),this.m_xyz.assign(e.m_xyz),this.m_factor=e.m_factor,this.m_geoLength=e.m_geoLength}class p{getOperatorType(){return 10315}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}_ExecuteShapePreservingLength(e,t,n,r,s){if(e.hasNonLinearSegments()&&(e=(new l.O).execute(e,0,t.getTolerance(0),0,s)),t.isPannable()){let r=90,o=-90;if(1===n.getUnit().getUnitToBaseFactor()&&(r*=Math.PI/180,o*=Math.PI/180),2===t.getCoordinateSystemType()){let e=null,n=[0,0,0,0];e=t.getPECoordSys(),n[0]=0,n[1]=r,n[2]=0,n[3]=o,a.aD.geogToProj(e,2,n),r=n[1],o=n[3]}let i=new g.Envelope2D;e.queryEnvelope(i),i.ymin=o,i.ymax=r,e=(new c.O).execute(e,i,t,s)}else{let n=t.getPCSHorizon();(e=(new a.a4).execute(e,n,t,s))===n&&(e=e.clone())}return e.isEmpty()?0:this._ExecuteIterativeApproach(e,t,n,r,1,s)}_ExecuteIterativeApproach(e,t,n,s,g,l){let c=(0,a.r)();n.querySpheroidData(c);let m,h=c.majorSemiAxis,y=c.e2,p=n.getUnit().getUnitToBaseFactor(),S=(0,o.q)(u,40),_=(0,o.c)(40,NaN),f=u(),P=u(),w=[0,0,0,0],E=t.getPECoordSys(),C=new o.P,G=new o.P,v=new o.P,T=new o.P,D=new o.P,L=0,N=e.querySegmentIterator();for(;N.nextPath();)for(;N.hasNextSegment();){let e=N.nextSegment();C.assign(e.getStartXY()),G.assign(e.getEndXY()),2===t.getCoordinateSystemType()?(w[0]=C.x,w[1]=C.y,w[2]=G.x,w[3]=G.y,a.aD.projToGeog(E,2,w),v.x=w[0]*p,v.y=w[1]*p,T.x=w[2]*p,T.y=w[3]*p):(v.setCoordsPoint2D(C),T.setCoordsPoint2D(G),v.scale(p),T.scale(p));let n=new i.k,s=new i.k;x(h,y,v,n),x(h,y,T,s);let o=d(h,n,s);f.setValues(0,v,NaN,n),P.setValues(1,T,o,s),m=g,S[0].assign(P),_[0]=g;let l=0;for(;;){l>128&&(0,r.d)("iterations exceeded");let n=.5*(f.m_factor+P.m_factor),s=e.getCoord2D(n);2===t.getCoordinateSystemType()?(w[0]=s.x,w[1]=s.y,a.aD.projToGeog(E,1,w),D.x=w[0]*p,D.y=w[1]*p):(D.setCoordsPoint2D(s),D.scale(p)),v.setCoordsPoint2D(f.m_pGcs),T.setCoordsPoint2D(P.m_pGcs);let c=new i.k;x(h,y,D,c);let u=d(h,f.m_xyz,c),C=d(h,P.m_xyz,c);o=P.m_geoLength,Number.isNaN(o)&&(o=d(h,f.m_xyz,P.m_xyz));let G=u+C,N=m===g&&G>=20&&Math.abs(G-o)>1e-8*(o+G);if(l+2<40&&(N||Math.abs(G-o)>0&&m>0))P.setLength(C),S[l].assign(P),P.setValues(n,D,u,c),S[++l].assign(P),N?(m=g,_[l]=g):(m--,_[l-1]=m,_[l]=m);else{if(L+=G,0===l)break;f.assign(P),P.assign(S[--l]),m=_[l]}}}return L}execute(e,t,n){if((!t||0===t.getCoordinateSystemType())&&(0,r.b)(""),e.isEmpty()||e.getDimension()<1)return 0;let o=null,i=t.getGCS();i!==t&&(o=(0,a.D)(t,i,null));let g=e.getGeometryType();if(g===r.G.enumEnvelope){let r=new s.P;return r.addEnvelope(e,!1),this._ExecuteShapePreservingLength(r,t,i,o,n)}if((0,r.h)(g)){let r=new s.a;return r.addSegment(e,!0),this._ExecuteShapePreservingLength(r,t,i,o,n)}return this._ExecuteShapePreservingLength(e,t,i,o,n)}}function x(e,t,n,r){r.assign((0,a.av)(e,t,n))}function d(e,t,n){let r=e,a=new i.k;a.setSub(t,n);let s=a.length();return 2*r*Math.asin(s/(2*r))}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 1b946714ca4a1a7359d4.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[411,4059,6440],{57590(t,e,i){i.d(e,{t:()=>n});var o=i(64209);function a(t){return function(t){return void 0!==t.openProp}(t)?t[t.openProp]:t.open}async function n(t){await t.updateComplete,a(t)?t.onBeforeOpen():t.onBeforeClose(),await t.updateComplete;const e=t.transitionRef?.value??t.transitionEl;e&&await(0,o.w)(e,t.transitionProp),a(t)?t.onOpen():t.onClose()}},99471(t,e,i){function o(t){return e=>e?.localName===t}i.d(e,{i:()=>o}),i.d(e,["K",0,{brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"},"a",0,{danger:"exclamationMarkTriangleF",info:"informationF",success:"checkCircleF",warning:"exclamationMarkTriangleF"}])},95790(t,e,i){var o=i(99471);const a="calcite-action",n={button:t=>`${a}-${t}-button`,indicator:t=>`${a}-${t}-indicator`},c=(0,o.i)("calcite-action");i.d(e,["C",0,{button:"button",buttonTextVisible:"button--text-visible",buttonCompact:"button--compact",iconContainer:"icon-container",slotContainer:"slot-container",slotContainerHidden:"slot-container--hidden",textContainer:"text-container",textContainerVisible:"text-container--visible",indicatorWithIcon:"indicator-with-icon",indicatorWithoutIcon:"indicator-without-icon"},"I",0,n,"i",0,c])},78865(t,e,i){i(40652),i(80234);var o=i(89301),a=i(58933),n=i(41656),c=i(83435),r=i(32012),l=i(65816),s=i(30294),d=i(83058),h=i(75447),u=i(22828),p=i(4008),b=i(11330),g=i(95790);const v=a.AH`.screen-reader-text{position:absolute;inline-size:var(--calcite-border-width-sm);block-size:var(--calcite-border-width-sm);padding:0;margin:calc(-1 * var(--calcite-border-width-sm));overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}`;var m=i(76648);const f=a.AH`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-internal-action-font-size: var(--calcite-font-size--2);--calcite-internal-action-min-height: var(--calcite-size-sm);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-font-size: var(--calcite-font-size--1);--calcite-internal-action-min-height: var(--calcite-size-md);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-font-size: var(--calcite-font-size-0);--calcite-internal-action-min-height: var(--calcite-size-lg);--calcite-internal-action-line-height: 1.25rem;--calcite-internal-action-spacing: var(--calcite-spacing-sm-plus)}:host{display:flex;cursor:pointer;background-color:transparent;--calcite-internal-action-text-color: var(--calcite-color-text-3);border-radius:var(--calcite-action-corner-radius, var(--calcite-action-corner-radius-start-start, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-start-end, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-end-end, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-end-start, var(--calcite-corner-radius-xs)))}.interaction-container{border-radius:inherit}:host([width=full]){flex:1 0 auto}:host([width=full]) .button{justify-content:center}:host([width=full]) .button .text-container--visible{flex:none}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-spacing-xxs)}.button{position:relative;margin:0;display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;outline-color:transparent;box-sizing:border-box;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));border-radius:inherit;color:var(--calcite-action-text-color, var(--calcite-internal-action-text-color));cursor:inherit;flex:1 0 auto;font-family:inherit;font-size:var(--calcite-internal-action-font-size);font-weight:var(--calcite-font-weight-normal);line-height:var(--calcite-internal-action-line-height);min-block-size:var(--calcite-internal-action-height, var(--calcite-internal-action-min-height));max-block-size:var(--calcite-internal-action-height, none);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-internal-action-spacing));padding-inline:var(--calcite-internal-action-padding-inline, var(--calcite-internal-action-spacing));text-align:start}.button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}.button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}.button--text-visible{gap:var(--calcite-internal-action-spacing);inline-size:100%}.icon-container{pointer-events:none;margin:0;display:flex;align-items:center;justify-content:center}.text-container{margin:0;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:0;transition-property:opacity;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-3));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}:host([active]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-3))}:host([active]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) calcite-loader[inline]{margin-inline-end:0px;--calcite-loader-progress-color-inline: var(--calcite-action-loader-color)}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-transparent-press)))}:host([appearance=transparent]) .button{transition-property:box-shadow;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);background-color:var(--calcite-action-background-color, var(--calcite-color-transparent))}:host([appearance=transparent]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-transparent-hover))}:host([appearance=transparent]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-transparent-press)))}:host([selection-appearance=highlight]):host([active]) .button{background-color:var(--calcite-color-surface-highlight);color:var(--calcite-color-text-highlight)}:host([active-descendant]) .button{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:.25rem;inline-size:1rem;position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}:host([scale=s]) .indicator-with-icon{position:relative}:host([scale=s]) .indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.125rem;inset-inline-end:-.125rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}:host([scale=s]) .indicator-without-icon{position:relative}:host([scale=s]) .indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.175rem;inset-inline-end:-.175rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;class k extends r.WF{constructor(){super(),this.guid=(0,l.g)(),this.buttonRef=(0,c._)(),this.buttonId=g.I.button(this.guid),this.mutationObserver=(0,s.c)("mutation",()=>this.requestUpdate()),this.messages=(0,h.u)({blocking:!0}),this.focusSetter=(0,u.u)()(this),this.indicatorRef=(0,c._)(),this.interactiveContainer=(0,p.u)(this),this.labelElRef=(0,c._)(),this.active=!1,this.activeDescendant=!1,this.appearance="transparent",this.compact=!1,this.disabled=!1,this.dragHandle=!1,this.iconFlipRtl=!1,this.indicator=!1,this.loading=!1,this.overflowDisabled=!1,this.scale="m",this.width="auto",this.textEnabled=!1,this.type="button",(0,b.u)()(this)}static{this.properties={aria:[0,{},{attribute:!1}],active:[7,{},{reflect:!0,type:Boolean}],activeDescendant:[7,{},{reflect:!0,type:Boolean}],alignment:[3,{},{reflect:!0}],appearance:[3,{},{reflect:!0}],compact:[7,{},{reflect:!0,type:Boolean}],disabled:[7,{},{reflect:!0,type:Boolean}],dragHandle:[7,{},{reflect:!0,type:Boolean}],form:[3,{},{reflect:!0}],icon:[3,{},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],indicator:[7,{},{reflect:!0,type:Boolean}],label:1,loading:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}],overflowDisabled:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],width:[3,{},{reflect:!0}],text:1,textEnabled:[7,{},{reflect:!0,type:Boolean}],type:[3,{},{reflect:!0}],selectionAppearance:[3,{},{reflect:!0}]}}static{this.formAssociated=!0}static{this.styles=[f,v]}async setFocus(t){return this.focusSetter(()=>this.buttonRef.value,t)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}getAccessibleLabel(){const t=this.label||this.text||"";return this.indicator?this.messages.indicatorLabel.replace("{label}",t):t}getLabelledByElements(){const t=[...this.labelElRef.value?[this.labelElRef.value]:[],...this.aria?.labelledByElements??[]];return t.length?t:void 0}renderTextContainer(){const{text:t,textEnabled:e}=this,i={[g.C.textContainer]:!0,[g.C.textContainerVisible]:e};return t?(0,n.D)("text-container",a.qy`<div aria-hidden=true class=${(0,r.CP)(i)}>${t}</div>`):null}renderIndicatorText(){const{indicator:t,messages:e,buttonId:i}=this;return a.qy`<div aria-labelledby=${i??r.s6} aria-live=polite class=${(0,r.CP)(o.C.screenReaderText)} role=region ${(0,c.K)(this.indicatorRef)}>${t?e.indicator:null}</div>`}renderIconContainer(){const{loading:t,icon:e,scale:i,el:o,iconFlipRtl:c,indicator:l}=this,s="l"===i?"l":"m",h=t?a.qy`<calcite-loader inline .label=${this.messages.loading} .scale=${s}></calcite-loader>`:null,u=e?a.qy`<calcite-icon class=${(0,r.CP)({[g.C.indicatorWithIcon]:l})} .flipRtl=${c} .icon=${e} .scale=${(0,d.g)(this.scale)}></calcite-icon>`:null,p=h||u,b=p||o.children?.length,v=a.qy`<div class=${(0,r.CP)({[g.C.slotContainer]:!0,[g.C.slotContainerHidden]:t})}><slot></slot></div>`;return b?(0,n.D)("icon-container",a.qy`<div aria-hidden=true class=${(0,r.CP)(g.C.iconContainer)}>${p}${v}</div>`):null}renderLabel(){const t=this.getAccessibleLabel();return t?a.qy`<span class=${(0,r.CP)(o.C.screenReaderText)} ${(0,c.K)(this.labelElRef)}>${t}</span>`:null}renderButton(){const{compact:t,disabled:e,icon:i,loading:o,textEnabled:l,indicator:s,indicatorRef:d,buttonId:h}=this,u=this.getLabelledByElements(),p={[g.C.button]:!0,[g.C.buttonTextVisible]:l,[g.C.buttonCompact]:t},b=a.qy`${this.renderIconContainer()}${this.renderTextContainer()}${!i&&s&&(0,n.D)("indicator-no-icon",a.qy`<div class=${(0,r.CP)(g.C.indicatorWithoutIcon)}></div>`)||""}${this.renderLabel()}`,v=s&&d.value?[d.value]:[],f=[...this.aria?.controlsElements??[],...v];return this.dragHandle?a.qy`<span .ariaBusy=${(0,m.t)(o,void 0)} .ariaControlsElements=${f} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabelledByElements=${u} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${(0,r.CP)(p)} id=${h??r.s6} role=button tabindex=${(this.disabled?void 0:0)??r.s6} ${(0,c.K)(this.buttonRef)}>${b}</span>`:a.qy`<button .ariaBusy=${(0,m.t)(o,void 0)} .ariaChecked=${this.aria?.checked} .ariaControlsElements=${f} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabelledByElements=${u} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${(0,r.CP)(p)} .disabled=${e} id=${h??r.s6} .role=${this.aria?.role} type=${this.type??r.s6} ${(0,c.K)(this.buttonRef)}>${b}</button>`}render(){return this.interactiveContainer({disabled:this.disabled,children:a.qy`${this.renderButton()}${this.renderIndicatorText()}`})}}(0,o.c)("calcite-action",k)},84065(t,e,i){i.r(e),i.d(e,{Notice:()=>g}),i(78865),i(80234);var o=i(89301),a=i(58933),n=i(83435),c=i(32012),r=i(64336),l=i(64209),s=i(99471),d=i(57590),h=i(83058),u=i(75447),p=i(22828);const b=a.AH`:host([scale=s]){--calcite-notice-spacing-token-small: .5rem;--calcite-notice-spacing-token-large: .75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=s]) ::slotted(calcite-link){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=m]){--calcite-notice-spacing-token-small: .75rem;--calcite-notice-spacing-token-large: 1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=m]) ::slotted(calcite-link){font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=l]){--calcite-notice-spacing-token-small: 1rem;--calcite-notice-spacing-token-large: 1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){font-size:var(--calcite-font-size-relative-lg);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=l]) ::slotted(calcite-link){font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=l]) .notice-close{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=l]) .actions-end{margin-inline-end:var(--calcite-spacing-sm);gap:var(--calcite-spacing-sm)}:host([width=auto]){--calcite-notice-width: auto}:host([width=half]){--calcite-notice-width: 50%}:host([width=full]){--calcite-notice-width: 100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;opacity:0;overflow:hidden;max-block-size:0;transition-property:opacity,max-block-size;transition-duration:var(--calcite-animation-timing);text-align:start;border-radius:var(--calcite-notice-corner-radius, var(--calcite-corner-radius-sm));box-shadow:var(--calcite-notice-shadow, var(--calcite-shadow-none))}:host{display:flex}:host([open]) .container{pointer-events:auto;max-block-size:100%;align-items:center;opacity:1;overflow:visible}@starting-style{:host([open]) .container{opacity:0;max-block-size:0}}:host([open][appearance=outline-fill]) .container{border:var(--calcite-border-width-sm) solid}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-notice-title-text-color, var(--calcite-color-text-1))}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0;display:inline;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-notice-content-text-color, var(--calcite-color-text-2))}:host(:not([kind=neutral])[appearance=solid]) .container slot[name=title]::slotted(*),:host(:not([kind=neutral])[appearance=solid]) .container *::slotted([slot=title]){color:var(--calcite-notice-title-text-color, var(--calcite-color-text-inverse))}:host(:not([kind=neutral])[appearance=solid]) .container slot[name=message]::slotted(*),:host(:not([kind=neutral])[appearance=solid]) .container *::slotted([slot=message]){color:var(--calcite-notice-content-text-color, var(--calcite-color-text-inverse))}.notice-content{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;box-sizing:border-box;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-large)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;box-sizing:border-box;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;padding-inline:var(--calcite-notice-spacing-token-small)}.notice-close{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;flex:0 0 auto;margin-inline-end:var(--calcite-spacing-xs);--calcite-action-background-color: var(--calcite-notice-close-background-color);--calcite-action-background-color-hover: var( --calcite-notice-close-background-color-hover, var(--calcite-notice-close-background-color-focus) );--calcite-action-background-color-press: var(--calcite-notice-close-background-color-press);--calcite-action-text-color: var(--calcite-notice-close-icon-color, var(--calcite-color-text-3));--calcite-action-text-color-press: var(--calcite-notice-close-icon-color-hover)}.actions-end{display:flex;align-items:center;flex:0 0 auto;margin-inline-end:var(--calcite-spacing-xs);gap:var(--calcite-spacing-xs)}:host([kind=brand][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-brand) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-brand) 5%, var(--calcite-color-foreground-1)))}:host([kind=brand][appearance=outline-fill]) .notice-icon,:host([kind=brand][appearance=transparent]) .notice-icon{color:var(--calcite-color-brand)}:host([kind=info][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-status-info) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-status-info) 5%, var(--calcite-color-foreground-1)))}:host([kind=info][appearance=outline-fill]) .notice-icon,:host([kind=info][appearance=transparent]) .notice-icon{color:var(--calcite-color-status-info)}:host([kind=danger][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-status-danger) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-status-danger) 5%, var(--calcite-color-foreground-1)))}:host([kind=danger][appearance=outline-fill]) .notice-icon,:host([kind=danger][appearance=transparent]) .notice-icon{color:var(--calcite-color-status-danger)}:host([kind=success][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-status-success) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-status-success) 5%, var(--calcite-color-foreground-1)))}:host([kind=success][appearance=outline-fill]) .notice-icon,:host([kind=success][appearance=transparent]) .notice-icon{color:var(--calcite-color-status-success)}:host([kind=warning][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-status-warning) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-status-warning) 5%, var(--calcite-color-foreground-1)))}:host([kind=warning][appearance=outline-fill]) .notice-icon,:host([kind=warning][appearance=transparent]) .notice-icon{color:var(--calcite-color-status-warning)}:host([kind=neutral][appearance=outline-fill]) .container{border-color:var(--calcite-color-border-2);background-color:var(--calcite-notice-background-color, var(--calcite-color-foreground-1))}:host([kind=neutral]) .notice-icon{color:var(--calcite-color-text-3)}:host([appearance=transparent]) .container{background-color:transparent}:host([hidden]){display:none}[hidden]{display:none}`;class g extends c.WF{constructor(){super(...arguments),this.closeButtonRef=(0,n._)(),this.transitionProp="opacity",this.transitionRef=(0,n._)(),this.messages=(0,u.u)(),this.focusSetter=(0,p.u)()(this),this.hasActionEnd=!1,this.appearance="outline-fill",this.closable=!1,this.iconFlipRtl=!1,this.kind="brand",this.open=!1,this.scale="m",this.width="auto",this.calciteNoticeBeforeClose=(0,r.b)({cancelable:!1}),this.calciteNoticeBeforeOpen=(0,r.b)({cancelable:!1}),this.calciteNoticeClose=(0,r.b)({cancelable:!1}),this.calciteNoticeOpen=(0,r.b)({cancelable:!1})}static{this.properties={hasActionEnd:[16,{},{state:!0}],appearance:[3,{},{reflect:!0}],closable:[7,{},{reflect:!0,type:Boolean}],icon:[3,{converter:c.pf},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],kind:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}],open:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],width:[3,{},{reflect:!0}]}}static{this.styles=b}async setFocus(t){return this.focusSetter(()=>this.el.querySelector("calcite-link")||this.closeButtonRef.value,t)}async load(){this.kindIcons={...s.a,brand:s.K.brand},this.requestedIcon=(0,l.v)(this.kindIcons,this.icon,this.kind)}willUpdate(t){t.has("open")&&(this.hasUpdated||!1!==this.open)&&(0,d.t)(this),(t.has("icon")||t.has("kind")&&(this.hasUpdated||"brand"!==this.kind))&&(this.requestedIcon=(0,l.v)(this.kindIcons,this.icon,this.kind))}onBeforeClose(){this.calciteNoticeBeforeClose.emit()}onBeforeOpen(){this.calciteNoticeBeforeOpen.emit()}onClose(){this.calciteNoticeClose.emit()}onOpen(){this.calciteNoticeOpen.emit()}close(){this.open=!1}handleActionsEndSlotChange(t){this.hasActionEnd=(0,l.s)(t)}render(){const t=a.qy`<calcite-action class=${(0,c.CP)("notice-close")} icon=x @click=${this.close} .scale=${this.scale} .text=${this.messages.close} ${(0,n.K)(this.closeButtonRef)}></calcite-action>`;return a.qy`<div class=${(0,c.CP)("container")} ${(0,n.K)(this.transitionRef)}>${this.requestedIcon?a.qy`<div class=${(0,c.CP)("notice-icon")}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${(0,h.g)(this.scale)}></calcite-icon></div>`:null}<div class=${(0,c.CP)("notice-content")}><slot name=${"title"}></slot><slot name=${"message"}></slot><slot name=${"link"}></slot></div><div class=${(0,c.CP)("actions-end")} .hidden=${!this.hasActionEnd}><slot name=${"actions-end"} @slotchange=${this.handleActionsEndSlotChange}></slot></div>${this.closable?t:null}</div>`}}(0,o.c)("calcite-notice",g)},41656(t,e,i){i.d(e,{D:()=>c});var o=i(7261),a=i(66567),n=i(58887);const c=(0,a.u$)(class extends a.WL{constructor(){super(...arguments),this.key=o.s6}render(t,e){return this.key=t,e}update(t,[e,i]){return e!==this.key&&((0,n.mY)(t),this.key=e),i}})},74059(t,e,i){i.d(e,{Dk:()=>f,aK:()=>k,yr:()=>E,jH:()=>C,oW:()=>$});var o=i(64336),a=i(59231);var n=i(58933),c=i(14246),r=i(44613);const l=t=>{const e=(0,c.a)(t,"lang",globalThis.navigator?.language||u);return{lang:e,t9nLocale:m(e)}},s=async(t,e,i=t.localName.split("-").slice(1).join("-"))=>{const{lang:o,t9nLocale:a}=l(t),n=`${e}/${i}/t9n`;return{lang:o,t9nLocale:a,t9nStrings:null===i?{}:await b(a,n,"messages.")}},d="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),h=new Set(d),u="en",p={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},b=async(t,e,i="")=>{const o=`${e}/${i}`,a=`${o}${t}.json`;return g[a]??=v(t,o),await g[a]},g={},v=async(t,e)=>{const i=`${e}${t}.json`;try{const t=await fetch(i);if(t.ok)return await t.json()}catch(t){return(0,r.Rm)("error","intl",`An unknown error occurred while fetching localization strings at ${i}`,{detail:{error:t}}),{}}return t===u?{}:await v(u,e)},m=t=>{const[e,i]=t.split("-"),o=e.toLowerCase();let a=o;return i&&(a=`${o}-${i.toUpperCase()}`),a=p[a]??a,h.has(a)?a:i?m(o):u},f=t=>y(void 0,t),k=t=>e=>y(e,t);class x extends o.C{constructor(t,e){super(t);const i=this.exports;try{(0,a.s)(this.component);const t=e(this.component,this),o=this.exports!==i;if((0,a.i)(t)){o||this.setProvisionalExports(t);const e=t.then(t=>{this.exports=t,super.catchUpLifecycle()}).catch(t=>{this.P.reject(t)});this.onLoad(async()=>await e)}else o&&void 0===t||(this.exports=t),queueMicrotask(()=>super.catchUpLifecycle())}catch(t){this.P.reject(t)}}catchUpLifecycle(){}}const y=(w=x,(...t)=>{const e=(0,a.b)(),i=new w(...t),n=i.exports;(0,a.a)(e.at(-1));const c=i.component.manager;c.W(i,n),i.watchExports(c.W.bind(c,i)),(0,a.f)(i);const r=[i.component,...e].reverse();return(0,o.a)(r,t=>void 0===t?void 0:((t,{host:e,key:i,isReactive:o},n)=>{const c=e,r=c[i]!==t.exports,l=c[i]!==n,s=n!==t.exports;if(r&&!l&&s&&(c[i]=t.exports),e===t.component){if(o){const e=t.component.manager;l&&e.W(t,c[i]),t.onUpdate(o=>{if(o.has(i)){const o=c[i];o!==t.exports&&e.W(t,o)}})}t.O=o?void 0:i}const d=t.component.constructor.elementProperties.get(i)?.readOnly;t.watchExports(()=>{c[i]!==t.exports&&(d?(0,a.c)(()=>{c[i]=t.exports}):c[i]=t.exports)})})(i,t,n),n)});var w;const $=(t,e)=>new z(t,e);class z extends o.C{#t;#e;#i;constructor(t,e){super(),n.S$||(this.#e=t,this.#i=e,this.#t=new MutationObserver(i=>{i.forEach(i=>{t.includes(i.attributeName)&&e.call(this.component,this.component.el.getAttribute(i.attributeName),i.oldValue,i.attributeName)})}))}hostConnected(){this.#e.forEach(t=>{this.component.el.hasAttribute(t)&&this.#i.call(this.component,this.component.el.getAttribute(t),null,t)}),this.#t.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this.#e})}hostDisconnected(){this.#t.disconnect()}}const C=()=>f((t,e)=>{e.exports="ltr",e.onLifecycle(()=>{const i=()=>{const i=(0,c.a)(t.el,"dir","ltr");e.exports="rtl"===i?"rtl":"ltr"};return i(),(0,c.o)(t.el,["dir"],i)})}),E=t=>(e={})=>f((i,o)=>{const a=l(i.el),n={_lang:a.lang,_t9nLocale:a.t9nLocale,_loading:!0},d=i;o.onLifecycle(()=>((t,e,i,o)=>{let a;const n=()=>s(t,e(),o).then(t=>{a?.lang===t.lang&&a.t9nLocale===t.t9nLocale&&a.t9nStrings===t.t9nStrings||i(t),a=t}).catch(t=>{(0,r.Rm)("error","intl","Error updating component locale state",{detail:{error:t}})});return queueMicrotask(n),(0,c.o)(t,["lang"],n)})(i.el,()=>t("./assets"),({t9nLocale:t,t9nStrings:e,lang:a})=>{const n={...e,_lang:a,_t9nLocale:t,_loading:!1};o.exports=n;const c=e.componentLabel;"string"==typeof c&&"label"in i&&null==i.label&&(i.label??=c),h(d.messageOverrides)},e.name));const h=t=>{const e=o.exports,i=e._original??e,a=B(i,t);t&&(a._original=i),o.exports=a};return"messageOverrides"in d&&o.onUpdate(t=>{t.has("messageOverrides")&&h(d.messageOverrides)}),e.blocking?(o.setProvisionalExports(n,!1),o.ready):n}),B=(t,e)=>{if(!e)return t;const i={...t};return Object.entries(e).forEach(([e,o])=>{void 0!==t[e]&&(i[e]="object"==typeof o?B(t[e],o):o??t[e])}),i}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9187],{79187(t,i,s){s.r(i),s.d(i,{Envelope2D:()=>r});var e=s(55537),n=s(83661);class r{m_EnvelopeType=2;xmin;ymin;xmax;ymax;static construct(t,i,s,e){return new r(t,i,s,e)}constructor(t,i,s,e){void 0===t?(this.xmin=NaN,this.ymin=NaN,this.xmax=NaN,this.ymax=NaN):"number"==typeof t?(this.xmin=t,this.ymin=i,this.xmax=s,this.ymax=e):(this.xmin=t.xmin,this.ymin=t.ymin,this.xmax=t.xmax,this.ymax=t.ymax),this.normalize()}static constructEmpty(){return new r(NaN,NaN,NaN,NaN)}clone(){return new r(this)}assign(t){return this.xmin=t.xmin,this.xmax=t.xmax,this.ymin=t.ymin,this.ymax=t.ymax,this}width(){return this.xmax-this.xmin}height(){return this.ymax-this.ymin}maxDimension(){return Math.max(this.width(),this.height())}minDimension(){return Math.min(this.width(),this.height())}sqrDiagonal(){let t=this.width(),i=this.height();return t*t+i*i}diagonal(){return Math.sqrt(this.sqrDiagonal())}getCenterX(){return.5*(this.xmin+this.xmax)}getCenterY(){return.5*(this.ymin+this.ymax)}getCenter(){return n.P.construct(this.getCenterX(),this.getCenterY())}queryCenter(t){t.x=.5*(this.xmin+this.xmax),t.y=.5*(this.ymin+this.ymax)}setEmpty(){this.xmin=NaN,this.ymin=NaN,this.xmax=NaN,this.ymax=NaN}setInfinite(){this.xmin=-1/0,this.xmax=1/0,this.ymin=-1/0,this.ymax=1/0}isDegenerate(t){return!this.isEmpty()&&(this.width()<=t||this.height()<=t)}isZero(){return!(this.isEmpty()||this.width()&&this.height())}isEmpty(){return Number.isNaN(this.xmin)||Number.isNaN(this.ymin)||Number.isNaN(this.xmax)||Number.isNaN(this.ymax)}mergeNeCoords(t,i){this.xmin>t?this.xmin=t:this.xmax<t&&(this.xmax=t),this.ymin>i?this.ymin=i:this.ymax<i&&(this.ymax=i)}mergeNe(t){this.mergeNeCoords(t.x,t.y)}mergeCoords(t,i){this.isEmpty()?(this.xmin=t,this.ymin=i,this.xmax=t,this.ymax=i):(this.xmin>t?this.xmin=t:this.xmax<t&&(this.xmax=t),this.ymin>i?this.ymin=i:this.ymax<i&&(this.ymax=i))}merge(t){this.mergeCoords(t.x,t.y)}mergeEnvelope2D(t){t.isEmpty()||(this.mergeCoords(t.xmin,t.ymin),this.mergeNeCoords(t.xmax,t.ymax))}mergePoints(t,i){for(let s=0;s<i;){if(!this.isEmpty()){for(let e=s;e<i;e++)this.mergeNe(t[e]);break}this.setCoords(t[s]),s++}}mergePointsInterleaved(t,i,s){for(let e=2*i,n=e+2*s;e<n;e+=2)this.mergeCoords(t.read(e),t.read(e+1))}inflateCoords(t,i){this.isEmpty()||(this.xmin-=t,this.xmax+=t,this.ymin-=i,this.ymax+=i,(this.xmin>this.xmax||this.ymin>this.ymax)&&this.setEmpty())}getInflatedCoords(t,i){let s=this.clone();return s.inflateCoords(t,i),s}inflate(t){this.inflateCoords(t,t)}getInflated(t){let i=this.clone();return i.inflateCoords(t,t),i}zoom(t,i){this.isEmpty()||this.setCoords({center:this.getCenter(),width:t*this.width(),height:i*this.height()})}scale(t){t<0&&this.setEmpty(),this.xmin*=t,this.xmax*=t,this.ymin*=t,this.ymax*=t}equals(t,i){return!(!this.isEmpty()||!t.isEmpty())||(i?Math.abs(this.xmin-t.xmin)<=i&&Math.abs(this.ymin-t.ymin)<=i&&Math.abs(this.xmax-t.xmax)<=i&&Math.abs(this.ymax-t.ymax)<=i:this.xmin===t.xmin&&this.ymin===t.ymin&&this.xmax===t.xmax&&this.ymax===t.ymax)}setCoords(t){void 0===t.xmin?void 0===t.x?void 0===t.pt1?void 0===t.env2D?void 0===t.pt?void 0===t.center?(0,e.t)("unrecognized input type for setCoords"):(this.xmin=t.center.x-.5*t.width,this.xmax=this.xmin+t.width,this.ymin=t.center.y-.5*t.height,this.ymax=this.ymin+t.height,this.normalize()):(this.xmin=t.pt.x,this.xmax=t.pt.x,this.ymin=t.pt.y,this.ymax=t.pt.y):(this.xmin=t.env2D.xmin,this.xmax=t.env2D.xmax,this.ymin=t.env2D.ymin,this.ymax=t.env2D.ymax,this.normalize()):(this.xmin=t.pt1.x,this.ymin=t.pt1.y,this.xmax=t.pt2.x,this.ymax=t.pt2.y,this.normalize()):(this.xmin=t.x,this.xmax=t.x,this.ymin=t.y,this.ymax=t.y):(this.xmin=t.xmin,this.xmax=t.xmax,this.ymin=t.ymin,this.ymax=t.ymax),this.normalize()}queryIntervalX(t){this.isEmpty()?t.setEmpty():t.setCoords(this.xmin,this.xmax)}queryIntervalY(t){this.isEmpty()?t.setEmpty():t.setCoords(this.ymin,this.ymax)}setFromPoints(t,i){if(0===i)return void this.setEmpty();if(Array.isArray(t)){let s=t;this.setCoords(s[0]);for(let t=1;t<i;){if(!this.isEmpty()){for(let e=t;e<i;e++)this.mergeNe(s[e]);return}this.setCoords(s[t]),t++}return}let s=t;this.setCoords({x:s[0],y:s[1]});for(let t=1,e=2*i;t<e;t+=2){if(!this.isEmpty()){for(let e=t,n=2*i;e<n;e+=2)this.mergeNeCoords(s[e],s[e+1]);return}this.setCoords({x:s[t],y:s[t+1]}),t+=2}}normalize(){let t=!1;this.xmin<=this.xmax||([this.xmin,this.xmax]=[this.xmax,this.xmin],t=!0),this.ymin<=this.ymax||([this.ymin,this.ymax]=[this.ymax,this.ymin],t=!0),!t||this.xmin<=this.xmax&&this.ymin<=this.ymax||this.setEmpty()}isValid(){return this.isEmpty()||this.xmin<=this.xmax&&this.ymin<=this.ymax}getLowerLeft(){return new n.P(this.xmin,this.ymin)}getLowerRight(){return new n.P(this.xmax,this.ymin)}getUpperLeft(){return new n.P(this.xmin,this.ymax)}getUpperRight(){return new n.P(this.xmax,this.ymax)}move(t,i){this.isEmpty()||(this.xmin+=t,this.ymin+=i,this.xmax+=t,this.ymax+=i)}centerAtCoords(t,i){this.move(t-this.getCenterX(),i-this.getCenterY())}centerAt(t){this.centerAtCoords(t.x,t.y)}containsCoords(t,i){return t>=this.xmin&&t<=this.xmax&&i>=this.ymin&&i<=this.ymax}contains(t){return this.containsCoords(t.x,t.y)}containsEnvelope(t){return t.xmin>=this.xmin&&t.xmax<=this.xmax&&t.ymin>=this.ymin&&t.ymax<=this.ymax}containsExclusiveCoords(t,i){return t>this.xmin&&t<this.xmax&&i>this.ymin&&i<this.ymax}containsExclusive(t){return this.containsExclusiveCoords(t.x,t.y)}containsExclusiveEnvelope(t){return t.xmin>this.xmin&&t.xmax<this.xmax&&t.ymin>this.ymin&&t.ymax<this.ymax}isIntersecting(t){return(this.xmin<=t.xmin?this.xmax>=t.xmin:t.xmax>=this.xmin)&&(this.ymin<=t.ymin?this.ymax>=t.ymin:t.ymax>=this.ymin)}isIntersectingNe(t){return(this.xmin<=t.xmin?this.xmax>=t.xmin:t.xmax>=this.xmin)&&(this.ymin<=t.ymin?this.ymax>=t.ymin:t.ymax>=this.ymin)}intersect(t){if(this.isEmpty())return!1;if(t.isEmpty())return this.setEmpty(),!1;t.xmin>this.xmin&&(this.xmin=t.xmin),t.xmax<this.xmax&&(this.xmax=t.xmax),t.ymin>this.ymin&&(this.ymin=t.ymin),t.ymax<this.ymax&&(this.ymax=t.ymax);let i=this.xmin<=this.xmax&&this.ymin<=this.ymax;return i||this.setEmpty(),i}queryCorner(t){switch(3&t){case 0:return new n.P(this.xmin,this.ymin);case 1:return new n.P(this.xmin,this.ymax);case 2:return new n.P(this.xmax,this.ymax);default:return new n.P(this.xmax,this.ymin)}}queryCorners(t){t[0].setCoords(this.xmin,this.ymin),t[1].setCoords(this.xmin,this.ymax),t[2].setCoords(this.xmax,this.ymax),t[3].setCoords(this.xmax,this.ymin)}queryCornersReversed(t){t[0].setCoords(this.xmin,this.ymin),t[1].setCoords(this.xmax,this.ymin),t[2].setCoords(this.xmax,this.ymax),t[3].setCoords(this.xmin,this.ymax)}reaspect(t,i){if(this.isEmpty())return;let s=t/i,e=.5*this.width(),n=.5*this.height()*s;if(e<=n){let t=this.getCenterX();this.xmin=t-n,this.xmax=t+n}else{let t=e/s,i=this.getCenterY();this.ymin=i-t,this.ymax=i+t}this.normalize()}getArea(){return this.isEmpty()?0:this.width()*this.height()}getLength(){return this.isEmpty()?0:2*(this.width()+this.height())}clipCode(t){return+(t.x<this.xmin)|(t.x>this.xmax)<<1|(t.y<this.ymin)<<2|(t.y>this.ymax)<<3}static XLESSXMIN=1;static YLESSYMIN=4;static XMASK=3;static YMASK=12;clipLine(t,i){let s=this.clipCode(t),e=this.clipCode(i);if(s&e)return 0;if(!(s|e))return 4;let n=!!s|(e?2:0);do{let n=i.x-t.x,h=i.y-t.y;if(Math.abs(n)>Math.abs(h)?s&r.XMASK?(s&r.XLESSXMIN?(t.y+=h*(this.xmin-t.x)/n,t.x=this.xmin):(t.y+=h*(this.xmax-t.x)/n,t.x=this.xmax),s=this.clipCode(t)):e&r.XMASK?(e&r.XLESSXMIN?(i.y+=h*(this.xmin-i.x)/n,i.x=this.xmin):(i.y+=h*(this.xmax-i.x)/n,i.x=this.xmax),e=this.clipCode(i)):s?(s&r.YLESSYMIN?(t.x+=n*(this.ymin-t.y)/h,t.y=this.ymin):(t.x+=n*(this.ymax-t.y)/h,t.y=this.ymax),s=this.clipCode(t)):(e&r.YLESSYMIN?(i.x+=n*(this.ymin-i.y)/h,i.y=this.ymin):(i.x+=n*(this.ymax-i.y)/h,i.y=this.ymax),e=this.clipCode(i)):s&r.YMASK?(s&r.YLESSYMIN?(t.x+=n*(this.ymin-t.y)/h,t.y=this.ymin):(t.x+=n*(this.ymax-t.y)/h,t.y=this.ymax),s=this.clipCode(t)):e&r.YMASK?(e&r.YLESSYMIN?(i.x+=n*(this.ymin-i.y)/h,i.y=this.ymin):(i.x+=n*(this.ymax-i.y)/h,i.y=this.ymax),e=this.clipCode(i)):s?(s&r.XLESSXMIN?(t.y+=h*(this.xmin-t.x)/n,t.x=this.xmin):(t.y+=h*(this.xmax-t.x)/n,t.x=this.xmax),s=this.clipCode(t)):(e&r.XLESSXMIN?(i.y+=h*(this.xmin-i.x)/n,i.x=this.xmin):(i.y+=h*(this.xmax-i.x)/n,i.x=this.xmax),e=this.clipCode(i)),s&e)return 0}while(s|e);return n}distanceFromEnvelope(t){return Math.sqrt(this.sqrDistanceEnvelope(t,null,null))}distance(t){return Math.sqrt(this.sqrDistance(t))}sqrDistanceEnvelope(t,i,s){if(!i&&!s){if(this.isEmpty()||t.isEmpty())return NaN;let i,s=0,e=0;return i=this.xmin-t.xmax,i>s&&(s=i),i=this.ymin-t.ymax,i>e&&(e=i),i=t.xmin-this.xmax,i>s&&(s=i),i=t.ymin-this.ymax,i>e&&(e=i),s*s+e*e}if(this.isEmpty()||t.isEmpty())return i&&i.setNAN(),s&&s.setNAN(),NaN;let e,n=0,r=0,h=Math.max(this.xmin,t.xmin),u=Math.max(this.ymin,t.ymin);return i&&i.setCoords(h,u),s&&s.setCoords(h,u),e=this.xmin-t.xmax,e>n&&(n=e,i&&(i.x=this.xmin),s&&(s.x=t.xmax)),e=this.ymin-t.ymax,e>r&&(r=e,i&&(i.y=this.ymin),s&&(s.y=t.ymax)),e=t.xmin-this.xmax,e>n&&(n=e,i&&(i.x=this.xmax),s&&(s.x=t.xmin)),e=t.ymin-this.ymax,e>r&&(r=e,i&&(i.y=this.ymax),s&&(s.y=t.ymin)),n*n+r*r}sqrDistance(t,i){if(void 0===i){if(this.isEmpty()||t.isNAN())return NaN;let i,s=0,e=0;return i=this.xmin-t.x,i>s&&(s=i),i=this.ymin-t.y,i>e&&(e=i),i=t.x-this.xmax,i>s&&(s=i),i=t.y-this.ymax,i>e&&(e=i),s*s+e*e}if(this.isEmpty()||t.isNAN())return i.setNAN(),NaN;i.assign(t);let s,e=0,n=0;return s=this.xmin-t.x,s>e&&(e=s,i.x=this.xmin),s=this.ymin-t.y,s>n&&(n=s,i.y=this.ymin),s=t.x-this.xmax,s>e&&(e=s,i.x=this.xmax),s=t.y-this.ymax,s>n&&(n=s,i.y=this.ymax),e*e+n*n}sqrMaxMinDistanceEnvelope(t){if(this.isEmpty()||t.isEmpty())return NaN;let i=Number.MAX_VALUE;{let s=n.P.sqrDistanceCoords(this.xmin,this.ymin,t.xmax,t.ymin),e=n.P.sqrDistanceCoords(this.xmin,this.ymin,t.xmax,t.ymax),r=n.P.sqrDistanceCoords(this.xmin,this.ymax,t.xmax,t.ymin),h=n.P.sqrDistanceCoords(this.xmin,this.ymax,t.xmax,t.ymax);i=Math.min(Math.max(Math.max(s,e),Math.max(r,h)),i)}{let s=n.P.sqrDistanceCoords(this.xmin,this.ymin,t.xmin,t.ymax),e=n.P.sqrDistanceCoords(this.xmin,this.ymin,t.xmax,t.ymax),r=n.P.sqrDistanceCoords(this.xmax,this.ymin,t.xmin,t.ymax),h=n.P.sqrDistanceCoords(this.xmax,this.ymin,t.xmax,t.ymax);i=Math.min(Math.max(Math.max(s,e),Math.max(r,h)),i)}{let s=n.P.sqrDistanceCoords(this.xmax,this.ymin,t.xmin,t.ymin),e=n.P.sqrDistanceCoords(this.xmax,this.ymin,t.xmin,t.ymax),r=n.P.sqrDistanceCoords(this.xmax,this.ymax,t.xmin,t.ymin),h=n.P.sqrDistanceCoords(this.xmax,this.ymax,t.xmin,t.ymax);i=Math.min(Math.max(Math.max(s,e),Math.max(r,h)),i)}{let s=n.P.sqrDistanceCoords(this.xmin,this.ymax,t.xmin,t.ymin),e=n.P.sqrDistanceCoords(this.xmin,this.ymax,t.xmax,t.ymin),r=n.P.sqrDistanceCoords(this.xmax,this.ymax,t.xmin,t.ymin),h=n.P.sqrDistanceCoords(this.xmax,this.ymax,t.xmax,t.ymin);i=Math.min(Math.max(Math.max(s,e),Math.max(r,h)),i)}return i}sqrMaxDistanceEnvelope(t){if(this.isEmpty()||t.isEmpty())return NaN;let i=0,s=(0,n.m)(n.P,4);this.queryCorners(s);let e=(0,n.m)(n.P,4);t.queryCorners(e);for(let t=0;t<4;t++)for(let r=0;r<4;r++){let h=n.P.sqrDistance(s[t],e[r]);h>i&&(i=h)}return i}sqrMaxMinDistance(t){let i,s=n.P.sqrDistance(t,this.getLowerLeft()),e=n.P.sqrDistance(t,this.getUpperLeft()),r=n.P.sqrDistance(t,this.getLowerRight()),h=n.P.sqrDistance(t,this.getUpperRight()),u=Math.max(s,e);return i=Math.max(s,r),u>i&&(u=i),i=Math.max(e,h),u>i&&(u=i),i=Math.max(r,h),u>i&&(u=i),u}sqrMinDistance(t){return this.contains(t)?0:this.sqrDistance(t)}sqrMaxDistance(t){let i=n.P.sqrDistance(t,this.getLowerLeft());return i=Math.max(n.P.sqrDistance(t,this.getUpperLeft()),i),i=Math.max(n.P.sqrDistance(t,this.getUpperRight()),i),i=Math.max(n.P.sqrDistance(t,this.getLowerRight()),i),i}snapToBoundary(t){if(t.isNAN())return!1;if(this.isEmpty())return t.setNAN(),!0;let i=!0;if(t.x<this.xmin?t.x=this.xmin:t.x>this.xmax?t.x=this.xmax:i=!1,t.y<this.ymin?t.y=this.ymin:t.y>this.ymax?t.y=this.ymax:i=!1,i)return!0;if(t.x===this.xmin||t.x===this.xmax||t.y===this.ymin||t.y===this.ymax)return!1;let s=this.xmax-t.x,e=t.x-this.xmin,n=this.ymax-t.y,r=t.y-this.ymin;return Math.max(s,e)>Math.max(n,r)?t.y=r<n?this.ymin:this.ymax:t.x=e<s?this.xmin:this.xmax,!0}snapClip(t){let i=(0,n.s)(t.x,this.xmin,this.xmax),s=(0,n.s)(t.y,this.ymin,this.ymax);return n.P.construct(i,s)}boundaryDistance(t){if(this.isEmpty()||t.isNAN())return NaN;if(t.x===this.xmin)return t.y-this.ymin;let i=this.ymax-this.ymin,s=this.xmax-this.xmin;if(t.y===this.ymax)return i+t.x-this.xmin;if(t.x===this.xmax)return i+s+this.ymax-t.y;if(t.y===this.ymin)return 2*i+s+this.xmax-t.x;let e=new n.P;return e.setCoordsPoint2D(t),this.snapToBoundary(e),this.boundaryDistance(e)}envelopeSide(t){if(this.isEmpty())return-1;let i=this.boundaryDistance(t),s=this.ymax-this.ymin,e=this.xmax-this.xmin;return i<s?0:(i-=s)<e?1:i-e<s?2:3}querySide(t,i){switch(t){case 0:i.constructFromCoords(this.xmin,this.ymin,this.xmin,this.ymax);break;case 1:i.constructFromCoords(this.xmin,this.ymax,this.xmax,this.ymax);break;case 2:i.constructFromCoords(this.xmax,this.ymax,this.xmax,this.ymin);break;case 3:i.constructFromCoords(this.xmax,this.ymin,this.xmin,this.ymin);break;default:(0,e.a)("query_side")}return i}isPointOnBoundary(t,i){return Math.abs(t.x-this.xmin)<=i||Math.abs(t.x-this.xmax)<=i||Math.abs(t.y-this.ymin)<=i||Math.abs(t.y-this.ymax)<=i}calculateToleranceFromEnvelope(){return this.isEmpty()?(0,n.g)():(Math.abs(this.xmin)+Math.abs(this.xmax)+Math.abs(this.ymin)+Math.abs(this.ymax)+1)*(0,n.g)()}toString(){return`[${this.xmin}, ${this.ymin}, ${this.xmax}, ${this.ymax}]`}}},55537(t,i,s){function e(t,i){try{if(!t)throw Error(i)}catch(t){throw t}}s.d(i,{A:()=>S,B:()=>z,C:()=>P,D:()=>k,G:()=>o,a:()=>T,b:()=>w,c:()=>R,d:()=>A,e:()=>E,f:()=>y,g:()=>e,h:()=>_,i:()=>f,j:()=>p,k:()=>b,l:()=>v,m:()=>d,n:()=>g,o:()=>M,p:()=>L,q:()=>C,r:()=>I,s:()=>B,t:()=>q,u:()=>c,v:()=>N,w:()=>Z,x:()=>D,y:()=>G,z:()=>F});class n extends Error{constructor(t,i){super(i),this.m_AdditionalMessage=i,this.m_ErrorType=t,this.name="GeometryError"}what(){return function(t){switch(t){case 1:return"Unknown error";case 2:return"Corrupted geometry";case 3:return"Empty geometry";case 4:return"Math singularity";case 5:return"Buffer is too small";case 6:return"Invalid shape type";case 7:return"Projection out of supported range";case 8:return"Non simple geometry";case 9:return"Cannot calculate geodesic";case 10:return"Notation conversion";case 11:return"Missing grid file";case 12:return"Invalid call";case 13:return"Internal error";case 14:return"Not implemented";case 15:return"IO error";case 16:return"Invalid 3D";case 17:return"An ambiguous geography edge with antipodal points";case 18:return"Geocentric coordinates require ellipsoidal height";case 19:return"Geography cannot be projected into a gnomonic plane or a result of an operation cannot fit into a gnomonic plane";case 20:return"Geometry is too large to be exported in to a given format";case 22:return"Operation is canceled by the user";case 21:return"The operation, such as projection or geodetic computation, cannot be performed without pe-wasm loaded";default:return"unknown error"}}(this.m_ErrorType)}additionalMessage(){return this.m_AdditionalMessage?this.m_AdditionalMessage:""}code(){return this.m_ErrorType}m_AdditionalMessage;m_ErrorType}class r extends n{constructor(t){super(2,t),this.name="CorruptedGeometryError"}}class h extends n{constructor(t){super(3,t),this.name="EmptyGeometryError"}}class u extends n{constructor(t){super(4,t),this.name="MathSingularityError"}}class a extends n{constructor(t){super(21,t),this.name="ProjectionEngineNotLoadedError"}}class m extends n{constructor(t){super(8,t),this.name="NonSimpleGeometryError"}}var o,l;(l=o||={})[l.enumUnknown=0]="enumUnknown",l[l.enumPoint=513]="enumPoint",l[l.enumLine=5122]="enumLine",l[l.enumBezier=5123]="enumBezier",l[l.enumEllipticArc=5124]="enumEllipticArc",l[l.enumEnvelope=3077]="enumEnvelope",l[l.enumMultiPoint=8710]="enumMultiPoint",l[l.enumPolyline=25607]="enumPolyline",l[l.enumPolygon=27656]="enumPolygon",l[l.enumMultipatch=40969]="enumMultipatch",l[l.enumGeometryCollection=3594]="enumGeometryCollection",l[l.enumRationalBezier2=5134]="enumRationalBezier2",l[l.enumBezier2=5135]="enumBezier2",l[l.enumRationalBezier23d=5392]="enumRationalBezier23d",l[l.enumGreatArc3d=5393]="enumGreatArc3d";const x=[0,0,1,1,1,2,0,1,2,3,-1,-1,-1,-1,1,1];function c(t){return x[15&t]}function y(t){return!!(512&t)}function d(t){return!!(1024&t)}function v(t){return!!(2048&t)}function _(t){return!!(4096&t)}function f(t){return!!(8192&t)}function p(t){return!!(16384&t)}function b(t){return!!(32768&t)}function N(t){let i=t.getGeometryType();return f(i)?t.getPointCount():t.isEmpty()?0:i===o.enumEnvelope?4:i===o.enumPoint?1:_(i)?2:void A("missing type")}function g(t){let i=t.getGeometryType();if(p(i))return t.hasNonLinearSegments();if(i===o.enumGeometryCollection){let i=t;for(let t=0,s=i.getGeometryCount();t<s;t++)if(g(i.getGeometry(t)))return!0;return!1}return!!_(i)&&i!==o.enumLine}function E(t){throw new a(t)}function M(t){throw new r(t)}function T(t){throw Error(t)}function w(t){throw new u(t)}function D(){T("Geometry type is not supported for 3D operations.")}function C(t){throw new n(12,t)}function P(t){throw new h(t)}function q(t){throw new n(14,t)}function I(t){throw Error(t)}function A(t){throw new n(13,t)}function z(t){throw Error(t)}function S(t){throw new m(t)}function L(t){t&&g(t)&&q("Operation does not support curves.")}function R(t){t&&b(t.getGeometryType())&&q("Unsupported geometry type.")}function Z(t){t===o.enumGeometryCollection&&T("Geometry_collection instances are not supported in this operation")}function B(t){Z(t.getGeometryType())}function G(t){T(`bad wkid: ${t}`)}function F(t){let i="bad wkt: ";i+=t,i+="...",T(i)}function k(t,i){t||T(i)}},83661(t,i,s){s.d(i,{$:()=>M,A:()=>E,B:()=>ui,C:()=>li,D:()=>Pt,E:()=>m,F:()=>Dt,G:()=>Vt,H:()=>w,I:()=>pi,J:()=>L,K:()=>n,L:()=>hi,M:()=>Ii,N:()=>gt,O:()=>ai,P:()=>Gi,Q:()=>yi,R:()=>Bi,S:()=>zt,U:()=>Zi,V:()=>Ri,W:()=>ci,X:()=>pt,Y:()=>Jt,Z:()=>l,_:()=>gi,a:()=>Z,a0:()=>oi,a1:()=>Xt,a2:()=>_i,a3:()=>mi,a4:()=>xt,a5:()=>ft,a6:()=>fi,a7:()=>Kt,a8:()=>jt,aA:()=>b,aB:()=>it,aE:()=>ot,aF:()=>Pi,aG:()=>bt,aH:()=>Y,aI:()=>B,aJ:()=>at,aK:()=>G,aL:()=>ti,aM:()=>yt,aa:()=>Ct,ab:()=>bi,ac:()=>lt,af:()=>At,ag:()=>z,ah:()=>S,ai:()=>_t,aj:()=>P,ak:()=>Mi,al:()=>Ci,am:()=>Bt,an:()=>wi,ao:()=>q,ap:()=>I,as:()=>D,at:()=>C,au:()=>Ei,av:()=>Ti,aw:()=>st,ax:()=>et,ay:()=>Tt,az:()=>p,b:()=>ct,c:()=>dt,d:()=>It,e:()=>F,f:()=>T,g:()=>vi,h:()=>Et,i:()=>Wt,j:()=>Ht,m:()=>wt,o:()=>St,p:()=>tt,q:()=>qt,r:()=>A,s:()=>Ni,t:()=>$t,u:()=>k,v:()=>Nt,w:()=>vt,x:()=>Mt,y:()=>R,z:()=>N});var e=s(55537);class n{constructor(t){this.sum=t,this.compensation=0}assign(t){return this.compensation=t.compensation,this.sum=t.sum,this}reset(){this.sum=this.compensation=0}resetToStart(t){this.sum=t,this.compensation=0}normalize(){let t=[NaN];this.sum=W(this.sum,this.compensation,t),this.compensation=t[0]}add(t){let i,s=this.sum+t;if(Math.abs(this.sum)>=Math.abs(t)){let e=this.sum-s+t;i=this.compensation+e}else{let e=t-s+this.sum;i=this.compensation+e}this.sum=s,this.compensation=i}sub(t){this.add(-t)}addProduct(t,i){let s=[0],e=K(t,i,s);this.add(e),this.add(s[0])}mul(t){let i=new n(0);i.addProduct(this.sum,t),i.addProduct(this.compensation,t),this.assign(i)}getResult(){return this.sum+this.compensation}pe(t){return this.add(t),this}me(t){return this.add(-t),this}sum;compensation}const r=[5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1],h=[-1,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3];function u(t){let i=0;return 65535n&t||(i+=16,t>>=16n),255n&t||(i+=8,t>>=8n),15n&t||(i+=4,t>>=4n),i+r[Number(BigInt.asUintN(4,t))]}function a(t){let i=0;return 4294967295n&t||(i=32,t>>=32n),i+u(BigInt.asUintN(32,t))}class m{m_EnvelopeType=1;vmin;vmax;constructor(t,i){if(void 0!==t)return t instanceof m?(this.vmin=t.vmin,void(this.vmax=t.vmax)):(this.vmin=t,this.vmax=i,void this.normalize());this.setEmpty()}static construct(t,i){return new m(t,i)}static constructEmpty(){return new m}setCoords(t,i){this.vmin=t,this.vmax=i,this.normalize()}setCoordsFromEnvelope(t){this.vmin=t.vmin,this.vmax=t.vmax}setEmpty(){this.vmin=NaN,this.vmax=NaN}getCenter(){return.5*(this.vmin+this.vmax)}equalsRange(t,i){return Vt(this.vmin,t)&&Vt(this.vmax,i)}equals(t,i){return!(!this.isEmpty()||!t.isEmpty())||(void 0===i?this.vmin===t.vmin&&this.vmax===t.vmax:Math.abs(this.vmin-t.vmin)<=i&&Math.abs(this.vmax-t.vmax)<=i)}width(){return this.vmax-this.vmin}isEmpty(){return Number.isNaN(this.vmin)||Number.isNaN(this.vmax)}isZero(){return this.vmin===this.vmax}setInfinite(){this.vmin=-1/0,this.vmax=1/0}move(t){this.isEmpty()||(this.vmin+=t,this.vmax+=t)}contains(t){return t.vmin>=this.vmin&&t.vmax<=this.vmax}containsCoordinate(t){return t>=this.vmin&&t<=this.vmax}containsRightExclusive(t){return t>=this.vmin&&t<this.vmax}containsExclusiveCoordinate(t){return t>this.vmin&&t<this.vmax}containsExclusive(t){return t.vmin>this.vmin&&t.vmax<this.vmax}isIntersecting(t){return this.vmin<=t.vmin?this.vmax>=t.vmin:t.vmax>=this.vmin}mergeCoordinate(t){if(this.isEmpty())return this.vmin=t,void(this.vmax=t);this.mergeNeCoordinate(t)}merge(t){if(t.isEmpty())return;let i=t.vmin,s=t.vmax;this.mergeCoordinate(i),this.mergeCoordinate(s)}mergeNe(t){let i=t.vmin,s=t.vmax;this.mergeNeCoordinate(i),this.mergeNeCoordinate(s)}mergeNeCoordinate(t){t<this.vmin?this.vmin=t:t>this.vmax&&(this.vmax=t)}intersect(t){this.isEmpty()||t.isEmpty()?this.setEmpty():(this.vmin<t.vmin&&(this.vmin=t.vmin),this.vmax>t.vmax&&(this.vmax=t.vmax),this.vmin>this.vmax&&this.setEmpty())}inflate(t){this.isEmpty()||(this.vmin-=t,this.vmax+=t,this.vmax<this.vmin&&this.setEmpty())}normalize(){this.vmin<=this.vmax||(this.vmin>this.vmax?this.vmax=dt(this.vmin,this.vmin=this.vmax):this.setEmpty())}isValid(){return this.isEmpty()||this.vmin<=this.vmax}snapClip(t){return Ni(t,this.vmin,this.vmax)}calculateToleranceFromEnvelope(){return this.isEmpty()?2**-52*100:(Math.abs(this.vmin)+Math.abs(this.vmax)+1)*(2**-52*100)}static unit(){return o}normalizeNoNAN(){this.vmin>this.vmax&&(this.vmax=dt(this.vmin,this.vmin=this.vmax))}setCoordsNoNAN(t,i){this.vmin=t,this.vmax=i,this.normalizeNoNAN()}clone(){return new m(this.vmin,this.vmax)}}const o=new m(0,1);class l{m_value;m_eps;static getNAN(){return new l(NaN)}constructor(t,i){this.m_value=t??0,this.m_eps=i??0}[Symbol.toPrimitive](t){return this}clone(){return new l(this.m_value,this.m_eps)}assign(t){return this.m_value=t.m_value,this.m_eps=t.m_eps,this}scaleError(t){this.m_eps*=t}setError(t){this.m_eps=t}set(t,i){return this.m_value=t,this.m_eps=i??0,this}setWithEps(t,i){return void 0===i&&(i=1),this.m_value=t,this.m_eps=l.ulp(t)*i,this}setE(t){return this.m_value=t.m_value,this.m_eps=t.m_eps,this}precise(){return new l(this.m_value)}value(){return this.m_value}toDouble(){return this.m_value}eps(){return this.m_eps}resetError(){return this.m_eps=0,this}absThis(){return this.m_value=Math.abs(this.m_value),this}add(t){return this.clone().addThis(t)}addE(t){return this.clone().addThisE(t)}addThisE(t){let i=this.m_value+t.m_value,s=this.m_eps+t.m_eps+l.ulp(i);return this.m_value=i,this.m_eps=s,this}addThis(t){let i=this.m_value+t,s=this.m_eps+l.ulp(i);return this.m_value=i,this.m_eps=s,this}subE(t){return this.clone().subThisE(t)}sub(t){return this.clone().subThis(t)}subThisE(t){let i=this.m_value-t.m_value,s=this.m_eps+t.m_eps+l.ulp(i);return this.m_value=i,this.m_eps=s,this}subThis(t){let i=this.m_value-t,s=this.m_eps+l.ulp(i);return this.m_value=i,this.m_eps=s,this}setAddE(t,i){return this.m_value=t.m_value+i.m_value,this.m_eps=t.m_eps+i.m_eps+l.ulp(this.m_value),this}setAdd(t,i){return this.m_value=t+i,this.m_eps=l.ulp(this.m_value),this}setAddEN(t,i){return this.m_value=t.m_value+i,this.m_eps=t.m_eps+l.ulp(this.m_value),this}setAddNE(t,i){return this.m_value=t+i.m_value,this.m_eps=i.m_eps+l.ulp(this.m_value),this}setSubE(t,i){return this.m_value=t.m_value-i.m_value,this.m_eps=t.m_eps+i.m_eps+l.ulp(this.m_value),this}setSub(t,i){return this.m_value=t-i,this.m_eps=l.ulp(this.m_value),this}setSubEN(t,i){return this.m_value=t.m_value-i,this.m_eps=t.m_eps+l.ulp(this.m_value),this}setSubNE(t,i){return this.m_value=t-i.m_value,this.m_eps=i.m_eps+l.ulp(this.m_value),this}mulThisE(t){let i=this.m_value*t.m_value;return this.m_eps=this.m_eps*Math.abs(t.m_value)+t.m_eps*Math.abs(this.m_value)+this.m_eps*t.m_eps+l.ulp(i),this.m_value=i,this}mulThis(t){let i=this.m_value*t;return this.m_eps=this.m_eps*Math.abs(t)+l.ulp(i),this.m_value=i,this}mul(t){return this.clone().mulThis(t)}mulE(t){return this.clone().mulThisE(t)}setMulE(t,i){let s=t.m_value*i.m_value;return this.m_eps=t.m_eps*Math.abs(i.m_value)+i.m_eps*Math.abs(t.m_value)+t.m_eps*i.m_eps+l.ulp(s),this.m_value=s,this}setMul(t,i){return this.m_value=t*i,this.m_eps=l.ulp(this.m_value),this}setMulEN(t,i){return this.setE(t),this.mulThis(i)}setMulNE(t,i){return this.setE(i),this.mulThis(t)}mulThisByPower2(t){return this.m_value*=t,this.m_eps*=Math.abs(t),this}static st_mulByPower2(t,i){return new l(t.m_value,t.m_eps).mulThisByPower2(i)}divE(t){return this.clone().divThisE(t)}divThisE(t){let i=Math.abs(t.m_value),s=this.m_value/t.m_value,e=(this.m_eps+Math.abs(s)*t.m_eps)/i;if(t.m_eps>.01*i){let s=t.m_eps/i;e*=1+(1+s)*s}return this.m_value=s,this.m_eps=e+l.ulp(s),this}divThis(t){let i=Math.abs(t);return this.m_value/=t,this.m_eps=this.m_eps/i+l.ulp(this.m_value),this}setDivE(t,i){return this.setE(t),this.divThisE(i)}setDiv(t,i){return this.m_value=t/i,this.m_eps=l.ulp(this.m_value),this}setDivEN(t,i){return this.setE(t),this.divThis(i)}setDivNE(t,i){return this.set(t),this.divThisE(i)}divThisByPower2(t){return this.m_value/=t,this.m_eps/=Math.abs(t),this}invThis(){return this.setE(_.clone().divThisE(this)),this}sqrt(){return this.clone().sqrtThis()}sqrtThis(){let t,i;return this.m_value>=0?(t=Math.sqrt(this.m_value),i=this.m_value>10*this.m_eps?.5*this.m_eps/t:this.m_value>this.m_eps?t-Math.sqrt(this.m_value-this.m_eps):Math.max(t,Math.sqrt(this.m_value+this.m_eps)-t),i+=l.ulp(t)):this.m_value<-this.m_eps?(t=NaN,i=NaN):(t=0,i=Math.sqrt(this.m_eps)),this.m_value=t,this.m_eps=i,this}sqr(){return this.clone().sqrThis()}sqrThis(){let t=this.m_value*this.m_value;return this.m_eps=2*this.m_eps*Math.abs(this.m_value)+this.m_eps*this.m_eps+l.ulp(t),this.m_value=t,this}setSin(t){let i=Math.sin(t.m_value),s=Math.cos(t.m_value);this.m_value=i;let e=Math.abs(i),n=Math.abs(t.value());return this.m_eps=(Math.abs(s)+.5*e*t.m_eps)*t.m_eps+l.ulp(e+n),this}static ulp(t){let i=Ut(t),s=((9218868437227405312n&i)>>52n)-1075n;return s>-1023n?(i=s+1023n<<52n,function(t){return kt[0]=t,Ft[0]}(i)):0===t?0:Number.MIN_VALUE}setCos(t){let i=Math.sin(t.m_value),s=Math.cos(t.m_value);this.m_value=s;let e=Math.abs(s),n=Math.abs(t.value());return this.m_eps=(Math.abs(i)+.5*e*t.m_eps)*t.m_eps+l.ulp(e+n),this}static st_cosAndSin(t,i,s){let e=Math.sin(t.m_value),n=Math.cos(t.m_value);s.m_value=e,i.m_value=n;let r=Math.abs(e),h=Math.abs(n),u=Math.abs(t.value());s.m_eps=(Math.abs(n)+.5*r*t.m_eps)*t.m_eps+l.ulp(r+u),i.m_eps=(Math.abs(e)+.5*h*t.m_eps)*t.m_eps+l.ulp(h+u)}negate(){return this.clone().negateThis()}negateThis(){return this.m_value=-this.m_value,this}setAbs(){return this.m_value=Math.abs(this.m_value),this}isInInterval(t){return m.construct(this.m_value-this.m_eps,this.m_value+this.m_eps).isIntersecting(t)}isInIntervalExclusive(t){let i=t.vmin+this.m_eps,s=t.vmax-this.m_eps;return i<this.m_value&&s>this.m_value}eq(t){return Math.abs(this.m_value-t.m_value)<=this.m_eps+t.m_eps}ne(t){return!this.eq(t)}gt(t){return this.m_value-t.m_value>this.m_eps+t.m_eps}lt(t){return t.m_value-this.m_value>this.m_eps+t.m_eps}ge(t){return!this.lt(t)}le(t){return!this.gt(t)}tolEQ(t,i){return Math.abs(this.m_value-t.m_value)<=i||this.eq(t)}tolNE(t,i){return!this.tolEQ(t,i)}tolGT(t,i){return this.m_value-t.m_value>i&&this.gt(t)}tolLT(t,i){return t.m_value-this.m_value>i&&this.lt(t)}tolGE(t,i){return!this.tolLT(t,i)}tolLE(t,i){return!this.tolGT(t,i)}isZero(){return Math.abs(this.m_value)<=this.m_eps}isFuzzyZero(){return this.isZero()&&0!==this.m_eps}tolIsZero(t){return Math.abs(this.m_value)<=Math.max(this.m_eps,t)}setPi(){this.setE(d)}setEuler(){this.set(2.718281828459045,2**-52)}static dimensions=1;static size(){return 1}}function x(t,i){let s=Yt(t),e=Yt(i),n=53-a(s),r=53-a(e);return(n>=0?n:0)+(r>=0?r:0)<=52}function c(t,i){let s=t+i;return s-t===i&&s-i===t}function y(t,i){let s=t-i;return t-s===i&&i+s===t}const d=new l(Math.PI,2**-52*.5),v=new l(0,0),_=new l(1,0),f=new l(4,0);function p(t,i,s){return t.addE(i.subE(t).mulE(s))}function b(t,i,s){return i.subE(i.subE(t).mulE(_.subE(s)))}function N(t){let i;if(0===t)i=1;else if(Math.abs(t)>.01)i=function(t){return Math.atanh(t)}(t)/t;else{let s;i=0;let e=t*t;for(let t=2*Math.trunc(-36.841361487904734/Math.log(e)+2.5)-1;t>1;t-=2)s=1/t,i=(i+s)*e;i+=1}return i}function g(t){let i,s=Math.PI*Math.PI/6;if(1===t)i=s;else if(t>1)i=s;else if(0===t)i=t;else if(t<0){let s=1+(t=Math.abs(t)),e=Math.log(s);i=e*e/-2-g(t/s)}else if(t>.5){let e=1-t,n=Math.log(t)*Math.log(e);i=s-g(e)-n}else{i=0;let s=1+Math.trunc(-16*Math.log(10)/Math.log(t)+1.5),e=s;for(let n=s;n>0;n--,--e)i*=t,i+=1/(e*e);i*=t}return i}function E(t,i){let s=i*t;if(Math.abs(i)<.1){let i=0;for(let t=60;t>=1;t--)i*=s,i+=1/t/t;return i*=t,i}return g(s)/i}function M(t,i){return t<i?St(t,i):St(i,t)}function T(t,i){let s=Math.abs(t);return i>=0?s:-s}function w(t){return Math.round(t)}function D(t,i,s,e,n){n[0]=i[0]+(s[0]-i[0])*e,n[1]=i[1]+(s[1]-i[1])*e,3===t&&(n[2]=i[2]+(s[2]-i[2])*e)}function C(t,i,s,e,n){n[0]=s[0]-(s[0]-i[0])*(1-e),n[1]=s[1]-(s[1]-i[1])*(1-e),3===t&&(n[2]=s[2]-(s[2]-i[2])*(1-e))}function P(t,i,s,e,n){e<=.5?D(t,i,s,e,n):C(t,i,s,e,n)}function q(t,i,s,e,n){n[0]=i[0].addE(s[0].subE(i[0]).mulE(e)),n[1]=i[1].addE(s[1].subE(i[1]).mulE(e))}function I(t,i,s,e,n){n[0]=s[0].subE(s[0].subE(i[0]).mulE(_.subE(e))),n[1]=s[1].subE(s[1].subE(i[1]).mulE(_.subE(e)))}function A(t,i,s){let e;return e=s<=.5?t+(i-t)*s:i-(i-t)*(1-s),e}function z(t,i,s){return t+(i-t)*s}function S(t,i,s){return i-(i-t)*(1-s)}function L(t,i,s,e){s<=.5?(e.x=t.x+(i.x-t.x)*s,e.y=t.y+(i.y-t.y)*s):(e.x=i.x-(i.x-t.x)*(1-s),e.y=i.y-(i.y-t.y)*(1-s))}function R(t,i,s,e){s<=.5?(e.x=t.x+(i.x-t.x)*s,e.y=t.y+(i.y-t.y)*s,e.z=t.z+(i.z-t.z)*s):(e.x=i.x-(i.x-t.x)*(1-s),e.y=i.y-(i.y-t.y)*(1-s),e.z=i.z-(i.z-t.z)*(1-s))}function Z(t){return t*t}function B(t){return t*t*t}function G(t){return 1/Math.sqrt(t)}function F(t){return t<0?-1:+(t>0)}function k(t,i,s,e){let n=[0],r=[0],h=[0];return W(K(t,s,n),K(i,e,r),h)+(n[0]+r[0]+h[0])}const X=[0],U=[0];function Y(t,i,s){return function(t,i,s,e){return W(W(W(t,i,H),s,J),H[0]+J[0],e)}(K(t,i,X),s,X[0],U)}const O=[0],Q=[0],V=[0],j=[0];function K(t,i,s){let e=t*i;return $(t,O,Q),$(i,V,j),s[0]=Q[0]*j[0]-(e-O[0]*V[0]-Q[0]*V[0]-O[0]*j[0]),e}function $(t,i,s){let e=134217729*t;i[0]=e-(e-t),s[0]=t-i[0]}const H=[0],J=[0];function W(t,i,s){let e=t+i;return s[0]=Math.abs(t)>Math.abs(i)?t-e+i:i-e+t,e}function tt(t,i){return t%i}function it(t){let i,s=1-t;if(0===s)return 1;if(s<=.01){let t=s,e=Math.log(t);i=1+t*(.4431471805599453-.25*e+t*(.05680519270997949-.09375*e+t*(.02183137044373718-.05859375*e+t*(.011544521417308362-.042724609375*e+t*(.00714200031339596-.0336456298828125*e+t*(.004854743337164948-.027757644653320312*e+t*(.003514687963781376-.023627042770385742*e)))))))}else{if(t<.016){let i=t;return wi()*(1-i*(.25+i*(.046875+i*(.01953125+i*(.01068115234375+i*(.0067291259765625+i*(.004626274108886719+i*(.0033752918243408203+.0025710230693221092*i))))))))}i=nt(0,s,1)-t*rt(0,s,1)/3}return Ni(i,1,wi())}function st(t,i,s=NaN){if((0,e.g)(i>=0&&i<=1),0===i)return t;let n=1,r=t;if(r<0&&(r=-r,n=-1),1===i){let t=Math.round(r/Mi()),i=r-t*Mi();return n*(2*t+Math.sin(i))}let h=wi(),u=Math.floor(r/h);1&u?r=(u+1)*h-r:r-=u*h;let a,m=Math.sin(r),o=Number.isNaN(s)?it(i):s;if(1===m)a=o+Math.sqrt(1-i)*(r-h);else{let t=r*r;if(.01424*t**4<=2*2**-52)a=r*(1+t*i*(-1/6+t*((4-3*i)/120-(16+(45*i-60)*i)/5040*t)));else if(i<=.01){let t=Math.sin(2*r),s=Math.sin(4*r),e=Math.sin(6*r),n=Math.sin(8*r),h=Math.sin(10*r);a=r+i*((2*-r+t)/8+i*((-3*r+2*t-.25*s)/64+i*((-20*r+15*t-3*s+e/3)/1024+i*(5*(-140*r+112*t-28*s+16/3*e-.5*n)/65536+7*i*((-63*r+52.5*t-15*s+3.75*e-.625*n+.05*h)/65536+i*(-693*r+594*t-185.625*s+1.375*e-12.375*n+1.8*h-.125*Math.sin(12*r))/1048576)))))}else{let t=m*m,s=Math.cos(r),e=s*s,n=ht(m,s,i);a=m*(nt(e,n,1)-i*t*rt(e,n,1)/3)}}return 1&u?a=o*(u+1)-a:a+=o*u,n*a}function et(t,i,s=NaN){if(0===t)return 0;let e=1,n=t;t<0&&(n=-n,e=-1);let r=Number.isNaN(s)?it(i):s,h=Math.floor(n/r);1&h?n=(h+1)*r-n:n-=h*r;let u=n<=0?0:n>=r?wi():function(t,i,s){if(0===i)return t;if(1===i)return Math.asin(t);let e=0,n=!0;if(t<.2){let s=t*t,r=t*(1+s*i*(1/6+s*((13*i-4)/120+(16-284*i+493*i*i)/5040*s))),h=Math.abs(i*(4944*i-64-31224*i*i+37369*i*i*i)/362880*t**9);if(h<Math.abs(r)*2**-52)return r;e=r,n=h>.1*r}if(n){let n=1-i,r=1-t/s,h=Math.sqrt(r*r+n*n),u=Math.atan2(n,t+2**-52);e=wi()+Math.sqrt(h)*(u-wi())}let r=0;for(let n=0;n<7;n++){r=st(e,i,s);let h=ht(Math.sin(e),Math.cos(e),i);if(e-=(r-t)/Math.sqrt(h),n>0&&Math.abs(r-t)<=4*pi()*t)break}return e}(n,i,r);return 1&h?u=wi()*(h+1)-u:u+=wi()*h,e*u}function nt(t,i,s){(0,e.g)((0===t?0:1)+(0===i?0:1)+1>1);let n=t,r=i,h=s;for(;;){let t=Math.sqrt(n*r)+Math.sqrt(r*h)+Math.sqrt(h*n);n=.25*(n+t),r=.25*(r+t),h=.25*(h+t);let i=(n+r+h)/3,s=(i-n)/i,e=(i-r)/i,u=(i-h)/i;if(Math.abs(s)<=.0024&&Math.abs(e)<=.0024&&Math.abs(u)<=.0024){let t=s*e-u*u,n=s*e*u;return(1+(1/24*t-.1-3/44*n-5*t*t/208+t*n/16)*t+(1/14+3*n/104)*n)/Math.sqrt(i)}}}function rt(t,i,s){(0,e.g)(0!==t||0!==i);let r=t,h=i,u=s,a=new n(0),m=1;for(;;){let t=.2*(r+h+3*u),i=(t-r)/t,s=(t-h)/t,e=(t-u)/t;if(Math.abs(i)<=.0015&&Math.abs(s)<=.0015&&Math.abs(e)<=.0015){let n=i*s,r=e*e,h=n-r,u=n-6*r,o=u+h+h,l=3/26,x=u*(.10227272727272728*u-.21428571428571427-1.5*l*e*o),c=e*(.16666666666666666*o+e*(-.4090909090909091*h+e*l*n));return 3*a.getResult()+m*(1+x+c)/(t*Math.sqrt(t))}let n=Math.sqrt(r),o=Math.sqrt(h),l=Math.sqrt(u),x=n*(o+l)+o*l;a.add(m/(l*(u+x))),m*=.25,r=.25*(r+x),h=.25*(h+x),u=.25*(u+x)}}function ht(t,i,s){return t<.999?1-s*Z(t):1-s+s*Z(i)}const ut=new class{values;constructor(t){for(this.values=[[1]];this.values.length<t+1;){let t=this.values.at(-1),i=It(t.length+1,1);for(let s=1;s<t.length;++s)i[s]=t[s-1]+t[s];this.values.push(i)}}get(t,i){return this.values[t][i]}}(32);function at(t,i){if(t<ut.values.length)return ut.get(t,i);let s=Math.exp(((0,e.g)(0),0));return s+.01>2147483647&&(0,e.r)("The result value of n choose k is out of range"),s+.01}function mt(t,i){if(t.isZero())return t.clone();let s=t.clone().divThis(t);if(i<0)return s.divThis(mt(t,-i));for(t=t.clone(),i=Math.trunc(i);1&i&&s.mulThis(t),i>>=1;)t.mulThis(t);return s}function ot(t,i){if(0===i)return[];let s=t[0].clone().mulDoubleThis(0),e=[];e.length=i;let n=i-1;for(let i=0;i<=n;++i){e[i]=s.clone();for(let s=0;s<=i;++s)e[i].addThis(t[s].clone().mulDoubleThis(at(i,s)/at(n,s)))}return e}function lt(t,i,s,n,r){return 0===t?0===n?i:1===n?s:r:1===t?0===n?i:1===n?s:A(i,s,n):(2===t&&(0,e.t)("angular interpolation"),void(0,e.t)(""))}function xt(t,i,s,n,r,h,u,a){if(0===t)for(let t=0;t<h;++t)n[t+r]=0===u?i[t]:1===u?s[t]:a;else if(1===t)if(0===u)ct(n,i,r,0,h);else if(1===u)ct(n,s,r,0,h);else for(let t=0;t<h;++t)n[t+r]=A(i[t],s[t],u);else if(2===t)if(0===u)ct(n,i,r,0,h);else if(1===u)ct(n,s,r,0,h);else{let t=0;for(let e=0,a=r;e<h;++e,++a)n[a]=A(i[e],s[e],u),t+=n[a]*n[a];if(t>0){t=Math.sqrt(t);for(let i=r;i<r+h;++i)n[i]/=t}else{for(let t=r;t<r+h;++t)n[t]=0;n[r]=1}}else(0,e.t)("")}function ct(t,i,s,e,n){if(0===n)return;let r=0,h=s,u=e;for(;r++<n;)t[h++]=i[u++]}function yt(t,i,s){let e=0;for(let n=0;!e&&n<s;++n)e=t[n]-i[n];return e}function dt(t,i){return t}function vt(t){t.sort((t,i)=>t<i?-1:+(t>i))}function _t(t,i){let s=t.slice(0,i);vt(s),ct(t,s,0,0,i)}function ft(t,i,s,e){let n=t.slice(i,i+s);n.sort(e),ct(t,n,i,0,s)}function pt(t,i){return t<i?-1:+(t>i)}function bt(t,i,s,e){return t<s?-1:t>s?1:i<e?-1:+(i>e)}function Nt(t,i){if(t.length<2)return t.length;let s=0;for(let e=1;e<t.length;++e)i(t[e],t[s])||(s++,t[e]=dt(t[s],t[s]=t[e]));return 1+s}function gt(t,i){t[i]=t.at(-1),t.pop()}function Et(t,i=!1){return{[Symbol.dispose](){this.bForget||t()},bForget:i}}function Mt(t,i,s){t.length=i,t.fill(s)}function Tt(t,i,s){t.length=s;for(let e=0;e<s;++e)t[e]=new i}function wt(t,i){let s=Array(i);for(let e=0;e<i;++e)s[e]=new t;return s}function Dt(t,i,s){for(let e=0;e<s;++e)t[e].assign(i[e]);return s}function Ct(t,i){let s=t.slice(0,i);for(let t=0;t<i;++t)s[t]=s[t].clone();return s}function Pt(t){return Array.from({length:t},()=>null)}function qt(t,i){return Array.from({length:i},()=>t())}function It(t,i){let s=Array(t);return s.fill(i),s}function At(t,i){return i in t&&1===Object.getOwnPropertyNames(t).length}class zt{m_elts;constructor(...t){this.m_elts=t}get length(){return this.m_elts.length}at(t){return this.m_elts[t]}[Symbol.dispose](){for(let t of this.m_elts)t[Symbol.dispose]()}}function St(t,i){return{first:t,second:i}}const Lt=Math.PI,Rt=2*Math.PI,Zt=.5*Math.PI;class Bt{m_cr;m_cc;m_v;constructor(t,i){this.m_cr=t,this.m_cc=i,this.m_v=It(t*i,0)}get(t,i){return this.m_v[t*this.m_cc+i]}set(t,i,s){this.m_v[t*this.m_cc+i]=s}inc(t,i){return++this.m_v[t*this.m_cc+i]}}const Gt=new ArrayBuffer(8),Ft=new Float64Array(Gt),kt=new BigUint64Array(Gt);function Xt(){return 2**-52*di}function Ut(t){return Ft[0]=t,kt[0]}function Yt(t){return 4503599627370495n&Ut(t)}function Ot(t){return Number((9218868437227405312n&Ut(t))>>52n)}function Qt(t){if(0n===t)return-1n;if(1n===t||-1n===t)return 0n;t<0n&&(t=-t);let i=0n,s=512n,e=1n<<i+s;for(;t>=e;)i+=s,s<<=1n,e<<=s;let n=i;s>>=1n;let r=n+s;for(;s>0n;)t<1n<<r||(n=r),s>>=1n,r=n+s;return n}function Vt(t,i){return t===i||Number.isNaN(t)&&Number.isNaN(i)}function jt(t,i,s){return t===i||Math.abs(t-i)<=s||Number.isNaN(t)&&Number.isNaN(i)}function Kt(t,i){return t<i?-1:+(t>i)}function $t(t,i){if(t<i)return-1;if(t>i)return 1;if(t===i)return 0;{let s=Number.isNaN(t),e=Number.isNaN(i);return s<e?-1:+(s>e)}}function Ht(){return 2147483647}function Jt(){return 32767}function Wt(){return 2147483647}function ti(){return-2147483648}const ii=2147483647,si=BigInt(ii),ei=2166136261,ni=16777619,ri=1099511628211n;function hi(t){let i=ei;for(let s=0,e=t.length;s<e;++s)i=(i^t.charCodeAt(s))*ni;return i&ii}function ui(t,i){return i+2654435769+(t<<6)+(t>>2)&ii}function ai(t,i){return ui(t,xi(i))}function mi(t){return ui(3735928559,t)}function oi(t,i){return ui(t,mi(i))}function li(t){return function(t){let i=ei,s=t;return i=(i^255&s)*ni,s>>=8,i=(i^255&s)*ni,s>>=8,i=(i^255&s)*ni,s>>=8,i=(i^255&s)*ni,i&ii}(t)}function xi(t){return Number(function(t){let i=14695981039346656037n,s=t;return i=(i^255n&s)*ri,s>>=8n,i=(i^255n&s)*ri,s>>=8n,i=(i^255n&s)*ri,s>>=8n,i=(i^255n&s)*ri,s>>=8n,i=(i^255n&s)*ri,s>>=8n,i=(i^255n&s)*ri,s>>=8n,i=(i^255n&s)*ri,i&si}(t))}function ci(t){return xi(Ut(function(t){return Pi(t)}(t)))}function yi(t){return function(t){return 1103515245*t+12345&2147483647}(t)}const di=100;function vi(){return 2**-52*100}function _i(){return.38196601125010515}function fi(){return 1.4142135623730951}function pi(){return 2**-52}function bi(t,i,s){return t===i||t===s}function Ni(t,i,s){return t>=i?t<=s?t:s:i}function gi(t,i,s){let e=t[0];if(e>=i){if(e<=s)return!1;t[0]=s}else t[0]=i;return!0}function Ei(t,i){return t>=i?i:t<-i?-i:t}function Mi(){return Lt}function Ti(){return Rt}function wi(){return Zt}const Di=3*wi();function Ci(){return Di}function Pi(t){return t+0}function qi(t){return{v:t}}class Ii{static s_sm=9223372036854775808n;static s_em=9218868437227405312n;static s_fm=4503599627370495n;static s_emax=2047n;m_rn=qi(0n);m_rd=qi(1n);m_bNaN=!1;m_bNormalized=!1;m_power=0;m_sign=0;static constructAssign(t,i){let s=t.clone();return void 0!==i&&s.limitPrecisionThis(i),s}static constructDouble(t){return(new Ii).setDouble(t)}static constructInt64(t){return(new Ii).setInt64(t)}static constructRational(t,i){return(new Ii).setRational(t,i)}static constructInt32(t){return this.constructInt64(BigInt(Math.trunc(t)))}[Symbol.toPrimitive](t){return this}compare(t){return this.lt(t)?-1:+!!this.gt(t)}assignCopy(t){return this.setThis(t)}abs(){return this.clone().absThis()}absThis(){return this.isNAN()||(this.m_sign*=this.m_sign),this}clone(){return(new Ii).setThis(this)}setThis(t){return this.m_bNaN=t.m_bNaN,this.m_bNormalized=t.m_bNormalized,this.m_rn.v=t.m_rn.v,this.m_rd.v=t.m_rd.v,this.m_power=t.m_power,this.m_sign=t.m_sign,this}setZero(){return this.m_rn.v=0n,this.m_rd.v=1n,this.m_bNaN=!1,this.m_power=0,this.m_bNormalized=!0,this.m_sign=0,this}setDouble(t){if(this.setZero(),0===t)return this;if(Number.isInteger(t)&&Math.abs(t)<2147483647)return this.setInt32(t);let i=Ut(t),s=(i&Ii.s_em)>>52n,n=!!(i&Ii.s_sm),r=i&Ii.s_fm;if(s===Ii.s_emax)return r?(this.m_rn.v=this.m_rd.v=0n,this.m_bNaN=!0,this):(this.m_rn.v=n?-1n:1n,this.m_rd.v=0n,this);0n===s&&(0,e.t)("denormalized numbers not yet implemented");let h=s-1023n,u=h>=0n?h:0n,a=h<0n?-h:0n;return this.m_rn.v=(1n<<52n|r)<<u,this.m_rd.v=1n<<52n+a,this.m_sign=n?-1:1,this.m_bNormalized=!1,this.normalizeThis()}setInt64(t){return 0n===t?this.setZero():(this.m_bNaN=!1,this.m_sign=t>0n?1:-1,this.m_rn.v=t>0n?t:-t,this.m_rd.v=1n,this.m_power=0,this.m_bNormalized=!1,this.normalizeThis())}setRational(t,i){return 0n===t?0n===i?this.setNAN():this.setZero():0n===i?t>0n?this.setPositiveInf():this.setNegativeInf():(this.m_sign=(t>0n?1:-1)*(i>0n?1:-1),this.m_rn.v=t>0n?t:-t,this.m_rd.v=i>0n?i:-i,this.m_power=0,this.m_bNormalized=!1,this.normalizeThis())}setInt32(t){return this.setInt64(BigInt(Math.trunc(t)))}getDouble(){return this.convertToDouble()}toDouble(){return this.convertToDouble()}value(){return this.convertToDouble()}isNAN(){return this.m_bNaN}isPositiveInf(){return!this.isNAN()&&0n===this.m_rd.v&&1===this.m_sign}isNegativeInf(){return!this.isNAN()&&0n===this.m_rd.v&&-1===this.m_sign}isFinite(){return!this.isNAN()&&0n!==this.m_rd.v}setNAN(){return this.m_bNaN=!0,this.m_rn.v=0n,this.m_rd.v=0n,this.m_power=0,this.m_bNormalized=!0,this}setPositiveInf(){return this.m_rn.v=1n,this.m_rd.v=0n,this.m_bNaN=!1,this.m_bNormalized=!0,this.m_sign=1,this.m_power=0,this}setNegativeInf(){return this.m_rn.v=1n,this.m_rd.v=0n,this.m_bNaN=!1,this.m_bNormalized=!0,this.m_sign=-1,this.m_power=0,this}subThis(t){if(t.isNAN()&&this.setNAN(),this.isPositiveInf()&&t.isPositiveInf())this.setNAN();else{if(this.isPositiveInf()&&t.isNegativeInf())return this.setPositiveInf(),this;if(this.isNegativeInf()&&t.isNegativeInf())this.setNAN();else if(this.isNegativeInf()&&t.isPositiveInf())return this.setNegativeInf(),this}return this.isNAN()?this:this.opPlusMinus(t,!1)}thisSubAbs(t){return(0,e.g)(0),this}mulThis(t){return t.isNAN()&&this.setNAN(),this.isNAN()?this:(this.m_sign*=t.m_sign,0===this.m_sign?this.setZero():(this.m_rn.v*=t.m_rn.v,this.m_rd.v*=t.m_rd.v,this.m_power+=t.m_power,this.m_bNormalized=!1,this.normalizeThis(),this))}mulDoubleThis(t){return this.mulThis(Ii.constructDouble(t))}thisMulInt64(t){return(0,e.g)(0),this}thisMulInt32(t){return(0,e.g)(0),this}divThis(t){return this.mulThis(t.clone().invertThis())}divDoubleThis(t){return this.divThis(Ii.constructDouble(t))}addDoubleThis(t){return this.addThis(Ii.constructDouble(t))}subDoubleThis(t){return this.subThis(Ii.constructDouble(t))}mul(t){return this.clone().mulThis(t)}mulBigIntThis(t){return this.mulThis(Ii.constructInt64(t))}mulDouble(t){return this.clone().mulThis(Ii.constructDouble(t))}div(t){return this.clone().divThis(t)}divDouble(t){return this.clone().divDoubleThis(t)}add(t){return this.clone().addThis(t)}fmSubThis(t,i){return this.subThis(t.clone().mulThis(i))}fmAddThis(t,i){return this.addThis(t.clone().mulThis(i))}addThis(t){if(t.isNAN()&&this.setNAN(),this.isPositiveInf()&&t.isPositiveInf())return this.setPositiveInf(),this;if(this.isPositiveInf()&&t.isNegativeInf())this.setNAN();else{if(this.isNegativeInf()&&t.isNegativeInf())return this.setNegativeInf(),this;this.isNegativeInf()&&t.isPositiveInf()&&this.setNAN()}return this.isNAN()?this:this.opPlusMinus(t,!0)}addDouble(t){return this.clone().addThis(Ii.constructDouble(t))}sub(t){return this.clone().subThis(t)}subDouble(t){return this.clone().subThis(Ii.constructDouble(t))}isZero(){return 0===this.m_sign}equals(t){return this.clone().subThis(t).isZero()}lt(t){return!(this.isNAN()||t.isNAN()||this.isPositiveInf()&&t.isPositiveInf()||this.isNegativeInf()&&t.isNegativeInf()||this.isPositiveInf())&&(!!t.isPositiveInf()||this.clone().sub(t).LZ())}absLessAbs(t){return this.abs().lt(t.abs())}gt(t){return this.clone().sub(t).GZ()}lte(t){return this.sub(t).LEZ()}gte(t){return this.sub(t).GEZ()}normalizeThis(){if(this.m_bNormalized)return this;if(0n===this.m_rn.v)return this.setZero();let t=0,i=4294967295n;for(;0n===(this.m_rn.v&i)&&i<=this.m_rn.v;)i<<=32n,t+=32;i&=this.m_rn.v,i>>=BigInt(t),t+=u(BigInt.asUintN(32,i))-1;let s=0;for(i=4294967295n;0n===(this.m_rd.v&i)&&i<=this.m_rd.v;)i<<=32n,s+=32;return i&=this.m_rd.v,i>>=BigInt(s),s+=u(BigInt.asUintN(32,i))-1,this.m_rn.v>>=BigInt(t),this.m_rd.v>>=BigInt(s),this.m_power+=t-s,this.m_rn.v>1n&&this.m_rd.v>1n&&(this.m_rn.v%this.m_rd.v===0n?(this.m_rn.v/=this.m_rd.v,this.m_rd.v=1n):this.m_rd.v%this.m_rn.v===0n&&(this.m_rd.v/=this.m_rn.v,this.m_rn.v=1n)),this.m_bNormalized=!0,this}negateThis(){return this.isNAN()||(this.m_sign*=-1),this}negate(){return this.clone().negateThis()}invertThis(){return this.isNAN()?this:this.isPositiveInf()||this.isNegativeInf()?(this.setZero(),this):0n===this.m_rn.v?(this.setPositiveInf(),this):(this.m_rd=dt(this.m_rn,this.m_rn=this.m_rd),this.m_power=-this.m_power,this)}limitPrecisionThis(t){if(0===t)return this;if(this.isZero())return this.setZero();if(!this.isFinite())return this;this.normalizeThis();let i=Number(Qt(this.m_rn.v));if(i>t){let s=i-t;this.m_rn.v>>=BigInt(i-t),this.m_power+=s}if(i=Number(Qt(this.m_rd.v)),i>t){let s=i-t;this.m_rd.v>>=BigInt(i-t),this.m_power-=s}return this}hiBitIndex(){return Math.max(Number(Qt(this.m_rn.v)),Number(Qt(this.m_rd.v)))}ldexp(t){return this.clone().ldexpThis(t)}ldexpThis(t){return t&&(this.m_bNormalized=!1,this.m_power+=t,this.normalizeThis()),this}static lerp(t,i,s){return Ii.lerpLo(i,i,s)}static lerpLo(t,i,s){return i.sub(t).mulThis(s).addThis(t)}static lerpHi(t,i,s){return i.sub(t).mulThis(Ai.sub(s)).addThis(t)}LZ(){return!this.isNAN()&&-1===this.m_sign}GZ(){return!this.isNAN()&&1===this.m_sign}LEZ(){return!this.isNAN()&&this.m_sign<=0}GEZ(){return!this.isNAN()&&this.m_sign>=0}toString(){return this.toDouble().toString()}sqr(){return this.clone().sqrThis()}sqrThis(){return this.mulThis(this.clone())}static sqrt(t,i){if(t.m_sign<0n&&(0,e.r)("MP_value: sqrt(-1)"),t.isZero())return t.clone();let s=52,n=2220446049250313e-31;for(;s<i;)2*s<=i?(n*=n,s*=2):(n*=2220446049250313e-31,s+=52);s+=52;let r,h=Qt(t.m_rn.v),u=Qt(t.m_rd.v),a=t.m_power+Number(h-u),m=new Ii;Math.abs(a)>200?(1&Math.abs(a)&&(a+=1),r=Ii.constructAssign(t,53).ldexpThis(-a).value(),m.setThis(t).ldexpThis(-a),(0,e.g)(Number.isFinite(r))):(m.setThis(t),r=m.value(),(0,e.g)(Number.isFinite(r)),a=0),r=Math.sqrt(r);let o=Ii.constructDouble(r),l=Ii.constructDouble(n);l.mulThis(o).ldexpThis(1);let x,c=n*r*2,y=o.clone(),d=new Ii;for(let t=0;t<10;++t){y.mulThis(o),d.setThis(m).subThis(y).absThis();let t=d.value();if(x=1,t<.9)for(;t>c;)t*=t,++x;else x=4;if(d.lte(l))break;for(let t=0;t<x;t++)y.setThis(o).divThis(m).invertThis().addThis(o).ldexpThis(-1).limitPrecisionThis(s),o.setThis(y)}return o.ldexpThis(a/2)}static cubicRoot(t,i){if(t.isZero())return t.clone();let s=52,e=2220446049250313e-31;for(;s<i;)2*s<=i?(e*=e,s*=2):(e*=2220446049250313e-31,s+=52);s+=52;let n=Math.abs(t.value())**(1/3),r=Ii.constructDouble(n),h=r.clone();h.sqrThis().mulDoubleThis(3).mulDoubleThis(e),h.limitPrecisionThis(32),t.LZ()&&r.negateThis();for(let i=0;i<10;++i){let i=r.clone();i.sqrThis().mulThis(r);let e=i.clone();if(e.subThis(t),e.absThis().limitPrecisionThis(32),e.lte(h))break;e.setThis(t),e.ldexpThis(1),e.addThis(i);let n=i.clone();n.ldexpThis(1),n.addThis(t),e.divThis(n),r.mulThis(e),r.limitPrecisionThis(s)}return r}isInTheRangeOfDouble(){return(0,e.g)(0),!1}sign(){return this.m_sign}cosAndSin(t,i){(0,e.g)(0)}pow(t){return mt(this,t)}static nan(){return(0,e.g)(0),new Ii}convertToDouble(){if(this.m_bNaN)return NaN;if(this.isZero())return 0;if(0n===this.m_rd.v)return 1===this.m_sign?1/0:-1/0;let t=-1===this.m_sign,i=this.m_rn.v<<(this.m_power>=0?BigInt(this.m_power):0n),s=this.m_rd.v<<(this.m_power<0?BigInt(-this.m_power):0n),e=i/s,n=Number(e);if(BigInt(n)!==e)return t?-n:n;let r=i-e*s;if(r){let t=Qt(s)-1023n;t>0n&&(s>>=t,r<<=52n,r>>=t);let i=Number(r);Number.isFinite(i)||(r>>=52n,i=Number(r),t=0n),t>0n&&(i/=2**52),n+=i/Number(s)}return t?-n:n}signVal(){return 1===this.m_sign?1n:-1===this.m_sign?-1n:0n}opPlusMinus(t,i){let s,e,n=Math.min(this.m_power,t.m_power);this.m_power>n?(s=BigInt(this.m_power-n),e=0n):(s=0n,e=BigInt(t.m_power-n));let r=this.signVal()*this.m_rn.v*t.m_rd.v<<s,h=t.signVal()*t.m_rn.v*this.m_rd.v<<e;return this.m_rn.v=i?r+h:r-h,this.m_rd.v*=t.m_rd.v,this.m_power=n,this.m_sign=1,this.m_rn.v<0n&&(this.m_sign=-1,this.m_rn.v=-this.m_rn.v),this.m_bNormalized=!1,this.normalizeThis(),this}}const Ai=Ii.constructInt32(1),zi=Ii.constructInt32(0),Si=Ii.constructDouble(.5);function Li(t,i){let s=Ot(t),e=Ot(i);if(s===e){let e=53-function(t,i){return function(t){let i=0;return 18446744069414584320n&t&&(i=32,t>>=32n),i+function(t){let i=0;return 4294901760n&t&&(i+=16,t>>=16n),65280n&t&&(i+=8,t>>=8n),240n&t&&(i+=4,t>>=4n),i+h[Number(BigInt.asUintN(4,t))]+1}(t)}(t^i)}(Yt(t),Yt(i));return s-=e,s}return s>e?s:e}function Ri(t,i){for(let s=0,e=0,n=t.length;s<n;s+=2,e++)i[e].x=t[s],i[e].y=t[s+1]}function Zi(t){let i=new Float64Array(2*t.length);for(let s=0,e=t.length;s<e;++s){let e=s<<1;i[e]=t[s].x,i[e+1]=t[s].y}return i}function Bi(t){let i=wt(Gi,t.length);for(let s=0,e=t.length;s<e;++s)i[s].setCoords(t[s][0],t[s][1]);return i}class Gi{static dimensions=2;x;y;static d=[[0,1,0,-1],[-1,0,1,0],[0,-1,0,1],[1,0,-1,0]];static construct(t,i){return new Gi(t,i)}constructor(t,i){void 0!==t?(this.x=t,this.y=i):this.x=this.y=NaN}clone(){return new Gi(this.x,this.y)}assign(t){this.setCoordsPoint2D(t)}setCoords(t,i){return this.x=t,this.y=i,this}setCoordsPoint2D(t){this.x=t.x,this.y=t.y}isEqualPoint2D(t,i){return void 0===i?this.x===t.x&&this.y===t.y:Math.abs(this.x-t.x)<=i&&Math.abs(this.y-t.y)<=i}isEqual(t,i,s){return void 0===s?this.x===t&&this.y===i:Math.abs(this.x-t)<=s&&Math.abs(this.y-i)<=s}equalsPoint2D(t,i){return this.isEqualPoint2D(t,i)}setSub(t,i){this.x=t.x-i.x,this.y=t.y-i.y}addThis(t){return this.x+=t.x,this.y+=t.y,this}setAdd(t,i){return this.x=t.x+i.x,this.y=t.y+i.y,this}absoluteOther(t){}absolute(){return(0,e.g)(0),this}setNegate(){this.x=-this.x,this.y=-this.y}setNegateOther(t){this.x=-t.x,this.y=-t.y}interpolateThis(t,i){}interpolate(t,i,s){(0,e.g)(0)}scaleAddThis(t,i){this.x=this.x*t+i.x,this.y=this.y*t+i.y}setScaleAdd(t,i,s){this.x=i.x*t+s.x,this.y=i.y*t+s.y}scaleOther(t,i){(0,e.g)(0)}scale(t){this.x*=t,this.y*=t}compare(t){return this.y<t.y?-1:this.y>t.y?1:this.x<t.x?-1:+(this.x>t.x)}compareX(t){return this.x<t.x?-1:this.x>t.x?1:this.y<t.y?-1:+(this.y>t.y)}normalizeOther(t){(0,e.g)(0)}normalize(){let t=this.length();return t?(this.x/=t,this.y/=t):(this.x=1,this.y=0),this}getUnitVector(){return this.clone().normalize()}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}sqrLength(){return this.x*this.x+this.y*this.y}static averageFast(t,i){return(0,e.g)(0),{}}static average(t,i){let s=new Gi;if(0===i)return s.setNAN(),s;if(1===i)return s.assign(t[0]),s;let e=new n(t[0].x),r=new n(t[0].y);for(let s=1;s<i;s++)e.add(t[s].x),r.add(t[s].y),255&s||(e.normalize(),r.normalize());return s.x=e.getResult()/i,s.y=r.getResult()/i,s}static calculateLength(t,i){let s=new n(0);for(let e=1;e<i;e++)s.add(Gi.distance(t[e],t[e-1]));return s.getResult()}offset(t,i){let s=Gi.distance(t,i),e=Gi.construct(this.x,this.y);if(0===s)return Gi.distance(e,t);let n=i.clone();return n.subThis(t),e.subThis(t),e.crossProduct(n)/s}side(t,i){return t.equals(i)?+!this.equals(t):Gi.orientationRobust(i,t,this)}static sqrDistance(t,i){let s=t.x-i.x,e=t.y-i.y;return s*s+e*e}static sqrDistanceCoords(t,i,s,e){let n=s-t,r=e-i;return n*n+r*r}static distance(t,i){return Math.sqrt(Gi.sqrDistance(t,i))}dotProduct(t){return this.x*t.x+this.y*t.y}dotProductAbs(t){return Math.abs(this.x*t.x)+Math.abs(this.y*t.y)}crossProduct(t){return this.x*t.y-this.y*t.x}crossProductAbs(t){return(0,e.g)(0),0}rotateDirect(t,i){let s=this.x*t-this.y*i,e=this.x*i+this.y*t;this.x=s,this.y=e}rotateReverse(t,i){let s=this.x*t+this.y*i,e=-this.x*i+this.y*t;this.x=s,this.y=e}leftPerpendicularThis(){let t=this.x;this.x=-this.y,this.y=t}leftPerpendicularOther(t){let i=t.x;this.x=-t.y,this.y=i}rightPerpendicularThis(){let t=this.x;this.x=this.y,this.y=-t}rightPerpendicularOther(t){let i=t.x;this.x=t.y,this.y=-i}equals(t){return this.x===t.x&&this.y===t.y}notequals(t){return this.x!==t.x||this.y!==t.y}not(){return!this.x&&!this.y}gt(t){return this.y>t.y||this.y===t.y&&this.x>t.x}gte(t){return!this.lt(t)}lt(t){return this.y<t.y||this.y===t.y&&this.x<t.x}lte(t){return!this.gt(t)}subThis(t){return this.x-=t.x,this.y-=t.y,this}divThis(t){return this.x/=t,this.y/=t,this}add(t){return new Gi(this.x+t.x,this.y+t.y)}sub(t){return new Gi(this.x-t.x,this.y-t.y)}negateThis(){return this.x=-this.x,this.y=-this.y,this}negate(){return new Gi(-this.x,-this.y)}mul(t){return new Gi(this.x*t,this.y*t)}mulThis(t){return this.x*=t,this.y*=t,this}divide(t){return new Gi(this.x/t,this.y/t)}setNAN(){this.x=this.y=NaN}isNAN(){return Number.isNaN(this.x)||Number.isNaN(this.y)}static getNAN(){return new Gi(NaN,NaN)}isFinite(){return Number.isFinite(this.x)&&Number.isFinite(this.y)}isZero(){return 0===this.x&&0===this.y}norm(t){switch(t){case 0:{let t=Math.abs(this.x),i=Math.abs(this.y),s=t-i;return s>=0?t:s<=0?i:NaN}case 1:return Math.abs(this.x)+Math.abs(this.y);case 2:return Math.sqrt(this.x*this.x+this.y*this.y);default:(0,e.a)("norm")}}getQuarter(){return Gi.getQuarterCoords(this.x,this.y)}static getQuarterCoords(t,i){return t>0?i>=0?1:4:i>0?2:0===t?4:3}static compareVectors(t,i){let s=t.getQuarter(),e=i.getQuarter();return e===s?Gi.orientationRobustImpl(Gi.construct(0,0),i,t,!0):s<e?-1:1}static compareVectorsOrigin(t,i,s){let e=i.sub(t),n=s.sub(t),r=e.getQuarter(),h=n.getQuarter();return h===r?Gi.orientationRobustImpl(t,s,i,!0):r<h?-1:1}static orientationRobust(t,i,s){return Gi.orientationRobustImpl(t,i,s,!1)}static orientationRobustEx(t,i,s,e){if(t.equals(i)||s.equals(e))return 0;let n=i.x-t.x,r=i.y-t.y,h=e.x-s.x,u=e.y-s.y;{let t=Gi.getQuarterCoords(n,r)-1,i=Gi.getQuarterCoords(h,u)-1,s=Gi.d[t][i];if(0!==s)return s}let a=n*u,m=r*h,o=4*2**-52*(Math.abs(a)+Math.abs(m)),l=a-m;return Math.abs(l)>=o?l<0?-1:+(l>0):Gi.orientationRobustExMp(t,i,s,e)}static orientationRobustExMp(t,i,s,e){let n=Ii.constructDouble(i.x),r=Ii.constructDouble(e.x);n.subThis(Ii.constructDouble(t.x)),r.subThis(Ii.constructDouble(s.x));let h=Ii.constructDouble(i.y),u=Ii.constructDouble(e.y);return h.subThis(Ii.constructDouble(t.y)),u.subThis(Ii.constructDouble(s.y)),n.mulThis(u),h.mulThis(r),n.subThis(h),n.LZ()?-1:+!!n.GZ()}static orientationNonRobust(t,i,s){let e=i.sub(t).crossProduct(s.sub(t));return e<0?-1:+(e>0)}static orientationRobustImpl(t,i,s,e){if(i.isEqualPoint2D(t)||s.isEqualPoint2D(t)||i.isEqualPoint2D(s))return 0;let n=i.x-t.x,r=i.y-t.y,h=s.x-t.x,u=s.y-t.y;if(!e){let t=Gi.getQuarterCoords(n,r)-1,i=Gi.getQuarterCoords(h,u)-1,s=Gi.d[t][i];if(0!==s)return s}let a=(Math.abs(n)+Math.abs(r)+Math.abs(h)+Math.abs(u))*(Math.abs(i.x)+Math.abs(i.y)+Math.abs(s.x)+Math.abs(s.y))*8*2**-52,m=n*u-r*h;if(Math.abs(m)>a)return m<0?-1:1;if(y(i.x,t.x)&&y(s.y,t.y)&&y(i.y,t.y)&&y(s.x,t.x)&&x(n,u)&&x(r,h)){let t=n*u,i=r*h;if(y(t,i)){let s=t-i;return s<0?-1:+(s>0)}}return Gi.orientationRobustMp(t,i,s)}static orientationRobustMp(t,i,s){let e=Ii.constructDouble(i.x),n=Ii.constructDouble(s.x);{let i=Ii.constructDouble(t.x);e.subThis(i),n.subThis(i)}let r=Ii.constructDouble(s.y),h=Ii.constructDouble(i.y);{let i=Ii.constructDouble(t.y);r.subThis(i),h.subThis(i)}return e.mulThis(r),h.mulThis(n),e.subThis(h),e.LZ()?-1:+!!e.GZ()}static inCircleRobust(t,i,s,e){let n=new l,r=new l;n.set(t.x),n.subThis(e.x),r.set(t.y),r.subThis(e.y);let h=new l,u=new l;h.set(i.x),h.subThis(e.x),u.set(i.y),u.subThis(e.y);let a=new l,m=new l;a.set(s.x),a.subThis(e.x),m.set(s.y),m.subThis(e.y);let o=n.mulE(u).subE(r.mulE(h)),x=h.mulE(m).subE(u.mulE(a)),c=n.mulE(m).subE(r.mulE(a)),y=n.mulE(n).addE(r.mulE(r)),d=h.mulE(h).addE(u.mulE(u)),v=a.mulE(a).addE(m.mulE(m)),_=y.mulE(x).subE(d.mulE(c)).addE(v.mulE(o));if(!_.isFuzzyZero()){let t=_.value();return t<0?-1:+(t>0)}return Gi.inCircleRobustMp(t,i,s,e)}static inCircleRobustMp(t,i,s,e){do{if(!(y(t.x,e.x)&&y(t.y,e.y)&&y(i.x,e.x)&&y(i.y,e.y)&&y(s.x,e.x)&&y(s.y,e.y)))break;let n=t.x-e.x,r=t.y-e.y,h=i.x-e.x,u=i.y-e.y,a=s.x-e.x,m=s.y-e.y;if(!(x(n,u)&&x(r,h)&&x(h,m)&&x(u,a)&&x(n,m)&&x(r,a)&&x(n,n)&&x(r,r)&&x(h,h)&&x(u,u)&&x(a,a)&&x(m,m)))break;let o=n*u,l=r*h,d=h*m,v=u*a,_=n*m,f=r*a,p=n*n,b=r*r,N=h*h,g=u*u,E=a*a,M=m*m;if(!(y(o,l)&&y(d,v)&&y(_,f)&&c(p,b)&&c(N,g)&&c(E,M)))break;let T=o-l,w=d-v,D=_-f,C=p+b,P=N+g,q=E+M;if(!x(C,w)||!x(P,D)||!x(q,T))break;let I=C*w,A=P*D,z=q*T;if(!y(I,A))break;let S=I-A;if(!c(S,z))break;let L=S+z;return L<0?-1:+(L>0)}while(0);let n=Ii.constructDouble(e.x),r=Ii.constructDouble(e.y),h=Ii.constructDouble(t.x),u=Ii.constructDouble(t.y);h.subThis(n),u.subThis(r);let a=Ii.constructDouble(i.x),m=Ii.constructDouble(i.y);a.subThis(n),m.subThis(r);let o=Ii.constructDouble(s.x),l=Ii.constructDouble(s.y);o.subThis(n),l.subThis(r);let d=h.mul(m).sub(u.mul(a)),v=a.mul(l).sub(m.mul(o)),_=h.mul(l).sub(u.mul(o)),f=h.mul(h).add(u.mul(u)),p=a.mul(a).add(m.mul(m)),b=o.mul(o).add(l.mul(l)),N=f.mul(v).sub(p.mul(_)).add(b.mul(d));return N.LZ()?-1:+!!N.GZ()}static inCircleRobustMp3Point(t,i,s){let e=Ii.constructDouble(t.x),n=Ii.constructDouble(t.y),r=Ii.constructDouble(i.x),h=Ii.constructDouble(i.y),u=Ii.constructDouble(s.x),a=Ii.constructDouble(s.y),m=u.mul(u).add(a.mul(a)).sub(u.mul(e).add(a.mul(n)).add(u.mul(r)).add(a.mul(h))).add(e.mul(r).add(n.mul(h)));return m.LZ()?-1:+!!m.GZ()}static inCircleRobust3Point(t,i,s){let e=new l(t.x),n=new l(t.y),r=new l(i.x),h=new l(i.y),u=new l(s.x),a=new l(s.y),m=u.mulE(u).addE(a.mulE(a)).subE(u.mulE(e).addE(a.mulE(n)).addE(u.mulE(r)).addE(a.mulE(h))).addE(e.mulE(r).addE(n.mulE(h)));if(!m.isFuzzyZero()){let t=m.value();return t<0?-1:+(t>0)}return Gi.inCircleRobustMp3Point(t,i,s)}static calculateCircleCenterFromThreePoints(t,i,s){if(t.equals(s)||t.equals(i)||s.equals(i))return Gi.getNAN();let e=function(t,i,s){let e=new l(i.x);e.subThis(t.x);let n=new l(i.y);n.subThis(t.y);let r=new l(s.x);r.subThis(t.x);let h=new l(s.y);h.subThis(t.y);let u=e.clone();u.mulThisE(h);let a=n.clone();if(a.mulThisE(r),u.subThisE(a),0===u.value())return Gi.getNAN();u.mulThis(2);let m=e.clone();m.mulThisE(e);let o=n.clone();o.mulThisE(n);let x=m.clone();x.addThisE(o);let c=r.clone();c.mulThisE(r);let y=h.clone();y.mulThisE(h);let d=c.clone();d.addThisE(y);let v=n.clone();v.mulThisE(d),a=h.clone(),a.mulThisE(x),v.subThisE(a),v.divThisE(u);let _=e.clone();_.mulThisE(d),a=r.clone(),a.mulThisE(x),_.subThisE(a),_.divThisE(u);let f=Gi.construct(t.x-v.value(),t.y+_.value()),p=t.sub(f).length(),b=i.sub(f).length(),N=s.sub(f).length(),g=1e-15*(p+Math.abs(t.x)+Math.abs(i.x)+Math.abs(s.x)+Math.abs(t.y)+Math.abs(i.y)+Math.abs(s.y));return Math.abs(p-b)<=g&&Math.abs(p-N)<=g&&v.eps()<g&&_.eps()<g?f:Gi.getNAN()}(t,i,s);return e.isNAN()?function(t,i,s){let e=Ii.constructDouble(i.x);e.subDoubleThis(t.x);let n=Ii.constructDouble(i.y);n.subDoubleThis(t.y);let r=Ii.constructDouble(s.x);r.subDoubleThis(t.x);let h=Ii.constructDouble(s.y);h.subDoubleThis(t.y);let u=e.clone();u.mulThis(h);let a=n.clone();if(a.mulThis(r),u.subThis(a),u.isZero())return Gi.getNAN();u.mulDoubleThis(2);let m=e.clone();m.mulThis(e);let o=n.clone();o.mulThis(n);let l=m.clone();l.addThis(o);let x=r.clone();x.mulThis(r);let c=h.clone();c.mulThis(h);let y=x.clone();y.addThis(c);let d=n.clone();d.mulThis(y),a=h.clone(),a.mulThis(l),d.subThis(a),d.divThis(u);let v=e.clone();return v.mulThis(y),a=r.clone(),a.mulThis(l),v.subThis(a),v.divThis(u),Gi.construct(t.x-d.value(),t.y+v.value())}(t,i,s):e}static calculateAngle(t,i){return Math.atan2(t.crossProduct(i),t.dotProduct(i))}static isBisectorRobust(t,i,s){return(0,e.g)(0),!1}static size(){return 2}get 0(){return this.x}get 1(){return this.y}set 0(t){this.x=t}set 1(t){this.y=t}static c_compare_zorder_xx=[2,0];static c_compare_zorder_yy=[1,0];static compareZorder(t,i){let s=Gi.c_compare_zorder_xx[+(t.x<0)]|Gi.c_compare_zorder_yy[+(t.y<0)],e=Gi.c_compare_zorder_xx[+(i.x<0)]|Gi.c_compare_zorder_yy[+(i.y<0)];if(s===e){let s=0,e=0;for(let n=0;n<2;++n){let r=Li(t[n],i[n]);r>s&&(s=r,e=n)}return t[e]<i[e]}return s<e}static lerp(t,i,s){let e=new Gi;return L(t,i,s,e),e}static getClosestCoordinate(t,i,s,e=!1){let n=Gi.getNAN();n.setSub(i,t);let r=n.sqrLength();if(0===r)return.5;if(i.isEqualPoint2D(s))return 1;let h=Gi.getNAN();h.setSub(s,t);let u=h.dotProduct(n)/r;return e||(u<0?u=0:u>1&&(u=1)),u}static intersectLinesAtOnePoint(t,i,s,e){if(t.equals(i)||s.equals(e))return Gi.getNAN();let n=i.x-t.x,r=s.x-e.x,h=i.y-t.y,u=s.y-e.y,a=n*u-r*h;if(!a)return Gi.getNAN();let m=a;if(0===m)return Gi.getNAN();let o=(s.x-t.x)*u-(s.y-t.y)*r;o/=m;let l=new Gi;return L(t,i,o,l),l.isFinite()?l:Gi.getNAN()}toString(){return`[${this.x},${this.y}]`}}s.d(i,["T",0,v,"a9",0,_,"aC",0,Lt,"aD",0,zi,"ad",0,o,"ae",0,Ai,"aq",0,f,"ar",0,Si,"k",0,1e16,"l",0,Zt,"n",0,Rt])}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9187],{79187(t,i,s){s.r(i),s.d(i,{Envelope2D:()=>r});var e=s(55537),n=s(83661);class r{m_EnvelopeType=2;xmin;ymin;xmax;ymax;static construct(t,i,s,e){return new r(t,i,s,e)}constructor(t,i,s,e){void 0===t?(this.xmin=NaN,this.ymin=NaN,this.xmax=NaN,this.ymax=NaN):"number"==typeof t?(this.xmin=t,this.ymin=i,this.xmax=s,this.ymax=e):(this.xmin=t.xmin,this.ymin=t.ymin,this.xmax=t.xmax,this.ymax=t.ymax),this.normalize()}static constructEmpty(){return new r(NaN,NaN,NaN,NaN)}clone(){return new r(this)}assign(t){return this.xmin=t.xmin,this.xmax=t.xmax,this.ymin=t.ymin,this.ymax=t.ymax,this}width(){return this.xmax-this.xmin}height(){return this.ymax-this.ymin}maxDimension(){return Math.max(this.width(),this.height())}minDimension(){return Math.min(this.width(),this.height())}sqrDiagonal(){let t=this.width(),i=this.height();return t*t+i*i}diagonal(){return Math.sqrt(this.sqrDiagonal())}getCenterX(){return.5*(this.xmin+this.xmax)}getCenterY(){return.5*(this.ymin+this.ymax)}getCenter(){return n.P.construct(this.getCenterX(),this.getCenterY())}queryCenter(t){t.x=.5*(this.xmin+this.xmax),t.y=.5*(this.ymin+this.ymax)}setEmpty(){this.xmin=NaN,this.ymin=NaN,this.xmax=NaN,this.ymax=NaN}setInfinite(){this.xmin=-1/0,this.xmax=1/0,this.ymin=-1/0,this.ymax=1/0}isDegenerate(t){return!this.isEmpty()&&(this.width()<=t||this.height()<=t)}isZero(){return!(this.isEmpty()||this.width()&&this.height())}isEmpty(){return Number.isNaN(this.xmin)||Number.isNaN(this.ymin)||Number.isNaN(this.xmax)||Number.isNaN(this.ymax)}mergeNeCoords(t,i){this.xmin>t?this.xmin=t:this.xmax<t&&(this.xmax=t),this.ymin>i?this.ymin=i:this.ymax<i&&(this.ymax=i)}mergeNe(t){this.mergeNeCoords(t.x,t.y)}mergeCoords(t,i){this.isEmpty()?(this.xmin=t,this.ymin=i,this.xmax=t,this.ymax=i):(this.xmin>t?this.xmin=t:this.xmax<t&&(this.xmax=t),this.ymin>i?this.ymin=i:this.ymax<i&&(this.ymax=i))}merge(t){this.mergeCoords(t.x,t.y)}mergeEnvelope2D(t){t.isEmpty()||(this.mergeCoords(t.xmin,t.ymin),this.mergeNeCoords(t.xmax,t.ymax))}mergePoints(t,i){for(let s=0;s<i;){if(!this.isEmpty()){for(let e=s;e<i;e++)this.mergeNe(t[e]);break}this.setCoords(t[s]),s++}}mergePointsInterleaved(t,i,s){for(let e=2*i,n=e+2*s;e<n;e+=2)this.mergeCoords(t.read(e),t.read(e+1))}inflateCoords(t,i){this.isEmpty()||(this.xmin-=t,this.xmax+=t,this.ymin-=i,this.ymax+=i,(this.xmin>this.xmax||this.ymin>this.ymax)&&this.setEmpty())}getInflatedCoords(t,i){let s=this.clone();return s.inflateCoords(t,i),s}inflate(t){this.inflateCoords(t,t)}getInflated(t){let i=this.clone();return i.inflateCoords(t,t),i}zoom(t,i){this.isEmpty()||this.setCoords({center:this.getCenter(),width:t*this.width(),height:i*this.height()})}scale(t){t<0&&this.setEmpty(),this.xmin*=t,this.xmax*=t,this.ymin*=t,this.ymax*=t}equals(t,i){return!(!this.isEmpty()||!t.isEmpty())||(i?Math.abs(this.xmin-t.xmin)<=i&&Math.abs(this.ymin-t.ymin)<=i&&Math.abs(this.xmax-t.xmax)<=i&&Math.abs(this.ymax-t.ymax)<=i:this.xmin===t.xmin&&this.ymin===t.ymin&&this.xmax===t.xmax&&this.ymax===t.ymax)}setCoords(t){void 0===t.xmin?void 0===t.x?void 0===t.pt1?void 0===t.env2D?void 0===t.pt?void 0===t.center?(0,e.a)("unrecognized input type for setCoords"):(this.xmin=t.center.x-.5*t.width,this.xmax=this.xmin+t.width,this.ymin=t.center.y-.5*t.height,this.ymax=this.ymin+t.height,this.normalize()):(this.xmin=t.pt.x,this.xmax=t.pt.x,this.ymin=t.pt.y,this.ymax=t.pt.y):(this.xmin=t.env2D.xmin,this.xmax=t.env2D.xmax,this.ymin=t.env2D.ymin,this.ymax=t.env2D.ymax,this.normalize()):(this.xmin=t.pt1.x,this.ymin=t.pt1.y,this.xmax=t.pt2.x,this.ymax=t.pt2.y,this.normalize()):(this.xmin=t.x,this.xmax=t.x,this.ymin=t.y,this.ymax=t.y):(this.xmin=t.xmin,this.xmax=t.xmax,this.ymin=t.ymin,this.ymax=t.ymax),this.normalize()}queryIntervalX(t){this.isEmpty()?t.setEmpty():t.setCoords(this.xmin,this.xmax)}queryIntervalY(t){this.isEmpty()?t.setEmpty():t.setCoords(this.ymin,this.ymax)}setFromPoints(t,i){if(0===i)return void this.setEmpty();if(Array.isArray(t)){let s=t;this.setCoords(s[0]);for(let t=1;t<i;){if(!this.isEmpty()){for(let e=t;e<i;e++)this.mergeNe(s[e]);return}this.setCoords(s[t]),t++}return}let s=t;this.setCoords({x:s[0],y:s[1]});for(let t=1,e=2*i;t<e;t+=2){if(!this.isEmpty()){for(let e=t,n=2*i;e<n;e+=2)this.mergeNeCoords(s[e],s[e+1]);return}this.setCoords({x:s[t],y:s[t+1]}),t+=2}}normalize(){let t=!1;this.xmin<=this.xmax||([this.xmin,this.xmax]=[this.xmax,this.xmin],t=!0),this.ymin<=this.ymax||([this.ymin,this.ymax]=[this.ymax,this.ymin],t=!0),!t||this.xmin<=this.xmax&&this.ymin<=this.ymax||this.setEmpty()}isValid(){return this.isEmpty()||this.xmin<=this.xmax&&this.ymin<=this.ymax}getLowerLeft(){return new n.P(this.xmin,this.ymin)}getLowerRight(){return new n.P(this.xmax,this.ymin)}getUpperLeft(){return new n.P(this.xmin,this.ymax)}getUpperRight(){return new n.P(this.xmax,this.ymax)}move(t,i){this.isEmpty()||(this.xmin+=t,this.ymin+=i,this.xmax+=t,this.ymax+=i)}centerAtCoords(t,i){this.move(t-this.getCenterX(),i-this.getCenterY())}centerAt(t){this.centerAtCoords(t.x,t.y)}containsCoords(t,i){return t>=this.xmin&&t<=this.xmax&&i>=this.ymin&&i<=this.ymax}contains(t){return this.containsCoords(t.x,t.y)}containsEnvelope(t){return t.xmin>=this.xmin&&t.xmax<=this.xmax&&t.ymin>=this.ymin&&t.ymax<=this.ymax}containsExclusiveCoords(t,i){return t>this.xmin&&t<this.xmax&&i>this.ymin&&i<this.ymax}containsExclusive(t){return this.containsExclusiveCoords(t.x,t.y)}containsExclusiveEnvelope(t){return t.xmin>this.xmin&&t.xmax<this.xmax&&t.ymin>this.ymin&&t.ymax<this.ymax}isIntersecting(t){return(this.xmin<=t.xmin?this.xmax>=t.xmin:t.xmax>=this.xmin)&&(this.ymin<=t.ymin?this.ymax>=t.ymin:t.ymax>=this.ymin)}isIntersectingNe(t){return(this.xmin<=t.xmin?this.xmax>=t.xmin:t.xmax>=this.xmin)&&(this.ymin<=t.ymin?this.ymax>=t.ymin:t.ymax>=this.ymin)}intersect(t){if(this.isEmpty())return!1;if(t.isEmpty())return this.setEmpty(),!1;t.xmin>this.xmin&&(this.xmin=t.xmin),t.xmax<this.xmax&&(this.xmax=t.xmax),t.ymin>this.ymin&&(this.ymin=t.ymin),t.ymax<this.ymax&&(this.ymax=t.ymax);let i=this.xmin<=this.xmax&&this.ymin<=this.ymax;return i||this.setEmpty(),i}queryCorner(t){switch(3&t){case 0:return new n.P(this.xmin,this.ymin);case 1:return new n.P(this.xmin,this.ymax);case 2:return new n.P(this.xmax,this.ymax);default:return new n.P(this.xmax,this.ymin)}}queryCorners(t){t[0].setCoords(this.xmin,this.ymin),t[1].setCoords(this.xmin,this.ymax),t[2].setCoords(this.xmax,this.ymax),t[3].setCoords(this.xmax,this.ymin)}queryCornersReversed(t){t[0].setCoords(this.xmin,this.ymin),t[1].setCoords(this.xmax,this.ymin),t[2].setCoords(this.xmax,this.ymax),t[3].setCoords(this.xmin,this.ymax)}reaspect(t,i){if(this.isEmpty())return;let s=t/i,e=.5*this.width(),n=.5*this.height()*s;if(e<=n){let t=this.getCenterX();this.xmin=t-n,this.xmax=t+n}else{let t=e/s,i=this.getCenterY();this.ymin=i-t,this.ymax=i+t}this.normalize()}getArea(){return this.isEmpty()?0:this.width()*this.height()}getLength(){return this.isEmpty()?0:2*(this.width()+this.height())}clipCode(t){return+(t.x<this.xmin)|(t.x>this.xmax)<<1|(t.y<this.ymin)<<2|(t.y>this.ymax)<<3}static XLESSXMIN=1;static YLESSYMIN=4;static XMASK=3;static YMASK=12;clipLine(t,i){let s=this.clipCode(t),e=this.clipCode(i);if(s&e)return 0;if(!(s|e))return 4;let n=!!s|(e?2:0);do{let n=i.x-t.x,h=i.y-t.y;if(Math.abs(n)>Math.abs(h)?s&r.XMASK?(s&r.XLESSXMIN?(t.y+=h*(this.xmin-t.x)/n,t.x=this.xmin):(t.y+=h*(this.xmax-t.x)/n,t.x=this.xmax),s=this.clipCode(t)):e&r.XMASK?(e&r.XLESSXMIN?(i.y+=h*(this.xmin-i.x)/n,i.x=this.xmin):(i.y+=h*(this.xmax-i.x)/n,i.x=this.xmax),e=this.clipCode(i)):s?(s&r.YLESSYMIN?(t.x+=n*(this.ymin-t.y)/h,t.y=this.ymin):(t.x+=n*(this.ymax-t.y)/h,t.y=this.ymax),s=this.clipCode(t)):(e&r.YLESSYMIN?(i.x+=n*(this.ymin-i.y)/h,i.y=this.ymin):(i.x+=n*(this.ymax-i.y)/h,i.y=this.ymax),e=this.clipCode(i)):s&r.YMASK?(s&r.YLESSYMIN?(t.x+=n*(this.ymin-t.y)/h,t.y=this.ymin):(t.x+=n*(this.ymax-t.y)/h,t.y=this.ymax),s=this.clipCode(t)):e&r.YMASK?(e&r.YLESSYMIN?(i.x+=n*(this.ymin-i.y)/h,i.y=this.ymin):(i.x+=n*(this.ymax-i.y)/h,i.y=this.ymax),e=this.clipCode(i)):s?(s&r.XLESSXMIN?(t.y+=h*(this.xmin-t.x)/n,t.x=this.xmin):(t.y+=h*(this.xmax-t.x)/n,t.x=this.xmax),s=this.clipCode(t)):(e&r.XLESSXMIN?(i.y+=h*(this.xmin-i.x)/n,i.x=this.xmin):(i.y+=h*(this.xmax-i.x)/n,i.x=this.xmax),e=this.clipCode(i)),s&e)return 0}while(s|e);return n}distanceFromEnvelope(t){return Math.sqrt(this.sqrDistanceEnvelope(t,null,null))}distance(t){return Math.sqrt(this.sqrDistance(t))}sqrDistanceEnvelope(t,i,s){if(!i&&!s){if(this.isEmpty()||t.isEmpty())return NaN;let i,s=0,e=0;return i=this.xmin-t.xmax,i>s&&(s=i),i=this.ymin-t.ymax,i>e&&(e=i),i=t.xmin-this.xmax,i>s&&(s=i),i=t.ymin-this.ymax,i>e&&(e=i),s*s+e*e}if(this.isEmpty()||t.isEmpty())return i&&i.setNAN(),s&&s.setNAN(),NaN;let e,n=0,r=0,h=Math.max(this.xmin,t.xmin),u=Math.max(this.ymin,t.ymin);return i&&i.setCoords(h,u),s&&s.setCoords(h,u),e=this.xmin-t.xmax,e>n&&(n=e,i&&(i.x=this.xmin),s&&(s.x=t.xmax)),e=this.ymin-t.ymax,e>r&&(r=e,i&&(i.y=this.ymin),s&&(s.y=t.ymax)),e=t.xmin-this.xmax,e>n&&(n=e,i&&(i.x=this.xmax),s&&(s.x=t.xmin)),e=t.ymin-this.ymax,e>r&&(r=e,i&&(i.y=this.ymax),s&&(s.y=t.ymin)),n*n+r*r}sqrDistance(t,i){if(void 0===i){if(this.isEmpty()||t.isNAN())return NaN;let i,s=0,e=0;return i=this.xmin-t.x,i>s&&(s=i),i=this.ymin-t.y,i>e&&(e=i),i=t.x-this.xmax,i>s&&(s=i),i=t.y-this.ymax,i>e&&(e=i),s*s+e*e}if(this.isEmpty()||t.isNAN())return i.setNAN(),NaN;i.assign(t);let s,e=0,n=0;return s=this.xmin-t.x,s>e&&(e=s,i.x=this.xmin),s=this.ymin-t.y,s>n&&(n=s,i.y=this.ymin),s=t.x-this.xmax,s>e&&(e=s,i.x=this.xmax),s=t.y-this.ymax,s>n&&(n=s,i.y=this.ymax),e*e+n*n}sqrMaxMinDistanceEnvelope(t){if(this.isEmpty()||t.isEmpty())return NaN;let i=Number.MAX_VALUE;{let s=n.P.sqrDistanceCoords(this.xmin,this.ymin,t.xmax,t.ymin),e=n.P.sqrDistanceCoords(this.xmin,this.ymin,t.xmax,t.ymax),r=n.P.sqrDistanceCoords(this.xmin,this.ymax,t.xmax,t.ymin),h=n.P.sqrDistanceCoords(this.xmin,this.ymax,t.xmax,t.ymax);i=Math.min(Math.max(Math.max(s,e),Math.max(r,h)),i)}{let s=n.P.sqrDistanceCoords(this.xmin,this.ymin,t.xmin,t.ymax),e=n.P.sqrDistanceCoords(this.xmin,this.ymin,t.xmax,t.ymax),r=n.P.sqrDistanceCoords(this.xmax,this.ymin,t.xmin,t.ymax),h=n.P.sqrDistanceCoords(this.xmax,this.ymin,t.xmax,t.ymax);i=Math.min(Math.max(Math.max(s,e),Math.max(r,h)),i)}{let s=n.P.sqrDistanceCoords(this.xmax,this.ymin,t.xmin,t.ymin),e=n.P.sqrDistanceCoords(this.xmax,this.ymin,t.xmin,t.ymax),r=n.P.sqrDistanceCoords(this.xmax,this.ymax,t.xmin,t.ymin),h=n.P.sqrDistanceCoords(this.xmax,this.ymax,t.xmin,t.ymax);i=Math.min(Math.max(Math.max(s,e),Math.max(r,h)),i)}{let s=n.P.sqrDistanceCoords(this.xmin,this.ymax,t.xmin,t.ymin),e=n.P.sqrDistanceCoords(this.xmin,this.ymax,t.xmax,t.ymin),r=n.P.sqrDistanceCoords(this.xmax,this.ymax,t.xmin,t.ymin),h=n.P.sqrDistanceCoords(this.xmax,this.ymax,t.xmax,t.ymin);i=Math.min(Math.max(Math.max(s,e),Math.max(r,h)),i)}return i}sqrMaxDistanceEnvelope(t){if(this.isEmpty()||t.isEmpty())return NaN;let i=0,s=(0,n.d)(n.P,4);this.queryCorners(s);let e=(0,n.d)(n.P,4);t.queryCorners(e);for(let t=0;t<4;t++)for(let r=0;r<4;r++){let h=n.P.sqrDistance(s[t],e[r]);h>i&&(i=h)}return i}sqrMaxMinDistance(t){let i,s=n.P.sqrDistance(t,this.getLowerLeft()),e=n.P.sqrDistance(t,this.getUpperLeft()),r=n.P.sqrDistance(t,this.getLowerRight()),h=n.P.sqrDistance(t,this.getUpperRight()),u=Math.max(s,e);return i=Math.max(s,r),u>i&&(u=i),i=Math.max(e,h),u>i&&(u=i),i=Math.max(r,h),u>i&&(u=i),u}sqrMinDistance(t){return this.contains(t)?0:this.sqrDistance(t)}sqrMaxDistance(t){let i=n.P.sqrDistance(t,this.getLowerLeft());return i=Math.max(n.P.sqrDistance(t,this.getUpperLeft()),i),i=Math.max(n.P.sqrDistance(t,this.getUpperRight()),i),i=Math.max(n.P.sqrDistance(t,this.getLowerRight()),i),i}snapToBoundary(t){if(t.isNAN())return!1;if(this.isEmpty())return t.setNAN(),!0;let i=!0;if(t.x<this.xmin?t.x=this.xmin:t.x>this.xmax?t.x=this.xmax:i=!1,t.y<this.ymin?t.y=this.ymin:t.y>this.ymax?t.y=this.ymax:i=!1,i)return!0;if(t.x===this.xmin||t.x===this.xmax||t.y===this.ymin||t.y===this.ymax)return!1;let s=this.xmax-t.x,e=t.x-this.xmin,n=this.ymax-t.y,r=t.y-this.ymin;return Math.max(s,e)>Math.max(n,r)?t.y=r<n?this.ymin:this.ymax:t.x=e<s?this.xmin:this.xmax,!0}snapClip(t){let i=(0,n.a)(t.x,this.xmin,this.xmax),s=(0,n.a)(t.y,this.ymin,this.ymax);return n.P.construct(i,s)}boundaryDistance(t){if(this.isEmpty()||t.isNAN())return NaN;if(t.x===this.xmin)return t.y-this.ymin;let i=this.ymax-this.ymin,s=this.xmax-this.xmin;if(t.y===this.ymax)return i+t.x-this.xmin;if(t.x===this.xmax)return i+s+this.ymax-t.y;if(t.y===this.ymin)return 2*i+s+this.xmax-t.x;let e=new n.P;return e.setCoordsPoint2D(t),this.snapToBoundary(e),this.boundaryDistance(e)}envelopeSide(t){if(this.isEmpty())return-1;let i=this.boundaryDistance(t),s=this.ymax-this.ymin,e=this.xmax-this.xmin;return i<s?0:(i-=s)<e?1:i-e<s?2:3}querySide(t,i){switch(t){case 0:i.constructFromCoords(this.xmin,this.ymin,this.xmin,this.ymax);break;case 1:i.constructFromCoords(this.xmin,this.ymax,this.xmax,this.ymax);break;case 2:i.constructFromCoords(this.xmax,this.ymax,this.xmax,this.ymin);break;case 3:i.constructFromCoords(this.xmax,this.ymin,this.xmin,this.ymin);break;default:(0,e.b)("query_side")}return i}isPointOnBoundary(t,i){return Math.abs(t.x-this.xmin)<=i||Math.abs(t.x-this.xmax)<=i||Math.abs(t.y-this.ymin)<=i||Math.abs(t.y-this.ymax)<=i}calculateToleranceFromEnvelope(){return this.isEmpty()?(0,n.g)():(Math.abs(this.xmin)+Math.abs(this.xmax)+Math.abs(this.ymin)+Math.abs(this.ymax)+1)*(0,n.g)()}toString(){return`[${this.xmin}, ${this.ymin}, ${this.xmax}, ${this.ymax}]`}}},55537(t,i,s){function e(t,i){try{if(!t)throw Error(i)}catch(t){throw t}}s.d(i,{A:()=>S,B:()=>P,C:()=>z,D:()=>k,G:()=>o,a:()=>q,b:()=>T,c:()=>w,d:()=>A,e:()=>E,f:()=>y,g:()=>e,h:()=>_,i:()=>f,j:()=>p,k:()=>b,l:()=>v,m:()=>d,n:()=>g,o:()=>M,p:()=>L,q:()=>C,r:()=>I,s:()=>B,t:()=>R,u:()=>c,v:()=>N,w:()=>Z,x:()=>D,y:()=>G,z:()=>F});class n extends Error{constructor(t,i){super(i),this.m_AdditionalMessage=i,this.m_ErrorType=t,this.name="GeometryError"}what(){return function(t){switch(t){case 1:return"Unknown error";case 2:return"Corrupted geometry";case 3:return"Empty geometry";case 4:return"Math singularity";case 5:return"Buffer is too small";case 6:return"Invalid shape type";case 7:return"Projection out of supported range";case 8:return"Non simple geometry";case 9:return"Cannot calculate geodesic";case 10:return"Notation conversion";case 11:return"Missing grid file";case 12:return"Invalid call";case 13:return"Internal error";case 14:return"Not implemented";case 15:return"IO error";case 16:return"Invalid 3D";case 17:return"An ambiguous geography edge with antipodal points";case 18:return"Geocentric coordinates require ellipsoidal height";case 19:return"Geography cannot be projected into a gnomonic plane or a result of an operation cannot fit into a gnomonic plane";case 20:return"Geometry is too large to be exported in to a given format";case 22:return"Operation is canceled by the user";case 21:return"The operation, such as projection or geodetic computation, cannot be performed without pe-wasm loaded";default:return"unknown error"}}(this.m_ErrorType)}additionalMessage(){return this.m_AdditionalMessage?this.m_AdditionalMessage:""}code(){return this.m_ErrorType}m_AdditionalMessage;m_ErrorType}class r extends n{constructor(t){super(2,t),this.name="CorruptedGeometryError"}}class h extends n{constructor(t){super(3,t),this.name="EmptyGeometryError"}}class u extends n{constructor(t){super(4,t),this.name="MathSingularityError"}}class a extends n{constructor(t){super(21,t),this.name="ProjectionEngineNotLoadedError"}}class m extends n{constructor(t){super(8,t),this.name="NonSimpleGeometryError"}}var o,l;(l=o||={})[l.enumUnknown=0]="enumUnknown",l[l.enumPoint=513]="enumPoint",l[l.enumLine=5122]="enumLine",l[l.enumBezier=5123]="enumBezier",l[l.enumEllipticArc=5124]="enumEllipticArc",l[l.enumEnvelope=3077]="enumEnvelope",l[l.enumMultiPoint=8710]="enumMultiPoint",l[l.enumPolyline=25607]="enumPolyline",l[l.enumPolygon=27656]="enumPolygon",l[l.enumMultipatch=40969]="enumMultipatch",l[l.enumGeometryCollection=3594]="enumGeometryCollection",l[l.enumRationalBezier2=5134]="enumRationalBezier2",l[l.enumBezier2=5135]="enumBezier2",l[l.enumRationalBezier23d=5392]="enumRationalBezier23d",l[l.enumGreatArc3d=5393]="enumGreatArc3d";const x=[0,0,1,1,1,2,0,1,2,3,-1,-1,-1,-1,1,1];function c(t){return x[15&t]}function y(t){return!!(512&t)}function d(t){return!!(1024&t)}function v(t){return!!(2048&t)}function _(t){return!!(4096&t)}function f(t){return!!(8192&t)}function p(t){return!!(16384&t)}function b(t){return!!(32768&t)}function N(t){let i=t.getGeometryType();return f(i)?t.getPointCount():t.isEmpty()?0:i===o.enumEnvelope?4:i===o.enumPoint?1:_(i)?2:void A("missing type")}function g(t){let i=t.getGeometryType();if(p(i))return t.hasNonLinearSegments();if(i===o.enumGeometryCollection){let i=t;for(let t=0,s=i.getGeometryCount();t<s;t++)if(g(i.getGeometry(t)))return!0;return!1}return!!_(i)&&i!==o.enumLine}function E(t){throw new a(t)}function M(t){throw new r(t)}function T(t){throw Error(t)}function w(t){throw new u(t)}function D(){T("Geometry type is not supported for 3D operations.")}function C(t){throw new n(12,t)}function P(t){throw new h(t)}function q(t){throw new n(14,t)}function I(t){throw Error(t)}function A(t){throw new n(13,t)}function z(t){throw Error(t)}function S(t){throw new m(t)}function L(t){t&&g(t)&&q("Operation does not support curves.")}function R(t){t&&b(t.getGeometryType())&&q("Unsupported geometry type.")}function Z(t){t===o.enumGeometryCollection&&T("Geometry_collection instances are not supported in this operation")}function B(t){Z(t.getGeometryType())}function G(t){T(`bad wkid: ${t}`)}function F(t){let i="bad wkt: ";i+=t,i+="...",T(i)}function k(t,i){t||T(i)}},83661(t,i,s){s.d(i,{$:()=>M,A:()=>E,B:()=>ui,C:()=>li,D:()=>Pt,E:()=>m,F:()=>Dt,G:()=>Vt,H:()=>w,I:()=>pi,J:()=>L,K:()=>n,L:()=>hi,M:()=>Ii,N:()=>gt,O:()=>ai,P:()=>Gi,Q:()=>yi,R:()=>Bi,S:()=>zt,U:()=>Zi,V:()=>Ri,W:()=>ci,X:()=>pt,Y:()=>Jt,Z:()=>l,_:()=>gi,a:()=>Ni,a0:()=>oi,a1:()=>Xt,a2:()=>_i,a3:()=>mi,a4:()=>fi,a5:()=>Kt,a6:()=>jt,a8:()=>Ct,a9:()=>bi,aA:()=>b,aB:()=>it,aE:()=>ot,aF:()=>Pi,aG:()=>bt,aH:()=>Y,aI:()=>B,aJ:()=>at,aK:()=>G,aL:()=>ti,aM:()=>yt,aa:()=>xt,ab:()=>ft,ac:()=>lt,af:()=>At,ag:()=>z,ah:()=>S,ai:()=>_t,aj:()=>P,ak:()=>Mi,al:()=>Ci,am:()=>Bt,an:()=>wi,ao:()=>q,ap:()=>I,as:()=>D,at:()=>C,au:()=>Ei,av:()=>Ti,aw:()=>st,ax:()=>et,ay:()=>Tt,az:()=>p,b:()=>Ht,c:()=>It,d:()=>wt,e:()=>Z,f:()=>ct,g:()=>vi,h:()=>F,i:()=>Wt,j:()=>T,m:()=>Et,o:()=>St,p:()=>tt,q:()=>qt,r:()=>A,s:()=>dt,t:()=>$t,u:()=>k,v:()=>Nt,w:()=>vt,x:()=>Mt,y:()=>R,z:()=>N});var e=s(55537);class n{constructor(t){this.sum=t,this.compensation=0}assign(t){return this.compensation=t.compensation,this.sum=t.sum,this}reset(){this.sum=this.compensation=0}resetToStart(t){this.sum=t,this.compensation=0}normalize(){let t=[NaN];this.sum=W(this.sum,this.compensation,t),this.compensation=t[0]}add(t){let i,s=this.sum+t;if(Math.abs(this.sum)>=Math.abs(t)){let e=this.sum-s+t;i=this.compensation+e}else{let e=t-s+this.sum;i=this.compensation+e}this.sum=s,this.compensation=i}sub(t){this.add(-t)}addProduct(t,i){let s=[0],e=K(t,i,s);this.add(e),this.add(s[0])}mul(t){let i=new n(0);i.addProduct(this.sum,t),i.addProduct(this.compensation,t),this.assign(i)}getResult(){return this.sum+this.compensation}pe(t){return this.add(t),this}me(t){return this.add(-t),this}sum;compensation}const r=[5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1],h=[-1,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3];function u(t){let i=0;return 65535n&t||(i+=16,t>>=16n),255n&t||(i+=8,t>>=8n),15n&t||(i+=4,t>>=4n),i+r[Number(BigInt.asUintN(4,t))]}function a(t){let i=0;return 4294967295n&t||(i=32,t>>=32n),i+u(BigInt.asUintN(32,t))}class m{m_EnvelopeType=1;vmin;vmax;constructor(t,i){if(void 0!==t)return t instanceof m?(this.vmin=t.vmin,void(this.vmax=t.vmax)):(this.vmin=t,this.vmax=i,void this.normalize());this.setEmpty()}static construct(t,i){return new m(t,i)}static constructEmpty(){return new m}setCoords(t,i){this.vmin=t,this.vmax=i,this.normalize()}setCoordsFromEnvelope(t){this.vmin=t.vmin,this.vmax=t.vmax}setEmpty(){this.vmin=NaN,this.vmax=NaN}getCenter(){return.5*(this.vmin+this.vmax)}equalsRange(t,i){return Vt(this.vmin,t)&&Vt(this.vmax,i)}equals(t,i){return!(!this.isEmpty()||!t.isEmpty())||(void 0===i?this.vmin===t.vmin&&this.vmax===t.vmax:Math.abs(this.vmin-t.vmin)<=i&&Math.abs(this.vmax-t.vmax)<=i)}width(){return this.vmax-this.vmin}isEmpty(){return Number.isNaN(this.vmin)||Number.isNaN(this.vmax)}isZero(){return this.vmin===this.vmax}setInfinite(){this.vmin=-1/0,this.vmax=1/0}move(t){this.isEmpty()||(this.vmin+=t,this.vmax+=t)}contains(t){return t.vmin>=this.vmin&&t.vmax<=this.vmax}containsCoordinate(t){return t>=this.vmin&&t<=this.vmax}containsRightExclusive(t){return t>=this.vmin&&t<this.vmax}containsExclusiveCoordinate(t){return t>this.vmin&&t<this.vmax}containsExclusive(t){return t.vmin>this.vmin&&t.vmax<this.vmax}isIntersecting(t){return this.vmin<=t.vmin?this.vmax>=t.vmin:t.vmax>=this.vmin}mergeCoordinate(t){if(this.isEmpty())return this.vmin=t,void(this.vmax=t);this.mergeNeCoordinate(t)}merge(t){if(t.isEmpty())return;let i=t.vmin,s=t.vmax;this.mergeCoordinate(i),this.mergeCoordinate(s)}mergeNe(t){let i=t.vmin,s=t.vmax;this.mergeNeCoordinate(i),this.mergeNeCoordinate(s)}mergeNeCoordinate(t){t<this.vmin?this.vmin=t:t>this.vmax&&(this.vmax=t)}intersect(t){this.isEmpty()||t.isEmpty()?this.setEmpty():(this.vmin<t.vmin&&(this.vmin=t.vmin),this.vmax>t.vmax&&(this.vmax=t.vmax),this.vmin>this.vmax&&this.setEmpty())}inflate(t){this.isEmpty()||(this.vmin-=t,this.vmax+=t,this.vmax<this.vmin&&this.setEmpty())}normalize(){this.vmin<=this.vmax||(this.vmin>this.vmax?this.vmax=dt(this.vmin,this.vmin=this.vmax):this.setEmpty())}isValid(){return this.isEmpty()||this.vmin<=this.vmax}snapClip(t){return Ni(t,this.vmin,this.vmax)}calculateToleranceFromEnvelope(){return this.isEmpty()?2**-52*100:(Math.abs(this.vmin)+Math.abs(this.vmax)+1)*(2**-52*100)}static unit(){return o}normalizeNoNAN(){this.vmin>this.vmax&&(this.vmax=dt(this.vmin,this.vmin=this.vmax))}setCoordsNoNAN(t,i){this.vmin=t,this.vmax=i,this.normalizeNoNAN()}clone(){return new m(this.vmin,this.vmax)}}const o=new m(0,1);class l{m_value;m_eps;static getNAN(){return new l(NaN)}constructor(t,i){this.m_value=t??0,this.m_eps=i??0}[Symbol.toPrimitive](t){return this}clone(){return new l(this.m_value,this.m_eps)}assign(t){return this.m_value=t.m_value,this.m_eps=t.m_eps,this}scaleError(t){this.m_eps*=t}setError(t){this.m_eps=t}set(t,i){return this.m_value=t,this.m_eps=i??0,this}setWithEps(t,i){return void 0===i&&(i=1),this.m_value=t,this.m_eps=l.ulp(t)*i,this}setE(t){return this.m_value=t.m_value,this.m_eps=t.m_eps,this}precise(){return new l(this.m_value)}value(){return this.m_value}toDouble(){return this.m_value}eps(){return this.m_eps}resetError(){return this.m_eps=0,this}absThis(){return this.m_value=Math.abs(this.m_value),this}add(t){return this.clone().addThis(t)}addE(t){return this.clone().addThisE(t)}addThisE(t){let i=this.m_value+t.m_value,s=this.m_eps+t.m_eps+l.ulp(i);return this.m_value=i,this.m_eps=s,this}addThis(t){let i=this.m_value+t,s=this.m_eps+l.ulp(i);return this.m_value=i,this.m_eps=s,this}subE(t){return this.clone().subThisE(t)}sub(t){return this.clone().subThis(t)}subThisE(t){let i=this.m_value-t.m_value,s=this.m_eps+t.m_eps+l.ulp(i);return this.m_value=i,this.m_eps=s,this}subThis(t){let i=this.m_value-t,s=this.m_eps+l.ulp(i);return this.m_value=i,this.m_eps=s,this}setAddE(t,i){return this.m_value=t.m_value+i.m_value,this.m_eps=t.m_eps+i.m_eps+l.ulp(this.m_value),this}setAdd(t,i){return this.m_value=t+i,this.m_eps=l.ulp(this.m_value),this}setAddEN(t,i){return this.m_value=t.m_value+i,this.m_eps=t.m_eps+l.ulp(this.m_value),this}setAddNE(t,i){return this.m_value=t+i.m_value,this.m_eps=i.m_eps+l.ulp(this.m_value),this}setSubE(t,i){return this.m_value=t.m_value-i.m_value,this.m_eps=t.m_eps+i.m_eps+l.ulp(this.m_value),this}setSub(t,i){return this.m_value=t-i,this.m_eps=l.ulp(this.m_value),this}setSubEN(t,i){return this.m_value=t.m_value-i,this.m_eps=t.m_eps+l.ulp(this.m_value),this}setSubNE(t,i){return this.m_value=t-i.m_value,this.m_eps=i.m_eps+l.ulp(this.m_value),this}mulThisE(t){let i=this.m_value*t.m_value;return this.m_eps=this.m_eps*Math.abs(t.m_value)+t.m_eps*Math.abs(this.m_value)+this.m_eps*t.m_eps+l.ulp(i),this.m_value=i,this}mulThis(t){let i=this.m_value*t;return this.m_eps=this.m_eps*Math.abs(t)+l.ulp(i),this.m_value=i,this}mul(t){return this.clone().mulThis(t)}mulE(t){return this.clone().mulThisE(t)}setMulE(t,i){let s=t.m_value*i.m_value;return this.m_eps=t.m_eps*Math.abs(i.m_value)+i.m_eps*Math.abs(t.m_value)+t.m_eps*i.m_eps+l.ulp(s),this.m_value=s,this}setMul(t,i){return this.m_value=t*i,this.m_eps=l.ulp(this.m_value),this}setMulEN(t,i){return this.setE(t),this.mulThis(i)}setMulNE(t,i){return this.setE(i),this.mulThis(t)}mulThisByPower2(t){return this.m_value*=t,this.m_eps*=Math.abs(t),this}static st_mulByPower2(t,i){return new l(t.m_value,t.m_eps).mulThisByPower2(i)}divE(t){return this.clone().divThisE(t)}divThisE(t){let i=Math.abs(t.m_value),s=this.m_value/t.m_value,e=(this.m_eps+Math.abs(s)*t.m_eps)/i;if(t.m_eps>.01*i){let s=t.m_eps/i;e*=1+(1+s)*s}return this.m_value=s,this.m_eps=e+l.ulp(s),this}divThis(t){let i=Math.abs(t);return this.m_value/=t,this.m_eps=this.m_eps/i+l.ulp(this.m_value),this}setDivE(t,i){return this.setE(t),this.divThisE(i)}setDiv(t,i){return this.m_value=t/i,this.m_eps=l.ulp(this.m_value),this}setDivEN(t,i){return this.setE(t),this.divThis(i)}setDivNE(t,i){return this.set(t),this.divThisE(i)}divThisByPower2(t){return this.m_value/=t,this.m_eps/=Math.abs(t),this}invThis(){return this.setE(_.clone().divThisE(this)),this}sqrt(){return this.clone().sqrtThis()}sqrtThis(){let t,i;return this.m_value>=0?(t=Math.sqrt(this.m_value),i=this.m_value>10*this.m_eps?.5*this.m_eps/t:this.m_value>this.m_eps?t-Math.sqrt(this.m_value-this.m_eps):Math.max(t,Math.sqrt(this.m_value+this.m_eps)-t),i+=l.ulp(t)):this.m_value<-this.m_eps?(t=NaN,i=NaN):(t=0,i=Math.sqrt(this.m_eps)),this.m_value=t,this.m_eps=i,this}sqr(){return this.clone().sqrThis()}sqrThis(){let t=this.m_value*this.m_value;return this.m_eps=2*this.m_eps*Math.abs(this.m_value)+this.m_eps*this.m_eps+l.ulp(t),this.m_value=t,this}setSin(t){let i=Math.sin(t.m_value),s=Math.cos(t.m_value);this.m_value=i;let e=Math.abs(i),n=Math.abs(t.value());return this.m_eps=(Math.abs(s)+.5*e*t.m_eps)*t.m_eps+l.ulp(e+n),this}static ulp(t){let i=Ut(t),s=((9218868437227405312n&i)>>52n)-1075n;return s>-1023n?(i=s+1023n<<52n,function(t){return kt[0]=t,Ft[0]}(i)):0===t?0:Number.MIN_VALUE}setCos(t){let i=Math.sin(t.m_value),s=Math.cos(t.m_value);this.m_value=s;let e=Math.abs(s),n=Math.abs(t.value());return this.m_eps=(Math.abs(i)+.5*e*t.m_eps)*t.m_eps+l.ulp(e+n),this}static st_cosAndSin(t,i,s){let e=Math.sin(t.m_value),n=Math.cos(t.m_value);s.m_value=e,i.m_value=n;let r=Math.abs(e),h=Math.abs(n),u=Math.abs(t.value());s.m_eps=(Math.abs(n)+.5*r*t.m_eps)*t.m_eps+l.ulp(r+u),i.m_eps=(Math.abs(e)+.5*h*t.m_eps)*t.m_eps+l.ulp(h+u)}negate(){return this.clone().negateThis()}negateThis(){return this.m_value=-this.m_value,this}setAbs(){return this.m_value=Math.abs(this.m_value),this}isInInterval(t){return m.construct(this.m_value-this.m_eps,this.m_value+this.m_eps).isIntersecting(t)}isInIntervalExclusive(t){let i=t.vmin+this.m_eps,s=t.vmax-this.m_eps;return i<this.m_value&&s>this.m_value}eq(t){return Math.abs(this.m_value-t.m_value)<=this.m_eps+t.m_eps}ne(t){return!this.eq(t)}gt(t){return this.m_value-t.m_value>this.m_eps+t.m_eps}lt(t){return t.m_value-this.m_value>this.m_eps+t.m_eps}ge(t){return!this.lt(t)}le(t){return!this.gt(t)}tolEQ(t,i){return Math.abs(this.m_value-t.m_value)<=i||this.eq(t)}tolNE(t,i){return!this.tolEQ(t,i)}tolGT(t,i){return this.m_value-t.m_value>i&&this.gt(t)}tolLT(t,i){return t.m_value-this.m_value>i&&this.lt(t)}tolGE(t,i){return!this.tolLT(t,i)}tolLE(t,i){return!this.tolGT(t,i)}isZero(){return Math.abs(this.m_value)<=this.m_eps}isFuzzyZero(){return this.isZero()&&0!==this.m_eps}tolIsZero(t){return Math.abs(this.m_value)<=Math.max(this.m_eps,t)}setPi(){this.setE(d)}setEuler(){this.set(2.718281828459045,2**-52)}static dimensions=1;static size(){return 1}}function x(t,i){let s=Yt(t),e=Yt(i),n=53-a(s),r=53-a(e);return(n>=0?n:0)+(r>=0?r:0)<=52}function c(t,i){let s=t+i;return s-t===i&&s-i===t}function y(t,i){let s=t-i;return t-s===i&&i+s===t}const d=new l(Math.PI,2**-52*.5),v=new l(0,0),_=new l(1,0),f=new l(4,0);function p(t,i,s){return t.addE(i.subE(t).mulE(s))}function b(t,i,s){return i.subE(i.subE(t).mulE(_.subE(s)))}function N(t){let i;if(0===t)i=1;else if(Math.abs(t)>.01)i=function(t){return Math.atanh(t)}(t)/t;else{let s;i=0;let e=t*t;for(let t=2*Math.trunc(-36.841361487904734/Math.log(e)+2.5)-1;t>1;t-=2)s=1/t,i=(i+s)*e;i+=1}return i}function g(t){let i,s=Math.PI*Math.PI/6;if(1===t)i=s;else if(t>1)i=s;else if(0===t)i=t;else if(t<0){let s=1+(t=Math.abs(t)),e=Math.log(s);i=e*e/-2-g(t/s)}else if(t>.5){let e=1-t,n=Math.log(t)*Math.log(e);i=s-g(e)-n}else{i=0;let s=1+Math.trunc(-16*Math.log(10)/Math.log(t)+1.5),e=s;for(let n=s;n>0;n--,--e)i*=t,i+=1/(e*e);i*=t}return i}function E(t,i){let s=i*t;if(Math.abs(i)<.1){let i=0;for(let t=60;t>=1;t--)i*=s,i+=1/t/t;return i*=t,i}return g(s)/i}function M(t,i){return t<i?St(t,i):St(i,t)}function T(t,i){let s=Math.abs(t);return i>=0?s:-s}function w(t){return Math.round(t)}function D(t,i,s,e,n){n[0]=i[0]+(s[0]-i[0])*e,n[1]=i[1]+(s[1]-i[1])*e,3===t&&(n[2]=i[2]+(s[2]-i[2])*e)}function C(t,i,s,e,n){n[0]=s[0]-(s[0]-i[0])*(1-e),n[1]=s[1]-(s[1]-i[1])*(1-e),3===t&&(n[2]=s[2]-(s[2]-i[2])*(1-e))}function P(t,i,s,e,n){e<=.5?D(t,i,s,e,n):C(t,i,s,e,n)}function q(t,i,s,e,n){n[0]=i[0].addE(s[0].subE(i[0]).mulE(e)),n[1]=i[1].addE(s[1].subE(i[1]).mulE(e))}function I(t,i,s,e,n){n[0]=s[0].subE(s[0].subE(i[0]).mulE(_.subE(e))),n[1]=s[1].subE(s[1].subE(i[1]).mulE(_.subE(e)))}function A(t,i,s){let e;return e=s<=.5?t+(i-t)*s:i-(i-t)*(1-s),e}function z(t,i,s){return t+(i-t)*s}function S(t,i,s){return i-(i-t)*(1-s)}function L(t,i,s,e){s<=.5?(e.x=t.x+(i.x-t.x)*s,e.y=t.y+(i.y-t.y)*s):(e.x=i.x-(i.x-t.x)*(1-s),e.y=i.y-(i.y-t.y)*(1-s))}function R(t,i,s,e){s<=.5?(e.x=t.x+(i.x-t.x)*s,e.y=t.y+(i.y-t.y)*s,e.z=t.z+(i.z-t.z)*s):(e.x=i.x-(i.x-t.x)*(1-s),e.y=i.y-(i.y-t.y)*(1-s),e.z=i.z-(i.z-t.z)*(1-s))}function Z(t){return t*t}function B(t){return t*t*t}function G(t){return 1/Math.sqrt(t)}function F(t){return t<0?-1:+(t>0)}function k(t,i,s,e){let n=[0],r=[0],h=[0];return W(K(t,s,n),K(i,e,r),h)+(n[0]+r[0]+h[0])}const X=[0],U=[0];function Y(t,i,s){return function(t,i,s,e){return W(W(W(t,i,H),s,J),H[0]+J[0],e)}(K(t,i,X),s,X[0],U)}const O=[0],Q=[0],V=[0],j=[0];function K(t,i,s){let e=t*i;return $(t,O,Q),$(i,V,j),s[0]=Q[0]*j[0]-(e-O[0]*V[0]-Q[0]*V[0]-O[0]*j[0]),e}function $(t,i,s){let e=134217729*t;i[0]=e-(e-t),s[0]=t-i[0]}const H=[0],J=[0];function W(t,i,s){let e=t+i;return s[0]=Math.abs(t)>Math.abs(i)?t-e+i:i-e+t,e}function tt(t,i){return t%i}function it(t){let i,s=1-t;if(0===s)return 1;if(s<=.01){let t=s,e=Math.log(t);i=1+t*(.4431471805599453-.25*e+t*(.05680519270997949-.09375*e+t*(.02183137044373718-.05859375*e+t*(.011544521417308362-.042724609375*e+t*(.00714200031339596-.0336456298828125*e+t*(.004854743337164948-.027757644653320312*e+t*(.003514687963781376-.023627042770385742*e)))))))}else{if(t<.016){let i=t;return wi()*(1-i*(.25+i*(.046875+i*(.01953125+i*(.01068115234375+i*(.0067291259765625+i*(.004626274108886719+i*(.0033752918243408203+.0025710230693221092*i))))))))}i=nt(0,s,1)-t*rt(0,s,1)/3}return Ni(i,1,wi())}function st(t,i,s=NaN){if((0,e.g)(i>=0&&i<=1),0===i)return t;let n=1,r=t;if(r<0&&(r=-r,n=-1),1===i){let t=Math.round(r/Mi()),i=r-t*Mi();return n*(2*t+Math.sin(i))}let h=wi(),u=Math.floor(r/h);1&u?r=(u+1)*h-r:r-=u*h;let a,m=Math.sin(r),o=Number.isNaN(s)?it(i):s;if(1===m)a=o+Math.sqrt(1-i)*(r-h);else{let t=r*r;if(.01424*t**4<=2*2**-52)a=r*(1+t*i*(-1/6+t*((4-3*i)/120-(16+(45*i-60)*i)/5040*t)));else if(i<=.01){let t=Math.sin(2*r),s=Math.sin(4*r),e=Math.sin(6*r),n=Math.sin(8*r),h=Math.sin(10*r);a=r+i*((2*-r+t)/8+i*((-3*r+2*t-.25*s)/64+i*((-20*r+15*t-3*s+e/3)/1024+i*(5*(-140*r+112*t-28*s+16/3*e-.5*n)/65536+7*i*((-63*r+52.5*t-15*s+3.75*e-.625*n+.05*h)/65536+i*(-693*r+594*t-185.625*s+1.375*e-12.375*n+1.8*h-.125*Math.sin(12*r))/1048576)))))}else{let t=m*m,s=Math.cos(r),e=s*s,n=ht(m,s,i);a=m*(nt(e,n,1)-i*t*rt(e,n,1)/3)}}return 1&u?a=o*(u+1)-a:a+=o*u,n*a}function et(t,i,s=NaN){if(0===t)return 0;let e=1,n=t;t<0&&(n=-n,e=-1);let r=Number.isNaN(s)?it(i):s,h=Math.floor(n/r);1&h?n=(h+1)*r-n:n-=h*r;let u=n<=0?0:n>=r?wi():function(t,i,s){if(0===i)return t;if(1===i)return Math.asin(t);let e=0,n=!0;if(t<.2){let s=t*t,r=t*(1+s*i*(1/6+s*((13*i-4)/120+(16-284*i+493*i*i)/5040*s))),h=Math.abs(i*(4944*i-64-31224*i*i+37369*i*i*i)/362880*t**9);if(h<Math.abs(r)*2**-52)return r;e=r,n=h>.1*r}if(n){let n=1-i,r=1-t/s,h=Math.sqrt(r*r+n*n),u=Math.atan2(n,t+2**-52);e=wi()+Math.sqrt(h)*(u-wi())}let r=0;for(let n=0;n<7;n++){r=st(e,i,s);let h=ht(Math.sin(e),Math.cos(e),i);if(e-=(r-t)/Math.sqrt(h),n>0&&Math.abs(r-t)<=4*pi()*t)break}return e}(n,i,r);return 1&h?u=wi()*(h+1)-u:u+=wi()*h,e*u}function nt(t,i,s){(0,e.g)((0===t?0:1)+(0===i?0:1)+1>1);let n=t,r=i,h=s;for(;;){let t=Math.sqrt(n*r)+Math.sqrt(r*h)+Math.sqrt(h*n);n=.25*(n+t),r=.25*(r+t),h=.25*(h+t);let i=(n+r+h)/3,s=(i-n)/i,e=(i-r)/i,u=(i-h)/i;if(Math.abs(s)<=.0024&&Math.abs(e)<=.0024&&Math.abs(u)<=.0024){let t=s*e-u*u,n=s*e*u;return(1+(1/24*t-.1-3/44*n-5*t*t/208+t*n/16)*t+(1/14+3*n/104)*n)/Math.sqrt(i)}}}function rt(t,i,s){(0,e.g)(0!==t||0!==i);let r=t,h=i,u=s,a=new n(0),m=1;for(;;){let t=.2*(r+h+3*u),i=(t-r)/t,s=(t-h)/t,e=(t-u)/t;if(Math.abs(i)<=.0015&&Math.abs(s)<=.0015&&Math.abs(e)<=.0015){let n=i*s,r=e*e,h=n-r,u=n-6*r,o=u+h+h,l=3/26,x=u*(.10227272727272728*u-.21428571428571427-1.5*l*e*o),c=e*(.16666666666666666*o+e*(-.4090909090909091*h+e*l*n));return 3*a.getResult()+m*(1+x+c)/(t*Math.sqrt(t))}let n=Math.sqrt(r),o=Math.sqrt(h),l=Math.sqrt(u),x=n*(o+l)+o*l;a.add(m/(l*(u+x))),m*=.25,r=.25*(r+x),h=.25*(h+x),u=.25*(u+x)}}function ht(t,i,s){return t<.999?1-s*Z(t):1-s+s*Z(i)}const ut=new class{values;constructor(t){for(this.values=[[1]];this.values.length<t+1;){let t=this.values.at(-1),i=It(t.length+1,1);for(let s=1;s<t.length;++s)i[s]=t[s-1]+t[s];this.values.push(i)}}get(t,i){return this.values[t][i]}}(32);function at(t,i){if(t<ut.values.length)return ut.get(t,i);let s=Math.exp(((0,e.g)(0),0));return s+.01>2147483647&&(0,e.r)("The result value of n choose k is out of range"),s+.01}function mt(t,i){if(t.isZero())return t.clone();let s=t.clone().divThis(t);if(i<0)return s.divThis(mt(t,-i));for(t=t.clone(),i=Math.trunc(i);1&i&&s.mulThis(t),i>>=1;)t.mulThis(t);return s}function ot(t,i){if(0===i)return[];let s=t[0].clone().mulDoubleThis(0),e=[];e.length=i;let n=i-1;for(let i=0;i<=n;++i){e[i]=s.clone();for(let s=0;s<=i;++s)e[i].addThis(t[s].clone().mulDoubleThis(at(i,s)/at(n,s)))}return e}function lt(t,i,s,n,r){return 0===t?0===n?i:1===n?s:r:1===t?0===n?i:1===n?s:A(i,s,n):(2===t&&(0,e.a)("angular interpolation"),void(0,e.a)(""))}function xt(t,i,s,n,r,h,u,a){if(0===t)for(let t=0;t<h;++t)n[t+r]=0===u?i[t]:1===u?s[t]:a;else if(1===t)if(0===u)ct(n,i,r,0,h);else if(1===u)ct(n,s,r,0,h);else for(let t=0;t<h;++t)n[t+r]=A(i[t],s[t],u);else if(2===t)if(0===u)ct(n,i,r,0,h);else if(1===u)ct(n,s,r,0,h);else{let t=0;for(let e=0,a=r;e<h;++e,++a)n[a]=A(i[e],s[e],u),t+=n[a]*n[a];if(t>0){t=Math.sqrt(t);for(let i=r;i<r+h;++i)n[i]/=t}else{for(let t=r;t<r+h;++t)n[t]=0;n[r]=1}}else(0,e.a)("")}function ct(t,i,s,e,n){if(0===n)return;let r=0,h=s,u=e;for(;r++<n;)t[h++]=i[u++]}function yt(t,i,s){let e=0;for(let n=0;!e&&n<s;++n)e=t[n]-i[n];return e}function dt(t,i){return t}function vt(t){t.sort((t,i)=>t<i?-1:+(t>i))}function _t(t,i){let s=t.slice(0,i);vt(s),ct(t,s,0,0,i)}function ft(t,i,s,e){let n=t.slice(i,i+s);n.sort(e),ct(t,n,i,0,s)}function pt(t,i){return t<i?-1:+(t>i)}function bt(t,i,s,e){return t<s?-1:t>s?1:i<e?-1:+(i>e)}function Nt(t,i){if(t.length<2)return t.length;let s=0;for(let e=1;e<t.length;++e)i(t[e],t[s])||(s++,t[e]=dt(t[s],t[s]=t[e]));return 1+s}function gt(t,i){t[i]=t.at(-1),t.pop()}function Et(t,i=!1){return{[Symbol.dispose](){this.bForget||t()},bForget:i}}function Mt(t,i,s){t.length=i,t.fill(s)}function Tt(t,i,s){t.length=s;for(let e=0;e<s;++e)t[e]=new i}function wt(t,i){let s=Array(i);for(let e=0;e<i;++e)s[e]=new t;return s}function Dt(t,i,s){for(let e=0;e<s;++e)t[e].assign(i[e]);return s}function Ct(t,i){let s=t.slice(0,i);for(let t=0;t<i;++t)s[t]=s[t].clone();return s}function Pt(t){return Array.from({length:t},()=>null)}function qt(t,i){return Array.from({length:i},()=>t())}function It(t,i){let s=Array(t);return s.fill(i),s}function At(t,i){return i in t&&1===Object.getOwnPropertyNames(t).length}class zt{m_elts;constructor(...t){this.m_elts=t}get length(){return this.m_elts.length}at(t){return this.m_elts[t]}[Symbol.dispose](){for(let t of this.m_elts)t[Symbol.dispose]()}}function St(t,i){return{first:t,second:i}}const Lt=Math.PI,Rt=2*Math.PI,Zt=.5*Math.PI;class Bt{m_cr;m_cc;m_v;constructor(t,i){this.m_cr=t,this.m_cc=i,this.m_v=It(t*i,0)}get(t,i){return this.m_v[t*this.m_cc+i]}set(t,i,s){this.m_v[t*this.m_cc+i]=s}inc(t,i){return++this.m_v[t*this.m_cc+i]}}const Gt=new ArrayBuffer(8),Ft=new Float64Array(Gt),kt=new BigUint64Array(Gt);function Xt(){return 2**-52*di}function Ut(t){return Ft[0]=t,kt[0]}function Yt(t){return 4503599627370495n&Ut(t)}function Ot(t){return Number((9218868437227405312n&Ut(t))>>52n)}function Qt(t){if(0n===t)return-1n;if(1n===t||-1n===t)return 0n;t<0n&&(t=-t);let i=0n,s=512n,e=1n<<i+s;for(;t>=e;)i+=s,s<<=1n,e<<=s;let n=i;s>>=1n;let r=n+s;for(;s>0n;)t<1n<<r||(n=r),s>>=1n,r=n+s;return n}function Vt(t,i){return t===i||Number.isNaN(t)&&Number.isNaN(i)}function jt(t,i,s){return t===i||Math.abs(t-i)<=s||Number.isNaN(t)&&Number.isNaN(i)}function Kt(t,i){return t<i?-1:+(t>i)}function $t(t,i){if(t<i)return-1;if(t>i)return 1;if(t===i)return 0;{let s=Number.isNaN(t),e=Number.isNaN(i);return s<e?-1:+(s>e)}}function Ht(){return 2147483647}function Jt(){return 32767}function Wt(){return 2147483647}function ti(){return-2147483648}const ii=2147483647,si=BigInt(ii),ei=2166136261,ni=16777619,ri=1099511628211n;function hi(t){let i=ei;for(let s=0,e=t.length;s<e;++s)i=(i^t.charCodeAt(s))*ni;return i&ii}function ui(t,i){return i+2654435769+(t<<6)+(t>>2)&ii}function ai(t,i){return ui(t,xi(i))}function mi(t){return ui(3735928559,t)}function oi(t,i){return ui(t,mi(i))}function li(t){return function(t){let i=ei,s=t;return i=(i^255&s)*ni,s>>=8,i=(i^255&s)*ni,s>>=8,i=(i^255&s)*ni,s>>=8,i=(i^255&s)*ni,i&ii}(t)}function xi(t){return Number(function(t){let i=14695981039346656037n,s=t;return i=(i^255n&s)*ri,s>>=8n,i=(i^255n&s)*ri,s>>=8n,i=(i^255n&s)*ri,s>>=8n,i=(i^255n&s)*ri,s>>=8n,i=(i^255n&s)*ri,s>>=8n,i=(i^255n&s)*ri,s>>=8n,i=(i^255n&s)*ri,i&si}(t))}function ci(t){return xi(Ut(function(t){return Pi(t)}(t)))}function yi(t){return function(t){return 1103515245*t+12345&2147483647}(t)}const di=100;function vi(){return 2**-52*100}function _i(){return.38196601125010515}function fi(){return 1.4142135623730951}function pi(){return 2**-52}function bi(t,i,s){return t===i||t===s}function Ni(t,i,s){return t>=i?t<=s?t:s:i}function gi(t,i,s){let e=t[0];if(e>=i){if(e<=s)return!1;t[0]=s}else t[0]=i;return!0}function Ei(t,i){return t>=i?i:t<-i?-i:t}function Mi(){return Lt}function Ti(){return Rt}function wi(){return Zt}const Di=3*wi();function Ci(){return Di}function Pi(t){return t+0}function qi(t){return{v:t}}class Ii{static s_sm=9223372036854775808n;static s_em=9218868437227405312n;static s_fm=4503599627370495n;static s_emax=2047n;m_rn=qi(0n);m_rd=qi(1n);m_bNaN=!1;m_bNormalized=!1;m_power=0;m_sign=0;static constructAssign(t,i){let s=t.clone();return void 0!==i&&s.limitPrecisionThis(i),s}static constructDouble(t){return(new Ii).setDouble(t)}static constructInt64(t){return(new Ii).setInt64(t)}static constructRational(t,i){return(new Ii).setRational(t,i)}static constructInt32(t){return this.constructInt64(BigInt(Math.trunc(t)))}[Symbol.toPrimitive](t){return this}compare(t){return this.lt(t)?-1:+!!this.gt(t)}assignCopy(t){return this.setThis(t)}abs(){return this.clone().absThis()}absThis(){return this.isNAN()||(this.m_sign*=this.m_sign),this}clone(){return(new Ii).setThis(this)}setThis(t){return this.m_bNaN=t.m_bNaN,this.m_bNormalized=t.m_bNormalized,this.m_rn.v=t.m_rn.v,this.m_rd.v=t.m_rd.v,this.m_power=t.m_power,this.m_sign=t.m_sign,this}setZero(){return this.m_rn.v=0n,this.m_rd.v=1n,this.m_bNaN=!1,this.m_power=0,this.m_bNormalized=!0,this.m_sign=0,this}setDouble(t){if(this.setZero(),0===t)return this;if(Number.isInteger(t)&&Math.abs(t)<2147483647)return this.setInt32(t);let i=Ut(t),s=(i&Ii.s_em)>>52n,n=!!(i&Ii.s_sm),r=i&Ii.s_fm;if(s===Ii.s_emax)return r?(this.m_rn.v=this.m_rd.v=0n,this.m_bNaN=!0,this):(this.m_rn.v=n?-1n:1n,this.m_rd.v=0n,this);0n===s&&(0,e.a)("denormalized numbers not yet implemented");let h=s-1023n,u=h>=0n?h:0n,a=h<0n?-h:0n;return this.m_rn.v=(1n<<52n|r)<<u,this.m_rd.v=1n<<52n+a,this.m_sign=n?-1:1,this.m_bNormalized=!1,this.normalizeThis()}setInt64(t){return 0n===t?this.setZero():(this.m_bNaN=!1,this.m_sign=t>0n?1:-1,this.m_rn.v=t>0n?t:-t,this.m_rd.v=1n,this.m_power=0,this.m_bNormalized=!1,this.normalizeThis())}setRational(t,i){return 0n===t?0n===i?this.setNAN():this.setZero():0n===i?t>0n?this.setPositiveInf():this.setNegativeInf():(this.m_sign=(t>0n?1:-1)*(i>0n?1:-1),this.m_rn.v=t>0n?t:-t,this.m_rd.v=i>0n?i:-i,this.m_power=0,this.m_bNormalized=!1,this.normalizeThis())}setInt32(t){return this.setInt64(BigInt(Math.trunc(t)))}getDouble(){return this.convertToDouble()}toDouble(){return this.convertToDouble()}value(){return this.convertToDouble()}isNAN(){return this.m_bNaN}isPositiveInf(){return!this.isNAN()&&0n===this.m_rd.v&&1===this.m_sign}isNegativeInf(){return!this.isNAN()&&0n===this.m_rd.v&&-1===this.m_sign}isFinite(){return!this.isNAN()&&0n!==this.m_rd.v}setNAN(){return this.m_bNaN=!0,this.m_rn.v=0n,this.m_rd.v=0n,this.m_power=0,this.m_bNormalized=!0,this}setPositiveInf(){return this.m_rn.v=1n,this.m_rd.v=0n,this.m_bNaN=!1,this.m_bNormalized=!0,this.m_sign=1,this.m_power=0,this}setNegativeInf(){return this.m_rn.v=1n,this.m_rd.v=0n,this.m_bNaN=!1,this.m_bNormalized=!0,this.m_sign=-1,this.m_power=0,this}subThis(t){if(t.isNAN()&&this.setNAN(),this.isPositiveInf()&&t.isPositiveInf())this.setNAN();else{if(this.isPositiveInf()&&t.isNegativeInf())return this.setPositiveInf(),this;if(this.isNegativeInf()&&t.isNegativeInf())this.setNAN();else if(this.isNegativeInf()&&t.isPositiveInf())return this.setNegativeInf(),this}return this.isNAN()?this:this.opPlusMinus(t,!1)}thisSubAbs(t){return(0,e.g)(0),this}mulThis(t){return t.isNAN()&&this.setNAN(),this.isNAN()?this:(this.m_sign*=t.m_sign,0===this.m_sign?this.setZero():(this.m_rn.v*=t.m_rn.v,this.m_rd.v*=t.m_rd.v,this.m_power+=t.m_power,this.m_bNormalized=!1,this.normalizeThis(),this))}mulDoubleThis(t){return this.mulThis(Ii.constructDouble(t))}thisMulInt64(t){return(0,e.g)(0),this}thisMulInt32(t){return(0,e.g)(0),this}divThis(t){return this.mulThis(t.clone().invertThis())}divDoubleThis(t){return this.divThis(Ii.constructDouble(t))}addDoubleThis(t){return this.addThis(Ii.constructDouble(t))}subDoubleThis(t){return this.subThis(Ii.constructDouble(t))}mul(t){return this.clone().mulThis(t)}mulBigIntThis(t){return this.mulThis(Ii.constructInt64(t))}mulDouble(t){return this.clone().mulThis(Ii.constructDouble(t))}div(t){return this.clone().divThis(t)}divDouble(t){return this.clone().divDoubleThis(t)}add(t){return this.clone().addThis(t)}fmSubThis(t,i){return this.subThis(t.clone().mulThis(i))}fmAddThis(t,i){return this.addThis(t.clone().mulThis(i))}addThis(t){if(t.isNAN()&&this.setNAN(),this.isPositiveInf()&&t.isPositiveInf())return this.setPositiveInf(),this;if(this.isPositiveInf()&&t.isNegativeInf())this.setNAN();else{if(this.isNegativeInf()&&t.isNegativeInf())return this.setNegativeInf(),this;this.isNegativeInf()&&t.isPositiveInf()&&this.setNAN()}return this.isNAN()?this:this.opPlusMinus(t,!0)}addDouble(t){return this.clone().addThis(Ii.constructDouble(t))}sub(t){return this.clone().subThis(t)}subDouble(t){return this.clone().subThis(Ii.constructDouble(t))}isZero(){return 0===this.m_sign}equals(t){return this.clone().subThis(t).isZero()}lt(t){return!(this.isNAN()||t.isNAN()||this.isPositiveInf()&&t.isPositiveInf()||this.isNegativeInf()&&t.isNegativeInf()||this.isPositiveInf())&&(!!t.isPositiveInf()||this.clone().sub(t).LZ())}absLessAbs(t){return this.abs().lt(t.abs())}gt(t){return this.clone().sub(t).GZ()}lte(t){return this.sub(t).LEZ()}gte(t){return this.sub(t).GEZ()}normalizeThis(){if(this.m_bNormalized)return this;if(0n===this.m_rn.v)return this.setZero();let t=0,i=4294967295n;for(;0n===(this.m_rn.v&i)&&i<=this.m_rn.v;)i<<=32n,t+=32;i&=this.m_rn.v,i>>=BigInt(t),t+=u(BigInt.asUintN(32,i))-1;let s=0;for(i=4294967295n;0n===(this.m_rd.v&i)&&i<=this.m_rd.v;)i<<=32n,s+=32;return i&=this.m_rd.v,i>>=BigInt(s),s+=u(BigInt.asUintN(32,i))-1,this.m_rn.v>>=BigInt(t),this.m_rd.v>>=BigInt(s),this.m_power+=t-s,this.m_rn.v>1n&&this.m_rd.v>1n&&(this.m_rn.v%this.m_rd.v===0n?(this.m_rn.v/=this.m_rd.v,this.m_rd.v=1n):this.m_rd.v%this.m_rn.v===0n&&(this.m_rd.v/=this.m_rn.v,this.m_rn.v=1n)),this.m_bNormalized=!0,this}negateThis(){return this.isNAN()||(this.m_sign*=-1),this}negate(){return this.clone().negateThis()}invertThis(){return this.isNAN()?this:this.isPositiveInf()||this.isNegativeInf()?(this.setZero(),this):0n===this.m_rn.v?(this.setPositiveInf(),this):(this.m_rd=dt(this.m_rn,this.m_rn=this.m_rd),this.m_power=-this.m_power,this)}limitPrecisionThis(t){if(0===t)return this;if(this.isZero())return this.setZero();if(!this.isFinite())return this;this.normalizeThis();let i=Number(Qt(this.m_rn.v));if(i>t){let s=i-t;this.m_rn.v>>=BigInt(i-t),this.m_power+=s}if(i=Number(Qt(this.m_rd.v)),i>t){let s=i-t;this.m_rd.v>>=BigInt(i-t),this.m_power-=s}return this}hiBitIndex(){return Math.max(Number(Qt(this.m_rn.v)),Number(Qt(this.m_rd.v)))}ldexp(t){return this.clone().ldexpThis(t)}ldexpThis(t){return t&&(this.m_bNormalized=!1,this.m_power+=t,this.normalizeThis()),this}static lerp(t,i,s){return Ii.lerpLo(i,i,s)}static lerpLo(t,i,s){return i.sub(t).mulThis(s).addThis(t)}static lerpHi(t,i,s){return i.sub(t).mulThis(Ai.sub(s)).addThis(t)}LZ(){return!this.isNAN()&&-1===this.m_sign}GZ(){return!this.isNAN()&&1===this.m_sign}LEZ(){return!this.isNAN()&&this.m_sign<=0}GEZ(){return!this.isNAN()&&this.m_sign>=0}toString(){return this.toDouble().toString()}sqr(){return this.clone().sqrThis()}sqrThis(){return this.mulThis(this.clone())}static sqrt(t,i){if(t.m_sign<0n&&(0,e.r)("MP_value: sqrt(-1)"),t.isZero())return t.clone();let s=52,n=2220446049250313e-31;for(;s<i;)2*s<=i?(n*=n,s*=2):(n*=2220446049250313e-31,s+=52);s+=52;let r,h=Qt(t.m_rn.v),u=Qt(t.m_rd.v),a=t.m_power+Number(h-u),m=new Ii;Math.abs(a)>200?(1&Math.abs(a)&&(a+=1),r=Ii.constructAssign(t,53).ldexpThis(-a).value(),m.setThis(t).ldexpThis(-a),(0,e.g)(Number.isFinite(r))):(m.setThis(t),r=m.value(),(0,e.g)(Number.isFinite(r)),a=0),r=Math.sqrt(r);let o=Ii.constructDouble(r),l=Ii.constructDouble(n);l.mulThis(o).ldexpThis(1);let x,c=n*r*2,y=o.clone(),d=new Ii;for(let t=0;t<10;++t){y.mulThis(o),d.setThis(m).subThis(y).absThis();let t=d.value();if(x=1,t<.9)for(;t>c;)t*=t,++x;else x=4;if(d.lte(l))break;for(let t=0;t<x;t++)y.setThis(o).divThis(m).invertThis().addThis(o).ldexpThis(-1).limitPrecisionThis(s),o.setThis(y)}return o.ldexpThis(a/2)}static cubicRoot(t,i){if(t.isZero())return t.clone();let s=52,e=2220446049250313e-31;for(;s<i;)2*s<=i?(e*=e,s*=2):(e*=2220446049250313e-31,s+=52);s+=52;let n=Math.abs(t.value())**(1/3),r=Ii.constructDouble(n),h=r.clone();h.sqrThis().mulDoubleThis(3).mulDoubleThis(e),h.limitPrecisionThis(32),t.LZ()&&r.negateThis();for(let i=0;i<10;++i){let i=r.clone();i.sqrThis().mulThis(r);let e=i.clone();if(e.subThis(t),e.absThis().limitPrecisionThis(32),e.lte(h))break;e.setThis(t),e.ldexpThis(1),e.addThis(i);let n=i.clone();n.ldexpThis(1),n.addThis(t),e.divThis(n),r.mulThis(e),r.limitPrecisionThis(s)}return r}isInTheRangeOfDouble(){return(0,e.g)(0),!1}sign(){return this.m_sign}cosAndSin(t,i){(0,e.g)(0)}pow(t){return mt(this,t)}static nan(){return(0,e.g)(0),new Ii}convertToDouble(){if(this.m_bNaN)return NaN;if(this.isZero())return 0;if(0n===this.m_rd.v)return 1===this.m_sign?1/0:-1/0;let t=-1===this.m_sign,i=this.m_rn.v<<(this.m_power>=0?BigInt(this.m_power):0n),s=this.m_rd.v<<(this.m_power<0?BigInt(-this.m_power):0n),e=i/s,n=Number(e);if(BigInt(n)!==e)return t?-n:n;let r=i-e*s;if(r){let t=Qt(s)-1023n;t>0n&&(s>>=t,r<<=52n,r>>=t);let i=Number(r);Number.isFinite(i)||(r>>=52n,i=Number(r),t=0n),t>0n&&(i/=2**52),n+=i/Number(s)}return t?-n:n}signVal(){return 1===this.m_sign?1n:-1===this.m_sign?-1n:0n}opPlusMinus(t,i){let s,e,n=Math.min(this.m_power,t.m_power);this.m_power>n?(s=BigInt(this.m_power-n),e=0n):(s=0n,e=BigInt(t.m_power-n));let r=this.signVal()*this.m_rn.v*t.m_rd.v<<s,h=t.signVal()*t.m_rn.v*this.m_rd.v<<e;return this.m_rn.v=i?r+h:r-h,this.m_rd.v*=t.m_rd.v,this.m_power=n,this.m_sign=1,this.m_rn.v<0n&&(this.m_sign=-1,this.m_rn.v=-this.m_rn.v),this.m_bNormalized=!1,this.normalizeThis(),this}}const Ai=Ii.constructInt32(1),zi=Ii.constructInt32(0),Si=Ii.constructDouble(.5);function Li(t,i){let s=Ot(t),e=Ot(i);if(s===e){let e=53-function(t,i){return function(t){let i=0;return 18446744069414584320n&t&&(i=32,t>>=32n),i+function(t){let i=0;return 4294901760n&t&&(i+=16,t>>=16n),65280n&t&&(i+=8,t>>=8n),240n&t&&(i+=4,t>>=4n),i+h[Number(BigInt.asUintN(4,t))]+1}(t)}(t^i)}(Yt(t),Yt(i));return s-=e,s}return s>e?s:e}function Ri(t,i){for(let s=0,e=0,n=t.length;s<n;s+=2,e++)i[e].x=t[s],i[e].y=t[s+1]}function Zi(t){let i=new Float64Array(2*t.length);for(let s=0,e=t.length;s<e;++s){let e=s<<1;i[e]=t[s].x,i[e+1]=t[s].y}return i}function Bi(t){let i=wt(Gi,t.length);for(let s=0,e=t.length;s<e;++s)i[s].setCoords(t[s][0],t[s][1]);return i}class Gi{static dimensions=2;x;y;static d=[[0,1,0,-1],[-1,0,1,0],[0,-1,0,1],[1,0,-1,0]];static construct(t,i){return new Gi(t,i)}constructor(t,i){void 0!==t?(this.x=t,this.y=i):this.x=this.y=NaN}clone(){return new Gi(this.x,this.y)}assign(t){this.setCoordsPoint2D(t)}setCoords(t,i){return this.x=t,this.y=i,this}setCoordsPoint2D(t){this.x=t.x,this.y=t.y}isEqualPoint2D(t,i){return void 0===i?this.x===t.x&&this.y===t.y:Math.abs(this.x-t.x)<=i&&Math.abs(this.y-t.y)<=i}isEqual(t,i,s){return void 0===s?this.x===t&&this.y===i:Math.abs(this.x-t)<=s&&Math.abs(this.y-i)<=s}equalsPoint2D(t,i){return this.isEqualPoint2D(t,i)}setSub(t,i){this.x=t.x-i.x,this.y=t.y-i.y}addThis(t){return this.x+=t.x,this.y+=t.y,this}setAdd(t,i){return this.x=t.x+i.x,this.y=t.y+i.y,this}absoluteOther(t){}absolute(){return(0,e.g)(0),this}setNegate(){this.x=-this.x,this.y=-this.y}setNegateOther(t){this.x=-t.x,this.y=-t.y}interpolateThis(t,i){}interpolate(t,i,s){(0,e.g)(0)}scaleAddThis(t,i){this.x=this.x*t+i.x,this.y=this.y*t+i.y}setScaleAdd(t,i,s){this.x=i.x*t+s.x,this.y=i.y*t+s.y}scaleOther(t,i){(0,e.g)(0)}scale(t){this.x*=t,this.y*=t}compare(t){return this.y<t.y?-1:this.y>t.y?1:this.x<t.x?-1:+(this.x>t.x)}compareX(t){return this.x<t.x?-1:this.x>t.x?1:this.y<t.y?-1:+(this.y>t.y)}normalizeOther(t){(0,e.g)(0)}normalize(){let t=this.length();return t?(this.x/=t,this.y/=t):(this.x=1,this.y=0),this}getUnitVector(){return this.clone().normalize()}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}sqrLength(){return this.x*this.x+this.y*this.y}static averageFast(t,i){return(0,e.g)(0),{}}static average(t,i){let s=new Gi;if(0===i)return s.setNAN(),s;if(1===i)return s.assign(t[0]),s;let e=new n(t[0].x),r=new n(t[0].y);for(let s=1;s<i;s++)e.add(t[s].x),r.add(t[s].y),255&s||(e.normalize(),r.normalize());return s.x=e.getResult()/i,s.y=r.getResult()/i,s}static calculateLength(t,i){let s=new n(0);for(let e=1;e<i;e++)s.add(Gi.distance(t[e],t[e-1]));return s.getResult()}offset(t,i){let s=Gi.distance(t,i),e=Gi.construct(this.x,this.y);if(0===s)return Gi.distance(e,t);let n=i.clone();return n.subThis(t),e.subThis(t),e.crossProduct(n)/s}side(t,i){return t.equals(i)?+!this.equals(t):Gi.orientationRobust(i,t,this)}static sqrDistance(t,i){let s=t.x-i.x,e=t.y-i.y;return s*s+e*e}static sqrDistanceCoords(t,i,s,e){let n=s-t,r=e-i;return n*n+r*r}static distance(t,i){return Math.sqrt(Gi.sqrDistance(t,i))}dotProduct(t){return this.x*t.x+this.y*t.y}dotProductAbs(t){return Math.abs(this.x*t.x)+Math.abs(this.y*t.y)}crossProduct(t){return this.x*t.y-this.y*t.x}crossProductAbs(t){return(0,e.g)(0),0}rotateDirect(t,i){let s=this.x*t-this.y*i,e=this.x*i+this.y*t;this.x=s,this.y=e}rotateReverse(t,i){let s=this.x*t+this.y*i,e=-this.x*i+this.y*t;this.x=s,this.y=e}leftPerpendicularThis(){let t=this.x;this.x=-this.y,this.y=t}leftPerpendicularOther(t){let i=t.x;this.x=-t.y,this.y=i}rightPerpendicularThis(){let t=this.x;this.x=this.y,this.y=-t}rightPerpendicularOther(t){let i=t.x;this.x=t.y,this.y=-i}equals(t){return this.x===t.x&&this.y===t.y}notequals(t){return this.x!==t.x||this.y!==t.y}not(){return!this.x&&!this.y}gt(t){return this.y>t.y||this.y===t.y&&this.x>t.x}gte(t){return!this.lt(t)}lt(t){return this.y<t.y||this.y===t.y&&this.x<t.x}lte(t){return!this.gt(t)}subThis(t){return this.x-=t.x,this.y-=t.y,this}divThis(t){return this.x/=t,this.y/=t,this}add(t){return new Gi(this.x+t.x,this.y+t.y)}sub(t){return new Gi(this.x-t.x,this.y-t.y)}negateThis(){return this.x=-this.x,this.y=-this.y,this}negate(){return new Gi(-this.x,-this.y)}mul(t){return new Gi(this.x*t,this.y*t)}mulThis(t){return this.x*=t,this.y*=t,this}divide(t){return new Gi(this.x/t,this.y/t)}setNAN(){this.x=this.y=NaN}isNAN(){return Number.isNaN(this.x)||Number.isNaN(this.y)}static getNAN(){return new Gi(NaN,NaN)}isFinite(){return Number.isFinite(this.x)&&Number.isFinite(this.y)}isZero(){return 0===this.x&&0===this.y}norm(t){switch(t){case 0:{let t=Math.abs(this.x),i=Math.abs(this.y),s=t-i;return s>=0?t:s<=0?i:NaN}case 1:return Math.abs(this.x)+Math.abs(this.y);case 2:return Math.sqrt(this.x*this.x+this.y*this.y);default:(0,e.b)("norm")}}getQuarter(){return Gi.getQuarterCoords(this.x,this.y)}static getQuarterCoords(t,i){return t>0?i>=0?1:4:i>0?2:0===t?4:3}static compareVectors(t,i){let s=t.getQuarter(),e=i.getQuarter();return e===s?Gi.orientationRobustImpl(Gi.construct(0,0),i,t,!0):s<e?-1:1}static compareVectorsOrigin(t,i,s){let e=i.sub(t),n=s.sub(t),r=e.getQuarter(),h=n.getQuarter();return h===r?Gi.orientationRobustImpl(t,s,i,!0):r<h?-1:1}static orientationRobust(t,i,s){return Gi.orientationRobustImpl(t,i,s,!1)}static orientationRobustEx(t,i,s,e){if(t.equals(i)||s.equals(e))return 0;let n=i.x-t.x,r=i.y-t.y,h=e.x-s.x,u=e.y-s.y;{let t=Gi.getQuarterCoords(n,r)-1,i=Gi.getQuarterCoords(h,u)-1,s=Gi.d[t][i];if(0!==s)return s}let a=n*u,m=r*h,o=4*2**-52*(Math.abs(a)+Math.abs(m)),l=a-m;return Math.abs(l)>=o?l<0?-1:+(l>0):Gi.orientationRobustExMp(t,i,s,e)}static orientationRobustExMp(t,i,s,e){let n=Ii.constructDouble(i.x),r=Ii.constructDouble(e.x);n.subThis(Ii.constructDouble(t.x)),r.subThis(Ii.constructDouble(s.x));let h=Ii.constructDouble(i.y),u=Ii.constructDouble(e.y);return h.subThis(Ii.constructDouble(t.y)),u.subThis(Ii.constructDouble(s.y)),n.mulThis(u),h.mulThis(r),n.subThis(h),n.LZ()?-1:+!!n.GZ()}static orientationNonRobust(t,i,s){let e=i.sub(t).crossProduct(s.sub(t));return e<0?-1:+(e>0)}static orientationRobustImpl(t,i,s,e){if(i.isEqualPoint2D(t)||s.isEqualPoint2D(t)||i.isEqualPoint2D(s))return 0;let n=i.x-t.x,r=i.y-t.y,h=s.x-t.x,u=s.y-t.y;if(!e){let t=Gi.getQuarterCoords(n,r)-1,i=Gi.getQuarterCoords(h,u)-1,s=Gi.d[t][i];if(0!==s)return s}let a=(Math.abs(n)+Math.abs(r)+Math.abs(h)+Math.abs(u))*(Math.abs(i.x)+Math.abs(i.y)+Math.abs(s.x)+Math.abs(s.y))*8*2**-52,m=n*u-r*h;if(Math.abs(m)>a)return m<0?-1:1;if(y(i.x,t.x)&&y(s.y,t.y)&&y(i.y,t.y)&&y(s.x,t.x)&&x(n,u)&&x(r,h)){let t=n*u,i=r*h;if(y(t,i)){let s=t-i;return s<0?-1:+(s>0)}}return Gi.orientationRobustMp(t,i,s)}static orientationRobustMp(t,i,s){let e=Ii.constructDouble(i.x),n=Ii.constructDouble(s.x);{let i=Ii.constructDouble(t.x);e.subThis(i),n.subThis(i)}let r=Ii.constructDouble(s.y),h=Ii.constructDouble(i.y);{let i=Ii.constructDouble(t.y);r.subThis(i),h.subThis(i)}return e.mulThis(r),h.mulThis(n),e.subThis(h),e.LZ()?-1:+!!e.GZ()}static inCircleRobust(t,i,s,e){let n=new l,r=new l;n.set(t.x),n.subThis(e.x),r.set(t.y),r.subThis(e.y);let h=new l,u=new l;h.set(i.x),h.subThis(e.x),u.set(i.y),u.subThis(e.y);let a=new l,m=new l;a.set(s.x),a.subThis(e.x),m.set(s.y),m.subThis(e.y);let o=n.mulE(u).subE(r.mulE(h)),x=h.mulE(m).subE(u.mulE(a)),c=n.mulE(m).subE(r.mulE(a)),y=n.mulE(n).addE(r.mulE(r)),d=h.mulE(h).addE(u.mulE(u)),v=a.mulE(a).addE(m.mulE(m)),_=y.mulE(x).subE(d.mulE(c)).addE(v.mulE(o));if(!_.isFuzzyZero()){let t=_.value();return t<0?-1:+(t>0)}return Gi.inCircleRobustMp(t,i,s,e)}static inCircleRobustMp(t,i,s,e){do{if(!(y(t.x,e.x)&&y(t.y,e.y)&&y(i.x,e.x)&&y(i.y,e.y)&&y(s.x,e.x)&&y(s.y,e.y)))break;let n=t.x-e.x,r=t.y-e.y,h=i.x-e.x,u=i.y-e.y,a=s.x-e.x,m=s.y-e.y;if(!(x(n,u)&&x(r,h)&&x(h,m)&&x(u,a)&&x(n,m)&&x(r,a)&&x(n,n)&&x(r,r)&&x(h,h)&&x(u,u)&&x(a,a)&&x(m,m)))break;let o=n*u,l=r*h,d=h*m,v=u*a,_=n*m,f=r*a,p=n*n,b=r*r,N=h*h,g=u*u,E=a*a,M=m*m;if(!(y(o,l)&&y(d,v)&&y(_,f)&&c(p,b)&&c(N,g)&&c(E,M)))break;let T=o-l,w=d-v,D=_-f,C=p+b,P=N+g,q=E+M;if(!x(C,w)||!x(P,D)||!x(q,T))break;let I=C*w,A=P*D,z=q*T;if(!y(I,A))break;let S=I-A;if(!c(S,z))break;let L=S+z;return L<0?-1:+(L>0)}while(0);let n=Ii.constructDouble(e.x),r=Ii.constructDouble(e.y),h=Ii.constructDouble(t.x),u=Ii.constructDouble(t.y);h.subThis(n),u.subThis(r);let a=Ii.constructDouble(i.x),m=Ii.constructDouble(i.y);a.subThis(n),m.subThis(r);let o=Ii.constructDouble(s.x),l=Ii.constructDouble(s.y);o.subThis(n),l.subThis(r);let d=h.mul(m).sub(u.mul(a)),v=a.mul(l).sub(m.mul(o)),_=h.mul(l).sub(u.mul(o)),f=h.mul(h).add(u.mul(u)),p=a.mul(a).add(m.mul(m)),b=o.mul(o).add(l.mul(l)),N=f.mul(v).sub(p.mul(_)).add(b.mul(d));return N.LZ()?-1:+!!N.GZ()}static inCircleRobustMp3Point(t,i,s){let e=Ii.constructDouble(t.x),n=Ii.constructDouble(t.y),r=Ii.constructDouble(i.x),h=Ii.constructDouble(i.y),u=Ii.constructDouble(s.x),a=Ii.constructDouble(s.y),m=u.mul(u).add(a.mul(a)).sub(u.mul(e).add(a.mul(n)).add(u.mul(r)).add(a.mul(h))).add(e.mul(r).add(n.mul(h)));return m.LZ()?-1:+!!m.GZ()}static inCircleRobust3Point(t,i,s){let e=new l(t.x),n=new l(t.y),r=new l(i.x),h=new l(i.y),u=new l(s.x),a=new l(s.y),m=u.mulE(u).addE(a.mulE(a)).subE(u.mulE(e).addE(a.mulE(n)).addE(u.mulE(r)).addE(a.mulE(h))).addE(e.mulE(r).addE(n.mulE(h)));if(!m.isFuzzyZero()){let t=m.value();return t<0?-1:+(t>0)}return Gi.inCircleRobustMp3Point(t,i,s)}static calculateCircleCenterFromThreePoints(t,i,s){if(t.equals(s)||t.equals(i)||s.equals(i))return Gi.getNAN();let e=function(t,i,s){let e=new l(i.x);e.subThis(t.x);let n=new l(i.y);n.subThis(t.y);let r=new l(s.x);r.subThis(t.x);let h=new l(s.y);h.subThis(t.y);let u=e.clone();u.mulThisE(h);let a=n.clone();if(a.mulThisE(r),u.subThisE(a),0===u.value())return Gi.getNAN();u.mulThis(2);let m=e.clone();m.mulThisE(e);let o=n.clone();o.mulThisE(n);let x=m.clone();x.addThisE(o);let c=r.clone();c.mulThisE(r);let y=h.clone();y.mulThisE(h);let d=c.clone();d.addThisE(y);let v=n.clone();v.mulThisE(d),a=h.clone(),a.mulThisE(x),v.subThisE(a),v.divThisE(u);let _=e.clone();_.mulThisE(d),a=r.clone(),a.mulThisE(x),_.subThisE(a),_.divThisE(u);let f=Gi.construct(t.x-v.value(),t.y+_.value()),p=t.sub(f).length(),b=i.sub(f).length(),N=s.sub(f).length(),g=1e-15*(p+Math.abs(t.x)+Math.abs(i.x)+Math.abs(s.x)+Math.abs(t.y)+Math.abs(i.y)+Math.abs(s.y));return Math.abs(p-b)<=g&&Math.abs(p-N)<=g&&v.eps()<g&&_.eps()<g?f:Gi.getNAN()}(t,i,s);return e.isNAN()?function(t,i,s){let e=Ii.constructDouble(i.x);e.subDoubleThis(t.x);let n=Ii.constructDouble(i.y);n.subDoubleThis(t.y);let r=Ii.constructDouble(s.x);r.subDoubleThis(t.x);let h=Ii.constructDouble(s.y);h.subDoubleThis(t.y);let u=e.clone();u.mulThis(h);let a=n.clone();if(a.mulThis(r),u.subThis(a),u.isZero())return Gi.getNAN();u.mulDoubleThis(2);let m=e.clone();m.mulThis(e);let o=n.clone();o.mulThis(n);let l=m.clone();l.addThis(o);let x=r.clone();x.mulThis(r);let c=h.clone();c.mulThis(h);let y=x.clone();y.addThis(c);let d=n.clone();d.mulThis(y),a=h.clone(),a.mulThis(l),d.subThis(a),d.divThis(u);let v=e.clone();return v.mulThis(y),a=r.clone(),a.mulThis(l),v.subThis(a),v.divThis(u),Gi.construct(t.x-d.value(),t.y+v.value())}(t,i,s):e}static calculateAngle(t,i){return Math.atan2(t.crossProduct(i),t.dotProduct(i))}static isBisectorRobust(t,i,s){return(0,e.g)(0),!1}static size(){return 2}get 0(){return this.x}get 1(){return this.y}set 0(t){this.x=t}set 1(t){this.y=t}static c_compare_zorder_xx=[2,0];static c_compare_zorder_yy=[1,0];static compareZorder(t,i){let s=Gi.c_compare_zorder_xx[+(t.x<0)]|Gi.c_compare_zorder_yy[+(t.y<0)],e=Gi.c_compare_zorder_xx[+(i.x<0)]|Gi.c_compare_zorder_yy[+(i.y<0)];if(s===e){let s=0,e=0;for(let n=0;n<2;++n){let r=Li(t[n],i[n]);r>s&&(s=r,e=n)}return t[e]<i[e]}return s<e}static lerp(t,i,s){let e=new Gi;return L(t,i,s,e),e}static getClosestCoordinate(t,i,s,e=!1){let n=Gi.getNAN();n.setSub(i,t);let r=n.sqrLength();if(0===r)return.5;if(i.isEqualPoint2D(s))return 1;let h=Gi.getNAN();h.setSub(s,t);let u=h.dotProduct(n)/r;return e||(u<0?u=0:u>1&&(u=1)),u}static intersectLinesAtOnePoint(t,i,s,e){if(t.equals(i)||s.equals(e))return Gi.getNAN();let n=i.x-t.x,r=s.x-e.x,h=i.y-t.y,u=s.y-e.y,a=n*u-r*h;if(!a)return Gi.getNAN();let m=a;if(0===m)return Gi.getNAN();let o=(s.x-t.x)*u-(s.y-t.y)*r;o/=m;let l=new Gi;return L(t,i,o,l),l.isFinite()?l:Gi.getNAN()}toString(){return`[${this.x},${this.y}]`}}s.d(i,["T",0,v,"a7",0,_,"aC",0,Lt,"aD",0,zi,"ad",0,o,"ae",0,Ai,"aq",0,f,"ar",0,Si,"k",0,1e16,"l",0,Zt,"n",0,Rt])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6870],{86870(e,t,s){s.d(t,{B:()=>w,s:()=>p});var i,r,n=s(32198),m=s(55537),l=s(61691),a=s(95213),h=s(83661),o=s(88885),u=s(79187),_=s(11878),c=s(70007),f=s(39117),g=s(98783),d=s(64523);function p(e){return e>=0?e>h.k?h.k:e:0}function P(e,t,s,i,r,n){return{m_from:e.clone(),m_to:t.clone(),m_center:s.clone(),m_next:r,m_type:i}}function y(e,t,s,i,r){return{m_from:e.clone(),m_to:t.clone(),m_next:s,m_type:4,m_center:new h.P}}(r=i||={})[r.enumDummy=256]="enumDummy",r[r.enumLine=1]="enumLine",r[r.enumArc=2]="enumArc",r[r.enumMiter=8]="enumMiter",r[r.enumBevel=16]="enumBevel",r[r.enumJoinMask=26]="enumJoinMask",r[r.enumConnectionMask=27]="enumConnectionMask";class b extends l.G{m_parent;m_index=0;m_bufferedPolygon=null;m_mp;m_spatialReference;m_distance;m_densifyDist;m_x=0;m_y=0;m_miterLimit;m_joins;m_caps;m_maxVertexInCompleteCircle;m_progressTracker;constructor(e,t,s,i,r,n,m,l,a,h){super(),this.m_progressTracker=h,this.m_parent=e,this.m_mp=t,this.m_distance=s,this.m_spatialReference=i,this.m_densifyDist=l,this.m_maxVertexInCompleteCircle=a,this.m_joins=r,this.m_caps=n,this.m_miterLimit=m}next(){let e=new a.P;for(;;){if(this.m_index===this.m_mp.getPointCount())return null;if(1===this.m_caps)return this.m_index=this.m_mp.getPointCount(),new o.P({vd:this.m_mp.getDescription()});if(this.m_mp.getPointByVal(this.m_index,e),this.m_index++,!e.isEmpty())break}let t,s=!1;if(null===this.m_bufferedPolygon&&(this.m_x=e.getX(),this.m_y=e.getY(),this.m_bufferedPolygon=this.m_parent.buffer(e,this.m_distance,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_densifyDist,this.m_maxVertexInCompleteCircle),s=!0),t=this.m_index<this.m_mp.getPointCount()?this.m_bufferedPolygon.clone():this.m_bufferedPolygon,!s){let s=new _.T,i=e.getX()-this.m_x,r=e.getY()-this.m_y;s.setShiftCoords(i,r),t.applyTransformation(s)}return(0,a.s)(t,0),t}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class x extends l.G{m_polyline;m_currentPathIndex=0;constructor(e){super(),this.m_polyline=e}next(){if(!this.m_polyline)return null;let e=this.m_polyline.getImpl(),t=e.getPathCount();if(this.m_currentPathIndex<t){let t=this.m_currentPathIndex;if(this.m_currentPathIndex++,!e.isClosedPathInXYPlane(t)){let s=e.getXY(e.getPathEnd(t)-1);for(;this.m_currentPathIndex<e.getPathCount();){let t=e.getXY(e.getPathStart(this.m_currentPathIndex));if(e.isClosedPathInXYPlane(this.m_currentPathIndex)||!t.equals(s))break;s=e.getXY(e.getPathEnd(this.m_currentPathIndex)-1),this.m_currentPathIndex++}}if(0===t&&this.m_currentPathIndex===this.m_polyline.getPathCount()){let e=this.m_polyline;return this.m_polyline=null,e}let s=new o.a({vd:this.m_polyline.getDescription()});s.addPath(this.m_polyline,t,!0);for(let i=t+1;i<this.m_currentPathIndex;i++)s.addSegmentsFromPath(this.m_polyline,i,0,e.getSegmentCountPath(i),!1);return this.m_currentPathIndex===this.m_polyline.getPathCount()&&(this.m_polyline=null),s}return null}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class C extends l.G{m_bufferer;m_geoms;m_geometry=null;m_index=0;m_bFilter;constructor(e,t,s){super(),this.m_bufferer=e,this.m_geoms=t,this.m_index=0,this.m_bFilter=s}next(){if(null===this.m_geometry&&(this.m_index=0,this.m_geometry=this.m_geoms.next(),!this.m_geometry))return null;let e=this.m_geometry.getImpl();if(this.m_index<e.getPathCount()){let e=this.m_index;return this.m_index++,this.m_bufferer.bufferPolylinePath(this.m_geometry,e,this.m_bFilter)}return this.m_geometry=null,this.next()}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class D extends l.G{m_bufferer;m_index=0;constructor(e){super(),this.m_bufferer=e}next(){let e=this.m_bufferer.m_geometry;if(this.m_index<e.getPathCount()){let t,s=this.m_index,i=e.calculateRingArea2D(this.m_index);for((0,m.g)(i>0),this.m_index++;this.m_index<e.getPathCount()&&!(e.calculateRingArea2D(this.m_index)>0);)this.m_index++;return t=0===s&&this.m_index===e.getPathCount()?this.m_bufferer.bufferPolygonImpl(e,0,e.getPathCount()):this.m_bufferer.bufferPolygonImpl(e,s,this.m_index),t}return null}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class w{m_geometry=null;m_densificator;m_bufferCommands=[];m_originalGeomType=m.G.enumUnknown;m_progressTracker;m_maxVertexInCompleteCircle=-1;m_circleTemplateSize=-1;m_oldCircleTemplateSize=0;m_spatialReference=null;m_tolerance=new a.C(0,0);m_smallTolerance=new a.C(0,0);m_filterTolerance=0;m_densifyDist=-1;m_distance=NaN;m_absDistance=0;m_absDistanceReversed=0;m_dA=-1;m_miterLimit=4;m_joins=0;m_caps=0;m_bRoundBuffer=!0;m_bOutputLoops=!0;m_bFilter=!0;m_circleTemplate=[];m_leftStack=[];m_middleStack=[];m_helperLine1=new o.L;m_helperLine2=new o.L;m_helperArray=[];m_progressCounter=0;constructor(e){this.m_densificator=o.D.constructDefault(e),this.m_progressTracker=e}buffer(e,t,s,i,r,n,l,_){if(e||(0,m.a)("Geometry.Bufferer.Impl.Buffer"),l<0&&(0,m.a)("Geometry.Bufferer.Impl.Buffer"),(0,m.k)(e.getGeometryType())&&(0,m.t)("Unsupported geometry type."),e.isEmpty()||(this.m_joins=i,this.m_caps=r,this.m_bRoundBuffer=!1,this.m_miterLimit=n,this.m_originalGeomType=e.getGeometryType(),(0,m.l)(this.m_originalGeomType)?this.m_bRoundBuffer=0===this.m_joins:(0,m.f)(this.m_originalGeomType)?this.m_bRoundBuffer=0===this.m_caps:(0,m.m)(this.m_originalGeomType)&&(this.m_bRoundBuffer=0===this.m_joins&&0===this.m_caps),this.m_bFilter=this.m_bRoundBuffer,this.m_geometry=(0,c.c)(e),this.m_geometry.isEmpty()))return new o.P({vd:e.getDescription()});let f=new u.Envelope2D;this.m_geometry.queryLooseEnvelope(f),t>0&&f.inflateCoords(t,t),this.m_tolerance=(0,a.c)(s,f,!0),this.m_smallTolerance=(0,a.c)(null,f,!0),_<=0&&(_=96),this.m_spatialReference=s,this.m_distance=t,this.m_absDistance=Math.abs(this.m_distance),this.m_absDistanceReversed=0===this.m_absDistance?0:1/this.m_absDistance,Number.isNaN(l)||0===l?l=1e-5*this.m_absDistance:l>.5*this.m_absDistance&&(l=.5*this.m_absDistance),_<12&&(_=12);let g=Math.abs(t)*(1-Math.cos(Math.PI/_));if(g>l)l=g;else if(0!==t){let e=Math.PI/Math.acos(1-l/Math.abs(t));e<_-1&&(_=Math.trunc(e))<12&&(_=12,l=Math.abs(t)*(1-Math.cos(Math.PI/_)))}this.m_densifyDist=l,this.m_maxVertexInCompleteCircle=_,this.m_filterTolerance=this.m_bRoundBuffer?Math.min(this.m_smallTolerance.total(),.25*this.m_densifyDist):0,this.m_circleTemplateSize=this.calcN(),this.m_circleTemplateSize!==this.m_oldCircleTemplateSize&&(this.m_circleTemplate.length=0,this.m_oldCircleTemplateSize=this.m_circleTemplateSize),this.m_densifyDist>0&&(0,m.n)(this.m_geometry)&&(this.m_geometry=this.m_densificator.densifyEx(this.m_geometry,0,this.m_densifyDist,0,0!==this.m_joins,(0,h.i)()));let d=this.bufferImpl();return this.m_geometry=null,d}generateCircleTemplate(){if(this.m_circleTemplate.length)return;let e=this.m_circleTemplateSize,t=Math.trunc((e+3)/4),s=.5*Math.PI/t;this.m_dA=s,this.m_circleTemplate=(0,h.m)(h.P,4*t);let i=Math.cos(s),r=Math.sin(s),n=h.P.construct(0,1);for(let e=0;e<t;e++)this.m_circleTemplate[e+0*t].setCoords(n.y,-n.x),this.m_circleTemplate[e+1*t].setCoords(-n.x,-n.y),this.m_circleTemplate[e+2*t].setCoords(-n.y,n.x),this.m_circleTemplate[e+3*t].setCoords(n.x,n.y),n.rotateReverse(i,r)}bufferImpl(){let e=this.m_geometry.getGeometryType();if((0,m.h)(e)){let e=new o.a({vd:this.m_geometry.getDescription()});return e.addSegment(this.m_geometry,!0),this.m_geometry=e,this.bufferImpl()}if(this.m_distance<=this.m_tolerance.total()){if(!(0,m.l)(e))return new o.P({vd:this.m_geometry.getDescription()});if(this.m_distance<0){let e=new u.Envelope2D;if(this.m_geometry.queryEnvelope(e),e.width()<=2*this.m_absDistance||e.height()<=2*this.m_absDistance)return new o.P({vd:this.m_geometry.getDescription()})}}switch(this.m_geometry.getGeometryType()){case m.G.enumPoint:return this.bufferPoint();case m.G.enumMultiPoint:return this.bufferMultiPoint();case m.G.enumPolyline:return this.bufferPolyline();case m.G.enumPolygon:return this.bufferPolygon();case m.G.enumEnvelope:return this.bufferEnvelope();default:(0,m.d)("")}}bufferPolyline(){if(this.isDegenerateGeometry(this.m_geometry)){let e=new a.P;this.m_geometry.getPointByVal(0,e);let t=new u.Envelope2D;return this.m_geometry.queryEnvelope(t),e.setXY(t.getCenter()),this.bufferDegeneratePath(e,!0)}let e=this.m_geometry,t=this.m_geometry.getDescription();this.m_geometry=null;let s,i,r=new x(e);s=0===this.m_joins?(new d.O).executeMany(r,.25*this.m_densifyDist,!1,this.m_progressTracker):r,i=this.m_bRoundBuffer?(new g.O).executeMany(s,null,!0,this.m_progressTracker):s;let n=new C(this,i,this.m_bFilter),m=(new f.a5).executeMany(n,this.m_spatialReference,this.m_progressTracker,2),l=(new f.J).executeMany(m,this.m_spatialReference,!1,this.m_progressTracker).next();return null===l?new o.P({vd:t}):l}bufferPolygon(){if(0===this.m_distance)return this.m_geometry;this.generateCircleTemplate();let e=(new f.J).execute(this.m_geometry,null,!1,this.m_progressTracker);if(this.m_distance<0){if(this.m_geometry=e,this.m_geometry.isEmpty())return this.m_geometry;let t=this.m_geometry,s=this.bufferPolygonImpl(t,0,t.getPathCount());return(new f.J).execute(s,this.m_spatialReference,!1,this.m_progressTracker)}{if(this.m_geometry=e,this.isDegenerateGeometry(this.m_geometry)){let e=new a.P;this.m_geometry.getPointByVal(0,e);let t=new u.Envelope2D;return this.m_geometry.queryEnvelope(t),e.setXY(t.getCenter()),this.bufferDegeneratePath(e,!0)}let t=new D(this),s=(new f.a5).executeMany(t,this.m_spatialReference,this.m_progressTracker,2),i=(new f.J).executeMany(s,this.m_spatialReference,!1,this.m_progressTracker).next();return null===i?new o.P({vd:this.m_geometry.getDescription()}):i}}bufferPolygonImpl(e,t,s){let i=e,r=i.getImpl(),n=new o.P({vd:e.getDescription()});for(let m=t;m<s;m++){if(r.getPathSize(m)<1)continue;let t=r.calculateRingArea2D(m),s=new u.Envelope2D;if(r.queryPathEnvelope(m,s),this.m_distance>0)if(t>0)if(this.isDegeneratePath(r,m)){let e=new a.P;r.getPointByVal(r.getPathStart(m),e),e.setXY(s.getCenter()),n.add(this.bufferDegeneratePath(e,!0),!1)}else{let t=new o.a({vd:e.getDescription()}),s=t.getImpl();if((0,o.i)(this.m_geometry,m)){let e=this.bufferConvexPath(i,m);n.add(e,!1)}else{this.bufferClosedPath(this.m_geometry,m,s,this.m_bRoundBuffer,1);let e=this.bufferCleanup(t);n.add(e,!1)}}else{if(s.width()+this.m_tolerance.total()<=2*this.m_absDistance||s.height()+this.m_tolerance.total()<=2*this.m_absDistance)continue;let t=new o.a({vd:e.getDescription()}),i=t.getImpl();if(this.bufferClosedPath(this.m_geometry,m,i,this.m_bRoundBuffer,1),!t.isEmpty()){let e=s,r=Math.max(1,this.m_absDistance),m=e.clone();m.inflateCoords(r,r),i.addEnvelope(m,!1);let l=this.bufferCleanup(t);n.reserve(n.getPointCount()+l.getPointCount()-4),S(l,n,m,!0)}}else if(t>0){if(s.width()+this.m_tolerance.total()<=2*this.m_absDistance||s.height()+this.m_tolerance.total()<=2*this.m_absDistance)continue;let t=new o.a({vd:e.getDescription()}),i=t.getImpl();if(this.bufferClosedPath(this.m_geometry,m,i,this.m_bRoundBuffer,-1),!t.isEmpty()){let e=new u.Envelope2D;i.queryLooseEnvelope(e);let s=Math.max(1,this.m_absDistance),r=e.clone();r.inflateCoords(s,s),i.addEnvelope(r,!1),S(this.bufferCleanup(t),n,r,!0)}}else{let t=new o.a({vd:e.getDescription()}),s=t.getImpl();this.bufferClosedPath(this.m_geometry,m,s,this.m_bRoundBuffer,-1);let i=this.bufferCleanup(t);for(let e=0,t=i.getPathCount();e<t;e++)n.addPath(i,e,!0)}}if(this.m_distance>0)return n.getPathCount()>1?this.bufferCleanup(n):T(n);{let e=new u.Envelope2D;if(n.queryLooseEnvelope(e),n.isEmpty())return T(n);{let t=Math.max(1,this.m_absDistance),s=e.clone();s.inflateCoords(t,t),n.addEnvelope(s,!1);let i=this.bufferCleanup(n);n=new o.P;let r=new o.P({vd:i.getDescription()});return S(i,r,s,!1),T(r)}}}bufferPoint(){return this.bufferPointImpl(this.m_geometry)}bufferPointImpl(e){let t=new o.P({vd:e.getDescription()});return 0===this.m_caps?(this.addCircle(t.getImpl(),e),this.setStrongSimple(t)):2===this.m_caps?(this.addSquare(t.getImpl(),e),this.setStrongSimple(t)):t}bufferDegeneratePath(e,t){let s=new o.P({vd:e.getDescription()});return t&&0===this.m_joins||!t&&0===this.m_caps?(this.addCircle(s.getImpl(),e),this.setStrongSimple(s)):t||2!==this.m_caps?s:(this.addSquare(s.getImpl(),e),this.setStrongSimple(s))}bufferMultiPoint(){let e=new b(this,this.m_geometry,this.m_distance,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_densifyDist,this.m_maxVertexInCompleteCircle,this.m_progressTracker);return(new f.a5).executeMany(e,this.m_spatialReference,this.m_progressTracker,2).next()}bufferEnvelope(){let e=new o.P({vd:this.m_geometry.getDescription()});if(this.m_distance<=0){if(0===this.m_distance)e.addEnvelope(this.m_geometry,!1),v(this.m_geometry,this.m_tolerance.total())&&(e=this.setStrongSimple(e));else{let t=new a.E;this.m_geometry.queryEnvelope(t),t.inflateCoords(this.m_distance,this.m_distance),e.addEnvelope(t,!1),v(t,this.m_tolerance.total())&&(e=this.setStrongSimple(e))}return e}if(1===this.m_joins){let t=new a.E({copy:this.m_geometry});return t.inflateCoords(this.m_absDistance,this.m_absDistance),e.addEnvelope(t,!1),e}let t=this.m_geometry.clone();if(0===t.width()||0===t.height()){if(0===t.width()&&0===t.height()){let e=new a.P({vd:this.m_geometry.getDescription()});return t.queryCornerByVal(0,e),this.m_geometry=e,this.bufferImpl()}let e=new o.a({vd:this.m_geometry.getDescription()}),s=new a.P;return t.queryCornerByVal(0,s),e.startPathPoint(s),t.queryCornerByVal(2,s),e.lineToPoint(s),this.m_geometry=e,this.bufferImpl()}return e.addEnvelope(this.m_geometry,!1),this.m_geometry=e,this.bufferConvexPath(e,0)}bufferConvexPath(e,t){this.generateCircleTemplate();let s=e.hasAttribute(10),r=new o.P({vd:e.getDescription()}),n=r.getImpl();r.reserve((this.m_circleTemplate.length/10+4)*e.getPathSize(t));let l=new h.P,a=new h.P,u=new h.P,_=new h.P(0,0),c=new h.P,f=new h.P,g=e.getImpl(),d=e.getPathSize(t),p=e.getPathStart(t);for(let r=0,h=e.getPathSize(t);r<h;r++){let e=g.getXY(p+r),t=g.getXY(p+(r+1)%d),h=g.getXY(p+(r+2)%d);c.setSub(t,e),0===c.length()&&(0,m.d)("");let o=s&&!!(1&g.getAttributeAsInt(10,(r+1)%d,0));c.normalize();let P=c.clone();c.leftPerpendicularThis(),c.scale(this.m_absDistance),l.setAdd(c,e),a.setAdd(c,t),0===r?n.startPath(l):n.lineTo(l),n.lineTo(a),f.setSub(h,t),0===f.length()&&(0,m.d)(""),f.normalize();let y=f.clone();f.leftPerpendicularThis(),f.scale(this.m_absDistance),u.setAdd(f,t);let b=i.enumArc,x=o?0:this.m_joins;if(2===x)b=i.enumBevel;else if(1===x){let e=-P.crossProduct(y);_.setSub(P,y),_.scale(this.m_absDistance/e),_.length()<this.m_miterLimit*this.m_absDistance?(_.addThis(t),b=i.enumMiter):b=i.enumBevel}else _.assign(t);this.addJoin(b,n,_,a,u,!1,!1)}return T(r)}bufferPolylinePath(e,t,s){this.generateCircleTemplate();let i,r=e,n=r.getImpl();if(n.getPathSize(t)<1)return null;if(i=this.m_bRoundBuffer?n.isClosedPathInXYPlane(t):n.isClosedPath(t),this.isDegeneratePath(n,t)&&this.m_distance>0){let e=new a.P;n.getPointByVal(n.getPathStart(t),e);let s=new u.Envelope2D;return n.queryPathEnvelope(t,s),e.setXY(s.getCenter()),this.bufferDegeneratePath(e,i)}let m=new o.a({vd:e.getDescription()});m.reserve((Math.trunc(this.m_circleTemplate.length/10)+4)*n.getPathSize(t));let l=m.getImpl();return i?2!==this.bufferClosedPath(r,t,l,s,1)&&this.bufferClosedPath(r,t,l,s,-1):this.bufferOpenPath(r,t,l,s),this.bufferCleanup(m)}progress_(){}bufferCleanup(e,t=!1){let s=t?this.m_tolerance:this.m_smallTolerance;return(0,f.ab)(e,s,!0,!t,-1,this.m_progressTracker,0,!1)}calcN(){if(0===this.m_densifyDist)return this.m_maxVertexInCompleteCircle;let e=1-this.m_densifyDist*Math.abs(this.m_absDistanceReversed),t=4;return t=e<-1?4:2*Math.PI/Math.acos(e)+.5,t<4?t=4:t>this.m_maxVertexInCompleteCircle&&(t=this.m_maxVertexInCompleteCircle),Math.trunc(t)}addJoin(e,t,s,r,n,m,l){if(this.generateCircleTemplate(),m&&=(t.startPath(r),!1),e===i.enumBevel)return void(l&&t.lineTo(n));if(e===i.enumMiter){let e=s.clone();return t.lineTo(e),void(l&&t.lineTo(n))}let a=new h.P;a.setSub(r,s),a.scale(this.m_absDistanceReversed);let o=new h.P;o.setSub(n,s),o.scale(this.m_absDistanceReversed);let u=Math.atan2(a.y,a.x)/this.m_dA;u<0&&(u=this.m_circleTemplate.length+u),u=this.m_circleTemplate.length-u;let _=Math.atan2(o.y,o.x)/this.m_dA;_<0&&(_=this.m_circleTemplate.length+_),_=this.m_circleTemplate.length-_,_<u&&(_+=this.m_circleTemplate.length);let c=Math.trunc(_),f=Math.ceil(u),g=this.m_circleTemplate[f%this.m_circleTemplate.length].clone();g.scaleAddThis(this.m_absDistance,s);let d=10*this.m_tolerance.total();g.sub(r).length()<d&&(f+=1),g=this.m_circleTemplate[c%this.m_circleTemplate.length].clone(),g.scaleAddThis(this.m_absDistance,s),g.sub(n).length()<d&&--c;let p=c-f;p++;for(let e=0,i=f%this.m_circleTemplate.length;e<p;e++,i=(i+1)%this.m_circleTemplate.length)g=this.m_circleTemplate[i].clone(),g.scaleAddThis(this.m_absDistance,s),t.lineTo(g),this.progress_();l&&t.lineTo(n)}bufferClosedPath(e,t,s,i,r){let n=new o.E,m=n.addPathFromMultiPath(e,t,!0);return this.bufferClosedPathImpl(n,m,s,i,r)}bufferClosedPathImpl(e,t,s,r,l){let o=e.getFirstVertex(e.getFirstPath(t)),u=new a.P;if(e.queryPoint(o,u),e.filterClosePoints(this.m_filterTolerance,!1,!1,!1,-1),e.getPointCount(t)<2)return l<0?0:(this.m_bRoundBuffer&&this.addCircle(s,u),2);(0,m.g)(-1!==e.getFirstPath(t)),(0,m.g)(-1!==e.getFirstVertex(e.getFirstPath(t)));let c=e.getXY(e.getFirstVertex(e.getFirstPath(t))),f=new _.T;if(f.setShift(c.negate()),e.applyTransformation(f),r){let i=function(e,t,s,i,r,m,l){return function(e,t,s,i,r,m,l){let a={stack:[],error:void 0,hasError:!1};try{let i=e.getFirstPath(t),o=e.createUserIndex();(0,n.mS)(a,(0,h.h)(()=>{e.removeUserIndex(o)},!1),!1),function(e,t,s,i){let r=-1,n=new h.P,m=new h.P,l=new h.P;for(let s=0,a=e.getPathSize(i),h=e.getFirstVertex(i);s<a;++s){-1===r&&(e.queryXY(h,m),r=e.getPrevVertex(h),-1!==r&&(e.queryXY(r,n),l.setSub(m,n),l.normalize()));let s=e.getNextVertex(h);if(-1===s)break;let i=e.getXY(s),a=i.sub(m);a.normalize(),-1!==r&&a.dotProduct(l)<-.99&&Math.abs(a.crossProduct(l))<1e-7&&e.setUserIndex(h,t,1),r=h,h=s,n.assign(m),m.assign(i),l.assign(a)}}(e,o,0,i);for(let t=0;t<100;++t){if(0===e.getPathSize(i))return 1;let t=e.getFirstVertex(i),n=e.getPathSize(i);if(n<3)return 1;e.isClosedPath(i)||--n;let m=0,a=!1;for(let i=0;i<n&&-1!==t;i++){let h=0,u=t;for(let m=1,a=Math.min(64,n-i);m<a;m++)if(u=e.getNextVertexEx(u,s),m>1){let i=k(e,o,t,u,s,r,l,64);if(-1===i)break;h+=i,n-=i}if(m+=h,a=h>0,a){let i=e.getPrevVertexEx(t,s);if(-1!==i){t=i,n++;continue}}t=e.getNextVertexEx(t,s)}if(0===m)break}return e.filterClosePoints(m,!1,!1,!1,-1),1}catch(e){a.error=e,a.hasError=!0}finally{(0,n.hk)(a)}}(e,t,s,0,r,m,l)}(e,t,l,0,this.m_absDistance,this.m_filterTolerance,this.m_densifyDist);if((0,m.g)(1===i),e.getPointCount(t)<2)return l<0?0:(this.addCircle(s,u),2)}let g=0!==this.m_joins&&e.getVertexDescription().hasAttribute(10);this.m_bufferCommands.length=0;let d=e.getFirstPath(t),p=e.getFirstVertex(d),b=1===l?e.getPrevVertex(p):e.getNextVertex(p),x=1===l?e.getNextVertex(p):e.getPrevVertex(p),C=!0,D=new h.P,w=new h.P,T=new h.P,v=new h.P,S=new h.P,I=new h.P,E=new h.P,M=new h.P,R=this.m_absDistance,G=e.getPathSize(d),V=new h.P(0,0);for(let t=0;t<G;t++){w.assign(e.getXY(x)),C&&(D.assign(e.getXY(p)),T.assign(e.getXY(b)),I.setSub(D,T),I.normalize(),M.leftPerpendicularOther(I),M.scale(R),v.setAdd(M,D));let t=g&&!!(1&e.getAttributeAsDbl(10,p,0));S.setSub(w,D),S.normalize(),E.leftPerpendicularOther(S),E.scale(R);let s=new h.P;s.setAdd(D,E);let r=I.crossProduct(S),n=I.dotProduct(S);if(r<0||n<0&&r<Math.abs(n)*2**-52*8){let e=!1,n=t?0:this.m_joins;if(1===n){let t=-r;V.setSub(I,S),V.scale(this.m_absDistance/t),V.length()<this.m_miterLimit*this.m_absDistance&&(V.addThis(D),e=!0),this.m_bufferCommands.push(P(v,s,V,e?i.enumMiter:i.enumBevel,this.m_bufferCommands.length+1))}else this.m_bufferCommands.push(P(v,s,D,0===n?i.enumArc:i.enumBevel,this.m_bufferCommands.length+1))}else v.equals(s)||(this.m_bufferCommands.push(y(v,D,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(y(D,s,this.m_bufferCommands.length+1)));let m=new h.P;m.setAdd(w,E),this.m_bufferCommands.push(P(s,m,D,i.enumLine,this.m_bufferCommands.length+1)),v.setCoordsPoint2D(m),M.setCoordsPoint2D(E),T.setCoordsPoint2D(D),D.setCoordsPoint2D(w),I.setCoordsPoint2D(S),b=p,p=x,C=!1,x=1===l?e.getNextVertex(p):e.getPrevVertex(p)}return this.m_bufferCommands.at(-1).m_next=0,this.processBufferCommands(s),f.setShift(c),s.applyTransformationToPath(f,s.getPathCount()-1),1}bufferOpenPath(e,t,s,r){if(this.m_bRoundBuffer){let i=new o.a({vd:e.getDescription()});return i.addPath(e,t,!1),i.addSegmentsFromPath(e,t,0,e.getSegmentCountPath(t),!1),this.bufferClosedPath(i,0,s,r,1)}let n=0,l=new o.a({vd:e.getDescription()}),u=new h.P(0,0);{let i=new o.E,r=i.addPathFromMultiPath(e,t,!1),m=i.getFirstVertex(i.getFirstPath(r)),h=new a.P;if(i.queryPoint(m,h),u.assign(h.getXY()),i.filterClosePoints(0,!1,!1,!1,-1),i.getPointCount(r)<2)return this.m_bRoundBuffer&&this.addCircle(s,h),2;let _=i.getGeometry(i.getFirstGeometry());l.addPath(_,0,!1),n=l.getPointCount()-1,l.addSegmentsFromPath(_,0,0,_.getSegmentCountPath(0)-1,!1)}let c=new o.E,f=c.addPathFromMultiPath(l,0,!0);(0,m.g)(-1!==c.getFirstPath(f)),(0,m.g)(-1!==c.getFirstVertex(c.getFirstPath(f)));let g=new _.T;g.setShift(u.negate()),c.applyTransformation(g),this.m_bufferCommands.length=0;let d=c.getFirstPath(f),p=0!==this.m_joins&&c.getVertexDescription().hasAttribute(10),b=c.getFirstVertex(d),x=c.getPrevVertex(b),C=c.getNextVertex(b),D=!0,w=new h.P,T=new h.P,v=new h.P,k=new h.P,S=new h.P,I=new h.P,E=new h.P,M=new h.P,R=this.m_absDistance,G=c.getPathSize(d),V=new h.P(0,0);for(let e=0;e<G;e++){let t=!1;(0===e||e===n)&&(t=!0),T.assign(c.getXY(C)),D&&(w.assign(c.getXY(b)),v.assign(c.getXY(x)),I.setSub(w,v),I.normalize(),M.leftPerpendicularOther(I),M.scale(R),k.setAdd(M,w));let s=p&&!!(1&c.getAttributeAsDbl(10,b,0));S.setSub(T,w),S.normalize(),E.leftPerpendicularOther(S),E.scale(R);let r=new h.P;r.setAdd(w,E);let m=I.crossProduct(S),l=I.dotProduct(S);if(m<0||l<0&&m<Math.abs(l)*2**-52*8)if(t)if(0===this.m_caps)this.m_bufferCommands.push(P(k,r,w,i.enumArc,this.m_bufferCommands.length+1));else if(1===this.m_caps)this.m_bufferCommands.push(P(k,r,w,i.enumLine,this.m_bufferCommands.length+1));else{let e=S.mul(this.m_absDistance).negate(),t=e.clone();e.addThis(k),t.addThis(r),this.m_bufferCommands.push(P(k,e,w,i.enumLine,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(P(e,t,w,i.enumLine,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(P(t,r,w,i.enumLine,this.m_bufferCommands.length+1))}else{let e=!1,t=s?0:this.m_joins;if(1===t){let t=-m;V.setSub(I,S),V.scale(this.m_absDistance/t),V.length()<this.m_miterLimit*this.m_absDistance&&(V.addThis(w),e=!0),this.m_bufferCommands.push(P(k,r,V,e?i.enumMiter:i.enumBevel,this.m_bufferCommands.length+1))}else this.m_bufferCommands.push(P(k,r,w,0===t?i.enumArc:i.enumBevel,this.m_bufferCommands.length+1))}else k.equals(r)||(this.m_bufferCommands.push(y(k,w,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(y(w,r,this.m_bufferCommands.length+1)));let a=new h.P;a.setAdd(T,E),this.m_bufferCommands.push(P(r,a,w,i.enumLine,this.m_bufferCommands.length+1)),k.setCoordsPoint2D(a),M.setCoordsPoint2D(E),v.setCoordsPoint2D(w),w.setCoordsPoint2D(T),I.setCoordsPoint2D(S),x=b,b=C,D=!1,C=c.getNextVertex(b)}return this.m_bufferCommands.at(-1).m_next=0,this.processBufferCommands(s),g.setShift(u),s.applyTransformationToPath(g,s.getPathCount()-1),1}processBufferCommands(e){let t=this.cleanupBufferCommands(),s=!0,r=t+1;for(let n=t;r!==t;n=r){let t=this.m_bufferCommands[n];r=-1===t.m_next?(n+1)%this.m_bufferCommands.length:t.m_next,t.m_type&&(s&&=(e.startPath(t.m_from),!1),t.m_type&i.enumJoinMask?this.addJoin(t.m_type,e,t.m_center,t.m_from,t.m_to,!1,!0):e.lineTo(t.m_to))}}cleanupBufferCommands(){this.m_helperArray=(0,h.m)(h.P,9);let e=0;for(let t=0,s=this.m_bufferCommands.length;t<s;){let s=this.m_bufferCommands[t];if(s.m_type&i.enumConnectionMask){e=t;break}t=s.m_next}let t=e+1;for(let s=e;t!==e;s=t){let e=this.m_bufferCommands[s];t=e.m_next;let r=1,n=null;for(;t!==s&&(n=this.m_bufferCommands[t],!(n.m_type&i.enumConnectionMask));)t=n.m_next,r++;1!==r&&(e.m_type&n.m_type)===i.enumLine&&(this.m_helperLine1.setStartXY(e.m_from),this.m_helperLine1.setEndXY(e.m_to),this.m_helperLine2.setStartXY(n.m_from),this.m_helperLine2.setEndXY(n.m_to),1===this.m_helperLine1.intersect(this.m_helperLine2,this.m_helperArray,null,null,this.m_smallTolerance.total())&&(e.m_to.assign(this.m_helperArray[0]),n.m_from.assign(this.m_helperArray[0]),e.m_next=t))}return e}isDegeneratePath(e,t){if(1===e.getPathSize(t))return!0;if(0===this.m_joins&&0===this.m_caps){let s=new u.Envelope2D;if(e.queryPathEnvelope(t,s),Math.max(s.width(),s.height())<.5*this.m_densifyDist)return!0}return!1}isDegenerateGeometry(e){if(0===this.m_joins&&0===this.m_caps){let t=new u.Envelope2D;if(e.queryEnvelope(t),Math.max(t.width(),t.height())<.5*this.m_densifyDist)return!0}return!1}addCircle(e,t){let s=t.getXY();if(0!==this.m_circleTemplate.length){let t=this.m_circleTemplate[0].clone();t.scaleAddThis(this.m_absDistance,s),e.startPath(t);for(let i=1,r=this.m_circleTemplate.length;i<r;i++)t=this.m_circleTemplate[i].clone(),t.scaleAddThis(this.m_absDistance,s),e.lineTo(t);return}let i=this.m_circleTemplateSize,r=Math.trunc((i+3)/4),n=.5*Math.PI/r;e.reserve(4*r);let m=Math.cos(n),l=Math.sin(n);for(let t=3;t>=0;t--){let i=h.P.construct(0,this.m_absDistance);switch(t){case 0:for(let t=0;t<r;t++)e.lineToCoords(i.x+s.x,i.y+s.y),i.rotateReverse(m,l);break;case 1:for(let t=0;t<r;t++)e.lineToCoords(-i.y+s.x,i.x+s.y),i.rotateReverse(m,l);break;case 2:for(let t=0;t<r;t++)e.lineToCoords(-i.x+s.x,-i.y+s.y),i.rotateReverse(m,l);break;default:e.startPathCoords(i.y+s.x,-i.x+s.y);for(let t=1;t<r;t++)i.rotateReverse(m,l),e.lineToCoords(i.y+s.x,-i.x+s.y)}this.progress_()}}addSquare(e,t){let s=new a.E({vd:t.getDescription()});s.setCoords(t.getX(),t.getY(),t.getX(),t.getY()),s.inflateCoords(this.m_absDistance,this.m_absDistance),e.addEnvelope(s,!1)}setStrongSimple(e){return e.getImpl().setIsSimple(4,this.m_tolerance.total()),e.getImpl().updateOGCFlagsProtected(),e}}function T(e){return(0,a.s)(e,0),e}function v(e,t){return!!e.isEmpty()||Math.min(e.width(),e.height())>t}function k(e,t,s,i,r,n,l,a){let o=e.getXY(s),u=e.getXY(i);if(o.equals(u))return-1;let _=.25*l,c=.25*l,f=new h.P;f.setSub(u,o);let g=f.length(),d=g*g*.25,p=n*n-d;if(p<=d)return-1;let P=Math.sqrt(p);f.normalize();let y=f.clone();y.rightPerpendicularThis();let b=d/P,x=b<=c,C=h.P.lerp(u,o,.5),D=y.clone(),w=b-_;D.scaleAddThis(Math.max(0,w),C),y.negate().scaleAddThis(P,C);let T=n-c,v=3.61*(0,h.a)(T),k=D.sub(o),S=D.sub(u),I=!1,E=0,M=(0,h.d)(64,0);(0,m.g)(a===M.length);{for(let n=e.getPrevVertexEx(i,r);n!==s;){if(1===e.getUserIndex(n,t))return-1;if(e.getXY(n).equals(u)){let t=e.getPrevVertexEx(n,r);e.removeVertex(n,!1),n=t;continue}break}let n=new h.P,l=o.clone();M[E++]=1;for(let m=e.getNextVertexEx(s,r);m!==i;){if(1===e.getUserIndex(m,t))return-1;let s=e.getXY(m);if(s.equals(l)){let t=e.getNextVertexEx(m,r);e.removeVertex(m,!1),m=t;continue}M[E++]=0;let i=new h.P;if(i.setSub(s,o),i.dotProduct(y)<0)return 0;(h.P.sqrDistance(s,o)>v||h.P.sqrDistance(s,u)>v)&&(I=!0);let a=0;if(s.sub(o).crossProduct(k)>=0&&(a=1),s.sub(u).crossProduct(S)<=0&&(a|=2),0===a)return 0;M[E-1]=a,n.assign(l),l.assign(s),m=e.getNextVertexEx(m,r)}if(1===E)return 0;(0,m.g)(E<M.length),M[E++]=2}let R=!0;for(let e=1,t=0;e<E;e++)if(M[e]!==M[e-1]&&(t++,R=t<3&&(1===t&&3===M[e]||2===t&&2===M[e]),!R))return 0;if(E>2&&R&&(3===E||!I)){let t=0,n=e.getNextVertexEx(s,r);for(x||(e.setXY(n,D),n=e.getNextVertexEx(n,r));n!==i;){let s=e.getNextVertexEx(n,r);e.removeVertex(n,!1),n=s,++t}return t}if((0,m.g)(3!==E),I&&E>3)return 0;let G=o.clone(),V=s,X=o.clone(),Y=1,A=-1,B=V,z=0;for(E=1;B!==i;){B=e.getNextVertexEx(B,r);let t=M[E++];if(0===t){if(B===i)break;continue}let s=e.getXY(B);if(-1!==A){if(A&Y&t&3){e.removeVertex(V,!0),z++,V=B,X.setCoordsPoint2D(s),Y=t;continue}if(3===Y&&0!==A&&0!==t){if(X.setCoordsPoint2D(D),x||X.equals(G)){e.removeVertex(V,!0),z++,V=B,X.setCoordsPoint2D(s),Y=t;continue}e.setXY(V,X)}}A=Y,G.setCoordsPoint2D(X),V=B,Y=t,X.setCoordsPoint2D(s)}return z}function S(e,t,s,i){for(let r=0,n=e.getPathCount();r<n;r++){let n=e.getXY(e.getPathStart(r));n.x!==s.xmin&&n.x!==s.xmax&&t.addPath(e,r,i)}}},70007(e,t,s){s.d(t,{c:()=>r});var i=s(55537);function r(e,t){let s=e.getGeometryType();return s===i.G.enumPoint?e:(0,i.j)(s)?function(e){if(function(e){for(let t=0,s=e.getPathCount();t<s;t++){let s=e.getPathSize(t);if(0===s||1===s&&(0===e.getSegmentCountPath(t)||e.getSegmentType(e.getPathStart(t))===i.G.enumLine||!e.isClosedPath(t)))return!1}return!0}(e))return e;let t=e.createInstance();for(let s=0,r=e.getPathCount();s<r;s++){let r=e.getPathSize(s);0!==r&&(1!==r||0!==e.getSegmentCountPath(s)&&e.getSegmentType(e.getPathStart(s))!==i.G.enumLine&&e.isClosedPath(s))&&t.addPath(e,s,!0)}return t}(e):(s===i.G.enumMultiPoint||s===i.G.enumEnvelope||s===i.G.enumMultipatch&&(0,i.t)("not implemented for multipatch"),e)}},64523(e,t,s){s.d(t,{O:()=>o});var i=s(32198),r=s(61691),n=s(55537),m=s(88885),l=s(95213),a=s(83661),h=s(5247);class o{getOperatorType(){return 10204}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,s,i){return new u(e,t,s,i)}execute(e,t,s,i){return e||(0,n.a)("null param is not allowed."),new u(null,t,s,i).generalize(e)}}class u extends r.G{m_progressTracker;m_geoms;m_pline=null;m_point=new l.P;m_xy;m_stack=[];m_resultstack=[];m_maxDeviation;m_bRemoveDegenerateParts;m_callCount=0;constructor(e,t,s,i){super(),this.m_progressTracker=i,this.m_geoms=e,this.m_maxDeviation=t,this.m_bRemoveDegenerateParts=s}tock(){return!0}getRank(){return 1}next(){let e=this.m_geoms.next();return null===e?null:((0,n.c)(e),this.generalize(e))}getGeometryID(){return this.m_geoms.getGeometryID()}generalize(e){let t=e.getGeometryType();if((0,n.f)(t))return e;if(t===n.G.enumEnvelope){let t=new m.P({vd:e.getDescription()});return t.addEnvelope(e,!1),this.generalize(t)}if((0,n.h)(t)){let t=new m.a({vd:e.getDescription()});return t.addSegment(e,!0),this.generalize(t)}if((0,n.j)(t)||(0,n.t)(""),e.isEmpty()||this.m_maxDeviation<=0)return e;let s=(new h.O).execute(e,0,.05*this.m_maxDeviation,0,this.m_progressTracker);e.hasNonLinearSegments()&&(this.m_maxDeviation*=.95);let r=s,l=e.createInstance();l.getGeometryType()===n.G.enumPolygon&&l.setFillRule(e.getFillRule()),this.m_xy=r.getAttributeStreamRef(0);{let e={stack:[],error:void 0,hasError:!1};try{let t=new m.L;this.m_pline=t,(0,i.mS)(e,(0,a.h)(()=>{this.m_pline=null},!1),!1);for(let e=0,t=r.getPathCount();e<t;e++)this.generalizePath(r.getImpl(),e,l.getImpl())}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}return this.m_resultstack.length=0,this.m_stack.length=0,l}generalizePath(e,t,s){if(e.getPathSize(t)<2)return;this.m_resultstack.length=0,this.m_stack.length=0;let i=e.getPathStart(t),r=e.getPathEnd(t)-1,n=e.isClosedPath(t),m=e.isClosedPathInXYPlane(t),l=0,h=-1;this.m_stack.push(n?i:r),this.m_stack.push(i);let o=!1,u=!1;for(!this.m_bRemoveDegenerateParts&&m&&(o=!0,u=!0);this.m_stack.length>1;){let t=this.m_stack.at(-1);this.m_stack.pop();let s=this.m_stack.at(-1),i=e.getXY(t);this.m_pline.setStartXY(i),i=e.getXY(s),this.m_pline.setEndXY(i);let n=[NaN],m=this.findGreatestDistance(t,s,r,n);m>=0&&(o?o=!1:(u&&n[0]>l&&(l=n[0],h=m),n[0]<=this.m_maxDeviation&&(m=-1))),m>=0?(this.m_stack.push(m),this.m_stack.push(t)):this.m_resultstack.push(t)}n||this.m_resultstack.push(this.m_stack[0]);let _=this.m_resultstack.length;if(_===e.getPathSize(t)&&_===this.m_stack.length)s.addPath(e,t,!0);else if(this.m_resultstack.length>0){if(this.m_bRemoveDegenerateParts&&this.m_resultstack.length<=2&&(n||1===this.m_resultstack.length||a.P.distance(e.getXY(this.m_resultstack[0]),e.getXY(this.m_resultstack[1]))<=this.m_maxDeviation))return;if(u&&h>=0&&l<=this.m_maxDeviation){let e=this.m_resultstack.at(-1)>h;this.m_resultstack.push(h),e&&(this.m_resultstack[this.m_resultstack.length-2]=(0,a.c)(this.m_resultstack[this.m_resultstack.length-1],this.m_resultstack[this.m_resultstack.length-1]=this.m_resultstack[this.m_resultstack.length-2]))}for(let t=0,i=this.m_resultstack.length;t<i;t++)e.getPointByVal(this.m_resultstack[t],this.m_point),0===t?s.startPathPoint(this.m_point):s.lineToPoint(this.m_point);if(n){for(let e=this.m_resultstack.length;e<3;e++)s.lineToPoint(this.m_point);s.closePathWithLine()}}}findGreatestDistance(e,t,s,i){let r=t-1;t<=e&&(r=s);let n=-1,m=0,l=new a.P;for(let t=e+1;t<=r;t++){this.m_xy.queryPoint2D(2*t,l);let e=l.x,s=l.y,i=this.m_pline.getClosestCoordinate(l,!1);l.assign(this.m_pline.getCoord2D(i)),l.x-=e,l.y-=s;let r=l.length();r>m&&(n=t,m=r),this.m_callCount++}return i[0]=m,n}}},98783(e,t,s){s.d(t,{O:()=>l});var i=s(61691),r=s(55537),n=s(76061),m=s(39117);class l{getOperatorType(){return 10104}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}isSimple(e,t,s,i,r){return 5===(0,m.X)(e,t,s,i,r)}executeMany(e,t,s,i){return new a(e,t,s,i)}execute(e,t,s,i){let m=new n.S([e]),l=this.executeMany(m,t,s,i).next();return l||(0,r.d)("null output"),l}}class a extends i.G{m_inputGeometryCursor;m_spatialReference;m_progressTracker;m_index;m_bForceSimplify;constructor(e,t,s,i){super(),e||(0,r.a)(""),this.m_progressTracker=i,this.m_bForceSimplify=s,this.m_index=-1,this.m_inputGeometryCursor=e,this.m_spatialReference=t}next(){let e=this.m_inputGeometryCursor.next();return e?((0,r.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(e)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(e){return e||(0,r.a)(""),(0,m.Y)(e,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6870],{86870(e,t,s){s.d(t,{B:()=>w,s:()=>p});var i,r,n=s(32198),m=s(55537),l=s(61691),a=s(95213),h=s(83661),o=s(88885),u=s(79187),_=s(11878),c=s(70007),f=s(39117),g=s(98783),d=s(64523);function p(e){return e>=0?e>h.k?h.k:e:0}function P(e,t,s,i,r,n){return{m_from:e.clone(),m_to:t.clone(),m_center:s.clone(),m_next:r,m_type:i}}function y(e,t,s,i,r){return{m_from:e.clone(),m_to:t.clone(),m_next:s,m_type:4,m_center:new h.P}}(r=i||={})[r.enumDummy=256]="enumDummy",r[r.enumLine=1]="enumLine",r[r.enumArc=2]="enumArc",r[r.enumMiter=8]="enumMiter",r[r.enumBevel=16]="enumBevel",r[r.enumJoinMask=26]="enumJoinMask",r[r.enumConnectionMask=27]="enumConnectionMask";class b extends l.G{m_parent;m_index=0;m_bufferedPolygon=null;m_mp;m_spatialReference;m_distance;m_densifyDist;m_x=0;m_y=0;m_miterLimit;m_joins;m_caps;m_maxVertexInCompleteCircle;m_progressTracker;constructor(e,t,s,i,r,n,m,l,a,h){super(),this.m_progressTracker=h,this.m_parent=e,this.m_mp=t,this.m_distance=s,this.m_spatialReference=i,this.m_densifyDist=l,this.m_maxVertexInCompleteCircle=a,this.m_joins=r,this.m_caps=n,this.m_miterLimit=m}next(){let e=new a.P;for(;;){if(this.m_index===this.m_mp.getPointCount())return null;if(1===this.m_caps)return this.m_index=this.m_mp.getPointCount(),new o.P({vd:this.m_mp.getDescription()});if(this.m_mp.getPointByVal(this.m_index,e),this.m_index++,!e.isEmpty())break}let t,s=!1;if(null===this.m_bufferedPolygon&&(this.m_x=e.getX(),this.m_y=e.getY(),this.m_bufferedPolygon=this.m_parent.buffer(e,this.m_distance,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_densifyDist,this.m_maxVertexInCompleteCircle),s=!0),t=this.m_index<this.m_mp.getPointCount()?this.m_bufferedPolygon.clone():this.m_bufferedPolygon,!s){let s=new _.T,i=e.getX()-this.m_x,r=e.getY()-this.m_y;s.setShiftCoords(i,r),t.applyTransformation(s)}return(0,a.s)(t,0),t}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class x extends l.G{m_polyline;m_currentPathIndex=0;constructor(e){super(),this.m_polyline=e}next(){if(!this.m_polyline)return null;let e=this.m_polyline.getImpl(),t=e.getPathCount();if(this.m_currentPathIndex<t){let t=this.m_currentPathIndex;if(this.m_currentPathIndex++,!e.isClosedPathInXYPlane(t)){let s=e.getXY(e.getPathEnd(t)-1);for(;this.m_currentPathIndex<e.getPathCount();){let t=e.getXY(e.getPathStart(this.m_currentPathIndex));if(e.isClosedPathInXYPlane(this.m_currentPathIndex)||!t.equals(s))break;s=e.getXY(e.getPathEnd(this.m_currentPathIndex)-1),this.m_currentPathIndex++}}if(0===t&&this.m_currentPathIndex===this.m_polyline.getPathCount()){let e=this.m_polyline;return this.m_polyline=null,e}let s=new o.a({vd:this.m_polyline.getDescription()});s.addPath(this.m_polyline,t,!0);for(let i=t+1;i<this.m_currentPathIndex;i++)s.addSegmentsFromPath(this.m_polyline,i,0,e.getSegmentCountPath(i),!1);return this.m_currentPathIndex===this.m_polyline.getPathCount()&&(this.m_polyline=null),s}return null}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class C extends l.G{m_bufferer;m_geoms;m_geometry=null;m_index=0;m_bFilter;constructor(e,t,s){super(),this.m_bufferer=e,this.m_geoms=t,this.m_index=0,this.m_bFilter=s}next(){if(null===this.m_geometry&&(this.m_index=0,this.m_geometry=this.m_geoms.next(),!this.m_geometry))return null;let e=this.m_geometry.getImpl();if(this.m_index<e.getPathCount()){let e=this.m_index;return this.m_index++,this.m_bufferer.bufferPolylinePath(this.m_geometry,e,this.m_bFilter)}return this.m_geometry=null,this.next()}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class D extends l.G{m_bufferer;m_index=0;constructor(e){super(),this.m_bufferer=e}next(){let e=this.m_bufferer.m_geometry;if(this.m_index<e.getPathCount()){let t,s=this.m_index,i=e.calculateRingArea2D(this.m_index);for((0,m.g)(i>0),this.m_index++;this.m_index<e.getPathCount()&&!(e.calculateRingArea2D(this.m_index)>0);)this.m_index++;return t=0===s&&this.m_index===e.getPathCount()?this.m_bufferer.bufferPolygonImpl(e,0,e.getPathCount()):this.m_bufferer.bufferPolygonImpl(e,s,this.m_index),t}return null}getGeometryID(){return 0}getRank(){return 1}tock(){return!0}}class w{m_geometry=null;m_densificator;m_bufferCommands=[];m_originalGeomType=m.G.enumUnknown;m_progressTracker;m_maxVertexInCompleteCircle=-1;m_circleTemplateSize=-1;m_oldCircleTemplateSize=0;m_spatialReference=null;m_tolerance=new a.C(0,0);m_smallTolerance=new a.C(0,0);m_filterTolerance=0;m_densifyDist=-1;m_distance=NaN;m_absDistance=0;m_absDistanceReversed=0;m_dA=-1;m_miterLimit=4;m_joins=0;m_caps=0;m_bRoundBuffer=!0;m_bOutputLoops=!0;m_bFilter=!0;m_circleTemplate=[];m_leftStack=[];m_middleStack=[];m_helperLine1=new o.L;m_helperLine2=new o.L;m_helperArray=[];m_progressCounter=0;constructor(e){this.m_densificator=o.D.constructDefault(e),this.m_progressTracker=e}buffer(e,t,s,i,r,n,l,_){if(e||(0,m.b)("Geometry.Bufferer.Impl.Buffer"),l<0&&(0,m.b)("Geometry.Bufferer.Impl.Buffer"),(0,m.k)(e.getGeometryType())&&(0,m.a)("Unsupported geometry type."),e.isEmpty()||(this.m_joins=i,this.m_caps=r,this.m_bRoundBuffer=!1,this.m_miterLimit=n,this.m_originalGeomType=e.getGeometryType(),(0,m.l)(this.m_originalGeomType)?this.m_bRoundBuffer=0===this.m_joins:(0,m.f)(this.m_originalGeomType)?this.m_bRoundBuffer=0===this.m_caps:(0,m.m)(this.m_originalGeomType)&&(this.m_bRoundBuffer=0===this.m_joins&&0===this.m_caps),this.m_bFilter=this.m_bRoundBuffer,this.m_geometry=(0,c.c)(e),this.m_geometry.isEmpty()))return new o.P({vd:e.getDescription()});let f=new u.Envelope2D;this.m_geometry.queryLooseEnvelope(f),t>0&&f.inflateCoords(t,t),this.m_tolerance=(0,a.c)(s,f,!0),this.m_smallTolerance=(0,a.c)(null,f,!0),_<=0&&(_=96),this.m_spatialReference=s,this.m_distance=t,this.m_absDistance=Math.abs(this.m_distance),this.m_absDistanceReversed=0===this.m_absDistance?0:1/this.m_absDistance,Number.isNaN(l)||0===l?l=1e-5*this.m_absDistance:l>.5*this.m_absDistance&&(l=.5*this.m_absDistance),_<12&&(_=12);let g=Math.abs(t)*(1-Math.cos(Math.PI/_));if(g>l)l=g;else if(0!==t){let e=Math.PI/Math.acos(1-l/Math.abs(t));e<_-1&&(_=Math.trunc(e))<12&&(_=12,l=Math.abs(t)*(1-Math.cos(Math.PI/_)))}this.m_densifyDist=l,this.m_maxVertexInCompleteCircle=_,this.m_filterTolerance=this.m_bRoundBuffer?Math.min(this.m_smallTolerance.total(),.25*this.m_densifyDist):0,this.m_circleTemplateSize=this.calcN(),this.m_circleTemplateSize!==this.m_oldCircleTemplateSize&&(this.m_circleTemplate.length=0,this.m_oldCircleTemplateSize=this.m_circleTemplateSize),this.m_densifyDist>0&&(0,m.n)(this.m_geometry)&&(this.m_geometry=this.m_densificator.densifyEx(this.m_geometry,0,this.m_densifyDist,0,0!==this.m_joins,(0,h.i)()));let d=this.bufferImpl();return this.m_geometry=null,d}generateCircleTemplate(){if(this.m_circleTemplate.length)return;let e=this.m_circleTemplateSize,t=Math.trunc((e+3)/4),s=.5*Math.PI/t;this.m_dA=s,this.m_circleTemplate=(0,h.d)(h.P,4*t);let i=Math.cos(s),r=Math.sin(s),n=h.P.construct(0,1);for(let e=0;e<t;e++)this.m_circleTemplate[e+0*t].setCoords(n.y,-n.x),this.m_circleTemplate[e+1*t].setCoords(-n.x,-n.y),this.m_circleTemplate[e+2*t].setCoords(-n.y,n.x),this.m_circleTemplate[e+3*t].setCoords(n.x,n.y),n.rotateReverse(i,r)}bufferImpl(){let e=this.m_geometry.getGeometryType();if((0,m.h)(e)){let e=new o.a({vd:this.m_geometry.getDescription()});return e.addSegment(this.m_geometry,!0),this.m_geometry=e,this.bufferImpl()}if(this.m_distance<=this.m_tolerance.total()){if(!(0,m.l)(e))return new o.P({vd:this.m_geometry.getDescription()});if(this.m_distance<0){let e=new u.Envelope2D;if(this.m_geometry.queryEnvelope(e),e.width()<=2*this.m_absDistance||e.height()<=2*this.m_absDistance)return new o.P({vd:this.m_geometry.getDescription()})}}switch(this.m_geometry.getGeometryType()){case m.G.enumPoint:return this.bufferPoint();case m.G.enumMultiPoint:return this.bufferMultiPoint();case m.G.enumPolyline:return this.bufferPolyline();case m.G.enumPolygon:return this.bufferPolygon();case m.G.enumEnvelope:return this.bufferEnvelope();default:(0,m.d)("")}}bufferPolyline(){if(this.isDegenerateGeometry(this.m_geometry)){let e=new a.P;this.m_geometry.getPointByVal(0,e);let t=new u.Envelope2D;return this.m_geometry.queryEnvelope(t),e.setXY(t.getCenter()),this.bufferDegeneratePath(e,!0)}let e=this.m_geometry,t=this.m_geometry.getDescription();this.m_geometry=null;let s,i,r=new x(e);s=0===this.m_joins?(new d.O).executeMany(r,.25*this.m_densifyDist,!1,this.m_progressTracker):r,i=this.m_bRoundBuffer?(new g.O).executeMany(s,null,!0,this.m_progressTracker):s;let n=new C(this,i,this.m_bFilter),m=(new f.a5).executeMany(n,this.m_spatialReference,this.m_progressTracker,2),l=(new f.J).executeMany(m,this.m_spatialReference,!1,this.m_progressTracker).next();return null===l?new o.P({vd:t}):l}bufferPolygon(){if(0===this.m_distance)return this.m_geometry;this.generateCircleTemplate();let e=(new f.J).execute(this.m_geometry,null,!1,this.m_progressTracker);if(this.m_distance<0){if(this.m_geometry=e,this.m_geometry.isEmpty())return this.m_geometry;let t=this.m_geometry,s=this.bufferPolygonImpl(t,0,t.getPathCount());return(new f.J).execute(s,this.m_spatialReference,!1,this.m_progressTracker)}{if(this.m_geometry=e,this.isDegenerateGeometry(this.m_geometry)){let e=new a.P;this.m_geometry.getPointByVal(0,e);let t=new u.Envelope2D;return this.m_geometry.queryEnvelope(t),e.setXY(t.getCenter()),this.bufferDegeneratePath(e,!0)}let t=new D(this),s=(new f.a5).executeMany(t,this.m_spatialReference,this.m_progressTracker,2),i=(new f.J).executeMany(s,this.m_spatialReference,!1,this.m_progressTracker).next();return null===i?new o.P({vd:this.m_geometry.getDescription()}):i}}bufferPolygonImpl(e,t,s){let i=e,r=i.getImpl(),n=new o.P({vd:e.getDescription()});for(let m=t;m<s;m++){if(r.getPathSize(m)<1)continue;let t=r.calculateRingArea2D(m),s=new u.Envelope2D;if(r.queryPathEnvelope(m,s),this.m_distance>0)if(t>0)if(this.isDegeneratePath(r,m)){let e=new a.P;r.getPointByVal(r.getPathStart(m),e),e.setXY(s.getCenter()),n.add(this.bufferDegeneratePath(e,!0),!1)}else{let t=new o.a({vd:e.getDescription()}),s=t.getImpl();if((0,o.i)(this.m_geometry,m)){let e=this.bufferConvexPath(i,m);n.add(e,!1)}else{this.bufferClosedPath(this.m_geometry,m,s,this.m_bRoundBuffer,1);let e=this.bufferCleanup(t);n.add(e,!1)}}else{if(s.width()+this.m_tolerance.total()<=2*this.m_absDistance||s.height()+this.m_tolerance.total()<=2*this.m_absDistance)continue;let t=new o.a({vd:e.getDescription()}),i=t.getImpl();if(this.bufferClosedPath(this.m_geometry,m,i,this.m_bRoundBuffer,1),!t.isEmpty()){let e=s,r=Math.max(1,this.m_absDistance),m=e.clone();m.inflateCoords(r,r),i.addEnvelope(m,!1);let l=this.bufferCleanup(t);n.reserve(n.getPointCount()+l.getPointCount()-4),S(l,n,m,!0)}}else if(t>0){if(s.width()+this.m_tolerance.total()<=2*this.m_absDistance||s.height()+this.m_tolerance.total()<=2*this.m_absDistance)continue;let t=new o.a({vd:e.getDescription()}),i=t.getImpl();if(this.bufferClosedPath(this.m_geometry,m,i,this.m_bRoundBuffer,-1),!t.isEmpty()){let e=new u.Envelope2D;i.queryLooseEnvelope(e);let s=Math.max(1,this.m_absDistance),r=e.clone();r.inflateCoords(s,s),i.addEnvelope(r,!1),S(this.bufferCleanup(t),n,r,!0)}}else{let t=new o.a({vd:e.getDescription()}),s=t.getImpl();this.bufferClosedPath(this.m_geometry,m,s,this.m_bRoundBuffer,-1);let i=this.bufferCleanup(t);for(let e=0,t=i.getPathCount();e<t;e++)n.addPath(i,e,!0)}}if(this.m_distance>0)return n.getPathCount()>1?this.bufferCleanup(n):T(n);{let e=new u.Envelope2D;if(n.queryLooseEnvelope(e),n.isEmpty())return T(n);{let t=Math.max(1,this.m_absDistance),s=e.clone();s.inflateCoords(t,t),n.addEnvelope(s,!1);let i=this.bufferCleanup(n);n=new o.P;let r=new o.P({vd:i.getDescription()});return S(i,r,s,!1),T(r)}}}bufferPoint(){return this.bufferPointImpl(this.m_geometry)}bufferPointImpl(e){let t=new o.P({vd:e.getDescription()});return 0===this.m_caps?(this.addCircle(t.getImpl(),e),this.setStrongSimple(t)):2===this.m_caps?(this.addSquare(t.getImpl(),e),this.setStrongSimple(t)):t}bufferDegeneratePath(e,t){let s=new o.P({vd:e.getDescription()});return t&&0===this.m_joins||!t&&0===this.m_caps?(this.addCircle(s.getImpl(),e),this.setStrongSimple(s)):t||2!==this.m_caps?s:(this.addSquare(s.getImpl(),e),this.setStrongSimple(s))}bufferMultiPoint(){let e=new b(this,this.m_geometry,this.m_distance,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_densifyDist,this.m_maxVertexInCompleteCircle,this.m_progressTracker);return(new f.a5).executeMany(e,this.m_spatialReference,this.m_progressTracker,2).next()}bufferEnvelope(){let e=new o.P({vd:this.m_geometry.getDescription()});if(this.m_distance<=0){if(0===this.m_distance)e.addEnvelope(this.m_geometry,!1),v(this.m_geometry,this.m_tolerance.total())&&(e=this.setStrongSimple(e));else{let t=new a.E;this.m_geometry.queryEnvelope(t),t.inflateCoords(this.m_distance,this.m_distance),e.addEnvelope(t,!1),v(t,this.m_tolerance.total())&&(e=this.setStrongSimple(e))}return e}if(1===this.m_joins){let t=new a.E({copy:this.m_geometry});return t.inflateCoords(this.m_absDistance,this.m_absDistance),e.addEnvelope(t,!1),e}let t=this.m_geometry.clone();if(0===t.width()||0===t.height()){if(0===t.width()&&0===t.height()){let e=new a.P({vd:this.m_geometry.getDescription()});return t.queryCornerByVal(0,e),this.m_geometry=e,this.bufferImpl()}let e=new o.a({vd:this.m_geometry.getDescription()}),s=new a.P;return t.queryCornerByVal(0,s),e.startPathPoint(s),t.queryCornerByVal(2,s),e.lineToPoint(s),this.m_geometry=e,this.bufferImpl()}return e.addEnvelope(this.m_geometry,!1),this.m_geometry=e,this.bufferConvexPath(e,0)}bufferConvexPath(e,t){this.generateCircleTemplate();let s=e.hasAttribute(10),r=new o.P({vd:e.getDescription()}),n=r.getImpl();r.reserve((this.m_circleTemplate.length/10+4)*e.getPathSize(t));let l=new h.P,a=new h.P,u=new h.P,_=new h.P(0,0),c=new h.P,f=new h.P,g=e.getImpl(),d=e.getPathSize(t),p=e.getPathStart(t);for(let r=0,h=e.getPathSize(t);r<h;r++){let e=g.getXY(p+r),t=g.getXY(p+(r+1)%d),h=g.getXY(p+(r+2)%d);c.setSub(t,e),0===c.length()&&(0,m.d)("");let o=s&&!!(1&g.getAttributeAsInt(10,(r+1)%d,0));c.normalize();let P=c.clone();c.leftPerpendicularThis(),c.scale(this.m_absDistance),l.setAdd(c,e),a.setAdd(c,t),0===r?n.startPath(l):n.lineTo(l),n.lineTo(a),f.setSub(h,t),0===f.length()&&(0,m.d)(""),f.normalize();let y=f.clone();f.leftPerpendicularThis(),f.scale(this.m_absDistance),u.setAdd(f,t);let b=i.enumArc,x=o?0:this.m_joins;if(2===x)b=i.enumBevel;else if(1===x){let e=-P.crossProduct(y);_.setSub(P,y),_.scale(this.m_absDistance/e),_.length()<this.m_miterLimit*this.m_absDistance?(_.addThis(t),b=i.enumMiter):b=i.enumBevel}else _.assign(t);this.addJoin(b,n,_,a,u,!1,!1)}return T(r)}bufferPolylinePath(e,t,s){this.generateCircleTemplate();let i,r=e,n=r.getImpl();if(n.getPathSize(t)<1)return null;if(i=this.m_bRoundBuffer?n.isClosedPathInXYPlane(t):n.isClosedPath(t),this.isDegeneratePath(n,t)&&this.m_distance>0){let e=new a.P;n.getPointByVal(n.getPathStart(t),e);let s=new u.Envelope2D;return n.queryPathEnvelope(t,s),e.setXY(s.getCenter()),this.bufferDegeneratePath(e,i)}let m=new o.a({vd:e.getDescription()});m.reserve((Math.trunc(this.m_circleTemplate.length/10)+4)*n.getPathSize(t));let l=m.getImpl();return i?2!==this.bufferClosedPath(r,t,l,s,1)&&this.bufferClosedPath(r,t,l,s,-1):this.bufferOpenPath(r,t,l,s),this.bufferCleanup(m)}progress_(){}bufferCleanup(e,t=!1){let s=t?this.m_tolerance:this.m_smallTolerance;return(0,f.ab)(e,s,!0,!t,-1,this.m_progressTracker,0,!1)}calcN(){if(0===this.m_densifyDist)return this.m_maxVertexInCompleteCircle;let e=1-this.m_densifyDist*Math.abs(this.m_absDistanceReversed),t=4;return t=e<-1?4:2*Math.PI/Math.acos(e)+.5,t<4?t=4:t>this.m_maxVertexInCompleteCircle&&(t=this.m_maxVertexInCompleteCircle),Math.trunc(t)}addJoin(e,t,s,r,n,m,l){if(this.generateCircleTemplate(),m&&=(t.startPath(r),!1),e===i.enumBevel)return void(l&&t.lineTo(n));if(e===i.enumMiter){let e=s.clone();return t.lineTo(e),void(l&&t.lineTo(n))}let a=new h.P;a.setSub(r,s),a.scale(this.m_absDistanceReversed);let o=new h.P;o.setSub(n,s),o.scale(this.m_absDistanceReversed);let u=Math.atan2(a.y,a.x)/this.m_dA;u<0&&(u=this.m_circleTemplate.length+u),u=this.m_circleTemplate.length-u;let _=Math.atan2(o.y,o.x)/this.m_dA;_<0&&(_=this.m_circleTemplate.length+_),_=this.m_circleTemplate.length-_,_<u&&(_+=this.m_circleTemplate.length);let c=Math.trunc(_),f=Math.ceil(u),g=this.m_circleTemplate[f%this.m_circleTemplate.length].clone();g.scaleAddThis(this.m_absDistance,s);let d=10*this.m_tolerance.total();g.sub(r).length()<d&&(f+=1),g=this.m_circleTemplate[c%this.m_circleTemplate.length].clone(),g.scaleAddThis(this.m_absDistance,s),g.sub(n).length()<d&&--c;let p=c-f;p++;for(let e=0,i=f%this.m_circleTemplate.length;e<p;e++,i=(i+1)%this.m_circleTemplate.length)g=this.m_circleTemplate[i].clone(),g.scaleAddThis(this.m_absDistance,s),t.lineTo(g),this.progress_();l&&t.lineTo(n)}bufferClosedPath(e,t,s,i,r){let n=new o.E,m=n.addPathFromMultiPath(e,t,!0);return this.bufferClosedPathImpl(n,m,s,i,r)}bufferClosedPathImpl(e,t,s,r,l){let o=e.getFirstVertex(e.getFirstPath(t)),u=new a.P;if(e.queryPoint(o,u),e.filterClosePoints(this.m_filterTolerance,!1,!1,!1,-1),e.getPointCount(t)<2)return l<0?0:(this.m_bRoundBuffer&&this.addCircle(s,u),2);(0,m.g)(-1!==e.getFirstPath(t)),(0,m.g)(-1!==e.getFirstVertex(e.getFirstPath(t)));let c=e.getXY(e.getFirstVertex(e.getFirstPath(t))),f=new _.T;if(f.setShift(c.negate()),e.applyTransformation(f),r){let i=function(e,t,s,i,r,m,l){return function(e,t,s,i,r,m,l){let a={stack:[],error:void 0,hasError:!1};try{let i=e.getFirstPath(t),o=e.createUserIndex();(0,n.mS)(a,(0,h.m)(()=>{e.removeUserIndex(o)},!1),!1),function(e,t,s,i){let r=-1,n=new h.P,m=new h.P,l=new h.P;for(let s=0,a=e.getPathSize(i),h=e.getFirstVertex(i);s<a;++s){-1===r&&(e.queryXY(h,m),r=e.getPrevVertex(h),-1!==r&&(e.queryXY(r,n),l.setSub(m,n),l.normalize()));let s=e.getNextVertex(h);if(-1===s)break;let i=e.getXY(s),a=i.sub(m);a.normalize(),-1!==r&&a.dotProduct(l)<-.99&&Math.abs(a.crossProduct(l))<1e-7&&e.setUserIndex(h,t,1),r=h,h=s,n.assign(m),m.assign(i),l.assign(a)}}(e,o,0,i);for(let t=0;t<100;++t){if(0===e.getPathSize(i))return 1;let t=e.getFirstVertex(i),n=e.getPathSize(i);if(n<3)return 1;e.isClosedPath(i)||--n;let m=0,a=!1;for(let i=0;i<n&&-1!==t;i++){let h=0,u=t;for(let m=1,a=Math.min(64,n-i);m<a;m++)if(u=e.getNextVertexEx(u,s),m>1){let i=k(e,o,t,u,s,r,l,64);if(-1===i)break;h+=i,n-=i}if(m+=h,a=h>0,a){let i=e.getPrevVertexEx(t,s);if(-1!==i){t=i,n++;continue}}t=e.getNextVertexEx(t,s)}if(0===m)break}return e.filterClosePoints(m,!1,!1,!1,-1),1}catch(e){a.error=e,a.hasError=!0}finally{(0,n.hk)(a)}}(e,t,s,0,r,m,l)}(e,t,l,0,this.m_absDistance,this.m_filterTolerance,this.m_densifyDist);if((0,m.g)(1===i),e.getPointCount(t)<2)return l<0?0:(this.addCircle(s,u),2)}let g=0!==this.m_joins&&e.getVertexDescription().hasAttribute(10);this.m_bufferCommands.length=0;let d=e.getFirstPath(t),p=e.getFirstVertex(d),b=1===l?e.getPrevVertex(p):e.getNextVertex(p),x=1===l?e.getNextVertex(p):e.getPrevVertex(p),C=!0,D=new h.P,w=new h.P,T=new h.P,v=new h.P,S=new h.P,I=new h.P,E=new h.P,M=new h.P,R=this.m_absDistance,G=e.getPathSize(d),V=new h.P(0,0);for(let t=0;t<G;t++){w.assign(e.getXY(x)),C&&(D.assign(e.getXY(p)),T.assign(e.getXY(b)),I.setSub(D,T),I.normalize(),M.leftPerpendicularOther(I),M.scale(R),v.setAdd(M,D));let t=g&&!!(1&e.getAttributeAsDbl(10,p,0));S.setSub(w,D),S.normalize(),E.leftPerpendicularOther(S),E.scale(R);let s=new h.P;s.setAdd(D,E);let r=I.crossProduct(S),n=I.dotProduct(S);if(r<0||n<0&&r<Math.abs(n)*2**-52*8){let e=!1,n=t?0:this.m_joins;if(1===n){let t=-r;V.setSub(I,S),V.scale(this.m_absDistance/t),V.length()<this.m_miterLimit*this.m_absDistance&&(V.addThis(D),e=!0),this.m_bufferCommands.push(P(v,s,V,e?i.enumMiter:i.enumBevel,this.m_bufferCommands.length+1))}else this.m_bufferCommands.push(P(v,s,D,0===n?i.enumArc:i.enumBevel,this.m_bufferCommands.length+1))}else v.equals(s)||(this.m_bufferCommands.push(y(v,D,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(y(D,s,this.m_bufferCommands.length+1)));let m=new h.P;m.setAdd(w,E),this.m_bufferCommands.push(P(s,m,D,i.enumLine,this.m_bufferCommands.length+1)),v.setCoordsPoint2D(m),M.setCoordsPoint2D(E),T.setCoordsPoint2D(D),D.setCoordsPoint2D(w),I.setCoordsPoint2D(S),b=p,p=x,C=!1,x=1===l?e.getNextVertex(p):e.getPrevVertex(p)}return this.m_bufferCommands.at(-1).m_next=0,this.processBufferCommands(s),f.setShift(c),s.applyTransformationToPath(f,s.getPathCount()-1),1}bufferOpenPath(e,t,s,r){if(this.m_bRoundBuffer){let i=new o.a({vd:e.getDescription()});return i.addPath(e,t,!1),i.addSegmentsFromPath(e,t,0,e.getSegmentCountPath(t),!1),this.bufferClosedPath(i,0,s,r,1)}let n=0,l=new o.a({vd:e.getDescription()}),u=new h.P(0,0);{let i=new o.E,r=i.addPathFromMultiPath(e,t,!1),m=i.getFirstVertex(i.getFirstPath(r)),h=new a.P;if(i.queryPoint(m,h),u.assign(h.getXY()),i.filterClosePoints(0,!1,!1,!1,-1),i.getPointCount(r)<2)return this.m_bRoundBuffer&&this.addCircle(s,h),2;let _=i.getGeometry(i.getFirstGeometry());l.addPath(_,0,!1),n=l.getPointCount()-1,l.addSegmentsFromPath(_,0,0,_.getSegmentCountPath(0)-1,!1)}let c=new o.E,f=c.addPathFromMultiPath(l,0,!0);(0,m.g)(-1!==c.getFirstPath(f)),(0,m.g)(-1!==c.getFirstVertex(c.getFirstPath(f)));let g=new _.T;g.setShift(u.negate()),c.applyTransformation(g),this.m_bufferCommands.length=0;let d=c.getFirstPath(f),p=0!==this.m_joins&&c.getVertexDescription().hasAttribute(10),b=c.getFirstVertex(d),x=c.getPrevVertex(b),C=c.getNextVertex(b),D=!0,w=new h.P,T=new h.P,v=new h.P,k=new h.P,S=new h.P,I=new h.P,E=new h.P,M=new h.P,R=this.m_absDistance,G=c.getPathSize(d),V=new h.P(0,0);for(let e=0;e<G;e++){let t=!1;(0===e||e===n)&&(t=!0),T.assign(c.getXY(C)),D&&(w.assign(c.getXY(b)),v.assign(c.getXY(x)),I.setSub(w,v),I.normalize(),M.leftPerpendicularOther(I),M.scale(R),k.setAdd(M,w));let s=p&&!!(1&c.getAttributeAsDbl(10,b,0));S.setSub(T,w),S.normalize(),E.leftPerpendicularOther(S),E.scale(R);let r=new h.P;r.setAdd(w,E);let m=I.crossProduct(S),l=I.dotProduct(S);if(m<0||l<0&&m<Math.abs(l)*2**-52*8)if(t)if(0===this.m_caps)this.m_bufferCommands.push(P(k,r,w,i.enumArc,this.m_bufferCommands.length+1));else if(1===this.m_caps)this.m_bufferCommands.push(P(k,r,w,i.enumLine,this.m_bufferCommands.length+1));else{let e=S.mul(this.m_absDistance).negate(),t=e.clone();e.addThis(k),t.addThis(r),this.m_bufferCommands.push(P(k,e,w,i.enumLine,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(P(e,t,w,i.enumLine,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(P(t,r,w,i.enumLine,this.m_bufferCommands.length+1))}else{let e=!1,t=s?0:this.m_joins;if(1===t){let t=-m;V.setSub(I,S),V.scale(this.m_absDistance/t),V.length()<this.m_miterLimit*this.m_absDistance&&(V.addThis(w),e=!0),this.m_bufferCommands.push(P(k,r,V,e?i.enumMiter:i.enumBevel,this.m_bufferCommands.length+1))}else this.m_bufferCommands.push(P(k,r,w,0===t?i.enumArc:i.enumBevel,this.m_bufferCommands.length+1))}else k.equals(r)||(this.m_bufferCommands.push(y(k,w,this.m_bufferCommands.length+1)),this.m_bufferCommands.push(y(w,r,this.m_bufferCommands.length+1)));let a=new h.P;a.setAdd(T,E),this.m_bufferCommands.push(P(r,a,w,i.enumLine,this.m_bufferCommands.length+1)),k.setCoordsPoint2D(a),M.setCoordsPoint2D(E),v.setCoordsPoint2D(w),w.setCoordsPoint2D(T),I.setCoordsPoint2D(S),x=b,b=C,D=!1,C=c.getNextVertex(b)}return this.m_bufferCommands.at(-1).m_next=0,this.processBufferCommands(s),g.setShift(u),s.applyTransformationToPath(g,s.getPathCount()-1),1}processBufferCommands(e){let t=this.cleanupBufferCommands(),s=!0,r=t+1;for(let n=t;r!==t;n=r){let t=this.m_bufferCommands[n];r=-1===t.m_next?(n+1)%this.m_bufferCommands.length:t.m_next,t.m_type&&(s&&=(e.startPath(t.m_from),!1),t.m_type&i.enumJoinMask?this.addJoin(t.m_type,e,t.m_center,t.m_from,t.m_to,!1,!0):e.lineTo(t.m_to))}}cleanupBufferCommands(){this.m_helperArray=(0,h.d)(h.P,9);let e=0;for(let t=0,s=this.m_bufferCommands.length;t<s;){let s=this.m_bufferCommands[t];if(s.m_type&i.enumConnectionMask){e=t;break}t=s.m_next}let t=e+1;for(let s=e;t!==e;s=t){let e=this.m_bufferCommands[s];t=e.m_next;let r=1,n=null;for(;t!==s&&(n=this.m_bufferCommands[t],!(n.m_type&i.enumConnectionMask));)t=n.m_next,r++;1!==r&&(e.m_type&n.m_type)===i.enumLine&&(this.m_helperLine1.setStartXY(e.m_from),this.m_helperLine1.setEndXY(e.m_to),this.m_helperLine2.setStartXY(n.m_from),this.m_helperLine2.setEndXY(n.m_to),1===this.m_helperLine1.intersect(this.m_helperLine2,this.m_helperArray,null,null,this.m_smallTolerance.total())&&(e.m_to.assign(this.m_helperArray[0]),n.m_from.assign(this.m_helperArray[0]),e.m_next=t))}return e}isDegeneratePath(e,t){if(1===e.getPathSize(t))return!0;if(0===this.m_joins&&0===this.m_caps){let s=new u.Envelope2D;if(e.queryPathEnvelope(t,s),Math.max(s.width(),s.height())<.5*this.m_densifyDist)return!0}return!1}isDegenerateGeometry(e){if(0===this.m_joins&&0===this.m_caps){let t=new u.Envelope2D;if(e.queryEnvelope(t),Math.max(t.width(),t.height())<.5*this.m_densifyDist)return!0}return!1}addCircle(e,t){let s=t.getXY();if(0!==this.m_circleTemplate.length){let t=this.m_circleTemplate[0].clone();t.scaleAddThis(this.m_absDistance,s),e.startPath(t);for(let i=1,r=this.m_circleTemplate.length;i<r;i++)t=this.m_circleTemplate[i].clone(),t.scaleAddThis(this.m_absDistance,s),e.lineTo(t);return}let i=this.m_circleTemplateSize,r=Math.trunc((i+3)/4),n=.5*Math.PI/r;e.reserve(4*r);let m=Math.cos(n),l=Math.sin(n);for(let t=3;t>=0;t--){let i=h.P.construct(0,this.m_absDistance);switch(t){case 0:for(let t=0;t<r;t++)e.lineToCoords(i.x+s.x,i.y+s.y),i.rotateReverse(m,l);break;case 1:for(let t=0;t<r;t++)e.lineToCoords(-i.y+s.x,i.x+s.y),i.rotateReverse(m,l);break;case 2:for(let t=0;t<r;t++)e.lineToCoords(-i.x+s.x,-i.y+s.y),i.rotateReverse(m,l);break;default:e.startPathCoords(i.y+s.x,-i.x+s.y);for(let t=1;t<r;t++)i.rotateReverse(m,l),e.lineToCoords(i.y+s.x,-i.x+s.y)}this.progress_()}}addSquare(e,t){let s=new a.E({vd:t.getDescription()});s.setCoords(t.getX(),t.getY(),t.getX(),t.getY()),s.inflateCoords(this.m_absDistance,this.m_absDistance),e.addEnvelope(s,!1)}setStrongSimple(e){return e.getImpl().setIsSimple(4,this.m_tolerance.total()),e.getImpl().updateOGCFlagsProtected(),e}}function T(e){return(0,a.s)(e,0),e}function v(e,t){return!!e.isEmpty()||Math.min(e.width(),e.height())>t}function k(e,t,s,i,r,n,l,a){let o=e.getXY(s),u=e.getXY(i);if(o.equals(u))return-1;let _=.25*l,c=.25*l,f=new h.P;f.setSub(u,o);let g=f.length(),d=g*g*.25,p=n*n-d;if(p<=d)return-1;let P=Math.sqrt(p);f.normalize();let y=f.clone();y.rightPerpendicularThis();let b=d/P,x=b<=c,C=h.P.lerp(u,o,.5),D=y.clone(),w=b-_;D.scaleAddThis(Math.max(0,w),C),y.negate().scaleAddThis(P,C);let T=n-c,v=3.61*(0,h.e)(T),k=D.sub(o),S=D.sub(u),I=!1,E=0,M=(0,h.c)(64,0);(0,m.g)(a===M.length);{for(let n=e.getPrevVertexEx(i,r);n!==s;){if(1===e.getUserIndex(n,t))return-1;if(e.getXY(n).equals(u)){let t=e.getPrevVertexEx(n,r);e.removeVertex(n,!1),n=t;continue}break}let n=new h.P,l=o.clone();M[E++]=1;for(let m=e.getNextVertexEx(s,r);m!==i;){if(1===e.getUserIndex(m,t))return-1;let s=e.getXY(m);if(s.equals(l)){let t=e.getNextVertexEx(m,r);e.removeVertex(m,!1),m=t;continue}M[E++]=0;let i=new h.P;if(i.setSub(s,o),i.dotProduct(y)<0)return 0;(h.P.sqrDistance(s,o)>v||h.P.sqrDistance(s,u)>v)&&(I=!0);let a=0;if(s.sub(o).crossProduct(k)>=0&&(a=1),s.sub(u).crossProduct(S)<=0&&(a|=2),0===a)return 0;M[E-1]=a,n.assign(l),l.assign(s),m=e.getNextVertexEx(m,r)}if(1===E)return 0;(0,m.g)(E<M.length),M[E++]=2}let R=!0;for(let e=1,t=0;e<E;e++)if(M[e]!==M[e-1]&&(t++,R=t<3&&(1===t&&3===M[e]||2===t&&2===M[e]),!R))return 0;if(E>2&&R&&(3===E||!I)){let t=0,n=e.getNextVertexEx(s,r);for(x||(e.setXY(n,D),n=e.getNextVertexEx(n,r));n!==i;){let s=e.getNextVertexEx(n,r);e.removeVertex(n,!1),n=s,++t}return t}if((0,m.g)(3!==E),I&&E>3)return 0;let G=o.clone(),V=s,X=o.clone(),Y=1,A=-1,B=V,z=0;for(E=1;B!==i;){B=e.getNextVertexEx(B,r);let t=M[E++];if(0===t){if(B===i)break;continue}let s=e.getXY(B);if(-1!==A){if(A&Y&t&3){e.removeVertex(V,!0),z++,V=B,X.setCoordsPoint2D(s),Y=t;continue}if(3===Y&&0!==A&&0!==t){if(X.setCoordsPoint2D(D),x||X.equals(G)){e.removeVertex(V,!0),z++,V=B,X.setCoordsPoint2D(s),Y=t;continue}e.setXY(V,X)}}A=Y,G.setCoordsPoint2D(X),V=B,Y=t,X.setCoordsPoint2D(s)}return z}function S(e,t,s,i){for(let r=0,n=e.getPathCount();r<n;r++){let n=e.getXY(e.getPathStart(r));n.x!==s.xmin&&n.x!==s.xmax&&t.addPath(e,r,i)}}},70007(e,t,s){s.d(t,{c:()=>r});var i=s(55537);function r(e,t){let s=e.getGeometryType();return s===i.G.enumPoint?e:(0,i.j)(s)?function(e){if(function(e){for(let t=0,s=e.getPathCount();t<s;t++){let s=e.getPathSize(t);if(0===s||1===s&&(0===e.getSegmentCountPath(t)||e.getSegmentType(e.getPathStart(t))===i.G.enumLine||!e.isClosedPath(t)))return!1}return!0}(e))return e;let t=e.createInstance();for(let s=0,r=e.getPathCount();s<r;s++){let r=e.getPathSize(s);0!==r&&(1!==r||0!==e.getSegmentCountPath(s)&&e.getSegmentType(e.getPathStart(s))!==i.G.enumLine&&e.isClosedPath(s))&&t.addPath(e,s,!0)}return t}(e):(s===i.G.enumMultiPoint||s===i.G.enumEnvelope||s===i.G.enumMultipatch&&(0,i.a)("not implemented for multipatch"),e)}},64523(e,t,s){s.d(t,{O:()=>o});var i=s(32198),r=s(61691),n=s(55537),m=s(88885),l=s(95213),a=s(83661),h=s(5247);class o{getOperatorType(){return 10204}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,s,i){return new u(e,t,s,i)}execute(e,t,s,i){return e||(0,n.b)("null param is not allowed."),new u(null,t,s,i).generalize(e)}}class u extends r.G{m_progressTracker;m_geoms;m_pline=null;m_point=new l.P;m_xy;m_stack=[];m_resultstack=[];m_maxDeviation;m_bRemoveDegenerateParts;m_callCount=0;constructor(e,t,s,i){super(),this.m_progressTracker=i,this.m_geoms=e,this.m_maxDeviation=t,this.m_bRemoveDegenerateParts=s}tock(){return!0}getRank(){return 1}next(){let e=this.m_geoms.next();return null===e?null:((0,n.t)(e),this.generalize(e))}getGeometryID(){return this.m_geoms.getGeometryID()}generalize(e){let t=e.getGeometryType();if((0,n.f)(t))return e;if(t===n.G.enumEnvelope){let t=new m.P({vd:e.getDescription()});return t.addEnvelope(e,!1),this.generalize(t)}if((0,n.h)(t)){let t=new m.a({vd:e.getDescription()});return t.addSegment(e,!0),this.generalize(t)}if((0,n.j)(t)||(0,n.a)(""),e.isEmpty()||this.m_maxDeviation<=0)return e;let s=(new h.O).execute(e,0,.05*this.m_maxDeviation,0,this.m_progressTracker);e.hasNonLinearSegments()&&(this.m_maxDeviation*=.95);let r=s,l=e.createInstance();l.getGeometryType()===n.G.enumPolygon&&l.setFillRule(e.getFillRule()),this.m_xy=r.getAttributeStreamRef(0);{let e={stack:[],error:void 0,hasError:!1};try{let t=new m.L;this.m_pline=t,(0,i.mS)(e,(0,a.m)(()=>{this.m_pline=null},!1),!1);for(let e=0,t=r.getPathCount();e<t;e++)this.generalizePath(r.getImpl(),e,l.getImpl())}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}return this.m_resultstack.length=0,this.m_stack.length=0,l}generalizePath(e,t,s){if(e.getPathSize(t)<2)return;this.m_resultstack.length=0,this.m_stack.length=0;let i=e.getPathStart(t),r=e.getPathEnd(t)-1,n=e.isClosedPath(t),m=e.isClosedPathInXYPlane(t),l=0,h=-1;this.m_stack.push(n?i:r),this.m_stack.push(i);let o=!1,u=!1;for(!this.m_bRemoveDegenerateParts&&m&&(o=!0,u=!0);this.m_stack.length>1;){let t=this.m_stack.at(-1);this.m_stack.pop();let s=this.m_stack.at(-1),i=e.getXY(t);this.m_pline.setStartXY(i),i=e.getXY(s),this.m_pline.setEndXY(i);let n=[NaN],m=this.findGreatestDistance(t,s,r,n);m>=0&&(o?o=!1:(u&&n[0]>l&&(l=n[0],h=m),n[0]<=this.m_maxDeviation&&(m=-1))),m>=0?(this.m_stack.push(m),this.m_stack.push(t)):this.m_resultstack.push(t)}n||this.m_resultstack.push(this.m_stack[0]);let _=this.m_resultstack.length;if(_===e.getPathSize(t)&&_===this.m_stack.length)s.addPath(e,t,!0);else if(this.m_resultstack.length>0){if(this.m_bRemoveDegenerateParts&&this.m_resultstack.length<=2&&(n||1===this.m_resultstack.length||a.P.distance(e.getXY(this.m_resultstack[0]),e.getXY(this.m_resultstack[1]))<=this.m_maxDeviation))return;if(u&&h>=0&&l<=this.m_maxDeviation){let e=this.m_resultstack.at(-1)>h;this.m_resultstack.push(h),e&&(this.m_resultstack[this.m_resultstack.length-2]=(0,a.s)(this.m_resultstack[this.m_resultstack.length-1],this.m_resultstack[this.m_resultstack.length-1]=this.m_resultstack[this.m_resultstack.length-2]))}for(let t=0,i=this.m_resultstack.length;t<i;t++)e.getPointByVal(this.m_resultstack[t],this.m_point),0===t?s.startPathPoint(this.m_point):s.lineToPoint(this.m_point);if(n){for(let e=this.m_resultstack.length;e<3;e++)s.lineToPoint(this.m_point);s.closePathWithLine()}}}findGreatestDistance(e,t,s,i){let r=t-1;t<=e&&(r=s);let n=-1,m=0,l=new a.P;for(let t=e+1;t<=r;t++){this.m_xy.queryPoint2D(2*t,l);let e=l.x,s=l.y,i=this.m_pline.getClosestCoordinate(l,!1);l.assign(this.m_pline.getCoord2D(i)),l.x-=e,l.y-=s;let r=l.length();r>m&&(n=t,m=r),this.m_callCount++}return i[0]=m,n}}},98783(e,t,s){s.d(t,{O:()=>l});var i=s(61691),r=s(55537),n=s(76061),m=s(39117);class l{getOperatorType(){return 10104}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}isSimple(e,t,s,i,r){return 5===(0,m.X)(e,t,s,i,r)}executeMany(e,t,s,i){return new a(e,t,s,i)}execute(e,t,s,i){let m=new n.S([e]),l=this.executeMany(m,t,s,i).next();return l||(0,r.d)("null output"),l}}class a extends i.G{m_inputGeometryCursor;m_spatialReference;m_progressTracker;m_index;m_bForceSimplify;constructor(e,t,s,i){super(),e||(0,r.b)(""),this.m_progressTracker=i,this.m_bForceSimplify=s,this.m_index=-1,this.m_inputGeometryCursor=e,this.m_spatialReference=t}next(){let e=this.m_inputGeometryCursor.next();return e?((0,r.t)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(e)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(e){return e||(0,r.b)(""),(0,m.Y)(e,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}}}]);
|