@arcgis/core 6.0.0-next.16 → 6.0.0-next.17
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/164c8eeefa8232b2b191.js +2 -0
- package/assets/esri/core/workers/chunks/1967b9c96045a5802d08.js +1 -0
- package/assets/esri/core/workers/chunks/{261fea092ee7d27608a0.js → 20a2124cbe43e5527c40.js} +1 -1
- package/assets/esri/core/workers/chunks/2853606099602f73d379.js +1 -0
- package/assets/esri/core/workers/chunks/2981e904ab62f3ed80d0.js +2 -0
- package/assets/esri/core/workers/chunks/32cc59e126df8c96a0cf.js +2 -0
- package/assets/esri/core/workers/chunks/{36cbd614454581aaf334.js → 34e0a8a3a2beea50f4f5.js} +1 -1
- package/assets/esri/core/workers/chunks/{3baa4a9c52f41bfd6abb.js → 3e30b96a8c75bd5b9ae2.js} +1 -1
- package/assets/esri/core/workers/chunks/{c79934cd6883307203f8.js → 42753cf4965a94bc91ca.js} +1 -1
- package/assets/esri/core/workers/chunks/{b564ec4e03478f5659db.js → 4c240ca50f70bf30813f.js} +1 -1
- package/assets/esri/core/workers/chunks/{70d3055f15d8b0cf4074.js → 532e9cda8ac3601d8892.js} +1 -1
- package/assets/esri/core/workers/chunks/{953ba13299e7aa92c1a0.js → 564565246dae080f5e6c.js} +1 -1
- package/assets/esri/core/workers/chunks/{2145a512d269d64036b0.js → 58c3ae6030def2ed5f31.js} +1 -1
- package/assets/esri/core/workers/chunks/5a19a9c3e01d3d415188.js +1 -0
- package/assets/esri/core/workers/chunks/5a830bc35adbedd33783.js +1 -0
- package/assets/esri/core/workers/chunks/{9f06ec95bdf0d0b52b41.js → 5b91e2dffdc84c006539.js} +1 -1
- package/assets/esri/core/workers/chunks/{5acb422fe3cf693d9d4f.js → 603fdbbe9534c614928f.js} +1 -1
- package/assets/esri/core/workers/chunks/{c5a9e77977e867a75ff2.js → 60f92eb03c6e17ab4747.js} +1 -1
- package/assets/esri/core/workers/chunks/{67ebc5a3d46b254b725c.js → 612345f17f5eeb99ea8f.js} +1 -1
- package/assets/esri/core/workers/chunks/{1b077c92345ffb5916c2.js → 65c98f3449044fa4fd79.js} +1 -1
- package/assets/esri/core/workers/chunks/{2bd4ee083ca4ad221f8b.js → 65cb5e39c467a35621ca.js} +1 -1
- package/assets/esri/core/workers/chunks/67a35155b8b4d36f171e.js +1 -0
- package/assets/esri/core/workers/chunks/{f9c5aa0bbf23e780fecc.js → 6ad309154fe84210d23c.js} +1 -1
- package/assets/esri/core/workers/chunks/784d6c6949284ed6e10b.js +1 -0
- package/assets/esri/core/workers/chunks/{e2190361247f35b02b32.js → 7b5cd150a4d0139850be.js} +1 -1
- package/assets/esri/core/workers/chunks/{9b051745d24d1f43480b.js → 7d2cbc767c336d15e4d5.js} +1 -1
- package/assets/esri/core/workers/chunks/{590e6c70206122e4cc3c.js → 844eedda8f749972f707.js} +2 -2
- package/assets/esri/core/workers/chunks/9503eedfdda55fc5adab.js +1 -0
- package/assets/esri/core/workers/chunks/999c23da883eb11cb29e.js +1 -0
- package/assets/esri/core/workers/chunks/9b6929faf649e81265fb.js +1 -0
- package/assets/esri/core/workers/chunks/a35c69a4751d28c39907.js +1 -0
- package/assets/esri/core/workers/chunks/{ec8b7476eac4718eb0ac.js → a504a5e06cb89a620799.js} +1 -1
- package/assets/esri/core/workers/chunks/a596779eaeec7310671d.js +1 -0
- package/assets/esri/core/workers/chunks/{d5d0fe8e198ff5a902ee.js → a5c8f9f5be4ef5063b42.js} +1 -1
- package/assets/esri/core/workers/chunks/{a7bd5ba4d7d97411fd33.js → ab1660f5f8a5268c2fac.js} +1 -1
- package/assets/esri/core/workers/chunks/{4bbe1f28f5f16a6bef05.js → ae0563d573baf91e01f7.js} +1 -1
- package/assets/esri/core/workers/chunks/b686cd74975da09b9c91.js +2 -0
- package/assets/esri/core/workers/chunks/{aa36c3a9bbaa086e3757.js → b8fd7c3b36981261378b.js} +1 -1
- package/assets/esri/core/workers/chunks/bd046399e05e759e0bc2.js +1 -0
- package/assets/esri/core/workers/chunks/bd46a04a9ee4ea9e6ef1.js +2 -0
- package/assets/esri/core/workers/chunks/bfb39590c548188f5052.js +1 -0
- package/assets/esri/core/workers/chunks/{bf35927979fc5e7e0478.js → dd0310184fe4832755a8.js} +1 -1
- package/assets/esri/core/workers/chunks/dfa5f1311806473e473f.js +1 -0
- package/assets/esri/core/workers/chunks/{634523cc7757da9020e4.js → fb70ab267a08e24b710f.js} +1 -1
- package/assets/esri/core/workers/chunks/fc139f251dc0523074e7.js +1 -0
- package/assets/esri/themes/base/widgets/_Weather.scss +1 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/lerc-wasm.js +1 -1
- package/config.js +1 -1
- package/core/sql/WhereGrammar.js +2 -2
- package/editing/sharedTemplates/executor/builders/equallySpaced.js +1 -1
- package/kernel.js +1 -1
- package/layers/ElevationLayer.js +1 -1
- package/layers/GeoJSONLayer.d.ts +1 -1
- package/layers/effects/parser.js +3 -3
- package/layers/raster/datasets/ImageServerRaster.js +1 -1
- package/layers/raster/formats/ElevationCodec.js +2 -0
- package/layers/raster/formats/Lerc.js +1 -1
- package/layers/support/LercWorker.js +1 -1
- package/layers/support/TileInfo.d.ts +1 -1
- package/layers/support/TileInfo.js +1 -1
- package/layers/support/layerOriginUtils.js +1 -1
- package/package.json +4 -4
- package/popup/FeaturesModel.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
- package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/OGCFeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/support/utils.js +1 -1
- package/time/TimeExtent.d.ts +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/support/MediaLayerInteraction.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/View.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
- package/views/interactive/snapping/SnappingManagerPool.js +1 -1
- package/views/interactive/snapping/allLayerSnapping.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +2 -1
- package/widgets/BasemapToggle/BasemapToggleViewModel.d.ts +2 -0
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +2 -1
- package/widgets/ElevationProfile/components/Statistics.js +1 -1
- package/widgets/Expand/ExpandViewModel.d.ts +2 -0
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/Fullscreen/FullscreenViewModel.d.ts +3 -1
- package/widgets/Home/HomeViewModel.d.ts +2 -0
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Swipe/SwipeViewModel.d.ts +2 -0
- package/widgets/Swipe/types.d.ts +9 -2
- package/widgets/TimeSlider/TimeSliderViewModel.d.ts +9 -5
- package/widgets/TimeSlider/types.d.ts +7 -0
- package/widgets/TimeSlider.d.ts +2 -3
- package/widgets/TimeSlider.js +1 -1
- package/widgets/Track/TrackViewModel.d.ts +4 -0
- package/widgets/Track/types.d.ts +1 -0
- package/widgets/support/Selector3D/selectorUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0050916e462e3c9e0627.js +0 -1
- package/assets/esri/core/workers/chunks/23c43f09c4a4749516e1.js +0 -1
- package/assets/esri/core/workers/chunks/34cbaf844730ac2d92c2.js +0 -2
- package/assets/esri/core/workers/chunks/3c301a689c7853c9fa67.js +0 -2
- package/assets/esri/core/workers/chunks/3f946c13ad97fbed867b.js +0 -1
- package/assets/esri/core/workers/chunks/604f0f4150fb79ee54c8.js +0 -1
- package/assets/esri/core/workers/chunks/6299be5e7e26bf3c6859.js +0 -1
- package/assets/esri/core/workers/chunks/6a8dd8b18b0b825b0c1b.js +0 -1
- package/assets/esri/core/workers/chunks/745a153d0cd34faa124e.js +0 -1
- package/assets/esri/core/workers/chunks/7572c2bc5062e66f6330.js +0 -1
- package/assets/esri/core/workers/chunks/76ab353d80d786777161.js +0 -2
- package/assets/esri/core/workers/chunks/7b5f3c79e0605c32b267.js +0 -1
- package/assets/esri/core/workers/chunks/8483c50ed8f280fd74bb.js +0 -1
- package/assets/esri/core/workers/chunks/8cb716f110d164030309.js +0 -1
- package/assets/esri/core/workers/chunks/91dd65cf877c8f2e01a7.js +0 -1
- package/assets/esri/core/workers/chunks/b49df4ebd4be1181b0f9.js +0 -2
- package/assets/esri/core/workers/chunks/b557824bc1fa163d72a3.js +0 -2
- package/assets/esri/core/workers/chunks/d311ff96a5a2791d8cfc.js +0 -1
- package/assets/esri/core/workers/chunks/f9ff27cfcf0538ac5e26.js +0 -1
- package/assets/esri/core/workers/chunks/fc44227c1756f65b95df.js +0 -1
- /package/assets/esri/core/workers/chunks/{b557824bc1fa163d72a3.js.LICENSE.txt → 164c8eeefa8232b2b191.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{b49df4ebd4be1181b0f9.js.LICENSE.txt → 2981e904ab62f3ed80d0.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{34cbaf844730ac2d92c2.js.LICENSE.txt → 32cc59e126df8c96a0cf.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{590e6c70206122e4cc3c.js.LICENSE.txt → 844eedda8f749972f707.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{3c301a689c7853c9fa67.js.LICENSE.txt → b686cd74975da09b9c91.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{76ab353d80d786777161.js.LICENSE.txt → bd46a04a9ee4ea9e6ef1.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7269],{40876(e,t,r){r.d(t,{Eq:()=>h,G1:()=>y,Q6:()=>v,TS:()=>s,V6:()=>i,Vm:()=>g,ay:()=>a,c1:()=>f,c4:()=>o,j5:()=>u,lT:()=>c,oW:()=>p,xV:()=>b});const l={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!l[e]||!!l[e.toLowerCase()]}function s(e){return l[e]??l[e.toLowerCase()]}function o(e){return[...s(e)]}function n(e,t,r){r<0&&++r,r>1&&--r;let l=6*r;return l<1?e+(t-e)*l:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function a(e,t,r,l=1){let i=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,o=2*r-s;return[Math.round(255*n(o,s,i+1/3)),Math.round(255*n(o,s,i)),Math.round(255*n(o,s,i-1/3)),l]}function u(e){let t=e.length>5,r=t?8:4,l=(1<<r)-1,i=t?1:17,s=t?9===e.length:5===e.length,o=Number("0x"+e.slice(1));if(isNaN(o))return null;let n,a=[0,0,0,1];return s&&(n=o&l,o>>=r,a[3]=i*n/255),n=o&l,o>>=r,a[2]=i*n,n=o&l,o>>=r,a[1]=i*n,n=o&l,o>>=r,a[0]=i*n,a}function p(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),l=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,l+16*l,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function c(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return a(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=f(e[0]),e[1]=f(e[1]),e[2]=f(e[2]),e[3]=4===e.length?y(e[3]):1,e}function h(e){let t=i(e)?s(e):null;return t??=c(e),t??=p(e),t}function g(e){let t=h(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function y(e){return m(e,0,1)}function f(e){return Math.round(m(e,0,255))}function m(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const w=1/2.2;function v(e){return e**2.2}function b(e){return e**w}r.d(t,["iw",0,w])},60999(e,t,r){r.d(t,{DZ:()=>g,Ke:()=>h,QA:()=>y,Tj:()=>p,UT:()=>f,aD:()=>w,jJ:()=>u});var l=r(32198),i=r(69622),s=r(97768),o=r(17676),n=r(10107),a=r(64108);function u(e,t,r){return(0,o.Lx)(e.map((e,l)=>t.apply(r,[e,l])))}async function p(e,t,r){return(await(0,o.Lx)(e.map((e,l)=>t.apply(r,[e,l])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function g(e){try{return c(await e)}catch(e){return(0,o.QP)(e),d(e)}}function y(e){if(!0===e.ok)return e.value;throw e.error}function f(e,t){return new m(e,t)}let m=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,l.Cg)([(0,n.MZ)()],m.prototype,"value",null),(0,l.Cg)([(0,n.MZ)()],m.prototype,"error",null),(0,l.Cg)([(0,n.MZ)()],m.prototype,"finished",null),(0,l.Cg)([(0,n.MZ)()],m.prototype,"promise",void 0),(0,l.Cg)([(0,n.MZ)()],m.prototype,"_result",void 0),m=(0,l.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],m);class w{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,l.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,l.hk)(t)}}}},90629(e,t,r){r.d(t,{Lz:()=>o,PN:()=>n,cr:()=>a,gs:()=>p,r_:()=>c,tc:()=>u}),r(39829);const l=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i=n(1),s=o(1);function o(e){return e?e/72*96:0}function n(e){return e?72*e/96:0}function a(e){if("string"==typeof e){let t=e.match(l);if(t){let r=Number(t[1]),l=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),s="px"===l?n(r):r;return i?-s:s}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function u(e=0,t=0){return{x:e,y:t}}function p(e=0,t=0){return[e,t]}function c(e=0,t=0,r=0){return[e,t,r]}r.d(t,["L7",0,s,"ps",0,i])},47314(e,t,r){r.r(t),r.d(t,{default:()=>T});var l,i=r(32198),s=r(56507),o=r(49186),n=r(25728),a=r(799),u=r(84952),p=r(91429),c=r(5443),d=r(86738),h=r(16930),g=r(4146),y=r(63074),f=r(34287),m=r(8303),w=r(54310),v=r(25036),b=r(33446),A=r(91806),M=r(87045),C=r(83703),I=r(36005),_=r(43937);let T=l=class extends((0,y.dM)((0,w.J)((0,v.j)((0,f.q)((0,m.A)((0,n.M)(g.A))))))){constructor(...e){super(...e),this.copyright="",this.fullExtent=new c.A(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,h.A.WebMercator),this.legendEnabled=!1,this.isReference=null,this.popupEnabled=!1,this.spatialReference=h.A.WebMercator,this.subDomains=null,this.tileInfo=new M.A({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new d.A({x:-20037508.342787,y:20037508.342787,spatialReference:h.A.WebMercator}),spatialReference:h.A.WebMercator,lods:[new A.A({level:0,scale:591657527.591555,resolution:156543.033928}),new A.A({level:1,scale:295828763.795777,resolution:78271.5169639999}),new A.A({level:2,scale:147914381.897889,resolution:39135.7584820001}),new A.A({level:3,scale:73957190.948944,resolution:19567.8792409999}),new A.A({level:4,scale:36978595.474472,resolution:9783.93962049996}),new A.A({level:5,scale:18489297.737236,resolution:4891.96981024998}),new A.A({level:6,scale:9244648.868618,resolution:2445.98490512499}),new A.A({level:7,scale:4622324.434309,resolution:1222.99245256249}),new A.A({level:8,scale:2311162.217155,resolution:611.49622628138}),new A.A({level:9,scale:1155581.108577,resolution:305.748113140558}),new A.A({level:10,scale:577790.554289,resolution:152.874056570411}),new A.A({level:11,scale:288895.277144,resolution:76.4370282850732}),new A.A({level:12,scale:144447.638572,resolution:38.2185141425366}),new A.A({level:13,scale:72223.819286,resolution:19.1092570712683}),new A.A({level:14,scale:36111.909643,resolution:9.55462853563415}),new A.A({level:15,scale:18055.954822,resolution:4.77731426794937}),new A.A({level:16,scale:9027.977411,resolution:2.38865713397468}),new A.A({level:17,scale:4513.988705,resolution:1.19432856685505}),new A.A({level:18,scale:2256.994353,resolution:.597164283559817}),new A.A({level:19,scale:1128.497176,resolution:.298582141647617}),new A.A({level:20,scale:564.248588,resolution:.14929107082380833}),new A.A({level:21,scale:282.124294,resolution:.07464553541190416}),new A.A({level:22,scale:141.062147,resolution:.03732276770595208}),new A.A({level:23,scale:70.5310735,resolution:.01866138385297604})]}),this.type="web-tile",this.urlTemplate=null,this.wmtsInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{urlTemplate:e,...t}:e}load(e){let t=this.loadFromPortal({supportedTypes:["WMTS"]},e).then(()=>{let e="";if(this.urlTemplate)if(this.spatialReference.equals(this.tileInfo.spatialReference)){let t=new u.s0(this.urlTemplate);!(this.subDomains&&this.subDomains.length>0)&&t.authority?.includes("{subDomain}")&&(e="is missing 'subDomains' property")}else e="spatialReference must match tileInfo.spatialReference";else e="is missing the required 'urlTemplate' property value";if(e)throw new o.A("web-tile-layer:load",`WebTileLayer (title: '${this.title}', id: '${this.id}') ${e}`)});return this.addResolvingPromise(t),Promise.resolve(this)}get levelValues(){let e=[];if(!this.tileInfo)return null;for(let t of this.tileInfo.lods)e[t.level]=t.levelValue||t.level;return e}get loaded(){return super.loaded}readSpatialReference(e,t){return e||h.A.fromJSON(t.fullExtent?.spatialReference)}get tileServers(){if(!this.urlTemplate)return null;let e=[],{urlTemplate:t,subDomains:r}=this,l=new u.s0(t),i=l.scheme?l.scheme+"://":"//",s=i+l.authority+"/",o=l.authority;if(o?.includes("{subDomain}")){if(r&&r.length>0&&o.split(".").length>1)for(let t of r)e.push(i+o.replaceAll(/\{subDomain\}/gi,t)+"/")}else e.push(s);return e.map(u.Il)}get urlPath(){if(!this.urlTemplate)return null;let e=this.urlTemplate,t=new u.s0(e),r=(t.scheme?t.scheme+"://":"//")+t.authority+"/";return e.slice(r.length)}readUrlTemplate(e,t){return e||t.templateUrl}writeUrlTemplate(e,t){(0,u.BQ)(e)&&(e="https:"+e),e&&=(e=e.replaceAll(/\{z\}/gi,"{level}").replaceAll(/\{x\}/gi,"{col}").replaceAll(/\{y\}/gi,"{row}"),(0,u.S8)(e)),t.templateUrl=e}fetchTile(e,t,r,l={}){let{signal:i}=l,o=this.getTileUrl(e,t,r),n={responseType:"image",signal:i,query:{...this.refreshParameters}};return(0,s.A)(o,n).then(e=>e.data)}async fetchImageBitmapTile(e,t,r,i={}){let{signal:o}=i;if(this.fetchTile!==l.prototype.fetchTile){let l=await this.fetchTile(e,t,r,i);return(0,b.Cp)(l,e,t,r,i)}let n=this.getTileUrl(e,t,r),a={responseType:"blob",signal:o,query:{...this.refreshParameters}},{data:u}=await(0,s.A)(n,a);return(0,b.Cp)(u,e,t,r,i)}getTileUrl(e,t,r){let{levelValues:l,tileServers:i,urlPath:s}=this;if(!l||!i||!s)return"";let o=l[e];return i[t%i.length]+(0,a.HC)(s,{level:o,z:o,col:r,x:r,row:t,y:t})}};(0,i.Cg)([(0,p.MZ)({type:String,value:"",json:{write:!0}})],T.prototype,"copyright",void 0),(0,i.Cg)([(0,p.MZ)({type:c.A,json:{write:!0},nonNullable:!0})],T.prototype,"fullExtent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:!1}})],T.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide"]})],T.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!0,write:!0}})],T.prototype,"blendMode",void 0),(0,i.Cg)([(0,p.MZ)()],T.prototype,"levelValues",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],T.prototype,"isReference",void 0),(0,i.Cg)([(0,p.MZ)({type:["WebTiledLayer"],value:"WebTiledLayer"})],T.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:!1}})],T.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:h.A})],T.prototype,"spatialReference",void 0),(0,i.Cg)([(0,I.w)("spatialReference",["spatialReference","fullExtent.spatialReference"])],T.prototype,"readSpatialReference",null),(0,i.Cg)([(0,p.MZ)({type:[String],json:{write:!0}})],T.prototype,"subDomains",void 0),(0,i.Cg)([(0,p.MZ)({type:M.A,json:{write:!0}})],T.prototype,"tileInfo",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],T.prototype,"tileServers",null),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],T.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)()],T.prototype,"urlPath",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{"portal-item":{read:{source:"url"}}}}})],T.prototype,"urlTemplate",void 0),(0,i.Cg)([(0,I.w)("urlTemplate",["urlTemplate","templateUrl"])],T.prototype,"readUrlTemplate",null),(0,i.Cg)([(0,_.K)("urlTemplate",{templateUrl:{type:String}})],T.prototype,"writeUrlTemplate",null),(0,i.Cg)([(0,p.MZ)({type:C.x,json:{write:!0}})],T.prototype,"wmtsInfo",void 0),T=l=(0,i.Cg)([(0,p.$K)("esri.layers.WebTileLayer")],T)},8303(e,t,r){var l=r(32198),i=r(92602),s=r(70333),o=r(56507),n=r(60999),a=r(49186),u=r(36563),p=r(53966),c=r(97768),d=r(17676),h=r(84952),g=r(91429),y=r(77548),f=r(20655),m=r(80812),w=r(41318),v=r(10407),b=r(26121),A=r(36005),M=r(43937);const C={credential:null,user:null};r.d(t,["A",0,e=>{let t=e,I=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{let{load:l}=await r.e(1204).then(()=>r(41204));return(0,d.Te)(t),await l({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||p.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;let l=t?.signal?null:new AbortController;try{let{reload:i}=await r.e(1204).then(()=>r(41204));return l&&this.addHandles((0,u.rE)(l),"reloadFromPortal"),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:l.signal})}catch(e){throw(0,d.zf)(e)||p.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{l&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:r,fullEdit:l},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",l),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);let l,i,o=!s.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,o);if(n)l=r.portal.url;else try{l=await(0,y.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!l||!(0,h.b8)(l,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;i=await(s.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}if(!i)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(n?await r.reload():(r=new m.default({id:e,portal:{url:l}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,o)}catch(e){(0,d.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){let t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;let r=C.credential===t?C.user:await this._fetchEditingUser(e);return C.credential=t,C.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let l=`${r.owningSystemUrl}/sharing/rest`,i=f.A.getDefault();if(i&&i.loaded&&(0,h.S8)(i.restUrl)===(0,h.S8)(l))return i.user;let a=`${l}/community/self`,u=null==e?null:e.signal,p=await(0,n.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){return(0,b.wN)(this.portalItem,t)?(t?.messages?.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,l.Cg)([(0,g.MZ)({type:m.default})],I.prototype,"portalItem",null),(0,l.Cg)([(0,A.w)("web-document","portalItem",["itemId"])],I.prototype,"readPortalItem",null),(0,l.Cg)([(0,M.K)("web-document","portalItem",{itemId:{type:String}})],I.prototype,"writePortalItem",null),(0,l.Cg)([(0,g.MZ)({clonable:!1})],I.prototype,"resourceReferences",void 0),(0,l.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasEditingPrivileges",void 0),(0,l.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasFullEditingPrivileges",void 0),(0,l.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasUpdateItemPrivileges",void 0),I=(0,l.Cg)([(0,g.$K)("esri.layers.mixins.PortalLayer")],I),I}])},91806(e,t,r){r.d(t,{A:()=>a});var l,i=r(32198),s=r(25482),o=r(91429),n=r(78888);let a=class extends s.o{static{l=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new l({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,i.Cg)([(0,o.MZ)({type:n.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=l=(0,i.Cg)([(0,o.$K)("esri.layers.support.LOD")],a)},87045(e,t,r){r.d(t,{A:()=>v});var l,i=r(32198),s=r(66552),o=r(25482),n=r(86211),a=r(91429),u=r(78888),p=r(86738),c=r(16930),d=r(21325),h=r(28735),g=r(91806),y=r(72802),f=r(36005),m=r(43937);const w=new s.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let v=class extends o.o{static{l=this}static create(e={}){let{resolutionFactor:t=1,scales:r,size:i=256,spatialReference:s=c.A.WebMercator,numLODs:o=24}=e;if(!(0,d.fn)(s)){let e=[];if(r)for(let t=0;t<r.length;t++){let l=r[t];e.push(new g.A({level:t,scale:l,resolution:l}))}else{let t=5e-4;for(let r=o-1;r>=0;r--)e.unshift(new g.A({level:r,scale:t,resolution:t})),t*=2}return new l({dpi:96,lods:e,origin:new p.A(0,0,s),size:[i,i],spatialReference:s})}let a=(0,d.Vp)(s),u=e.origin?new p.A({x:e.origin.x,y:e.origin.y,spatialReference:s}):a?new p.A({x:a.origin[0],y:a.origin[1],spatialReference:s}):new p.A({x:0,y:0,spatialReference:s}),h=1/(39.37*(0,n.GA)(s)*96),y=[];if(r)for(let e=0;e<r.length;e++){let t=r[e],l=t*h;y.push(new g.A({level:e,scale:t,resolution:l}))}else{let e=(0,d.EA)(s)?512/i*591657527.5917094:256/i*591657527.591555,r=Math.ceil(o/t);y.push(new g.A({level:0,scale:e,resolution:e*h}));for(let l=1;l<r;l++){let r=e/2**t,i=r*h;y.push(new g.A({level:l,scale:r,resolution:i})),e=r}}return new l({dpi:96,lods:y,origin:u,size:[i,i],spatialReference:s})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){let{spatialReference:e,origin:t}=this;if(e&&t){let r=(0,d.Vp)(e);return e.isWrappable&&!!r&&Math.abs(r.origin[0]-t.x)<=r.dx}return!1}readOrigin(e,t){return p.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,r=0,l=[],i=this._levelToLOD={};e&&(t=-1/0,r=1/0,e.forEach(e=>{l.push(e.scale),t=e.scale>t?e.scale:t,r=e.scale<r?e.scale:r,i[e.level]=e})),this._set("scales",l),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){let t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];let r=Math.floor(e),l=r+1;return t[r]/(t[r]/t[l])**(e-r)}scaleToZoom(e){let t=this.scales,r=t.length-1,l=0;for(;l<r;l++){let r=t[l],i=t[l+1];if(r<=e)return l;if(i===e)return l+1;if(r>e&&i<e)return l+Math.log(r/e)/Math.log(r/i)}return l}tileAt(e,t,r,l){let i,s,o=this.lodAt(e);if(!o)return null;if("number"==typeof t)i=t,s=r;else if((0,d.aI)(t.spatialReference,this.spatialReference))i=t.x,s=t.y,l=r;else{let e=(0,h.Cv)(t,this.spatialReference);if(null==e)return null;i=e.x,s=e.y,l=r}let n=o.resolution*this.size[0],a=o.resolution*this.size[1];return l??=new y.U(0,0,0),l.level=e,l.row=Math.floor((this.origin.y-s)/a+.001),l.col=Math.floor((i-this.origin.x)/n+.001),this.updateTileInfo(l),l}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let r=this.lodAt(e.level);if(!r&&1===t){let t=this.lods[this.lods.length-1];t.level<e.level&&(r=t)}if(!r)return!1;let l=e.level-r.level,i=r.resolution*this.size[0]/2**l,s=r.resolution*this.size[1]/2**l;return e.extent[0]=this.origin.x+e.col*i,e.extent[1]=this.origin.y-(e.row+1)*s,e.extent[2]=e.extent[0]+i,e.extent[3]=e.extent[1]+s,!0}upsampleTile(e){let t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){let r=this.lodAt(t.level);if(null==r)return null;let{resolution:l}=r,i=l*this.size[0],s=l*this.size[1];return e[0]=this.origin.x+t.col*i,e[1]=this.origin.y-(t.row+1)*s,e[2]=e[0]+i,e[3]=e[1]+s,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return l.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;let t=(512===this.size[0]&&256===e?-1:0)+ +!!this.spatialReference.isGeographic;if(this.size[0]===e&&0===t)return this;let r=[],i=this.lods.length-t;for(let e=0;e<i;e++){let l=e+t,{scale:i,resolution:s}=l>=0?this.lods[l]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};r.push(new g.A({level:e,scale:i,resolution:s}))}return new l({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:r})}_initializeUpsampleLevels(){let e=this.lods;this._upsampleLevels=[];let t=null;for(let r=0;r<e.length;r++){let l=e[r];this._upsampleLevels[l.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/l.resolution:0},t=l}}};(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"compressionQuality",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"dpi",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:w.read,write:w.write,origins:{"web-scene":{read:!1,write:!1}}}})],v.prototype,"format",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"isWrappable",null),(0,i.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],v.prototype,"origin",void 0),(0,i.Cg)([(0,f.w)("origin")],v.prototype,"readOrigin",null),(0,i.Cg)([(0,a.MZ)({type:[g.A],value:null,json:{write:!0}})],v.prototype,"lods",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"scales",void 0),(0,i.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],v.prototype,"size",void 0),(0,i.Cg)([(0,f.w)("size",["rows","cols"])],v.prototype,"readSize",null),(0,i.Cg)([(0,m.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],v.prototype,"writeSize",null),(0,i.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),v=l=(0,i.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],v)},72802(e,t,r){r.d(t,{U:()=>i});var l=r(19419);class i{constructor(e,t,r,i=(0,l.vt)()){this._level=e,this._row=t,this._col=r,this.extent=i}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new i(e.level,e.row,e.col,e.extent)}}},83703(e,t,r){r.d(t,{x:()=>a});var l,i=r(32198),s=r(25482),o=r(4718),n=r(91429);let a=l=class extends s.o{constructor(e){super(e)}clone(){return new l({customLayerParameters:(0,o.o8)(this.customLayerParameters),customParameters:(0,o.o8)(this.customParameters),layerIdentifier:this.layerIdentifier,tileMatrixSet:this.tileMatrixSet,url:this.url})}};(0,i.Cg)([(0,n.MZ)({json:{type:Object,write:!0}})],a.prototype,"customLayerParameters",void 0),(0,i.Cg)([(0,n.MZ)({json:{type:Object,write:!0}})],a.prototype,"customParameters",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"layerIdentifier",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"tileMatrixSet",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=l=(0,i.Cg)([(0,n.$K)("esri.layers.support.WMTSLayerInfo")],a)},33446(e,t,r){r.d(t,{Cp:()=>o,mn:()=>s});var l=r(49186),i=r(17676);async function s(e,t,r){let s;try{s=await n(e,r)}catch(e){throw new l.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,i.Te)(r),s}async function o(e,t,r,s,o){let a;try{a=await n(e,o)}catch(e){throw new l.A("request:server",`Unable to load tile ${t}/${r}/${s}`,{error:e,level:t,row:r,col:s})}return(0,i.Te)(o),a}async function n(e,t){let r=await createImageBitmap(e,{imageOrientation:t?.imageOrientation??"none"}),l=t?.type??(e instanceof Blob?e.type.startsWith("image/")?e.type:t?.allowDeriveTypeFromData?await async function(e){return e.byteLength<2?"unknown":137===e[0]&&80===e[1]?"image/png":71===e[0]&&73===e[1]?"image/gif":66===e[0]&&77===e[1]?"image/bmp":255===e[0]&&216===e[1]?"image/jpeg":"unknown"}(await e.bytes()):void 0:void 0);return new a(r,l)}class a{constructor(e,t){this.bitmap=e,this.type=t}get isOpaque(){return"image/jpeg"===this.type}}},10407(e,t,r){r.d(t,{It:()=>h,LG:()=>o,OM:()=>u,Sm:()=>p,Y:()=>n,bK:()=>a,sQ:()=>c});var l=r(99917),i=r(16930),s=r(28735);function o(e,t){if(!n(e,t)){let r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function n(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return n(e,d.HOSTED_SERVICE)}function u(e,t){let r=e.typeKeywords;if(r){let e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?o(e,t):u(e,t)}async function c(e){let t,r=e.clone().normalize();if(r.length>1)for(let e of r)t?e.width>t.width&&(t=e):t=e;else t=r[0];return async function(e){let t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);let r=i.A.WGS84;return await(0,l.initializeProjection)(t,r),(0,l.project)(e,r)}(t)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function h(e){let{portal:t,isOrgItem:r,itemControl:l}=e,i=t.user?.privileges,s=!i||i.includes("features:user:edit"),o=!!r&&!!i?.includes("features:user:fullEdit"),n="update"===l||"admin"===l;return n?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:n}}}r.d(t,["mm",0,d])},78553(e,t,r){r.d(t,{D:()=>s,p:()=>i});var l=r(78888);function i(e){let t=(0,l.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){let t=1-e/100;return Math.max(0,Math.min(t,1))}},26121(e,t,r){r.d(t,{I6:()=>p,ci:()=>u,dL:()=>a,wN:()=>c});var l=r(49186),i=r(84952),s=r(77548),o=r(20655),n=r(59923);async function a(e){let t=[];for(let r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){let e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function u(e,t,r){let i=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new l.A(e,t,r));if(e.blockedRelativeUrls&&(i=i.concat(e.blockedRelativeUrls.map(e=>(0,n.GL)("url",`Relative url '${e}' is not supported`)))),r){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:l}=r;e&&(i=i.filter(({name:e})=>!(n.MG.has(e)||t.includes(e)))),l&&(i=i.filter(e=>"web-document-write:property-required"!==e.name))}if(i.length>0)throw new l.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:i})}function p(e){return(0,s.qd)(e).some(e=>!!e.charts?.length)}function c(e,t){let r=t?.portal,l=e?.id&&(e.portal||o.A.getDefault());return!!r&&!!l&&!(0,i.ut)(l.restUrl,r.restUrl)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7269],{40876(e,t,r){r.d(t,{Eq:()=>h,G1:()=>y,Q6:()=>v,TS:()=>s,V6:()=>i,Vm:()=>g,ay:()=>a,c1:()=>f,c4:()=>o,j5:()=>u,lT:()=>c,oW:()=>p,xV:()=>b});const l={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!l[e]||!!l[e.toLowerCase()]}function s(e){return l[e]??l[e.toLowerCase()]}function o(e){return[...s(e)]}function n(e,t,r){r<0&&++r,r>1&&--r;let l=6*r;return l<1?e+(t-e)*l:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function a(e,t,r,l=1){let i=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,o=2*r-s;return[Math.round(255*n(o,s,i+1/3)),Math.round(255*n(o,s,i)),Math.round(255*n(o,s,i-1/3)),l]}function u(e){let t=e.length>5,r=t?8:4,l=(1<<r)-1,i=t?1:17,s=t?9===e.length:5===e.length,o=Number("0x"+e.slice(1));if(isNaN(o))return null;let n,a=[0,0,0,1];return s&&(n=o&l,o>>=r,a[3]=i*n/255),n=o&l,o>>=r,a[2]=i*n,n=o&l,o>>=r,a[1]=i*n,n=o&l,o>>=r,a[0]=i*n,a}function p(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),l=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,l+16*l,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function c(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return a(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=f(e[0]),e[1]=f(e[1]),e[2]=f(e[2]),e[3]=4===e.length?y(e[3]):1,e}function h(e){let t=i(e)?s(e):null;return t??=c(e),t??=p(e),t}function g(e){let t=h(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function y(e){return m(e,0,1)}function f(e){return Math.round(m(e,0,255))}function m(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const w=1/2.2;function v(e){return e**2.2}function b(e){return e**w}r.d(t,["iw",0,w])},60999(e,t,r){r.d(t,{DZ:()=>g,Ke:()=>h,QA:()=>y,Tj:()=>p,UT:()=>f,aD:()=>w,jJ:()=>u});var l=r(32198),i=r(69622),s=r(97768),o=r(17676),n=r(10107),a=r(64108);function u(e,t,r){return(0,o.Lx)(e.map((e,l)=>t.apply(r,[e,l])))}async function p(e,t,r){return(await(0,o.Lx)(e.map((e,l)=>t.apply(r,[e,l])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function g(e){try{return c(await e)}catch(e){return(0,o.QP)(e),d(e)}}function y(e){if(!0===e.ok)return e.value;throw e.error}function f(e,t){return new m(e,t)}let m=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,l.Cg)([(0,n.MZ)()],m.prototype,"value",null),(0,l.Cg)([(0,n.MZ)()],m.prototype,"error",null),(0,l.Cg)([(0,n.MZ)()],m.prototype,"finished",null),(0,l.Cg)([(0,n.MZ)()],m.prototype,"promise",void 0),(0,l.Cg)([(0,n.MZ)()],m.prototype,"_result",void 0),m=(0,l.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],m);class w{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,l.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,l.hk)(t)}}}},90629(e,t,r){r.d(t,{Lz:()=>o,PN:()=>n,cr:()=>a,gs:()=>p,r_:()=>c,tc:()=>u}),r(39829);const l=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i=n(1),s=o(1);function o(e){return e?e/72*96:0}function n(e){return e?72*e/96:0}function a(e){if("string"==typeof e){let t=e.match(l);if(t){let r=Number(t[1]),l=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),s="px"===l?n(r):r;return i?-s:s}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function u(e=0,t=0){return{x:e,y:t}}function p(e=0,t=0){return[e,t]}function c(e=0,t=0,r=0){return[e,t,r]}r.d(t,["L7",0,s,"ps",0,i])},47314(e,t,r){r.r(t),r.d(t,{default:()=>P});var l,i=r(32198),s=r(56507),o=r(49186),n=r(25728),a=r(799),u=r(84952),p=r(91429),c=r(5443),d=r(86738),h=r(16930),g=r(4146),y=r(63074),f=r(34287),m=r(8303),w=r(54310),v=r(25036),b=r(33446),A=r(91806),M=r(87045),C=r(83703),I=r(36005),_=r(43937);let P=l=class extends((0,y.dM)((0,w.J)((0,v.j)((0,f.q)((0,m.A)((0,n.M)(g.A))))))){constructor(...e){super(...e),this.copyright="",this.fullExtent=new c.A(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,h.A.WebMercator),this.legendEnabled=!1,this.isReference=null,this.popupEnabled=!1,this.spatialReference=h.A.WebMercator,this.subDomains=null,this.tileInfo=new M.A({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new d.A({x:-20037508.342787,y:20037508.342787,spatialReference:h.A.WebMercator}),spatialReference:h.A.WebMercator,lods:[new A.A({level:0,scale:591657527.591555,resolution:156543.033928}),new A.A({level:1,scale:295828763.795777,resolution:78271.5169639999}),new A.A({level:2,scale:147914381.897889,resolution:39135.7584820001}),new A.A({level:3,scale:73957190.948944,resolution:19567.8792409999}),new A.A({level:4,scale:36978595.474472,resolution:9783.93962049996}),new A.A({level:5,scale:18489297.737236,resolution:4891.96981024998}),new A.A({level:6,scale:9244648.868618,resolution:2445.98490512499}),new A.A({level:7,scale:4622324.434309,resolution:1222.99245256249}),new A.A({level:8,scale:2311162.217155,resolution:611.49622628138}),new A.A({level:9,scale:1155581.108577,resolution:305.748113140558}),new A.A({level:10,scale:577790.554289,resolution:152.874056570411}),new A.A({level:11,scale:288895.277144,resolution:76.4370282850732}),new A.A({level:12,scale:144447.638572,resolution:38.2185141425366}),new A.A({level:13,scale:72223.819286,resolution:19.1092570712683}),new A.A({level:14,scale:36111.909643,resolution:9.55462853563415}),new A.A({level:15,scale:18055.954822,resolution:4.77731426794937}),new A.A({level:16,scale:9027.977411,resolution:2.38865713397468}),new A.A({level:17,scale:4513.988705,resolution:1.19432856685505}),new A.A({level:18,scale:2256.994353,resolution:.597164283559817}),new A.A({level:19,scale:1128.497176,resolution:.298582141647617}),new A.A({level:20,scale:564.248588,resolution:.14929107082380833}),new A.A({level:21,scale:282.124294,resolution:.07464553541190416}),new A.A({level:22,scale:141.062147,resolution:.03732276770595208}),new A.A({level:23,scale:70.5310735,resolution:.01866138385297604})]}),this.type="web-tile",this.urlTemplate=null,this.wmtsInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{urlTemplate:e,...t}:e}load(e){let t=this.loadFromPortal({supportedTypes:["WMTS"]},e).then(()=>{let e="";if(this.urlTemplate)if(this.spatialReference.equals(this.tileInfo.spatialReference)){let t=new u.s0(this.urlTemplate);!(this.subDomains&&this.subDomains.length>0)&&t.authority?.includes("{subDomain}")&&(e="is missing 'subDomains' property")}else e="spatialReference must match tileInfo.spatialReference";else e="is missing the required 'urlTemplate' property value";if(e)throw new o.A("web-tile-layer:load",`WebTileLayer (title: '${this.title}', id: '${this.id}') ${e}`)});return this.addResolvingPromise(t),Promise.resolve(this)}get levelValues(){let e=[];if(!this.tileInfo)return null;for(let t of this.tileInfo.lods)e[t.level]=t.levelValue||t.level;return e}get loaded(){return super.loaded}readSpatialReference(e,t){return e||h.A.fromJSON(t.fullExtent?.spatialReference)}get tileServers(){if(!this.urlTemplate)return null;let e=[],{urlTemplate:t,subDomains:r}=this,l=new u.s0(t),i=l.scheme?l.scheme+"://":"//",s=i+l.authority+"/",o=l.authority;if(o?.includes("{subDomain}")){if(r&&r.length>0&&o.split(".").length>1)for(let t of r)e.push(i+o.replaceAll(/\{subDomain\}/gi,t)+"/")}else e.push(s);return e.map(u.Il)}get urlPath(){if(!this.urlTemplate)return null;let e=this.urlTemplate,t=new u.s0(e),r=(t.scheme?t.scheme+"://":"//")+t.authority+"/";return e.slice(r.length)}readUrlTemplate(e,t){return e||t.templateUrl}writeUrlTemplate(e,t){(0,u.BQ)(e)&&(e="https:"+e),e&&=(e=e.replaceAll(/\{z\}/gi,"{level}").replaceAll(/\{x\}/gi,"{col}").replaceAll(/\{y\}/gi,"{row}"),(0,u.S8)(e)),t.templateUrl=e}fetchTile(e,t,r,l={}){let{signal:i}=l,o=this.getTileUrl(e,t,r),n={responseType:"image",signal:i,query:{...this.refreshParameters}};return(0,s.A)(o,n).then(e=>e.data)}async fetchImageBitmapTile(e,t,r,i={}){let{signal:o}=i;if(this.fetchTile!==l.prototype.fetchTile){let l=await this.fetchTile(e,t,r,i);return(0,b.Cp)(l,e,t,r,i)}let n=this.getTileUrl(e,t,r),a={responseType:"blob",signal:o,query:{...this.refreshParameters}},{data:u}=await(0,s.A)(n,a);return(0,b.Cp)(u,e,t,r,i)}getTileUrl(e,t,r){let{levelValues:l,tileServers:i,urlPath:s}=this;if(!l||!i||!s)return"";let o=l[e];return i[t%i.length]+(0,a.HC)(s,{level:o,z:o,col:r,x:r,row:t,y:t})}};(0,i.Cg)([(0,p.MZ)({type:String,value:"",json:{write:!0}})],P.prototype,"copyright",void 0),(0,i.Cg)([(0,p.MZ)({type:c.A,json:{write:!0},nonNullable:!0})],P.prototype,"fullExtent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:!1}})],P.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide"]})],P.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!0,write:!0}})],P.prototype,"blendMode",void 0),(0,i.Cg)([(0,p.MZ)()],P.prototype,"levelValues",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],P.prototype,"isReference",void 0),(0,i.Cg)([(0,p.MZ)({type:["WebTiledLayer"],value:"WebTiledLayer"})],P.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:!1}})],P.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:h.A})],P.prototype,"spatialReference",void 0),(0,i.Cg)([(0,I.w)("spatialReference",["spatialReference","fullExtent.spatialReference"])],P.prototype,"readSpatialReference",null),(0,i.Cg)([(0,p.MZ)({type:[String],json:{write:!0}})],P.prototype,"subDomains",void 0),(0,i.Cg)([(0,p.MZ)({type:M.A,json:{write:!0}})],P.prototype,"tileInfo",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"tileServers",null),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],P.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)()],P.prototype,"urlPath",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{"portal-item":{read:{source:"url"}}}}})],P.prototype,"urlTemplate",void 0),(0,i.Cg)([(0,I.w)("urlTemplate",["urlTemplate","templateUrl"])],P.prototype,"readUrlTemplate",null),(0,i.Cg)([(0,_.K)("urlTemplate",{templateUrl:{type:String}})],P.prototype,"writeUrlTemplate",null),(0,i.Cg)([(0,p.MZ)({type:C.x,json:{write:!0}})],P.prototype,"wmtsInfo",void 0),P=l=(0,i.Cg)([(0,p.$K)("esri.layers.WebTileLayer")],P)},8303(e,t,r){var l=r(32198),i=r(92602),s=r(70333),o=r(56507),n=r(60999),a=r(49186),u=r(36563),p=r(53966),c=r(97768),d=r(17676),h=r(84952),g=r(91429),y=r(77548),f=r(20655),m=r(80812),w=r(41318),v=r(10407),b=r(26121),A=r(36005),M=r(43937);const C={credential:null,user:null};r.d(t,["A",0,e=>{let t=e,I=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{let{load:l}=await r.e(1204).then(()=>r(41204));return(0,d.Te)(t),await l({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||p.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;let l=t?.signal?null:new AbortController;try{let{reload:i}=await r.e(1204).then(()=>r(41204));return l&&this.addHandles((0,u.rE)(l),"reloadFromPortal"),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:l.signal})}catch(e){throw(0,d.zf)(e)||p.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{l&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:r,fullEdit:l},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",l),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);let l,i,o=!s.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,o);if(n)l=r.portal.url;else try{l=await(0,y.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!l||!(0,h.b8)(l,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;i=await(s.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}if(!i)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(n?await r.reload():(r=new m.default({id:e,portal:{url:l}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,o)}catch(e){(0,d.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){let t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;let r=C.credential===t?C.user:await this._fetchEditingUser(e);return C.credential=t,C.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let l=`${r.owningSystemUrl}/sharing/rest`,i=f.A.getDefault();if(i&&i.loaded&&(0,h.S8)(i.restUrl)===(0,h.S8)(l))return i.user;let a=`${l}/community/self`,u=null==e?null:e.signal,p=await(0,n.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){return(0,b.wN)(this.portalItem,t)?(t?.messages?.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,l.Cg)([(0,g.MZ)({type:m.default})],I.prototype,"portalItem",null),(0,l.Cg)([(0,A.w)("web-document","portalItem",["itemId"])],I.prototype,"readPortalItem",null),(0,l.Cg)([(0,M.K)("web-document","portalItem",{itemId:{type:String}})],I.prototype,"writePortalItem",null),(0,l.Cg)([(0,g.MZ)({clonable:!1})],I.prototype,"resourceReferences",void 0),(0,l.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasEditingPrivileges",void 0),(0,l.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasFullEditingPrivileges",void 0),(0,l.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasUpdateItemPrivileges",void 0),I=(0,l.Cg)([(0,g.$K)("esri.layers.mixins.PortalLayer")],I),I}])},91806(e,t,r){r.d(t,{A:()=>a});var l,i=r(32198),s=r(25482),o=r(91429),n=r(78888);let a=class extends s.o{static{l=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new l({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,i.Cg)([(0,o.MZ)({type:n.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=l=(0,i.Cg)([(0,o.$K)("esri.layers.support.LOD")],a)},87045(e,t,r){r.d(t,{A:()=>v});var l,i=r(32198),s=r(66552),o=r(25482),n=r(86211),a=r(91429),u=r(78888),p=r(86738),c=r(16930),d=r(21325),h=r(28735),g=r(91806),y=r(72802),f=r(36005),m=r(43937);const w=new s.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",JPEGPlus:"jpgplus",pbf:"pbf"});let v=class extends o.o{static{l=this}static create(e={}){let{resolutionFactor:t=1,scales:r,size:i=256,spatialReference:s=c.A.WebMercator,numLODs:o=24}=e;if(!(0,d.fn)(s)){let e=[];if(r)for(let t=0;t<r.length;t++){let l=r[t];e.push(new g.A({level:t,scale:l,resolution:l}))}else{let t=5e-4;for(let r=o-1;r>=0;r--)e.unshift(new g.A({level:r,scale:t,resolution:t})),t*=2}return new l({dpi:96,lods:e,origin:new p.A(0,0,s),size:[i,i],spatialReference:s})}let a=(0,d.Vp)(s),u=e.origin?new p.A({x:e.origin.x,y:e.origin.y,spatialReference:s}):a?new p.A({x:a.origin[0],y:a.origin[1],spatialReference:s}):new p.A({x:0,y:0,spatialReference:s}),h=1/(39.37*(0,n.GA)(s)*96),y=[];if(r)for(let e=0;e<r.length;e++){let t=r[e],l=t*h;y.push(new g.A({level:e,scale:t,resolution:l}))}else{let e=(0,d.EA)(s)?512/i*591657527.5917094:256/i*591657527.591555,r=Math.ceil(o/t);y.push(new g.A({level:0,scale:e,resolution:e*h}));for(let l=1;l<r;l++){let r=e/2**t,i=r*h;y.push(new g.A({level:l,scale:r,resolution:i})),e=r}}return new l({dpi:96,lods:y,origin:u,size:[i,i],spatialReference:s})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){let{spatialReference:e,origin:t}=this;if(e&&t){let r=(0,d.Vp)(e);return e.isWrappable&&!!r&&Math.abs(r.origin[0]-t.x)<=r.dx}return!1}readOrigin(e,t){return p.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,r=0,l=[],i=this._levelToLOD={};e&&(t=-1/0,r=1/0,e.forEach(e=>{l.push(e.scale),t=e.scale>t?e.scale:t,r=e.scale<r?e.scale:r,i[e.level]=e})),this._set("scales",l),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){let t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];let r=Math.floor(e),l=r+1;return t[r]/(t[r]/t[l])**(e-r)}scaleToZoom(e){let t=this.scales,r=t.length-1,l=0;for(;l<r;l++){let r=t[l],i=t[l+1];if(r<=e)return l;if(i===e)return l+1;if(r>e&&i<e)return l+Math.log(r/e)/Math.log(r/i)}return l}tileAt(e,t,r,l){let i,s,o=this.lodAt(e);if(!o)return null;if("number"==typeof t)i=t,s=r;else if((0,d.aI)(t.spatialReference,this.spatialReference))i=t.x,s=t.y,l=r;else{let e=(0,h.Cv)(t,this.spatialReference);if(null==e)return null;i=e.x,s=e.y,l=r}let n=o.resolution*this.size[0],a=o.resolution*this.size[1];return l??=new y.U(0,0,0),l.level=e,l.row=Math.floor((this.origin.y-s)/a+.001),l.col=Math.floor((i-this.origin.x)/n+.001),this.updateTileInfo(l),l}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let r=this.lodAt(e.level);if(!r&&1===t){let t=this.lods[this.lods.length-1];t.level<e.level&&(r=t)}if(!r)return!1;let l=e.level-r.level,i=r.resolution*this.size[0]/2**l,s=r.resolution*this.size[1]/2**l;return e.extent[0]=this.origin.x+e.col*i,e.extent[1]=this.origin.y-(e.row+1)*s,e.extent[2]=e.extent[0]+i,e.extent[3]=e.extent[1]+s,!0}upsampleTile(e){let t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){let r=this.lodAt(t.level);if(null==r)return null;let{resolution:l}=r,i=l*this.size[0],s=l*this.size[1];return e[0]=this.origin.x+t.col*i,e[1]=this.origin.y-(t.row+1)*s,e[2]=e[0]+i,e[3]=e[1]+s,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return l.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;let t=(512===this.size[0]&&256===e?-1:0)+ +!!this.spatialReference.isGeographic;if(this.size[0]===e&&0===t)return this;let r=[],i=this.lods.length-t;for(let e=0;e<i;e++){let l=e+t,{scale:i,resolution:s}=l>=0?this.lods[l]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};r.push(new g.A({level:e,scale:i,resolution:s}))}return new l({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:r})}_initializeUpsampleLevels(){let e=this.lods;this._upsampleLevels=[];let t=null;for(let r=0;r<e.length;r++){let l=e[r];this._upsampleLevels[l.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/l.resolution:0},t=l}}};(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"compressionQuality",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"dpi",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:w.read,write:w.write,origins:{"web-scene":{read:!1,write:!1}}}})],v.prototype,"format",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"isWrappable",null),(0,i.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],v.prototype,"origin",void 0),(0,i.Cg)([(0,f.w)("origin")],v.prototype,"readOrigin",null),(0,i.Cg)([(0,a.MZ)({type:[g.A],value:null,json:{write:!0}})],v.prototype,"lods",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"scales",void 0),(0,i.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],v.prototype,"size",void 0),(0,i.Cg)([(0,f.w)("size",["rows","cols"])],v.prototype,"readSize",null),(0,i.Cg)([(0,m.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],v.prototype,"writeSize",null),(0,i.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),v=l=(0,i.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],v)},72802(e,t,r){r.d(t,{U:()=>i});var l=r(19419);class i{constructor(e,t,r,i=(0,l.vt)()){this._level=e,this._row=t,this._col=r,this.extent=i}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new i(e.level,e.row,e.col,e.extent)}}},83703(e,t,r){r.d(t,{x:()=>a});var l,i=r(32198),s=r(25482),o=r(4718),n=r(91429);let a=l=class extends s.o{constructor(e){super(e)}clone(){return new l({customLayerParameters:(0,o.o8)(this.customLayerParameters),customParameters:(0,o.o8)(this.customParameters),layerIdentifier:this.layerIdentifier,tileMatrixSet:this.tileMatrixSet,url:this.url})}};(0,i.Cg)([(0,n.MZ)({json:{type:Object,write:!0}})],a.prototype,"customLayerParameters",void 0),(0,i.Cg)([(0,n.MZ)({json:{type:Object,write:!0}})],a.prototype,"customParameters",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"layerIdentifier",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"tileMatrixSet",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=l=(0,i.Cg)([(0,n.$K)("esri.layers.support.WMTSLayerInfo")],a)},33446(e,t,r){r.d(t,{Cp:()=>o,mn:()=>s});var l=r(49186),i=r(17676);async function s(e,t,r){let s;try{s=await n(e,r)}catch(e){throw new l.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,i.Te)(r),s}async function o(e,t,r,s,o){let a;try{a=await n(e,o)}catch(e){throw new l.A("request:server",`Unable to load tile ${t}/${r}/${s}`,{error:e,level:t,row:r,col:s})}return(0,i.Te)(o),a}async function n(e,t){let r=await createImageBitmap(e,{imageOrientation:t?.imageOrientation??"none"}),l=t?.type??(e instanceof Blob?e.type.startsWith("image/")?e.type:t?.allowDeriveTypeFromData?await async function(e){return e.byteLength<2?"unknown":137===e[0]&&80===e[1]?"image/png":71===e[0]&&73===e[1]?"image/gif":66===e[0]&&77===e[1]?"image/bmp":255===e[0]&&216===e[1]?"image/jpeg":"unknown"}(await e.bytes()):void 0:void 0);return new a(r,l)}class a{constructor(e,t){this.bitmap=e,this.type=t}get isOpaque(){return"image/jpeg"===this.type}}},10407(e,t,r){r.d(t,{It:()=>h,LG:()=>o,OM:()=>u,Sm:()=>p,Y:()=>n,bK:()=>a,sQ:()=>c});var l=r(99917),i=r(16930),s=r(28735);function o(e,t){if(!n(e,t)){let r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function n(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return n(e,d.HOSTED_SERVICE)}function u(e,t){let r=e.typeKeywords;if(r){let e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?o(e,t):u(e,t)}async function c(e){let t,r=e.clone().normalize();if(r.length>1)for(let e of r)t?e.width>t.width&&(t=e):t=e;else t=r[0];return async function(e){let t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);let r=i.A.WGS84;return await(0,l.initializeProjection)(t,r),(0,l.project)(e,r)}(t)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function h(e){let{portal:t,isOrgItem:r,itemControl:l}=e,i=t.user?.privileges,s=!i||i.includes("features:user:edit"),o=!!r&&!!i?.includes("features:user:fullEdit"),n="update"===l||"admin"===l;return n?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:n}}}r.d(t,["mm",0,d])},78553(e,t,r){r.d(t,{D:()=>s,p:()=>i});var l=r(78888);function i(e){let t=(0,l.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){let t=1-e/100;return Math.max(0,Math.min(t,1))}},26121(e,t,r){r.d(t,{I6:()=>p,ci:()=>u,dL:()=>a,wN:()=>c});var l=r(49186),i=r(84952),s=r(77548),o=r(20655),n=r(59923);async function a(e){let t=[];for(let r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){let e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function u(e,t,r){let i=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new l.A(e,t,r));if(e.blockedRelativeUrls&&(i=i.concat(e.blockedRelativeUrls.map(e=>(0,n.GL)("url",`Relative url '${e}' is not supported`)))),r){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:l}=r;e&&(i=i.filter(({name:e})=>!(n.MG.has(e)||t.includes(e)))),l&&(i=i.filter(e=>"web-document-write:property-required"!==e.name))}if(i.length>0)throw new l.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:i})}function p(e){return(0,s.qd)(e).some(e=>!!e.charts?.length)}function c(e,t){let r=t?.portal,l=e?.id&&(e.portal||o.A.getDefault());return!!r&&!!l&&!(0,i.ut)(l.restUrl,r.restUrl)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6811],{52106(e,t,i){i.d(t,{A:()=>x});var r,l,n=i(32198),s=i(37838),o=i(69540),a=i(51447),u=i(25482),h=i(53966),p=i(36708),c=i(24326),f=i(91429),g=i(12195),y=i(65864),d=i(50498),m=i(55156),v=i(60950),w=i(54339),b=i(94128),_=i(33910);const A=Symbol("meshGeometryHandles");function M(e){if(null==e)return null;let t={};for(let i in e){let r=e[i];r&&(t[i]=r.toJSON())}return 0===Object.keys(t).length?null:t}let x=class extends((0,o.OU)(u.o)){static{r=b.Z}static{l=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(h.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new l({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,m.I)(this.origin);if(e)return(0,w.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){let e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:M(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let l={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(l.action=r),"attributes"===e&&(l.attributeName=r),this.layer.graphicChanged(l)}_watchMeshGeometryChanges(){this.removeHandles(A);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,p.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],A)}};(0,n.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let i in e){let r=(0,y.rS)(e[i]);r&&(t[i]=r)}return 0===Object.keys(t).length?null:t}}})],x.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,f.MZ)({value:null})],x.prototype,"attributes",null),(0,n.Cg)([(0,f.MZ)({value:null,types:d.yR,json:{read:y.rS}})],x.prototype,"geometry",null),(0,n.Cg)([(0,f.MZ)()],x.prototype,"distance",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean})],x.prototype,"isAggregate",void 0),(0,n.Cg)([(0,f.MZ)({clonable:!1})],x.prototype,"layer",void 0),(0,n.Cg)([(0,f.MZ)({clonable:"reference"})],x.prototype,"origin",void 0),(0,n.Cg)([(0,f.MZ)({type:s.A,value:null})],x.prototype,"popupTemplate",null),(0,n.Cg)([(0,f.MZ)({clonable:"reference"})],x.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,f.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],x.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,f.MZ)({value:null,types:_.Es})],x.prototype,"symbol",null),(0,n.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],x.prototype,"_version",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,value:!0})],x.prototype,"visible",null),x=l=(0,n.Cg)([(0,f.$K)("esri.Graphic")],x)},19334(e,t,i){i.d(t,{e:()=>s});var r=i(54639),l=i(14112);class n{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function s(e){if(null==e)return null;switch(e.type){case"point":if((0,l.e6)(e))return null;break;case"polygon":if((0,l.Wq)(e))return null;break;case"polyline":if((0,l.IY)(e))return null;break;case"multipoint":if((0,l.DG)(e))return null;break;case"extent":if((0,l.As)(e))return null;break;default:return null}let t=r.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new n(e));return t.asAccessorGeometry(),t}},36983(e,t,i){i.d(t,{R:()=>u,p:()=>h});var r=i(54639),l=i(14112),n=i(16930),s=i(60408),o=i(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){let t=(0,o.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if("object"!=typeof e||!e)return null;let i=t;if("spatialReference"in e&&(e.spatialReference instanceof n.A?i=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(i=new n.A,i.read(e.spatialReference))),null==i)throw Error("Spatial reference required");return(0,s.fT)(e)?h("point",e,i):(0,s.Rg)(e)?h("polyline",e,i):(0,s.Bi)(e)?h("polygon",e,i):(0,s.U9)(e)?h("multipoint",e,i):(0,s.ZC)(e)?h("extent",e,i):null}function h(e,t,i){if(null==t)return null;let n=!1,s=!1;switch(e){case"point":if((0,l.e6)(t))return null;n=void 0!==t.z,s=void 0!==t.m;break;case"polygon":if((0,l.Wq)(t))return null;n=!0===t.hasZ,s=!0===t.hasM;break;case"polyline":if((0,l.IY)(t))return null;n=!0===t.hasZ,s=!0===t.hasM;break;case"multipoint":if((0,l.DG)(t))return null;n=!0===t.hasZ,s=!0===t.hasM;break;case"extent":if((0,l.As)(t))return null;n=null!=t.zmin&&null!=t.zmax,s=null!=t.mmin&&null!=t.mmax;break;default:throw Error("Unsupported geometry type: "+t.type)}return r.R.of(e,i,n,s,new a(t))}},14112(e,t,i){function r(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function l(e){if(0===(e.curveRings??e.rings).length)return!0;for(let t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function n(e){if(0===(e.curvePaths??e.paths).length)return!0;for(let t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function s(e){return 0===e.points.length}function o(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}i.d(t,{As:()=>o,DG:()=>s,IY:()=>n,Wq:()=>l,e6:()=>r})},69052(e,t,i){i.d(t,{hr:()=>l});var r=i(34727);class l{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return n(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+s(this.range,e-t,i)}minimalMonotonic(e,t,i){return n(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);let i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function n(e,t,i,r,l=0,n=!1){return(r-=l)<t?r+=s(e,t-r):r>i&&(r-=s(e,r-i)),n&&r===i&&(r=t),r+l}function s(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const o=new l(0,2*Math.PI),a=(new l(-Math.PI,Math.PI),new l(0,360));i.d(t,["ie",0,a,"uC",0,o])},18370(e,t,i){i.d(t,{z:()=>l});class r{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function l(e){return new r(e)}},13069(e,t,i){i.d(t,{AG:()=>o,lk:()=>l,vD:()=>s,yS:()=>n});const r="randomUUID"in crypto;function l(){if(r)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${l().toUpperCase()}}`}function s(){return`{${l()}}`}function o(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},52039(e,t,i){i.d(t,{O7:()=>c,el:()=>u});var r=i(69052),l=(i(49186),i(18370)),n=i(17676),s=(i(5443),i(39829)),o=(i(82799),i(16930)),a=(i(80754),i(21325));async function u(e,t,i){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(i=t);let r=null;for(let t of e)r??=t?.spatialReference;if(!r)return e;let l=(0,a.Vp)(r);if(!l)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(l);return["xmin"in t?t:new s.A(t)]}let[o,u]=l.valid,c=!1;for(let t of e){if(!t)continue;if("point"===t.type){c||=t.x>=u,c||=t.x<=o;continue}let{extent:e}=t;if(null==e){c=!0;break}c||=e.xmin>=u,c||=e.xmin<=o,c||=e.xmax>=u,c||=e.xmax<=o}if(!c)return e;let[{foldInto360Range:f},g]=await(0,n.qr)(Promise.all([h.getImportPromise(),p.getImportPromise()]),i),y=g.fromSpatialReference(r);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=g.fromGeometry(e),i=g.toGeometry(f(t,y),r);return"extent"===e.type&&1===i?.rings.length?i.extent:i})}const h=(0,l.z)(()=>i.e(4144).then(()=>i(4144)).then(e=>e.load().then(()=>e))),p=(0,l.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125)));function c(e,t,i){let r=(0,a.Vp)(i);if(null==r)return e;let[l,n]=r.valid,s=2*n,o=0,u=0;t>n?o=Math.ceil(Math.abs(t-n)/s):t<l&&(o=-Math.ceil(Math.abs(t-l)/s)),e>n?u=Math.ceil(Math.abs(e-n)/s):e<l&&(u=-Math.ceil(Math.abs(e-l)/s));let h=e+(o-u)*s,p=h-t;return p>n?h-=s:p<l&&(h+=s),h}function f(e){let t=(0,a.Vp)(e);if(null==t)return null;let[i,l]=t.valid;return new r.hr(i,l)}const g=f(o.A.WGS84);f(o.A.WebMercator),i.d(t,["Y_",0,g])},80754(e,t,i){i.d(t,{kS:()=>u,kd:()=>a});var r=i(82799),l=i(16930),n=i(60408),s=i(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:l.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:l.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:l.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:l.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,s.Ed)(e))for(let i of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of i)if((0,s.aO)(e)){let[i,r]=e.c;i[0]+=t,r[0]+=t}else if((0,s.FG)(e)){let[i,r]=e.a;i[0]+=t,r[0]+=t}else if((0,s.n1)(e)){let[i,r,l]=e.b;i[0]+=t,r[0]+=t,l[0]+=t}else e[0]+=t;for(let i of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(let e of i)e[0]+=t;return e}i.d(t,["j7",0,o])},55156(e,t,i){i.d(t,{I:()=>l});const r=Symbol("idFieldsProviderSymbol");function l(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},71756(e,t,i){i.r(t);var r,l=i(32198),n=i(56507),s=i(49186),o=i(81583),a=i(25728),u=i(17676),h=i(84952),p=i(91429),c=i(16930),f=i(4146),g=i(52136),y=i(89186),d=i(98534),m=i(18768),v=i(63074),w=i(69208),b=i(34287),_=i(8303),A=i(54310),M=i(25036),x=i(91921),C=i(60694),S=i(10873),T=i(33446),O=i(15775),R=i(88625),I=i(36005),L=i(43937);const Z=["Canvas/World_Dark_Gray_Base","Canvas/World_Dark_Gray_Reference","Canvas/World_Light_Gray_Base","Canvas/World_Light_Gray_Reference","Elevation/World_Hillshade","Elevation/World_Hillshade_Dark","Ocean/World_Ocean_Base","Ocean/World_Ocean_Reference","Ocean_Basemap","Reference/World_Boundaries_and_Places","Reference/World_Boundaries_and_Places_Alternate","Reference/World_Transportation","World_Imagery","World_Street_Map","World_Topo_Map"];let z=r=class extends((0,v.dM)((0,M.j)((0,x.I)((0,y.f)((0,d.V)((0,b.q)((0,_.A)((0,m.b)((0,a.M)((0,A.J)((0,g.p)((0,w.d)(f.A))))))))))))){constructor(...e){super(...e),this.listMode="show",this.elevationInfo=new R.A({mode:"on-the-ground"}),this.isReference=null,this.operationalLayerType="ArcGISTiledMapServiceLayer",this.resampling=!0,this.sourceJSON=null,this.spatialReference=null,this.path=null,this.sublayers=null,this.type="tile",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(u.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get attributionDataUrl(){let e=this.parsedUrl?.path.toLowerCase();return e?this._getDefaultAttribution(this._getMapName(e)):null}get hasAttributionData(){return super.hasAttributionData}readSpatialReference(e,t){return e||=t.tileInfo?.spatialReference,e&&c.A.fromJSON(e)}writeSublayers(e,t,i,r){if(!this.loaded||!e)return;let l=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray(),n=[],s={writeSublayerStructure:!1,...r};l.forEach(e=>{let t=e.write({},s);n.push(t)}),n.some(e=>Object.keys(e).length>1)&&(t.layers=n)}get tileServers(){return this._getDefaultTileServers(this.parsedUrl?.path)}castTileServers(e){return Array.isArray(e)?e.map(e=>(0,h.An)(e).path):null}fetchTile(e,t,i,r={}){let{signal:l}=r,s=this.getTileUrl(e,t,i),o={responseType:"image",signal:l,query:{...this.refreshParameters}};return(0,n.A)(s,o).then(e=>e.data)}async fetchImageBitmapTile(e,t,i,l={}){let{signal:s}=l;if(this.fetchTile!==r.prototype.fetchTile){let r=await this.fetchTile(e,t,i,l);return(0,T.Cp)(r,e,t,i,l)}let o=this.getTileUrl(e,t,i),a={responseType:"blob",signal:s,query:{...this.refreshParameters}},{data:u}=await(0,n.A)(o,a);return(0,T.Cp)(u,e,t,i,l)}getTileUrl(e,t,i){let r=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,l=(0,h.x0)({...this.parsedUrl?.query,blankTile:!r&&null,...this.customParameters,token:this.apiKey}),n=this.tileServers;return`${n&&n.length?n[t%n.length]:this.parsedUrl?.path}/tile/${e}/${t}/${i}${l?"?"+l:""}`}loadAll(){return(0,o.g)(this,e=>{e(this.allSublayers)})}_fetchService(e){return new Promise((t,i)=>{if(this.sourceJSON){if(null!=this.sourceJSON.bandCount&&null!=this.sourceJSON.pixelSizeX)throw new s.A("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");return void t({data:this.sourceJSON})}if(!this.parsedUrl)throw new s.A("tile-layer:undefined-url","layer's url is not defined");let r=(0,C.qg)(this.parsedUrl.path);if(null!=r&&"ImageServer"===r.serverType)throw new s.A("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");(0,n.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(t,i)}).then(t=>{let i=this.url;if(t.ssl&&(i=this.url=i.replace(/^http:/i,"https:")),this.sourceJSON=t.data,this.read(t.data,{origin:"service",url:this.parsedUrl}),10.1===this.version&&!(0,C.Wo)(i))return this._fetchServerVersion(i,e).then(e=>{this.read({currentVersion:e})}).catch(()=>{})})}_fetchServerVersion(e,t){if(!(0,C.Fi)(e))return Promise.reject();let i=e.replace(/(.*\/rest)\/.*/i,"$1")+"/info";return(0,n.A)(i,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t}).then(e=>{if(e.data?.currentVersion)return e.data.currentVersion;throw new s.A("tile-layer:version-not-available","Server did not provide a version")})}_getMapName(e){let t=e.match(/^(?:https?:)?\/\/(server\.arcgisonline\.com|services\.arcgisonline\.com|ibasemaps-api\.arcgis\.com)\/arcgis\/rest\/services\/([^/]+(\/[^/]+)*)\/mapserver/i);return t?t[2]:void 0}_getDefaultAttribution(e){if(null==e)return null;let t;e=e.toLowerCase();for(let i=0,r=Z.length;i<r;i++)if(t=Z[i],t.toLowerCase().includes(e))return(0,h.s2)("//static.arcgis.com/attribution/"+t);return null}_getDefaultTileServers(e){if(null==e)return[];let t=-1!==e.search(/^(?:https?:)?\/\/server\.arcgisonline\.com/i),i=-1!==e.search(/^(?:https?:)?\/\/services\.arcgisonline\.com/i);return t||i?[e,e.replace(t?/server\.arcgisonline/i:/services\.arcgisonline/i,t?"services.arcgisonline":"server.arcgisonline")]:[]}get hasOverriddenFetchTile(){return!this.fetchTile[G]}};(0,l.Cg)([(0,p.MZ)({readOnly:!0})],z.prototype,"attributionDataUrl",null),(0,l.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],z.prototype,"listMode",void 0),(0,l.Cg)([(0,p.MZ)({json:{read:!0,write:!0}})],z.prototype,"blendMode",void 0),(0,l.Cg)([(0,p.MZ)()],z.prototype,"elevationInfo",void 0),(0,l.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],z.prototype,"isReference",void 0),(0,l.Cg)([(0,p.MZ)({readOnly:!0,type:["ArcGISTiledMapServiceLayer"]})],z.prototype,"operationalLayerType",void 0),(0,l.Cg)([(0,p.MZ)({type:Boolean})],z.prototype,"resampling",void 0),(0,l.Cg)([(0,p.MZ)()],z.prototype,"sourceJSON",void 0),(0,l.Cg)([(0,p.MZ)({type:c.A})],z.prototype,"spatialReference",void 0),(0,l.Cg)([(0,I.w)("spatialReference",["spatialReference","tileInfo"])],z.prototype,"readSpatialReference",null),(0,l.Cg)([(0,p.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],z.prototype,"path",void 0),(0,l.Cg)([(0,p.MZ)({readOnly:!0})],z.prototype,"sublayers",void 0),(0,l.Cg)([(0,L.K)("sublayers",{layers:{type:[O.A]}})],z.prototype,"writeSublayers",null),(0,l.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],z.prototype,"popupEnabled",void 0),(0,l.Cg)([(0,p.MZ)()],z.prototype,"tileServers",null),(0,l.Cg)([(0,p.wg)("tileServers")],z.prototype,"castTileServers",null),(0,l.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],z.prototype,"type",void 0),(0,l.Cg)([(0,p.MZ)(S.OZ)],z.prototype,"url",void 0),z=r=(0,l.Cg)([(0,p.$K)("esri.layers.TileLayer")],z);const G=Symbol("default-fetch-tile");z.prototype.fetchTile[G]=!0;const D=z;i.d(t,["default",0,D])},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function l(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>l})},89186(e,t,i){var r=i(32198),l=i(91429),n=i(16930),s=i(87045),o=i(65509),a=i(25943),u=i(36005);i.d(t,["f",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,i){let r=t.capabilities?.toLowerCase().includes("tilemap"),{minLOD:l,maxLOD:n,minScale:u,maxScale:h}=t;if(null==l&&null==n&&(0!==u||0!==h)){let e=e=>Math.round(1e4*e)/1e4;u=e(u||t.tileInfo.lods[0].scale),h=e(h||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(let i of t.tileInfo.lods){let t=e(i.scale);l=t>=u?i.level:l,n=t>=h?i.level:n}}if(r)return new a.d({layer:this,minLOD:l,maxLOD:n});if(t.tileInfo){let e=new s.A;return e.read(t.tileInfo,i),new o.A(e,l,n)}return null}};return(0,r.Cg)([(0,l.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"minScale",void 0),(0,r.Cg)([(0,u.w)("service","minScale")],i.prototype,"readMinScale",null),(0,r.Cg)([(0,l.MZ)()],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,u.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,r.Cg)([(0,l.MZ)({type:n.A})],i.prototype,"spatialReference",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,r.Cg)([(0,l.MZ)({type:s.A})],i.prototype,"tileInfo",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"tilemapCache",void 0),(0,r.Cg)([(0,u.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,r.Cg)([(0,l.MZ)()],i.prototype,"version",void 0),i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}])},91806(e,t,i){i.d(t,{A:()=>a});var r,l=i(32198),n=i(25482),s=i(91429),o=i(78888);let a=class extends n.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,l.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,l.Cg)([(0,s.MZ)({type:o.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,l.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,l.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,l.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,l.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,l.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=r=(0,l.Cg)([(0,s.$K)("esri.layers.support.LOD")],a)},87045(e,t,i){i.d(t,{A:()=>w});var r,l=i(32198),n=i(66552),s=i(25482),o=i(86211),a=i(91429),u=i(78888),h=i(86738),p=i(16930),c=i(21325),f=i(28735),g=i(91806),y=i(72802),d=i(36005),m=i(43937);const v=new n.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let w=class extends s.o{static{r=this}static create(e={}){let{resolutionFactor:t=1,scales:i,size:l=256,spatialReference:n=p.A.WebMercator,numLODs:s=24}=e;if(!(0,c.fn)(n)){let e=[];if(i)for(let t=0;t<i.length;t++){let r=i[t];e.push(new g.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=s-1;i>=0;i--)e.unshift(new g.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new h.A(0,0,n),size:[l,l],spatialReference:n})}let a=(0,c.Vp)(n),u=e.origin?new h.A({x:e.origin.x,y:e.origin.y,spatialReference:n}):a?new h.A({x:a.origin[0],y:a.origin[1],spatialReference:n}):new h.A({x:0,y:0,spatialReference:n}),f=1/(39.37*(0,o.GA)(n)*96),y=[];if(i)for(let e=0;e<i.length;e++){let t=i[e],r=t*f;y.push(new g.A({level:e,scale:t,resolution:r}))}else{let e=(0,c.EA)(n)?512/l*591657527.5917094:256/l*591657527.591555,i=Math.ceil(s/t);y.push(new g.A({level:0,scale:e,resolution:e*f}));for(let r=1;r<i;r++){let i=e/2**t,l=i*f;y.push(new g.A({level:r,scale:i,resolution:l})),e=i}}return new r({dpi:96,lods:y,origin:u,size:[l,l],spatialReference:n})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){let{spatialReference:e,origin:t}=this;if(e&&t){let i=(0,c.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return h.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0,r=[],l=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,l[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){let t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];let i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){let t=this.scales,i=t.length-1,r=0;for(;r<i;r++){let i=t[r],l=t[r+1];if(i<=e)return r;if(l===e)return r+1;if(i>e&&l<e)return r+Math.log(i/e)/Math.log(i/l)}return r}tileAt(e,t,i,r){let l,n,s=this.lodAt(e);if(!s)return null;if("number"==typeof t)l=t,n=i;else if((0,c.aI)(t.spatialReference,this.spatialReference))l=t.x,n=t.y,r=i;else{let e=(0,f.Cv)(t,this.spatialReference);if(null==e)return null;l=e.x,n=e.y,r=i}let o=s.resolution*this.size[0],a=s.resolution*this.size[1];return r??=new y.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-n)/a+.001),r.col=Math.floor((l-this.origin.x)/o+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){let t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;let r=e.level-i.level,l=i.resolution*this.size[0]/2**r,n=i.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*l,e.extent[1]=this.origin.y-(e.row+1)*n,e.extent[2]=e.extent[0]+l,e.extent[3]=e.extent[1]+n,!0}upsampleTile(e){let t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){let i=this.lodAt(t.level);if(null==i)return null;let{resolution:r}=i,l=r*this.size[0],n=r*this.size[1];return e[0]=this.origin.x+t.col*l,e[1]=this.origin.y-(t.row+1)*n,e[2]=e[0]+l,e[3]=e[1]+n,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;let t=(512===this.size[0]&&256===e?-1:0)+ +!!this.spatialReference.isGeographic;if(this.size[0]===e&&0===t)return this;let i=[],l=this.lods.length-t;for(let e=0;e<l;e++){let r=e+t,{scale:l,resolution:n}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new g.A({level:e,scale:l,resolution:n}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){let e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){let r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{read:v.read,write:v.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,l.Cg)([(0,a.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,l.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,l.Cg)([(0,d.w)("origin")],w.prototype,"readOrigin",null),(0,l.Cg)([(0,a.MZ)({type:[g.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,l.Cg)([(0,a.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,l.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,l.Cg)([(0,d.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,l.Cg)([(0,m.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],w.prototype,"writeSize",null),(0,l.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=r=(0,l.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],w)},65509(e,t,i){i.d(t,{A:()=>n});var r=i(49186),l=i(17676);class n{constructor(e,t=0,i=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=i,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(i)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,i){let r=this.tileInfo?.lodAt(e);return!r||e<this.minLOD||e>this.maxLOD?"unavailable":r.cols&&r.rows?i>=r.cols[0]&&i<=r.cols[1]&&t>=r.rows[0]&&t<=r.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,i,n){await(0,l.NO)(n);let s=this.getAvailability(e,t,i);if("unavailable"===s)throw new r.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i});return s}async fetchAvailabilityUpsample(e,t,i,r,n){await(0,l.NO)(n),r.level=e,r.row=t,r.col=i;let s=this.tileInfo;return s.updateTileInfo(r),this.fetchAvailability(e,t,i,n).catch(e=>{if((0,l.zf)(e))throw e;if(s.upsampleTile(r))return this.fetchAvailabilityUpsample(r.level,r.row,r.col,r,n);throw e})}}},72802(e,t,i){i.d(t,{U:()=>l});var r=i(19419);class l{constructor(e,t,i,l=(0,r.vt)()){this._level=e,this._row=t,this._col=i,this.extent=l}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new l(e.level,e.row,e.col,e.extent)}}},25943(e,t,i){i.d(t,{d:()=>A});var r,l=i(32198),n=i(56507),s=i(69622),o=i(49186),a=i(36563),u=(i(44208),i(66344)),h=i(15142),p=i(17676),c=i(36708),f=i(76030),g=i(84952),y=i(91429),d=i(72802),m=i(4718),v=i(69397);class w{constructor(e){!function(e){if(!e?.location)throw new o.A("tilemap:missing-location","Location missing from tilemap response");if(!1===e.valid)throw new o.A("tilemap:invalid","Tilemap response was marked as invalid");if(!e.data)throw new o.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(e.data))throw new o.A("tilemap:data-mismatch","Data must be an array of numbers");if(e.data.length!==e.location.width*e.location.height)throw new o.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(e);let{location:t,data:i}=e;this.location=Object.freeze((0,m.o8)(t));let r=this.location.width,l=this.location.height,n=!0,s=!0,a=function(e,t=!1){return e<=1024?t?Array(e).fill(0):Array(e):new Uint32Array(e)}(Math.ceil(r*l/32)),u=0;for(let e=0;e<i.length;e++){let t=e%32;i[e]?(s=!1,a[u]|=1<<t):n=!1,31===t&&++u}s?(this._availability="unavailable",this.byteSize=40):n?(this._availability="available",this.byteSize=40):(this._availability=a,this.byteSize=40+(0,v.Qf)(a))}getAvailability(e,t){if("unavailable"===this._availability||"available"===this._availability)return this._availability;let i=(e-this.location.top)*this.location.width+(t-this.location.left),r=i%32,l=i>>5,n=this._availability;return l<0||l>n.length?"unknown":n[l]&1<<r?"available":"unavailable"}static fromDefinition(e,t){let i=e.service.request||n.A,{row:r,col:l,width:s,height:a}=e,u={query:{f:"json"}};return t=t?{...u,...t}:u,i(function(e){let t;if(e.service.tileServers?.length){let i=e.service.tileServers;t=`${i&&i.length?i[e.row%i.length]:e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}else t=`${e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`;let i=e.service.query;return i&&(t=`${t}?${i}`),t}(e),t).then(e=>e.data).catch(e=>{if(422===e?.details?.httpStatus)return{location:{top:r,left:l,width:s,height:a},valid:!0,data:Array(s*a).fill(0)};throw e}).then(e=>{if(e.location&&(e.location.top!==r||e.location.left!==l||e.location.width!==s||e.location.height!==a))throw new o.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:e,definition:{top:r,left:l,width:s,height:a}});return w.fromJSON(e)})}static fromJSON(e){return Object.freeze(new w(e))}}function b(e){return`${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}function _(e,t,i){return new o.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i})}let A=class extends s.A{static{r=this}constructor(e){super(e),this._pendingTilemapRequests={},this.request=n.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new u.q(2097152),this.addHandles((0,c.wB)(()=>{let{layer:e}=this;return[e?.parsedUrl,e?.tileServers,e?.apiKey,e?.customParameters]},()=>this._initializeTilemapDefinition(),c.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(e,t,i){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return"unavailable";let r=this._tilemapFromCache(e,t,i,this._tmpTilemapDefinition);return r?r.getAvailability(t,i):"unknown"}fetchAvailability(e,t,i,r){return!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD?Promise.reject(_(e,t,i)):this._fetchTilemap(e,t,i,r).catch(e=>e).then(r=>{if(r instanceof w){let l=r.getAvailability(t,i);if("unavailable"===l)throw _(e,t,i);return l}if((0,p.zf)(r))throw r;return"unknown"})}fetchAvailabilityUpsample(e,t,i,r,l){r.level=e,r.row=t,r.col=i;let n=this.layer.tileInfo;n.updateTileInfo(r);let s=this.fetchAvailability(e,t,i,l).catch(e=>{if((0,p.zf)(e))throw e;if(n.upsampleTile(r))return this.fetchAvailabilityUpsample(r.level,r.row,r.col,r,l);throw e});return this._fetchAvailabilityUpsamplePrefetch(e,t,i,l,s),s}async _fetchAvailabilityUpsamplePrefetch(e,t,i,l,n){if(!this._prefetchingEnabled)return;let s=`prefetch-${e}-${t}-${i}`;if(this.hasHandles(s))return;let o=new AbortController;n.then(()=>o.abort(),()=>o.abort());let u=!1,h=(0,a.hA)(()=>{u||(u=!0,o.abort())});if(this.addHandles(h,s),await(0,f.md)(10,o.signal).catch(()=>{}),u||(u=!0,this.removeHandles(s)),(0,p.G4)(o))return;let c=new d.U(e,t,i),g={...l,signal:o.signal},y=this.layer.tileInfo;for(let e=0;r._prefetches.length<r._maxPrefetch&&y.upsampleTile(c);++e){let e=this.fetchAvailability(c.level,c.row,c.col,g);r._prefetches.push(e);let t=()=>{r._prefetches.removeUnordered(e)};e.then(t,t)}}static{this._maxPrefetch=4}static{this._prefetches=new h.A({initialSize:r._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(e,t,i,r){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return Promise.reject(new o.A("tilemap-cache:level-unavailable",`Level ${e} is unavailable in the service`));let l=this._tmpTilemapDefinition,n=this._tilemapFromCache(e,t,i,l);if(n)return Promise.resolve(n);let s=r?.signal;return r={...r,signal:null},new Promise((e,t)=>{(0,p.u7)(s,()=>t((0,p.NK)()));let i=b(l),n=this._pendingTilemapRequests[i];if(!n){n=w.fromDefinition(l,r).then(e=>(this._tilemapCache.put(i,e,e.byteSize),e));let e=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=n,n.then(e,e)}n.then(e,t)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;let{parsedUrl:e,apiKey:t,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:e.path,query:(0,g.x0)({...e.query,...i,token:t??e.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(e,t,i,r){r.level=e,r.row=t-t%this.size,r.col=i-i%this.size;let l=b(r);return this._tilemapCache.get(l)}get test(){}};(0,l.Cg)([(0,y.MZ)({constructOnly:!0})],A.prototype,"layer",void 0),(0,l.Cg)([(0,y.MZ)({constructOnly:!0})],A.prototype,"minLOD",void 0),(0,l.Cg)([(0,y.MZ)({constructOnly:!0})],A.prototype,"maxLOD",void 0),(0,l.Cg)([(0,y.MZ)({constructOnly:!0})],A.prototype,"request",void 0),(0,l.Cg)([(0,y.MZ)({constructOnly:!0})],A.prototype,"size",void 0),A=r=(0,l.Cg)([(0,y.$K)("esri.layers.support.TilemapCache")],A)},32730(e,t,i){i.d(t,{BI:()=>p,D3:()=>u,XJ:()=>h,lc:()=>a,mX:()=>f,rU:()=>c,tH:()=>v,zA:()=>b});var r=i(799);const l=RegExp("__begin__","ig"),n=RegExp("__end__","ig"),s=RegExp("^__begin__","i"),o=RegExp("__end__$","i");function a(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function u(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function h(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=a(e.labelExpression),t.type="conventional"),t}function p(e){let t=h(e);if(!t)return null;switch(t.type){case"conventional":return f(t.expression);case"arcade":return t.expression}return null}function c(e){let t=h(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(g))?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function f(e){let t;return e?(t=(0,r.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=s.test(t)?t.replace(s,""):'"'+t,t=o.test(t)?t.replace(o,""):t+'"',t=t.replaceAll(l,'" + ').replaceAll(n,' + "')):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,y=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,d=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,m=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=y.exec(e)||d.exec(e);return t?t[1]||t[3]:(t=m.exec(e),t?t[2]:null)}const w=Symbol("LabelClassInstance");function b(e){return"object"==typeof e&&!!e&&w in e}i.d(t,["vK",0,w])},22671(e,t,i){i.d(t,{A:()=>v});var r,l=i(32198),n=i(52106),s=i(66552),o=i(25482),a=i(4718),u=i(91429),h=i(16930),p=i(60408),c=i(65864),f=i(50498),g=i(20437),y=i(36005),d=i(43937);const m=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=r=class extends o.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,i,r){if(e)return void m.write(e,t,i,r);let{features:l}=this;if(l)for(let e of l)if(null!=e?.geometry)return void m.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;let i=!!e.spatialReference,r=(0,c.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=h.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:i}=this;if(i)for(let e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){let r=t.features[i];r.geometry&&=(e?.[i])?.toJSON()||r.geometry}return t}quantize(e){let{scale:[t,i],translate:[r,l]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((l-e)/i));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:i}=this;if(!i)return this;let{translate:[r,l],scale:[n,s]}=i,o=null,a=null;if(this.hasZ&&null!=i?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=i;o=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=i;a=i=>null==i?i:i*t+e}let u=this._getHydrationFunction(e,e=>e*n+r,e=>l-e*s,o,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){let r=h.A.fromJSON(t.spatialReference),l=[];for(let t=0;t<e.length;t++){let n=e[t],s=i.fromJSON(n),o=n.geometry?.spatialReference;null!=s.geometry&&!o&&(s.geometry.spatialReference=r);let a=n.aggregateGeometries,u=s.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],i=a[e]?.spatialReference;null!=t&&!i&&(t.spatialReference=r)}l.push(s)}return l}_quantizePoints(e,t,i){let r,l,n=[];for(let s=0,o=e.length;s<o;s++){let o=e[s];if(s>0){let e=t(o[0]),s=i(o[1]);(e!==r||s!==l)&&(n.push([e-r,s-l]),r=e,l=s)}else r=t(o[0]),l=i(o[1]),n.push([r,l])}return n.length>0?n:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{let r=(0,p.Bi)(e)?e.rings:e.paths,l=[];for(let e=0,n=r.length;e<n;e++){let n=r[e],s=this._quantizePoints(n,t,i);s&&l.push(s)}return l.length>0?((0,p.Bi)(e)?e.rings=l:e.paths=l,e):null}:"multipoint"===e?e=>{let r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,l){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{let n,s,o=(0,p.Bi)(e)?e.rings:e.paths;for(let e=0,r=o.length;e<r;e++){let r=o[e];for(let e=0,l=r.length;e<l;e++){let l=r[e];e>0?(n+=l[0],s+=l[1]):(n=l[0],s=l[1]),l[0]=t(n),l[1]=i(s)}}if(r&&l)for(let e=0,t=o.length;e<t;e++){let t=o[e];for(let e=0,i=t.length;e<i;e++){let i=t[e];i[2]=r(i[2]),i[3]=l(i[3])}}else if(r)for(let e=0,t=o.length;e<t;e++){let t=o[e];for(let e=0,i=t.length;e<i;e++){let i=t[e];i[2]=r(i[2])}}else if(l)for(let e=0,t=o.length;e<t;e++){let t=o[e];for(let e=0,i=t.length;e<i;e++){let i=t[e];i[2]=l(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),l&&null!=e.mmax&&null!=e.mmin&&(e.mmax=l(e.mmax),e.mmin=l(e.mmin))}:"multipoint"===e?e=>{let n,s,o=e.points;for(let e=0,r=o.length;e<r;e++){let r=o[e];e>0?(n+=r[0],s+=r[1]):(n=r[0],s=r[1]),r[0]=t(n),r[1]=i(s)}if(r&&l)for(let e=0,t=o.length;e<t;e++){let t=o[e];t[2]=r(t[2]),t[3]=l(t[3])}else if(r)for(let e=0,t=o.length;e<t;e++){let t=o[e];t[2]=r(t[2])}else if(l)for(let e=0,t=o.length;e<t;e++){let t=o[e];t[2]=l(t[2])}}:null}};(0,l.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,l.Cg)([(0,u.MZ)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,l.Cg)([(0,y.w)("features")],v.prototype,"readFeatures",null),(0,l.Cg)([(0,u.MZ)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,l.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,l.Cg)([(0,d.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,l.Cg)([(0,u.MZ)({types:f.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,l.Cg)([(0,y.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,l.Cg)([(0,u.MZ)({type:h.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,l.Cg)([(0,d.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,l.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=r=(0,l.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},2272(e,t,i){i.d(t,{Dl:()=>u,gf:()=>p,jV:()=>a,lF:()=>h});var r=i(92602),l=i(70333),n=i(4718),s=i(84952),o=i(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,s.An)(e):(0,n.o8)(e)}function h(e,t,i){let r={};for(let l in e){if("declaredClass"===l)continue;let n=e[l];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))r[l]=n.map(e=>h(e));else if("object"==typeof n)if(n.toJSON){let e=n.toJSON(i?.[l]);r[l]=t?e:JSON.stringify(e)}else r[l]=t?n:JSON.stringify(n);else r[l]=n}return r}async function p(e,t,n){return function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??l.id?.findCredential(e)?.token:null}(e,t)||(!l.id&&r.A.request.useIdentity&&await Promise.all([i.e(6361),i.e(7644),i.e(3713)]).then(()=>i(50148)),(await l.id.getCredential(e,n))?.token)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6811],{52106(e,t,i){i.d(t,{A:()=>x});var r,l,n=i(32198),s=i(37838),o=i(69540),a=i(51447),u=i(25482),h=i(53966),p=i(36708),c=i(24326),f=i(91429),g=i(12195),y=i(65864),d=i(50498),m=i(55156),v=i(60950),w=i(54339),b=i(94128),_=i(33910);const A=Symbol("meshGeometryHandles");function M(e){if(null==e)return null;let t={};for(let i in e){let r=e[i];r&&(t[i]=r.toJSON())}return 0===Object.keys(t).length?null:t}let x=class extends((0,o.OU)(u.o)){static{r=b.Z}static{l=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(h.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new l({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,m.I)(this.origin);if(e)return(0,w.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){let e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:M(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let l={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(l.action=r),"attributes"===e&&(l.attributeName=r),this.layer.graphicChanged(l)}_watchMeshGeometryChanges(){this.removeHandles(A);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,p.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],A)}};(0,n.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let i in e){let r=(0,y.rS)(e[i]);r&&(t[i]=r)}return 0===Object.keys(t).length?null:t}}})],x.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,f.MZ)({value:null})],x.prototype,"attributes",null),(0,n.Cg)([(0,f.MZ)({value:null,types:d.yR,json:{read:y.rS}})],x.prototype,"geometry",null),(0,n.Cg)([(0,f.MZ)()],x.prototype,"distance",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean})],x.prototype,"isAggregate",void 0),(0,n.Cg)([(0,f.MZ)({clonable:!1})],x.prototype,"layer",void 0),(0,n.Cg)([(0,f.MZ)({clonable:"reference"})],x.prototype,"origin",void 0),(0,n.Cg)([(0,f.MZ)({type:s.A,value:null})],x.prototype,"popupTemplate",null),(0,n.Cg)([(0,f.MZ)({clonable:"reference"})],x.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,f.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],x.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,f.MZ)({value:null,types:_.Es})],x.prototype,"symbol",null),(0,n.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],x.prototype,"_version",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,value:!0})],x.prototype,"visible",null),x=l=(0,n.Cg)([(0,f.$K)("esri.Graphic")],x)},19334(e,t,i){i.d(t,{e:()=>s});var r=i(54639),l=i(14112);class n{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function s(e){if(null==e)return null;switch(e.type){case"point":if((0,l.e6)(e))return null;break;case"polygon":if((0,l.Wq)(e))return null;break;case"polyline":if((0,l.IY)(e))return null;break;case"multipoint":if((0,l.DG)(e))return null;break;case"extent":if((0,l.As)(e))return null;break;default:return null}let t=r.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new n(e));return t.asAccessorGeometry(),t}},36983(e,t,i){i.d(t,{R:()=>u,p:()=>h});var r=i(54639),l=i(14112),n=i(16930),s=i(60408),o=i(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){let t=(0,o.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if("object"!=typeof e||!e)return null;let i=t;if("spatialReference"in e&&(e.spatialReference instanceof n.A?i=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(i=new n.A,i.read(e.spatialReference))),null==i)throw Error("Spatial reference required");return(0,s.fT)(e)?h("point",e,i):(0,s.Rg)(e)?h("polyline",e,i):(0,s.Bi)(e)?h("polygon",e,i):(0,s.U9)(e)?h("multipoint",e,i):(0,s.ZC)(e)?h("extent",e,i):null}function h(e,t,i){if(null==t)return null;let n=!1,s=!1;switch(e){case"point":if((0,l.e6)(t))return null;n=void 0!==t.z,s=void 0!==t.m;break;case"polygon":if((0,l.Wq)(t))return null;n=!0===t.hasZ,s=!0===t.hasM;break;case"polyline":if((0,l.IY)(t))return null;n=!0===t.hasZ,s=!0===t.hasM;break;case"multipoint":if((0,l.DG)(t))return null;n=!0===t.hasZ,s=!0===t.hasM;break;case"extent":if((0,l.As)(t))return null;n=null!=t.zmin&&null!=t.zmax,s=null!=t.mmin&&null!=t.mmax;break;default:throw Error("Unsupported geometry type: "+t.type)}return r.R.of(e,i,n,s,new a(t))}},14112(e,t,i){function r(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function l(e){if(0===(e.curveRings??e.rings).length)return!0;for(let t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function n(e){if(0===(e.curvePaths??e.paths).length)return!0;for(let t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function s(e){return 0===e.points.length}function o(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}i.d(t,{As:()=>o,DG:()=>s,IY:()=>n,Wq:()=>l,e6:()=>r})},69052(e,t,i){i.d(t,{hr:()=>l});var r=i(34727);class l{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return n(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+s(this.range,e-t,i)}minimalMonotonic(e,t,i){return n(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);let i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function n(e,t,i,r,l=0,n=!1){return(r-=l)<t?r+=s(e,t-r):r>i&&(r-=s(e,r-i)),n&&r===i&&(r=t),r+l}function s(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const o=new l(0,2*Math.PI),a=(new l(-Math.PI,Math.PI),new l(0,360));i.d(t,["ie",0,a,"uC",0,o])},18370(e,t,i){i.d(t,{z:()=>l});class r{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function l(e){return new r(e)}},13069(e,t,i){i.d(t,{AG:()=>o,lk:()=>l,vD:()=>s,yS:()=>n});const r="randomUUID"in crypto;function l(){if(r)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${l().toUpperCase()}}`}function s(){return`{${l()}}`}function o(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},52039(e,t,i){i.d(t,{O7:()=>c,el:()=>u});var r=i(69052),l=(i(49186),i(18370)),n=i(17676),s=(i(5443),i(39829)),o=(i(82799),i(16930)),a=(i(80754),i(21325));async function u(e,t,i){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(i=t);let r=null;for(let t of e)r??=t?.spatialReference;if(!r)return e;let l=(0,a.Vp)(r);if(!l)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(l);return["xmin"in t?t:new s.A(t)]}let[o,u]=l.valid,c=!1;for(let t of e){if(!t)continue;if("point"===t.type){c||=t.x>=u,c||=t.x<=o;continue}let{extent:e}=t;if(null==e){c=!0;break}c||=e.xmin>=u,c||=e.xmin<=o,c||=e.xmax>=u,c||=e.xmax<=o}if(!c)return e;let[{foldInto360Range:f},g]=await(0,n.qr)(Promise.all([h.getImportPromise(),p.getImportPromise()]),i),y=g.fromSpatialReference(r);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=g.fromGeometry(e),i=g.toGeometry(f(t,y),r);return"extent"===e.type&&1===i?.rings.length?i.extent:i})}const h=(0,l.z)(()=>i.e(4144).then(()=>i(4144)).then(e=>e.load().then(()=>e))),p=(0,l.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125)));function c(e,t,i){let r=(0,a.Vp)(i);if(null==r)return e;let[l,n]=r.valid,s=2*n,o=0,u=0;t>n?o=Math.ceil(Math.abs(t-n)/s):t<l&&(o=-Math.ceil(Math.abs(t-l)/s)),e>n?u=Math.ceil(Math.abs(e-n)/s):e<l&&(u=-Math.ceil(Math.abs(e-l)/s));let h=e+(o-u)*s,p=h-t;return p>n?h-=s:p<l&&(h+=s),h}function f(e){let t=(0,a.Vp)(e);if(null==t)return null;let[i,l]=t.valid;return new r.hr(i,l)}const g=f(o.A.WGS84);f(o.A.WebMercator),i.d(t,["Y_",0,g])},80754(e,t,i){i.d(t,{kS:()=>u,kd:()=>a});var r=i(82799),l=i(16930),n=i(60408),s=i(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:l.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:l.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:l.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:l.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,s.Ed)(e))for(let i of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of i)if((0,s.aO)(e)){let[i,r]=e.c;i[0]+=t,r[0]+=t}else if((0,s.FG)(e)){let[i,r]=e.a;i[0]+=t,r[0]+=t}else if((0,s.n1)(e)){let[i,r,l]=e.b;i[0]+=t,r[0]+=t,l[0]+=t}else e[0]+=t;for(let i of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(let e of i)e[0]+=t;return e}i.d(t,["j7",0,o])},55156(e,t,i){i.d(t,{I:()=>l});const r=Symbol("idFieldsProviderSymbol");function l(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},71756(e,t,i){i.r(t);var r,l=i(32198),n=i(56507),s=i(49186),o=i(81583),a=i(25728),u=i(17676),h=i(84952),p=i(91429),c=i(16930),f=i(4146),g=i(52136),y=i(89186),d=i(98534),m=i(18768),v=i(63074),w=i(69208),b=i(34287),_=i(8303),A=i(54310),M=i(25036),x=i(91921),C=i(60694),S=i(10873),T=i(33446),O=i(15775),R=i(88625),I=i(36005),L=i(43937);const Z=["Canvas/World_Dark_Gray_Base","Canvas/World_Dark_Gray_Reference","Canvas/World_Light_Gray_Base","Canvas/World_Light_Gray_Reference","Elevation/World_Hillshade","Elevation/World_Hillshade_Dark","Ocean/World_Ocean_Base","Ocean/World_Ocean_Reference","Ocean_Basemap","Reference/World_Boundaries_and_Places","Reference/World_Boundaries_and_Places_Alternate","Reference/World_Transportation","World_Imagery","World_Street_Map","World_Topo_Map"];let z=r=class extends((0,v.dM)((0,M.j)((0,x.I)((0,y.f)((0,d.V)((0,b.q)((0,_.A)((0,m.b)((0,a.M)((0,A.J)((0,g.p)((0,w.d)(f.A))))))))))))){constructor(...e){super(...e),this.listMode="show",this.elevationInfo=new R.A({mode:"on-the-ground"}),this.isReference=null,this.operationalLayerType="ArcGISTiledMapServiceLayer",this.resampling=!0,this.sourceJSON=null,this.spatialReference=null,this.path=null,this.sublayers=null,this.type="tile",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(u.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get attributionDataUrl(){let e=this.parsedUrl?.path.toLowerCase();return e?this._getDefaultAttribution(this._getMapName(e)):null}get hasAttributionData(){return super.hasAttributionData}readSpatialReference(e,t){return e||=t.tileInfo?.spatialReference,e&&c.A.fromJSON(e)}writeSublayers(e,t,i,r){if(!this.loaded||!e)return;let l=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray(),n=[],s={writeSublayerStructure:!1,...r};l.forEach(e=>{let t=e.write({},s);n.push(t)}),n.some(e=>Object.keys(e).length>1)&&(t.layers=n)}get tileServers(){return this._getDefaultTileServers(this.parsedUrl?.path)}castTileServers(e){return Array.isArray(e)?e.map(e=>(0,h.An)(e).path):null}fetchTile(e,t,i,r={}){let{signal:l}=r,s=this.getTileUrl(e,t,i),o={responseType:"image",signal:l,query:{...this.refreshParameters}};return(0,n.A)(s,o).then(e=>e.data)}async fetchImageBitmapTile(e,t,i,l={}){let{signal:s}=l;if(this.fetchTile!==r.prototype.fetchTile){let r=await this.fetchTile(e,t,i,l);return(0,T.Cp)(r,e,t,i,l)}let o=this.getTileUrl(e,t,i),a={responseType:"blob",signal:s,query:{...this.refreshParameters}},{data:u}=await(0,n.A)(o,a);return(0,T.Cp)(u,e,t,i,l)}getTileUrl(e,t,i){let r=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,l=(0,h.x0)({...this.parsedUrl?.query,blankTile:!r&&null,...this.customParameters,token:this.apiKey}),n=this.tileServers;return`${n&&n.length?n[t%n.length]:this.parsedUrl?.path}/tile/${e}/${t}/${i}${l?"?"+l:""}`}loadAll(){return(0,o.g)(this,e=>{e(this.allSublayers)})}_fetchService(e){return new Promise((t,i)=>{if(this.sourceJSON){if(null!=this.sourceJSON.bandCount&&null!=this.sourceJSON.pixelSizeX)throw new s.A("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");return void t({data:this.sourceJSON})}if(!this.parsedUrl)throw new s.A("tile-layer:undefined-url","layer's url is not defined");let r=(0,C.qg)(this.parsedUrl.path);if(null!=r&&"ImageServer"===r.serverType)throw new s.A("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");(0,n.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(t,i)}).then(t=>{let i=this.url;if(t.ssl&&(i=this.url=i.replace(/^http:/i,"https:")),this.sourceJSON=t.data,this.read(t.data,{origin:"service",url:this.parsedUrl}),10.1===this.version&&!(0,C.Wo)(i))return this._fetchServerVersion(i,e).then(e=>{this.read({currentVersion:e})}).catch(()=>{})})}_fetchServerVersion(e,t){if(!(0,C.Fi)(e))return Promise.reject();let i=e.replace(/(.*\/rest)\/.*/i,"$1")+"/info";return(0,n.A)(i,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t}).then(e=>{if(e.data?.currentVersion)return e.data.currentVersion;throw new s.A("tile-layer:version-not-available","Server did not provide a version")})}_getMapName(e){let t=e.match(/^(?:https?:)?\/\/(server\.arcgisonline\.com|services\.arcgisonline\.com|ibasemaps-api\.arcgis\.com)\/arcgis\/rest\/services\/([^/]+(\/[^/]+)*)\/mapserver/i);return t?t[2]:void 0}_getDefaultAttribution(e){if(null==e)return null;let t;e=e.toLowerCase();for(let i=0,r=Z.length;i<r;i++)if(t=Z[i],t.toLowerCase().includes(e))return(0,h.s2)("//static.arcgis.com/attribution/"+t);return null}_getDefaultTileServers(e){if(null==e)return[];let t=-1!==e.search(/^(?:https?:)?\/\/server\.arcgisonline\.com/i),i=-1!==e.search(/^(?:https?:)?\/\/services\.arcgisonline\.com/i);return t||i?[e,e.replace(t?/server\.arcgisonline/i:/services\.arcgisonline/i,t?"services.arcgisonline":"server.arcgisonline")]:[]}get hasOverriddenFetchTile(){return!this.fetchTile[G]}};(0,l.Cg)([(0,p.MZ)({readOnly:!0})],z.prototype,"attributionDataUrl",null),(0,l.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],z.prototype,"listMode",void 0),(0,l.Cg)([(0,p.MZ)({json:{read:!0,write:!0}})],z.prototype,"blendMode",void 0),(0,l.Cg)([(0,p.MZ)()],z.prototype,"elevationInfo",void 0),(0,l.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],z.prototype,"isReference",void 0),(0,l.Cg)([(0,p.MZ)({readOnly:!0,type:["ArcGISTiledMapServiceLayer"]})],z.prototype,"operationalLayerType",void 0),(0,l.Cg)([(0,p.MZ)({type:Boolean})],z.prototype,"resampling",void 0),(0,l.Cg)([(0,p.MZ)()],z.prototype,"sourceJSON",void 0),(0,l.Cg)([(0,p.MZ)({type:c.A})],z.prototype,"spatialReference",void 0),(0,l.Cg)([(0,I.w)("spatialReference",["spatialReference","tileInfo"])],z.prototype,"readSpatialReference",null),(0,l.Cg)([(0,p.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],z.prototype,"path",void 0),(0,l.Cg)([(0,p.MZ)({readOnly:!0})],z.prototype,"sublayers",void 0),(0,l.Cg)([(0,L.K)("sublayers",{layers:{type:[O.A]}})],z.prototype,"writeSublayers",null),(0,l.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],z.prototype,"popupEnabled",void 0),(0,l.Cg)([(0,p.MZ)()],z.prototype,"tileServers",null),(0,l.Cg)([(0,p.wg)("tileServers")],z.prototype,"castTileServers",null),(0,l.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],z.prototype,"type",void 0),(0,l.Cg)([(0,p.MZ)(S.OZ)],z.prototype,"url",void 0),z=r=(0,l.Cg)([(0,p.$K)("esri.layers.TileLayer")],z);const G=Symbol("default-fetch-tile");z.prototype.fetchTile[G]=!0;const D=z;i.d(t,["default",0,D])},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function l(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>l})},89186(e,t,i){var r=i(32198),l=i(91429),n=i(16930),s=i(87045),o=i(65509),a=i(25943),u=i(36005);i.d(t,["f",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,i){let r=t.capabilities?.toLowerCase().includes("tilemap"),{minLOD:l,maxLOD:n,minScale:u,maxScale:h}=t;if(null==l&&null==n&&(0!==u||0!==h)){let e=e=>Math.round(1e4*e)/1e4;u=e(u||t.tileInfo.lods[0].scale),h=e(h||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(let i of t.tileInfo.lods){let t=e(i.scale);l=t>=u?i.level:l,n=t>=h?i.level:n}}if(r)return new a.d({layer:this,minLOD:l,maxLOD:n});if(t.tileInfo){let e=new s.A;return e.read(t.tileInfo,i),new o.A(e,l,n)}return null}};return(0,r.Cg)([(0,l.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"minScale",void 0),(0,r.Cg)([(0,u.w)("service","minScale")],i.prototype,"readMinScale",null),(0,r.Cg)([(0,l.MZ)()],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,u.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,r.Cg)([(0,l.MZ)({type:n.A})],i.prototype,"spatialReference",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,r.Cg)([(0,l.MZ)({type:s.A})],i.prototype,"tileInfo",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"tilemapCache",void 0),(0,r.Cg)([(0,u.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,r.Cg)([(0,l.MZ)()],i.prototype,"version",void 0),i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}])},91806(e,t,i){i.d(t,{A:()=>a});var r,l=i(32198),n=i(25482),s=i(91429),o=i(78888);let a=class extends n.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,l.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,l.Cg)([(0,s.MZ)({type:o.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,l.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,l.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,l.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,l.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,l.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=r=(0,l.Cg)([(0,s.$K)("esri.layers.support.LOD")],a)},87045(e,t,i){i.d(t,{A:()=>w});var r,l=i(32198),n=i(66552),s=i(25482),o=i(86211),a=i(91429),u=i(78888),h=i(86738),p=i(16930),c=i(21325),f=i(28735),g=i(91806),y=i(72802),d=i(36005),m=i(43937);const v=new n.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",JPEGPlus:"jpgplus",pbf:"pbf"});let w=class extends s.o{static{r=this}static create(e={}){let{resolutionFactor:t=1,scales:i,size:l=256,spatialReference:n=p.A.WebMercator,numLODs:s=24}=e;if(!(0,c.fn)(n)){let e=[];if(i)for(let t=0;t<i.length;t++){let r=i[t];e.push(new g.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=s-1;i>=0;i--)e.unshift(new g.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new h.A(0,0,n),size:[l,l],spatialReference:n})}let a=(0,c.Vp)(n),u=e.origin?new h.A({x:e.origin.x,y:e.origin.y,spatialReference:n}):a?new h.A({x:a.origin[0],y:a.origin[1],spatialReference:n}):new h.A({x:0,y:0,spatialReference:n}),f=1/(39.37*(0,o.GA)(n)*96),y=[];if(i)for(let e=0;e<i.length;e++){let t=i[e],r=t*f;y.push(new g.A({level:e,scale:t,resolution:r}))}else{let e=(0,c.EA)(n)?512/l*591657527.5917094:256/l*591657527.591555,i=Math.ceil(s/t);y.push(new g.A({level:0,scale:e,resolution:e*f}));for(let r=1;r<i;r++){let i=e/2**t,l=i*f;y.push(new g.A({level:r,scale:i,resolution:l})),e=i}}return new r({dpi:96,lods:y,origin:u,size:[l,l],spatialReference:n})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){let{spatialReference:e,origin:t}=this;if(e&&t){let i=(0,c.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return h.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0,r=[],l=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,l[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){let t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];let i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){let t=this.scales,i=t.length-1,r=0;for(;r<i;r++){let i=t[r],l=t[r+1];if(i<=e)return r;if(l===e)return r+1;if(i>e&&l<e)return r+Math.log(i/e)/Math.log(i/l)}return r}tileAt(e,t,i,r){let l,n,s=this.lodAt(e);if(!s)return null;if("number"==typeof t)l=t,n=i;else if((0,c.aI)(t.spatialReference,this.spatialReference))l=t.x,n=t.y,r=i;else{let e=(0,f.Cv)(t,this.spatialReference);if(null==e)return null;l=e.x,n=e.y,r=i}let o=s.resolution*this.size[0],a=s.resolution*this.size[1];return r??=new y.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-n)/a+.001),r.col=Math.floor((l-this.origin.x)/o+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){let t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;let r=e.level-i.level,l=i.resolution*this.size[0]/2**r,n=i.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*l,e.extent[1]=this.origin.y-(e.row+1)*n,e.extent[2]=e.extent[0]+l,e.extent[3]=e.extent[1]+n,!0}upsampleTile(e){let t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){let i=this.lodAt(t.level);if(null==i)return null;let{resolution:r}=i,l=r*this.size[0],n=r*this.size[1];return e[0]=this.origin.x+t.col*l,e[1]=this.origin.y-(t.row+1)*n,e[2]=e[0]+l,e[3]=e[1]+n,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;let t=(512===this.size[0]&&256===e?-1:0)+ +!!this.spatialReference.isGeographic;if(this.size[0]===e&&0===t)return this;let i=[],l=this.lods.length-t;for(let e=0;e<l;e++){let r=e+t,{scale:l,resolution:n}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new g.A({level:e,scale:l,resolution:n}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){let e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){let r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{read:v.read,write:v.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,l.Cg)([(0,a.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,l.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,l.Cg)([(0,d.w)("origin")],w.prototype,"readOrigin",null),(0,l.Cg)([(0,a.MZ)({type:[g.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,l.Cg)([(0,a.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,l.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,l.Cg)([(0,d.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,l.Cg)([(0,m.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],w.prototype,"writeSize",null),(0,l.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=r=(0,l.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],w)},65509(e,t,i){i.d(t,{A:()=>n});var r=i(49186),l=i(17676);class n{constructor(e,t=0,i=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=i,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(i)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,i){let r=this.tileInfo?.lodAt(e);return!r||e<this.minLOD||e>this.maxLOD?"unavailable":r.cols&&r.rows?i>=r.cols[0]&&i<=r.cols[1]&&t>=r.rows[0]&&t<=r.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,i,n){await(0,l.NO)(n);let s=this.getAvailability(e,t,i);if("unavailable"===s)throw new r.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i});return s}async fetchAvailabilityUpsample(e,t,i,r,n){await(0,l.NO)(n),r.level=e,r.row=t,r.col=i;let s=this.tileInfo;return s.updateTileInfo(r),this.fetchAvailability(e,t,i,n).catch(e=>{if((0,l.zf)(e))throw e;if(s.upsampleTile(r))return this.fetchAvailabilityUpsample(r.level,r.row,r.col,r,n);throw e})}}},72802(e,t,i){i.d(t,{U:()=>l});var r=i(19419);class l{constructor(e,t,i,l=(0,r.vt)()){this._level=e,this._row=t,this._col=i,this.extent=l}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new l(e.level,e.row,e.col,e.extent)}}},25943(e,t,i){i.d(t,{d:()=>A});var r,l=i(32198),n=i(56507),s=i(69622),o=i(49186),a=i(36563),u=(i(44208),i(66344)),h=i(15142),p=i(17676),c=i(36708),f=i(76030),g=i(84952),y=i(91429),d=i(72802),m=i(4718),v=i(69397);class w{constructor(e){!function(e){if(!e?.location)throw new o.A("tilemap:missing-location","Location missing from tilemap response");if(!1===e.valid)throw new o.A("tilemap:invalid","Tilemap response was marked as invalid");if(!e.data)throw new o.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(e.data))throw new o.A("tilemap:data-mismatch","Data must be an array of numbers");if(e.data.length!==e.location.width*e.location.height)throw new o.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(e);let{location:t,data:i}=e;this.location=Object.freeze((0,m.o8)(t));let r=this.location.width,l=this.location.height,n=!0,s=!0,a=function(e,t=!1){return e<=1024?t?Array(e).fill(0):Array(e):new Uint32Array(e)}(Math.ceil(r*l/32)),u=0;for(let e=0;e<i.length;e++){let t=e%32;i[e]?(s=!1,a[u]|=1<<t):n=!1,31===t&&++u}s?(this._availability="unavailable",this.byteSize=40):n?(this._availability="available",this.byteSize=40):(this._availability=a,this.byteSize=40+(0,v.Qf)(a))}getAvailability(e,t){if("unavailable"===this._availability||"available"===this._availability)return this._availability;let i=(e-this.location.top)*this.location.width+(t-this.location.left),r=i%32,l=i>>5,n=this._availability;return l<0||l>n.length?"unknown":n[l]&1<<r?"available":"unavailable"}static fromDefinition(e,t){let i=e.service.request||n.A,{row:r,col:l,width:s,height:a}=e,u={query:{f:"json"}};return t=t?{...u,...t}:u,i(function(e){let t;if(e.service.tileServers?.length){let i=e.service.tileServers;t=`${i&&i.length?i[e.row%i.length]:e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}else t=`${e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`;let i=e.service.query;return i&&(t=`${t}?${i}`),t}(e),t).then(e=>e.data).catch(e=>{if(422===e?.details?.httpStatus)return{location:{top:r,left:l,width:s,height:a},valid:!0,data:Array(s*a).fill(0)};throw e}).then(e=>{if(e.location&&(e.location.top!==r||e.location.left!==l||e.location.width!==s||e.location.height!==a))throw new o.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:e,definition:{top:r,left:l,width:s,height:a}});return w.fromJSON(e)})}static fromJSON(e){return Object.freeze(new w(e))}}function b(e){return`${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}function _(e,t,i){return new o.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i})}let A=class extends s.A{static{r=this}constructor(e){super(e),this._pendingTilemapRequests={},this.request=n.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new u.q(2097152),this.addHandles((0,c.wB)(()=>{let{layer:e}=this;return[e?.parsedUrl,e?.tileServers,e?.apiKey,e?.customParameters]},()=>this._initializeTilemapDefinition(),c.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(e,t,i){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return"unavailable";let r=this._tilemapFromCache(e,t,i,this._tmpTilemapDefinition);return r?r.getAvailability(t,i):"unknown"}fetchAvailability(e,t,i,r){return!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD?Promise.reject(_(e,t,i)):this._fetchTilemap(e,t,i,r).catch(e=>e).then(r=>{if(r instanceof w){let l=r.getAvailability(t,i);if("unavailable"===l)throw _(e,t,i);return l}if((0,p.zf)(r))throw r;return"unknown"})}fetchAvailabilityUpsample(e,t,i,r,l){r.level=e,r.row=t,r.col=i;let n=this.layer.tileInfo;n.updateTileInfo(r);let s=this.fetchAvailability(e,t,i,l).catch(e=>{if((0,p.zf)(e))throw e;if(n.upsampleTile(r))return this.fetchAvailabilityUpsample(r.level,r.row,r.col,r,l);throw e});return this._fetchAvailabilityUpsamplePrefetch(e,t,i,l,s),s}async _fetchAvailabilityUpsamplePrefetch(e,t,i,l,n){if(!this._prefetchingEnabled)return;let s=`prefetch-${e}-${t}-${i}`;if(this.hasHandles(s))return;let o=new AbortController;n.then(()=>o.abort(),()=>o.abort());let u=!1,h=(0,a.hA)(()=>{u||(u=!0,o.abort())});if(this.addHandles(h,s),await(0,f.md)(10,o.signal).catch(()=>{}),u||(u=!0,this.removeHandles(s)),(0,p.G4)(o))return;let c=new d.U(e,t,i),g={...l,signal:o.signal},y=this.layer.tileInfo;for(let e=0;r._prefetches.length<r._maxPrefetch&&y.upsampleTile(c);++e){let e=this.fetchAvailability(c.level,c.row,c.col,g);r._prefetches.push(e);let t=()=>{r._prefetches.removeUnordered(e)};e.then(t,t)}}static{this._maxPrefetch=4}static{this._prefetches=new h.A({initialSize:r._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(e,t,i,r){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return Promise.reject(new o.A("tilemap-cache:level-unavailable",`Level ${e} is unavailable in the service`));let l=this._tmpTilemapDefinition,n=this._tilemapFromCache(e,t,i,l);if(n)return Promise.resolve(n);let s=r?.signal;return r={...r,signal:null},new Promise((e,t)=>{(0,p.u7)(s,()=>t((0,p.NK)()));let i=b(l),n=this._pendingTilemapRequests[i];if(!n){n=w.fromDefinition(l,r).then(e=>(this._tilemapCache.put(i,e,e.byteSize),e));let e=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=n,n.then(e,e)}n.then(e,t)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;let{parsedUrl:e,apiKey:t,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:e.path,query:(0,g.x0)({...e.query,...i,token:t??e.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(e,t,i,r){r.level=e,r.row=t-t%this.size,r.col=i-i%this.size;let l=b(r);return this._tilemapCache.get(l)}get test(){}};(0,l.Cg)([(0,y.MZ)({constructOnly:!0})],A.prototype,"layer",void 0),(0,l.Cg)([(0,y.MZ)({constructOnly:!0})],A.prototype,"minLOD",void 0),(0,l.Cg)([(0,y.MZ)({constructOnly:!0})],A.prototype,"maxLOD",void 0),(0,l.Cg)([(0,y.MZ)({constructOnly:!0})],A.prototype,"request",void 0),(0,l.Cg)([(0,y.MZ)({constructOnly:!0})],A.prototype,"size",void 0),A=r=(0,l.Cg)([(0,y.$K)("esri.layers.support.TilemapCache")],A)},32730(e,t,i){i.d(t,{BI:()=>p,D3:()=>u,XJ:()=>h,lc:()=>a,mX:()=>f,rU:()=>c,tH:()=>v,zA:()=>b});var r=i(799);const l=RegExp("__begin__","ig"),n=RegExp("__end__","ig"),s=RegExp("^__begin__","i"),o=RegExp("__end__$","i");function a(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function u(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function h(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=a(e.labelExpression),t.type="conventional"),t}function p(e){let t=h(e);if(!t)return null;switch(t.type){case"conventional":return f(t.expression);case"arcade":return t.expression}return null}function c(e){let t=h(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(g))?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function f(e){let t;return e?(t=(0,r.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=s.test(t)?t.replace(s,""):'"'+t,t=o.test(t)?t.replace(o,""):t+'"',t=t.replaceAll(l,'" + ').replaceAll(n,' + "')):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,y=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,d=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,m=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=y.exec(e)||d.exec(e);return t?t[1]||t[3]:(t=m.exec(e),t?t[2]:null)}const w=Symbol("LabelClassInstance");function b(e){return"object"==typeof e&&!!e&&w in e}i.d(t,["vK",0,w])},22671(e,t,i){i.d(t,{A:()=>v});var r,l=i(32198),n=i(52106),s=i(66552),o=i(25482),a=i(4718),u=i(91429),h=i(16930),p=i(60408),c=i(65864),f=i(50498),g=i(20437),y=i(36005),d=i(43937);const m=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=r=class extends o.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,i,r){if(e)return void m.write(e,t,i,r);let{features:l}=this;if(l)for(let e of l)if(null!=e?.geometry)return void m.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;let i=!!e.spatialReference,r=(0,c.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=h.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:i}=this;if(i)for(let e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){let r=t.features[i];r.geometry&&=(e?.[i])?.toJSON()||r.geometry}return t}quantize(e){let{scale:[t,i],translate:[r,l]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((l-e)/i));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:i}=this;if(!i)return this;let{translate:[r,l],scale:[n,s]}=i,o=null,a=null;if(this.hasZ&&null!=i?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=i;o=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=i;a=i=>null==i?i:i*t+e}let u=this._getHydrationFunction(e,e=>e*n+r,e=>l-e*s,o,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){let r=h.A.fromJSON(t.spatialReference),l=[];for(let t=0;t<e.length;t++){let n=e[t],s=i.fromJSON(n),o=n.geometry?.spatialReference;null!=s.geometry&&!o&&(s.geometry.spatialReference=r);let a=n.aggregateGeometries,u=s.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],i=a[e]?.spatialReference;null!=t&&!i&&(t.spatialReference=r)}l.push(s)}return l}_quantizePoints(e,t,i){let r,l,n=[];for(let s=0,o=e.length;s<o;s++){let o=e[s];if(s>0){let e=t(o[0]),s=i(o[1]);(e!==r||s!==l)&&(n.push([e-r,s-l]),r=e,l=s)}else r=t(o[0]),l=i(o[1]),n.push([r,l])}return n.length>0?n:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{let r=(0,p.Bi)(e)?e.rings:e.paths,l=[];for(let e=0,n=r.length;e<n;e++){let n=r[e],s=this._quantizePoints(n,t,i);s&&l.push(s)}return l.length>0?((0,p.Bi)(e)?e.rings=l:e.paths=l,e):null}:"multipoint"===e?e=>{let r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,l){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{let n,s,o=(0,p.Bi)(e)?e.rings:e.paths;for(let e=0,r=o.length;e<r;e++){let r=o[e];for(let e=0,l=r.length;e<l;e++){let l=r[e];e>0?(n+=l[0],s+=l[1]):(n=l[0],s=l[1]),l[0]=t(n),l[1]=i(s)}}if(r&&l)for(let e=0,t=o.length;e<t;e++){let t=o[e];for(let e=0,i=t.length;e<i;e++){let i=t[e];i[2]=r(i[2]),i[3]=l(i[3])}}else if(r)for(let e=0,t=o.length;e<t;e++){let t=o[e];for(let e=0,i=t.length;e<i;e++){let i=t[e];i[2]=r(i[2])}}else if(l)for(let e=0,t=o.length;e<t;e++){let t=o[e];for(let e=0,i=t.length;e<i;e++){let i=t[e];i[2]=l(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),l&&null!=e.mmax&&null!=e.mmin&&(e.mmax=l(e.mmax),e.mmin=l(e.mmin))}:"multipoint"===e?e=>{let n,s,o=e.points;for(let e=0,r=o.length;e<r;e++){let r=o[e];e>0?(n+=r[0],s+=r[1]):(n=r[0],s=r[1]),r[0]=t(n),r[1]=i(s)}if(r&&l)for(let e=0,t=o.length;e<t;e++){let t=o[e];t[2]=r(t[2]),t[3]=l(t[3])}else if(r)for(let e=0,t=o.length;e<t;e++){let t=o[e];t[2]=r(t[2])}else if(l)for(let e=0,t=o.length;e<t;e++){let t=o[e];t[2]=l(t[2])}}:null}};(0,l.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,l.Cg)([(0,u.MZ)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,l.Cg)([(0,y.w)("features")],v.prototype,"readFeatures",null),(0,l.Cg)([(0,u.MZ)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,l.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,l.Cg)([(0,d.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,l.Cg)([(0,u.MZ)({types:f.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,l.Cg)([(0,y.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,l.Cg)([(0,u.MZ)({type:h.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,l.Cg)([(0,d.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,l.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=r=(0,l.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},2272(e,t,i){i.d(t,{Dl:()=>u,gf:()=>p,jV:()=>a,lF:()=>h});var r=i(92602),l=i(70333),n=i(4718),s=i(84952),o=i(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,s.An)(e):(0,n.o8)(e)}function h(e,t,i){let r={};for(let l in e){if("declaredClass"===l)continue;let n=e[l];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))r[l]=n.map(e=>h(e));else if("object"==typeof n)if(n.toJSON){let e=n.toJSON(i?.[l]);r[l]=t?e:JSON.stringify(e)}else r[l]=t?n:JSON.stringify(n);else r[l]=n}return r}async function p(e,t,n){return function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??l.id?.findCredential(e)?.token:null}(e,t)||(!l.id&&r.A.request.useIdentity&&await Promise.all([i.e(6361),i.e(6475),i.e(3713)]).then(()=>i(50148)),(await l.id.getCredential(e,n))?.token)}}}]);
|