@arcgis/core 5.2.0-next.73 → 5.2.0-next.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/analysis/ViewshedAnalysis.js +1 -1
- package/arcgisGlobal.d.ts +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{d3be4d914fc99a1d686c.js → 075e65cc4275ac886f08.js} +1 -1
- package/assets/esri/core/workers/chunks/087bd698b80ca0cea71e.js +1 -0
- package/assets/esri/core/workers/chunks/{b6c7b7b7f87dce5de811.js → 0bf644f93c180a2bc2f8.js} +1 -1
- package/assets/esri/core/workers/chunks/0e81c6d4f1c81f9b0a1b.js +1 -0
- package/assets/esri/core/workers/chunks/193aed69de2dec4f36b6.js +1 -0
- package/assets/esri/core/workers/chunks/1a3afee3ecd806b4aa81.js +1 -0
- package/assets/esri/core/workers/chunks/{014f9fd2818e2c9d9a3b.js → 264fd750691d517ab1f3.js} +1 -1
- package/assets/esri/core/workers/chunks/28f87daaba1ae3441364.js +1 -0
- package/assets/esri/core/workers/chunks/2baa16ec8559e77c226f.js +1 -0
- package/assets/esri/core/workers/chunks/2c31648a4b95275516ee.js +1 -0
- package/assets/esri/core/workers/chunks/2f81047790c4890ae625.js +1 -0
- package/assets/esri/core/workers/chunks/305eea9c1fc4aee3309e.js +1 -0
- package/assets/esri/core/workers/chunks/31d19bb72a9e79b30070.js +1 -0
- package/assets/esri/core/workers/chunks/45ccca01db0027b9dc16.js +1 -0
- package/assets/esri/core/workers/chunks/495f90fe3d0ad32bb82d.js +1 -0
- package/assets/esri/core/workers/chunks/4b5bd0c9a55ea2998601.js +1 -0
- package/assets/esri/core/workers/chunks/509aecafbc629bee1c15.js +1 -0
- package/assets/esri/core/workers/chunks/{d901f8503a73277cfa58.js → 553be2bd69bd311477ea.js} +1 -1
- package/assets/esri/core/workers/chunks/{31669511cfddf116d991.js → 66e60351aacbd162775f.js} +1 -1
- package/assets/esri/core/workers/chunks/762be5d3e6aeaea33f74.js +29 -0
- package/assets/esri/core/workers/chunks/76b573143d1a65fdbcb6.js +1 -0
- package/assets/esri/core/workers/chunks/7aaa051b51a8e34bbfb0.js +1 -0
- package/assets/esri/core/workers/chunks/{44b50d4716a2567ab6f1.js → 7b5b66ae79e0287e3ade.js} +1 -1
- package/assets/esri/core/workers/chunks/81130dbcb738d40f723b.js +1 -0
- package/assets/esri/core/workers/chunks/835af7b4fd92cb4e7af0.js +1 -0
- package/assets/esri/core/workers/chunks/859dd86c921053bf03a1.js +1 -0
- package/assets/esri/core/workers/chunks/877594b6db08da98acd7.js +1 -0
- package/assets/esri/core/workers/chunks/{96d861265566854760cd.js → 88fd698b940dadcc6dc5.js} +1 -1
- package/assets/esri/core/workers/chunks/8f0d4aec8bd3cbfefc40.js +1 -0
- package/assets/esri/core/workers/chunks/{7f208ef75ef2ce0d7cf9.js → 910c93bbbf8113a4a51f.js} +1 -1
- package/assets/esri/core/workers/chunks/92c4464b67fce6cea134.js +1 -0
- package/assets/esri/core/workers/chunks/{509cfac9e5d86a8ee449.js → 936d44c7bc3a181e64a3.js} +1 -1
- package/assets/esri/core/workers/chunks/{b9953277d0cd4a01bdc6.js → 94368a097e6190ce3c7a.js} +1 -1
- package/assets/esri/core/workers/chunks/947f1ea4dbc3e3419ecc.js +1 -0
- package/assets/esri/core/workers/chunks/9b76c8974424a1908e86.js +1 -0
- package/assets/esri/core/workers/chunks/{c203df41f9d2e4b80889.js → 9ca59077712e45ef4d56.js} +1 -1
- package/assets/esri/core/workers/chunks/9e25f715cda59c686a4c.js +1 -0
- package/assets/esri/core/workers/chunks/{36171c72a3c04b0d13ef.js → a0a1f0bd3648738354a6.js} +1 -1
- package/assets/esri/core/workers/chunks/a101152066dd56259619.js +1 -0
- package/assets/esri/core/workers/chunks/a2a2c7e274fb32fecffa.js +1 -0
- package/assets/esri/core/workers/chunks/a50421fe79f264ae3619.js +1 -0
- package/assets/esri/core/workers/chunks/a9053ad0f4e8c4705665.js +1 -0
- package/assets/esri/core/workers/chunks/aca5c524bd3c955e9243.js +1 -0
- package/assets/esri/core/workers/chunks/b1a175b3b2d1a7ddde8e.js +1 -0
- package/assets/esri/core/workers/chunks/b3b53cf0a3a30164d337.js +1 -0
- package/assets/esri/core/workers/chunks/b6d26d9738c0787acc38.js +1 -0
- package/assets/esri/core/workers/chunks/b9c61b20bbc91cb63036.js +1 -0
- package/assets/esri/core/workers/chunks/bf3dc3ad8df8488da3f0.js +1 -0
- package/assets/esri/core/workers/chunks/bff75cc7413bf0d319db.js +1 -0
- package/assets/esri/core/workers/chunks/c1568bcd3f04014152e1.js +1 -0
- package/assets/esri/core/workers/chunks/c1a4d499a30f3d80567b.js +1 -0
- package/assets/esri/core/workers/chunks/c374e5d5980db74c4aca.js +1 -0
- package/assets/esri/core/workers/chunks/{8c76f31a363dd0c3354d.js → c46f79d5b7712adbbd1c.js} +1 -1
- package/assets/esri/core/workers/chunks/c67e4a848d41038367b8.js +1 -0
- package/assets/esri/core/workers/chunks/de5013f89f0eae93978f.js +1 -0
- package/assets/esri/core/workers/chunks/e557043f90c051e93925.js +1 -0
- package/assets/esri/core/workers/chunks/{bee5e738ecf8680909c4.js → eaf26c1cc938789d5336.js} +1 -1
- package/assets/esri/core/workers/chunks/ebfb3cdc0df15eb05d75.js +1 -0
- package/assets/esri/core/workers/chunks/f1727b4a32cb6f36a5e6.js +1 -0
- package/assets/esri/core/workers/chunks/f4bc563c71c478d3912f.js +1 -0
- package/assets/esri/core/workers/chunks/fb0b89bbb4f8607d5f20.js +1 -0
- package/assets/esri/core/workers/chunks/fdca9873914b9dbd9244.js +1 -0
- package/assets/esri/core/workers/chunks/ff890167ff2baabfc4ce.js +1 -0
- package/config.js +1 -1
- package/kernel.js +1 -1
- package/layers/DimensionFeatureLayer.d.ts +22 -0
- package/layers/DimensionFeatureLayer.js +1 -1
- package/layers/save/featureLayerUtils.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/support/layersMapping.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightReshapeTool3D.js +1 -1
- package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
- package/views/3d/analysis/Viewshed/placementUtils.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/reshapeTooltipUtils3D.js +1 -1
- package/views/3d/interactive/editingTools/tooltipUtils3D.js +1 -1
- package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
- package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
- package/views/3d/interactive/editingTools/transform/extentTransform/ExtentMove.js +1 -1
- package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
- package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
- package/views/3d/layers/graphics/tessellationUtils.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/layers/support/MediaLayerInteraction.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/DrawTool.js +1 -1
- package/views/draw/plugins/PolylinePlugin.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/InteractiveHandle.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/drawToolUtils.js +1 -1
- package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
- package/views/draw/support/managers/TooltipManager.js +1 -1
- package/views/draw/support/reshapeTooltipUtils.js +1 -1
- package/views/draw/support/tooltipUtils.js +1 -1
- package/views/interactive/options/InteractiveToolOptions.d.ts +36 -0
- package/views/interactive/options/InteractiveToolOptions.js +2 -0
- package/views/interactive/sketch/SketchOptions.d.ts +4 -3
- package/views/interactive/sketch/SketchOptions.js +1 -1
- package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
- package/views/interactive/tooltip/content/TooltipContent.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPolygon.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDrawPolyline.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDynamic.js +1 -1
- package/views/interactive/tooltip/fields/fields.js +1 -1
- package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
- package/views/interactive/tooltip/infos/SketchTooltipInfo.js +1 -1
- package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/support/GridControls/GridControlsViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/00cbff0b785e24e87d97.js +0 -1
- package/assets/esri/core/workers/chunks/0623acb2bd14a61b65c9.js +0 -29
- package/assets/esri/core/workers/chunks/06c9aac75a01d3af6d54.js +0 -1
- package/assets/esri/core/workers/chunks/089f8c60e96d920a2cb2.js +0 -1
- package/assets/esri/core/workers/chunks/0c3c311400ee352187ea.js +0 -1
- package/assets/esri/core/workers/chunks/158d2ac0333d53556e33.js +0 -1
- package/assets/esri/core/workers/chunks/16cade1c2ddf44e336ee.js +0 -1
- package/assets/esri/core/workers/chunks/1b130af7d14eaae69d96.js +0 -1
- package/assets/esri/core/workers/chunks/1e0140556c2e3fa72545.js +0 -1
- package/assets/esri/core/workers/chunks/1e5cb72830c7f32f2961.js +0 -1
- package/assets/esri/core/workers/chunks/259bdacfb7b0f866a8d0.js +0 -1
- package/assets/esri/core/workers/chunks/2f58e1f64df2da8259a2.js +0 -1
- package/assets/esri/core/workers/chunks/383304d33b496c5d8baa.js +0 -1
- package/assets/esri/core/workers/chunks/3aacb935d632834d4154.js +0 -1
- package/assets/esri/core/workers/chunks/3c8e98cf23ad8ef12fcb.js +0 -1
- package/assets/esri/core/workers/chunks/3dc71e03a630dd50b28e.js +0 -1
- package/assets/esri/core/workers/chunks/3fd022df127af32782ce.js +0 -1
- package/assets/esri/core/workers/chunks/4344ab1250a1c550bf8b.js +0 -1
- package/assets/esri/core/workers/chunks/43de723f765ec8f268ac.js +0 -1
- package/assets/esri/core/workers/chunks/4695cd6120f60b234d5c.js +0 -1
- package/assets/esri/core/workers/chunks/582a1d468089b9986416.js +0 -1
- package/assets/esri/core/workers/chunks/5f201c77a09ae0df29d6.js +0 -1
- package/assets/esri/core/workers/chunks/6080e46fc79127500283.js +0 -1
- package/assets/esri/core/workers/chunks/67d3ff7fcefaa7d5d27f.js +0 -1
- package/assets/esri/core/workers/chunks/6a9002fcba11e2cf3f2e.js +0 -1
- package/assets/esri/core/workers/chunks/72dcd4bd1a28bf8605c5.js +0 -1
- package/assets/esri/core/workers/chunks/73f228d966b89c73c9e9.js +0 -1
- package/assets/esri/core/workers/chunks/77df0bb35d2688729479.js +0 -1
- package/assets/esri/core/workers/chunks/7a143ca61c0a70306185.js +0 -1
- package/assets/esri/core/workers/chunks/869d292a60747c93dc84.js +0 -1
- package/assets/esri/core/workers/chunks/9c57161ad48d8d546dc7.js +0 -1
- package/assets/esri/core/workers/chunks/a7f42ada0aa69873a938.js +0 -1
- package/assets/esri/core/workers/chunks/a988fd54912969b812ce.js +0 -1
- package/assets/esri/core/workers/chunks/aff0e7761276036e029d.js +0 -1
- package/assets/esri/core/workers/chunks/b7d8817018b3d277c454.js +0 -1
- package/assets/esri/core/workers/chunks/ba4f419f46be09a9a55c.js +0 -1
- package/assets/esri/core/workers/chunks/bfb6566c27c09deb0929.js +0 -1
- package/assets/esri/core/workers/chunks/c715c585c42d8c2b86f5.js +0 -1
- package/assets/esri/core/workers/chunks/c7e9513f75b8ec205562.js +0 -1
- package/assets/esri/core/workers/chunks/c838cc1c786368b78598.js +0 -1
- package/assets/esri/core/workers/chunks/cd4e5c948d1bfa9b9a2d.js +0 -1
- package/assets/esri/core/workers/chunks/cfe31b7d1c6c05fbd268.js +0 -1
- package/assets/esri/core/workers/chunks/d0c1bc90e474f706211c.js +0 -1
- package/assets/esri/core/workers/chunks/da484787bd9fd3b13d15.js +0 -1
- package/assets/esri/core/workers/chunks/e21b3490bfce75405e55.js +0 -1
- package/assets/esri/core/workers/chunks/e4353f0792f45aa6a62f.js +0 -1
- package/assets/esri/core/workers/chunks/e702abaeccef20b64a81.js +0 -1
- package/assets/esri/core/workers/chunks/ebd619533be077059494.js +0 -1
- package/assets/esri/core/workers/chunks/f475672ff4c2ec9367c2.js +0 -1
- package/assets/esri/core/workers/chunks/f69329b85b362b349a8c.js +0 -1
- package/assets/esri/core/workers/chunks/fba8065a3a6fbd877e23.js +0 -1
- package/assets/esri/core/workers/chunks/fec07a16b72cdcafc641.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2438],{57582(t,e,s){s.d(e,{af:()=>n,rK:()=>h}),s(92602);const i="arial-unicode-ms";function n(t){if(!t)return i;const e=t.toLowerCase().split(" ").join("-");switch(e){case"serif":return"noto-serif";case"sans-serif":return"arial-unicode-ms";case"monospace":return"ubuntu-mono";case"fantasy":return"cabin-sketch";case"cursive":return"redressed";default:return e}}function h(t){const e=function(t){if(!t.weight)return"";switch(t.weight.toLowerCase()){case"bold":case"bolder":return"-bold"}return""}(t)+function(t){if(!t.style)return"";switch(t.style.toLowerCase()){case"italic":case"oblique":return"-italic"}return""}(t);return n(t.family)+(e.length>0?e:"-regular")}new Map,new Set,s.d(e,["Vb",0,i])},85560(t,e,s){function i(){const t=new Float32Array(6);return t[0]=1,t[3]=1,t}function n(t,e,s,i){const n=e[i],h=e[i+1];t[i]=s[0]*n+s[2]*h+s[4],t[i+1]=s[1]*n+s[3]*h+s[5]}s.d(e,{vt:()=>i}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){const e=new Float32Array(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},create:i,fromValues:function(t,e,s,i,n,h){const r=new Float32Array(6);return r[0]=t,r[1]=e,r[2]=s,r[3]=i,r[4]=n,r[5]=h,r},transform:n,transformMany:function(t,e,s,i=0,h=0,r=2){const o=h||e.length/r;for(let h=i;h<o;h++)n(t,e,s,h*r)}},Symbol.toStringTag,{value:"Module"}))},88340(t,e,s){function i(){return new Float32Array(2)}function n(t,e){const s=new Float32Array(2);return s[0]=t,s[1]=e,s}function h(){return i()}function r(){return n(1,1)}function o(){return n(1,0)}function a(){return n(0,1)}s.d(e,{fA:()=>n,vt:()=>i});const l=h(),c=r(),u=o(),_=a();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:u,UNIT_Y:_,ZEROS:l,clone:function(t){const e=new Float32Array(2);return e[0]=t[0],e[1]=t[1],e},create:i,fromValues:n,ones:r,unitX:o,unitY:a,zeros:h},Symbol.toStringTag,{value:"Module"})),s.d(e,["Un",0,c,"uY",0,l])},16905(t,e,s){s.d(e,{$0:()=>a,D_:()=>n,Tl:()=>o,e$:()=>r,lw:()=>h});var i=s(34304);function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function h(t,e,s){const i=e[0],n=e[1],h=e[2],r=e[3],o=e[4],a=e[5],l=s[0],c=s[1],u=s[2],_=s[3],p=s[4],f=s[5];return t[0]=i*l+h*c,t[1]=n*l+r*c,t[2]=i*u+h*_,t[3]=n*u+r*_,t[4]=i*p+h*f+o,t[5]=n*p+r*f+a,t}function r(t,e,s){const i=e[0],n=e[1],h=e[2],r=e[3],o=e[4],a=e[5],l=Math.sin(s),c=Math.cos(s);return t[0]=i*c+h*l,t[1]=n*c+r*l,t[2]=i*-l+h*c,t[3]=n*-l+r*c,t[4]=o,t[5]=a,t}function o(t,e,s){const i=e[0],n=e[1],h=e[2],r=e[3],o=e[4],a=e[5],l=s[0],c=s[1];return t[0]=i,t[1]=n,t[2]=h,t[3]=r,t[4]=i*l+h*c+o,t[5]=n*l+r*c+a,t}function a(t,e){const s=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=s,t[2]=-s,t[3]=i,t[4]=0,t[5]=0,t}function l(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t[2]=e[2]-s[2],t[3]=e[3]-s[3],t[4]=e[4]-s[4],t[5]=e[5]-s[5],t}const c=h,u=l;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t[2]=e[2]+s[2],t[3]=e[3]+s[3],t[4]=e[4]+s[4],t[5]=e[5]+s[5],t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},determinant:function(t){return t[0]*t[3]-t[1]*t[2]},equals:function(t,e){const s=t[0],n=t[1],h=t[2],r=t[3],o=t[4],a=t[5],l=e[0],c=e[1],u=e[2],_=e[3],p=e[4],f=e[5],d=(0,i.FD)();return Math.abs(s-l)<=d*Math.max(1,Math.abs(s),Math.abs(l))&&Math.abs(n-c)<=d*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(h-u)<=d*Math.max(1,Math.abs(h),Math.abs(u))&&Math.abs(r-_)<=d*Math.max(1,Math.abs(r),Math.abs(_))&&Math.abs(o-p)<=d*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-f)<=d*Math.max(1,Math.abs(a),Math.abs(f))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+1)},fromRotation:a,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},identity:n,invert:function(t,e){const s=e[0],i=e[1],n=e[2],h=e[3],r=e[4],o=e[5];let a=s*h-i*n;return a?(a=1/a,t[0]=h*a,t[1]=-i*a,t[2]=-n*a,t[3]=s*a,t[4]=(n*o-h*r)*a,t[5]=(i*r-s*o)*a,t):null},mul:c,multiply:h,multiplyScalar:function(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t[3]=e[3]*s,t[4]=e[4]*s,t[5]=e[5]*s,t},multiplyScalarAndAdd:function(t,e,s,i){return t[0]=e[0]+s[0]*i,t[1]=e[1]+s[1]*i,t[2]=e[2]+s[2]*i,t[3]=e[3]+s[3]*i,t[4]=e[4]+s[4]*i,t[5]=e[5]+s[5]*i,t},rotate:r,scale:function(t,e,s){const i=e[0],n=e[1],h=e[2],r=e[3],o=e[4],a=e[5],l=s[0],c=s[1];return t[0]=i*l,t[1]=n*l,t[2]=h*c,t[3]=r*c,t[4]=o,t[5]=a,t},set:function(t,e,s,i,n,h,r){return t[0]=e,t[1]=s,t[2]=i,t[3]=n,t[4]=h,t[5]=r,t},str:function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},sub:u,subtract:l,translate:o},Symbol.toStringTag,{value:"Module"}))},36745(t,e,s){s.d(e,{z:()=>o});var i=s(4718),n=s(51118),h=s(60408),r=s(92722);class o{static fromOptimized(t,e,s=1){return(new a).initialize(t,e,s)}static fromJSON(t){const[e,s]=c(t),i=(0,h.Pv)(t),n=(0,h.W0)(t);return(new u).initialize(e,s,i,n,1)}static fromOptimizedCIM(t,e,s=1){return(new _).initialize(t,e,s)}static fromJSONCIM(t,e=1){const[s,i]=c(t),n=(0,h.Pv)(t),r=(0,h.W0)(t);return(new p).initialize(s,i,n,r,e)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimized(e,s):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimizedCIM(e,s):null}static createEmptyOptimized(t,e=!1,s=!1,i=1){return(new _).initialize(new r.A([],[],e,s),t,i)}static createEmptyJSON(t,e=!1,s=!1){return(new u).initialize([],t,e,s,1)}static createEmptyOptimizedCIM(t,e=!1,s=!1,i=1){return(new _).initialize(new r.A([],[],e,s),t,i)}static createEmptyJSONCIM(t,e=!1,s=!1,i=1){return(new p).initialize([],t,e,s,i)}asJSON(){const t=(0,n.x)(this),{hasZ:e,hasM:s}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:s}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:s?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:s}:{paths:t,hasZ:e,hasM:s}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,s=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const i=t,n=e;for(;this.nextPoint();)s+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return s+=(t-i)*(e+n),-.5*s}invertY(){this.yFactor*=-1}}class a extends o{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,s){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=s,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,e=this._geometry.coords,s=this._pathOffset;return(new a).initialize(new r.A([this.pathSize],e.slice(s,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){const t=this._end,e=this._stride,s=this._geometry.coords;let i=0;for(let n=this._pathOffset+e;n<t;n+=e){const t=s[n-e],h=s[n-e+1],r=s[n]-t,o=s[n+1]-h;i+=Math.sqrt(r*r+o*o)}return i}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,s=this._end-this._stride;for(let i=0;i<this._stride;i++)if(t[e+i]!==t[s+i])return!1;return!0}clone(){return(new a).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function l(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function c(t){return(0,h.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,h.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,h.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,h.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,h.fT)(t)?[[[l(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class u extends o{initialize(t,e,s,i,n){return this._paths=t,this.geometryType=e,this.hasZ=s,this.hasM=i,this._pathIndex=this._pointIndex=-1,this.yFactor=n,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let s=0;for(let i=1;i<t;i++){const t=e[i-1],n=e[i],h=t[0],r=t[1],o=n[0]-h,a=n[1]-r;s+=Math.sqrt(o*o+a*a)}return s}startPath(){this._paths.push([])}getCurrentPath(){return(new u).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,n.x)(t);for(const t of e)this.pushPath(t)}asOptimized(){const{hasZ:t,hasM:e}=this,s=new r.A([],[],t,e),{coords:i,lengths:n}=s;if("esriGeometryPoint"===this.geometryType)i.push(...this._paths[0][0]),n.length=0;else for(const s of this._paths){for(const n of s)i.push(n[0]),i.push(n[1]*this.yFactor),t&&i.push(n[2]),e&&i.push(n[this._mIndex]);n.push(s.length)}return s}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}clone(){return(new u).initialize((0,i.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class _ extends a{initialize(t,e,s){return super.initialize(t,e,s),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new _).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class p extends u{initialize(t,e,s,i,n){return super.initialize(t,e,s,i,n)}clone(){return(new p).initialize((0,i.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},6774(t,e,s){s.d(e,{O3:()=>h,Ox:()=>r,bR:()=>i});class i{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new i(t[0],t[1])}clone(){return new i(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,s=Math.sqrt(t*t+e*e);return this.x/=s,this.y/=s,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const s=this.x,i=this.y;return this.x=s*t-i*e,this.y=s*e+i*t,this}rotateReverse(t,e){const s=this.x,i=this.y;return this.x=s*t+i*e,this.y=-s*e+i*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const s=e.x-t.x,i=e.y-t.y;return Math.sqrt(s*s+i*i)}static add(t,e){return new i(t.x+e.x,t.y+e.y)}static sub(t,e){return new i(t.x-e.x,t.y-e.y)}}class n{constructor(t,e,s){this.ratio=t,this.x=e,this.y=s}}class h{constructor(t,e,s,i=8,n=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=i,this._pixelMargin=n,this._tileSize=512*i,this._dz=t,this._yPos=e,this._xPos=s}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const s=t>>this._dz;e>s&&(e=s),this._margin=e,this._xmin=s*this._xPos-e,this._ymin=s*this._yPos-e,this._xmax=this._xmin+s+2*e,this._ymax=this._ymin+s+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new i(t,e),this._firstPt=new i(t,e),this._dist=0}lineTo(t,e){const s=this._isIn(t,e),h=new i(t,e),r=i.distance(this._prevPt,h);let o,a,l,c,u,_,p,f;if(s)this._prevIsIn?this._lineTo(t,e,!0):(o=this._prevPt,a=h,l=this._intersect(a,o),this._start=this._dist+r*(1-this._r),this._lineTo(l.x,l.y,!0),this._lineTo(a.x,a.y,!0));else if(this._prevIsIn)a=this._prevPt,o=h,l=this._intersect(a,o),this._lineTo(l.x,l.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,e=h;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const s=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(c=(this._xmin-t.x)/(e.x-t.x),f=t.y+c*(e.y-t.y),f<=this._ymin?_=!1:f>=this._ymax?_=!0:s.push(new n(c,this._xmin,f))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(c=(this._xmax-t.x)/(e.x-t.x),f=t.y+c*(e.y-t.y),f<=this._ymin?_=!1:f>=this._ymax?_=!0:s.push(new n(c,this._xmax,f))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(c=(this._ymin-t.y)/(e.y-t.y),p=t.x+c*(e.x-t.x),p<=this._xmin?u=!1:p>=this._xmax?u=!0:s.push(new n(c,p,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(c=(this._ymax-t.y)/(e.y-t.y),p=t.x+c*(e.x-t.x),p<=this._xmin?u=!1:p>=this._xmax?u=!0:s.push(new n(c,p,this._ymax))),0===s.length)u?_?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):_?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(s.length>1&&s[0].ratio>s[1].ratio)this._start=this._dist+r*s[1].ratio,this._lineTo(s[1].x,s[1].y,!0),this._lineTo(s[0].x,s[0].y,!0);else{this._start=this._dist+r*s[0].ratio;for(let t=0;t<s.length;t++)this._lineTo(s[t].x,s[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=r,this._prevIsIn=s,this._prevPt=h}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const s=this._line;let i=s.length;for(;i>=4&&(s[0].x===s[1].x&&s[0].x===s[i-2].x||s[0].y===s[1].y&&s[0].y===s[i-2].y);)s.pop(),s[0].x=s[i-2].x,s[0].y=s[i-2].y,--i}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const s=[];for(let i=0;i<e;i++)s.push({line:t[i],start:this._starts[i]||0});return s}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let s,n,h;if(e.x>=this._xmin&&e.x<=this._xmax)n=e.y<=this._ymin?this._ymin:this._ymax,h=(n-t.y)/(e.y-t.y),s=t.x+h*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)s=e.x<=this._xmin?this._xmin:this._xmax,h=(s-t.x)/(e.x-t.x),n=t.y+h*(e.y-t.y);else{n=e.y<=this._ymin?this._ymin:this._ymax,s=e.x<=this._xmin?this._xmin:this._xmax;const i=(s-t.x)/(e.x-t.x),r=(n-t.y)/(e.y-t.y);i<r?(h=i,n=t.y+i*(e.y-t.y)):(h=r,s=t.x+r*(e.x-t.x))}return this._r=h,new i(s,n)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,s){3!==this._type?s&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new i(t,e))):(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new i(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,s){let n,h;if(3!==this._type)if(s){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(n=this._line[this._line.length-1],n.equals(t,e)))return;this._line.push(new i(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){n=this._line[this._line.length-1];const s=n.x===t,r=n.y===e;if(s&&r)return;this._isH&&s||this._isV&&r?(n.x=t,n.y=e,h=this._line[this._line.length-2],h.x===t&&h.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(h=this._line[this._line.length-2],this._isH=h.x===t,this._isV=h.y===e)):(this._isH=h.x===t,this._isV=h.y===e)):(this._line.push(new i(t,e)),this._isH=s,this._isV=r)}else this._line.push(new i(t,e))}}class r{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const s=this._ratio;this._line.push(new i(t*s,e*s))}lineTo(t,e){const s=this._ratio;this._line.push(new i(t*s,e*s))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,e,s){if(!s)return;const i=-e,n=t+e,h=-e,r=t+e,a=[],l=[],c=s.length;for(let t=0;t<c;++t){const e=s[t];if(!e||e.length<2)continue;let o,c=e[0];const u=e.length;for(let s=1;s<u;++s)o=e[s],c.x===o.x&&(c.x<=i&&(c.y>o.y?(a.push(t),a.push(s),a.push(0),a.push(-1)):(l.push(t),l.push(s),l.push(0),l.push(-1))),c.x>=n&&(c.y<o.y?(a.push(t),a.push(s),a.push(1),a.push(-1)):(l.push(t),l.push(s),l.push(1),l.push(-1)))),c.y===o.y&&(c.y<=h&&(c.x<o.x?(a.push(t),a.push(s),a.push(2),a.push(-1)):(l.push(t),l.push(s),l.push(2),l.push(-1))),c.y>=r&&(c.x>o.x?(a.push(t),a.push(s),a.push(3),a.push(-1)):(l.push(t),l.push(s),l.push(3),l.push(-1)))),c=o}if(0===a.length||0===l.length)return;o.fillParent(s,l,a),o.fillParent(s,a,l);const u=[];o.calcDeltas(u,l,a),o.calcDeltas(u,a,l),o.addDeltas(u,s)}static fillParent(t,e,s){const i=s.length,n=e.length;for(let h=0;h<n;h+=4){const n=e[h],r=e[h+1],o=e[h+2],l=t[n][r-1],c=t[n][r];let u=8092,_=-1;for(let e=0;e<i;e+=4){if(s[e+2]!==o)continue;const i=s[e],n=s[e+1],h=t[i][n-1],r=t[i][n];switch(o){case 0:case 1:if(a(l.y,h.y,r.y)&&a(c.y,h.y,r.y)){const t=Math.abs(r.y-h.y);t<u&&(u=t,_=e)}break;case 2:case 3:if(a(l.x,h.x,r.x)&&a(c.x,h.x,r.x)){const t=Math.abs(r.x-h.x);t<u&&(u=t,_=e)}}}e[h+3]=_}}static calcDeltas(t,e,s){const i=e.length;for(let n=0;n<i;n+=4){const i=[],h=o.calcDelta(n,e,s,i);t.push(e[n]),t.push(e[n+1]),t.push(e[n+2]),t.push(h)}}static calcDelta(t,e,s,i){const n=e[t+3];if(-1===n)return 0;const h=i.length;return h>1&&i[h-2]===n?0:(i.push(n),o.calcDelta(n,s,e,i)+1)}static addDeltas(t,e){const s=t.length;let i=0;for(let e=0;e<s;e+=4){const s=t[e+3];s>i&&(i=s)}for(let n=0;n<s;n+=4){const s=e[t[n]],h=t[n+1],r=i-t[n+3];switch(t[n+2]){case 0:s[h-1].x-=r,s[h].x-=r,1===h&&(s[s.length-1].x-=r),h===s.length-1&&(s[0].x-=r);break;case 1:s[h-1].x+=r,s[h].x+=r,1===h&&(s[s.length-1].x+=r),h===s.length-1&&(s[0].x+=r);break;case 2:s[h-1].y-=r,s[h].y-=r,1===h&&(s[s.length-1].y-=r),h===s.length-1&&(s[0].y-=r);break;case 3:s[h-1].y+=r,s[h].y+=r,1===h&&(s[s.length-1].y+=r),h===s.length-1&&(s[0].y+=r)}}}}const a=(t,e,s)=>t>=e&&t<=s||t>=s&&t<=e},32011(t,e,s){s.d(e,{d:()=>a});var i=s(19419),n=s(537),h=s(12359),r=s(95108),o=s(12176);function a(t){if(0===t.totalSize)return null;const e=(0,n.z8)(t);if(!e)return null;const s=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19;let r=0,o=0;t.reset();for(let e=0;t.nextPath();e++){const s=t.getCurrentRingArea();s>o&&(o=s,r=e)}if(t.seekPath(r),0===t.pathSize)return null;t.seekPathStart();const a=(0,n.B$)(t);if(Math.abs(o)<=2*s*s)return[(a[0]+a[2])/2,(a[1]+a[3])/2];t.seekPathStart();const _=(0,h.w2)(t,(0,i.vt)());if(null===_)return null;if(t.totalPoints<4)return _;const p=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],f=[NaN,NaN,NaN,NaN],x=[NaN,NaN,NaN,NaN];let P=!1,y=c(_,t,!0);0===y.distance&&(P=!0,p[0][0]=_[0],p[0][1]=_[1],y=c(_,t,!1)),f[0]=y.distance,x[0]=0;const M=[NaN,NaN];let b=!1,w=.25,C=-1,v=NaN;do{if(v=NaN,p[1]=u(t,d(a[0],a[2],w),0,e),isNaN(p[1][0])||isNaN(p[1][1])||(y=c(p[1],t,!1),v=y.distance),!isNaN(v)&&v>s&&l(p[1],t))b=!0,f[1]=v,x[1]=g(p[1],_);else if(!isNaN(v)&&v>C&&(C=v,M[0]=p[1][0],M[1]=p[1][1]),w-=.01,w<.1){if(!(C>=0))break;b=!0,f[1]=C,p[1][0]=M[0],p[1][1]=M[1],x[1]=g(p[1],_)}}while(!b);b=!1,w=.5,C=-1;let S=.01,z=1;do{if(v=NaN,p[2]=u(t,d(a[0],a[2],w),0,e),isNaN(p[2][0])||isNaN(p[2][1])||(y=c(p[2],t,!1),v=y.distance),!isNaN(v)&&v>s&&l(p[2],t))b=!0,f[2]=v,x[2]=g(p[2],_);else if(!isNaN(v)&&v>C)C=v,M[0]=p[2][0],M[1]=p[2][1];else if(v>C&&(C=v,M[0]=p[2][0],M[1]=p[2][1]),w=.5+S*z,S+=.01,z*=-1,w<.3||w>.7){if(!(C>=0))break;b=!0,f[2]=C,p[2][0]=M[0],p[2][1]=M[1],x[2]=g(p[2],_)}}while(!b);b=!1,w=.75,C=-1;do{if(v=NaN,p[3]=u(t,d(a[0],a[2],w),0,e),isNaN(p[3][0])||isNaN(p[3][1])||(y=c(p[3],t,!1),v=y.distance),!isNaN(v)&&v>s&&l(p[3],t))b=!0,f[3]=v,x[3]=g(p[3],_);else if(v>C&&(C=v,M[0]=p[3][0],M[1]=p[3][1]),w+=.01,w>.9){if(!(C>=0))break;b=!0,f[3]=C,p[3][0]=M[0],p[3][1]=M[1],x[3]=g(p[3],_)}}while(!b);const I=[0,1,2,3],A=P?0:1;let k;for(let t=A;t<4;t++)for(let t=A;t<3;t++){const e=x[t],s=x[t+1];m(e,s)>0&&(k=I[t],I[t]=I[t+1],I[t+1]=k,x[t]=s,x[t+1]=e)}let T=A,L=0,E=0;for(let t=A;t<4;t++){switch(t){case 0:E=2*f[I[t]];break;case 1:E=1.66666666*f[I[t]];break;case 2:E=1.33333333*f[I[t]];break;case 3:E=f[I[t]]}E>L&&(L=E,T=I[t])}return p[T]}function l(t,e){let s,i,n,h,r=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(s=e.x,i=e.y;e.nextPoint();s=n,i=h)n=e.x,h=e.y,i>t[1]!=h>t[1]&&((n-s)*(t[1]-i)-(h-i)*(t[0]-s)>0?r++:r--);return 0!==r}function c(t,e,s){if(s&&l(t,e))return{coord:t,distance:0};let i=1/0,n=0,h=0,o=[0,0],a=[0,0];const c=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(o[0]=e.x,o[1]=e.y;e.nextPoint();o=a){a=[e.x,e.y],(0,r.gR)(c,t,o,a);const s=g(t,c);s<i&&(i=s,n=c[0],h=c[1])}return{coord:[n,h],distance:Math.sqrt(i)}}function u(t,e,s,n){const h=[e,0];let r=1/0,a=1/0,l=!1,c=!1;const u=[[e,n[1]-1],[e,n[3]+1]],f=[0,0],d=[0,0],g=[0,0],m=[[0,0],[0,0]],x=(0,i.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(m[0][0]=t.x,m[0][1]=t.y;t.nextPoint();m[0][0]=m[1][0],m[0][1]=m[1][1]){if(m[1][0]=t.x,m[1][1]=t.y,null===_(x,m))continue;if(d[0]=u[0][0],d[1]=u[0][1],g[0]=u[1][0],g[1]=u[1][1],0===p(x,d,g))continue;if(!(0,o.Ql)(u[0],u[1],m[0],m[1],f))continue;const e=f[1];r>a?e<r&&(r=e,l=!0):e<a&&(a=e,c=!0)}return l&&c?h[1]=(r+a)/2:h[0]=h[1]=NaN,h}function _(t,e){if(e.length<2)return null;t||(t=(0,i.vt)());const[s,n]=e[0],[h,r]=e[1];return t[0]=Math.min(s,h),t[1]=Math.min(n,r),t[2]=Math.max(s,h),t[3]=Math.max(n,r),t}function p(t,e,s){let i=f(e,t),n=f(s,t);const h=t[0],r=t[1],o=t[2],a=t[3];if(i&n)return 0;if(!(i|n))return 4;const l=(i?1:0)|(n?2:0);do{const l=s[0]-e[0],c=s[1]-e[1];if(l>c)3&i?(1&i?(e[1]+=c*(h-e[0])/l,e[0]=h):(e[1]+=c*(o-e[0])/l,e[0]=o),i=f(e,t)):3&n?(1&n?(s[1]+=c*(h-s[0])/l,s[0]=h):(s[1]+=c*(o-s[0])/l,s[0]=o),n=f(s,t)):i?(4&i?(e[0]+=l*(r-e[1])/c,e[1]=r):(e[0]+=l*(a-e[1])/c,e[1]=a),i=f(e,t)):(4&n?(s[0]+=l*(r-s[1])/c,s[1]=r):(s[0]+=l*(a-s[1])/c,s[1]=a),n=f(s,t));else if(12&i?(4&i?(e[0]+=l*(r-e[1])/c,e[1]=r):(e[0]+=l*(a-e[1])/c,e[1]=a),i=f(e,t)):12&n?(4&n?(s[0]+=l*(r-s[1])/c,s[1]=r):(s[0]+=l*(a-s[1])/c,s[1]=a),n=f(s,t)):i?(1&i?(e[1]+=c*(h-e[0])/l,e[0]=h):(e[1]+=c*(o-e[0])/l,e[0]=o),i=f(e,t)):(1&n?(s[1]+=c*(h-s[0])/l,s[0]=h):(s[1]+=c*(o-s[0])/l,s[0]=o),n=f(s,t)),i&n)return 0}while(i|n);return l}function f(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function d(t,e,s){return t+(e-t)*s}function g(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function m(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const s=isNaN(t),i=isNaN(e);return s<i?-1:s>i?1:0}},35833(t,e,s){s.d(e,{ai:()=>g,g1:()=>m,kT:()=>x,qc:()=>P});var i=s(36745),n=s(6774),h=s(93397);const r=(0,h.z9)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(8089),s.e(6160)]).then(s.bind(s,46160))),o=(0,h.z9)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(8872)]).then(s.bind(s,55666))),a=(0,h.z9)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(1060)]).then(s.bind(s,51190))),l=(0,h.z9)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(837)]).then(s.bind(s,97528))),c=(0,h.z9)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(8089),s.e(795)]).then(s.bind(s,50795))),u=(0,h.z9)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(8089),s.e(5605)]).then(s.bind(s,15605))),_=(0,h.z9)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(1075)]).then(s.bind(s,3637))),p=(0,h.z9)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(8393)]).then(s.bind(s,25802))),f=(0,h.z9)(()=>Promise.all([s.e(9187),s.e(8885),s.e(5756),s.e(3299),s.e(1948)]).then(s.bind(s,83299)));let d;function g(t){switch(t.type){case"CIMGeometricEffectDonut":case"CIMGeometricEffectBuffer":return r.getImportPromise();case"CIMGeometricEffectEnclosingPolygon":return o.getImportPromise();case"CIMGeometricEffectOffset":return Promise.all([p.getImportPromise(),u.getImportPromise(),c.getImportPromise()]);case"CIMGeometricEffectControlMeasureLine":return u.getImportPromise();case"CIMGeometricEffectTaperedPolygon":return Promise.all([_.getImportPromise(),a.getImportPromise(),l.getImportPromise()]);default:return Promise.resolve()}}function m(t){return"CIMMarkerPlacementAtMeasuredUnits"===t.type?f.getImportPromise():Promise.resolve()}class x{constructor(t){this._geometry=t}next(){const t=this._geometry;return this._geometry=null,t}}function P(t,e,s){if(!t)return null;d||(d=new n.O3(0,0,0,1));const h=s?-1:1,r="esriGeometryPolygon"===t.geometryType,o=r?3:2,a=r?3:2;let l,c;for(d.reset(o),d.setPixelMargin(e+1),d.setExtent(512);t.nextPath();)if(!(t.pathSize<a)){for(t.nextPoint(),l=t.x,c=h*t.y,d.moveTo(l,c);t.nextPoint();)l=t.x,c=h*t.y,d.lineTo(l,c);r&&d.close()}const u=d.result(!1);if(u){const e=i.z.createEmptyOptimizedCIM(t.geometryType);for(const t of u){e.startPath();for(const s of t)e.pushXY(s.x,h*s.y)}return e.reset(),e}return null}s.d(e,["$Z",0,r,"NS",0,l,"Xs",0,a,"hd",0,c,"lX",0,o,"mO",0,u,"vZ",0,f,"xR",0,p,"yM",0,_])},26937(t,e,s){s.d(e,{A:()=>$t,c:()=>Kt});class i{static{this.instance=null}static local(){return null===i.instance&&(i.instance=new i),i.instance}execute(t,e,s){return new n(t,e)}}class n{constructor(t,e){this._inputGeometries=t,this._angleTolerance=void 0!==e.angleTolerance?e.angleTolerance:120,this._maxCosAngle=Math.cos((1-Math.abs(this._angleTolerance)/180)*Math.PI)}next(){let t=this._inputGeometries.next();if(!t)return null;for(;t;){if("esriGeometryPolygon"===t.geometryType)this._isClosed=!0;else if("esriGeometryPolyline"===t.geometryType)this._isClosed=!1;else{if("esriGeometryEnvelope"!==t.geometryType){t=this._inputGeometries.next();continue}if(this._maxCosAngle)return t;this._isClosed=!0}for(;t.nextPath();)this._processPath(t);return t.reset(),t}return null}_processPath(t){if(t.nextPoint()){const e=t.x,s=t.y;let i=e,n=s,h=t.pathSize,r=0,o=0,a=0,l=0,c=0,u=0;this._isClosed&&++h;for(let _=1;t.nextPoint()||_<h;++_){let p,f;this._isClosed&&_===h-1?(p=e,f=s):(p=t.x,f=t.y);const d=p-i,g=f-n,m=Math.sqrt(d*d+g*g);_>1&&m>0&&a>0&&(r*d+o*g)/m/a<=this._maxCosAngle&&t.setControlPointAt(_-1),1===_&&(l=d,c=g,u=m),m>0&&(i=p,n=f,r=d,o=g,a=m)}this._isClosed&&a>0&&u>0&&(r*l+o*c)/u/a<=this._maxCosAngle&&t.setControlPointAt(0)}}}var h=s(36745),r=s(51118),o=s(98939);function a(t,e){t[4]=e}class l{constructor(t,e=!0,s=!0,i=0){this._angleToLine=!0,this._keepUpright=!1,this.isClosed=!1,this.geometryCursor=null,this.geometryCursor=!e&&"esriGeometryPolygon"===t.geometryType||!s&&"esriGeometryPolyline"===t.geometryType?null:t,this.geomUnitsPerPoint=i,this.iterateMultiPath=!1,this.iteratePath=!1,this.internalPlacement=new o.W}next(){if(!this.geometryCursor)return null;const t=this.processMultiPath(this.geometryCursor);if(this.iterateMultiPath&&t||(this.geometryCursor=null),!t)return null;const e=t.getAngle();if(this._angleToLine&&this._keepUpright&&Math.abs(e)>.5*Math.PI){const s=e+Math.PI,i=Math.atan2(Math.sin(s),Math.cos(s));Number.isNaN(i)||t.setRotate(i)}return t}processMultiPath(t){for(;this.iteratePath||t.pathIndex<t.totalSize-1;){this.iteratePath||t.nextPath(),this.iterateMultiPath=!0;const e=this.processPath(t);if(e)return e}return this.iterateMultiPath=!1,null}}class c{constructor(t,e,s,i=0){this.isClosed=!1,this.inputGeometries=t,this.acceptPolygon=e,this.acceptPolyline=s,this.geomUnitsPerPoint=i,this.iteratePath=!1,this.multiPathCursor=null}next(){for(;;){if(!this.multiPathCursor){let t=this.inputGeometries.next();for(;t&&(this.isClosed=this.acceptPolygon&&"esriGeometryPolygon"===t.geometryType||"esriGeometryEnvelope"===t.geometryType,this.multiPathCursor=t,!this.multiPathCursor);)t=this.inputGeometries.next();if(!this.multiPathCursor)return null}for(;this.iteratePath||this.multiPathCursor.nextPath();){this.multiPathCursor.seekPathStart();const t=this.processPath(this.multiPathCursor);if(t)return t}this.multiPathCursor=null}}}class u{constructor(t=0,e=!1){}isEmpty(t){if(!t.nextPoint())return!0;let e,s,i,n;for(e=t.x,s=t.y;t.nextPoint();e=s,s=n)if(i=t.x,n=t.y,i!==e||n!==s)return t.seekPathStart(),!1;return t.seekPathStart(),!0}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);0!==e&&(t[0]/=e,t[1]/=e)}getLength(t,e,s,i){const n=s-t,h=i-e;return Math.sqrt(n*n+h*h)}getSegLength(t){const[[e,s],[i,n]]=t;return this.getLength(e,s,i,n)}getCoord2D(t,e,s,i,n){return[t+(s-t)*n,e+(i-e)*n]}getSegCoord2D(t,e){const[[s,i],[n,h]]=t;return this.getCoord2D(s,i,n,h,e)}getAngle(t,e,s,i,n){const h=s-t,r=i-e;return Math.atan2(r,h)}getAngleCS(t,e,s,i,n,h){null==t&&(t=[0,0]);const r=i-e,o=n-s,a=Math.sqrt(r*r+o*o);return 0!==a?(t[0]=r/a,t[1]=o/a,t):(t[0]=1,t[1]=0,t)}getSegAngleCS(t,e,s){const[[i,n],[h,r]]=e;return this.getAngleCS(t,i,n,h,r,s)}cut(t,e,s,i,n,h){return[n<=0?[t,e]:this.getCoord2D(t,e,s,i,n),h>=1?[s,i]:this.getCoord2D(t,e,s,i,h)]}getSubCurve(t,e,s){const i=h.z.createEmptyOptimizedCIM("esriGeometryPolyline");return this.appendSubCurve(i,t,e,s)?i:null}appendSubCurve(t,e,s,i){t.startPath(),e.seekPathStart();let n=0,h=!0;if(!e.nextPoint())return!1;let r=e.x,o=e.y;for(;e.nextPoint();){const a=this.getLength(r,o,e.x,e.y);if(0!==a){if(h){if(n+a>s){const l=(s-n)/a;let c=1,u=!1;n+a>=i&&(c=(i-n)/a,u=!0);const _=this.cut(r,o,e.x,e.y,l,c);if(_&&t.pushPoints(_),u)break;h=!1}}else{if(n+a>i){const s=this.cut(r,o,e.x,e.y,0,(i-n)/a);s&&t.pushPoint(s[1]);break}t.pushXY(e.x,e.y)}n+=a,r=e.x,o=e.y}else r=e.x,o=e.y}return!0}getCIMPointAlong(t,e){if(!t.nextPoint())return null;let s,i,n,h,r=0;for(s=t.x,i=t.y;t.nextPoint();s=n,i=h){n=t.x,h=t.y;const o=this.getLength(s,i,n,h);if(0!==o){if(r+o>e){const t=(e-r)/o;return this.getCoord2D(s,i,n,h,t)}r+=o}}return null}offset(t,e,s,i,n){if(!t||t.length<2)return null;let h=0,r=t[h++],o=h;for(;h<t.length;){const e=t[h];e[0]===r[0]&&e[1]===r[1]||(h!==o&&(t[o]=t[h]),r=t[o++]),h++}const a=t[0][0]===t[o-1][0]&&t[0][1]===t[o-1][1];if(a&&--o,o<(a?3:2))return null;const l=[];r=a?t[o-1]:null;let c=t[0];for(let n=0;n<o;n++){const h=n===o-1?a?t[0]:null:t[n+1];if(r)if(h){const t=[h[0]-c[0],h[1]-c[1]];this.normalize(t);const n=[c[0]-r[0],c[1]-r[1]];this.normalize(n);const o=n[0]*t[1]-n[1]*t[0],a=n[0]*t[0]+n[1]*t[1];if(0===o&&1===a){c=h;continue}if(o>=0==e<=0){if(a<1){const s=[t[0]-n[0],t[1]-n[1]];this.normalize(s);const h=Math.sqrt((1+a)/2);if(h>1/i){const t=-Math.abs(e)/h;l.push([c[0]-s[0]*t,c[1]-s[1]*t])}}}else switch(s){case"Mitered":{const s=Math.sqrt((1+a)/2);if(s>0&&1/s<i){const i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);const h=Math.abs(e)/s;l.push([c[0]-i[0]*h,c[1]-i[1]*h]);break}}case"Bevelled":l.push([c[0]+n[1]*e,c[1]-n[0]*e]),l.push([c[0]+t[1]*e,c[1]-t[0]*e]);break;case"Rounded":if(a<1){l.push([c[0]+n[1]*e,c[1]-n[0]*e]);const s=Math.floor(2.5*(1-a));if(s>0){const i=1/s;let h=i;for(let r=1;r<s;r++,h+=i){const s=[n[1]*(1-h)+t[1]*h,-n[0]*(1-h)-t[0]*h];this.normalize(s),l.push([c[0]+s[0]*e,c[1]+s[1]*e])}}l.push([c[0]+t[1]*e,c[1]-t[0]*e])}break;default:if(o<0)l.push([c[0]+(n[1]+n[0])*e,c[1]+(n[1]-n[0])*e]),l.push([c[0]+(t[1]-t[0])*e,c[1]-(t[0]+t[1])*e]);else{const s=Math.sqrt((1+Math.abs(a))/2),i=[t[0]-n[0],t[1]-n[1]];this.normalize(i);const h=e/s;l.push([c[0]-i[0]*h,c[1]-i[1]*h])}}}else{const t=[c[0]-r[0],c[1]-r[1]];this.normalize(t),l.push([c[0]+t[1]*e,c[1]-t[0]*e])}else{const t=[h[0]-c[0],h[1]-c[1]];this.normalize(t),l.push([c[0]+t[1]*e,c[1]-t[0]*e])}r=c,c=h}return l.length<(a?3:2)?null:(a&&l.push([l[0][0],l[0][1]]),l)}}const _=1.7320508075688772;class p{static{this.instance=null}static local(){return null===p.instance&&(p.instance=new p),p.instance}execute(t,e,s){return new f(t,e,s)}}class f extends c{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new u;const i=s.geomUnitsPerPoint;this._width=(void 0!==e.width?e.width:5)*i,this._arrowType=void 0!==e.geometricEffectArrowType?e.geometricEffectArrowType:void 0!==e.arrowType?e.arrowType:"OpenEnded",this._offsetFlattenError=.03*i}processPath(t){const e=h.z.createEmptyOptimizedCIM(t.geometryType);switch(this._arrowType){case"OpenEnded":default:this._constructSimpleArrow(e,t,!0);break;case"Block":this._constructSimpleArrow(e,t,!1);break;case"Crossed":this._constructCrossedArrow(e,t)}return e}_constructSimpleArrow(t,e,s){const i=e.pathLength();let n=this._width;i<2*n&&(n=i/2);const h=this._curveHelper.getSubCurve(e,0,i-n);if(!h||!h.nextPath())return;h.seekPathStart();const o=n/2;if(this._curveHelper.isEmpty(h))return;const a=(0,r.A)(h),l=this._constructOffset(a,-o);if(!l)return;const c=this._constructOffset(a,o);if(!c)return;const u=this._constructArrowBasePoint(l,-o/2);if(!u)return;const _=this._constructArrowBasePoint(c,o/2);if(!_)return;e.seekInPath(e.pathSize-1);const p=[e.x,e.y];t.pushPath(c),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(_),t.nextPoint(),t.setControlPoint(),t.pushPoint(p),t.nextPoint(),t.setControlPoint(),t.pushPoint(u),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.setControlPoint(),s||(t.setControlPointAt(0),t.setControlPointAt(t.pathSize-1),t.pushPoint(c[0])),t.reset()}_constructCrossedArrow(t,e){const s=e.pathLength();let i=this._width;s<i*(1+_+1)&&(i=s/(1+_+1)),e.seekPathStart();const n=this._curveHelper.getSubCurve(e,0,s-i*(1+_));if(!n)return;n.nextPath();const h=i/2;if(this._curveHelper.isEmpty(n))return;const o=(0,r.A)(n),a=this._constructOffset(o,h);if(!a)return;const l=this._constructOffset(o,-h);if(!l)return;const c=this._curveHelper.getSubCurve(e,0,s-i);if(!c)return;if(c.nextPath(),this._curveHelper.isEmpty(c))return;const u=(0,r.A)(c),p=this._constructOffset(u,h);if(!p)return;const f=this._constructOffset(u,-h);if(!f)return;const d=p[p.length-1],g=this._constructArrowBasePoint(p,h/2);if(!g)return;const m=f[f.length-1],x=this._constructArrowBasePoint(f,-h/2);if(!x)return;e.seekInPath(e.pathSize-1);const P=[e.x,e.y];t.pushPath(a),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(m),t.nextPoint(),t.setControlPoint(),t.pushPoint(x),t.nextPoint(),t.setControlPoint(),t.pushPoint(P),t.nextPoint(),t.setControlPoint(),t.pushPoint(g),t.nextPoint(),t.setControlPoint(),t.pushPoint(d),t.nextPoint(),t.setControlPoint(),t.pushPoints(l.reverse()),t.nextPoint(),t.setControlPoint(),t.reset()}_constructOffset(t,e){return this._curveHelper.offset(t,e,"Rounded",4,this._offsetFlattenError)}_constructArrowBasePoint(t,e){if(!t||t.length<2)return null;const s=t[t.length-2],i=t[t.length-1],n=[i[0]-s[0],i[1]-s[1]];return this._curveHelper.normalize(n),[i[0]+n[1]*e,i[1]-n[0]*e]}}var d=s(16930),g=s(35833);class m{static{this.instance=null}static local(){return null===m.instance&&(m.instance=new m),m.instance}execute(t,e,s){return new x(t,e,s)}}class x{constructor(t,e,s){const i=s.geomUnitsPerPoint,n=s.tileKey,h=s.maxInflateSize;this._preventClipping=s.preventClipping,this._inputGeometries=t,this._tileKey=n,this._curveHelper=new u,this._size=(void 0!==e.size?e.size:1)*i,this._maxInflateSize=h*i,this._offsetFlattenError=.03*i}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._size)return t;if("esriGeometryEnvelope"===t.geometryType)if(this._size>0){const e=h.z.createEmptyOptimizedCIM(t.geometryType),s=(0,r.x)(t)[0],i=this._curveHelper.offset(s,this._size,"Rounded",4,this._offsetFlattenError);if(i)return e.pushPath(i),e}else if(this._size<0){const e=t.asJSON();if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._size>0)return h.z.fromJSONCIM({xmin:e.xmin-this._size,xmax:e.xmax+this._size,ymin:e.ymin-this._size,ymax:e.ymax+this._size})}const e=!this._preventClipping&&this._tileKey?(0,g.qc)(t,this._maxInflateSize,!0):t;if(!e)continue;const s=g.$Z.module,i={...e.asJSON(),spatialReference:{wkid:d.A.WebMercator.wkid}},n=s.execute(i,this._size);return n?h.z.fromJSONCIM(n):null}return null}}var P=s(34727),y=s(28076);const M=Math.PI/180,b=2*Math.PI;class w{static{this.instance=null}static local(){return null===w.instance&&(w.instance=new w),w.instance}execute(t,e,s){return new C(t,e,s)}}class C{constructor(t,e,s){const i=s.geomUnitsPerPoint;this._inputGeometries=t,this._geomUnitsPerPoint=i,this._radius=(e.radius??y.D.CIMGeometricEffectCircularSector.radius)*i,this._startAngle=(e.startAngle??y.D.CIMGeometricEffectCircularSector.startangle)*M,this._endAngle=(e.endAngle??y.D.CIMGeometricEffectCircularSector.endangle)*M}next(){if(this._radius<=0)return null;let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType&&t.nextPath()&&t.nextPoint()){const e=this._buildRing(t.x,t.y,t.hasZ?t.z:void 0),s=h.z.createEmptyOptimizedCIM("esriGeometryPolygon",t.hasZ,!1);return s.pushPath(e),s}t=this._inputGeometries.next()}return null}_buildRing(t,e,s){const i=[this._makePoint(t,e,s)],n=v(this._startAngle);let h=v(this._endAngle);for(;h<n;)h+=b;const r=h-n;if(0===r)return i.push(this._makePoint(t+this._radius*Math.cos(h),e+this._radius*Math.sin(h),s)),i.push(this._makePoint(t,e,s)),i;const o=.25*this._geomUnitsPerPoint,a=this._radius<=.5*o?b:2*Math.acos((0,P.qE)(1-o/this._radius,-1,1)),l=Math.max(1,Math.ceil(r/a)),c=r/l;let u=h;for(let n=0;n<=l;n++,u-=c)i.push(this._makePoint(t+this._radius*Math.cos(u),e+this._radius*Math.sin(u),s));return i.push(this._makePoint(t,e,s)),i}_makePoint(t,e,s){return null==s?[t,e]:[t,e,s]}}function v(t){return(t%=b)<0?t+b:t}s(86211);var S=s(95108);class z{static{this.instance=null}static local(){return null===z.instance&&(z.instance=new z),z.instance}execute(t,e,s){return new I(t,e,s)}}class I{constructor(t,e,s){this._defaultPointSize=20,this._inputGeometries=t,this._geomUnitsPerPoint=s.geomUnitsPerPoint??1,this._scale=s?.scale,this._rule=e.rule??"FullGeometry",this._spatialReference=s?.spatialReference??d.A.WebMercator,this._width=this._computeWidth(e.width??25),this._defaultSize=this._defaultPointSize*this._geomUnitsPerPoint}next(){let t;for(;t=this._inputGeometries.next();){const e=this._processGeom((0,r.x)(t));if(e?.length)return h.z.fromJSONCIM({paths:e})}return null}_computeWidth(t){if(!function(t){return"ParallelOffsetByValue"===t}(this._rule)||null==this._scale||!this._spatialReference.metersPerUnit)return t*this._geomUnitsPerPoint;const e=this._scale/(96*39.37*this._spatialReference.metersPerUnit);return t/(this._spatialReference.metersPerUnit*e)}_clone(t){return[t[0],t[1]]}_mid(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}_mix(t,e,s,i){return[t[0]*e+s[0]*i,t[1]*e+s[1]*i]}_add(t,e){return[t[0]+e[0],t[1]+e[1]]}_add2(t,e,s){return[t[0]+e,t[1]+s]}_sub(t,e){return[t[0]-e[0],t[1]-e[1]]}_dist(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}_norm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}_normalize(t,e=1){const s=e/this._norm(t);t[0]*=s,t[1]*=s}_leftPerpendicular(t){const e=-t[1],s=t[0];t[0]=e,t[1]=s}_leftPerp(t){return[-t[1],t[0]]}_rightPerpendicular(t){const e=t[1],s=-t[0];t[0]=e,t[1]=s}_rightPerp(t){return[t[1],-t[0]]}_dotProduct(t,e){return t[0]*e[0]+t[1]*e[1]}_crossProduct(t,e){return t[0]*e[1]-t[1]*e[0]}_rotateDirect(t,e,s){const i=t[0]*e-t[1]*s,n=t[0]*s+t[1]*e;t[0]=i,t[1]=n}_makeCtrlPt(t){const e=[t[0],t[1]];return a(e,1),e}_addAngledTicks(t,e,s,i){const n=this._sub(s,e);this._normalize(n);const h=this._crossProduct(n,this._sub(i,e));let r;r=h>0?this._rightPerp(n):this._leftPerp(n);const o=Math.abs(h)/2,a=[];a.push([e[0]+(r[0]-n[0])*o,e[1]+(r[1]-n[1])*o]),a.push(e),a.push(s),a.push([s[0]+(r[0]+n[0])*o,s[1]+(r[1]+n[1])*o]),t.push(a)}_addBezier2(t,e,s,i,n){if(0===n--)return void t.push(i);const h=this._mid(e,s),r=this._mid(s,i),o=this._mid(h,r);this._addBezier2(t,e,h,o,n),this._addBezier2(t,o,r,i,n)}_addBezier3(t,e,s,i,n,h){if(0===h--)return void t.push(n);const r=this._mid(e,s),o=this._mid(s,i),a=this._mid(i,n),l=this._mid(r,o),c=this._mid(o,a),u=this._mid(l,c);this._addBezier3(t,e,r,l,u,h),this._addBezier3(t,u,c,a,n,h)}_add90DegArc(t,e,s,i,n){const h=n??this._crossProduct(this._sub(s,e),this._sub(i,e))>0,r=this._mid(e,s),o=this._sub(r,e);h?this._leftPerpendicular(o):this._rightPerpendicular(o),r[0]+=o[0],r[1]+=o[1],this._addBezier3(t,e,this._mix(e,.33333,r,.66667),this._mix(s,.33333,r,.66667),s,4)}_addArrow(t,e,s){const i=e[0],n=e[1],h=e[e.length-1],r=this._sub(i,n),o=this._norm(r);this._normalize(r);const a=Math.abs(this._crossProduct(r,this._sub(h,n)));let l=this._dotProduct(r,this._sub(h,n));l<.05*o?l=.05*o:l>.95*o&&(l=.95*o);const c=.5*a,u=this._leftPerp(r),_=[n[0]+r[0]*l,n[1]+r[1]*l],p=e.length-1,f=[];f.push(s?[-u[0],-u[1]]:u);let d=[-r[0],-r[1]];for(let t=1;t<p-1;t++){const s=this._sub(e[t+1],e[t]);this._normalize(s);const i=this._dotProduct(s,d),n=this._crossProduct(s,d),h=Math.sqrt((1+i)/2),r=this._sub(s,d);this._normalize(r),r[0]/=h,r[1]/=h,f.push(n<0?[-r[0],-r[1]]:r),d=s}f.push(this._rightPerp(d));for(let s=f.length-1;s>0;s--)t.push([e[s][0]+f[s][0]*c,e[s][1]+f[s][1]*c]);t.push([_[0]+f[0][0]*c,_[1]+f[0][1]*c]),t.push([_[0]+f[0][0]*a,_[1]+f[0][1]*a]),t.push(i),t.push([_[0]-f[0][0]*a,_[1]-f[0][1]*a]),t.push([_[0]-f[0][0]*c,_[1]-f[0][1]*c]);for(let s=1;s<f.length;s++)t.push([e[s][0]-f[s][0]*c,e[s][1]-f[s][1]*c])}_addDash(t,e,s){const i=this._norm(s)/7;this._normalize(s);let n=[];for(let h=0;h<=7;h++)n.push([e[0]+s[0]*h*i,e[1]+s[1]*h*i]),1&h&&(t.push(n),n=[])}_cp2(t,e,s){return t.length>=2?t[1]:this._add2(t[0],e*this._defaultSize,s*this._defaultSize)}_cp3(t,e,s,i){if(t.length>=3)return t[2];const n=this._mix(t[0],1-s,e,s),h=this._sub(e,t[0]);return this._normalize(h),this._rightPerpendicular(h),[n[0]+h[0]*i*this._defaultSize,n[1]+h[1]*i*this._defaultSize]}_arrowPath(t){if(t.length>2)return t;const e=t[0],s=this._cp2(t,-4,0),i=this._sub(e,s);this._normalize(i);const n=this._rightPerp(i);return[e,s,[e[0]+(n[0]-i[0])*this._defaultSize,e[1]+(n[1]-i[1])*this._defaultSize]]}_arrowLastSeg(t){const e=t[0],s=this._cp2(t,-4,0);let i;if(t.length>=3)i=t[t.length-1];else{const t=this._sub(e,s);this._normalize(t);const n=this._rightPerp(t);i=[e[0]+(n[0]-t[0])*this._defaultSize,e[1]+(n[1]-t[1])*this._defaultSize]}return[s,i]}_offsetPath(t,e){const s=g.mO.module.execute({paths:[t],spatialReference:this._spatialReference.toJSON()},e,{joins:"miter",miterLimit:4}),[i]=(0,r.x)(h.z.fromJSONCIM(s));return i?.length?i:null}_processGeom(t){if(!t)return null;const e=[];for(const s of t){const t=s.length>1&&(0,S.Yl)(s)<this._defaultSize;if(!s||0===s.length||t)continue;const i=s.length;let n=s[0];switch(this._rule){case"PerpendicularFromFirstSegment":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,4),h=[];h.push(i),h.push(this._mid(n,t)),e.push(h);break}case"ReversedFirstSegment":{const t=this._cp2(s,0,-1);e.push([t,n]);break}case"PerpendicularToSecondSegment":{if(s.length<3)return[];const t=this._cp2(s,-4,1),i=this._cp3(s,t,.882353,-1.94),h=[];h.push(this._mid(t,i)),h.push(n),e.push(h);break}case"SecondSegmentWithTicks":{if(s.length<3)return[];const t=this._cp2(s,-4,1),i=this._cp3(s,t,.882353,-1.94),h=this._sub(i,t);let r;r=this._crossProduct(h,this._sub(n,t))>0?this._rightPerp(h):this._leftPerp(h);const o=[];o.push([t[0]+(r[0]-h[0])/3,t[1]+(r[1]-h[1])/3]),o.push(t),o.push(i),o.push([i[0]+(r[0]+h[0])/3,i[1]+(r[1]+h[1])/3]),e.push(o);break}case"DoublePerpendicular":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,3),h=this._mid(n,t),r=this._sub(h,i);this._normalize(r);const o=this._crossProduct(r,this._sub(n,i));this._leftPerpendicular(r);const a=[];a.push(n),a.push([i[0]+r[0]*o,i[1]+r[1]*o]),e.push(a);const l=[];l.push([i[0]-r[0]*o,i[1]-r[1]*o]),l.push(t),e.push(l);break}case"OppositeToFirstSegment":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,3),h=this._mid(n,t),r=this._sub(h,i);this._normalize(r);const o=this._crossProduct(r,this._sub(n,i));this._leftPerpendicular(r);const a=[];a.push([i[0]+r[0]*o,i[1]+r[1]*o]),a.push([i[0]-r[0]*o,i[1]-r[1]*o]),e.push(a);break}case"TriplePerpendicular":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,4),h=this._mid(n,t),r=this._sub(h,i);this._normalize(r);const o=this._crossProduct(r,this._sub(n,i));this._leftPerpendicular(r);const a=[];a.push([i[0]+r[0]*o*.8,i[1]+r[1]*o*.8]),a.push([h[0]+.8*(n[0]-h[0]),h[1]+.8*(n[1]-h[1])]),e.push(a),e.push([i,h]);const l=[];l.push([i[0]-r[0]*o*.8,i[1]-r[1]*o*.8]),l.push([h[0]+.8*(t[0]-h[0]),h[1]+.8*(t[1]-h[1])]),e.push(l);break}case"HalfCircleFirstSegment":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,4),h=this._mid(n,t);let r=this._sub(t,n);const o=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),l=Math.sqrt((1+o)/2),c=Math.sqrt((1-o)/2),u=[];let _;this._crossProduct(r,this._sub(i,n))>0?(u.push(n),r=this._sub(n,h),_=t):(u.push(t),r=this._sub(t,h),_=n),this._rotateDirect(r,l,c),r[0]/=l,r[1]/=l;for(let t=1;t<=18;t++)u.push(this._add(h,r)),this._rotateDirect(r,o,a);u.push(_),e.push(u);break}case"HalfCircleSecondSegment":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,1,-1);let h=this._sub(n,t);this._normalize(h);const r=this._crossProduct(h,this._sub(i,t))/2;this._leftPerpendicular(h);const o=[t[0]+h[0]*r,t[1]+h[1]*r];h=this._sub(t,o);const a=Math.cos(Math.PI/18);let l=Math.sin(Math.PI/18);r>0&&(l=-l);const c=[t];for(let t=1;t<=18;t++)this._rotateDirect(h,a,l),c.push(this._add(o,h));e.push(c);break}case"HalfCircleExtended":{const t=this._cp2(s,0,-2),h=this._cp3(s,t,1,-1);let r;if(i>=4)r=s[3];else{const e=this._sub(n,t);r=this._add(h,e)}const o=this._dist(t,h)/2/.75,a=this._sub(t,n);this._normalize(a,o);const l=this._sub(h,r);this._normalize(l,o);const c=[r,h];e.push(c);const u=[this._clone(h)];this._addBezier3(u,h,this._add(h,l),this._add(t,a),t,4),u.push(n),e.push(u);break}case"OpenCircle":{const t=this._cp2(s,-2,0),i=this._sub(t,n),h=Math.cos(Math.PI/18),r=-Math.sin(Math.PI/18),o=[t];for(let t=1;t<=33;t++)this._rotateDirect(i,h,r),o.push(this._add(n,i));e.push(o);break}case"CoverageEdgesWithTicks":{const t=this._cp2(s,0,-1);let h,r;if(i>=3)h=s[2];else{const e=this._sub(t,n),s=this._leftPerp(e);h=[n[0]+s[0]-.25*e[0],n[1]+s[1]-.25*e[1]]}if(i>=4)r=s[3];else{const e=this._mid(n,t),s=this._sub(n,t);this._normalize(s),this._leftPerpendicular(s);const i=this._crossProduct(s,this._sub(h,e));this._rightPerpendicular(s),r=[h[0]+s[0]*i*2,h[1]+s[1]*i*2]}const o=this._sub(t,n);let a,l;a=this._crossProduct(o,this._sub(h,n))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push(h),l.push(n),l.push([n[0]+(a[0]-o[0])/3,n[1]+(a[1]-o[1])/3]),e.push(l),a=this._crossProduct(o,this._sub(r,t))>0?this._rightPerp(o):this._leftPerp(o),l=[],l.push([t[0]+(a[0]+o[0])/3,t[1]+(a[1]+o[1])/3]),l.push(t),l.push(r),e.push(l);break}case"GapExtentWithDoubleTicks":{const t=this._cp2(s,0,2),h=this._cp3(s,t,0,1);let r;if(i>=4)r=s[3];else{const e=this._sub(t,n);r=this._add(h,e)}this._addAngledTicks(e,n,t,this._mid(h,r)),this._addAngledTicks(e,h,r,this._mid(n,t));break}case"GapExtentMidline":{const t=this._cp2(s,2,0),h=this._cp3(s,t,0,1);let r;if(i>=4)r=s[3];else{const e=this._sub(t,n);r=this._add(h,e)}const o=[];o.push(this._mid(n,h)),o.push(this._mid(t,r)),e.push(o);break}case"Chevron":{const t=this._cp2(s,-1,-1);let h;if(i>=3)h=s[2];else{const e=this._sub(t,n);this._leftPerpendicular(e),h=this._add(n,e)}e.push([t,this._makeCtrlPt(n),h]);break}case"PerpendicularWithArc":{const t=this._cp2(s,0,-2),h=this._cp3(s,t,.5,-1),r=this._sub(t,n),o=this._norm(r);r[0]/=o,r[1]/=o;const a=this._crossProduct(r,this._sub(h,n));let l=this._dotProduct(r,this._sub(h,n));l<.05*o?l=.05*o:l>.95*o&&(l=.95*o);const c=[n[0]+r[0]*l,n[1]+r[1]*l];let u=this._leftPerp(r),_=[];if(_.push([c[0]-u[0]*a,c[1]-u[1]*a]),_.push([c[0]+u[0]*a,c[1]+u[1]*a]),e.push(_),i>=4){const t=s[3];let i=this._dotProduct(r,this._sub(t,n));i<.1*o?i=.1*o:i>.9*o&&(i=.9*o);const h=[n[0]+r[0]*i,n[1]+r[1]*i],a=this._crossProduct(r,this._sub(t,n)),l=[];l.push([h[0]-u[0]*a,h[1]-u[1]*a]),l.push([h[0]+u[0]*a,h[1]+u[1]*a]),e.push(l)}const p=[t[0]+u[0]*a,t[1]+u[1]*a];u=this._sub(t,p);const f=Math.cos(Math.PI/18);let d=Math.sin(Math.PI/18);a<0&&(d=-d),_=[n,t];for(let t=1;t<=9;t++)this._rotateDirect(u,f,d),_.push(this._add(p,u));e.push(_);break}case"ClosedHalfCircle":{const t=this._cp2(s,2,0),i=this._mid(n,t),h=this._sub(t,i),r=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18),a=[n,t];for(let t=1;t<=18;t++)this._rotateDirect(h,r,o),a.push(this._add(i,h));e.push(a);break}case"TripleParallelExtended":{const t=this._cp2(s,0,-2),i=this._cp3(s,t,1,-2),h=this._mid(n,t),r=this._sub(i,t);this._normalize(r);const o=Math.abs(this._crossProduct(r,this._sub(h,t)))/2,l=this._dist(t,i),c=[t,n];c.push([n[0]+r[0]*l*.5,n[1]+r[1]*l*.5]),e.push(c);const u=[];u.push([h[0]-r[0]*o,h[1]-r[1]*o]),u.push([h[0]+r[0]*l*.375,h[1]+r[1]*l*.375]),a(u[u.length-1],1),u.push([h[0]+r[0]*l*.75,h[1]+r[1]*l*.75]),e.push(u);const _=[t,i];e.push(_);break}case"ParallelWithTicks":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),h=this._sub(t,n);this._normalize(h);const r=this._crossProduct(h,this._sub(i,n)),o=this._leftPerp(h);this._addAngledTicks(e,n,t,i),this._addAngledTicks(e,this._add2(n,o[0]*r,o[1]*r),this._add2(t,o[0]*r,o[1]*r),this._mid(n,t));break}case"Parallel":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),h=this._sub(t,n);this._normalize(h);const r=this._leftPerp(h),o=this._crossProduct(h,this._sub(i,n));let a=[n,t];e.push(a),a=[],a.push([n[0]+r[0]*o,n[1]+r[1]*o]),a.push([t[0]+r[0]*o,t[1]+r[1]*o]),e.push(a);break}case"PerpendicularToFirstSegment":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),h=this._mid(n,t),r=this._sub(t,n);this._normalize(r);const o=this._crossProduct(r,this._sub(i,n));this._leftPerpendicular(r);const a=[];a.push([h[0]-r[0]*o*.25,h[1]-r[1]*o*.25]),a.push([h[0]+r[0]*o*1.25,h[1]+r[1]*o*1.25]),e.push(a);break}case"ParallelOffset":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),h=this._sub(t,n);this._normalize(h);const r=this._crossProduct(h,this._sub(i,n));this._leftPerpendicular(h);const o=[];o.push([n[0]-h[0]*r,n[1]-h[1]*r]),o.push([t[0]-h[0]*r,t[1]-h[1]*r]),e.push(o);const a=[];a.push([n[0]+h[0]*r,n[1]+h[1]*r]),a.push([t[0]+h[0]*r,t[1]+h[1]*r]),e.push(a);break}case"OffsetOpposite":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),h=this._sub(t,n);this._normalize(h);const r=this._crossProduct(h,this._sub(i,n));this._leftPerpendicular(h);const o=[];o.push([n[0]-h[0]*r,n[1]-h[1]*r]),o.push([t[0]-h[0]*r,t[1]-h[1]*r]),e.push(o);break}case"OffsetSame":{const t=this._cp2(s,3,0),i=this._cp3(s,t,.5,-1),h=this._sub(t,n);this._normalize(h);const r=this._crossProduct(h,this._sub(i,n));this._leftPerpendicular(h);const o=[];o.push([n[0]+h[0]*r,n[1]+h[1]*r]),o.push([t[0]+h[0]*r,t[1]+h[1]*r]),e.push(o);break}case"CircleWithArc":{let t=this._cp2(s,3,0);const h=this._cp3(s,t,.5,-1);let r,o;if(i>=4)r=s[3],o=this._crossProduct(this._sub(r,t),this._sub(h,t))>0;else{r=t,o=this._crossProduct(this._sub(r,n),this._sub(h,n))>0;const e=24*this._geomUnitsPerPoint,s=this._sub(r,n);this._normalize(s,e);const i=Math.sqrt(2)/2;this._rotateDirect(s,i,o?i:-i),t=this._add(n,s)}const l=this._sub(t,n),c=Math.cos(Math.PI/18),u=Math.sin(Math.PI/18),_=[t];for(let t=1;t<=36;t++)this._rotateDirect(l,c,u),_.push(this._add(n,l));this._add90DegArc(_,t,r,h,o),a(_[_.length-8],1),e.push(_);break}case"DoubleJog":{let t,h=this._cp2(s,-3,1),r=this._cp3(s,h,-1,-.5);if(i>=4)t=s[3];else{const e=n;n=h,t=r;const s=this._dist(n,e),i=this._dist(t,e);let o=30*this._geomUnitsPerPoint;.5*s<o&&(o=.5*s),.5*i<o&&(o=.5*i),h=this._mix(n,o/s,e,(s-o)/s),r=this._mix(t,o/i,e,(i-o)/i)}const o=this._mid(n,h),a=this._mid(t,r),l=this._dist(n,h),c=this._dist(r,t);let u=Math.min(l,c)/8;u=Math.min(u,24*this._geomUnitsPerPoint);const _=Math.cos(Math.PI/4);let p=this._sub(n,h);this._normalize(p,u),this._crossProduct(p,this._sub(t,h))>0?this._rotateDirect(p,_,-_):this._rotateDirect(p,_,_);let f=[];f.push(h),f.push(this._add(o,p)),f.push(this._sub(o,p)),f.push(n),e.push(f),p=this._sub(t,r),this._normalize(p,u),this._crossProduct(p,this._sub(n,r))<0?this._rotateDirect(p,_,_):this._rotateDirect(p,_,-_),f=[],f.push(r),f.push(this._add(a,p)),f.push(this._sub(a,p)),f.push(t),e.push(f);break}case"PerpendicularOffset":{const t=this._cp2(s,-4,1),i=this._cp3(s,t,.882353,-1.94),h=this._sub(i,t);this._crossProduct(h,this._sub(n,t))>0?this._rightPerpendicular(h):this._leftPerpendicular(h);const r=[h[0]/8,h[1]/8],o=this._sub(this._mid(t,i),r);e.push([o,n]);break}case"LineExcludingLastSegment":{const t=this._arrowPath(s),i=[];let n=t.length-2;for(;n--;)i.push(t[n]);e.push(i);break}case"MultivertexArrow":{const t=this._arrowPath(s),i=[];this._addArrow(i,t,!1),e.push(i);break}case"CrossedArrow":{const t=this._arrowPath(s),i=[];this._addArrow(i,t,!0),e.push(i);break}case"ChevronArrow":{const[t,i]=this._arrowLastSeg(s),h=10*this._geomUnitsPerPoint,r=this._sub(n,t),o=this._norm(r);this._normalize(r);const a=this._crossProduct(r,this._sub(i,t));let l=this._dotProduct(r,this._sub(i,t));l<.05*o?l=.05*o:l>.95*o-h&&(l=.95*o-h);const c=[t[0]+r[0]*l,t[1]+r[1]*l],u=this._leftPerp(r),_=[];_.push([c[0]+u[0]*a+r[0]*h,c[1]+u[1]*a+r[1]*h]),_.push(n),_.push([c[0]-u[0]*a+r[0]*h,c[1]-u[1]*a+r[1]*h]),e.push(_);break}case"ChevronArrowOffset":{const[t,i]=this._arrowLastSeg(s),h=this._sub(n,t),r=this._norm(h);this._normalize(h);const o=this._crossProduct(h,this._sub(i,t));let a=this._dotProduct(h,this._sub(i,t));a<.05*r?a=.05*r:a>.95*r&&(a=.95*r);const l=[t[0]+h[0]*a,t[1]+h[1]*a];this._leftPerpendicular(h);const c=[];c.push([l[0]+h[0]*o*.5,l[1]+h[1]*o*.5]),c.push(this._mid(l,n)),c.push([l[0]-h[0]*o*.5,l[1]-h[1]*o*.5]),e.push(c);break}case"PartialFirstSegment":{const[t,i]=this._arrowLastSeg(s),h=this._sub(n,t),r=this._norm(h);this._normalize(h);let o=this._dotProduct(h,this._sub(i,t));o<.05*r?o=.05*r:o>.95*r&&(o=.95*r);const a=[t[0]+h[0]*o,t[1]+h[1]*o];e.push([t,a]);break}case"Arch":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,1),h=this._sub(n,t),r=this._mix(i,1,h,.55),o=this._mix(i,1,h,-.55),a=[n];this._addBezier2(a,n,r,i,4),this._addBezier2(a,i,o,t,4),e.push(a);break}case"CurvedParallelTicks":{const t=this._cp2(s,-4,1),i=this._cp3(s,t,.882353,-1.94),h=this._sub(i,t);this._crossProduct(h,this._sub(n,t))>0?this._rightPerpendicular(h):this._leftPerpendicular(h);const r=[h[0]/8,h[1]/8],o=this._sub(this._mid(t,i),r),a=this._sub(this._mix(t,.75,i,.25),r),l=this._sub(this._mix(t,.25,i,.75),r),c=[t];this._addBezier2(c,t,a,o,3),this._addBezier2(c,o,l,i,3),e.push(c);for(let t=0;t<8;t++){const s=c[2*t+1],i=[this._clone(s)];i.push(this._add(s,[h[0]/4,h[1]/4])),e.push(i)}break}case"Arc90Degrees":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,1),h=[t];this._add90DegArc(h,t,n,i),e.push(h);break}case"TipWithPerpendicularAndTicks":{const[t,i]=this._arrowLastSeg(s),h=10*this._geomUnitsPerPoint,r=this._sub(n,t),o=this._norm(r);this._normalize(r);let a=this._crossProduct(r,this._sub(i,t)),l=this._dotProduct(r,this._sub(i,t));l<.05*o?l=.05*o:l>.95*o-h&&(l=.95*o-h);const c=this._leftPerp(r),u=[n[0]-r[0]*h,n[1]-r[1]*h],_=.5*Math.max(o-l-h,h);a=Math.abs(a);const p=[];p.push([u[0]+c[0]*(a+_)-r[0]*_,u[1]+c[1]*(a+_)-r[1]*_]),p.push([u[0]+c[0]*a,u[1]+c[1]*a]),p.push([u[0]-c[0]*a,u[1]-c[1]*a]),p.push([u[0]-c[0]*(a+_)-r[0]*_,u[1]-c[1]*(a+_)-r[1]*_]),e.push(p),e.push([u,n]);break}case"ConcentricCircles":{const t=this._cp2(s,1,0),h=this._cp3(s,t,2,0),r=Math.cos(Math.PI/18),o=Math.sin(Math.PI/18);let l=this._dist(t,n),c=[l,0],u=[];for(let t=0;t<=36;t++)u.push(this._add(n,c)),this._rotateDirect(c,r,o);if(e.push(u),i>=4){u=[];const t=s[3];l=this._dist(t,n),c=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,c)),0===t&&(u.push(this._add(n,c)),a(u[1],1)),this._rotateDirect(c,r,o);e.push(u)}u=[],l=this._dist(h,n),c=[l,0];for(let t=0;t<=36;t++)u.push(this._add(n,c)),this._rotateDirect(c,r,o);e.push(u);break}case"DoubleJogArrow":{n=this._arrowPath(s)[0];const[t,i]=this._arrowLastSeg(s),h=this._sub(n,t),r=this._norm(h);this._normalize(h);const o=Math.abs(this._crossProduct(h,this._sub(i,n)));let a=Math.abs(this._dotProduct(h,this._sub(i,n)));a<.05*r?a=.05*r:a>.95*r&&(a=.95*r);const l=Math.max(o,a),c=this._leftPerp(h);let u=[];const _=[n[0]-h[0]*a*.5+c[0]*o*.5,n[1]-h[1]*a*.5+c[1]*o*.5];u.push([_[0],_[1]]),_[0]+=h[0]*l*.5+c[0]*l*.4,_[1]+=h[1]*l*.5+c[1]*l*.4,u.push([_[0],_[1]]),_[0]-=c[0]*l*.25,_[1]-=c[1]*l*.25,u.push([_[0],_[1]]),_[0]+=h[0]*l*.5+c[0]*l*.4,_[1]+=h[1]*l*.5+c[1]*l*.4,u.push([_[0],_[1]]),e.push(u),u=[],_[0]=n[0]-h[0]*a*.5-c[0]*o*.5,_[1]=n[1]-h[1]*a*.5-c[1]*o*.5,u.push([_[0],_[1]]),_[0]+=h[0]*l*.5-c[0]*l*.4,_[1]+=h[1]*l*.5-c[1]*l*.4,u.push([_[0],_[1]]),_[0]+=c[0]*l*.25,_[1]+=c[1]*l*.25,u.push([_[0],_[1]]),_[0]+=h[0]*l*.5-c[0]*l*.4,_[1]+=h[1]*l*.5-c[1]*l*.4,u.push([_[0],_[1]]),e.push(u);break}case"LinkedChevrons":{const t=this._cp2(s,-5,0),i=this._cp3(s,t,-.2,1),h=this._sub(n,t);this._normalize(h);const r=this._leftPerp(h),o=Math.abs(this._crossProduct(h,this._sub(i,t)));e.push([t,n]);const a=[];a.push([n[0]-h[0]*o+r[0]*o,n[1]-h[1]*o+r[1]*o]),a.push(n),a.push([n[0]-h[0]*o-r[0]*o,n[1]-h[1]*o-r[1]*o]),e.push(a),this._addDash(e,t,[-h[0]*o+r[0]*o,-h[1]*o+r[1]*o]),this._addDash(e,t,[-h[0]*o-r[0]*o,-h[1]*o-r[1]*o]);break}case"SegmentThenHalfCircle":{const t=this._cp2(s,2,0),h=this._cp3(s,t,1.5,0);let r;r=i>=4?s[3]:this._cp3(s,t,1.25,-.5);const o=this._sub(t,n);this._normalize(o);const a=.5*this._dist(t,h),l=this._crossProduct(o,this._sub(r,n))>0,c=Math.cos(Math.PI/18);let u=Math.sin(Math.PI/18);l&&(u=-u);const _=[n,t];o[0]*=a,o[1]*=a;const p=this._add(t,o);o[0]=-o[0],o[1]=-o[1];for(let t=1;t<=18;t++)this._rotateDirect(o,c,u),_.push(this._add(p,o));e.push(_);break}case"LineWithStraightTicks":{const t=this._cp2(s,-2,1),i=this._cp3(s,t,-1,-.5),h=this._sub(i,t);this._normalize(h);const r=this._dotProduct(h,this._sub(t,n)),o=this._dotProduct(h,this._sub(i,n));let a=[n];a.push([n[0]+h[0]*r,n[1]+h[1]*r]),a.push(t),e.push(a),a=[n],a.push([n[0]+h[0]*o,n[1]+h[1]*o]),a.push(i),e.push(a);break}case"DoubleCurve":{const t=this._cp2(s,-5,-1),i=this._cp3(s,t,2,0),h=Math.atan2(1,5),r=Math.cos(h),o=Math.sin(h),l=this._sub(t,n),c=this._dist(n,t);this._normalize(l),this._rotateDirect(l,r,-o);const u=[n];u.push([n[0]+l[0]*c*.5,n[1]+l[1]*c*.5]),a(u[1],1),u.push([n[0]+l[0]*c*.8,n[1]+l[1]*c*.8]),this._addBezier2(u,u[2],[n[0]+l[0]*c,n[1]+l[1]*c],t,3);const _=this._sub(i,t),p=this._dist(t,i);this._normalize(_),this._rotateDirect(_,r,-o),this._addBezier2(u,t,[i[0]-_[0]*p,i[1]-_[1]*p],[i[0]-_[0]*p*.8,i[1]-_[1]*p*.8],3),u.push(i),e.push(u);break}case"ParallelWithTicksByWidth":{const t=this._cp2(s,0,-1),i=this._cp3(s,t,.5,3),h=this._sub(t,n);this._normalize(h);const r=this._crossProduct(h,this._sub(i,n));this._leftPerpendicular(h),r>0?(this._addAngledTicks(e,n,[n[0]+h[0]*r,n[1]+h[1]*r],t),this._addAngledTicks(e,t,[t[0]+h[0]*r,t[1]+h[1]*r],n)):(this._addAngledTicks(e,[n[0]+h[0]*r,n[1]+h[1]*r],n,t),this._addAngledTicks(e,[t[0]+h[0]*r,t[1]+h[1]*r],n,t));break}case"EnclosingRoundedRectangle":{const t=this._cp2(s,3,-2),e=[Math.min(n[0],t[0]),Math.max(n[1],t[1])],i=[Math.max(n[0],t[0]),Math.min(n[1],t[1])],h=i[0]-e[0],r=e[1]-i[1],o=Math.min(h,r)/10,a=[];a.push([e[0]+o+.75*(h-2*o),e[1]]),a.push([i[0]-o,e[1]]),this._add90DegArc(a,[i[0]-o,e[1]],[i[0],e[1]-o],[i[0],e[1]]),a.push([i[0],i[1]+o]),this._add90DegArc(a,[i[0],i[1]+o],[i[0]-o,i[1]],i),a.push([e[0]+o,i[1]]),this._add90DegArc(a,[e[0]+o,i[1]],[e[0],i[1]+o],[e[0],i[1]]),a.push([e[0],e[1]-o]),this._add90DegArc(a,[e[0],e[1]-o],[e[0]+o,e[1]],e),a.push([e[0]+o+.75*(h-2*o),e[1]]);break}case"ParallelOffsetByValue":{if(s.length<2||0===this._width)break;const t=this._offsetPath(s,.5*this._width);t&&e.push(t);const i=this._offsetPath(s,.5*-this._width);i&&e.push(i);break}default:e.push(s)}}return e}}class A{static{this.instance=null}static local(){return null===A.instance&&(A.instance=new A),A.instance}execute(t,e,s){return new k(t,e,s)}}class k extends c{constructor(t,e,s){super(t,!0,!0),this._curveHelper=new u;const i=s?.geomUnitsPerPoint;this._beginCut=(void 0!==e.beginCut?e.beginCut:1)*i,this._endCut=(void 0!==e.endCut?e.endCut:1)*i,this._middleCut=(void 0!==e.middleCut?e.middleCut:0)*i,this._invert=void 0!==e.invert&&e.invert,this._beginCut<0&&(this._beginCut=0),this._endCut<0&&(this._endCut=0),this._middleCut<0&&(this._middleCut=0)}processPath(t){const{_beginCut:e,_endCut:s,_middleCut:i}=this,n=t.pathLength(),r=h.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._invert){if(0!==e||0!==s||0!==i)if(e+s+i>=n)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else this._curveHelper.appendSubCurve(r,t,0,e),this._curveHelper.appendSubCurve(r,t,.5*(n-i),.5*(n+i)),this._curveHelper.appendSubCurve(r,t,n-s,s)}else if(0===e&&0===s&&0===i)for(r.startPath();t.nextPoint();)r.pushXY(t.x,t.y);else e+s+i<n&&(0===i?this._curveHelper.appendSubCurve(r,t,e,n-s):(this._curveHelper.appendSubCurve(r,t,e,.5*(n-i)),this._curveHelper.appendSubCurve(r,t,.5*(n+i),n-s)));return 0===r.totalSize?null:r}}class T{constructor(){this._values=[],this.extPtGap=0,this.ctrlPtGap=0,this._length=0,this._currentValue=0}isEmpty(){return 0===this._values.length}size(){return this._values.length}init(t,e=!0){if(this._setEmpty(),!t||0===t.length)return!1;for(let s=0;s<t.length;s++){let i=Math.abs(t[s]);e&&i<1e-7&&(i=1e-7),this._values.push(i),this._length+=i}return 0!==this._length&&(this.ctrlPtGap=this.extPtGap=0,this._currentValue=-1,!0)}scale(t){const e=this._values?this._values.length:0;for(let s=0;s<e;++s)this._values[s]*=t;this._length*=t,this.extPtGap*=t,this.ctrlPtGap*=t}addValue(t){this._length+=t,this._values.push(t)}firstValue(){return this._values[0]}lastValue(){return this._values[this._values.length-1]}nextValue(){return this._currentValue++,this._currentValue===this._values.length&&(this._currentValue=0),this._values[this._currentValue]}reset(){this._currentValue=-1}length(){return this._length}_setEmpty(){this.extPtGap=this.ctrlPtGap=this._length=0,this._currentValue=-1,this._values.length=0}}class L{constructor(){this.pt=null,this.ca=0,this.sa=0}}class E{constructor(){this.reset()}reset(){this.segment=null,this.segmentLength=0,this.abscissa=0,this.isPathEnd=!1,this.isPartEnd=!1}isValid(){return null!==this.segment}copyTo(t){t.segment=this.segment,t.segmentLength=this.segmentLength,t.abscissa=this.abscissa,t.isPathEnd=this.isPathEnd,t.isPartEnd=this.isPartEnd}}class N extends u{constructor(t=0,e=!1){super(t,e),this._tempPos=new E,this._tempPt=[0,0],this._tolerance=.03,this._currentPosition=new E}updateTolerance(t){this._tolerance=.03*t}init(t,e,s=!0){return s?(this._patternLength=e.length(),this._partExtPtGap=e.extPtGap,this._partCtrlPtGap=e.ctrlPtGap):(this._patternLength=0,this._partExtPtGap=0,this._partCtrlPtGap=0),this._currentPosition.reset(),this._partSegCount=0,this._pathCursor=t,this._seg=-1,this._setPosAtNextPart()}curPositionIsValid(){return this._currentPosition.isValid()}nextPosition(t,e=0){const s=new E;return!!this._nextPosition(t,s,null,e)&&(s.copyTo(this._currentPosition),!0)}curPointAndAngle(t){t.pt=this._getPoint(this._currentPosition);const[e,s]=this._getAngleCS(this._tempPt,this._currentPosition);t.ca=e,t.sa=s}nextPointAndAngle(t,e,s=0){const i=this._tempPos;if(!this._nextPosition(t,i,null,s))return!1;i.copyTo(this._currentPosition),e.pt=this._getPoint(i);const[n,h]=this._getAngleCS(this._tempPt,i);return e.ca=n,e.sa=h,!0}nextCurve(t){if(0===t)return null;const e=h.z.createEmptyOptimizedCIM("esriGeometryPolyline");e.startPath(),e.nextPath();const s=new E;return this._nextPosition(t,s,e,1)?(s.copyTo(this._currentPosition),e):null}isPathEnd(){return this._currentPosition.isPathEnd}getPathEnd(){return this._currentPosition.segment[1]}getPt(t){return this._pathCursor.seekInPath(t),[this._pathCursor.x,this._pathCursor.y]}getSeg(t){return[this.getPt(t),this.getPt(t+1)]}_nextPosition(t,e,s,i){if(this._currentPosition.isPathEnd)return!1;let n=this._currentPosition.abscissa;for(this._currentPosition.segmentLength>0&&(n/=this._currentPosition.segmentLength),this._currentPosition.copyTo(e);e.abscissa+t*this._partLengthRatio>e.segmentLength+this._tolerance;){if(s){if(0===s.pathSize)if(0===n){const t=e.segment[0];s.pushXY(t[0],t[1])}else s.pushPoint(this.getSegCoord2D(e.segment,n));const t=e.segment[1];s.pushXY(t[0],t[1])}if(n=0,t-=(e.segmentLength-e.abscissa)/this._partLengthRatio,this._partSegCount)e.segment=this._nextSegment(),e.segmentLength=this.getSegLength(e.segment),e.abscissa=0,this._partSegCount--;else{if(!this._setPosAtNextPart())return 0!==i&&(e.segmentLength=this.getSegLength(e.segment),e.isPartEnd=!0,1===i?(e.abscissa=e.segmentLength,e.isPathEnd=!0):e.abscissa=e.segmentLength+t,!0);this._currentPosition.copyTo(e)}}if(e.abscissa+=t*this._partLengthRatio,s){0===s.pathSize&&(0===n?s.pushPoint(e.segment[0]):s.pushPoint(this.getSegCoord2D(e.segment,n)));const t=e.abscissa/e.segmentLength;1===t?s.pushPoint(e.segment[1]):s.pushPoint(this.getSegCoord2D(e.segment,t))}return this._partSegCount||Math.abs(e.abscissa-e.segmentLength)<this._tolerance&&(e.isPathEnd=this._partIsLast,e.isPartEnd=!0),!0}_getPoint(t){const e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegCoord2D(this._currentPosition.segment,e)}_getAngleCS(t,e){const s=e.segmentLength<=0?0:e.abscissa/e.segmentLength;return this.getSegAngleCS(t,this._currentPosition.segment,s)}_setPosAtNextPart(){for(;this._partSegCount;)this._hasNextSegment()&&this._nextSegment(),this._partSegCount--;if(!this._hasNextSegment())return!1;for(this._partLength=0,this._partIsLast=!0,this._partSegCount=0;this._hasNextSegment();)if(this._partLength+=this.getSegLength(this._nextSegment()),this._partSegCount++,this._pathCursor.getControlPointAt(this._getEndPointIndex())){this._partIsLast=!this._hasNextSegment();break}let t=this._partSegCount;for(;t;)this._previousSegment(),--t;this._currentPosition.segment=this._nextSegment(),this._currentPosition.segmentLength=this.getSegLength(this._currentPosition.segment),this._currentPosition.abscissa=0,this._currentPosition.isPathEnd=this._currentPosition.isPartEnd=!1,--this._partSegCount;const e=this._getStartPointIndex();this._ctrlPtBegin=this._pathCursor.getControlPointAt(e);let s=e+this._partSegCount+1;if(s>=this._pathCursor.pathSize&&(s=0),this._ctrlPtEnd=this._pathCursor.getControlPointAt(s),this._patternLength>0){const t=this._ctrlPtBegin?this._partCtrlPtGap:this._partExtPtGap,e=this._ctrlPtEnd?this._partCtrlPtGap:this._partExtPtGap;let s=Math.round((this._partLength-(t+e))/this._patternLength);s<=0&&(s=t+e>0?0:1),this._partLengthRatio=this._partLength/(t+e+s*this._patternLength),this._partLengthRatio<.01&&(this._partLengthRatio=1)}else this._partLengthRatio=1;return!0}_hasNextSegment(){return this._seg<this._pathCursor.pathSize-2}_previousSegment(){return this.getSeg(--this._seg)}_nextSegment(){return this.getSeg(++this._seg)}_getStartPointIndex(){return this._seg}_getEndPointIndex(){return this._seg+1}}var G=s(93397);class O{static{this.instance=null}static local(){return null===O.instance&&(O.instance=new O),O.instance}execute(t,e,s){return new R(t,e,s)}}class R extends c{constructor(t,e,s){super(t,!0,!0),this._firstCurve=null;const i=s.geomUnitsPerPoint;this._walker=new N,this._walker.updateTolerance(i),this._endings=e.lineDashEnding??"NoConstraint",this._customDashPos=-(e.offsetAlongLine??0)*i,this._offsetAtEnd=(e.customEndingOffset??0)*i;let n=(0,G.FH)(e).dashTemplate;null==n&&(n=[]),n.length%2&&(n=[...n,...n]);let h=0;for(;h<n.length&&0===n[h];)h++;let r=0;const o=[];for(let t=h;t<n.length;t++)0===n[t]?r++:0===r?o.push(n[t]):1&r?(o[o.length-1]+=n[t],r=0):(o.push(n[t]),r=0);n=o,n.length<=1?n=0===n.length||h%2==0?[]:[-1]:n.length%2==1?h%2==1?n.unshift(0):n.push(0):h%2==1&&(n.unshift(0),n.push(0)),this._pattern=new T,this._pattern.init(n,!1),this._pattern.scale(i)}processPath(t){if(this._pattern.size()%2==1)return null;if(0===this._pattern.length()){this.iteratePath=!1;const e=(0,r.A)(t);return h.z.fromJSONCIM({paths:[e]})}if(!this.iteratePath){let e=!0;switch(this._endings){case"HalfPattern":case"HalfGap":default:this._pattern.extPtGap=0;break;case"FullPattern":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.firstValue());break;case"FullGap":this.isClosed||(this._pattern.extPtGap=.5*this._pattern.lastValue());break;case"NoConstraint":this.isClosed||(e=!1);break;case"Custom":this.isClosed||(this._pattern.extPtGap=.5*this._offsetAtEnd)}const s=t.pathLength();if(this._pattern.isEmpty()||s<.1*this._pattern.length()){const e=(0,r.A)(t);return h.z.fromJSONCIM({paths:[e]})}if(!this._walker.init(t,this._pattern,e)){const e=(0,r.A)(t);return h.z.fromJSONCIM({paths:[e]})}}let e;if(this.iteratePath)e=this._pattern.nextValue();else{let t;switch(this._endings){case"HalfPattern":default:t=.5*this._pattern.firstValue();break;case"HalfGap":t=.5*-this._pattern.lastValue();break;case"FullGap":t=-this._pattern.lastValue();break;case"FullPattern":t=0;break;case"NoConstraint":case"Custom":t=-this._customDashPos}let s=t/this._pattern.length();s-=Math.floor(s),t=s*this._pattern.length(),this._pattern.reset(),e=this._pattern.nextValue();let i=!1;for(;t>=e;)t-=e,e=this._pattern.nextValue(),i=!i;e-=t,i?(this._walker.nextPosition(e),e=this._pattern.nextValue()):this.isClosed&&(this._firstCurve=this._walker.nextCurve(e),e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue())}0===e&&(e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue());let s=this._walker.nextCurve(e);if(s)if(this._walker.isPathEnd()){if(this.iteratePath=!1,this._firstCurve){for(this._firstCurve.nextPath();this._firstCurve.nextPoint();)s.pushXY(this._firstCurve.x,this._firstCurve.y);this._firstCurve=null}}else e=this._pattern.nextValue(),!this._walker.nextPosition(e)||this._walker.isPathEnd()?(this.iteratePath=!1,this._firstCurve&&(s.pushCursor(this._firstCurve),this._firstCurve=null)):this.iteratePath=!0;else this.iteratePath=!1,s=this._firstCurve,this._firstCurve=null;return s?.reset(),s}}class X{static{this.instance=null}static local(){return null===X.instance&&(X.instance=new X),X.instance}execute(t,e,s){return new Y(t,e,s)}}class Y{constructor(t,e,s){this._inputGeometries=t,this._tileKey=s.tileKey,this._maxInflateSize=s.maxInflateSize*s.geomUnitsPerPoint,this._preventClipping=s.preventClipping,this._width=(void 0!==e.width?e.width:2)*s.geomUnitsPerPoint,e.method,this._option=e.option??"Accurate"}next(){let t;for(;t=this._inputGeometries.next();){if("esriGeometryEnvelope"===t.geometryType&&this._width>0){const e=t.asJSON();return Math.min(e.xmax-e.xmin,e.ymax-e.ymin)-2*this._width<0?t:h.z.fromJSONCIM({paths:[[[e.xmin+this._width,e.ymin+this._width],[e.xmax-this._width,e.ymin+this._width],[e.xmax-this._width,e.ymax-this._width],[e.xmin+this._width,e.ymax-this._width],[e.xmin+this._width,e.ymin+this._width]],[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}if("esriGeometryPolygon"===t.geometryType){if(0===this._width)return t.clone();const e=g.$Z.module,s=!this._preventClipping&&this._tileKey?(0,g.qc)(t,this._maxInflateSize,!0):t.clone();if(!s)continue;const i={...s.asJSON(),spatialReference:{wkid:d.A.WebMercator.wkid}},n=e.execute(i,-this._width);if(n)for(const t of n.rings)if(t){s.startPath();for(const e of t.reverse())s.pushXY(e[0],s.yFactor*e[1])}return s}}return null}}var F=s(537);class D{static{this.instance=null}static local(){return null===D.instance&&(D.instance=new D),D.instance}execute(t,e,s){return new W(t,e,s)}}class W{constructor(t,e,s){this._inputGeometries=t,this._medhod=e.method}next(){let t=this._inputGeometries.next();const e=this._medhod;for(;null!=t;){if(t.totalSize>0)switch(e){case"RectangularBox":return H(t);case"ConvexHull":return this._constructConvexHull(t);default:return V(t)}t=this._inputGeometries.next()}return null}_constructConvexHull(t){switch(t.geometryType){case"esriGeometryPolyline":case"esriGeometryPolygon":{const e=g.lX.module,s={...t.asJSON(),spatialReference:{wkid:d.A.WebMercator.wkid}},i=e.execute(s);return i?h.z.fromJSONCIM(i):null}case"esriGeometryEnvelope":return t;default:return null}}}function H(t){const e=(0,F.z8)(t),s={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]};return h.z.fromJSONCIM(s)}function V(t){switch(t.geometryType){case"esriGeometryPolyline":{const e=[];for(;t.nextPath();)U(t,e);return h.z.fromJSONCIM({rings:e})}case"esriGeometryPolygon":case"esriGeometryEnvelope":return t;default:return null}}function U(t,e){if(t.seekPathStart(),!t.nextPoint())return;const s=t.x,i=t.y,n=[[s,i]];for(e.push(n);t.nextPoint();)n.push([t.x,t.y]);n.push([s,i])}class B{static{this.instance=null}static local(){return null===B.instance&&(B.instance=new B),B.instance}execute(t,e,s){return new q(t,e,s)}}class q extends c{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new u;const i=s.geomUnitsPerPoint;this._length=(void 0!==e.length?e.length:20)*i,this._angle=void 0!==e.angle?e.angle:225,this._position=void 0!==e.position?e.position:50,this._length<0&&(this._length=-this._length),this._position<20&&(this._position=20),this._position>80&&(this._position=80),this._mirror=!1}processPath(t){const e=h.z.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._curveHelper.isEmpty(t))return null;t.seekInPath(0);const s=t.x,i=t.y;t.seekInPath(t.pathSize-1);const n=t.x,r=t.y,o=[n-s,r-i];this._curveHelper.normalize(o);const a=s+(n-s)*this._position/100,l=i+(r-i)*this._position/100,c=Math.cos((90-this._angle)/180*Math.PI);let u=Math.sin((90-this._angle)/180*Math.PI);this._mirror&&(u=-u),this._mirror=!this._mirror;const _=[a-this._length/2*c,l-this._length/2*u],p=[a+this._length/2*c,l+this._length/2*u];return e.pushPath([[s,i],_,p,[n,r]]),e}}class J{static{this.instance=null}static local(){return null===J.instance&&(J.instance=new J),J.instance}execute(t,e,s){return new Z(t,e,s)}}class Z{constructor(t,e,s){this._inputGeometries=t;const i=s.geomUnitsPerPoint;this._offsetX=void 0!==e.offsetX?e.offsetX*i:0,this._offsetY=void 0!==e.offsetY?e.offsetY*i:0}next(){let t=this._inputGeometries.next();for(;t;){if(t.totalSize>0)return this._move(t.clone(),this._offsetX,this._offsetY);t=this._inputGeometries.next()}return null}_move(t,e,s){for(;t.nextPath();)for(;t.nextPoint();)t.x=t.x+e,t.y=t.y+s;return t.reset(),t}}var j=s(60408);class ${static{this.instance=null}static local(){return null===$.instance&&($.instance=new $),$.instance}execute(t,e,s){return new K(t,e,s)}}class K{constructor(t,e,s){const i=s.geomUnitsPerPoint,n=s.maxInflateSize;this._preventClipping=s.preventClipping,this._inputGeometries=t,this._tileKey=s.tileKey,this._curveHelper=new u,this._offset=(e.offset??1)*i,this._method=e.method??"Square",this._maxInflateSize=Math.max(Math.abs(n*i),10),this._offsetFlattenError=.03*i}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._offset)return t.clone();if("esriGeometryEnvelope"===t.geometryType){if("Rounded"===this._method&&this._offset>0){const e=(0,r.A)(t),s=this._curveHelper.offset(e,-this._offset,this._method,4,this._offsetFlattenError);if(s){const e=h.z.createEmptyOptimizedCIM(t.geometryType);return e.pushPath(s),e}return null}const e=t.asJSON();if((0,j.ZC)(e)&&Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._offset>0)return h.z.fromJSONCIM({xmin:e.xmin-this._offset,xmax:e.xmax+this._offset,ymin:e.ymin-this._offset,ymax:e.ymax+this._offset})}const e=!this._preventClipping&&this._tileKey?(0,g.qc)(t,this._maxInflateSize,!0):t.clone();if(!e)continue;const s=g.xR.module,i=g.mO.module,n=g.hd.module,o=s.execute({...e.asJSON(),spatialReference:{wkid:d.A.WebMercator.wkid}});if(!o)continue;let a,l=Q(this._method);return"esriGeometryPolygon"===t.geometryType?("square"===l&&(l="bevel"),a=n.executeMany([o],[this._offset],l,"round")[0]):a=i.execute(o,-this._offset,{joins:l,flattenError:this._offsetFlattenError,miterLimit:4}),a?h.z.fromJSONCIM(a):null}return null}}function Q(t){switch(t){case"Rounded":return"round";case"Bevelled":return"bevel";case"Mitered":return"miter";case"Square":return"square"}}var tt=s(12359);class et{static{this.instance=null}static local(){return null===et.instance&&(et.instance=new et),et.instance}execute(t,e,s){return new st(t,e,s)}}class st{constructor(t,e,s){const i=s.geomUnitsPerPoint;this._inputGeometries=t,this._length=(void 0!==e.length?e.length:y.D.CIMGeometricEffectRadial.length)*i,this._angle=void 0!==e.angle?e.angle*Math.PI/180:y.D.CIMGeometricEffectRadial.angle,this._lx=Math.cos(this._angle)*this._length,this._ly=Math.sin(this._angle)*this._length}next(){let t=this._inputGeometries.next();for(;t;){if("esriGeometryPoint"===t.geometryType||"esriGeometryMultipoint"===t.geometryType){const e=h.z.createEmptyOptimizedCIM("esriGeometryPolyline");return t.nextPath()&&t.nextPoint()&&e.pushPath([[t.x,t.y],[t.x+this._lx,t.y+this._ly]]),e}if("esriGeometryPolygon"===t.geometryType){const e=(0,tt.IK)(t);if(!e)return null;const s=h.z.createEmptyOptimizedCIM("esriGeometryPolyline");return s.pushPath([[e[0],e[1]],[e[0]+this._lx,e[1]+this._ly]]),s}t=this._inputGeometries.next()}return null}}class it{static{this.instance=null}static local(){return null===it.instance&&(it.instance=new it),it.instance}execute(t,e,s){return new nt(t,e,s)}}class nt{constructor(t,e,s){this._inputGeometries=t,this._reverse=void 0===e.reverse||e.reverse}next(){let t=this._inputGeometries.next();for(;t;){if(!this._reverse)return t;if("esriGeometryPolyline"===t.geometryType)return ht(t.clone());t=this._inputGeometries.next()}return null}}function ht(t){for(;t.nextPath();)for(let e=0;e<t.pathSize/2;e++){t.seekInPath(e);const s=t.x,i=t.y;t.seekInPath(t.pathSize-e-1);const n=t.x,h=t.y;t.x=s,t.y=i,t.seekInPath(e),t.x=n,t.y=h}return t.reset(),t}class rt{static{this.instance=null}static local(){return null===rt.instance&&(rt.instance=new rt),rt.instance}execute(t,e,s){return new ot(t,e,s)}}class ot{constructor(t,e,s){this._inputGeometries=t,this._rotateAngle=void 0!==e.angle?e.angle*Math.PI/180:0}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._rotateAngle||"esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){const e=(0,F.z8)(t),s=(e[2]+e[0])/2,i=(e[3]+e[1])/2;return t.reset(),this._rotate(t.clone(),s,i)}t=this._inputGeometries.next()}return null}_rotate(t,e,s){const i=Math.cos(this._rotateAngle),n=Math.sin(this._rotateAngle);for(;t.nextPath();)for(;t.nextPoint();){const h=t.x-e,r=t.y-s;t.x=e+h*i-r*n,t.y=s+h*n+r*i}return t.reset(),t}}class at{static{this.instance=null}static local(){return null===at.instance&&(at.instance=new at),at.instance}execute(t,e,s){return new lt(t,e,s)}}class lt{constructor(t,e,s){this._inputGeometries=t,this._xFactor=void 0!==e.xScaleFactor?e.xScaleFactor:1.15,this._yFactor=void 0!==e.yScaleFactor?e.yScaleFactor:1.15}next(){const t=this._inputGeometries.next();if(t){if(1===this._xFactor&&1===this._yFactor)return t;if("esriGeometryPoint"===t.geometryType)return t;if(t.totalSize>0){const e=(0,F.z8)(t),s=(e[2]+e[0])/2,i=(e[3]+e[1])/2;return t.reset(),this._scaleCursor(t.clone(),s,i)}}return null}_scaleCursor(t,e,s){for(;t.nextPath();)for(;t.nextPoint();)t.x=e+(t.x-e)*this._xFactor,t.y=s+(t.y-s)*this._yFactor;return t.reset(),t}}class ct{constructor(){this._polyline=[]}beginPath(t){this._polyline.push([t])}lineTo(t){if(0===this._polyline.length)throw new Error("No path started. Call beginPath first.");this._polyline[this._polyline.length-1].push(t)}getPointCount(){return this._polyline.reduce((t,e)=>t+e.length,0)}addSegment(t,e,s){s&&this.beginPath(t),this.lineTo(e)}getXY(t){let e=0;for(const s of this._polyline){if(t<e+s.length)return s[t-e];e+=s.length}return null}getGeometry(){return this._polyline}}class ut{static{this.instance=null}static local(){return null===ut.instance&&(ut.instance=new ut),ut.instance}execute(t,e,s){return new _t(t,e,s)}}class _t extends c{constructor(t,e,s){super(t,!1,!0),this._suppress=void 0!==e.suppress&&e.suppress,this._invert=void 0!==e.invert&&e.invert}processPath(t){if(t.totalSize<=0)return null;if(!this._suppress){const e=h.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.nextPoint();)e.pushXY(t.x,t.y);return e}const e=[],s=new Array(t.pathSize);let i=0;for(t.seekPathStart();t.nextPoint();)s[i++]=t.getControlPoint(),e.push([t.x,t.y]);let n=!0,r=!0,o=!1,a=!this._invert;i=0;const l=new ct;let c=e[0];for(;i<e.length-1;){const t=e[i+1],h=s[i],u=s[i+1];i++,r&&(a=h||u?this._invert:!this._invert,r=!1),a?(l.addSegment(c,t,n),n=!1):o=!0,c=t,u&&(a?(a=!1,n=!0):a=!0)}const u=l.getGeometry();if(0===u.length)return null;if(!o&&e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){const t=u[u.length-1];return t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]||t.push([t[0][0],t[0][1]]),h.z.fromJSONCIM({paths:u})}const _=u[u.length-1];return l.getPointCount()>1&&"esriGeometryPolygon"===t.geometryType&&_[0][0]===_[_.length-1][0]&&_[0][1]===_[_.length-1][1]&&u.length>1&&(u[u.length-1].push(...u[0]),u.splice(0,1)),h.z.fromJSONCIM({paths:u})}}var pt=s(49186),ft=s(53966),dt=s(6774);const gt=()=>ft.A.getLogger("esri.symbols.cim.effects.EffectTaperedPolygon");class mt{static{this.instance=null}static local(){return null===mt.instance&&(mt.instance=new mt),mt.instance}execute(t,e,s){return new xt(t,e,s)}}class xt extends c{constructor(t,e,s){super(t,!1,!0),this._slopeS=0,this._slopeC=1,this._lastTangent1=new dt.bR(NaN,NaN),this._lastWidth=0;const i=s.geomUnitsPerPoint;this._geomUnitsPerPoint=i,this._halfFromWidth=Math.abs(void 0!==e.fromWidth?e.fromWidth:0)*i*.5,this._halfToWidth=Math.abs(void 0!==e.toWidth?e.toWidth:1)*i*.5,this._originalLength=(void 0!==e.length?e.length:0)*i,this._length=0}processPath(t){if(t.totalSize<=0)return null;if(this._halfFromWidth<=0&&this._halfToWidth<=0){const e=h.z.createEmptyOptimizedCIM("esriGeometryPolygon",!1,!1,t.yFactor);for(t.seekPathEnd();t.prevPoint();)e.pushXY(t.x,t.y);for(t.seekPathStart();t.nextPoint();)e.pushXY(t.x,t.y);return e}const e=t.getCurrentPath().asJSON(),s=g.NS.module.execute(e,.25*this._geomUnitsPerPoint,{removeDegenerateParts:!0}),i=null==s?null:(0,j.Bi)(s)?s.rings:(0,j.Rg)(s)?s.paths:null;if(!i)return gt().error(new pt.A("mapview-bad-resource","Unable to process geometry")),null;const n=g.Xs.module.execute(s);if((0===this._originalLength||this._originalLength>n)&&n>0){this._length=n;const t=(this._halfToWidth-this._halfFromWidth)/this._length;if(Math.abs(t)<1){const e=t*t;this._slopeC=Math.sqrt(1/(1+e)),this._slopeS=Math.sqrt(e/(1+e)),t<0&&(this._slopeS=-this._slopeS)}else this._slopeC=this._slopeS=.7071}else this._length=this._originalLength,this._slopeC=1,this._slopeS=0;const r=[];for(const t of i){const e=new ct,s=new ct;let i=0;this._setFromOffset(t.slice(0,2),e,s);for(let n=0,h=3;h<=t.length;++n,++h)i=this._setOffset(t.slice(n,h),i,e,s);this._setToOffset(t.slice(-2),i,e,s);const[n]=e.getGeometry(),[h]=s.getGeometry();r.push([...n,...h.reverse()])}const o={rings:r,spatialReference:{wkid:d.A.WebMercator.wkid}},a=g.yM.module.execute(o);return h.z.fromJSONCIM(a)}_setFromOffset([[t,e],[s,i]],n,h){const r=this._halfFromWidth,o=new dt.bR(s-t,i-e).normalize().scale(r);n.beginPath([t-o.y,e+o.x]),h.beginPath([t+o.y,e-o.x])}_setToOffset([[t,e],[s,i]],n,h,r){let o;o=(n+=Math.sqrt((s-t)**2+(i-e)**2))>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*n/this._length;const a=new dt.bR(s-t,i-e).normalize().scale(o);h.lineTo([s-a.y,i+a.x]),r.lineTo([s+a.y,i-a.x])}_setOffset([[t,e],[s,i],[n,h]],r,o,a){const l=Math.sqrt((s-t)**2+(i-e)**2);let c;c=r+l>=this._length?this._halfToWidth:this._halfFromWidth+(this._halfToWidth-this._halfFromWidth)*(r+l)/this._length,r+=l;const u=new dt.bR(s,i),_=new dt.bR(s-t,i-e).normalize(),p=new dt.bR(n-s,h-i).normalize(),f=dt.bR.sub(p,_),d=o.getPointCount(),g=a.getPointCount();_.leftPerpendicular(),p.leftPerpendicular();const m=_.x*p.x+_.y*p.y;if(m>.99){const t=dt.bR.add(_,p).scale(c/2),e=t.clone().rotate(this._slopeC,this._slopeS);o.lineTo([u.x+e.x,u.y+e.y]);const s=t.rotateReverse(this._slopeC,this._slopeS);a.lineTo([u.x-s.x,u.y-s.y])}else{const s=_.x*p.y-_.y*p.x;if(f.scale(1/s),s<0){f.scale(-c).rotateReverse(this._slopeC,this._slopeS);const t=a.getXY(g-1);t||gt().error(new pt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));const e=dt.bR.add(u,f).sub(dt.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){const t=_.clone().scale(-c).rotateReverse(this._slopeC,this._slopeS),e=p.clone().scale(-c).rotateReverse(this._slopeC,this._slopeS);a.lineTo([u.x+t.x,u.y+t.y]),a.lineTo([u.x,u.y]),a.lineTo([u.x+e.x,u.y+e.y])}else a.lineTo([u.x+f.x,u.y+f.y])}else{f.scale(c).rotate(this._slopeC,this._slopeS);const t=o.getXY(d-1);t||gt().error(new pt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));const e=dt.bR.add(u,f).sub(dt.bR.fromArray(t));if(_.x*e.y-_.y*e.x>0){const t=_.clone().scale(c).rotate(this._slopeC,this._slopeS),e=p.clone().scale(c).rotate(this._slopeC,this._slopeS);o.lineTo([u.x+t.x,u.y+t.y]),o.lineTo([u.x,u.y]),o.lineTo([u.x+e.x,u.y+e.y])}else o.lineTo([u.x+f.x,u.y+f.y])}const i=Math.acos(m);let n=1;if(c>.25){const t=2*Math.acos(1-.25/c);t<i&&(n=Math.round(i/t))}const h=Math.cos(i/n),r=Math.sin(i/n),l=_.clone();if(s<0){l.rotate(this._slopeC,this._slopeS);const s=o.getXY(d-1);s||gt().error(new pt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));const i=dt.bR.add(u,l.clone().scale(this._lastWidth)),n=dt.bR.sub(i,dt.bR.fromArray(s)),h=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&h>0){const s=new dt.bR(t,e),i=this._lastTangent1.clone().scale(this._lastWidth);i.rotate(this._slopeC,this._slopeS);const n=_.clone().scale(this._lastWidth);n.rotate(this._slopeC,this._slopeS),o.lineTo([s.x+i.x,s.y+i.y]),o.lineTo([s.x,s.y]),o.lineTo([s.x+n.x,s.y+n.y])}}else{l.scale(-1).rotateReverse(this._slopeC,this._slopeS);const s=a.getXY(g-1);s||gt().error(new pt.A("mapview-bad-resource","Unable to process geometry, index out of scope"));const i=dt.bR.add(u,l.clone().scale(this._lastWidth)),n=dt.bR.sub(i,dt.bR.fromArray(s)),h=_.x*n.y-_.y*n.x;if(!isNaN(this._lastTangent1.x)&&!isNaN(this._lastTangent1.y)&&h>0){const s=new dt.bR(t,e),i=this._lastTangent1.clone().scale(-this._lastWidth);i.rotateReverse(this._slopeC,this._slopeS);const n=_.clone().scale(-this._lastWidth);n.rotateReverse(this._slopeC,this._slopeS),a.lineTo([s.x+i.x,s.y+i.y]),a.lineTo([s.x,s.y]),a.lineTo([s.x+n.x,s.y+n.y])}}l.scale(c);for(let t=0;t<=n;t++)s<0?(o.lineTo([u.x+l.x,u.y+l.y]),l.rotateReverse(h,r)):(a.lineTo([u.x+l.x,u.y+l.y]),l.rotate(h,r))}return this._lastTangent1.setCoords(_.x,_.y),this._lastWidth=c,r}}class Pt{static{this.instance=null}static local(){return null===Pt.instance&&(Pt.instance=new Pt),Pt.instance}execute(t,e,s){return new yt(t,e,s)}}class yt{constructor(t,e,s){this._inputGeometries=t;const i=s.geomUnitsPerPoint;this._height=(void 0!==e.amplitude?e.amplitude:2)*i,this._period=(void 0!==e.period?e.period:3)*i,this._style=e.waveform??"Sinus",this._height<=0&&(this._height=Math.abs(this._height)),this._period<=0&&(this._period=Math.abs(this._period)),this._pattern=new T,this._pattern.addValue(this._period),this._pattern.addValue(this._period),this._walker=new N,this._walker.updateTolerance(i)}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._height||0===this._period)return t;const e=this._processGeom(t);if(e)return e;t=this._inputGeometries.next()}return null}_processGeom(t){const e=h.z.createEmptyOptimizedCIM(t.geometryType);for(;t.nextPath();){e.startPath();const s=t.pathLength();if(this._walker.init(t,this._pattern))switch(this._style){case"Sinus":default:this._constructCurve(e,s,!1);break;case"Square":this._constructSquare(e,s);break;case"Triangle":this._constructTriangle(e,s);break;case"Random":this._constructCurve(e,s,!0)}else for(;t.nextPoint();)e.pushXY(t.x,t.y)}return e}_constructCurve(t,e,s){let i=Math.round(e/this._period);0===i&&(i=1);const n=16*i+1,h=e/i,r=this._period/16,o=1/n,a=2*Math.PI*e/h,l=2*Math.PI*Math.random(),c=2*Math.PI*Math.random(),u=2*Math.PI*Math.random(),_=.75-Math.random()/2,p=.75-Math.random()/2,f=new L;this._walker.curPointAndAngle(f),t.pushPoint(f.pt);let d=0;for(;;){if(!this._walker.nextPointAndAngle(r,f)){t.pushPoint(this._walker.getPathEnd());break}{const e=d;let i;if(d+=o,s){const t=this._height/2*(1+.3*Math.sin(_*a*e+l));i=t*Math.sin(a*e+c),i+=t*Math.sin(p*a*e+u),i/=2}else i=.5*this._height*Math.sin(.5*a*e);t.pushXY(f.pt[0]-i*f.sa,f.pt[1]+i*f.ca)}}}_constructSquare(t,e){Math.round(e/this._period);let s=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){const i=new L;this._walker.curPointAndAngle(i);const n=new L;if(this._walker.nextPointAndAngle(this._period,n)){const h=new L;this._walker.nextPointAndAngle(this._period,h)&&(s?(t.pushPoint(i.pt),s=!1):t.pushPoint(i.pt),t.pushXY(i.pt[0]-this._height/2*i.sa,i.pt[1]+this._height/2*i.ca),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(n.pt[0]+this._height/2*n.sa,n.pt[1]-this._height/2*n.ca),t.pushXY(h.pt[0]+this._height/2*h.sa,h.pt[1]-this._height/2*h.ca),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}_constructTriangle(t,e){Math.round(e/this._period);let s=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){const i=new L;this._walker.curPointAndAngle(i);const n=new L;if(this._walker.nextPointAndAngle(this._period/2,n)){const h=new L;this._walker.nextPointAndAngle(this._period,h)&&(this._walker.nextPosition(this._period/2)&&(s?(t.pushPoint(i.pt),s=!1):t.pushPoint(i.pt),t.pushXY(n.pt[0]-this._height/2*n.sa,n.pt[1]+this._height/2*n.ca),t.pushXY(h.pt[0]+this._height/2*h.sa,h.pt[1]-this._height/2*h.ca)),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}}class Mt{static{this.instance=null}static local(){return null===Mt.instance&&(Mt.instance=new Mt),Mt.instance}execute(t,e,s){return new bt(t,e,s)}}class bt extends l{constructor(t,e,s){super(t),this._geometryWalker=new N,this._geometryWalker.updateTolerance(s),this._angleToLine=e.angleToLine??!0,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset?e.offset:0)*s,this._originalEndings=e.endings??"WithHalfGap",this._offsetAtEnd=(e.customEndingOffset?e.customEndingOffset:0)*s,this._position=-(e.offsetAlongLine?e.offsetAlongLine:0)*s,this._pattern=new T,this._pattern.init(e.placementTemplate),this._pattern.scale(s),this._endings=this._originalEndings}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath)e=this._pattern.nextValue();else{"WithFullGap"===this._originalEndings&&this.isClosed?this._endings="WithMarkers":this._endings=this._originalEndings,this._pattern.extPtGap=0;let s,i=!0;switch(this._endings){case"NoConstraint":s=-this._position,s=this._adjustPosition(s),i=!1;break;case"WithHalfGap":default:s=-this._pattern.lastValue()/2;break;case"WithFullGap":s=-this._pattern.lastValue(),this._pattern.extPtGap=this._pattern.lastValue();break;case"WithMarkers":s=0;break;case"Custom":s=-this._position,s=this._adjustPosition(s),this._pattern.extPtGap=.5*this._offsetAtEnd}if(!this._geometryWalker.init(t,this._pattern,i))return null;this._pattern.reset();let n=0;for(;s>n;)s-=n,n=this._pattern.nextValue();n-=s,e=n,this.iteratePath=!0}const s=new L;return this._geometryWalker.nextPointAndAngle(e,s)?"WithFullGap"===this._endings&&this._geometryWalker.isPathEnd()?(this.iteratePath=!1,null):"WithMarkers"===this._endings&&this._geometryWalker.isPathEnd()&&(this.iteratePath=!1,this.isClosed)?null:(this.internalPlacement.setTranslate(s.pt[0]-this._offset*s.sa,s.pt[1]+this._offset*s.ca),this._angleToLine&&this.internalPlacement.setRotateCS(s.ca,s.sa),this.internalPlacement):(this.iteratePath=!1,null)}_adjustPosition(t){let e=t/this._pattern.length();return e-=Math.floor(e),e*this._pattern.length()}}class wt{static{this.instance=null}static local(){return null===wt.instance&&(wt.instance=new wt),wt.instance}execute(t,e,s){return new Ct(t,e,s)}}class Ct extends l{constructor(t,e,s){super(t,!1,!0),this._curveHelper=new u,this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0!==e.offset?e.offset*s:0,this._type=e.extremityPlacement??"Both",this._position=void 0!==e.offsetAlongLine?e.offsetAlongLine*s:0,this._beginProcessed=!1}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){let e;switch(this._type){case"Both":default:this._beginProcessed?(e=this._atExtremities(t,this._position,!1),this._beginProcessed=!1,this.iterateMultiPath=!1,this.iteratePath=!1):(e=this._atExtremities(t,this._position,!0),this._beginProcessed=!0,this.iterateMultiPath=!0,this.iteratePath=!0);break;case"JustBegin":e=this._atExtremities(t,this._position,!0);break;case"JustEnd":e=this._atExtremities(t,this._position,!1);case"None":}return e}_atExtremities(t,e,s){if(this._placePerPart||(s?t.seekPath(0):t.seekPath(t.totalSize-1)),s||t.seekPathEnd(),s?t.nextPoint():t.prevPoint()){let i=0,[n,h]=[0,0],[r,o]=[t.x,t.y];const a=[0,0];for(;s?t.nextPoint():t.prevPoint();){n=r,h=o,r=t.x,o=t.y;const s=this._curveHelper.getLength(n,h,r,o);if(i+s>e){const t=(e-i)/s,[l,c]=this._curveHelper.getAngleCS(a,n,h,r,o,t),u=this._curveHelper.getCoord2D(n,h,r,o,t);return this.internalPlacement.setTranslate(u[0]-this._offset*c,u[1]+this._offset*l),this._angleToLine&&this.internalPlacement.setRotateCS(-l,-c),this.internalPlacement}i+=s}}return null}}const vt=.001;class St{static{this.instance=null}static local(){return null===St.instance&&(St.instance=new St),St.instance}execute(t,e,s){return new zt(t,e,s)}}class zt extends l{constructor(t,e,s){super(t),this._segmentIterator=null,this._segCount=0,this._firstSeg=!0,this._seg=null,this._ms=[],this._from=0,this._to=0,this._pt=null,this._walker=new N,this._walker.updateTolerance(s),this._placePerPart=e.placePerPart??!1,this._angleToLine=e.angleToLine??!1,this._keepUpright=e.keepUpright??!1,this._offset=(e.offset??0)*s,this._interval=e.interval??0,this._interval<=0&&(this._interval=.01),this._skipRate=e.skipMarkerRate??0,this._skipRate<=1&&(this._skipRate=0),this._placeAtExtremities=e.placeAtExtremities??!1}processPath(t){if(!this.iteratePath){const{fromGeometry:e}=g.vZ.module,s=e(t.getCurrentPath().asJSON()).getGeometry(),i=s.getPathStart(0);this._segmentIterator=s.querySegmentIteratorAtVertex(i),this._segCount=s.getSegmentCountPath(0),this._firstSeg=!0,this.iteratePath=!0,this._pt=s.getXY(0).clone()}for(;0===this._ms.length&&this._segmentIterator?.hasNextSegment();){--this._segCount,this._seg=this._segmentIterator.nextSegment(),this._from=this._seg.getStartAttributeAsDbl(2,0),this._to=this._seg.getEndAttributeAsDbl(2,0);const e=!isNaN(this._from),s=!isNaN(this._to);e&&(this._from=Math.round(this._from/vt)*vt,Math.abs(this._from)<vt&&(this._from=0)),s&&(this._to=Math.round(this._to/vt)*vt,Math.abs(this._to)<vt&&(this._to=0));let i=e?Math.floor(this._from/this._interval):0,n=s?Math.floor(this._to/this._interval):0;if(e&&(this._placeAtExtremities||!this._firstSeg||!this._placePerPart&&t.pathIndex>0)&&Math.abs(i*this._interval-this._from)<vt&&(!this._skipRate||i%this._skipRate)&&this._ms.push(this._from),this._firstSeg=!1,e&&s&&!(Math.abs(this._from-this._to)<vt))if(this._from<=this._to){i*this._interval<this._from+vt&&++i,n*this._interval>this._to-vt&&--n;for(let t=i;t<=n;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}else{i*this._interval>this._from-vt&&--i,n*this._interval<this._to+vt&&++n;for(let t=n;t<=i;++t)(!this._skipRate||t%this._skipRate)&&this._ms.push(t*this._interval)}}let e=0;if(0===this._ms.length){if(this.iteratePath=!1,!this._segCount&&this._placeAtExtremities&&!isNaN(this._to)&&(this._placePerPart||t.pathIndex===t.totalSize-1)){const t=Math.floor(this._to/this._interval);Math.abs(t*this._interval-this._to)<vt&&(!this._skipRate||t%this._skipRate)&&(this._ms.push(this._to),e=1)}if(0===this._ms.length)return null}const s=this._ms.pop(),i=isNaN(this._from)||isNaN(this._to)||Math.abs(this._from-this._to)<vt?e:(s-this._from)/(this._to-this._from);this._seg.queryCoord2D(i,this._pt);const n=this._seg.getTangent(i);let{x:h,y:r}=n.normalize();return this.internalPlacement.setTranslate(this._pt.x-this._offset*r,this._pt.y+this._offset*h),this._angleToLine&&(this._keepUpright&&h<0&&(h=-h,r=-r),this.internalPlacement.setRotateCS(h,r)),this.internalPlacement.setMeasure(s),this.internalPlacement}}class It{static{this.instance=null}static local(){return null===It.instance&&(It.instance=new It),It.instance}execute(t,e,s){return new At(t,e,s)}}class At extends l{constructor(t,e,s){super(t),this._walker=new N,this._walker.updateTolerance(s),this._placePerPart=e.placePerPart??!1,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0!==e.offset?e.offset*s:0,this._beginGap=void 0!==e.beginPosition?e.beginPosition*s:0,this._endGap=void 0!==e.endPosition?e.endPosition*s:0,this._flipFirst=void 0===e.flipFirst||e.flipFirst,this._pattern=new T,this._pattern.init(e.positionArray,!1),this._subPathLen=0,this._totalPathLen=0,this._posCount=this._pattern.size(),this._pathIndexes=[],this._pathLengths=[],this._pathStarts=[],this._posIndex=0,this._positions=[],this._isFirst=!0,this._prevPos=0}processMultiPath(t){return this._placePerPart?super.processMultiPath(t):this.processPath(t)}processPath(t){return this._pattern.isEmpty()?null:this._placePerPart?this._processPathPerPart(t):this._processMultiPart(t)}_processPathPerPart(t){let e;if(this.iteratePath){const t=this._pattern.nextValue()*this._subPathLen,s=this._beginGap+t;e=s-this._prevPos,this._prevPos=s}else{if(this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0,this._subPathLen=t.pathLength()-this._beginGap-this._endGap,this._subPathLen<0)return this.iteratePath=!1,null;if(!this._walker.init(t,this._pattern,!1))return null;this._pattern.reset();const s=this._pattern.nextValue()*this._subPathLen,i=this._beginGap+s;e=i-this._prevPos,this._prevPos=i,this.iteratePath=!0}const s=new L;return this._walker.nextPointAndAngle(e,s,1)?(this._posCount--,0===this._posCount&&(this.iteratePath=!1),this._setPlacement(s)):(this.iteratePath=!1,null)}_processMultiPart(t){if(!this.iteratePath){if(!this._initializeMultiPart(t))return null;this.iteratePath=!0}if(this._posIndex>=this._positions.length)return this.iteratePath=!1,null;const e=this._getPositionAtDistance(t,this._positions[this._posIndex]);if(null==e)return this.iterateMultiPath=!1,this.iteratePath=!1,null;this._posIndex++;const s=this._posIndex<this._positions.length;return this.iterateMultiPath=s,this.iteratePath=s,this._setPlacement(e)}_initializeMultiPart(t){this._pathIndexes.length=0,this._pathLengths.length=0,this._pathStarts.length=0,this._positions.length=0,this._totalPathLen=0,this._posIndex=0,this._isFirst=!0;for(let e=0;e<t.totalSize;e++){if(!t.seekPath(e))continue;const s=t.pathLength();s<=0||(this._pathIndexes.push(e),this._pathStarts.push(this._totalPathLen),this._pathLengths.push(s),this._totalPathLen+=s)}if(this._subPathLen=this._totalPathLen-this._beginGap-this._endGap,this._subPathLen<0||!this._pathIndexes.length)return!1;this._pattern.reset();for(let t=0;t<this._pattern.size();t++)this._positions.push(this._beginGap+this._pattern.nextValue()*this._subPathLen);return this._positions.length>0}_getPositionAtDistance(t,e){const s=Math.max(0,Math.min(e,this._totalPathLen));let i=this._pathIndexes.length-1;for(let t=0;t<this._pathIndexes.length-1;t++)if(s<=this._pathStarts[t]+this._pathLengths[t]){i=t;break}if(!t.seekPath(this._pathIndexes[i]))return null;if(!this._walker.init(t,this._pattern,!1))return null;const n=new L,h=Math.max(0,Math.min(s-this._pathStarts[i],this._pathLengths[i]));return this._walker.nextPointAndAngle(h,n,1)?n:null}_setPlacement(t){this.internalPlacement.setTranslate(t.pt[0]-this._offset*t.sa,t.pt[1]+this._offset*t.ca);const e=this._isFirst&&this._flipFirst;let s,i;return this._angleToLine?(s=t.ca,i=t.sa):(s=1,i=0),e&&(s=-s,i=-i),this.internalPlacement.setRotateCS(s,i),this._isFirst=!1,this.internalPlacement}}var kt=s(87811);const Tt=512,Lt=24,Et=1e-6;class Nt{static{this.instance=null}static local(){return null===Nt.instance&&(Nt.instance=new Nt),Nt.instance}execute(t,e,s,i){return new Gt(t,e,s,i)}}class Gt{constructor(t,e,s,i){if(this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,this._currentX=0,this._currentY=0,this._accelerationMap=null,this._testInsidePolygon=!1,this._verticalSubdivision=!0,this._stepX=Math.abs(e.stepX??16)*s,this._stepY=Math.abs(e.stepY??16)*s,this._stepX=Math.round(128*this._stepX)/128,this._stepY=Math.round(128*this._stepY)/128,0!==this._stepX&&0!==this._stepY){if(this._gridType=e.gridType??"Fixed","Random"===this._gridType){const t=e.seed??13,s=1;this._randomLCG=new kt.A(t*s),this._randomness=(e.randomness??100)/100,this._gridAngle=0,this._shiftOddRows=!1,this._cosAngle=1,this._sinAngle=0,this._offsetX=0,this._offsetY=0,this._buildRandomValues()}else{if(this._randomness=0,this._gridAngle=e.gridAngle??0,this._shiftOddRows=e.shiftOddRows??!1,this._offsetX=(e.offsetX??0)*s,this._offsetY=(e.offsetY??0)*s,this._cosAngle=Math.cos(this._gridAngle/180*Math.PI),this._sinAngle=-Math.sin(this._gridAngle/180*Math.PI),this._stepX)if(this._offsetX<0)for(;this._offsetX<-.5*this._stepX;)this._offsetX+=this._stepX;else for(;this._offsetX>=.5*this._stepX;)this._offsetX-=this._stepX;if(this._stepY)if(this._offsetY<0)for(;this._offsetY<-.5*this._stepY;)this._offsetY+=this._stepY;else for(;this._offsetY>=.5*this._stepY;)this._offsetY-=this._stepY}if(this._graphicOriginX=0,this._graphicOriginY=0,null!=i){const[t,e,s,n]=i.split("/"),h=parseFloat(t),r=parseFloat(e),o=parseFloat(s),a=parseFloat(n);this._graphicOriginX=-(a*2**h+o)*Tt,this._graphicOriginY=r*Tt,this._testInsidePolygon=!0}this._internalPlacement=new o.W,this._calculateMinMax(t),this._geometryCursor=t}}next(){return this._geometryCursor?this._nextInside():null}_buildRandomValues(){if(!Gt._randValues){Gt._randValues=[];for(let t=0;t<Lt;t++)for(let t=0;t<Lt;t++)Gt._randValues.push(this._randomLCG.getFloat()),Gt._randValues.push(this._randomLCG.getFloat())}}_calculateMinMax(t){let e,s,i,n,h,r,o,a,l,c,u,_,p,f;this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,o=a=p=u=Number.MAX_VALUE,l=c=f=_=-Number.MAX_VALUE;const d=1!==this._cosAngle;for(t.reset();t.nextPath();)for(;t.nextPoint();)r=t.x,h=t.y,e=r-this._graphicOriginX-this._offsetX,s=h-this._graphicOriginY-this._offsetY,d?(i=this._cosAngle*e-this._sinAngle*s,n=this._sinAngle*e+this._cosAngle*s):(i=e,n=s),o=Math.min(o,i),l=Math.max(l,i),a=Math.min(a,n),c=Math.max(c,n),u=Math.min(u,h),_=Math.max(_,h),p=Math.min(p,r),f=Math.max(f,r);u=u!==Number.MAX_VALUE?u:-512-this._stepY,_=_!==-Number.MAX_VALUE?_:this._stepY,p=p!==Number.MAX_VALUE?p:-this._stepX,f=f!==-Number.MAX_VALUE?f:Tt+this._stepX;const g=_-u,m=f-p;if(this._verticalSubdivision=g>=m,this._polygonMin=this._verticalSubdivision?u:p,this._testInsidePolygon){let t=0-this._graphicOriginX-this._offsetX-this._stepX,e=Tt-this._graphicOriginX-this._offsetX+this._stepX,s=-512-this._graphicOriginY-this._offsetY-this._stepY,i=0-this._graphicOriginY-this._offsetY+this._stepY;if(d){const n=[[t,s],[t,i],[e,s],[e,i]];t=s=Number.MAX_VALUE,e=i=-Number.MAX_VALUE;for(const h of n){const n=this._cosAngle*h[0]-this._sinAngle*h[1],r=this._sinAngle*h[0]+this._cosAngle*h[1];t=Math.min(t,n),e=Math.max(e,n),s=Math.min(s,r),i=Math.max(i,r)}}o=o!==Number.MAX_VALUE?Math.max(o,t):t,a=a!==Number.MAX_VALUE?Math.max(a,s):s,l=l!==-Number.MAX_VALUE?Math.min(l,e):e,c=c!==-Number.MAX_VALUE?Math.min(c,i):i}this._xMin=Math.round(o/this._stepX),this._xMax=Math.round(l/this._stepX),this._yMin=Math.round(a/this._stepY),this._yMax=Math.round(c/this._stepY),this._currentX=this._xMax+1,this._currentY=this._yMin-1,this._buildAccelerationMap(t,p,f,u,_)}_buildAccelerationMap(t,e,s,i,n){t.reset();const h=new Map,r=this._verticalSubdivision,o=r?n-i:s-e;let a=Math.ceil(o/10);if(a<=1)return;const l=Math.floor(o/a);let c,u,_,p,f,d,g,m,x,P,y;for(a++,this._delta=l,r?(x=-512-2*this._stepY,P=2*this._stepY,y=i):(x=-2*this._stepX,P=Tt+2*this._stepX,y=e);t.nextPath();)if(!(t.pathSize<2)&&t.nextPoint())for(c=t.x,u=t.y;t.nextPoint();c=_,u=p){if(_=t.x,p=t.y,r){if(u===p||u<x&&p<x||u>P&&p>P)continue;f=Math.min(u,p),d=Math.max(u,p)}else{if(c===_||c<x&&_<x||c>P&&_>P)continue;f=Math.min(c,_),d=Math.max(c,_)}for(;f<d;)g=Math.floor((f-y)/l),Ot(g,c,u,_,p,h),f+=l;m=Math.floor((d-y)/l),m>g&&Ot(m,c,u,_,p,h)}this._accelerationMap=h}_nextInside(){for(;;){if(this._currentX>this._xMax){if(this._currentY++,this._currentY>this._yMax)return null;this._currentX=this._xMin,this._shiftOddRows&&this._currentY%2&&this._currentX--}let t=this._currentX*this._stepX+this._offsetX;this._shiftOddRows&&this._currentY%2&&(t+=.5*this._stepX);const e=this._currentY*this._stepY+this._offsetY;let s,i;if(this._currentX++,"Random"===this._gridType){const n=(this._currentX%Lt+Lt)%Lt,h=(this._currentY%Lt+Lt)%Lt;s=this._graphicOriginX+t+this._stepX*this._randomness*(.5-Gt._randValues[h*Lt+n])*2/3,i=this._graphicOriginY+e+this._stepY*this._randomness*(.5-Gt._randValues[h*Lt+n+1])*2/3}else s=this._graphicOriginX+this._cosAngle*t+this._sinAngle*e,i=this._graphicOriginY-this._sinAngle*t+this._cosAngle*e;if(!this._testInsidePolygon||this._isInsidePolygon(s,i,this._geometryCursor))return this._internalPlacement.setTranslate(s,i),this._internalPlacement}}_isInsidePolygon(t,e,s){if(null==this._accelerationMap)return function(t,e,s){let i,n,h,r,o=0;for(t+=Et,e+=Et,s.reset();s.nextPath();)if(s.nextPoint())for(i=s.x,n=s.y;s.nextPoint();i=h,n=r)h=s.x,r=s.y,n>e!=r>e&&((h-i)*(e-n)-(r-n)*(t-i)>0?o++:o--);return 0!==o}(t,e,s);t+=Et,e+=Et;const i=this._verticalSubdivision,n=i?e:t,h=Math.floor((n-this._polygonMin)/this._delta),r=this._accelerationMap.get(h);if(!r)return!1;let o,a,l,c=0;for(const s of r){if(o=s[0],a=s[1],i){if(o[1]>e==a[1]>e)continue;l=(a[0]-o[0])*(e-o[1])-(a[1]-o[1])*(t-o[0])}else{if(o[0]>t==a[0]>t)continue;l=(a[1]-o[1])*(t-o[0])-(a[0]-o[0])*(e-o[1])}l>0?c++:c--}return 0!==c}}function Ot(t,e,s,i,n,h){let r=h.get(t);r||(r=[],h.set(t,r)),r.push([[e,s],[i,n]])}class Rt{static{this.instance=null}static local(){return null===Rt.instance&&(Rt.instance=new Rt),Rt.instance}execute(t,e,s){return new Xt(t,e,s)}}class Xt extends l{constructor(t,e,s){super(t),this._curveHelper=new u,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0!==e.offset?e.offset*s:0,this._relativeTo=e.relativeTo??"LineMiddle",this._position=void 0!==e.startPointOffset?e.startPointOffset*s:0,this._epsilon=.001*s}processPath(t){const e=this._position;if("SegmentMidpoint"===this._relativeTo){if(this.iteratePath||(this.iteratePath=!0),t.nextPoint()){let[e,s]=[t.x,t.y],[i,n]=[0,0];const h=[0,0];for(;t.nextPoint();){i=t.x,n=t.y;const r=this._curveHelper.getLength(e,s,i,n);if(r<this._epsilon){e=i,s=n;continue}const o=.5+this._position/r,[a,l]=this._curveHelper.getAngleCS(h,e,s,i,n,o),c=this._curveHelper.getCoord2D(e,s,i,n,o);return this.internalPlacement.setTranslate(c[0]-this._offset*l,c[1]+this._offset*a),this._angleToLine&&this.internalPlacement.setRotateCS(a,l),this.internalPlacement}}return this.iteratePath=!1,null}const s="LineEnd"===this._relativeTo;return this.onLine(t,e,s)}onLine(t,e,s){let i,n=!1;switch(this._relativeTo){case"LineMiddle":default:t.seekPathStart(),i=t.pathLength()/2+e;break;case"LineBeginning":i=e;break;case"LineEnd":i=e,n=!0}s?t.seekPathEnd():t.seekPathStart();let h=0;if(s?t.prevPoint():t.nextPoint()){let[e,r]=[t.x,t.y],[o,a]=[0,0];const l=[0,0];for(;s?t.prevPoint():t.nextPoint();){o=t.x,a=t.y;const s=this._curveHelper.getLength(e,r,o,a);if(h+s>i){const t=(i-h)/s,[c,u]=this._curveHelper.getAngleCS(l,e,r,o,a,t),_=this._curveHelper.getCoord2D(e,r,o,a,t),p=n?-this._offset:this._offset;return this.internalPlacement.setTranslate(_[0]-p*u,_[1]+p*c),this._angleToLine&&(n?this.internalPlacement.setRotateCS(-c,-u):this.internalPlacement.setRotateCS(c,u)),this.internalPlacement}e=o,r=a,h+=s}}return null}}class Yt{static{this.instance=null}static local(){return null===Yt.instance&&(Yt.instance=new Yt),Yt.instance}execute(t,e,s){return new Ft(t,e,s)}}class Ft extends l{constructor(t,e,s){super(t),this._curveHelper=new u,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._keepUpright=e.keepUpright??!1,this._offset=void 0!==e.offset?e.offset*s:0,this._endPoints=void 0===e.placeOnEndPoints||e.placeOnEndPoints,this._controlPoints=void 0===e.placeOnControlPoints||e.placeOnControlPoints,this._regularVertices=void 0===e.placeOnRegularVertices||e.placeOnRegularVertices,this._tags=[],this._tagIterator=0}processPath(t){if(this.iteratePath||(this._preparePath(t),this.iteratePath=!0),this._tagIterator>=this._tags.length)return this._tags.length=0,this._tagIterator=0,this.iteratePath=!1,null;const e=this._tags[this._tagIterator];this._angleToLine&&this.internalPlacement.setRotate(e[2]);let s=e[0],i=e[1];if(0!==this._offset){const t=Math.cos(e[2]),n=Math.sin(e[2]);s-=this._offset*n,i+=this._offset*t}return this.internalPlacement.setTranslate(s,i),this._tagIterator++,this.internalPlacement}_preparePath(t){this._tags.length=0,this._tagIterator=0,t.seekPathStart();const e=t.isClosed();let s=0,i=!1,n=0,h=0;if(t.seekPathStart(),t.nextPoint()){let r=t.x,o=t.y,a=t.getControlPoint(),l=!0,c=t.nextPoint();for(;c;){const u=t.x,_=t.y,p=t.getControlPoint();(this._angleToLine||0!==this._offset)&&(n=this._curveHelper.getAngle(r,o,u,_,0)),l?(l=!1,e?(s=n,i=a):(this._endPoints||this._controlPoints&&a)&&this._tags.push([r,o,n])):a?this._controlPoints&&this._tags.push([r,o,Dt(h,n)]):this._regularVertices&&this._tags.push([r,o,Dt(h,n)]),(this._angleToLine||0!==this._offset)&&(h=this._curveHelper.getAngle(r,o,u,_,1)),c=t.nextPoint(),c||(e?p||i?this._controlPoints&&this._tags.push([u,_,Dt(h,s)]):this._regularVertices&&this._tags.push([u,_,Dt(h,s)]):(this._endPoints||this._controlPoints&&p)&&this._tags.push([u,_,h])),r=u,o=_,a=p}}this._tagIterator=0}}function Dt(t,e){const s=Math.PI;for(;Math.abs(e-t)>s+2e-15;)e-t>s?e-=2*s:e+=2*s;return(t+e)/2}var Wt=s(32011);class Ht{static{this.instance=null}static local(){return null===Ht.instance&&(Ht.instance=new Ht),Ht.instance}execute(t,e,s){return new Vt(t,e,s)}}class Vt{constructor(t,e,s){this._geometryCursor=t,this._offsetX=void 0!==e.offsetX?e.offsetX*s:0,this._offsetY=void 0!==e.offsetY?e.offsetY*s:0,this._method=void 0!==e.method?e.method:"OnPolygon",this._placementPerPart=void 0!==e.placePerPart&&e.placePerPart,this._internalPlacement=new o.W}next(){const t=this._geometryCursor;if(!t)return null;if(!this._placementPerPart)return this._geometryCursor=null,this._polygonCenter(t);for(;t.nextPath();)if(!(t.getCurrentRingArea()<0))return this._polygonCenter(t.getCurrentPath());return this._geometryCursor=null,null}_polygonCenter(t){let e=!1;switch(this._method){case"CenterOfMass":{const s=(0,tt.TP)(t);s&&(this._internalPlacement.setTranslate(s[0]+this._offsetX,s[1]+this._offsetY),e=!0)}break;case"BoundingBoxCenter":{const s=(0,F.z8)(t);s&&(this._internalPlacement.setTranslate((s[2]+s[0])/2+this._offsetX,(s[3]+s[1])/2+this._offsetY),e=!0)}break;default:{const s=(0,Wt.d)(t);null!==s&&(this._internalPlacement.setTranslate(s[0]+this._offsetX,s[1]+this._offsetY),e=!0)}}return e?this._internalPlacement:null}}var Ut=s(86235),Bt=s(14057);class qt{static{this.instance=null}static local(){return null===qt.instance&&(qt.instance=new qt),qt.instance}execute(t,e,s){return new Jt(t,s)}}class Jt{constructor(t,e){this._cursor=t,this._context=e}next(){const t=this._cursor.next();if(!t||0===t.totalSize)return null;const{matcher:e,target:s,tileKey:i}=this._context,n=e&&s&&null!=i?e.getMatcherGeometryOverride((0,Bt.$)(i,s.getObjectId())):null;if(!n)return t;const r=h.z.fromOptimizedCIM(n.geometry.clone(),n.geometryType);return r.invertY(),r}}class Zt{static{this.instance=null}static local(){return null===Zt.instance&&(Zt.instance=new Zt),Zt.instance}execute(t){return new jt(t)}}class jt extends l{constructor(t){super(t),this._curveHelper=new u}processPath(t){if(this.iteratePath=!0,t.nextPoint()){const[e,s]=[t.x,t.y];if(t.nextPoint()){const[i,n]=[t.x,t.y],h=(e+i)/2,r=(s+n)/2;this.internalPlacement.setTranslate(h,r);const o=this._curveHelper.getAngle(e,s,i,n,0);return this.internalPlacement.setRotate(o),this.internalPlacement}}return this.iteratePath=!1,null}}function $t(t){if(!t)return null;switch(t.type){case"CIMGeometricEffectAddControlPoints":return i.local();case"CIMGeometricEffectArrow":return p.local();case"CIMGeometricEffectBuffer":return m.local();case"CIMGeometricEffectCircularSector":return w.local();case"CIMGeometricEffectControlMeasureLine":return z.local();case"CIMGeometricEffectCut":return A.local();case"CIMGeometricEffectDashes":return O.local();case"CIMGeometricEffectDonut":return X.local();case"CIMGeometricEffectJog":return B.local();case"CIMGeometricEffectMove":return J.local();case"CIMGeometricEffectOffset":return $.local();case"CIMGeometricEffectRadial":return et.local();case"CIMGeometricEffectReverse":return it.local();case"CIMGeometricEffectRotate":return rt.local();case"CIMGeometricEffectScale":return at.local();case"CIMGeometricEffectSuppress":return ut.local();case"CIMGeometricEffectTaperedPolygon":return mt.local();case"CIMGeometricEffectWave":return Pt.local();case"CIMGeometricEffectEnclosingPolygon":return D.local();case"PrivateDimensionEffect":return Ut.HZ.local();case"PrivateMatcherGeometryOverrideEffect":return qt.local()}return null}function Kt(t){if(!t)return null;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":return Mt.local();case"CIMMarkerPlacementAtExtremities":return wt.local();case"CIMMarkerPlacementAtMeasuredUnits":return St.local();case"CIMMarkerPlacementAtRatioPositions":return It.local();case"CIMMarkerPlacementInsidePolygon":return Nt.local();case"CIMMarkerPlacementOnLine":return Rt.local();case"PrivatePlacementMultipoint":return Zt.local();case"CIMMarkerPlacementOnVertices":return Yt.local();case"CIMMarkerPlacementPolygonCenter":return Ht.local()}return null}},98939(t,e,s){s.d(e,{W:()=>i});class i{constructor(){this.setIdentity()}getAngle(){return(null==this.rz||0===this.rz&&1!==this.rzCos&&0!==this.rzSin)&&(this.rz=Math.atan2(this.rzSin,this.rzCos)),this.rz}setIdentity(){this.tx=0,this.ty=0,this.tz=0,this.s=1,this.rx=0,this.ry=0,this.rz=0,this.rzCos=1,this.rzSin=0}setTranslate(t,e){this.tx=t,this.ty=e}setTranslateZ(t){this.tz=t}setRotateCS(t,e){this.rz=void 0,this.rzCos=t,this.rzSin=e}setRotate(t){this.rz=t,this.rzCos=void 0,this.rzSin=void 0}setRotateY(t){this.ry=t}setScale(t){this.s=t}setMeasure(t){this.m=t}}},35521(t,e,s){var i=s(28076);i.D.CIMSolidStroke.capstyle,i.D.CIMSolidStroke.joinstyle,i.D.CIMSolidStroke.miterlimit},69754(t,e,s){s.d(e,{Z:()=>l,q:()=>a});var i=s(68197),n=s(93397);const h=/([A-Za-z_][\w-]*)\s*=\s*(['"])(.*?)\2/g,r=/&(amp|lt|gt|quot|apos);/g,o=/<\s*\/?\s*(?:CLR|BOL|_BOL|ITA|_ITA|FNT|CHR)\b/i;function a(t){return o.test(t)}function l(t){if(!t.supportsRichText||!t.textString.includes("<"))return null;const e=function(t){return{font:{...t.font},fontSize:t.symbol?.height&&!isNaN(t.symbol.height)?t.symbol.height:10,characterSpacing:0}}(t),s=[],i=[];let n=c(e),h="",r=!1;const o=t.textString,a=()=>{if(!h)return;const t=u(h);if(!t)return void(h="");const e=i[i.length-1];e&&function(t,e){return t.fontSize===e.fontSize&&t.characterSpacing===e.characterSpacing&&t.font.family===e.font.family&&t.font.style===e.font.style&&t.font.weight===e.font.weight&&function(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}(t.color,e.color)}(e,n)?e.text+=t:i.push({text:t,font:{...n.font},fontSize:n.fontSize,characterSpacing:n.characterSpacing,color:n.color}),h=""};let l=0;for(;l<o.length;){const t=o[l];if("<"!==t){h+=t,l++;continue}const e=o.indexOf(">",l+1);if(-1===e)return null;const i=_(o.slice(l+1,e));if(!i)return null;if(r=!0,a(),i.isEnd){const t=s.pop();if(!t||t.name!==i.name)return null;n=t.previous}else{const t=c(n);n=p(n,i),s.push({name:i.name,previous:t})}l=e+1}return s.length?null:(a(),r?i.filter(t=>t.text.length>0):null)}function c(t){return{font:{...t.font},fontSize:t.fontSize,characterSpacing:t.characterSpacing,color:t.color}}function u(t){return t.replaceAll(r,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"apos":return"'";default:return t}})}function _(t){const e=t.trim();if(!e)return null;const s=e.startsWith("/"),i=s?e.slice(1).trim():e,n=/^([A-Za-z_][\w-]*)/.exec(i);if(!n)return null;const r=n[1],o=i.slice(r.length),a={};let l;for(h.lastIndex=0;l=h.exec(o);)a[l[1]]=l[3];return{isEnd:s,name:r,attributes:a}}function p(t,e){const s=c(t);switch(e.name.toUpperCase()){case"BOL":s.font.weight="bold";break;case"_BOL":s.font.weight="normal";break;case"ITA":s.font.style="italic";break;case"_ITA":s.font.style="normal";break;case"FNT":!function(t,e){const{name:s,style:i,size:h,scale:r,wght:o,ital:a}=e;if(s&&(t.font.family=s),i){const e=(0,n._d)(i);t.font.style=e.style,t.font.weight=e.weight}if(o){const e=Number(o);t.font.weight=e>=600?"bold":"normal"}if(a){const e=Number(a);isNaN(e)||(t.font.style=0!==e?"italic":"normal")}if(h){const e=Number(h);!isNaN(e)&&e>0&&(t.fontSize=e)}if(r){const e=Number(r);!isNaN(e)&&e>0&&(t.fontSize*=e/100)}}(s,e.attributes);break;case"CLR":s.color=function(t){if(t.hex){const e=i.A.fromHex(t.hex)?.toArray();if(e){const s="alpha"in t?g(t.alpha):e[3];return[e[0],e[1],e[2],s]}}if("red"in t||"green"in t||"blue"in t)return[f(t.red),f(t.green),f(t.blue),g(t.alpha)];const e=d(t.cyan),s=d(t.magenta),n=d(t.yellow),h=d(t.black),r=g(t.alpha),o=d(t.tint,100)/100,a=1-h;return[Math.round(255*(1-e)*a*o),Math.round(255*(1-s)*a*o),Math.round(255*(1-n)*a*o),r]}(e.attributes);break;case"CHR":!function(t,e){const s=Number(e.spacing);!isNaN(s)&&s>=0&&(t.characterSpacing=s/100)}(s,e.attributes)}return s}function f(t){const e=Number(t);return function(t){return Math.max(0,Math.min(255,Math.round(t)))}(isNaN(e)?0:e)}function d(t,e=0){const s=Number(t);return function(t){return Math.max(0,Math.min(1,t))}((isNaN(s)?e:s)/100)}function g(t){return Math.round(255*d(t,100))}},13195(t,e,s){s.d(e,{GW:()=>g,IU:()=>m,Wh:()=>_,cP:()=>y,p6:()=>d,ru:()=>P,s3:()=>x,wV:()=>f,yM:()=>M,z0:()=>p});var i=s(95108),n=s(6774);const h=Number.POSITIVE_INFINITY,r=Math.PI,o=2*r,a=128/r,l=256/360,c=r/180,u=1/Math.LN2;function _(t,e){return(t%=e)>=0?t:t+e}function p(t){return _(t*a,256)}function f(t){return _(t*l,256)}function d(t){return Math.log(t)*u}function g(t,e,s){return t*(1-s)+e*s}function m(t){return 8+Math.max(16*(t-14),0)}function x(t,e,s){let i,n,h,r=0;for(const o of s){i=o.length;for(let s=1;s<i;++s)n=o[s-1],h=o[s],n.y>e!=h.y>e&&((h.x-n.x)*(e-n.y)-(h.y-n.y)*(t-n.x)>0?r++:r--)}return 0!==r}function P(t,e,s,n){let h,r,o,a;const l=n*n;for(const n of s){const s=n.length;if(!(s<2)){h=n[0].x,r=n[0].y;for(let c=1;c<s;++c){if(o=n[c].x,a=n[c].y,(0,i.Ng)(t,e,h,r,o,a)<l)return!0;h=o,r=a}}}return!1}function y(t,e){if(0===e||Number.isNaN(e))return t;const s=[],i=new n.bR(0,0),h=new n.bR(0,0),r=new n.bR(0,0);for(let o=0;o<t.length;o++){const a=t[o],l=[];for(let t=0;t<a.length;t++){const s=a[t-1],o=a[t],c=a[t+1];0===t?i.setCoords(0,0):i.assignSub(o,s).normalize().rightPerpendicular(),t===a.length-1?h.setCoords(0,0):h.assignSub(c,o).normalize().rightPerpendicular(),r.assignAdd(i,h).normalize();const u=r.x*h.x+r.y*h.y;0!==u&&r.scale(1/u),l.push(n.bR.add(o,r.scale(e)))}s.push(l)}return s}function M(t,e,s,i){const h=new n.bR(t[0],t[1]);if(h.scale(i),"viewport"===e){const t=-s*(Math.PI/180),e=Math.cos(t),i=Math.sin(t);h.rotate(e,i)}return h}s.d(e,["Jo",0,r,"MG",0,h,"aA",0,l,"os",0,c,"pJ",0,o])},18989(t,e,s){s.d(e,{A:()=>i});class i{constructor(t=0,e=0,s=0,i=0){this.x=t,this.y=e,this.width=s,this.height=i}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}},63933(t,e,s){function i(t){if(!t)return 0;switch(t){case"Left":case"left":return-1;case"Right":case"right":return 1;case"justify":case"Justify":return 2;case"Center":case"center":return 0}}function n(t){if(!t)return 0;switch(t){case"Top":case"top":return 1;case"Center":case"middle":return 0;case"Baseline":case"baseline":return 2;case"Bottom":case"bottom":return-1}}function h(t){switch(t){case 1:case"right":return-1;case 2:case"justify":return 1;case 0:case"center":return 0;case-1:case"left":return 1;default:return console.debug(`Found invalid horizontal alignment ${t}`),0}}function r(t){switch(t){case 1:case"top":return 1;case 0:case"middle":return 0;case-1:case 2:case"baseline":case"bottom":return-1;default:return console.debug(`Found invalid vertical alignment ${t}`),0}}s.d(e,{Dy:()=>r,UD:()=>n,iT:()=>h,xy:()=>i})},15660(t,e,s){s.d(e,{A:()=>n});var i=s(88340);class n{constructor(t,e,s,n){this.transformedX=0,this.transformedY=0,this.center=(0,i.fA)(t,e),this.centerT=(0,i.vt)(),this.halfWidth=s/2,this.halfHeight=n/2,this.width=s,this.height=n}get x(){return this.center[0]}get y(){return this.center[1]}get blX(){return this.center[0]+this.halfWidth}get blY(){return this.center[1]+this.halfHeight}get trX(){return this.center[0]-this.halfWidth}get trY(){return this.center[1]-this.halfHeight}get xmin(){return this.x-this.halfWidth}get xmax(){return this.x+this.halfWidth}get ymin(){return this.y-this.halfHeight}get ymax(){return this.y+this.halfHeight}set x(t){this.center[0]=t}set y(t){this.center[1]=t}clone(){return new n(this.x,this.y,this.width,this.height)}serialize(t){return t.writeF32(this.center[0]),t.writeF32(this.center[1]),t.push(this.width),t.push(this.height),t}findCollisionDelta(t,e=4){const s=Math.abs(t.centerT[0]-this.centerT[0]),i=Math.abs(t.centerT[1]-this.centerT[1]),n=(t.halfWidth+this.halfWidth+e)/s,h=(t.halfHeight+this.halfHeight+e)/i,r=Math.min(n,h);return Math.log2(r)}extend(t){const e=Math.min(this.xmin,t.xmin),s=Math.min(this.ymin,t.ymin),i=Math.max(this.xmax,t.xmax)-e,n=Math.max(this.ymax,t.ymax)-s,h=e+i/2,r=s+n/2;this.width=i,this.height=n,this.halfWidth=i/2,this.halfHeight=n/2,this.x=h,this.y=r}static deserialize(t){const e=t.readF32(),s=t.readF32(),i=t.readInt32(),h=t.readInt32();return new n(e,s,i,h)}}},75434(t,e,s){s.d(e,{HB:()=>b,tA:()=>M});var i=s(90629),n=s(16905),h=s(85560),r=s(37585),o=s(88340),a=s(63933),l=s(18989),c=s(15660);const u=Math.PI/180;class _{static fromGlyph(t,e,s,i,n){const{mosaicItem:h,rect:r,shaping:o,code:a}=s,l=h.rect;return new _({width:0===a?r.width:l.width*i,height:0===a?r.height:l.height*i,x:i*(t+o.xOffset+r.left),y:i*(e+o.yOffset-r.top),textureBinding:h.textureBinding,texcoords:{topLeft:[l.x,l.y],topRight:[l.x+l.width,l.y],bottomLeft:[l.x,l.y+l.height],bottomRight:[l.x+l.width,l.y+l.height]},fontSize:n?.fontSize,color:n?.color})}constructor(t){this._rotationT=(0,h.vt)(),this._transform=(0,h.vt)(),this._angle=0,this._bounds=null,this.width=t.width,this.height=t.height,this.x=t.x,this.y=t.y,this.textureBinding=t.textureBinding,this.texcoords=t.texcoords,this.fontSize=t.fontSize,this.color=t.color}set angle(t){this._angle=t,(0,n.$0)(this._rotationT,-t),this._offsets=this._bounds=null}get angle(){return this._angle}get offsets(){if(!this._offsets){const{x:t,y:e,width:s,height:i}=this,o=(0,n.$0)((0,h.vt)(),-this.angle),a=(0,n.lw)((0,h.vt)(),o,this._transform);this._offsets={topLeft:(0,r.l0)([0,0],[t,e],a),topRight:(0,r.l0)([0,0],[t+s,e],a),bottomLeft:(0,r.l0)([0,0],[t,e+i],a),bottomRight:(0,r.l0)([0,0],[t+s,e+i],a)}}return this._offsets}get bounds(){if(this.width<=0)return null;if(!this._bounds){const t=this.offsets;let e=1/0,s=1/0,i=-1/0,n=-1/0;for(const[h,r]of[t.topLeft,t.topRight,t.bottomLeft,t.bottomRight])e=Math.min(e,h),s=Math.min(s,r),i=Math.max(i,h),n=Math.max(n,r);const h=i-e,r=n-s,o=e+h/2,a=s+r/2;this._bounds=new c.A(o,a,h,r)}return this._bounds}setTransform(t){this._transform=t,this._offsets=null}}const p=(t,e)=>({code:0,mosaicItem:{rect:new l.A(0,0,11,8),sdf:!0,page:0,textureBinding:e},rect:{height:4,width:t,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0}});function f(t,e){return t.forEach(t=>(0,r.l0)(t,t,e)),{topLeft:t[0],topRight:t[1],bottomLeft:t[2],bottomRight:t[3]}}class d{constructor(t,e,s,i){this._rotation=0,this._decorate(t,e,s,i),this.glyphs=t,this.bounds=this._createBounds(t),this.isMultiline=e.length>1,this._hasRotation=0!==s.angle,this._transform=this._createGlyphTransform(this.bounds,s),this._borderLineSizePx=s.borderLineSizePx,(s.borderLineSizePx||s.hasBackground)&&([this.bounds,this.textBox]=this.shapeBackground(this._transform));for(const e of t)e.setTransform(this._transform)}setRotation(t){if(0===t&&0===this._rotation)return;this._rotation=t;const e=this._transform,s=(0,n.$0)((0,h.vt)(),t);(0,n.lw)(e,s,e);for(const t of this.glyphs)t.setTransform(this._transform)}_decorate(t,e,s,i){if(!s.decoration||"none"===s.decoration||!t.length)return;const n=s.scale,h=t[0].textureBinding;for(const r of e){const e=r.scale??n,o="underline"===s.decoration?r.baseline??i?.baseline??26:r.midline??i?.midline??16,a=r.startX*e,l=r.startY*e,c=(r.width+r.glyphWidthEnd)*e;t.push(_.fromGlyph(a,l+o*e,p(c,h),1))}}shapeBackground(t){const e=(1.5+(this._borderLineSizePx||0))/2,s=this._borderLineSizePx?e:0,{xmin:i,ymin:n,xmax:h,ymax:r,x:o,y:a,width:l,height:u}=this.bounds,_=[i-8,n-8],p=[h+8,n-8],d=[i-8,r+8],g=[h+8,r+8],m=f([[_[0]-e,_[1]-e],[p[0]+e,p[1]-e],[_[0]+s,_[1]+s],[p[0]-s,p[1]+s]],t),x=f([[d[0]+s,d[1]-s],[g[0]-s,g[1]-s],[d[0]-e,d[1]+e],[g[0]+e,g[1]+e]],t),P=f([[_[0]-e,_[1]-e],[_[0]+s,_[1]+s],[d[0]-e,d[1]+e],[d[0]+s,d[1]-s]],t),y=f([[p[0]-s,p[1]+s],[p[0]+e,p[1]-e],[g[0]-s,g[1]-s],[g[0]+e,g[1]+e]],t),M={main:f([_,p,d,g],t),top:m,bot:x,left:P,right:y};return[new c.A(o,a,l+2*e,u+2*e),M]}get boundsT(){const t=this.bounds,e=(0,r.hZ)((0,o.vt)(),t.x,t.y);if((0,r.l0)(e,e,this._transform),this._hasRotation){const s=Math.max(t.width,t.height);return new c.A(e[0],e[1],s,s)}return new c.A(e[0],e[1],t.width,t.height)}_createBounds(t){let e=1/0,s=1/0,i=0,n=0;for(const h of t)e=Math.min(e,h.offsets.topLeft[0]),s=Math.min(s,h.offsets.topLeft[1]),i=Math.max(i,h.offsets.bottomRight[0]),n=Math.max(n,h.offsets.bottomRight[1]);const h=i-e,r=n-s;return new c.A(e+h/2,s+r/2,h,r)}_createGlyphTransform(t,e){const s=u*e.angle,i=(0,h.vt)(),a=(0,o.vt)();return(0,n.Tl)(i,i,(0,r.hZ)(a,e.xOffset,-e.yOffset)),e.useCIMAngleBehavior?(0,n.e$)(i,i,s):((0,n.Tl)(i,i,(0,r.hZ)(a,t.x,t.y)),(0,n.e$)(i,i,s),(0,n.Tl)(i,i,(0,r.hZ)(a,-t.x,-t.y))),i}}class g{constructor(t,e,s,i,n,h){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.start=Math.max(0,Math.min(e,s)),this.end=Math.max(0,Math.max(e,s)),this.end<t.length&&(this.glyphWidthEnd=t[this.end].rect.width),this.width=i,this.yMin=n,this.yMax=h}}const m=t=>10===t,x=t=>32===t;function P(t,e,s){let i=0;for(let n=e;n<s;n++)x(t[n].code)&&!m(t[n+1].code)&&i++;return i}function y(t,e){const s=e.scale,i=new Array,n=t.sdfPadding,{faceInfo:h,glyphs:r,isRightToLeft:o}=t,l="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,c=function(t,e,s){const i=new Array,n=1/s.scale,h=s.maxLineWidth*n,r=e?t.length-1:0,o=e?-1:t.length,a=e?-1:1;let l=r,c=0,u=0,_=l,p=_,f=0,d=1/0,P=0;for(;l!==o;){const{code:e,rect:s,shaping:n}=t[l],o=Math.abs(s.top);if(m(e)||x(e)||(d=Math.min(d,o),P=Math.max(P,o+s.height)),m(e))l!==r&&(i.push(new g(t,_,l-a,c,d===1/0?0:d,P)),d=1/0,P=0),c=0,_=l+a,p=l+a,u=0;else if(x(e))p=l+a,u=0,f=n.xAdvance,c+=n.xAdvance;else if(c>h){if(p!==_){const e=p-2*a;c-=f,i.push(new g(t,_,e,c-u,d,P)),d=1/0,P=0,_=p,c=u}else i.push(new g(t,_,l-a,c,d,P)),d=1/0,P=0,_=l,p=l,c=0;c+=n.xAdvance,u+=n.xAdvance}else c+=n.xAdvance,u+=n.xAdvance;l+=a}const y=new g(t,_,l-a,c,d,P);return y.start>=0&&y.end<t.length&&i.push(y),i}(r,o,e),u=c.length?function(t,e){let s=0;for(let e=0;e<t.length;e++){const{width:i}=t[e];s=Math.max(i,s)}const i="underline"===e.decoration?4:0,n=t[0].yMin;return{x:0,y:n,height:t[t.length-1].yMax+e.lineHeight*(t.length-1)+i-n,width:s}}(c,e):{y:0,height:0,width:0},p=l?o?1:-1:(0,a.xy)(e.horizontalAlignment),f=(0,a.UD)(e.verticalAlignment),y=2===f?1:0,M=y?0:f-1,b=h?.baseline??22,w=c.length>1,C=y?w?-u.y-u.height:-b:-u.y+M*(u.height/2);for(let h=0;h<c.length;h++){const{start:o,end:a,width:f}=c[h],d=l&&h<c.length-1?P(r,o,a):0,g=d>0?(u.width-f)/d:0;let y=-1*(p+1)*((g>0?u.width:f)/2)-n;const M=(t.isRightToLeft?c.length-1-h:h)*e.lineHeight+C-n;c[h].startX=y,c[h].startY=M;for(let t=o;t<=a;t++){const e=r[t];if(m(e.code))continue;const n=_.fromGlyph(y,M,e,s);y+=e.shaping.xAdvance,g>0&&x(e.code)&&(y+=g),i.push(n)}}return new d(i,c,e,h)}function M(t,e){return"glyphs"===t.type?y(t,e):function(t,e){const s=w(t,e),i=function(t,e){const s=[],i=e.maxLineWidth;let n=0,h=0,r=0,o=0,a=0,l=0;for(;n<t.length;){const e=t[n],{glyph:c}=e;if(m(c.code))0!==n&&s.push({width:h,start:o,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),h=0,o=n+1,a=o,r=0,l=0;else if(x(c.code))a=n+1,r=0,l=e.xAdvance,h+=e.xAdvance;else if(h>i){if(a!==o){const e=a-2;h-=l,s.push({width:h-r,start:o,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),o=a,h=r}else s.push({width:h,start:o,end:n-1,glyphWidthEnd:t[n-1]?.glyph.rect.width*t[n-1]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1}),o=n,a=n,h=0;h+=e.xAdvance,r+=e.xAdvance}else h+=e.xAdvance,r+=e.xAdvance;n++}if(o<t.length){const e=t.length-1;s.push({width:h,start:o,end:e,glyphWidthEnd:t[e]?.glyph.rect.width*t[e]?.scale||0,yMin:0,yMax:0,lineHeight:0,baseline:0,midline:0,startX:0,startY:0,scale:1})}return function(t,e){for(let s=0;s<e.length;s++){const i=e[s];let n=0,h=1/0,r=0;for(let e=i.start;e<=i.end;e++){const s=t[e];m(s.glyph.code)||x(s.glyph.code)||(n=Math.max(n,s.baseline),r=Math.max(r,s.lineHeight))}let o=1/0,a=-1/0;for(let e=i.start;e<=i.end;e++){const s=t[e];m(s.glyph.code)||x(s.glyph.code)||(o=Math.min(o,n-s.baseline+s.top),a=Math.max(a,n-s.baseline+s.bottom),h=Math.min(h,n-s.baseline+s.midline))}i.baseline=n,i.midline=h===1/0?n:h,i.lineHeight=r||Math.max(0,a-o),i.yMin=o===1/0?0:o,i.yMax=a===-1/0?0:a,i.startY=s>0?e[s-1].startY+e[s-1].lineHeight:0}return e}(t,s)}(s,e),n=i.length?function(t){let e=0;for(const s of t)e=Math.max(s.width+s.glyphWidthEnd,e);const s=t[0].yMin,i=t[t.length-1];return{x:0,y:s,height:i.startY+i.yMax-s,width:e}}(i):{width:0},h=new Array,r="justify"===e.horizontalAlignment||"Justify"===e.horizontalAlignment,o=r?-1:(0,a.xy)(e.horizontalAlignment),l=(0,a.UD)(e.verticalAlignment),c=2===l,u=i.length?i[0].yMin:0,p=i.length?i[i.length-1].startY+i[i.length-1].yMax:0,f=p-u,g=c?i.length>1?-p:-(i[0]?.baseline??0):1===l?-u:-1===l?-p:-(u+f/2);for(let t=0;t<i.length;t++){const e=i[t],a=r&&t<i.length-1?C(s,e.start,e.end):0,l=a>0?(n.width-e.width)/a:0;let c=-1*(o+1)*((l>0?n.width:e.width)/2);const u=e.startY+g;e.startX=c,e.startY=u;for(let t=e.start;t<=e.end;t++){const i=s[t],{glyph:n,scale:r,fontSize:o}=i;if(m(n.code))continue;const a=u+e.baseline-i.baseline;h.push(_.fromGlyph(c/r,a/r,n,r,{fontSize:o,color:i.color})),c+=i.xAdvance,l>0&&x(n.code)&&(c+=l)}}return new d(h,i,e)}(t,e)}function b(t,e){return"glyphs"===t.type?function(t,e){const s=e.scale,{faceInfo:i,glyphs:n}=t,h=n.reduce((t,e)=>Math.max(t,e.rect.height),0),r=n.map(t=>_.fromGlyph(-t.rect.width/2,-h,t,s));return new d(r,[],e,i)}(t,e):function(t,e){const s=w(t,e),i=s.reduce((t,e)=>Math.max(t,e.glyph.rect.height*e.scale),0),n=s.filter(t=>!m(t.glyph.code)).map(t=>_.fromGlyph(-t.glyph.rect.width/2,-i/t.scale,t.glyph,t.scale,{fontSize:t.fontSize,color:t.color}));return new d(n,[],e)}(t,e)}function w(t,e){const s=e.lineHeightRatio??1,n=[];for(const e of t.runs){const t=(0,i.Lz)(e.fontSize),h=t/e.glyphs.sdfSize,r=t*(29/24)*s,o=(e.glyphs.faceInfo?.baseline??22)*h,a=(e.glyphs.faceInfo?.midline??16)*h,l=1+(e.characterSpacing??0);for(const s of e.glyphs.glyphs){const i=s.shaping.xAdvance*h,c=Math.abs(s.rect.top)*h,u=c+s.rect.height*h;n.push({glyph:s,scale:h,fontSize:t,color:e.color,xAdvance:m(s.code)||x(s.code)?i:i*l,top:c,bottom:u,lineHeight:r,baseline:o,midline:a})}}return n}function C(t,e,s){let i=0;for(let n=e;n<s;n++)x(t[n].glyph.code)&&!m(t[n+1].glyph.code)&&i++;return i}},69221(t,e,s){s.d(e,{Lu:()=>h,hV:()=>n});var i=s(90629);function n(t){return(0,i.PN)(Math.round((0,i.Lz)(t)))}function h(t){const e=(0,i.PN)(32),s=(0,i.PN)(512);return Math.max(e,Math.min(t||s,s))}s(39829)},86235(t,e,s){s.d(e,{HZ:()=>h});var i=s(36745),n=s(14057);class h{static{this.instance=null}static local(){return null===h.instance&&(h.instance=new h),h.instance}execute(t,e,s){return new r(t,e,s)}}class r{constructor(t,e,s){this._cursor=t,this._effect=e,this._context=s}next(){const t=this._cursor.next();if(t&&t.totalSize>0){const e=t.asJSON(),s=a[this._effect.part](e,{...this._effect,target:this._context.target,scaleFactor:this._context.scaleFactor,matcher:this._context.matcher,tileKey:this._context.tileKey,geomUnitsPerPoint:this._context.geomUnitsPerPoint});return s?i.z.fromJSONCIM(s):null}return null}}function o(t,e){const s=e.matcher,i=e.target.getObjectId(),h=(0,n.$)(e.tileKey,i),r=s.getAnalyzedGraphic(h);return r?(r.evaluateWithGeometry(t,e.geomUnitsPerPoint*e.scaleFactor),r):null}const a={textPoint:function(t,e){const s=o(t,e);return s&&s.textPoint?{x:s.textPoint[0],y:s.textPoint[1],spatialReference:t.spatialReference}:t},beginDimensionLine:function(t,e){const s=o(t,e);if(!s||!s.dimensionLine)return t;const i=s.dimensionLine[0],n=i[1][0],h=i[1][1],r=i[0][0],a=i[0][1];return{spatialReference:t.spatialReference,paths:[[[n,h],[r,a]]]}},endDimensionLine:function(t,e){const s=o(t,e);if(!s||!s.dimensionLine)return t;const i=s.dimensionLine[1],n=i[1][0],h=i[1][1],r=i[0][0],a=i[0][1];return{spatialReference:t.spatialReference,paths:[[[n,h],[r,a]]]}},beginExtensionLine:function(t,e){const s=o(t,e);if(!s||!s.extensionLines)return t;const i=s.extensionLines[0],n=i[0][0],h=i[0][1],r=i[1][0],a=i[1][1];return{spatialReference:t.spatialReference,paths:[[[n,h],[r,a]]]}},endExtensionLine:function(t,e){const s=o(t,e);if(!s||!s.extensionLines)return t;const i=s.extensionLines[1],n=i[0][0],h=i[0][1],r=i[1][0],a=i[1][1];return{spatialReference:t.spatialReference,paths:[[[n,h],[r,a]]]}}};s.d(e,["Bd",0,"beginMarker","Cr",0,"beginExtensionLine","FF",0,"endMarker","Fn",0,"beginDimensionLine","NR",0,"textPoint","tz",0,"endDimensionLine","w0",0,"endExtensionLine"])},14057(t,e,s){function i(t,e){return`${t}_${e}`}s.d(e,{$:()=>i})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2733],{88930(e,t,r){r.d(t,{S1:()=>o,lL:()=>u,mi:()=>l,rb:()=>d,t:()=>p});var n=r(97770),i=(r(98623),r(92647));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function o(e,t,r,s="system"){if("unknown"===r)return e;const a=new i.oh((0,n.wj)(s)),o=i.c9.fromJSDate(e,{zone:a}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),o.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){const n=e.getTime(),i=p(t,r,"milliseconds");return new Date(n+i)}function u(e,t,r="system"){const{unit:s}=t,a=Math.max(1,Math.trunc(t.value)),o=new i.oh((0,n.wj)(r)),l=i.c9.fromJSDate(e,{zone:o}),u=e=>e-e%a;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*a,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function d(e){const t=s.exec(e);if(!t)return null;const{hh:r,mm:n,ss:i,ms:o}=t.groups;return Number(r)*a.hours+Number(n)*a.minutes+Number(i||0)*a.seconds+Number(o||0)}function p(e,t,r){return 0===e?0:e*a[t]/a[r]}},4146(e,t,r){r.d(t,{A:()=>v});var n=r(5482),i=r(11254),s=r(49186),a=r(65529),o=r(4902),l=r(92474),u=r(53966),d=r(17676),p=r(84952),c=r(91429),y=r(5443),m=r(16930),h=r(92602),f=r(79677);let g=0,v=class extends((0,a.Zt)((0,o.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await Promise.all([r.e(812),r.e(5613),r.e(909)]).then(r.bind(r,45613));try{return await n(t)}catch(e){const r=t?.portalItem,n=r?.id||"unset",i=r?.portal?.url||h.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,d.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,i.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,c.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,n.Cg)([(0,c.MZ)({type:y.A})],v.prototype,"fullExtent",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n.Cg)([(0,c.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n.Cg)([(0,c.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,c.MZ)({type:m.A})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,c.MZ)({type:String})],v.prototype,"title",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)()],v.prototype,"url",void 0),(0,n.Cg)([(0,c.MZ)({type:f.A})],v.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n.Cg)([(0,c.$K)("esri.layers.Layer")],v)},7656(e,t,r){r.r(t),r.d(t,{default:()=>q});var n=r(5482),i=r(11254),s=r(7762),a=r(49186),o=r(81583),l=r(34727),u=r(25728),d=r(17676),p=r(91429),c=r(56507),y=r(35666),m=r(5443),h=r(83960),f=r(21325),g=r(4146),v=r(52136),b=r(98534),w=r(18768),S=r(63074),C=r(69208),M=r(34287),x=r(8303),I=r(54310),T=r(25036),A=r(91921),Z=r(82935),O=r(10873),E=r(69622),D=r(39516);function L(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var j=r(63389);const N={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let P=class extends E.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=L(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,j.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(N[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const r=L(this.floors,t),n=(0,D.mA)(r,t.definitionExpression);return null!=n&&(e[t.id]=n),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,n=t=>{t.visible&&(0===r||(0,h.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(n):e.unshift(t))};t?.forEach(n);const i=this._get("visibleSublayers");return!i||i.length!==e.length||i.some((t,r)=>e[r]!==t)?e:i}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"dynamicLayers",null),(0,n.Cg)([(0,p.MZ)()],P.prototype,"floors",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"hasDynamicLayers",null),(0,n.Cg)([(0,p.MZ)()],P.prototype,"layer",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"layers",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"layerDefs",null),(0,n.Cg)([(0,p.MZ)({type:Number})],P.prototype,"scale",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"version",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"visibleSublayers",null),P=(0,n.Cg)([(0,p.$K)("esri.layers.support.ExportImageParameters")],P);var F=r(33446),k=r(15775),U=r(91908),J=r(88625),_=r(79677),R=r(56400),V=r(36005),$=r(43937);let B=class extends((0,S.dM)((0,Z.e)((0,T.j)((0,A.I)((0,b.V)((0,w.b)((0,M.q)((0,x.A)((0,u.M)((0,I.J)((0,v.p)((0,C.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new P({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new J.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,n)=>{const{save:i,saveAs:s}=await r.e(390).then(r.bind(r,10390));switch(e){case 0:return i(this,t);case 1:return s(this,n,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,n){if(!this.loaded||!e)return;const i=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let s=!1;const a=(0,y.aB)(n.origin);let o;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===a){const e=this.createSublayersForOrigin("service").sublayers;s=(0,j.Zx)(i,e,2)}else if(a>3){const e=this.createSublayersForOrigin("portal-item");s=(0,j.Zx)(i,e.sublayers,(0,y.aB)(e.origin)),o=e.originWithPartialOverrides}const l=[],u={writeSublayerStructure:s,...n,minimumWritableOrigin:o};let d=s||this.hasVisibleLayersForOrigin(a);i.forEach(e=>{const t=e.write({},u);l.push(t),d=d||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),d&&(t.visibleLayers=i.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,n){const i=n?.pixelRatio??1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=n?.floors??null,this._exportImageParameters.scale=n?.scale??(0,h.X_)({extent:e,width:t})*i;const s=this._exportImageParameters.toJSON(),a=!n?.rotation||this.version<10.3?{}:{rotation:-n.rotation},o=e?.spatialReference,u=(0,f.YX)(o);let d=this._exportImageParameters.scale/(0,h.X_)({extent:e,width:t});d=(0,l.Sp)(d,i)?i:d,s.dpi*=d;const p={};if(n?.timeExtent){const{start:e,end:t}=n.timeExtent.toJSON();p.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(p.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:u,imageSR:u,size:t+","+r,mapScale:this._exportImageParameters.scale,...s,...a,...p}}async fetchImage(e,t,r,n){const{data:i}=await this._fetchImage("image",e,t,r,n);return i}async fetchImageBitmap(e,t,r,n){const{data:i,url:s}=await this._fetchImage("blob",e,t,r,n);return(0,F.mn)(i,s,n)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,i.A)(this.url,t),{extent:n,fullExtent:s,timeExtent:a}=r,o=n||s;return{fullExtent:o&&m.A.fromJSON(o),timeExtent:a&&_.A.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,o.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,U.D)(this,e)}async _fetchImage(e,t,r,n,s){const o={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,n,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=o.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new a.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:o.query});try{const{data:e}=await(0,i.A)(l,o);return{data:e,url:l}}catch(e){if((0,d.zf)(e))throw e;throw new a.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,i.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,n.Cg)([(0,p.MZ)((0,R.P6)("dateFieldsTimeReference"))],B.prototype,"dateFieldsTimeZone",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean})],B.prototype,"datesInUnknownTimezone",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"dpi",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"gdbVersion",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"imageFormat",void 0),(0,n.Cg)([(0,V.w)("imageFormat",["supportedImageFormatTypes"])],B.prototype,"readImageFormat",null),(0,n.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],B.prototype,"imageMaxHeight",void 0),(0,n.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],B.prototype,"imageMaxWidth",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"imageTransparency",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],B.prototype,"isReference",void 0),(0,n.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],B.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,p.MZ)({type:["ArcGISMapServiceLayer"]})],B.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],B.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,p.MZ)((0,R.P6)("preferredTimeReference"))],B.prototype,"preferredTimeZone",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,p.MZ)({type:s.A.ofType(k.A),json:{write:{ignoreOrigin:!0}}})],B.prototype,"sublayers",void 0),(0,n.Cg)([(0,$.K)("sublayers",{layers:{type:[k.A]},visibleLayers:{type:[c.jz]}})],B.prototype,"writeSublayers",null),(0,n.Cg)([(0,p.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],B.prototype,"listMode",void 0),(0,n.Cg)([(0,p.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],B.prototype,"type",void 0),(0,n.Cg)([(0,p.MZ)(O.OZ)],B.prototype,"url",void 0),B=(0,n.Cg)([(0,p.$K)("esri.layers.MapImageLayer")],B);const q=B},82935(e,t,r){var n=r(5482),i=r(91429),s=r(89317),a=r(30524),o=r(96184),l=r(73133),u=r(79677),d=r(10184),p=r(36005);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}};r.d(t,["B",0,c,"e",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const n=r.timeOffset,i=l.j.fromJSON(r.timeOffsetUnits);return n&&i?new d.A({value:n,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,i.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,n.Cg)([(0,i.MZ)({type:d.A})],r.prototype,"timeOffset",void 0),(0,n.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,n.Cg)([(0,i.MZ)({value:null,type:o.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,n.Cg)([(0,i.MZ)(c)],r.prototype,"useViewTime",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},96184(e,t,r){r.d(t,{A:()=>y});var n=r(5482),i=r(69540),s=r(25482),a=r(91429),o=r(79677),l=r(10184),u=r(56400),d=r(36005),p=r(43937);function c(e,t){return l.A.fromJSON({value:e,unit:t})}let y=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?o.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?c(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?c(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,n.Cg)([(0,a.MZ)({type:o.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,d.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,p.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,a.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,n.Cg)([(0,d.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,n.Cg)([(0,p.K)("interval")],y.prototype,"writeInterval",null),(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,n.Cg)([(0,a.MZ)((0,u.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,n.Cg)([(0,a.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,n.Cg)([(0,a.$K)("esri.layers.support.TimeInfo")],y)},77548(e,t,r){r.d(t,{Gh:()=>D,tk:()=>T,BR:()=>I,p2:()=>M,qd:()=>A,wI:()=>x,G$:()=>O,$x:()=>Z,Ov:()=>b,cM:()=>c,UC:()=>y,Qz:()=>m,OP:()=>E,TU:()=>v,F2:()=>h,XX:()=>g,Qi:()=>w,jy:()=>S});var n=r(70333),i=r(11254),s=r(7762),a=(r(84952),r(36563)),o=r(36708),l=r(4146);const u=new WeakMap;function d(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,o.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||d(t))},t=>u.set(e,t),o.pc),(0,a.hA)(()=>u.delete(e))]),u.get(e))}function p(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function c(e){return p(e,"knowledge-graph")&&"layers"in e}function y(e){return p(e,"knowledge-graph-sublayer")}function m(e){return p(e,"link-chart")&&"layers"in e}function h(e){return p(e,"subtype-group")&&"sublayers"in e}function f(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const g={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function b(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function S(e){return function(e){return p(e,"catalog-footprint")}(e)||function(e){return p(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return p(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function C(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!S(e))return;const r=t?.graphic,n="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&n?C(n)?n:null:void 0}return e}return t?.checkFeatureReduction&&n?C(n)?n:null:e}async function x(e,t){const r=n.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;const a=`${e.slice(0,s)}/rest/info`,o=null!=t?t.signal:null,{data:l}=await(0,i.A)(a,{query:{f:"json"},responseType:"json",signal:o});return l?.owningSystemUrl||null}function I(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"parquet":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function T(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function A(e){const t=new s.A;for(const r of e.allLayers.concat(e.allTables))d(r)||f(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function Z(e,t){return null}function O(e){return null}function E(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function D(e,t){if(!t||!E(e))return;const r=(e.url,null);r&&(e.url=r)}},91908(e,t,r){r.d(t,{D:()=>s});var n=r(60694);const i=[];function s(e,t){if((0,n.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of i){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}i.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),i.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),i.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),i.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),i.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},16215(e,t,r){r.d(t,{S:()=>i});const n=Symbol("BasemapInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}r.d(t,["Y",0,n])},79677(e,t,r){r.d(t,{A:()=>p});var n,i=r(5482),s=r(25482),a=r(88930),o=r(91429),l=(r(98623),r(10184)),u=r(36005),d=r(43937);let p=class extends s.o{static{n=this}static get allTime(){return c}static get empty(){return y}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,a.lL)(r,new l.A({value:1,unit:e}),t));let i=this.end;if(i){const r=(0,a.lL)(i,new l.A({value:1,unit:e}),t);i=i.getTime()===r.getTime()?r:(0,a.S1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let a,o;return i>=t&&i<=r?a=i:t>=i&&t<=s&&(a=t),r>=i&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==a||null==o||isNaN(a)||isNaN(o)?n.empty:new n({start:a===-1/0?null:new Date(a),end:o===1/0?null:new Date(o)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const i=new n,{start:s,end:o}=this;return null!=s&&(i.start=(0,a.S1)(s,e,t,r)),null!=o&&(i.end=(0,a.S1)(o,e,t,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return c.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i.Cg)([(0,u.w)("end")],p.prototype,"readEnd",null),(0,i.Cg)([(0,d.K)("end")],p.prototype,"writeEnd",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i.Cg)([(0,u.w)("start")],p.prototype,"readStart",null),(0,i.Cg)([(0,d.K)("start")],p.prototype,"writeStart",null),p=n=(0,i.Cg)([(0,o.$K)("esri.time.TimeExtent")],p);const c=new p,y=new p({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>d});var n=r(5482),i=r(69540),s=r(25482),a=r(88930),o=r(91429),l=r(73133),u=r(93223);let d=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,u.e)(l.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,n.Cg)([(0,o.$K)("esri.time.TimeInterval")],d)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2733],{88930(e,t,r){r.d(t,{S1:()=>o,lL:()=>u,mi:()=>l,rb:()=>d,t:()=>p});var n=r(97770),i=(r(98623),r(92647));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function o(e,t,r,s="system"){if("unknown"===r)return e;const a=new i.oh((0,n.wj)(s)),o=i.c9.fromJSDate(e,{zone:a}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),o.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){const n=e.getTime(),i=p(t,r,"milliseconds");return new Date(n+i)}function u(e,t,r="system"){const{unit:s}=t,a=Math.max(1,Math.trunc(t.value)),o=new i.oh((0,n.wj)(r)),l=i.c9.fromJSDate(e,{zone:o}),u=e=>e-e%a;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*a,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function d(e){const t=s.exec(e);if(!t)return null;const{hh:r,mm:n,ss:i,ms:o}=t.groups;return Number(r)*a.hours+Number(n)*a.minutes+Number(i||0)*a.seconds+Number(o||0)}function p(e,t,r){return 0===e?0:e*a[t]/a[r]}},4146(e,t,r){r.d(t,{A:()=>v});var n=r(5482),i=r(11254),s=r(49186),a=r(65529),o=r(4902),l=r(92474),u=r(53966),d=r(17676),p=r(84952),c=r(91429),y=r(5443),m=r(16930),h=r(92602),f=r(79677);let g=0,v=class extends((0,a.Zt)((0,o.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await Promise.all([r.e(812),r.e(5613),r.e(909)]).then(r.bind(r,45613));try{return await n(t)}catch(e){const r=t?.portalItem,n=r?.id||"unset",i=r?.portal?.url||h.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,d.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,i.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,c.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,n.Cg)([(0,c.MZ)({type:y.A})],v.prototype,"fullExtent",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n.Cg)([(0,c.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n.Cg)([(0,c.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,c.MZ)({type:m.A})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,c.MZ)({type:String})],v.prototype,"title",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)()],v.prototype,"url",void 0),(0,n.Cg)([(0,c.MZ)({type:f.A})],v.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n.Cg)([(0,c.$K)("esri.layers.Layer")],v)},7656(e,t,r){r.r(t),r.d(t,{default:()=>q});var n=r(5482),i=r(11254),s=r(7762),a=r(49186),o=r(81583),l=r(34727),u=r(25728),d=r(17676),p=r(91429),c=r(56507),y=r(35666),m=r(5443),h=r(83960),f=r(21325),g=r(4146),v=r(52136),b=r(98534),w=r(18768),S=r(63074),C=r(69208),M=r(34287),x=r(8303),I=r(54310),T=r(25036),A=r(91921),Z=r(82935),O=r(10873),E=r(69622),D=r(39516);function L(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var j=r(63389);const N={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let P=class extends E.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=L(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,j.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(N[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const r=L(this.floors,t),n=(0,D.mA)(r,t.definitionExpression);return null!=n&&(e[t.id]=n),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,n=t=>{t.visible&&(0===r||(0,h.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(n):e.unshift(t))};t?.forEach(n);const i=this._get("visibleSublayers");return!i||i.length!==e.length||i.some((t,r)=>e[r]!==t)?e:i}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"dynamicLayers",null),(0,n.Cg)([(0,p.MZ)()],P.prototype,"floors",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"hasDynamicLayers",null),(0,n.Cg)([(0,p.MZ)()],P.prototype,"layer",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"layers",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"layerDefs",null),(0,n.Cg)([(0,p.MZ)({type:Number})],P.prototype,"scale",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"version",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"visibleSublayers",null),P=(0,n.Cg)([(0,p.$K)("esri.layers.support.ExportImageParameters")],P);var F=r(33446),k=r(15775),U=r(91908),J=r(88625),_=r(79677),R=r(56400),V=r(36005),$=r(43937);let B=class extends((0,S.dM)((0,Z.e)((0,T.j)((0,A.I)((0,b.V)((0,w.b)((0,M.q)((0,x.A)((0,u.M)((0,I.J)((0,v.p)((0,C.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new P({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new J.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,n)=>{const{save:i,saveAs:s}=await r.e(390).then(r.bind(r,10390));switch(e){case 0:return i(this,t);case 1:return s(this,n,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,n){if(!this.loaded||!e)return;const i=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let s=!1;const a=(0,y.aB)(n.origin);let o;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===a){const e=this.createSublayersForOrigin("service").sublayers;s=(0,j.Zx)(i,e,2)}else if(a>3){const e=this.createSublayersForOrigin("portal-item");s=(0,j.Zx)(i,e.sublayers,(0,y.aB)(e.origin)),o=e.originWithPartialOverrides}const l=[],u={writeSublayerStructure:s,...n,minimumWritableOrigin:o};let d=s||this.hasVisibleLayersForOrigin(a);i.forEach(e=>{const t=e.write({},u);l.push(t),d=d||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),d&&(t.visibleLayers=i.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,n){const i=n?.pixelRatio??1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=n?.floors??null,this._exportImageParameters.scale=n?.scale??(0,h.X_)({extent:e,width:t})*i;const s=this._exportImageParameters.toJSON(),a=!n?.rotation||this.version<10.3?{}:{rotation:-n.rotation},o=e?.spatialReference,u=(0,f.YX)(o);let d=this._exportImageParameters.scale/(0,h.X_)({extent:e,width:t});d=(0,l.Sp)(d,i)?i:d,s.dpi*=d;const p={};if(n?.timeExtent){const{start:e,end:t}=n.timeExtent.toJSON();p.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(p.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:u,imageSR:u,size:t+","+r,mapScale:this._exportImageParameters.scale,...s,...a,...p}}async fetchImage(e,t,r,n){const{data:i}=await this._fetchImage("image",e,t,r,n);return i}async fetchImageBitmap(e,t,r,n){const{data:i,url:s}=await this._fetchImage("blob",e,t,r,n);return(0,F.mn)(i,s,n)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,i.A)(this.url,t),{extent:n,fullExtent:s,timeExtent:a}=r,o=n||s;return{fullExtent:o&&m.A.fromJSON(o),timeExtent:a&&_.A.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,o.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,U.D)(this,e)}async _fetchImage(e,t,r,n,s){const o={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,n,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=o.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new a.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:o.query});try{const{data:e}=await(0,i.A)(l,o);return{data:e,url:l}}catch(e){if((0,d.zf)(e))throw e;throw new a.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,i.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,n.Cg)([(0,p.MZ)((0,R.P6)("dateFieldsTimeReference"))],B.prototype,"dateFieldsTimeZone",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean})],B.prototype,"datesInUnknownTimezone",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"dpi",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"gdbVersion",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"imageFormat",void 0),(0,n.Cg)([(0,V.w)("imageFormat",["supportedImageFormatTypes"])],B.prototype,"readImageFormat",null),(0,n.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],B.prototype,"imageMaxHeight",void 0),(0,n.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],B.prototype,"imageMaxWidth",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"imageTransparency",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],B.prototype,"isReference",void 0),(0,n.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],B.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,p.MZ)({type:["ArcGISMapServiceLayer"]})],B.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],B.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,p.MZ)((0,R.P6)("preferredTimeReference"))],B.prototype,"preferredTimeZone",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,p.MZ)({type:s.A.ofType(k.A),json:{write:{ignoreOrigin:!0}}})],B.prototype,"sublayers",void 0),(0,n.Cg)([(0,$.K)("sublayers",{layers:{type:[k.A]},visibleLayers:{type:[c.jz]}})],B.prototype,"writeSublayers",null),(0,n.Cg)([(0,p.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],B.prototype,"listMode",void 0),(0,n.Cg)([(0,p.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],B.prototype,"type",void 0),(0,n.Cg)([(0,p.MZ)(O.OZ)],B.prototype,"url",void 0),B=(0,n.Cg)([(0,p.$K)("esri.layers.MapImageLayer")],B);const q=B},82935(e,t,r){var n=r(5482),i=r(91429),s=r(89317),a=r(30524),o=r(96184),l=r(73133),u=r(79677),d=r(10184),p=r(36005);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}};r.d(t,["B",0,c,"e",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const n=r.timeOffset,i=l.j.fromJSON(r.timeOffsetUnits);return n&&i?new d.A({value:n,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,i.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,n.Cg)([(0,i.MZ)({type:d.A})],r.prototype,"timeOffset",void 0),(0,n.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,n.Cg)([(0,i.MZ)({value:null,type:o.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,n.Cg)([(0,i.MZ)(c)],r.prototype,"useViewTime",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},96184(e,t,r){r.d(t,{A:()=>y});var n=r(5482),i=r(69540),s=r(25482),a=r(91429),o=r(79677),l=r(10184),u=r(56400),d=r(36005),p=r(43937);function c(e,t){return l.A.fromJSON({value:e,unit:t})}let y=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?o.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?c(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?c(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,n.Cg)([(0,a.MZ)({type:o.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,d.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,p.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,a.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,n.Cg)([(0,d.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,n.Cg)([(0,p.K)("interval")],y.prototype,"writeInterval",null),(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,n.Cg)([(0,a.MZ)((0,u.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,n.Cg)([(0,a.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,n.Cg)([(0,a.$K)("esri.layers.support.TimeInfo")],y)},77548(e,t,r){r.d(t,{Gh:()=>D,tk:()=>T,BR:()=>I,p2:()=>M,qd:()=>A,wI:()=>x,G$:()=>O,$x:()=>Z,Ov:()=>b,cM:()=>c,UC:()=>y,Qz:()=>m,OP:()=>E,TU:()=>v,F2:()=>h,XX:()=>g,Qi:()=>w,jy:()=>S});var n=r(70333),i=r(11254),s=r(7762),a=(r(84952),r(36563)),o=r(36708),l=r(4146);const u=new WeakMap;function d(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,o.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||d(t))},t=>u.set(e,t),o.pc),(0,a.hA)(()=>u.delete(e))]),u.get(e))}function p(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function c(e){return p(e,"knowledge-graph")&&"layers"in e}function y(e){return p(e,"knowledge-graph-sublayer")}function m(e){return p(e,"link-chart")&&"layers"in e}function h(e){return p(e,"subtype-group")&&"sublayers"in e}function f(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const g={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function b(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function S(e){return function(e){return p(e,"catalog-footprint")}(e)||function(e){return p(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return p(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function C(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!S(e))return;const r=t?.graphic,n="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&n?C(n)?n:null:void 0}return e}return t?.checkFeatureReduction&&n?C(n)?n:null:e}async function x(e,t){const r=n.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;const a=`${e.slice(0,s)}/rest/info`,o=null!=t?t.signal:null,{data:l}=await(0,i.A)(a,{query:{f:"json"},responseType:"json",signal:o});return l?.owningSystemUrl||null}function I(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function T(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function A(e){const t=new s.A;for(const r of e.allLayers.concat(e.allTables))d(r)||f(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function Z(e,t){return null}function O(e){return null}function E(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function D(e,t){if(!t||!E(e))return;const r=(e.url,null);r&&(e.url=r)}},91908(e,t,r){r.d(t,{D:()=>s});var n=r(60694);const i=[];function s(e,t){if((0,n.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of i){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}i.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),i.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),i.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),i.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),i.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},16215(e,t,r){r.d(t,{S:()=>i});const n=Symbol("BasemapInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}r.d(t,["Y",0,n])},79677(e,t,r){r.d(t,{A:()=>p});var n,i=r(5482),s=r(25482),a=r(88930),o=r(91429),l=(r(98623),r(10184)),u=r(36005),d=r(43937);let p=class extends s.o{static{n=this}static get allTime(){return c}static get empty(){return y}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,a.lL)(r,new l.A({value:1,unit:e}),t));let i=this.end;if(i){const r=(0,a.lL)(i,new l.A({value:1,unit:e}),t);i=i.getTime()===r.getTime()?r:(0,a.S1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let a,o;return i>=t&&i<=r?a=i:t>=i&&t<=s&&(a=t),r>=i&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==a||null==o||isNaN(a)||isNaN(o)?n.empty:new n({start:a===-1/0?null:new Date(a),end:o===1/0?null:new Date(o)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const i=new n,{start:s,end:o}=this;return null!=s&&(i.start=(0,a.S1)(s,e,t,r)),null!=o&&(i.end=(0,a.S1)(o,e,t,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return c.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i.Cg)([(0,u.w)("end")],p.prototype,"readEnd",null),(0,i.Cg)([(0,d.K)("end")],p.prototype,"writeEnd",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i.Cg)([(0,u.w)("start")],p.prototype,"readStart",null),(0,i.Cg)([(0,d.K)("start")],p.prototype,"writeStart",null),p=n=(0,i.Cg)([(0,o.$K)("esri.time.TimeExtent")],p);const c=new p,y=new p({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>d});var n=r(5482),i=r(69540),s=r(25482),a=r(88930),o=r(91429),l=r(73133),u=r(93223);let d=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,u.e)(l.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,n.Cg)([(0,o.$K)("esri.time.TimeInterval")],d)}}]);
|