@arcgis/core 4.31.0-next.20240921 → 4.31.0-next.20240923

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/1810cb638ca1d52de7b2.js +1 -0
  3. package/assets/esri/core/workers/chunks/{69f6f35b04c722aba8cf.js → 238897e72fedd6754af7.js} +1 -1
  4. package/assets/esri/core/workers/chunks/2807eb7bfe4868fe840f.js +1 -0
  5. package/assets/esri/core/workers/chunks/{6c07116c8f7361780803.js → 2b04d2f8466d16a24a80.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{83649583139b818d4dfa.js → 356f6cc122287412b888.js} +1 -1
  7. package/assets/esri/core/workers/chunks/36a1de3752ff13d77b4d.js +1 -0
  8. package/assets/esri/core/workers/chunks/{bf406a46515d5dfebe06.js → 3d207d1c6effda13b448.js} +1 -1
  9. package/assets/esri/core/workers/chunks/460ae228640fd5e545ad.js +1 -0
  10. package/assets/esri/core/workers/chunks/{f14cefc311a21116d21b.js → 4c0d37b799edae391ab2.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{16eda85f728423c4ed02.js → 4ea08495271f6d291b05.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{cf147f34032a8d07f322.js → 53becb5fe10f7f38311f.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{24d45530fe47b3114daf.js → 5652ff08dcc5afd3d739.js} +1 -1
  14. package/assets/esri/core/workers/chunks/5fe1f8881959df0e61ce.js +1 -0
  15. package/assets/esri/core/workers/chunks/62f4eda8a9f4de481dcb.js +1 -0
  16. package/assets/esri/core/workers/chunks/{3fa3e1e6595668ca0e18.js → 686613864dd54d1cae3c.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{5d0d36230a5b8309c9e4.js → 75bf6dff29056a5a1242.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{a7bd5bb21a7f3030ee13.js → 783d66397f16899dd0e9.js} +1 -1
  19. package/assets/esri/core/workers/chunks/7bc57e2a3836ddc8f121.js +1 -0
  20. package/assets/esri/core/workers/chunks/{2658205b1ab2502c0bc7.js → 856c82a20027435fd306.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{99944b05d3142903511c.js → 93fb720bbfb3628f9c71.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{14f77efbfba0ca9efb6c.js → 9dce33a9bcfb852a74d3.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{de7e197223471c7b66a7.js → afb35deb035c9c9225c9.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{5f9beed2a9599b9ce649.js → bc37c0dc14ea54f1b9e8.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{35f92652df2561845d47.js → c9aa8df2f62e6d40b771.js} +1 -1
  26. package/assets/esri/core/workers/chunks/d8435cc010bd2260feec.js +1 -0
  27. package/assets/esri/core/workers/chunks/e5a8ab8d02a616469f1d.js +1 -0
  28. package/assets/esri/core/workers/chunks/f1446e56c35e59b904e1.js +1 -0
  29. package/assets/esri/core/workers/chunks/{6508ff21b0a5725629eb.js → fa3f9691a9bd1bbb25d3.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{008f290833724454160d.js → fab59ee41f96b2378768.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{67ea066a903f5ad31155.js → fe709db8238127f91e59.js} +1 -1
  32. package/layers/FeatureLayer.js +1 -1
  33. package/layers/SubtypeGroupLayer.js +1 -1
  34. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  35. package/layers/orientedImagery/core/utils.js +1 -1
  36. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  37. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  38. package/layers/orientedImagery/transformations/utils.js +1 -1
  39. package/layers/support/SubtypeSublayer.js +1 -1
  40. package/layers/support/featureLayerUtils.js +1 -1
  41. package/package.json +1 -1
  42. package/support/revision.js +1 -1
  43. package/views/interactive/sketch/constraintUtils.js +1 -1
  44. package/views/interactive/sketch/constraints.js +1 -1
  45. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  46. package/assets/esri/core/workers/chunks/0eb789af3c26fecdf3be.js +0 -1
  47. package/assets/esri/core/workers/chunks/41a3c7d286a050002d20.js +0 -1
  48. package/assets/esri/core/workers/chunks/59e4731d246203e94a96.js +0 -1
  49. package/assets/esri/core/workers/chunks/69c09478c899cd5e5013.js +0 -1
  50. package/assets/esri/core/workers/chunks/7088f771163fda53d196.js +0 -1
  51. package/assets/esri/core/workers/chunks/79ed119c70ce6ea02f71.js +0 -1
  52. package/assets/esri/core/workers/chunks/b5c02dbf540ededb863c.js +0 -1
  53. package/assets/esri/core/workers/chunks/eeacd5fa9fb9b1dee5f7.js +0 -1
  54. package/assets/esri/core/workers/chunks/f7c96d34c70ed36da7c2.js +0 -1
  55. package/assets/esri/core/workers/chunks/f9e90a2fda559ca68848.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2780],{9582:(e,t,i)=>{i.d(t,{A:()=>it});var o,r=i(90237),n=i(25482),s=i(4718),l=i(3483),p=i(10107),a=i(79901),d=i(36005),u=i(40608),y=i(43937);i(44208),i(53966),i(87811);let c=o=class extends n.oY{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new o({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r._)([(0,p.M)({type:String,json:{write:!0}})],c.prototype,"expression",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,p.M)({type:["boolean","date","number","string"],json:{write:!0}})],c.prototype,"returnType",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],c.prototype,"title",void 0),c=o=(0,r._)([(0,u.$)("esri.form.ExpressionInfo")],c);const h=c;let m=class extends n.oY{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,r._)([(0,p.M)({type:String,json:{write:!0}})],m.prototype,"description",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],m.prototype,"label",void 0),(0,r._)([(0,p.M)()],m.prototype,"type",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],m.prototype,"visibilityExpression",void 0),m=(0,r._)([(0,u.$)("esri.form.elements.Element")],m);const f=m;var v=i(56507),w=i(69540);let M=class extends((0,w.O)(n.oY)){constructor(e){super(e),this.type=null}};(0,r._)([(0,p.M)()],M.prototype,"type",void 0),M=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.Input")],M);const g=M,_=["any","capture","upload"];let x=class extends g{constructor(e){super(e),this.type="audio",this.inputMethod="any",this.maxDuration=null}};(0,r._)([(0,p.M)({type:["audio"],readOnly:!0,json:{write:!0}})],x.prototype,"type",void 0),(0,r._)([(0,p.M)({type:_,json:{write:!0}})],x.prototype,"inputMethod",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],x.prototype,"maxDuration",void 0),x=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.AudioInput")],x);const b=x;let j=class extends g{constructor(e){super(e),this.type="document",this.maxFileSize=null}};(0,r._)([(0,p.M)({type:["document"],readOnly:!0,json:{write:!0}})],j.prototype,"type",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],j.prototype,"maxFileSize",void 0),j=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.DocumentInput")],j);const S=j;let F=class extends g{constructor(e){super(e),this.type="image",this.inputMethod="any",this.maxImageSize=null}};(0,r._)([(0,p.M)({type:["image"],readOnly:!0,json:{write:!0}})],F.prototype,"type",void 0),(0,r._)([(0,p.M)({type:_,json:{write:!0}})],F.prototype,"inputMethod",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],F.prototype,"maxImageSize",void 0),F=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.ImageInput")],F);const I=F;let E=class extends g{constructor(e){super(e),this.type="signature",this.inputMethod="any"}};(0,r._)([(0,p.M)({type:["signature"],readOnly:!0,json:{write:!0}})],E.prototype,"type",void 0),(0,r._)([(0,p.M)({type:_,json:{write:!0}})],E.prototype,"inputMethod",void 0),E=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.SignatureInput")],E);const O=E;let T=class extends g{constructor(e){super(e),this.type="video",this.inputMethod="any",this.maxDuration=null}};(0,r._)([(0,p.M)({type:["video"],readOnly:!0,json:{write:!0}})],T.prototype,"type",void 0),(0,r._)([(0,p.M)({type:_,json:{write:!0}})],T.prototype,"inputMethod",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],T.prototype,"maxDuration",void 0),T=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.VideoInput")],T);const R=T;function k(e){return{nestableTypes:{base:g,key:"type",typeMap:{audio:b,document:S,image:I,signature:O,video:R}},allTypes:{base:g,key:"type",typeMap:{attachment:e,audio:b,document:S,image:I,signature:O,video:R}}}}let A=class extends g{constructor(e){super(e),this.type="attachment",this.inputTypes=null}castInputs(e){return function(e,t){return e?e.map((e=>(0,v.aq)(t.nestableTypes,e))):null}(e,V)}readInputs(e,t){return function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter((e=>i[e.type])).map((e=>i[e.type].fromJSON(e)))}(t.inputTypes,V)}writeInputs(e,t){t.inputTypes=function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter((e=>i[e.type])).map((e=>e.toJSON()))}(e,V)}};(0,r._)([(0,p.M)({type:["attachment"],readOnly:!0,json:{write:!0}})],A.prototype,"type",void 0),(0,r._)([(0,p.M)({json:{write:{isRequired:!0}}})],A.prototype,"inputTypes",void 0),(0,r._)([(0,a.w)("inputTypes")],A.prototype,"castInputs",null),(0,r._)([(0,d.w)("inputTypes")],A.prototype,"readInputs",null),(0,r._)([(0,y.K)("inputTypes")],A.prototype,"writeInputs",null),A=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.AttachmentInput")],A);const V=k(A);var U;const D=k(A);let C=U=class extends f{constructor(e){super(e),this.allowUserRename=!0,this.attachmentKeyword=null,this.displayFilename=!1,this.editableExpression=null,this.filenameExpression="{attachmentKeyword}_{now}",this.input=null,this.maxAttachmentCount=null,this.minAttachmentCount=0,this.type="attachment",this.useOriginalFilename=!0}clone(){return new U({allowUserRename:this.allowUserRename,attachmentKeyword:this.attachmentKeyword,description:this.description,displayFilename:this.displayFilename,editableExpression:this.editableExpression,filenameExpression:this.filenameExpression,input:this.input?.clone(),label:this.label,maxAttachmentCount:this.maxAttachmentCount,minAttachmentCount:this.minAttachmentCount,useOriginalFilename:this.useOriginalFilename,visibilityExpression:this.visibilityExpression})}};(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],C.prototype,"allowUserRename",void 0),(0,r._)([(0,p.M)({type:String,json:{write:{isRequired:!0}}})],C.prototype,"attachmentKeyword",void 0),(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],C.prototype,"displayFilename",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],C.prototype,"editableExpression",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],C.prototype,"filenameExpression",void 0),(0,r._)([(0,p.M)({types:D.allTypes,json:{read:{source:"inputType"},write:{target:"inputType",isRequired:!0}}})],C.prototype,"input",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],C.prototype,"maxAttachmentCount",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],C.prototype,"minAttachmentCount",void 0),(0,r._)([(0,p.M)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],C.prototype,"type",void 0),(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],C.prototype,"useOriginalFilename",void 0),C=U=(0,r._)([(0,u.$)("esri.form.elements.AttachmentElement")],C);const N=C;let B=class extends n.oY{constructor(e){super(e),this.type=null}};(0,r._)([(0,p.M)()],B.prototype,"type",void 0),B=(0,r._)([(0,u.$)("esri.form.elements.inputs.Input")],B);const $=B;let L=class extends ${constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],L.prototype,"maxLength",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],L.prototype,"minLength",void 0),L=(0,r._)([(0,u.$)("esri.form.elements.inputs.TextInput")],L);const H=L;var K;let G=K=class extends H{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new K({maxLength:this.maxLength,minLength:this.minLength})}};(0,r._)([(0,p.M)({type:["barcode-scanner"],json:{read:!1,write:!0}})],G.prototype,"type",void 0),G=K=(0,r._)([(0,u.$)("esri.form.elements.inputs.BarcodeScannerInput")],G);const P=G;var W;let Z=W=class extends ${constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new W({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Z.prototype,"noValueOptionLabel",void 0),(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],Z.prototype,"showNoValueOption",void 0),(0,r._)([(0,p.M)({type:["combo-box"],json:{read:!1,write:!0}})],Z.prototype,"type",void 0),Z=W=(0,r._)([(0,u.$)("esri.form.elements.inputs.ComboBoxInput")],Z);const q=Z;var Q;function z(e){return null!=e?e:null}function Y(e){return null!=e?e:null}let J=Q=class extends ${constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return z(t.max)}writeMax(e,t){t.max=Y(e)}readMin(e,t){return z(t.min)}writeMin(e,t){t.min=Y(e)}clone(){return new Q({max:this.max,min:this.min})}};(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],J.prototype,"max",void 0),(0,r._)([(0,d.w)("max")],J.prototype,"readMax",null),(0,r._)([(0,y.K)("max")],J.prototype,"writeMax",null),(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],J.prototype,"min",void 0),(0,r._)([(0,d.w)("min")],J.prototype,"readMin",null),(0,r._)([(0,y.K)("min")],J.prototype,"writeMin",null),(0,r._)([(0,p.M)({type:["date-picker"],json:{read:!1,write:!0}})],J.prototype,"type",void 0),J=Q=(0,r._)([(0,u.$)("esri.form.elements.inputs.DatePickerInput")],J);const X=J;var ee;function te(e){return null!=e?e:null}function ie(e){return null!=e?e:null}let oe=ee=class extends ${constructor(e){super(e),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="datetimeoffset-picker"}readMax(e,t){return te(t.max)}writeMax(e,t){t.max=ie(e)}readMin(e,t){return te(t.min)}writeMin(e,t){t.min=ie(e)}readTimeResolution(e,t){return te(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=ie(e)}clone(){return new ee({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],oe.prototype,"includeTimeOffset",void 0),(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],oe.prototype,"max",void 0),(0,r._)([(0,d.w)("max")],oe.prototype,"readMax",null),(0,r._)([(0,y.K)("max")],oe.prototype,"writeMax",null),(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],oe.prototype,"min",void 0),(0,r._)([(0,d.w)("min")],oe.prototype,"readMin",null),(0,r._)([(0,y.K)("min")],oe.prototype,"writeMin",null),(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],oe.prototype,"timeResolution",void 0),(0,r._)([(0,d.w)("timeResolution")],oe.prototype,"readTimeResolution",null),(0,r._)([(0,y.K)("timeResolution")],oe.prototype,"writeTimeResolution",null),(0,r._)([(0,p.M)({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],oe.prototype,"type",void 0),oe=ee=(0,r._)([(0,u.$)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],oe);const re=oe;var ne;function se(e){return null!=e?new Date(e):null}function le(e){return e?e.getTime():null}let pe=ne=class extends ${constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return se(t.max)}writeMax(e,t){t.max=le(e)}readMin(e,t){return se(t.min)}writeMin(e,t){t.min=le(e)}clone(){return new ne({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],pe.prototype,"includeTime",void 0),(0,r._)([(0,p.M)({type:Date,json:{type:Number,write:!0}})],pe.prototype,"max",void 0),(0,r._)([(0,d.w)("max")],pe.prototype,"readMax",null),(0,r._)([(0,y.K)("max")],pe.prototype,"writeMax",null),(0,r._)([(0,p.M)({type:Date,json:{type:Number,write:!0}})],pe.prototype,"min",void 0),(0,r._)([(0,d.w)("min")],pe.prototype,"readMin",null),(0,r._)([(0,y.K)("min")],pe.prototype,"writeMin",null),(0,r._)([(0,p.M)({type:["datetime-picker"],json:{read:!1,write:!0}})],pe.prototype,"type",void 0),pe=ne=(0,r._)([(0,u.$)("esri.form.elements.inputs.DateTimePickerInput")],pe);const ae=pe;var de;let ue=de=class extends ${constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new de({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,r._)([(0,p.M)({type:String,json:{write:!0}})],ue.prototype,"noValueOptionLabel",void 0),(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],ue.prototype,"showNoValueOption",void 0),(0,r._)([(0,p.M)({type:["radio-buttons"],json:{read:!1,write:!0}})],ue.prototype,"type",void 0),ue=de=(0,r._)([(0,u.$)("esri.form.elements.inputs.RadioButtonsInput")],ue);const ye=ue;var ce;let he=ce=class extends ${constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new ce({offValue:this.offValue,onValue:this.onValue})}};(0,r._)([(0,p.M)({type:[String,Number],json:{write:!0}})],he.prototype,"offValue",void 0),(0,r._)([(0,p.M)({type:[String,Number],json:{write:!0}})],he.prototype,"onValue",void 0),(0,r._)([(0,p.M)({type:["switch"],json:{read:!1,write:!0}})],he.prototype,"type",void 0),he=ce=(0,r._)([(0,u.$)("esri.form.elements.inputs.SwitchInput")],he);const me=he;var fe;let ve=fe=class extends H{constructor(e){super(e),this.type="text-area"}clone(){return new fe({maxLength:this.maxLength,minLength:this.minLength})}};(0,r._)([(0,p.M)({type:["text-area"],json:{read:!1,write:!0}})],ve.prototype,"type",void 0),ve=fe=(0,r._)([(0,u.$)("esri.form.elements.inputs.TextAreaInput")],ve);const we=ve;var Me;let ge=Me=class extends H{constructor(e){super(e),this.type="text-box"}clone(){return new Me({maxLength:this.maxLength,minLength:this.minLength})}};(0,r._)([(0,p.M)({type:["text-box"],json:{read:!1,write:!0}})],ge.prototype,"type",void 0),ge=Me=(0,r._)([(0,u.$)("esri.form.elements.inputs.TextBoxInput")],ge);const _e=ge;var xe;function be(e){return null!=e?e:null}function je(e){return null!=e?e:null}let Se=xe=class extends ${constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return be(t.max)}writeMax(e,t){t.max=je(e)}readMin(e,t){return be(t.min)}writeMin(e,t){t.min=je(e)}readTimeResolution(e,t){return be(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=je(e)}clone(){return new xe({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],Se.prototype,"max",void 0),(0,r._)([(0,d.w)("max")],Se.prototype,"readMax",null),(0,r._)([(0,y.K)("max")],Se.prototype,"writeMax",null),(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],Se.prototype,"min",void 0),(0,r._)([(0,d.w)("min")],Se.prototype,"readMin",null),(0,r._)([(0,y.K)("min")],Se.prototype,"writeMin",null),(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],Se.prototype,"timeResolution",void 0),(0,r._)([(0,d.w)("timeResolution")],Se.prototype,"readTimeResolution",null),(0,r._)([(0,y.K)("timeResolution")],Se.prototype,"writeTimeResolution",null),(0,r._)([(0,p.M)({type:["time-picker"],json:{read:!1,write:!0}})],Se.prototype,"type",void 0),Se=xe=(0,r._)([(0,u.$)("esri.form.elements.inputs.TimePickerInput")],Se);const Fe={base:$,key:"type",typeMap:{"barcode-scanner":P,"combo-box":q,"date-picker":X,"datetime-picker":ae,"datetimeoffset-picker":re,"radio-buttons":ye,switch:me,"text-area":we,"text-box":_e,"time-picker":Se}};var Ie,Ee=i(72088);let Oe=Ie=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 Ie({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,r._)([(0,p.M)({types:Ee.gK,json:{read:{reader:Ee.rS},write:!0}})],Oe.prototype,"domain",void 0),(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],Oe.prototype,"editable",null),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Oe.prototype,"editableExpression",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Oe.prototype,"fieldName",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Oe.prototype,"hint",void 0),(0,r._)([(0,p.M)({types:Fe,json:{read:{source:"inputType"},write:{target:"inputType"}}})],Oe.prototype,"input",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Oe.prototype,"requiredExpression",void 0),(0,r._)([(0,p.M)({type:String,json:{read:!1,write:!0}})],Oe.prototype,"type",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Oe.prototype,"valueExpression",void 0),Oe=Ie=(0,r._)([(0,u.$)("esri.form.elements.FieldElement")],Oe);const Te=Oe;var Re,ke=i(49852);let Ae=Re=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 Re({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,s.o8)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],Ae.prototype,"displayCount",void 0),(0,r._)([(0,p.M)({type:["list"],json:{write:!0}})],Ae.prototype,"displayType",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Ae.prototype,"editableExpression",void 0),(0,r._)([(0,p.M)({type:[ke.A],json:{write:!0}})],Ae.prototype,"orderByFields",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],Ae.prototype,"relationshipId",void 0),(0,r._)([(0,p.M)({type:["relationship"],json:{read:!1,write:!0}})],Ae.prototype,"type",void 0),Ae=Re=(0,r._)([(0,u.$)("esri.form.elements.RelationshipElement")],Ae);const Ve=Ae;var Ue;let De=Ue=class extends f{constructor(e){super(e),this.text=null,this.textFormat="plain-text",this.type="text"}clone(){return new Ue({text:this.text,textFormat:this.textFormat,visibilityExpression:this.visibilityExpression})}};(0,r._)([(0,p.M)({type:String,json:{write:!0}})],De.prototype,"text",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],De.prototype,"textFormat",void 0),(0,r._)([(0,p.M)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],De.prototype,"type",void 0),De=Ue=(0,r._)([(0,u.$)("esri.form.elements.TextElement")],De);const Ce=De;function Ne(e){return{typesWithGroup:{base:f,key:"type",typeMap:{attachment:N,field:Te,group:e,relationship:Ve,text:Ce}},typesWithoutGroup:{base:f,key:"type",typeMap:{attachment:N,field:Te,relationship:Ve,text:Ce}}}}function Be(e,t,i=!0){if(!e)return null;const o=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>o[e.type])).map((e=>o[e.type].fromJSON(e)))}function $e(e,t,i=!0){if(!e)return null;const o=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>o[e.type])).map((e=>e.toJSON()))}function Le(e,t,i=!0){return e?e.map((e=>(0,v.aq)(i?t.typesWithGroup:t.typesWithoutGroup,e))):null}var He;let Ke=He=class extends f{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return Le(e,Ge,!1)}readElements(e,t){return Be(t.formElements,Ge,!1)}writeElements(e,t){t.formElements=$e(e,Ge,!1)}clone(){return new He({description:this.description,elements:(0,s.o8)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,r._)([(0,p.M)({json:{write:!0}})],Ke.prototype,"elements",void 0),(0,r._)([(0,a.w)("elements")],Ke.prototype,"castElements",null),(0,r._)([(0,d.w)("elements",["formElements"])],Ke.prototype,"readElements",null),(0,r._)([(0,y.K)("elements")],Ke.prototype,"writeElements",null),(0,r._)([(0,p.M)({type:["collapsed","expanded"],json:{write:!0}})],Ke.prototype,"initialState",void 0),(0,r._)([(0,p.M)({type:String,json:{read:!1,write:!0}})],Ke.prototype,"type",void 0),Ke=He=(0,r._)([(0,u.$)("esri.form.elements.GroupElement")],Ke);const Ge=Ne(Ke),Pe=Ke,We=e=>"field"===e.type,Ze=e=>"group"===e.type,qe=e=>"text"===e.type;var Qe,ze=i(30524);const Ye=Ne(Pe);let Je=Qe=class extends n.oY{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(e){return Le(e,Ye)}readElements(e,t){return Be(t.formElements,Ye)}writeElements(e,t){t.formElements=$e(e,Ye)}clone(){return new Qe({description:this.description,expressionInfos:(0,s.o8)(this.expressionInfos),elements:(0,s.o8)(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})}async getFieldsUsed(e,t){const i=new Set,{description:o,elements:r,expressionInfos:n,title:s}=this;if(tt(i,e,o),tt(i,e,s),!r)return[];const l=function(e,t){if(!t||0===t.length)return[];const i=et(e),o=[];for(const e of t)i.has(e.name)&&o.push(e.expression);return o}(r,n).map((t=>(0,ze.Dx)(i,e,t)));await Promise.all(l);for(const o of r)Xe(i,{fieldsIndex:e,relationships:t},o);return Array.from(i).sort()}};function Xe(e,t,i){const{fieldsIndex:o}=t;if(!o||o.fields.length!==e.size)switch(tt(e,o,i.label),tt(e,o,i.description),i.type){case"field":(0,ze.rq)(e,o,i.fieldName);break;case"group":i.elements.forEach((i=>Xe(e,t,i)));break;case"relationship":if(t.relationships){const r=t.relationships.find((e=>e.id===i.relationshipId));r&&(0,ze.rq)(e,o,r.keyField)}(0,ze._w)(e,o,i.orderByFields?.map((e=>e.field)));break;case"text":tt(e,o,i.text)}}function et(e){const t=new Set;for(const i of e)if((0,l.kb)(t,i.visibilityExpression),!qe(i))if(Ze(i))(0,l.FB)(t,et(i.elements));else if((0,l.kb)(t,i.editableExpression),We(i)){const{requiredExpression:e,valueExpression:o}=i;(0,l.FB)(t,[e,o])}return t}function tt(e,t,i){(0,ze._w)(e,t,(0,ze.nw)(i))}(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Je.prototype,"description",void 0),(0,r._)([(0,p.M)({json:{write:!0}})],Je.prototype,"elements",void 0),(0,r._)([(0,a.w)("elements")],Je.prototype,"castElements",null),(0,r._)([(0,d.w)("elements",["formElements"])],Je.prototype,"readElements",null),(0,r._)([(0,y.K)("elements")],Je.prototype,"writeElements",null),(0,r._)([(0,p.M)({type:[h],json:{write:!0}})],Je.prototype,"expressionInfos",void 0),(0,r._)([(0,p.M)({type:Boolean,json:{default:!1,write:!0}})],Je.prototype,"preserveFieldValuesWhenHidden",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Je.prototype,"title",void 0),Je=Qe=(0,r._)([(0,u.$)("esri.form.FormTemplate")],Je);const it=Je},54239:(e,t,i)=>{i.d(t,{A:()=>M});var o,r=i(90237),n=i(4576),s=i(66552),l=i(25482),p=i(83047),a=i(67076),d=i(10107),u=(i(44208),i(53966),i(36005)),y=i(40608),c=i(43937);const h=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,n.Xy)(m,"orthometric");const f=(0,s.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=o=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(w(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,p.LA)(e)||f.read(e)||(i?.messages&&i.messages.push(w(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new o({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 o({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 o;return t.read(e,{origin:"web-scene"}),t}};function w(e,t){return new a.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,r._)([(0,d.M)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],v.prototype,"heightModel",void 0),(0,r._)([(0,c.K)("web-scene","heightModel")],v.prototype,"writeHeightModel",null),(0,r._)([(0,u.w)(["web-scene","service"],"heightModel")],v.prototype,"readHeightModel",null),(0,r._)([(0,d.M)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],v.prototype,"heightUnit",void 0),(0,r._)([(0,u.w)("web-scene","heightUnit")],v.prototype,"readHeightUnit",null),(0,r._)([(0,u.w)("service","heightUnit")],v.prototype,"readHeightUnitService",null),(0,r._)([(0,d.M)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],v.prototype,"vertCRS",void 0),(0,r._)([(0,u.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],v.prototype,"readVertCRS",null),v=o=(0,r._)([(0,y.$)("esri.geometry.HeightModelInfo")],v);const M=v},47685:(e,t,i)=>{i.d(t,{Mk:()=>c,Zk:()=>u,w6:()=>f});var o=i(90237),r=i(65529),n=i(4718),s=i(74887),l=i(10107),p=(i(44208),i(53966),i(40608)),a=i(20816);const d=new r.A.EventEmitter;function u(e,t,i=null,o=!1){const r=(0,s.Tw)();return o=null==t||o,d.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:o,result:r.promise}),r}const y=Symbol();function c(e){return null!=e&&"object"==typeof e&&y in e}function h(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,i){const o=new URL(e).host,r=a.Z3.get(o),n=e=>!e||e===r;return n(t)&&n(i)||t===i}const f=e=>{var t;let i=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:o,mayReceiveServiceEdits:r,result:s}=e,l=t===this.url,p=null!=i&&null!=this.layerId&&i===this.layerId,a=h(this),d=h(this)&&m(t,o,this.gdbVersion);if(!l||a&&!d||!p&&!r)return;const u=s.then((e=>{if(this.lastEditsEventDate=new Date,p&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;const i=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(i){const{adds:t,updates:o,deletes:r}=i.editedFeatures,s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:r?r.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:o?o.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",s),s}const r={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,o,r.historicMoment)&&this.emit("edits",r),r})).then((e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,o,e.historicMoment)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:u})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:o}=e,r=t===this.url,n=h(this),s=h(this)&&m(t,i,this.gdbVersion),l=h(this)&&!m(t,this.gdbVersion,null);r&&n&&s&&l&&"historicMoment"in this&&this.historicMoment!==o&&(this.historicMoment=o)},this.when().then((()=>{this.addHandles(function(e){return d.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return d.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,a.w5)(e,t)}};return t=y,(0,o._)([(0,l.M)()],i.prototype,"lastEditsEventDate",void 0),i=(0,o._)([(0,p.$)("esri.layers.mixins.EditBusLayer")],i),i}},87796:(e,t,i)=>{i.d(t,{j:()=>A});var o=i(90237),r=i(5503),n=i(4718),s=i(53966),l=i(10107),p=(i(44208),i(36005)),a=i(40608),d=i(43937),u=i(89317),y=i(5443),c=i(54239),h=i(16930),m=i(60694),f=i(10873),v=i(69540),w=i(25482),M=(i(87811),i(56400));let g=class extends((0,v.O)(w.oY)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,o._)([(0,l.M)()],g.prototype,"creatorField",void 0),(0,o._)([(0,l.M)()],g.prototype,"creationDateField",void 0),(0,o._)([(0,l.M)()],g.prototype,"editorField",void 0),(0,o._)([(0,l.M)()],g.prototype,"editDateField",void 0),(0,o._)([(0,l.M)()],g.prototype,"realm",void 0),(0,o._)([(0,l.M)((0,M.P6)("dateFieldsTimeReference",!0))],g.prototype,"timeZone",void 0),g=(0,o._)([(0,a.$)("esri.layers.support.EditFieldsInfo")],g);const _=g;let x=class extends((0,v.O)(w.oY)){constructor(e){super(e)}};(0,o._)([(0,l.M)({constructOnly:!0,json:{write:!0}})],x.prototype,"name",void 0),(0,o._)([(0,l.M)({constructOnly:!0,json:{write:!0}})],x.prototype,"fields",void 0),(0,o._)([(0,l.M)({constructOnly:!0,json:{write:!0}})],x.prototype,"isAscending",void 0),(0,o._)([(0,l.M)({constructOnly:!0,json:{write:!0}})],x.prototype,"indexType",void 0),(0,o._)([(0,l.M)({constructOnly:!0,json:{write:!0}})],x.prototype,"isUnique",void 0),(0,o._)([(0,l.M)({constructOnly:!0,json:{write:!0}})],x.prototype,"description",void 0),x=(0,o._)([(0,a.$)("esri.layers.support.FeatureIndex")],x);var b=i(15426),j=i(83047);let S=class extends((0,v.O)(w.oY)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,o._)([(0,l.M)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],S.prototype,"shapeAreaField",void 0),(0,o._)([(0,l.M)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],S.prototype,"shapeLengthField",void 0),(0,o._)([(0,l.M)({type:String,json:{read:e=>j.dk.read(e)||j.Sk.read(e)}})],S.prototype,"units",void 0),S=(0,o._)([(0,a.$)("esri.layers.support.GeometryFieldsInfo")],S);const F=S;var I=i(37352),E=i(45067),O=i(22453),T=i(72088);let R=class extends((0,v.O)(w.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,T.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,o._)([(0,l.M)({type:Number,json:{write:!0}})],R.prototype,"code",void 0),(0,o._)([(0,l.M)({type:Object,json:{write:!0}})],R.prototype,"defaultValues",void 0),(0,o._)([(0,l.M)({json:{write:!0}})],R.prototype,"domains",void 0),(0,o._)([(0,p.w)("domains")],R.prototype,"readDomains",null),(0,o._)([(0,d.K)("domains")],R.prototype,"writeDomains",null),(0,o._)([(0,l.M)({type:String,json:{write:!0}})],R.prototype,"name",void 0),R=(0,o._)([(0,a.$)("esri.layers.support.Subtype")],R);const k=R,A=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(r.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:o}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(o.supportsUpdateByOthers&&o.supportsUpdateByAnonymous&&o.supportsDeleteByOthers&&o.supportsDeleteByAnonymous))return"load"}if(this.serviceDefinitionExpression?.toLowerCase().includes("current_user"))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,O.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,n.o8)(e),{operations:i,editing:o}=t;return(0,b.Pt)(this)?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=o.supportsDeleteByOthers=o.supportsGeometryUpdate=o.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=o.supportsGeometryUpdate=!0),t)}readGlobalIdFieldFromService(e,t){return(0,b.jD)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||(0,b.Pt)(this))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(0,b.Pt)(this)?!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:s.A.getLogger(this)});this._set("url",t.url),null!=t.layerId&&this._set("layerId",t.layerId)}writeUrl(e,t,i,o){(0,m.LS)(this,e,null,t,o)}readVersion(e,t){return(0,b.$4)(t)}};return(0,o._)([(0,l.M)({readOnly:!0})],t.prototype,"authenticationTriggerEvent",null),(0,o._)([(0,l.M)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,o._)([(0,l.M)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","isDataBranchVersioned","isDataVersioned","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,o._)([(0,p.w)("service","capabilities")],t.prototype,"readCapabilitiesFromService",null),(0,o._)([(0,l.M)((0,M.P6)("dateFieldsTimeReference"))],t.prototype,"dateFieldsTimeZone",void 0),(0,o._)([(0,l.M)({type:Boolean})],t.prototype,"datesInUnknownTimezone",void 0),(0,o._)([(0,l.M)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,o._)([(0,l.M)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],t.prototype,"displayField",void 0),(0,o._)([(0,l.M)({readOnly:!0,type:_})],t.prototype,"editFieldsInfo",void 0),(0,o._)([(0,l.M)({readOnly:!0})],t.prototype,"editingInfo",void 0),(0,o._)([(0,p.w)("editingInfo")],t.prototype,"readEditingInfo",null),(0,o._)([(0,l.M)({readOnly:!0})],t.prototype,"effectiveCapabilities",null),(0,o._)([(0,l.M)((()=>{const e=(0,n.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,o._)([(0,l.M)({type:I.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,o._)([(0,l.M)({type:y.A,json:{origins:{service:{read:{source:"extent"}}}}})],t.prototype,"fullExtent",void 0),(0,o._)([(0,l.M)()],t.prototype,"gdbVersion",void 0),(0,o._)([(0,l.M)({readOnly:!0,type:F,json:{read:{source:"geometryProperties"}}})],t.prototype,"geometryFieldsInfo",void 0),(0,o._)([(0,l.M)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:b.iX.read}}}})],t.prototype,"geometryType",void 0),(0,o._)([(0,l.M)({type:String})],t.prototype,"globalIdField",void 0),(0,o._)([(0,p.w)("service","globalIdField",["globalIdField","fields"])],t.prototype,"readGlobalIdFieldFromService",null),(0,o._)([(0,l.M)({readOnly:!0})],t.prototype,"hasFullEditingRestrictions",null),(0,o._)([(0,l.M)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasM",void 0),(0,o._)([(0,l.M)({readOnly:!0})],t.prototype,"hasUpdateItemRestrictions",null),(0,o._)([(0,l.M)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasZ",void 0),(0,o._)([(0,l.M)({readOnly:!0,type:c.A})],t.prototype,"heightModelInfo",void 0),(0,o._)([(0,l.M)({type:Date})],t.prototype,"historicMoment",void 0),(0,o._)([(0,l.M)({type:r.A.ofType(x),readOnly:!0})],t.prototype,"indexes",void 0),(0,o._)([(0,l.M)({readOnly:!0})],t.prototype,"isTable",void 0),(0,o._)([(0,p.w)("service","isTable",["type"])],t.prototype,"readIsTableFromService",null),(0,o._)([(0,l.M)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],t.prototype,"layerId",void 0),(0,o._)([(0,l.M)(f.hG)],t.prototype,"maxScale",void 0),(0,o._)([(0,p.w)("service","maxScale",["maxScale","effectiveMaxScale"])],t.prototype,"readMaxScale",null),(0,o._)([(0,l.M)(f.hn)],t.prototype,"minScale",void 0),(0,o._)([(0,p.w)("service","minScale",["minScale","effectiveMinScale"])],t.prototype,"readMinScale",null),(0,o._)([(0,l.M)({type:String})],t.prototype,"objectIdField",void 0),(0,o._)([(0,p.w)("service","objectIdField",["objectIdField","fields"])],t.prototype,"readObjectIdFieldFromService",null),(0,o._)([(0,l.M)((0,M.P6)("preferredTimeReference"))],t.prototype,"preferredTimeZone",void 0),(0,o._)([(0,l.M)({type:[E.A],readOnly:!0})],t.prototype,"relationships",void 0),(0,o._)([(0,l.M)({type:Boolean})],t.prototype,"returnM",void 0),(0,o._)([(0,l.M)({type:Boolean})],t.prototype,"returnZ",void 0),(0,o._)([(0,l.M)({readOnly:!0,json:{write:!1}})],t.prototype,"serverGens",void 0),(0,o._)([(0,l.M)({readOnly:!0})],t.prototype,"serviceDefinitionExpression",void 0),(0,o._)([(0,p.w)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],t.prototype,"readServiceDefinitionExpression",null),(0,o._)([(0,l.M)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"serviceItemId",void 0),(0,o._)([(0,l.M)()],t.prototype,"sourceJSON",void 0),(0,o._)([(0,l.M)({type:h.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],t.prototype,"spatialReference",void 0),(0,o._)([(0,l.M)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],t.prototype,"subtypeField",void 0),(0,o._)([(0,l.M)({type:[k],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"subtypes",void 0),(0,o._)([(0,l.M)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],t.prototype,"trackIdField",void 0),(0,o._)([(0,l.M)(f.OZ)],t.prototype,"url",null),(0,o._)([(0,d.K)("url")],t.prototype,"writeUrl",null),(0,o._)([(0,l.M)({json:{origins:{service:{read:!0}},read:!1}})],t.prototype,"version",void 0),(0,o._)([(0,p.w)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],t.prototype,"readVersion",null),t=(0,o._)([(0,a.$)("esri.layers.mixins.FeatureLayerBase")],t),t}},91908:(e,t,i)=>{i.d(t,{D:()=>n});var o=i(60694);const r=[];function n(e,t){if((0,o.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of r){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}r.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}]),r.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}]),r.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}]),r.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}]),r.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:()=>r,We:()=>l,Z3:()=>n,ZJ:()=>p,w5:()=>a});var o=i(78888);const r=(0,i(13069).vD)(),n=new Map,s=new Map;async function l(e,t,i){if(!e||!i)return!1;if(!t)return!0;const r=new URL(e).host;let s=n.get(r);if(!s){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");s=(await(0,o.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return s===t}async function p(e,t,o=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),l=s.get(n)?.entries();if(l)for(const[e,s]of l)if(s.name===t){const t=!s.stack?.hasForwardEdits();if(!t&&o){const[{deleteForwardEdits:t},{default:o}]=await Promise.all([i.e(2186).then(i.bind(i,32186)),i.e(2558).then(i.bind(i,32558))]),l=await t(n,e,new o({sessionId:r,moment:s.moment}));return l.success&&s.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*$/,""),o=s.get(i)?.entries();if(o)for(const[e,i]of o)if(i.name===t)return"edit"===i.lockType;return!1}new Map}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2780],{9582:(e,t,i)=>{i.d(t,{A:()=>it});var o,r=i(90237),n=i(25482),s=i(4718),l=i(3483),p=i(10107),a=i(79901),d=i(36005),u=i(40608),y=i(43937);i(44208),i(53966),i(87811);let c=o=class extends n.oY{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new o({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r._)([(0,p.M)({type:String,json:{write:!0}})],c.prototype,"expression",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,p.M)({type:["boolean","date","number","string"],json:{write:!0}})],c.prototype,"returnType",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],c.prototype,"title",void 0),c=o=(0,r._)([(0,u.$)("esri.form.ExpressionInfo")],c);const h=c;let m=class extends n.oY{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,r._)([(0,p.M)({type:String,json:{write:!0}})],m.prototype,"description",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],m.prototype,"label",void 0),(0,r._)([(0,p.M)()],m.prototype,"type",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],m.prototype,"visibilityExpression",void 0),m=(0,r._)([(0,u.$)("esri.form.elements.Element")],m);const f=m;var v=i(56507),w=i(69540);let M=class extends((0,w.O)(n.oY)){constructor(e){super(e),this.type=null}};(0,r._)([(0,p.M)()],M.prototype,"type",void 0),M=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.Input")],M);const g=M,_=["any","capture","upload"];let x=class extends g{constructor(e){super(e),this.type="audio",this.inputMethod="any",this.maxDuration=null}};(0,r._)([(0,p.M)({type:["audio"],readOnly:!0,json:{write:!0}})],x.prototype,"type",void 0),(0,r._)([(0,p.M)({type:_,json:{write:!0}})],x.prototype,"inputMethod",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],x.prototype,"maxDuration",void 0),x=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.AudioInput")],x);const b=x;let j=class extends g{constructor(e){super(e),this.type="document",this.maxFileSize=null}};(0,r._)([(0,p.M)({type:["document"],readOnly:!0,json:{write:!0}})],j.prototype,"type",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],j.prototype,"maxFileSize",void 0),j=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.DocumentInput")],j);const S=j;let F=class extends g{constructor(e){super(e),this.type="image",this.inputMethod="any",this.maxImageSize=null}};(0,r._)([(0,p.M)({type:["image"],readOnly:!0,json:{write:!0}})],F.prototype,"type",void 0),(0,r._)([(0,p.M)({type:_,json:{write:!0}})],F.prototype,"inputMethod",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],F.prototype,"maxImageSize",void 0),F=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.ImageInput")],F);const I=F;let E=class extends g{constructor(e){super(e),this.type="signature",this.inputMethod="any"}};(0,r._)([(0,p.M)({type:["signature"],readOnly:!0,json:{write:!0}})],E.prototype,"type",void 0),(0,r._)([(0,p.M)({type:_,json:{write:!0}})],E.prototype,"inputMethod",void 0),E=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.SignatureInput")],E);const O=E;let T=class extends g{constructor(e){super(e),this.type="video",this.inputMethod="any",this.maxDuration=null}};(0,r._)([(0,p.M)({type:["video"],readOnly:!0,json:{write:!0}})],T.prototype,"type",void 0),(0,r._)([(0,p.M)({type:_,json:{write:!0}})],T.prototype,"inputMethod",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],T.prototype,"maxDuration",void 0),T=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.VideoInput")],T);const R=T;function k(e){return{nestableTypes:{base:g,key:"type",typeMap:{audio:b,document:S,image:I,signature:O,video:R}},allTypes:{base:g,key:"type",typeMap:{attachment:e,audio:b,document:S,image:I,signature:O,video:R}}}}let A=class extends g{constructor(e){super(e),this.type="attachment",this.inputTypes=null}castInputs(e){return function(e,t){return e?e.map((e=>(0,v.aq)(t.nestableTypes,e))):null}(e,V)}readInputs(e,t){return function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter((e=>i[e.type])).map((e=>i[e.type].fromJSON(e)))}(t.inputTypes,V)}writeInputs(e,t){t.inputTypes=function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter((e=>i[e.type])).map((e=>e.toJSON()))}(e,V)}};(0,r._)([(0,p.M)({type:["attachment"],readOnly:!0,json:{write:!0}})],A.prototype,"type",void 0),(0,r._)([(0,p.M)({json:{write:{isRequired:!0}}})],A.prototype,"inputTypes",void 0),(0,r._)([(0,a.w)("inputTypes")],A.prototype,"castInputs",null),(0,r._)([(0,d.w)("inputTypes")],A.prototype,"readInputs",null),(0,r._)([(0,y.K)("inputTypes")],A.prototype,"writeInputs",null),A=(0,r._)([(0,u.$)("esri.form.elements.inputs.attachments.AttachmentInput")],A);const V=k(A);var U;const D=k(A);let C=U=class extends f{constructor(e){super(e),this.allowUserRename=!0,this.attachmentKeyword=null,this.displayFilename=!1,this.editableExpression=null,this.filenameExpression="{attachmentKeyword}_{now}",this.input=null,this.maxAttachmentCount=null,this.minAttachmentCount=0,this.type="attachment",this.useOriginalFilename=!0}clone(){return new U({allowUserRename:this.allowUserRename,attachmentKeyword:this.attachmentKeyword,description:this.description,displayFilename:this.displayFilename,editableExpression:this.editableExpression,filenameExpression:this.filenameExpression,input:this.input?.clone(),label:this.label,maxAttachmentCount:this.maxAttachmentCount,minAttachmentCount:this.minAttachmentCount,useOriginalFilename:this.useOriginalFilename,visibilityExpression:this.visibilityExpression})}};(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],C.prototype,"allowUserRename",void 0),(0,r._)([(0,p.M)({type:String,json:{write:{isRequired:!0}}})],C.prototype,"attachmentKeyword",void 0),(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],C.prototype,"displayFilename",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],C.prototype,"editableExpression",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],C.prototype,"filenameExpression",void 0),(0,r._)([(0,p.M)({types:D.allTypes,json:{read:{source:"inputType"},write:{target:"inputType",isRequired:!0}}})],C.prototype,"input",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],C.prototype,"maxAttachmentCount",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],C.prototype,"minAttachmentCount",void 0),(0,r._)([(0,p.M)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],C.prototype,"type",void 0),(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],C.prototype,"useOriginalFilename",void 0),C=U=(0,r._)([(0,u.$)("esri.form.elements.AttachmentElement")],C);const N=C;let B=class extends n.oY{constructor(e){super(e),this.type=null}};(0,r._)([(0,p.M)()],B.prototype,"type",void 0),B=(0,r._)([(0,u.$)("esri.form.elements.inputs.Input")],B);const $=B;let L=class extends ${constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],L.prototype,"maxLength",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],L.prototype,"minLength",void 0),L=(0,r._)([(0,u.$)("esri.form.elements.inputs.TextInput")],L);const H=L;var K;let G=K=class extends H{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new K({maxLength:this.maxLength,minLength:this.minLength})}};(0,r._)([(0,p.M)({type:["barcode-scanner"],json:{read:!1,write:!0}})],G.prototype,"type",void 0),G=K=(0,r._)([(0,u.$)("esri.form.elements.inputs.BarcodeScannerInput")],G);const P=G;var W;let Z=W=class extends ${constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new W({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Z.prototype,"noValueOptionLabel",void 0),(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],Z.prototype,"showNoValueOption",void 0),(0,r._)([(0,p.M)({type:["combo-box"],json:{read:!1,write:!0}})],Z.prototype,"type",void 0),Z=W=(0,r._)([(0,u.$)("esri.form.elements.inputs.ComboBoxInput")],Z);const q=Z;var Q;function z(e){return null!=e?e:null}function Y(e){return null!=e?e:null}let J=Q=class extends ${constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return z(t.max)}writeMax(e,t){t.max=Y(e)}readMin(e,t){return z(t.min)}writeMin(e,t){t.min=Y(e)}clone(){return new Q({max:this.max,min:this.min})}};(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],J.prototype,"max",void 0),(0,r._)([(0,d.w)("max")],J.prototype,"readMax",null),(0,r._)([(0,y.K)("max")],J.prototype,"writeMax",null),(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],J.prototype,"min",void 0),(0,r._)([(0,d.w)("min")],J.prototype,"readMin",null),(0,r._)([(0,y.K)("min")],J.prototype,"writeMin",null),(0,r._)([(0,p.M)({type:["date-picker"],json:{read:!1,write:!0}})],J.prototype,"type",void 0),J=Q=(0,r._)([(0,u.$)("esri.form.elements.inputs.DatePickerInput")],J);const X=J;var ee;function te(e){return null!=e?e:null}function ie(e){return null!=e?e:null}let oe=ee=class extends ${constructor(e){super(e),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="datetimeoffset-picker"}readMax(e,t){return te(t.max)}writeMax(e,t){t.max=ie(e)}readMin(e,t){return te(t.min)}writeMin(e,t){t.min=ie(e)}readTimeResolution(e,t){return te(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=ie(e)}clone(){return new ee({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],oe.prototype,"includeTimeOffset",void 0),(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],oe.prototype,"max",void 0),(0,r._)([(0,d.w)("max")],oe.prototype,"readMax",null),(0,r._)([(0,y.K)("max")],oe.prototype,"writeMax",null),(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],oe.prototype,"min",void 0),(0,r._)([(0,d.w)("min")],oe.prototype,"readMin",null),(0,r._)([(0,y.K)("min")],oe.prototype,"writeMin",null),(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],oe.prototype,"timeResolution",void 0),(0,r._)([(0,d.w)("timeResolution")],oe.prototype,"readTimeResolution",null),(0,r._)([(0,y.K)("timeResolution")],oe.prototype,"writeTimeResolution",null),(0,r._)([(0,p.M)({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],oe.prototype,"type",void 0),oe=ee=(0,r._)([(0,u.$)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],oe);const re=oe;var ne;function se(e){return null!=e?new Date(e):null}function le(e){return e?e.getTime():null}let pe=ne=class extends ${constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return se(t.max)}writeMax(e,t){t.max=le(e)}readMin(e,t){return se(t.min)}writeMin(e,t){t.min=le(e)}clone(){return new ne({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],pe.prototype,"includeTime",void 0),(0,r._)([(0,p.M)({type:Date,json:{type:Number,write:!0}})],pe.prototype,"max",void 0),(0,r._)([(0,d.w)("max")],pe.prototype,"readMax",null),(0,r._)([(0,y.K)("max")],pe.prototype,"writeMax",null),(0,r._)([(0,p.M)({type:Date,json:{type:Number,write:!0}})],pe.prototype,"min",void 0),(0,r._)([(0,d.w)("min")],pe.prototype,"readMin",null),(0,r._)([(0,y.K)("min")],pe.prototype,"writeMin",null),(0,r._)([(0,p.M)({type:["datetime-picker"],json:{read:!1,write:!0}})],pe.prototype,"type",void 0),pe=ne=(0,r._)([(0,u.$)("esri.form.elements.inputs.DateTimePickerInput")],pe);const ae=pe;var de;let ue=de=class extends ${constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new de({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,r._)([(0,p.M)({type:String,json:{write:!0}})],ue.prototype,"noValueOptionLabel",void 0),(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],ue.prototype,"showNoValueOption",void 0),(0,r._)([(0,p.M)({type:["radio-buttons"],json:{read:!1,write:!0}})],ue.prototype,"type",void 0),ue=de=(0,r._)([(0,u.$)("esri.form.elements.inputs.RadioButtonsInput")],ue);const ye=ue;var ce;let he=ce=class extends ${constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new ce({offValue:this.offValue,onValue:this.onValue})}};(0,r._)([(0,p.M)({type:[String,Number],json:{write:!0}})],he.prototype,"offValue",void 0),(0,r._)([(0,p.M)({type:[String,Number],json:{write:!0}})],he.prototype,"onValue",void 0),(0,r._)([(0,p.M)({type:["switch"],json:{read:!1,write:!0}})],he.prototype,"type",void 0),he=ce=(0,r._)([(0,u.$)("esri.form.elements.inputs.SwitchInput")],he);const me=he;var fe;let ve=fe=class extends H{constructor(e){super(e),this.type="text-area"}clone(){return new fe({maxLength:this.maxLength,minLength:this.minLength})}};(0,r._)([(0,p.M)({type:["text-area"],json:{read:!1,write:!0}})],ve.prototype,"type",void 0),ve=fe=(0,r._)([(0,u.$)("esri.form.elements.inputs.TextAreaInput")],ve);const we=ve;var Me;let ge=Me=class extends H{constructor(e){super(e),this.type="text-box"}clone(){return new Me({maxLength:this.maxLength,minLength:this.minLength})}};(0,r._)([(0,p.M)({type:["text-box"],json:{read:!1,write:!0}})],ge.prototype,"type",void 0),ge=Me=(0,r._)([(0,u.$)("esri.form.elements.inputs.TextBoxInput")],ge);const _e=ge;var xe;function be(e){return null!=e?e:null}function je(e){return null!=e?e:null}let Se=xe=class extends ${constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return be(t.max)}writeMax(e,t){t.max=je(e)}readMin(e,t){return be(t.min)}writeMin(e,t){t.min=je(e)}readTimeResolution(e,t){return be(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=je(e)}clone(){return new xe({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],Se.prototype,"max",void 0),(0,r._)([(0,d.w)("max")],Se.prototype,"readMax",null),(0,r._)([(0,y.K)("max")],Se.prototype,"writeMax",null),(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],Se.prototype,"min",void 0),(0,r._)([(0,d.w)("min")],Se.prototype,"readMin",null),(0,r._)([(0,y.K)("min")],Se.prototype,"writeMin",null),(0,r._)([(0,p.M)({type:String,json:{type:String,write:!0}})],Se.prototype,"timeResolution",void 0),(0,r._)([(0,d.w)("timeResolution")],Se.prototype,"readTimeResolution",null),(0,r._)([(0,y.K)("timeResolution")],Se.prototype,"writeTimeResolution",null),(0,r._)([(0,p.M)({type:["time-picker"],json:{read:!1,write:!0}})],Se.prototype,"type",void 0),Se=xe=(0,r._)([(0,u.$)("esri.form.elements.inputs.TimePickerInput")],Se);const Fe={base:$,key:"type",typeMap:{"barcode-scanner":P,"combo-box":q,"date-picker":X,"datetime-picker":ae,"datetimeoffset-picker":re,"radio-buttons":ye,switch:me,"text-area":we,"text-box":_e,"time-picker":Se}};var Ie,Ee=i(80451);let Oe=Ie=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 Ie({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,r._)([(0,p.M)({types:Ee.gK,json:{read:{reader:Ee.rS},write:!0}})],Oe.prototype,"domain",void 0),(0,r._)([(0,p.M)({type:Boolean,json:{write:!0}})],Oe.prototype,"editable",null),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Oe.prototype,"editableExpression",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Oe.prototype,"fieldName",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Oe.prototype,"hint",void 0),(0,r._)([(0,p.M)({types:Fe,json:{read:{source:"inputType"},write:{target:"inputType"}}})],Oe.prototype,"input",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Oe.prototype,"requiredExpression",void 0),(0,r._)([(0,p.M)({type:String,json:{read:!1,write:!0}})],Oe.prototype,"type",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Oe.prototype,"valueExpression",void 0),Oe=Ie=(0,r._)([(0,u.$)("esri.form.elements.FieldElement")],Oe);const Te=Oe;var Re,ke=i(49852);let Ae=Re=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 Re({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,s.o8)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],Ae.prototype,"displayCount",void 0),(0,r._)([(0,p.M)({type:["list"],json:{write:!0}})],Ae.prototype,"displayType",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Ae.prototype,"editableExpression",void 0),(0,r._)([(0,p.M)({type:[ke.A],json:{write:!0}})],Ae.prototype,"orderByFields",void 0),(0,r._)([(0,p.M)({type:Number,json:{write:!0}})],Ae.prototype,"relationshipId",void 0),(0,r._)([(0,p.M)({type:["relationship"],json:{read:!1,write:!0}})],Ae.prototype,"type",void 0),Ae=Re=(0,r._)([(0,u.$)("esri.form.elements.RelationshipElement")],Ae);const Ve=Ae;var Ue;let De=Ue=class extends f{constructor(e){super(e),this.text=null,this.textFormat="plain-text",this.type="text"}clone(){return new Ue({text:this.text,textFormat:this.textFormat,visibilityExpression:this.visibilityExpression})}};(0,r._)([(0,p.M)({type:String,json:{write:!0}})],De.prototype,"text",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],De.prototype,"textFormat",void 0),(0,r._)([(0,p.M)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],De.prototype,"type",void 0),De=Ue=(0,r._)([(0,u.$)("esri.form.elements.TextElement")],De);const Ce=De;function Ne(e){return{typesWithGroup:{base:f,key:"type",typeMap:{attachment:N,field:Te,group:e,relationship:Ve,text:Ce}},typesWithoutGroup:{base:f,key:"type",typeMap:{attachment:N,field:Te,relationship:Ve,text:Ce}}}}function Be(e,t,i=!0){if(!e)return null;const o=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>o[e.type])).map((e=>o[e.type].fromJSON(e)))}function $e(e,t,i=!0){if(!e)return null;const o=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>o[e.type])).map((e=>e.toJSON()))}function Le(e,t,i=!0){return e?e.map((e=>(0,v.aq)(i?t.typesWithGroup:t.typesWithoutGroup,e))):null}var He;let Ke=He=class extends f{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return Le(e,Ge,!1)}readElements(e,t){return Be(t.formElements,Ge,!1)}writeElements(e,t){t.formElements=$e(e,Ge,!1)}clone(){return new He({description:this.description,elements:(0,s.o8)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,r._)([(0,p.M)({json:{write:!0}})],Ke.prototype,"elements",void 0),(0,r._)([(0,a.w)("elements")],Ke.prototype,"castElements",null),(0,r._)([(0,d.w)("elements",["formElements"])],Ke.prototype,"readElements",null),(0,r._)([(0,y.K)("elements")],Ke.prototype,"writeElements",null),(0,r._)([(0,p.M)({type:["collapsed","expanded"],json:{write:!0}})],Ke.prototype,"initialState",void 0),(0,r._)([(0,p.M)({type:String,json:{read:!1,write:!0}})],Ke.prototype,"type",void 0),Ke=He=(0,r._)([(0,u.$)("esri.form.elements.GroupElement")],Ke);const Ge=Ne(Ke),Pe=Ke,We=e=>"field"===e.type,Ze=e=>"group"===e.type,qe=e=>"text"===e.type;var Qe,ze=i(30524);const Ye=Ne(Pe);let Je=Qe=class extends n.oY{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(e){return Le(e,Ye)}readElements(e,t){return Be(t.formElements,Ye)}writeElements(e,t){t.formElements=$e(e,Ye)}clone(){return new Qe({description:this.description,expressionInfos:(0,s.o8)(this.expressionInfos),elements:(0,s.o8)(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})}async getFieldsUsed(e,t){const i=new Set,{description:o,elements:r,expressionInfos:n,title:s}=this;if(tt(i,e,o),tt(i,e,s),!r)return[];const l=function(e,t){if(!t||0===t.length)return[];const i=et(e),o=[];for(const e of t)i.has(e.name)&&o.push(e.expression);return o}(r,n).map((t=>(0,ze.Dx)(i,e,t)));await Promise.all(l);for(const o of r)Xe(i,{fieldsIndex:e,relationships:t},o);return Array.from(i).sort()}};function Xe(e,t,i){const{fieldsIndex:o}=t;if(!o||o.fields.length!==e.size)switch(tt(e,o,i.label),tt(e,o,i.description),i.type){case"field":(0,ze.rq)(e,o,i.fieldName);break;case"group":i.elements.forEach((i=>Xe(e,t,i)));break;case"relationship":if(t.relationships){const r=t.relationships.find((e=>e.id===i.relationshipId));r&&(0,ze.rq)(e,o,r.keyField)}(0,ze._w)(e,o,i.orderByFields?.map((e=>e.field)));break;case"text":tt(e,o,i.text)}}function et(e){const t=new Set;for(const i of e)if((0,l.kb)(t,i.visibilityExpression),!qe(i))if(Ze(i))(0,l.FB)(t,et(i.elements));else if((0,l.kb)(t,i.editableExpression),We(i)){const{requiredExpression:e,valueExpression:o}=i;(0,l.FB)(t,[e,o])}return t}function tt(e,t,i){(0,ze._w)(e,t,(0,ze.nw)(i))}(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Je.prototype,"description",void 0),(0,r._)([(0,p.M)({json:{write:!0}})],Je.prototype,"elements",void 0),(0,r._)([(0,a.w)("elements")],Je.prototype,"castElements",null),(0,r._)([(0,d.w)("elements",["formElements"])],Je.prototype,"readElements",null),(0,r._)([(0,y.K)("elements")],Je.prototype,"writeElements",null),(0,r._)([(0,p.M)({type:[h],json:{write:!0}})],Je.prototype,"expressionInfos",void 0),(0,r._)([(0,p.M)({type:Boolean,json:{default:!1,write:!0}})],Je.prototype,"preserveFieldValuesWhenHidden",void 0),(0,r._)([(0,p.M)({type:String,json:{write:!0}})],Je.prototype,"title",void 0),Je=Qe=(0,r._)([(0,u.$)("esri.form.FormTemplate")],Je);const it=Je},54239:(e,t,i)=>{i.d(t,{A:()=>M});var o,r=i(90237),n=i(4576),s=i(66552),l=i(25482),p=i(83047),a=i(67076),d=i(10107),u=(i(44208),i(53966),i(36005)),y=i(40608),c=i(43937);const h=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,n.Xy)(m,"orthometric");const f=(0,s.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=o=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(w(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,p.LA)(e)||f.read(e)||(i?.messages&&i.messages.push(w(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new o({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 o({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 o;return t.read(e,{origin:"web-scene"}),t}};function w(e,t){return new a.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,r._)([(0,d.M)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],v.prototype,"heightModel",void 0),(0,r._)([(0,c.K)("web-scene","heightModel")],v.prototype,"writeHeightModel",null),(0,r._)([(0,u.w)(["web-scene","service"],"heightModel")],v.prototype,"readHeightModel",null),(0,r._)([(0,d.M)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],v.prototype,"heightUnit",void 0),(0,r._)([(0,u.w)("web-scene","heightUnit")],v.prototype,"readHeightUnit",null),(0,r._)([(0,u.w)("service","heightUnit")],v.prototype,"readHeightUnitService",null),(0,r._)([(0,d.M)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],v.prototype,"vertCRS",void 0),(0,r._)([(0,u.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],v.prototype,"readVertCRS",null),v=o=(0,r._)([(0,y.$)("esri.geometry.HeightModelInfo")],v);const M=v},47685:(e,t,i)=>{i.d(t,{Mk:()=>c,Zk:()=>u,w6:()=>f});var o=i(90237),r=i(65529),n=i(4718),s=i(74887),l=i(10107),p=(i(44208),i(53966),i(40608)),a=i(20816);const d=new r.A.EventEmitter;function u(e,t,i=null,o=!1){const r=(0,s.Tw)();return o=null==t||o,d.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:o,result:r.promise}),r}const y=Symbol();function c(e){return null!=e&&"object"==typeof e&&y in e}function h(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,i){const o=new URL(e).host,r=a.Z3.get(o),n=e=>!e||e===r;return n(t)&&n(i)||t===i}const f=e=>{var t;let i=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:o,mayReceiveServiceEdits:r,result:s}=e,l=t===this.url,p=null!=i&&null!=this.layerId&&i===this.layerId,a=h(this),d=h(this)&&m(t,o,this.gdbVersion);if(!l||a&&!d||!p&&!r)return;const u=s.then((e=>{if(this.lastEditsEventDate=new Date,p&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;const i=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(i){const{adds:t,updates:o,deletes:r}=i.editedFeatures,s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:r?r.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:o?o.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",s),s}const r={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,o,r.historicMoment)&&this.emit("edits",r),r})).then((e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,o,e.historicMoment)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:u})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:o}=e,r=t===this.url,n=h(this),s=h(this)&&m(t,i,this.gdbVersion),l=h(this)&&!m(t,this.gdbVersion,null);r&&n&&s&&l&&"historicMoment"in this&&this.historicMoment!==o&&(this.historicMoment=o)},this.when().then((()=>{this.addHandles(function(e){return d.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return d.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,a.w5)(e,t)}};return t=y,(0,o._)([(0,l.M)()],i.prototype,"lastEditsEventDate",void 0),i=(0,o._)([(0,p.$)("esri.layers.mixins.EditBusLayer")],i),i}},87796:(e,t,i)=>{i.d(t,{j:()=>A});var o=i(90237),r=i(5503),n=i(4718),s=i(53966),l=i(10107),p=(i(44208),i(36005)),a=i(40608),d=i(43937),u=i(89317),y=i(5443),c=i(54239),h=i(16930),m=i(60694),f=i(10873),v=i(69540),w=i(25482),M=(i(87811),i(56400));let g=class extends((0,v.O)(w.oY)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,o._)([(0,l.M)()],g.prototype,"creatorField",void 0),(0,o._)([(0,l.M)()],g.prototype,"creationDateField",void 0),(0,o._)([(0,l.M)()],g.prototype,"editorField",void 0),(0,o._)([(0,l.M)()],g.prototype,"editDateField",void 0),(0,o._)([(0,l.M)()],g.prototype,"realm",void 0),(0,o._)([(0,l.M)((0,M.P6)("dateFieldsTimeReference",!0))],g.prototype,"timeZone",void 0),g=(0,o._)([(0,a.$)("esri.layers.support.EditFieldsInfo")],g);const _=g;let x=class extends((0,v.O)(w.oY)){constructor(e){super(e)}};(0,o._)([(0,l.M)({constructOnly:!0,json:{write:!0}})],x.prototype,"name",void 0),(0,o._)([(0,l.M)({constructOnly:!0,json:{write:!0}})],x.prototype,"fields",void 0),(0,o._)([(0,l.M)({constructOnly:!0,json:{write:!0}})],x.prototype,"isAscending",void 0),(0,o._)([(0,l.M)({constructOnly:!0,json:{write:!0}})],x.prototype,"indexType",void 0),(0,o._)([(0,l.M)({constructOnly:!0,json:{write:!0}})],x.prototype,"isUnique",void 0),(0,o._)([(0,l.M)({constructOnly:!0,json:{write:!0}})],x.prototype,"description",void 0),x=(0,o._)([(0,a.$)("esri.layers.support.FeatureIndex")],x);var b=i(15426),j=i(83047);let S=class extends((0,v.O)(w.oY)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,o._)([(0,l.M)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],S.prototype,"shapeAreaField",void 0),(0,o._)([(0,l.M)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],S.prototype,"shapeLengthField",void 0),(0,o._)([(0,l.M)({type:String,json:{read:e=>j.dk.read(e)||j.Sk.read(e)}})],S.prototype,"units",void 0),S=(0,o._)([(0,a.$)("esri.layers.support.GeometryFieldsInfo")],S);const F=S;var I=i(37352),E=i(45067),O=i(22453),T=i(80451);let R=class extends((0,v.O)(w.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,T.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,o._)([(0,l.M)({type:Number,json:{write:!0}})],R.prototype,"code",void 0),(0,o._)([(0,l.M)({type:Object,json:{write:!0}})],R.prototype,"defaultValues",void 0),(0,o._)([(0,l.M)({json:{write:!0}})],R.prototype,"domains",void 0),(0,o._)([(0,p.w)("domains")],R.prototype,"readDomains",null),(0,o._)([(0,d.K)("domains")],R.prototype,"writeDomains",null),(0,o._)([(0,l.M)({type:String,json:{write:!0}})],R.prototype,"name",void 0),R=(0,o._)([(0,a.$)("esri.layers.support.Subtype")],R);const k=R,A=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(r.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:o}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(o.supportsUpdateByOthers&&o.supportsUpdateByAnonymous&&o.supportsDeleteByOthers&&o.supportsDeleteByAnonymous))return"load"}if(this.serviceDefinitionExpression?.toLowerCase().includes("current_user"))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,O.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,n.o8)(e),{operations:i,editing:o}=t;return(0,b.Pt)(this)?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=o.supportsDeleteByOthers=o.supportsGeometryUpdate=o.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=o.supportsGeometryUpdate=!0),t)}readGlobalIdFieldFromService(e,t){return(0,b.jD)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||(0,b.Pt)(this))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(0,b.Pt)(this)?!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:s.A.getLogger(this)});this._set("url",t.url),null!=t.layerId&&this._set("layerId",t.layerId)}writeUrl(e,t,i,o){(0,m.LS)(this,e,null,t,o)}readVersion(e,t){return(0,b.$4)(t)}};return(0,o._)([(0,l.M)({readOnly:!0})],t.prototype,"authenticationTriggerEvent",null),(0,o._)([(0,l.M)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,o._)([(0,l.M)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","isDataBranchVersioned","isDataVersioned","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,o._)([(0,p.w)("service","capabilities")],t.prototype,"readCapabilitiesFromService",null),(0,o._)([(0,l.M)((0,M.P6)("dateFieldsTimeReference"))],t.prototype,"dateFieldsTimeZone",void 0),(0,o._)([(0,l.M)({type:Boolean})],t.prototype,"datesInUnknownTimezone",void 0),(0,o._)([(0,l.M)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,o._)([(0,l.M)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],t.prototype,"displayField",void 0),(0,o._)([(0,l.M)({readOnly:!0,type:_})],t.prototype,"editFieldsInfo",void 0),(0,o._)([(0,l.M)({readOnly:!0})],t.prototype,"editingInfo",void 0),(0,o._)([(0,p.w)("editingInfo")],t.prototype,"readEditingInfo",null),(0,o._)([(0,l.M)({readOnly:!0})],t.prototype,"effectiveCapabilities",null),(0,o._)([(0,l.M)((()=>{const e=(0,n.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,o._)([(0,l.M)({type:I.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,o._)([(0,l.M)({type:y.A,json:{origins:{service:{read:{source:"extent"}}}}})],t.prototype,"fullExtent",void 0),(0,o._)([(0,l.M)()],t.prototype,"gdbVersion",void 0),(0,o._)([(0,l.M)({readOnly:!0,type:F,json:{read:{source:"geometryProperties"}}})],t.prototype,"geometryFieldsInfo",void 0),(0,o._)([(0,l.M)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:b.iX.read}}}})],t.prototype,"geometryType",void 0),(0,o._)([(0,l.M)({type:String})],t.prototype,"globalIdField",void 0),(0,o._)([(0,p.w)("service","globalIdField",["globalIdField","fields"])],t.prototype,"readGlobalIdFieldFromService",null),(0,o._)([(0,l.M)({readOnly:!0})],t.prototype,"hasFullEditingRestrictions",null),(0,o._)([(0,l.M)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasM",void 0),(0,o._)([(0,l.M)({readOnly:!0})],t.prototype,"hasUpdateItemRestrictions",null),(0,o._)([(0,l.M)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasZ",void 0),(0,o._)([(0,l.M)({readOnly:!0,type:c.A})],t.prototype,"heightModelInfo",void 0),(0,o._)([(0,l.M)({type:Date})],t.prototype,"historicMoment",void 0),(0,o._)([(0,l.M)({type:r.A.ofType(x),readOnly:!0})],t.prototype,"indexes",void 0),(0,o._)([(0,l.M)({readOnly:!0})],t.prototype,"isTable",void 0),(0,o._)([(0,p.w)("service","isTable",["type"])],t.prototype,"readIsTableFromService",null),(0,o._)([(0,l.M)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],t.prototype,"layerId",void 0),(0,o._)([(0,l.M)(f.hG)],t.prototype,"maxScale",void 0),(0,o._)([(0,p.w)("service","maxScale",["maxScale","effectiveMaxScale"])],t.prototype,"readMaxScale",null),(0,o._)([(0,l.M)(f.hn)],t.prototype,"minScale",void 0),(0,o._)([(0,p.w)("service","minScale",["minScale","effectiveMinScale"])],t.prototype,"readMinScale",null),(0,o._)([(0,l.M)({type:String})],t.prototype,"objectIdField",void 0),(0,o._)([(0,p.w)("service","objectIdField",["objectIdField","fields"])],t.prototype,"readObjectIdFieldFromService",null),(0,o._)([(0,l.M)((0,M.P6)("preferredTimeReference"))],t.prototype,"preferredTimeZone",void 0),(0,o._)([(0,l.M)({type:[E.A],readOnly:!0})],t.prototype,"relationships",void 0),(0,o._)([(0,l.M)({type:Boolean})],t.prototype,"returnM",void 0),(0,o._)([(0,l.M)({type:Boolean})],t.prototype,"returnZ",void 0),(0,o._)([(0,l.M)({readOnly:!0,json:{write:!1}})],t.prototype,"serverGens",void 0),(0,o._)([(0,l.M)({readOnly:!0})],t.prototype,"serviceDefinitionExpression",void 0),(0,o._)([(0,p.w)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],t.prototype,"readServiceDefinitionExpression",null),(0,o._)([(0,l.M)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"serviceItemId",void 0),(0,o._)([(0,l.M)()],t.prototype,"sourceJSON",void 0),(0,o._)([(0,l.M)({type:h.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],t.prototype,"spatialReference",void 0),(0,o._)([(0,l.M)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],t.prototype,"subtypeField",void 0),(0,o._)([(0,l.M)({type:[k],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"subtypes",void 0),(0,o._)([(0,l.M)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],t.prototype,"trackIdField",void 0),(0,o._)([(0,l.M)(f.OZ)],t.prototype,"url",null),(0,o._)([(0,d.K)("url")],t.prototype,"writeUrl",null),(0,o._)([(0,l.M)({json:{origins:{service:{read:!0}},read:!1}})],t.prototype,"version",void 0),(0,o._)([(0,p.w)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],t.prototype,"readVersion",null),t=(0,o._)([(0,a.$)("esri.layers.mixins.FeatureLayerBase")],t),t}},91908:(e,t,i)=>{i.d(t,{D:()=>n});var o=i(60694);const r=[];function n(e,t){if((0,o.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of r){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}r.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}]),r.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}]),r.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}]),r.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}]),r.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:()=>r,We:()=>l,Z3:()=>n,ZJ:()=>p,w5:()=>a});var o=i(78888);const r=(0,i(13069).vD)(),n=new Map,s=new Map;async function l(e,t,i){if(!e||!i)return!1;if(!t)return!0;const r=new URL(e).host;let s=n.get(r);if(!s){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");s=(await(0,o.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return s===t}async function p(e,t,o=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),l=s.get(n)?.entries();if(l)for(const[e,s]of l)if(s.name===t){const t=!s.stack?.hasForwardEdits();if(!t&&o){const[{deleteForwardEdits:t},{default:o}]=await Promise.all([i.e(2186).then(i.bind(i,32186)),i.e(2558).then(i.bind(i,32558))]),l=await t(n,e,new o({sessionId:r,moment:s.moment}));return l.success&&s.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*$/,""),o=s.get(i)?.entries();if(o)for(const[e,i]of o)if(i.name===t)return"edit"===i.lockType;return!1}new Map}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2931],{38961:(e,t,r)=>{r.d(t,{A:()=>p});var i=r(90237),s=r(5503),o=(r(60999),r(49186),r(53966),r(14012),r(80559)),n=r(10107),l=r(40608);let a=class extends s.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,o.fm)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new s.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i._)([(0,n.M)()],a.prototype,"getCollections",void 0),(0,i._)([(0,n.M)()],a.prototype,"getChildrenFunction",void 0),(0,i._)([(0,n.M)()],a.prototype,"itemFilterFunction",void 0),a=(0,i._)([(0,l.$)("esri.core.CollectionFlattener")],a);const p=a},88303:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Xe});var i=r(90237),s=r(5503),o=r(38961),n=r(49186),l=r(4718),a=r(81583),p=r(53966),y=r(92071),u=r(74887),d=r(84952),c=r(10107),h=(r(44208),r(36005)),f=r(40608),g=r(16930),m=r(4146),v=r(52106),_=r(13874),b=(r(86162),r(94409),r(65345),r(42980),r(20917),r(92438),r(96576),r(93618),r(65494),r(15036)),w=r(78888),M=r(66552),S=r(92474),x=r(61893),F=(r(87811),r(93223)),A=r(5443),O=r(13600),j=r(4902),T=r(56507),L=r(10873);let I=class extends((0,j.sA)(y.L)){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.legendEnabled=!0,this.visible=!0,this.opacity=1}readTitle(e,t){return"string"==typeof t.alias?t.alias:"string"==typeof t.name?t.name:""}readIdOnlyOnce(e){return-1!==this.id?this.id:"number"==typeof e?e:-1}};(0,i._)([(0,c.M)({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],I.prototype,"title",void 0),(0,i._)([(0,h.w)("service","title",["alias","name"])],I.prototype,"readTitle",null),(0,i._)([(0,c.M)()],I.prototype,"layer",void 0),(0,i._)([(0,c.M)({type:T.jz,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],I.prototype,"id",void 0),(0,i._)([(0,h.w)("service","id")],I.prototype,"readIdOnlyOnce",null),(0,i._)([(0,c.M)((0,L.Qo)(String))],I.prototype,"modelName",void 0),(0,i._)([(0,c.M)((0,L.Qo)(Boolean))],I.prototype,"isEmpty",void 0),(0,i._)([(0,c.M)({type:Boolean,nonNullable:!0})],I.prototype,"legendEnabled",void 0),(0,i._)([(0,c.M)({type:Boolean,json:{name:"visibility",write:!0}})],I.prototype,"visible",void 0),(0,i._)([(0,c.M)({type:Number,json:{write:!0}})],I.prototype,"opacity",void 0),I=(0,i._)([(0,f.$)("esri.layers.buildingSublayers.BuildingSublayer")],I);const R=I;var P=r(4071),B=r(17036),q=r(95466),N=r(30524),E=r(83898),C=r(50805),k=r(61956),$=r(30291),Q=r(88625),z=r(74664),D=r(45671);const G=(0,B.p)();let J=class extends(S.A.LoadableMixin((0,x.g)(R))){constructor(e){super(e),this.type="building-component",this.nodePages=null,this.materialDefinitions=[],this.textureSetDefinitions=[],this.geometryDefinitions=[],this.indexInfo=null,this.serviceUpdateTimeStamp=null,this.store=null,this.attributeStorageInfo=[],this.fields=[],this.associatedLayer=null,this.outFields=null,this.listMode="show",this.renderer=null,this.definitionExpression=null,this.popupEnabled=!0,this.popupTemplate=null,this.layerType="3d-object"}get parsedUrl(){return this.layer?{path:`${this.layer.parsedUrl?.path}/sublayers/${this.id}`,query:this.layer.parsedUrl?.query}:{path:""}}get fieldsIndex(){return new q.A(this.fields)}readAssociatedLayer(e,t){const r=this.layer.associatedFeatureServiceItem,i=t.associatedLayerID;return null!=r&&"number"==typeof i?new O.default({portalItem:r,customParameters:this.customParameters,layerId:i}):null}get objectIdField(){if(null!=this.fields)for(const e of this.fields)if("oid"===e.type)return e.name;return null}get displayField(){return null!=this.associatedLayer?this.associatedLayer.displayField:void 0}get apiKey(){return this.layer.apiKey}get customParameters(){return this.layer.customParameters}get fullExtent(){return this.layer.fullExtent}get spatialReference(){return this.layer.spatialReference}get version(){return this.layer.version}get elevationInfo(){return this.layer.elevationInfo}get minScale(){return this.layer.minScale}get maxScale(){return this.layer.maxScale}get effectiveScaleRange(){return this.layer.effectiveScaleRange}get defaultPopupTemplate(){return this.createPopupTemplate()}load(e){const t=null!=e?e.signal:null,r=this._fetchService(t).then((()=>{this.indexInfo=(0,E.F)(this.parsedUrl.path,this.rootNode,this.nodePages,this.customParameters,this.apiKey,p.A.getLogger(this),t)}));return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){return(0,$.tn)(this,e)}async _fetchService(e){const t=(await(0,w.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service",url:this.parsedUrl})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getFeatureType(t?.feature)?.domains?.[e];return r&&"inherited"!==r.type?r:this.getField(e)?.domain??null}getFeatureType(e){return e&&null!=this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return null!=this.associatedLayer?this.associatedLayer.types??[]:[]}get typeIdField(){return null!=this.associatedLayer?this.associatedLayer.typeIdField:null}get geometryType(){return"3d-object"===this.layerType?"mesh":"point"}get profile(){return"3d-object"===this.layerType?"mesh-pyramids":"points"}get capabilities(){const e=null!=this.associatedLayer&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:P.P,{query:t,data:{supportsZ:r,supportsM:i,isVersioned:s}}=e;return{query:t,data:{supportsZ:r,supportsM:i,isVersioned:s}}}createQuery(){const e=new k.A;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this.layer,t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}async queryCachedAttributes(e,t){const r=(0,N.hL)(this.fieldsIndex,await(0,D.TO)(this,(0,D.D8)(this)));return(0,z.s1)(this.parsedUrl.path,this.attributeStorageInfo,e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new n.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");return new v.A({attributes:r[0],layer:this,sourceLayer:this})}getFieldUsageInfo(e){return this.fieldsIndex.has(e)?{supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1}:{supportsLabelingInfo:!1,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:null!=this.associatedLayer}}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return null!=e&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),null==this.associatedLayer)throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer component layer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}};(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"parsedUrl",null),(0,i._)([(0,c.M)({type:C.W4,readOnly:!0})],J.prototype,"nodePages",void 0),(0,i._)([(0,c.M)({type:[C.uV],readOnly:!0})],J.prototype,"materialDefinitions",void 0),(0,i._)([(0,c.M)({type:[C.Ot],readOnly:!0})],J.prototype,"textureSetDefinitions",void 0),(0,i._)([(0,c.M)({type:[C.L0],readOnly:!0})],J.prototype,"geometryDefinitions",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"serviceUpdateTimeStamp",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"store",void 0),(0,i._)([(0,c.M)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],J.prototype,"rootNode",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,c.M)(G.fields)],J.prototype,"fields",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"fieldsIndex",null),(0,i._)([(0,c.M)({readOnly:!0,type:O.default})],J.prototype,"associatedLayer",void 0),(0,i._)([(0,h.w)("service","associatedLayer",["associatedLayerID"])],J.prototype,"readAssociatedLayer",null),(0,i._)([(0,c.M)(G.outFields)],J.prototype,"outFields",void 0),(0,i._)([(0,c.M)({type:String,readOnly:!0})],J.prototype,"objectIdField",null),(0,i._)([(0,c.M)({readOnly:!0,type:String,json:{read:!1}})],J.prototype,"displayField",null),(0,i._)([(0,c.M)({readOnly:!0,type:String})],J.prototype,"apiKey",null),(0,i._)([(0,c.M)({readOnly:!0,type:String})],J.prototype,"customParameters",null),(0,i._)([(0,c.M)({readOnly:!0,type:A.A})],J.prototype,"fullExtent",null),(0,i._)([(0,c.M)({readOnly:!0,type:g.A})],J.prototype,"spatialReference",null),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"version",null),(0,i._)([(0,c.M)({readOnly:!0,type:Q.A})],J.prototype,"elevationInfo",null),(0,i._)([(0,c.M)({readOnly:!0,type:Number})],J.prototype,"minScale",null),(0,i._)([(0,c.M)({readOnly:!0,type:Number})],J.prototype,"maxScale",null),(0,i._)([(0,c.M)({readOnly:!0,type:Number})],J.prototype,"effectiveScaleRange",null),(0,i._)([(0,c.M)({type:["hide","show"],json:{write:!0}})],J.prototype,"listMode",void 0),(0,i._)([(0,c.M)({types:b.X,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],J.prototype,"renderer",void 0),(0,i._)([(0,c.M)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],J.prototype,"definitionExpression",void 0),(0,i._)([(0,c.M)(L.M6)],J.prototype,"popupEnabled",void 0),(0,i._)([(0,c.M)({type:_.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],J.prototype,"popupTemplate",void 0),(0,i._)([(0,c.M)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],J.prototype,"normalReferenceFrame",void 0),(0,i._)([(0,c.M)({readOnly:!0,json:{read:!1}})],J.prototype,"defaultPopupTemplate",null),(0,i._)([(0,c.M)()],J.prototype,"types",null),(0,i._)([(0,c.M)()],J.prototype,"typeIdField",null),(0,i._)([(0,c.M)({json:{write:!1}}),(0,F.e)(new M.J({"3DObject":"3d-object",Point:"point"}))],J.prototype,"layerType",void 0),(0,i._)([(0,c.M)()],J.prototype,"geometryType",null),(0,i._)([(0,c.M)()],J.prototype,"profile",null),(0,i._)([(0,c.M)({readOnly:!0,json:{read:!1}})],J.prototype,"capabilities",null),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"statisticsInfo",void 0),J=(0,i._)([(0,f.$)("esri.layers.buildingSublayers.BuildingComponentSublayer")],J);const K=J;var U,V=r(67076);const Y={type:s.A,readOnly:!0,json:{origins:{service:{read:{source:"sublayers",reader:Z}}},read:!1}};function Z(e,t,r){if(e&&Array.isArray(e))return new s.A(e.map((e=>{const t=function(e){return"group"===e.layerType?H:K}(e);if(t){const i=new t;return i.read(e,r),i}return r?.messages&&e&&r.messages.push(new V.A("building-scene-layer:unsupported-sublayer-type","Building scene sublayer of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:r})),null})))}let H=U=class extends R{constructor(e){super(e),this.type="building-group",this.listMode="show",this.sublayers=null}loadAll(){return(0,a.L)(this,(e=>U.forEachSublayer(this.sublayers,(t=>{"building-group"!==t.type&&e(t)}))))}};var X;(0,i._)([(0,c.M)({type:["hide","show","hide-children"],json:{write:!0}})],H.prototype,"listMode",void 0),(0,i._)([(0,c.M)(Y)],H.prototype,"sublayers",void 0),H=U=(0,i._)([(0,f.$)("esri.layers.buildingSublayers.BuildingGroupSublayer")],H),(X=H||(H={})).sublayersProperty=Y,X.readSublayers=Z,X.forEachSublayer=function e(t,r){t.forEach((t=>{r(t),"building-group"===t.type&&e(t.sublayers,r)}))};const W=H;var ee=r(52136),te=r(18768),re=r(69208),ie=r(16131),se=r(8303),oe=r(25036),ne=r(58947),le=r(92009),ae=r(25482),pe=r(13069);let ye=class extends ae.oY{constructor(){super(...arguments),this.type=null}};(0,i._)([(0,c.M)({type:String,readOnly:!0,json:{write:!0}})],ye.prototype,"type",void 0),ye=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfo")],ye);const ue=ye;var de;let ce=de=class extends ae.oY{constructor(){super(...arguments),this.filterType=null,this.filterValues=null}clone(){return new de({filterType:this.filterType,filterValues:(0,l.o8)(this.filterValues)})}};(0,i._)([(0,c.M)({type:String,json:{write:!0}})],ce.prototype,"filterType",void 0),(0,i._)([(0,c.M)({type:[String],json:{write:!0}})],ce.prototype,"filterValues",void 0),ce=de=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfoType")],ce);const he=ce;var fe;const ge=s.A.ofType(he);let me=fe=class extends ae.oY{clone(){return new fe({filterTypes:(0,l.o8)(this.filterTypes)})}};(0,i._)([(0,c.M)({type:ge,json:{write:!0}})],me.prototype,"filterTypes",void 0),me=fe=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfoBlock")],me);const ve=me;var _e;const be=s.A.ofType(ve);let we=_e=class extends ue{constructor(){super(...arguments),this.type="checkbox"}clone(){return new _e({filterBlocks:(0,l.o8)(this.filterBlocks)})}};(0,i._)([(0,c.M)({type:["checkbox"]})],we.prototype,"type",void 0),(0,i._)([(0,c.M)({type:be,json:{write:!0}})],we.prototype,"filterBlocks",void 0),we=_e=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfoCheckbox")],we);const Me=we;let Se=class extends ae.oY{};(0,i._)([(0,c.M)({readOnly:!0,json:{read:!1}})],Se.prototype,"type",void 0),Se=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterMode")],Se);const xe=Se;var Fe;let Ae=Fe=class extends xe{constructor(){super(...arguments),this.type="solid"}clone(){return new Fe}};(0,i._)([(0,c.M)({type:["solid"],readOnly:!0,json:{write:!0}})],Ae.prototype,"type",void 0),Ae=Fe=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterModeSolid")],Ae);const Oe=Ae;var je,Te=r(51734);let Le=je=class extends xe{constructor(){super(...arguments),this.type="wire-frame",this.edges=null}clone(){return new je({edges:(0,l.o8)(this.edges)})}};(0,i._)([(0,F.e)({wireFrame:"wire-frame"})],Le.prototype,"type",void 0),(0,i._)([(0,c.M)(Te.J)],Le.prototype,"edges",void 0),Le=je=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterModeWireFrame")],Le);const Ie=Le;var Re;let Pe=Re=class extends xe{constructor(){super(...arguments),this.type="x-ray"}clone(){return new Re}};(0,i._)([(0,c.M)({type:["x-ray"],readOnly:!0,json:{write:!0}})],Pe.prototype,"type",void 0),Pe=Re=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterModeXRay")],Pe);const Be=Pe;var qe;const Ne={nonNullable:!0,types:{key:"type",base:xe,typeMap:{solid:Oe,"wire-frame":Ie,"x-ray":Be}},json:{read:e=>{switch(e?.type){case"solid":return Oe.fromJSON(e);case"wireFrame":return Ie.fromJSON(e);case"x-ray":return Be.fromJSON(e);default:return}},write:{enabled:!0,isRequired:!0}}};let Ee=qe=class extends ae.oY{constructor(){super(...arguments),this.filterExpression=null,this.filterMode=new Oe,this.title=""}clone(){return new qe({filterExpression:this.filterExpression,filterMode:(0,l.o8)(this.filterMode),title:this.title})}};(0,i._)([(0,c.M)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"filterExpression",void 0),(0,i._)([(0,c.M)(Ne)],Ee.prototype,"filterMode",void 0),(0,i._)([(0,c.M)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"title",void 0),Ee=qe=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterBlock")],Ee);const Ce=Ee;var ke;const $e=s.A.ofType(Ce);let Qe=ke=class extends ae.oY{constructor(){super(...arguments),this.description=null,this.filterBlocks=null,this.id=(0,pe.lk)(),this.name=null}clone(){return new ke({description:this.description,filterBlocks:(0,l.o8)(this.filterBlocks),id:this.id,name:this.name,filterAuthoringInfo:(0,l.o8)(this.filterAuthoringInfo)})}};(0,i._)([(0,c.M)({type:String,json:{write:!0}})],Qe.prototype,"description",void 0),(0,i._)([(0,c.M)({type:$e,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"filterBlocks",void 0),(0,i._)([(0,c.M)({types:{key:"type",base:ue,typeMap:{checkbox:Me}},json:{read:e=>"checkbox"===e?.type?Me.fromJSON(e):null,write:!0}})],Qe.prototype,"filterAuthoringInfo",void 0),(0,i._)([(0,c.M)({type:String,constructOnly:!0,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"id",void 0),(0,i._)([(0,c.M)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"name",void 0),Qe=ke=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilter")],Qe);const ze=Qe;let De=class extends ae.oY{constructor(){super(...arguments),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};(0,i._)([(0,c.M)({type:String})],De.prototype,"fieldName",void 0),(0,i._)([(0,c.M)({type:String})],De.prototype,"modelName",void 0),(0,i._)([(0,c.M)({type:String})],De.prototype,"label",void 0),(0,i._)([(0,c.M)({type:Number})],De.prototype,"min",void 0),(0,i._)([(0,c.M)({type:Number})],De.prototype,"max",void 0),(0,i._)([(0,c.M)({json:{read:e=>Array.isArray(e)&&(e.every((e=>"string"==typeof e))||e.every((e=>"number"==typeof e)))?e.slice():null}})],De.prototype,"mostFrequentValues",void 0),(0,i._)([(0,c.M)({type:[Number]})],De.prototype,"subLayerIds",void 0),De=(0,i._)([(0,f.$)("esri.layers.support.BuildingSummaryStatistics.BuildingFieldStatistics")],De);let Ge=class extends(S.A.LoadableMixin((0,x.g)(ae.oY))){constructor(){super(...arguments),this.url=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(p.A.getLogger(this).error("building summary statistics are not loaded"),null)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}async _fetchService(e){const t=(await(0,w.A)(this.url,{query:{f:"json"},responseType:"json",signal:e})).data;this.read(t,{origin:"service"})}};(0,i._)([(0,c.M)({constructOnly:!0,type:String})],Ge.prototype,"url",void 0),(0,i._)([(0,c.M)({readOnly:!0,type:[De],json:{read:{source:"summary"}}})],Ge.prototype,"fields",null),Ge=(0,i._)([(0,f.$)("esri.layers.support.BuildingSummaryStatistics")],Ge);const Je=Ge;var Ke=r(24212);const Ue=s.A.ofType(ze),Ve=(0,l.o8)(W.sublayersProperty),Ye=Ve.json?.origins;Ye&&(Ye["web-scene"]={type:[K],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},Ye["portal-item"]={type:[K],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let Ze=class extends((0,ne.w6)((0,te.b)((0,ie.q)((0,se.A)((0,oe.j)((0,y.P)((0,re.d)((0,ee.p)(m.A))))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new o.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._allSublayerOverrides=null,this.filters=new Ue,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.legendEnabled=!0,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,t,r){const i=W.readSublayers(e,t,r);return W.forEachSublayer(i,(e=>e.layer=this)),this._allSublayerOverrides&&(function(e,t){t.forEach((t=>He(e,t)))}(i,this._allSublayerOverrides),this._allSublayerOverrides=null),i}write(e,t){return e=super.write(e,t),!t||"web-scene"!==t.origin&&"portal-item"!==t.origin||(this.sublayers?function(e,t,r){const i=[];W.forEachSublayer(e,(e=>{const t=e.write({},r);Object.keys(t).length>1&&i.push(t)})),i.length>0&&(t.sublayers=i)}(this.sublayers,e,t):this._allSublayerOverrides&&function(e,t,r){const i=r?.origin&&e.get(r.origin);i&&(t.sublayers=[],i.overrides.forEach((e=>{t.sublayers.push((0,l.o8)(e))})))}(this._allSublayerOverrides,e,t)),e}read(e,t){if(super.read(e,t),("web-scene"===t?.origin||"portal-item"===t?.origin)&&Array.isArray(e?.sublayers)){const r=function(e,t){const r=new Map;for(const i of e)null!=i&&"object"==typeof i&&"number"==typeof i.id?r.set(i.id,i):t.messages?.push(new n.A("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:i}));return{overrides:r,context:t}}(e.sublayers,t);this.sublayers?He(this.sublayers,r):(this._allSublayerOverrides??=new Map,this._allSublayerOverrides.set(t.origin,r))}}readSummaryStatistics(e,t){if("string"==typeof t.statisticsHRef){const e=(0,d.fj)(this.parsedUrl?.path,t.statisticsHRef);return new Je({url:e})}return null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then((()=>this._fetchService(t))).then((()=>this._fetchAssociatedFeatureService(t)));return this.addResolvingPromise(r),Promise.resolve(this)}loadAll(){return(0,a.g)(this,(e=>{W.forEachSublayer(this.sublayers,(t=>{"building-group"!==t.type&&e(t)})),this.summaryStatistics&&e(this.summaryStatistics)}))}async saveAs(e,t){return this._debouncedSaveOperations(ne.Xh.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"};return this._debouncedSaveOperations(ne.Xh.SAVE,e)}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new n.A("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}async _fetchAssociatedFeatureService(e){try{const{portalItem:t}=await(0,le.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e});this.associatedFeatureServiceItem=t}catch(e){p.A.getLogger(this).warn("Associated feature service item could not be loaded",e)}}_validateElevationInfo(){const e=this.elevationInfo,t="Building scene layers";(0,Ke.XF)(p.A.getLogger(this),(0,Ke.B)(t,"absolute-height",e)),(0,Ke.XF)(p.A.getLogger(this),(0,Ke.tW)(t,e))}};function He(e,t){const{overrides:r,context:i}=t;W.forEachSublayer(e,(e=>e.read(r.get(e.id),i)))}(0,i._)([(0,c.M)({type:["BuildingSceneLayer"]})],Ze.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.M)({readOnly:!0})],Ze.prototype,"allSublayers",void 0),(0,i._)([(0,c.M)(Ve)],Ze.prototype,"sublayers",void 0),(0,i._)([(0,h.w)("service","sublayers")],Ze.prototype,"readSublayers",null),(0,i._)([(0,c.M)({type:Ue,nonNullable:!0,json:{write:!0}})],Ze.prototype,"filters",void 0),(0,i._)([(0,c.M)({type:String,json:{write:!0}})],Ze.prototype,"activeFilterId",void 0),(0,i._)([(0,c.M)({readOnly:!0,type:Je})],Ze.prototype,"summaryStatistics",void 0),(0,i._)([(0,h.w)("summaryStatistics",["statisticsHRef"])],Ze.prototype,"readSummaryStatistics",null),(0,i._)([(0,c.M)({type:[String],json:{read:!1}})],Ze.prototype,"outFields",void 0),(0,i._)([(0,c.M)(L.Fm)],Ze.prototype,"fullExtent",void 0),(0,i._)([(0,c.M)(L.fV)],Ze.prototype,"legendEnabled",void 0),(0,i._)([(0,c.M)({type:["show","hide","hide-children"]})],Ze.prototype,"listMode",void 0),(0,i._)([(0,c.M)((0,L.Qo)(g.A))],Ze.prototype,"spatialReference",void 0),(0,i._)([(0,c.M)(L.Yj)],Ze.prototype,"elevationInfo",null),(0,i._)([(0,c.M)({json:{read:!1},readOnly:!0})],Ze.prototype,"type",void 0),(0,i._)([(0,c.M)()],Ze.prototype,"associatedFeatureServiceItem",void 0),Ze=(0,i._)([(0,f.$)("esri.layers.BuildingSceneLayer")],Ze);const Xe=Ze},33143:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(90237),s=r(69540),o=r(25482),n=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),p=r(43937),y=r(72088),u=r(29005);let d=class extends((0,s.O)(o.oY)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,y.rS)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i._)([(0,n.M)({json:{write:!0}})],d.prototype,"id",void 0),(0,i._)([(0,n.M)({json:{write:!0}})],d.prototype,"name",void 0),(0,i._)([(0,n.M)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i._)([(0,l.w)("domains")],d.prototype,"readDomains",null),(0,i._)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,i._)([(0,n.M)({type:[u.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i._)([(0,a.$)("esri.layers.support.FeatureType")],d);const c=d},58501:(e,t,r)=>{r.d(t,{q:()=>s});var i=r(62815);function s(e,t,r){if(!r?.features||!r.hasZ)return;const s=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(null!=s)for(const e of r.features)s(e.geometry)}},22671:(e,t,r)=>{r.d(t,{A:()=>_});var i,s=r(90237),o=r(59456),n=r(52106),l=r(66552),a=r(25482),p=r(4718),y=r(10107),u=(r(44208),r(53966),r(36005)),d=r(40608),c=r(43937),h=r(16930),f=r(65864),g=r(20437);const m=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.oY{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const s=e[t],o=n.A.fromJSON(s),l=s.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=r);const a=s.aggregateGeometries,p=o.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],i=a[e],s=i?.spatialReference;null==t||s||(t.spatialReference=r)}i.push(o)}return i}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,f.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,p.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,s]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=o.length;e<t;e++)n?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,s],scale:[o,n]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,(e=>e*o+i),(e=>s-e*n),l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,s;const o=[];for(let n=0,l=e.length;n<l;n++){const l=e[n];if(n>0){const e=t(l[0]),n=r(l[1]);e===i&&n===s||(o.push([e-i,n-s]),i=e,s=n)}else i=t(l[0]),s=r(l[1]),o.push([i,s])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,f.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,o=i.length;e<o;e++){const o=i[e],n=this._quantizePoints(o,t,r);n&&s.push(n)}return s.length>0?((0,f.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,f.Bi)(e)?e.rings:e.paths;let n,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(n+=s[0],l+=s[1]):(n=s[0],l=s[1]),s[0]=t(n),s[1]=r(l)}}if(i&&s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=s(r[3])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let n,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(n+=i[0],l+=i[1]):(n=i[0],l=i[1]),i[0]=t(n),i[1]=r(l)}if(i&&s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2]),t[3]=s(t[3])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=s(t[2])}}:null}};(0,s._)([(0,y.M)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s._)([(0,y.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,y.M)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,s._)([(0,u.w)("features")],v.prototype,"readFeatures",null),(0,s._)([(0,y.M)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,s._)([(0,y.M)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,s._)([(0,c.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,s._)([(0,y.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s._)([(0,y.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s._)([(0,y.M)({types:o.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s._)([(0,u.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s._)([(0,y.M)({type:h.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s._)([(0,c.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s._)([(0,y.M)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,s._)([(0,d.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const _=v}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2931],{38961:(e,t,r)=>{r.d(t,{A:()=>p});var i=r(90237),s=r(5503),o=(r(60999),r(49186),r(53966),r(14012),r(80559)),n=r(10107),l=r(40608);let a=class extends s.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,o.fm)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new s.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i._)([(0,n.M)()],a.prototype,"getCollections",void 0),(0,i._)([(0,n.M)()],a.prototype,"getChildrenFunction",void 0),(0,i._)([(0,n.M)()],a.prototype,"itemFilterFunction",void 0),a=(0,i._)([(0,l.$)("esri.core.CollectionFlattener")],a);const p=a},88303:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Xe});var i=r(90237),s=r(5503),o=r(38961),n=r(49186),l=r(4718),a=r(81583),p=r(53966),y=r(92071),u=r(74887),d=r(84952),c=r(10107),h=(r(44208),r(36005)),f=r(40608),g=r(16930),m=r(4146),v=r(52106),_=r(13874),b=(r(86162),r(94409),r(65345),r(42980),r(20917),r(92438),r(96576),r(93618),r(65494),r(15036)),w=r(78888),M=r(66552),S=r(92474),x=r(61893),F=(r(87811),r(93223)),A=r(5443),O=r(13600),j=r(4902),T=r(56507),L=r(10873);let I=class extends((0,j.sA)(y.L)){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.legendEnabled=!0,this.visible=!0,this.opacity=1}readTitle(e,t){return"string"==typeof t.alias?t.alias:"string"==typeof t.name?t.name:""}readIdOnlyOnce(e){return-1!==this.id?this.id:"number"==typeof e?e:-1}};(0,i._)([(0,c.M)({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],I.prototype,"title",void 0),(0,i._)([(0,h.w)("service","title",["alias","name"])],I.prototype,"readTitle",null),(0,i._)([(0,c.M)()],I.prototype,"layer",void 0),(0,i._)([(0,c.M)({type:T.jz,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],I.prototype,"id",void 0),(0,i._)([(0,h.w)("service","id")],I.prototype,"readIdOnlyOnce",null),(0,i._)([(0,c.M)((0,L.Qo)(String))],I.prototype,"modelName",void 0),(0,i._)([(0,c.M)((0,L.Qo)(Boolean))],I.prototype,"isEmpty",void 0),(0,i._)([(0,c.M)({type:Boolean,nonNullable:!0})],I.prototype,"legendEnabled",void 0),(0,i._)([(0,c.M)({type:Boolean,json:{name:"visibility",write:!0}})],I.prototype,"visible",void 0),(0,i._)([(0,c.M)({type:Number,json:{write:!0}})],I.prototype,"opacity",void 0),I=(0,i._)([(0,f.$)("esri.layers.buildingSublayers.BuildingSublayer")],I);const R=I;var P=r(4071),B=r(17036),q=r(95466),N=r(30524),E=r(83898),C=r(50805),k=r(61956),$=r(30291),Q=r(88625),z=r(74664),D=r(45671);const G=(0,B.p)();let J=class extends(S.A.LoadableMixin((0,x.g)(R))){constructor(e){super(e),this.type="building-component",this.nodePages=null,this.materialDefinitions=[],this.textureSetDefinitions=[],this.geometryDefinitions=[],this.indexInfo=null,this.serviceUpdateTimeStamp=null,this.store=null,this.attributeStorageInfo=[],this.fields=[],this.associatedLayer=null,this.outFields=null,this.listMode="show",this.renderer=null,this.definitionExpression=null,this.popupEnabled=!0,this.popupTemplate=null,this.layerType="3d-object"}get parsedUrl(){return this.layer?{path:`${this.layer.parsedUrl?.path}/sublayers/${this.id}`,query:this.layer.parsedUrl?.query}:{path:""}}get fieldsIndex(){return new q.A(this.fields)}readAssociatedLayer(e,t){const r=this.layer.associatedFeatureServiceItem,i=t.associatedLayerID;return null!=r&&"number"==typeof i?new O.default({portalItem:r,customParameters:this.customParameters,layerId:i}):null}get objectIdField(){if(null!=this.fields)for(const e of this.fields)if("oid"===e.type)return e.name;return null}get displayField(){return null!=this.associatedLayer?this.associatedLayer.displayField:void 0}get apiKey(){return this.layer.apiKey}get customParameters(){return this.layer.customParameters}get fullExtent(){return this.layer.fullExtent}get spatialReference(){return this.layer.spatialReference}get version(){return this.layer.version}get elevationInfo(){return this.layer.elevationInfo}get minScale(){return this.layer.minScale}get maxScale(){return this.layer.maxScale}get effectiveScaleRange(){return this.layer.effectiveScaleRange}get defaultPopupTemplate(){return this.createPopupTemplate()}load(e){const t=null!=e?e.signal:null,r=this._fetchService(t).then((()=>{this.indexInfo=(0,E.F)(this.parsedUrl.path,this.rootNode,this.nodePages,this.customParameters,this.apiKey,p.A.getLogger(this),t)}));return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){return(0,$.tn)(this,e)}async _fetchService(e){const t=(await(0,w.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service",url:this.parsedUrl})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getFeatureType(t?.feature)?.domains?.[e];return r&&"inherited"!==r.type?r:this.getField(e)?.domain??null}getFeatureType(e){return e&&null!=this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return null!=this.associatedLayer?this.associatedLayer.types??[]:[]}get typeIdField(){return null!=this.associatedLayer?this.associatedLayer.typeIdField:null}get geometryType(){return"3d-object"===this.layerType?"mesh":"point"}get profile(){return"3d-object"===this.layerType?"mesh-pyramids":"points"}get capabilities(){const e=null!=this.associatedLayer&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:P.P,{query:t,data:{supportsZ:r,supportsM:i,isVersioned:s}}=e;return{query:t,data:{supportsZ:r,supportsM:i,isVersioned:s}}}createQuery(){const e=new k.A;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this.layer,t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}async queryCachedAttributes(e,t){const r=(0,N.hL)(this.fieldsIndex,await(0,D.TO)(this,(0,D.D8)(this)));return(0,z.s1)(this.parsedUrl.path,this.attributeStorageInfo,e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new n.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");return new v.A({attributes:r[0],layer:this,sourceLayer:this})}getFieldUsageInfo(e){return this.fieldsIndex.has(e)?{supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1}:{supportsLabelingInfo:!1,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:null!=this.associatedLayer}}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return null!=e&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),null==this.associatedLayer)throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer component layer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}};(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"parsedUrl",null),(0,i._)([(0,c.M)({type:C.W4,readOnly:!0})],J.prototype,"nodePages",void 0),(0,i._)([(0,c.M)({type:[C.uV],readOnly:!0})],J.prototype,"materialDefinitions",void 0),(0,i._)([(0,c.M)({type:[C.Ot],readOnly:!0})],J.prototype,"textureSetDefinitions",void 0),(0,i._)([(0,c.M)({type:[C.L0],readOnly:!0})],J.prototype,"geometryDefinitions",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"serviceUpdateTimeStamp",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"store",void 0),(0,i._)([(0,c.M)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],J.prototype,"rootNode",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,c.M)(G.fields)],J.prototype,"fields",void 0),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"fieldsIndex",null),(0,i._)([(0,c.M)({readOnly:!0,type:O.default})],J.prototype,"associatedLayer",void 0),(0,i._)([(0,h.w)("service","associatedLayer",["associatedLayerID"])],J.prototype,"readAssociatedLayer",null),(0,i._)([(0,c.M)(G.outFields)],J.prototype,"outFields",void 0),(0,i._)([(0,c.M)({type:String,readOnly:!0})],J.prototype,"objectIdField",null),(0,i._)([(0,c.M)({readOnly:!0,type:String,json:{read:!1}})],J.prototype,"displayField",null),(0,i._)([(0,c.M)({readOnly:!0,type:String})],J.prototype,"apiKey",null),(0,i._)([(0,c.M)({readOnly:!0,type:String})],J.prototype,"customParameters",null),(0,i._)([(0,c.M)({readOnly:!0,type:A.A})],J.prototype,"fullExtent",null),(0,i._)([(0,c.M)({readOnly:!0,type:g.A})],J.prototype,"spatialReference",null),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"version",null),(0,i._)([(0,c.M)({readOnly:!0,type:Q.A})],J.prototype,"elevationInfo",null),(0,i._)([(0,c.M)({readOnly:!0,type:Number})],J.prototype,"minScale",null),(0,i._)([(0,c.M)({readOnly:!0,type:Number})],J.prototype,"maxScale",null),(0,i._)([(0,c.M)({readOnly:!0,type:Number})],J.prototype,"effectiveScaleRange",null),(0,i._)([(0,c.M)({type:["hide","show"],json:{write:!0}})],J.prototype,"listMode",void 0),(0,i._)([(0,c.M)({types:b.X,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],J.prototype,"renderer",void 0),(0,i._)([(0,c.M)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],J.prototype,"definitionExpression",void 0),(0,i._)([(0,c.M)(L.M6)],J.prototype,"popupEnabled",void 0),(0,i._)([(0,c.M)({type:_.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],J.prototype,"popupTemplate",void 0),(0,i._)([(0,c.M)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],J.prototype,"normalReferenceFrame",void 0),(0,i._)([(0,c.M)({readOnly:!0,json:{read:!1}})],J.prototype,"defaultPopupTemplate",null),(0,i._)([(0,c.M)()],J.prototype,"types",null),(0,i._)([(0,c.M)()],J.prototype,"typeIdField",null),(0,i._)([(0,c.M)({json:{write:!1}}),(0,F.e)(new M.J({"3DObject":"3d-object",Point:"point"}))],J.prototype,"layerType",void 0),(0,i._)([(0,c.M)()],J.prototype,"geometryType",null),(0,i._)([(0,c.M)()],J.prototype,"profile",null),(0,i._)([(0,c.M)({readOnly:!0,json:{read:!1}})],J.prototype,"capabilities",null),(0,i._)([(0,c.M)({readOnly:!0})],J.prototype,"statisticsInfo",void 0),J=(0,i._)([(0,f.$)("esri.layers.buildingSublayers.BuildingComponentSublayer")],J);const K=J;var U,V=r(67076);const Y={type:s.A,readOnly:!0,json:{origins:{service:{read:{source:"sublayers",reader:Z}}},read:!1}};function Z(e,t,r){if(e&&Array.isArray(e))return new s.A(e.map((e=>{const t=function(e){return"group"===e.layerType?H:K}(e);if(t){const i=new t;return i.read(e,r),i}return r?.messages&&e&&r.messages.push(new V.A("building-scene-layer:unsupported-sublayer-type","Building scene sublayer of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:r})),null})))}let H=U=class extends R{constructor(e){super(e),this.type="building-group",this.listMode="show",this.sublayers=null}loadAll(){return(0,a.L)(this,(e=>U.forEachSublayer(this.sublayers,(t=>{"building-group"!==t.type&&e(t)}))))}};var X;(0,i._)([(0,c.M)({type:["hide","show","hide-children"],json:{write:!0}})],H.prototype,"listMode",void 0),(0,i._)([(0,c.M)(Y)],H.prototype,"sublayers",void 0),H=U=(0,i._)([(0,f.$)("esri.layers.buildingSublayers.BuildingGroupSublayer")],H),(X=H||(H={})).sublayersProperty=Y,X.readSublayers=Z,X.forEachSublayer=function e(t,r){t.forEach((t=>{r(t),"building-group"===t.type&&e(t.sublayers,r)}))};const W=H;var ee=r(52136),te=r(18768),re=r(69208),ie=r(16131),se=r(8303),oe=r(25036),ne=r(58947),le=r(92009),ae=r(25482),pe=r(13069);let ye=class extends ae.oY{constructor(){super(...arguments),this.type=null}};(0,i._)([(0,c.M)({type:String,readOnly:!0,json:{write:!0}})],ye.prototype,"type",void 0),ye=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfo")],ye);const ue=ye;var de;let ce=de=class extends ae.oY{constructor(){super(...arguments),this.filterType=null,this.filterValues=null}clone(){return new de({filterType:this.filterType,filterValues:(0,l.o8)(this.filterValues)})}};(0,i._)([(0,c.M)({type:String,json:{write:!0}})],ce.prototype,"filterType",void 0),(0,i._)([(0,c.M)({type:[String],json:{write:!0}})],ce.prototype,"filterValues",void 0),ce=de=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfoType")],ce);const he=ce;var fe;const ge=s.A.ofType(he);let me=fe=class extends ae.oY{clone(){return new fe({filterTypes:(0,l.o8)(this.filterTypes)})}};(0,i._)([(0,c.M)({type:ge,json:{write:!0}})],me.prototype,"filterTypes",void 0),me=fe=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfoBlock")],me);const ve=me;var _e;const be=s.A.ofType(ve);let we=_e=class extends ue{constructor(){super(...arguments),this.type="checkbox"}clone(){return new _e({filterBlocks:(0,l.o8)(this.filterBlocks)})}};(0,i._)([(0,c.M)({type:["checkbox"]})],we.prototype,"type",void 0),(0,i._)([(0,c.M)({type:be,json:{write:!0}})],we.prototype,"filterBlocks",void 0),we=_e=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterAuthoringInfoCheckbox")],we);const Me=we;let Se=class extends ae.oY{};(0,i._)([(0,c.M)({readOnly:!0,json:{read:!1}})],Se.prototype,"type",void 0),Se=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterMode")],Se);const xe=Se;var Fe;let Ae=Fe=class extends xe{constructor(){super(...arguments),this.type="solid"}clone(){return new Fe}};(0,i._)([(0,c.M)({type:["solid"],readOnly:!0,json:{write:!0}})],Ae.prototype,"type",void 0),Ae=Fe=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterModeSolid")],Ae);const Oe=Ae;var je,Te=r(51734);let Le=je=class extends xe{constructor(){super(...arguments),this.type="wire-frame",this.edges=null}clone(){return new je({edges:(0,l.o8)(this.edges)})}};(0,i._)([(0,F.e)({wireFrame:"wire-frame"})],Le.prototype,"type",void 0),(0,i._)([(0,c.M)(Te.J)],Le.prototype,"edges",void 0),Le=je=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterModeWireFrame")],Le);const Ie=Le;var Re;let Pe=Re=class extends xe{constructor(){super(...arguments),this.type="x-ray"}clone(){return new Re}};(0,i._)([(0,c.M)({type:["x-ray"],readOnly:!0,json:{write:!0}})],Pe.prototype,"type",void 0),Pe=Re=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterModeXRay")],Pe);const Be=Pe;var qe;const Ne={nonNullable:!0,types:{key:"type",base:xe,typeMap:{solid:Oe,"wire-frame":Ie,"x-ray":Be}},json:{read:e=>{switch(e?.type){case"solid":return Oe.fromJSON(e);case"wireFrame":return Ie.fromJSON(e);case"x-ray":return Be.fromJSON(e);default:return}},write:{enabled:!0,isRequired:!0}}};let Ee=qe=class extends ae.oY{constructor(){super(...arguments),this.filterExpression=null,this.filterMode=new Oe,this.title=""}clone(){return new qe({filterExpression:this.filterExpression,filterMode:(0,l.o8)(this.filterMode),title:this.title})}};(0,i._)([(0,c.M)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"filterExpression",void 0),(0,i._)([(0,c.M)(Ne)],Ee.prototype,"filterMode",void 0),(0,i._)([(0,c.M)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"title",void 0),Ee=qe=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilterBlock")],Ee);const Ce=Ee;var ke;const $e=s.A.ofType(Ce);let Qe=ke=class extends ae.oY{constructor(){super(...arguments),this.description=null,this.filterBlocks=null,this.id=(0,pe.lk)(),this.name=null}clone(){return new ke({description:this.description,filterBlocks:(0,l.o8)(this.filterBlocks),id:this.id,name:this.name,filterAuthoringInfo:(0,l.o8)(this.filterAuthoringInfo)})}};(0,i._)([(0,c.M)({type:String,json:{write:!0}})],Qe.prototype,"description",void 0),(0,i._)([(0,c.M)({type:$e,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"filterBlocks",void 0),(0,i._)([(0,c.M)({types:{key:"type",base:ue,typeMap:{checkbox:Me}},json:{read:e=>"checkbox"===e?.type?Me.fromJSON(e):null,write:!0}})],Qe.prototype,"filterAuthoringInfo",void 0),(0,i._)([(0,c.M)({type:String,constructOnly:!0,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"id",void 0),(0,i._)([(0,c.M)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"name",void 0),Qe=ke=(0,i._)([(0,f.$)("esri.layers.support.BuildingFilter")],Qe);const ze=Qe;let De=class extends ae.oY{constructor(){super(...arguments),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};(0,i._)([(0,c.M)({type:String})],De.prototype,"fieldName",void 0),(0,i._)([(0,c.M)({type:String})],De.prototype,"modelName",void 0),(0,i._)([(0,c.M)({type:String})],De.prototype,"label",void 0),(0,i._)([(0,c.M)({type:Number})],De.prototype,"min",void 0),(0,i._)([(0,c.M)({type:Number})],De.prototype,"max",void 0),(0,i._)([(0,c.M)({json:{read:e=>Array.isArray(e)&&(e.every((e=>"string"==typeof e))||e.every((e=>"number"==typeof e)))?e.slice():null}})],De.prototype,"mostFrequentValues",void 0),(0,i._)([(0,c.M)({type:[Number]})],De.prototype,"subLayerIds",void 0),De=(0,i._)([(0,f.$)("esri.layers.support.BuildingSummaryStatistics.BuildingFieldStatistics")],De);let Ge=class extends(S.A.LoadableMixin((0,x.g)(ae.oY))){constructor(){super(...arguments),this.url=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(p.A.getLogger(this).error("building summary statistics are not loaded"),null)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}async _fetchService(e){const t=(await(0,w.A)(this.url,{query:{f:"json"},responseType:"json",signal:e})).data;this.read(t,{origin:"service"})}};(0,i._)([(0,c.M)({constructOnly:!0,type:String})],Ge.prototype,"url",void 0),(0,i._)([(0,c.M)({readOnly:!0,type:[De],json:{read:{source:"summary"}}})],Ge.prototype,"fields",null),Ge=(0,i._)([(0,f.$)("esri.layers.support.BuildingSummaryStatistics")],Ge);const Je=Ge;var Ke=r(24212);const Ue=s.A.ofType(ze),Ve=(0,l.o8)(W.sublayersProperty),Ye=Ve.json?.origins;Ye&&(Ye["web-scene"]={type:[K],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},Ye["portal-item"]={type:[K],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let Ze=class extends((0,ne.w6)((0,te.b)((0,ie.q)((0,se.A)((0,oe.j)((0,y.P)((0,re.d)((0,ee.p)(m.A))))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new o.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._allSublayerOverrides=null,this.filters=new Ue,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.legendEnabled=!0,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,t,r){const i=W.readSublayers(e,t,r);return W.forEachSublayer(i,(e=>e.layer=this)),this._allSublayerOverrides&&(function(e,t){t.forEach((t=>He(e,t)))}(i,this._allSublayerOverrides),this._allSublayerOverrides=null),i}write(e,t){return e=super.write(e,t),!t||"web-scene"!==t.origin&&"portal-item"!==t.origin||(this.sublayers?function(e,t,r){const i=[];W.forEachSublayer(e,(e=>{const t=e.write({},r);Object.keys(t).length>1&&i.push(t)})),i.length>0&&(t.sublayers=i)}(this.sublayers,e,t):this._allSublayerOverrides&&function(e,t,r){const i=r?.origin&&e.get(r.origin);i&&(t.sublayers=[],i.overrides.forEach((e=>{t.sublayers.push((0,l.o8)(e))})))}(this._allSublayerOverrides,e,t)),e}read(e,t){if(super.read(e,t),("web-scene"===t?.origin||"portal-item"===t?.origin)&&Array.isArray(e?.sublayers)){const r=function(e,t){const r=new Map;for(const i of e)null!=i&&"object"==typeof i&&"number"==typeof i.id?r.set(i.id,i):t.messages?.push(new n.A("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:i}));return{overrides:r,context:t}}(e.sublayers,t);this.sublayers?He(this.sublayers,r):(this._allSublayerOverrides??=new Map,this._allSublayerOverrides.set(t.origin,r))}}readSummaryStatistics(e,t){if("string"==typeof t.statisticsHRef){const e=(0,d.fj)(this.parsedUrl?.path,t.statisticsHRef);return new Je({url:e})}return null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then((()=>this._fetchService(t))).then((()=>this._fetchAssociatedFeatureService(t)));return this.addResolvingPromise(r),Promise.resolve(this)}loadAll(){return(0,a.g)(this,(e=>{W.forEachSublayer(this.sublayers,(t=>{"building-group"!==t.type&&e(t)})),this.summaryStatistics&&e(this.summaryStatistics)}))}async saveAs(e,t){return this._debouncedSaveOperations(ne.Xh.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"};return this._debouncedSaveOperations(ne.Xh.SAVE,e)}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new n.A("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}async _fetchAssociatedFeatureService(e){try{const{portalItem:t}=await(0,le.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e});this.associatedFeatureServiceItem=t}catch(e){p.A.getLogger(this).warn("Associated feature service item could not be loaded",e)}}_validateElevationInfo(){const e=this.elevationInfo,t="Building scene layers";(0,Ke.XF)(p.A.getLogger(this),(0,Ke.B)(t,"absolute-height",e)),(0,Ke.XF)(p.A.getLogger(this),(0,Ke.tW)(t,e))}};function He(e,t){const{overrides:r,context:i}=t;W.forEachSublayer(e,(e=>e.read(r.get(e.id),i)))}(0,i._)([(0,c.M)({type:["BuildingSceneLayer"]})],Ze.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.M)({readOnly:!0})],Ze.prototype,"allSublayers",void 0),(0,i._)([(0,c.M)(Ve)],Ze.prototype,"sublayers",void 0),(0,i._)([(0,h.w)("service","sublayers")],Ze.prototype,"readSublayers",null),(0,i._)([(0,c.M)({type:Ue,nonNullable:!0,json:{write:!0}})],Ze.prototype,"filters",void 0),(0,i._)([(0,c.M)({type:String,json:{write:!0}})],Ze.prototype,"activeFilterId",void 0),(0,i._)([(0,c.M)({readOnly:!0,type:Je})],Ze.prototype,"summaryStatistics",void 0),(0,i._)([(0,h.w)("summaryStatistics",["statisticsHRef"])],Ze.prototype,"readSummaryStatistics",null),(0,i._)([(0,c.M)({type:[String],json:{read:!1}})],Ze.prototype,"outFields",void 0),(0,i._)([(0,c.M)(L.Fm)],Ze.prototype,"fullExtent",void 0),(0,i._)([(0,c.M)(L.fV)],Ze.prototype,"legendEnabled",void 0),(0,i._)([(0,c.M)({type:["show","hide","hide-children"]})],Ze.prototype,"listMode",void 0),(0,i._)([(0,c.M)((0,L.Qo)(g.A))],Ze.prototype,"spatialReference",void 0),(0,i._)([(0,c.M)(L.Yj)],Ze.prototype,"elevationInfo",null),(0,i._)([(0,c.M)({json:{read:!1},readOnly:!0})],Ze.prototype,"type",void 0),(0,i._)([(0,c.M)()],Ze.prototype,"associatedFeatureServiceItem",void 0),Ze=(0,i._)([(0,f.$)("esri.layers.BuildingSceneLayer")],Ze);const Xe=Ze},33143:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(90237),s=r(69540),o=r(25482),n=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),p=r(43937),y=r(80451),u=r(29005);let d=class extends((0,s.O)(o.oY)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,y.rS)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i._)([(0,n.M)({json:{write:!0}})],d.prototype,"id",void 0),(0,i._)([(0,n.M)({json:{write:!0}})],d.prototype,"name",void 0),(0,i._)([(0,n.M)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i._)([(0,l.w)("domains")],d.prototype,"readDomains",null),(0,i._)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,i._)([(0,n.M)({type:[u.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i._)([(0,a.$)("esri.layers.support.FeatureType")],d);const c=d},58501:(e,t,r)=>{r.d(t,{q:()=>s});var i=r(62815);function s(e,t,r){if(!r?.features||!r.hasZ)return;const s=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(null!=s)for(const e of r.features)s(e.geometry)}},22671:(e,t,r)=>{r.d(t,{A:()=>_});var i,s=r(90237),o=r(59456),n=r(52106),l=r(66552),a=r(25482),p=r(4718),y=r(10107),u=(r(44208),r(53966),r(36005)),d=r(40608),c=r(43937),h=r(16930),f=r(65864),g=r(20437);const m=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.oY{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const s=e[t],o=n.A.fromJSON(s),l=s.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=r);const a=s.aggregateGeometries,p=o.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],i=a[e],s=i?.spatialReference;null==t||s||(t.spatialReference=r)}i.push(o)}return i}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,f.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,p.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,s]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=o.length;e<t;e++)n?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,s],scale:[o,n]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,(e=>e*o+i),(e=>s-e*n),l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,s;const o=[];for(let n=0,l=e.length;n<l;n++){const l=e[n];if(n>0){const e=t(l[0]),n=r(l[1]);e===i&&n===s||(o.push([e-i,n-s]),i=e,s=n)}else i=t(l[0]),s=r(l[1]),o.push([i,s])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,f.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,o=i.length;e<o;e++){const o=i[e],n=this._quantizePoints(o,t,r);n&&s.push(n)}return s.length>0?((0,f.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,f.Bi)(e)?e.rings:e.paths;let n,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(n+=s[0],l+=s[1]):(n=s[0],l=s[1]),s[0]=t(n),s[1]=r(l)}}if(i&&s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=s(r[3])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let n,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(n+=i[0],l+=i[1]):(n=i[0],l=i[1]),i[0]=t(n),i[1]=r(l)}if(i&&s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2]),t[3]=s(t[3])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=s(t[2])}}:null}};(0,s._)([(0,y.M)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s._)([(0,y.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,y.M)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,s._)([(0,u.w)("features")],v.prototype,"readFeatures",null),(0,s._)([(0,y.M)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,s._)([(0,y.M)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,s._)([(0,c.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,s._)([(0,y.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s._)([(0,y.M)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s._)([(0,y.M)({types:o.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s._)([(0,u.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s._)([(0,y.M)({type:h.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s._)([(0,c.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s._)([(0,y.M)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,s._)([(0,d.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const _=v}}]);