@arcgis/core 4.26.0 → 4.26.2

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.
Files changed (90) hide show
  1. package/arcade/ArcadeDate.js +1 -1
  2. package/arcade/Feature.js +1 -1
  3. package/arcade/arcadeTimeUtils.js +1 -1
  4. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/009cd8f27d2357ec9317.js +1 -0
  7. package/assets/esri/core/workers/chunks/03081e28fe59ba2e8040.js +1 -0
  8. package/assets/esri/core/workers/chunks/17ce4b146825adcca307.js +1 -0
  9. package/assets/esri/core/workers/chunks/186f2d0c94fa1eca4959.js +1 -0
  10. package/assets/esri/core/workers/chunks/1fd48420dfbbfdb3b051.js +1 -0
  11. package/assets/esri/core/workers/chunks/226bfa115acb8542f21c.js +1 -0
  12. package/assets/esri/core/workers/chunks/{25abc848a128b24ff66e.js → 3808f33563757fad703d.js} +1 -1
  13. package/assets/esri/core/workers/chunks/38ebf5d20576609566f9.js +1 -0
  14. package/assets/esri/core/workers/chunks/4125b10b1d009f35e75e.js +1 -0
  15. package/assets/esri/core/workers/chunks/47195afa66f640cb4b64.js +1 -0
  16. package/assets/esri/core/workers/chunks/48d35993b6ffb76e56e9.js +1 -0
  17. package/assets/esri/core/workers/chunks/5022862c5658e7bb0e04.js +1 -0
  18. package/assets/esri/core/workers/chunks/55782608bee89fa0d6e1.js +1 -0
  19. package/assets/esri/core/workers/chunks/5598996bcf60741aa734.js +1 -0
  20. package/assets/esri/core/workers/chunks/592e9834aa896cdd0e86.js +1 -0
  21. package/assets/esri/core/workers/chunks/5a5e4983c526bf08c7f1.js +1 -0
  22. package/assets/esri/core/workers/chunks/{a6d34147e7dbb1e4609c.js → 5f8acce073b8da5ac6ae.js} +1 -1
  23. package/assets/esri/core/workers/chunks/611c27efa10e4e04d8b6.js +1 -0
  24. package/assets/esri/core/workers/chunks/6ecf0bb8e16159160cde.js +1 -0
  25. package/assets/esri/core/workers/chunks/81949c9d14a8d75c45b6.js +1 -0
  26. package/assets/esri/core/workers/chunks/843a8b87ebecc246598a.js +1 -0
  27. package/assets/esri/core/workers/chunks/84c0a8d41eec91bb5142.js +1 -0
  28. package/assets/esri/core/workers/chunks/85c6a2c7239d0cf73a44.js +1 -0
  29. package/assets/esri/core/workers/chunks/8f3262f33d635cf9f046.js +1 -0
  30. package/assets/esri/core/workers/chunks/9054fd0707a15d037bb9.js +1 -0
  31. package/assets/esri/core/workers/chunks/a2e5b67c1c65a93f3c75.js +1 -0
  32. package/assets/esri/core/workers/chunks/b8b6df646ecf5482c5b4.js +1 -0
  33. package/assets/esri/core/workers/chunks/bcdd71e7475777f0f1bb.js +1 -0
  34. package/assets/esri/core/workers/chunks/{97ba79f9bceb42405573.js → bce1d4d6449a646834a1.js} +1 -1
  35. package/assets/esri/core/workers/chunks/bdeb15d8c536cc64f8da.js +1 -0
  36. package/assets/esri/core/workers/chunks/c999e9dd748ae449d66e.js +1 -0
  37. package/assets/esri/core/workers/chunks/cb177fb86cf8cec95e87.js +1 -0
  38. package/assets/esri/core/workers/chunks/{3c557a5728c76843561f.js → d3498d28fd01a0ad3899.js} +1 -1
  39. package/assets/esri/core/workers/chunks/dd698ada6b7c03cfd25c.js +1 -0
  40. package/assets/esri/core/workers/chunks/e26acb83eae5eec87ca1.js +1 -0
  41. package/assets/esri/core/workers/chunks/eca1b840c009e5477b80.js +1 -0
  42. package/assets/esri/core/workers/chunks/fbe981e42e92a32d922d.js +1 -0
  43. package/config.js +1 -1
  44. package/core/string.js +1 -1
  45. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  46. package/layers/support/PixelBlock.js +1 -1
  47. package/package.json +1 -1
  48. package/support/revision.js +1 -1
  49. package/views/2d/engine/ImageryBitmapSource.js +1 -1
  50. package/views/2d/layers/features/sources/BaseFeatureSource.js +1 -1
  51. package/views/2d/layers/features/sources/DataTileSource.js +1 -1
  52. package/views/layers/ImageryTileLayerView.js +1 -1
  53. package/widgets/Editor.js +1 -1
  54. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  55. package/widgets/FeatureForm/featureFormUtils.js +1 -1
  56. package/widgets/FeatureForm.js +1 -1
  57. package/assets/esri/core/workers/chunks/03a811b5a912d83792dd.js +0 -1
  58. package/assets/esri/core/workers/chunks/0923c0641ca9d9a52efc.js +0 -1
  59. package/assets/esri/core/workers/chunks/1aff09c90f287eeba408.js +0 -1
  60. package/assets/esri/core/workers/chunks/1faf0e2aeabe003e2f64.js +0 -1
  61. package/assets/esri/core/workers/chunks/28a17bb249893350c2bf.js +0 -1
  62. package/assets/esri/core/workers/chunks/29662688eedc6df54d4b.js +0 -1
  63. package/assets/esri/core/workers/chunks/2b94b1bc4634f0518890.js +0 -1
  64. package/assets/esri/core/workers/chunks/3664d97f0c2819690cf9.js +0 -1
  65. package/assets/esri/core/workers/chunks/3d457f987e2089d67e89.js +0 -1
  66. package/assets/esri/core/workers/chunks/41d25407888326c91566.js +0 -1
  67. package/assets/esri/core/workers/chunks/4503194b1b1d8908a386.js +0 -1
  68. package/assets/esri/core/workers/chunks/4a264b7cfd0a4bc62be9.js +0 -1
  69. package/assets/esri/core/workers/chunks/4cddaa79af86b0981baa.js +0 -1
  70. package/assets/esri/core/workers/chunks/582d12138e6eea62d6fe.js +0 -1
  71. package/assets/esri/core/workers/chunks/5e9869849d999aac5756.js +0 -1
  72. package/assets/esri/core/workers/chunks/636b4e080d701d5856c7.js +0 -1
  73. package/assets/esri/core/workers/chunks/69c89c01783250811b56.js +0 -1
  74. package/assets/esri/core/workers/chunks/72c827a5388a4b1112e3.js +0 -1
  75. package/assets/esri/core/workers/chunks/7db8a429ef7bf11c5bb6.js +0 -1
  76. package/assets/esri/core/workers/chunks/8d52093b6c4bfd087a12.js +0 -1
  77. package/assets/esri/core/workers/chunks/9b449a036598479ad0b0.js +0 -1
  78. package/assets/esri/core/workers/chunks/9c67598554e0d2b2c14a.js +0 -1
  79. package/assets/esri/core/workers/chunks/9f8aad19c5973e201604.js +0 -1
  80. package/assets/esri/core/workers/chunks/9ff12db2f3dcd5749053.js +0 -1
  81. package/assets/esri/core/workers/chunks/a0e3b837262d6d64f605.js +0 -1
  82. package/assets/esri/core/workers/chunks/a213fb1cd2b5da2b7027.js +0 -1
  83. package/assets/esri/core/workers/chunks/aa864f9ad6b9a92ab328.js +0 -1
  84. package/assets/esri/core/workers/chunks/bb6e4affafef9855b8fd.js +0 -1
  85. package/assets/esri/core/workers/chunks/bd711b7229aa5cfa063b.js +0 -1
  86. package/assets/esri/core/workers/chunks/e384e1daec50f8cdcdd1.js +0 -1
  87. package/assets/esri/core/workers/chunks/eccc725bc3f8047171f7.js +0 -1
  88. package/assets/esri/core/workers/chunks/f3b59aa3b33e3ee70bec.js +0 -1
  89. package/assets/esri/core/workers/chunks/f7ed302a233d4cfb9060.js +0 -1
  90. package/assets/esri/core/workers/chunks/fd03ba4613f8973f8c86.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4150,6395,216],{3920:(e,t,r)=>{r.d(t,{p:()=>p,r:()=>d});var i=r(43697),a=r(15923),n=r(61247),o=r(5600),s=r(52011),l=r(72762);const p=e=>{let t=class extends e{destroy(){this.destroyed||(this._get("handles")?.destroy(),this._get("updatingHandles")?.destroy())}get handles(){return this._get("handles")||new n.Z}get updatingHandles(){return this._get("updatingHandles")||new l.t}};return(0,i._)([(0,o.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,i._)([(0,o.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,i._)([(0,s.j)("esri.core.HandleOwner")],t),t};let d=class extends(p(a.Z)){};d=(0,i._)([(0,s.j)("esri.core.HandleOwner")],d)},42033:(e,t,r)=>{r.d(t,{E:()=>a,_:()=>n});var i=r(70586);async function a(e,t){const{WhereClause:i}=await r.e(1534).then(r.bind(r,41534));return i.create(e,t)}function n(e,t){return(0,i.pC)(e)?(0,i.pC)(t)?`(${e}) AND (${t})`:e:t}},72762:(e,t,r)=>{r.d(t,{t:()=>u});var i=r(43697),a=r(15923),n=r(61247),o=r(70586),s=r(17445),l=r(1654),p=r(5600),d=r(52011);let u=class extends a.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._handles=new n.Z,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll(),this._handles.destroy()}add(e,t,r={}){return this._installWatch(e,t,r,s.YP)}addWhen(e,t,r={}){return this._installWatch(e,t,r,s.gx)}addOnCollectionChange(e,t,{initial:r=!1,final:i=!1}={}){const a=++this._handleId;return this._handles.add([(0,s.on)(e,"after-changes",this._createSyncUpdatingCallback(),s.Z_),(0,s.on)(e,"change",t,{onListenerAdd:r?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:i?e=>t({added:[],removed:e.toArray()}):void 0})],a),{remove:()=>this._handles.remove(a)}}addPromise(e){if((0,o.Wi)(e))return e;const t=++this._handleId;this._handles.add({remove:()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this._handles.has(c)||this._set("updating",!1))}},t),this._pendingPromises.add(e),this._set("updating",!0);const r=()=>this._handles.remove(t);return e.then(r,r),e}removeAll(){this._pendingPromises.clear(),this._handles.removeAll(),this._set("updating",!1)}_installWatch(e,t,r={},i){const a=++this._handleId;r.sync||this._installSyncUpdatingWatch(e,a);const n=i(e,t,r);return this._handles.add(n,a),{remove:()=>this._handles.remove(a)}}_installSyncUpdatingWatch(e,t){const r=this._createSyncUpdatingCallback(),i=(0,s.YP)(e,r,{sync:!0,equals:()=>!1});return this._handles.add(i,t),i}_createSyncUpdatingCallback(){return()=>{this._handles.remove(c),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this._handles.add((0,l.Os)((()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this._handles.remove(c))})),c)}}};(0,i._)([(0,p.Cb)({readOnly:!0})],u.prototype,"updating",void 0),u=(0,i._)([(0,d.j)("esri.core.support.WatchUpdatingTracking")],u);const c=-42},16306:(e,t,r)=>{r.d(t,{aX:()=>w});var i=r(68773),a=r(20102),n=r(92604),o=r(70586),s=r(38913),l=r(58901),p=r(73913),d=r(8744),u=r(40488),c=(r(66577),r(3172)),y=r(33955),m=r(11282),h=r(17452);async function f(e,t,r){const i="string"==typeof e?(0,h.mN)(e):e,a=t[0].spatialReference,n=(0,y.Ji)(t[0]),o={...r,query:{...i.query,f:"json",sr:a.wkid?a.wkid:JSON.stringify(a),geometries:JSON.stringify((l=t,{geometryType:(0,y.Ji)(l[0]),geometries:l.map((e=>e.toJSON()))}))}},{data:s}=await(0,c.default)(i.path+"/simplify",o);var l;return function(e,t,r){const i=(0,y.q9)(t);return e.map((e=>{const t=i.fromJSON(e);return t.spatialReference=r,t}))}(s.geometries,n,a)}const g=n.Z.getLogger("esri.geometry.support.normalizeUtils");function S(e){return"polygon"===e[0].type}function T(e){return"polyline"===e[0].type}function C(e,t,r){if(t){const t=function(e,t){if(!(e instanceof l.Z||e instanceof s.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw g.error(e),new a.Z(e)}const r=(0,p.x3)(e),i=[];for(const e of r){const r=[];i.push(r),r.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const a=e[i][0],n=e[i][1],o=e[i+1][0],s=e[i+1][1],l=Math.sqrt((o-a)*(o-a)+(s-n)*(s-n)),p=(s-n)/l,d=(o-a)/l,u=l/t;if(u>1){for(let e=1;e<=u-1;e++){const i=e*t,o=d*i+a,s=p*i+n;r.push([o,s])}const e=(l+Math.floor(u-1)*t)/2,i=d*e+a,o=p*e+n;r.push([i,o])}r.push([o,s])}}return function(e){return"polygon"===e.type}(e)?new s.Z({rings:i,spatialReference:e.spatialReference}):new l.Z({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,u.Sx)(t,!0)}return r&&(e=(0,p.Sy)(e,r)),e}function b(e,t,r){if(Array.isArray(e)){const i=e[0];if(i>t){const r=(0,p.XZ)(i,t);e[0]=i+r*(-2*t)}else if(i<r){const t=(0,p.XZ)(i,r);e[0]=i+t*(-2*r)}}else{const i=e.x;if(i>t){const r=(0,p.XZ)(i,t);e=e.clone().offset(r*(-2*t),0)}else if(i<r){const t=(0,p.XZ)(i,r);e=e.clone().offset(t*(-2*r),0)}}return e}function A(e,t){let r=-1;for(let i=0;i<t.cutIndexes.length;i++){const a=t.cutIndexes[i],n=t.geometries[i],o=(0,p.x3)(n);for(let e=0;e<o.length;e++){const t=o[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const i=t[e][0];r=i>r?i:r}r=Number(r.toFixed(9));const i=-360*(0,p.XZ)(r,180);for(let r=0;r<t.length;r++){const t=n.getPoint(e,r);n.setPoint(e,r,t.clone().offset(i,0))}return!0}}))}if(a===r){if(S(e))for(const t of(0,p.x3)(n))e[a]=e[a].addRing(t);else if(T(e))for(const t of(0,p.x3)(n))e[a]=e[a].addPath(t)}else r=a,e[a]=n}return e}async function w(e,t,r){if(!Array.isArray(e))return w([e],t);t&&"string"!=typeof t&&g.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const a="string"==typeof t?t:t?.url??i.Z.geometryServiceUrl;let n,h,S,T,_,v,x,M,E=0;const Z=[],O=[];for(const t of e)if((0,o.Wi)(t))O.push(t);else if(n||(n=t.spatialReference,h=(0,d.C5)(n),S=n.isWebMercator,v=S?102100:4326,T=p.UZ[v].maxX,_=p.UZ[v].minX,x=p.UZ[v].plus180Line,M=p.UZ[v].minus180Line),h)if("mesh"===t.type)O.push(t);else if("point"===t.type)O.push(b(t.clone(),T,_));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>b(e,T,_))),O.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,h);O.push(e.rings?new s.Z(e):e)}else if(t.extent){const e=t.extent,r=(0,p.XZ)(e.xmin,_)*(2*T);let i=0===r?t.clone():(0,p.Sy)(t.clone(),r);e.offset(r,0),e.intersects(x)&&e.xmax!==T?(E=e.xmax>E?e.xmax:E,i=C(i,S),Z.push(i),O.push("cut")):e.intersects(M)&&e.xmin!==_?(E=e.xmax*(2*T)>E?e.xmax*(2*T):E,i=C(i,S,360),Z.push(i),O.push("cut")):O.push(i)}else O.push(t.clone());else O.push(t);let R=(0,p.XZ)(E,T),N=-90;const P=R,k=new l.Z;for(;R>0;){const e=360*R-180;k.addPath([[e,N],[e,-1*N]]),N*=-1,R--}if(Z.length>0&&P>0){const t=A(Z,await async function(e,t,r,i){const a=(0,m.en)(e),n=t[0].spatialReference,o={...i,query:{...a.query,f:"json",sr:JSON.stringify(n),target:JSON.stringify({geometryType:(0,y.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},s=await(0,c.default)(a.path+"/cut",o),{cutIndexes:l,geometries:p=[]}=s.data;return{cutIndexes:l,geometries:p.map((e=>{const t=(0,y.im)(e);return t.spatialReference=n,t}))}}(a,Z,k,r)),i=[],n=[];for(let r=0;r<O.length;r++){const a=O[r];if("cut"!==a)n.push(a);else{const a=t.shift(),s=e[r];(0,o.pC)(s)&&"polygon"===s.type&&s.rings&&s.rings.length>1&&a.rings.length>=s.rings.length?(i.push(a),n.push("simplify")):n.push(S?(0,u.$)(a):a)}}if(!i.length)return n;const s=await f(a,i,r),l=[];for(let e=0;e<n.length;e++){const t=n[e];"simplify"!==t?l.push(t):l.push(S?(0,u.$)(s.shift()):s.shift())}return l}const G=[];for(let e=0;e<O.length;e++){const t=O[e];if("cut"!==t)G.push(t);else{const e=Z.shift();G.push(!0===S?(0,u.$)(e):e)}}return G}},73913:(e,t,r)=>{r.d(t,{Sy:()=>l,UZ:()=>o,XZ:()=>s,x3:()=>p});var i=r(58901),a=r(82971),n=r(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:a.Z.WebMercator}),minus180Line:new i.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:a.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.Z({paths:[[[180,-180],[180,180]]],spatialReference:a.Z.WGS84}),minus180Line:new i.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:a.Z.WGS84})}};function s(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=p(e);for(const e of r)for(const r of e)r[0]+=t;return e}function p(e){return(0,n.oU)(e)?e.rings:e.paths}},62128:(e,t,r)=>{r.r(t),r.d(t,{default:()=>$});var i=r(43697),a=(r(66577),r(38171)),n=(r(9790),r(46791)),o=r(20102),s=r(22974),l=r(70586),p=r(16453),d=r(78286),u=r(20941),c=r(5600),y=r(75215),m=r(71715),h=r(52011),f=r(30556),g=r(44547),S=r(24470),T=r(16306),C=r(8744),b=r(19238),A=(r(67676),r(70921)),w=r(3920);r(80442),r(92604);let _=class extends((0,w.p)(n.Z)){constructor(e){super(e),this.handles.add([this.on("before-add",(e=>{(0,l.Wi)(e.item)&&e.preventDefault()})),this.on("after-add",(e=>this._own(e.item))),this.on("after-remove",(e=>this._release(e.item)))])}get owner(){return this._get("owner")}set owner(e){e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(const e of this.items)this._own(e)}_releaseAll(){for(const e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(n.Z.ofType(this.itemType.Type))(e):new n.Z(e)}};(0,i._)([(0,c.Cb)()],_.prototype,"owner",null),_=(0,i._)([(0,h.j)("esri.core.support.OwningCollection")],_);var v=r(87085),x=r(71612),M=r(72965),E=r(52421);let Z=class extends _{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};(0,i._)([(0,E.c)({Type:a.Z,ensureType:(0,y.se)(a.Z)})],Z.prototype,"itemType",void 0),Z=(0,i._)([(0,h.j)("esri.support.GraphicsCollection")],Z);var O=r(86787);let R=class extends((0,x.h)((0,M.M)(v.Z))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new Z,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}on(e,t){return super.on(e,t)}graphicChanged(e){this.emit("graphic-update",e)}};var N,P;(0,i._)([(0,c.Cb)({type:O.Z})],R.prototype,"elevationInfo",void 0),(0,i._)([(0,c.Cb)((N=Z,P="graphics",{type:N,cast:A.R,set(e){const t=(0,A.Z)(e,this._get(P),N);t.owner=this,this._set(P,t)}}))],R.prototype,"graphics",void 0),(0,i._)([(0,c.Cb)({type:["show","hide"]})],R.prototype,"listMode",void 0),(0,i._)([(0,c.Cb)()],R.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],R.prototype,"type",void 0),(0,i._)([(0,c.Cb)({constructOnly:!0})],R.prototype,"internal",void 0),R=(0,i._)([(0,h.j)("esri.layers.GraphicsLayer")],R);const k=R;var G=r(92908),I=r(38009),L=r(16859),j=r(1231),F=r(20256),U=r(4095),J=r(77987),z=r(78724),W=r(82971),D=r(6570);function q(e){return"markup"===e.featureCollectionType||e.layers.some((e=>null!=e.layerDefinition.visibilityField||!Q(e)))}function Q({layerDefinition:e,featureSet:t}){const r=e.geometryType??t.geometryType;return X.find((t=>r===t.geometryTypeJSON&&e.drawingInfo?.renderer?.symbol?.type===t.identifyingSymbol.type))}function B(){return new D.Z({xmin:-180,ymin:-90,xmax:180,ymax:90})}const H=new j.Z({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),K=new j.Z({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0});let V=class extends k{constructor(e){super(e),this.visibilityMode="inherited"}initialize(){for(const e of this.graphics)e.sourceLayer=this.layer;this.graphics.on("after-add",(e=>{e.item.sourceLayer=this.layer})),this.graphics.on("after-remove",(e=>{e.item.sourceLayer=null}))}get fullExtent(){const e=this.layer?.spatialReference,t=this.fullBounds;return e?(0,l.Wi)(t)?(0,g.dz)(B(),e).geometry:(0,S.HH)(t,e):null}get fullBounds(){const e=this.layer?.spatialReference;if(!e)return null;const t=(0,S.cS)();return this.graphics.forEach((r=>{const i=(0,l.pC)(r.geometry)?(0,g.dz)(r.geometry,e).geometry:null;(0,l.pC)(i)&&(0,S.jn)(t,"point"===i.type?i:i.extent,t)})),(0,S.fS)(t,S.Gv)?null:t}get sublayers(){return this.graphics}};(0,i._)([(0,c.Cb)({readOnly:!0})],V.prototype,"fullExtent",null),(0,i._)([(0,c.Cb)({readOnly:!0})],V.prototype,"fullBounds",null),(0,i._)([(0,c.Cb)({readOnly:!0})],V.prototype,"sublayers",null),(0,i._)([(0,c.Cb)()],V.prototype,"layer",void 0),(0,i._)([(0,c.Cb)()],V.prototype,"layerId",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],V.prototype,"visibilityMode",void 0),V=(0,i._)([(0,h.j)("esri.layers.MapNotesLayer.MapNotesSublayer")],V);const X=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",id:"polygonLayer",layerId:0,title:"Polygons",identifyingSymbol:(new F.Z).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",id:"polylineLayer",layerId:1,title:"Polylines",identifyingSymbol:(new U.Z).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",id:"multipointLayer",layerId:2,title:"Multipoints",identifyingSymbol:(new J.Z).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"pointLayer",layerId:3,title:"Points",identifyingSymbol:(new J.Z).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"textLayer",layerId:4,title:"Text",identifyingSymbol:(new z.Z).toJSON()}];let Y=class extends((0,x.h)((0,M.M)((0,I.q)((0,L.I)((0,p.R)(v.Z)))))){constructor(e){super(e),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.legendEnabled=!1,this.listMode="hide-children",this.minScale=0,this.maxScale=0,this.spatialReference=W.Z.WGS84,this.sublayers=new n.Z(X.map((e=>new V({id:e.id,layerId:e.layerId,title:e.title,layer:this})))),this.title="Map Notes",this.type="map-notes",this.visibilityMode="inherited"}readCapabilities(e,t,r){return{operations:{supportsMapNotesEditing:!q(t)&&"portal-item"!==r?.origin}}}readFeatureCollections(e,t,r){if(!q(t))return null;const i=t.layers.map((e=>{const t=new b.default;return t.read(e,r),t}));return new n.Z({items:i})}readLegacyfeatureCollectionJSON(e,t){return q(t)?(0,s.d9)(t.featureCollection):null}get fullExtent(){const e=this.spatialReference,t=(0,S.cS)();return(0,l.pC)(this.sublayers)?this.sublayers.forEach((({fullBounds:e})=>(0,l.pC)(e)?(0,S.jn)(t,e,t):t),t):this.featureCollectionJSON?.layers.some((e=>e.layerDefinition.extent))&&this.featureCollectionJSON.layers.forEach((r=>{const i=(0,g.dz)(r.layerDefinition.extent,e).geometry;(0,l.pC)(i)&&(0,S.jn)(t,i,t)})),(0,S.fS)(t,S.Gv)?(0,g.dz)(B(),e).geometry:(0,S.HH)(t,e)}readMinScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.minScale)return e.layerDefinition.minScale;return 0}readMaxScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.maxScale)return e.layerDefinition.maxScale;return 0}get multipointLayer(){return this._findSublayer("multipointLayer")}get pointLayer(){return this._findSublayer("pointLayer")}get polygonLayer(){return this._findSublayer("polygonLayer")}get polylineLayer(){return this._findSublayer("polylineLayer")}readSpatialReference(e,t){return t.layers.length?W.Z.fromJSON(t.layers[0].layerDefinition.spatialReference):W.Z.WGS84}readSublayers(e,t,r){if(q(t))return null;const i=[];let o=t.layers.reduce(((e,t)=>Math.max(e,t.layerDefinition.id??-1)),-1)+1;for(const e of t.layers){const{layerDefinition:t,featureSet:r}=e,n=t.id??o++,s=Q(e);if((0,l.pC)(s)){const e=new V({id:s.id,title:t.name,layerId:n,layer:this,graphics:r.features.map((({geometry:e,symbol:t,attributes:r,popupInfo:i})=>a.Z.fromJSON({attributes:r,geometry:e,symbol:t,popupTemplate:i})))});i.push(e)}}return new n.Z(i)}writeSublayers(e,t,r,i){const{minScale:a,maxScale:n}=this;if((0,l.Wi)(e))return;const s=e.some((e=>e.graphics.length>0));if(!this.capabilities.operations.supportsMapNotesEditing)return void(s&&i?.messages?.push(new o.Z("map-notes-layer:editing-not-supported","New map notes cannot be added to this layer")));const p=[];let u=this.spatialReference.toJSON();e:for(const t of e)for(const e of t.graphics)if((0,l.pC)(e.geometry)){u=e.geometry.spatialReference.toJSON();break e}for(const t of X){const r=e.find((e=>t.id===e.id));this._writeMapNoteSublayer(p,r,t,a,n,u,i)}(0,d.RB)("featureCollection.layers",p,t)}get textLayer(){return this._findSublayer("textLayer")}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}read(e,t){"featureCollection"in e&&(e=(0,s.d9)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}async beforeSave(){if((0,l.Wi)(this.sublayers))return;let e=null;const t=[];for(const r of this.sublayers)for(const i of r.graphics)if((0,l.pC)(i.geometry)){const r=i.geometry;e?(0,C.fS)(r.spatialReference,e)||((0,g.Up)(r.spatialReference,e)||(0,g.kR)()||await(0,g.zD)(),i.geometry=(0,g.iV)(r,e)):e=r.spatialReference,t.push(i)}const r=await(0,T.aX)(t.map((e=>e.geometry)));t.forEach(((e,t)=>e.geometry=r[t]))}_findSublayer(e){return(0,l.Wi)(this.sublayers)?null:this.sublayers?.find((t=>t.id===e))??null}_writeMapNoteSublayer(e,t,r,i,a,n,o){const p=[];if(!(0,l.Wi)(t)){for(const e of t.graphics)this._writeMapNote(p,e,r.geometryType,o);this._normalizeObjectIds(p,H),e.push({layerDefinition:{name:t.title,drawingInfo:{renderer:{type:"simple",symbol:(0,s.d9)(r.identifyingSymbol)}},id:t.layerId,geometryType:r.geometryTypeJSON,minScale:i,maxScale:a,objectIdField:"OBJECTID",fields:[H.toJSON(),K.toJSON()],spatialReference:n},featureSet:{features:p,geometryType:r.geometryTypeJSON}})}}_writeMapNote(e,t,r,i){if((0,l.Wi)(t))return;const{geometry:a,symbol:n,popupTemplate:o}=t;if((0,l.Wi)(a))return;if(a.type!==r)return void i?.messages?.push(new u.Z("map-notes-layer:invalid-geometry-type",`Geometry "${a.type}" cannot be saved in "${r}" layer`,{graphic:t}));if((0,l.Wi)(n))return void i?.messages?.push(new u.Z("map-notes-layer:no-symbol","Skipping map notes with no symbol",{graphic:t}));const s={attributes:{...t.attributes},geometry:a.toJSON(),symbol:n.toJSON()};(0,l.pC)(o)&&(s.popupInfo=o.toJSON()),e.push(s)}_normalizeObjectIds(e,t){const r=t.name;let i=(0,G.S)(r,e)+1;const a=new Set;for(const t of e){t.attributes||(t.attributes={});const{attributes:e}=t;(null==e[r]||a.has(e[r]))&&(e[r]=i++),a.add(e[r])}}};(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"capabilities",void 0),(0,i._)([(0,m.r)(["portal-item","web-map"],"capabilities",["layers"])],Y.prototype,"readCapabilities",null),(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"featureCollections",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"featureCollections",["layers"])],Y.prototype,"readFeatureCollections",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],Y.prototype,"featureCollectionJSON",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],Y.prototype,"readLegacyfeatureCollectionJSON",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!0,write:{enabled:!0,ignoreOrigin:!0}}})],Y.prototype,"featureCollectionType",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"fullExtent",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],Y.prototype,"legendEnabled",void 0),(0,i._)([(0,c.Cb)({type:["show","hide","hide-children"]})],Y.prototype,"listMode",void 0),(0,i._)([(0,c.Cb)({type:Number,nonNullable:!0,json:{write:!1}})],Y.prototype,"minScale",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"minScale",["layers"])],Y.prototype,"readMinScale",null),(0,i._)([(0,c.Cb)({type:Number,nonNullable:!0,json:{write:!1}})],Y.prototype,"maxScale",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"maxScale",["layers"])],Y.prototype,"readMaxScale",null),(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"multipointLayer",null),(0,i._)([(0,c.Cb)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],Y.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"pointLayer",null),(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"polygonLayer",null),(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"polylineLayer",null),(0,i._)([(0,c.Cb)({type:W.Z})],Y.prototype,"spatialReference",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"spatialReference",["layers"])],Y.prototype,"readSpatialReference",null),(0,i._)([(0,c.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],Y.prototype,"sublayers",void 0),(0,i._)([(0,m.r)("web-map","sublayers",["layers"])],Y.prototype,"readSublayers",null),(0,i._)([(0,f.c)("web-map","sublayers")],Y.prototype,"writeSublayers",null),(0,i._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"textLayer",null),(0,i._)([(0,c.Cb)()],Y.prototype,"title",void 0),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],Y.prototype,"type",void 0),Y=(0,i._)([(0,h.j)("esri.layers.MapNotesLayer")],Y);const $=Y},92908:(e,t,r)=>{r.d(t,{S:()=>a,X:()=>i});const i=1;function a(e,t){let r=0;for(const i of t){const t=i.attributes?.[e];"number"==typeof t&&isFinite(t)&&(r=Math.max(r,t))}return r}},54295:(e,t,r)=>{r.d(t,{V:()=>o});var i=r(43697),a=r(5600),n=(r(75215),r(67676),r(52011));const o=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i._)([(0,a.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,i._)([(0,n.j)("esri.layers.mixins.APIKeyMixin")],t),t}},17287:(e,t,r)=>{r.d(t,{Y:()=>p});var i=r(43697),a=r(92604),n=r(70586),o=r(5600),s=(r(75215),r(67676),r(52011)),l=r(66677);const p=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.Qc)(this.url);if((0,n.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Nm)(e,a.Z.getLogger(this.declaredClass)))}};return(0,i._)([(0,o.Cb)()],t.prototype,"title",null),(0,i._)([(0,o.Cb)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,s.j)("esri.layers.mixins.ArcGISService")],t),t}},70082:(e,t,r)=>{r.d(t,{Z:()=>u});var i=r(43697),a=r(2368),n=r(35454),o=r(96674),s=r(5600),l=(r(75215),r(67676),r(52011));const p=new n.X({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let d=class extends((0,a.J)(o.wq)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"name",void 0),(0,i._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"description",void 0),(0,i._)([(0,s.Cb)({json:{read:p.read,write:p.write}})],d.prototype,"drawingTool",void 0),(0,i._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"prototype",void 0),(0,i._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"thumbnail",void 0),d=(0,i._)([(0,l.j)("esri.layers.support.FeatureTemplate")],d);const u=d},16451:(e,t,r)=>{r.d(t,{Z:()=>y});var i=r(43697),a=r(2368),n=r(96674),o=r(5600),s=(r(75215),r(67676),r(71715)),l=r(52011),p=r(30556),d=r(72729),u=r(70082);let c=class extends((0,a.J)(n.wq)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,d.im)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i._)([(0,o.Cb)({json:{write:!0}})],c.prototype,"id",void 0),(0,i._)([(0,o.Cb)({json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,o.Cb)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i._)([(0,s.r)("domains")],c.prototype,"readDomains",null),(0,i._)([(0,p.c)("domains")],c.prototype,"writeDomains",null),(0,i._)([(0,o.Cb)({type:[u.Z],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i._)([(0,l.j)("esri.layers.support.FeatureType")],c);const y=c},56765:(e,t,r)=>{r.d(t,{Z:()=>d});var i,a=r(43697),n=r(46791),o=r(96674),s=r(5600),l=(r(75215),r(67676),r(52011));let p=i=class extends o.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.Z}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,a._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"floorField",void 0),(0,a._)([(0,s.Cb)({json:{read:!1,write:!1}})],p.prototype,"viewAllMode",void 0),(0,a._)([(0,s.Cb)({json:{read:!1,write:!1}})],p.prototype,"viewAllLevelIds",void 0),p=i=(0,a._)([(0,l.j)("esri.layers.support.LayerFloorInfo")],p);const d=p},72064:(e,t,r)=>{r.d(t,{h:()=>u});var i=r(80442),a=r(70586),n=r(66677);const o={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function s(e,t,r){return!!(e&&e.hasOwnProperty(t)?e[t]:r)}function l(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}function p(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function d(e,t){const r=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!r?.includes(t.toLowerCase())}function u(e,t){return{analytics:c(e),attachment:y(e),data:m(e),metadata:h(e),operations:f(e.capabilities,e,t),query:g(e,t),queryRelated:S(e),queryTopFeatures:T(e),editing:C(e)}}function c(e){return{supportsCacheHint:d(e.advancedQueryCapabilities,"queryAnalytics")}}function y(e){const t=e.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:d(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:s(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=o[e.name];t&&(r[t]=!!e.isEnabled)})),r}function m(e){return{isVersioned:s(e,"isDataVersioned",!1),supportsAttachment:s(e,"hasAttachments",!1),supportsM:s(e,"hasM",!1),supportsZ:s(e,"hasZ",!1)}}function h(e){return{supportsAdvancedFieldProperties:s(e,"supportsFieldDescriptionProperty",!1)}}function f(e,t,r){const i=e?e.toLowerCase().split(",").map((e=>e.trim())):[],o=r?(0,n.Qc)(r):null,l=i.includes((0,a.pC)(o)&&"MapServer"===o.serverType?"data":"query"),p=i.includes("editing")&&!t.datesInUnknownTimezone;let d=p&&i.includes("create"),u=p&&i.includes("delete"),c=p&&i.includes("update");const y=i.includes("changetracking"),m=t.advancedQueryCapabilities;return p&&!(d||u||c)&&(d=u=c=!0),{supportsCalculate:s(t,"supportsCalculate",!1),supportsTruncate:s(t,"supportsTruncate",!1),supportsValidateSql:s(t,"supportsValidateSql",!1),supportsAdd:d,supportsDelete:u,supportsEditing:p,supportsChangeTracking:y,supportsQuery:l,supportsQueryAnalytics:s(m,"supportsQueryAnalytic",!1),supportsQueryAttachments:s(m,"supportsQueryAttachments",!1),supportsQueryTopFeatures:s(m,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:s(t,"supportsAttachmentsResizing",!1),supportsSync:i.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:s(t,"supportsExceedsLimitStatistics",!1)}}function g(e,t){const r=e.advancedQueryCapabilities,a=e.ownershipBasedAccessControlForFeatures,o=e.archivingInfo,u=e.currentVersion,c=t?.includes("MapServer"),y=!c||u>=(0,i.Z)("mapserver-pbf-version-support"),m=(0,n.M8)(t),h=new Set((e.supportedQueryFormats??"").split(",").map((e=>e.toLowerCase().trim())));return{supportsStatistics:s(r,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:s(r,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:s(r,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:p(r),supportsCentroid:s(r,"supportsReturningGeometryCentroid",!1),supportsDistance:s(r,"supportsQueryWithDistance",!1),supportsDistinct:s(r,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:s(r,"supportsReturningQueryExtent",!1),supportsGeometryProperties:s(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:s(r,"supportsHavingClause",!1),supportsOrderBy:s(r,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:s(r,"supportsPagination",!1),supportsQuantization:s(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:s(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:s(e,"supportsReturningQueryGeometry",!1),supportsResultType:s(r,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:s(r,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:s(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:s(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:s(r,"supportsTopFeaturesQuery",!1),supportsQueryByOthers:s(a,"allowOthersToQuery",!0),supportsHistoricMoment:s(o,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:y&&h.has("pbf"),supportsDisjointSpatialRelationship:s(r,"supportsDisjointSpatialRel",!1),supportsCacheHint:s(r,"supportsQueryWithCacheHint",!1)||d(r,"query"),supportsDefaultSpatialReference:s(r,"supportsDefaultSR",!1),supportsCompactGeometry:m,supportsFullTextSearch:s(r,"supportsFullTextSearch",!1),maxRecordCountFactor:l(e,"maxRecordCountFactor",void 0),maxRecordCount:l(e,"maxRecordCount",void 0),standardMaxRecordCount:l(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:l(e,"tileMaxRecordCount",void 0)}}function S(e){const t=e.advancedQueryCapabilities,r=s(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:s(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:d(t,"queryRelated")}}function T(e){return{supportsCacheHint:d(e.advancedQueryCapabilities,"queryTopFilter")}}function C(e){const t=e.ownershipBasedAccessControlForFeatures;return{supportsGeometryUpdate:s(e,"allowGeometryUpdates",!0),supportsGlobalId:s(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:s(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:s(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:s(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:s(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:s(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:s(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:s(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:s(t,"allowOthersToUpdate",!0)}}},51706:(e,t,r)=>{var i,a;function n(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?i.Expression:e.field&&"string"==typeof e.field?i.Field:i.Unknown}function l(e,t){const r=t||s(e),n=e.valueUnit||"unknown";return r===i.Unknown?a.Constant:e.stops?a.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?a.ClampedLinear:"unknown"===n?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?a.Proportional:a.Additive:a.Identity:a.RealWorldSize}r.d(t,{PS:()=>s,QW:()=>l,RY:()=>i,hL:()=>a,iY:()=>n,qh:()=>o}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(i||(i={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(a||(a={}))},28694:(e,t,r)=>{r.d(t,{p:()=>n});var i=r(70586),a=r(69285);function n(e,t,r){if(!r||!r.features||!r.hasZ)return;const n=(0,a.k)(r.geometryType,t,e.outSpatialReference);if(!(0,i.Wi)(n))for(const e of r.features)n(e.geometry)}},56545:(e,t,r)=>{r.d(t,{Z:()=>c});var i,a=r(43697),n=r(96674),o=r(22974),s=r(5600),l=r(75215),p=r(52011),d=r(30556);let u=i=class extends n.wq{constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.cacheHint=void 0,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new i((0,o.d9)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,a._)([(0,s.Cb)({type:[String],json:{write:!0}})],u.prototype,"attachmentTypes",void 0),(0,a._)([(0,s.Cb)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],u.prototype,"attachmentsWhere",void 0),(0,a._)([(0,s.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"cacheHint",void 0),(0,a._)([(0,s.Cb)({type:[String],json:{write:!0}})],u.prototype,"keywords",void 0),(0,a._)([(0,s.Cb)({type:[Number],json:{write:!0}})],u.prototype,"globalIds",void 0),(0,a._)([(0,s.Cb)({json:{write:!0}})],u.prototype,"name",void 0),(0,a._)([(0,s.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],u.prototype,"num",void 0),(0,a._)([(0,s.Cb)({type:[Number],json:{write:!0}})],u.prototype,"objectIds",void 0),(0,a._)([(0,s.Cb)({type:Boolean,json:{default:!1,write:!0}})],u.prototype,"returnMetadata",void 0),(0,a._)([(0,s.Cb)({type:[Number],json:{write:!0}})],u.prototype,"size",void 0),(0,a._)([(0,s.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],u.prototype,"start",void 0),(0,a._)([(0,d.c)("start"),(0,d.c)("num")],u.prototype,"writeStart",null),(0,a._)([(0,s.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],u.prototype,"where",void 0),u=i=(0,a._)([(0,p.j)("esri.rest.support.AttachmentQuery")],u),u.from=(0,l.se)(u);const c=u},74889:(e,t,r)=>{r.d(t,{Z:()=>C});var i,a=r(43697),n=r(66577),o=r(38171),s=r(35454),l=r(96674),p=r(22974),d=r(70586),u=r(5600),c=(r(75215),r(71715)),y=r(52011),m=r(30556),h=r(82971),f=r(33955),g=r(1231);const S=new s.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let T=i=class extends l.wq{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){const r=h.Z.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const a=e[t],n=o.Z.fromJSON(a),s=a.geometry&&a.geometry.spatialReference;(0,d.pC)(n.geometry)&&!s&&(n.geometry.spatialReference=r);const l=a.aggregateGeometries,p=n.aggregateGeometries;if(l&&(0,d.pC)(p))for(const e in p){const t=p[e],i=l[e]?.spatialReference;(0,d.pC)(t)&&!i&&(t.spatialReference=r)}i.push(n)}return i}writeGeometryType(e,t,r,i){if(e)return void S.write(e,t,r,i);const{features:a}=this;if(a)for(const e of a)if(e&&(0,d.pC)(e.geometry))return void S.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,f.im)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.Z.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,d.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,p.d9)({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){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e&&e[r];i.geometry=t&&t.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,a]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((a-e)/r)));for(let e=0,t=n.length;e<t;e++)o?.((0,d.Wg)(n[e].geometry))||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,a],scale:[n,o]}=r,s=this._getHydrationFunction(e,(e=>e*n+i),(e=>a-e*o));for(const{geometry:e}of t)(0,d.pC)(e)&&s&&s(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,a;const n=[];for(let o=0,s=e.length;o<s;o++){const s=e[o];if(o>0){const e=t(s[0]),o=r(s[1]);e===i&&o===a||(n.push([e-i,o-a]),i=e,a=o)}else i=t(s[0]),a=r(s[1]),n.push([i,a])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,f.oU)(e)?e.rings:e.paths,a=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],o=this._quantizePoints(n,t,r);o&&a.push(o)}return a.length>0?((0,f.oU)(e)?e.rings=a:e.paths=a,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const i=(0,f.oU)(e)?e.rings:e.paths;let a,n;for(let e=0,o=i.length;e<o;e++){const o=i[e];for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(a+=i[0],n+=i[1]):(a=i[0],n=i[1]),i[0]=t(a),i[1]=r(n)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const i=e.points;let a,n;for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(a+=o[0],n+=o[1]):(a=o[0],n=o[1]),o[0]=t(a),o[1]=r(n)}}:null}};(0,a._)([(0,u.Cb)({type:String,json:{write:!0}})],T.prototype,"displayFieldName",void 0),(0,a._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],T.prototype,"exceededTransferLimit",void 0),(0,a._)([(0,u.Cb)({type:[o.Z],json:{write:!0}})],T.prototype,"features",void 0),(0,a._)([(0,c.r)("features")],T.prototype,"readFeatures",null),(0,a._)([(0,u.Cb)({type:[g.Z],json:{write:!0}})],T.prototype,"fields",void 0),(0,a._)([(0,u.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:S.read}}})],T.prototype,"geometryType",void 0),(0,a._)([(0,m.c)("geometryType")],T.prototype,"writeGeometryType",null),(0,a._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],T.prototype,"hasM",void 0),(0,a._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],T.prototype,"hasZ",void 0),(0,a._)([(0,u.Cb)({types:n.qM,json:{write:!0}})],T.prototype,"queryGeometry",void 0),(0,a._)([(0,c.r)("queryGeometry")],T.prototype,"readQueryGeometry",null),(0,a._)([(0,u.Cb)({type:h.Z,json:{write:!0}})],T.prototype,"spatialReference",void 0),(0,a._)([(0,m.c)("spatialReference")],T.prototype,"writeSpatialReference",null),(0,a._)([(0,u.Cb)({json:{write:!0}})],T.prototype,"transform",void 0),T=i=(0,a._)([(0,y.j)("esri.rest.support.FeatureSet")],T),T.prototype.toJSON.isDefaultToJSON=!0;const C=T},11282:(e,t,r)=>{r.d(t,{cv:()=>s,en:()=>o,lA:()=>n}),r(68773),r(40330);var i=r(22974),a=r(17452);function n(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function o(e){return"string"==typeof e?(0,a.mN)(e):(0,i.d9)(e)}function s(e,t,r){const i={};for(const a in e){if("declaredClass"===a)continue;const n=e[a];if(null!=n&&"function"!=typeof n)if(Array.isArray(n)){i[a]=[];for(let e=0;e<n.length;e++)i[a][e]=s(n[e])}else if("object"==typeof n)if(n.toJSON){const e=n.toJSON(r&&r[a]);i[a]=t?e:JSON.stringify(e)}else i[a]=t?n:JSON.stringify(n);else i[a]=n}return i}r(71058)},58333:(e,t,r)=>{r.d(t,{ET:()=>n,I4:()=>a,eG:()=>l,lF:()=>o,lj:()=>d,qP:()=>s,wW:()=>p});const i=[252,146,31,255],a={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},s={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},p={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},d={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},80216:(e,t,r)=>{r.d(t,{Z:()=>y});var i=r(43697),a=r(2368),n=r(96674),o=r(70586),s=r(5600),l=(r(75215),r(67676),r(71715)),p=r(52011),d=r(30556),u=r(42799);let c=class extends((0,a.J)(n.wq)){constructor(e){super(e),this.legacy=null,this.timeZone="system"}readLegacy(e,t){const{timeZone:r,respectsDaylightSaving:i}=t;return{timeZone:r,respectsDaylightSaving:i}}readTimeZone(e,t){return"timeZoneIANA"in t?t.timeZoneIANA:(0,u.G)(t)}writeTimeZone(e,t){t.timeZoneIANA=e}equals(e){return!((0,o.Wi)(e)||(0,o.Wi)(this.timeZone)||(0,o.Wi)(e.timeZone))&&this.timeZone===e.timeZone}};(0,i._)([(0,s.Cb)()],c.prototype,"legacy",void 0),(0,i._)([(0,l.r)("legacy",["timeZone"])],c.prototype,"readLegacy",null),(0,i._)([(0,s.Cb)({type:String,nonNullable:!0})],c.prototype,"timeZone",void 0),(0,i._)([(0,l.r)("timeZone",["timeZone","timeZoneIANA","respectsDaylightSaving"])],c.prototype,"readTimeZone",null),(0,i._)([(0,d.c)("timeZone")],c.prototype,"writeTimeZone",null),c=(0,i._)([(0,p.j)("esri.time.TimeReference")],c);const y=c},42799:(e,t,r)=>{r.d(t,{G:()=>n});const i=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Almaty"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Chihuahua"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var a=r(17126);function n(e,t="system"){if(!e||!i.has(e.timeZone))return t;const r=i.get(e.timeZone);return e.timeZone.startsWith("UTC")||e.respectsDaylightSaving?r:function(e){const t=a.ou.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===r?"Etc/UTC":`Etc/GMT${a.Qf.instance(-r).formatOffset(0,"narrow")}`}(r)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9771,6502],{3388:(e,t,r)=>{var s;r.d(t,{i:()=>s}),function(e){e[e.PROJECT_VERTICES=1]="PROJECT_VERTICES"}(s||(s={}))},61159:(e,t,r)=>{r.d(t,{g:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},6502:(e,t,r)=>{r.r(t),r.d(t,{default:()=>v});var s=r(43697),a=(r(66577),r(38171)),o=r(3172),n=r(92835),i=r(20102),u=r(80442),l=r(35454),d=r(83379),c=r(70586),p=r(78286),h=r(95330),y=r(17452),f=r(5600),m=(r(75215),r(67676),r(52011)),g=r(6570),_=r(33955),b=r(3388),R=r(25278),F=r(74654),S=r(66677),C=r(59431),w=r(82971);const q=new l.X({originalAndCurrentFeatures:"original-and-current-features",none:"none"});async function O(e){return"string"==typeof e?(0,y.sJ)(e)||{data:e}:new Promise(((t,r)=>{const s=new FileReader;s.readAsDataURL(e),s.onload=()=>t((0,y.sJ)(s.result)),s.onerror=e=>r(e)}))}const x=new Set(["Feature Layer","Table"]),I=new l.X({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let T=class extends d.Z{constructor(){super(...arguments),this.type="feature-layer",this.refresh=(0,h.Ds)((async()=>{await this.load();const e=this.sourceJSON.editingInfo?.lastEditDate;if(null==e)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const t=e!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:t,updates:t?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}))}load(e){const t=(0,c.pC)(e)?e.signal:null,r=this.layer.sourceJSON;return this.addResolvingPromise(this._fetchService(r,t)),Promise.resolve(this)}get queryTask(){const{capabilities:e,parsedUrl:t,dynamicDataSource:r,infoFor3D:s,gdbVersion:a,spatialReference:o,fieldsIndex:n}=this.layer,i=(0,u.Z)("featurelayer-pbf")&&e?.query.supportsFormatPBF&&(0,c.Wi)(s),l=e?.operations?.supportsQueryAttachments??!1;return new F.Z({url:t.path,pbfSupported:i,fieldsIndex:n,infoFor3D:s,dynamicDataSource:r,gdbVersion:a,sourceSpatialReference:o,queryAttachmentsSupported:l})}async addAttachment(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/addAttachment",a=this._getLayerRequestOptions(),n=this._getFormDataForAttachment(t,a.query);try{const e=await(0,o.default)(s,{body:n});return this._createFeatureEditResult(e.data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}async updateAttachment(e,t,r){await this.load();const s=e.attributes[this.layer.objectIdField],a=this.layer.parsedUrl.path+"/"+s+"/updateAttachment",n=this._getLayerRequestOptions({query:{attachmentId:t}}),i=this._getFormDataForAttachment(r,n.query);try{const e=await(0,o.default)(a,{body:i});return this._createFeatureEditResult(e.data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(s,e)}}async applyEdits(e,t){await this.load();const r=this.layer.infoFor3D,s=(0,c.pC)(r),a=s||(t?.globalIdUsed??!1),n=e.addFeatures?.map((e=>this._serializeFeature(e,r))).filter(c.pC)??[],i=e.updateFeatures?.map((e=>this._serializeFeature(e,r))).filter(c.pC)??[],u=this._getFeatureIds(e.deleteFeatures,a);(0,C.P)(n,i,this.layer.spatialReference);const l=[],d=[],p=[...e.deleteAttachments??[]];for(const t of e.addAttachments??[])l.push(await this._serializeAttachment(t));for(const t of e.updateAttachments??[])d.push(await this._serializeAttachment(t));const h=l.length||d.length||p.length?{adds:l,updates:d,deletes:p}:null;let y,f=null;if(s){f=new Map;const t=[];for(const r of e.addAssets??[])t.push(this._serializeAssetMapEditAndUploadAssets(r,f));const r=await Promise.all(t);y=r.length?{adds:r,updates:[],deletes:[]}:void 0}const m={gdbVersion:t?.gdbVersion||this.layer.gdbVersion,rollbackOnFailure:t?.rollbackOnFailureEnabled,useGlobalIds:a,returnEditMoment:t?.returnEditMoment,usePreviousEditMoment:t?.usePreviousEditMoment,sessionId:t?.sessionId};t?.returnServiceEditsOption?(m.edits=JSON.stringify([{id:this.layer.layerId,adds:n,updates:i,deletes:u,attachments:h,assetMaps:(0,c.Wg)(y)}]),m.returnServiceEditsOption=q.toJSON(t?.returnServiceEditsOption),m.returnServiceEditsInSourceSR=t?.returnServiceEditsInSourceSR):(m.adds=n.length?JSON.stringify(n):null,m.updates=i.length?JSON.stringify(i):null,m.deletes=u.length?a?JSON.stringify(u):u.join(","):null,m.attachments=h&&JSON.stringify(h),m.assetMaps=(0,c.pC)(y)?JSON.stringify(y):void 0);const g=this._getLayerRequestOptions({method:"post",query:m}),_=t?.returnServiceEditsOption?this.layer.url:this.layer.parsedUrl.path,b=await(0,o.default)(_+"/applyEdits",g);if(s&&null!=b.data&&null!=b.data.assetMaps){const e=b.data,t=this.layer.objectIdField,r=[];for(const t of e.addResults)t.success&&r.push(t.objectId);for(const t of e.updateResults)t.success&&r.push(t.objectId);const s=this._createRequestQueryOptions(),a=await(0,o.default)(_+"/query",{...s,query:{f:"json",formatOf3DObjects:"3D_glb",where:`OBJECTID IN (${r.join(",")})`,outFields:`${t}`}});if(a&&a.data&&a.data.assetMaps&&(0,c.pC)(f)){const e=a.data.assetMaps;for(const t of e){const e=f.get(t.parentGlobalId).geometry;(0,c.pC)(e)&&"mesh"===e.type&&e.updateExternalSource({source:[{name:t.assetName,source:t.assetName}],extent:e.extent})}}}return this._createEditsResult(b)}async deleteAttachments(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/deleteAttachments";try{return(await(0,o.default)(s,this._getLayerRequestOptions({query:{attachmentIds:t.join(",")},method:"post"}))).data.deleteAttachmentResults.map(this._createFeatureEditResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}fetchRecomputedExtents(e={}){const t=e.signal;return this.load({signal:t}).then((async()=>{const t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:a}=await(0,o.default)(`${s}/${r}`,t),{id:i,extent:u,fullExtent:l,timeExtent:d}=a,c=u||l;return{id:i,fullExtent:c&&g.Z.fromJSON(c),timeExtent:d&&n.Z.fromJSON({start:d[0],end:d[1]})}}))}async queryAttachments(e,t={}){await this.load();const r=this._getLayerRequestOptions(t);return this.queryTask.executeAttachmentQuery(e,r)}async queryFeatures(e,t){return await this.load(),this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}async fetchPublishingStatus(){if(!(0,S.M8)(this.layer.url))return"unavailable";const e=(0,y.v_)(this.layer.url,"status"),t=await(0,o.default)(e,{query:{f:"json"}});return I.fromJSON(t.data.status)}_createRequestQueryOptions(e){const t={...this.layer.customParameters,token:this.layer.apiKey,...e?.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){const{data:r}=await(0,o.default)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:(0,u.Z)("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:t}));e=r}this.sourceJSON=this._patchServiceJSON(e);const r=e.type;if(!x.has(r))throw new i.Z("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}_patchServiceJSON(e){if("Table"!==e.type&&e.geometryType&&!e?.drawingInfo?.renderer&&!e.defaultSymbol){const t=(0,R.bU)(e.geometryType).renderer;(0,p.RB)("drawingInfo.renderer",t,e)}return"esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),e}_serializeFeature(e,t){const{geometry:r,attributes:s}=e;if((0,c.pC)(t)&&(0,c.pC)(e.geometry)&&"mesh"===e.geometry.type){const r={...s},a=e.geometry,o=a.origin,n=a.transform;if(r[t.transformFieldRoles.originX]=o.x,r[t.transformFieldRoles.originY]=o.y,r[t.transformFieldRoles.originZ]=o.z,(0,c.pC)(n)){const e=n.translation,s=n.scale,a=n.rotation;r[t.transformFieldRoles.translationX]=e[0],r[t.transformFieldRoles.translationY]=-e[2],r[t.transformFieldRoles.translationZ]=e[1],r[t.transformFieldRoles.scaleX]=s[0],r[t.transformFieldRoles.scaleY]=s[1],r[t.transformFieldRoles.scaleZ]=s[2],r[t.transformFieldRoles.rotationX]=a[0],r[t.transformFieldRoles.rotationY]=a[2],r[t.transformFieldRoles.rotationZ]=a[1],r[t.transformFieldRoles.rotationDeg]=a[3]}return{geometry:null,attributes:r}}return(0,c.Wi)(r)?{attributes:s}:"mesh"===r.type||"extent"===r.type?null:{geometry:r.toJSON(),attributes:s}}async _serializeAttachment(e){const{feature:t,attachment:r}=e,{globalId:s,name:a,contentType:o,data:n,uploadId:i}=r,u={globalId:s,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};if(t&&(u.parentGlobalId="attributes"in t?t.attributes&&t.attributes[this.layer.globalIdField]:t.globalId),i)u.uploadId=i;else if(n){const e=await O(n);e&&(u.contentType=e.mediaType,u.data=e.data),n instanceof File&&(u.name=n.name)}return a&&(u.name=a),o&&(u.contentType=o),u}async _serializeAssetMapEditAndUploadAssets(e,t){const r=this.layer.url;let s=null;try{const t=new Blob([e.data],{type:e.mimeType}),a=new FormData;a.append("f","json"),a.append("file",t,`${e.assetName}`);const n={body:a,method:"post",responseType:"json"},{data:u}=await(0,o.default)(`${r}/uploads/upload`,n);if(!u.success)throw new i.Z("feature-layer-source:upload-failure","Expected upload to be successfull.");s={assetType:e.assetType,assetUploadId:u.item.itemID}}catch(e){s=null}if((0,c.Wi)(s)){const t=await O(new Blob([e.data]));if(!t.isBase64)throw new i.Z("feature-layer-source:uploadAssets-failure","Expected gltf data in base64 format after conversion.");s={assetType:e.assetType,assetData:t.data}}if((0,c.Wi)(s))throw new i.Z("feature-layer-source:uploadAssets-failure","Unable to prepare uploadAsset request options.");const a={method:"post",query:{f:"json",assets:JSON.stringify([s])},responseType:"json"},n=await(0,o.default)((0,y.v_)(this.layer.parsedUrl.path,"uploadAssets"),a);if(1!==n.data.uploadResults.length||!n.data.uploadResults[0].success)throw new i.Z("feature-layer-source:uploadAssets-failure","Bad response.");const u=n.data.uploadResults[0].assetHash,l=[];e.flags&b.i.PROJECT_VERTICES&&l.push("PROJECT_VERTICES");const d={globalId:e.assetMapGlobalId,parentGlobalId:e.featureGlobalId,assetName:e.assetName,assetHash:u,flags:l};return t.set(e.featureGlobalId,e.feature),d}_getFeatureIds(e,t){const r=e?.[0];return r?this._canUseGlobalIds(t,e)?this._getGlobalIdsFromFeatureIdentifier(e):"objectId"in r?this._getObjectIdsFromFeatureIdentifier(e):this._getIdsFromFeatures(e):[]}_getIdsFromFeatures(e){const t=this.layer.objectIdField;return e.map((e=>e.attributes&&e.attributes[t]))}_canUseGlobalIds(e,t){return e&&"globalId"in t[0]}_getObjectIdsFromFeatureIdentifier(e){return e.map((e=>e.objectId))}_getGlobalIdsFromFeatureIdentifier(e){return e.map((e=>e.globalId))}_createEditsResult(e){const t=e.data,{layerId:r}=this.layer,s=[];let a=null;if(Array.isArray(t))for(const e of t)s.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(a={addResults:e.addResults??[],updateResults:e.updateResults??[],deleteResults:e.deleteResults??[],attachments:e.attachments,editMoment:e.editMoment});else a=t;const o=a?.attachments,n={addFeatureResults:a?.addResults?.map(this._createFeatureEditResult,this)??[],updateFeatureResults:a?.updateResults?.map(this._createFeatureEditResult,this)??[],deleteFeatureResults:a?.deleteResults?.map(this._createFeatureEditResult,this)??[],addAttachmentResults:o&&o.addResults?o.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:o&&o.updateResults?o.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:o&&o.deleteResults?o.deleteResults.map(this._createFeatureEditResult,this):[]};if(a?.editMoment&&(n.editMoment=a.editMoment),s.length>0){n.editedFeatureResults=[];for(const e of s){const{adds:t,updates:r,deletes:s,spatialReference:a}=e.editedFeatures,o=a?new w.Z(a):null;n.editedFeatureResults.push({layerId:e.id,editedFeatures:{adds:t?.map((e=>this._createEditedFeature(e,o)))||[],updates:r?.map((e=>({original:this._createEditedFeature(e[0],o),current:this._createEditedFeature(e[1],o)})))||[],deletes:s?.map((e=>this._createEditedFeature(e,o)))||[],spatialReference:o}})}}return n}_createEditedFeature(e,t){return new a.Z({attributes:e.attributes,geometry:(0,_.im)({...e.geometry,spatialReference:t})})}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new i.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_createAttachmentErrorResult(e,t){const r=t.details.messages&&t.details.messages[0]||t.message,s=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new i.Z("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(e,t){const r=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(r)for(const e in t){const s=t[e];null!=s&&(r.set?r.set(e,s):r.append(e,s))}return r}_getLayerRequestOptions(e={}){const{parsedUrl:t,gdbVersion:r,dynamicDataSource:s}=this.layer;return{...e,query:{gdbVersion:r,layer:s?JSON.stringify({source:s}):void 0,...t.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}};(0,s._)([(0,f.Cb)()],T.prototype,"type",void 0),(0,s._)([(0,f.Cb)({constructOnly:!0})],T.prototype,"layer",void 0),(0,s._)([(0,f.Cb)({readOnly:!0})],T.prototype,"queryTask",null),T=(0,s._)([(0,m.j)("esri.layers.graphics.sources.FeatureLayerSource")],T);const v=T},74654:(e,t,r)=>{r.d(t,{Z:()=>A});var s=r(43697),a=r(15923),o=r(20102),n=r(80442),i=r(70586),u=r(95330),l=r(17452),d=r(5600),c=(r(75215),r(67676),r(52011)),p=r(10158),h=r(11282),y=r(41818),f=(r(66577),r(34599)),m=r(14165),g=r(6570),_=r(5396),b=r(4967),R=r(69285),F=r(98732);function S(e,t){return t}function C(e,t,r,s){switch(r){case 0:return x(e,t+s,0);case 1:return"lowerLeft"===e.originPosition?x(e,t+s,1):function({translate:e,scale:t},r,s){return e[s]-r*t[s]}(e,t+s,1)}}function w(e,t,r,s){return 2===r?x(e,t,2):C(e,t,r,s)}function q(e,t,r,s){return 2===r?x(e,t,3):C(e,t,r,s)}function O(e,t,r,s){return 3===r?x(e,t,3):w(e,t,r,s)}function x({translate:e,scale:t},r,s){return e[s]+r*t[s]}class I{constructor(e){this._options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=S,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,R.k)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(!(0,i.Wi)(t))for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){const r=e.fields;(0,i.O3)(r),r.push(t);const s=r.map((e=>e.name));this._attributesConstructor=function(){for(const e of s)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:s}=t,a=(0,F.$g)(r.clone(),r,!1,!1,this._transform),o=(0,F.di)(a,s,!1,!1);e.queryGeometryType=s,e.queryGeometry={...o}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const s=(0,i.s3)(this._transform,"transform");switch(t=this._applyTransform(s,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e);const s=(0,i.s3)(this._transform,"transform");return this._applyTransform(s,e,t,r)}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const s=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(s)}_createPolygonGeometry(e){return{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const s=this._transformPathLikeValue(t,r),a=e[e.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),a.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=s}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?O:t?w:r?q:C}}var T=r(74889);let v=class extends a.Z{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.url=null}get parsedUrl(){return(0,l.mN)(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),s=null!=e.outStatistics?.[0],a=(0,n.Z)("featurelayer-pbf-statistics"),o=!s||a;let i;if(this.pbfSupported&&o)try{i=await async function(e,t,r){const s=(0,h.en)(e),a={...r},o=m.Z.from(t),n=!o.quantizationParameters,{data:i}=await(0,f.qp)(s,o,new I({sourceSpatialReference:o.sourceSpatialReference,applyTransform:n}),a);return i}(this.url,r,t)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return this.pbfSupported&&o||(i=await(0,b.F)(this.url,r,t)),this._normalizeFields(i.fields),i}async featureSetFromJSON(e,t,s){if(!this._queryIs3DObjectFormat(e)||(0,i.Wi)(this.infoFor3D)||!t.assetMaps||!t.features||!t.features.length)return T.Z.fromJSON(t);const{meshFeatureSetFromJSON:a}=await(0,u.Hl)(Promise.all([r.e(6481),r.e(6459),r.e(1932)]).then(r.bind(r,21932)),s);return a(e,this.infoFor3D,t)}executeForCount(e,t){return(0,y.P)(this.url,this._normalizeQuery(e),t)}executeForExtent(e,t){return async function(e,t,r){const s=(0,h.en)(e);return(0,f.Vr)(s,m.Z.from(t),{...r}).then((e=>({count:e.data.count,extent:g.Z.fromJSON(e.data.extent)})))}(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,_.G)(this.url,this._normalizeQuery(e),t)}async executeRelationshipQuery(e,t){const[{default:s},{executeRelationshipQuery:a}]=await(0,u.Hl)(Promise.all([r.e(5935).then(r.bind(r,75935)),r.e(1073).then(r.bind(r,81073))]),t);return e=s.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),a(this.url,e,t)}async executeRelationshipQueryForCount(e,t){const[{default:s},{executeRelationshipQueryForCount:a}]=await(0,u.Hl)(Promise.all([r.e(5935).then(r.bind(r,75935)),r.e(1073).then(r.bind(r,81073))]),t);return e=s.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),a(this.url,e,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:s,fetchAttachments:a,processAttachmentQueryResult:o}=await(0,u.Hl)(r.e(540).then(r.bind(r,30540)),t),n=(0,h.en)(this.url);return o(n,await(this.queryAttachmentsSupported?s(n,e,t):a(n,e,t)))}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:s}=await(0,u.Hl)(r.e(1158).then(r.bind(r,71158)),t);return s(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:s}=await(0,u.Hl)(r.e(3992).then(r.bind(r,33992)),t);return s(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:s}=await(0,u.Hl)(r.e(1790).then(r.bind(r,21790)),t);return s(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:s}=await(0,u.Hl)(r.e(4371).then(r.bind(r,14371)),t);return s(this.parsedUrl,e,t)}_normalizeQuery(e){let t=m.Z.from(e);if(t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?p.n.from(e.dynamicDataSource):this.dynamicDataSource),(0,i.pC)(this.infoFor3D)&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;for(const e of this.infoFor3D.queryFormats){if("3D_glb"===e){t.formatOf3DObjects=e;break}"3D_gltf"!==e||t.formatOf3DObjects||(t.formatOf3DObjects=e)}if(!t.formatOf3DObjects)throw new o.Z("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if((0,i.Wi)(t.outFields)||!t.outFields.includes("*")){t=t===e?t.clone():t,(0,i.Wi)(t.outFields)&&(t.outFields=[]);const{originX:r,originY:s,originZ:a,translationX:o,translationY:n,translationZ:u,scaleX:l,scaleY:d,scaleZ:c,rotationX:p,rotationY:h,rotationZ:y,rotationDeg:f}=this.infoFor3D.transformFieldRoles;t.outFields.push(r,s,a,o,n,u,l,d,c,p,h,y,f)}}return t}_normalizeFields(e){if((0,i.pC)(this.fieldsIndex)&&(0,i.pC)(e))for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return(0,i.pC)(this.infoFor3D)&&!0===e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,s._)([(0,d.Cb)({type:p.n})],v.prototype,"dynamicDataSource",void 0),(0,s._)([(0,d.Cb)()],v.prototype,"fieldsIndex",void 0),(0,s._)([(0,d.Cb)()],v.prototype,"gdbVersion",void 0),(0,s._)([(0,d.Cb)()],v.prototype,"infoFor3D",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,s._)([(0,d.Cb)()],v.prototype,"pbfSupported",void 0),(0,s._)([(0,d.Cb)()],v.prototype,"queryAttachmentsSupported",void 0),(0,s._)([(0,d.Cb)()],v.prototype,"sourceSpatialReference",void 0),(0,s._)([(0,d.Cb)({type:String})],v.prototype,"url",void 0),v=(0,s._)([(0,c.j)("esri.tasks.QueryTask")],v);const A=v},25278:(e,t,r)=>{r.d(t,{Dm:()=>d,Hq:()=>c,MS:()=>p,bU:()=>i});var s=r(80442),a=r(22974),o=r(61159),n=r(58333);function i(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?n.I4:"esriGeometryPolyline"===e?n.ET:n.lF}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function d(e,t){if((0,s.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${u.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[t]:null,...e})}}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,a.d9)(e)}}]}function p(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:o.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},41818:(e,t,r)=>{r.d(t,{P:()=>n});var s=r(11282),a=r(34599),o=r(14165);async function n(e,t,r){const n=(0,s.en)(e);return(0,a.hH)(n,o.Z.from(t),{...r}).then((e=>e.data.count))}},5396:(e,t,r)=>{r.d(t,{G:()=>n});var s=r(11282),a=r(34599),o=r(14165);async function n(e,t,r){const n=(0,s.en)(e);return(0,a.Ev)(n,o.Z.from(t),{...r}).then((e=>e.data.objectIds))}},4967:(e,t,r)=>{r.d(t,{F:()=>u,e:()=>i});var s=r(11282),a=r(34599),o=r(74889),n=r(14165);async function i(e,t,r){const s=await u(e,t,r);return o.Z.fromJSON(s)}async function u(e,t,r){const o=(0,s.en)(e),i={...r},u=n.Z.from(t),{data:l}=await(0,a.JT)(o,u,u.sourceSpatialReference,i);return l}},59431:(e,t,r)=>{r.d(t,{P:()=>i});var s=r(70586),a=r(67900),o=r(8744);function n(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function i(e,t,r){if(!e&&!t||!r)return;const s=(0,a._R)(r);u(e,r,s),u(t,r,s)}function u(e,t,r){if(e)for(const s of e)l(s.geometry,t,r)}function l(e,t,r){if((0,s.Wi)(e)||!e.spatialReference||(0,o.fS)(e.spatialReference,t))return;const i=(0,a._R)(e.spatialReference)/r;if(1!==i)if("x"in e)null!=e.z&&(e.z*=i);else if("rings"in e)n(e,e.rings,i);else if("paths"in e)n(e,e.paths,i);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=i)}},28694:(e,t,r)=>{r.d(t,{p:()=>o});var s=r(70586),a=r(69285);function o(e,t,r){if(!r||!r.features||!r.hasZ)return;const o=(0,a.k)(r.geometryType,t,e.outSpatialReference);if(!(0,s.Wi)(o))for(const e of r.features)o(e.geometry)}},74889:(e,t,r)=>{r.d(t,{Z:()=>R});var s,a=r(43697),o=r(66577),n=r(38171),i=r(35454),u=r(96674),l=r(22974),d=r(70586),c=r(5600),p=(r(75215),r(71715)),h=r(52011),y=r(30556),f=r(82971),m=r(33955),g=r(1231);const _=new i.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=s=class extends u.wq{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){const r=f.Z.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const a=e[t],o=n.Z.fromJSON(a),i=a.geometry&&a.geometry.spatialReference;(0,d.pC)(o.geometry)&&!i&&(o.geometry.spatialReference=r);const u=a.aggregateGeometries,l=o.aggregateGeometries;if(u&&(0,d.pC)(l))for(const e in l){const t=l[e],s=u[e]?.spatialReference;(0,d.pC)(t)&&!s&&(t.spatialReference=r)}s.push(o)}return s}writeGeometryType(e,t,r,s){if(e)return void _.write(e,t,r,s);const{features:a}=this;if(a)for(const e of a)if(e&&(0,d.pC)(e.geometry))return void _.write(e.geometry.type,t,r,s)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,s=(0,m.im)(e);return s&&!r&&t.spatialReference&&(s.spatialReference=f.Z.fromJSON(t.spatialReference)),s}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,d.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,l.d9)({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){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const s=t.features[r];if(s.geometry){const t=e&&e[r];s.geometry=t&&t.toJSON()||s.geometry}}return t}quantize(e){const{scale:[t,r],translate:[s,a]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-s)/t)),(e=>Math.round((a-e)/r)));for(let e=0,t=o.length;e<t;e++)n?.((0,d.Wg)(o[e].geometry))||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[s,a],scale:[o,n]}=r,i=this._getHydrationFunction(e,(e=>e*o+s),(e=>a-e*n));for(const{geometry:e}of t)(0,d.pC)(e)&&i&&i(e);return this.transform=null,this}_quantizePoints(e,t,r){let s,a;const o=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];if(n>0){const e=t(i[0]),n=r(i[1]);e===s&&n===a||(o.push([e-s,n-a]),s=e,a=n)}else s=t(i[0]),a=r(i[1]),o.push([s,a])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const s=(0,m.oU)(e)?e.rings:e.paths,a=[];for(let e=0,o=s.length;e<o;e++){const o=s[e],n=this._quantizePoints(o,t,r);n&&a.push(n)}return a.length>0?((0,m.oU)(e)?e.rings=a:e.paths=a,e):null}:"multipoint"===e?e=>{const s=this._quantizePoints(e.points,t,r);return s&&s.length>0?(e.points=s,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const s=(0,m.oU)(e)?e.rings:e.paths;let a,o;for(let e=0,n=s.length;e<n;e++){const n=s[e];for(let e=0,s=n.length;e<s;e++){const s=n[e];e>0?(a+=s[0],o+=s[1]):(a=s[0],o=s[1]),s[0]=t(a),s[1]=r(o)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const s=e.points;let a,o;for(let e=0,n=s.length;e<n;e++){const n=s[e];e>0?(a+=n[0],o+=n[1]):(a=n[0],o=n[1]),n[0]=t(a),n[1]=r(o)}}:null}};(0,a._)([(0,c.Cb)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,a._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,a._)([(0,c.Cb)({type:[n.Z],json:{write:!0}})],b.prototype,"features",void 0),(0,a._)([(0,p.r)("features")],b.prototype,"readFeatures",null),(0,a._)([(0,c.Cb)({type:[g.Z],json:{write:!0}})],b.prototype,"fields",void 0),(0,a._)([(0,c.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:_.read}}})],b.prototype,"geometryType",void 0),(0,a._)([(0,y.c)("geometryType")],b.prototype,"writeGeometryType",null),(0,a._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,a._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,a._)([(0,c.Cb)({types:o.qM,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,a._)([(0,p.r)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,a._)([(0,c.Cb)({type:f.Z,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,a._)([(0,y.c)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,a._)([(0,c.Cb)({json:{write:!0}})],b.prototype,"transform",void 0),b=s=(0,a._)([(0,h.j)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0;const R=b}}]);