@arcgis/core 4.30.0 → 4.30.1

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 (41) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{c39237c00c1d588dc107.js → 25c41ceb1951d80f4798.js} +1 -1
  3. package/assets/esri/core/workers/chunks/61500e48a3d672445e14.js +1 -0
  4. package/assets/esri/core/workers/chunks/{f13fb6b712e364bbf48c.js → 61e1f1564a8440f186e7.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{70ebc0e38eb1cfb79320.js → 85701ca4ebc2de529053.js} +1 -1
  6. package/assets/esri/core/workers/chunks/88e8547079b299572bfe.js +1 -0
  7. package/assets/esri/core/workers/chunks/{403f73017bf763f7471c.js → 91f8f99c6f64e85458f3.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{37dfb3ff86c4ef1b26c1.js → a9efe7abda35995d0dd8.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{4cf5414d67aa888f2322.js → d502a5fe47e77d63ae5e.js} +1 -1
  10. package/assets/esri/core/workers/chunks/d6c954272cc96d6b7987.js +1 -0
  11. package/assets/esri/core/workers/chunks/{aa198e898b46c6e89d0b.js → e2c927ef4d88a0a8104b.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{880e8329e264b6156fbc.js → e3a049ebcb0b89f16228.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{f927c28f2fa78ec68235.js → ed9c88afccc5041d899a.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{31f7a3c8e1a5b4ca4a73.js → fb97d6cc841c67c09d5c.js} +1 -1
  15. package/assets/esri/themes/base/widgets/_Grid.scss +3 -1
  16. package/assets/esri/themes/dark/main.css +1 -1
  17. package/assets/esri/themes/light/main.css +1 -1
  18. package/assets/esri/themes/light/view.css +1 -1
  19. package/chunks/persistableUrlUtils.js +1 -1
  20. package/identity/IdentityManagerBase.js +1 -1
  21. package/interfaces.d.ts +94 -50
  22. package/kernel.js +1 -1
  23. package/layers/CatalogLayer.js +1 -1
  24. package/layers/mixins/EditBusLayer.js +1 -1
  25. package/layers/support/MediaElementBase.js +1 -1
  26. package/package.json +1 -1
  27. package/portal/support/layersLoader.js +1 -1
  28. package/portal/support/loadUtils.js +1 -1
  29. package/portal/support/urlUtils.js +1 -1
  30. package/rest/imageService/fetchRasterInfo.js +1 -1
  31. package/support/persistableUrlUtils.js +1 -1
  32. package/support/revision.js +1 -1
  33. package/views/2d/layers/features/sources/strategies/chunks/OverrideChunk.js +1 -1
  34. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  35. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  36. package/widgets/FeatureForm.js +1 -1
  37. package/widgets/FeatureTable/Grid/Column.js +1 -1
  38. package/widgets/FeatureTable.js +1 -1
  39. package/assets/esri/core/workers/chunks/20d447aa01a66a464363.js +0 -1
  40. package/assets/esri/core/workers/chunks/2b39f50b92fe27c30497.js +0 -1
  41. package/assets/esri/core/workers/chunks/8865ca9cb8d867d48d2d.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[620],{4206:(e,t,i)=>{i.d(t,{A:()=>$e});var r,o=i(90237),n=i(25482),s=i(4718),l=i(3483),p=i(10107),a=i(79901),d=i(36005),u=i(40608),c=i(43937);i(44208),i(53966),i(87811);let y=r=class extends n.oY{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new r({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],y.prototype,"expression",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,o._)([(0,p.MZ)({type:["boolean","date","number","string"],json:{write:!0}})],y.prototype,"returnType",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),y=r=(0,o._)([(0,u.$)("esri.form.ExpressionInfo")],y);const h=y;let m=class extends n.oY{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"description",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"label",void 0),(0,o._)([(0,p.MZ)()],m.prototype,"type",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"visibilityExpression",void 0),m=(0,o._)([(0,u.$)("esri.form.elements.Element")],m);const f=m;var v,g=i(56507);let w=v=class extends n.oY{constructor(e){super(e),this.type=null}clone(){return new v({type:this.type})}};(0,o._)([(0,p.MZ)({type:["attachment","audio","document","image","signature","video"],json:{write:!0}})],w.prototype,"type",void 0),w=v=(0,o._)([(0,u.$)("esri.form.elements.inputs.AttachmentInput")],w);const M=w;var _;let x=_=class extends f{constructor(e){super(e),this.attachmentKeyword=null,this.editableExpression=null,this.input=null,this.type="attachment"}clone(){return new _({attachmentKeyword:this.attachmentKeyword,description:this.description,editableExpression:this.editableExpression,input:this.input,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"attachmentKeyword",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"editableExpression",void 0),(0,o._)([(0,p.MZ)({type:M,json:{read:{source:"inputType"},write:{target:"inputType"}}})],x.prototype,"input",void 0),(0,o._)([(0,p.MZ)({type:["attachment"],json:{read:!1,write:!0}})],x.prototype,"type",void 0),x=_=(0,o._)([(0,u.$)("esri.form.elements.AttachmentElement")],x);const b=x;let Z=class extends n.oY{constructor(e){super(e),this.type=null}};(0,o._)([(0,p.MZ)()],Z.prototype,"type",void 0),Z=(0,o._)([(0,u.$)("esri.form.elements.inputs.Input")],Z);const S=Z;let j=class extends S{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,o._)([(0,p.MZ)({type:Number,json:{write:!0}})],j.prototype,"maxLength",void 0),(0,o._)([(0,p.MZ)({type:Number,json:{write:!0}})],j.prototype,"minLength",void 0),j=(0,o._)([(0,u.$)("esri.form.elements.inputs.TextInput")],j);const F=j;var I;let E=I=class extends F{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new I({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,p.MZ)({type:["barcode-scanner"],json:{read:!1,write:!0}})],E.prototype,"type",void 0),E=I=(0,o._)([(0,u.$)("esri.form.elements.inputs.BarcodeScannerInput")],E);const O=E;var T;let R=T=class extends S{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new T({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],R.prototype,"noValueOptionLabel",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],R.prototype,"showNoValueOption",void 0),(0,o._)([(0,p.MZ)({type:["combo-box"],json:{read:!1,write:!0}})],R.prototype,"type",void 0),R=T=(0,o._)([(0,u.$)("esri.form.elements.inputs.ComboBoxInput")],R);const k=R;var V;function U(e){return null!=e?e:null}function A(e){return null!=e?e:null}let D=V=class extends S{constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return U(t.max)}writeMax(e,t){t.max=A(e)}readMin(e,t){return U(t.min)}writeMin(e,t){t.min=A(e)}clone(){return new V({max:this.max,min:this.min})}};(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],D.prototype,"max",void 0),(0,o._)([(0,d.w)("max")],D.prototype,"readMax",null),(0,o._)([(0,c.K)("max")],D.prototype,"writeMax",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],D.prototype,"min",void 0),(0,o._)([(0,d.w)("min")],D.prototype,"readMin",null),(0,o._)([(0,c.K)("min")],D.prototype,"writeMin",null),(0,o._)([(0,p.MZ)({type:["date-picker"],json:{read:!1,write:!0}})],D.prototype,"type",void 0),D=V=(0,o._)([(0,u.$)("esri.form.elements.inputs.DatePickerInput")],D);const L=D;var B;function C(e){return null!=e?e:null}function $(e){return null!=e?e:null}let N=B=class extends S{constructor(e){super(e),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="datetimeoffset-picker"}readMax(e,t){return C(t.max)}writeMax(e,t){t.max=$(e)}readMin(e,t){return C(t.min)}writeMin(e,t){t.min=$(e)}readTimeResolution(e,t){return C(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=$(e)}clone(){return new B({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],N.prototype,"includeTimeOffset",void 0),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],N.prototype,"max",void 0),(0,o._)([(0,d.w)("max")],N.prototype,"readMax",null),(0,o._)([(0,c.K)("max")],N.prototype,"writeMax",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],N.prototype,"min",void 0),(0,o._)([(0,d.w)("min")],N.prototype,"readMin",null),(0,o._)([(0,c.K)("min")],N.prototype,"writeMin",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],N.prototype,"timeResolution",void 0),(0,o._)([(0,d.w)("timeResolution")],N.prototype,"readTimeResolution",null),(0,o._)([(0,c.K)("timeResolution")],N.prototype,"writeTimeResolution",null),(0,o._)([(0,p.MZ)({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],N.prototype,"type",void 0),N=B=(0,o._)([(0,u.$)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],N);const H=N;var G;function K(e){return null!=e?new Date(e):null}function P(e){return e?e.getTime():null}let W=G=class extends S{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return K(t.max)}writeMax(e,t){t.max=P(e)}readMin(e,t){return K(t.min)}writeMin(e,t){t.min=P(e)}clone(){return new G({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],W.prototype,"includeTime",void 0),(0,o._)([(0,p.MZ)({type:Date,json:{type:Number,write:!0}})],W.prototype,"max",void 0),(0,o._)([(0,d.w)("max")],W.prototype,"readMax",null),(0,o._)([(0,c.K)("max")],W.prototype,"writeMax",null),(0,o._)([(0,p.MZ)({type:Date,json:{type:Number,write:!0}})],W.prototype,"min",void 0),(0,o._)([(0,d.w)("min")],W.prototype,"readMin",null),(0,o._)([(0,c.K)("min")],W.prototype,"writeMin",null),(0,o._)([(0,p.MZ)({type:["datetime-picker"],json:{read:!1,write:!0}})],W.prototype,"type",void 0),W=G=(0,o._)([(0,u.$)("esri.form.elements.inputs.DateTimePickerInput")],W);const Q=W;var q;let Y=q=class extends S{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new q({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],Y.prototype,"noValueOptionLabel",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],Y.prototype,"showNoValueOption",void 0),(0,o._)([(0,p.MZ)({type:["radio-buttons"],json:{read:!1,write:!0}})],Y.prototype,"type",void 0),Y=q=(0,o._)([(0,u.$)("esri.form.elements.inputs.RadioButtonsInput")],Y);const z=Y;var J;let X=J=class extends S{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new J({offValue:this.offValue,onValue:this.onValue})}};(0,o._)([(0,p.MZ)({type:[String,Number],json:{write:!0}})],X.prototype,"offValue",void 0),(0,o._)([(0,p.MZ)({type:[String,Number],json:{write:!0}})],X.prototype,"onValue",void 0),(0,o._)([(0,p.MZ)({type:["switch"],json:{read:!1,write:!0}})],X.prototype,"type",void 0),X=J=(0,o._)([(0,u.$)("esri.form.elements.inputs.SwitchInput")],X);const ee=X;var te;let ie=te=class extends F{constructor(e){super(e),this.type="text-area"}clone(){return new te({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,p.MZ)({type:["text-area"],json:{read:!1,write:!0}})],ie.prototype,"type",void 0),ie=te=(0,o._)([(0,u.$)("esri.form.elements.inputs.TextAreaInput")],ie);const re=ie;var oe;let ne=oe=class extends F{constructor(e){super(e),this.type="text-box"}clone(){return new oe({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,p.MZ)({type:["text-box"],json:{read:!1,write:!0}})],ne.prototype,"type",void 0),ne=oe=(0,o._)([(0,u.$)("esri.form.elements.inputs.TextBoxInput")],ne);const se=ne;var le;function pe(e){return null!=e?e:null}function ae(e){return null!=e?e:null}let de=le=class extends S{constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return pe(t.max)}writeMax(e,t){t.max=ae(e)}readMin(e,t){return pe(t.min)}writeMin(e,t){t.min=ae(e)}readTimeResolution(e,t){return pe(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=ae(e)}clone(){return new le({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],de.prototype,"max",void 0),(0,o._)([(0,d.w)("max")],de.prototype,"readMax",null),(0,o._)([(0,c.K)("max")],de.prototype,"writeMax",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],de.prototype,"min",void 0),(0,o._)([(0,d.w)("min")],de.prototype,"readMin",null),(0,o._)([(0,c.K)("min")],de.prototype,"writeMin",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],de.prototype,"timeResolution",void 0),(0,o._)([(0,d.w)("timeResolution")],de.prototype,"readTimeResolution",null),(0,o._)([(0,c.K)("timeResolution")],de.prototype,"writeTimeResolution",null),(0,o._)([(0,p.MZ)({type:["time-picker"],json:{read:!1,write:!0}})],de.prototype,"type",void 0),de=le=(0,o._)([(0,u.$)("esri.form.elements.inputs.TimePickerInput")],de);const ue={base:S,key:"type",typeMap:{"barcode-scanner":O,"combo-box":k,"date-picker":L,"datetime-picker":Q,"datetimeoffset-picker":H,"radio-buttons":z,switch:ee,"text-area":re,"text-box":se,"time-picker":de}};var ce,ye=i(72088);let he=ce=class extends f{constructor(e){super(e),this.domain=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}get editable(){return this._get("editable")??!0}set editable(e){this._set("editable",e)}clone(){return new ce({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({types:ye.gK,json:{read:{reader:ye.rS},write:!0}})],he.prototype,"domain",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],he.prototype,"editable",null),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"editableExpression",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"fieldName",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"hint",void 0),(0,o._)([(0,p.MZ)({types:ue,json:{read:{source:"inputType"},write:{target:"inputType"}}})],he.prototype,"input",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"requiredExpression",void 0),(0,o._)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],he.prototype,"type",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"valueExpression",void 0),he=ce=(0,o._)([(0,u.$)("esri.form.elements.FieldElement")],he);const me=he;var fe,ve=i(49852);let ge=fe=class extends f{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editableExpression=null,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new fe({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,s.o8)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({type:Number,json:{write:!0}})],ge.prototype,"displayCount",void 0),(0,o._)([(0,p.MZ)({type:["list"],json:{write:!0}})],ge.prototype,"displayType",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],ge.prototype,"editableExpression",void 0),(0,o._)([(0,p.MZ)({type:[ve.A],json:{write:!0}})],ge.prototype,"orderByFields",void 0),(0,o._)([(0,p.MZ)({type:Number,json:{write:!0}})],ge.prototype,"relationshipId",void 0),(0,o._)([(0,p.MZ)({type:["relationship"],json:{read:!1,write:!0}})],ge.prototype,"type",void 0),ge=fe=(0,o._)([(0,u.$)("esri.form.elements.RelationshipElement")],ge);const we=ge;var Me;let _e=Me=class extends f{constructor(e){super(e),this.text=null,this.textFormat="plain-text",this.type="text"}clone(){return new Me({text:this.text,textFormat:this.textFormat,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],_e.prototype,"text",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],_e.prototype,"textFormat",void 0),(0,o._)([(0,p.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],_e.prototype,"type",void 0),_e=Me=(0,o._)([(0,u.$)("esri.form.elements.TextElement")],_e);const xe=_e;function be(e){return{typesWithGroup:{base:f,key:"type",typeMap:{attachment:b,field:me,group:e,relationship:we,text:xe}},typesWithoutGroup:{base:f,key:"type",typeMap:{attachment:b,field:me,relationship:we,text:xe}}}}function Ze(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>r[e.type])).map((e=>r[e.type].fromJSON(e)))}function Se(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>r[e.type])).map((e=>e.toJSON()))}function je(e,t,i=!0){return e?e.map((e=>(0,g.aq)(i?t.typesWithGroup:t.typesWithoutGroup,e))):null}var Fe;let Ie=Fe=class extends f{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return je(e,Ee,!1)}readElements(e,t){return Ze(t.formElements,Ee,!1)}writeElements(e,t){t.formElements=Se(e,Ee,!1)}clone(){return new Fe({description:this.description,elements:(0,s.o8)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({json:{write:!0}})],Ie.prototype,"elements",void 0),(0,o._)([(0,a.w)("elements")],Ie.prototype,"castElements",null),(0,o._)([(0,d.w)("elements",["formElements"])],Ie.prototype,"readElements",null),(0,o._)([(0,c.K)("elements")],Ie.prototype,"writeElements",null),(0,o._)([(0,p.MZ)({type:["collapsed","expanded"],json:{write:!0}})],Ie.prototype,"initialState",void 0),(0,o._)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],Ie.prototype,"type",void 0),Ie=Fe=(0,o._)([(0,u.$)("esri.form.elements.GroupElement")],Ie);const Ee=be(Ie),Oe=Ie,Te=e=>"field"===e.type,Re=e=>"group"===e.type,ke=e=>"text"===e.type;var Ve,Ue=i(30524);const Ae=be(Oe);let De=Ve=class extends n.oY{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(e){return je(e,Ae)}readElements(e,t){return Ze(t.formElements,Ae)}writeElements(e,t){t.formElements=Se(e,Ae)}clone(){return new Ve({description:this.description,expressionInfos:(0,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:r,elements:o,expressionInfos:n,title:s}=this;if(Ce(i,e,r),Ce(i,e,s),!o)return[];const l=function(e,t){if(!t||0===t.length)return[];const i=Be(e),r=[];for(const e of t)i.has(e.name)&&r.push(e.expression);return r}(o,n).map((t=>(0,Ue.Dx)(i,e,t)));await Promise.all(l);for(const r of o)Le(i,{fieldsIndex:e,relationships:t},r);return Array.from(i).sort()}};function Le(e,t,i){const{fieldsIndex:r}=t;if(!r||r.fields.length!==e.size)switch(Ce(e,r,i.label),Ce(e,r,i.description),i.type){case"field":(0,Ue.rq)(e,r,i.fieldName);break;case"group":i.elements.forEach((i=>Le(e,t,i)));break;case"relationship":if(t.relationships){const o=t.relationships.find((e=>e.id===i.relationshipId));o&&(0,Ue.rq)(e,r,o.keyField)}(0,Ue._w)(e,r,i.orderByFields?.map((e=>e.field)));break;case"text":Ce(e,r,i.text)}}function Be(e){const t=new Set;for(const i of e)if((0,l.kb)(t,i.visibilityExpression),!ke(i))if(Re(i))(0,l.FB)(t,Be(i.elements));else if((0,l.kb)(t,i.editableExpression),Te(i)){const{requiredExpression:e,valueExpression:r}=i;(0,l.FB)(t,[e,r])}return t}function Ce(e,t,i){(0,Ue._w)(e,t,(0,Ue.nw)(i))}(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],De.prototype,"description",void 0),(0,o._)([(0,p.MZ)({json:{write:!0}})],De.prototype,"elements",void 0),(0,o._)([(0,a.w)("elements")],De.prototype,"castElements",null),(0,o._)([(0,d.w)("elements",["formElements"])],De.prototype,"readElements",null),(0,o._)([(0,c.K)("elements")],De.prototype,"writeElements",null),(0,o._)([(0,p.MZ)({type:[h],json:{write:!0}})],De.prototype,"expressionInfos",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],De.prototype,"preserveFieldValuesWhenHidden",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],De.prototype,"title",void 0),De=Ve=(0,o._)([(0,u.$)("esri.form.FormTemplate")],De);const $e=De},54239:(e,t,i)=>{i.d(t,{A:()=>w});var r,o=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)),c=i(40608),y=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=r=class extends l.oY{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return h.write(e,t,i)}readHeightModel(e,t,i){return h.read(e)||(i?.messages&&i.messages.push(function(e,t){return new a.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(g(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,p.LA)(e)||f.read(e)||(i?.messages&&i.messages.push(g(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,p.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function g(e,t){return new a.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o._)([(0,d.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],v.prototype,"heightModel",void 0),(0,o._)([(0,y.K)("web-scene","heightModel")],v.prototype,"writeHeightModel",null),(0,o._)([(0,u.w)(["web-scene","service"],"heightModel")],v.prototype,"readHeightModel",null),(0,o._)([(0,d.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],v.prototype,"heightUnit",void 0),(0,o._)([(0,u.w)("web-scene","heightUnit")],v.prototype,"readHeightUnit",null),(0,o._)([(0,u.w)("service","heightUnit")],v.prototype,"readHeightUnitService",null),(0,o._)([(0,d.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],v.prototype,"vertCRS",void 0),(0,o._)([(0,u.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],v.prototype,"readVertCRS",null),v=r=(0,o._)([(0,c.$)("esri.geometry.HeightModelInfo")],v);const w=v},47685:(e,t,i)=>{i.d(t,{Mk:()=>y,Zk:()=>u,w6:()=>f});var r=i(90237),o=i(65529),n=i(4718),s=i(74887),l=i(10107),p=(i(44208),i(53966),i(40608)),a=i(20816);const d=new o.A.EventEmitter;function u(e,t,i=null,r=!1){const o=(0,s.Tw)();return r=null==t||r,d.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:o.promise}),o}const c=Symbol();function y(e){return null!=e&&"object"==typeof e&&c in e}function h(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,i){const r=new URL(e).host,o=a.Z3.get(r),n=e=>!e||e===o;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:r,mayReceiveServiceEdits:o,result:s}=e,l=t===this.url,p=null!=i&&null!=this.layerId&&i===this.layerId,a=h(this),d=h(this)&&m(t,r,this.gdbVersion);if(!l||a&&!d||!p&&!o)return;this.lastEditsEventDate=new Date;const u=s.then((e=>{if(p&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;const i=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(i){const{adds:t,updates:r,deletes:o}=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:o?o.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:r?r.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",s),s}const o={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,r,o.historicMoment)&&this.emit("edits",o),o})).then((e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:u})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,o=t===this.url,n=h(this),s=h(this)&&m(t,i,this.gdbVersion),l=h(this)&&!m(t,this.gdbVersion,null);o&&n&&s&&l&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},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=c,(0,r._)([(0,l.MZ)()],i.prototype,"lastEditsEventDate",void 0),i=(0,r._)([(0,p.$)("esri.layers.mixins.EditBusLayer")],i),i}},87796:(e,t,i)=>{i.d(t,{j:()=>k});var r=i(90237),o=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),c=i(5443),y=i(54239),h=i(16930),m=i(60694),f=i(10873),v=i(69540),g=i(25482),w=(i(87811),i(56400));let M=class extends((0,v.O)(g.oY)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r._)([(0,l.MZ)()],M.prototype,"creatorField",void 0),(0,r._)([(0,l.MZ)()],M.prototype,"creationDateField",void 0),(0,r._)([(0,l.MZ)()],M.prototype,"editorField",void 0),(0,r._)([(0,l.MZ)()],M.prototype,"editDateField",void 0),(0,r._)([(0,l.MZ)()],M.prototype,"realm",void 0),(0,r._)([(0,l.MZ)((0,w.P6)("dateFieldsTimeReference",!0))],M.prototype,"timeZone",void 0),M=(0,r._)([(0,a.$)("esri.layers.support.EditFieldsInfo")],M);const _=M;let x=class extends((0,v.O)(g.oY)){constructor(e){super(e)}};(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"name",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"fields",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"isAscending",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"indexType",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"isUnique",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"description",void 0),x=(0,r._)([(0,a.$)("esri.layers.support.FeatureIndex")],x);var b=i(15426),Z=i(83047);let S=class extends((0,v.O)(g.oY)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,r._)([(0,l.MZ)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],S.prototype,"shapeAreaField",void 0),(0,r._)([(0,l.MZ)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],S.prototype,"shapeLengthField",void 0),(0,r._)([(0,l.MZ)({type:String,json:{read:e=>Z.dk.read(e)||Z.Sk.read(e)}})],S.prototype,"units",void 0),S=(0,r._)([(0,a.$)("esri.layers.support.GeometryFieldsInfo")],S);const j=S;var F=i(37352),I=i(45067),E=i(22453),O=i(72088);let T=class extends((0,v.O)(g.oY)){constructor(e){super(e),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,O.rS)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r._)([(0,l.MZ)({type:Number,json:{write:!0}})],T.prototype,"code",void 0),(0,r._)([(0,l.MZ)({type:Object,json:{write:!0}})],T.prototype,"defaultValues",void 0),(0,r._)([(0,l.MZ)({json:{write:!0}})],T.prototype,"domains",void 0),(0,r._)([(0,p.w)("domains")],T.prototype,"readDomains",null),(0,r._)([(0,d.K)("domains")],T.prototype,"writeDomains",null),(0,r._)([(0,l.MZ)({type:String,json:{write:!0}})],T.prototype,"name",void 0),T=(0,r._)([(0,a.$)("esri.layers.support.Subtype")],T);const R=T,k=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.capabilities=null,this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.definitionExpression=null,this.displayField=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.globalIdField=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.indexes=new(o.A.ofType(x)),this.isTable=!1,this.layerId=void 0,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.preferredTimeZone=null,this.relationships=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.serviceItemId=null,this.sourceJSON=null,this.spatialReference=h.A.WGS84,this.subtypeField=null,this.subtypes=null,this.trackIdField=null,this.version=void 0}get authenticationTriggerEvent(){if(!this.url)return null;const{capabilities:e}=this;if(e){const{query:t,operations:i,editing:r}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(r.supportsUpdateByOthers&&r.supportsUpdateByAnonymous&&r.supportsDeleteByOthers&&r.supportsDeleteByAnonymous))return"load"}if(this.userHasUpdateItemPrivileges){if((0,b.tG)(this))return"load";if(this.hasUpdateItemRestrictions)return e.operations.supportsQuery?"editing":"load"}if(this.userHasFullEditingPrivileges&&this.hasFullEditingRestrictions)return"editing";const t=this.editFieldsInfo;return(t?.creatorField||t?.editorField)&&e?.operations.supportsEditing?"editing":null}readCapabilitiesFromService(e,t){return(0,E.S)(t,this.url)}readEditingInfo(e,t){const{editingInfo:i}=t;return i?{lastEditDate:null!=i.lastEditDate?new Date(i.lastEditDate):null}:null}get effectiveCapabilities(){const e=this.capabilities;if(!e)return null;const t=(0,n.o8)(e),{operations:i,editing:r}=t;return(0,b.Pt)(this)?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=r.supportsGeometryUpdate=!0),t)}readGlobalIdFieldFromService(e,t){return(0,b.jD)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||(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,r){(0,m.LS)(this,e,null,t,r)}readVersion(e,t){return(0,b.$4)(t)}};return(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"authenticationTriggerEvent",null),(0,r._)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","maxRecordCount","maxRecordCountFactor","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],t.prototype,"capabilities",void 0),(0,r._)([(0,p.w)("service","capabilities")],t.prototype,"readCapabilitiesFromService",null),(0,r._)([(0,l.MZ)((0,w.P6)("dateFieldsTimeReference"))],t.prototype,"dateFieldsTimeZone",void 0),(0,r._)([(0,l.MZ)({type:Boolean})],t.prototype,"datesInUnknownTimezone",void 0),(0,r._)([(0,l.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,r._)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],t.prototype,"displayField",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,type:_})],t.prototype,"editFieldsInfo",void 0),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"editingInfo",void 0),(0,r._)([(0,p.w)("editingInfo")],t.prototype,"readEditingInfo",null),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"effectiveCapabilities",null),(0,r._)([(0,l.MZ)((()=>{const e=(0,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,r._)([(0,l.MZ)({type:F.A,json:{name:"layerDefinition.floorInfo",write:!0,origins:{"web-scene":{name:"layerDefinition.floorInfo",write:{enabled:!0,layerContainerTypes:u.K}}}}})],t.prototype,"floorInfo",void 0),(0,r._)([(0,l.MZ)({type:c.A,json:{origins:{service:{read:{source:"extent"}}}}})],t.prototype,"fullExtent",void 0),(0,r._)([(0,l.MZ)()],t.prototype,"gdbVersion",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,type:j,json:{read:{source:"geometryProperties"}}})],t.prototype,"geometryFieldsInfo",void 0),(0,r._)([(0,l.MZ)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:b.iX.read}}}})],t.prototype,"geometryType",void 0),(0,r._)([(0,l.MZ)({type:String})],t.prototype,"globalIdField",void 0),(0,r._)([(0,p.w)("service","globalIdField",["globalIdField","fields"])],t.prototype,"readGlobalIdFieldFromService",null),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"hasFullEditingRestrictions",null),(0,r._)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasM",void 0),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"hasUpdateItemRestrictions",null),(0,r._)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasZ",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,type:y.A})],t.prototype,"heightModelInfo",void 0),(0,r._)([(0,l.MZ)({type:Date})],t.prototype,"historicMoment",void 0),(0,r._)([(0,l.MZ)({type:o.A.ofType(x),readOnly:!0})],t.prototype,"indexes",void 0),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"isTable",void 0),(0,r._)([(0,p.w)("service","isTable",["type"])],t.prototype,"readIsTableFromService",null),(0,r._)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],t.prototype,"layerId",void 0),(0,r._)([(0,l.MZ)(f.hG)],t.prototype,"maxScale",void 0),(0,r._)([(0,p.w)("service","maxScale",["maxScale","effectiveMaxScale"])],t.prototype,"readMaxScale",null),(0,r._)([(0,l.MZ)(f.hn)],t.prototype,"minScale",void 0),(0,r._)([(0,p.w)("service","minScale",["minScale","effectiveMinScale"])],t.prototype,"readMinScale",null),(0,r._)([(0,l.MZ)({type:String})],t.prototype,"objectIdField",void 0),(0,r._)([(0,p.w)("service","objectIdField",["objectIdField","fields"])],t.prototype,"readObjectIdFieldFromService",null),(0,r._)([(0,l.MZ)((0,w.P6)("preferredTimeReference"))],t.prototype,"preferredTimeZone",void 0),(0,r._)([(0,l.MZ)({type:[I.A],readOnly:!0})],t.prototype,"relationships",void 0),(0,r._)([(0,l.MZ)({type:Boolean})],t.prototype,"returnM",void 0),(0,r._)([(0,l.MZ)({type:Boolean})],t.prototype,"returnZ",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,json:{write:!1}})],t.prototype,"serverGens",void 0),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"serviceDefinitionExpression",void 0),(0,r._)([(0,p.w)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],t.prototype,"readServiceDefinitionExpression",null),(0,r._)([(0,l.MZ)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"serviceItemId",void 0),(0,r._)([(0,l.MZ)()],t.prototype,"sourceJSON",void 0),(0,r._)([(0,l.MZ)({type:h.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],t.prototype,"spatialReference",void 0),(0,r._)([(0,l.MZ)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],t.prototype,"subtypeField",void 0),(0,r._)([(0,l.MZ)({type:[R],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"subtypes",void 0),(0,r._)([(0,l.MZ)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],t.prototype,"trackIdField",void 0),(0,r._)([(0,l.MZ)(f.OZ)],t.prototype,"url",null),(0,r._)([(0,d.K)("url")],t.prototype,"writeUrl",null),(0,r._)([(0,l.MZ)({json:{origins:{service:{read:!0}},read:!1}})],t.prototype,"version",void 0),(0,r._)([(0,p.w)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],t.prototype,"readVersion",null),t=(0,r._)([(0,a.$)("esri.layers.mixins.FeatureLayerBase")],t),t}},91908:(e,t,i)=>{i.d(t,{D:()=>n});var r=i(60694);const o=[];function n(e,t){if((0,r.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of o){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}o.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),o.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),o.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),o.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),o.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},20816:(e,t,i)=>{i.d(t,{TA:()=>o,We:()=>l,Z3:()=>n,ZJ:()=>p,w5:()=>a});var r=i(78888);const o=(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 o=new URL(e).host;let s=n.get(o);if(!s){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");s=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return s===t}async function p(e,t,r=!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&&r){const[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(i.bind(i,32186)),i.e(2558).then(i.bind(i,32558))]),l=await t(n,e,new r({sessionId:o,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*$/,""),r=s.get(i)?.entries();if(r)for(const[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[620],{4206:(e,t,i)=>{i.d(t,{A:()=>$e});var r,o=i(90237),n=i(25482),s=i(4718),l=i(3483),p=i(10107),a=i(79901),d=i(36005),u=i(40608),c=i(43937);i(44208),i(53966),i(87811);let y=r=class extends n.oY{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new r({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],y.prototype,"expression",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,o._)([(0,p.MZ)({type:["boolean","date","number","string"],json:{write:!0}})],y.prototype,"returnType",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),y=r=(0,o._)([(0,u.$)("esri.form.ExpressionInfo")],y);const h=y;let m=class extends n.oY{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"description",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"label",void 0),(0,o._)([(0,p.MZ)()],m.prototype,"type",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"visibilityExpression",void 0),m=(0,o._)([(0,u.$)("esri.form.elements.Element")],m);const f=m;var v,g=i(56507);let w=v=class extends n.oY{constructor(e){super(e),this.type=null}clone(){return new v({type:this.type})}};(0,o._)([(0,p.MZ)({type:["attachment","audio","document","image","signature","video"],json:{write:!0}})],w.prototype,"type",void 0),w=v=(0,o._)([(0,u.$)("esri.form.elements.inputs.AttachmentInput")],w);const M=w;var _;let x=_=class extends f{constructor(e){super(e),this.attachmentKeyword=null,this.editableExpression=null,this.input=null,this.type="attachment"}clone(){return new _({attachmentKeyword:this.attachmentKeyword,description:this.description,editableExpression:this.editableExpression,input:this.input,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"attachmentKeyword",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"editableExpression",void 0),(0,o._)([(0,p.MZ)({type:M,json:{read:{source:"inputType"},write:{target:"inputType"}}})],x.prototype,"input",void 0),(0,o._)([(0,p.MZ)({type:["attachment"],json:{read:!1,write:!0}})],x.prototype,"type",void 0),x=_=(0,o._)([(0,u.$)("esri.form.elements.AttachmentElement")],x);const b=x;let Z=class extends n.oY{constructor(e){super(e),this.type=null}};(0,o._)([(0,p.MZ)()],Z.prototype,"type",void 0),Z=(0,o._)([(0,u.$)("esri.form.elements.inputs.Input")],Z);const S=Z;let j=class extends S{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,o._)([(0,p.MZ)({type:Number,json:{write:!0}})],j.prototype,"maxLength",void 0),(0,o._)([(0,p.MZ)({type:Number,json:{write:!0}})],j.prototype,"minLength",void 0),j=(0,o._)([(0,u.$)("esri.form.elements.inputs.TextInput")],j);const F=j;var I;let E=I=class extends F{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new I({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,p.MZ)({type:["barcode-scanner"],json:{read:!1,write:!0}})],E.prototype,"type",void 0),E=I=(0,o._)([(0,u.$)("esri.form.elements.inputs.BarcodeScannerInput")],E);const O=E;var T;let R=T=class extends S{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new T({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],R.prototype,"noValueOptionLabel",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],R.prototype,"showNoValueOption",void 0),(0,o._)([(0,p.MZ)({type:["combo-box"],json:{read:!1,write:!0}})],R.prototype,"type",void 0),R=T=(0,o._)([(0,u.$)("esri.form.elements.inputs.ComboBoxInput")],R);const k=R;var V;function U(e){return null!=e?e:null}function A(e){return null!=e?e:null}let D=V=class extends S{constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return U(t.max)}writeMax(e,t){t.max=A(e)}readMin(e,t){return U(t.min)}writeMin(e,t){t.min=A(e)}clone(){return new V({max:this.max,min:this.min})}};(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],D.prototype,"max",void 0),(0,o._)([(0,d.w)("max")],D.prototype,"readMax",null),(0,o._)([(0,c.K)("max")],D.prototype,"writeMax",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],D.prototype,"min",void 0),(0,o._)([(0,d.w)("min")],D.prototype,"readMin",null),(0,o._)([(0,c.K)("min")],D.prototype,"writeMin",null),(0,o._)([(0,p.MZ)({type:["date-picker"],json:{read:!1,write:!0}})],D.prototype,"type",void 0),D=V=(0,o._)([(0,u.$)("esri.form.elements.inputs.DatePickerInput")],D);const L=D;var B;function C(e){return null!=e?e:null}function $(e){return null!=e?e:null}let N=B=class extends S{constructor(e){super(e),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="datetimeoffset-picker"}readMax(e,t){return C(t.max)}writeMax(e,t){t.max=$(e)}readMin(e,t){return C(t.min)}writeMin(e,t){t.min=$(e)}readTimeResolution(e,t){return C(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=$(e)}clone(){return new B({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],N.prototype,"includeTimeOffset",void 0),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],N.prototype,"max",void 0),(0,o._)([(0,d.w)("max")],N.prototype,"readMax",null),(0,o._)([(0,c.K)("max")],N.prototype,"writeMax",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],N.prototype,"min",void 0),(0,o._)([(0,d.w)("min")],N.prototype,"readMin",null),(0,o._)([(0,c.K)("min")],N.prototype,"writeMin",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],N.prototype,"timeResolution",void 0),(0,o._)([(0,d.w)("timeResolution")],N.prototype,"readTimeResolution",null),(0,o._)([(0,c.K)("timeResolution")],N.prototype,"writeTimeResolution",null),(0,o._)([(0,p.MZ)({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],N.prototype,"type",void 0),N=B=(0,o._)([(0,u.$)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],N);const H=N;var G;function K(e){return null!=e?new Date(e):null}function P(e){return e?e.getTime():null}let W=G=class extends S{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return K(t.max)}writeMax(e,t){t.max=P(e)}readMin(e,t){return K(t.min)}writeMin(e,t){t.min=P(e)}clone(){return new G({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],W.prototype,"includeTime",void 0),(0,o._)([(0,p.MZ)({type:Date,json:{type:Number,write:!0}})],W.prototype,"max",void 0),(0,o._)([(0,d.w)("max")],W.prototype,"readMax",null),(0,o._)([(0,c.K)("max")],W.prototype,"writeMax",null),(0,o._)([(0,p.MZ)({type:Date,json:{type:Number,write:!0}})],W.prototype,"min",void 0),(0,o._)([(0,d.w)("min")],W.prototype,"readMin",null),(0,o._)([(0,c.K)("min")],W.prototype,"writeMin",null),(0,o._)([(0,p.MZ)({type:["datetime-picker"],json:{read:!1,write:!0}})],W.prototype,"type",void 0),W=G=(0,o._)([(0,u.$)("esri.form.elements.inputs.DateTimePickerInput")],W);const Q=W;var q;let Y=q=class extends S{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new q({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],Y.prototype,"noValueOptionLabel",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],Y.prototype,"showNoValueOption",void 0),(0,o._)([(0,p.MZ)({type:["radio-buttons"],json:{read:!1,write:!0}})],Y.prototype,"type",void 0),Y=q=(0,o._)([(0,u.$)("esri.form.elements.inputs.RadioButtonsInput")],Y);const z=Y;var J;let X=J=class extends S{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new J({offValue:this.offValue,onValue:this.onValue})}};(0,o._)([(0,p.MZ)({type:[String,Number],json:{write:!0}})],X.prototype,"offValue",void 0),(0,o._)([(0,p.MZ)({type:[String,Number],json:{write:!0}})],X.prototype,"onValue",void 0),(0,o._)([(0,p.MZ)({type:["switch"],json:{read:!1,write:!0}})],X.prototype,"type",void 0),X=J=(0,o._)([(0,u.$)("esri.form.elements.inputs.SwitchInput")],X);const ee=X;var te;let ie=te=class extends F{constructor(e){super(e),this.type="text-area"}clone(){return new te({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,p.MZ)({type:["text-area"],json:{read:!1,write:!0}})],ie.prototype,"type",void 0),ie=te=(0,o._)([(0,u.$)("esri.form.elements.inputs.TextAreaInput")],ie);const re=ie;var oe;let ne=oe=class extends F{constructor(e){super(e),this.type="text-box"}clone(){return new oe({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,p.MZ)({type:["text-box"],json:{read:!1,write:!0}})],ne.prototype,"type",void 0),ne=oe=(0,o._)([(0,u.$)("esri.form.elements.inputs.TextBoxInput")],ne);const se=ne;var le;function pe(e){return null!=e?e:null}function ae(e){return null!=e?e:null}let de=le=class extends S{constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return pe(t.max)}writeMax(e,t){t.max=ae(e)}readMin(e,t){return pe(t.min)}writeMin(e,t){t.min=ae(e)}readTimeResolution(e,t){return pe(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=ae(e)}clone(){return new le({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],de.prototype,"max",void 0),(0,o._)([(0,d.w)("max")],de.prototype,"readMax",null),(0,o._)([(0,c.K)("max")],de.prototype,"writeMax",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],de.prototype,"min",void 0),(0,o._)([(0,d.w)("min")],de.prototype,"readMin",null),(0,o._)([(0,c.K)("min")],de.prototype,"writeMin",null),(0,o._)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],de.prototype,"timeResolution",void 0),(0,o._)([(0,d.w)("timeResolution")],de.prototype,"readTimeResolution",null),(0,o._)([(0,c.K)("timeResolution")],de.prototype,"writeTimeResolution",null),(0,o._)([(0,p.MZ)({type:["time-picker"],json:{read:!1,write:!0}})],de.prototype,"type",void 0),de=le=(0,o._)([(0,u.$)("esri.form.elements.inputs.TimePickerInput")],de);const ue={base:S,key:"type",typeMap:{"barcode-scanner":O,"combo-box":k,"date-picker":L,"datetime-picker":Q,"datetimeoffset-picker":H,"radio-buttons":z,switch:ee,"text-area":re,"text-box":se,"time-picker":de}};var ce,ye=i(72088);let he=ce=class extends f{constructor(e){super(e),this.domain=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}get editable(){return this._get("editable")??!0}set editable(e){this._set("editable",e)}clone(){return new ce({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({types:ye.gK,json:{read:{reader:ye.rS},write:!0}})],he.prototype,"domain",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],he.prototype,"editable",null),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"editableExpression",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"fieldName",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"hint",void 0),(0,o._)([(0,p.MZ)({types:ue,json:{read:{source:"inputType"},write:{target:"inputType"}}})],he.prototype,"input",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"requiredExpression",void 0),(0,o._)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],he.prototype,"type",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"valueExpression",void 0),he=ce=(0,o._)([(0,u.$)("esri.form.elements.FieldElement")],he);const me=he;var fe,ve=i(49852);let ge=fe=class extends f{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editableExpression=null,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new fe({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,s.o8)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({type:Number,json:{write:!0}})],ge.prototype,"displayCount",void 0),(0,o._)([(0,p.MZ)({type:["list"],json:{write:!0}})],ge.prototype,"displayType",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],ge.prototype,"editableExpression",void 0),(0,o._)([(0,p.MZ)({type:[ve.A],json:{write:!0}})],ge.prototype,"orderByFields",void 0),(0,o._)([(0,p.MZ)({type:Number,json:{write:!0}})],ge.prototype,"relationshipId",void 0),(0,o._)([(0,p.MZ)({type:["relationship"],json:{read:!1,write:!0}})],ge.prototype,"type",void 0),ge=fe=(0,o._)([(0,u.$)("esri.form.elements.RelationshipElement")],ge);const we=ge;var Me;let _e=Me=class extends f{constructor(e){super(e),this.text=null,this.textFormat="plain-text",this.type="text"}clone(){return new Me({text:this.text,textFormat:this.textFormat,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],_e.prototype,"text",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],_e.prototype,"textFormat",void 0),(0,o._)([(0,p.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],_e.prototype,"type",void 0),_e=Me=(0,o._)([(0,u.$)("esri.form.elements.TextElement")],_e);const xe=_e;function be(e){return{typesWithGroup:{base:f,key:"type",typeMap:{attachment:b,field:me,group:e,relationship:we,text:xe}},typesWithoutGroup:{base:f,key:"type",typeMap:{attachment:b,field:me,relationship:we,text:xe}}}}function Ze(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>r[e.type])).map((e=>r[e.type].fromJSON(e)))}function Se(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>r[e.type])).map((e=>e.toJSON()))}function je(e,t,i=!0){return e?e.map((e=>(0,g.aq)(i?t.typesWithGroup:t.typesWithoutGroup,e))):null}var Fe;let Ie=Fe=class extends f{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return je(e,Ee,!1)}readElements(e,t){return Ze(t.formElements,Ee,!1)}writeElements(e,t){t.formElements=Se(e,Ee,!1)}clone(){return new Fe({description:this.description,elements:(0,s.o8)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,p.MZ)({json:{write:!0}})],Ie.prototype,"elements",void 0),(0,o._)([(0,a.w)("elements")],Ie.prototype,"castElements",null),(0,o._)([(0,d.w)("elements",["formElements"])],Ie.prototype,"readElements",null),(0,o._)([(0,c.K)("elements")],Ie.prototype,"writeElements",null),(0,o._)([(0,p.MZ)({type:["collapsed","expanded"],json:{write:!0}})],Ie.prototype,"initialState",void 0),(0,o._)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],Ie.prototype,"type",void 0),Ie=Fe=(0,o._)([(0,u.$)("esri.form.elements.GroupElement")],Ie);const Ee=be(Ie),Oe=Ie,Te=e=>"field"===e.type,Re=e=>"group"===e.type,ke=e=>"text"===e.type;var Ve,Ue=i(30524);const Ae=be(Oe);let De=Ve=class extends n.oY{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(e){return je(e,Ae)}readElements(e,t){return Ze(t.formElements,Ae)}writeElements(e,t){t.formElements=Se(e,Ae)}clone(){return new Ve({description:this.description,expressionInfos:(0,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:r,elements:o,expressionInfos:n,title:s}=this;if(Ce(i,e,r),Ce(i,e,s),!o)return[];const l=function(e,t){if(!t||0===t.length)return[];const i=Be(e),r=[];for(const e of t)i.has(e.name)&&r.push(e.expression);return r}(o,n).map((t=>(0,Ue.Dx)(i,e,t)));await Promise.all(l);for(const r of o)Le(i,{fieldsIndex:e,relationships:t},r);return Array.from(i).sort()}};function Le(e,t,i){const{fieldsIndex:r}=t;if(!r||r.fields.length!==e.size)switch(Ce(e,r,i.label),Ce(e,r,i.description),i.type){case"field":(0,Ue.rq)(e,r,i.fieldName);break;case"group":i.elements.forEach((i=>Le(e,t,i)));break;case"relationship":if(t.relationships){const o=t.relationships.find((e=>e.id===i.relationshipId));o&&(0,Ue.rq)(e,r,o.keyField)}(0,Ue._w)(e,r,i.orderByFields?.map((e=>e.field)));break;case"text":Ce(e,r,i.text)}}function Be(e){const t=new Set;for(const i of e)if((0,l.kb)(t,i.visibilityExpression),!ke(i))if(Re(i))(0,l.FB)(t,Be(i.elements));else if((0,l.kb)(t,i.editableExpression),Te(i)){const{requiredExpression:e,valueExpression:r}=i;(0,l.FB)(t,[e,r])}return t}function Ce(e,t,i){(0,Ue._w)(e,t,(0,Ue.nw)(i))}(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],De.prototype,"description",void 0),(0,o._)([(0,p.MZ)({json:{write:!0}})],De.prototype,"elements",void 0),(0,o._)([(0,a.w)("elements")],De.prototype,"castElements",null),(0,o._)([(0,d.w)("elements",["formElements"])],De.prototype,"readElements",null),(0,o._)([(0,c.K)("elements")],De.prototype,"writeElements",null),(0,o._)([(0,p.MZ)({type:[h],json:{write:!0}})],De.prototype,"expressionInfos",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],De.prototype,"preserveFieldValuesWhenHidden",void 0),(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],De.prototype,"title",void 0),De=Ve=(0,o._)([(0,u.$)("esri.form.FormTemplate")],De);const $e=De},54239:(e,t,i)=>{i.d(t,{A:()=>w});var r,o=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)),c=i(40608),y=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=r=class extends l.oY{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return h.write(e,t,i)}readHeightModel(e,t,i){return h.read(e)||(i?.messages&&i.messages.push(function(e,t){return new a.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(g(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,p.LA)(e)||f.read(e)||(i?.messages&&i.messages.push(g(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,p.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function g(e,t){return new a.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o._)([(0,d.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],v.prototype,"heightModel",void 0),(0,o._)([(0,y.K)("web-scene","heightModel")],v.prototype,"writeHeightModel",null),(0,o._)([(0,u.w)(["web-scene","service"],"heightModel")],v.prototype,"readHeightModel",null),(0,o._)([(0,d.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],v.prototype,"heightUnit",void 0),(0,o._)([(0,u.w)("web-scene","heightUnit")],v.prototype,"readHeightUnit",null),(0,o._)([(0,u.w)("service","heightUnit")],v.prototype,"readHeightUnitService",null),(0,o._)([(0,d.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],v.prototype,"vertCRS",void 0),(0,o._)([(0,u.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],v.prototype,"readVertCRS",null),v=r=(0,o._)([(0,c.$)("esri.geometry.HeightModelInfo")],v);const w=v},47685:(e,t,i)=>{i.d(t,{Mk:()=>y,Zk:()=>u,w6:()=>f});var r=i(90237),o=i(65529),n=i(4718),s=i(74887),l=i(10107),p=(i(44208),i(53966),i(40608)),a=i(20816);const d=new o.A.EventEmitter;function u(e,t,i=null,r=!1){const o=(0,s.Tw)();return r=null==t||r,d.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:o.promise}),o}const c=Symbol();function y(e){return null!=e&&"object"==typeof e&&c in e}function h(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,i){const r=new URL(e).host,o=a.Z3.get(r),n=e=>!e||e===o;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:r,mayReceiveServiceEdits:o,result:s}=e,l=t===this.url,p=null!=i&&null!=this.layerId&&i===this.layerId,a=h(this),d=h(this)&&m(t,r,this.gdbVersion);if(!l||a&&!d||!p&&!o)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:r,deletes:o}=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:o?o.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:r?r.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",s),s}const o={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,r,o.historicMoment)&&this.emit("edits",o),o})).then((e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:u})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,o=t===this.url,n=h(this),s=h(this)&&m(t,i,this.gdbVersion),l=h(this)&&!m(t,this.gdbVersion,null);o&&n&&s&&l&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},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=c,(0,r._)([(0,l.MZ)()],i.prototype,"lastEditsEventDate",void 0),i=(0,r._)([(0,p.$)("esri.layers.mixins.EditBusLayer")],i),i}},87796:(e,t,i)=>{i.d(t,{j:()=>k});var r=i(90237),o=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),c=i(5443),y=i(54239),h=i(16930),m=i(60694),f=i(10873),v=i(69540),g=i(25482),w=(i(87811),i(56400));let M=class extends((0,v.O)(g.oY)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r._)([(0,l.MZ)()],M.prototype,"creatorField",void 0),(0,r._)([(0,l.MZ)()],M.prototype,"creationDateField",void 0),(0,r._)([(0,l.MZ)()],M.prototype,"editorField",void 0),(0,r._)([(0,l.MZ)()],M.prototype,"editDateField",void 0),(0,r._)([(0,l.MZ)()],M.prototype,"realm",void 0),(0,r._)([(0,l.MZ)((0,w.P6)("dateFieldsTimeReference",!0))],M.prototype,"timeZone",void 0),M=(0,r._)([(0,a.$)("esri.layers.support.EditFieldsInfo")],M);const _=M;let x=class extends((0,v.O)(g.oY)){constructor(e){super(e)}};(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"name",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"fields",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"isAscending",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"indexType",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"isUnique",void 0),(0,r._)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],x.prototype,"description",void 0),x=(0,r._)([(0,a.$)("esri.layers.support.FeatureIndex")],x);var b=i(15426),Z=i(83047);let S=class extends((0,v.O)(g.oY)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,r._)([(0,l.MZ)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],S.prototype,"shapeAreaField",void 0),(0,r._)([(0,l.MZ)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],S.prototype,"shapeLengthField",void 0),(0,r._)([(0,l.MZ)({type:String,json:{read:e=>Z.dk.read(e)||Z.Sk.read(e)}})],S.prototype,"units",void 0),S=(0,r._)([(0,a.$)("esri.layers.support.GeometryFieldsInfo")],S);const j=S;var F=i(37352),I=i(45067),E=i(22453),O=i(72088);let T=class extends((0,v.O)(g.oY)){constructor(e){super(e),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,O.rS)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r._)([(0,l.MZ)({type:Number,json:{write:!0}})],T.prototype,"code",void 0),(0,r._)([(0,l.MZ)({type:Object,json:{write:!0}})],T.prototype,"defaultValues",void 0),(0,r._)([(0,l.MZ)({json:{write:!0}})],T.prototype,"domains",void 0),(0,r._)([(0,p.w)("domains")],T.prototype,"readDomains",null),(0,r._)([(0,d.K)("domains")],T.prototype,"writeDomains",null),(0,r._)([(0,l.MZ)({type:String,json:{write:!0}})],T.prototype,"name",void 0),T=(0,r._)([(0,a.$)("esri.layers.support.Subtype")],T);const R=T,k=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.capabilities=null,this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.definitionExpression=null,this.displayField=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.globalIdField=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.indexes=new(o.A.ofType(x)),this.isTable=!1,this.layerId=void 0,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.preferredTimeZone=null,this.relationships=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.serviceItemId=null,this.sourceJSON=null,this.spatialReference=h.A.WGS84,this.subtypeField=null,this.subtypes=null,this.trackIdField=null,this.version=void 0}get authenticationTriggerEvent(){if(!this.url)return null;const{capabilities:e}=this;if(e){const{query:t,operations:i,editing:r}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(r.supportsUpdateByOthers&&r.supportsUpdateByAnonymous&&r.supportsDeleteByOthers&&r.supportsDeleteByAnonymous))return"load"}if(this.userHasUpdateItemPrivileges){if((0,b.tG)(this))return"load";if(this.hasUpdateItemRestrictions)return e.operations.supportsQuery?"editing":"load"}if(this.userHasFullEditingPrivileges&&this.hasFullEditingRestrictions)return"editing";const t=this.editFieldsInfo;return(t?.creatorField||t?.editorField)&&e?.operations.supportsEditing?"editing":null}readCapabilitiesFromService(e,t){return(0,E.S)(t,this.url)}readEditingInfo(e,t){const{editingInfo:i}=t;return i?{lastEditDate:null!=i.lastEditDate?new Date(i.lastEditDate):null}:null}get effectiveCapabilities(){const e=this.capabilities;if(!e)return null;const t=(0,n.o8)(e),{operations:i,editing:r}=t;return(0,b.Pt)(this)?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=r.supportsGeometryUpdate=!0),t)}readGlobalIdFieldFromService(e,t){return(0,b.jD)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||(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,r){(0,m.LS)(this,e,null,t,r)}readVersion(e,t){return(0,b.$4)(t)}};return(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"authenticationTriggerEvent",null),(0,r._)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","maxRecordCount","maxRecordCountFactor","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],t.prototype,"capabilities",void 0),(0,r._)([(0,p.w)("service","capabilities")],t.prototype,"readCapabilitiesFromService",null),(0,r._)([(0,l.MZ)((0,w.P6)("dateFieldsTimeReference"))],t.prototype,"dateFieldsTimeZone",void 0),(0,r._)([(0,l.MZ)({type:Boolean})],t.prototype,"datesInUnknownTimezone",void 0),(0,r._)([(0,l.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,r._)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],t.prototype,"displayField",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,type:_})],t.prototype,"editFieldsInfo",void 0),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"editingInfo",void 0),(0,r._)([(0,p.w)("editingInfo")],t.prototype,"readEditingInfo",null),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"effectiveCapabilities",null),(0,r._)([(0,l.MZ)((()=>{const e=(0,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,r._)([(0,l.MZ)({type:F.A,json:{name:"layerDefinition.floorInfo",write:!0,origins:{"web-scene":{name:"layerDefinition.floorInfo",write:{enabled:!0,layerContainerTypes:u.K}}}}})],t.prototype,"floorInfo",void 0),(0,r._)([(0,l.MZ)({type:c.A,json:{origins:{service:{read:{source:"extent"}}}}})],t.prototype,"fullExtent",void 0),(0,r._)([(0,l.MZ)()],t.prototype,"gdbVersion",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,type:j,json:{read:{source:"geometryProperties"}}})],t.prototype,"geometryFieldsInfo",void 0),(0,r._)([(0,l.MZ)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:b.iX.read}}}})],t.prototype,"geometryType",void 0),(0,r._)([(0,l.MZ)({type:String})],t.prototype,"globalIdField",void 0),(0,r._)([(0,p.w)("service","globalIdField",["globalIdField","fields"])],t.prototype,"readGlobalIdFieldFromService",null),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"hasFullEditingRestrictions",null),(0,r._)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasM",void 0),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"hasUpdateItemRestrictions",null),(0,r._)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasZ",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,type:y.A})],t.prototype,"heightModelInfo",void 0),(0,r._)([(0,l.MZ)({type:Date})],t.prototype,"historicMoment",void 0),(0,r._)([(0,l.MZ)({type:o.A.ofType(x),readOnly:!0})],t.prototype,"indexes",void 0),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"isTable",void 0),(0,r._)([(0,p.w)("service","isTable",["type"])],t.prototype,"readIsTableFromService",null),(0,r._)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],t.prototype,"layerId",void 0),(0,r._)([(0,l.MZ)(f.hG)],t.prototype,"maxScale",void 0),(0,r._)([(0,p.w)("service","maxScale",["maxScale","effectiveMaxScale"])],t.prototype,"readMaxScale",null),(0,r._)([(0,l.MZ)(f.hn)],t.prototype,"minScale",void 0),(0,r._)([(0,p.w)("service","minScale",["minScale","effectiveMinScale"])],t.prototype,"readMinScale",null),(0,r._)([(0,l.MZ)({type:String})],t.prototype,"objectIdField",void 0),(0,r._)([(0,p.w)("service","objectIdField",["objectIdField","fields"])],t.prototype,"readObjectIdFieldFromService",null),(0,r._)([(0,l.MZ)((0,w.P6)("preferredTimeReference"))],t.prototype,"preferredTimeZone",void 0),(0,r._)([(0,l.MZ)({type:[I.A],readOnly:!0})],t.prototype,"relationships",void 0),(0,r._)([(0,l.MZ)({type:Boolean})],t.prototype,"returnM",void 0),(0,r._)([(0,l.MZ)({type:Boolean})],t.prototype,"returnZ",void 0),(0,r._)([(0,l.MZ)({readOnly:!0,json:{write:!1}})],t.prototype,"serverGens",void 0),(0,r._)([(0,l.MZ)({readOnly:!0})],t.prototype,"serviceDefinitionExpression",void 0),(0,r._)([(0,p.w)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],t.prototype,"readServiceDefinitionExpression",null),(0,r._)([(0,l.MZ)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"serviceItemId",void 0),(0,r._)([(0,l.MZ)()],t.prototype,"sourceJSON",void 0),(0,r._)([(0,l.MZ)({type:h.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],t.prototype,"spatialReference",void 0),(0,r._)([(0,l.MZ)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],t.prototype,"subtypeField",void 0),(0,r._)([(0,l.MZ)({type:[R],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"subtypes",void 0),(0,r._)([(0,l.MZ)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],t.prototype,"trackIdField",void 0),(0,r._)([(0,l.MZ)(f.OZ)],t.prototype,"url",null),(0,r._)([(0,d.K)("url")],t.prototype,"writeUrl",null),(0,r._)([(0,l.MZ)({json:{origins:{service:{read:!0}},read:!1}})],t.prototype,"version",void 0),(0,r._)([(0,p.w)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],t.prototype,"readVersion",null),t=(0,r._)([(0,a.$)("esri.layers.mixins.FeatureLayerBase")],t),t}},91908:(e,t,i)=>{i.d(t,{D:()=>n});var r=i(60694);const o=[];function n(e,t){if((0,r.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of o){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}o.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),o.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),o.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),o.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),o.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},20816:(e,t,i)=>{i.d(t,{TA:()=>o,We:()=>l,Z3:()=>n,ZJ:()=>p,w5:()=>a});var r=i(78888);const o=(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 o=new URL(e).host;let s=n.get(o);if(!s){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");s=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return s===t}async function p(e,t,r=!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&&r){const[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(i.bind(i,32186)),i.e(2558).then(i.bind(i,32558))]),l=await t(n,e,new r({sessionId:o,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*$/,""),r=s.get(i)?.entries();if(r)for(const[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6107,9377,3069,9062],{70668:(e,t,r)=>{r.d(t,{A:()=>y});var i=r(90237),n=r(69540),o=r(25482),s=r(88930),l=r(10107),a=(r(44208),r(53966),r(87811),r(93223)),d=r(40608),u=r(73133);let p=class extends((0,n.O)(o.oY)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,a.e)(u.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i._)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i._)([(0,d.$)("esri.TimeInterval")],p);const y=p},32587:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(62788),n=r(95488);class o{constructor(e){this._observable=new n.I,this._map=new Map(e)}get size(){return(0,i.gc)(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(e){const t=this._map.delete(e);return t&&this._observable.notify(),t}entries(){return(0,i.gc)(this._observable),this._map.entries()}forEach(e,t){(0,i.gc)(this._observable),this._map.forEach(((r,i)=>e.call(t,r,i,this)),t)}get(e){return(0,i.gc)(this._observable),this._map.get(e)}has(e){return(0,i.gc)(this._observable),this._map.has(e)}keys(){return(0,i.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._observable.notify(),this}values(){return(0,i.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,i.gc)(this._observable),this._map[Symbol.iterator]()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}},44794:(e,t,r)=>{r.d(t,{v:()=>l});var i=r(4718),n=r(62788),o=r(95488);class s{constructor(e,t){this._observable=new o.I,this._value=e,this._equalityFunction=t}get value(){return(0,n.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function l(e,t=i.gh){return new s(e,t)}},39516:(e,t,r)=>{async function i(e,t){const{WhereClause:i}=await Promise.all([r.e(835),r.e(4800)]).then(r.bind(r,50835));return i.create(e,t)}function n(e,t){return"1=1"===e?t??e:"1=1"===t?e??t:null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}r.d(t,{G:()=>i,m:()=>n})},3330:(e,t,r)=>{r.d(t,{GB:()=>n,Qo:()=>s,Y4:()=>o});var i=r(96285);class n{}function o(e){return e instanceof i.bo?e===n.instance:"unknown"===e?.toString().toLowerCase()}function s(e){return o(e)?n.instance:e}n.instance=new i.oh("Etc/UTC")},13069:(e,t,r)=>{r.d(t,{lk:()=>n,vD:()=>s,yS:()=>o});const i="randomUUID"in crypto;function n(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${n().toUpperCase()}}`}function s(){return`{${n()}}`}},70328:(e,t,r)=>{r.d(t,{BI:()=>f,Ej:()=>u,Hq:()=>d,Ie:()=>h,Jt:()=>m,Ne:()=>p,RF:()=>l,aI:()=>_,fA:()=>o,hZ:()=>c,iT:()=>a,is:()=>g,qv:()=>v,vI:()=>y,v_:()=>w,vt:()=>n,w1:()=>s});var i=r(5443);function n(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,i,o,s,l=n()){return l[0]=e,l[1]=t,l[2]=r,l[3]=i,l[4]=o,l[5]=s,l}function s(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function d(e,t,r=0,i=t.length/3){let n=e[0],o=e[1],s=e[2],l=e[3],a=e[4],d=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),l=Math.max(l,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),d=Math.max(d,t[r+3*e+2]);e[0]=n,e[1]=o,e[2]=s,e[3]=l,e[4]=a,e[5]=d}function u(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function p(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function y(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function c(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function h(e){return e?c(e,v):n(v)}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function f(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function _(e,t,r){if(null==e||null==t)return e===t;if(!g(e)||!g(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(19419);const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];n()},79003:(e,t,r)=>{r.r(t),r.d(t,{default:()=>pe});var i=r(90237),n=r(78888),o=r(5503),s=r(49186),l=r(91869),a=r(92071),d=r(74887),u=r(84952),p=r(10107),y=(r(44208),r(53966),r(87811),r(40608)),c=r(4146),h=r(36563),m=r(55359),f=r(32587),g=r(36708),_=r(44794),v=r(56507),w=r(63074),b=r(25036),M=r(10873),F=r(91880),x=r(1873);let Z=class extends((0,b.j)((0,w.dM)((0,a.P)(c.A)))){constructor(e){super(e),this._layerCache=new m.q(20,(e=>e.destroy())),this._oidToReference=new f.A,this._layerToReference=new Map,this.layers=new o.A,this.maximumVisibleSublayers=10,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.title="Layers in view",this.type="catalog-dynamic-group",this.visible=!0}initialize(){this.addHandles([this.layers.on("after-add",(({item:e})=>{e.parent=this})),this.layers.on("after-remove",(({item:e})=>{e.parent=null})),(0,g.wB)((()=>this._orderBy),(()=>{this._updateLayerSortValues(),this._sortAllLayers()}))])}load(e){return this.addResolvingPromise(this.parent.load()),Promise.resolve(this)}destroy(){this._layerCache.destroy(),this._oidToReference.clear(),this._layerToReference.clear()}get _orderBy(){return this.parent?this.parent.orderBy?.find((e=>!e.valueExpression&&e.field))??new F.A({field:this.parent.objectIdField}):null}get _referenceComparator(){const e=this._orderBy;if(!this.parent||!e)return()=>0;const t=this.parent.fieldsIndex.get(e.field),r=(0,x.FM)(t?.toJSON().type,"descending"===e.order),i=(0,x.FM)("esriFieldTypeOID","descending"===e.order);return(e,t)=>r(t.sortValue,e.sortValue)||i(t.objectId,e.objectId)}get fullExtent(){return this.parent?.fullExtent??null}get updating(){return(0,l.Bs)(this._oidToReference,(e=>null!=e.pending))}acquireLayer(e){if(this.destroyed)return(0,h.hA)();const t=this._getLayerReference(e);return t.count++,(0,h.hA)((()=>{t.count--,t.count||this._destroyLayerReference(t)}))}_getLayerReference(e){const t=e.getObjectId();return(0,l.tE)(this._oidToReference,t,(()=>{const t=e.getObjectId(),r=`${t}`,i=e.getAttribute(this.parent.itemSourceField),n=new T(e,t,i),o=this._layerCache.pop(r);return o?(this._addLayer(n,o),n):(n.pending=this.parent.createLayerFromFootprint(e).then((e=>{n.count?this._addLayer(n,e):(this.destroyed||this._layerCache.get(r)||this._layerCache.put(r,e),n.layer=null)})).catch((()=>{})).finally((()=>{n.pending=null})),n)}))}_destroyLayerReference(e){e.layer&&(this._layerToReference.delete(e.layer),this.layers.remove(e.layer),this.destroyed?e.layer.destroy():this._layerCache.put(`${e.objectId}`,e.layer),e.layer=null),this._oidToReference.delete(e.objectId)}_addLayer(e,t){e.layer=t,t.persistenceEnabled=!1,this._layerToReference.set(t,e),this._updateLayerSortValue(e),this.layers.add(t),this._sortAllLayers()}_updateLayerSortValues(){for(const e of this._layerToReference.values())this._updateLayerSortValue(e)}_updateLayerSortValue(e){this._orderBy&&(e.sortValue=e.footprint.getAttribute(this._orderBy.field))}_sortAllLayers(){this.layers.sort(((e,t)=>this._referenceComparator(this._layerToReference.get(e),this._layerToReference.get(t))))}};(0,i._)([(0,p.MZ)()],Z.prototype,"_orderBy",null),(0,i._)([(0,p.MZ)({readOnly:!0})],Z.prototype,"_referenceComparator",null),(0,i._)([(0,p.MZ)({type:["show","hide","hide-children"],json:{write:!0}})],Z.prototype,"listMode",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],Z.prototype,"fullExtent",null),(0,i._)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],Z.prototype,"id",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],Z.prototype,"layers",void 0),(0,i._)([(0,p.MZ)({type:v.jz,range:{min:0,max:50},json:{write:!0,default:10}})],Z.prototype,"maximumVisibleSublayers",void 0),(0,i._)([(0,p.MZ)(M.ke)],Z.prototype,"opacity",void 0),(0,i._)([(0,p.MZ)({clonable:!1})],Z.prototype,"parent",void 0),(0,i._)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],Z.prototype,"title",void 0),(0,i._)([(0,p.MZ)({json:{read:!1}})],Z.prototype,"type",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],Z.prototype,"updating",null),(0,i._)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],Z.prototype,"visible",void 0),Z=(0,i._)([(0,y.$)("esri.layers.catalog.CatalogDynamicGroupLayer")],Z);const I=Z;class T{constructor(e,t,r){this.footprint=e,this.objectId=t,this.itemSource=r,this.count=0,this.layer=null,this.sortValue=void 0,this._pending=(0,_.v)(null)}get pending(){return this._pending.value}set pending(e){this._pending.value=e}}var S=r(13874),O=(r(86162),r(94409),r(65345),r(42980),r(39290),r(92438),r(96576)),j=(r(93618),r(65494),r(15036)),E=r(4718),A=r(35666),R=r(4206),N=r(87718),L=r(30524),V=r(81457),D=r(39383),B=r(30291),P=r(94985);let q=class extends((0,b.j)((0,N.F)((0,w.dM)((0,a.P)(c.A))))){constructor(e){super(e),this.charts=null,this.editingEnabled=!0,this.elevationInfo=null,this.formTemplate=null,this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.title="Footprints",this.type="catalog-footprint",this.visible=!0}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.parent.load(e),(0,L.yp)(this.renderer,this.fieldsIndex),this.addHandles([this.parent.on("apply-edits",(e=>this.emit("apply-edits",e))),this.parent.on("edits",(e=>this.emit("edits",e))),this.parent.on("refresh",(e=>this.emit("refresh",e)))])}get apiKey(){return this.parent?.apiKey}get capabilities(){return this.parent?.capabilities}get customParameters(){return this.parent?.customParameters}get dateFieldsTimeZone(){return this.parent?.dateFieldsTimeZone??null}get datesInUnknownTimezone(){return this.parent?.datesInUnknownTimezone??!1}get definitionExpression(){return this.parent?.definitionExpression}get editingInfo(){return this.parent?.editingInfo}get effectiveCapabilities(){return this.parent?.effectiveCapabilities}get createQueryVersion(){return this.parent?.createQueryVersion}get defaultPopupTemplate(){return this.createPopupTemplate()}get displayField(){return this.parent?.displayField}get effectiveEditingEnabled(){return!1}get fields(){return this.parent?.fields}get fieldsIndex(){return this.parent?.fieldsIndex}get fullExtent(){return this.parent?.fullExtent}get geometryFieldsInfo(){return this.parent?.geometryFieldsInfo}get geometryType(){return this.parent?.geometryType}get globalIdField(){return this.parent?.globalIdField}get hasM(){return this.parent?.hasM??!1}get hasZ(){return this.parent?.hasZ??!1}get objectIdField(){return this.parent?.objectIdField}get orderBy(){return this.parent?.orderBy??null}get outFields(){return this.parent?.outFields}get parsedUrl(){return this.parent?.parsedUrl??null}get preferredTimeZone(){return this.parent?.preferredTimeZone??null}set renderer(e){(0,L.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){return this._isOverridden("renderer")?this._get("renderer"):function(){const e=new P.A({style:"solid",color:[0,0,0,0],outline:{style:"solid",color:[96,96,96,.75],width:.75}});return new O.A({symbol:e})}()}get returnM(){return this.parent?.returnM}get returnZ(){return this.parent?.returnZ}get source(){return this.parent?.source}get timeExtent(){return this.parent?.timeExtent}get timeInfo(){return this.parent?.timeInfo}get timeOffset(){return this.parent?.timeOffset}get typeIdField(){return this.parent?.typeIdField}get types(){return this.parent?.types}get useViewTime(){return this.parent?.useViewTime??!0}get version(){return this.parent?.version}async applyEdits(e,t){return await this.load(),this.parent.applyEdits(e,t)}createPopupTemplate(e){const t={fields:this.fields,objectIdField:this.objectIdField,title:this.title};return(0,B.tn)(t,e)}createQuery(){return this.parent?.createQuery()}getField(e){return this.parent?.getField(e)}getFieldDomain(e,t){return this.parent?.getFieldDomain(e,t)}async queryExtent(e,t){return await this.load(),this.parent.queryExtent(e,t)}async queryFeatures(e,t){return await this.load(),this.parent.queryFeatures(e,t)}async queryFeatureCount(e,t){return await this.load(),this.parent.queryFeatureCount(e,t)}async queryObjectIds(e,t){return await this.load(),this.parent.queryObjectIds(e,t)}};(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"apiKey",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"capabilities",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"customParameters",null),(0,i._)([(0,p.MZ)()],q.prototype,"dateFieldsTimeZone",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"datesInUnknownTimezone",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"definitionExpression",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"editingInfo",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"effectiveCapabilities",null),(0,i._)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],q.prototype,"charts",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"createQueryVersion",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"defaultPopupTemplate",null),(0,i._)([(0,p.MZ)()],q.prototype,"displayField",null),(0,i._)([(0,p.MZ)({type:Boolean,nonNullable:!0,json:{name:"enableEditing",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],q.prototype,"editingEnabled",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"effectiveEditingEnabled",null),(0,i._)([(0,p.MZ)((()=>{const e=(0,E.o8)(M.Yj);return e.json.origins["web-map"]={read:!1,write:!1},e})())],q.prototype,"elevationInfo",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"fields",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"fieldsIndex",null),(0,i._)([(0,p.MZ)({type:R.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],q.prototype,"formTemplate",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"fullExtent",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"geometryFieldsInfo",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"geometryType",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"globalIdField",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"hasM",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"hasZ",null),(0,i._)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],q.prototype,"id",void 0),(0,i._)([(0,p.MZ)({type:[V.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:D.w,write:!0}})],q.prototype,"labelingInfo",void 0),(0,i._)([(0,p.MZ)(M.kF)],q.prototype,"labelsVisible",void 0),(0,i._)([(0,p.MZ)(M.fV)],q.prototype,"legendEnabled",void 0),(0,i._)([(0,p.MZ)({type:["show","hide"],json:{write:!0}})],q.prototype,"listMode",void 0),(0,i._)([(0,p.MZ)((()=>{const e=(0,E.o8)(M.hG);return e.json.origins.service.read=!1,e})())],q.prototype,"maxScale",void 0),(0,i._)([(0,p.MZ)((()=>{const e=(0,E.o8)(M.hn);return e.json.origins.service.read=!1,e})())],q.prototype,"minScale",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"objectIdField",null),(0,i._)([(0,p.MZ)(M.ke)],q.prototype,"opacity",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"orderBy",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"outFields",null),(0,i._)([(0,p.MZ)({clonable:!1})],q.prototype,"parent",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"parsedUrl",null),(0,i._)([(0,p.MZ)(M.M6)],q.prototype,"popupEnabled",void 0),(0,i._)([(0,p.MZ)({type:S.A,json:{name:"popupInfo",write:!0}})],q.prototype,"popupTemplate",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"preferredTimeZone",null),(0,i._)([(0,p.MZ)({types:j.H,json:{origins:{"web-scene":{types:j.X}},name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(e,t){return{ignoreOrigin:this.originIdOf(t)<A.Gr.PORTAL_ITEM}}}}})],q.prototype,"renderer",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"returnM",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"returnZ",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"source",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"timeExtent",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"timeInfo",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"timeOffset",null),(0,i._)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],q.prototype,"title",void 0),(0,i._)([(0,p.MZ)({json:{read:!1}})],q.prototype,"type",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"typeIdField",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"types",null),(0,i._)([(0,p.MZ)({readOnly:!0})],q.prototype,"useViewTime",null),(0,i._)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],q.prototype,"visible",void 0),q=(0,i._)([(0,y.$)("esri.layers.catalog.CatalogFootprintLayer")],q);const $=q;var U=r(72593),C=r(52136),G=r(18768),J=r(69208),z=r(47685),k=r(87796),Q=r(16131),Y=r(32756),K=r(8303),H=r(54310),X=r(82935),W=r(15426),ee=r(33143),te=r(17036),re=r(4513),ie=r(91908),ne=r(20655),oe=r(80812),se=r(39131),le=r(61956);const ae=(0,te.p)();function de(e,t,r,i){const n=e.write({},i);(function(e){if(null==e)return!0;const t=Object.keys(e);return!t.length||1===t.length&&"id"===t[0]})(n)||(t[r]=n)}let ue=class extends((0,k.j)((0,z.w6)((0,w.dM)((0,Y.f)((0,X.e)((0,b.j)((0,H.J)((0,G.b)((0,Q.q)((0,K.A)((0,a.P)((0,J.d)((0,C.p)(c.A)))))))))))))){constructor(e){super(e),this._portals=new Map,this._layerToFootprint=new WeakMap,this.drawOrderField="cd_draworder",this.dynamicGroupLayer=new I({parent:this}),this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.footprintLayer=new $({parent:this}),this.itemNameField="cd_itemname",this.itemSourceField="cd_itemsource",this.itemTypeField="cd_itemtype",this.layers=new o.A([this.dynamicGroupLayer,this.footprintLayer]),this.maxScaleField="cd_maxscale",this.minScaleField="cd_minscale",this.orderBy=null,this.outFields=null,this.supportedSourceTypes=new Set(["Catalog Layer"]),this.source=new U.default({layer:this,supportedSourceTypes:this.supportedSourceTypes}),this.type="catalog",this.typeIdField=null,this.types=null}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(d.QP).then((async()=>{const{url:e,source:r,portalItem:i}=this;if(!e)throw new s.A("catalog-layer:missing-url","Catalog layer must be created with a url");if(null==this.layerId){const r=await this._fetchFirstValidLayerId(t);if(null==r)throw new s.A("catalog-layer:missing-layerId","There is no Catalog Layer in the service",{service:e});this.layerId=r}await r.load({signal:t});const{sourceJSON:n}=r;n&&(this.sourceJSON=n,this.read(n,{origin:"service",portalItem:i,portal:i?.portal,url:this.parsedUrl}))})).then((()=>{const e=[this.itemNameField,this.itemSourceField,this.itemTypeField,this.minScaleField,this.maxScaleField],t=e.filter((e=>!this.fieldsIndex.has(e)));if(t.length)throw new s.A("catalog-layer:missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})})).then((()=>(0,W.VA)(this,"load",e)));return this.addResolvingPromise(r),Promise.resolve(this)}destroy(){this.footprintLayer.destroy(),this.dynamicGroupLayer.destroy();for(const e of this._portals.values())e.destroy();this._portals.clear()}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get effectiveEditingEnabled(){return!1}get parsedUrl(){const e=(0,u.An)(this.url);return null!=e&&null!=this.layerId&&(e.path=(0,u.fj)(e.path,this.layerId.toString())),e}async applyEdits(e,t){return(0,W.ct)(this,e,t)}on(e,t){return super.on(e,t)}async createLayerFromFootprint(e){const t=await this._createLayer(e);return this._configureLayer(t,e),this._layerToFootprint.set(t,e),t}createFootprintFromLayer(e){return this._layerToFootprint.get(e)?.clone()}createQuery(){const e=new le.A,t=this.capabilities?.query;e.returnGeometry=!0,t&&(e.compactGeometryEnabled=t.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=t.supportsDefaultSpatialReference),e.outFields=["*"];const{timeOffset:r,timeExtent:i}=this;return e.timeExtent=null!=r&&null!=i?i.offset(-r.value,r.unit):i||null,e.where=this.definitionExpression||"1=1",e}getFeatureType(e){return(0,W.xd)(this.types,this.typeIdField,e)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=t?.feature,i=this.getFeatureType(r);if(i){const t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this.getField(e)?.domain}async hasDataChanged(){return(0,W.jp)(this)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(le.A.from(e)??r.createQuery(),t);if(i?.features)for(const e of i.features)e.layer=e.sourceLayer=r.footprintLayer;return i}async queryObjectIds(e,t){return(await this.load()).source.queryObjectIds(le.A.from(e)??this.createQuery(),t)}async queryFeatureCount(e,t){return(await this.load()).source.queryFeatureCount(le.A.from(e)??this.createQuery(),t)}async queryExtent(e,t){return(await this.load()).source.queryExtent(le.A.from(e)??this.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,ie.D)(this,e)}read(e,t){if(super.read(e,t),e){const{footprintLayer:r,dynamicGroupLayer:i}=e;r&&this.footprintLayer.read(r,t),i&&this.dynamicGroupLayer.read(i,t)}}async _fetchFirstValidLayerId(e){const{data:t}=await(0,n.A)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(Array.isArray(t?.layers))return t.layers.find((({type:e})=>this.supportedSourceTypes.has(e)))?.id}async _createLayer(e){const t=e.getAttribute(this.itemSourceField);if(!t)throw new s.A("catalog-layer:item-source-missing",`The footprint is missing the "${this.itemSourceField}" attribute`);const r=JSON.parse(t);if(function(e){return"object"==typeof e&&null!=e&&"itemId"in e&&"portalUrl"in e}(r)){const{itemId:e,portalUrl:t}=r,i=(0,se.qG)(t),n=this.portalItem?.portal,o=ne.A.getDefault();let s,a=!0;n&&(0,u.ut)(t,n.url)?s=n:(0,u.ut)(t,o.url)?s=o:(s=(0,l.tE)(this._portals,i,(()=>new ne.A({url:i}))),a=!1);const d=await c.A.fromPortalItem(new oe.default({id:e,portal:s}));if(!a){try{await d.load()}catch{}d.portalItem=null}return d}return function(e){return"object"==typeof e&&null!=e&&"url"in e}(r)?c.A.fromArcGISServerUrl({url:r.url}):new(await re.S.UnsupportedLayer())}_configureLayer(e,t){const r=t.getAttribute(this.itemNameField);r&&(e.title=r);const i=t.getAttribute(this.maxScaleField);null!=i&&"maxScale"in e&&(e.maxScale=i);const n=t.getAttribute(this.minScaleField);null!=n&&"minScale"in e&&(e.minScale=n)}};(0,i._)([(0,p.MZ)({readOnly:!0})],ue.prototype,"createQueryVersion",null),(0,i._)([(0,p.MZ)({readOnly:!0})],ue.prototype,"drawOrderField",void 0),(0,i._)([(0,p.MZ)({type:I,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:de}}})],ue.prototype,"dynamicGroupLayer",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],ue.prototype,"editingEnabled",null),(0,i._)([(0,p.MZ)({readOnly:!0})],ue.prototype,"effectiveEditingEnabled",null),(0,i._)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.elevationInfo",read:!1,write:!1}}}})],ue.prototype,"elevationInfo",void 0),(0,i._)([(0,p.MZ)({...ae.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],ue.prototype,"fields",void 0),(0,i._)([(0,p.MZ)(ae.fieldsIndex)],ue.prototype,"fieldsIndex",void 0),(0,i._)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.floorInfo",read:!1,write:!1}}}})],ue.prototype,"floorInfo",void 0),(0,i._)([(0,p.MZ)({type:$,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:de}}})],ue.prototype,"footprintLayer",void 0),(0,i._)([(0,p.MZ)(M.id)],ue.prototype,"id",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],ue.prototype,"itemNameField",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],ue.prototype,"itemSourceField",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],ue.prototype,"itemTypeField",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],ue.prototype,"layers",void 0),(0,i._)([(0,p.MZ)({type:["show","hide","hide-children"]})],ue.prototype,"listMode",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],ue.prototype,"maxScaleField",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],ue.prototype,"minScaleField",void 0),(0,i._)([(0,p.MZ)({value:"CatalogLayer",type:["CatalogLayer"]})],ue.prototype,"operationalLayerType",void 0),(0,i._)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.orderBy",write:!0,read:!0}}}})],ue.prototype,"orderBy",void 0),(0,i._)([(0,p.MZ)(ae.outFields)],ue.prototype,"outFields",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],ue.prototype,"parsedUrl",null),(0,i._)([(0,p.MZ)({readOnly:!0})],ue.prototype,"source",void 0),(0,i._)([(0,p.MZ)({json:{read:!1}})],ue.prototype,"type",void 0),(0,i._)([(0,p.MZ)({type:String})],ue.prototype,"typeIdField",void 0),(0,i._)([(0,p.MZ)({type:[ee.A]})],ue.prototype,"types",void 0),ue=(0,i._)([(0,y.$)("esri.layers.CatalogLayer")],ue);const pe=ue},87718:(e,t,r)=>{r.d(t,{F:()=>T,Y:()=>I});var i,n=r(90237),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608)),l=r(49186),a=r(25482),d=r(93637),u=r(76369),p=r(59456),y=r(60945),c=r(66552),h=r(4718),m=r(61956);const f=new c.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),g=new c.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let _=i=class extends a.oY{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:i,timeExtent:n,objectIds:o,units:s,distance:l}=this;return new m.A({geometry:(0,h.o8)(r),objectIds:(0,h.o8)(o),spatialRelationship:i,timeExtent:(0,h.o8)(n),where:t,units:s,distance:l,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:n,objectIds:o,units:s,distance:l}=this;return new i({geometry:(0,h.o8)(t),objectIds:(0,h.o8)(o),spatialRelationship:r,timeExtent:(0,h.o8)(n),where:e,units:s,distance:l})}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],_.prototype,"where",void 0),(0,n._)([(0,o.MZ)({types:p.yR,json:{write:!0}})],_.prototype,"geometry",void 0),(0,n._)([(0,o.MZ)({type:f.apiValues,json:{name:"spatialRel",read:{reader:f.read},write:{allowNull:!1,writer:f.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],_.prototype,"spatialRelationship",void 0),(0,n._)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],_.prototype,"distance",void 0),(0,n._)([(0,o.MZ)({type:[Number],json:{write:!0}})],_.prototype,"objectIds",void 0),(0,n._)([(0,o.MZ)({type:g.apiValues,json:{read:g.read,write:{writer:g.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],_.prototype,"units",void 0),(0,n._)([(0,o.MZ)({type:y.A,json:{write:!0}})],_.prototype,"timeExtent",void 0),_=i=(0,n._)([(0,s.$)("esri.layers.support.FeatureFilter")],_);const v=_;var w;const b={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},M={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},F={name:"showExcludedLabels",default:!0};let x=w=class extends a.oY{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new l.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new l.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new w({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n._)([(0,o.MZ)({type:v,json:{write:{allowNull:!0,writer(e,t,r,i){const n=e?.write({},i);n&&0!==Object.keys(n).length?(0,d.sM)(r,n,t):(0,d.sM)(r,null,t)}}}})],x.prototype,"filter",void 0),(0,n._)([(0,o.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":b,"portal-item":b}}})],x.prototype,"includedEffect",void 0),(0,n._)([(0,o.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":M,"portal-item":M}}})],x.prototype,"excludedEffect",void 0),(0,n._)([(0,o.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":F,"portal-item":F}}})],x.prototype,"excludedLabelsVisible",void 0),x=w=(0,n._)([(0,s.$)("esri.layers.support.FeatureEffect")],x);const Z={write:{allowNull:!0}},I={type:x,json:{origins:{"web-map":Z,"portal-item":Z}}},T=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,n._)([(0,o.MZ)(I)],t.prototype,"featureEffect",void 0),t=(0,n._)([(0,s.$)("esri.layers.mixins.FeatureEffectLayer")],t),t}},32756:(e,t,r)=>{r.d(t,{f:()=>d,n:()=>a});var i=r(90237),n=r(93637),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608)),l=r(91880);const a={type:[l.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:function(e,t,r){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const n=new l.A;return n.read(i,r),[n]}},write:{writer:function(e,t,r,i){const o=e.find((e=>!!e.field));o&&(0,n.sM)(r,[o.toJSON()],t)}}}},d=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,i._)([(0,o.MZ)(a)],t.prototype,"orderBy",void 0),t=(0,i._)([(0,s.$)("esri.layers.mixins.OrderedLayer")],t),t}},82935:(e,t,r)=>{r.d(t,{B:()=>c,e:()=>h});var i=r(90237),n=r(60945),o=r(70668),s=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),d=r(89317),u=r(30524),p=r(96184),y=r(73133);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:d.K}}},h=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=y.j.fromJSON(r.timeOffsetUnits);return i&&n?new o.A({value:i,unit:n}):null}set timeInfo(e){(0,u.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,s.MZ)({type:n.A,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,s.MZ)({type:o.A})],t.prototype,"timeOffset",void 0),(0,i._)([(0,l.w)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,s.MZ)({value:null,type:p.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,s.MZ)(c)],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,a.$)("esri.layers.mixins.TemporalLayer")],t),t}},33143:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(90237),n=r(69540),o=r(25482),s=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),d=r(43937),u=r(72088),p=r(29005);let y=class extends((0,n.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,u.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,s.MZ)({json:{write:!0}})],y.prototype,"id",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],y.prototype,"name",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],y.prototype,"domains",void 0),(0,i._)([(0,l.w)("domains")],y.prototype,"readDomains",null),(0,i._)([(0,d.K)("domains")],y.prototype,"writeDomains",null),(0,i._)([(0,s.MZ)({type:[p.A],json:{write:!0}})],y.prototype,"templates",void 0),y=(0,i._)([(0,a.$)("esri.layers.support.FeatureType")],y);const c=y},20437:(e,t,r)=>{r.d(t,{A:()=>f});var i,n=r(90237),o=r(66552),s=r(25482),l=r(10107),a=r(56507),d=(r(87811),r(44208),r(93223)),u=r(36005),p=r(40608),y=r(72088),c=r(98453);const h=new o.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=i=class extends s.oY{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?h.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,n._)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,n._)([(0,l.MZ)()],m.prototype,"description",void 0),(0,n._)([(0,u.w)("description")],m.prototype,"readDescription",null),(0,n._)([(0,l.MZ)({types:y.gK,json:{read:{reader:y.rS},write:!0}})],m.prototype,"domain",void 0),(0,n._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,n._)([(0,l.MZ)({type:a.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,n._)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,n._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,n._)([(0,d.e)(c.m)],m.prototype,"type",void 0),(0,n._)([(0,l.MZ)()],m.prototype,"valueType",void 0),(0,n._)([(0,u.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,n._)([(0,l.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,n._)([(0,p.$)("esri.layers.support.Field")],m);const f=m},95466:(e,t,r)=>{r.d(t,{A:()=>y});var i=r(49186),n=r(25482),o=r(53966),s=r(91869),l=r(3330),a=r(30524),d=r(56400),u=r(96285);const p=new Map;class y{static fromJSON(e){return new y(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new y(e.fields??[],f(e))}static fromLayerJSON(e){return new y(e.fields??[],f(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,i=h(t);if(t&&i){const n=c(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(i,e),r.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(c(e))??this._normalizedFieldsMap.get(h(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(o.A.getLogger("esri.layers.support.FieldsIndex").error(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),d.n$):m.has(t.type)?d.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===d.L5?l.GB.instance:t===d.n$?u.mQ.utcInstance:(0,s.tE)(p,t,(()=>u.oh.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,n.Wj)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function c(e){return e.trim().toLowerCase()}function h(e){return(0,a.rS)(e)?.toLowerCase()??""}const m=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function f(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:n}=e,o=(i?"startField"in i?i.startField:i.startTimeField:"")??"",s=(i?"endField"in i?i.endField:i.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,d.ZS)(e.dateFieldsTimeReference):null,a=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.dateFieldsTimeReference?(0,d.ZS)(n.dateFieldsTimeReference):l??d.n$:null,u=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.timeReference?(0,d.ZS)(i.timeReference):l:null,p=new Map([[c(n?.creationDateField??""),a],[c(n?.editDateField??""),a],[c(o),u],[c(s),u]]);for(const{name:i,type:n}of e.fields)if(m.has(n))t.set(i,d.L5);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(i,null);else if(r)t.set(i,d.L5);else{const e=p.get(c(i??""))??l;t.set(i,e)}return t}},91880:(e,t,r)=>{r.d(t,{A:()=>p});var i,n=r(90237),o=r(66552),s=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));const d=new o.J({asc:"ascending",desc:"descending"});let u=i=class extends s.oY{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n._)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n._)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n._)([(0,l.MZ)({type:d.apiValues,json:{type:d.jsonValues,read:d.read,write:d.write}})],u.prototype,"order",void 0),u=i=(0,n._)([(0,a.$)("esri.layers.support.OrderByInfo")],u);const p=u},96184:(e,t,r)=>{r.d(t,{A:()=>m});var i=r(90237),n=r(60945),o=r(70668),s=r(69540),l=r(25482),a=r(10107),d=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),p=r(43937),y=r(56400);function c(e,t){return o.A.fromJSON({value:e,unit:t})}let h=class extends((0,s.O)(l.oY)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?n.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?c(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?c(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i._)([(0,a.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i._)([(0,a.MZ)({type:n.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i._)([(0,d.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i._)([(0,p.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i._)([(0,a.MZ)({type:o.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i._)([(0,d.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i._)([(0,p.K)("interval")],h.prototype,"writeInterval",null),(0,i._)([(0,a.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i._)([(0,a.MZ)((0,y.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i._)([(0,a.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i._)([(0,u.$)("esri.layers.support.TimeInfo")],h);const m=h},72088:(e,t,r)=>{r.d(t,{rS:()=>x,gK:()=>F}),r(44208);var i,n=r(90237),o=r(4718),s=r(10107),l=(r(53966),r(93223)),a=r(40608),d=r(25482);r(87811);let u=i=class extends d.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,s.MZ)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=i=(0,n._)([(0,a.$)("esri.layers.support.CodedValue")],u);const p=new(r(66552).J)({inherited:"inherited",codedValue:"coded-value",range:"range"});let y=class extends d.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,n._)([(0,l.e)(p)],y.prototype,"type",void 0),y=(0,n._)([(0,a.$)("esri.layers.support.Domain")],y);const c=y;var h;let m=h=class extends c{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new h({codedValues:(0,o.o8)(this.codedValues),name:this.name})}};(0,n._)([(0,s.MZ)({type:[u],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,n._)([(0,l.e)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=h=(0,n._)([(0,a.$)("esri.layers.support.CodedValueDomain")],m);const f=m;var g;r(49186);let _=g=class extends c{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,n._)([(0,l.e)({inherited:"inherited"})],_.prototype,"type",void 0),_=g=(0,n._)([(0,a.$)("esri.layers.support.InheritedDomain")],_);const v=_;var w;let b=w=class extends c{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],b.prototype,"maxValue",void 0),(0,n._)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],b.prototype,"minValue",void 0),(0,n._)([(0,l.e)({range:"range"})],b.prototype,"type",void 0),b=w=(0,n._)([(0,a.$)("esri.layers.support.RangeDomain")],b);const M=b,F={key:"type",base:c,typeMap:{range:b,"coded-value":f,inherited:v}};function x(e){if(!e?.type)return null;switch(e.type){case"range":return M.fromJSON(e);case"codedValue":return f.fromJSON(e);case"inherited":return v.fromJSON(e)}return null}},17036:(e,t,r)=>{r.d(t,{p:()=>a});var i=r(44208),n=r(53966),o=r(20437),s=r(95466),l=r(30524);function a(){return{fields:{type:[o.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");n.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return s.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||n.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},98453:(e,t,r)=>{r.d(t,{m:()=>i});const i=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},32730:(e,t,r)=>{r.d(t,{BI:()=>f,D3:()=>h,XJ:()=>m,lc:()=>c,mX:()=>_,rU:()=>g,tH:()=>F});var i=r(799);const n="__begin__",o="__end__",s=new RegExp(n,"ig"),l=new RegExp(o,"ig"),a=new RegExp("^"+n,"i"),d=new RegExp(o+"$","i"),u='"',p=u+" + ",y=" + "+u;function c(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=c(e.labelExpression),t.type="conventional"),t}function f(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return _(t.expression);case"arcade":return t.expression}return null}function g(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(v);return t?.[1].trim()||null}(t.expression);case"arcade":return F(t.expression)}return null}function _(e){let t;return e?(t=(0,i.HC)(e,(e=>n+'$feature["'+e+'"]'+o)),t=a.test(t)?t.replace(a,""):u+t,t=d.test(t)?t.replace(d,""):t+u,t=t.replaceAll(s,p).replaceAll(l,y)):t='""',t}const v=/^\s*\{([^}]+)\}\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,M=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function F(e){if(!e)return null;let t=w.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=M.exec(e),t?t[2]:null)}},73133:(e,t,r)=>{r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},96520:(e,t,r)=>{r.d(t,{u:()=>s});var i=r(83047),n=r(21325);function o(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function s(e,t,r){if(!e&&!t||!r)return;const n=(0,i.G9)(r);l(e,r,n),l(t,r,n)}function l(e,t,r){if(e)for(const i of e)a(i.geometry,t,r)}function a(e,t,r){if(!e?.spatialReference||(0,n.aI)(e.spatialReference,t))return;const s=(0,i.G9)(e.spatialReference)/r;if(1!==s)if("x"in e)null!=e.z&&(e.z*=s);else if("rings"in e)o(e,e.rings,s);else if("paths"in e)o(e,e.paths,s);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=s)}},58501:(e,t,r)=>{r.d(t,{q:()=>n});var i=r(62815);function n(e,t,r){if(!r?.features||!r.hasZ)return;const n=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(null!=n)for(const e of r.features)n(e.geometry)}},22671:(e,t,r)=>{r.d(t,{A:()=>v});var i,n=r(90237),o=r(59456),s=r(52106),l=r(66552),a=r(25482),d=r(4718),u=r(10107),p=(r(44208),r(53966),r(36005)),y=r(40608),c=r(43937),h=r(16930),m=r(65864),f=r(20437);const g=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let _=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 n=e[t],o=s.A.fromJSON(n),l=n.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=r);const a=n.aggregateGeometries,d=o.aggregateGeometries;if(a&&null!=d)for(const e in d){const t=d[e],i=a[e],n=i?.spatialReference;null==t||n||(t.spatialReference=r)}i.push(o)}return i}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,m.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,d.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,n]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((n-e)/r)));for(let e=0,t=o.length;e<t;e++)s?.(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,n],scale:[o,s]}=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 d=this._getHydrationFunction(e,(e=>e*o+i),(e=>n-e*s),l,a);for(const{geometry:e}of t)null!=e&&d&&d(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,n;const o=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=r(l[1]);e===i&&s===n||(o.push([e-i,s-n]),i=e,n=s)}else i=t(l[0]),n=r(l[1]),o.push([i,n])}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,m.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,o=i.length;e<o;e++){const o=i[e],s=this._quantizePoints(o,t,r);s&&n.push(s)}return n.length>0?((0,m.Bi)(e)?e.rings=n:e.paths=n,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,n){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,m.Bi)(e)?e.rings:e.paths;let s,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(s+=n[0],l+=n[1]):(s=n[0],l=n[1]),n[0]=t(s),n[1]=r(l)}}if(i&&n)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]=n(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(n)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]=n(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)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(s+=i[0],l+=i[1]):(s=i[0],l=i[1]),i[0]=t(s),i[1]=r(l)}if(i&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2]),t[3]=n(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(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}}:null}};(0,n._)([(0,u.MZ)({type:String,json:{write:!0}})],_.prototype,"displayFieldName",void 0),(0,n._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"exceededTransferLimit",void 0),(0,n._)([(0,u.MZ)({type:[s.A],json:{write:!0}})],_.prototype,"features",void 0),(0,n._)([(0,p.w)("features")],_.prototype,"readFeatures",null),(0,n._)([(0,u.MZ)({type:[f.A],json:{write:!0}})],_.prototype,"fields",void 0),(0,n._)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],_.prototype,"geometryType",void 0),(0,n._)([(0,c.K)("geometryType")],_.prototype,"writeGeometryType",null),(0,n._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasM",void 0),(0,n._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasZ",void 0),(0,n._)([(0,u.MZ)({types:o.yR,json:{write:!0}})],_.prototype,"queryGeometry",void 0),(0,n._)([(0,p.w)("queryGeometry")],_.prototype,"readQueryGeometry",null),(0,n._)([(0,u.MZ)({type:h.A,json:{write:!0}})],_.prototype,"spatialReference",void 0),(0,n._)([(0,c.K)("spatialReference")],_.prototype,"writeSpatialReference",null),(0,n._)([(0,u.MZ)({json:{write:!0}})],_.prototype,"transform",void 0),_=i=(0,n._)([(0,y.$)("esri.rest.support.FeatureSet")],_),_.prototype.toJSON.isDefaultToJSON=!0;const v=_}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8628,3069,6247],{13069:(e,t,r)=>{r.d(t,{lk:()=>s,vD:()=>i,yS:()=>a});const n="randomUUID"in crypto;function s(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function a(){return`{${s().toUpperCase()}}`}function i(){return`{${s()}}`}},17136:(e,t,r)=>{r.d(t,{el:()=>I});var n=r(92602),s=r(49186),a=r(53966),i=r(39829),o=r(82799),l=r(80754),d=r(21325),u=r(28735),c=(r(59456),r(78888)),p=r(65864),h=r(2272),f=r(84952),m=r(92300);const y=()=>a.A.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function b(e){return"polyline"===e[0].type}function w(e,t,r){if(t){const t=function(e,t){if(!(e instanceof o.A||e instanceof i.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw y().error(e),new s.A(e)}const r=(0,l.r8)(e),n=[];for(const e of r){const r=[];n.push(r),r.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const s=e[n][0],a=e[n][1],i=e[n+1][0],o=e[n+1][1],l=Math.sqrt((i-s)*(i-s)+(o-a)*(o-a)),d=(o-a)/l,u=(i-s)/l,c=l/t;if(c>1){for(let e=1;e<=c-1;e++){const n=e*t,i=u*n+s,o=d*n+a;r.push([i,o])}const e=(l+Math.floor(c-1)*t)/2,n=u*e+s,i=d*e+a;r.push([n,i])}r.push([i,o])}}return function(e){return"polygon"===e.type}(e)?new i.A({rings:n,spatialReference:e.spatialReference}):new o.A({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,u.ci)(t,!0)}return r&&(e=(0,l.kS)(e,r)),e}function A(e,t,r){if(Array.isArray(e)){const n=e[0];if(n>t){const r=(0,l.kd)(n,t);e[0]=n+r*(-2*t)}else if(n<r){const t=(0,l.kd)(n,r);e[0]=n+t*(-2*r)}}else{const n=e.x;if(n>t){const r=(0,l.kd)(n,t);e=e.clone().offset(r*(-2*t),0)}else if(n<r){const t=(0,l.kd)(n,r);e=e.clone().offset(t*(-2*r),0)}}return e}function F(e,t){let r=-1;for(let n=0;n<t.cutIndexes.length;n++){const s=t.cutIndexes[n],a=t.geometries[n],i=(0,l.r8)(a);for(let e=0;e<i.length;e++){const t=i[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const n=t[e][0];r=n>r?n:r}r=Number(r.toFixed(9));const n=-360*(0,l.kd)(r,180);for(let r=0;r<t.length;r++){const t=a.getPoint(e,r);a.setPoint(e,r,t.clone().offset(n,0))}return!0}}))}if(s===r){if(g(e))for(const t of(0,l.r8)(a))e[s]=e[s].addRing(t);else if(b(e))for(const t of(0,l.r8)(a))e[s]=e[s].addPath(t)}else r=s,e[s]=a}return e}async function I(e,t,r){if(!Array.isArray(e))return I([e],t);t&&"string"!=typeof t&&y().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let a,g,b,v,S,R,E,$,M=0;const k=[],j=[];for(const t of e)if(null!=t)if(a||(a=t.spatialReference,g=(0,d.Vp)(a),b=a.isWebMercator,R=b?102100:4326,v=l.j7[R].maxX,S=l.j7[R].minX,E=l.j7[R].plus180Line,$=l.j7[R].minus180Line),g)if("mesh"===t.type)j.push(t);else if("point"===t.type)j.push(A(t.clone(),v,S));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>A(e,v,S))),j.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);j.push(e.rings?new i.A(e):e)}else if(t.extent){const e=t.extent,r=(0,l.kd)(e.xmin,S)*(2*v);let n=0===r?t.clone():(0,l.kS)(t.clone(),r);e.offset(r,0);let{xmin:s,xmax:a}=e;s=Number(s.toFixed(9)),a=Number(a.toFixed(9)),e.intersects(E)&&a!==v?(M=a>M?a:M,n=w(n,b),k.push(n),j.push("cut")):e.intersects($)&&s!==S?(M=a*(2*v)>M?a*(2*v):M,n=w(n,b,360),k.push(n),j.push("cut")):j.push(n)}else j.push(t.clone());else j.push(t);else j.push(t);let O=(0,l.kd)(M,v),L=-90;const U=O,x=new o.A;for(;O>0;){const e=360*O-180;x.addPath([[e,L],[e,-1*L]]),L*=-1,O--}if(k.length>0&&U>0){const t=F(k,await async function(e,t,r,n){const s=(0,h.Dl)(e),a=t[0].spatialReference,i={...n,responseType:"json",query:{...s.query,f:"json",sr:(0,d.YX)(a),target:JSON.stringify({geometryType:(0,p.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},o=await(0,c.A)(s.path+"/cut",i),{cutIndexes:l,geometries:u=[]}=o.data;return{cutIndexes:l,geometries:u.map((e=>{const t=(0,p.rS)(e);return t.spatialReference=a,t}))}}(s,k,x,r)),n=[],a=[];for(let r=0;r<j.length;r++){const s=j[r];if("cut"!==s)a.push(s);else{const s=t.shift(),i=e[r];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&s.rings.length>=i.rings.length?(n.push(s),a.push("simplify")):a.push(b?(0,u.Gh)(s):s)}}if(!n.length)return a;const i=await async function(e,t,r){const n="string"==typeof e?(0,f.An)(e):e,s=t[0].spatialReference,a=(0,p.$B)(t[0]),i={...r,query:{...n.query,f:"json",sr:(0,d.YX)(s),geometries:JSON.stringify((0,m.X)(t))}},{data:o}=await(0,c.A)(n.path+"/simplify",i);return(0,m.V)(o.geometries,a,s)}(s,n,r),o=[];for(let e=0;e<a.length;e++){const t=a[e];"simplify"!==t?o.push(t):o.push(b?(0,u.Gh)(i.shift()):i.shift())}return o}const V=[];for(let e=0;e<j.length;e++){const t=j[e];if("cut"!==t)V.push(t);else{const e=k.shift();V.push(!0===b?(0,u.Gh)(e):e)}}return V}},80754:(e,t,r)=>{r.d(t,{j7:()=>i,kS:()=>l,kd:()=>o,r8:()=>d});var n=r(82799),s=r(16930),a=r(65864);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=d(e);for(const e of r)for(const r of e)r[0]+=t;return e}function d(e){return(0,a.Bi)(e)?e.rings:e.paths}},78628:(e,t,r)=>{r.d(t,{applyEdits:()=>I,r3:()=>w,uploadAssets:()=>k,zp:()=>F});var n=r(52106),s=r(5503),a=r(49186),i=r(4718),o=r(53966),l=r(74887),d=r(84952),u=r(13069),c=r(17136),p=r(21325),h=r(47685),f=r(30524),m=r(20557),y=r(83531);function g(e){return null!=e?.applyEdits}function b(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function w(e){return e.every(b)}function A(e){return"object"==typeof e&&null!=e&&"globalId"in e&&!!e.globalId}function F(e){return e.every(A)}async function I(e,t,r,n={}){let d;const c="gdbVersion"in e?e.gdbVersion:null,p=n.gdbVersion??c;if((0,h.Mk)(e)&&e.url)d=(0,h.Zk)(e.url,e.layerId,p,"original-and-current-features"===n.returnServiceEditsOption);else{d=(0,l.Tw)(),d.promise.then((t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)}));const t={result:d.promise};e.emit("apply-edits",t)}try{const{results:l,edits:c}=await async function(e,t,r,n){if(await e.load(),!g(t))throw new a.A(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,y.tk)(e))throw new a.A(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:l}=await async function(e,t,r){const n=(0,y.BR)(e),i=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),l=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),d=null!=e.infoFor3D;if(function(e,t,r,n,s,i){if(!e||!n&&!s)throw new a.A(`${i}:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");if(!t.editing.supportsGlobalId&&r?.globalIdUsed)throw new a.A(`${i}:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!t.editing.supportsGlobalId&&s)throw new a.A(`${i}:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!r?.globalIdUsed&&s)throw new a.A(`${i}:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true")}(t,n,r,!!i,!!l,`${e.type}-layer`),!n.data.isVersioned&&r?.gdbVersion)throw new a.A(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!n.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new a.A(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");const c={...r};if(null!=c.rollbackOnFailureEnabled||n.editing.supportsRollbackOnFailure||(c.rollbackOnFailureEnabled=!0),c.rollbackOnFailureEnabled||"original-and-current-features"!==c.returnServiceEditsOption||(!1===c.rollbackOnFailureEnabled&&o.A.getLogger("esri.layers.graphics.editingSupport").warn(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true, but 'rollBackOnFailure' was set to false. 'rollBackOnFailure' has been overwritten and set to true."),c.rollbackOnFailureEnabled=!0),!n.editing.supportsReturnServiceEditsInSourceSpatialReference&&c.returnServiceEditsInSourceSR)throw new a.A(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(c.returnServiceEditsInSourceSR&&"original-and-current-features"!==c.returnServiceEditsOption)throw new a.A(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const p=function(e,t,r){const n=function(e){return{addFeatures:Array.from(e?.addFeatures??[]),updateFeatures:Array.from(e?.updateFeatures??[]),deleteFeatures:e&&s.A.isCollection(e.deleteFeatures)?e.deleteFeatures.toArray():e.deleteFeatures||[],addAttachments:e.addAttachments||[],updateAttachments:e.updateAttachments||[],deleteAttachments:e.deleteAttachments||[]}}(e);if(n.addFeatures?.length&&!t.operations.supportsAdd)throw new a.A(`${r}:unsupported-operation`,"Layer does not support adding features.");if(n.updateFeatures?.length&&!t.operations.supportsUpdate)throw new a.A(`${r}:unsupported-operation`,"Layer does not support updating features.");if(n.deleteFeatures?.length&&!t.operations.supportsDelete)throw new a.A(`${r}:unsupported-operation`,"Layer does not support deleting features.");return n.addFeatures=n.addFeatures.map($),n.updateFeatures=n.updateFeatures.map($),n.addAssetFeatures=[],n}(t,n,`${e.type}-layer`),h=r?.globalIdUsed||d,f=e.fields.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(h){const{globalIdField:t}=e;if(null==t)throw new a.A(`${e.type}-layer:invalid-parameter`,"Layer does not specify a global id field.");p.addFeatures.forEach((e=>function(e,t){const{attributes:r}=e;null==r[t]&&(r[t]=(0,u.yS)())}(e,t)))}return p.addFeatures.forEach((t=>function(e,t,r,n){v(e,t,r,n),S(e,t)}(t,e,h,f))),p.updateFeatures.forEach((t=>function(e,t,r,n){v(e,t,r,n),S(e,t);const s=(0,y.BR)(t);if("geometry"in e&&null!=e.geometry&&!s?.editing.supportsGeometryUpdate)throw new a.A(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,h,f))),p.deleteFeatures.forEach((t=>function(e,t,r,n){v(e,t,r,n)}(t,e,h,f))),p.addAttachments.forEach((t=>R(t,e))),p.updateAttachments.forEach((t=>R(t,e))),d&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:r}=t,n=(0,m.R_)("model/gltf-binary",r.supportedFormats)??(0,m.E1)("glb",r.supportedFormats);if(!n||!r.editFormats.includes(n))throw new a.A(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:s}=e;for(const t of e.addFeatures??[])M(t)&&s.push(t);for(const t of e.updateFeatures??[])M(t)&&s.push(t)}(p,e),{edits:await E(p),options:c}}(e,r,n);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await t.applyEdits(i,l)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,n),p=e=>e.filter((e=>!e.error)).map(i.o8),h={edits:c,addedFeatures:p(l.addFeatureResults),updatedFeatures:p(l.updateFeatureResults),deletedFeatures:p(l.deleteFeatureResults),addedAttachments:p(l.addAttachmentResults),updatedAttachments:p(l.updateAttachmentResults),deletedAttachments:p(l.deleteAttachmentResults),exceededTransferLimit:!1,historicMoment:l.editMoment?new Date(l.editMoment):null,globalIdToObjectId:n.globalIdToObjectId};return l.editedFeatureResults?.length&&(h.editedFeatures=l.editedFeatureResults),d.resolve(h),l}catch(e){throw d.reject(e),e}}function v(e,t,r,n){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new a.A(`${t.type}-layer:invalid-parameter`,`Feature should have '${t.globalIdField}' when 'globalIdUsed' is true`);if(!("attributes"in e)&&!e.globalId)throw new a.A(`${t.type}-layer:invalid-parameter`,"`'globalId' of the feature should be passed when 'globalIdUsed' is true")}if(n.length&&"attributes"in e)for(const r of n){const n=e.attributes[r.name];if(void 0!==n&&!(0,f.OG)(r,n))throw new a.A(`${t.type}-layer:invalid-parameter`,`Big-integer field '${r.name}' of the feature must be less than ${Number.MAX_SAFE_INTEGER}`,{feature:e})}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new a.A(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new a.A(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function S(e,t){if("geometry"in e&&"mesh"===e.geometry?.type&&null!=t.infoFor3D&&null!=t.spatialReference){const{geometry:r}=e,{spatialReference:n,vertexSpace:s}=r,i=t.spatialReference,o="local"===s.type,l=(0,p.EA)(i),d=(0,p.aI)(i,n),u=d||(0,p.oT)(i)&&((0,p.oT)(n)||(0,p.K8)(n));if(!(o&&l&&u||!o&&!l&&d))throw new a.A(`${t.type}-layer:mesh-unsupported`,`Uploading a mesh with a ${s.type} vertex space and a spatial reference wkid:${n.wkid} to a layer with a spatial reference wkid:${i.wkid} is not supported.`)}}function R(e,t){const{feature:r,attachment:n}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new a.A(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new a.A(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!n.globalId)throw new a.A(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!n.data&&!n.uploadId)throw new a.A(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(n.data instanceof File&&n.data.name||n.name))throw new a.A(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&n.uploadId)throw new a.A(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof n.data){const e=(0,d.r$)(n.data);if(e&&!e.isBase64)throw new a.A(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function E(e){const t=e.addFeatures??[],r=e.updateFeatures??[],n=t.concat(r).map((e=>e.geometry)),s=await(0,c.el)(n),a=t.length,i=r.length;return s.slice(0,a).forEach(((e,r)=>t[r].geometry=e)),s.slice(a,a+i).forEach(((e,t)=>r[t].geometry=e)),e}function $(e){const t=new n.A;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function M(e){return"mesh"===e?.geometry?.type}function k(e,t,r,n){if(!g(t))throw new a.A(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new a.A(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,n)}},47685:(e,t,r)=>{r.d(t,{Mk:()=>h,Zk:()=>c,w6:()=>y});var n=r(90237),s=r(65529),a=r(4718),i=r(74887),o=r(10107),l=(r(44208),r(53966),r(40608)),d=r(20816);const u=new s.A.EventEmitter;function c(e,t,r=null,n=!1){const s=(0,i.Tw)();return n=null==t||n,u.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:n,result:s.promise}),s}const p=Symbol();function h(e){return null!=e&&"object"==typeof e&&p in e}function f(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,r){const n=new URL(e).host,s=d.Z3.get(n),a=e=>!e||e===s;return a(t)&&a(r)||t===r}const y=e=>{var t;let r=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:n,mayReceiveServiceEdits:s,result:i}=e,o=t===this.url,l=null!=r&&null!=this.layerId&&r===this.layerId,d=f(this),u=f(this)&&m(t,n,this.gdbVersion);if(!o||d&&!u||!l&&!s)return;this.lastEditsEventDate=new Date;const c=i.then((e=>{if(l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,a.o8)(e)),e;const r=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(r){const{adds:t,updates:n,deletes:s}=r.editedFeatures,i={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:s?s.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:n?n.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,a.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,a.o8)(e.historicMoment)};return this.emit("edits",i),i}const s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,a.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,a.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,n,s.historicMoment)&&this.emit("edits",s),s})).then((e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,n,e.historicMoment)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:c})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:n}=e,s=t===this.url,a=f(this),i=f(this)&&m(t,r,this.gdbVersion),o=f(this)&&!m(t,this.gdbVersion,null);s&&a&&i&&o&&"historicMoment"in this&&this.historicMoment!==n&&(this.historicMoment=n)},this.when().then((()=>{this.addHandles(function(e){return u.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return u.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,d.w5)(e,t)}};return t=p,(0,n._)([(0,o.MZ)()],r.prototype,"lastEditsEventDate",void 0),r=(0,n._)([(0,l.$)("esri.layers.mixins.EditBusLayer")],r),r}},20557:(e,t,r)=>{r.d(t,{E1:()=>o,Fm:()=>l,JZ:()=>f,R_:()=>i,fu:()=>s,oF:()=>a,rq:()=>d});const n=[["binary","application/octet-stream","bin",""]];function s(e,t){return null!=c(t.name,e?.supportedFormats??[])}function a(e,t){if(!e)return!1;const r=d(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function i(e,t){return p(function(e,t){const r=e.toLowerCase();return u(t).find((e=>h(e)===r))}(e,t))}function o(e,t){return p(c(e,t))}function l(e,t){return h(function(e,t){return u(t).find((t=>p(t)===e))}(e,t))}function d(e,t){return o(e.name,t)??i(e.type,t)}function u(e){return[...n,...e]}function c(e,t){const r=e.toLowerCase();return u(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>r.endsWith(e)))))}function p(e){return e?.[0]}function h(e){return e?.[1].toLowerCase()}function f(e){return e.tables?.find((e=>"assetMaps"===e.role))}},92300:(e,t,r)=>{r.d(t,{V:()=>a,X:()=>s});var n=r(65864);function s(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function a(e,t,r){const s=(0,n.xD)(t);return e.map((e=>{const t=s.fromJSON(e);return t.spatialReference=r,t}))}},2272:(e,t,r)=>{r.d(t,{Dl:()=>i,jV:()=>a,lF:()=>o}),r(92602),r(70333);var n=r(4718),s=r(84952);function a(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,s.An)(e):(0,n.o8)(e)}function o(e,t,r){const n={};for(const s in e){if("declaredClass"===s)continue;const a=e[s];if(null!=a&&"function"!=typeof a)if(Array.isArray(a))n[s]=a.map((e=>o(e)));else if("object"==typeof a)if(a.toJSON){const e=a.toJSON(r?.[s]);n[s]=t?e:JSON.stringify(e)}else n[s]=t?a:JSON.stringify(a);else n[s]=a}return n}r(926)},20816:(e,t,r)=>{r.d(t,{TA:()=>s,We:()=>o,Z3:()=>a,ZJ:()=>l,w5:()=>d});var n=r(78888);const s=(0,r(13069).vD)(),a=new Map,i=new Map;async function o(e,t,r){if(!e||!r)return!1;if(!t)return!0;const s=new URL(e).host;let i=a.get(s);if(!i){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");i=(await(0,n.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return i===t}async function l(e,t,n=!1){if(!e||!t)return!0;const a=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),o=i.get(a)?.entries();if(o)for(const[e,i]of o)if(i.name===t){const t=!i.stack?.hasForwardEdits();if(!t&&n){const[{deleteForwardEdits:t},{default:n}]=await Promise.all([r.e(2186).then(r.bind(r,32186)),r.e(2558).then(r.bind(r,32558))]),o=await t(a,e,new n({sessionId:s,moment:i.moment}));return o.success&&i.stack?.clearForwardEdits(),o.success}return t}return!0}function d(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),n=i.get(r)?.entries();if(n)for(const[e,r]of n)if(r.name===t)return"edit"===r.lockType;return!1}new Map}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8628,3069,6247],{13069:(e,t,r)=>{r.d(t,{lk:()=>s,vD:()=>i,yS:()=>a});const n="randomUUID"in crypto;function s(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function a(){return`{${s().toUpperCase()}}`}function i(){return`{${s()}}`}},17136:(e,t,r)=>{r.d(t,{el:()=>I});var n=r(92602),s=r(49186),a=r(53966),i=r(39829),o=r(82799),l=r(80754),d=r(21325),u=r(28735),c=(r(59456),r(78888)),p=r(65864),h=r(2272),f=r(84952),m=r(92300);const y=()=>a.A.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function b(e){return"polyline"===e[0].type}function w(e,t,r){if(t){const t=function(e,t){if(!(e instanceof o.A||e instanceof i.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw y().error(e),new s.A(e)}const r=(0,l.r8)(e),n=[];for(const e of r){const r=[];n.push(r),r.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const s=e[n][0],a=e[n][1],i=e[n+1][0],o=e[n+1][1],l=Math.sqrt((i-s)*(i-s)+(o-a)*(o-a)),d=(o-a)/l,u=(i-s)/l,c=l/t;if(c>1){for(let e=1;e<=c-1;e++){const n=e*t,i=u*n+s,o=d*n+a;r.push([i,o])}const e=(l+Math.floor(c-1)*t)/2,n=u*e+s,i=d*e+a;r.push([n,i])}r.push([i,o])}}return function(e){return"polygon"===e.type}(e)?new i.A({rings:n,spatialReference:e.spatialReference}):new o.A({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,u.ci)(t,!0)}return r&&(e=(0,l.kS)(e,r)),e}function A(e,t,r){if(Array.isArray(e)){const n=e[0];if(n>t){const r=(0,l.kd)(n,t);e[0]=n+r*(-2*t)}else if(n<r){const t=(0,l.kd)(n,r);e[0]=n+t*(-2*r)}}else{const n=e.x;if(n>t){const r=(0,l.kd)(n,t);e=e.clone().offset(r*(-2*t),0)}else if(n<r){const t=(0,l.kd)(n,r);e=e.clone().offset(t*(-2*r),0)}}return e}function F(e,t){let r=-1;for(let n=0;n<t.cutIndexes.length;n++){const s=t.cutIndexes[n],a=t.geometries[n],i=(0,l.r8)(a);for(let e=0;e<i.length;e++){const t=i[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const n=t[e][0];r=n>r?n:r}r=Number(r.toFixed(9));const n=-360*(0,l.kd)(r,180);for(let r=0;r<t.length;r++){const t=a.getPoint(e,r);a.setPoint(e,r,t.clone().offset(n,0))}return!0}}))}if(s===r){if(g(e))for(const t of(0,l.r8)(a))e[s]=e[s].addRing(t);else if(b(e))for(const t of(0,l.r8)(a))e[s]=e[s].addPath(t)}else r=s,e[s]=a}return e}async function I(e,t,r){if(!Array.isArray(e))return I([e],t);t&&"string"!=typeof t&&y().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let a,g,b,v,S,R,E,$,M=0;const k=[],j=[];for(const t of e)if(null!=t)if(a||(a=t.spatialReference,g=(0,d.Vp)(a),b=a.isWebMercator,R=b?102100:4326,v=l.j7[R].maxX,S=l.j7[R].minX,E=l.j7[R].plus180Line,$=l.j7[R].minus180Line),g)if("mesh"===t.type)j.push(t);else if("point"===t.type)j.push(A(t.clone(),v,S));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>A(e,v,S))),j.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);j.push(e.rings?new i.A(e):e)}else if(t.extent){const e=t.extent,r=(0,l.kd)(e.xmin,S)*(2*v);let n=0===r?t.clone():(0,l.kS)(t.clone(),r);e.offset(r,0);let{xmin:s,xmax:a}=e;s=Number(s.toFixed(9)),a=Number(a.toFixed(9)),e.intersects(E)&&a!==v?(M=a>M?a:M,n=w(n,b),k.push(n),j.push("cut")):e.intersects($)&&s!==S?(M=a*(2*v)>M?a*(2*v):M,n=w(n,b,360),k.push(n),j.push("cut")):j.push(n)}else j.push(t.clone());else j.push(t);else j.push(t);let O=(0,l.kd)(M,v),L=-90;const U=O,x=new o.A;for(;O>0;){const e=360*O-180;x.addPath([[e,L],[e,-1*L]]),L*=-1,O--}if(k.length>0&&U>0){const t=F(k,await async function(e,t,r,n){const s=(0,h.Dl)(e),a=t[0].spatialReference,i={...n,responseType:"json",query:{...s.query,f:"json",sr:(0,d.YX)(a),target:JSON.stringify({geometryType:(0,p.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},o=await(0,c.A)(s.path+"/cut",i),{cutIndexes:l,geometries:u=[]}=o.data;return{cutIndexes:l,geometries:u.map((e=>{const t=(0,p.rS)(e);return t.spatialReference=a,t}))}}(s,k,x,r)),n=[],a=[];for(let r=0;r<j.length;r++){const s=j[r];if("cut"!==s)a.push(s);else{const s=t.shift(),i=e[r];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&s.rings.length>=i.rings.length?(n.push(s),a.push("simplify")):a.push(b?(0,u.Gh)(s):s)}}if(!n.length)return a;const i=await async function(e,t,r){const n="string"==typeof e?(0,f.An)(e):e,s=t[0].spatialReference,a=(0,p.$B)(t[0]),i={...r,query:{...n.query,f:"json",sr:(0,d.YX)(s),geometries:JSON.stringify((0,m.X)(t))}},{data:o}=await(0,c.A)(n.path+"/simplify",i);return(0,m.V)(o.geometries,a,s)}(s,n,r),o=[];for(let e=0;e<a.length;e++){const t=a[e];"simplify"!==t?o.push(t):o.push(b?(0,u.Gh)(i.shift()):i.shift())}return o}const V=[];for(let e=0;e<j.length;e++){const t=j[e];if("cut"!==t)V.push(t);else{const e=k.shift();V.push(!0===b?(0,u.Gh)(e):e)}}return V}},80754:(e,t,r)=>{r.d(t,{j7:()=>i,kS:()=>l,kd:()=>o,r8:()=>d});var n=r(82799),s=r(16930),a=r(65864);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=d(e);for(const e of r)for(const r of e)r[0]+=t;return e}function d(e){return(0,a.Bi)(e)?e.rings:e.paths}},78628:(e,t,r)=>{r.d(t,{applyEdits:()=>I,r3:()=>w,uploadAssets:()=>k,zp:()=>F});var n=r(52106),s=r(5503),a=r(49186),i=r(4718),o=r(53966),l=r(74887),d=r(84952),u=r(13069),c=r(17136),p=r(21325),h=r(47685),f=r(30524),m=r(20557),y=r(83531);function g(e){return null!=e?.applyEdits}function b(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function w(e){return e.every(b)}function A(e){return"object"==typeof e&&null!=e&&"globalId"in e&&!!e.globalId}function F(e){return e.every(A)}async function I(e,t,r,n={}){let d;const c="gdbVersion"in e?e.gdbVersion:null,p=n.gdbVersion??c;if((0,h.Mk)(e)&&e.url)d=(0,h.Zk)(e.url,e.layerId,p,"original-and-current-features"===n.returnServiceEditsOption);else{d=(0,l.Tw)(),d.promise.then((t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)}));const t={result:d.promise};e.emit("apply-edits",t)}try{const{results:l,edits:c}=await async function(e,t,r,n){if(await e.load(),!g(t))throw new a.A(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,y.tk)(e))throw new a.A(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:l}=await async function(e,t,r){const n=(0,y.BR)(e),i=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),l=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),d=null!=e.infoFor3D;if(function(e,t,r,n,s,i){if(!e||!n&&!s)throw new a.A(`${i}:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");if(!t.editing.supportsGlobalId&&r?.globalIdUsed)throw new a.A(`${i}:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!t.editing.supportsGlobalId&&s)throw new a.A(`${i}:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!r?.globalIdUsed&&s)throw new a.A(`${i}:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true")}(t,n,r,!!i,!!l,`${e.type}-layer`),!n.data.isVersioned&&r?.gdbVersion)throw new a.A(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!n.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new a.A(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");const c={...r};if(null!=c.rollbackOnFailureEnabled||n.editing.supportsRollbackOnFailure||(c.rollbackOnFailureEnabled=!0),c.rollbackOnFailureEnabled||"original-and-current-features"!==c.returnServiceEditsOption||(!1===c.rollbackOnFailureEnabled&&o.A.getLogger("esri.layers.graphics.editingSupport").warn(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true, but 'rollBackOnFailure' was set to false. 'rollBackOnFailure' has been overwritten and set to true."),c.rollbackOnFailureEnabled=!0),!n.editing.supportsReturnServiceEditsInSourceSpatialReference&&c.returnServiceEditsInSourceSR)throw new a.A(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(c.returnServiceEditsInSourceSR&&"original-and-current-features"!==c.returnServiceEditsOption)throw new a.A(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const p=function(e,t,r){const n=function(e){return{addFeatures:Array.from(e?.addFeatures??[]),updateFeatures:Array.from(e?.updateFeatures??[]),deleteFeatures:e&&s.A.isCollection(e.deleteFeatures)?e.deleteFeatures.toArray():e.deleteFeatures||[],addAttachments:e.addAttachments||[],updateAttachments:e.updateAttachments||[],deleteAttachments:e.deleteAttachments||[]}}(e);if(n.addFeatures?.length&&!t.operations.supportsAdd)throw new a.A(`${r}:unsupported-operation`,"Layer does not support adding features.");if(n.updateFeatures?.length&&!t.operations.supportsUpdate)throw new a.A(`${r}:unsupported-operation`,"Layer does not support updating features.");if(n.deleteFeatures?.length&&!t.operations.supportsDelete)throw new a.A(`${r}:unsupported-operation`,"Layer does not support deleting features.");return n.addFeatures=n.addFeatures.map($),n.updateFeatures=n.updateFeatures.map($),n.addAssetFeatures=[],n}(t,n,`${e.type}-layer`),h=r?.globalIdUsed||d,f=e.fields.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(h){const{globalIdField:t}=e;if(null==t)throw new a.A(`${e.type}-layer:invalid-parameter`,"Layer does not specify a global id field.");p.addFeatures.forEach((e=>function(e,t){const{attributes:r}=e;null==r[t]&&(r[t]=(0,u.yS)())}(e,t)))}return p.addFeatures.forEach((t=>function(e,t,r,n){v(e,t,r,n),S(e,t)}(t,e,h,f))),p.updateFeatures.forEach((t=>function(e,t,r,n){v(e,t,r,n),S(e,t);const s=(0,y.BR)(t);if("geometry"in e&&null!=e.geometry&&!s?.editing.supportsGeometryUpdate)throw new a.A(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,h,f))),p.deleteFeatures.forEach((t=>function(e,t,r,n){v(e,t,r,n)}(t,e,h,f))),p.addAttachments.forEach((t=>R(t,e))),p.updateAttachments.forEach((t=>R(t,e))),d&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:r}=t,n=(0,m.R_)("model/gltf-binary",r.supportedFormats)??(0,m.E1)("glb",r.supportedFormats);if(!n||!r.editFormats.includes(n))throw new a.A(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:s}=e;for(const t of e.addFeatures??[])M(t)&&s.push(t);for(const t of e.updateFeatures??[])M(t)&&s.push(t)}(p,e),{edits:await E(p),options:c}}(e,r,n);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await t.applyEdits(i,l)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,n),p=e=>e.filter((e=>!e.error)).map(i.o8),h={edits:c,addedFeatures:p(l.addFeatureResults),updatedFeatures:p(l.updateFeatureResults),deletedFeatures:p(l.deleteFeatureResults),addedAttachments:p(l.addAttachmentResults),updatedAttachments:p(l.updateAttachmentResults),deletedAttachments:p(l.deleteAttachmentResults),exceededTransferLimit:!1,historicMoment:l.editMoment?new Date(l.editMoment):null,globalIdToObjectId:n.globalIdToObjectId};return l.editedFeatureResults?.length&&(h.editedFeatures=l.editedFeatureResults),d.resolve(h),l}catch(e){throw d.reject(e),e}}function v(e,t,r,n){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new a.A(`${t.type}-layer:invalid-parameter`,`Feature should have '${t.globalIdField}' when 'globalIdUsed' is true`);if(!("attributes"in e)&&!e.globalId)throw new a.A(`${t.type}-layer:invalid-parameter`,"`'globalId' of the feature should be passed when 'globalIdUsed' is true")}if(n.length&&"attributes"in e)for(const r of n){const n=e.attributes[r.name];if(void 0!==n&&!(0,f.OG)(r,n))throw new a.A(`${t.type}-layer:invalid-parameter`,`Big-integer field '${r.name}' of the feature must be less than ${Number.MAX_SAFE_INTEGER}`,{feature:e})}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new a.A(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new a.A(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function S(e,t){if("geometry"in e&&"mesh"===e.geometry?.type&&null!=t.infoFor3D&&null!=t.spatialReference){const{geometry:r}=e,{spatialReference:n,vertexSpace:s}=r,i=t.spatialReference,o="local"===s.type,l=(0,p.EA)(i),d=(0,p.aI)(i,n),u=d||(0,p.oT)(i)&&((0,p.oT)(n)||(0,p.K8)(n));if(!(o&&l&&u||!o&&!l&&d))throw new a.A(`${t.type}-layer:mesh-unsupported`,`Uploading a mesh with a ${s.type} vertex space and a spatial reference wkid:${n.wkid} to a layer with a spatial reference wkid:${i.wkid} is not supported.`)}}function R(e,t){const{feature:r,attachment:n}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new a.A(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new a.A(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!n.globalId)throw new a.A(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!n.data&&!n.uploadId)throw new a.A(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(n.data instanceof File&&n.data.name||n.name))throw new a.A(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&n.uploadId)throw new a.A(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof n.data){const e=(0,d.r$)(n.data);if(e&&!e.isBase64)throw new a.A(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function E(e){const t=e.addFeatures??[],r=e.updateFeatures??[],n=t.concat(r).map((e=>e.geometry)),s=await(0,c.el)(n),a=t.length,i=r.length;return s.slice(0,a).forEach(((e,r)=>t[r].geometry=e)),s.slice(a,a+i).forEach(((e,t)=>r[t].geometry=e)),e}function $(e){const t=new n.A;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function M(e){return"mesh"===e?.geometry?.type}function k(e,t,r,n){if(!g(t))throw new a.A(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new a.A(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,n)}},47685:(e,t,r)=>{r.d(t,{Mk:()=>h,Zk:()=>c,w6:()=>y});var n=r(90237),s=r(65529),a=r(4718),i=r(74887),o=r(10107),l=(r(44208),r(53966),r(40608)),d=r(20816);const u=new s.A.EventEmitter;function c(e,t,r=null,n=!1){const s=(0,i.Tw)();return n=null==t||n,u.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:n,result:s.promise}),s}const p=Symbol();function h(e){return null!=e&&"object"==typeof e&&p in e}function f(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,r){const n=new URL(e).host,s=d.Z3.get(n),a=e=>!e||e===s;return a(t)&&a(r)||t===r}const y=e=>{var t;let r=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:n,mayReceiveServiceEdits:s,result:i}=e,o=t===this.url,l=null!=r&&null!=this.layerId&&r===this.layerId,d=f(this),u=f(this)&&m(t,n,this.gdbVersion);if(!o||d&&!u||!l&&!s)return;const c=i.then((e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,a.o8)(e)),e;const r=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(r){const{adds:t,updates:n,deletes:s}=r.editedFeatures,i={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:s?s.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:n?n.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,a.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,a.o8)(e.historicMoment)};return this.emit("edits",i),i}const s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,a.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,a.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,n,s.historicMoment)&&this.emit("edits",s),s})).then((e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,n,e.historicMoment)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:c})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:n}=e,s=t===this.url,a=f(this),i=f(this)&&m(t,r,this.gdbVersion),o=f(this)&&!m(t,this.gdbVersion,null);s&&a&&i&&o&&"historicMoment"in this&&this.historicMoment!==n&&(this.historicMoment=n)},this.when().then((()=>{this.addHandles(function(e){return u.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return u.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,d.w5)(e,t)}};return t=p,(0,n._)([(0,o.MZ)()],r.prototype,"lastEditsEventDate",void 0),r=(0,n._)([(0,l.$)("esri.layers.mixins.EditBusLayer")],r),r}},20557:(e,t,r)=>{r.d(t,{E1:()=>o,Fm:()=>l,JZ:()=>f,R_:()=>i,fu:()=>s,oF:()=>a,rq:()=>d});const n=[["binary","application/octet-stream","bin",""]];function s(e,t){return null!=c(t.name,e?.supportedFormats??[])}function a(e,t){if(!e)return!1;const r=d(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function i(e,t){return p(function(e,t){const r=e.toLowerCase();return u(t).find((e=>h(e)===r))}(e,t))}function o(e,t){return p(c(e,t))}function l(e,t){return h(function(e,t){return u(t).find((t=>p(t)===e))}(e,t))}function d(e,t){return o(e.name,t)??i(e.type,t)}function u(e){return[...n,...e]}function c(e,t){const r=e.toLowerCase();return u(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>r.endsWith(e)))))}function p(e){return e?.[0]}function h(e){return e?.[1].toLowerCase()}function f(e){return e.tables?.find((e=>"assetMaps"===e.role))}},92300:(e,t,r)=>{r.d(t,{V:()=>a,X:()=>s});var n=r(65864);function s(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function a(e,t,r){const s=(0,n.xD)(t);return e.map((e=>{const t=s.fromJSON(e);return t.spatialReference=r,t}))}},2272:(e,t,r)=>{r.d(t,{Dl:()=>i,jV:()=>a,lF:()=>o}),r(92602),r(70333);var n=r(4718),s=r(84952);function a(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,s.An)(e):(0,n.o8)(e)}function o(e,t,r){const n={};for(const s in e){if("declaredClass"===s)continue;const a=e[s];if(null!=a&&"function"!=typeof a)if(Array.isArray(a))n[s]=a.map((e=>o(e)));else if("object"==typeof a)if(a.toJSON){const e=a.toJSON(r?.[s]);n[s]=t?e:JSON.stringify(e)}else n[s]=t?a:JSON.stringify(a);else n[s]=a}return n}r(926)},20816:(e,t,r)=>{r.d(t,{TA:()=>s,We:()=>o,Z3:()=>a,ZJ:()=>l,w5:()=>d});var n=r(78888);const s=(0,r(13069).vD)(),a=new Map,i=new Map;async function o(e,t,r){if(!e||!r)return!1;if(!t)return!0;const s=new URL(e).host;let i=a.get(s);if(!i){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");i=(await(0,n.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return i===t}async function l(e,t,n=!1){if(!e||!t)return!0;const a=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),o=i.get(a)?.entries();if(o)for(const[e,i]of o)if(i.name===t){const t=!i.stack?.hasForwardEdits();if(!t&&n){const[{deleteForwardEdits:t},{default:n}]=await Promise.all([r.e(2186).then(r.bind(r,32186)),r.e(2558).then(r.bind(r,32558))]),o=await t(a,e,new n({sessionId:s,moment:i.moment}));return o.success&&i.stack?.clearForwardEdits(),o.success}return t}return!0}function d(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),n=i.get(r)?.entries();if(n)for(const[e,r]of n)if(r.name===t)return"edit"===r.lockType;return!1}new Map}}]);