@arcgis/core 4.34.0-next.52 → 4.34.0-next.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/applications/Components/formatUtils.d.ts +3 -0
- package/applications/Components/formatUtils.js +5 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{35fc8a64674005b1d1d7.js → 0a4357af5b8c0532b439.js} +1 -1
- package/assets/esri/core/workers/chunks/{e58336aafe8c95bb6831.js → 0eb728cee6e40cb30c01.js} +1 -1
- package/assets/esri/core/workers/chunks/{b87ed14fde381f79bc9f.js → 17776d9d3558d45ea7b5.js} +1 -1
- package/assets/esri/core/workers/chunks/23f54b49742098def8ae.js +1 -0
- package/assets/esri/core/workers/chunks/2efa4d8fe5454f8b2a05.js +1 -0
- package/assets/esri/core/workers/chunks/{a69e885336eb5d2729fd.js → 3505988ce3839cdbbc98.js} +1 -1
- package/assets/esri/core/workers/chunks/{46ab551bd19e52e73649.js → 3800764932a1c32cb29f.js} +1 -1
- package/assets/esri/core/workers/chunks/3c57b2e13628b5c1f6de.js +1 -0
- package/assets/esri/core/workers/chunks/435169b455fd2846799b.js +1 -0
- package/assets/esri/core/workers/chunks/{77493aa2118d462612a0.js → 43bd338bb0de375b9bb7.js} +1 -1
- package/assets/esri/core/workers/chunks/{5a016dcd3192d42d363e.js → 5fc414fc2cfc68828c5b.js} +1 -1
- package/assets/esri/core/workers/chunks/{ecd673eccf89643df07a.js → 659f7e99b2d524ef53fb.js} +2 -2
- package/assets/esri/core/workers/chunks/69e6000044bfb03776ac.js +1 -0
- package/assets/esri/core/workers/chunks/{037bc400257bc13b3ec8.js → 772e81e9162e2240a7a6.js} +1 -1
- package/assets/esri/core/workers/chunks/813efde41e90e652b7db.js +1 -0
- package/assets/esri/core/workers/chunks/82404ff7c298493ff6f4.js +1 -0
- package/assets/esri/core/workers/chunks/{f1de768b0a6d345f7e39.js → 8f6ff09e7d2f01b79faf.js} +1 -1
- package/assets/esri/core/workers/chunks/9639a6f6fab52a501bf7.js +1 -0
- package/assets/esri/core/workers/chunks/{cfa8b17cf1349f6ed355.js → 9e9be7f6ea32957f1088.js} +1 -1
- package/assets/esri/core/workers/chunks/9fef330b241f958b55df.js +1 -0
- package/assets/esri/core/workers/chunks/aab349d4624b78ef429f.js +1 -0
- package/assets/esri/core/workers/chunks/b9f5672093727c6f92c9.js +1 -0
- package/assets/esri/core/workers/chunks/bcc233a86e01ff1eac16.js +1 -0
- package/assets/esri/core/workers/chunks/cac060a187f3a27a19ba.js +1 -0
- package/assets/esri/core/workers/chunks/cda27c0fafd687dfa72e.js +1 -0
- package/assets/esri/core/workers/chunks/{82a390be9500b629f6bc.js → d0bf1fc6e3c198bc565d.js} +1 -1
- package/assets/esri/core/workers/chunks/dd120d562b63618e71c0.js +1 -0
- package/assets/esri/core/workers/chunks/dd2b5f115d156b5b212e.js +1 -0
- package/assets/esri/core/workers/chunks/e28d3ed65c3a76a044c8.js +1 -0
- package/assets/esri/core/workers/chunks/{fb4950995f6780f6c22a.js → ee0286b5f5475f2d853f.js} +1 -1
- package/assets/esri/core/workers/chunks/{c5b2a261d8c216ca4a10.js → f8505bf69795f5293a79.js} +1 -1
- package/assets/esri/core/workers/chunks/fae6030a81cb91a91b69.js +1 -0
- package/assets/esri/core/workers/chunks/ff7962063d132c1ec814.js +1 -0
- package/assets/esri/themes/base/widgets/_FloorFilter.scss +23 -19
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/config.js +1 -1
- package/geometry/operators/json/graphicBufferOperator.js +5 -0
- package/geometry/support/coordinateSystem.js +1 -1
- package/interfaces.d.ts +93 -185
- package/kernel.js +1 -1
- package/layers/KMLLayer.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/sources/WFSSourceWorker.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/support/ElevationQuery.js +1 -1
- package/layers/support/ExportImageParameters.js +1 -1
- package/networks/UtilityNetwork.js +1 -1
- package/networks/support/typeUtils.js +1 -1
- package/package.json +3 -3
- package/portal/Portal.js +1 -1
- package/renderers/support/rasterRendererHelper.js +1 -1
- package/renderers/support/utils.js +1 -1
- package/rest/featureService/FeatureService.js +1 -1
- package/rest/networks/support/Circuit.js +5 -0
- package/rest/networks/support/CircuitSection.js +1 -1
- package/rest/networks/support/Subcircuit.js +1 -1
- package/rest/print.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMEffects.js +1 -1
- package/symbols/cim/effects/EffectOffset.js +1 -1
- package/views/2d/analysisViewModuleImportUtils.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/input/MapViewInputManager.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/ElevationProfile/HoveredPointsVisualization.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
- package/views/3d/analysis/Viewshed/FieldOfViewManipulation.js +1 -1
- package/views/3d/analysisViewModuleImportUtils.js +5 -0
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveManipulation.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/ToolViewManager.js +1 -1
- package/views/View.js +1 -1
- package/views/View2D.js +1 -1
- package/views/draw/Draw.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/LegacyDrawManipulator.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/GraphicMover.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/input/InputManager.js +1 -1
- package/views/input/handlers/LatestPointer.js +1 -1
- package/views/interactive/InteractiveToolBase.js +1 -1
- package/views/interactive/ToolViewManagerManipulatorState.js +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/layers/support/popupUtils.js +1 -1
- package/views/support/AnalysisViewManager.js +5 -0
- package/views/support/PromiseQueue.js +5 -0
- package/views/support/Scheduler.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/support/ButtonMenu.js +1 -1
- package/widgets/FloorFilter/css.js +1 -1
- package/widgets/FloorFilter.js +1 -1
- package/widgets/HistogramRangeSlider.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/support/ItemList.js +1 -1
- package/assets/esri/core/workers/chunks/0874b88d5ae7c2b78b3b.js +0 -1
- package/assets/esri/core/workers/chunks/0c129b78e5cfe96795e1.js +0 -1
- package/assets/esri/core/workers/chunks/1a3a4c2c642899be37a0.js +0 -1
- package/assets/esri/core/workers/chunks/2b75212c31145cc07d16.js +0 -1
- package/assets/esri/core/workers/chunks/37a97e690786814bf0b3.js +0 -1
- package/assets/esri/core/workers/chunks/48e64f99720907017778.js +0 -1
- package/assets/esri/core/workers/chunks/4c6862ad3af947c704f7.js +0 -1
- package/assets/esri/core/workers/chunks/4d544e3e19ce07c2c195.js +0 -1
- package/assets/esri/core/workers/chunks/781b59ba0cabe78bc122.js +0 -1
- package/assets/esri/core/workers/chunks/8c1bd9bcfc59497de3b5.js +0 -1
- package/assets/esri/core/workers/chunks/8cc700da2ac58849a708.js +0 -1
- package/assets/esri/core/workers/chunks/9b7fee0adffeee8d45ae.js +0 -1
- package/assets/esri/core/workers/chunks/9d30fed26e0d84ef893b.js +0 -1
- package/assets/esri/core/workers/chunks/b29f0b32787edb4e75cf.js +0 -1
- package/assets/esri/core/workers/chunks/b877142a275188a16e17.js +0 -1
- package/assets/esri/core/workers/chunks/c87bb42f825c39f9cce3.js +0 -1
- package/assets/esri/core/workers/chunks/cc0cb4906e4419f7c4a9.js +0 -1
- package/assets/esri/core/workers/chunks/f667096ea325f690c4a6.js +0 -1
- package/assets/esri/core/workers/chunks/f9f94b5efa9a64cdb407.js +0 -1
- package/layers/graphics/data/executeQueryForSnapping.js +0 -5
- package/layers/support/PromiseQueue.js +0 -5
- package/views/3d/analysis/AnalysisViewManager3D.js +0 -5
- /package/assets/esri/core/workers/chunks/{ecd673eccf89643df07a.js.LICENSE.txt → 659f7e99b2d524ef53fb.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6222,8812],{5808:(e,t,n)=>{n.d(t,{O:()=>r});const r={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}},5874:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>i,executeMany:()=>u,isSimple:()=>a,supportsCurves:()=>c});var r=n(76061);const o=new(n(98783).O);var s=n(78125);function i(e){const t=(0,s.getSpatialReference)(e);return(0,s.toGeometry)(function(e,t){return o.execute(e,t,!1,null)}((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t)),t)}function u(e){const t=e.map(s.fromGeometry),n=(0,s.getSpatialReference)(e);return function(e,t){const n=o.executeMany(new r.S(e),t,!1,null);return Array.from(n)}(t,(0,s.fromSpatialReference)(n)).map(e=>(0,s.toGeometry)(e,n))}function a(e,t){return function(e,t,n,r){return o.isSimple(e,t,n,r,null)}((0,s.fromGeometry)(e),(0,s.fromSpatialReference)((0,s.getSpatialReference)(e)),null!=t,t??null)}const c=o.supportsCurves()},6222:(e,t,n)=>{n.r(t),n.d(t,{area:()=>G.a,buffer:()=>M,centroid:()=>D.c,clip:()=>E.c,contains:()=>w.c,convexHull:()=>R,crosses:()=>A,cut:()=>q.c,densify:()=>z.d,difference:()=>j.d,disjoint:()=>U,distance:()=>X.d,equals:()=>k.e,generalize:()=>L.g,geodesicBuffer:()=>_,geodeticArea:()=>d.g,geodeticDensify:()=>g.g,geodeticLength:()=>P.g,intersection:()=>W,intersects:()=>Z.i,isSelfIntersecting:()=>ve,labelPoint:()=>H.l,length:()=>$.l,loadAll:()=>Ge,offset:()=>ee,overlaps:()=>re,proximity:()=>oe.p,relate:()=>se.r,rotate:()=>Pe,simplify:()=>ae,symmetricDifference:()=>ce.s,touches:()=>fe,union:()=>ye,within:()=>ge});var r=n(24383),o=n(50647),s=n(4576),i=n(83047),u=n(24988),a=n(5808);let c,m,l,f,h;function p(){return!!c&&(0,u.s1)()}async function y(){if(!p()){const[e]=await Promise.all([Promise.resolve().then(n.bind(n,78125)),(0,u.Hh)()]);c=e.fromGeometry,m=e.fromSpatialReference,l=e.getSpatialReference,f=e.toPolygon,h=(0,u.fz)()}}const _=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){let{curveType:r="geodesic",maxDeviation:o=NaN,unit:s}=n;s&&(t=(0,i.oU)(t,s,"meters"),o&&(o=(0,i.oU)(o,s,"meters")));const h=l(e);return f((0,u.g7)(c(e),m(h),a.O[r],t,o),h)},executeMany:function(e,t,n={}){let{curveType:r="geodesic",maxDeviation:o=NaN,union:h=!1,unit:p}=n;p&&(t=t.map(e=>(0,i.oU)(e,p,"meters")),o&&(o=(0,i.oU)(o,p,"meters")));const y=e.map(c),_=l(e);return(0,u.zo)(y,m(_),a.O[r],t,o,h).map(e=>f(e,_)).filter(s.Ru)},isLoaded:p,load:y,get supportsCurves(){return h}},Symbol.toStringTag,{value:"Module"}));var d=n(49590),g=n(27749),P=n(39663),x=n(5874),v=n(78812),G=n(65708),b=n(41253),S=n(78125);const C=(0,b.fz)(),M=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){const{unit:r}=n,o=(0,S.getSpatialReference)(e);return r&&(t=(0,i.UW)(t,r,o)),(0,S.toPolygon)((0,b.g7)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(o),t),o)},executeMany:function(e,t,n={}){let{maxDeviation:r=NaN,maxVerticesInFullCircle:o=96,union:u=!1,unit:a}=n;const c=(0,S.getSpatialReference)(e);a&&(t=t.map(e=>(0,i.UW)(e,a,c)),r&&(r=(0,i.UW)(r,a,c)));const m=e.map(S.fromGeometry);return(0,b.yv)(m,(0,S.fromSpatialReference)(c),t,r,o,u).map(e=>(0,S.toPolygon)(e,c)).filter(s.Ru)},supportsCurves:C},Symbol.toStringTag,{value:"Module"}));var D=n(48265),E=n(83587),w=n(84252),N=n(91577);const I=(0,N.fz)(),R=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e){const t=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,N.g7)((0,S.fromGeometry)(e)),t)},executeMany:function(e,t={}){const{merge:n=!1}=t,r=e.map(S.fromGeometry),o=(0,S.getSpatialReference)(e);return(0,N.zo)(r,n).map(e=>(0,S.toGeometry)(e,o))},isConvex:function(e){return(0,N.qT)((0,S.fromGeometry)(e))},supportsCurves:I},Symbol.toStringTag,{value:"Module"})),T=new(n(29821).O),O=T.supportsCurves(),A=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return T.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return T.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:O},Symbol.toStringTag,{value:"Module"}));var q=n(68925),z=n(85503),j=n(70722);const B=new(n(39117).N),Y=B.supportsCurves(),U=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return B.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return B.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference))},supportsCurves:Y},Symbol.toStringTag,{value:"Module"}));var X=n(16346),k=n(90836),L=n(92523),F=n(33708);const V=(0,F.fz)(),W=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return(0,F.Sg)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t))},execute:function(e,t){const n=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,F.g7)((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(n)),n)},executeMany:function(e,t){const n=e.map(S.fromGeometry),r=(0,S.getSpatialReference)(e);return(0,F.zo)(n,(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(r),7).map(e=>(0,S.toGeometry)(e,r)).filter(s.Ru)},supportsCurves:V},Symbol.toStringTag,{value:"Module"}));var Z=n(10767),H=n(5913),$=n(7817),Q=n(66070);const J={round:0,bevel:1,miter:2,square:3},K=(0,Q.fz)(),ee=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){const{miterLimit:r=10,flattenError:o=0,joins:s="round",unit:u}=n,a=(0,S.getSpatialReference)(e);return u&&(t=(0,i.UW)(t,u,a)),(0,S.toGeometry)((0,Q.g7)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(a),t,J[s],r,o),a)},executeMany:function(e,t,n={}){const{miterLimit:r=10,flattenError:o=0,joins:u="round",unit:a}=n,c=(0,S.getSpatialReference)(e);a&&(t=(0,i.UW)(t,a,c));const m=e.map(S.fromGeometry);return(0,Q.zo)(m,(0,S.fromSpatialReference)(c),t,J[u],r,o).map(e=>(0,S.toGeometry)(e,c)).filter(s.Ru)},supportsCurves:K},Symbol.toStringTag,{value:"Module"})),te=new(n(85181).O),ne=te.supportsCurves(),re=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return te.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return te.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:ne},Symbol.toStringTag,{value:"Module"}));var oe=n(59260),se=n(65416),ie=n(81150);const ue=(0,ie.fz)(),ae=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e){const t=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,ie.g7)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),!1),t)},executeMany:function(e){const t=e.map(S.fromGeometry),n=(0,S.getSpatialReference)(e);return(0,ie.zo)(t,(0,S.fromSpatialReference)(n),!1).map(e=>(0,S.toGeometry)(e,n))},isSimple:function(e){return(0,ie.Pg)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)((0,S.getSpatialReference)(e)),!1)},supportsCurves:ue},Symbol.toStringTag,{value:"Module"}));var ce=n(96957);const me=new(n(46810).O),le=me.supportsCurves(),fe=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return me.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return me.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:le},Symbol.toStringTag,{value:"Module"}));var he=n(28298);const pe=(0,he.fz)(),ye=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t){const n=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,he.g7)((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(n)),n)},executeMany:function(e){const t=e.map(S.fromGeometry),n=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,he.zo)(t,(0,S.fromSpatialReference)(n)),n)},supportsCurves:pe},Symbol.toStringTag,{value:"Module"})),_e=new(n(22802).O),de=_e.supportsCurves(),ge=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return _e.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return _e.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:de},Symbol.toStringTag,{value:"Module"}));function Pe(e,t,n,r){const s=(new v.default).rotate(t,n,r);return(0,o.execute)(e,s)}const xe=new Set([5,6,7,10,11,12]);function ve(e){const t=new r.NonSimpleResult;return!(0,x.isSimple)(e,t)&&xe.has(t.m_reason)}async function Ge(){await Promise.all([(0,d.l)(),y(),(0,g.l)(),(0,P.l)()])}},7817:(e,t,n)=>{n.d(t,{e:()=>s,l:()=>u,s:()=>i});var r=n(83047),o=n(78125);function s(e,t={}){const{unit:n}=t;let s=(0,o.fromGeometry)(e).calculateLength2D();if(s&&n){const t=(0,o.getSpatialReference)(e);s=(0,r.PQ)(s,t,n)}return s}const i=!0,u=Object.freeze(Object.defineProperty({__proto__:null,execute:s,supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},10767:(e,t,n)=>{n.d(t,{a:()=>i,e:()=>u,i:()=>c,s:()=>a});var r=n(70031),o=n(78125);const s=new r.O;function i(e){const t=(0,o.getSpatialReference)(e);return s.accelerateGeometry((0,o.fromGeometry)(e),(0,o.fromSpatialReference)(t),1)}function u(e,t){return s.execute((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(e.spatialReference),null)}const a=s.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:i,execute:u,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},16346:(e,t,n)=>{n.d(t,{d:()=>m,e:()=>a,s:()=>c});var r=n(55537),o=n(26640),s=n(83047),i=n(78125);const u=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){return this.executeEx(e,t,n,null,null,Number.NaN)}executeEx(e,t,n,s,i,u){if(e.isEmpty()||t.isEmpty())return Number.NaN;(0,r.c)(e),(0,r.c)(t);const a=e,c=t;Number.isNaN(u)&&(u=Number.POSITIVE_INFINITY);const m=new o.D(u,n).calculate(a,c,s,i);return Number.isFinite(m)?m:Number.NaN}};function a(e,t,n={}){const{unit:r}=n;let o=u.execute((0,i.fromGeometry)(e),(0,i.fromGeometry)(t),null);if(o&&r){const t=(0,i.getSpatialReference)(e);o=(0,s.PQ)(o,t,r)}return o}const c=u.supportsCurves(),m=Object.freeze(Object.defineProperty({__proto__:null,execute:a,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},22802:(e,t,n)=>{n.d(t,{O:()=>o});var r=n(39117);class o extends r.T{getOperatorType(){return 7}execute(e,t,n,o){return(0,r.U)(e,t,n,2,o)}}},24988:(e,t,n)=>{n.d(t,{Hh:()=>u,fz:()=>m,g7:()=>a,s1:()=>i,zo:()=>c});var r=n(76061),o=n(83290);let s;function i(){return!!s&&(0,o.i)()}async function u(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(7444)]).then(n.bind(n,37444)),Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(5756)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,o.l)()]);s=new e.OperatorGeodesicBuffer,t(o.p)}}function a(e,t,n,r,o){return s.execute(e,t,n,r,o,!1,null)}function c(e,t,n,o,i,u){const a=s.executeMany(new r.S(e),t,n,o,i,!1,u,null);return Array.from(a)}function m(){return s.supportsCurves()}},26640:(e,t,n)=>{n.d(t,{D:()=>x,m:()=>m,s:()=>d,w:()=>_});var r=n(31635),o=n(55537),s=n(88885),i=n(39117),u=n(83661),a=n(79187),c=n(95213);function m(){return{outPoint:new u.P,index:-1,t:Number.NaN}}function l(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function f(e,t,n,r){e.outPoint.assign(t),e.index=n,e.t=r}function h(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function p(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function y(e,t){const n=m();h(n,e),h(e,t),h(t,n)}function _(e,t,n,r,s,u){if(e.getGeometryType()===o.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment();if(0!==(0,i.R)(e,t.getEndXY(),0))return f(s,t.getEndXY(),-1,Number.NaN),f(u,t.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(t.getGeometryType()===o.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,i.R)(t,e.getEndXY(),0))return f(s,e.getEndXY(),-1,Number.NaN),f(u,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function d(e){const t=e.getPathCount(),n=(0,u.d)(e.getSegmentCount(),0);let r=0;for(let o=0;o<t;++o){const t=r+e.getSegmentCountPath(o);for(let s=r,i=e.getPathStart(o);s<t;++s,++i)n[s]=i;r=t}return(0,s.s)(e.getPointCount(),n),n}function g(e,t){return!!Number.isNaN(t)||e<=t}function P(e){const t=new s.a;return t.addEnvelope(e,!1),t}class x{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,r){if((e.getGeometryType()!==c.P.type||t.getGeometryType()!==c.P.type)&&(this.m_env2DgeometryA=new a.Envelope2D,this.m_env2DgeometryB=new a.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!g(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const o=l(new u.P,(0,u.j)(),Number.NaN),s=l(new u.P,(0,u.j)(),Number.NaN),i=this._ExecuteBruteForce(e,t,o,s);return g(i,this.m_maxDistance)?(null!==n&&h(n,o),null!==r&&h(r,s),i):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==c.P.type&&e.getGeometryType()!==c.E.type||t.getGeometryType()!==c.P.type&&t.getGeometryType()!==c.E.type||(n=!1),n){if(this.m_env2DgeometryA=new a.Envelope2D,this.m_env2DgeometryB=new a.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=l(new u.P,(0,u.j)(),Number.NaN),o=l(new u.P,(0,u.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,r,o)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,r){switch(e.getGeometryType()){case o.G.enumPoint:return this.distancePointGeometry(e,t,n,r);case o.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,r);case o.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,r);case o.G.enumPolyline:case o.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,r);default:return Number.NaN}}distancePointGeometry(e,t,n,r){switch(t.getGeometryType()){case o.G.enumPoint:return this.distancePointPoint(e,t,n,r);case o.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,r);case o.G.enumPolyline:case o.G.enumPolygon:return this.distancePointMultipath(e,t,n,r);case o.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const o=e.getXY(),s=t.getXY();return f(n,o,0,0),f(r,s,0,0),Math.sqrt(u.P.sqrDistance(o,s))}distancePointMultipoint(e,t,n,r){const o=e.getXY();let s=this.m_maxSqrDistance,i=s,a=!1;const c=t.getPointCount(),m=new u.P;for(let e=0;e<c;++e)if(t.queryXY(e,m),i=u.P.sqrDistance(o,m),this.m_bIsNearCalc){if(i<=s)return 0}else if(!(i>s)&&(!a&&i===s||i<s)&&(s=i,f(n,o,0,0),f(r,m,e,0),a=!0,0===s))return 0;return a?Math.sqrt(s):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const s=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),c=e.getXY();if(!s&&t.getGeometryType()===o.G.enumPolygon&&0!==(0,i.R)(t,c,0))return f(n,c,0,0),f(r,c,-1,Number.NaN),0;t.getImpl().getAccelerators();let m=this.m_maxSqrDistance,l=m,h=-1;const p=new a.Envelope2D,y=t.querySegmentIterator();let _=!1;for(;y.nextPath();)for(;y.hasNextSegment();){const e=y.nextSegment();e.queryEnvelope(p);const t=p.sqrDistance(c);if(t>m)continue;if(!this.m_bIsNearCalc&&_&&t===m)continue;h=e.getClosestCoordinate(c,!1);const o=e.getCoord2D(h);if(l=u.P.sqrDistance(c,o),this.m_bIsNearCalc){if(l<=m)return 0}else if(!(l>m)&&(!_||l<m)&&(m=l,f(n,c,0,0),f(r,o,y.getStartPointIndex(),h),_=!0,0===m))return 0}return _?Math.sqrt(m):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const o=e.getXY();f(n,o,0,0),f(r,o,-1,Number.NaN);const s=t.asEnvelope2D();return s.contains(o)?0:Math.sqrt(s.sqrDistance(o,r.outPoint))}distanceMultipointGeometry(e,t,n,r){switch(t.getGeometryType()){case o.G.enumPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const o=this.distancePointMultipoint(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o}case o.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,r,1,1);case o.G.enumPolyline:case o.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,r);case o.G.enumEnvelope:return this.distanceMultipointMultipath(e,P(t),n,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,o,s,i){const a={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===s&&1===i){const r=Math.trunc((0,u.s)(Math.sqrt(e.getPointCount())+1,1,(0,u.i)())),s=Math.trunc((0,u.s)(Math.sqrt(t.getPointCount())+1,1,(0,u.i)()));if((r>=4||s>=4)&&this.distanceMultipointMultipoint(e,t,n,o,r,s)<=this.m_maxSqrDistance)return 0}let c=this.m_maxSqrDistance;const m=[e],l=[t],h=this.swapGeometriesIfBGtA(m,l);h&&(this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i=(0,u.c)(s,s=i),y(n,o)),(0,r.mS)(a,(0,u.h)(()=>{y(n,o),this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!h),!1);const p=m[0].getImpl(),_=l[0].getImpl(),d=p.getPointCount(),g=_.getPointCount(),P=g>1;let x=!1;const v=new u.P,G=new u.P;for(let e=0;e<d;e+=s){if(p.queryXY(e,v),P){const e=this.m_env2DgeometryB.sqrDistance(v);if(this.m_bIsNearCalc){if(e>c)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(v)<=c)return 0}else if(e>=c)continue}for(let t=0;t<g;t+=i){_.queryXY(t,G);const r=u.P.sqrDistance(v,G);if(this.m_bIsNearCalc){if(r<=c)return 0}else if(!(r>c||x&&r===c)&&(!x||r<c)&&(f(n,v,e,0),f(o,G,t,0),x=!0,c=r,0===c))return x?Math.sqrt(c):Number.POSITIVE_INFINITY}}return x?Math.sqrt(c):Number.POSITIVE_INFINITY}catch(e){a.error=e,a.hasError=!0}finally{(0,r.hk)(a)}}distanceMultipointMultipath(e,t,n,r){let s=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===o.G.enumPolygon;const c=t.querySegmentIterator();c.stripAttributes();const m=new a.Envelope2D,l=new u.P;let h=this.m_maxSqrDistance;const p=e.getImpl(),y=p.getPointCount(),_=y>1;let d=!1;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment();if(e.queryLooseEnvelope(m),_){const e=m.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>h)continue}else if(e>h||d&&e===h)continue}for(let o=0;o<y;o++){if(p.queryXY(o,l),s&&0!==(0,i.R)(t,l,0))return f(n,l,-1,Number.NaN),f(r,l,o,0),0;{const e=m.sqrDistance(l);if(this.m_bIsNearCalc){if(e>h)continue}else if(e>h)continue}const u=e.getClosestCoordinate(l,!1),a=e.getCoord2D(u);l.subThis(a);const y=l.sqrLength();if(this.m_bIsNearCalc){if(y<=h)return 0}else if(!(y>h)&&(!d||y<h)&&(h=y,f(n,p.getXY(o),o,0),f(r,a,c.getStartPointIndex(),u),d=!0,0===h))return 0}s=!1}return d?Math.sqrt(h):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,r){switch(t.getGeometryType()){case o.G.enumPoint:return this.distancePointEnvelope(t,e,r,n);case o.G.enumMultiPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const o=this.distanceMultipointMultipath(t,P(e),r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o}case o.G.enumPolyline:case o.G.enumPolygon:return this.distanceMultipathMultipath(P(e),t,n,r);case o.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const o=e.asEnvelope2D(),s=t.asEnvelope2D();return Math.sqrt(o.sqrDistanceEnvelope(s,n.outPoint,r.outPoint))}distanceMultipathGeometry(e,t,n,r){switch(t.getGeometryType()){case o.G.enumPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const o=this.distancePointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o}case o.G.enumMultiPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const o=this.distanceMultipointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o}case o.G.enumPolyline:case o.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,r);case o.G.enumEnvelope:return this.distanceMultipathMultipath(e,P(t),n,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,o){const i={stack:[],error:void 0,hasError:!1};try{const c=[e],l=[t],f=this.swapGeometriesIfAGtB(c,l);f&&(this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),y(n,o)),(0,r.mS)(i,(0,u.h)(()=>{y(n,o),this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!f),!1);const g=c[0],P=l[0],x=g.querySegmentIterator();x.stripAttributes();const v=P.querySegmentIterator();if(v.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,u.s)(Math.sqrt(g.getPointCount())+1,1,(0,u.i)())),t=Math.trunc((0,u.s)(Math.sqrt(g.getPointCount())+1,1,(0,u.i)()));if(this.distanceMultipointMultipoint(g,P,n,o,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=m(),t=m();if(_(g,P,x,v,e,t))return h(n,e),h(o,t),0}const G=d(g),b=[],S=new s.S,C=new a.Envelope2D,M=new a.Envelope2D,D=new a.Envelope2D;let E=this.m_maxSqrDistance,w=!0,N=!1;for(let e=0,t=G.length;e<t;++e){g.querySegment(G[e],S,!0);const t=S.get();if(t.queryEnvelope(C),!(C.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>E)){if(this.m_bIsNearCalc&&C.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=E)return 0;for(;v.nextPath();){if(this.progress_(),w)P.queryPathEnvelope(v.getPathIndex(),D),b[v.getPathIndex()]=D.clone();else if(C.sqrDistanceEnvelope(b[v.getPathIndex()],null,null)>E)continue;for(;v.hasNextSegment();){const r=v.nextSegment();if(r.queryEnvelope(M),C.sqrDistanceEnvelope(M,null,null)<=E){const s=!C.isIntersecting(M),i=[0],u=[0];let a=t.distance(r,s,i,u);if(a*=a,this.m_bIsNearCalc&&a<=this.m_maxSqrDistance)return 0;if(a<E||a===E&&G[e]<n.index){if(N=!0,p(n,t,G[e],i[0]),p(o,r,v.getStartPointIndex(),u[0]),0===a)return 0;E=a}}}}v.resetToFirstPath(),w=!1}}return N?Math.sqrt(E):Number.POSITIVE_INFINITY}catch(e){i.error=e,i.hasError=!0}finally{(0,r.hk)(i)}}swapGeometriesIfAGtB(e,t){return(0,o.v)(e[0])>(0,o.v)(t[0])&&(t[0]=(0,u.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},27749:(e,t,n)=>{n.d(t,{a:()=>p,e:()=>h,g:()=>y,i:()=>l,l:()=>f,s:()=>m});var r=n(83047),o=n(77085),s=n(5808);let i,u,a,c,m;function l(){return!!i&&(0,o.s1)()}async function f(){if(!l()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(8125)]).then(n.bind(n,78125)),(0,o.Hh)()]);i=e.fromGeometry,u=e.fromSpatialReference,a=e.getSpatialReference,c=e.toGeometry,m=(0,o.fz)()}}function h(e,t,n={}){const{curveType:m="geodesic",unit:l}=n;l&&(t=(0,r.oU)(t,l,"meters"));const f=a(e);return c((0,o.g7)(i(e),t,u(f),s.O[m]),f)}function p(e,t,n={}){const{curveType:m="geodesic",unit:l}=n;l&&(t=(0,r.oU)(t,l,"meters"));const f=e.map(i),h=a(e);return(0,o.zo)(f,t,u(h),s.O[m]).map(e=>c(e,h))}const y=Object.freeze(Object.defineProperty({__proto__:null,execute:h,executeMany:p,isLoaded:l,load:f,get supportsCurves(){return m}},Symbol.toStringTag,{value:"Module"}))},28298:(e,t,n)=>{n.d(t,{fz:()=>a,g7:()=>i,zo:()=>u});var r=n(76061),o=(n(55537),n(83661),n(88885),n(79187),n(39117));n(95213);const s=new o.W;function i(e,t,n){return s.execute(e,t,n,null)}function u(e,t){return s.executeMany(new r.S(e),t,null).next()}function a(){return s.supportsCurves()}},29821:(e,t,n)=>{n.d(t,{O:()=>o});var r=n(39117);class o extends r.T{getOperatorType(){return 6}execute(e,t,n,o){return(0,r.U)(e,t,n,16,o)}}},33708:(e,t,n)=>{n.d(t,{Sg:()=>i,fz:()=>c,g7:()=>u,zo:()=>a});var r=n(76061),o=(n(55537),n(39117));n(88885),n(95213);const s=new o.Q;function i(e,t){return s.accelerateGeometry(e,t,1)}function u(e,t,n){return s.execute(e,t,n,null)}function a(e,t,n,o){const i=s.executeMany(new r.S(e),new r.S([t]),n,null,o);return Array.from(i)}function c(){return s.supportsCurves()}},35223:(e,t,n)=>{n.d(t,{Hh:()=>i,fz:()=>a,g7:()=>u,s1:()=>s});var r=n(83290);let o;function s(){return!!o&&(0,r.i)()}async function i(){if(!s()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(4167)]).then(n.bind(n,28879)),Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(8344)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorGeodeticLength,t(r.p)}}function u(e,t,n){return o.execute(e,t,n,null)}function a(){return o.supportsCurves()}},39663:(e,t,n)=>{n.d(t,{e:()=>f,g:()=>h,i:()=>m,l:()=>l,s:()=>c});var r=n(83047),o=n(35223),s=n(5808);let i,u,a,c;function m(){return!!i&&(0,o.s1)()}async function l(){if(!m()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(3169)]).then(n.bind(n,78125)),(0,o.Hh)()]);i=e.fromGeometry,u=e.fromSpatialReference,a=e.getSpatialReference,c=(0,o.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,m=a(e);let l=(0,o.g7)(i(e),u(m),s.O[n]);return l&&c&&(l=(0,r.oU)(l,"meters",c)),l}const h=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:m,load:l,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},46810:(e,t,n)=>{n.d(t,{O:()=>o});var r=n(39117);class o extends r.T{getOperatorType(){return 5}execute(e,t,n,o){return(0,r.U)(e,t,n,8,o)}}},48265:(e,t,n)=>{n.d(t,{c:()=>a,e:()=>i,s:()=>u});var r=n(15546),o=n(78125);const s=new class{getOperatorType(){return 10205}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t){return(0,r.c)(e)}};function i(e){const t=s.execute((0,o.fromGeometry)(e),null);return(0,o.toPoint)(t,(0,o.getSpatialReference)(e))}const u=s.supportsCurves(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},49074:(e,t,n)=>{n.d(t,{fz:()=>a,g7:()=>i,zo:()=>u});var r=n(76061),o=(n(55537),n(39117));n(83661),n(88885),n(79187),n(95213);const s=new o.V;function i(e,t,n){return s.execute(e,t,n,null)}function u(e,t,n){const o=s.executeMany(new r.S(e),new r.S([t]),n,null);return Array.from(o)}function a(){return s.supportsCurves()}},49590:(e,t,n)=>{n.d(t,{e:()=>f,g:()=>h,i:()=>m,l:()=>l,s:()=>c});var r=n(83047),o=n(86742),s=n(5808);let i,u,a,c;function m(){return!!i&&(0,o.s1)()}async function l(){if(!m()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(3169)]).then(n.bind(n,78125)),(0,o.Hh)()]);i=e.fromGeometry,u=e.fromSpatialReference,a=e.getSpatialReference,c=(0,o.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,m=a(e);let l=(0,o.g7)(i(e),u(m),s.O[n]);return l&&c&&(l=(0,r.oU)(l,"square-meters",c)),l}const h=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:m,load:l,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},50647:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>m,executeMany:()=>l,supportsCurves:()=>f});var r=n(4576),o=n(76061),s=n(55537);class i extends o.G{constructor(e,t,n){super(),this.m_index=-1,this.m_transformation=t.clone(),this.m_inputGeometryCursor=e}next(){let e;if(e=this.m_inputGeometryCursor.next()){(0,s.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID();const t=e.clone();return t.applyTransformation(this.m_transformation),t}return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}}const u=new class{getOperatorType(){return 10303}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new i(e,t,n)}execute(e,t,n){const r=e.clone();return r.applyTransformation(t),r}};function a(e,t){return u.execute(e,t,null)}var c=n(78125);function m(e,t){const n=(0,c.getSpatialReference)(e);return(0,c.toGeometry)(a((0,c.fromGeometry)(e),t.transform),n)}function l(e,t){const n=e.map(c.fromGeometry),s=(0,c.getSpatialReference)(e);return function(e,t){const n=u.executeMany(new o.S(e),t,null);return Array.from(n)}(n,t.transform).map(e=>(0,c.toGeometry)(e,s)).filter(r.Ru)}const f=u.supportsCurves()},59260:(e,t,n)=>{n.d(t,{a:()=>c,b:()=>m,g:()=>a,p:()=>f,s:()=>l});var r=n(36633),o=n(83047),s=n(78125),i=n(79533);const u=new r.O;function a(e,t,n={}){const{calculateLeftRightSide:r=!1,testPolygonInterior:a=!0,unit:c}=n,m=u.getNearestCoordinate((0,s.fromGeometry)(e),(0,s.fromPoint)(t).getXY(),a,r);if(c&&m.m_distance){const t=(0,s.getSpatialReference)(e);m.m_distance=(0,o.PQ)(m.m_distance,t,c)}return(0,i.C)(m,e,r)}function c(e,t,n={}){const{unit:r}=n,a=u.getNearestVertex((0,s.fromGeometry)(e),(0,s.fromPoint)(t).getXY());if(r&&a.m_distance){const t=(0,s.getSpatialReference)(e);a.m_distance=(0,o.PQ)(a.m_distance,t,r)}return(0,i.C)(a,e)}function m(e,t,n,r,a={}){const{unit:c}=a,m=(0,s.getSpatialReference)(e);return c&&n&&(n=(0,o.UW)(n,c,m)),u.getNearestVertices((0,s.fromGeometry)(e),(0,s.fromPoint)(t).getXY(),n,r).map(t=>(c&&t.m_distance&&(t.m_distance=(0,o.PQ)(t.m_distance,m,c)),(0,i.C)(t,e)))}const l=u.supportsCurves(),f=Object.freeze(Object.defineProperty({__proto__:null,getNearestCoordinate:a,getNearestVertex:c,getNearestVertices:m,supportsCurves:l},Symbol.toStringTag,{value:"Module"}))},65416:(e,t,n)=>{n.d(t,{a:()=>i,e:()=>u,i:()=>a,r:()=>m,s:()=>c});var r=n(39117),o=n(78125);const s=new class{supportsCurves(){return!0}getOperatorType(){return 1}execute(e,t,n,o,s){return(0,r.aJ)(e,t,n,o,s)}isValidDE9IM(e){return 0===(0,r.aK)(e)}accelerateGeometry(e,t,n){return(0,r.aL)(e,t,n)}canAccelerateGeometry(e){return(0,r.aM)(e)}};function i(e){const t=(0,o.getSpatialReference)(e);return s.accelerateGeometry((0,o.fromGeometry)(e),(0,o.fromSpatialReference)(t),1)}function u(e,t,n){return s.execute((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(e.spatialReference),n,null)}function a(e){return s.isValidDE9IM(e)}const c=s.supportsCurves(),m=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:i,execute:u,isValidDE9IM:a,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},65708:(e,t,n)=>{n.d(t,{a:()=>u,e:()=>s,s:()=>i});var r=n(83047),o=n(78125);function s(e,t={}){const{unit:n}=t;let s=(0,o.fromGeometry)(e).calculateArea2D();if(s&&n){const t=(0,o.getSpatialReference)(e);if(t.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const i=(0,r.B5)(t);i!==n&&(i?s=(0,r.oU)(s,i,n):(s=Math.sqrt(s),s*=(0,r.GA)(t),s**=2,s=(0,r.oU)(s,"square-meters",n)))}return s}const i=!0,u=Object.freeze(Object.defineProperty({__proto__:null,execute:s,supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},66070:(e,t,n)=>{n.d(t,{fz:()=>g,g7:()=>_,zo:()=>d});var r=n(76061),o=n(95213),s=n(55537),i=n(88885),u=n(83661);const a=1.4142135623730951,c=.017453292519943295,m=256,l=1024;class f{static construct(e,t,n){const r=new f;return r.x=e.x,r.y=e.y,r.m_next=-1,r.m_prev=-1,r.z=t,r.m=n,r.type=0,r}clone(){const e=new f;return e.x=this.x,e.y=this.y,e.m_next=this.m_next,e.m_prev=this.m_prev,e.z=this.z,e.m=this.m,e.type=this.type,e}asPoint2D(){return new u.P(this.x,this.y)}}class h{constructor(e){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=e}constructOffset(){const e=this.m_inputGeometry.getGeometryType();if(e===s.G.enumLine)return this.offsetLine();if(e===s.G.enumEnvelope)return this.offsetEnvelope();if((0,s.f)(e)){const e=new i.P;return e.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=e,this.constructOffset()}if(e===s.G.enumPolyline){const e=new i.P;return this.offsetMultiPath(e),e}if(e===s.G.enumPolygon){const e=new i.a;return this.offsetMultiPath(e),e}(0,s.t)("")}offsetLine(){const e=this.m_inputGeometry,t=e.getStartXY(),n=e.getEndXY(),r=new u.P;r.setSub(n,t),r.normalize(),r.leftPerpendicularThis(),r.scale(this.m_distance),t.addThis(r),n.addThis(r);const o=e.clone();return o.setStartXY(t),o.setEndXY(n),o}offsetEnvelope(){const e=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const t=new i.a;return t.addEnvelope(e,!1),this.m_inputGeometry=t,this.constructOffset()}const t=e.clone();return t.inflateCoords(this.m_distance,this.m_distance),t}progress(){}static buildPoint(e,t,n,r){r.x=e.x+t*Math.cos(n),r.y=e.y+t*Math.sin(n),r.type=e.type,r.z=e.z,r.m=e.m,r.m_next=-1,r.m_prev=-1}addPoint(e){this.m_offsetPts.push(e.clone()),this.m_offsetPtCount++}addPointEx(e,t){if(0===this.m_offsetPtCount)return void this.addPoint(e);const n=this.m_srcPtCount,r=this.m_srcPts[0===t?n-1:t-1],o=this.m_srcPts[t],s=h.dotSign(r,o,this.m_offsetPts[this.m_offsetPtCount-1],e);if(s>0)this.addPoint(e);else if(s<0)if(h.dotSign(r,o,o,this.m_offsetPts[this.m_offsetPtCount-1])>0){const o=new f;let s;s=0===t?n-2:1===t?n-1:t-2;const i=this.m_srcPts[s],a=Math.atan2(r.y-i.y,r.x-i.x);if(h.buildPoint(r,this.m_distance,a-u.o,o),this.m_offsetPts[this.m_offsetPtCount-1]=o,1===this.m_joins||2===this.m_joins){o.x=.5*(o.x+r.x),o.y=.5*(o.y+r.y),this.addPoint(o),h.buildPoint(r,this.m_distance,this.m_a1+u.o,o);const e=o.clone();e.x=.5*(e.x+r.x),e.y=.5*(e.y+r.y),e.type|=m,this.addPoint(e),this.addPoint(o)}else h.buildPoint(r,this.m_distance,this.m_a1+u.o,o),o.type|=m,this.addPoint(o);this.addPointEx(e,t)}else{const e=new f;if(h.buildPoint(o,this.m_distance,this.m_a1+u.o,e),this.addPoint(e),1===this.m_joins||2===this.m_joins){e.x=.5*(e.x+o.x),e.y=.5*(e.y+o.y),this.addPoint(e),h.buildPoint(o,this.m_distance,this.m_a2-u.o,e);const t=e.clone();t.x=.5*(t.x+o.x),t.y=.5*(t.y+o.y),t.type|=m,this.addPoint(t),this.addPoint(e)}else h.buildPoint(o,this.m_distance,this.m_a2-u.o,e),e.type|=m,this.addPoint(e)}}buildOffset(){const e=new f,t=this.m_srcPtCount;this.m_offsetPtCount=0;const n=.5*this.m_tolerance;let r=0,o=0;for(let s=0;s<t;s++){const i=this.m_srcPts[s],f=0===s?this.m_srcPts[t-1]:this.m_srcPts[s-1],p=s===t-1?this.m_srcPts[0]:this.m_srcPts[s+1];let y,_,d=0;{const e=f.x-i.x,t=f.y-i.y,n=p.x-i.x,a=p.y-i.y;y=Math.atan2(t,e),_=Math.atan2(a,n),this.m_a1=y,this.m_a2=_,0===s&&(r=y,o=_),d=u.P.orientationRobust(i.asPoint2D(),f.asPoint2D(),p.asPoint2D())}const g=_;if(_<y&&(_+=u.p),d*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){h.buildPoint(i,this.m_distance,y+u.o,e),this.addPoint(e);const t=.001;e.x=i.x+(e.x-i.x)*t,e.y=i.y+(e.y-i.y)*t,this.addPoint(e),h.buildPoint(i,this.m_distance,_-u.o,e);const n=e.clone();n.x=i.x+(n.x-i.x)*t,n.y=i.y+(n.y-i.y)*t,n.type|=m,this.addPoint(n),this.addPoint(e)}else{const t=.5*(_-y),n=0===t?this.m_distance:this.m_distance/Math.abs(Math.sin(t));h.buildPoint(i,n,.5*(y+_),e),this.addPointEx(e,s)}else{if(512&i.type){const t=1-n/Math.abs(this.m_distance);let r=1,o=this.m_distance<0?-Math.PI:Math.PI;if(t>-1&&t<1){let e=2*Math.acos(t);e<c&&(e=c),r=Math.trunc(Math.PI/e+1.5),r>1&&(o/=r)}r<=1&&(r=2,o/=2);let a=y+u.o;h.buildPoint(i,this.m_distance,a,e),0===s&&(e.type|=l),this.addPointEx(e,s);const m=this.m_distance/Math.cos(o/2);for(a+=o/2,h.buildPoint(i,m,a,e),e.type|=l,this.addPoint(e);--r>0;)a+=o,h.buildPoint(i,m,a,e),e.type|=l,this.addPoint(e);h.buildPoint(i,this.m_distance,_-u.o,e),e.type|=l,this.addPoint(e);continue}if(1!==this.m_joins){if(0===this.m_joins){const t=1-n/Math.abs(this.m_distance);let r=1,o=_-u.o-(y+u.o);if(t>-1&&t<1){let e=2*Math.acos(t);e<c&&(e=c),r=Math.trunc(Math.abs(o)/e+1.5),r>1&&(o/=r)}const a=this.m_distance/Math.cos(.5*o);let m=y+u.o+.5*o;for(h.buildPoint(i,a,m,e),this.addPointEx(e,s);--r>0;)m+=o,h.buildPoint(i,a,m,e),this.addPoint(e);continue}if(2===this.m_joins){const t=f.x-i.x,n=f.y-i.y,r=p.x-i.x,o=p.y-i.y,c=(t*r+n*o)/Math.sqrt(t*t+n*n)/Math.sqrt(r*r+o*o);if(c>1-1e-8){h.buildPoint(i,a*this.m_distance,_-.25*Math.PI,e),this.addPointEx(e,s),h.buildPoint(i,a*this.m_distance,_+.25*Math.PI,e),this.addPoint(e);continue}const m=Math.abs(this.m_distance/Math.sin(.5*Math.acos(c))),l=Math.abs(this.m_miterLimit*this.m_distance);if(m>l){const t=.5*(_-y),n=this.m_distance/Math.abs(Math.sin(t));h.buildPoint(i,n,.5*(y+_),e);const r=u.P.construct(e.x,e.y),o=u.P.construct(i.x,i.y),a=new u.P;a.setSub(r,o);const c=new u.P;c.setScaleAdd(l/a.length(),a,o);const f=Math.sqrt(m*m-this.m_distance*this.m_distance),p=(m-l)*Math.abs(this.m_distance)/f;this.m_distance>0?a.leftPerpendicularThis():a.rightPerpendicularThis(),a.scale(p/a.length());const d=new u.P;d.setAdd(c,a);const g=new u.P;g.setSub(c,a),e.x=d.x,e.y=d.y,this.addPointEx(e,s),e.x=g.x,e.y=g.y,this.addPoint(e);continue}const d=.5*(_-y),g=this.m_distance/Math.abs(Math.sin(d));h.buildPoint(i,g,.5*(y+_),e),this.addPointEx(e,s);continue}{let t;if(_=g,this.m_distance>0?(_>y&&(_-=u.p),t=y-_<u.o):(_<y&&(_+=u.p),t=_-y<u.o),t){const t=this.m_distance*a;let n;n=t<0?y+.25*Math.PI:y+3*Math.PI*.25,h.buildPoint(i,t,n,e),this.addPointEx(e,s),n=t<0?_-.25*Math.PI:_-3*Math.PI*.25,h.buildPoint(i,t,n,e),this.addPoint(e)}else{const t=.5*(_-y),n=this.m_distance/Math.abs(Math.sin(t));_<y&&(_+=u.p),h.buildPoint(i,n,(y+_)/2,e),this.addPointEx(e,s)}}}else h.buildPoint(i,this.m_distance,y+u.o,e),this.addPointEx(e,s),h.buildPoint(i,this.m_distance,_-u.o,e),this.addPoint(e)}}return this.m_a1=r,this.m_a2=o,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let e=!1;for(let e=0;e<this.m_offsetPtCount;e++){const t=this.m_offsetPts[e];t.m_next=e+1,t.m_prev=e-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let t=0;for(let n=0;n<this.m_offsetPtCount;n++)if(this.m_offsetPts[t].type&m){const n=this.deleteClosedSeg(t);if(-1===n){e=!0;break}t=n}else t=this.m_offsetPts[t].m_next;return!e&&(this.compressOffsetArray(t),!0)}deleteClosedSeg(e){const t=this.m_offsetPtCount-1;let n,r,o=e;for(let s=1;s<=t-2;s++){o=this.m_offsetPts[o].m_next,n=o,r=e;for(let e=1;e<=s;e++){if(r=this.m_offsetPts[r].m_prev,0===(this.m_offsetPts[r].type&m)&&0===(this.m_offsetPts[n].type&m)){const e=this.handleClosedIntersection(r,n);if(-1!==e)return e}n=this.m_offsetPts[n].m_prev}}return-1}handleClosedIntersection(e,t){const n=this.m_offsetPts[this.m_offsetPts[e].m_prev],r=this.m_offsetPts[e],o=this.m_offsetPts[this.m_offsetPts[t].m_prev],s=this.m_offsetPts[t];if(!this.sectGraphicRect(n,r,o,s))return-1;const i={pt:new f,bAtExistingPt:!1};if(((r.x-n.x)*(s.y-o.y)-(r.y-n.y)*(s.x-o.x))*this.m_distance<0&&this.findIntersection(n,r,o,s,i)&&!i.bAtExistingPt){const u=1e-8,a=Math.sqrt((r.x-n.x)*(r.x-n.x)+(r.y-n.y)*(r.y-n.y)),c=(r.x-n.x)/a,m=(r.y-n.y)/a,l=Math.sqrt((s.x-o.x)*(s.x-o.x)+(s.y-o.y)*(s.y-o.y)),f=(s.x-o.x)/l,h=(s.y-o.y)/l;let p=!1;const y=i.pt.clone();y.x+=(c+f)*u,y.y+=(m+h)*u;let _=o,d=i.pt,g=this.m_offsetPts[e].m_prev;for(;d.y>y.y!=_.y>y.y&&y.x<(_.x-d.x)*(y.y-d.y)/(_.y-d.y)+d.x&&(p=!p),_=d,g=this.m_offsetPts[g].m_next,g!==t;)d=this.m_offsetPts[g];if(p)return-1;const P=this.m_offsetPts[e].m_prev;return i.pt.type=r.type,i.pt.m_next=t,i.pt.m_prev=P,this.m_offsetPts[e]=i.pt,this.m_offsetPts[t].m_prev=e,t}return-1}sectGraphicRect(e,t,n,r){return Math.max(e.x,t.x)>=Math.min(n.x,r.x)&&Math.max(n.x,r.x)>=Math.min(e.x,t.x)&&Math.max(e.y,t.y)>=Math.min(n.y,r.y)&&Math.max(n.y,r.y)>=Math.min(e.y,t.y)}findIntersection(e,t,n,r,o){let s,i,u,a;return o.bAtExistingPt=!1,s=(t.y-e.y)*(r.x-n.x)-(t.x-e.x)*(r.y-n.y),i=(n.y-e.y)*(t.x-e.x)-(n.x-e.x)*(t.y-e.y),u=0===s?2:i/s,u>=0&&u<=1&&(a=u,s=(r.y-n.y)*(t.x-e.x)-(r.x-n.x)*(t.y-e.y),i=(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y),u=0===s?2:i/s,u>=0&&u<=1)&&(o.pt.x=e.x+u*(t.x-e.x),o.pt.y=e.y+u*(t.y-e.y),this.m_bUseZ&&(o.pt.z=n.z+a*(r.z-n.z)),this.m_bUseM&&(o.pt.m=n.m+a*(r.m-n.m)),0!==a&&1!==a||0!==u&&1!==u||(o.bAtExistingPt=!0),!((0===a||1===a)&&u>0&&u<1||(0===u||1===u)&&a>0&&a<1))}compressOffsetArray(e){for(;this.m_offsetPts[e].m_prev<e;)e=this.m_offsetPts[e].m_prev;let t=0,n=e;do{const e=this.m_offsetPts[n].clone();this.m_offsetPts[t]=e,n=e.m_next,t++}while(n!==e);this.m_offsetPts[t]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=t+1}addPart(e,t){if(!(t<2))for(let n=0;n<t;n++){const t=this.m_offsetPts[e+n];if(n?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(t.x,t.y,t.z):this.m_resultPath.lineToCoords(t.x,t.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(t.x,t.y,t.z):this.m_resultPath.startPathCoords(t.x,t.y),this.m_bUseM){const e=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,e,0,t.m)}}}offsetMultiPath(e){const t=(0,i.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),n=t.querySegmentIterator();n.resetToFirstPath();let r=-1;for(;n.nextPath();)r++,this.offsetPath(t,r,e)}offsetPath(e,t,n){let r=e.getPathStart(t),o=e.getPathEnd(t);if(this.m_resultPath=n,e.isClosedPath(t)){const t=e.getXY(r);for(;o>r&&e.getXY(o-1).equals(t);)o--;if(o-r>=2){this.m_srcPtCount=o-r,this.m_srcPts.length=this.m_srcPtCount;for(let t=r;t<o;t++)this.progress(),this.m_srcPts[t-r]=f.construct(e.getXY(t),this.m_bUseZ?e.getAttributeAsDbl(1,t,0):0,this.m_bUseM?e.getAttributeAsDbl(2,t,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const t=e.getXY(r);for(;r<o-1&&e.getXY(r+1).equals(t);)r++;const n=e.getXY(o-1);for(;r<o-1&&e.getXY(o-2).equals(n);)o--;if(o-r>=2){this.m_srcPtCount=2*(o-r)-2,this.m_srcPts.length=this.m_srcPtCount;let n=f.construct(t,this.m_bUseZ?e.getAttributeAsDbl(1,r,0):0,this.m_bUseM?e.getAttributeAsDbl(2,r,0):0);n.type|=1536,this.m_srcPts[0]=n;let s=1,i=this.m_srcPtCount-1;for(let t=r+1;t<o-1;t++,s++,i--)this.progress(),n=f.construct(e.getXY(t),this.m_bUseZ?e.getAttributeAsDbl(1,t,0):0,this.m_bUseM?e.getAttributeAsDbl(2,t,0):0),this.m_srcPts[s]=n.clone(),n.type|=l,this.m_srcPts[i]=n.clone();if(n=f.construct(e.getXY(o-1),this.m_bUseZ?e.getAttributeAsDbl(1,o-1,0):0,this.m_bUseM?e.getAttributeAsDbl(2,o-1,0):0),n.type|=512,this.m_srcPts[s]=n.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let e=-1,t=-1,n=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&l);n||(e=0);for(let r=1;r<this.m_offsetPtCount;r++){this.progress();const o=0!==(this.m_offsetPts[r].type&l);o?n||(t=r-1,t-e+1>1&&this.addPart(e,t-e+1)):n&&(e=r-1),n=o}n||(t=this.m_offsetPtCount-1,t-e+1>1&&this.addPart(e,t-e+1))}else{const e=0,t=this.m_offsetPtCount-1;t-e>=1&&this.addPart(e,t-e+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(e,t,n,r){const o=t.x-e.x,s=t.y-e.y,i=r.x-n.x,a=r.y-n.y,c=(0,u.t)(o,s,i,a);return(0,u.e)(c)}}class p extends r.G{constructor(e,t,n,r,o,s,i){super(),this.m_progressTracker=i,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distance=n,this.m_joins=r,this.m_miterLimit=o,this.m_flattenError=s}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let e;for(;e=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(e);return null}getGeometryID(){return this.m_index}offset(e){let t;return(0,s.c)(e),t=this.m_flattenError<=0?(0,o.b)(this.m_spatialReference,e,!0).total():this.m_flattenError,function(e,t,n,r,o,i){if(null===e&&(0,s.a)(""),e.getDimension()<1&&(0,s.a)(""),o>0||(0,s.a)(""),(0,s.c)(e),0===t||e.isEmpty())return e;const u=new h(i);return u.m_bUseZ=e.hasAttribute(1),u.m_bUseM=e.hasAttribute(2),u.m_inputGeometry=e,u.m_distance=t,u.m_tolerance=o,u.m_joins=n,u.m_miterLimit=r>1?r:1,u.m_progressCounter=0,u.constructOffset()}(e,this.m_distance,this.m_joins,this.m_miterLimit,t,this.m_progressTracker)}}const y=new class{getOperatorType(){return 10108}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t,n,r,o,s,i){return new p(e,t,n,r,o,s,i)}execute(e,t,n,r,o,s,i){return new p(null,t,n,r,o,s,i).offset(e)}};function _(e,t,n,r,o,s){return y.execute(e,t,n,r,o,s,null)}function d(e,t,n,o,s,i){const u=y.executeMany(new r.S(e),t,n,o,s,i,null);return Array.from(u)}function g(){return y.supportsCurves()}},68613:(e,t,n)=>{n.d(t,{fz:()=>y,g7:()=>h,zo:()=>p});var r=n(76061),o=n(55537),s=n(83661),i=n(88885),u=n(79187),a=n(95213),c=n(39117);function m(e,t,n,r){const o=e.getImpl().getAttributeStreamRef(0),i=e.getPointCount(),c=t.getXY(),m=e.createInstance(),l=(0,a.e)(n),f=new u.Envelope2D;if(e.queryEnvelope(f),f.inflateCoords(l,l),f.contains(c)){const n=l*l;let r=!1;const u=(0,s.d)(i,!1);for(let e=0;e<i;e++){const t=o.read(2*e),s=o.read(2*e+1),i=t-c.x,a=s-c.y;i*i+a*a<=n&&(r=!0,u[e]=!0)}if(r)for(let t=0;t<i;t++)u[t]||m.addPoints(e,t,t+1);else m.addPoints(e,0,i),m.add(t)}else m.addPoints(e,0,i),m.add(t);return m}class l extends r.G{constructor(e,t,n,r){super(),this.m_progressTracker=r,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=n,this.m_rightGeom=t.next(),this.m_bEmpty=!this.m_rightGeom,(0,o.c)(this.m_rightGeom)}tock(){return!0}getRank(){return 1}next(){if(this.m_bEmpty)return null;const e=this.m_inputGeoms.next();return e?((0,o.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),function(e,t,n,r){const l=e.getDimension(),f=t.getDimension();if(l!==f)return l>f?e:t;if(e.isEmpty())return t;if(t.isEmpty())return e;const h=new u.Envelope2D,p=new u.Envelope2D,y=new u.Envelope2D;e.queryEnvelope(h),t.queryEnvelope(p),y.setCoords({env2D:h}),y.mergeEnvelope2D(p);const _=(0,a.c)(n,y,!0),d=e.getGeometryType(),g=t.getGeometryType();return d===o.G.enumPoint&&g===o.G.enumPoint?function(e,t,n){const r=(0,a.e)(n),o=r*r,u=e.getXY(),c=t.getXY(),m=new i.M({vd:e.getDescription()});return s.P.sqrDistance(u,c)>o&&(m.add(e),m.add(t)),m}(e,t,_):d===o.G.enumPoint&&g===o.G.enumMultiPoint?m(t,e,_):d===o.G.enumMultiPoint&&g===o.G.enumPoint?m(e,t,_):(0,c.aO)(e,t,n,r)}(e,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const f=new class{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r){return new l(e,t,n,r)}execute(e,t,n,s){const i=new r.S([e]),u=new r.S([t]),a=this.executeMany(i,u,n,s).next();return a||(0,o.d)("null output"),a}};function h(e,t,n){return f.execute(e,t,n,null)}function p(e,t,n){const o=f.executeMany(new r.S(e),new r.S([t]),n,null);return Array.from(o)}function y(){return f.supportsCurves()}},68925:(e,t,n)=>{n.d(t,{c:()=>a,e:()=>i,s:()=>u});var r=n(4576),o=n(90756),s=n(78125);function i(e,t){const n=(0,s.getSpatialReference)(e);return(0,o.g)((0,s.fromGeometry)(e),(0,s.fromPolyline)(t),(0,s.fromSpatialReference)(n)).map(e=>(0,s.toGeometry)(e,n)).filter(r.Ru)}const u=(0,o.f)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},70031:(e,t,n)=>{n.d(t,{O:()=>o});var r=n(39117);class o extends r.T{getOperatorType(){return 4}execute(e,t,n,o){return!(0,r.U)(e,t,n,4,o)}}},70722:(e,t,n)=>{n.d(t,{a:()=>i,d:()=>a,e:()=>s,s:()=>u});var r=n(49074),o=n(78125);function s(e,t){const n=(0,o.getSpatialReference)(e);return(0,o.toGeometry)((0,r.g7)((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(n)),n)}function i(e,t){const n=e.map(o.fromGeometry),s=(0,o.getSpatialReference)(e);return(0,r.zo)(n,(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(s)).map(e=>(0,o.toGeometry)(e,s))}const u=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:s,executeMany:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},70787:(e,t,n)=>{n.d(t,{fz:()=>u,g7:()=>s,zo:()=>i});var r=n(76061);const o=new(n(64523).O);function s(e,t,n){return o.execute(e,t,n,null)}function i(e,t,n){const s=o.executeMany(new r.S(e),t,n,null);return Array.from(s)}function u(){return o.supportsCurves()}},77085:(e,t,n)=>{n.d(t,{Hh:()=>u,fz:()=>m,g7:()=>a,s1:()=>i,zo:()=>c});var r=n(76061),o=n(83290);let s;function i(){return!!s&&(0,o.i)()}async function u(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(1088)]).then(n.bind(n,31088)),Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(5756)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,o.l)()]);s=new e.OperatorGeodeticDensifyByLength,t(o.p)}}function a(e,t,n,r){return s.execute(e,t,n,r,null)}function c(e,t,n,o){const i=s.executeMany(new r.S(e),t,n,o,null);return Array.from(i)}function m(){return s.supportsCurves()}},78812:(e,t,n)=>{n.d(t,{default:()=>a});var r=n(83661),o=n(11878),s=n(34727);const i={uniform:0,conformal:1,rigid:2,"rigid-motion":3,general:4},u=e=>e.map(e=>new r.P(e.x,e.y));class a{constructor(){this.transform=new o.T}calculateErrors(e,t){const n=e.length,r=t.length;if(n!==r)throw new Error(`The input length (${n}) is not the same as output length (${r})`);const o=[];return{rms:this.transform.calculateErrors(n,u(e),u(t),o),errorsOut:o}}flipX(e,t){return this.transform.flipX(e,t),this}flipY(e,t){return this.transform.flipY(e,t),this}initializeFromControlPoints(e,t,n,r){const o=t.length,s=n.length;if(o!==s)throw new Error(`The input length (${o}) is not the same as output length (${s})`);this.transform.initializeFromControlPoints(i[e],o,u(t),u(n),r?.transform)}isIdentity(){return this.transform.isIdentity()}rotate(e,t,n){const o=(0,s.kU)(e);return null!=t&&null!=n?this.transform.rotateAngleAbout(o,new r.P(t,n)):this.transform.rotateAngle(o),this}scale(e,t){return this.transform.scale(e,t),this}setIdentity(){this.transform.setIdentity()}setSwapCoordinates(){return this.transform.setSwapCoordinates(),this}shear(e,t){return this.transform.shear(e,t),this}shift(e,t){return this.transform.shiftCoords(e,t),this}}},79533:(e,t,n)=>{n.d(t,{C:()=>o});var r=n(78125);function o(e,t,n=!1){const o=(0,r.toPoint)(e.m_coordinate,(0,r.getSpatialReference)(t)),s=e.m_distance,i=e.isEmpty(),u=e.m_bRightSide;return{coordinate:o,distance:s,isEmpty:i,...n&&{isRightSide:u},vertexIndex:e.m_vertexIndex}}},81150:(e,t,n)=>{n.d(t,{Pg:()=>a,fz:()=>c,g7:()=>i,zo:()=>u});var r=n(76061),o=(n(55537),n(88885),n(39117));n(95213);const s=new o.L;function i(e,t,n){return s.execute(e,t,n,null)}function u(e,t,n){const o=s.executeMany(new r.S(e),t,n,null);return Array.from(o)}function a(e,t,n){return s.isSimpleAsFeature(e,t,n,null,null)}function c(){return s.supportsCurves()}},83587:(e,t,n)=>{n.d(t,{a:()=>i,c:()=>a,e:()=>s,s:()=>u});var r=n(96027),o=n(78125);function s(e,t){const n=(0,o.getSpatialReference)(e),s=(0,o.fromExtent)(t).asEnvelope2D();return(0,o.toGeometry)((0,r.g7)((0,o.fromGeometry)(e),s,(0,o.fromSpatialReference)(n)),n)}function i(e,t){const n=e.map(o.fromGeometry),s=(0,o.getSpatialReference)(e),i=(0,o.fromExtent)(t).asEnvelope2D();return(0,r.zo)(n,i,(0,o.fromSpatialReference)(s)).map(e=>(0,o.toGeometry)(e,s))}const u=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:s,executeMany:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},84252:(e,t,n)=>{n.d(t,{a:()=>i,c:()=>c,e:()=>u,s:()=>a});var r=n(39117),o=n(78125);const s=new r.M;function i(e){const t=(0,o.getSpatialReference)(e);return s.accelerateGeometry((0,o.fromGeometry)(e),(0,o.fromSpatialReference)(t),1)}function u(e,t){return s.execute((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(e.spatialReference),null)}const a=s.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:i,execute:u,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},85181:(e,t,n)=>{n.d(t,{O:()=>o});var r=n(39117);class o extends r.T{getOperatorType(){return 9}execute(e,t,n,o){return(0,r.U)(e,t,n,32,o)}}},85503:(e,t,n)=>{n.d(t,{a:()=>c,d:()=>l,e:()=>a,s:()=>m});var r=n(4576),o=n(34727),s=n(83047),i=n(91735),u=n(78125);function a(e,t,n={}){let{maxAngleInDegrees:r=0,maxDeviation:a=0,unit:c}=n;const m=(0,u.getSpatialReference)(e);return c&&(t=(0,s.UW)(t,c,m),a&&(a=(0,s.UW)(a,c,m))),(0,u.toGeometry)((0,i.g7)((0,u.fromGeometry)(e),t,a,(0,o.kU)(r)),m)}function c(e,t,n={}){let{maxAngleInDegrees:a=0,maxDeviation:c=0,unit:m}=n;const l=e.map(u.fromGeometry),f=(0,u.getSpatialReference)(e);return m&&(t=(0,s.UW)(t,m,f),c&&(c=(0,s.UW)(c,m,f))),(0,i.zo)(l,t,c,(0,o.kU)(a)).map(e=>(0,u.toGeometry)(e,f)).filter(r.Ru)}const m=(0,i.fz)(),l=Object.freeze(Object.defineProperty({__proto__:null,execute:a,executeMany:c,supportsCurves:m},Symbol.toStringTag,{value:"Module"}))},86742:(e,t,n)=>{n.d(t,{Hh:()=>i,fz:()=>a,g7:()=>u,s1:()=>s});var r=n(83290);let o;function s(){return!!o&&(0,r.i)()}async function i(){if(!s()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(6859),n.e(6558)]).then(n.bind(n,6558)),Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(8344)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorGeodeticArea,t(r.p)}}function u(e,t,n){return o.execute(e,t,n,null)}function a(){return o.supportsCurves()}},90756:(e,t,n)=>{n.d(t,{g:()=>f,f:()=>h});var r=n(76061),o=n(55537),s=n(88885),i=n(95213),u=n(39117),a=u.a2;function c(e,t){return{m_geometry:e,m_side:t}}class m extends r.G{constructor(e,t,n,r,o){super(),this.m_cutIndex=-1,this.m_cuts=[],this.m_progressTracker=o,this.m_cuttee=t.clone(),this.m_cutter=new s.P({copy:n}),this.m_bConsiderTouch=e;const u=(0,i.g)(t,n);this.m_tolerance=(0,i.c)(r,u,!0)}next(){return-1===this.m_cutIndex&&this.generateCuts(),++this.m_cutIndex<this.m_cuts.length?this.m_cuts[this.m_cutIndex]:null}getGeometryID(){return this.m_cutIndex}tock(){return!0}getRank(){return 1}generateCuts(){switch(this.m_cuttee.getGeometryType()){case o.G.enumPolyline:this.generatePolylineCuts();break;case o.G.enumPolygon:this.generatePolygonCuts()}}generatePolylineCuts(){const e=new s.P,t=new s.P,n=new s.P;this.m_cuts.length=0,this.m_cuts.push(e),this.m_cuts.push(t);const r=[];!function(e,t,n,r,o,i){if(t.isEmpty()){const e=c(t,0);return void o.push(e)}if(n.isEmpty()){const e=c(t,0);return void o.push(e)}const m=[],l=new s.E;{const s=l.createGeometryUserIndex(),f=l.addGeometry(t),h=l.addGeometry(n),p=new u.a0(i);let y=0,_=null;if(l.hasCurves()){_=new a;const e=l.getEnvelope2D(i);y=(0,u.Z)(r.total());const t=(0,u._)(r.total(),e);(0,u.$)(l,t,r.total(),12e3,_,null,i)}l.dbgVerifyCurves(),p.setEditShapeCrackAndCluster(l,r),p.cut(e,s,f,h,m);for(const e of m){null!==_&&_.stitchCurves(l,e,y,!1);const t=c(l.getGeometry(e),(0,u.a1)(l.getGeometryUserIndex(e,s)));o.push(t)}null!==_&&_.clearStitcher(l)}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let s=0;s<r.length;s++){const i=r[s];1===i.m_side?e.add(i.m_geometry,!1):2===i.m_side||4===i.m_side?t.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,o.d)("")}n.isEmpty()||e.isEmpty()&&t.isEmpty()&&!(this.m_cuts.length>=3)||this.m_cuts.push(n),e.isEmpty()&&t.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}generatePolygonCuts(){const e=new s.a,t=new s.a,n=new s.a;this.m_cuts.length=0,this.m_cuts.push(e),this.m_cuts.push(t);const r=[];!function(e,t,n,r,o,i){if(t.isEmpty()){const e=c(t,0);return void o.push(e)}if(n.isEmpty()){const e=c(t,0);return void o.push(e)}const m=[],l=new s.E;{const e=l.createGeometryUserIndex(),f=l.addGeometry(t),h=l.addGeometry(n),p=new u.a0(i);let y=0,_=null;if(l.hasCurves()){_=new a;const e=l.getEnvelope2D(i);y=(0,u.Z)(r.total());const t=(0,u._)(r.total(),e);(0,u.$)(l,t,r.total(),12e3,_,null,i)}l.dbgVerifyCurves(),p.setEditShapeCrackAndCluster(l,r),p.cut(!1,e,f,h,m),null!==_&&_.stitchCurves(l,s.n,y,!0);let d=l.getGeometry(f);const g=new s.a,P=new s.a,x=[];for(let t=0;t<m.length;t++){let n=null;{const o=new s.E,a=o.addGeometry(d),c=o.addGeometry(l.getGeometry(m[t]));if(o.hasCurves()){const e=o.getEnvelope2D(i);y=(0,u.Z)(r.total());const t=(0,u._)(r.total(),e);(0,u.$)(o,t,r.total(),12e3,_,null,i)}p.setEditShapeCrackAndCluster(o,r);const f=p.intersection(a,c);if(null!==_&&_.stitchCurves(o,s.n,y,!0),n=o.getGeometry(f),n.isEmpty())continue;const h=l.getGeometryUserIndex(m[t],e);2===h?g.add(n,!1):1===h?P.add(n,!1):x.push(n)}{const e=new s.E,n=e.addGeometry(d),o=e.addGeometry(l.getGeometry(m[t]));if(e.hasCurves()){const t=e.getEnvelope2D(i);y=(0,u.Z)(r.total());const n=(0,u._)(r.total(),t);(0,u.$)(e,n,r.total(),12e3,_,null,i)}p.setEditShapeCrackAndCluster(e,r);const a=p.difference(n,o);null!==_&&_.stitchCurves(e,s.n,y,!0),d=e.getGeometry(a)}}if(!d.isEmpty()&&m.length>0&&x.push(d),g.isEmpty()&&P.isEmpty())return;if(!g.isEmpty()){const e=c(g,1);o.push(e)}if(!P.isEmpty()){const e=c(P,2);o.push(e)}for(let e=0,t=x.length;e<t;++e){const t=c(x[e],3);o.push(t)}}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let s=0;s<r.length;s++){const i=r[s];1===i.m_side?e.add(i.m_geometry,!1):2===i.m_side?t.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,o.d)("")}(0,o.g)(n.isEmpty()||1===r.length),e.isEmpty()&&t.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}}const l=new class{getOperatorType(){return 10005}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t,n,r,o){return new m(e,t,n,r,o)}};function f(e,t,n){const r=l.execute(!0,e,t,n,null);return Array.from(r)}function h(){return l.supportsCurves()}},90836:(e,t,n)=>{n.d(t,{a:()=>u,b:()=>a,e:()=>m,s:()=>c});var r=n(39117),o=n(78125);class s extends r.T{getOperatorType(){return 2}execute(e,t,n,o){return(0,r.U)(e,t,n,3,o)}}const i=new s;function u(e){const t=(0,o.getSpatialReference)(e);return i.accelerateGeometry((0,o.fromGeometry)(e),(0,o.fromSpatialReference)(t),1)}function a(e,t){return i.execute((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(e.spatialReference),null)}const c=i.supportsCurves(),m=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:u,execute:a,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},91577:(e,t,n)=>{n.d(t,{fz:()=>_,g7:()=>h,qT:()=>y,zo:()=>p});var r=n(76061),o=n(55537),s=n(95213),i=n(88885),u=n(79187);class a extends r.G{constructor(e,t,n){super(),t||(0,o.a)(""),this.m_progressTracker=n,this.m_index=-1,this.m_bMerge=e,this.m_bDone=!1,this.m_inputGeometryCursor=t}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}next(){if(this.m_bMerge){if(!this.m_bDone){const e=c(this.m_inputGeometryCursor);return this.m_bDone=!0,e}return null}if(!this.m_bDone){const e=this.m_inputGeometryCursor.next();if(null!==e)return(0,o.o)(e),(0,o.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),m(e);this.m_bDone=!0}return null}}function c(e,t){const n=new i.C;let r;for(;r=e.next();)(0,o.o)(r),(0,o.c)(r),n.addGeometry(r);return n.getBoundingGeometry()}function m(e,t){if((0,o.c)(e),e.isEmpty())return e.createInstance();const n=e.getGeometryType();if((0,o.f)(n)){const t=e;if(t.isDegenerate(0)){const e=new s.P;return t.queryStart(e),e}if(t.getGeometryType()===o.G.enumLine){const n=new s.P,r=new i.P({vd:e.getDescription()});return t.queryStart(n),r.startPathPoint(n),t.queryEnd(n),r.lineToPoint(n),r}{const n=new i.P({vd:e.getDescription()});return n.addSegment(t,!0),m(n)}}if(n===o.G.enumEnvelope){const t=e,n=new u.Envelope2D;if(t.queryEnvelope(n),n.xmin===n.xmax&&n.ymin===n.ymax){const e=new s.P;return t.queryCornerByVal(0,e),e}if(n.xmin===n.xmax||n.ymin===n.ymax){const n=new s.P,r=new i.P({vd:e.getDescription()});return t.queryCornerByVal(0,n),r.startPathPoint(n),t.queryCornerByVal(1,n),r.lineToPoint(n),r}{const n=new i.a({vd:e.getDescription()});return n.addEnvelope(t,!1),n}}if(n===o.G.enumGeometryCollection)return c((0,i.g)(e,-1));if(l(e)){if(n===o.G.enumMultiPoint){const t=e,n=new s.P;return t.getPointByVal(0,n),n}return e}return(0,o.g)((0,o.i)(n)),(0,i.f)(e)}function l(e,t){if((0,o.c)(e),e.isEmpty())return!0;const n=e.getGeometryType();if(n===o.G.enumPoint)return!0;if(n===o.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,o.f)(n)){const t=e;if(t.isDegenerate(0))return!1;if(n===o.G.enumLine)return!0;const r=new i.P;return r.addSegment(t,!0),l(r)}if(n===o.G.enumMultiPoint)return 1===e.getPointCount();if(n===o.G.enumPolyline){const t=e;return!t.hasNonLinearSegments()&&1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(n===o.G.enumGeometryCollection){const t=e;return 1===t.getGeometryCount()&&l(t.getGeometry(0))}const r=e;return!(1!==r.getPathCount()||r.getPointCount()<3)&&(0,i.i)(r,0)}const f=new class{getOperatorType(){return 10102}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new a(t,e,n)}execute(e,t){return m(e)}isConvex(e,t){if((0,o.c)(e),e.isEmpty())return!0;const n=e.getGeometryType();if(n===o.G.enumPoint)return!0;if(n===o.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,o.f)(n)){const t=e;return!t.getStartXY().equals(t.getEndXY())}if(n===o.G.enumMultiPoint)return 1===e.getPointCount();if(n===o.G.enumPolyline){const t=e;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(n===o.G.enumGeometryCollection){const n=e;return 1===n.getGeometryCount()&&this.isConvex(n.getGeometry(0),t)}const r=e;return!(1!==r.getPathCount()||r.getPointCount()<3)&&(0,i.i)(r,0)}constructOrientedMinimumBoundingBox(e,t,n,r,o){(0,i.e)(e,t,n,r,o)}};function h(e){return f.execute(e,null)}function p(e,t){const n=f.executeMany(new r.S(e),t,null);return Array.from(n)}function y(e){return f.isConvex(e,null)}function _(){return f.supportsCurves()}},91735:(e,t,n)=>{n.d(t,{fz:()=>u,g7:()=>s,zo:()=>i});var r=n(76061);const o=new(n(5247).O);function s(e,t,n,r){return o.execute(e,t,n,r,null)}function i(e,t,n,s){const i=o.executeMany(new r.S(e),t,n,s,null);return Array.from(i)}function u(){return o.supportsCurves()}},92523:(e,t,n)=>{n.d(t,{a:()=>a,e:()=>u,g:()=>m,s:()=>c});var r=n(4576),o=n(83047),s=n(70787),i=n(78125);function u(e,t,n={}){const{removeDegenerateParts:r=!1,unit:u}=n,a=(0,i.getSpatialReference)(e);return u&&(t=(0,o.UW)(t,u,a)),(0,i.toGeometry)((0,s.g7)((0,i.fromGeometry)(e),t,r),a)}function a(e,t,n={}){const{removeDegenerateParts:u=!1,unit:a}=n,c=e.map(i.fromGeometry),m=(0,i.getSpatialReference)(e);return a&&(t=(0,o.UW)(t,a,m)),(0,s.zo)(c,t,u).map(e=>(0,i.toGeometry)(e,m)).filter(r.Ru)}const c=(0,s.fz)(),m=Object.freeze(Object.defineProperty({__proto__:null,execute:u,executeMany:a,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},96027:(e,t,n)=>{n.d(t,{fz:()=>u,g7:()=>s,zo:()=>i});var r=n(76061);const o=new(n(31139).O);function s(e,t,n){return o.execute(e,t,n,null)}function i(e,t,n){const s=o.executeMany(new r.S(e),t,n,null);return Array.from(s)}function u(){return o.supportsCurves()}},96957:(e,t,n)=>{n.d(t,{a:()=>u,b:()=>a,e:()=>i,s:()=>c});var r=n(4576),o=n(68613),s=n(78125);function i(e,t){const n=(0,s.getSpatialReference)(e);return(0,s.toGeometry)((0,o.g7)((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(n)),n)}function u(e,t){const n=e.map(s.fromGeometry),i=(0,s.getSpatialReference)(e);return(0,o.zo)(n,(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(i)).map(e=>(0,s.toGeometry)(e,i)).filter(r.Ru)}const a=(0,o.fz)(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:u,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9432],{29432:(e,t,s)=>{s.r(t),s.d(t,{default:()=>E});var n=s(49186),i=s(65864),r=s(21325),o=s(90708),u=s(33032),a=s(58376),l=s(83221),d=s(31464),p=s(95422),c=s(64714),f=s(82832),y=s(95466),m=s(98453),h=s(30524),g=s(98623);const b=r.KK,I={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:r.KK},F={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsQueryAttachmentOrderByFields:!1,supportsQueryBins:!0,supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!0,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0,supportsQueryWithCacheHint:!0},queryBinsCapabilities:f.PC};function S(e){return(0,i.fT)(e)?null!=e.z:!!e.hasZ}function T(e){return(0,i.fT)(e)?null!=e.m:!!e.hasM}class E{constructor(){this._queryEngine=null,this._nextObjectId=null}destroy(){this._queryEngine?.destroy(),this._queryEngine=this._createDefaultAttributes=null}async load(e){const t=[],{features:s}=e,i=this._inferLayerProperties(s,e.fields),r=e.fields||[],o=null!=e.hasM?e.hasM:!!i.hasM,a=null!=e.hasZ?e.hasZ:!!i.hasZ,f=!e.spatialReference&&!i.spatialReference,S=f?b:e.spatialReference||i.spatialReference,T=f?I:null,E=e.geometryType||i.geometryType,R=!E;let x=e.objectIdField||i.objectIdField,C=e.timeInfo;const A=new y.A(r);if(!R&&(f&&t.push({name:"feature-layer:spatial-reference-not-found",message:"Spatial reference not provided or found in features. Defaults to WGS84"}),!E))throw new n.A("feature-layer:missing-property","geometryType not set and couldn't be inferred from the provided features");if(!x)throw new n.A("feature-layer:missing-property","objectIdField not set and couldn't be found in the provided fields");if(i.objectIdField&&x!==i.objectIdField&&(t.push({name:"feature-layer:duplicated-oid-field",message:`Provided objectIdField "${x}" doesn't match the field name "${i.objectIdField}", found in the provided fields`}),x=i.objectIdField),x&&!i.objectIdField){const e=A.get(x);e?(x=e.name,e.type="esriFieldTypeOID",e.editable=!1,e.nullable=!1):r.unshift({alias:x,name:x,type:"esriFieldTypeOID",editable:!1,nullable:!1})}for(const e of r){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),!e.name)throw new n.A("feature-layer:invalid-field-name","field name is missing",{field:e});if(e.name===x&&(e.type="esriFieldTypeOID"),!m.m.jsonValues.includes(e.type))throw new n.A("feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e});null==e.length&&(e.length=(0,h._b)(e))}const _={};for(const e of r)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,h.lD)(e);void 0!==t&&(_[e.name]=t)}if(C){if(C.startTimeField){const e=A.get(C.startTimeField);e?(C.startTimeField=e.name,e.type="esriFieldTypeDate"):C.startTimeField=null}if(C.endTimeField){const e=A.get(C.endTimeField);e?(C.endTimeField=e.name,e.type="esriFieldTypeDate"):C.endTimeField=null}if(C.trackIdField){const e=A.get(C.trackIdField);e?C.trackIdField=e.name:(C.trackIdField=null,t.push({name:"feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:C}}))}C.startTimeField||C.endTimeField||(t.push({name:"feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing or invalid",details:{timeInfo:C}}),C=null)}const j=A.dateFields.length?{timeZoneIANA:e.dateFieldsTimeZone??g.n$}:null;this._createDefaultAttributes=(0,c.Vx)(_,x);const w={warnings:t,featureErrors:[],layerDefinition:{...F,drawingInfo:(0,c.F0)(E),templates:(0,c.e2)(_),extent:T,geometryType:E,objectIdField:x,fields:r,hasZ:a,hasM:o,timeInfo:C,dateFieldsTimeReference:j},assignedObjectIds:{}},q={type:"object-id",fieldName:x};if(this._queryEngine=new p.do({fieldsIndex:y.A.fromLayerJSON({fields:r,timeInfo:C,dateFieldsTimeReference:j}),geometryType:E,hasM:o,hasZ:a,featureIdInfo:q,spatialReference:S,featureStore:new l.A({geometryType:E,hasM:o,hasZ:a}),timeInfo:C}),!s?.length)return this._nextObjectId=u.L,w;const D=(0,u.H)(x,s);return this._nextObjectId=D+1,await(0,d.Nk)(s,S),this._loadInitialFeatures(w,s)}async applyEdits(e){const{spatialReference:t,geometryType:s}=this._queryEngine;return await Promise.all([(0,f.$1)(t,s),(0,d.Nk)(e.adds,t),(0,d.Nk)(e.updates,t)]),this._applyEdits(e)}queryFeatures(e,t={}){return this._queryEngine.executeQuery(e,t.signal)}queryFeatureCount(e,t={}){return this._queryEngine.executeQueryForCount(e,t.signal)}queryObjectIds(e,t={}){return this._queryEngine.executeQueryForIds(e,t.signal)}queryExtent(e,t={}){return this._queryEngine.executeQueryForExtent(e,t.signal)}querySnapping(e,t={}){return(0,a.J)(this._queryEngine,e,t.signal)}queryAttributeBins(e,t={}){return this._queryEngine.executeAttributeBinsQuery(e,t.signal)}_inferLayerProperties(e,t){let s,n,r=null,o=null,u=null;for(const t of e){const e=t.geometry;if(null!=e&&(r||(r=(0,i.$B)(e)),o||(o=e.spatialReference),null==s&&(s=S(e)),null==n&&(n=T(e)),r&&o&&null!=s&&null!=n))break}if(t&&t.length){let e=null;t.some(t=>{const s="esriFieldTypeOID"===t.type,n=!t.type&&t.name&&"objectid"===t.name.toLowerCase();return e=t,s||n})&&(u=e.name)}return{geometryType:r,spatialReference:o,objectIdField:u,hasM:n,hasZ:s}}async _loadInitialFeatures(e,t){const{geometryType:s,hasM:n,hasZ:r,objectIdField:u,spatialReference:a,featureStore:l,fieldsIndex:p}=this._queryEngine,c=[],y={type:"object-id",fieldName:u};for(const n of t){if(null!=n.uid&&(e.assignedObjectIds[n.uid]=-1),n.geometry&&s!==(0,i.$B)(n.geometry)){e.featureErrors.push((0,f.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),r=(0,f.MB)(p,t,n.attributes,!0);r?e.featureErrors.push(r):(this._assignObjectId(t,n.attributes,!0),n.attributes=t,null!=n.uid&&(e.assignedObjectIds[n.uid]=n.attributes[u]),null!=n.geometry&&(n.geometry=(0,d.Cv)(n.geometry,n.geometry.spatialReference,a)),c.push(n))}l.addMany((0,o.Di)([],c,s,r,n,y));const{fullExtent:m,timeExtent:h}=await this._queryEngine.fetchRecomputedExtents();if(e.layerDefinition.extent=m,h){const{start:t,end:s}=h;e.layerDefinition.timeInfo.timeExtent=[t,s]}return e}async _applyEdits(e){const{adds:t,updates:s,deletes:n}=e,i={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t?.length&&this._applyAddEdits(i,t),s?.length&&this._applyUpdateEdits(i,s),n?.length){for(const e of n)i.deleteResults.push((0,f.bP)(e));this._queryEngine.featureStore.removeManyById(n)}const{fullExtent:r,timeExtent:o}=await this._queryEngine.fetchRecomputedExtents();return{extent:r,timeExtent:o,featureEditResults:i}}_applyAddEdits(e,t){const{addResults:s}=e,{geometryType:n,hasM:r,hasZ:u,objectIdField:a,spatialReference:l,featureStore:p,featureIdInfo:c,fieldsIndex:y}=this._queryEngine,m=[];for(const r of t){if(r.geometry&&n!==(0,i.$B)(r.geometry)){s.push((0,f.Yx)("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),o=(0,f.MB)(y,t,r.attributes);if(o)s.push(o);else{if(this._assignObjectId(t,r.attributes),r.attributes=t,null!=r.uid){const t=r.attributes[a];e.uidToObjectId[r.uid]=t}if(null!=r.geometry){const e=r.geometry.spatialReference??l;r.geometry=(0,d.Cv)((0,f.CR)(r.geometry,e),e,l)}m.push(r),s.push((0,f.bP)(r.attributes[a]))}}p.addMany((0,o.Di)([],m,n,u,r,c))}_applyUpdateEdits({updateResults:e},t){const{geometryType:s,hasM:n,hasZ:r,objectIdField:u,spatialReference:a,featureStore:l,fieldsIndex:p,featureIdInfo:c}=this._queryEngine;for(const y of t){const{attributes:t,geometry:m}=y,h=t?.[u];if(null==h){e.push((0,f.Yx)(`Identifier field ${u} missing`));continue}if(!l.has(h)){e.push((0,f.Yx)(`Feature with object id ${h} missing`));continue}const g=(0,o.oN)(l.getFeature(h),s,r,n);if(null!=m){if(s!==(0,i.$B)(m)){e.push((0,f.Yx)("Incorrect geometry type."));continue}const t=m.spatialReference??a;g.geometry=(0,d.Cv)((0,f.CR)(m,t),t,a)}if(t){const s=(0,f.MB)(p,g.attributes,t);if(s){e.push(s);continue}}l.add((0,o.E2)(g,s,r,n,c)),e.push((0,f.bP)(h))}}_assignObjectId(e,t,s=!1){const n=this._queryEngine.objectIdField;s&&t&&isFinite(t[n])?e[n]=t[n]:e[n]=this._nextObjectId++}}},33032:(e,t,s)=>{s.d(t,{H:()=>i,L:()=>n});const n=1;function i(e,t){let s=0;for(const n of t){const t=n.attributes?.[e];"number"==typeof t&&isFinite(t)&&(s=Math.max(s,t))}return s}},64714:(e,t,s)=>{s.d(t,{F0:()=>u,Vx:()=>d,e2:()=>c,f:()=>f});var n=s(44208),i=s(4718),r=s(99352),o=s(93470);function u(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const a=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function d(e,t){if((0,n.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let s=`this${p(t)} = null;`;for(const t in e)s+=`this${p(t)} = ${JSON.stringify(e[t])};`;const n=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${s};\n }\n }\n `)();return()=>new n}catch(s){return()=>({[t]:null,...e})}}function p(e){return a.test(e)?`.${e}`:`["${e}"]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}function f(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},67482:(e,t,s)=>{function n(e){return null!=u(e)||null!=o(e)}function i(e){return a.test(e)}function r(e){return u(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let s=!0;if(d&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,n=0;for(;!t&&n<=e.length;)t=!l.test(e[n]),n++;s=!t}}return s}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function u(e){const t=a.exec(e);if(!t?.groups)return null;const s=t.groups,n=+s.year,i=+s.month-1,r=+s.day,o=+(s.hours??"0"),u=+(s.minutes??"0"),l=+(s.seconds??"0");if(o>23)return null;if(u>59)return null;if(l>59)return null;const d=s.ms??"0",p=d?+d.padEnd(3,"0").slice(0,3):0;let c;if(s.isUTC||!s.offsetSign)c=Date.UTC(n,i,r,o,u,l,p);else{const e=+s.offsetHours,t=+s.offsetMinutes;c=6e4*("+"===s.offsetSign?-1:1)*(60*e+t)+Date.UTC(n,i,r,o,u,l,p)}return Number.isNaN(c)?null:c}s.d(t,{Br:()=>i,Cq:()=>n,_U:()=>r});const a=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,l=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,d=!Number.isNaN(new Date("technology 10").getTime())},82832:(e,t,s)=>{s.d(t,{$1:()=>h,CR:()=>m,MB:()=>c,PC:()=>g,Yx:()=>a,bP:()=>d});var n=s(67482),i=s(21325),r=s(30524);class o{constructor(e){this.description=e,this.code=null}}class u{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new o(e)}}function a(e){return new u(e)}class l{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function d(e){return new l(e)}const p=new Set;function c(e,t,s,n=!1){p.clear();for(const i in s){const o=e.get(i);if(!o)continue;const u=f(o,s[i]);if(p.add(o.name),o&&(n||o.editable)){const e=(0,r.CJ)(o,u);if(e)return a((0,r.uo)(e,o,u));t[o.name]=u}}for(const t of e.requiredFields??[])if(!p.has(t.name))return a(`missing required field "${t.name}"`);return null}function f(e,t){let s=t;return(0,r.WA)(e)&&"string"==typeof t?s=parseFloat(t):(0,r.yM)(e)&&null!=t&&"string"!=typeof t?s=String(t):(0,r.vE)(e)&&"string"==typeof t&&(s=(0,n._U)(t)),(0,r.WX)(s)}let y;function m(e,t){if(!e||!(0,i.fn)(t))return e;if("rings"in e||"paths"in e){if(null==y)throw new TypeError("geometry engine not loaded");return y.simplify(t,e)}return e}async function h(e,t){!(0,i.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==y&&(y=await Promise.all([s.e(9930),s.e(7559)]).then(s.bind(s,47559))),y}()}const g={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}},93470:(e,t,s)=>{s.d(t,{Cb:()=>r,HW:()=>d,JR:()=>i,JZ:()=>a,WR:()=>u,b6:()=>p,fT:()=>n,nC:()=>l,yM:()=>o});const n=[252,146,31,255],i=[153,153,153,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n},u={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},d={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},p={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6160],{46160:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>c,executeMany:()=>u});var r=n(4576),o=n(83047),i=n(41253),a=n(83299);function c(e,t,n={}){const{unit:r}=n,c=(0,a.getSpatialReference)(e);r&&c&&(t=(0,o.UW)(t,r,c));const u=(0,a.fromGeometry)(e),m=u.getSpatialReference();return(0,a.toGeometry)((0,i.g7)(u.getGeometry(),m,t),m)}function u(e,t,n={}){let{maxDeviation:c=NaN,maxVerticesInFullCircle:u=96,union:m=!1,unit:l}=n;const s=(0,a.getSpatialReference)(e);l&&s&&(t=t.map(e=>(0,o.UW)(e,l,s)),c&&(c=(0,o.UW)(c,l,s)));const[f,p]=(0,a.fromGeometries)(e);return(0,i.yv)(f,p,t,c,u,m).map(e=>(0,a.toGeometry)(e,p)).filter(r.Ru)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[655],{16405:(t,e,r)=>{r.d(e,{A:()=>c});var s,o=r(31635),i=r(65008),l=r(66552),a=r(4718),n=r(10107),u=(r(44208),r(53966),r(40608)),p=r(5443),d=r(16930),h=r(28735);const y=new l.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=s=class extends i.A{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new s({categories:this.categories?(0,a.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map(t=>Array.isArray(t)?JSON.stringify(t):t));let s="";if(this.extent){const t=(0,h.Cv)(this.extent,d.A.WGS84);null!=t&&(s=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let o=this.query;!this.disableExtraQuery&&t.extraQuery&&(o="("+o+")"+t.extraQuery);const i={categories:r,bbox:s,q:o,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map(t=>y.toJSON(t.trim())).join(","),i.sortOrder=this.sortOrder),{query:{...e,...i}}}};(0,o.Cg)([(0,n.MZ)()],c.prototype,"categories",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,o.Cg)([(0,n.MZ)({type:p.A})],c.prototype,"extent",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"filter",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"num",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"query",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"sortField",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"sortOrder",null),(0,o.Cg)([(0,n.MZ)()],c.prototype,"start",void 0),c=s=(0,o.Cg)([(0,u.$)("esri.portal.PortalQueryParams")],c)},20655:(t,e,r)=>{r.d(e,{A:()=>b});var s=r(31635),o=r(92602),i=r(70333),l=r(78888),a=r(49186),n=r(25482),u=r(92474),p=r(97768),d=r(74887),h=r(10107),y=r(56507),c=(r(44208),r(87811),r(36005)),m=r(40608),g=r(5443),C=r(73444);let v;var f=r(96360),M=r(16405),Z=r(65008);r(53966);let S=class extends Z.A{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s.Cg)([(0,h.MZ)()],S.prototype,"nextQueryParams",void 0),(0,s.Cg)([(0,h.MZ)()],S.prototype,"queryParams",void 0),(0,s.Cg)([(0,h.MZ)()],S.prototype,"results",void 0),(0,s.Cg)([(0,h.MZ)()],S.prototype,"total",void 0),S=(0,s.Cg)([(0,m.$)("esri.portal.PortalQueryResult")],S);var P,_=r(41318),O=r(926);let w;const A={PortalGroup:()=>Promise.resolve({default:f.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:_.A})};let b=class extends((0,n.T)(u.x_)){static{P=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=o.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){q.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)o.A.request.trustedServers.includes(e)||o.A.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=this.user?.orgId,e=!t||this.canSearchPublic;return this.id&&!e?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,O.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.slice(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=_.A.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then(({default:e})=>{(0,d.Te)(t),w=e}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t)).then(t=>{if(!this.hasAPIKey&&i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==P.AUTH_MODE_AUTO&&this.authMode!==P.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),q.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)});return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(6131),r.e(9953),r.e(812),r.e(9186),r.e(5751),r.e(788)]).then(r.bind(r,68611))).default;return t?t.map(t=>new e({id:t.id,url:t.url})):[]}async fetchBasemaps(t,e){const r=await this._fetchBasemaps(t,e);if(!0===e?.include3d&&!1!==this.use3dBasemaps){const s=await this._fetchBasemaps3D(t,e);r.unshift(...s)}return r}async fetchDefault3DBasemap(t){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const e=new M.A;e.query=this.default3DBasemapQuery,e.disableExtraQuery=!0;const r=(await this.queryItems(e,t)).results.find(t=>"Web Scene"===t.type);return r?new w({portalItem:r}):null}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then(t=>t.categorySchema):(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}async fetchClassificationSchema(t){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",t).then(t=>t.classificationSchema):null}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new M.A({num:100,sortField:"title"});if(e?.length){const s=[];for(const t of e)s.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=s.join(" OR "),this.queryGroups(r,t).then(t=>t.results)}return(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,C.JK)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,C.JK)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return v&&!v.destroyed||(v=new P),v}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const s=this.restUrl+"/portals/self",o={authMode:t,query:{culture:(0,C.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===o.authMode&&(o.authMode="no-prompt"),e&&(o.query.default=!0),this.request(s,o)}queryPortal(t,e,r,s){const o=(0,y.dp)(M.A,e),i=e=>this.request(this.restUrl+t,{...o.toRequestOptions(this),...s}).then(t=>{const r=o.clone();return r.start=t.nextStart,new S({nextQueryParams:r,queryParams:o,total:t.total,results:P._resultsToTypedArray(e,{portal:this},t,s)})}).then(t=>Promise.all(t.results.map(e=>"function"==typeof e.when?e.when():t)).then(()=>t,e=>((0,d.QP)(e),t)));return r&&A[r]?A[r]().then(({default:t})=>((0,d.Te)(s),i(t))):i()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new a.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===P.AUTH_MODE_ANONYMOUS||this.authMode===P.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new a.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate"))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate"))).then(t=>{t&&(this.sourceJSON=t,this.read(t))});return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==P.AUTH_MODE_NO_PROMPT}).then(e=>t(e)):t(this.credential)}normalizeUrl(t){const e=this.credential?.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then(t=>{const e=P._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map(e=>"function"==typeof e.when?e.when():t)).then(()=>e,()=>e)})}request(t,e={}){const r={f:"json",...e.query},{authMode:s=(this.authMode===P.AUTH_MODE_ANONYMOUS||this.authMode===P.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:o=null,cacheBust:i=!1,method:a="auto",responseType:n="json",signal:u}=e,p={authMode:s,body:o,cacheBust:i,method:a,query:r,responseType:n,timeout:0,signal:u};return e.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(t),p).then(t=>t.data)}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new P({sourceJSON:t})}_getHelperService(t){const e=this.helperServices&&this.helperServices[t];if(!e)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}async _fetchBasemaps(t,e){const r=new M.A;r.query=t||((0,O.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const s=await this.queryGroups(r,e);if(!s.total)return[];const o=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=o.sortField||"name",r.sortOrder=o.sortOrder||"desc";const i=await o.queryItems(r,e);return i.total?i.results.filter(t=>"Web Map"===t.type).map(t=>new w({portalItem:t})):[]}async _fetchBasemaps3D(t,e){const r=t||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,O.Dd)())return[];const s=new M.A({query:r,disableExtraQuery:!0}),o=await this.queryGroups(s,e);if(!o.total)return[];const i=o.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=i.sortField||"name",s.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(s,e);return l.total?l.results.filter(t=>"Web Scene"===t.type).map(t=>new w({portalItem:t})):[]}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=w.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,s){let o;if(r){const i=null!=s?s.signal:null;o=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(o=o.map(r=>{const s=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof s.load&&s.load(i),s}))}else o=[];return o}};(0,s.Cg)([(0,h.MZ)()],b.prototype,"access",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"allSSL",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"authMode",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"authorizedCrossOriginDomains",void 0),(0,s.Cg)([(0,c.w)("authorizedCrossOriginDomains")],b.prototype,"readAuthorizedCrossOriginDomains",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"basemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],b.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"bingKey",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canListApps",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canListData",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canListPreProvisionedItems",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canProvisionDirectPurchase",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canSearchPublic",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canShareBingPublic",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canSharePublic",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canSignInArcGIS",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"canSignInIDP",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"colorSetsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"commentsEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:Date})],b.prototype,"created",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"credential",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"culture",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"currentVersion",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"customBaseUrl",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"default3DBasemapQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"defaultBasemap",void 0),(0,s.Cg)([(0,c.w)("defaultBasemap")],b.prototype,"readDefaultBasemap",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"defaultDevBasemap",void 0),(0,s.Cg)([(0,c.w)("defaultDevBasemap")],b.prototype,"readDefaultDevBasemap",null),(0,s.Cg)([(0,h.MZ)({type:g.A})],b.prototype,"defaultExtent",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"defaultVectorBasemap",void 0),(0,s.Cg)([(0,c.w)("defaultVectorBasemap")],b.prototype,"readDefaultVectorBasemap",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"description",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"eueiEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"extraQuery",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"featuredGroups",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"featuredItemsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"galleryTemplatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"layoutGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"livingAtlasGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"hasAPIKey",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"hasCategorySchema",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"hasClassificationSchema",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"helpBase",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"helperServices",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"helpMap",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"homePageFeaturedContent",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"homePageFeaturedContentCount",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"httpPort",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"httpsPort",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"id",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"ipCntryCode",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"isOrganization",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"isPortal",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"isReadOnly",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"itemPageUrl",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"layerTemplatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"maxTokenExpirationMinutes",void 0),(0,s.Cg)([(0,h.MZ)({type:Date})],b.prototype,"modified",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"name",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"portalHostname",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"portalMode",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"portalProperties",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"region",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"recycleBinEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"restUrl",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"rotatorPanels",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"showHomePageDescription",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"staticImagesUrl",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],b.prototype,"stylesGroupQuery2d",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],b.prototype,"stylesGroupQuery3d",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"supportsHostedServices",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"symbolSetsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"templatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"thumbnail",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],b.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"units",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"url",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"urlKey",void 0),(0,s.Cg)([(0,c.w)("urlKey")],b.prototype,"readUrlKey",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"user",void 0),(0,s.Cg)([(0,c.w)("user")],b.prototype,"readUser",null),(0,s.Cg)([(0,h.MZ)()],b.prototype,"use3dBasemaps",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"useDefault3dBasemap",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"useStandardizedQuery",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"useVectorBasemaps",void 0),(0,s.Cg)([(0,h.MZ)()],b.prototype,"vectorBasemapGalleryGroupQuery",void 0),b=P=(0,s.Cg)([(0,m.$)("esri.portal.Portal")],b);const q=new FinalizationRegistry(t=>{t.remove()})},41318:(t,e,r)=>{r.d(e,{A:()=>d});var s=r(31635),o=r(49186),i=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let n=class extends i.o{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new o.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s.Cg)([(0,l.MZ)({type:Date})],n.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"title",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],n.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],n.prototype,"username",void 0),n=(0,s.Cg)([(0,a.$)("esri.portal.PortalFolder")],n);var u,p=r(96360);let d=u=class extends i.o{constructor(t){super(t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.id}`:null}get url(){const t=this.portal?.restUrl;return t?`${t}/community/users/${this.id}`:null}addItem(t){const e=t&&t.item,r=t?.data,s=t?.folder,o={method:"post"};e&&(o.query=e.createPostQuery(),null!=r&&("string"==typeof r?o.query.text=r:"object"==typeof r&&(o.query.text=JSON.stringify(r))));let i=this.userContentUrl;return s&&(i+="/"+("string"==typeof s?s:s.id)),this.portal.request(i+"/addItem",o).then(t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load()))}async deleteItem(t,e=!1){let r=this.userContentUrl;t.ownerFolder&&(r+="/"+t.ownerFolder);const s=e?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${t.id}/delete`,{method:"post",query:s}),t.id=null,t.portal=null}async deleteItems(t,e=!1){t=t.slice();const r=this.userContentUrl+"/deleteItems",s=[],i=t.map(t=>t.id);if(i.length){const l={method:"post",query:{items:i.join(","),permanentDelete:e}},a=await this.portal.request(r,l);for(const e of a.results){const r=t.find(t=>e.itemId===t.id),i=e.success;let l=null;i?(r.id=null,r.portal=null):e.error&&(l=new o.A("portal:delete-item-failed",e.error.message,e.error)),s.push({item:r,success:i,error:l})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(t=>{let e;return e=t&&t.folders?t.folders.map(t=>{const e=n.fromJSON(t);return e.portal=this.portal,e}):[],e})}fetchGroups(){return this.portal.request(this.url??"").then(t=>{let e;return e=t&&t.groups?t.groups.map(t=>{const e=p.A.fromJSON(t);return e.portal=this.portal,e}):[],e})}async fetchItems(t){t??={};let e=this.userContentUrl??"";t.folder&&(e+="/"+t.folder.id);const{default:s}=await r.e(812).then(r.bind(r,80812)),o={folders:!1,inRecycleBin:!!t.inRecycleBin||null,foldersContent:!(t.folder||!t.includeSubfolderItems)||null,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"},i=await this.portal.request(e,{query:o});let l;return i?.items?(l=i.items.map(t=>{const e=s.fromJSON(t);return e.portal=this.portal,e}),await Promise.all(l.map(t=>t.load())),{items:l,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(t=>t.tags)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new p.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new o.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(t,e){const r=this.userContentUrl,s=e?{folderID:"string"==typeof e?e:e.id}:null;await this.portal.request(r+`/items/${t.id}/restore`,{method:"post",query:s})}toJSON(){throw new o.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new u({sourceJSON:t});return e.read(t),e}};(0,s.Cg)([(0,l.MZ)()],d.prototype,"access",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],d.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"culture",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"description",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"email",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"favGroupId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"fullName",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],d.prototype,"modified",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"orgId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"preferredView",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"privileges",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"region",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"role",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"roleId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"thumbnail",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,l.MZ)()],d.prototype,"units",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"userContentUrl",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],d.prototype,"username",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"userLicenseTypeId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"userType",void 0),d=u=(0,s.Cg)([(0,a.$)("esri.portal.PortalUser")],d)},61893:(t,e,r)=>{r.d(e,{Z:()=>p,g:()=>u});var s=r(31635),o=r(65008),i=r(36563),l=r(74887),a=r(40608);class n{constructor(){this._resolver=(0,l.Tw)(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,l.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=(0,l.Tw)(),e=[...this._resolvingPromises,t.promise],r=this._allPromise=Promise.all(e);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},t=>{this.isFulfilled()||this._allPromise!==r||(0,l.zf)(t)||this._resolver.reject(t)}),t.resolve()}}const u=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._promiseProps=new n,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return this._promiseProps.promise.then(()=>this).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}addResolvingTask(t){t&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,i.rE)(t)),this._promiseProps.addResolvingPromise(t.promise))}};return r=(0,s.Cg)([(0,a.$)("esri.core.Promise")],r),r},p=u(o.A)},92474:(t,e,r)=>{r.d(e,{WV:()=>h,Zm:()=>c,x_:()=>y});var s=r(31635),o=r(49186),i=r(97768),l=r(61893),a=r(74887),n=r(67076),u=r(10107),p=r(40608);const d="loaded",h=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(t=>{const e=this.load.bind(this);this.load=r=>{const s=new Promise((t,e)=>{const s=(0,a.NY)(r,e);this.destroyed&&e(new o.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(t,e).finally(()=>{s&&s.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal})}return t(),s}})),this.when(()=>{this._set("loadStatus",d),this._loadController=null},t=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(t){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new o.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,s.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,s.Cg)([(0,u.MZ)({type:[n.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,s.Cg)([(0,p.$)("esri.core.Loadable")],r),r},y=h(l.Z);function c(t){return!(!t||!t.load)}},96360:(t,e,r)=>{r.d(e,{A:()=>d});var s,o=r(31635),i=r(49186),l=r(25482),a=r(10107),n=r(56507),u=(r(44208),r(87811),r(40608)),p=r(16405);let d=s=class extends l.o{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.portal?.restUrl;return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return this.portal.request(this.url+"/categorySchema",t).then(e=>{const r=e.categorySchema||[];return r.some(t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source)?this._fetchCategorySchemaSet("LivingAtlas",t):r})}fetchMembers(t){return this.portal.request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new s({sourceJSON:t});return e.read(t),e}queryItems(t,e){let r=(0,n.dp)(p.A,t);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new p.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new p.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=this.portal;return r.fetchSelf(r.authMode,!0,e).then(t=>{const s=t.contentCategorySetsGroupQuery;if(s){const t=new p.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(t,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const s=r.results[0],o=new p.A({num:1,query:`typekeywords:"${t}"`});return s.queryItems(o,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(t=>t.total?t.results[0].fetchData("json",e).then(t=>{const e=t?.categorySchema;return e?.length?e:[]}):[])}};(0,o.Cg)([(0,a.MZ)()],d.prototype,"access",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],d.prototype,"created",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"description",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"id",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"isInvitationOnly",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],d.prototype,"modified",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"owner",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"portal",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"snippet",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sortField",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sortOrder",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"tags",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"thumbnail",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,a.MZ)()],d.prototype,"title",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"url",null),d=s=(0,o.Cg)([(0,u.$)("esri.portal.PortalGroup")],d)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4980],{9093:(t,e,n)=>{function o(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>r,vt:()=>o,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:r,create:o,fromValues:function(t,e,n,o,r,i,s,c,u,a,h,d,l,f,m,p){return[t,e,n,o,r,i,s,c,u,a,h,d,l,f,m,p]}},Symbol.toStringTag,{value:"Module"}))},11964:(t,e,n)=>{n.d(e,{Cr:()=>h,H6:()=>f,LV:()=>a,_I:()=>l,kb:()=>d,vt:()=>u});var o=n(34727),r=n(4341),i=n(38954),s=n(51850),c=n(32114);function u(t){return t?{origin:(0,s.o8)(t.origin),vector:(0,s.o8)(t.vector)}:{origin:(0,s.vt)(),vector:(0,s.vt)()}}function a(t,e){const n=m.get();return n.origin=t,n.vector=e,n}function h(t,e,n=u()){return(0,i.c)(n.origin,t),(0,i.d)(n.vector,e,t),n}function d(t,e){const n=(0,i.d)(c.rq.get(),e,t.origin),r=(0,i.e)(t.vector,n),s=(0,i.e)(t.vector,t.vector),u=(0,o.qE)(r/s,0,1),a=(0,i.d)(c.rq.get(),(0,i.g)(c.rq.get(),t.vector,u),n);return(0,i.e)(a,a)}function l(t,e,n){return f(t,e,0,1,n)}function f(t,e,n,r,s){const{vector:u,origin:a}=t,h=(0,i.d)(c.rq.get(),e,a),d=(0,i.e)(u,h)/(0,i.k)(u);return(0,i.g)(s,u,(0,o.qE)(d,n,r)),(0,i.f)(s,s,t.origin)}(0,s.vt)(),(0,s.vt)();const m=new r.I(()=>u())},27444:(t,e,n)=>{n.r(e),n.d(e,{default:()=>G});var o=n(31635),r=n(74887),i=(n(53966),n(44208),n(87811),n(49186),n(40608)),s=n(38954),c=n(51850),u=n(11964),a=n(97937),h=n(93687),d=n(15142),l=n(82919),f=n(71351),m=n(620);class p{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new g,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),g.clearPool(),N[0]=null,B.prune(),H.prune()}add(t){const e=Array.from(t);this._grow(e);const n=g.acquire();for(const t of e)++this._objectCount,this._isDegenerate(t)?this._degenerateObjects.add(t):(n.init(this._root),this._add(t,n));g.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=g.acquire();for(const o of t){const t=e??(0,a.j)(this.objectToBoundingSphere(o),L);E(t[3])?(n.init(this._root),v(o,t,n)):this._degenerateObjects.delete(o)}g.release(n),this._shrink()}update(t,e){if(!E(e[3])&&this._isDegenerate(t))return;const n=function(t){return N[0]=t,N}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const o=(0,f.LV)(t,e);_(this._root,t=>{if(!function(t,e){return y((0,a.a)(e.bounds),2*-e.halfSize,D),y((0,a.a)(e.bounds),2*e.halfSize,k),(0,m.O_)(t.origin,t.direction,D,k)}(o,t))return!1;const e=t.node;return e.terminals.forAll(t=>{this._intersectsObject(o,t)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObject(o,t)&&n(t)}),!0})}forEachAlongRayWithVerticalOffset(t,e,n,o){const r=(0,f.LV)(t,e);_(this._root,t=>{if(!function(t,e,n){return y((0,a.a)(e.bounds),2*-e.halfSize,D),y((0,a.a)(e.bounds),2*e.halfSize,k),n.applyToMinMax(D,k),(0,m.O_)(t.origin,t.direction,D,k)}(r,t,o))return!1;const e=t.node;return e.terminals.forAll(t=>{this._intersectsObjectWithOffset(r,t,o)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObjectWithOffset(r,t,o)&&n(t)}),!0})}forEach(t){_(this._root,e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0}),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,o=()=>!0,r=1/0){let i=1/0,c=1/0,u=null;const h=O(t,e),d=s=>{if(--r,!o(s))return;const h=this.objectToBoundingSphere(s);if(!(0,l.m7)(n,h))return;const d=w(t,e,(0,a.a)(h)),f=d-h[3],m=d+h[3];f<i&&(i=f,c=m,u=s)};return b(this._root,o=>{if(r<=0||!(0,l.m7)(n,o.bounds))return!1;if((0,s.g)(P,h,o.halfSize),(0,s.f)(P,P,(0,a.a)(o.bounds)),w(t,e,P)>c)return!1;const i=o.node;return i.terminals.forAll(t=>d(t)),null!==i.residents&&i.residents.forAll(t=>d(t)),!0},t,e),u}forEachInDepthRange(t,e,n,o,r,i,c){let u=-1/0,h=1/0;const d={setRange:t=>{1===n?(u=Math.max(u,t.near),h=Math.min(h,t.far)):(u=Math.max(u,-t.far),h=Math.min(h,-t.near))}};d.setRange(o);const f=w(e,n,t),m=O(e,n),p=O(e,-n),g=t=>{if(!c(t))return;const o=this.objectToBoundingSphere(t),s=(0,a.a)(o),m=w(e,n,s)-f,p=m-o[3],g=m+o[3];p>h||g<u||!(0,l.m7)(i,o)||r(t,d)};b(this._root,t=>{if(!(0,l.m7)(i,t.bounds))return!1;if((0,s.g)(P,m,t.halfSize),(0,s.f)(P,P,(0,a.a)(t.bounds)),w(e,n,P)-f>h)return!1;if((0,s.g)(P,p,t.halfSize),(0,s.f)(P,P,(0,a.a)(t.bounds)),w(e,n,P)-f<u)return!1;const o=t.node;return o.terminals.forAll(t=>g(t)),null!==o.residents&&o.residents.forAll(t=>g(t)),!0},e,n)}forEachNode(t){_(this._root,e=>t(e.node,e.bounds,e.halfSize,e.depth))}forEachNeighbor(t,e){const n=(0,a.g)(e),o=(0,a.a)(e),r=e=>{const r=this.objectToBoundingSphere(e),i=(0,a.g)(r),c=n+i;return!((0,s.s)((0,a.a)(r),o)-c*c<=0)||t(e)};let i=!0;const c=t=>{i&&(i=r(t))};_(this._root,t=>{const e=(0,a.g)(t.bounds),r=n+e;if((0,s.s)((0,a.a)(t.bounds),o)-r*r>0)return!1;const u=t.node;return u.terminals.forAll(c),i&&null!==u.residents&&u.residents.forAll(c),i}),i&&this.forEachDegenerateObject(c)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,a.p)(n,t)}_intersectsObjectWithOffset(t,e,n){const o=this.objectToBoundingSphere(e);return!(o[3]>0)||(0,a.p)(n.applyToBoundingSphere(o),t)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const o=g.acquire().init(t);this._add(e.at(n),o),g.release(o)}}_grow(t){if(M(t,t=>this.objectToBoundingSphere(t),R),E(R[3])&&!this._fitsInsideTree(R))if(j(this._root.node))(0,a.j)(R,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(R);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(R,t):this._growRootAsSubNode(t),g.release(t)}}_rebuildTree(t,e){(0,a.q)(I,e.bounds),I[3]=e.halfSize,M([t,I],t=>t,V);const n=g.acquire().init(this._root);this._root.initFrom(null,V,V[3]),this._root.increaseHalfSize(1.25),_(n,t=>(this.add(t.node.terminals.data),null!==t.node.residents&&this.add(t.node.residents.data),!0)),g.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return _(this._root,t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth)),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let o=-1/0;const r=this._root.bounds,i=this._root.halfSize;for(let t=0;t<3;t++){const s=r[t]-i-(n[t]-e),c=n[t]+e-(r[t]+i),u=Math.max(0,Math.ceil(s/(2*i))),a=Math.max(0,Math.ceil(c/(2*i)))+1,h=2**Math.ceil(Math.log(u+a)*Math.LOG2E);o=Math.max(o,h),F[t].min=u,F[t].max=a}for(let t=0;t<3;t++){let e=F[t].min,n=F[t].max;const s=(o-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const c=r[t]-i-e*i*2;q[t]=c+(n+e)*i}const s=o*i;return q[3]=s*z,g.acquire().initFrom(null,q,s,0)}_growRootAsSubNode(t){const e=this._root.node;(0,a.q)(R,this._root.bounds),R[3]=this._root.halfSize,this._root.init(t),t.advanceTo(R,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,o=0;for(;o<e.length&&null==t;)n=o++,t=e[n];for(;o<e.length;)if(e[o++])return-1;return n}_isDegenerate(t){return!E(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,o=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:o}}}_nodeToJSON(t){const e=t.children.map(t=>t?this._nodeToJSON(t):null),n=t.residents?.map(t=>this.objectToBoundingSphere(t)),o=t.terminals?.map(t=>this.objectToBoundingSphere(t));return{children:e,residents:n,terminals:o}}static fromJSON(t){const e=new p(t=>t,{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class g{constructor(){this.bounds=(0,a.c)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,o=this.depth){return this.node=null!=t?t:g.createEmptyNode(),e&&(0,a.j)(e,this.bounds),this.halfSize=n,this.depth=o,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*z}advance(t){let e=this.node.children[t];e||(e=g.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=T[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const o=this._childIndex(t);e&&e(this,o),this.advance(o)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new d.A({shrink:!0}),residents:new d.A({shrink:!0})}}static{this._pool=new h.A(g)}static acquire(){return g._pool.acquire()}static release(t){g._pool.release(t)}static clearPool(){g._pool.prune()}}function _(t,e){let n=g.acquire().init(t);const o=[n];for(;0!==o.length;){if(n=o.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&o.push(g.acquire().init(n).advance(t));g.release(n)}}function b(t,e,n,o=1){let r=g.acquire().init(t);const i=[r];for(function(t,e,n){if(!H.length)for(let t=0;t<8;++t)H.push({index:0,distance:0});for(let n=0;n<8;++n){const o=T[n];H.data[n].index=n,H.data[n].distance=w(t,e,o)}H.sort((t,e)=>t.distance-e.distance);for(let t=0;t<8;++t)n[t]=H.data[t].index}(n,o,U);0!==i.length;){if(r=i.pop(),e(r)&&!r.isLeaf())for(let t=7;t>=0;--t){const e=U[t];r.node.children[e]&&i.push(g.acquire().init(r).advance(e))}g.release(r)}}function v(t,e,n){B.clear();const o=n.advanceTo(e,(t,e)=>{B.push(t.node),B.push(e)})?n.node.terminals:n.node.residents;if(o.removeUnordered(t),0===o.length)for(let t=B.length-2;t>=0&&S(B.data[t],B.data[t+1]);t-=2);}function S(t,e){return e>=0&&(t.children[e]=null),!!j(t)&&(null===t.residents&&(t.residents=new d.A({shrink:!0})),!0)}function j(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}function A(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function x(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function y(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function M(t,e,n){D[0]=1/0,D[1]=1/0,D[2]=1/0,k[0]=-1/0,k[1]=-1/0,k[2]=-1/0;for(const n of t){const t=e(n);E(t[3])&&(A(D,t),x(k,t))}(0,a.k)(n,(0,s.m)(J,D,k,.5)),n[3]=Math.max(k[0]-D[0],k[1]-D[1],k[2]-D[2])/2}function O(t,e){let n,o=1/0;for(let r=0;r<8;++r){const i=w(t,e,C[r]);i<o&&(o=i,n=C[r])}return n}function w(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function E(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}const T=[(0,c.fA)(-1,-1,-1),(0,c.fA)(1,-1,-1),(0,c.fA)(-1,1,-1),(0,c.fA)(1,1,-1),(0,c.fA)(-1,-1,1),(0,c.fA)(1,-1,1),(0,c.fA)(-1,1,1),(0,c.fA)(1,1,1)],C=[(0,c.fA)(-1,-1,-1),(0,c.fA)(-1,-1,1),(0,c.fA)(-1,1,-1),(0,c.fA)(-1,1,1),(0,c.fA)(1,-1,-1),(0,c.fA)(1,-1,1),(0,c.fA)(1,1,-1),(0,c.fA)(1,1,1)],z=Math.sqrt(3),N=[null],q=(0,a.c)(),P=(0,c.vt)(),D=(0,c.vt)(),k=(0,c.vt)(),B=new d.A,L=(0,a.c)(),R=(0,a.c)(),I=(0,a.c)(),V=(0,a.c)(),F=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],H=new d.A,U=[0,0,0,0,0,0,0,0],J=(0,c.vt)();var W=n(431);function Q(t,e,n){const o=K;(0,s.g)(o,t,.5),(0,s.b)(o,o,e,.5);const r=(0,s.j)(o,t);return(0,s.f)(o,o,n),(0,a.r)(o,r)}const K=(0,c.vt)();let $=class{constructor(){this._idToComponent=new Map,this._components=new p(t=>t.bounds),this._edges=new p(t=>t.bounds),this._tmpLineSegment=(0,u.vt)(),this._tmpP1=(0,c.vt)(),this._tmpP2=(0,c.vt)(),this._tmpP3=(0,c.vt)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,r.Te)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor(e=>(this._addCandidates(t,e,n),n.length<1e3),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor(t=>{if(null==t.info){const{id:e,uid:o}=t;n.push({id:e,uid:o})}return!0},t.bounds),!n.length)return;const o={components:n},r=await this.remoteClient.invoke("fetchAllEdgeLocations",o,e??{});for(const t of r.components)this._setFetchEdgeLocations(t)}async add(t){const e=new Y(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor(n=>(n.component===e&&t.push(n),!0),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=W.HY.createView(t.locations),o=new Array(n.count),r=(0,c.vt)(),i=(0,c.vt)();for(let s=0;s<n.count;s++){n.position0.getVec(s,r),n.position1.getVec(s,i);const c=Q(r,i,t.origin),u=new Z(e,s,c);o[s]=u}this._edges.add(o);const{objectIds:s,origin:u}=t;e.info={locations:n,objectIds:s,origin:u}}_addCandidates(t,e,n){const{info:o}=e.component,{origin:r,objectIds:i}=o,c=o.locations,u=c.position0.getVec(e.index,this._tmpP1),a=c.position1.getVec(e.index,this._tmpP2);(0,s.f)(u,u,r),(0,s.f)(a,a,r);const h=i[c.componentIndex.get(e.index)];this._addEdgeCandidate(t,h,u,a,n),X(t,h,u,n),X(t,h,a,n)}_addEdgeCandidate(t,e,n,o,r){if(!t.returnEdge)return;const i=(0,a.a)(t.bounds),h=(0,u.Cr)(n,o,this._tmpLineSegment),d=(0,u._I)(h,i,this._tmpP3);(0,a.A)(t.bounds,d)&&r.push({type:"edge",objectId:e,target:(0,c.o8)(d),distance:(0,s.j)(i,d),start:(0,c.o8)(n),end:(0,c.o8)(o)})}};$=(0,o.Cg)([(0,i.$)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],$);const G=$;function X(t,e,n,o){if(!t.returnVertex||!(0,a.A)(t.bounds,n))return;const r=(0,a.a)(t.bounds);o.push({type:"vertex",objectId:e,target:(0,c.o8)(n),distance:(0,s.j)(r,n)})}class Y{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++Y.uid}static{this.uid=0}}class Z{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}},27921:(t,e,n)=>{n.d(e,{$Q:()=>w,C:()=>a,Cr:()=>f,LV:()=>u,O_:()=>l,Qj:()=>h,T7:()=>y,Tj:()=>O,Ui:()=>x,_I:()=>E,fA:()=>d,gv:()=>M,lU:()=>m,mN:()=>T,mP:()=>j,mR:()=>A,vE:()=>z,vt:()=>c});var o=n(34727),r=n(38954),i=n(51850),s=(n(87317),n(44280),n(32114));function c(t=N){return[t[0],t[1],t[2],t[3]]}function u(t=N[0],e=N[1],n=N[2],o=N[3]){return d(t,e,n,o,s.Km.get())}function a(t,e){return d(e[0],e[1],e[2],e[3],t)}function h(t){return t}function d(t,e,n,o,r=c()){return r[0]=t,r[1]=e,r[2]=n,r[3]=o,r}function l(t,e,n){const o=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=Math.abs(o-1)>1e-5&&o>1e-12?1/Math.sqrt(o):1;return n[0]=e[0]*r,n[1]=e[1]*r,n[2]=e[2]*r,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function f(t,e,n,o=c()){const r=n[0]-e[0],i=n[1]-e[1],s=n[2]-e[2],u=t[0]-e[0],a=t[1]-e[1],h=t[2]-e[2],d=i*h-s*a,l=s*u-r*h,f=r*a-i*u,m=d*d+l*l+f*f,p=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return o[0]=d*p,o[1]=l*p,o[2]=f*p,o[3]=-(o[0]*t[0]+o[1]*t[1]+o[2]*t[2]),o}function m(t,e,n,o=0,i=Math.floor(n*(1/3)),s=Math.floor(n*(2/3))){if(n<3)return!1;e(g,o);let c=i,u=!1;for(;c<n-1&&!u;)e(_,c),c++,u=!(0,r.q)(g,_);if(!u)return!1;for(c=Math.max(c,s),u=!1;c<n&&!u;)e(b,c),c++,(0,r.d)(v,g,_),(0,r.n)(v,v),(0,r.d)(S,_,b),(0,r.n)(S,S),u=!(0,r.q)(g,b)&&!(0,r.q)(_,b)&&Math.abs((0,r.e)(v,S))<p;return u?(f(g,_,b,t),!0):(0!==o||1!==i||2!==s)&&m(t,e,n,0,1,2)}n(32728);const p=.99619469809,g=(0,i.vt)(),_=(0,i.vt)(),b=(0,i.vt)(),v=(0,i.vt)(),S=(0,i.vt)();function j(t,e,n){return e!==t&&a(t,e),t[3]=-(0,r.e)(t,n),t}function A(t,e,n,o){return(0,r.h)(b,e,t),l(n,b,o)}function x(t,e,n){return null!=e&&C(z(t,e.origin,e.direction,q,n))}function y(t,e,n){return C(z(t,e.origin,e.vector,0,n))}function M(t,e,n){return C(z(t,e.origin,e.vector,1,n))}function O(t,e){return T(t,e)>=0}function w(t,e){const n=(0,r.e)(t,e.ray.direction),o=-T(t,e.ray.origin);if(o<0&&n>=0)return!1;if(n>-1e-6&&n<1e-6)return o>0;if((o<0||n<0)&&!(o<0&&n<0))return!0;const i=o/n;return n>0?i<e.c1&&(e.c1=i):i>e.c0&&(e.c0=i),e.c0<=e.c1}function E(t,e,n){const o=(0,r.g)(s.rq.get(),t,-t[3]),i=function(t,e,n){const o=(0,r.g)(s.rq.get(),t,(0,r.e)(t,e));return(0,r.d)(n,e,o),n}(t,(0,r.d)(s.rq.get(),e,o),s.rq.get());return(0,r.f)(n,i,o),n}function T(t,e){return(0,r.e)(t,e)+t[3]}function C(t){return 0===t||1===t}function z(t,e,n,i,s){const c=(0,r.e)(t,n),u=T(t,e);if(0===c)return u>=0?2:3;let a=-u/c;return 1&i&&(a=(0,o.qE)(a,0,1)),!(4&i)&&a<0||!(8&i)&&a>1?u>=0?2:3:((0,r.f)(s,e,(0,r.g)(s,n,a)),u>=0?0:1)}const N=[0,0,1,0],q=8},31635:(t,e,n)=>{function o(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function r(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var o,r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=e[Symbol.asyncDispose]}if(void 0===o){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=e[Symbol.dispose],n&&(r=o)}if("function"!=typeof o)throw new TypeError("Object not disposable.");r&&(o=function(){try{r.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:o,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>o,hk:()=>s,mS:()=>r}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var o=new Error(n);return o.name="SuppressedError",o.error=t,o.suppressed=e,o};function s(t){function e(e){t.error=t.hasError?new i(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,o=0;return function r(){for(;n=t.stack.pop();)try{if(!n.async&&1===o)return o=0,t.stack.push(n),Promise.resolve().then(r);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return o|=2,Promise.resolve(i).then(r,function(t){return e(t),r()})}else o|=1}catch(t){e(t)}if(1===o)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},32728:(t,e,n)=>{n.d(e,{nu:()=>s,wp:()=>i}),n(34727);var o=n(38954),r=n(51850);function i(t,e){const n=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),r=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),i=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,o.i)(t,n,r,i),t}function s(t,e,n,i=(0,r.vt)()){const s=(0,o.l)(t),a=(0,o.l)(e),h=(0,o.e)(t,e)/(s*a);if(h<.9999999999999999){const r=Math.acos(h),d=((1-n)*s+n*a)/Math.sin(r),l=d/s*Math.sin((1-n)*r),f=d/a*Math.sin(n*r);return(0,o.g)(c,t,l),(0,o.g)(u,e,f),(0,o.f)(i,c,u)}return(0,o.m)(i,t,e,n)}(0,r.vt)(),(0,r.vt)(),(0,r.vt)();const c=(0,r.vt)(),u=(0,r.vt)()},82919:(t,e,n)=>{n.d(e,{DV:()=>_,C:()=>p,vt:()=>f,Qy:()=>m,ui:()=>g,ST:()=>S,bU:()=>j,pw:()=>v,m7:()=>b,c8:()=>x});var o=n(4341),r=n(58083),i=n(38954),s=n(51850),c=n(87317),u=n(91829),a=n(71351);function h(t){return t?{ray:(0,a.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,a.vt)(),c0:0,c1:Number.MAX_VALUE}}new o.I(()=>h());var d=n(27921),l=n(32114);function f(t){return t?[(0,d.vt)(t[0]),(0,d.vt)(t[1]),(0,d.vt)(t[2]),(0,d.vt)(t[3]),(0,d.vt)(t[4]),(0,d.vt)(t[5])]:[(0,d.vt)(),(0,d.vt)(),(0,d.vt)(),(0,d.vt)(),(0,d.vt)(),(0,d.vt)()]}function m(){return[(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)()]}function p(t,e){for(let n=0;n<y;n++)(0,d.C)(t[n],e[n]);return t}function g(t,e,n,o=E){const s=(0,r.lw)(l.Rc.get(),e,t);(0,r.B8)(s,s);for(let t=0;t<M;++t){const e=(0,c.t)(l.Km.get(),O[t],s);(0,i.i)(o[t],e[0]/e[3],e[1]/e[3],e[2]/e[3])}_(n,o)}function _(t,e){(0,d.Cr)(e[4],e[0],e[3],t[0]),(0,d.Cr)(e[1],e[5],e[6],t[1]),(0,d.Cr)(e[4],e[5],e[1],t[2]),(0,d.Cr)(e[3],e[2],e[6],t[3]),(0,d.Cr)(e[0],e[1],e[2],t[4]),(0,d.Cr)(e[5],e[4],e[7],t[5])}function b(t,e){for(let n=0;n<y;n++){const o=t[n];if(o[0]*e[0]+o[1]*e[1]+o[2]*e[2]+o[3]>=e[3])return!1}return!0}function v(t,e){return A(t,function(t,e=h()){return(0,a.C)(t,e.ray),e.c0=0,e.c1=Number.MAX_VALUE,e}(e,w.get()))}function S(t,e,n){return A(t,function(t,e,n=h()){const o=(0,i.l)(t.vector);return(0,a.fA)(t.origin,e,n.ray),n.c0=0,n.c1=o,n}(e,n,w.get()))}function j(t,e){for(let n=0;n<y;n++)if((0,d.mN)(t[n],e)>0)return!1;return!0}function A(t,e){for(let n=0;n<y;n++)if(!(0,d.$Q)(t[n],e))return!1;return!0}const x={bottom:[5,1,0,4],near:[0,1,2,3],far:[5,4,7,6],right:[1,5,6,2],left:[4,0,3,7],top:[7,3,2,6]},y=6,M=8,O=[(0,u.fA)(-1,-1,-1,1),(0,u.fA)(1,-1,-1,1),(0,u.fA)(1,1,-1,1),(0,u.fA)(-1,1,-1,1),(0,u.fA)(-1,-1,1,1),(0,u.fA)(1,-1,1,1),(0,u.fA)(1,1,1,1),(0,u.fA)(-1,1,1,1)],w=new o.I(h),E=m()},91869:(t,e,n)=>{function o(t,e){for(const n of t.values())if(e(n))return!0;return!1}function r(t,e,n){const o=t.get(e);if(void 0!==o)return o;const r=n();return t.set(e,r),r}function i(t){const e=new Map;return n=>(e.has(n)||e.set(n,t(n)),e.get(n))}n.d(e,{Bj:()=>i,Bs:()=>o,tE:()=>r})}}]);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{clone as e}from"../../../core/lang.js";import{signalFromSignalOrOptions as t}from"../../../core/promiseUtils.js";import{fromJSON as r}from"../../../geometry/support/jsonUtils.js";import{normalizeCentralMeridian as a}from"../../../geometry/support/normalizeUtils.js";import{equals as i}from"../../../geometry/support/spatialReferenceUtils.js";import{checkProjectionSupport as s,project as n}from"./projectionSupport.js";import{getQueryBBoxes as o}from"./QueryEngine.js";import{QueryEngineResult as l}from"./QueryEngineResult.js";import{normalizeQueryLike as p}from"./queryUtils.js";import{validateQuery as m}from"./queryValidationUtils.js";import{getSpatialQueryOperator as c}from"./spatialQuerySupport.js";async function u(c,u,y){const d=t(y),{point:x,distance:g,returnEdge:R,vertexMode:j}=u;if(!R&&"none"===j)return{candidates:[]};let w=e(u.query);w=await c.schedule(()=>p(w,c.definitionExpression,c.spatialReference),d),w=await c.reschedule(()=>m(w,{availableFields:c.availableFields,fieldsIndex:c.fieldsIndex,geometryType:c.geometryType,spatialReference:c.spatialReference}),d);const h=!i(x.spatialReference,c.spatialReference);h&&await s(x.spatialReference,c.spatialReference);const b="number"==typeof g?g:g.x,Q="number"==typeof g?g:g.y,S={xmin:x.x-b,xmax:x.x+b,ymin:x.y-Q,ymax:x.y+Q,spatialReference:x.spatialReference},U=h?n(S,c.spatialReference):S;if(!U)return{candidates:[]};const q=(await a(r(x),null,{signal:d}))[0],E=(await a(r(U),null,{signal:d}))[0];if(null==q||null==E)return{candidates:[]};const F=new l(await c.reschedule(()=>c.searchFeatures(o(E.toJSON())),d),w,c);await c.reschedule(()=>c.executeObjectIdsQuery(F),d),await c.reschedule(()=>c.executeTimeQuery(F),d),await c.reschedule(()=>c.executeAttributesQuery(F),d),await c.reschedule(()=>f(c,F,d),d);const T=q.toJSON(),v=h?n(T,c.spatialReference):T,I=h?Math.max(U.xmax-U.xmin,U.ymax-U.ymin)/2:g;return F.createSnappingResponse({...u,point:v,distance:I},w.returnZ,x.spatialReference)}async function f(e,t,r){const{query:a}=t,{spatialRel:i}=a;if(!t?.items?.length||!a.geometry||!i)return;const s=await c(i,a.geometry,e.geometryType,e.hasZ,e.hasM),n=await e.runSpatialFilter(t.items,e=>s(e.geometry),r);t.items=n}export{u as executeQueryForSnapping};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{neverReached as t}from"../../core/compilerUtils.js";import e from"../../core/Logger.js";import{isAborted as s,createAbortError as r,isPromiseLike as o}from"../../core/promiseUtils.js";import{signal as a}from"../../core/signal.js";import{Yield as n}from"../../views/support/Yield.js";class i{constructor(){this._tasks=new Array,this._numPendingTasks=a(0),this._readyToRun=a(!1)}get length(){return this._tasks.length}get updating(){return this._numPendingTasks.value>0}get readyToRun(){return this._readyToRun.value}_updateReadyToRun(){this._readyToRun.value=this._tasks.length>0}destroy(){this.cancelAll()}runTask(t){if(0===this.length)return n;for(;!t.done&&this._process(t);)t.madeProgress()}push(t,e,s){return this._addTask((r,o)=>new l(r,o,t,e,s),Array.prototype.push)}unshift(t,e,s){return this._addTask((r,o)=>new l(r,o,t,e,s),Array.prototype.unshift)}pushGenerator(t,e,s){const r=Array.prototype.push;return this._addTask((o,a)=>new p(o,a,t,e,s,r),r)}unshiftGenerator(t,e,s){const r=Array.prototype.unshift;return this._addTask((o,a)=>new p(o,a,t,e,s,r),r)}_process(e){if(0===this._tasks.length)return!1;const o=this._tasks.shift();this._updateReadyToRun();try{if(s(o.signal))this._cancelTask(o,r());else switch(o.type){case 0:this._processSimple(o,e);break;case 1:this._processGenerator(o,e);break;case 2:this._processIterator(o,e);break;default:t(o)}}catch(a){o.reject(a)}return!0}cancelAll(){const t=r();for(const e of this._tasks)this._cancelTask(e,t);this._tasks.length=0,this._updateReadyToRun()}_cancelTask(t,e){if(t.abortCallback){const s=t.abortCallback(e);2===t.type&&t.iterator.return&&c(t.iterator.return()),o(s)?s.then(t.resolve,t.reject):t.resolve(s)}else 2===t.type&&t.iterator.throw&&c(t.iterator.throw(e)),t.reject(e)}_onIteratorResult(t,e){e.done?t.resolve(e.value):(t.scheduleFunction.call(this._tasks,t),this._updateReadyToRun())}_processSimple(t,e){const s=t.callback(e);o(s)?s.then(t.resolve,t.reject):t.resolve(s)}_processGenerator(t,e){const s=t.generatorFunction(e),r=new d(t.resolve,t.reject,s,t.signal,t.abortCallback,t.scheduleFunction);this._processIterator(r,e)}_processIterator(t,e){const s=t.iterator.next(e);o(s)?s.then(e=>this._onIteratorResult(t,e),t.reject):this._onIteratorResult(t,s)}_addTask(t,e){return new Promise((s,r)=>{const o=t(s,r);e.call(this._tasks,o),++this._numPendingTasks.value,this._updateReadyToRun()}).finally(()=>--this._numPendingTasks.value)}}function c(t){o(t)?t.then(u):u(t)}function u(t){t.done||e.getLogger("esri.layers.support.PromiseQueue").warn("Generator iterator was aborted, but it is not done.")}class h{constructor(t,e,s=void 0,r=void 0){this.resolve=t,this.reject=e,this.signal=s,this.abortCallback=r}}class l extends h{constructor(t,e,s,r,o){super(t,e,r,o),this.callback=s,this.type=0}}class p extends h{constructor(t,e,s,r,o,a){super(t,e,r,o),this.generatorFunction=s,this.scheduleFunction=a,this.type=1}}class d extends h{constructor(t,e,s,r,o,a){super(t,e,r,o),this.iterator=s,this.scheduleFunction=a,this.type=2}}export{i as PromiseQueue};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{__decorate as e}from"tslib";import s from"../../../core/Accessor.js";import{createTask as i}from"../../../core/asyncUtils.js";import t from"../../../core/Collection.js";import a from"../../../core/Error.js";import{makeHandle as n}from"../../../core/handleUtils.js";import"../../../core/has.js";import r from"../../../core/Logger.js";import{removeMaybe as o,destroyMaybe as l,abortMaybe as c}from"../../../core/maybe.js";import{createAbortError as d,isAborted as h,onAbort as w,createResolver as m}from"../../../core/promiseUtils.js";import{schedule as u}from"../../../core/scheduling.js";import{property as y}from"../../../core/accessorSupport/decorators/property.js";import{subclass as _}from"../../../core/accessorSupport/decorators/subclass.js";const p="analyses-owner-handles";let V=class extends s{constructor(e){super(e),this._allAnalysisViews=new t,this._creatingViewCount=0,this._items=new Map,this._scheduledUpdateHandle=null,this._attachedToViewResolver=v(),this._analysisModules={"area-measurement":{module:null},dimension:{module:null},"direct-line-measurement":{module:null},"elevation-profile":{module:null},"line-of-sight":{module:null},slice:{module:null},viewshed:{module:null},"volume-measurement":{module:null}},this._emitOnView=(e,s)=>this.view.emit(e,s)}destroy(){this._disconnectOwners(),this._attachedToViewResolver.reject(d("AnalysisViewManager was destroyed")),this._set("view",null)}attach(){this._connectOwners(),this._attachedToViewResolver.resolve()}detach(){this._disconnectOwners(),this._attachedToViewResolver.reject(d()),this._attachedToViewResolver=v()}get updating(){return!this.view.ready||0!==this._creatingViewCount||this._allAnalysisViews.some(e=>e.updating)}get testInfo(){}async whenAnalysisView(e){await this._attachedToViewResolver.promise;const s=this._items.get(e);if(null==s||1===s.state.list){throw new a("AnalysisViewManager:no-analysisview-for-analysis","The analysis has not been added to view.analyses",{analysis:e})}return s.createAnalysisViewTask.promise}_connectOwners(){this.addHandles(this._connectAnalysesCollection(this.view.analyses),p)}_disconnectOwners(){this.removeHandles(p),this._update(),this._creatingViewCount=0}_connectAnalysesCollection(e){for(const t of e)this._addAnalysis(t);const s=e.on("after-add",e=>this._addAnalysis(e.item)),i=e.on("after-remove",e=>this._removeAnalysis(e.item));return n(()=>{s.remove(),i.remove();for(const s of e)this._removeAnalysis(s)})}_addAnalysis(e){const s=this._items.get(e);if(null==s){const s={state:{view:0,list:0},analysis:e,view:null,createAnalysisViewTask:null};this._items.set(e,s),s.createAnalysisViewTask=i(i=>this._createAnalysisViewPromise(s,i).then(s=>(this._emitOnView("analysis-view-create",{analysis:e,analysisView:s}),s),s=>{throw this._emitOnView("analysis-view-create-error",{analysis:e,error:s}),s}))}else s.state.list=0}_removeAnalysis(e){const s=this._items.get(e);null!=s?(s.state.list=1,this._scheduleUpdate()):r.getLogger(this).error("Trying to remove analysis which was not added")}_scheduleUpdate(){null==this._scheduledUpdateHandle&&(this._scheduledUpdateHandle=u(()=>this._update()))}_update(){this._scheduledUpdateHandle=o(this._scheduledUpdateHandle),this._items.forEach(e=>{if(1!==e.state.list)return;const{analysis:s,view:i}=e;switch(this._items.delete(s),e.state.view){case 0:e.createAnalysisViewTask=c(e.createAnalysisViewTask);break;case 1:null!=i&&(this._allAnalysisViews.remove(i),e.view=l(i),e.createAnalysisViewTask=null,this._emitOnView("analysis-view-destroy",{analysis:s,analysisView:i}))}})}async _createAnalysisViewPromise(e,s){const i=e.analysis,t=i.type,a=this._analysisModules[t];if(this._creatingViewCount+=1,null==a.module)try{a.module=await this._loadAnalysisModule(t)}catch(o){throw this._creatingViewCount-=1,o}if(h(s))throw this._creatingViewCount-=1,d("AnalysisView creation aborted");const n=new a.module.default({analysis:i,view:this.view});let r=!0;w(s,()=>{r&&this._destroyAnalysisView(i,n)});try{await n.when()}catch(o){throw r=!1,this._destroyAnalysisView(i,n),o}if(h(s))throw d();return r=!1,e.view=n,e.state.view=1,this._allAnalysisViews.add(n),this._creatingViewCount-=1,n}_destroyAnalysisView(e,s){s.destroyed||(this._creatingViewCount-=1,s.destroy(),this._emitOnView("analysis-view-destroy",{analysis:e,analysisView:s}))}_loadAnalysisModule(e){switch(e){case"area-measurement":return import("./AreaMeasurementAnalysisView3D.js");case"dimension":return import("./DimensionAnalysisView3D.js");case"direct-line-measurement":return import("./DirectLineMeasurementAnalysisView3D.js");case"elevation-profile":return import("./ElevationProfileAnalysisView3D.js");case"line-of-sight":return import("./LineOfSightAnalysisView3D.js");case"slice":return import("./SliceAnalysisView3D.js");case"viewshed":return import("./ViewshedAnalysisView3D.js");case"volume-measurement":return import("./VolumeMeasurementAnalysisView3D.js")}}};function v(){const e=m();return e.promise.catch(()=>{}),e}e([y()],V.prototype,"updating",null),e([y({constructOnly:!0})],V.prototype,"view",void 0),e([y()],V.prototype,"_allAnalysisViews",void 0),e([y()],V.prototype,"_creatingViewCount",void 0),V=e([_("esri.views.3d.analysis.AnalysisViewManager3D")],V);const A=V;export{A as default};
|
|
File without changes
|