@arcgis/core 4.31.0-next.20240620 → 4.31.0-next.20240621
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/{3a74d3fc690177a703f5.js → 019ce38b02e3bf517125.js} +1 -1
- package/assets/esri/core/workers/chunks/{222807cfaa2e17d0efea.js → 6745cedf6f82c8917904.js} +1 -1
- package/assets/esri/core/workers/chunks/7b6cd976367a0dd297d6.js +1 -0
- package/assets/esri/core/workers/chunks/{8a948d46d0377a6adb86.js → 9d677af08238d9e09e72.js} +2 -2
- package/assets/esri/core/workers/chunks/bedf60888f07b78b314d.js +1 -0
- package/assets/esri/core/workers/chunks/c39237c00c1d588dc107.js +1 -0
- package/assets/esri/core/workers/chunks/de7fa31d86a65ccdffc1.js +1 -0
- package/assets/esri/core/workers/chunks/{8ee8f3c54b2cce217845.js → f13fb6b712e364bbf48c.js} +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ar.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_bg.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_bs.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ca.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_cs.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_da.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_de.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_el.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_es.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_et.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_fi.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_fr.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_he.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_hr.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_hu.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_id.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_it.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ja.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ko.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_lt.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_lv.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_nb.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_nl.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_pl.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_pt-BR.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_pt-PT.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ro.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ru.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_sk.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_sl.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_sr.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_sv.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_th.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_tr.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_uk.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_vi.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_zh-CN.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_zh-HK.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_zh-TW.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nb.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
- package/chunks/CheckerBoard.glsl.js +9 -6
- package/chunks/ComponentShader.glsl.js +4 -4
- package/chunks/ImageMaterial.glsl.js +1 -2
- package/interfaces.d.ts +50 -14
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/mixins/EditBusLayer.js +1 -1
- package/layers/mixins/FeatureLayerBase.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
- package/layers/support/featureLayerUtils.js +1 -1
- package/package.json +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/layers/support/ExportStrategy.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +1 -2
- package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/interfaces.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/util.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
- package/views/SelectionManager.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/OrientedImageryViewerViewModelAdapter2D.js +1 -1
- package/widgets/OrientedImageryViewer/utils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer/constants.js +1 -1
- package/widgets/PanoramicViewer/utils.js +1 -1
- package/widgets/Print.js +1 -1
- package/assets/esri/core/workers/chunks/4f2be9fd4ff5b3ad3110.js +0 -1
- package/assets/esri/core/workers/chunks/88c7d84a1fde246ca71f.js +0 -1
- package/assets/esri/core/workers/chunks/986520dd0de64105dbff.js +0 -1
- package/assets/esri/core/workers/chunks/ad0a87dba95785ad6171.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2593],{29242:(e,t,r)=>{function a(){return[1,0,0,0,1,0,0,0,1]}function s(e,t,r,a,s,n,o,i,u){return[e,t,r,a,s,n,o,i,u]}r.d(t,{fA:()=>s,vt:()=>a,zK:()=>n});const n=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:a,createView:function(e,t){return new Float64Array(e,t,9)},fromValues:s},Symbol.toStringTag,{value:"Module"}))},9093:(e,t,r)=>{function a(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>s,vt:()=>a,zK:()=>n});const n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:s,create:a,createView:function(e,t){return new Float64Array(e,t,16)},fromValues:function(e,t,r,a,s,n,o,i,u,l,d,c,p,h,y,f){return[e,t,r,a,s,n,o,i,u,l,d,c,p,h,y,f]}},Symbol.toStringTag,{value:"Module"}))},82534:(e,t,r)=>{function a(){return[0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{o8:()=>s,vt:()=>a,zK:()=>n});const n=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:s,create:a,createView:function(e,t){return new Float64Array(e,t,4)},fromValues:function(e,t,r,a){return[e,t,r,a]}},Symbol.toStringTag,{value:"Module"}))},67026:(e,t,r)=>{r.d(t,{A6:()=>f,Xd:()=>d,Xr:()=>h,hZ:()=>m,lw:()=>c,t2:()=>O,x8:()=>l});var a=r(29242),s=r(82534),n=r(51850),o=r(34304),i=r(38954),u=r(87317);function l(e,t,r){r*=.5;const a=Math.sin(r);return e[0]=a*t[0],e[1]=a*t[1],e[2]=a*t[2],e[3]=Math.cos(r),e}function d(e,t){const r=2*Math.acos(t[3]),a=Math.sin(r/2);return a>(0,o.FD)()?(e[0]=t[0]/a,e[1]=t[1]/a,e[2]=t[2]/a):(e[0]=1,e[1]=0,e[2]=0),r}function c(e,t,r){const a=t[0],s=t[1],n=t[2],o=t[3],i=r[0],u=r[1],l=r[2],d=r[3];return e[0]=a*d+o*i+s*l-n*u,e[1]=s*d+o*u+n*i-a*l,e[2]=n*d+o*l+a*u-s*i,e[3]=o*d-a*i-s*u-n*l,e}function p(e,t,r,a){const s=t[0],n=t[1],i=t[2],u=t[3];let l,d,c,p,h,y=r[0],f=r[1],g=r[2],m=r[3];return d=s*y+n*f+i*g+u*m,d<0&&(d=-d,y=-y,f=-f,g=-g,m=-m),1-d>(0,o.FD)()?(l=Math.acos(d),c=Math.sin(l),p=Math.sin((1-a)*l)/c,h=Math.sin(a*l)/c):(p=1-a,h=a),e[0]=p*s+h*y,e[1]=p*n+h*f,e[2]=p*i+h*g,e[3]=p*u+h*m,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const r=t[0]+t[4]+t[8];let a;if(r>0)a=Math.sqrt(r+1),e[3]=.5*a,a=.5/a,e[0]=(t[5]-t[7])*a,e[1]=(t[6]-t[2])*a,e[2]=(t[1]-t[3])*a;else{let r=0;t[4]>t[0]&&(r=1),t[8]>t[3*r+r]&&(r=2);const s=(r+1)%3,n=(r+2)%3;a=Math.sqrt(t[3*r+r]-t[3*s+s]-t[3*n+n]+1),e[r]=.5*a,a=.5/a,e[3]=(t[3*s+n]-t[3*n+s])*a,e[s]=(t[3*s+r]+t[3*r+s])*a,e[n]=(t[3*n+r]+t[3*r+n])*a}return e}function f(e,t,r,a){const s=.5*Math.PI/180;t*=s,r*=s,a*=s;const n=Math.sin(t),o=Math.cos(t),i=Math.sin(r),u=Math.cos(r),l=Math.sin(a),d=Math.cos(a);return e[0]=n*u*d-o*i*l,e[1]=o*i*d+n*u*l,e[2]=o*u*l-n*i*d,e[3]=o*u*d+n*i*l,e}const g=u.c,m=u.s,A=u.f,b=c,w=u.b,F=u.g,v=u.l,S=u.i,R=S,I=u.j,M=I,E=u.n,O=u.a,q=u.e,x=(0,n.vt)(),_=(0,n.fA)(1,0,0),T=(0,n.fA)(0,1,0),$=(0,s.vt)(),N=(0,s.vt)(),k=(0,a.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:A,calculateW:function(e,t){const r=t[0],a=t[1],s=t[2];return e[0]=r,e[1]=a,e[2]=s,e[3]=Math.sqrt(Math.abs(1-r*r-a*a-s*s)),e},conjugate:h,copy:g,dot:F,equals:q,exactEquals:O,fromEuler:f,fromMat3:y,getAxisAngle:d,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const r=t[0],a=t[1],s=t[2],n=t[3],o=r*r+a*a+s*s+n*n,i=o?1/o:0;return e[0]=-r*i,e[1]=-a*i,e[2]=-s*i,e[3]=n*i,e},len:R,length:S,lerp:v,mul:b,multiply:c,normalize:E,random:function(e){const t=o.Ov,r=t(),a=t(),s=t(),n=Math.sqrt(1-r),i=Math.sqrt(r);return e[0]=n*Math.sin(2*Math.PI*a),e[1]=n*Math.cos(2*Math.PI*a),e[2]=i*Math.sin(2*Math.PI*s),e[3]=i*Math.cos(2*Math.PI*s),e},rotateX:function(e,t,r){r*=.5;const a=t[0],s=t[1],n=t[2],o=t[3],i=Math.sin(r),u=Math.cos(r);return e[0]=a*u+o*i,e[1]=s*u+n*i,e[2]=n*u-s*i,e[3]=o*u-a*i,e},rotateY:function(e,t,r){r*=.5;const a=t[0],s=t[1],n=t[2],o=t[3],i=Math.sin(r),u=Math.cos(r);return e[0]=a*u-n*i,e[1]=s*u+o*i,e[2]=n*u+a*i,e[3]=o*u-s*i,e},rotateZ:function(e,t,r){r*=.5;const a=t[0],s=t[1],n=t[2],o=t[3],i=Math.sin(r),u=Math.cos(r);return e[0]=a*u+s*i,e[1]=s*u-a*i,e[2]=n*u+o*i,e[3]=o*u-n*i,e},rotationTo:function(e,t,r){const a=(0,i.m)(t,r);return a<-.999999?((0,i.b)(x,_,t),(0,i.H)(x)<1e-6&&(0,i.b)(x,T,t),(0,i.n)(x,x),l(e,x,Math.PI),e):a>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,i.b)(x,t,r),e[0]=x[0],e[1]=x[1],e[2]=x[2],e[3]=1+a,E(e,e))},scale:w,set:m,setAxes:function(e,t,r,a){const s=k;return s[0]=r[0],s[3]=r[1],s[6]=r[2],s[1]=a[0],s[4]=a[1],s[7]=a[2],s[2]=-t[0],s[5]=-t[1],s[8]=-t[2],E(e,y(e,s))},setAxisAngle:l,slerp:p,sqlerp:function(e,t,r,a,s,n){return p($,t,s,n),p(N,r,a,n),p(e,$,N,2*n*(1-n)),e},sqrLen:M,squaredLength:I,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},95696:(e,t,r)=>{r.d(t,{A:()=>d});var a=r(90237),s=r(69540),n=r(25482),o=r(10107),i=(r(44208),r(53966),r(87811),r(93223)),u=r(40608);let l=class extends((0,s.O)(n.oY)){constructor(e){super(e),this.type="georeferenced",this.origin=null}};(0,a._)([(0,i.e)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,a._)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,a._)([(0,u.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l);const d=l},18251:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(90237),s=r(69540),n=r(25482),o=r(10107),i=(r(44208),r(53966),r(87811),r(93223)),u=r(40608),l=r(51850);let d=class extends((0,s.O)(n.oY)){constructor(e){super(e),this.type="local",this.origin=(0,l.vt)()}};(0,a._)([(0,i.e)({local:"local"},{readOnly:!0})],d.prototype,"type",void 0),(0,a._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"origin",void 0),d=(0,a._)([(0,u.$)("esri.geometry.support.MeshLocalVertexSpace")],d);const c=d},73836:(e,t,r)=>{r.d(t,{A:()=>g});var a,s=r(90237),n=r(25482),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),u=r(58083),l=r(9093),d=r(67026),c=r(82534),p=r(51850),h=r(24770);let y=a=class extends n.oY{constructor(e){super(e),this.translation=(0,p.vt)(),this.rotationAxis=(0,p.ci)(h.up),this.rotationAngle=0,this.scale=(0,p.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,p.o8)((0,h.yo)(e)),this.rotationAngle=(0,h.g7)(e)}get localMatrix(){const e=(0,l.vt)();return(0,d.x8)(f,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,u.o1)(e,f,this.translation,this.scale),e}get localMatrixInverse(){return(0,u.B8)((0,l.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,u.t2)(this.localMatrix,e.localMatrix)}clone(){const e={translation:(0,p.o8)(this.translation),rotationAxis:(0,p.o8)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,p.o8)(this.scale)};return new a(e)}};(0,s._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"translation",void 0),(0,s._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"rotationAxis",void 0),(0,s._)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],y.prototype,"rotationAngle",void 0),(0,s._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"scale",void 0),(0,s._)([(0,o.MZ)()],y.prototype,"rotation",null),(0,s._)([(0,o.MZ)()],y.prototype,"localMatrix",null),(0,s._)([(0,o.MZ)()],y.prototype,"localMatrixInverse",null),y=a=(0,s._)([(0,i.$)("esri.geometry.support.MeshTransform")],y);const f=(0,c.vt)(),g=y},24770:(e,t,r)=>{r.d(t,{$I:()=>g,AU:()=>h,g7:()=>f,i4:()=>d,ui:()=>c,up:()=>A,vt:()=>l,yo:()=>y});var a=r(34727),s=r(58083),n=r(67026),o=r(82534),i=r(38954),u=r(51850);function l(e=A){return[e[0],e[1],e[2],e[3]]}function d(e,t,r=l()){return(0,i.c)(r,e),r[3]=t,r}function c(e,t=l()){const r=(0,s.l)(b,e);return m(t,(0,a.KJ)((0,n.Xd)(t,r))),t}function p(e,t,r=l()){return(0,n.x8)(b,e,g(e)),(0,n.x8)(w,t,g(t)),(0,n.lw)(b,w,b),m(r,(0,a.KJ)((0,n.Xd)(r,b)))}function h(e,t,r,a=l()){return d(u.Cw,e,F),d(u.JP,t,v),d(u.Cb,r,S),p(F,v,F),p(F,S,a),a}function y(e){return e}function f(e){return e[3]}function g(e){return(0,a.kU)(e[3])}function m(e,t){return e[3]=t,e}r(91829);const A=[0,0,1,0],b=(0,o.vt)(),w=(0,o.vt)(),F=(l(),l()),v=l(),S=l()},63579:(e,t,r)=>{r.d(t,{Bq:()=>u,Qp:()=>i,WN:()=>A,dK:()=>b,eN:()=>y,fH:()=>m,in:()=>f,yr:()=>l});var a=r(78888),s=r(4576),n=r(74887),o=r(20557);class i{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,s.aI)(this.parts,e.parts,((e,t)=>e.equals(t)))}isOnService(e){return this.parts.every((t=>t.isOnService(e)))}makeHash(){let e="";for(const t of this.parts)e+=t.partHash;return e}async toBlob(e){const{parts:t}=this;if(1===t.length)return t[0].toBlob(e);const r=await Promise.all(t.map((t=>t.toBlob(e))));return(0,n.Te)(e),new Blob(r)}}class u{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){const{data:t}=await(0,a.A)(this.partUrl,{responseType:"blob"});return(0,n.Te)(e),t}}function l(e){return function(e){return!!e&&(Array.isArray(e)?e.some(h):h(e))}(e?.source)}function d(e){return!!Array.isArray(e)&&e.every((e=>e instanceof i))}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,p=/\.(gltf|glb)/i;function h(e){if(e instanceof File){const{type:t,name:r}=e;return c.test(t)||p.test(r)}return c.test(e.assetMimeType)||p.test(e.assetName)}function y(e,t){if(!e)return!1;const{source:r}=e;return function(e,t){if(Array.isArray(e)){const r=e;return r.length>0&&r.every((e=>g(e,t)))}return g(e,t)}(r,t)}function f(e,t){if(e===t)return!0;const{source:r}=e,{source:a}=t;if(r===a)return!0;if(d(r)&&d(a)){if(r.length!==a.length)return!1;const e=(e,t)=>e.assetName<t.assetName?-1:e.assetName>t.assetName?1:0,t=[...r].sort(e),s=[...a].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(s[e]))return!1;return!0}return!1}function g(e,t){return e instanceof i&&e.isOnService(t)}function m(e,t){return e instanceof File?(0,o.rq)(e,t):(0,o.R_)(e.assetMimeType,t)??(0,o.E1)(e.assetName,t)}function A(e){return Array.isArray(e)?e:[e]}function b(e){return!!e.original}},27615:(e,t,r)=>{r.d(t,{CK:()=>c,Hq:()=>d,MW:()=>p,TE:()=>h,yJ:()=>y});var a=r(51447),s=r(53966),n=r(38954),o=r(86738),i=r(95696),u=r(18251);function l(){return s.A.getLogger("esri.geometry.Mesh")}function d(e){return null!=e.origin}function c(e){return d(e.vertexSpace)}function p(e,t){if(!d(e))return null;const[r,a,s]=e.origin;return new o.A({x:r,y:a,z:s,spatialReference:t})}function h(e,t){const{x:r,y:s,z:n,spatialReference:o}=e,d=[r,s,n??0];return void 0!==t?.geographic&&((0,a.io)(l(),"option: geographic",{replacement:"Use the `vertexSpace` option instead.",version:"4.29",warnOnce:!0}),t.vertexSpace&&l().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")),"local"===(t?.vertexSpace??(c=t?.geographic,null==c?void 0:c?"local":"georeferenced")??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(o))?new u.A({origin:d}):new i.A({origin:d});var c}function y(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,n.e)(e.origin,t.origin))}},99352:(e,t,r)=>{r.d(t,{F:()=>a});const a={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,supportsQueryByAnonymous:!0,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}},78628:(e,t,r)=>{r.d(t,{applyEdits:()=>v,r3:()=>b,uploadAssets:()=>q,zp:()=>F});var a=r(52106),s=r(5503),n=r(49186),o=r(4718),i=r(53966),u=r(74887),l=r(84952),d=r(13069),c=r(17136),p=r(21325),h=r(47685),y=r(30524),f=r(20557),g=r(83531);function m(e){return null!=e?.applyEdits}function A(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function b(e){return e.every(A)}function w(e){return"object"==typeof e&&null!=e&&"globalId"in e&&!!e.globalId}function F(e){return e.every(w)}async function v(e,t,r,a={}){let l;const c="gdbVersion"in e?e.gdbVersion:null,p=a.gdbVersion??c;if((0,h.Mk)(e)&&e.url)l=(0,h.Zk)(e.url,e.layerId,p,"original-and-current-features"===a.returnServiceEditsOption);else{l=(0,u.Tw)(),l.promise.then((t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)}));const t={result:l.promise};e.emit("apply-edits",t)}try{const{results:u,edits:c}=await async function(e,t,r,a){if(await e.load(),!m(t))throw new n.A(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,g.tk)(e))throw new n.A(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:o,options:u}=await async function(e,t,r){const a=(0,g.BR)(e),o=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),u=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),l=null!=e.infoFor3D;if(function(e,t,r,a,s,o){if(!e||!a&&!s)throw new n.A(`${o}:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");if(!t.editing.supportsGlobalId&&r?.globalIdUsed)throw new n.A(`${o}:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!t.editing.supportsGlobalId&&s)throw new n.A(`${o}:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!r?.globalIdUsed&&s)throw new n.A(`${o}:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true")}(t,a,r,!!o,!!u,`${e.type}-layer`),!a.data.isVersioned&&r?.gdbVersion)throw new n.A(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!a.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new n.A(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");const c={...r};if(null!=c.rollbackOnFailureEnabled||a.editing.supportsRollbackOnFailure||(c.rollbackOnFailureEnabled=!0),c.rollbackOnFailureEnabled||"original-and-current-features"!==c.returnServiceEditsOption||(!1===c.rollbackOnFailureEnabled&&i.A.getLogger("esri.layers.graphics.editingSupport").warn(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true, but 'rollBackOnFailure' was set to false. 'rollBackOnFailure' has been overwritten and set to true."),c.rollbackOnFailureEnabled=!0),!a.editing.supportsReturnServiceEditsInSourceSpatialReference&&c.returnServiceEditsInSourceSR)throw new n.A(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(c.returnServiceEditsInSourceSR&&"original-and-current-features"!==c.returnServiceEditsOption)throw new n.A(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const p=function(e,t,r){const a=function(e){return{addFeatures:Array.from(e?.addFeatures??[]),updateFeatures:Array.from(e?.updateFeatures??[]),deleteFeatures:e&&s.A.isCollection(e.deleteFeatures)?e.deleteFeatures.toArray():e.deleteFeatures||[],addAttachments:e.addAttachments||[],updateAttachments:e.updateAttachments||[],deleteAttachments:e.deleteAttachments||[]}}(e);if(a.addFeatures?.length&&!t.operations.supportsAdd)throw new n.A(`${r}:unsupported-operation`,"Layer does not support adding features.");if(a.updateFeatures?.length&&!t.operations.supportsUpdate)throw new n.A(`${r}:unsupported-operation`,"Layer does not support updating features.");if(a.deleteFeatures?.length&&!t.operations.supportsDelete)throw new n.A(`${r}:unsupported-operation`,"Layer does not support deleting features.");return a.addFeatures=a.addFeatures.map(E),a.updateFeatures=a.updateFeatures.map(E),a.addAssetFeatures=[],a}(t,a,`${e.type}-layer`),h=r?.globalIdUsed||l,y=e.fields.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(h){const{globalIdField:t}=e;if(null==t)throw new n.A(`${e.type}-layer:invalid-parameter`,"Layer does not specify a global id field.");p.addFeatures.forEach((e=>function(e,t){const{attributes:r}=e;null==r[t]&&(r[t]=(0,d.yS)())}(e,t)))}return p.addFeatures.forEach((t=>function(e,t,r,a){S(e,t,r,a),R(e,t)}(t,e,h,y))),p.updateFeatures.forEach((t=>function(e,t,r,a){S(e,t,r,a),R(e,t);const s=(0,g.BR)(t);if("geometry"in e&&null!=e.geometry&&!s?.editing.supportsGeometryUpdate)throw new n.A(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,h,y))),p.deleteFeatures.forEach((t=>function(e,t,r,a){S(e,t,r,a)}(t,e,h,y))),p.addAttachments.forEach((t=>I(t,e))),p.updateAttachments.forEach((t=>I(t,e))),l&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:r}=t,a=(0,f.R_)("model/gltf-binary",r.supportedFormats)??(0,f.E1)("glb",r.supportedFormats);if(!a||!r.editFormats.includes(a))throw new n.A(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:s}=e;for(const t of e.addFeatures??[])O(t)&&s.push(t);for(const t of e.updateFeatures??[])O(t)&&s.push(t)}(p,e),{edits:await M(p),options:c}}(e,r,a);return o.addFeatures?.length||o.updateFeatures?.length||o.deleteFeatures?.length||o.addAttachments?.length||o.updateAttachments?.length||o.deleteAttachments?.length?{edits:o,results:await t.applyEdits(o,u)}:{edits:o,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,a),p=e=>e.filter((e=>!e.error)).map(o.o8),h={edits:c,addedFeatures:p(u.addFeatureResults),updatedFeatures:p(u.updateFeatureResults),deletedFeatures:p(u.deleteFeatureResults),addedAttachments:p(u.addAttachmentResults),updatedAttachments:p(u.updateAttachmentResults),deletedAttachments:p(u.deleteAttachmentResults),exceededTransferLimit:!1,historicMoment:u.editMoment?new Date(u.editMoment):null,globalIdToObjectId:a.globalIdToObjectId};return u.editedFeatureResults?.length&&(h.editedFeatures=u.editedFeatureResults),l.resolve(h),u}catch(e){throw l.reject(e),e}}function S(e,t,r,a){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new n.A(`${t.type}-layer:invalid-parameter`,`Feature should have '${t.globalIdField}' when 'globalIdUsed' is true`);if(!("attributes"in e)&&!e.globalId)throw new n.A(`${t.type}-layer:invalid-parameter`,"`'globalId' of the feature should be passed when 'globalIdUsed' is true")}if(a.length&&"attributes"in e)for(const r of a){const a=e.attributes[r.name];if(void 0!==a&&!(0,y.OG)(r,a))throw new n.A(`${t.type}-layer:invalid-parameter`,`Big-integer field '${r.name}' of the feature must be less than ${Number.MAX_SAFE_INTEGER}`,{feature:e})}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new n.A(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new n.A(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function R(e,t){if("geometry"in e&&"mesh"===e.geometry?.type&&null!=t.infoFor3D&&null!=t.spatialReference){const{geometry:r}=e,{spatialReference:a,vertexSpace:s}=r,o=t.spatialReference,i="local"===s.type,u=(0,p.EA)(o),l=(0,p.aI)(o,a),d=l||(0,p.oT)(o)&&((0,p.oT)(a)||(0,p.K8)(a));if(!(i&&u&&d||!i&&!u&&l))throw new n.A(`${t.type}-layer:mesh-unsupported`,`Uploading a mesh with a ${s.type} vertex space and a spatial reference wkid:${a.wkid} to a layer with a spatial reference wkid:${o.wkid} is not supported.`)}}function I(e,t){const{feature:r,attachment:a}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new n.A(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new n.A(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!a.globalId)throw new n.A(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!a.data&&!a.uploadId)throw new n.A(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(a.data instanceof File&&a.data.name||a.name))throw new n.A(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&a.uploadId)throw new n.A(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof a.data){const e=(0,l.r$)(a.data);if(e&&!e.isBase64)throw new n.A(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function M(e){const t=e.addFeatures??[],r=e.updateFeatures??[],a=t.concat(r).map((e=>e.geometry)),s=await(0,c.el)(a),n=t.length,o=r.length;return s.slice(0,n).forEach(((e,r)=>t[r].geometry=e)),s.slice(n,n+o).forEach(((e,t)=>r[t].geometry=e)),e}function E(e){const t=new a.A;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function O(e){return"mesh"===e?.geometry?.type}function q(e,t,r,a){if(!m(t))throw new n.A(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new n.A(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,a)}},72593:(e,t,r)=>{r.r(t),r.d(t,{default:()=>W});var a=r(90237),s=(r(59456),r(70333)),n=r(78888),o=r(4576),i=r(49186),u=r(44208),l=r(66552),d=r(92474),c=r(53966),p=r(93637),h=r(74887),y=r(84952),f=r(13069),g=r(10107),m=r(40608),A=r(5443),b=r(95696),w=r(27615),F=r(63579),v=r(52106),S=r(83047),R=r(57251),I=r(65864),M=r(73836),E=r(21325),O=r(78628);async function q(e,t,r){const{geometry:a}=t,s={...t.attributes};if(null!=r&&"mesh"===a?.type){const{transformFieldRoles:t}=r,{origin:n,spatialReference:o,vertexSpace:i}=a,u=a.transform??new M.A,l="local"===i.type,d=e.spatialReference,c=d.isGeographic,p=(0,E.aI)(d,o),h=(0,R.isEqualBaseGCS)(o,d)&&(0,R.canProjectWithoutEngine)(o,d);if(!(l&&c&&h||!l&&!c&&p))return null;const y=(0,R.projectWithoutEngine)(n,o,d);if(null==y)return null;if(s[t.originX]=y.x,s[t.originY]=y.y,s[t.originZ]=y.z??0,null!=u){const{translation:e,scale:r,rotation:a}=u,n=l?1:(0,S.KX)(o)/(0,S.KX)(d);s[t.translationX]=e[0]*n,s[t.translationY]=e[2]*n,s[t.translationZ]=-e[1]*n,s[t.scaleX]=r[0],s[t.scaleY]=r[2],s[t.scaleZ]=r[1],s[t.rotationX]=a[0],s[t.rotationY]=a[2],s[t.rotationZ]=-a[1],s[t.rotationDeg]=a[3]}return{attributes:s}}return null==a?{attributes:s}:"mesh"===a.type||"extent"===a.type?null:{geometry:a.toJSON(),attributes:s}}async function x(e,t){const r=await Promise.all((t.addAttachments??[]).map((t=>_(e,t)))),a=await Promise.all((t.updateAttachments??[]).map((t=>_(e,t)))),s=t.deleteAttachments??[];return r.length||a.length||s.length?{adds:r,updates:a,deletes:[...s]}:null}async function _(e,t){const{feature:r,attachment:a}=t,{globalId:s,name:n,contentType:o,data:i,uploadId:u}=a,l={globalId:s};if(r&&("attributes"in r?l.parentGlobalId=r.attributes?.[e.globalIdField]:r.globalId&&(l.parentGlobalId=r.globalId)),u)l.uploadId=u;else if(i){const e=await(0,y._0)(i);e&&(l.contentType=e.mediaType,l.data=e.data),i instanceof File&&(l.name=i.name)}return n&&(l.name=n),o&&(l.contentType=o),l}function T(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.A("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}function $(e,t){return new v.A({attributes:e.attributes,geometry:(0,I.rS)({...e.geometry,spatialReference:t})})}function N(e,t){return{adds:e?.adds?.map((e=>$(e,t)))||[],updates:e?.updates?.map((e=>({original:$(e[0],t),current:$(e[1],t)})))||[],deletes:e?.deletes?.map((e=>$(e,t)))||[],spatialReference:t}}var k=r(64714),j=r(93622),U=r(60694),C=r(15426),P=r(20557),D=r(99199),L=r(96520),J=r(61956),Q=r(79677),B=r(20816),V=r(16930);const G=new l.J({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),Z=new l.J({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let z=class extends d.A{constructor(){super(...arguments),this.type="feature-layer",this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.refresh=(0,h.sg)((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}})),this._ongoingAssetUploads=new Map}load(e){const t=this.layer.sourceJSON,r=this._fetchService(t,{...e}).then((()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,e))).then((()=>this._ensureLatestMetadata(e)));return this.addResolvingPromise(r),Promise.resolve(this)}get queryTask(){const{capabilities:e,parsedUrl:t,dynamicDataSource:r,infoFor3D:a,gdbVersion:s,spatialReference:n,fieldsIndex:o}=this.layer,i=(0,u.A)("featurelayer-pbf")&&e?.query.supportsFormatPBF&&null==a,l=e?.operations?.supportsQueryAttachments??!1;return new j.A({url:t.path,pbfSupported:i,fieldsIndex:o,infoFor3D:a,dynamicDataSource:r,gdbVersion:s,sourceSpatialReference:n,queryAttachmentsSupported:l})}async addAttachment(e,t){await this.load();const{layer:r}=this;await(0,C.VA)(r,"editing");const a=e.attributes[r.objectIdField],s=r.parsedUrl.path+"/"+a+"/addAttachment",o=this._getLayerRequestOptions(),i=this._getFormDataForAttachment(t,o.query);try{return T((await(0,n.A)(s,{body:i})).data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(a,e)}}async updateAttachment(e,t,r){await this.load();const{layer:a}=this;await(0,C.VA)(a,"editing");const s=e.attributes[a.objectIdField],o=a.parsedUrl.path+"/"+s+"/updateAttachment",i=this._getLayerRequestOptions({query:{attachmentId:t}}),u=this._getFormDataForAttachment(r,i.query);try{return T((await(0,n.A)(o,{body:u})).data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(s,e)}}async applyEdits(e,t){await this.load();const{layer:r}=this;await(0,C.VA)(r,"editing");const a=r.infoFor3D,u=null!=a,l=u||(t?.globalIdUsed??!1),d=u?await this._uploadMeshesAndGetAssetMapEditsJSON(e):null,c=e.addFeatures?.map((e=>q(this.layer,e,a)))??[],p=(await Promise.all(c)).filter(o.Ru),h=e.updateFeatures?.map((e=>q(this.layer,e,a)))??[],y=(await Promise.all(h)).filter(o.Ru),f=function(e,t,r){if(!t||0===t.length)return[];if(r&&(0,O.zp)(t))return t.map((e=>e.globalId));if((0,O.r3)(t))return t.map((e=>e.objectId));const a=r?e.globalIdField:e.objectIdField;return a?t.map((e=>e.getAttribute(a))):[]}(this.layer,e.deleteFeatures,l);(0,L.u)(p,y,r.spatialReference);const g=await x(this.layer,e),m=r.capabilities.editing.supportsAsyncApplyEdits&&u,A=t?.gdbVersion||r.gdbVersion,b={gdbVersion:A,rollbackOnFailure:t?.rollbackOnFailureEnabled,useGlobalIds:l,returnEditMoment:t?.returnEditMoment,usePreviousEditMoment:t?.usePreviousEditMoment,async:m};await(0,B.ZJ)(this.layer.url,A,!0);const w=(0,B.w5)(this.layer.url,A||null);if(await(0,B.We)(r.url,A,r.historicMoment))throw new i.A("feature-layer-source:historic-version","Editing a historic version is not allowed");t?.returnServiceEditsOption?(b.edits=JSON.stringify([{id:r.layerId,adds:p.length?p:null,updates:y.length?y:null,deletes:f.length?f:null,attachments:g,assetMaps:d}]),b.returnServiceEditsOption=G.toJSON(t?.returnServiceEditsOption),b.returnServiceEditsInSourceSR=t?.returnServiceEditsInSourceSR):(b.adds=p.length?JSON.stringify(p):null,b.updates=y.length?JSON.stringify(y):null,b.deletes=f.length?l?JSON.stringify(f):f.join(","):null,b.attachments=g&&JSON.stringify(g),b.assetMaps=null!=d?JSON.stringify(d):void 0);const F=this._getLayerRequestOptions({method:"post",query:b});w&&(F.authMode="immediate",F.query.returnEditMoment=!0,F.query.sessionId=B.TA);const v=t?.returnServiceEditsOption?r.url:r.parsedUrl.path;let S;try{S=m?await this._asyncApplyEdits(v+"/applyEdits",F):await(0,n.A)(v+"/applyEdits",F)}catch(e){if(!function(e){const t=e.details.raw,r=+t.code,a=+t.extendedCode;return 500===r&&(-2147217144===a||-2147467261===a)}(e))throw e;F.authMode="immediate",S=m?await this._asyncApplyEdits(v+"/applyEdits",F):await(0,n.A)(v+"/applyEdits",F)}if(!r.capabilities.operations?.supportsEditing&&r.effectiveCapabilities?.operations?.supportsEditing){const e=s.id?.findCredential(r.url);await(e?.refreshToken())}return this._createEditsResult(S)}async deleteAttachments(e,t){await this.load();const{layer:r}=this;await(0,C.VA)(r,"editing");const a=e.attributes[r.objectIdField],s=r.parsedUrl.path+"/"+a+"/deleteAttachments";try{return(await(0,n.A)(s,this._getLayerRequestOptions({query:{attachmentIds:t.join(",")},method:"post"}))).data.deleteAttachmentResults.map(T)}catch(e){throw this._createAttachmentErrorResult(a,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:a}=this.layer,{data:s}=await(0,n.A)(`${a}/${r}`,t),{id:o,extent:i,fullExtent:u,timeExtent:l}=s,d=i||u;return{id:o,fullExtent:d&&A.A.fromJSON(d),timeExtent:l&&Q.A.fromJSON({start:l[0],end:l[1]})}}))}async queryAttachments(e,t={}){await this.load();const r=this._getLayerRequestOptions(t);return this.queryTask.executeAttachmentQuery(e,r)}async queryFeatures(e,t){await this.load();const r=await this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)});return e.outStatistics?.length&&r.features.length&&r.features.forEach((t=>{const r=t.attributes;e.outStatistics?.forEach((({outStatisticFieldName:e})=>{if(e){const t=e.toLowerCase();t&&t in r&&e!==t&&(r[e]=r[t],delete r[t])}}))})),r}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,U.Wo)(this.layer.url))return"unavailable";const e=(0,y.fj)(this.layer.url,"status"),t=await(0,n.A)(e,{query:{f:"json"}});return Z.fromJSON(t.data.status)}async uploadAssets(e,t){const{uploadAssets:a}=await r.e(1384).then(r.bind(r,31384));return a(e,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},t)}async _asyncApplyEdits(e,t){const r=(await(0,n.A)(e,t)).data.statusUrl;for(;;){const e=(await(0,n.A)(r,{query:{f:"json"},responseType:"json"})).data;switch(e.status){case"Completed":return(0,n.A)(e.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new i.A("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new i.A("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,h.Pl)(H)}}_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 r={};(0,u.A)("featurelayer-advanced-symbols")&&(r.returnAdvancedSymbols=!0),t?.cacheBust&&(r._ts=Date.now());const{data:a}=await(0,n.A)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:r,signal:t?.signal}));e=a}this.sourceJSON=await this._patchServiceJSON(e,t?.signal);const r=e.type;if(!this.supportedSourceTypes.has(r))throw new i.A("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}async _patchServiceJSON(e,t){if("Table"!==e.type&&e.geometryType&&!e?.drawingInfo?.renderer&&!e.defaultSymbol){const t=(0,k.F0)(e.geometryType).renderer;(0,p.sM)("drawingInfo.renderer",t,e)}if("esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),null==e.extent)try{const{data:r}=await(0,n.A)(this.layer.url,this._getLayerRequestOptions({signal:t}));r.spatialReference&&(e.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:r.spatialReference})}catch(e){(0,h.QP)(e)}return e}async _ensureLatestMetadata(e){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...e,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(e){const{addAssetFeatures:t}=e;if(!t?.length)return null;if(await this._areAllAssetsAlreadyMapped(t))return null;const a=e.addFeatures.filter((e=>e.geometry));if(t.length!==a.length+e.updateFeatures.length)throw new i.A("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");const s=new Array,n=new Map;for(const e of t){const{geometry:t}=e,{vertexSpace:a}=t;if((0,w.Hq)(a))s.push(t);else{const a=t.anchor,{convertMeshVertexSpace:o}=await Promise.all([r.e(3030),r.e(8846)]).then(r.bind(r,28846)),i=await o(t,new b.A({origin:[a.x,a.y,a.z??0]}));n.set(i,t),e.geometry=i,s.push(i)}}await this.uploadAssets(s);for(const[e,t]of n)t.addExternalSources(e.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(t),updates:[],deletes:[]}}_getAssetMapEditsJSON(e){const t=new Array,r=this.layer.globalIdField,a=this.layer.parsedUrl;for(const s of e){const e=s.geometry,{metadata:n}=e,o=n.getExternalSourcesOnService(a),i=s.getAttribute(r);if(0===o.length){c.A.getLogger(this).error(`Skipping feature ${i}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=o.find(F.dK)??o[0];for(const e of u)1===e.parts.length?t.push({globalId:(0,f.yS)(),parentGlobalId:i,assetName:e.assetName,assetHash:e.parts[0].partHash,flags:[]}):c.A.getLogger(this).error(`Skipping asset ${e.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return t}_createEditsResult(e){const t=e.data,{layerId:r}=this.layer,a=[];let s=null;if(Array.isArray(t))for(const e of t)a.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(s={addResults:e.addResults??[],updateResults:e.updateResults??[],deleteResults:e.deleteResults??[],attachments:e.attachments,editMoment:e.editMoment});else s=t;const n=function(e){const t=e?.assetMaps;if(t){for(const e of t.addResults)e.success||c.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${e.globalId}.`);for(const e of t.updateResults)e.success||c.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${e.globalId}.`)}const r=e?.attachments,a={addFeatureResults:e?.addResults?.map(T)??[],updateFeatureResults:e?.updateResults?.map(T)??[],deleteFeatureResults:e?.deleteResults?.map(T)??[],addAttachmentResults:r?.addResults?r.addResults.map(T):[],updateAttachmentResults:r?.updateResults?r.updateResults.map(T):[],deleteAttachmentResults:r?.deleteResults?r.deleteResults.map(T):[]};return e?.editMoment&&(a.editMoment=e.editMoment),a}(s);if(a.length>0){n.editedFeatureResults=[];for(const e of a){const{editedFeatures:t}=e,r=t?.spatialReference?new V.A(t.spatialReference):null;n.editedFeatureResults.push({layerId:e.id,editedFeatures:N(t,r)})}}return n}_createAttachmentErrorResult(e,t){const r=t.details.messages?.[0]||t.message,a=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new i.A("feature-layer-source:attachment-failure",r,{code:a})}}_getFormDataForAttachment(e,t){const r=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(r)for(const e in t){const a=t[e];null!=a&&(r.set?r.set(e,a):r.append(e,a))}return r}_getLayerRequestOptions(e={}){const{parsedUrl:t,gdbVersion:r,dynamicDataSource:a}=this.layer;return{...e,query:{gdbVersion:r,layer:a?JSON.stringify({source:a}):void 0,...t.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}async _areAllAssetsAlreadyMapped(e){const{layer:t}=this,{globalIdField:r,infoFor3D:a,parsedUrl:s}=t;if(null==a||null==r)return!1;const n=(0,P.JZ)(a);if(null==n)return!1;const i=(0,y.fj)(s.path,`../${n.id}`),u=new Array;for(const t of e){if(!(t.geometry.metadata.getExternalSourcesOnService(s).length>0))return!1;u.push(t)}const l=u.map((e=>e.getAttribute(r))).filter(o.Ru);if(0===l.length)return!1;const{assetMapFieldRoles:{parentGlobalId:d,assetHash:c}}=a,p=new J.A({where:`${d} IN (${l.map((e=>`'${e}'`))})`,outFields:[c,d],returnGeometry:!1}),h=await(0,D.s)(i,p),{features:f}=h;return 0!==f.length&&!u.some((e=>{const t=e.getAttribute(r);if(!t)return!0;const{metadata:a}=e.geometry,n=f.filter((e=>e.getAttribute(d)===t));if(0===n.length)return!0;const o=n.map((e=>e.getAttribute(c)));return a.getExternalSourcesOnService(s).flatMap((({source:e})=>e.flatMap((e=>e.parts.map((e=>e.partHash)))))).some((e=>o.every((t=>e!==t))))}))}};(0,a._)([(0,g.MZ)()],z.prototype,"type",void 0),(0,a._)([(0,g.MZ)({constructOnly:!0})],z.prototype,"layer",void 0),(0,a._)([(0,g.MZ)({constructOnly:!0})],z.prototype,"supportedSourceTypes",void 0),(0,a._)([(0,g.MZ)({readOnly:!0})],z.prototype,"queryTask",null),z=(0,a._)([(0,m.$)("esri.layers.graphics.sources.FeatureLayerSource")],z);const H=1e3,W=z},64714:(e,t,r)=>{r.d(t,{F0:()=>i,Vx:()=>d,e2:()=>p,f:()=>h});var a=r(44208),s=r(4718),n=r(99352),o=r(93470);function i(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function d(e,t){if((0,a.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this${c(t)} = null;`;for(const t in e)r+=`this${c(t)} = ${JSON.stringify(e[t])};`;const a=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new a}catch(r){return()=>({[t]:null,...e})}}function c(e){return u.test(e)?`.${e}`:`["${e}"]`}function p(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,s.o8)(e)}}]}function h(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,supportsAsyncConvert3D:!1},query:n.F,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,supportsAsyncApplyEdits:!1,zDefault:void 0}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1932],{35448:(e,t,r)=>{var n,o,i,a,s,l,d;r.d(t,{Eq:()=>n,bV:()=>i,nP:()=>s,r5:()=>o,ti:()=>l,vy:()=>d,wr:()=>a}),function(e){e[e.Regular=0]="Regular",e[e.Provenance=1]="Provenance",e[e.Document=2]="Document"}(n||(n={})),function(e){e[e.esriFieldTypeSmallInteger=0]="esriFieldTypeSmallInteger",e[e.esriFieldTypeInteger=1]="esriFieldTypeInteger",e[e.esriFieldTypeSingle=2]="esriFieldTypeSingle",e[e.esriFieldTypeDouble=3]="esriFieldTypeDouble",e[e.esriFieldTypeString=4]="esriFieldTypeString",e[e.esriFieldTypeDate=5]="esriFieldTypeDate",e[e.esriFieldTypeOID=6]="esriFieldTypeOID",e[e.esriFieldTypeGeometry=7]="esriFieldTypeGeometry",e[e.esriFieldTypeBlob=8]="esriFieldTypeBlob",e[e.esriFieldTypeRaster=9]="esriFieldTypeRaster",e[e.esriFieldTypeGUID=10]="esriFieldTypeGUID",e[e.esriFieldTypeGlobalID=11]="esriFieldTypeGlobalID",e[e.esriFieldTypeXML=12]="esriFieldTypeXML",e[e.esriFieldTypeBigInteger=13]="esriFieldTypeBigInteger",e[e.esriFieldTypeDateOnly=14]="esriFieldTypeDateOnly",e[e.esriFieldTypeTimeOnly=15]="esriFieldTypeTimeOnly",e[e.esriFieldTypeTimestampOffset=16]="esriFieldTypeTimestampOffset"}(o||(o={})),function(e){e[e.esriGeometryNull=0]="esriGeometryNull",e[e.esriGeometryPoint=1]="esriGeometryPoint",e[e.esriGeometryMultipoint=2]="esriGeometryMultipoint",e[e.esriGeometryPolyline=3]="esriGeometryPolyline",e[e.esriGeometryPolygon=4]="esriGeometryPolygon",e[e.esriGeometryEnvelope=5]="esriGeometryEnvelope",e[e.esriGeometryAny=6]="esriGeometryAny",e[e.esriGeometryMultiPatch=7]="esriGeometryMultiPatch"}(i||(i={})),function(e){e[e.esriMethodHintUNSPECIFIED=0]="esriMethodHintUNSPECIFIED",e[e.esriUUIDESRI=1]="esriUUIDESRI",e[e.esriUUIDRFC4122=2]="esriUUIDRFC4122"}(a||(a={})),function(e){e[e.esriTypeUNSPECIFIED=0]="esriTypeUNSPECIFIED",e[e.esriTypeEntity=1]="esriTypeEntity",e[e.esriTypeRelationship=2]="esriTypeRelationship",e[e.esriTypeBoth=4]="esriTypeBoth"}(s||(s={})),function(e){e[e.esriGraphPropertyUNSPECIFIED=0]="esriGraphPropertyUNSPECIFIED",e[e.esriGraphPropertyRegular=1]="esriGraphPropertyRegular",e[e.esriGraphPropertyDocumentName=2]="esriGraphPropertyDocumentName",e[e.esriGraphPropertyDocumentTitle=3]="esriGraphPropertyDocumentTitle",e[e.esriGraphPropertyDocumentUrl=4]="esriGraphPropertyDocumentUrl",e[e.esriGraphPropertyDocumentText=5]="esriGraphPropertyDocumentText",e[e.esriGraphPropertyDocumentKeywords=6]="esriGraphPropertyDocumentKeywords",e[e.esriGraphPropertyDocumentContentType=7]="esriGraphPropertyDocumentContentType",e[e.esriGraphPropertyDocumentMetadata=8]="esriGraphPropertyDocumentMetadata",e[e.esriGraphPropertyDocumentFileExtension=9]="esriGraphPropertyDocumentFileExtension"}(l||(l={})),function(e){e[e.esriIdentifierInfoTypeUNSPECIFIED=0]="esriIdentifierInfoTypeUNSPECIFIED",e[e.esriIdentifierInfoTypeDatabaseNative=1]="esriIdentifierInfoTypeDatabaseNative",e[e.esriIdentifierInfoTypeUniformProperty=2]="esriIdentifierInfoTypeUniformProperty"}(d||(d={}))},45724:(e,t,r)=>{r.d(t,{I:()=>l});var n=r(2741),o=r(44208);const i="esri/rest/knowledgeGraph/wasmInterface/";let a,s=null;async function l(){const e=s??a;if(e)return e;const t=(0,o.A)("wasm-simd");return a=d(t),a}async function d(e){if(e){const{default:e}=await r.e(5367).then(r.bind(r,15367)).then((e=>e.a));return e({locateFile:e=>(0,n.s)(i+e)})}const{default:t}=await r.e(9013).then(r.bind(r,29013)).then((e=>e.a));return t({locateFile:e=>(0,n.s)(i+e)})}},71932:(e,t,r)=>{r.r(t),r.d(t,{_fetchWrapper:()=>Fe,executeApplyEdits:()=>Ae,executeQuery:()=>be,executeQueryStreaming:()=>Se,executeSearch:()=>xe,executeSearchStreaming:()=>ke,fetchKnowledgeGraph:()=>Pe,kgRestServices:()=>Ge,refreshDataModel:()=>Oe,refreshServiceDefinition:()=>je}),r(59456);var n=r(70333),o=r(78888),i=r(49186),a=r(53966),s=r(90237),l=r(69622),d=r(10107),p=(r(44208),r(87811),r(40608));let u=class extends l.A{constructor(e){super(e),this.headerKeys=[],this.outSpatialReference=null,this.exceededTransferLimit=!1}};(0,s._)([(0,d.MZ)()],u.prototype,"headerKeys",void 0),(0,s._)([(0,d.MZ)()],u.prototype,"outSpatialReference",void 0),(0,s._)([(0,d.MZ)()],u.prototype,"exceededTransferLimit",void 0),u=(0,s._)([(0,p.$)("esri.rest.knowledgeGraph.GraphQueryResultHeader")],u);const c=u;let y=class extends l.A{constructor(e){super(e),this.resultRows=[],this.resultHeader=new c}};(0,s._)([(0,d.MZ)()],y.prototype,"resultRows",void 0),(0,s._)([(0,d.MZ)()],y.prototype,"resultHeader",void 0),y=(0,s._)([(0,p.$)("esri.rest.knowledgeGraph.GraphQueryResult")],y);const h=y;let f=class extends l.A{constructor(e){super(e),this.resultRowsStream=new ReadableStream,this.resultHeader=new c}};(0,s._)([(0,d.MZ)()],f.prototype,"resultRowsStream",void 0),(0,s._)([(0,d.MZ)()],f.prototype,"resultHeader",void 0),f=(0,s._)([(0,p.$)("esri.rest.knowledgeGraph.GraphQueryStreamingResult")],f);const _=f;var g=r(25482),w=r(16930);let m=class extends g.oY{constructor(e){super(e),this.name=null,this.unique=null,this.ascending=null,this.description=null,this.fieldNames=null}};(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"unique",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"ascending",void 0),(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],m.prototype,"description",void 0),(0,s._)([(0,d.MZ)({type:[String],json:{write:!0}})],m.prototype,"fieldNames",void 0),m=(0,s._)([(0,p.$)("esri.rest.knowledgeGraph.FieldIndex")],m);const v=m;let E=class extends g.oY{constructor(e){super(e),this.name=null,this.alias=null,this.fieldType=null,this.geometryType=null,this.hasM=null,this.hasZ=null,this.nullable=null,this.editable=null,this.required=null,this.defaultVisibility=null,this.systemMaintained=null,this.role=null,this.defaultValue=null}};(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],E.prototype,"name",void 0),(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],E.prototype,"alias",void 0),(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],E.prototype,"fieldType",void 0),(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],E.prototype,"geometryType",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"hasM",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"hasZ",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"nullable",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"editable",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"required",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"defaultVisibility",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"systemMaintained",void 0),(0,s._)([(0,d.MZ)()],E.prototype,"role",void 0),(0,s._)([(0,d.MZ)({json:{write:!0}})],E.prototype,"defaultValue",void 0),E=(0,s._)([(0,p.$)("esri.rest.knowledgeGraph.GraphProperty")],E);const T=E;let M=class extends g.oY{constructor(e){super(e),this.name=null,this.alias=null,this.role=null,this.strict=null,this.properties=null,this.fieldIndexes=null,this.type=null}};(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],M.prototype,"alias",void 0),(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],M.prototype,"role",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"strict",void 0),(0,s._)([(0,d.MZ)({type:[T],json:{write:!0}})],M.prototype,"properties",void 0),(0,s._)([(0,d.MZ)({type:[v],json:{write:!0}})],M.prototype,"fieldIndexes",void 0),M=(0,s._)([(0,p.$)("esri.rest.knowledgeGraph.GraphObjectType")],M);const I=M;let R=class extends I{constructor(e){super(e),this.type="entity"}};R=(0,s._)([(0,p.$)("esri.rest.knowledgeGraph.EntityType")],R);const G=R;let A=class extends I{constructor(e){super(e),this.endPoints=[],this.type="relationship"}};(0,s._)([(0,d.MZ)()],A.prototype,"endPoints",void 0),A=(0,s._)([(0,p.$)("esri.rest.knowledgeGraph.RelationshipType")],A);const b=A;let S=class extends g.oY{constructor(e){super(e),this.timestamp=null,this.spatialReference=null,this.strict=null,this.objectIdField=null,this.globalIdField=null,this.arcgisManaged=null,this.identifierInfo=null,this.searchIndexes=null,this.entityTypes=null,this.relationshipTypes=null,this.metaEntityTypes=null}};(0,s._)([(0,d.MZ)({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.timestamp=e?.getTime()}}}})],S.prototype,"timestamp",void 0),(0,s._)([(0,d.MZ)({type:w.A,json:{write:!0}})],S.prototype,"spatialReference",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"strict",void 0),(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],S.prototype,"objectIdField",void 0),(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],S.prototype,"globalIdField",void 0),(0,s._)([(0,d.MZ)()],S.prototype,"arcgisManaged",void 0),(0,s._)([(0,d.MZ)()],S.prototype,"identifierInfo",void 0),(0,s._)([(0,d.MZ)()],S.prototype,"searchIndexes",void 0),(0,s._)([(0,d.MZ)({type:[G],json:{write:!0}})],S.prototype,"entityTypes",void 0),(0,s._)([(0,d.MZ)({type:[b],json:{write:!0}})],S.prototype,"relationshipTypes",void 0),(0,s._)([(0,d.MZ)({type:[G],json:{write:!0}})],S.prototype,"metaEntityTypes",void 0),S=(0,s._)([(0,p.$)("esri.rest.knowledgeGraph.DataModel")],S);const x=S;let k=class extends g.oY{constructor(e){super(e),this.capabilities=[],this.supportsSearch=!1,this.supportedQueryFormats=[],this.allowGeometryUpdates=!1,this.searchMaxRecordCount=null,this.serviceCapabilities=null,this.maxRecordCount=null,this.description="",this.copyrightText="",this.units="",this.spatialReference=null,this.currentVersion=null,this.dateFieldsTimeReference=null,this.serviceItemId="",this.supportsDocuments=!1,this.dataEditingNotSupported=!1,this.schemaEditingNotSupported=!1,this.supportsProvenance=!1}};(0,s._)([(0,d.MZ)({type:[String],json:{write:!0}})],k.prototype,"capabilities",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],k.prototype,"supportsSearch",void 0),(0,s._)([(0,d.MZ)({type:[String],json:{write:!0}})],k.prototype,"supportedQueryFormats",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],k.prototype,"allowGeometryUpdates",void 0),(0,s._)([(0,d.MZ)({type:Number,json:{write:!0}})],k.prototype,"searchMaxRecordCount",void 0),(0,s._)([(0,d.MZ)({type:Object,json:{write:!0}})],k.prototype,"serviceCapabilities",void 0),(0,s._)([(0,d.MZ)({type:Number,json:{write:!0}})],k.prototype,"maxRecordCount",void 0),(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],k.prototype,"description",void 0),(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],k.prototype,"copyrightText",void 0),(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],k.prototype,"units",void 0),(0,s._)([(0,d.MZ)({type:w.A,json:{write:!0}})],k.prototype,"spatialReference",void 0),(0,s._)([(0,d.MZ)({type:Number,json:{write:!0}})],k.prototype,"currentVersion",void 0),(0,s._)([(0,d.MZ)({type:Object,json:{write:!0}})],k.prototype,"dateFieldsTimeReference",void 0),(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],k.prototype,"serviceItemId",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],k.prototype,"supportsDocuments",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],k.prototype,"dataEditingNotSupported",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],k.prototype,"schemaEditingNotSupported",void 0),(0,s._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],k.prototype,"supportsProvenance",void 0),k=(0,s._)([(0,p.$)("esri.rest.knowledgeGraph.ServiceDefinition")],k);const P=k;let O=class extends g.oY{constructor(e){super(e),this.dataModel=null,this.serviceDefinition=null}};(0,s._)([(0,d.MZ)({type:String,json:{write:!0}})],O.prototype,"url",void 0),(0,s._)([(0,d.MZ)({type:x,json:{write:!0}})],O.prototype,"dataModel",void 0),(0,s._)([(0,d.MZ)({type:P,json:{write:!0}})],O.prototype,"serviceDefinition",void 0),O=(0,s._)([(0,p.$)("esri.rest.knowledgeGraph.KnowledgeGraph")],O);const j=O;var F,Z,D,N=r(45724),L=r(48526),z=r(86738),C=r(39829),Y=r(82799);!function(e){e[e.OBJECT=0]="OBJECT",e[e.ENTITY=1]="ENTITY",e[e.RELATIONSHIP=2]="RELATIONSHIP",e[e.PATH=3]="PATH",e[e.ARRAY=4]="ARRAY"}(F||(F={})),function(e){e[e.view=0]="view",e[e.edit=1]="edit"}(Z||(Z={})),function(e){e[e.exclude=0]="exclude",e[e.include=1]="include"}(D||(D={}));var q=r(91075);function U(e,t){const r=new t.ArrayValue;return r.deleteLater(),e.forEach((e=>{r.add_value(B(e,t))})),r}function H(e,t){const r=new t.ObjectValue;r.deleteLater();for(const[n,o]of Object.entries(e))r.set_key_value(n,B(o,t));return r}function Q(e,t){if(e instanceof L.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.geometry_type=r.geometry_type=t.esriGeometryType.esriGeometryMultipoint,r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];o[0]=e.points.length;let i=0;return e.points.forEach((e=>{e.forEach((e=>{n[i]=e,i++}))})),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);if(e instanceof z.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.geometry_type=t.esriGeometryType.esriGeometryPoint,r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];o[0]=1,n[0]=e.x,n[1]=e.y;let i=2;return e.hasZ&&(n[i]=e.z,i++),e.hasM&&(n[i]=e.m,i++),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);if(e instanceof Y.A||e instanceof C.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];let i=[];e instanceof Y.A?(r.geometry_type=t.esriGeometryType.esriGeometryPolyline,i=e.paths):e instanceof C.A&&(r.geometry_type=t.esriGeometryType.esriGeometryPolygon,i=e.rings);let a=0,s=0;return i.forEach((e=>{let t=0;e.forEach((e=>{t++,e.forEach((e=>{n[s]=e,s++}))})),o[a]=t,a++})),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);throw new i.A("knowledge-graph:unsupported-geometry","Only Point, Multipoint, Polyline, and Polygon geometry are supported by ArcGIS Knowledge",{geometry:e})}function B(e,t){if(null==e)return"";if("object"!=typeof e)return e;if(e instanceof Date)return e;if(e instanceof q.A)return Q(e,t);if(Array.isArray(e)){const r=new t.ArrayValue;return r.deleteLater(),e.forEach((e=>{r.add_value(B(e,t))})),r}return H(e,t)}var V=r(25927),W=r(23150);function $(e,t){if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits");if(e instanceof V.A){const r=new t.EntityValue;r.deleteLater(),r.type_name=e.typeName;for(const[n,o]of Object.entries(e.properties))r.set_key_value(n,K(o,t));return e.id&&r.set_id(e.id),r}if(e instanceof W.A){const r=new t.RelationshipValue;r.deleteLater(),r.type_name=e.typeName;for(const[n,o]of Object.entries(e.properties))r.set_key_value(n,K(o,t));return e.id&&r.set_id(e.id),e.originId&&e.destinationId&&r.set_related_entity_ids(e.originId,e.destinationId),r}throw new i.A("knowledge-graph:applyEdits-encoding-failure","Could not determine the type of a named graph object passed to the encoder")}function K(e,t){return null==e?null:"object"!=typeof e||e instanceof Date?e:e instanceof q.A?Q(e,t):null}let J=class extends l.A{constructor(e){super(e),this.name=null,this.supportedCategory=null,this.analyzers=[],this.searchProperties=new Map}};(0,s._)([(0,d.MZ)()],J.prototype,"name",void 0),(0,s._)([(0,d.MZ)()],J.prototype,"supportedCategory",void 0),(0,s._)([(0,d.MZ)()],J.prototype,"analyzers",void 0),(0,s._)([(0,d.MZ)()],J.prototype,"searchProperties",void 0),J=(0,s._)([(0,p.$)("esri.rest.knowledgeGraph.SearchIndex")],J);const X=J;var ee=r(35448);function te(e){return e.deleteLater(),new G(ne(e))}function re(e){return e.deleteLater(),new v({name:e.name,unique:e.unique,ascending:e.ascending,description:e.description,fieldNames:se(e.fields)})}function ne(e){return{name:e.name,alias:e.alias,role:ee.Eq[e.role.value]?ee.Eq[e.role.value]:null,strict:e.strict,properties:le(e.properties),fieldIndexes:de(e.field_indexes)}}function oe(e){return e.deleteLater(),new T({alias:e.alias,name:e.name,fieldType:ee.r5[e.field_type.value]?ee.r5[e.field_type.value]:null,geometryType:ee.bV[e.geometry_type.value]?ee.bV[e.geometry_type.value]:null,hasM:e.has_m,hasZ:e.has_z,nullable:e.nullable,editable:e.editable,required:e.required,defaultVisibility:e.default_visibility,systemMaintained:e.system_maintained,role:ee.ti[e.role.value],defaultValue:e.default_value})}function ie(e){e.deleteLater();const t=ne(e),r=[];for(let t=0;t<e.end_points.size();t++){const n=e.end_points.get(t);r.push({originEntityType:n.origin_entity_type,destinationEntityType:n.dest_entity_type})}return e.end_points.delete(),new b(Object.assign({endPoints:r},t))}function ae(e){const t=[];for(let r=0;r<e.size();r++)t.push(te(e.get(r)));return e.delete(),t}function se(e){const t=[];for(let r=0;r<e.size();r++)t.push(e.get(r));return e.delete(),t}function le(e){const t=[];for(let r=0;r<e.size();r++)t.push(oe(e.get(r)));return e.delete(),t}function de(e){const t=[];for(let r=0;r<e.size();r++)t.push(re(e.get(r)));return e.delete(),t}function pe(e){const t=[];for(let r=0;r<e.size();r++)t.push(ie(e.get(r)));return e.delete(),t}function ue(e){const t=[];for(let r=0;r<e.size();r++){const r=new X,n=e.get(0);r.name=n.name,r.supportedCategory=ee.nP[n.supported_category.value];const o=n.analyzers.size();for(let e=0;e<o;e++)r.analyzers.push({name:n.analyzers.get(e).name});n.analyzers.delete();for(let e=0;e<n.search_properties.keys().size();e++){const t=n.search_properties.keys().get(e),o=n.search_properties.get(t),i=[];for(let e=0;e<o.property_names.size();e++)i.push(o.property_names.get(e));r.searchProperties.set(t,{propertyNames:i})}t.push(r)}return e.delete(),t}r(77901);var ce,ye=r(40662),he=r(42095);function fe(e,t){const r={spatialReference:t},n=_e(e,r),o=e.lengths,a=e.coords;let s="";if(e.geometry_type.value===ce.ESRI_GEOMETRY_POLYGON)s="rings";else{if(e.geometry_type.value!==ce.ESRI_GEOMETRY_POLYLINE)throw new i.A("KnowledgeGraph:illegal-geometry-type","Illegal Geometry type for multipath conversion");s="paths"}r[s]=[];let l=0;return o.forEach((e=>{const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e[t]=a[l],l++;t.push(e)}r[s].push(t)})),r}function _e(e,t){let r=2;return e.has_z?(t.hasZ=e.has_z,r++):t.hasZ=!1,e.has_m?(t.hasM=e.has_m,r++):t.hasM=!1,r}!function(e){e[e.ESRI_GEOMETRY_NULL=0]="ESRI_GEOMETRY_NULL",e[e.ESRI_GEOMETRY_POINT=1]="ESRI_GEOMETRY_POINT",e[e.ESRI_GEOMETRY_MULTIPOINT=2]="ESRI_GEOMETRY_MULTIPOINT",e[e.ESRI_GEOMETRY_POLYLINE=3]="ESRI_GEOMETRY_POLYLINE",e[e.ESRI_GEOMETRY_POLYGON=4]="ESRI_GEOMETRY_POLYGON",e[e.ESRI_GEOMETRY_ENVELOPE=5]="ESRI_GEOMETRY_ENVELOPE",e[e.ESRI_GEOMETRY_ANY=6]="ESRI_GEOMETRY_ANY",e[e.ESRI_GEOMETRY_MULTI_PATCH=7]="ESRI_GEOMETRY_MULTI_PATCH"}(ce||(ce={}));const ge=()=>a.A.getLogger("esri.rest.knowledgeGraph.WasmToQueryResponseObjConstructors"),we={decodedWasmObjToQueryResponseObj:(e,t,r)=>{if(null==e)return null;if("object"!=typeof e)return e;if("getDate"in e)return e;if("geometry_type"in e)switch(e.geometry_type.value){case null:return null;case ce.ESRI_GEOMETRY_POINT:return function(e,t){const r={spatialReference:t};let n=2;_e(e,r);const o=e.coords;return r.x=o[0],r.y=o[1],e.has_z&&(r.z=o[n],n++),e.has_m&&(r.m=o[n]),new z.A(r)}(e,r);case ce.ESRI_GEOMETRY_MULTIPOINT:return function(e,t){const r={spatialReference:t},n=_e(e,r),o=e.lengths,i=e.coords,a=o[0];r.points=[];let s=0;for(let e=0;e<a;e++){const e=[];for(let t=0;t<n;t++)e[t]=i[s],s++;r.points.push(e)}return new L.A(r)}(e,r);case ce.ESRI_GEOMETRY_POLYLINE:return function(e,t){return new Y.A(fe(e,t))}(e,r);case ce.ESRI_GEOMETRY_POLYGON:return function(e,t){return new C.A(fe(e,t))}(e,r);case ce.ESRI_GEOMETRY_ENVELOPE:case ce.ESRI_GEOMETRY_MULTI_PATCH:return ge().warnOnce("Envelope and Multipatch are not supported on knowledge entities, but one of those geometry types was detected. Result interpreted as null"),null;case ce.ESRI_GEOMETRY_NULL:case ce.ESRI_GEOMETRY_ANY:default:return ge().warnOnce("Unknown or blank geometry type returned - Result interpreted as null"),null}else{if(!("object_value_type"in e))return ge().warnOnce("A decoded value came back of a type that is not supported. Result interpreted as null"),null;switch(e.object_value_type.value){case F.OBJECT:return function(e,t,r){return new ye.A(Ee(e,t,r))}(e,t,r);case F.ENTITY:return ve(e,t,r);case F.RELATIONSHIP:return Te(e,t,r);case F.PATH:return function(e,t,r){const n=e.entity_count(),o=e.relationship_count(),i=[];for(let a=0;a<n;a++)i.push(ve(e.get_entity_at(a),t,r)),a<o&&i.push(Te(e.get_relationship_at(a),t,r));return new he.A({path:i})}(e,t,r);case F.ARRAY:return function(e,t,r){const n=[],o=e.count();for(let i=0;i<o;i++){const o=e.get_value_at(i);n.push(me(o,t,r))}return n}(e,t,r);default:return ge().warnOnce("Unknown graph object type detected! Result interpreted as null"),null}}}};function me(e,t,r){return we.decodedWasmObjToQueryResponseObj(e,t,r)}function ve(e,t,r){const n=e.type_name,o=Ee(e,t,r),i=e.get_id();return new V.A(Object.assign({typeName:n,id:i},o))}function Ee(e,t,r){const n={},o=e.key_count();for(let i=0;i<o;i++)n[e.get_key_at(i)]=me(e.get_value_at(i),t,r);return{properties:n}}function Te(e,t,r){const n=e.type_name,o=Ee(e,t,r);return new W.A(Object.assign({typeName:n,id:e.get_id(),originId:e.get_origin_entity_id(),destinationId:e.get_destination_entity_id()},o))}function Me(e){const t=[];for(let r=0;r<e.get_header_keys().size();r++)t.push(e.get_header_keys().get(r));const r=new w.A(e.get_out_sr());return new c({headerKeys:t,outSpatialReference:r,exceededTransferLimit:e.exceeded_transfer_limit()})}let Ie=class extends l.A{constructor(e){super(e),this.hasError=null,this.error=null,this.editResults=[]}};(0,s._)([(0,d.MZ)()],Ie.prototype,"hasError",void 0),(0,s._)([(0,d.MZ)()],Ie.prototype,"error",void 0),(0,s._)([(0,d.MZ)()],Ie.prototype,"editResults",void 0),Ie=(0,s._)([(0,p.$)("esri.rest.knowledgeGraph.GraphApplyEditsResult")],Ie);const Re=Ie,Ge={fetchKnowledgeGraph:async e=>{const t=new j({url:e}),r=[];return r.push(Oe(t)),r.push(je(t)),await Promise.all(r),t},refreshDataModel:async e=>{e.dataModel=await Ye(e)},refreshServiceDefinition:async e=>{const t=(await(0,o.A)(e.url,{query:{f:"json"}})).data;return t.capabilities=t?.capabilities?.split(","),t.supportedQueryFormats=t?.supportedQueryFormats?.split(","),e.serviceDefinition=new P(t),e.serviceDefinition},executeQueryStreaming:async(e,t,r)=>{const n=`${e.url}/graph/query`;await Ze(e);const o=await Le(n,r);if(!e.serviceDefinition?.supportsProvenance&&"include"===t.provenanceBehavior)throw new i.A("knowledge-graph:provenance-not-supported","The Knowledge Graph Service definition indicated that provenance is not supported");o.data.body=await async function(e,t){const r=await(0,N.I)(),n=new r.GraphQueryRequestEncoder;if(n.deleteLater(),e.outputSpatialReference?n.output_spatial_reference={wkid:e.outputSpatialReference.wkid,latestWkid:e.outputSpatialReference.latestWkid,vcsWkid:e.outputSpatialReference.vcsWkid,latestVcsWkid:e.outputSpatialReference.latestVcsWkid,wkt:e.outputSpatialReference.wkt??""}:n.output_spatial_reference=r.SpatialReferenceUtil.WGS84(),n.open_cypher_query=e.openCypherQuery,e.bindParameters)for(const[t,o]of Object.entries(e.bindParameters))Ne(t,o,n,r);if(e.bindGeometryQuantizationParameters)!function(e,t){t.input_quantization_parameters={xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}(e.bindGeometryQuantizationParameters,n);else{if(t.dataModel||await Oe(t),4326!==t.dataModel?.spatialReference?.wkid)throw new i.A("knowledge-graph:SR-quantization-mismatch","If the DataModel indicates a coordinate system other than WGS84, inputQuantizationParameters must be provided to the query encoder");n.input_quantization_parameters=r.InputQuantizationUtil.WGS84_lossless()}e.outputQuantizationParameters&&function(e,t,r){if(!e.extent)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization provided to the encoder had an illegal value as part of its extent",e.extent);if(!e.quantizeMode)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization contained an illegal mode setting",e.quantizeMode);if(!e.tolerance)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization contained an illegal tolerance setting",e.quantizeMode);t.output_quantization_parameters={extent:{xmax:e.extent.xmax,ymax:e.extent.ymax,xmin:e.extent.xmin,ymin:e.extent.ymin},quantize_mode:r.esriQuantizeMode[e.quantizeMode],tolerance:e.tolerance}}(e.outputQuantizationParameters,n,r),e.provenanceBehavior&&function(e,t){t.provenance_behavior={value:D[e]}}(e.provenanceBehavior,n);try{n.encode()}catch(e){throw new i.A("knowledge-graph:query-encoding-failed","Attempting to encode the query failed",{error:e})}const o=n.get_encoding_result();if(0!==o.error.error_code)throw new i.A("knowledge-graph:query-encoding-failed","Attempting to encode the query failed",{errorCode:o.error.error_code,errorMessage:o.error.error_message});return structuredClone(o.get_byte_buffer())}(t,e);const a=await Fe(o.data.url,o.data);if(e.dataModel){const t=await Ce(a,e.dataModel);return new _({resultRowsStream:t.readableStream,resultHeader:t.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")},executeApplyEdits:async(e,t,r)=>{if(e.serviceDefinition?.dataEditingNotSupported)throw new i.A("knowledge-graph:data-editing-not-supported","The Knowledge Graph Service definition indicated that data editing is not supported");const n=`${e.url}/graph/applyEdits`;await Ze(e);const o=await Le(n,r);return o.data.body=await async function(e,t){if(t.dataModel||await Oe(t),!t.dataModel)throw new i.A("knowledge-graph:data-model-undefined","Encoding could not proceed because a data model was not provided and it could not be determined from the service");const r=await(0,N.I)(),n=!!e.options?.cascadeDelete,o=new r.GraphApplyEditsEncoder(r.SpatialReferenceUtil.WGS84(),e.options?.inputQuantizationParameters?function(e){return{xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}(e.options?.inputQuantizationParameters):r.InputQuantizationUtil.WGS84_lossless());o.deleteLater(),o.cascade_delete=n;try{let t;e.entityAdds?.forEach((e=>{t=o.add_entity($(e,r)),De(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - an entity failed to be added to the encoder")})),e.relationshipAdds?.forEach((e=>{if(!e.originId||!e.destinationId)throw new i.A("knowledge-graph:relationship-origin-destination-missing","When adding a new relationship, you must provide both an origin and destination id on the appropriate class property");t=o.add_relationship($(e,r)),De(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - a relationship failed to be added to the encoder")})),e.entityUpdates?.forEach((e=>{if(!e.id)throw new i.A("knowledge-graph:entity-id-missing","When updating an entity or relationship, you must specify the id on the class level property");t=o.update_entity($(e,r)),De(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - an entity failed to be added to the encoder")})),e.relationshipUpdates?.forEach((e=>{if(!e.id)throw new i.A("knowledge-graph:relationship-id-missing","When updating an entity or relationship, you must specify the id on the class level property");t=o.update_relationship($(e,r)),De(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - a relationship failed to be added to the encoder")})),e.entityDeletes?.forEach((e=>{if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits - delete");const t=o.make_delete_helper(e.typeName,!0);t.deleteLater(),e.ids?.forEach((e=>{t.delete_by_id(e)}))})),e.relationshipDeletes?.forEach((e=>{if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits - delete");const t=o.make_delete_helper(e.typeName,!1);e.ids?.forEach((e=>{t.delete_by_id(e)}))})),o.encode()}catch(e){throw new i.A("knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits failed",{error:e})}const a=o.get_encoding_result();return De(a.error,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits failed"),structuredClone(a.get_byte_buffer())}(t,e),async function(e){const t=e.headers.get("content-type");if(t?.includes("application/x-protobuf")){const t=await e.arrayBuffer(),r=new((await(0,N.I)()).GraphApplyEditsDecoder);return r.deleteLater(),r.decode(new Uint8Array(t)),function(e){const t=e.has_error(),r=new Re({hasError:t,error:t?{errorCode:e.error.error_code,errorMessage:e.error.error_message}:null}),n=e.get_edit_results_count();for(let t=0;t<n;t++){const n=e.get_edit_results_at(t),o=e.get_edit_results_type_name_at(t),i=[],a=[],s=[],l=n.get_add_results_count(),d=n.get_update_results_count(),p=n.get_delete_results_count();for(let e=0;e<l;e++){const t=n.get_add_result_at(e);i.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}for(let e=0;e<d;e++){const t=n.get_update_result_at(e);a.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}for(let e=0;e<p;e++){const t=n.get_delete_result_at(e);s.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}r.editResults.push({typeName:o,adds:i,updates:a,deletes:s})}return r}(r)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:t,data:e.text()})}(await Fe(o.data.url,o.data))},executeQuery:async(e,t,r)=>{const n=`${e.url}/graph/query`,a=await(0,o.A)(n,{responseType:"array-buffer",query:{f:"pbf",openCypherQuery:t.openCypherQuery,...r?.query},signal:r?.signal,timeout:r?.timeout}),s=a.getHeader?.("content-type"),l=a.data;if(s?.includes("application/x-protobuf")){const t=new((await(0,N.I)()).GraphQueryDecoder);if(t.deleteLater(),e.dataModel){const r=ze(t,l,e.dataModel);return new h({resultRows:r.resultRows,resultHeader:r.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:s,data:a.data})},executeSearch:async(e,t,r)=>{const n=t.typeCategoryFilter,a=`${e.url}/graph/search`,s=await(0,o.A)(a,{responseType:"array-buffer",query:{f:"pbf",searchQuery:`"${t.searchQuery}"`,typeCategoryFilter:n,...r?.query},signal:r?.signal,timeout:r?.timeout}),l=s.getHeader?.("content-type"),d=s.data;if(l?.includes("application/x-protobuf")){const t=new((await(0,N.I)()).GraphQueryDecoder);if(t.deleteLater(),e.dataModel){const r=ze(t,d,e.dataModel);return new h({resultRows:r.resultRows,resultHeader:r.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:l,data:s.data})},executeSearchStreaming:async(e,t,r)=>{const n=`${e.url}/graph/search`;await Ze(e);const o=await Le(n,r);o.data.body=await async function(e){const t=await(0,N.I)(),r=new t.GraphSearchRequestEncoder;if(r.deleteLater(),r.search_query=e.searchQuery,r.type_category_filter=t.esriNamedTypeCategory[e.typeCategoryFilter],!0===e.returnSearchContext&&(r.return_search_context=e.returnSearchContext),null!=e.start&&e.start>0&&(r.start_index=e.start),null!=e.num&&(r.max_num_results=e.num),null!=e.idsFilter&&Array.isArray(e.idsFilter)&&e.idsFilter.length>0)try{r.set_ids_filter(U(e.idsFilter,t))}catch(e){throw new i.A("knowledge-graph:ids-format-error","Attempting to set ids filter failed. This is usually caused by an incorrectly formatted UUID string",{error:e})}e.namedTypesFilter?.forEach((e=>{r.add_named_type_filter(e)}));try{r.encode()}catch(e){throw new i.A("knowledge-graph:search-encoding-failed","Attempting to encode the search failed",{error:e})}const n=r.get_encoding_result();if(0!==n.error.error_code)throw new i.A("knowledge-graph:search-encoding-failed","Attempting to get encoding result from the query failed",{errorCode:n.error.error_code,errorMessage:n.error.error_message});return structuredClone(n.get_byte_buffer())}(t);const a=await Fe(o.data.url,o.data);if(e.dataModel){const t=await Ce(a,e.dataModel);return new _({resultRowsStream:t.readableStream,resultHeader:t.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")},_fetchWrapper:async(e,t)=>fetch(e,t)};async function Ae(e,t,r){return Ge.executeApplyEdits(e,t,r)}async function be(e,t,r){return Ge.executeQuery(e,t,r)}async function Se(e,t,r){return Ge.executeQueryStreaming(e,t,r)}async function xe(e,t,r){return Ge.executeSearch(e,t,r)}async function ke(e,t,r){return Ge.executeSearchStreaming(e,t,r)}async function Pe(e){return Ge.fetchKnowledgeGraph(e)}async function Oe(e){return Ge.refreshDataModel(e)}async function je(e){return Ge.refreshServiceDefinition(e)}async function Fe(e,t){return Ge._fetchWrapper(e,t)}async function Ze(e){const t=n.id?.findCredential(e.url);t||(e.dataModel?await Ye(e):await Oe(e))}function De(e,t,r){if(0!==e.error_code)throw new i.A(t,r,{errorCode:e.error_code,errorMessage:e.error_message})}function Ne(e,t,r,n){null==t?r.set_param_key_value(e,""):"object"!=typeof t||t instanceof Date?r.set_param_key_value(e,t):t instanceof q.A?r.set_param_key_value(e,Q(t,n)):Array.isArray(t)?r.set_param_key_value(e,U(t,n)):r.set_param_key_value(e,H(t,n))}async function Le(e,t){return(0,o.A)(e,{responseType:"native-request-init",method:"post",query:{f:"pbf",...t?.query},body:"x",headers:{"Content-Type":"application/octet-stream"},signal:t?.signal,timeout:t?.timeout})}function ze(e,t,r,n){e.push_buffer(new Uint8Array(t));const o=[];let a,s,l=0;for(;e.next_row();){a&&s||(a=n??Me(e),s=a.outSpatialReference??new w.A({wkid:4326})),l||(l=e.get_header_keys().size());const t=new Array(l);for(let n=0;n<l;n++){const o=e.get_value(n);t[n]=me(o,r,s)}o.push(t)}if(e.has_error())throw new i.A("knowledge-graph:stream-decoding-error","One or more result rows were not successfully decoded - inner row decoding",{errorCode:e.error.error_code,errorMessage:e.error.error_message});return{resultHeader:a,resultRows:o}}async function Ce(e,t){const r=e.headers.get("content-type");if(e.headers.get("content-length")&&a.A.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").warnOnce("Found `Content-Length` header when expecting a streaming HTTP response! Please investigate whether all intermediate HTTP proxies and/or load balancers are configured such that they don't forcefully buffer the entire response before returning it to the client. A valid HTTP streaming response should use Chunked Transfer Encoding and not have a Content Length defined."),r?.includes("application/x-protobuf")){const r=e.body?.getReader(),n=new((await(0,N.I)()).GraphQueryDecoder);let o,s,l;n.deleteLater();const d=new Promise(((e,t)=>{s=e,l=t}));let p=!1;return{readableStream:new ReadableStream({async start(e){try{return function d(){return r?.read().then((({done:u,value:y})=>{try{if(u){let t;if(n.has_error()?t=new i.A("knowledge-graph:stream-decoding-error","One or more result rows were not successfully decoded - query stream done",{errorCode:n.error.error_code,errorMessage:n.error.error_message}):p||s(new c),r.releaseLock(),t)throw e.error(t),l(t),t;return void e.close()}const a=ze(n,y,t,o),h=a.resultRows;return h.length>0&&e.enqueue(h),!o&&a.resultHeader&&(o=a.resultHeader,s(a.resultHeader),p=!0),d()}catch(e){throw a.A.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").error(e),l(e),new i.A("knowledge-graph:unexpected-server-response","Error inside streaming data return parsing",{error:e})}}))}()}catch(t){r?.releaseLock(),e.error(new i.A("knowledge-graph:stream-decoding-error","The server returned a valid response, but there was an error decoding the response stream",{error:t})),e.close()}}}),resultHeader:await d}}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:r,data:e.text()})}async function Ye(e){const t=`${e.url}/dataModel/queryDataModel`,r=await(0,o.A)(t,{responseType:"array-buffer",query:{f:"pbf"}}),n=r.getHeader?.("content-type"),a=r.data;if(n?.includes("application/x-protobuf")){const e=(await(0,N.I)()).decode_data_model_from_protocol_buffer(new Uint8Array(a));if(!e)throw new i.A("knowledge-graph:data-model-decode-failure","The server responded to the data model query, but the response failed to be decoded. This typically occurs when the Knowledge JS API (4.26 or later) is used with an unsupported backend (11.0 or earlier)");return function(e){return e.deleteLater(),new x({timestamp:e.timestamp,spatialReference:new w.A(e.spatial_reference),strict:e.strict,objectIdField:e.objectid_property,globalIdField:e.globalid_property,arcgisManaged:e.arcgis_managed,identifierInfo:{identifierMappingInfo:{identifierInfoType:ee.vy[e.identifier_info?.identifier_mapping_info?.identifier_info_type?.value],databaseNativeIdentifier:e.identifier_info?.identifier_mapping_info?.database_native_identifier,uniformPropertyIdentifier:{identifierPropertyName:e.identifier_info?.identifier_mapping_info?.uniform_property_identifier?.identifier_property_name}},identifierGenerationInfo:{uuidMethodHint:ee.wr[e.identifier_info?.identifier_generation_info?.uuid_method_hint?.value]}},searchIndexes:ue(e.search_indexes),entityTypes:ae(e.entity_types),relationshipTypes:pe(e.relationship_types),metaEntityTypes:ae(e.meta_entity_types)})}(e)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:n,data:r.data})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[620],{4206:(e,t,i)=>{i.d(t,{A:()=>Ce});var r,o=i(90237),s=i(25482),n=i(4718),l=i(3483),p=i(10107),a=i(79901),d=i(36005),u=i(40608),c=i(43937);i(44208),i(53966),i(87811);let y=r=class extends s.oY{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new r({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],y.prototype,"expression",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,o._)([(0,p.MZ)({type:["boolean","date","number","string"],json:{write:!0}})],y.prototype,"returnType",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),y=r=(0,o._)([(0,u.$)("esri.form.ExpressionInfo")],y);const h=y;let m=class extends s.oY{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"description",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"label",void 0),(0,o._)([(0,p.MZ)()],m.prototype,"type",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"visibilityExpression",void 0),m=(0,o._)([(0,u.$)("esri.form.elements.Element")],m);const f=m;var v,g=i(56507);let w=v=class extends s.oY{constructor(e){super(e),this.type=null}clone(){return new v({type:this.type})}};(0,o._)([(0,p.MZ)({type:["attachment","audio","document","image","signature","video"],json:{write:!0}})],w.prototype,"type",void 0),w=v=(0,o._)([(0,u.$)("esri.form.elements.inputs.AttachmentInput")],w);const M=w;var _;let x=_=class extends f{constructor(e){super(e),this.attachmentKeyword=null,this.editableExpression=null,this.input=null,this.type="attachment"}clone(){return new _({attachmentKeyword:this.attachmentKeyword,description:this.description,editableExpression:this.editableExpression,input:this.input,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"attachmentKeyword",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"editableExpression",void 0),(0,o._)([(0,p.MZ)({type:M,json:{read:{source:"inputType"},write:{target:"inputType"}}})],x.prototype,"input",void 0),(0,o._)([(0,p.MZ)({type:["attachment"],json:{read:!1,write:!0}})],x.prototype,"type",void 0),x=_=(0,o._)([(0,u.$)("esri.form.elements.AttachmentElement")],x);const b=x;let Z=class extends s.oY{constructor(e){super(e),this.type=null}};(0,o._)([(0,p.MZ)()],Z.prototype,"type",void 0),Z=(0,o._)([(0,u.$)("esri.form.elements.inputs.Input")],Z);const S=Z;let j=class extends S{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,o._)([(0,p.MZ)({type:Number,json:{write:!0}})],j.prototype,"maxLength",void 0),(0,o._)([(0,p.MZ)({type:Number,json:{write:!0}})],j.prototype,"minLength",void 0),j=(0,o._)([(0,u.$)("esri.form.elements.inputs.TextInput")],j);const F=j;var I;let E=I=class extends F{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new I({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,p.MZ)({type:["barcode-scanner"],json:{read:!1,write:!0}})],E.prototype,"type",void 0),E=I=(0,o._)([(0,u.$)("esri.form.elements.inputs.BarcodeScannerInput")],E);const O=E;var T;let R=T=class extends S{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new T({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],R.prototype,"noValueOptionLabel",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],R.prototype,"showNoValueOption",void 0),(0,o._)([(0,p.MZ)({type:["combo-box"],json:{read:!1,write:!0}})],R.prototype,"type",void 0),R=T=(0,o._)([(0,u.$)("esri.form.elements.inputs.ComboBoxInput")],R);const k=R;var V;function U(e){return null!=e?e:null}function A(e){return null!=e?e:null}let D=V=class extends S{constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return U(t.max)}writeMax(e,t){t.max=A(e)}readMin(e,t){return U(t.min)}writeMin(e,t){t.min=A(e)}clone(){return new V({max:this.max,min:this.min})}};(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],D.prototype,"max",void 0),(0,o._)([(0,d.w)("max")],D.prototype,"readMax",null),(0,o._)([(0,c.K)("max")],D.prototype,"writeMax",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],D.prototype,"min",void 0),(0,o._)([(0,d.w)("min")],D.prototype,"readMin",null),(0,o._)([(0,c.K)("min")],D.prototype,"writeMin",null),(0,o._)([(0,p.MZ)({type:["date-picker"],json:{read:!1,write:!0}})],D.prototype,"type",void 0),D=V=(0,o._)([(0,u.$)("esri.form.elements.inputs.DatePickerInput")],D);const L=D;var B;function N(e){return null!=e?e:null}function C(e){return null!=e?e:null}let $=B=class extends S{constructor(e){super(e),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="datetimeoffset-picker"}readMax(e,t){return N(t.max)}writeMax(e,t){t.max=C(e)}readMin(e,t){return N(t.min)}writeMin(e,t){t.min=C(e)}readTimeResolution(e,t){return N(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=C(e)}clone(){return new B({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],$.prototype,"includeTimeOffset",void 0),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],$.prototype,"max",void 0),(0,o._)([(0,d.w)("max")],$.prototype,"readMax",null),(0,o._)([(0,c.K)("max")],$.prototype,"writeMax",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],$.prototype,"min",void 0),(0,o._)([(0,d.w)("min")],$.prototype,"readMin",null),(0,o._)([(0,c.K)("min")],$.prototype,"writeMin",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],$.prototype,"timeResolution",void 0),(0,o._)([(0,d.w)("timeResolution")],$.prototype,"readTimeResolution",null),(0,o._)([(0,c.K)("timeResolution")],$.prototype,"writeTimeResolution",null),(0,o._)([(0,p.MZ)({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],$.prototype,"type",void 0),$=B=(0,o._)([(0,u.$)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],$);const H=$;var G;function K(e){return null!=e?new Date(e):null}function W(e){return e?e.getTime():null}let P=G=class extends S{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return K(t.max)}writeMax(e,t){t.max=W(e)}readMin(e,t){return K(t.min)}writeMin(e,t){t.min=W(e)}clone(){return new G({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],P.prototype,"includeTime",void 0),(0,o._)([(0,p.MZ)({type:Date,json:{type:Number,write:!0}})],P.prototype,"max",void 0),(0,o._)([(0,d.w)("max")],P.prototype,"readMax",null),(0,o._)([(0,c.K)("max")],P.prototype,"writeMax",null),(0,o._)([(0,p.MZ)({type:Date,json:{type:Number,write:!0}})],P.prototype,"min",void 0),(0,o._)([(0,d.w)("min")],P.prototype,"readMin",null),(0,o._)([(0,c.K)("min")],P.prototype,"writeMin",null),(0,o._)([(0,p.MZ)({type:["datetime-picker"],json:{read:!1,write:!0}})],P.prototype,"type",void 0),P=G=(0,o._)([(0,u.$)("esri.form.elements.inputs.DateTimePickerInput")],P);const Q=P;var q;let Y=q=class extends S{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new q({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],Y.prototype,"noValueOptionLabel",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],Y.prototype,"showNoValueOption",void 0),(0,o._)([(0,p.MZ)({type:["radio-buttons"],json:{read:!1,write:!0}})],Y.prototype,"type",void 0),Y=q=(0,o._)([(0,u.$)("esri.form.elements.inputs.RadioButtonsInput")],Y);const J=Y;var z;let X=z=class extends S{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new z({offValue:this.offValue,onValue:this.onValue})}};(0,o._)([(0,p.MZ)({type:[String,Number],json:{write:!0}})],X.prototype,"offValue",void 0),(0,o._)([(0,p.MZ)({type:[String,Number],json:{write:!0}})],X.prototype,"onValue",void 0),(0,o._)([(0,p.MZ)({type:["switch"],json:{read:!1,write:!0}})],X.prototype,"type",void 0),X=z=(0,o._)([(0,u.$)("esri.form.elements.inputs.SwitchInput")],X);const ee=X;var te;let ie=te=class extends F{constructor(e){super(e),this.type="text-area"}clone(){return new te({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,p.MZ)({type:["text-area"],json:{read:!1,write:!0}})],ie.prototype,"type",void 0),ie=te=(0,o._)([(0,u.$)("esri.form.elements.inputs.TextAreaInput")],ie);const re=ie;var oe;let se=oe=class extends F{constructor(e){super(e),this.type="text-box"}clone(){return new oe({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,p.MZ)({type:["text-box"],json:{read:!1,write:!0}})],se.prototype,"type",void 0),se=oe=(0,o._)([(0,u.$)("esri.form.elements.inputs.TextBoxInput")],se);const ne=se;var le;function pe(e){return null!=e?e:null}function ae(e){return null!=e?e:null}let de=le=class extends S{constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return pe(t.max)}writeMax(e,t){t.max=ae(e)}readMin(e,t){return pe(t.min)}writeMin(e,t){t.min=ae(e)}readTimeResolution(e,t){return pe(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=ae(e)}clone(){return new le({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],de.prototype,"max",void 0),(0,o._)([(0,d.w)("max")],de.prototype,"readMax",null),(0,o._)([(0,c.K)("max")],de.prototype,"writeMax",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],de.prototype,"min",void 0),(0,o._)([(0,d.w)("min")],de.prototype,"readMin",null),(0,o._)([(0,c.K)("min")],de.prototype,"writeMin",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],de.prototype,"timeResolution",void 0),(0,o._)([(0,d.w)("timeResolution")],de.prototype,"readTimeResolution",null),(0,o._)([(0,c.K)("timeResolution")],de.prototype,"writeTimeResolution",null),(0,o._)([(0,p.MZ)({type:["time-picker"],json:{read:!1,write:!0}})],de.prototype,"type",void 0),de=le=(0,o._)([(0,u.$)("esri.form.elements.inputs.TimePickerInput")],de);const ue={base:S,key:"type",typeMap:{"barcode-scanner":O,"combo-box":k,"date-picker":L,"datetime-picker":Q,"datetimeoffset-picker":H,"radio-buttons":J,switch:ee,"text-area":re,"text-box":ne,"time-picker":de}};var ce,ye=i(72088);let he=ce=class extends f{constructor(e){super(e),this.domain=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}get editable(){return this._get("editable")??!0}set editable(e){this._set("editable",e)}clone(){return new ce({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({types:ye.gK,json:{read:{reader:ye.rS},write:!0}})],he.prototype,"domain",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],he.prototype,"editable",null),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"editableExpression",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"fieldName",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"hint",void 0),(0,o._)([(0,p.MZ)({types:ue,json:{read:{source:"inputType"},write:{target:"inputType"}}})],he.prototype,"input",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"requiredExpression",void 0),(0,o._)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],he.prototype,"type",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"valueExpression",void 0),he=ce=(0,o._)([(0,u.$)("esri.form.elements.FieldElement")],he);const me=he;var fe,ve=i(49852);let ge=fe=class extends f{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editableExpression=null,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new fe({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,n.o8)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({type:Number,json:{write:!0}})],ge.prototype,"displayCount",void 0),(0,o._)([(0,p.MZ)({type:["list"],json:{write:!0}})],ge.prototype,"displayType",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],ge.prototype,"editableExpression",void 0),(0,o._)([(0,p.MZ)({type:[ve.A],json:{write:!0}})],ge.prototype,"orderByFields",void 0),(0,o._)([(0,p.MZ)({type:Number,json:{write:!0}})],ge.prototype,"relationshipId",void 0),(0,o._)([(0,p.MZ)({type:["relationship"],json:{read:!1,write:!0}})],ge.prototype,"type",void 0),ge=fe=(0,o._)([(0,u.$)("esri.form.elements.RelationshipElement")],ge);const we=ge;var Me;let _e=Me=class extends f{constructor(e){super(e),this.text=null,this.textFormat="plain-text",this.type="text"}clone(){return new Me({text:this.text,textFormat:this.textFormat,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],_e.prototype,"text",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],_e.prototype,"textFormat",void 0),(0,o._)([(0,p.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],_e.prototype,"type",void 0),_e=Me=(0,o._)([(0,u.$)("esri.form.elements.TextElement")],_e);const xe=_e;function be(e){return{typesWithGroup:{base:f,key:"type",typeMap:{attachment:b,field:me,group:e,relationship:we,text:xe}},typesWithoutGroup:{base:f,key:"type",typeMap:{attachment:b,field:me,relationship:we,text:xe}}}}function Ze(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>r[e.type])).map((e=>r[e.type].fromJSON(e)))}function Se(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>r[e.type])).map((e=>e.toJSON()))}function je(e,t,i=!0){return e?e.map((e=>(0,g.aq)(i?t.typesWithGroup:t.typesWithoutGroup,e))):null}var Fe;let Ie=Fe=class extends f{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return je(e,Ee,!1)}readElements(e,t){return Ze(t.formElements,Ee,!1)}writeElements(e,t){t.formElements=Se(e,Ee,!1)}clone(){return new Fe({description:this.description,elements:(0,n.o8)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({json:{write:!0}})],Ie.prototype,"elements",void 0),(0,o._)([(0,a.w)("elements")],Ie.prototype,"castElements",null),(0,o._)([(0,d.w)("elements",["formElements"])],Ie.prototype,"readElements",null),(0,o._)([(0,c.K)("elements")],Ie.prototype,"writeElements",null),(0,o._)([(0,p.MZ)({type:["collapsed","expanded"],json:{write:!0}})],Ie.prototype,"initialState",void 0),(0,o._)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],Ie.prototype,"type",void 0),Ie=Fe=(0,o._)([(0,u.$)("esri.form.elements.GroupElement")],Ie);const Ee=be(Ie),Oe=Ie,Te=e=>"field"===e.type,Re=e=>"group"===e.type,ke=e=>"text"===e.type;var Ve,Ue=i(30524);const Ae=be(Oe);let De=Ve=class extends s.oY{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(e){return je(e,Ae)}readElements(e,t){return Ze(t.formElements,Ae)}writeElements(e,t){t.formElements=Se(e,Ae)}clone(){return new Ve({description:this.description,expressionInfos:(0,n.o8)(this.expressionInfos),elements:(0,n.o8)(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})}async getFieldsUsed(e,t){const i=new Set,{description:r,elements:o,expressionInfos:s,title:n}=this;if(Ne(i,e,r),Ne(i,e,n),!o)return[];const l=function(e,t){if(!t||0===t.length)return[];const i=Be(e),r=[];for(const e of t)i.has(e.name)&&r.push(e.expression);return r}(o,s).map((t=>(0,Ue.Dx)(i,e,t)));await Promise.all(l);for(const r of o)Le(i,{fieldsIndex:e,relationships:t},r);return Array.from(i).sort()}};function Le(e,t,i){const{fieldsIndex:r}=t;if(!r||r.fields.length!==e.size)switch(Ne(e,r,i.label),Ne(e,r,i.description),i.type){case"field":(0,Ue.rq)(e,r,i.fieldName);break;case"group":i.elements.forEach((i=>Le(e,t,i)));break;case"relationship":if(t.relationships){const o=t.relationships.find((e=>e.id===i.relationshipId));o&&(0,Ue.rq)(e,r,o.keyField)}(0,Ue._w)(e,r,i.orderByFields?.map((e=>e.field)));break;case"text":Ne(e,r,i.text)}}function Be(e){const t=new Set;for(const i of e)if((0,l.kb)(t,i.visibilityExpression),!ke(i))if(Re(i))(0,l.FB)(t,Be(i.elements));else if((0,l.kb)(t,i.editableExpression),Te(i)){const{requiredExpression:e,valueExpression:r}=i;(0,l.FB)(t,[e,r])}return t}function Ne(e,t,i){(0,Ue._w)(e,t,(0,Ue.nw)(i))}(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],De.prototype,"description",void 0),(0,o._)([(0,p.MZ)({json:{write:!0}})],De.prototype,"elements",void 0),(0,o._)([(0,a.w)("elements")],De.prototype,"castElements",null),(0,o._)([(0,d.w)("elements",["formElements"])],De.prototype,"readElements",null),(0,o._)([(0,c.K)("elements")],De.prototype,"writeElements",null),(0,o._)([(0,p.MZ)({type:[h],json:{write:!0}})],De.prototype,"expressionInfos",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],De.prototype,"preserveFieldValuesWhenHidden",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],De.prototype,"title",void 0),De=Ve=(0,o._)([(0,u.$)("esri.form.FormTemplate")],De);const Ce=De},54239:(e,t,i)=>{i.d(t,{A:()=>w});var r,o=i(90237),s=i(4576),n=i(66552),l=i(25482),p=i(83047),a=i(67076),d=i(10107),u=(i(44208),i(53966),i(36005)),c=i(40608),y=i(43937);const h=(0,n.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,s.Xy)(m,"orthometric");const f=(0,n.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let v=r=class extends l.oY{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return h.write(e,t,i)}readHeightModel(e,t,i){return h.read(e)||(i?.messages&&i.messages.push(function(e,t){return new a.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(g(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,p.LA)(e)||f.read(e)||(i?.messages&&i.messages.push(g(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,p.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function g(e,t){return new a.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o._)([(0,d.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],v.prototype,"heightModel",void 0),(0,o._)([(0,y.K)("web-scene","heightModel")],v.prototype,"writeHeightModel",null),(0,o._)([(0,u.w)(["web-scene","service"],"heightModel")],v.prototype,"readHeightModel",null),(0,o._)([(0,d.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],v.prototype,"heightUnit",void 0),(0,o._)([(0,u.w)("web-scene","heightUnit")],v.prototype,"readHeightUnit",null),(0,o._)([(0,u.w)("service","heightUnit")],v.prototype,"readHeightUnitService",null),(0,o._)([(0,d.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],v.prototype,"vertCRS",void 0),(0,o._)([(0,u.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],v.prototype,"readVertCRS",null),v=r=(0,o._)([(0,c.$)("esri.geometry.HeightModelInfo")],v);const w=v},47685:(e,t,i)=>{i.d(t,{Mk:()=>c,Zk:()=>d,w6:()=>m});var r=i(90237),o=i(65529),s=i(4718),n=i(74887),l=(i(53966),i(44208),i(49186),i(40608)),p=i(20816);const a=new o.A.EventEmitter;function d(e,t,i=null,r=!1){const o=(0,n.Tw)();return r=null==t||r,a.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:o.promise}),o}const u=Symbol();function c(e){return null!=e&&"object"==typeof e&&u in e}function y(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function h(e,t,i){const r=new URL(e).host,o=p.Z3.get(r),s=e=>!e||e===o;return s(t)&&s(i)||t===i}const m=e=>{var t;let i=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:o,result:n}=e,l=t===this.url,p=null!=i&&null!=this.layerId&&i===this.layerId,a=y(this),d=y(this)&&h(t,r,this.gdbVersion);if(!l||a&&!d||!p&&!o)return;const u=n.then((e=>{if(p&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,s.o8)(e)),e;const i=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(i){const{adds:t,updates:r,deletes:o}=i.editedFeatures,n={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:o?o.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:r?r.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,s.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.o8)(e.historicMoment)};return this.emit("edits",n),n}const o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,s.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,o.historicMoment)&&this.emit("edits",o),o})).then((e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:u})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,o=t===this.url,s=y(this),n=y(this)&&h(t,i,this.gdbVersion),l=y(this)&&!h(t,this.gdbVersion,null);o&&s&&n&&l&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then((()=>{this.addHandles(function(e){return a.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return a.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,p.w5)(e,t)}};return t=u,i=(0,r._)([(0,l.$)("esri.layers.mixins.EditBusLayer")],i),i}},87796:(e,t,i)=>{i.d(t,{j:()=>k});var r=i(90237),o=i(5503),s=i(4718),n=i(53966),l=i(10107),p=(i(44208),i(36005)),a=i(40608),d=i(43937),u=i(89317),c=i(5443),y=i(54239),h=i(16930),m=i(60694),f=i(10873),v=i(69540),g=i(25482),w=(i(87811),i(56400));let M=class extends((0,v.O)(g.oY)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r._)([(0,l.MZ)()],M.prototype,"creatorField",void 0),(0,r._)([(0,l.MZ)()],M.prototype,"creationDateField",void 0),(0,r._)([(0,l.MZ)()],M.prototype,"editorField",void 0),(0,r._)([(0,l.MZ)()],M.prototype,"editDateField",void 0),(0,r._)([(0,l.MZ)()],M.prototype,"realm",void 0),(0,r._)([(0,l.MZ)((0,w.P6)("dateFieldsTimeReference",!0))],M.prototype,"timeZone",void 0),M=(0,r._)([(0,a.$)("esri.layers.support.EditFieldsInfo")],M);const _=M;let x=class extends((0,v.O)(g.oY)){constructor(e){super(e)}};(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"name",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"fields",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"isAscending",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"indexType",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"isUnique",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"description",void 0),x=(0,r._)([(0,a.$)("esri.layers.support.FeatureIndex")],x);var b=i(15426),Z=i(83047);let S=class extends((0,v.O)(g.oY)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,r._)([(0,l.MZ)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],S.prototype,"shapeAreaField",void 0),(0,r._)([(0,l.MZ)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],S.prototype,"shapeLengthField",void 0),(0,r._)([(0,l.MZ)({type:String,json:{read:e=>Z.dk.read(e)||Z.Sk.read(e)}})],S.prototype,"units",void 0),S=(0,r._)([(0,a.$)("esri.layers.support.GeometryFieldsInfo")],S);const j=S;var F=i(37352),I=i(45067),E=i(22453),O=i(72088);let T=class extends((0,v.O)(g.oY)){constructor(e){super(e),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,O.rS)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r._)([(0,l.MZ)({type:Number,json:{write:!0}})],T.prototype,"code",void 0),(0,r._)([(0,l.MZ)({type:Object,json:{write:!0}})],T.prototype,"defaultValues",void 0),(0,r._)([(0,l.MZ)({json:{write:!0}})],T.prototype,"domains",void 0),(0,r._)([(0,p.w)("domains")],T.prototype,"readDomains",null),(0,r._)([(0,d.K)("domains")],T.prototype,"writeDomains",null),(0,r._)([(0,l.MZ)({type:String,json:{write:!0}})],T.prototype,"name",void 0),T=(0,r._)([(0,a.$)("esri.layers.support.Subtype")],T);const R=T,k=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.capabilities=null,this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.definitionExpression=null,this.displayField=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.globalIdField=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.indexes=new(o.A.ofType(x)),this.isTable=!1,this.layerId=void 0,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.preferredTimeZone=null,this.relationships=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.serviceItemId=null,this.sourceJSON=null,this.spatialReference=h.A.WGS84,this.subtypeField=null,this.subtypes=null,this.trackIdField=null,this.version=void 0}get authenticationTriggerEvent(){if(!this.url)return null;const{capabilities:e}=this;if(e){const{query:t,operations:i,editing:r}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(r.supportsUpdateByOthers&&r.supportsUpdateByAnonymous&&r.supportsDeleteByOthers&&r.supportsDeleteByAnonymous))return"load"}if(this.userHasUpdateItemPrivileges){if((0,b.tG)(this))return"load";if(this.hasUpdateItemRestrictions)return e.operations.supportsQuery?"editing":"load"}if(this.userHasFullEditingPrivileges&&this.hasFullEditingRestrictions)return"editing";const t=this.editFieldsInfo;return(t?.creatorField||t?.editorField)&&e?.operations.supportsEditing?"editing":null}readCapabilitiesFromService(e,t){return(0,E.S)(t,this.url)}readEditingInfo(e,t){const{editingInfo:i}=t;return i?{lastEditDate:null!=i.lastEditDate?new Date(i.lastEditDate):null}:null}get effectiveCapabilities(){const e=this.capabilities;if(!e)return null;const t=(0,s.o8)(e),{operations:i,editing:r}=t;return this.sourceJSON?.isMultiServicesView?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=r.supportsGeometryUpdate=!0),t)}readGlobalIdFieldFromService(e,t){return(0,b.jD)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||this.sourceJSON?.isMultiServicesView)return!1;const{operations:t,editing:i}=e;return t.supportsEditing&&!(t.supportsAdd&&t.supportsDelete&&t.supportsUpdate&&i.supportsGeometryUpdate)}get hasUpdateItemRestrictions(){const e=this.capabilities;if(!e)return!1;const{operations:t,editing:i}=e;return this.sourceJSON?.isMultiServicesView?!t.supportsQuery:!(t.supportsAdd&&t.supportsDelete&&t.supportsEditing&&t.supportsQuery&&t.supportsUpdate&&i.supportsDeleteByOthers&&i.supportsGeometryUpdate&&i.supportsUpdateByOthers)}readIsTableFromService(e,t){return"Table"===t.type}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readMinScale(e,t){return t.effectiveMinScale||e||0}readObjectIdFieldFromService(e,t){return(0,b.Zm)(t)}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}set url(e){if(null==e)return void this._set("url",e);const t=(0,m.HZ)({layer:this,url:e,nonStandardUrlAllowed:!0,logger:n.A.getLogger(this)});this._set("url",t.url),null!=t.layerId&&this._set("layerId",t.layerId)}writeUrl(e,t,i,r){(0,m.LS)(this,e,null,t,r)}readVersion(e,t){return(0,b.$4)(t)}};return(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"authenticationTriggerEvent",null),(0,r._)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","maxRecordCount","maxRecordCountFactor","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],t.prototype,"capabilities",void 0),(0,r._)([(0,p.w)("service","capabilities")],t.prototype,"readCapabilitiesFromService",null),(0,r._)([(0,l.MZ)((0,w.P6)("dateFieldsTimeReference"))],t.prototype,"dateFieldsTimeZone",void 0),(0,r._)([(0,l.MZ)({type:Boolean})],t.prototype,"datesInUnknownTimezone",void 0),(0,r._)([(0,l.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,r._)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],t.prototype,"displayField",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,type:_})],t.prototype,"editFieldsInfo",void 0),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"editingInfo",void 0),(0,r._)([(0,p.w)("editingInfo")],t.prototype,"readEditingInfo",null),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"effectiveCapabilities",null),(0,r._)([(0,l.MZ)((()=>{const e=(0,s.o8)(f.Yj),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],t.prototype,"elevationInfo",void 0),(0,r._)([(0,l.MZ)({type:F.A,json:{name:"layerDefinition.floorInfo",write:!0,origins:{"web-scene":{name:"layerDefinition.floorInfo",write:{enabled:!0,layerContainerTypes:u.K}}}}})],t.prototype,"floorInfo",void 0),(0,r._)([(0,l.MZ)({type:c.A,json:{origins:{service:{read:{source:"extent"}}}}})],t.prototype,"fullExtent",void 0),(0,r._)([(0,l.MZ)()],t.prototype,"gdbVersion",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,type:j,json:{read:{source:"geometryProperties"}}})],t.prototype,"geometryFieldsInfo",void 0),(0,r._)([(0,l.MZ)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:b.iX.read}}}})],t.prototype,"geometryType",void 0),(0,r._)([(0,l.MZ)({type:String})],t.prototype,"globalIdField",void 0),(0,r._)([(0,p.w)("service","globalIdField",["globalIdField","fields"])],t.prototype,"readGlobalIdFieldFromService",null),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"hasFullEditingRestrictions",null),(0,r._)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasM",void 0),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"hasUpdateItemRestrictions",null),(0,r._)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasZ",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,type:y.A})],t.prototype,"heightModelInfo",void 0),(0,r._)([(0,l.MZ)({type:Date})],t.prototype,"historicMoment",void 0),(0,r._)([(0,l.MZ)({type:o.A.ofType(x),readOnly:!0})],t.prototype,"indexes",void 0),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"isTable",void 0),(0,r._)([(0,p.w)("service","isTable",["type"])],t.prototype,"readIsTableFromService",null),(0,r._)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],t.prototype,"layerId",void 0),(0,r._)([(0,l.MZ)(f.hG)],t.prototype,"maxScale",void 0),(0,r._)([(0,p.w)("service","maxScale",["maxScale","effectiveMaxScale"])],t.prototype,"readMaxScale",null),(0,r._)([(0,l.MZ)(f.hn)],t.prototype,"minScale",void 0),(0,r._)([(0,p.w)("service","minScale",["minScale","effectiveMinScale"])],t.prototype,"readMinScale",null),(0,r._)([(0,l.MZ)({type:String})],t.prototype,"objectIdField",void 0),(0,r._)([(0,p.w)("service","objectIdField",["objectIdField","fields"])],t.prototype,"readObjectIdFieldFromService",null),(0,r._)([(0,l.MZ)((0,w.P6)("preferredTimeReference"))],t.prototype,"preferredTimeZone",void 0),(0,r._)([(0,l.MZ)({type:[I.A],readOnly:!0})],t.prototype,"relationships",void 0),(0,r._)([(0,l.MZ)({type:Boolean})],t.prototype,"returnM",void 0),(0,r._)([(0,l.MZ)({type:Boolean})],t.prototype,"returnZ",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,json:{write:!1}})],t.prototype,"serverGens",void 0),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"serviceDefinitionExpression",void 0),(0,r._)([(0,p.w)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],t.prototype,"readServiceDefinitionExpression",null),(0,r._)([(0,l.MZ)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"serviceItemId",void 0),(0,r._)([(0,l.MZ)()],t.prototype,"sourceJSON",void 0),(0,r._)([(0,l.MZ)({type:h.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],t.prototype,"spatialReference",void 0),(0,r._)([(0,l.MZ)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],t.prototype,"subtypeField",void 0),(0,r._)([(0,l.MZ)({type:[R],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"subtypes",void 0),(0,r._)([(0,l.MZ)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],t.prototype,"trackIdField",void 0),(0,r._)([(0,l.MZ)(f.OZ)],t.prototype,"url",null),(0,r._)([(0,d.K)("url")],t.prototype,"writeUrl",null),(0,r._)([(0,l.MZ)({json:{origins:{service:{read:!0}},read:!1}})],t.prototype,"version",void 0),(0,r._)([(0,p.w)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],t.prototype,"readVersion",null),t=(0,r._)([(0,a.$)("esri.layers.mixins.FeatureLayerBase")],t),t}},91908:(e,t,i)=>{i.d(t,{D:()=>s});var r=i(60694);const o=[];function s(e,t){if((0,r.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of o){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}o.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),o.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),o.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),o.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),o.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},20816:(e,t,i)=>{i.d(t,{TA:()=>o,We:()=>l,Z3:()=>s,ZJ:()=>p,w5:()=>a});var r=i(78888);const o=(0,i(13069).vD)(),s=new Map,n=new Map;async function l(e,t,i){if(!e||!i)return!1;if(!t)return!0;const o=new URL(e).host;let n=s.get(o);if(!n){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");n=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return n===t}async function p(e,t,r=!1){if(!e||!t)return!0;const s=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),l=n.get(s)?.entries();if(l)for(const[e,n]of l)if(n.name===t){const t=!n.stack?.hasForwardEdits();if(!t&&r){const[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(i.bind(i,32186)),i.e(2558).then(i.bind(i,32558))]),l=await t(s,e,new r({sessionId:o,moment:n.moment}));return l.success&&n.stack?.clearForwardEdits(),l.success}return t}return!0}function a(e,t){if(!e)return!1;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=n.get(i)?.entries();if(r)for(const[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4796],{81457:(e,t,r)=>{r.d(t,{A:()=>I});var n,o=r(90237),i=r(61147),s=(r(44208),r(66552)),a=r(25482),l=r(4718),u=r(90629),c=r(10107),p=(r(53966),r(36005)),d=r(40608),y=r(43937),h=(r(87811),r(32730));let f=n=class extends a.oY{constructor(){super(...arguments),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,h.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,h.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new n({expression:this.expression,title:this.title,value:this.value})}};(0,o._)([(0,c.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],f.prototype,"expression",void 0),(0,o._)([(0,p.w)("expression",["expression","value"])],f.prototype,"readExpression",null),(0,o._)([(0,y.K)("expression")],f.prototype,"writeExpression",null),(0,o._)([(0,c.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],f.prototype,"title",void 0),(0,o._)([(0,c.MZ)({json:{read:!1,write:!1}})],f.prototype,"value",void 0),f=n=(0,o._)([(0,d.$)("esri.layers.support.LabelExpressionInfo")],f);const m=f;var b,w=r(83531),v=r(59868),g=r(73838);const S=new s.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function x(e,t,r){return{enabled:!(0,w.TU)(r?.layer)}}function A(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function M(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let P=b=class extends a.oY{static evaluateWhere(e,t){const r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const n=e.split(" ");if(3===n.length)return r(t[n[0]],n[1],n[2]);if(7===n.length){const e=r(t[n[0]],n[1],n[2]),o=n[3],i=r(t[n[4]],n[5],n[6]);switch(o){case"AND":return e&&i;case"OR":return e||i}}return!1}catch(e){}}constructor(e){super(e),this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.repeatLabelDistance=null,this.symbol=v.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,h.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,h.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,n){if(null==e&&null!=this.labelExpression&&A(n))e=new m({expression:this.getLabelExpressionArcade()});else if(!e)return;const o=e.toJSON(n);o.expression&&(t[r]=o)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}getLabelExpression(){return(0,h.XJ)(this)}getLabelExpressionArcade(){return(0,h.BI)(this)}getLabelExpressionSingleField(){return(0,h.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new b({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,l.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,l.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o._)([(0,c.MZ)({type:String,json:{write:!0}})],P.prototype,"name",void 0),(0,o._)([(0,c.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:x}}}}})],P.prototype,"allowOverrun",void 0),(0,o._)([(0,c.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:x}}}}})],P.prototype,"deconflictionStrategy",void 0),(0,o._)([(0,c.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&M(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],P.prototype,"labelExpression",void 0),(0,o._)([(0,p.w)("labelExpression")],P.prototype,"readLabelExpression",null),(0,o._)([(0,y.K)("labelExpression")],P.prototype,"writeLabelExpression",null),(0,o._)([(0,c.MZ)({type:m,json:{write:{overridePolicy:(e,t,r)=>function(e){return A(e)||M(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],P.prototype,"labelExpressionInfo",void 0),(0,o._)([(0,y.K)("labelExpressionInfo")],P.prototype,"writeLabelExpressionInfo",null),(0,o._)([(0,c.MZ)({type:S.apiValues,json:{type:S.jsonValues,read:S.read,write:S.write}})],P.prototype,"labelPlacement",void 0),(0,o._)([(0,c.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],P.prototype,"labelPosition",void 0),(0,o._)([(0,c.MZ)({type:Number})],P.prototype,"maxScale",void 0),(0,o._)([(0,y.K)("maxScale")],P.prototype,"writeMaxScale",null),(0,o._)([(0,c.MZ)({type:Number})],P.prototype,"minScale",void 0),(0,o._)([(0,y.K)("minScale")],P.prototype,"writeMinScale",null),(0,o._)([(0,c.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:x}}}}})],P.prototype,"repeatLabel",void 0),(0,o._)([(0,c.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:x}}}}})],P.prototype,"repeatLabelDistance",void 0),(0,o._)([(0,c.MZ)({types:i.em,json:{origins:{"web-scene":{types:i.Rv,write:g.oO,default:null}},write:g.oO,default:null}})],P.prototype,"symbol",void 0),(0,o._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],P.prototype,"useCodedValues",void 0),(0,o._)([(0,c.MZ)({type:String,json:{write:!0}})],P.prototype,"where",void 0),P=b=(0,o._)([(0,d.$)("esri.layers.support.LabelClass")],P);const I=P},15426:(e,t,r)=>{r.d(t,{Xl:()=>v,ct:()=>x,C$:()=>G,PD:()=>V,VZ:()=>C,mm:()=>M,VA:()=>D,WP:()=>P,iX:()=>w,Nv:()=>q,xd:()=>k,GA:()=>H,jp:()=>F,tG:()=>$,lV:()=>I,B5:()=>E,Ye:()=>L,sg:()=>j,hM:()=>_,S2:()=>Z,jD:()=>O,Zm:()=>R,$4:()=>N,bt:()=>S,rn:()=>A});var n=r(70333),o=r(61147),i=r(60999),s=r(49186),a=r(66552),l=r(39516),u=r(90360),c=r(61956);async function p(e,t,r){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=d(e));const n=function(e){return d(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),o=e.capabilities.query.supportsPagination;t.start=0,t.num=n;let i=null;for(;;){const s=await e.source.queryFeaturesJSON(t,r);if(null==i?i=s:i.features=i.features.concat(s.features),i.exceededTransferLimit=s.exceededTransferLimit,!o||!s.exceededTransferLimit)break;t.start+=n}return i}function d(e){return e.capabilities.query.supportsMaxRecordCountFactor?c.A.MAX_MAX_RECORD_COUNT_FACTOR:1}var y=r(83531),h=r(96576),f=r(93618),m=r(54546),b=r(26591);const w=new a.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function v(e,t,r,n){const o=await B(e);if(await g(e,t,n),!o.addAttachment)throw new s.A(n,"Layer source does not support addAttachment capability");return o.addAttachment(t,r)}function g(e,t,r){const{attributes:n}=t,{objectIdField:o}=e;return e.capabilities?.data?.supportsAttachment?t?n?o&&n[o]?Promise.resolve():Promise.reject(new s.A(r,`feature is missing the identifying attribute ${o}`)):Promise.reject(new s.A(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new s.A(r,"A feature is required to add/delete/update attachments")):Promise.reject(new s.A(r,"this layer doesn't support attachments"))}async function S(e,t,r,n,o){const i=await B(e);if(await g(e,t,o),!i.updateAttachment)throw new s.A(o,"Layer source does not support updateAttachment capability");return i.updateAttachment(t,r,n)}async function x(e,t,n){const{applyEdits:o}=await r.e(8628).then(r.bind(r,78628)),i=await e.load();let s=n;return"feature"===i.type&&i.infoFor3D&&null!=t.deleteFeatures&&null!=i.globalIdField&&(s={...s,globalIdToObjectId:await H(i,t.deleteFeatures,i.globalIdField)}),o(i,i.source,t,n)}async function A(e,t,n){const{uploadAssets:o}=await r.e(8628).then(r.bind(r,78628)),i=await e.load();return o(i,i.source,t,n)}async function M(e,t,r,n){const o=await B(e);if(await g(e,t,n),!o.deleteAttachments)throw new s.A(n,"Layer source does not support deleteAttachments capability");return o.deleteAttachments(t,r)}async function P(e,t,r){const n=(await e.load({signal:t?.signal})).source;if(!n.fetchRecomputedExtents)throw new s.A(r,"Layer source does not support fetchUpdates capability");return n.fetchRecomputedExtents(t)}async function I(e,t,r,n){t=m.A.from(t),await e.load();const o=e.source,i=e.capabilities;if(!i?.data?.supportsAttachment)throw new s.A(n,"this layer doesn't support attachments");const{attachmentTypes:a,objectIds:l,globalIds:u,num:c,size:p,start:d,where:y}=t;if(!i?.operations?.supportsQueryAttachments&&(a?.length>0||u?.length>0||p?.length>0||c||d||y))throw new s.A(n,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(l?.length||u?.length||y))throw new s.A(n,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!o.queryAttachments)throw new s.A(n,"Layer source does not support queryAttachments capability",t);return o.queryAttachments(t)}async function j(e,t,r,n){const o=await B(e);if(!o.queryObjectIds)throw new s.A(n,"Layer source does not support queryObjectIds capability");return o.queryObjectIds(c.A.from(t)??e.createQuery(),r)}async function L(e,t,r,n){const o=await B(e);if(!o.queryFeatureCount)throw new s.A(n,"Layer source does not support queryFeatureCount capability");return o.queryFeatureCount(c.A.from(t)??e.createQuery(),r)}async function E(e,t,r,n){const o=await B(e);if(!o.queryExtent)throw new s.A(n,"Layer source does not support queryExtent capability");return o.queryExtent(c.A.from(t)??e.createQuery(),r)}async function _(e,t,r,n){const o=await B(e);if(!o.queryRelatedFeatures)throw new s.A(n,"Layer source does not support queryRelatedFeatures capability");return o.queryRelatedFeatures(b.default.from(t),r)}async function Z(e,t,r,n){const o=await B(e);if(!o.queryRelatedFeaturesCount)throw new s.A(n,"Layer source does not support queryRelatedFeaturesCount capability");return o.queryRelatedFeaturesCount(b.default.from(t),r)}async function F(e){const t=e.source;if(t?.refresh)try{const{dataChanged:r,updates:n}=await t.refresh();if(null!=n&&(e.sourceJSON={...e.sourceJSON,...n},e.read(n,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,l.G)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function C(e){const t=new c.A,r=e.capabilities?.data,n=e.capabilities?.query;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,n&&(t.compactGeometryEnabled=n.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=n.supportsDefaultSpatialReference),r&&(r.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),r.supportsM&&null!=e.returnM&&(t.returnM=e.returnM)),t.outFields=["*"];const{timeOffset:o,timeExtent:i}=e;return t.timeExtent=null!=o&&null!=i?i.offset(-o.value,o.unit):i||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function O(e){const{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function R(e){const{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeOID"===e.type)return e.name}function N(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}function q(e,t){const{subtypes:r,subtypeField:n}=e;if(!t||!r?.length||!n)return null;const o=t.attributes[n];return null==o?null:r.find((e=>e.code===o))}async function B(e){return(await e.load()).source}async function D(e,t,r){const o=e.parsedUrl?.path;o&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!n.id)return;if(n.id.findCredential(e))return;let r;try{const o=await(0,y.wI)(e,t);o&&(r=await n.id.checkSignInStatus(`${o}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await n.id.getCredential(e,{signal:r})}catch(e){}}(o,r)}function G(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const T=(0,u.C)({types:o.xK});function V(e,t){if(e.defaultSymbol)return e.types?.length?new f.A({defaultSymbol:T(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:T(e.symbol,e,t)})))}):new h.A({symbol:T(e.defaultSymbol,e,t)})}function $(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}async function H(e,t,r){if(null==t)return null;const n=[],{objectIdField:o}=e;if(t.forEach((e=>{let t=null;if("attributes"in e){const{attributes:n}=e;t={globalId:n[r],objectId:null!=n[o]&&-1!==n[o]?n[o]:null}}else t={globalId:e.globalId,objectId:null!=e.objectId&&-1!==e.objectId?e.objectId:null};null!=t.globalId&&(null!=t.objectId&&-1!==t.objectId||n.push(t.globalId))})),0===n.length)return null;const s=e.createQuery();s.where=n.map((e=>`${r}='${e}'`)).join(" OR "),s.returnGeometry=!1,s.outFields=[o,r],s.cacheHint=!1;const a=await(0,i.DZ)(p(e,s));if(!a.ok)return null;const l=new Map,u=a.value.features;for(const e of u){const t=e.attributes[r],n=e.attributes[o];null!=t&&null!=n&&-1!==n&&l.set(t,n)}return l}function k(e,t,r){if(!t||!r||!e)return null;const n=r.getAttribute(t);return null==n?null:e.find((e=>{const{id:t}=e;return null!=t&&t.toString()===n.toString()}))??null}},39383:(e,t,r)=>{r.d(t,{w:()=>l,z:()=>c});var n=r(49186),o=r(53966),i=r(81457);const s=()=>o.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function l(e,t,r){return e?e.map((e=>{const n=new i.A;if(n.read(e,r),n.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields;n.labelExpression=n.labelExpression.replaceAll(a,((t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const n=t[e].name;if(n.toLowerCase()===r)return n}return e}(r,e)}]`))}return n})):null}const u={esriGeometryPoint:["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:null,esriGeometryEnvelope:null};function c(e,t){const r=[];for(const o of e){const e=o.labelPlacement,i=u[t];if(!o.symbol)return s().warn("No ILabelClass symbol specified."),[];if(!i)return s().error(new n.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(i.includes(e))r.push(o);else{const n=i[0];e&&s().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${n}`);const a=o.clone();a.labelPlacement=n,r.push(a)}}return r}},54546:(e,t,r)=>{r.d(t,{A:()=>d});var n,o=r(90237),i=r(25482),s=r(4718),a=r(10107),l=r(56507),u=r(40608),c=r(43937);let p=n=class extends i.oY{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 n((0,s.o8)({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,o._)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"attachmentTypes",void 0),(0,o._)([(0,a.MZ)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],p.prototype,"attachmentsWhere",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"cacheHint",void 0),(0,o._)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"keywords",void 0),(0,o._)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"globalIds",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],p.prototype,"num",void 0),(0,o._)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"objectIds",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],p.prototype,"returnMetadata",void 0),(0,o._)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"size",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],p.prototype,"start",void 0),(0,o._)([(0,c.K)("start"),(0,c.K)("num")],p.prototype,"writeStart",null),(0,o._)([(0,a.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],p.prototype,"where",void 0),p=n=(0,o._)([(0,u.$)("esri.rest.support.AttachmentQuery")],p),p.from=(0,l.dp)(p);const d=p},26591:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var n,o=r(90237),i=(r(59456),r(25482)),s=r(4718),a=r(10107),l=r(56507),u=r(40608),c=r(43937),p=r(27733),d=r(16930);let y=n=class extends i.oY{constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new n((0,s.o8)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"cacheHint",void 0),(0,o._)([(0,a.MZ)({type:p.L,json:{write:!0}})],y.prototype,"dynamicDataSource",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"gdbVersion",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"geometryPrecision",void 0),(0,o._)([(0,a.MZ)({type:Date})],y.prototype,"historicMoment",void 0),(0,o._)([(0,c.K)("historicMoment")],y.prototype,"_writeHistoricMoment",null),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"maxAllowableOffset",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],y.prototype,"objectIds",void 0),(0,o._)([(0,a.MZ)({type:[String],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,o._)([(0,a.MZ)({type:[String],json:{write:!0}})],y.prototype,"outFields",void 0),(0,o._)([(0,a.MZ)({type:d.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],y.prototype,"outSpatialReference",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],y.prototype,"relationshipId",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],y.prototype,"start",void 0),(0,o._)([(0,c.K)("start"),(0,c.K)("num")],y.prototype,"writeStart",null),(0,o._)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],y.prototype,"num",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],y.prototype,"returnGeometry",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnM",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnZ",void 0),(0,o._)([(0,a.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],y.prototype,"where",void 0),y=n=(0,o._)([(0,u.$)("esri.rest.support.RelationshipQuery")],y),y.from=(0,l.dp)(y);const h=y},30291:(e,t,r)=>{r.d(t,{tn:()=>u});var n=r(13874),o=r(30524),i=r(28122),s=(r(84424),r(80737),r(96808),r(66159)),a=(r(67336),r(92094),r(23721),r(41227)),l=r(68780);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:u},y){if(!r)return null;const f=function(e,t){const r=t?.visibleFieldNames;return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(p),e}(e.fields??[],t?.ignoreFieldTypes||h).map((t=>new a.A({fieldName:t.name,isEditable:(0,o.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:l},y);if(!f.length)return null;const m=function(e){const t=(0,o.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),b=[new s.A,new i.A];return new n.A({title:m,content:b,fieldInfos:f})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,o.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:y(e)?-1:y(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":case"single":return new l.A({digitSeparator:!0,places:0});case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,o.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function y(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const h=["geometry","blob","raster","guid","xml"]}}]);
|