E.length)throw new h("invalid time-only field",`Cannot parse valid time-only field value from ${G}`);G=E.split(":");E=Array(3);for(let F=0;3>F;F++){const H=G.at(F)??"";E[F]=H.padStart(2,"0")}return E.join(":")}
function w(G){if(!G||!g.isString(G))return null;G=f.DateTime.fromFormat(G,"yyyy-MM-dd");return G.isValid?G:null}function z(G){return G&&g.isString(G)?n.mappedFind(B,E=>{E=f.DateTime.fromFormat(G,E);return E.isValid?E:null})??null:null}function k(G){if(!G||!g.isString(G))return null;G=f.DateTime.fromISO(G);return G.isValid?G:null}const v=e.utc,y={date:null,time:null,timeZoneOffset:null};b=new Map([["hours",3600],["minutes",60],["seconds",1],["deciseconds",.1],["centiseconds",.01],["milliseconds",.001]]);
a.TimeStampOffsetPattern=void 0;(function(G){G.HM="HH:mm";G.HMS="HH:mm:ss";G.HMS_MS="HH:mm:ss.SSS"})(a.TimeStampOffsetPattern||(a.TimeStampOffsetPattern={}));const B=[a.TimeStampOffsetPattern.HMS_MS,a.TimeStampOffsetPattern.HMS,a.TimeStampOffsetPattern.HM,"TT"],C=a.TimeStampOffsetPattern.HMS;c=new Set(["date-only","time-only","timestamp-offset"]);const L=new Set(["small-integer","big-integer","integer","single","double"]),M=new Set(["date-picker","time-picker","datetimeoffset-picker","datetime-picker"]);
a.arcadeDateToFieldValue=function(G,E){switch(E){case "date":return G.getTime();case "date-only":return G.toISODate();case "time-only":return u(G.toISOTime(!0,!1));case "timestamp-offset":return G.toISOString(!1);default:return null}};a.clampValueToRange=A;a.createDateTimeFromFieldValue=t;a.dateFieldsWithStringFieldValue=c;a.dateOnlyToDateTime=w;a.dateTimeIsInRange=function(G){const {type:E,range:F,value:H}=G;if(null==H||!F||H===F.min||H===F.max)return!0;if("date"===E)return x({value:H,min:F.min,
max:F.max});const {rawMax:R,rawMin:J}=F;let K=G=null,Q=null;switch(E){case "date-only":G=w(R);K=w(J);Q=w(H);break;case "time-only":G=z(R);K=z(J);Q=z(H);break;case "timestamp-offset":G=k(R),K=k(J),Q=k(H)}return Q?x({value:Q.valueOf(),min:K?.valueOf(),max:G?.valueOf()}):!0};a.dateTimeToFieldValue=function(G){return G?.isValid?G.toMillis():null};a.defaultDatePattern="yyyy-MM-dd";a.defaultTimePattern=C;a.getDefaultLocaleOptions=r;a.getISOFieldValueFromDateComponents=function(G){const {dateComponent:E,
defaultTimeZone:F,timeComponent:H,timeZoneComponent:R,oldValue:J}=G;if(!E?.value)return null;const {year:K,month:Q,day:N}=f.DateTime.fromFormat(E.value,"yyyy-MM-dd"),{hour:U,minute:Z,second:fa,millisecond:pa}=q(H,e.utc)??f.DateTime.now();G=l(J,F);G=R?.value?parseInt(R.value,10):null!=G.timeZoneOffset?parseInt(G.timeZoneOffset,10):(new Date).getTimezoneOffset();G=f.FixedOffsetZone.instance(G);G=f.DateTime.fromObject({year:K,month:Q,day:N,hour:U,minute:Z,second:fa,millisecond:pa},{zone:G});return G.isValid?
G.toISO({includeOffset:!0}):null};a.getIntlOptionsForField=function(G){switch(G.type){case "date":return m.convertDateFormatToIntlOptions("short-date-short-time");case "date-only":return m.convertDateFormatToIntlOptions("short-date");case "time-only":return m.convertDateFormatToIntlOptions("short-time");case "timestamp-offset":return{...m.convertDateFormatToIntlOptions("short-date-short-time"),timeZone:void 0,timeZoneName:"short"};default:return m.convertDateFormatToIntlOptions("short-date-short-time")}};
a.getLabelForDateFieldValue=function(G,E,F){if(!G||null==E)return null;switch(G.type){case "date":return m.formatDate(E,F);case "date-only":return m.formatDateOnly(E,F);case "time-only":return m.formatTimeOnly(E,F);case "timestamp-offset":return m.formatTimestamp(E,F);default:return null}};a.getLocalDateTimeFromComponent=q;a.getUnixFieldValueFromDateComponents=function(G){const {dateComponent:E,timeComponent:F,timeZone:H,max:R,min:J,oldValue:K}=G;var Q=q(E,H);G=!!G.applyRange;if(!Q)return null;var N=
null;if(null!=F?.value){N=q(F,H);var U=Date.now();U=f.DateTime.fromMillis(null!=R&&R"valueAsDate"in G;a.isDateType=function(G){return M.has(G)};a.isInDST=function(G,E="system"){return f.DateTime.fromJSDate(G,{zone:E}).isInDST};a.isNumberType=function(G){return L.has(G)};a.normalizeTimeOnlyString=u;a.numberingSystem="latn";a.prepareISOFieldValueForDateComponents=l;a.prepareUnixFieldValueForDateComponents=
function(G,E){return null==G||!g.isNumber(G)||isNaN(G)?y:(G=t(G,E))?{date:G.toFormat("yyyy-MM-dd",r(E)),time:G.toFormat(C,r(E))}:y};a.supportedTimeFormats=B;a.timeOnlyToDateTime=z;a.timeResolutionToStepMap=b;a.timestampOffsetToDateTime=k;a.valueIsInRange=x;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/intl":function(){define("exports ./intl/date ./intl/number ./intl/substitute ./intl/locale ./intl/messages ./intl/t9n ./assets".split(" "),function(a,b,c,h,d,n,m,e){n.registerMessageBundleLoader(m.createJSONLoader({pattern:"esri/",
location:e.getAssetUrl}));a.convertDateFormatToIntlOptions=b.convertDateFormatToIntlOptions;a.formatDate=b.formatDate;a.formatDateOnly=b.formatDateOnly;a.formatTimeOnly=b.formatTimeOnly;a.formatTimestamp=b.formatTimestamp;a.convertNumberFormatToIntlOptions=c.convertNumberFormatToIntlOptions;a.formatNumber=c.formatNumber;a.substitute=h.substitute;a.getLocale=d.getLocale;a.onLocaleChange=d.onLocaleChange;a.prefersRTL=d.prefersRTL;a.setLocale=d.setLocale;a.fetchMessageBundle=n.fetchMessageBundle;a.normalizeMessageBundleLocale=
n.normalizeMessageBundleLocale;a.registerMessageBundleLoader=n.registerMessageBundleLoader;a.createJSONLoader=m.createJSONLoader;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/intl/number":function(){define(["exports","./locale"],function(a,b){function c(e){const g=e||n;if(!d.has(g)){var f=b.getLocale();f=h[b.getLocale()]||f;d.set(g,new Intl.NumberFormat(f,e))}return d.get(g)}const h={ar:"ar-u-nu-latn"};let d=new WeakMap,n={};b.beforeLocaleChange(()=>{d=new WeakMap;n={}});const m=
new Map;a.convertNumberFormatToIntlOptions=function(e={}){const g={};null!=e.digitSeparator&&(g.useGrouping=e.digitSeparator);null!=e.places&&(g.minimumFractionDigits=g.maximumFractionDigits=e.places);return g};a.formatNumber=function(e,g){Object.is(e,-0)&&(e=0);return c(g).format(e)};a.getFormatter=c;a.parseNumber=function(e,g=b.getLocale()){if(!e)return null;var f=m.get(g);if(!f){f=c().formatToParts(12345.6);const p=[...c({useGrouping:!1}).format(9876543210)].reverse(),r=new Map(p.map((u,w)=>[u,
w])),t=new RegExp(`[${f.find(u=>"group"===u.type)?.value}]`,"g"),l=new RegExp(`[${f.find(u=>"decimal"===u.type)?.value}]`),q=new RegExp(`[${p.join("")}]`,"g"),x=/[\u200E\u200F\u202A\u202B\u202C\u202D\u202E\u2066\u2067\u2068\u2069\u061C]/g,A=/[-\u2212\u2013\u2014\u2015]/g;f=u=>{u=u.trim().replaceAll(t,"").replace(l,".").replace(q,w=>String(r.get(w))).replaceAll(x,"").replaceAll(A,"-");if(""===u)return null;u=Number(u);return isNaN(u)?null:u};m.set(g,f)}return f(e)};Object.defineProperty(a,Symbol.toStringTag,
{value:"Module"})})},"esri/intl/substitute":function(){define("exports ../core/Logger ../core/object ../core/string ./date ./number".split(" "),function(a,b,c,h,d,n){function m(e){switch(typeof e){case "string":return e;case "number":return n.formatNumber(e);case "boolean":return""+e;default:return e instanceof Date?d.formatDate(e):""}}a.substitute=function(e,g,f={}){const {format:p={}}=f;return h.replace(e,r=>{{const q=r.indexOf(":");if(-1===q)var t=r.trim();else{t=r.slice(0,q).trim();var l=r.slice(q+
1).trim()}if(t)if(r=c.getDeepValue(t,g),null==r)l="";else if(t=(l?p?.[l]:null)??p?.[t])b:switch(t.type){case "date":l=d.formatDate(r,t.intlOptions);break b;case "number":l=n.formatNumber(r,t.intlOptions);break b;default:b.getLogger("esri.intl.substitute").warn("missing format descriptor for key {key}"),l=m(r)}else if(l)b:switch(l.toLowerCase()){case "dateformat":l=d.formatDate(r);break b;case "numberformat":l=n.formatNumber(r);break b;default:b.getLogger("esri.intl.substitute").warn(`inline format is unsupported since 4.12: ${l}`),
l=/^(dateformat|datestring)/i.test(l)?d.formatDate(r):/^numberformat/i.test(l)?n.formatNumber(r):m(r)}else l=m(r);else l=""}return l})};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/intl/t9n":function(){define(["exports","../request","../core/Error","./messages"],function(a,b,c,h){async function d(g,f,p,r){var t=f.exec(p);if(!t)throw new c("esri-intl:invalid-bundle",`Bundle id "${p}" is not compatible with the pattern "${f}"`);f=t[1]?`${t[1]}/`:"";t=t[2];const l=h.normalizeMessageBundleLocale(r);
r=`${f}${t}.json`;f=l?`${f}${t}_${l}.json`:r;let q;try{q=await n(g(f))}catch(x){if(f===r)throw new c("intl:unknown-bundle",`Bundle "${p}" cannot be loaded`,{error:x});try{q=await n(g(r))}catch(A){throw new c("intl:unknown-bundle",`Bundle "${p}" cannot be loaded`,{error:A});}}return q}async function n(g){if(null!=e.fetchBundleAsset)return e.fetchBundleAsset(g);g=await b(g,{responseType:"text"});return JSON.parse(g.data)}class m{constructor({base:g="",pattern:f,location:p=new URL(window.location.href)}){let r;
r="string"===typeof p?t=>(new URL(t,new URL(p,window.location.href))).href:p instanceof URL?t=>(new URL(t,p)).href:p;this.pattern="string"===typeof f?new RegExp(`^${f}`):f;this.getAssetUrl=r;g=g?g.endsWith("/")?g:g+"/":"";this.matcher=new RegExp(`^${g}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(g,f){return d(this.getAssetUrl,this.matcher,g,f)}}const e={};a.JSONLoader=m;a.createJSONLoader=function(g){return new m(g)};a.test=e;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/widgets/support/dataUtils":function(){define(["exports"],
function(a){a.isNumber=function(b){return"number"===typeof b};a.isString=function(b){return"string"===typeof b||b instanceof String};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/support/arcadeOnDemand":function(){define("require exports ../geometry ../core/Error ../core/Logger ../geometry/SpatialReference".split(" "),function(a,b,c,h,d,n){function m(){e||=(async()=>{const f=await new Promise((p,r)=>a(["./arcadeUtils"],p,r));return{arcade:f.arcade,arcadeUtils:f,Dictionary:f.Dictionary,
Feature:f.arcadeFeature}})();return e}let e;c=(f,p,r)=>g.create(f,p,r,null,["$feature","$view"],[]);class g{constructor(f,p,r,t,l,q,x){this.services=null;this.script=f;this.evaluate=t;this.fields=(Array.isArray(q)?q:q?.fields)??[];this._syntaxTree=r;this._arcade=p;this._arcadeFeature=l;this._spatialReference=x;this._referencesGeometry=p.scriptTouchesGeometry(this._syntaxTree);this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(f,p,r,t,l,q){const {arcade:x,
Feature:A,Dictionary:u}=await m(),w=p instanceof n?p:n.fromJSON(p);let z;try{z=x.parseScript(f,q)}catch(L){return d.getLogger("esri.support.arcadeOnDemand").error(new h("arcade-bad-expression","Failed to parse arcade script",{script:f,error:L})),null}l=l.reduce((L,M)=>({...L,[M]:null}),{});let k=null;null!=t&&(k=new u(t),k.immutable=!0,l.$config=null);q=(t=x.scriptUsesGeometryEngine(z))&&x.enableGeometrySupport();const v=x.scriptUsesFeatureSet(z)&&x.enableFeatureSetSupport(),y=(p=x.scriptIsAsync(z))&&
x.enableAsyncSupport();l={vars:l,spatialReference:w,useAsync:!!y};await Promise.all([q,v,y]);q=new Set;await x.loadDependentModules(q,z,null,p,t);const B=new u;B.immutable=!1;B.setField("scale",0);const C=x.compileScript(z,l);return new g(f,x,z,(L,M)=>{const G=L.$view?.timeZone;"$view"in L&&L.$view&&(B.setField("scale","object"===typeof L.$view&&"scale"in L.$view?L.$view.scale:void 0),L.$view=B);k&&(L.$config=k);return C({vars:L,spatialReference:w,services:M,timeZone:G})},new A,r,w)}repurposeFeature(f){f.geometry&&
!f.geometry.spatialReference&&(f.geometry.spatialReference=this._spatialReference);this._arcadeFeature.repurposeFromGraphicLikeObject(f.geometry,f.attributes,{fields:this.fields});return this._arcadeFeature}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}}b.ArcadeExpression=g;b.createDictionaryExpression=(f,p,r,t)=>g.create(f,p,r,t,["$feature","$view"],[]);b.createLabelExpression=(f,p,r)=>g.create(f,p,r,null,["$feature","$view"],[]);b.createRendererExpression=
c;b.createRendererExpressionWithOptions=(f,p)=>g.create(f,p.spatialReference,p.fields,null,["$feature","$view"],[]);b.createVVExpression=c;b.loadArcade=m;Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/support/unitConversionUtils":function(){define(["exports","../../core/arrayUtils","../../renderers/support/lengthUtils"],function(a,b,c){const h=function(){const d=Object.keys(c.meterIn);b.remove(d,"decimal-degrees");d.sort();return d}();a.getMetersPerUnit=function(d){return 1/
(c.meterIn[d]||1)};a.supportedUnits=h;a.supportsUnit=function(d){return!!d&&null!=c.meterIn[d]};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/renderers/support/lengthUtils":function(){define(["exports","../../core/unitUtils","../../geometry/support/Ellipsoid"],function(a,b,c){b={unknown:1,inches:b.convertUnit(1,"meters","inches"),feet:b.convertUnit(1,"meters","feet"),"us-feet":b.convertUnit(1,"meters","us-feet"),yards:b.convertUnit(1,"meters","yards"),miles:b.convertUnit(1,
"meters","miles"),"nautical-miles":b.convertUnit(1,"meters","nautical-miles"),millimeters:b.convertUnit(1,"meters","millimeters"),centimeters:b.convertUnit(1,"meters","centimeters"),decimeters:b.convertUnit(1,"meters","decimeters"),meters:b.convertUnit(1,"meters","meters"),kilometers:b.convertUnit(1,"meters","kilometers"),"decimal-degrees":1/b.lengthToDegrees(1,"meters",c.earth.radius)};a.meterIn=b;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/tables/AttributeTableTemplate":function(){define("../chunks/tslib.es6 ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./elements/AttributeTableGroupElement ./support/elements".split(" "),
function(a,b,c,h,d,n,m,e,g,f){var p;const r=f.buildTypeMaps(g);b=p=class extends b.JSONSupport{constructor(t){super(t);this.orderByFields=this.elements=null}castElements(t){return f.ensureType(t,r)}readElements(t,l){return f.fromJSON(l.attributeTableElements,r)}writeElements(t,l){l.attributeTableElements=f.toJSON(t,r)}clone(){return new p({elements:c.clone(this.elements),orderByFields:this.orderByFields})}};a.__decorate([h.property({json:{write:!0}})],b.prototype,"elements",void 0);a.__decorate([d.cast("elements")],
b.prototype,"castElements",null);a.__decorate([n.reader("elements",["attributeTableElements"])],b.prototype,"readElements",null);a.__decorate([e.writer("elements")],b.prototype,"writeElements",null);a.__decorate([h.property({type:[Object],json:{write:!0}})],b.prototype,"orderByFields",void 0);return b=p=a.__decorate([m.subclass("esri.tables.AttributeTableTemplate")],b)})},"esri/tables/elements/AttributeTableGroupElement":function(){define("../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./AttributeTableElement ../support/elements".split(" "),
function(a,b,c,h,d,n,m,e,g){var f;e=f=class extends e{constructor(r){super(r);this.elements=null;this.type="group"}castElements(r){return g.ensureType(r,p,!1)}readElements(r,t){return g.fromJSON(t.attributeTableElements,p,!1)}writeElements(r,t){t.attributeTableElements=g.toJSON(r,p,!1)}clone(){return new f({description:this.description,elements:b.clone(this.elements),label:this.label})}};a.__decorate([c.property({json:{write:!0}})],e.prototype,"elements",void 0);a.__decorate([h.cast("elements")],
e.prototype,"castElements",null);a.__decorate([d.reader("elements",["attributeTableElements"])],e.prototype,"readElements",null);a.__decorate([m.writer("elements")],e.prototype,"writeElements",null);a.__decorate([c.property({type:String,json:{read:!1,write:!0}})],e.prototype,"type",void 0);e=f=a.__decorate([n.subclass("esri.tables.elements.AttributeTableGroupElement")],e);const p=g.buildTypeMaps(e);return e})},"esri/tables/elements/AttributeTableElement":function(){define(["../../chunks/tslib.es6",
"../../core/JSONSupport","../../core/accessorSupport/decorators/property","../../core/accessorSupport/decorators/subclass"],function(a,b,c,h){b=class extends b.JSONSupport{constructor(d){super(d);this.type=this.label=this.description=null}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"description",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"label",void 0);a.__decorate([c.property()],b.prototype,"type",void 0);return b=a.__decorate([h.subclass("esri.tables.elements.AttributeTableElement")],
b)})},"esri/tables/support/elements":function(){define("exports ../../core/accessorSupport/ensureType ../elements/AttributeTableAttachmentElement ../elements/AttributeTableElement ../elements/AttributeTableFieldElement ../elements/AttributeTableRelationshipElement".split(" "),function(a,b,c,h,d,n){a.buildTypeMaps=function(m){return{typesWithGroup:{base:h,key:"type",typeMap:{attachment:c,field:d,group:m,relationship:n}},typesWithoutGroup:{base:h,key:"type",typeMap:{attachment:c,field:d,relationship:n}}}};
a.ensureType=function(m,e,g=!0){return m?m.map(f=>b.ensureOneOfType(g?e.typesWithGroup:e.typesWithoutGroup,f)):null};a.fromJSON=function(m,e,g=!0){if(!m)return null;const f=g?e.typesWithGroup.typeMap:e.typesWithoutGroup.typeMap;return m.filter(p=>f[p.type]).map(p=>f[p.type].fromJSON(p))};a.toJSON=function(m,e,g=!0){if(!m)return null;const f=g?e.typesWithGroup.typeMap:e.typesWithoutGroup.typeMap;return m.filter(p=>f[p.type]).map(p=>p.toJSON())};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},
"esri/tables/elements/AttributeTableAttachmentElement":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./AttributeTableElement".split(" "),function(a,b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);this.displayType="auto";this.type="attachment"}clone(){return new e({description:this.description,displayType:this.displayType,label:this.label})}};
a.__decorate([b.property({type:["auto"],json:{write:!0}})],c.prototype,"displayType",void 0);a.__decorate([b.property({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=e=a.__decorate([n.subclass("esri.tables.elements.AttributeTableAttachmentElement")],c)})},"esri/tables/elements/AttributeTableFieldElement":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./AttributeTableElement".split(" "),
function(a,b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);this.fieldName=null;this.type="field"}clone(){return new e({description:this.description,fieldName:this.fieldName,label:this.label})}};a.__decorate([b.property({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0);a.__decorate([b.property({type:String,json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=e=a.__decorate([n.subclass("esri.tables.elements.AttributeTableFieldElement")],c)})},"esri/tables/elements/AttributeTableRelationshipElement":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./AttributeTableElement".split(" "),
function(a,b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);this.relationshipId=null;this.type="relationship"}clone(){return new e({description:this.description,label:this.label,relationshipId:this.relationshipId})}};a.__decorate([b.property({type:Number,json:{write:!0}})],c.prototype,"relationshipId",void 0);a.__decorate([b.property({type:["relationship"],json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=e=a.__decorate([n.subclass("esri.tables.elements.AttributeTableRelationshipElement")],
c)})},"esri/layers/mixins/PortalLayer":function(){define("require exports ../../chunks/tslib.es6 ../../config ../../kernel ../../request ../../core/asyncUtils ../../core/Error ../../core/Logger ../../core/maybe ../../core/promiseUtils ../../core/urlUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/RandomLCG ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../support/layerUtils ../../portal/Portal ../../portal/PortalItem ../../portal/PortalUser ../../portal/support/portalItemUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u,w,z,k,v,y){var B=null,C=null;b.PortalLayer=L=>{L=class extends L{constructor(){super(...arguments);this.resourceReferences={portalItem:null,paths:[]};this.userHasEditingPrivileges=!0;this.userHasUpdateItemPrivileges=this.userHasFullEditingPrivileges=!1}destroy(){this.portalItem=f.destroyMaybe(this.portalItem);this.resourceReferences.portalItem=null;this.resourceReferences.paths.length=0}set portalItem(M){M!==this._get("portalItem")&&(this.removeOrigin("portal-item"),
this._set("portalItem",M))}readPortalItem(M,G,E){if(G.itemId)return new k({id:G.itemId,portal:E?.portal})}writePortalItem(M,G){M?.id&&(G.itemId=M.id)}async loadFromPortal(M,G){if(this.portalItem?.id)try{const {load:E}=await new Promise((F,H)=>a(["../../portal/support/layersLoader"],F,H));p.throwIfAborted(G);return await E({instance:this,supportedTypes:M.supportedTypes,validateItem:M.validateItem,supportsData:M.supportsData,layerModuleTypeMap:M.layerModuleTypeMap},G)}catch(E){throw p.isAbortError(E)||
g.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${E}`),E;}}async finishLoadEditablePortalLayer(M){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(M).catch(G=>{p.throwIfAbortError(G);return!0}))}async setUserPrivileges(M,G){if(!h.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(G);if(this.url)try{const {features:{edit:E,fullEdit:F},content:{updateItem:H}}=await this._fetchUserPrivileges(M,
G);this._set("userHasEditingPrivileges",E);this._set("userHasFullEditingPrivileges",F);this._set("userHasUpdateItemPrivileges",H)}catch(E){p.throwIfAbortError(E)}}async _fetchUserPrivileges(M,G){let E=this.portalItem;if(!M||!E||!E.loaded||E.sourceUrl)return this._fetchFallbackUserPrivileges(G);const F=M===E.id;if(F&&E.portal.user)return y.getUserPrivileges(E);let H;if(F)H=E.portal.url;else try{H=await w.getOwningPortalUrl(this.url,G)}catch(J){p.throwIfAbortError(J)}if(!H||!r.hasSameCanonicalPortal(H,
E.portal.url))return this._fetchFallbackUserPrivileges(G);let R;try{const J=null!=G?G.signal:null;R=await d.id?.getCredential(`${H}/sharing`,{prompt:!1,signal:J})}catch(J){p.throwIfAbortError(J)}if(!R)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(F?await E.reload():(E=new k({id:M,portal:{url:H}}),await E.load(G)),E.portal.user)return y.getUserPrivileges(E)}catch(J){p.throwIfAbortError(J)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(M){let G=
!0;try{G=await this._fetchUserHasEditingPrivileges(M)}catch(E){p.throwIfAbortError(E)}return{features:{edit:G,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(M){const G=this.url?d.id?.findCredential(this.url):null;if(!G)return!0;M=B===G?C:await this._fetchEditingUser(M);B=G;C=M;return null==M?.privileges||M.privileges.includes("features:user:edit")}async _fetchEditingUser(M){var G=this.portalItem?.portal?.user;if(G)return G;G=d.id?.findServerInfo(this.url??"");if(!G?.owningSystemUrl)return null;
G=`${G.owningSystemUrl}/sharing/rest`;const E=z.getDefault();if(E&&E.loaded&&r.normalize(E.restUrl)===r.normalize(G))return E.user;M=await m.result(n(`${G}/community/self`,{authMode:"no-prompt",query:{f:"json"},signal:null!=M?M.signal:null}));return M.ok?v.fromJSON(M.value.data):null}read(M,G){G&&(G.layer=this);super.read(M,G)}write(M,G){const E=G?.portal,F=this.portalItem?.id&&(this.portalItem.portal||z.getDefault());return E&&F&&!r.hasSamePortal(F.restUrl,E.restUrl)?(G.messages&&G.messages.push(new e("layer:cross-portal",
`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(M,{...G,layer:this})}};c.__decorate([t.property({type:k})],L.prototype,"portalItem",null);c.__decorate([x.reader("web-document","portalItem",["itemId"])],L.prototype,"readPortalItem",null);c.__decorate([u.writer("web-document",
"portalItem",{itemId:{type:String}})],L.prototype,"writePortalItem",null);c.__decorate([t.property({clonable:!1})],L.prototype,"resourceReferences",void 0);c.__decorate([t.property({type:Boolean,readOnly:!0})],L.prototype,"userHasEditingPrivileges",void 0);c.__decorate([t.property({type:Boolean,readOnly:!0})],L.prototype,"userHasFullEditingPrivileges",void 0);c.__decorate([t.property({type:Boolean,readOnly:!0})],L.prototype,"userHasUpdateItemPrivileges",void 0);return L=c.__decorate([A.subclass("esri.layers.mixins.PortalLayer")],
L)};Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})})},"esri/portal/support/portalItemUtils":function(){define(["exports","../../geometry/projection","../../geometry/SpatialReference","../../geometry/support/webMercatorUtils"],function(a,b,c,h){async function d(f){const p=f.spatialReference;if(p.isWGS84)return f.clone();if(p.isWebMercator)return h.webMercatorToGeographic(f);const r=c.WGS84;await b.initializeProjection(p,r);return b.project(f,r)}function n(f,p){if(!m(f,p)){const r=f.typeKeywords;
r?r.push(p):f.typeKeywords=[p]}}function m(f,p){return!!f.typeKeywords?.includes(p)}function e(f,p){if(f=f.typeKeywords)p=f.indexOf(p),-1p.width&&(p=r):p=r;else p=f[0];return d(p)};a.hasTypeKeyword=m;a.isHostedLayer=function(f){return m(f,
g.HOSTED_SERVICE)};a.removeTypeKeyword=e;a.toggleTypeKeyword=function(f,p,r){r?n(f,p):e(f,p)};a.typeKeyword=g;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/geometry/projection":function(){define("require exports ../core/Error ../core/promiseUtils ../core/accessorSupport/tracking ../core/accessorSupport/tracking/SimpleObservable ../core/libs/gl-matrix-2/factories/vec3f64 ./ellipsoidUtils ./Extent ./Multipoint ../chunks/pe ./Point ./Polygon ./Polyline ./SpatialReference ./projection/projectBuffer ./projection/projectors ./projection/projectXYZToVector ./support/GeographicTransformation ./support/spatialReferenceUtils ./support/zscale".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u,w,z,k){function v(){return!!fa&&p.isLoaded()}function y(){if(v())return!0;d.trackAccess(qa);B();return!1}function B(sa){null==xa&&(xa=Promise.all([p.load(),(new Promise((X,aa)=>a(["../chunks/geometryEngineBase"],X,aa))).then(X=>X.geometryEngineBase),new Promise((X,aa)=>a(["./geometryAdapters/hydrated"],X,aa))]));return xa.then(([,X,{hydratedAdapter:aa}])=>{h.throwIfAborted(sa);pa=aa;fa=X.default;fa._enableProjection(p.pe);qa.notify()})}function C(sa,X,
aa=null,ha=null){return Array.isArray(sa)?0===sa.length?[]:L(pa,sa,sa[0].spatialReference,X,aa,ha):L(pa,[sa],sa.spatialReference,X,aa,ha)[0]}function L(sa,X,aa,ha,I=null,T=null){if(null==aa||null==ha)return X;if(F(aa,ha,I))return X.map(da=>R(da,aa,ha));if(null==I&&e.isSphericalECEF(aa))return X.map(da=>R(da,aa,q.WGS84)).map(da=>E(da,ha));if(null==I&&e.isSphericalECEF(ha))return X.map(da=>E(da,q.WGS84)).map(da=>R(da,q.WGS84,ha));if(null==I){const da=w.cacheKey(aa,ha);void 0!==ra[da]?I=ra[da]:(I=G(aa,
ha,void 0),null==I&&(I=new w),ra[da]=I)}if(null==fa||null==sa)throw new za;return null!=T?fa._project(sa,X,aa,ha,I,T):fa._project(sa,X,aa,ha,I)}function M(sa,X){if(!v())for(const aa of sa)if(null!=aa&&!z.equals(aa.spatialReference,X)&&z.isValid(aa.spatialReference)&&z.isValid(X)&&!F(aa.spatialReference,X))return d.trackAccess(qa),{pending:B(),geometries:null};return{pending:null,geometries:sa.map(aa=>null==aa?null:z.equals(aa.spatialReference,X)?aa:z.isValid(aa.spatialReference)&&z.isValid(X)?E(aa,
X):null)}}function G(sa,X,aa=null){if(null==sa||null==X)return null;if(null==fa||null==pa)throw new za;sa=fa._getTransformation(pa,sa,X,aa,aa?.spatialReference);return null!==sa?w.fromGE(sa):null}function E(sa,X){try{const aa=C(sa,X);if(null==aa)return null;"xmin"in sa&&"xmin"in aa&&(aa.zmin=sa.zmin,aa.zmax=sa.zmax);const ha=k.getGeometryZScaler(aa.type,sa.spatialReference,X);null!=ha&&ha(aa);return aa}catch(aa){if(!(aa instanceof za))throw aa;return null}}function F(sa,X,aa){return aa?!1:z.equals(sa,
X)?!0:z.isValid(sa)&&z.isValid(X)&&!!A.getProjector(sa,X,A.projectorCache)}async function H(sa,X,aa,ha){if(v())return h.waitTick(ha);if(Array.isArray(sa))for(const {source:I,dest:T,geographicTransformation:da}of sa){if(I&&T&&!F(I,T,da))return B(ha)}else if(sa&&X&&!F(sa,X,aa))return B(ha);return h.waitTick(ha)}function R(sa,X,aa){return sa?"x"in sa?J(sa,X,new r,aa,0):"xmin"in sa?U(sa,X,new g,aa,0):"rings"in sa?N(sa,X,new t,aa,0):"paths"in sa?Q(sa,X,new l,aa,0):"points"in sa?K(sa,X,new f,aa,0):null:
null}function J(sa,X,aa,ha,I){Da[0]=sa.x;Da[1]=sa.y;const T=sa.z;Da[2]=void 0!==T?T:I;if(!x.projectBuffer(Da,X,0,Da,ha,0))return null;aa.x=Da[0];aa.y=Da[1];aa.spatialReference=ha;void 0!==T||e.isSphericalPCPF(ha)?(aa.z=Da[2],aa.hasZ=!0):(aa.z=void 0,aa.hasZ=!1);void 0===sa.m?(aa.m=void 0,aa.hasM=!1):(aa.m=sa.m,aa.hasM=!0);return aa}function K(sa,X,aa,ha,I){const {points:T,hasZ:da,hasM:la}=sa;sa=[];const ua=T.length,Y=[];for(var ea of T)Y.push(ea[0],ea[1],da?ea[2]:I);if(!x.projectBuffer(Y,X,0,Y,ha,
0,ua))return null;X=da||e.isSphericalPCPF(ha);for(I=0;IX&&(V=-V);ha[I++]=xa*da;ha[I++]=xa*V;ha[I]=aa+ea*T/2}function R(X,aa,ha,I){H(X,aa,ha,I);y(ha,I,ha,I)}function J(X,aa,ha,I){H(X,aa,ha,I);x(ha,I,ha,I)}function K(X,aa,ha){if(null==X||null==aa||ha.source.spatialReference===
X&&ha.dest.spatialReference===aa)return ha;const I=f(X,ha.source),T=f(aa,ha.dest);I===a.ProjectionID.UNKNOWN&&T===a.ProjectionID.UNKNOWN?m.equals(X,aa)?ha.projector=p:ha.projector=null:ha.projector=N[I][T];return ha}function Q(){return{source:{spatialReference:null,spatialReferenceId:a.ProjectionID.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:a.ProjectionID.UNKNOWN,metersPerUnit:1},projector:p}}a.ProjectionID=void 0;(function(X){X[X.UNKNOWN=0]="UNKNOWN";X[X.SPHERICAL_ECEF=
1]="SPHERICAL_ECEF";X[X.WGS84=2]="WGS84";X[X.WEB_MERCATOR=3]="WEB_MERCATOR";X[X.WGS84_ECEF=4]="WGS84_ECEF";X[X.CGCS2000=5]="CGCS2000";X[X.SPHERICAL_MARS_PCPF=6]="SPHERICAL_MARS_PCPF";X[X.GCSMARS2000=7]="GCSMARS2000";X[X.SPHERICAL_MOON_PCPF=8]="SPHERICAL_MOON_PCPF";X[X.GCSMOON2000=9]="GCSMOON2000";X[X.LON_LAT=10]="LON_LAT";X[X.PLATE_CARREE=11]="PLATE_CARREE"})(a.ProjectionID||(a.ProjectionID={}));const N={[a.ProjectionID.WGS84]:{[a.ProjectionID.CGCS2000]:p,[a.ProjectionID.GCSMARS2000]:null,[a.ProjectionID.GCSMOON2000]:null,
[a.ProjectionID.LON_LAT]:p,[a.ProjectionID.SPHERICAL_ECEF]:y,[a.ProjectionID.SPHERICAL_MARS_PCPF]:null,[a.ProjectionID.SPHERICAL_MOON_PCPF]:null,[a.ProjectionID.UNKNOWN]:null,[a.ProjectionID.WEB_MERCATOR]:x,[a.ProjectionID.PLATE_CARREE]:A,[a.ProjectionID.WGS84]:p,[a.ProjectionID.WGS84_ECEF]:F},[a.ProjectionID.CGCS2000]:{[a.ProjectionID.CGCS2000]:p,[a.ProjectionID.GCSMARS2000]:null,[a.ProjectionID.GCSMOON2000]:null,[a.ProjectionID.LON_LAT]:p,[a.ProjectionID.SPHERICAL_ECEF]:y,[a.ProjectionID.SPHERICAL_MARS_PCPF]:null,
[a.ProjectionID.SPHERICAL_MOON_PCPF]:null,[a.ProjectionID.UNKNOWN]:null,[a.ProjectionID.WEB_MERCATOR]:x,[a.ProjectionID.PLATE_CARREE]:A,[a.ProjectionID.WGS84]:p,[a.ProjectionID.WGS84_ECEF]:F},[a.ProjectionID.GCSMARS2000]:{[a.ProjectionID.CGCS2000]:null,[a.ProjectionID.GCSMARS2000]:p,[a.ProjectionID.GCSMOON2000]:null,[a.ProjectionID.LON_LAT]:p,[a.ProjectionID.SPHERICAL_ECEF]:null,[a.ProjectionID.SPHERICAL_MARS_PCPF]:v,[a.ProjectionID.SPHERICAL_MOON_PCPF]:null,[a.ProjectionID.UNKNOWN]:null,[a.ProjectionID.WEB_MERCATOR]:null,
[a.ProjectionID.PLATE_CARREE]:null,[a.ProjectionID.WGS84]:null,[a.ProjectionID.WGS84_ECEF]:null},[a.ProjectionID.GCSMOON2000]:{[a.ProjectionID.CGCS2000]:null,[a.ProjectionID.GCSMARS2000]:null,[a.ProjectionID.GCSMOON2000]:p,[a.ProjectionID.LON_LAT]:p,[a.ProjectionID.SPHERICAL_ECEF]:null,[a.ProjectionID.SPHERICAL_MARS_PCPF]:null,[a.ProjectionID.SPHERICAL_MOON_PCPF]:k,[a.ProjectionID.UNKNOWN]:null,[a.ProjectionID.WEB_MERCATOR]:null,[a.ProjectionID.PLATE_CARREE]:null,[a.ProjectionID.WGS84]:null,[a.ProjectionID.WGS84_ECEF]:null},
[a.ProjectionID.WEB_MERCATOR]:{[a.ProjectionID.CGCS2000]:r,[a.ProjectionID.GCSMARS2000]:null,[a.ProjectionID.GCSMOON2000]:null,[a.ProjectionID.LON_LAT]:r,[a.ProjectionID.SPHERICAL_ECEF]:t,[a.ProjectionID.SPHERICAL_MARS_PCPF]:null,[a.ProjectionID.SPHERICAL_MOON_PCPF]:null,[a.ProjectionID.UNKNOWN]:null,[a.ProjectionID.WEB_MERCATOR]:p,[a.ProjectionID.PLATE_CARREE]:w,[a.ProjectionID.WGS84]:r,[a.ProjectionID.WGS84_ECEF]:l},[a.ProjectionID.WGS84_ECEF]:{[a.ProjectionID.CGCS2000]:H,[a.ProjectionID.GCSMARS2000]:null,
[a.ProjectionID.GCSMOON2000]:null,[a.ProjectionID.LON_LAT]:H,[a.ProjectionID.SPHERICAL_ECEF]:R,[a.ProjectionID.SPHERICAL_MARS_PCPF]:null,[a.ProjectionID.SPHERICAL_MOON_PCPF]:null,[a.ProjectionID.UNKNOWN]:null,[a.ProjectionID.WEB_MERCATOR]:J,[a.ProjectionID.PLATE_CARREE]:function(X,aa,ha,I){H(X,aa,ha,I);A(ha,I,ha,I)},[a.ProjectionID.WGS84]:H,[a.ProjectionID.WGS84_ECEF]:p},[a.ProjectionID.SPHERICAL_ECEF]:{[a.ProjectionID.CGCS2000]:M,[a.ProjectionID.GCSMARS2000]:null,[a.ProjectionID.GCSMOON2000]:null,
[a.ProjectionID.LON_LAT]:M,[a.ProjectionID.SPHERICAL_ECEF]:p,[a.ProjectionID.SPHERICAL_MARS_PCPF]:null,[a.ProjectionID.SPHERICAL_MOON_PCPF]:null,[a.ProjectionID.UNKNOWN]:null,[a.ProjectionID.WEB_MERCATOR]:G,[a.ProjectionID.PLATE_CARREE]:function(X,aa,ha,I){M(X,aa,ha,I);A(ha,I,ha,I)},[a.ProjectionID.WGS84]:M,[a.ProjectionID.WGS84_ECEF]:E},[a.ProjectionID.SPHERICAL_MARS_PCPF]:{[a.ProjectionID.CGCS2000]:null,[a.ProjectionID.GCSMARS2000]:L,[a.ProjectionID.GCSMOON2000]:null,[a.ProjectionID.LON_LAT]:L,
[a.ProjectionID.SPHERICAL_ECEF]:null,[a.ProjectionID.SPHERICAL_MARS_PCPF]:p,[a.ProjectionID.SPHERICAL_MOON_PCPF]:null,[a.ProjectionID.UNKNOWN]:null,[a.ProjectionID.WEB_MERCATOR]:null,[a.ProjectionID.PLATE_CARREE]:null,[a.ProjectionID.WGS84]:null,[a.ProjectionID.WGS84_ECEF]:null},[a.ProjectionID.SPHERICAL_MOON_PCPF]:{[a.ProjectionID.CGCS2000]:null,[a.ProjectionID.GCSMARS2000]:null,[a.ProjectionID.GCSMOON2000]:C,[a.ProjectionID.LON_LAT]:C,[a.ProjectionID.SPHERICAL_ECEF]:null,[a.ProjectionID.SPHERICAL_MARS_PCPF]:null,
[a.ProjectionID.SPHERICAL_MOON_PCPF]:p,[a.ProjectionID.UNKNOWN]:null,[a.ProjectionID.WEB_MERCATOR]:null,[a.ProjectionID.PLATE_CARREE]:null,[a.ProjectionID.WGS84]:null,[a.ProjectionID.WGS84_ECEF]:null},[a.ProjectionID.UNKNOWN]:{[a.ProjectionID.CGCS2000]:null,[a.ProjectionID.GCSMARS2000]:null,[a.ProjectionID.GCSMOON2000]:null,[a.ProjectionID.LON_LAT]:null,[a.ProjectionID.SPHERICAL_ECEF]:null,[a.ProjectionID.SPHERICAL_MARS_PCPF]:null,[a.ProjectionID.SPHERICAL_MOON_PCPF]:null,[a.ProjectionID.UNKNOWN]:p,
[a.ProjectionID.WEB_MERCATOR]:null,[a.ProjectionID.PLATE_CARREE]:null,[a.ProjectionID.WGS84]:null,[a.ProjectionID.WGS84_ECEF]:null},[a.ProjectionID.LON_LAT]:{[a.ProjectionID.CGCS2000]:p,[a.ProjectionID.GCSMARS2000]:p,[a.ProjectionID.GCSMOON2000]:p,[a.ProjectionID.LON_LAT]:p,[a.ProjectionID.SPHERICAL_ECEF]:y,[a.ProjectionID.SPHERICAL_MARS_PCPF]:v,[a.ProjectionID.SPHERICAL_MOON_PCPF]:k,[a.ProjectionID.UNKNOWN]:null,[a.ProjectionID.WEB_MERCATOR]:x,[a.ProjectionID.PLATE_CARREE]:A,[a.ProjectionID.WGS84]:p,
[a.ProjectionID.WGS84_ECEF]:F},[a.ProjectionID.PLATE_CARREE]:{[a.ProjectionID.CGCS2000]:u,[a.ProjectionID.GCSMARS2000]:null,[a.ProjectionID.GCSMOON2000]:null,[a.ProjectionID.LON_LAT]:u,[a.ProjectionID.SPHERICAL_ECEF]:function(X,aa,ha,I){u(X,aa,ha,I);y(ha,I,ha,I)},[a.ProjectionID.SPHERICAL_MARS_PCPF]:null,[a.ProjectionID.SPHERICAL_MOON_PCPF]:null,[a.ProjectionID.UNKNOWN]:null,[a.ProjectionID.WEB_MERCATOR]:function(X,aa,ha,I){u(X,aa,ha,I);x(ha,I,ha,I)},[a.ProjectionID.PLATE_CARREE]:p,[a.ProjectionID.WGS84]:u,
[a.ProjectionID.WGS84_ECEF]:function(X,aa,ha,I){u(X,aa,ha,I);F(ha,I,ha,I)}}},U={spatialReference:null,spatialReferenceId:a.ProjectionID.UNKNOWN},Z={spatialReference:null,spatialReferenceId:a.ProjectionID.UNKNOWN},fa=Q(),pa=b.deg2rad(1),xa=b.rad2deg(1),ra=Math.PI,qa=.5*ra,za=d.earth.radius,Da=za*ra/180,sa=180/(za*ra);a.classifySpatialReference=f;a.copy3=p;a.createEmptyProjectorCache=Q;a.destClassificationCache=Z;a.getProjector=g;a.getProjectorName=function(X,aa){switch(g(X,aa,fa)){case p:return"copy3";
case y:return"wgs84ToSphericalECEF";case x:return"wgs84ToWebMercator";case A:return"wgs84ToPlateCarree";case F:return"wgs84ToWGS84ECEF";case r:return"webMercatorToWGS84";case t:return"webMercatorToSphericalECEF";case l:return"webMercatorToWGS84ECEF";case w:return"webMercatorToPlateCarree";case H:return"wgs84ECEFToWGS84";case R:return"wgs84ECEFToSphericalECEF";case J:return"wgs84ECEFToWebMercator";case M:return"sphericalECEFToWGS84";case G:return"sphericalECEFToWebMercator";case L:return"sphericalMarsPCPFToMars2000";
case C:return"sphericalMoonPCPFToMoon2000";case E:return"sphericalECEFToWGS84ECEF";case v:return"mars2000ToSphericalPCPF";case k:return"moon2000ToSphericalPCPF";default:return null}};a.invPlateCarreeScale=sa;a.lonLatToWebMercatorComparable=q;a.populateProjectorCache=K;a.projectionTable=N;a.projectorCache=fa;a.sourceClassificationCache=U;a.sphericalPCPFtoLonLatElevation=B;a.wgs84ToWebMercator=x;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/geometry/support/geodesicConstants":function(){define(["exports",
"./Ellipsoid"],function(a,b){const c=Math.PI/180,h=b.earth.radius,d=b.earth.eccentricitySquared;b={4267:{a:6378206.4,f:1/294.9786982},4269:{a:6378137,f:1/298.257222101},4326:{a:b.earth.radius,f:b.earth.flattening},4490:{a:6378137,f:1/298.257222101},104900:{a:2439700,f:0},104901:{a:6051E3,f:0},104902:{a:6051800,f:0},104903:{a:b.moon.radius,f:b.moon.flattening},104904:{a:3393400,f:.005207166853303471},104905:{a:b.mars.radius,f:b.mars.flattening},104906:{a:6200,f:0},104907:{a:11100,f:0},104908:{a:71492E3,
f:.06487439154031222},104909:{a:8200,f:0},104910:{a:83500,f:0},104911:{a:1E4,f:0},104912:{a:2409300,f:0},104913:{a:15E3,f:0},104914:{a:4E4,f:0},104915:{a:1562090,f:0},104916:{a:2632345,f:0},104917:{a:85E3,f:0},104918:{a:1821460,f:0},104919:{a:5E3,f:0},104920:{a:12E3,f:0},104921:{a:3E4,f:3},104922:{a:18E3,f:0},104923:{a:14E3,f:0},104924:{a:49300,f:0},104925:{a:60268E3,f:.09796243445941462},104926:{a:16E3,f:0},104927:{a:9500,f:0},104928:{a:56E4,f:0},104929:{a:249400,f:0},104930:{a:59500,f:0},104931:{a:16E3,
f:0},104932:{a:133E3,f:0},104933:{a:718E3,f:0},104934:{a:888E3,f:0},104935:{a:1986300,f:0},104936:{a:1E4,f:0},104937:{a:41900,f:0},104938:{a:11E4,f:0},104939:{a:50100,f:0},104940:{a:764E3,f:0},104941:{a:11E3,f:0},104942:{a:529800,f:0},104943:{a:2575E3,f:0},104944:{a:25559E3,f:.022927344575296365},104945:{a:578900,f:0},104946:{a:33E3,f:0},104947:{a:21E3,f:0},104948:{a:13E3,f:0},104949:{a:31E3,f:0},104950:{a:27E3,f:0},104951:{a:42E3,f:0},104952:{a:235800,f:0},104953:{a:761400,f:0},104954:{a:15E3,f:0},
104955:{a:54E3,f:0},104956:{a:77E3,f:0},104957:{a:27E3,f:0},104958:{a:788900,f:0},104959:{a:584700,f:0},104960:{a:24764E3,f:.01708124697141011},104961:{a:74E3,f:0},104962:{a:79E3,f:0},104963:{a:104E3,f:.14423076923076922},104964:{a:29E3,f:0},104965:{a:17E4,f:0},104966:{a:208E3,f:0},104967:{a:4E4,f:0},104968:{a:1352600,f:0},104969:{a:1195E3,f:0},104970:{a:593E3,f:0},104971:{a:b.mars.radius,f:0},104972:{a:47E4,f:0},104973:{a:255E3,f:0},104974:{a:2439400,f:0}};a.earthEllipsoidConstants={a1:h*d,a2:h*
d*h*d,a3:h*d*d/2,a4:h*d*h*d*2.5,a5:h*d+h*d*d/2,a6:1-d};a.spheroids=b;a.toRadians=c;a.wktSpheroidRegex=/(?:SPHEROID|ELLIPSOID)\[([^\]]+)]/i;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/geometry/projection/projectXYZToVector":function(){define(["exports","../../core/libs/gl-matrix-2/factories/vec3f64","./projectBuffer"],function(a,b,c){const h=b.create();a.projectXYZToVector=function(d,n,m,e,g,f){h[0]=d;h[1]=n;h[2]=m;return c.projectBuffer(h,e,0,g,f,0)};Object.defineProperty(a,
Symbol.toStringTag,{value:"Module"})})},"esri/geometry/support/GeographicTransformation":function(){define(["./GeographicTransformationStep"],function(a){class b{static cacheKey(c,h){return[c.wkid?.toString()??"-1",c.wkt?.toString()??"",c.wkt2?.toString()??"",h.wkid?.toString()??"-1",h.wkt?.toString()??"",h.wkt2?.toString()??""].join()}static fromGE(c){const h=new b;let d="";for(const n of c.steps)c=a.fromGE(n),h.steps.push(c),d+=c.uid.toString()+",";h._cachedProjection={};h._gtlistentry=null;h._chain=
d;return h}constructor(c){this.steps=[];this._cachedProjection={};this._chain="";this._gtlistentry=null;if(c?.steps)for(const h of c.steps)h instanceof a?this.steps.push(h):this.steps.push(new a({wkid:h.wkid,wkt:h.wkt,isInverse:h.isInverse}))}getInverse(){const c=new b;c.steps=[];for(let h=this.steps.length-1;0<=h;h--)c.steps.push(this.steps[h].getInverse());return c}getGTListEntry(){let c="";for(const h of this.steps)c+=h.uid.toString()+",";c!==this._chain&&(this._gtlistentry=null,this._cachedProjection=
{},this._chain=c);return this._gtlistentry}assignCachedGe(c,h,d){this._cachedProjection[b.cacheKey(c,h)]=d}getCachedGeTransformation(c,h){let d="";for(const n of this.steps)d+=n.uid.toString()+",";d!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=d);c=this._cachedProjection[b.cacheKey(c,h)];return void 0===c?null:c}}return b})},"esri/geometry/support/GeographicTransformationStep":function(){define(function(){let a=0;class b{static fromGE(c){const h=new b;h._wkt=c.wkt;
h._wkid=c.wkid;h._isInverse=c.isInverse;return h}constructor(c){this.uid=a++;c?(this._wkt=null!=c.wkt?c.wkt:null,this._wkid=null!=c.wkid?c.wkid:-1,this._isInverse=null!=c.isInverse?!0===c.isInverse:!1):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(c){this._wkt=c;this.uid=a++}get wkid(){return this._wkid}set wkid(c){this._wkid=c;this.uid=a++}get isInverse(){return this._isInverse}set isInverse(c){this._isInverse=c;this.uid=a++}getInverse(){const c=new b;c._wkt=
this.wkt;c._wkid=this._wkid;c._isInverse=!this.isInverse;return c}}return b})},"esri/geometry/support/zscale":function(){define(["exports","../../core/unitUtils","../ellipsoidUtils","./spatialReferenceUtils"],function(a,b,c,h){a.getGeometryZScaler=function(d,n,m){if(null==n||null==m||m.vcsWkid||h.equals(n,m)||c.isSphericalPCPF(n)||c.isSphericalPCPF(m))return null;n=b.getMetersPerVerticalUnitForSR(n);m=b.getMetersPerVerticalUnitForSR(m);const e=n/m;if(1===e)return null;switch(d){case "point":case "esriGeometryPoint":return g=>
{null!=g?.z&&(g.z*=e)};case "polyline":case "esriGeometryPolyline":return g=>{if(g)for(const f of g.paths)for(const p of f)2{if(g)for(const f of g.rings)for(const p of f)2{if(g)for(const f of g.points)2{g&&null!=g.zmin&&null!=g.zmax&&(g.zmin*=e,g.zmax*=e)};default:return null}};
Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/mixins/ScaleRangeLayer":function(){define("exports ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m){a.ScaleRangeLayer=e=>{e=class extends e{constructor(){super(...arguments);this.maxScale=this.minScale=0}get effectiveScaleRange(){const g={minScale:this.minScale,maxScale:this.maxScale};
var f=this.parent;f&&"effectiveScaleRange"in f&&(f=f.effectiveScaleRange,g.minScale=0{r=class extends r{constructor(...t){super(...t);this.refreshTimestamp=this.refreshInterval=0;this._debounceHasDataChanged=d.debounce(()=>this.hasDataChanged());this.when().then(()=>{this.destroyed||p.registerLayer(this)},()=>{})}destroy(){p.unregisterLayer(this)}castRefreshInterval(t){return.1<=t?t:0>=t?0:.1}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(t=Date.now()){d.ignoreAbortErrors(this._debounceHasDataChanged()).then(l=>
{l&&this._set("refreshTimestamp",t);this.emit("refresh",{dataChanged:l})},l=>{h.getLogger(this).error(l);this.emit("refresh",{dataChanged:!1,error:l})})}async hasDataChanged(){return!0}get test(){}};b.__decorate([n.property({type:Number,json:{write:!0,origins:{"web-scene":{write:{enabled:!0,layerContainerTypes:f.excludeTables}}}}})],r.prototype,"refreshInterval",void 0);b.__decorate([m.cast("refreshInterval")],r.prototype,"castRefreshInterval",null);b.__decorate([n.property({readOnly:!0})],r.prototype,
"refreshTimestamp",void 0);b.__decorate([n.property({readOnly:!0})],r.prototype,"refreshParameters",null);return r=b.__decorate([g.subclass("esri.layers.mixins.RefreshableLayer")],r)};a.isRefreshableLayer=function(r){return null!=r&&"object"===typeof r&&"refreshTimestamp"in r&&"refresh"in r};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/mixins/refresh":function(){define(["exports","../../core/Collection","../../core/reactiveUtils","../../core/accessorSupport/trackingUtils"],
function(a,b,c,h){function d(r){return null!=r&&"object"===typeof r&&"refreshInterval"in r&&"refresh"in r}function n(r,t){return Number.isFinite(r)&&Number.isFinite(t)?0>=t?r:n(t,r%t):0}function m(){var r=Date.now();let t=!1;for(const l of e){const q=l.deref();if(!q)t=!0;else if(q.refreshInterval){const x=g.get(q)??0;r-x+5>=6E4*q.refreshInterval&&(g.set(q,r),q.refresh(r))}}if(t)for(r=e.length-1;0<=r;r--)e.at(r).deref()||e.removeAt(r)}const e=new b,g=new WeakMap;let f=0,p=0;h.autorun(()=>{const r=
Date.now();let t=0;for(const l of e){const q=l.deref();q&&(t=n(Math.round(6E4*q.refreshInterval),t),q.refreshInterval?g.get(q)||g.set(q,r):g.delete(q))}t!==p&&(p=t,clearInterval(f),f=0===p?0:setInterval(m,p))},c.sync);a.registerLayer=function(r){d(r)&&e.push(new WeakRef(r))};a.test={get hasRefreshTimer(){return 0t.deref()===r)},clear(){for(const r of e){const t=r.deref();t&&g.delete(t)}e.removeAll()}};a.unregisterLayer=
function(r){const t=e.find(l=>l.deref()===r);t&&e.remove(t)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/layersCreator":function(){define("exports ../../core/Collection ../../core/has ./LayerLoadContext ./lazyLayerLoader ../../portal/PortalItem ../../portal/support/featureCollectionUtils ../../portal/support/portalLayers ../../renderers/support/styleUtils".split(" "),function(a,b,c,h,d,n,m,e,g){async function f(F,H,R){if(H){H=H.map(J=>p(J,R));H=await Promise.allSettled(H);
for(const J of H)"rejected"!==J.status&&J.value&&F.add(J.value)}}async function p(F,H){const R=await t(F,H);return r(R,F,H)}async function r(F,H,R){F=new F;F.read(H,R.context);"group"===F.type&&("GroupLayer"===H.layerType?await x(F,H,R):q(H)?A(F,H,R.context):l(H)&&await u(F,H,R.context));await g.loadStyleRenderer(F,R.context);return F}async function t(F,H){var R=H.context;let J;switch(R.origin){case "web-scene":switch(R.layerContainerType){case "basemap":J=y;break;case "ground":J=k;break;case "tables":J=
v;break;default:J=z}break;case "link-chart":switch(R.layerContainerType){case "basemap":J=E;break;case "tables":J=G;break;default:J=M}break;default:switch(R.layerContainerType){case "basemap":J=L;break;case "tables":J=C;break;default:J=B}}let K=F.layerType||F.type;!K&&H?.defaultLayerType&&(K=H.defaultLayerType);H=(H=J[K])?d.layerLookupMap[H]:d.layerLookupMap.UnknownLayer;q(F)?(R=R?.portal,F.itemId&&(F=new n({id:F.itemId,portal:R}),await F.load(),F=(await e.selectLayerClassPath(F,new h.LayerLoadContext)).className||
"UnknownLayer",H=d.layerLookupMap[F])):"ArcGISFeatureLayer"===K?m.isMapNotesLayer(F)||m.isMarkupLayer(F)?H=d.layerLookupMap.MapNotesLayer:m.isRouteLayer(F)?H=d.layerLookupMap.RouteLayer:l(F)&&(H=d.layerLookupMap.GroupLayer):F.wmtsInfo?.url&&F.wmtsInfo.layerIdentifier?H=d.layerLookupMap.WMTSLayer:"WFS"===K&&"2.0.0"!==F.wfsInfo?.version&&(H=d.layerLookupMap.UnsupportedLayer);return H()}function l(F){return"ArcGISFeatureLayer"!==F.layerType||q(F)?!1:1<(F.featureCollection?.layers?.length??0)}function q(F){return"Feature Collection"===
F.type}async function x(F,H,R){const J=new b;H=f(J,Array.isArray(H.layers)?H.layers:[],R);try{try{if(await H,"group"===F.type)return F.layers.addMany(J),F}catch(K){F.destroy();for(const Q of J)Q.destroy();throw K;}}catch(K){throw K;}}function A(F,H,R){H.itemId&&(F.portalItem=new n({id:H.itemId,portal:R?.portal}),F.when(()=>{const J=K=>{var Q=K.layerId;w(K,F,H,Q,R);(Q=H.featureCollection?.layers?.[Q])&&K.read(Q,R)};F.layers?.forEach(J);F.tables?.forEach(J)}))}async function u(F,H,R){const J=await (0,d.layerLookupMap.FeatureLayer)();
var K=H.featureCollection;const Q=K?.showLegend;K=K?.layers?.map((N,U)=>{const Z=new J;Z.read(N,R);N={...R,ignoreDefaults:!0};w(Z,F,H,U,N);null!=Q&&Z.read({showLegend:Q},N);return Z});F.layers.addMany(K??[])}function w(F,H,R,J,K){F.read({id:`${H.id}-sublayer-${J}`,visibility:R.visibleLayers?.includes(J)??!0},K)}const z={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",
ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",
OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},k={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},v={ArcGISFeatureLayer:"FeatureLayer"},y={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",
ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},B={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",
ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",
SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},C={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"UnsupportedLayer"},L={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",
DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},M={...B,LinkChartLayer:"LinkChartLayer"},G={...C},E={...L};a.populateGroupLayer=x;a.populateOperationalLayers=f;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/LayerLoadContext":function(){define(["exports","../../support/requestPresets"],function(a,b){class c{constructor(){this._serviceMetadatas=new Map;this._itemDatas=
new Map}async fetchServiceMetadata(h,d){const n=this._serviceMetadatas.get(h);if(n)return n;d=await b.fetchArcGISServiceJSON(h,d);this._serviceMetadatas.set(h,d);return d}async fetchItemData(h){const {id:d}=h;if(!d)return null;const {_itemDatas:n}=this;if(n.has(d))return n.get(d);h=await h.fetchData();n.set(d,h);return h}async fetchCustomParameters(h,d){return(h=await this.fetchItemData(h))&&"object"===typeof h&&(d?d(h):h.customParameters)||null}}a.LayerLoadContext=c;Object.defineProperty(a,Symbol.toStringTag,
{value:"Module"})})},"esri/support/requestPresets":function(){define(["exports","../request"],function(a,b){a.fetchArcGISServiceJSON=async function(c,h){({data:c}=await b(c,{responseType:"json",query:{f:"json",...h?.customParameters,token:h?.apiKey}}));return c};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/lazyLayerLoader":function(){define(["require","exports"],function(a,b){const c=h=>Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,
{value:"Module"}));b.layerLookupMap={BingMapsLayer:async()=>(await new Promise((h,d)=>a(["../BingMapsLayer"],n=>h(c(n)),d))).default,BuildingSceneLayer:async()=>(await new Promise((h,d)=>a(["../BuildingSceneLayer"],n=>h(c(n)),d))).default,CSVLayer:async()=>(await new Promise((h,d)=>a(["../CSVLayer"],n=>h(c(n)),d))).default,CatalogLayer:async()=>(await new Promise((h,d)=>a(["../CatalogLayer"],n=>h(c(n)),d))).default,DimensionLayer:async()=>(await new Promise((h,d)=>a(["../DimensionLayer"],n=>h(c(n)),
d))).default,ElevationLayer:async()=>(await new Promise((h,d)=>a(["../ElevationLayer"],n=>h(c(n)),d))).default,FeatureLayer:async()=>(await new Promise((h,d)=>a(["../FeatureLayer"],n=>h(c(n)),d))).default,GeoJSONLayer:async()=>(await new Promise((h,d)=>a(["../GeoJSONLayer"],n=>h(c(n)),d))).default,GeoRSSLayer:async()=>(await new Promise((h,d)=>a(["../GeoRSSLayer"],n=>h(c(n)),d))).default,GroupLayer:async()=>(await new Promise((h,d)=>a(["../GroupLayer"],n=>h(c(n)),d))).default,ImageryLayer:async()=>
(await new Promise((h,d)=>a(["../ImageryLayer"],n=>h(c(n)),d))).default,ImageryTileLayer:async()=>(await new Promise((h,d)=>a(["../ImageryTileLayer"],n=>h(c(n)),d))).default,IntegratedMesh3DTilesLayer:async()=>(await new Promise((h,d)=>a(["../IntegratedMesh3DTilesLayer"],n=>h(c(n)),d))).default,IntegratedMeshLayer:async()=>(await new Promise((h,d)=>a(["../IntegratedMeshLayer"],n=>h(c(n)),d))).default,KMLLayer:async()=>(await new Promise((h,d)=>a(["../KMLLayer"],n=>h(c(n)),d))).default,KnowledgeGraphLayer:async()=>
(await new Promise((h,d)=>a(["../KnowledgeGraphLayer"],n=>h(c(n)),d))).default,LineOfSightLayer:async()=>(await new Promise((h,d)=>a(["../LineOfSightLayer"],n=>h(c(n)),d))).default,LinkChartLayer:async()=>(await new Promise((h,d)=>a(["../LinkChartLayer"],n=>h(c(n)),d))).default,MapImageLayer:async()=>(await new Promise((h,d)=>a(["../MapImageLayer"],n=>h(c(n)),d))).default,MapNotesLayer:async()=>(await new Promise((h,d)=>a(["../MapNotesLayer"],n=>h(c(n)),d))).default,MediaLayer:async()=>(await new Promise((h,
d)=>a(["../MediaLayer"],n=>h(c(n)),d))).default,OGCFeatureLayer:async()=>(await new Promise((h,d)=>a(["../OGCFeatureLayer"],n=>h(c(n)),d))).default,OpenStreetMapLayer:async()=>(await new Promise((h,d)=>a(["../OpenStreetMapLayer"],n=>h(c(n)),d))).default,OrientedImageryLayer:async()=>(await new Promise((h,d)=>a(["../OrientedImageryLayer"],n=>h(c(n)),d))).default,PointCloudLayer:async()=>(await new Promise((h,d)=>a(["../PointCloudLayer"],n=>h(c(n)),d))).default,RouteLayer:async()=>(await new Promise((h,
d)=>a(["../RouteLayer"],n=>h(c(n)),d))).default,SceneLayer:async()=>(await new Promise((h,d)=>a(["../SceneLayer"],n=>h(c(n)),d))).default,StreamLayer:async()=>(await new Promise((h,d)=>a(["../StreamLayer"],n=>h(c(n)),d))).default,SubtypeGroupLayer:async()=>(await new Promise((h,d)=>a(["../SubtypeGroupLayer"],n=>h(c(n)),d))).default,TileLayer:async()=>(await new Promise((h,d)=>a(["../TileLayer"],n=>h(c(n)),d))).default,UnknownLayer:async()=>(await new Promise((h,d)=>a(["../UnknownLayer"],n=>h(c(n)),
d))).default,UnsupportedLayer:async()=>(await new Promise((h,d)=>a(["../UnsupportedLayer"],n=>h(c(n)),d))).default,VectorTileLayer:async()=>(await new Promise((h,d)=>a(["../VectorTileLayer"],n=>h(c(n)),d))).default,VideoLayer:async()=>(await new Promise((h,d)=>a(["../VideoLayer"],n=>h(c(n)),d))).default,ViewshedLayer:async()=>(await new Promise((h,d)=>a(["../ViewshedLayer"],n=>h(c(n)),d))).default,VoxelLayer:async()=>(await new Promise((h,d)=>a(["../VoxelLayer"],n=>h(c(n)),d))).default,WFSLayer:async()=>
(await new Promise((h,d)=>a(["../WFSLayer"],n=>h(c(n)),d))).default,WMSLayer:async()=>(await new Promise((h,d)=>a(["../WMSLayer"],n=>h(c(n)),d))).default,WMTSLayer:async()=>(await new Promise((h,d)=>a(["../WMTSLayer"],n=>h(c(n)),d))).default,WebTileLayer:async()=>(await new Promise((h,d)=>a(["../WebTileLayer"],n=>h(c(n)),d))).default};Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})})},"esri/portal/support/featureCollectionUtils":function(){define(["exports"],function(a){function b(c,
h){return c.layerType&&"ArcGISFeatureLayer"===c.layerType?c.featureCollectionType===h?!0:!1:!1}a.isMapNotesLayer=function(c){return b(c,"notes")};a.isMarkupLayer=function(c){return b(c,"markup")};a.isRouteLayer=function(c){return b(c,"route")};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/portal/support/portalLayers":function(){define("exports ../../core/Error ../../layers/support/associatedFeatureServiceUtils ../../layers/support/fetchService ../../layers/support/LayerLoadContext ../../layers/support/layerUtils ../../layers/support/lazyLayerLoader ../PortalItem ./loadUtils ./portalItemUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f){async function p(v){await v.load();const y=new d.LayerLoadContext;v=await r(v,y);return t(v)}async function r(v,y){switch(v.type){case "3DTiles Service":return{className:"IntegratedMesh3DTilesLayer"};case "CSV":return{className:"CSVLayer"};case "Feature Collection":return A(v);case "Feature Service":return q(v,y);case "Feed":return{className:"StreamLayer"};case "GeoJson":return{className:"GeoJSONLayer"};case "Group Layer":return{className:"GroupLayer"};case "Image Service":return u(v,
y);case "KML":return{className:"KMLLayer"};case "Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case "Map Service":return l(v,y);case "Media Layer":return{className:"MediaLayer"};case "Scene Service":return x(v,y);case "Stream Service":return{className:"StreamLayer"};case "Vector Tile Service":return{className:"VectorTileLayer"};case "WFS":return{className:"WFSLayer"};case "WMS":return{className:"WMSLayer"};case "WMTS":return{className:"WMTSLayer"};default:throw new b("portal:unknown-item-type",
"Unknown item type '${type}'",{type:v.type});}}async function t(v){return{constructor:await (0,m.layerLookupMap[v.className])(),properties:v.properties}}async function l(v,y){return await w(v,y)?{className:"TileLayer"}:{className:"MapImageLayer"}}async function q(v,y){v=await z(v,y);if("object"===typeof v){const {sourceJSON:B,className:C}=v;y={sourceJSON:B};null!=v.id&&(y.layerId=v.id);return{className:C||"FeatureLayer",properties:y}}return{className:"GroupLayer"}}async function x(v,y){var B=await z(v,
y,async()=>{try{if(!v.url)return[];const {serverUrl:C}=await c.findAssociatedFeatureService(v.url,{sceneLayerItem:v});return(await y.fetchServiceMetadata(C))?.tables??[]}catch{return[]}});if("object"===typeof B){const C={};let L=void 0;null!=B.id?(C.layerId=B.id,L=`${v.url}/layers/${B.id}`):L=v.url;if(v.typeKeywords?.length)for(const M of Object.keys(n.sceneServiceLayerTypeToClassName))if(v.typeKeywords.includes(M))return{className:n.sceneServiceLayerTypeToClassName[M]};B=await y.fetchServiceMetadata(L,
{customParameters:await y.fetchCustomParameters(v,M=>g.getFirstLayerOrTable(M)?.customParameters)});return{className:n.sceneServiceLayerTypeToClassName[B?.layerType]||"SceneLayer",properties:C}}return!1===B&&"Voxel"===(await y.fetchServiceMetadata(v.url))?.layerType?{className:"VoxelLayer"}:{className:"GroupLayer"}}async function A(v){await v.load();const y=f.hasTypeKeyword(v,"Map Notes"),B=f.hasTypeKeyword(v,"Markup");if(y||B)return{className:"MapNotesLayer"};if(f.hasTypeKeyword(v,"Route Layer"))return{className:"RouteLayer"};
v=await v.fetchData();return 1===g.getNumLayersAndTables(v)?{className:"FeatureLayer"}:{className:"GroupLayer"}}async function u(v,y){await v.load();var B=v.typeKeywords?.map(C=>C.toLowerCase())??[];if(B.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(B.includes("tiled imagery"))return{className:"ImageryTileLayer"};B=(await y.fetchItemData(v))?.layerType;if("ArcGISTiledImageServiceLayer"===B)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===B)return{className:"ImageryLayer"};
B=await y.fetchServiceMetadata(v.url,{customParameters:await y.fetchCustomParameters(v)});v=B.cacheType?.toLowerCase();y=B.capabilities?.toLowerCase().includes("tilesonly");B=B.tileInfo?.format?.toLowerCase()??"";B=null==v&&"jpg jpeg png png8 png24 png32 mixed".split(" ").includes(B);return"map"===v||B||y?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}async function w(v,y){({tileInfo:v}=await y.fetchServiceMetadata(v.url,{customParameters:await y.fetchCustomParameters(v)}));return v}async function z(v,
y,B){const {url:C,type:L}=v,M="Feature Service"===L;if(!C)return{};if(/\/\d+$/.test(C))return M?(B=await y.fetchServiceMetadata(C,{customParameters:await y.fetchCustomParameters(v,E=>g.getFirstLayerOrTable(E)?.customParameters)}),{id:B.id,className:h.getLayerModuleType(B.type),sourceJSON:B}):{};await v.load();let G=await y.fetchItemData(v);if(M)return v=await g.preprocessFSItemData(G,C,y),B=k(v),"object"===typeof B&&(v=g.getLayerOrTable(v,B.id),B.className=g.layerTypeToLayerModuleType(v?.layerType)),
B;"Scene Service"===L&&(G=await g.populateSceneServiceItemData(v,G,y));if(0c(x,{query:{f:"json",...w},responseType:"json",authMode:y,signal:q.signal});u=z("anonymous").catch(()=>
z("no-prompt"));const [k,v]=await Promise.all([u,A]);A=v?.layers;u=k.data&&k.data.layers;if(!Array.isArray(u))throw Error("expected layers array");if(!Array.isArray(A)){if(null!=l&&l"Feature Service"===u.type)||null;if(!x)return null;const A=new e({portal:x.portal,id:x.id});await A.load();return A}catch(x){return d.throwIfAbortError(x),null}}a.findAssociatedFeatureService=async function(l,q){l=n.parse(l);if(!l)throw new h("invalid-url","Invalid scene service url");l={...q,sceneServerUrl:l.url.path,layerId:l.sublayer??void 0};l.sceneLayerItem??(l.sceneLayerItem=await g(l));if(null==l.sceneLayerItem)return r(l.sceneServerUrl.replace("/SceneServer",
"/FeatureServer"),l);q=await t(l);if(!q?.url)throw new h("related-service-not-found","Could not find feature service through portal item relationship");l.featureServiceItem=q;l=await r(q.url,l);l.portalItem=q;return l};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/arcgisLayerUrl":function(){define(["exports","../../core/urlUtils","../../chunks/persistableUrlUtils"],function(a,b,c){function h(r){if(null==r)return null;r=b.urlToObject(r);r=r?.path.match(g)||r?.path.match(f);
if(!r)return null;const [,t,l,q,x]=r;r=l.indexOf("/");return{title:n(-1!==r?l.slice(r+1):l),serverType:m[q.toLowerCase()],sublayer:null!=x&&""!==x?parseInt(x,10):null,url:{path:t}}}function d(r){return(r=b.urlToObject(r).path.match(p))?{serviceUrl:r[1],sublayerId:Number(r[2])}:null}function n(r){r=r.replaceAll(/\s*[/_]+\s*/g," ");return r[0].toUpperCase()+r.slice(1)}const m={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",
streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},e=Object.values(m),g=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${e.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),f=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^/\\n]+)\\/(${e.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),p=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;a.cleanTitle=n;a.isArcGISUrl=function(r){return g.test(r)};a.isHostedAgolService=function(r){r=b.getOrigin(r,
!0);if(!r)return!1;r=r.toLowerCase();return r.endsWith(".arcgis.com")&&(r.startsWith("services")||r.startsWith("tiles")||r.startsWith("features"))};a.isServerOrServicesAGOLUrl=function(r){if(!r)return!1;r=(new b.Url(b.makeAbsolute(r))).authority?.toLowerCase();return"server.arcgisonline.com"===r||"services.arcgisonline.com"===r};a.isWmsServer=function(r){if(!r)return!1;var t=r.toLowerCase();r=t.includes("/services/");const l=t.includes("/mapserver/wmsserver"),q=t.includes("/imageserver/wmsserver");
t=t.includes("/wmsserver");return r&&(l||q||t)};a.parse=h;a.parseNonStandardSublayerUrl=d;a.sanitizeUrl=function(r,t){return r?b.removeTrailingSlash(b.removeQueryParameters(r,t)):r};a.sanitizeUrlWithLayerId=function(r){let {url:t}=r;if(!t)return{url:t};t=b.removeQueryParameters(t,r.logger);const l=b.urlToObject(t),q=h(l.path);let x=void 0;null!=q?(null!=q.sublayer&&null==r.layer.layerId&&(x=q.sublayer),t=q.url.path):r.nonStandardUrlAllowed&&(r=d(l.path),null!=r&&(t=r.serviceUrl,x=r.sublayerId));return{url:b.removeTrailingSlash(t),
layerId:x}};a.serverTypes=e;a.titleFromUrlAndName=function(r,t){const l=[];r&&(r=h(r),null!=r&&r.title&&l.push(r.title));t&&(t=n(t),l.push(t));if(2===l.length){if(l[0].toLowerCase().includes(l[1].toLowerCase()))return l[0];if(l[1].toLowerCase().includes(l[0].toLowerCase()))return l[1]}return l.join(" - ")};a.writeUrlWithLayerId=function(r,t,l,q,x){c.write(t,q,"url",x);q.url&&null!=r.layerId&&(q.url=b.join(q.url,l,r.layerId.toString()))};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},
"esri/layers/support/fetchService":function(){define(["exports","../../support/requestPresets"],function(a,b){function c(g){({type:g}=g);return g?e.has(g):!1}function h(g){return"Table"===g.type}function d(g){g.layers=g.layers?.filter(c);g.tables=g.tables?.filter(h)}function n(g){g.type||(g.type="Feature Layer")}function m(g){g.type||(g.type="Table")}const e=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);a.fetchFeatureService=async function(g,f){const {loadContext:p,...r}=f||
{},t=p?await p.fetchServiceMetadata(g,r):await b.fetchArcGISServiceJSON(g,r);t.layers?.forEach(n);t.tables?.forEach(m);d(t);f={serviceJSON:t};if(10.5>(t.currentVersion??0))return f;g=`${g}/layers`;g=p?await p.fetchServiceMetadata(g,r):await b.fetchArcGISServiceJSON(g,r);g.layers?.forEach(n);g.tables?.forEach(m);d(g);f.layersJSON={layers:g.layers,tables:g.tables};return f};a.getLayerModuleType=function(g){switch(g){case "Oriented Imagery Layer":return"OrientedImageryLayer";case "Catalog Layer":return"CatalogLayer"}return"FeatureLayer"};
Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/portal/support/loadUtils":function(){define(["exports","../../layers/support/associatedFeatureServiceUtils","../../layers/support/fetchService"],function(a,b,c){function h(n){const m={id:n.id,name:n.name};n=c.getLayerModuleType(n.type);"FeatureLayer"!==n&&(m.layerType=n);return m}function d(n){if(!n)return null;const {layers:m,tables:e}=n;return m?.length?m[0]:e?.length?e[0]:null}a.createSublayerData=h;a.getFirstLayerOrTable=d;
a.getLayerOrTable=function(n,m){return null==m?null:[...(n.layers||[]),...(n.tables||[])].find(e=>e.id===m)};a.getNumLayersAndTables=function(n){return(n?.layers?.length??0)+(n?.tables?.length??0)};a.getSublayersByLayerType=function(n,m){return[...(n.layers||[]),...(n.tables||[])].filter(({layerType:e})=>e?e===m:"ArcGISFeatureLayer"===m)};a.instanceTypeToLayerType=function(n){switch(n){case "catalog":return"CatalogLayer";case "feature":return"ArcGISFeatureLayer";case "oriented-imagery":return"OrientedImageryLayer";
case "subtype-group":return"SubtypeGroupLayer"}return null};a.layerTypeToLayerModuleType=function(n){switch(n){case "CatalogLayer":return"CatalogLayer";case "OrientedImageryLayer":return"OrientedImageryLayer";case "SubtypeGroupLayer":return"SubtypeGroupLayer"}return"FeatureLayer"};a.populateSceneServiceItemData=async function(n,m,e){if(!n?.url)return m??{};m??={};if(!m.layers){const p=await e.fetchServiceMetadata(n.url);m.layers=p.layers?.map(h)}const {serverUrl:g,portalItem:f}=await b.findAssociatedFeatureService(n.url,
{sceneLayerItem:n,customParameters:d(m)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==g)return m.tables=[],m;!m.tables&&f&&(n=await f.fetchData().catch(()=>null),n?.tables?m.tables=n.tables.map(h):(e=await e.fetchServiceMetadata(g,{customParameters:d(n)?.customParameters}).catch(()=>null),m.tables=e?.tables?.map(h)));if(m.tables)for(const p of m.tables)p.url=`${g}/${p.id}`;return m};a.preprocessFSItemData=async function(n,m,e){if(null==n?.layers||null==n?.tables)m=await e.fetchServiceMetadata(m,
{customParameters:d(n)?.customParameters}),n=n||{},n.layers=n.layers||m?.layers?.map(h),n.tables=n.tables||m?.tables?.map(h);return n};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/renderers/support/styleUtils":function(){define(["exports","../../core/asyncUtils","../../core/promiseUtils","../../core/Warning"],function(a,b,c,h){a.loadStyleRenderer=async function(d,n,m){var e=d&&d.getAtOrigin&&d.getAtOrigin("renderer",n.origin);e&&"unique-value"===e.type&&e.styleOrigin&&(e=
await b.result(e.populateFromStyle()),c.throwIfAborted(m),!1===e.ok&&(m=e.error,n?.messages&&n.messages.push(new h("renderer:style-reference",`Failed to create unique value renderer from style reference: ${m.message}`,{error:m,context:n})),d.clear("renderer",n?.origin)))};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/FeatureLayer":function(){define("require ../chunks/tslib.es6 ../PopupTemplate ../renderers/ClassBreaksRenderer ../renderers/DictionaryRenderer ../renderers/DotDensityRenderer ../renderers/HeatmapRenderer ../renderers/PieChartRenderer ../renderers/Renderer ../renderers/SimpleRenderer ../renderers/UniqueValueRenderer ../renderers/support/jsonUtils ../renderers/support/types ../request ../symbols ../core/Clonable ../core/Collection ../core/Error ../core/lang ../core/Logger ../core/MultiOriginJSONSupport ../core/object ../core/promiseUtils ../core/sql ../core/urlUtils ../core/Warning ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/layerContainerType ../form/FormTemplate ../geometry/SpatialReference ./Layer ./graphics/sources/MemorySource ./mixins/APIKeyMixin ./mixins/ArcGISService ./mixins/BlendLayer ./mixins/CustomParametersMixin ./mixins/EditBusLayer ./mixins/FeatureEffectLayer ./mixins/FeatureLayerBase ./mixins/FeatureReductionLayer ./mixins/OperationalLayer ./mixins/OrderedLayer ./mixins/PortalLayer ./mixins/PublishableLayer ./mixins/RefreshableLayer ./mixins/ScaleRangeLayer ./mixins/TemporalLayer ./support/arcgisLayerUrl ./support/commonProperties ./support/featureLayerUtils ./support/FeatureTemplate ./support/FeatureType ./support/fieldProperties ./support/fieldUtils ./support/LabelClass ./support/labelingInfo ./support/serviceCapabilitiesUtils ./support/TimeInfo ./support/versionUtils ./support/source/DataLayerSource ../renderers/support/styleUtils ../rest/support/FeatureSet ../rest/support/Query ../support/popupUtils ../views/3d/webgl-engine/core/shaderLibrary/util/AlphaCutoff ../webdoc/interfaces ../webdoc/support/opacityUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u,w,z,k,v,y,B,C,L,M,G,E,F,H,R,J,K,Q,N,U,Z,fa,pa,xa,ra,qa,za,Da,sa,X,aa,ha,I,T,da,la,ua,Y,ea,ja,V,O,P,W,ca,oa,Aa,Ga,Fa,Pa,Na,Qa,Sa,Ya){function cb(ta,Ba){return new u("layer:unsupported",`Layer (${ta.title}, ${ta.id}) of type '${ta.declaredClass}' ${Ba}`,{layer:ta})}function ab(ta,Ba,Ra){ta=!!Ra?.writeLayerSchema;return{enabled:ta,ignoreOrigin:ta}}const nb=ta=>Object.freeze(Object.defineProperty({__proto__:null,default:ta},Symbol.toStringTag,{value:"Module"}));
h=ja.defineFieldProperties();x=class extends qa.FeatureLayerBase(za.FeatureReductionLayer(ra.FeatureEffectLayer(aa.PublishableLayer(xa.EditBusLayer(fa.BlendLayer(sa.OrderedLayer(T.TemporalLayer(I.ScaleRangeLayer(ha.RefreshableLayer(Z.ArcGISService(Da.OperationalLayer(X.PortalLayer(k.MultiOriginJSONMixin(pa.CustomParametersMixin(U.APIKeyMixin(x.ClonableMixin(Q))))))))))))))))){constructor(...ta){super(...ta);this.geometryType=this.fullExtent=this.formTemplate=this.fieldsIndex=this.fields=this.dynamicDataSource=
this.displayField=this.copyright=this.charts=this.attributeTableTemplate=null;this.hasZ=this.hasM=void 0;this.infoFor3D=null;this.isTable=!1;this.labelsVisible=!0;this.labelingInfo=null;this.legendEnabled=!0;this.path=this.outFields=this.objectIdField=null;this.popupEnabled=!0;this.resourceInfo=this.popupTemplate=null;this.screenSizePerspectiveEnabled=!0;this.spatialReference=K.WGS84;this.subtypeCode=null;this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]);
this.title=this.timeInfo=this.templates=null;this.sublayerTitleMode="item-title";this.type="feature";this.types=this.typeIdField=null;this.visible=!0;this._debouncedSaveOperations=y.debounce(async(Ba,Ra,$a)=>{const {save:gb,saveAs:qb}=await new Promise((ub,ob)=>a(["./save/featureLayerUtils"],ub,ob));switch(Ba){case Sa.SaveOperationType.SAVE:return gb(this,Ra);case Sa.SaveOperationType.SAVE_AS:return qb(this,$a,Ra)}})}destroy(){this.source?.destroy()}normalizeCtorArgs(ta,Ba){return"string"===typeof ta?
{url:ta,...Ba}:ta}load(ta){const Ba=null!=ta?ta.signal:null;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(Ba).then($a=>this.initLayerProperties($a))),Promise.resolve(this);const Ra=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"]},ta).catch(y.throwIfAbortError).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const $a=await this._fetchFirstValidLayerId(Ba);
null!=$a&&(this.layerId=$a)}if(!this.url&&!this._hasMemorySource())throw new u("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this.initLayerProperties(await this.createGraphicsSource(Ba))}).then(()=>ua.ensureLayerCredential(this,"load",ta));this.addResolvingPromise(Ra);return Promise.resolve(this)}warnInvisibleDrapedSymbols(){"on-the-ground"===this.elevationInfo?.mode&&"simple"===this.renderer?.type&&"polygon-3d"===this.renderer.symbol?.type&&
this.renderer.symbol.symbolLayers.some(ta=>"fill"!==ta.type||null==ta.material?!1:!ta.material.color||ta.material.color.a*this.opacityY.fromJSON($a));this._fixTemplates(ta,Ba?.creatorField);this._fixTemplates(ta,Ra);return ta}readTitle(ta,Ba){ta=Ba.layerDefinition?.name??Ba.name;Ba=Ba.title||Ba.layerDefinition?.title;if(ta){Ba=this.portalItem?.title;if("item-title"===
this.sublayerTitleMode)return this.url?da.titleFromUrlAndName(this.url,ta):ta;if(!ta&&this.url){const Ra=da.parse(this.url);null!=Ra&&(ta=Ra.title)}if(!ta)return;"item-title-and-service-name"===this.sublayerTitleMode&&Ba&&Ba!==ta&&(ta=Ba+" - "+ta);return da.cleanTitle(ta)}if("item-title"===this.sublayerTitleMode&&Ba)return Ba}readTitleFromWebMap(ta,Ba){return Ba.title||Ba.layerDefinition?.name}readTypeIdField(ta,Ba){Ba=Ba.layerDefinition||Ba;let Ra=Ba.typeIdField;Ra&&Ba.fields&&(Ra=Ra.toLowerCase(),
ta=Ba.fields.find($a=>$a.name.toLowerCase()===Ra))&&(Ra=ta.name);return Ra}readTypes(ta,Ba){Ba=Ba.layerDefinition||Ba;ta=Ba.types;Ba=Ba.editFieldsInfo;const Ra=Ba?.creatorField,$a=Ba?.editorField;return ta?.map(gb=>{gb=ea.fromJSON(gb);this._fixTemplates(gb.templates,Ra);this._fixTemplates(gb.templates,$a);return gb})}readVisible(ta,Ba){if(null!=Ba.layerDefinition?.defaultVisibility)return!!Ba.layerDefinition.defaultVisibility;if(null!=Ba.visibility)return!!Ba.visibility}async addAttachment(ta,Ba){ta=
await ua.addAttachment(this,ta,Ba,"FeatureLayer");this.lastEditsEventDate=new Date;return ta}async updateAttachment(ta,Ba,Ra){ta=await ua.updateAttachment(this,ta,Ba,Ra,"FeatureLayer");this.lastEditsEventDate=new Date;return ta}async applyEdits(ta,Ba){return ua.applyEdits(this,ta,Ba)}async uploadAssets(ta,Ba){return ua.uploadAssets(this,ta,Ba)}on(ta,Ba){return super.on(ta,Ba)}createPopupTemplate(ta){return Na.createPopupTemplate(this,ta)}async createGraphicsSource(ta){if(this._hasMemorySource()&&
this.source)return this.source.load({signal:ta});const {default:Ba}=await y.whenOrAbort(new Promise((Ra,$a)=>a(["./graphics/sources/FeatureLayerSource"],gb=>Ra(nb(gb)),$a)),ta);return(new Ba({layer:this,supportedSourceTypes:this.supportedSourceTypes})).load({signal:ta})}createQuery(){const ta=ua.createQuery(this);ta.dynamicDataSource=this.dynamicDataSource;const Ba=B.sqlAnd(this.definitionExpression,null!=this.subtypeCode?`${this.subtypeField} = ${this.subtypeCode}`:null);ta.where=Ba||"1\x3d1";return ta}async deleteAttachments(ta,
Ba){ta=await ua.deleteAttachments(this,ta,Ba,"FeatureLayer");this.lastEditsEventDate=new Date;return ta}async fetchRecomputedExtents(ta){return ua.fetchRecomputedExtents(this,ta,"FeatureLayer")}getFeatureType(ta){return ua.getFeatureType(this.types,this.typeIdField,ta)}getFieldDomain(ta,Ba){var Ra=Ba?.feature,$a=!!this.subtypes?.length;if($a&&!Ba?.excludeImpliedDomains){const gb=ua.computeDomainFromSubtypes(this,ta);if(gb)return gb}if($a=$a&&ua.getFeatureSubtype(this,Ra))return Ba=$a?.domains?.[ta],
"inherited"===Ba?.type?this._getLayerDomain(ta):Ba;$a=this.getFeatureType(Ra);Ra=this._getLayerDomain(ta);return $a&&($a=$a.domains&&$a.domains[ta])&&"inherited"!==$a?.type?$a:Ra?Ra:!Ba?.excludeImpliedDomains&&(ta=ua.computeDomainFromTypes(this,ta))?ta:null}getField(ta){return this.fieldsIndex.get(ta)}async queryAttachments(ta,Ba){return ua.queryAttachments(this,ta,Ba,"FeatureLayer")}async queryFeatures(ta,Ba){const Ra=await this.load();ta=await Ra.source.queryFeatures(Pa.from(ta)??Ra.createQuery(),
Ba);if(ta?.features)for(const $a of ta.features)$a.layer=$a.sourceLayer=Ra;return ta}async queryObjectIds(ta,Ba){return ua.queryObjectIds(this,ta,Ba,"FeatureLayer")}async queryFeatureCount(ta,Ba){return ua.queryFeatureCount(this,ta,Ba,"FeatureLayer")}async queryExtent(ta,Ba){return ua.queryExtent(this,ta,Ba,"FeatureLayer")}async queryRelatedFeatures(ta,Ba){return ua.queryRelatedFeatures(this,ta,Ba,"FeatureLayer")}async queryRelatedFeaturesCount(ta,Ba){return ua.queryRelatedFeaturesCount(this,ta,Ba,
"FeatureLayer")}async queryTopFeatures(ta,Ba){const {source:Ra,capabilities:$a}=await this.load();if(!Ra.queryTopFeatures||!$a?.query?.supportsTopFeaturesQuery)throw new u("FeatureLayer","Layer source does not support queryTopFeatures capability");const gb=await new Promise((qb,ub)=>a(["../rest/support/TopFeaturesQuery"],ob=>qb(nb(ob)),ub));ta=await Ra.queryTopFeatures(gb.default.from(ta),Ba);if(ta?.features)for(const qb of ta.features)qb.layer=qb.sourceLayer=this;return ta}async queryBins(ta,Ba){const {source:Ra,
capabilities:$a}=await this.load();if(!Ra.queryBins||!$a?.operations?.supportsQueryBins)throw new u("FeatureLayer","Layer source does not support queryBins capability");ua.validateBinsQuery(ta,$a,"FeatureLayer");const gb=await new Promise((qb,ub)=>a(["../rest/support/BinsQuery"],ob=>qb(nb(ob)),ub));ta=await Ra.queryBins(gb.default.from(ta),Ba);if(ta.features)for(const qb of ta.features)qb.layer=qb.sourceLayer=this;return ta}async queryTopObjectIds(ta,Ba){const {source:Ra,capabilities:$a}=await this.load();
if(!Ra.queryTopObjectIds||!$a?.query.supportsTopFeaturesQuery)throw new u("FeatureLayer","Layer source does not support queryTopObjectIds capability");const gb=await new Promise((qb,ub)=>a(["../rest/support/TopFeaturesQuery"],ob=>qb(nb(ob)),ub));return Ra.queryTopObjectIds(gb.default.from(ta),Ba)}async queryTopFeaturesExtent(ta,Ba){const {source:Ra,capabilities:$a}=await this.load();if(!Ra.queryTopExtents||!$a?.query?.supportsTopFeaturesQuery)throw new u("FeatureLayer","Layer source does not support queryTopExtents capability");
const gb=await new Promise((qb,ub)=>a(["../rest/support/TopFeaturesQuery"],ob=>qb(nb(ob)),ub));return Ra.queryTopExtents(gb.default.from(ta),Ba)}async queryTopFeatureCount(ta,Ba){const {source:Ra,capabilities:$a}=await this.load();if(!Ra.queryTopCount||!$a?.query?.supportsTopFeaturesQuery)throw new u("FeatureLayer","Layer source does not support queryFeatureCount capability");const gb=await new Promise((qb,ub)=>a(["../rest/support/TopFeaturesQuery"],ob=>qb(nb(ob)),ub));return Ra.queryTopCount(gb.default.from(ta),
Ba)}read(ta,Ba){const Ra=ta.featureCollection;if(Ra||"Feature Collection"===ta.type)this.resourceInfo=ta;if(Ra){const $a=Ra.layers;$a&&1===$a.length&&(super.read($a[0],Ba),null!=Ra.showLegend&&super.read({showLegend:Ra.showLegend},Ba))}super.read(ta,Ba);Ba&&"service"===Ba.origin&&(this.revert(["objectIdField","fields","timeInfo","dateFieldsTimeZone"],"service"),this.spatialReference||this.revert(["spatialReference"],"service"))}write(ta,Ba){Ba={...Ba,origin:Ba?.origin??void 0,writeLayerSchema:Ba?.writeLayerSchema??
this._hasMemorySource()};const {origin:Ra,layerContainerType:$a,messages:gb}=Ba;if(this.dynamicDataSource)return gb?.push(cb(this,"using a dynamic data source cannot be written to web scenes, web maps and feature service items")),null;if(this.isTable){if(("web-map"===Ra||"web-scene"===Ra)&&"tables"!==$a)return gb?.push(cb(this,`a table source can only be written to tables, not ${$a}`)),null;if(this._hasMemorySource())return gb?.push(cb(this,"using an in-memory table source cannot be written to web scenes and web maps")),
null}else if(this.loaded&&("web-map"===Ra||"web-scene"===Ra)&&"tables"===$a)return gb?.push(cb(this,"using a non-table source cannot be written to tables in web maps or web scenes")),null;return super.write(ta,Ba)}clone(){if(this._hasMemorySource())throw new u("FeatureLayer",`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(ta){return this.loaded?"memory"===this.source?.type?!0:oa.serviceSupportsSpatialReference(this,
ta):!1}async save(ta){return this._debouncedSaveOperations(Sa.SaveOperationType.SAVE,ta)}async saveAs(ta,Ba){return this._debouncedSaveOperations(Sa.SaveOperationType.SAVE_AS,Ba,ta)}_readEditingEnabled(ta,Ba,Ra){let $a=ta.layerDefinition?.capabilities;if($a)return this._hasEditingCapability($a);$a=ta.capabilities;if(Ba&&"web-map"===Ra?.origin&&!this._hasMemorySource()&&$a)return this._hasEditingCapability($a)}_hasEditingCapability(ta){return ta.toLowerCase().split(",").map(Ba=>Ba.trim()).includes("editing")}_writeEditingEnabled(ta,
Ba,Ra,$a){ta||(ta=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query",v.setDeepValue("layerDefinition.capabilities",ta,Ba),Ra&&!$a?.writeLayerSchema&&(Ba.capabilities=ta))}_getLayerDomain(ta){return(ta=this.fieldsIndex.get(ta))?ta.domain:null}_fetchFirstValidLayerId(ta){return l(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:ta}).then(Ba=>{if(Ba=Ba.data)return this.findFirstValidLayerId(Ba)})}async initLayerProperties(ta){this._set("source",
ta);ta.sourceJSON&&(this.sourceJSON=ta.sourceJSON,this.read(ta.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}));this._verifySource();this._verifyFields();V.fixRendererFields(this.renderer,this.fieldsIndex);V.fixTimeInfoFields(this.timeInfo,this.fieldsIndex);return Ga.loadStyleRenderer(this,{origin:"service"})}async hasDataChanged(){return ua.hasDataChanged(this)}async fetchPublishingStatus(){const ta=this.source;return ta?.fetchPublishingStatus?
ta.fetchPublishingStatus():"unavailable"}_verifyFields(){const ta=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+ta+")");this.isTable||this._hasMemorySource()||-1!==ta.search(/\/FeatureServer\//i)||this.fields?.some(Ba=>"geometry"===Ba.type)||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+ta+
")")}_fixTemplates(ta,Ba){ta&&ta.forEach(Ra=>{(Ra=Ra.prototype?.attributes)&&Ba&&delete Ra[Ba]})}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new u("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url");}else if(!this.url)throw new u("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source");}_initMemorySource(ta){ta.forEach(Ba=>{Ba.layer=this;Ba.sourceLayer=this});this.addHandles([ta.on("after-add",
Ba=>{Ba.item.layer=this;Ba.item.sourceLayer=this}),ta.on("after-remove",Ba=>{Ba.item.layer=null;Ba.item.sourceLayer=null})],"fl-source")}_resetMemorySource(ta){ta.forEach(Ba=>{Ba.layer=null;Ba.sourceLayer=null});this.removeHandles("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}findFirstValidLayerId(ta){if(Array.isArray(ta.layers)&&0{const ta=w.clone(la.opacityDrawingInfo);ta.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(Ba,Ra,$a){v.setDeepValue($a,Ya.opacityToTransparency(Ba),Ra)}}};return ta})())],x.prototype,"opacity",void 0);b.__decorate([M.property(la.legendEnabled)],x.prototype,"legendEnabled",void 0);b.__decorate([M.property({type:["show","hide"],json:(()=>{const ta=w.clone(la.listMode.json);ta.origins["portal-item"]={read:!1,write:!1};
return ta})()})],x.prototype,"listMode",void 0);b.__decorate([E.reader("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],x.prototype,"readGlobalIdField",null);b.__decorate([M.property({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:ab}}}}})],x.prototype,"objectIdField",void 0);b.__decorate([E.reader("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],x.prototype,"readObjectIdField",null);b.__decorate([M.property({value:"ArcGISFeatureLayer",
type:["ArcGISFeatureLayer"]})],x.prototype,"operationalLayerType",void 0);b.__decorate([M.property(h.outFields)],x.prototype,"outFields",void 0);b.__decorate([M.property({readOnly:!0})],x.prototype,"parsedUrl",null);b.__decorate([M.property({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],x.prototype,"path",void 0);b.__decorate([M.property(la.popupEnabled)],x.prototype,"popupEnabled",void 0);b.__decorate([M.property({type:c,json:{name:"popupInfo",write:!0}})],x.prototype,"popupTemplate",
void 0);b.__decorate([M.property({readOnly:!0})],x.prototype,"defaultPopupTemplate",null);b.__decorate([M.property({types:t.rendererTypes,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:t.webSceneRendererTypes,name:"layerDefinition.drawingInfo.renderer",write:{layerContainerTypes:R.excludeTables,overridePolicy(ta,Ba,Ra){return{ignoreOrigin:Ra?.writeLayerSchema}}}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy(ta,Ba,Ra){return{ignoreOrigin:Ra?.writeLayerSchema}}}}})],
x.prototype,"renderer",null);b.__decorate([E.reader("service","renderer",["drawingInfo.renderer","defaultSymbol"]),E.reader("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],x.prototype,"readRenderer",null);b.__decorate([M.property()],x.prototype,"resourceInfo",void 0);b.__decorate([M.property((()=>{const ta=w.clone(la.screenSizePerspectiveEnabled);ta.json.origins["portal-item"]={read:!1,write:!1};return ta})())],x.prototype,"screenSizePerspectiveEnabled",void 0);
b.__decorate([M.property({clonable:!1})],x.prototype,"source",null);b.__decorate([G.cast("source")],x.prototype,"castSource",null);b.__decorate([E.reader("portal-item","source",["featureSet"]),E.reader("web-map","source",["featureSet"])],x.prototype,"readSource",null);b.__decorate([M.property({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],x.prototype,"spatialReference",void 0);b.__decorate([M.property({type:Number})],x.prototype,"subtypeCode",void 0);b.__decorate([M.property({type:[Y]})],
x.prototype,"templates",void 0);b.__decorate([E.reader("templates",["editFieldsInfo","creatorField","editorField","templates"])],x.prototype,"readTemplates",null);b.__decorate([M.property({type:ca})],x.prototype,"timeInfo",void 0);b.__decorate([M.property()],x.prototype,"title",void 0);b.__decorate([E.reader("service","title",["name"]),E.reader("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],x.prototype,"readTitle",null);b.__decorate([E.reader("web-map","title",["layerDefinition.name",
"title"])],x.prototype,"readTitleFromWebMap",null);b.__decorate([M.property({type:String})],x.prototype,"sublayerTitleMode",void 0);b.__decorate([M.property({json:{read:!1}})],x.prototype,"type",void 0);b.__decorate([M.property({type:String})],x.prototype,"typeIdField",void 0);b.__decorate([E.reader("service","typeIdField"),E.reader("typeIdField",["layerDefinition.typeIdField"])],x.prototype,"readTypeIdField",null);b.__decorate([M.property({type:[ea]})],x.prototype,"types",void 0);b.__decorate([E.reader("service",
"types",["types"]),E.reader("types",["layerDefinition.types"])],x.prototype,"readTypes",null);b.__decorate([M.property({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility"}}}}})],x.prototype,"visible",void 0);b.__decorate([E.reader("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],x.prototype,"readVisible",null);return x=b.__decorate([F.subclass("esri.layers.FeatureLayer")],x)})},"esri/PopupTemplate":function(){define("./chunks/tslib.es6 ./core/Clonable ./core/Collection ./core/JSONSupport ./core/lang ./core/Logger ./core/promiseUtils ./core/accessorSupport/decorators/property ./core/accessorSupport/decorators/cast ./core/accessorSupport/decorators/reader ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer ./core/accessorSupport/ensureType ./layers/support/fieldUtils ./popup/content ./popup/ExpressionInfo ./popup/FieldInfo ./popup/LayerOptions ./popup/RelatedRecordsInfo ./popup/content/support/mediaInfoTypes ./support/actions/ActionBase ./support/actions/ActionButton ./support/actions/ActionToggle ./popup/content/MediaContent ./popup/content/TextContent ./popup/content/AttachmentsContent ./popup/content/FieldsContent ./popup/content/ExpressionContent ./popup/content/RelationshipContent ./popup/content/UtilityNetworkAssociationsContent ./popup/content/Content ./popup/content/CustomContent".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u,w,z,k,v,y,B,C,L,M,G,E,F,H,R){k=c.ofType({key:"type",defaultKeyValue:"button",base:k,typeMap:{button:v,toggle:y}});const J={base:H,key:"type",typeMap:{media:B,custom:R,text:C,attachments:L,fields:M,expression:G,relationship:E,utilityNetworkAssociations:F}},K=new Set("attachments fields media text expression relationship".split(" ")),Q=new Set([...K,"utility-network-associations"]);b=class extends b.ClonableMixin(h.JSONSupport){constructor(){super(...arguments);
this.actions=null;this.content="";this.layerOptions=this.fieldInfos=this.expressionInfos=null;this.lastEditInfoEnabled=!0;this.outFields=null;this.returnGeometry=this.overwriteActions=!1;this.title=""}castContent(N){if(Array.isArray(N))return N.map(U=>t.ensureOneOfType(J,U));if("string"===typeof N||"function"===typeof N||N instanceof HTMLElement||m.isPromiseLike(N))return N;n.getLogger(this).error("content error","unsupported content value",{value:N});return null}readContent(N,U){({popupElements:N}=
U);return Array.isArray(N)&&0"fields"===ra.type):[],xa=pa.length&&pa.every(ra=>ra.fieldInfos?.length);U.fieldInfos=N.filter(Boolean).map(ra=>{ra=ra.toJSON(fa);xa&&(ra.visible=
!1);return ra})}if(Z)for(const pa of Z)"fields"===pa.type&&this._writeFieldsContent(pa,U)}writeLayerOptions(N,U,Z,fa){U[Z]=!N||null===N.showNoDataRecords&&null===N.returnTopmostRaster?null:N.toJSON(fa)}writeTitle(N,U){U.title=N||""}async collectRequiredFields(N,U){const Z=this.expressionInfos||[];await this._collectExpressionInfoFields(N,U,[...Z,...this._getContentExpressionInfos(this.content,Z)]);l.collectFields(N,U,[...(this.outFields||[]),...this._getActionsFields(this.actions),...this._getTitleFields(this.title),
...this._getContentFields(this.content)])}async getRequiredFields(N){const U=new Set;await this.collectRequiredFields(U,N);return[...U].sort()}_writePopupTemplateContent(N,U,Z){"string"===typeof N?U.description=N:Array.isArray(N)&&(U.popupElements=N.filter(fa=>"web-scene"===Z?.origin?K.has(fa.type):Q.has(fa.type)).map(fa=>fa?.toJSON(Z)),U.popupElements.forEach(fa=>{"attachments"===fa.type?this._writeAttachmentContent(U):"media"===fa.type?this._writeMediaContent(fa,U):"text"===fa.type?this._writeTextContent(fa,
U):"relationship"===fa.type&&this._writeRelationshipContent(fa,U)}))}_writeFieldsContent(N,U){Array.isArray(N.fieldInfos)&&N.fieldInfos.length&&(N=d.clone(N.fieldInfos),Array.isArray(U.fieldInfos)?N.forEach(Z=>{const fa=U.fieldInfos.find(pa=>pa.fieldName?.toLowerCase()===Z.fieldName?.toLowerCase());fa?fa.visible=!0:U.fieldInfos.push(Z)}):U.fieldInfos=N)}_writeAttachmentContent(N){N.showAttachments||(N.showAttachments=!0)}_writeRelationshipContent(N,U){var Z=N.orderByFields?.map(fa=>this._toFieldOrderJSON(fa,
N.relationshipId))||[];Z=[...(U.relatedRecordsInfo?.orderByFields||[]),...Z];U.relatedRecordsInfo={showRelatedRecords:!0,...(Z?.length&&{orderByFields:Z})}}_writeTextContent(N,U){!U.description&&N.text&&(U.description=N.text)}_writeMediaContent(N,U){Array.isArray(N.mediaInfos)&&N.mediaInfos.length&&(N=d.clone(N.mediaInfos),Array.isArray(U.mediaInfos)?U.mediaInfos=[...U.mediaInfos,...N]:U.mediaInfos=N)}_readPopupInfoElements(N,U,Z){var fa=!1,pa=!1;return Z.map(xa=>{if("media"===xa.type)return xa.mediaInfos||
!U||pa||(xa.mediaInfos=U,pa=!0),B.fromJSON(xa);if("text"===xa.type)return xa.text||!N||fa||(xa.text=N,fa=!0),C.fromJSON(xa);if("attachments"===xa.type)return L.fromJSON(xa);if("fields"===xa.type)return M.fromJSON(xa);if("expression"===xa.type)return G.fromJSON(xa);if("relationship"===xa.type)return E.fromJSON(xa);if("utilityNetworkAssociations"===xa.type)return F.fromJSON(xa)}).filter(Boolean)}_toRelationshipContent(N){const {field:U,order:Z}=N;if(!U?.startsWith("relationships/"))return null;var fa=
U.replace("relationships/","").split("/");if(2!==fa.length)return null;N=parseInt(fa[0],10);fa=fa[1];return"number"===typeof N&&fa?E.fromJSON({relationshipId:N,orderByFields:[{field:fa,order:Z}]}):null}_toFieldOrderJSON(N,U){const {order:Z,field:fa}=N;return{field:`${"relationships/"}${U}/${fa}`,order:Z}}_readPopupInfo({description:N,mediaInfos:U,showAttachments:Z,relatedRecordsInfo:fa={showRelatedRecords:!1}}){const pa=[];N?pa.push(new C({text:N})):pa.push(new M);Array.isArray(U)&&U.length&&pa.push(B.fromJSON({mediaInfos:U}));
Z&&pa.push(L.fromJSON({displayType:"auto"}));const {showRelatedRecords:xa,orderByFields:ra}=fa;xa&&ra?.length&&ra.forEach(qa=>{(qa=this._toRelationshipContent(qa))&&pa.push(qa)});return pa.length?pa:N}_getContentElementFields(N){var U=N?.type;return"attachments"===U?[...this._extractFieldNames(N.title),...this._extractFieldNames(N.description)]:"custom"===U?N.outFields||[]:"fields"===U?[...this._extractFieldNames(N.title),...this._extractFieldNames(N.description),...this._getFieldInfoFields(N.fieldInfos??
this.fieldInfos)]:"media"===U?(U=N.mediaInfos||[],[...this._extractFieldNames(N.title),...this._extractFieldNames(N.description),...U.reduce((Z,fa)=>[...Z,...this._getMediaInfoFields(fa)],[])]):"text"===U?this._extractFieldNames(N.text):"relationship"===U||"utility-network-associations"===U?[...this._extractFieldNames(N.title),...this._extractFieldNames(N.description)]:[]}_getMediaInfoFields(N){const {caption:U,title:Z,value:fa}=N,{fields:pa,normalizeField:xa,tooltipField:ra,sourceURL:qa,linkURL:za}=
fa||{};N=[...this._extractFieldNames(Z),...this._extractFieldNames(U),...this._extractFieldNames(qa),...this._extractFieldNames(za),...(pa??[])];xa&&N.push(xa);ra&&N.push(ra);return N}_getContentExpressionInfos(N,U){return Array.isArray(N)?N.reduce((Z,fa)=>[...Z,...("expression"===fa.type&&fa.expressionInfo?[fa.expressionInfo]:[])],U):[]}_getContentFields(N){return"string"===typeof N?this._extractFieldNames(N):Array.isArray(N)?N.reduce((U,Z)=>[...U,...this._getContentElementFields(Z)],[]):[]}async _collectExpressionInfoFields(N,
U,Z){Z&&await Promise.all(Z.map(fa=>l.collectArcadeFieldNames(N,U,fa.expression)))}_getFieldInfoFields(N){return N?N.filter(({fieldName:U,visible:Z})=>(void 0===Z||!!Z)&&!!U&&!U.startsWith("relationships/")&&!U.startsWith("expression/")).map(U=>U.fieldName):[]}_getActionsFields(N){return N?N.toArray().reduce((U,Z)=>[...U,...this._getActionFields(Z)],[]):[]}_getActionFields(N){const {className:U,title:Z,type:fa}=N;N="button"===fa||"toggle"===fa?N.image:"";return[...this._extractFieldNames(Z),...this._extractFieldNames(U),
...this._extractFieldNames(N)]}_getTitleFields(N){return"string"===typeof N?this._extractFieldNames(N):[]}_extractFieldNames(N){return l.extractSubstitutionTemplatesFromString(N).filter(U=>!(0===U.indexOf("relationships/")||0===U.indexOf("expression/")))}};a.__decorate([e.property({type:k})],b.prototype,"actions",void 0);a.__decorate([e.property()],b.prototype,"content",void 0);a.__decorate([g.cast("content")],b.prototype,"castContent",null);a.__decorate([f.reader("content","description fieldInfos popupElements mediaInfos showAttachments relatedRecordsInfo".split(" "))],
b.prototype,"readContent",null);a.__decorate([r.writer("web-scene","content",{popupElements:{type:c.ofType(q.persistableWebSceneTypes)},showAttachments:{type:Boolean},mediaInfos:{type:c.ofType(z.types)},description:{type:String},relatedRecordsInfo:{type:w}})],b.prototype,"writeWebSceneContent",null);a.__decorate([r.writer("content",{popupElements:{type:c.ofType(q.persistableTypes)},showAttachments:{type:Boolean},mediaInfos:{type:c.ofType(z.types)},description:{type:String},relatedRecordsInfo:{type:w}})],
b.prototype,"writeWebMapContent",null);a.__decorate([e.property({type:[x],json:{write:!0}})],b.prototype,"expressionInfos",void 0);a.__decorate([e.property({type:[A]})],b.prototype,"fieldInfos",void 0);a.__decorate([r.writer("fieldInfos")],b.prototype,"writeFieldInfos",null);a.__decorate([e.property({type:u})],b.prototype,"layerOptions",void 0);a.__decorate([r.writer("layerOptions")],b.prototype,"writeLayerOptions",null);a.__decorate([e.property({type:Boolean,json:{read:{source:"showLastEditInfo"},
write:{target:"showLastEditInfo"},default:!0}})],b.prototype,"lastEditInfoEnabled",void 0);a.__decorate([e.property()],b.prototype,"outFields",void 0);a.__decorate([e.property()],b.prototype,"overwriteActions",void 0);a.__decorate([e.property()],b.prototype,"returnGeometry",void 0);a.__decorate([e.property({json:{type:String}})],b.prototype,"title",void 0);a.__decorate([r.writer("title")],b.prototype,"writeTitle",null);return b=a.__decorate([p.subclass("esri.PopupTemplate")],b)})},"esri/popup/content":function(){define("exports ./content/AttachmentsContent ./content/Content ./content/CustomContent ./content/ExpressionContent ./content/FieldsContent ./content/MediaContent ./content/RelationshipContent ./content/TextContent ./content/UtilityNetworkAssociationsContent".split(" "),
function(a,b,c,h,d,n,m,e,g,f){const p={base:null,key:"type",typeMap:{attachment:b,media:m,text:g,expression:d,field:n,relationship:e,utilityNetworkAssociations:f}},r={base:null,key:"type",typeMap:{attachment:b,media:m,text:g,expression:d,field:n,relationship:e}};a.AttachmentsContent=b;a.BaseContent=c;a.CustomContent=h;a.ExpressionContent=d;a.FieldsContent=n;a.MediaContent=m;a.RelationshipContent=e;a.TextContent=g;a.UtilityNetworkAssociationsContent=f;a.isContent=function(t){return t instanceof c};
a.persistableTypes=p;a.persistableWebSceneTypes=r;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/popup/content/AttachmentsContent":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./Content".split(" "),function(a,b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);this.description=null;this.displayType="auto";this.title=null;
this.type="attachments"}clone(){return new e({description:this.description,displayType:this.displayType,title:this.title})}};a.__decorate([b.property({type:String,json:{write:!0}})],c.prototype,"description",void 0);a.__decorate([b.property({type:["auto","preview","list"],json:{write:!0}})],c.prototype,"displayType",void 0);a.__decorate([b.property({type:String,json:{write:!0}})],c.prototype,"title",void 0);a.__decorate([b.property({type:["attachments"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,
"type",void 0);return c=e=a.__decorate([n.subclass("esri.popup.content.AttachmentsContent")],c)})},"esri/popup/content/Content":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m){b=class extends b.JSONSupport{constructor(e){super(e);this.type=null}};a.__decorate([c.property({type:"attachments custom fields media text expression relationship utility-network-associations".split(" "),
readOnly:!0,json:{read:!1,write:!0}})],b.prototype,"type",void 0);return b=a.__decorate([m.subclass("esri.popup.content.Content")],b)})},"esri/popup/content/CustomContent":function(){define("../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ./Content".split(" "),function(a,b,c,h,d,n,m){var e;h=e=class extends m{constructor(g){super(g);this.outFields=this.destroyer=this.creator=null;
this.type="custom"}clone(){return new e({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?b.clone(this.outFields):null})}};a.__decorate([c.property()],h.prototype,"creator",void 0);a.__decorate([c.property()],h.prototype,"destroyer",void 0);a.__decorate([c.property()],h.prototype,"outFields",void 0);a.__decorate([c.property({type:["custom"],readOnly:!0})],h.prototype,"type",void 0);return h=e=a.__decorate([n.subclass("esri.popup.content.CustomContent")],h)})},
"esri/popup/content/ExpressionContent":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../ElementExpressionInfo ./Content".split(" "),function(a,b,c,h,d,n,m,e){var g;c=g=class extends e{constructor(f){super(f);this.expressionInfo=null;this.type="expression"}clone(){return new g({expressionInfo:this.expressionInfo?.clone()})}};a.__decorate([b.property({type:m,
json:{write:!0}})],c.prototype,"expressionInfo",void 0);a.__decorate([b.property({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=g=a.__decorate([n.subclass("esri.popup.content.ExpressionContent")],c)})},"esri/popup/ElementExpressionInfo":function(){define("../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/subclass".split(" "),function(a,
b,c,h,d,n,m){var e;b=e=class extends b.JSONSupport{constructor(g){super(g);this.expression=this.title=null;this.returnType="dictionary"}clone(){return new e({title:this.title,expression:this.expression})}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"title",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"expression",void 0);a.__decorate([c.property({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],b.prototype,"returnType",void 0);return b=
e=a.__decorate([m.subclass("esri.popup.ElementExpressionInfo")],b)})},"esri/popup/content/FieldsContent":function(){define("../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../FieldInfo ./Content".split(" "),function(a,b,c,h,d,n,m,e,g){var f;h=f=class extends g{constructor(p){super(p);this.title=this.fieldInfos=this.description=this.attributes=
null;this.type="fields"}writeFieldInfos(p,r){r.fieldInfos=p&&p.map(t=>t.toJSON())}clone(){return new f(b.clone({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};a.__decorate([c.property({type:Object,json:{write:!0}})],h.prototype,"attributes",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],h.prototype,"description",void 0);a.__decorate([c.property({type:[e]})],h.prototype,"fieldInfos",void 0);a.__decorate([m.writer("fieldInfos")],
h.prototype,"writeFieldInfos",null);a.__decorate([c.property({type:String,json:{write:!0}})],h.prototype,"title",void 0);a.__decorate([c.property({type:["fields"],readOnly:!0,json:{read:!1,write:!0}})],h.prototype,"type",void 0);return h=f=a.__decorate([n.subclass("esri.popup.content.FieldsContent")],h)})},"esri/popup/FieldInfo":function(){define("../chunks/tslib.es6 ../core/jsonMap ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./support/FieldInfoFormat".split(" "),
function(a,b,c,h,d,n,m,e,g,f){var p;c=p=class extends c.JSONSupport{constructor(r){super(r);this.fieldName=null;this.format=void 0;this.isEditable=!0;this.label=null;this.stringFieldOption="text-box";this.tooltip=this.statisticType=null;this.visible=!0}clone(){return new p({fieldName:this.fieldName,format:this.format?.clone(),isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};a.__decorate([h.property({type:String,
json:{write:!0}})],c.prototype,"fieldName",void 0);a.__decorate([h.property({type:f,json:{write:!0}})],c.prototype,"format",void 0);a.__decorate([h.property({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],c.prototype,"isEditable",void 0);a.__decorate([h.property({type:String,json:{write:!0}})],c.prototype,"label",void 0);a.__decorate([e.enumeration(new b.JSONMap({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",
void 0);a.__decorate([h.property({type:"count sum min max avg stddev var".split(" "),json:{write:!0}})],c.prototype,"statisticType",void 0);a.__decorate([h.property({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0);a.__decorate([h.property({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0);return c=p=a.__decorate([g.subclass("esri.popup.FieldInfo")],c)})},"esri/popup/support/FieldInfoFormat":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ../../intl/date".split(" "),
function(a,b,c,h,d,n,m,e,g,f){b=class extends b.ClonableMixin(c.JSONSupport){constructor(p){super(p);this.dateFormat=null;this.digitSeparator=!1;this.places=null}};a.__decorate([e.enumeration(f.dateFormatJSONMap)],b.prototype,"dateFormat",void 0);a.__decorate([h.property({type:Boolean,json:{write:!0}})],b.prototype,"digitSeparator",void 0);a.__decorate([h.property({type:d.Integer,json:{write:!0}})],b.prototype,"places",void 0);return b=a.__decorate([g.subclass("esri.popup.support.FieldInfoFormat")],
b)})},"esri/popup/content/MediaContent":function(){define("../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./BarChartMediaInfo ./ColumnChartMediaInfo ./Content ./ImageMediaInfo ./LineChartMediaInfo ./PieChartMediaInfo ./support/mediaInfoTypes".split(" "),function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q){var x;
h=x=class extends p{constructor(A){super(A);this.title=this.mediaInfos=this.description=this.attributes=this.activeMediaInfoIndex=null;this.type="media"}readMediaInfos(A){return A&&A.map(u=>{if("image"===u.type)return r.fromJSON(u);if("barchart"===u.type)return g.fromJSON(u);if("columnchart"===u.type)return f.fromJSON(u);if("linechart"===u.type)return t.fromJSON(u);if("piechart"===u.type)return l.fromJSON(u)}).filter(Boolean)}writeMediaInfos(A,u){u.mediaInfos=A&&A.map(w=>w.toJSON())}clone(){return new x(b.clone({activeMediaInfoIndex:this.activeMediaInfoIndex,
attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};a.__decorate([c.property()],h.prototype,"activeMediaInfoIndex",void 0);a.__decorate([c.property({type:Object,json:{write:!0}})],h.prototype,"attributes",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],h.prototype,"description",void 0);a.__decorate([c.property({types:[q.types]})],h.prototype,"mediaInfos",void 0);a.__decorate([n.reader("mediaInfos")],h.prototype,"readMediaInfos",
null);a.__decorate([e.writer("mediaInfos")],h.prototype,"writeMediaInfos",null);a.__decorate([c.property({type:String,json:{write:!0}})],h.prototype,"title",void 0);a.__decorate([c.property({type:["media"],readOnly:!0,json:{read:!1,write:!0}})],h.prototype,"type",void 0);return h=x=a.__decorate([m.subclass("esri.popup.content.MediaContent")],h)})},"esri/popup/content/BarChartMediaInfo":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "),
function(a,b,c,h,d,n,m,e){var g;c=g=class extends m{constructor(f){super(f);this.type="bar-chart"}clone(){return new g({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};a.__decorate([b.property({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:e.chartTypeKebabDict.write}})],c.prototype,"type",void 0);return c=g=a.__decorate([n.subclass("esri.popup.content.BarChartMediaInfo")],c)})},"esri/popup/content/mixins/ChartMediaInfo":function(){define("../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass ./MediaInfo ../support/ChartMediaInfoValue".split(" "),
function(a,b,c,h,d,n,m,e){c=class extends m{constructor(g){super(g);this.type=null;this.value=void 0}};a.__decorate([b.property({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0);a.__decorate([b.property({type:e,json:{write:!0}})],c.prototype,"value",void 0);return c=a.__decorate([n.subclass("esri.popup.content.mixins.ChartMediaInfo")],c)})},"esri/popup/content/mixins/MediaInfo":function(){define("../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m){b=class extends b.JSONSupport{constructor(e){super(e);this.altText=null;this.title=this.caption="";this.type=null}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"altText",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"caption",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"title",void 0);a.__decorate([c.property({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,
json:{read:!1,write:!0}})],b.prototype,"type",void 0);return b=a.__decorate([m.subclass("esri.popup.content.mixins.MediaInfo")],b)})},"esri/popup/content/support/ChartMediaInfoValue":function(){define("../../../chunks/tslib.es6 ../../../Color ../../../core/JSONSupport ../../../core/lang ../../../core/accessorSupport/decorators/property ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./ChartMediaInfoValueSeries".split(" "),function(a,b,c,h,d,n,m,e){var g;
c=g=class extends c.JSONSupport{constructor(f){super(f);this.colors=null;this.fields=[];this.normalizeField=null;this.series=[];this.tooltipField=null}clone(){return new g({colors:h.clone(this.colors),fields:h.clone(this.fields),normalizeField:this.normalizeField,series:h.clone(this.series),tooltipField:this.tooltipField})}};a.__decorate([d.property({type:[b],json:{type:[[n.Integer]],write:!0}})],c.prototype,"colors",void 0);a.__decorate([d.property({type:[String],json:{write:!0}})],c.prototype,"fields",
void 0);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"normalizeField",void 0);a.__decorate([d.property({type:[e],json:{read:!1}})],c.prototype,"series",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"tooltipField",void 0);return c=g=a.__decorate([m.subclass("esri.popup.content.support.ChartMediaInfoValue")],c)})},"esri/popup/content/support/ChartMediaInfoValueSeries":function(){define("../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m){var e;b=e=class extends b{constructor(g){super(g);this.value=this.tooltip=this.fieldName=this.color=null}clone(){return new e({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};a.__decorate([c.property()],b.prototype,"color",void 0);a.__decorate([c.property()],b.prototype,"fieldName",void 0);a.__decorate([c.property()],b.prototype,"tooltip",void 0);a.__decorate([c.property()],b.prototype,"value",void 0);return b=e=a.__decorate([m.subclass("esri.popup.content.support.ChartMediaInfoValueSeries")],
b)})},"esri/popup/content/support/chartMediaInfoUtils":function(){define(["exports","../../../core/jsonMap"],function(a,b){b=b.strict()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});a.chartTypeKebabDict=b;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/popup/content/ColumnChartMediaInfo":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "),
function(a,b,c,h,d,n,m,e){var g;c=g=class extends m{constructor(f){super(f);this.type="column-chart"}clone(){return new g({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};a.__decorate([b.property({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:e.chartTypeKebabDict.write}})],c.prototype,"type",void 0);return c=g=a.__decorate([n.subclass("esri.popup.content.ColumnChartMediaInfo")],c)})},"esri/popup/content/ImageMediaInfo":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./mixins/MediaInfo ./support/ImageMediaInfoValue".split(" "),
function(a,b,c,h,d,n,m,e){var g;c=g=class extends m{constructor(f){super(f);this.refreshInterval=0;this.type="image";this.value=void 0}clone(){return new g({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};a.__decorate([b.property({type:Number,json:{write:!0}})],c.prototype,"refreshInterval",void 0);a.__decorate([b.property({type:["image"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0);a.__decorate([b.property({type:e,
json:{write:!0}})],c.prototype,"value",void 0);return c=g=a.__decorate([n.subclass("esri.popup.content.ImageMediaInfo")],c)})},"esri/popup/content/support/ImageMediaInfoValue":function(){define("../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m){var e;b=e=class extends b.JSONSupport{constructor(g){super(g);
this.sourceURL=this.linkURL=null}clone(){return new e({linkURL:this.linkURL,sourceURL:this.sourceURL})}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"linkURL",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"sourceURL",void 0);return b=e=a.__decorate([m.subclass("esri.popup.content.support.ImageMediaInfoValue")],b)})},"esri/popup/content/LineChartMediaInfo":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "),
function(a,b,c,h,d,n,m,e){var g;c=g=class extends m{constructor(f){super(f);this.type="line-chart"}clone(){return new g({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};a.__decorate([b.property({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:e.chartTypeKebabDict.write}})],c.prototype,"type",void 0);return c=g=a.__decorate([n.subclass("esri.popup.content.LineChartMediaInfo")],c)})},"esri/popup/content/PieChartMediaInfo":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "),
function(a,b,c,h,d,n,m,e){var g;c=g=class extends m{constructor(f){super(f);this.type="pie-chart"}clone(){return new g({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};a.__decorate([b.property({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:e.chartTypeKebabDict.write}})],c.prototype,"type",void 0);return c=g=a.__decorate([n.subclass("esri.popup.content.PieChartMediaInfo")],c)})},"esri/popup/content/support/mediaInfoTypes":function(){define("exports ../BarChartMediaInfo ../ColumnChartMediaInfo ../ImageMediaInfo ../LineChartMediaInfo ../PieChartMediaInfo ../mixins/MediaInfo".split(" "),
function(a,b,c,h,d,n,m){a.types={base:m,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":b,"column-chart":c,"line-chart":d,"pie-chart":n,image:h}};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/popup/content/RelationshipContent":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass ./Content ../support/RelatedRecordsInfoFieldOrder".split(" "),
function(a,b,c,h,d,n,m,e,g){b=class extends b.ClonableMixin(e){constructor(f){super(f);this.displayCount=this.description=null;this.displayType="list";this.title=this.relationshipId=this.orderByFields=null;this.type="relationship"}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"description",void 0);a.__decorate([c.property({type:Number,json:{type:h.Integer,write:!0}})],b.prototype,"displayCount",void 0);a.__decorate([c.property({type:["list"],json:{write:!0}})],b.prototype,
"displayType",void 0);a.__decorate([c.property({type:[g],json:{write:!0}})],b.prototype,"orderByFields",void 0);a.__decorate([c.property({type:Number,json:{type:h.Integer,write:!0}})],b.prototype,"relationshipId",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"title",void 0);a.__decorate([c.property({type:["relationship"],readOnly:!0,json:{read:!1,write:!0}})],b.prototype,"type",void 0);return b=a.__decorate([m.subclass("esri.popup.content.RelationshipContent")],b)})},
"esri/popup/support/RelatedRecordsInfoFieldOrder":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m){var e;b=e=class extends b.JSONSupport{constructor(g){super(g);this.order=this.field=null}clone(){return new e({field:this.field,order:this.order})}};a.__decorate([c.property({type:String,json:{write:!0}})],
b.prototype,"field",void 0);a.__decorate([c.property({type:["asc","desc"],json:{write:!0}})],b.prototype,"order",void 0);return b=e=a.__decorate([m.subclass("esri.popup.support.RelatedRecordsInfoFieldOrder")],b)})},"esri/popup/content/TextContent":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./Content".split(" "),function(a,b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);
this.text=null;this.type="text"}clone(){return new e({text:this.text})}};a.__decorate([b.property({type:String,json:{write:!0}})],c.prototype,"text",void 0);a.__decorate([b.property({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=e=a.__decorate([n.subclass("esri.popup.content.TextContent")],c)})},"esri/popup/content/UtilityNetworkAssociationsContent":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Content ../support/UtilityNetworkAssociationType".split(" "),
function(a,b,c,h,d,n,m,e,g,f){b=class extends b.ClonableMixin(g){constructor(p){super(p);this.title=this.description=null;this.associationTypes=[];this.type="utility-network-associations"}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"description",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"title",void 0);a.__decorate([c.property({type:[f],json:{write:!0}})],b.prototype,"associationTypes",void 0);a.__decorate([m.enumeration({utilityNetworkAssociations:"utility-network-associations"})],
b.prototype,"type",void 0);return b=a.__decorate([e.subclass("esri.popup.content.UtilityNetworkAssociationsContent")],b)})},"esri/popup/support/UtilityNetworkAssociationType":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m,e){b=class extends b.ClonableMixin(c.JSONSupport){constructor(g){super(g);
this.type=this.description=this.title=null;this.open=!1;this.associatedAssetType=this.associatedAssetGroup=this.associatedNetworkSourceId=null}};a.__decorate([h.property({type:String,json:{write:!0}})],b.prototype,"title",void 0);a.__decorate([h.property({type:String,json:{write:!0}})],b.prototype,"description",void 0);a.__decorate([h.property({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],b.prototype,"type",void 0);a.__decorate([h.property({type:Boolean,
json:{read:!1}})],b.prototype,"open",void 0);a.__decorate([h.property({type:Number,json:{type:d.Integer,write:!0}})],b.prototype,"associatedNetworkSourceId",void 0);a.__decorate([h.property({type:Number,json:{type:d.Integer,write:!0}})],b.prototype,"associatedAssetGroup",void 0);a.__decorate([h.property({type:Number,json:{type:d.Integer,write:!0}})],b.prototype,"associatedAssetType",void 0);return b=a.__decorate([e.subclass("esri.popup.support.UtilityNetworkAssociationType")],b)})},"esri/popup/ExpressionInfo":function(){define("../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m){var e;b=e=class extends b.JSONSupport{constructor(g){super(g);this.returnType=this.expression=this.title=this.name=null}clone(){return new e({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"name",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"title",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"expression",
void 0);a.__decorate([c.property({type:["string","number"],json:{write:!0}})],b.prototype,"returnType",void 0);return b=e=a.__decorate([m.subclass("esri.popup.ExpressionInfo")],b)})},"esri/popup/LayerOptions":function(){define("../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m){var e;b=e=class extends b.JSONSupport{constructor(g){super(g);this.showNoDataRecords=
this.returnTopmostRaster=null}clone(){return new e({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};a.__decorate([c.property({type:Boolean,json:{write:!0}})],b.prototype,"returnTopmostRaster",void 0);a.__decorate([c.property({type:Boolean,json:{write:!0}})],b.prototype,"showNoDataRecords",void 0);return b=e=a.__decorate([m.subclass("esri.popup.LayerOptions")],b)})},"esri/popup/RelatedRecordsInfo":function(){define("../chunks/tslib.es6 ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/subclass ./support/RelatedRecordsInfoFieldOrder".split(" "),
function(a,b,c,h,d,n,m,e){var g;b=g=class extends b.JSONSupport{constructor(f){super(f);this.orderByFields=this.showRelatedRecords=null}clone(){return new g({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?c.clone(this.orderByFields):null})}};a.__decorate([h.property({type:Boolean,json:{write:!0}})],b.prototype,"showRelatedRecords",void 0);a.__decorate([h.property({type:[e],json:{write:!0}})],b.prototype,"orderByFields",void 0);return b=g=a.__decorate([m.subclass("esri.popup.RelatedRecordsInfo")],
b)})},"esri/support/actions/ActionBase":function(){define("../../chunks/tslib.es6 ../../core/Accessor ../../core/Identifiable ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m,e){var g;b=g=class extends c.IdentifiableMixin(b){constructor(f){super(f);this.active=!1;this.className=null;this.disabled=!1;this.id=this.icon=null;this.indicator=!1;this.type=this.title=null;
this.visible=!0}clone(){return new g({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};a.__decorate([h.property()],b.prototype,"active",void 0);a.__decorate([h.property()],b.prototype,"className",void 0);a.__decorate([h.property()],b.prototype,"disabled",void 0);a.__decorate([h.property()],b.prototype,"icon",void 0);a.__decorate([h.property()],b.prototype,"id",void 0);a.__decorate([h.property()],
b.prototype,"indicator",void 0);a.__decorate([h.property()],b.prototype,"title",void 0);a.__decorate([h.property()],b.prototype,"type",void 0);a.__decorate([h.property()],b.prototype,"visible",void 0);return b=g=a.__decorate([e.subclass("esri.support.actions.ActionBase")],b)})},"esri/support/actions/ActionButton":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./ActionBase".split(" "),
function(a,b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);this.image=null;this.type="button"}clone(){return new e({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};a.__decorate([b.property()],c.prototype,"image",void 0);return c=e=a.__decorate([n.subclass("esri.support.actions.ActionButton")],c)})},"esri/support/actions/ActionToggle":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./ActionBase".split(" "),
function(a,b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);this.image=null;this.type="toggle";this.value=!1}clone(){return new e({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};a.__decorate([b.property()],c.prototype,"image",void 0);a.__decorate([b.property()],c.prototype,"value",void 0);return c=e=a.__decorate([n.subclass("esri.support.actions.ActionToggle")],
c)})},"esri/renderers/ClassBreaksRenderer":function(){define("../chunks/tslib.es6 ../symbols ../core/jsonMap ../core/lang ../core/Logger ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/ensureType ../layers/support/fieldUtils ./Renderer ./mixins/VisualVariablesMixin ./support/ClassBreakInfo ./support/commonProperties ./support/RendererLegendOptions ../support/arcadeOnDemand".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u,w){var z;c=new c.JSONMap({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});const k=r.ensureType(x);l=z=class extends q.VisualVariablesMixin(l){constructor(v){super(v);this._compiledValueExpression={valueExpression:null,compiledFunction:null};this.field=this.defaultSymbol=this.defaultLabel=this.classBreakInfos=this.backgroundFillSymbol=null;this.isMaxInclusive=!0;this.normalizationTotal=this.normalizationField=
this.legendOptions=null;this.type="class-breaks";this.valueExpressionTitle=this.valueExpression=null;this._set("classBreakInfos",[])}readClassBreakInfos(v,y,B){if(Array.isArray(v)){var C=y.minValue;return v.map(L=>{const M=new x;M.read(L,B);null==M.minValue&&(M.minValue=C);null==M.maxValue&&(M.maxValue=M.minValue);C=M.maxValue;return M})}}writeClassBreakInfos(v,y,B,C){v=v.map(L=>L.write({},C));this._areClassBreaksConsecutive()&&v.forEach(L=>delete L.classMinValue);y[B]=v}castField(v){return null==
v?v:"function"===typeof v?(d.getLogger(this).error(".field: field must be a string value"),null):r.ensureString(v)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let v=this._get("normalizationType");const y=!!this.normalizationField,B=null!=this.normalizationTotal;if(y||B)v=y&&"field"||B&&"percent-of-total"||null,y&&B&&d.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!");else if("field"===
v||"percent-of-total"===v)v=null;return v}set normalizationType(v){this._set("normalizationType",v)}addClassBreakInfo(v,y,B){let C=null;C="number"===typeof v?new x({minValue:v,maxValue:y,symbol:b.ensureType(B)}):k(h.clone(v));this.classBreakInfos.push(C);1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(v,y){const B=this.classBreakInfos.length;for(let C=0;C{y.symbol&&v.push(y.symbol)});this.defaultSymbol&&
v.push(this.defaultSymbol);return v}getAttributeHash(){return this.visualVariables?.reduce((v,y)=>v+y.getAttributeHash(),"")??""}getMeshHash(){const v=JSON.stringify(this.backgroundFillSymbol),y=JSON.stringify(this.defaultSymbol),B=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`,C=this.classBreakInfos.reduce((L,M)=>L+M.getMeshHash(),"");return`${v}.${y}.${C}.${B}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||
!!this.valueExpression}clone(){return new z({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol?.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol?.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:h.clone(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:h.clone(this.visualVariables),
legendOptions:h.clone(this.legendOptions),authoringInfo:h.clone(this.authoringInfo)})}async collectRequiredFields(v,y){v=[this.collectVVRequiredFields(v,y),this.collectSymbolFields(v,y)];await Promise.all(v)}async collectSymbolFields(v,y){const B=[...this.getSymbols().map(C=>C.collectRequiredFields(v,y)),t.collectArcadeFieldNames(v,y,this.valueExpression)];t.collectField(v,y,this.field);t.collectField(v,y,this.normalizationField);await Promise.all(B)}_getBreakIndexForExpression(v,y){const {viewingMode:B,
scale:C,spatialReference:L,arcade:M,timeZone:G}=y??{};({valueExpression:y}=this);var E=this._compiledValueExpression.valueExpression===y?this._compiledValueExpression.compiledFunction:null;const F=M.arcadeUtils;E||(E=F.createSyntaxTree(y),E=F.createFunction(E),this._compiledValueExpression.compiledFunction=E);this._compiledValueExpression.valueExpression=y;v=F.executeFunction(E,F.createExecContext(v,F.getViewInfo({viewingMode:B,scale:C,spatialReference:L}),G));return this._getBreakIndexfromInfos(v)}_getBreakIndexForField(v){var y=
v.attributes;v=this.normalizationType;let B=parseFloat(y[this.field]);if(v){const C=this.normalizationTotal;y=parseFloat(this.normalizationField?y[this.normalizationField]:void 0);if("log"===v)B=Math.log(B)*Math.LOG10E;else if("percent-of-total"===v&&null!=C&&!isNaN(C))B=B/C*100;else if("field"===v&&!isNaN(y)){if(isNaN(B)||isNaN(y))return-1;B/=y}}return this._getBreakIndexfromInfos(B)}_getBreakIndexfromInfos(v){const y=this.isMaxInclusive;if(null!=v&&"number"===typeof v&&!isNaN(v))for(let B=0;B(A=A.valueExpressionInfo)?p.collectArcadeFieldNames(l,q,A.expression):null),await Promise.all(x))}}clone(){return new t({data:b.clone(this.data)})}hash(){return c.numericHash(JSON.stringify(this.data)).toString()}};
a.__decorate([h.property({json:{write:!1}})],d.prototype,"color",void 0);a.__decorate([h.property({json:{write:!0}})],d.prototype,"data",void 0);a.__decorate([e.reader("data",["symbol"])],d.prototype,"readData",null);a.__decorate([f.writer("data",{})],d.prototype,"writeData",null);a.__decorate([m.enumeration({CIMSymbolReference:"cim"},{readOnly:!0})],d.prototype,"type",void 0);return d=t=a.__decorate([g.subclass("esri.symbols.CIMSymbol")],d)})},"esri/symbols/Symbol":function(){define("../chunks/tslib.es6 ../Color ../core/jsonMap ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e,g,f){c=new c.JSONMap({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let p=0;h=class extends h.JSONSupport{constructor(r){super(r);this.id=`sym${p++}`;this.type=null;this.color=new b([0,
0,0,1])}readColor(r){return null!=r?.[0]?[r[0],r[1],r[2],r[3]/255]:r}async collectRequiredFields(r,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};a.__decorate([d.property({type:c.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:c.write}}})],h.prototype,"type",void 0);a.__decorate([d.property({type:b,json:{write:{allowNull:!0}}})],h.prototype,"color",void 0);a.__decorate([g.reader("color")],h.prototype,"readColor",null);return h=a.__decorate([f.subclass("esri.symbols.Symbol")],
h)})},"esri/symbols/ExtrudeSymbol3DLayer":function(){define("../chunks/tslib.es6 ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./edges/utils ./support/Symbol3DMaterial".split(" "),function(a,b,c,h,d,n,m,e,g,f){var p;c=p=class extends e{constructor(r){super(r);this.type="extrude";this.size=1;this.material=null;this.castShadows=!0;this.edges=null}clone(){return new p({edges:this.edges?.clone(),
enabled:this.enabled,material:this.material?.clone(),castShadows:this.castShadows,size:this.size})}};a.__decorate([n.enumeration({Extrude:"extrude"},{readOnly:!0})],c.prototype,"type",void 0);a.__decorate([b.property({type:Number,json:{write:{enabled:!0,isRequired:!0}},nonNullable:!0})],c.prototype,"size",void 0);a.__decorate([b.property({type:f.Symbol3DMaterial,json:{write:!0}})],c.prototype,"material",void 0);a.__decorate([b.property({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],c.prototype,
"castShadows",void 0);a.__decorate([b.property(g.symbol3dEdgesProperty)],c.prototype,"edges",void 0);return c=p=a.__decorate([m.subclass("esri.symbols.ExtrudeSymbol3DLayer")],c)})},"esri/symbols/Symbol3DLayer":function(){define("../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer".split(" "),function(a,b,c,h,d,n,m,e){b=class extends b.JSONSupport{constructor(g){super(g);
this.enabled=!0;this.type=null;this.ignoreDrivers=!1}writeEnabled(g,f,p){g||(f[p]=g)}};a.__decorate([c.property({type:Boolean,json:{read:{source:"enable"},write:{target:"enable"}}})],b.prototype,"enabled",void 0);a.__decorate([e.writer("enabled")],b.prototype,"writeEnabled",null);a.__decorate([c.property({type:"icon object line path fill water extrude text".split(" "),readOnly:!0})],b.prototype,"type",void 0);return b=a.__decorate([m.subclass("esri.symbols.Symbol3DLayer")],b)})},"esri/symbols/edges/utils":function(){define(["exports",
"./Edges3D","./SketchEdges3D","./SolidEdges3D"],function(a,b,c,h){a.symbol3dEdgesProperty={types:{key:"type",base:b,typeMap:{solid:h,sketch:c}},json:{write:!0}};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/edges/Edges3D":function(){define("../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/lang ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ../support/materialUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f){c=class extends c.JSONSupport{constructor(p){super(p);this.color=new b([0,0,0,1]);this.extensionLength=0;this.size=d.px2pt(1)}clone(){}cloneProperties(){return{color:h.clone(this.color),size:this.size,extensionLength:this.extensionLength}}};a.__decorate([n.property({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],c.prototype,"type",void 0);a.__decorate([n.property(f.colorAndTransparencyProperty)],c.prototype,"color",void 0);a.__decorate([n.property({...f.screenSizeProperty,
json:{write:{overridePolicy(p){return{enabled:!!p}}}}})],c.prototype,"extensionLength",void 0);a.__decorate([n.property(f.screenSizeProperty)],c.prototype,"size",void 0);return c=a.__decorate([g.subclass("esri.symbols.edges.Edges3D")],c)})},"esri/symbols/support/materialUtils":function(){define(["exports","../../Color","../../core/screenUtils","../../core/accessorSupport/ensureType","../../webdoc/support/opacityUtils"],function(a,b,c,h,d){c={type:Number,cast:c.toPt,json:{write:!0}};a.colorAndTransparencyProperty=
{type:b,json:{type:[h.Integer],default:null,read:{source:["color","transparency"],reader:function(n,m){n=null!=m.transparency?d.transparencyToOpacity(m.transparency):1;return(m=m.color)&&Array.isArray(m)?new b([m[0]||0,m[1]||0,m[2]||0,n]):null}},write:{target:{color:{type:[h.Integer]},transparency:{type:h.Integer}},writer:function(n,m){m.color=n.toJSON().slice(0,3);n=d.opacityToTransparency(n.a);0!==n&&(m.transparency=n)}}}};a.screenSizeProperty=c;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},
"esri/symbols/edges/SketchEdges3D":function(){define("../../chunks/tslib.es6 ../../core/Logger ../../core/has ../../core/RandomLCG ../../core/Error ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Edges3D".split(" "),function(a,b,c,h,d,n,m,e){var g;b=g=class extends e{constructor(f){super(f);this.type="sketch"}clone(){return new g(this.cloneProperties())}};a.__decorate([n.enumeration({sketch:"sketch"},{readOnly:!0})],b.prototype,"type",void 0);return b=
g=a.__decorate([m.subclass("esri.symbols.edges.SketchEdges3D")],b)})},"esri/symbols/edges/SolidEdges3D":function(){define("../../chunks/tslib.es6 ../../core/Logger ../../core/has ../../core/RandomLCG ../../core/Error ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Edges3D".split(" "),function(a,b,c,h,d,n,m,e){var g;b=g=class extends e{constructor(f){super(f);this.type="solid"}clone(){return new g(this.cloneProperties())}};a.__decorate([n.enumeration({solid:"solid"},
{readOnly:!0})],b.prototype,"type",void 0);return b=g=a.__decorate([m.subclass("esri.symbols.edges.SolidEdges3D")],b)})},"esri/symbols/support/Symbol3DMaterial":function(){define("exports ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../core/libs/gl-matrix-2/factories/vec3f64 ./materialUtils".split(" "),function(a,b,c,h,d,n,m,e,g,f){var p;a.Symbol3DMaterial=
p=class extends c.JSONSupport{constructor(r){super(r);this.emissiveFactor=this.color=null}clone(){const r={color:this.color?.clone()??null,emissiveFactor:this.emissiveFactor?g.clone(this.emissiveFactor):null};return new p(r)}};b.__decorate([h.property(f.colorAndTransparencyProperty)],a.Symbol3DMaterial.prototype,"color",void 0);b.__decorate([h.property({type:[Number],json:{write:!1}})],a.Symbol3DMaterial.prototype,"emissiveFactor",void 0);a.Symbol3DMaterial=p=b.__decorate([e.subclass("esri.symbols.support.Symbol3DMaterial")],
a.Symbol3DMaterial);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/FillSymbol":function(){define("../chunks/tslib.es6 ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/subclass ./SimpleLineSymbol ./Symbol".split(" "),function(a,b,c,h,d,n,m,e){c=class extends e{constructor(g){super(g);this.type=this.outline=null}hash(){return`${this.type}.${this.outline?.hash()}`}};a.__decorate([b.property({types:{key:"type",
base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":m}},json:{default:null,write:!0}})],c.prototype,"outline",void 0);a.__decorate([b.property({type:["simple-fill","picture-fill"],readOnly:!0})],c.prototype,"type",void 0);return c=a.__decorate([n.subclass("esri.symbols.FillSymbol")],c)})},"esri/symbols/SimpleLineSymbol":function(){define("../chunks/tslib.es6 ../core/jsonMap ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./LineSymbol ./LineSymbolMarker".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p){var r;b=new b.JSONMap({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});f=r=class extends f{constructor(...t){super(...t);this.type="simple-line";this.style="solid";this.join=
this.cap="round";this.marker=null;this.miterLimit=2}normalizeCtorArgs(t,l,q,x,A,u){if(t&&"string"!==typeof t)return t;const w={};null!=t&&(w.style=t);null!=l&&(w.color=l);null!=q&&(w.width=h.toPt(q));null!=x&&(w.cap=x);null!=A&&(w.join=A);null!=u&&(w.miterLimit=h.toPt(u));return w}clone(){return new r({color:c.clone(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};
a.__decorate([e.enumeration({esriSLS:"simple-line"},{readOnly:!0})],f.prototype,"type",void 0);a.__decorate([d.property({type:b.apiValues,json:{read:b.read,write:b.write}})],f.prototype,"style",void 0);a.__decorate([d.property({type:["butt","round","square"],json:{write:{overridePolicy:(t,l,q)=>({enabled:"round"!==t&&null==q?.origin})}}})],f.prototype,"cap",void 0);a.__decorate([d.property({type:["miter","round","bevel"],json:{write:{overridePolicy:(t,l,q)=>({enabled:"round"!==t&&null==q?.origin})}}})],
f.prototype,"join",void 0);a.__decorate([d.property({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":p}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],f.prototype,"marker",void 0);a.__decorate([d.property({type:Number,json:{read:!1,write:!1}})],f.prototype,"miterLimit",void 0);return f=r=a.__decorate([g.subclass("esri.symbols.SimpleLineSymbol")],f)})},"esri/symbols/LineSymbol":function(){define("../chunks/tslib.es6 ../core/screenUtils ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol".split(" "),
function(a,b,c,h,d,n,m,e,g){h=class extends g{constructor(f){super(f);this.type="simple-line";this.width=.75}hash(){return`${this.type}.${this.width}`}};a.__decorate([m.enumeration({esriSLS:"simple-line"},{readOnly:!0})],h.prototype,"type",void 0);a.__decorate([c.property({type:Number,cast:b.toPt,json:{write:!0}})],h.prototype,"width",void 0);return h=a.__decorate([e.subclass("esri.symbols.LineSymbol")],h)})},"esri/symbols/LineSymbolMarker":function(){define("../chunks/tslib.es6 ../Color ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./support/lineMarkers".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r){var t;c=t=class extends c.JSONSupport{constructor(l){super(l);this.placement="begin-end";this.type="line-marker";this.style="arrow"}writeStyle(l,q,x,A){q[x]="web-map"===A?.origin?"arrow":l}set color(l){this._set("color",l)}readColor(l){return null!=l?.[0]?[l[0],l[1],l[2],l[3]/255]:l}writeColor(l,q,x,A){"web-map"!==A?.origin&&(q[x]=l)}clone(){return new t({color:h.clone(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};
a.__decorate([d.property({type:["begin","end","begin-end"],json:{write:!0}})],c.prototype,"placement",void 0);a.__decorate([e.enumeration({"line-marker":"line-marker"},{readOnly:!0}),d.property({json:{origins:{"web-map":{write:!1}}}})],c.prototype,"type",void 0);a.__decorate([d.property({type:r.lineMarkerStyles})],c.prototype,"style",void 0);a.__decorate([p.writer("style")],c.prototype,"writeStyle",null);a.__decorate([d.property({type:b,value:null,json:{write:{allowNull:!0}}})],c.prototype,"color",
null);a.__decorate([g.reader("color")],c.prototype,"readColor",null);a.__decorate([p.writer("color")],c.prototype,"writeColor",null);return c=t=a.__decorate([f.subclass("esri.symbols.LineSymbolMarker")],c)})},"esri/symbols/support/lineMarkers":function(){define(["exports"],function(a){a.lineMarkerPlacements=["begin","end","begin-end"];a.lineMarkerStyles="arrow circle square diamond cross x".split(" ");Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/FillSymbol3DLayer":function(){define("../chunks/tslib.es6 ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./edges/utils ./patterns/LineStylePattern3D ./patterns/StylePattern3D ./patterns/utils ./support/colors ./support/Symbol3DFillMaterial ./support/Symbol3DOutline".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q){var x;c=x=class extends e{constructor(A){super(A);this.type="fill";this.pattern=this.material=null;this.castShadows=!0;this.edges=this.outline=null}clone(){const A={edges:null!=this.edges?this.edges.clone():null,enabled:this.enabled,material:null!=this.material?this.material.clone():null,pattern:null!=this.pattern?this.pattern.clone():null,castShadows:this.castShadows,outline:null!=this.outline?this.outline.clone():null};return new x(A)}static fromSimpleFillSymbol(A){const u=
A.outline&&A.outline.style&&"solid"!==A.outline.style?new f({style:A.outline.style}):null,w={size:A.outline?.width??0,color:(A.outline?.color??t.white).clone(),pattern:u};u&&A.outline?.cap&&(w.patternCap=A.outline.cap);return new x({material:new l.Symbol3DFillMaterial({color:(A.color??t.transparentWhite).clone()}),pattern:A.style&&"solid"!==A.style?new p({style:A.style}):null,outline:w})}};a.__decorate([n.enumeration({Fill:"fill"},{readOnly:!0})],c.prototype,"type",void 0);a.__decorate([b.property({type:l.Symbol3DFillMaterial,
json:{write:!0}})],c.prototype,"material",void 0);a.__decorate([b.property(r.symbol3dPatternProperty)],c.prototype,"pattern",void 0);a.__decorate([b.property({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],c.prototype,"castShadows",void 0);a.__decorate([b.property({type:q.Symbol3DOutline,json:{write:!0}})],c.prototype,"outline",void 0);a.__decorate([b.property(g.symbol3dEdgesProperty)],c.prototype,"edges",void 0);return c=x=a.__decorate([m.subclass("esri.symbols.FillSymbol3DLayer")],c)})},
"esri/symbols/patterns/LineStylePattern3D":function(){define("../../chunks/tslib.es6 ../../core/jsonMap ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./LinePattern3D ./lineStyles".split(" "),function(a,b,c,h,d,n,m,e,g,f){var p;b=b.strict()({dash:"dash","dash-dot":"dash-dot","dash-dot-dot":"long-dash-dot-dot",dot:"dot","long-dash":"long-dash","long-dash-dot":"long-dash-dot",
null:"none","short-dash":"short-dash","short-dash-dot":"short-dash-dot","short-dash-dot-dot":"short-dash-dot-dot","short-dot":"short-dot",solid:"solid"});g=p=class extends g{constructor(r){super(r);this.type="style";this.style="solid"}clone(){return new p({style:this.style})}};a.__decorate([c.property({type:["style"]})],g.prototype,"type",void 0);a.__decorate([m.enumeration(b),c.property({type:f.lineStyles})],g.prototype,"style",void 0);return g=p=a.__decorate([e.subclass("esri.symbols.patterns.LineStylePattern3D")],
g)})},"esri/symbols/patterns/LinePattern3D":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m){b=class extends b.JSONSupport{constructor(e){super(e)}clone(){throw Error("Subclasses of LinePattern3D should implement their own clone method.");}};a.__decorate([c.property({type:["style"],readOnly:!0,json:{read:!0,
write:{ignoreOrigin:!0}}})],b.prototype,"type",void 0);return b=a.__decorate([m.subclass("esri.symbols.patterns.LinePattern3D")],b)})},"esri/symbols/patterns/lineStyles":function(){define(["exports"],function(a){a.lineStyles="dash dash-dot dot long-dash long-dash-dot long-dash-dot-dot none short-dash short-dash-dot short-dash-dot-dot short-dot solid".split(" ");Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/patterns/StylePattern3D":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./Pattern3D ./styles".split(" "),
function(a,b,c,h,d,n,m,e){var g;c=g=class extends m{constructor(f){super(f);this.type="style";this.style="solid"}clone(){return new g({style:this.style})}};a.__decorate([b.property({type:["style"]})],c.prototype,"type",void 0);a.__decorate([b.property({type:e,json:{read:!0,write:!0}})],c.prototype,"style",void 0);return c=g=a.__decorate([n.subclass("esri.symbols.patterns.StylePattern3D")],c)})},"esri/symbols/patterns/Pattern3D":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m){b=class extends b.JSONSupport{constructor(e){super(e);this.type="style"}clone(){throw Error("Subclasses of Pattern3D should implement their own clone method.");}};a.__decorate([c.property({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],b.prototype,"type",void 0);return b=a.__decorate([m.subclass("esri.symbols.patterns.Pattern3D")],b)})},"esri/symbols/patterns/styles":function(){define(function(){return"backward-diagonal cross diagonal-cross forward-diagonal horizontal none solid vertical".split(" ")})},
"esri/symbols/patterns/utils":function(){define(["exports","./LinePattern3D","./LineStylePattern3D","./Pattern3D","./StylePattern3D"],function(a,b,c,h,d){h={types:{key:"type",base:h,typeMap:{style:d}},json:{write:!0}};a.symbol3dLinePatternProperty={types:{key:"type",base:b,typeMap:{style:c}},json:{write:!0}};a.symbol3dPatternProperty=h;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/support/colors":function(){define(["exports","../../Color"],function(a,b){const c=new b("white"),
h=new b("black");b=new b([255,255,255,0]);a.black=h;a.isBlack=function(d){return 0===d.r&&0===d.g&&0===d.b};a.transparentWhite=b;a.white=c;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/support/Symbol3DFillMaterial":function(){define("exports ../../chunks/tslib.es6 ../../core/Logger ../../core/has ../../core/RandomLCG ../../core/Error ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ../../core/libs/gl-matrix-2/factories/vec3f64 ./Symbol3DMaterial".split(" "),
function(a,b,c,h,d,n,m,e,g,f){var p;a.Symbol3DFillMaterial=p=class extends f.Symbol3DMaterial{constructor(r){super(r);this.colorMixMode=null}clone(){const r={color:this.color?.clone()??null,emissiveFactor:this.emissiveFactor?g.clone(this.emissiveFactor):null,colorMixMode:this.colorMixMode};return new p(r)}};b.__decorate([m.enumeration({multiply:"multiply",replace:"replace",tint:"tint"})],a.Symbol3DFillMaterial.prototype,"colorMixMode",void 0);a.Symbol3DFillMaterial=p=b.__decorate([e.subclass("esri.symbols.support.Symbol3DFillMaterial")],
a.Symbol3DFillMaterial);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/support/Symbol3DOutline":function(){define("exports ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../patterns/utils ./materialUtils ./symbolLayerUtils3D".split(" "),function(a,b,c,h,d,n,m,e,g,f,p,r,t){var l;a.Symbol3DOutline=
l=class extends h.JSONSupport{constructor(q){super(q);this.color=new c([0,0,0,1]);this.size=d.px2pt(1);this.pattern=null;this.patternCap="butt"}clone(){const q={color:null!=this.color?this.color.clone():null,size:this.size,pattern:null!=this.pattern?this.pattern.clone():null,patternCap:this.patternCap};return new l(q)}};b.__decorate([n.property(r.colorAndTransparencyProperty)],a.Symbol3DOutline.prototype,"color",void 0);b.__decorate([n.property(r.screenSizeProperty)],a.Symbol3DOutline.prototype,"size",
void 0);b.__decorate([n.property(p.symbol3dLinePatternProperty)],a.Symbol3DOutline.prototype,"pattern",void 0);b.__decorate([n.property({type:t.lineCaps,json:{default:"butt",write:{overridePolicy(){return{enabled:null!=this.pattern}}}}})],a.Symbol3DOutline.prototype,"patternCap",void 0);a.Symbol3DOutline=l=b.__decorate([f.subclass("esri.symbols.support.Symbol3DOutline")],a.Symbol3DOutline);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/support/symbolLayerUtils3D":function(){define(["exports",
"../../core/has","../../core/libs/gl-matrix-2/factories/vec3f64","../../geometry/support/aaBoundingBox"],function(a,b,c,h){const d=h.fromValues(-.5,-.5,-.5,.5,.5,.5),n=h.fromValues(-.5,-.5,0,.5,.5,1),m=h.fromValues(-.5,-.5,0,.5,.5,.5);b=["butt","square","round"];h=[...b,"none"];a.lineCaps=b;a.lineJoins=["miter","bevel","round"];a.objectSymbolLayerBoundingBoxTetrahedron=m;a.objectSymbolLayerBoundingBoxUnitCube=d;a.objectSymbolLayerBoundingBoxUnitCylinder=n;a.objectSymbolLayerPrimitiveBoundingBox=function(e){switch(e){case "sphere":case "cube":case "diamond":return d;
case "cylinder":case "cone":case "inverted-cone":return n;case "tetrahedron":return m}};a.objectSymbolLayerSizeWithResourceSize=function(e,{isPrimitive:g,width:f,depth:p,height:r}){g=g?10:1;if(null==f&&null==r&&null==p)return[g*e[0],g*e[1],g*e[2]];f=c.fromValues(f,p,r);let t;for(p=0;3>p;p++)if(r=f[p],null!=r){t=r/e[p];break}for(p=0;3>p;p++)null==f[p]&&(f[p]=e[p]*t);return f};a.pathCaps=h;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/geometry/support/aaBoundingBox":function(){define(["exports",
"../Extent","./aaBoundingRect","./DoubleArray"],function(a,b,c,h){function d(u=x){return[u[0],u[1],u[2],u[3],u[4],u[5]]}function n(u,w,z,k,v,y,B=d()){B[0]=u;B[1]=w;B[2]=z;B[3]=k;B[4]=v;B[5]=y;return B}function m(u,w,z,k=d()){t(k,q);e(k,u,w,z);return k}function e(u,w,z=0,k=w.length/3){let v=u[0],y=u[1],B=u[2],C=u[3],L=u[4],M=u[5];for(let G=0;G=u[3]?0:u[3]-u[0]}function f(u){return u[1]>=u[4]?0:u[4]-u[1]}function p(u){return u[2]>=u[5]?0:u[5]-u[2]}function r(u,w){return Math.max(w[0],u[0])<=Math.min(w[3],u[3])&&Math.max(w[1],u[1])<=Math.min(w[4],u[4])&&Math.max(w[2],u[2])<=Math.min(w[5],u[5])}function t(u,w){u[0]=w[0];u[1]=w[1];u[2]=w[2];u[3]=w[3];u[4]=w[4];u[5]=w[5];return u}function l(u){return 6===u.length}const q=[Infinity,Infinity,Infinity,-Infinity,-Infinity,-Infinity],
x=[0,0,0,0,0,0],A=d();a.allFinite=function(u){for(let w=0;6>w;w++)if(!isFinite(u[w]))return!1;return!0};a.center=function(u,w=[0,0,0]){w[0]=u[0]+g(u)/2;w[1]=u[1]+f(u)/2;w[2]=u[2]+p(u)/2;return w};a.contains=function(u,w){return w[0]>=u[0]&&w[1]>=u[1]&&w[2]>=u[2]&&w[3]<=u[3]&&w[4]<=u[4]&&w[5]<=u[5]};a.containsPoint=function(u,w){return w[0]>=u[0]&&w[1]>=u[1]&&w[2]>=u[2]&&w[0]<=u[3]&&w[1]<=u[4]&&w[2]<=u[5]};a.containsPointWithMargin=function(u,w,z){return w[0]>=u[0]-z&&w[1]>=u[1]-z&&w[2]>=u[2]-z&&w[0]<=
u[3]+z&&w[1]<=u[4]+z&&w[2]<=u[5]+z};a.create=d;a.depth=f;a.diameter=function(u){const w=g(u),z=p(u);u=f(u);return Math.sqrt(w*w+z*z+u*u)};a.empty=function(u){return u?t(u,q):d(q)};a.equals=function(u,w,z){if(null==u||null==w)return u===w;if(!l(u)||!l(w))return!1;if(z)for(let k=0;k{g=c.ensureNumber(g);return 0===g?1:b.clamp(g,.1,4)},nonNullable:!0},d=["left","right","center"],n=["baseline","top","middle","bottom"],m={type:d,nonNullable:!0},e={type:n,nonNullable:!0};a.backgroundPadding=8;a.fontDecorations=["none","underline",
"line-through"];a.fontStyles=["normal","italic","oblique"];a.fontWeights=["normal","lighter","bold","bolder"];a.horizontalAlignmentProperty=m;a.horizontalAlignments=d;a.lineHeightProperty=h;a.verticalAlignmentProperty=e;a.verticalAlignments=n;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/IconSymbol3DLayer":function(){define("../chunks/tslib.es6 ../core/lang ../core/Logger ../core/urlUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./support/colors ./support/IconSymbol3DLayerResource ./support/materialUtils ./support/Symbol3DAnchorPosition2D ./support/Symbol3DIconOutline ./support/Symbol3DMaterial".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q){function x(z){const k="width"in z?z.width:z.size,v="height"in z?z.height:z.size,y=A(z.xoffset);z=A(z.yoffset);return(y||z)&&k&&v?{x:-y/k,y:z/v}:null}function A(z){return isFinite(z)?z:0}var u;n=u=class extends g{constructor(z){super(z);this.resource=this.material=null;this.type="icon";this.size=12;this.anchor="center";this.outline=this.anchorPosition=null;this.angle=0}clone(){return new u({anchor:this.anchor,anchorPosition:b.clone(this.anchorPosition),enabled:this.enabled,
material:b.clone(this.material),outline:b.clone(this.outline),resource:b.clone(this.resource),angle:this.angle,size:this.size})}static fromSimpleMarkerSymbol(z){const k=z.color||f.white,v=x(z),y=z.outline&&0new t.Symbol3DAnchorPosition2D({x:z[0],y:z[1]})},write:{writer:(z,k)=>{k.anchorPosition=[z.x,z.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],n.prototype,"anchorPosition",void 0);a.__decorate([d.property({type:l.Symbol3DIconOutline,json:{write:!0}})],n.prototype,"outline",void 0);a.__decorate([d.property({type:Number,
json:{write:!0,default:0}})],n.prototype,"angle",void 0);n=u=a.__decorate([e.subclass("esri.symbols.IconSymbol3DLayer")],n);const w={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};return n})},"esri/symbols/support/IconSymbol3DLayerResource":function(){define("exports ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/urlUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../chunks/persistableUrlUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l){var q;c=c.strict()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});a.IconSymbol3DLayerResource=q=class extends h.JSONSupport{constructor(x){super(x)}readHref(x,A,u){return x?l.fromJSON(x,u):A.dataURI}writeHref(x,A,u,w){x&&(d.isDataProtocol(x)?A.dataURI=x:(A.href=l.toJSON(x,w),d.isAbsolute(A.href)&&(A.href=d.normalize(A.href))))}clone(){return new q({href:this.href,primitive:this.primitive})}};b.__decorate([n.property({type:String,
json:{write:!0,read:{source:["href","dataURI"]}}})],a.IconSymbol3DLayerResource.prototype,"href",void 0);b.__decorate([p.reader("href")],a.IconSymbol3DLayerResource.prototype,"readHref",null);b.__decorate([t.writer("href",{href:{type:String},dataURI:{type:String}})],a.IconSymbol3DLayerResource.prototype,"writeHref",null);b.__decorate([f.enumeration(c)],a.IconSymbol3DLayerResource.prototype,"primitive",void 0);a.IconSymbol3DLayerResource=q=b.__decorate([r.subclass("esri.symbols.support.IconSymbol3DLayerResource")],
a.IconSymbol3DLayerResource);a.defaultPrimitive="circle";Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/support/Symbol3DAnchorPosition2D":function(){define("exports ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m,e){var g;a.Symbol3DAnchorPosition2D=g=class extends c{constructor(){super(...arguments);
this.y=this.x=0}clone(){return new g({x:this.x,y:this.y})}};b.__decorate([h.property({type:Number})],a.Symbol3DAnchorPosition2D.prototype,"x",void 0);b.__decorate([h.property({type:Number})],a.Symbol3DAnchorPosition2D.prototype,"y",void 0);a.Symbol3DAnchorPosition2D=g=b.__decorate([e.subclass("esri.symbols.support.Symbol3DAnchorPosition2D")],a.Symbol3DAnchorPosition2D);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/support/Symbol3DIconOutline":function(){define("exports ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p){var r;a.Symbol3DIconOutline=r=class extends h.JSONSupport{constructor(t){super(t);this.color=new c([0,0,0,1]);this.size=d.px2pt(1)}clone(){const t={color:null!=this.color?this.color.clone():null,size:this.size};return new r(t)}};b.__decorate([n.property(p.colorAndTransparencyProperty)],a.Symbol3DIconOutline.prototype,"color",void 0);b.__decorate([n.property(p.screenSizeProperty)],a.Symbol3DIconOutline.prototype,"size",void 0);a.Symbol3DIconOutline=r=b.__decorate([f.subclass("esri.symbols.support.Symbol3DIconOutline")],
a.Symbol3DIconOutline);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/LabelSymbol3D":function(){define("../chunks/tslib.es6 ../core/Collection ../core/lang ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3D ./TextSymbol3DLayer ./callouts/calloutUtils ./support/Symbol3DVerticalOffset".split(" "),function(a,b,c,h,d,n,m,e,g,f,p,r){var t;const l=b.ofType({base:null,
key:"type",typeMap:{text:f}});d=t=class extends g{constructor(q){super(q);this.styleOrigin=this.callout=this.verticalOffset=null;this.symbolLayers=new l;this.type="label-3d"}supportsCallout(){return!0}hasVisibleCallout(){return p.hasVisibleCallout(this)}hasVisibleVerticalOffset(){return p.hasVisibleVerticalOffset(this)}clone(){return new t({styleOrigin:c.clone(this.styleOrigin),symbolLayers:c.clone(this.symbolLayers),thumbnail:c.clone(this.thumbnail),callout:c.clone(this.callout),verticalOffset:c.clone(this.verticalOffset)})}static fromTextSymbol(q){return new t({symbolLayers:new b([f.fromTextSymbol(q)])})}};
a.__decorate([h.property({type:r,json:{write:!0}})],d.prototype,"verticalOffset",void 0);a.__decorate([h.property(p.calloutProperty)],d.prototype,"callout",void 0);a.__decorate([h.property({json:{read:!1,write:!1}})],d.prototype,"styleOrigin",void 0);a.__decorate([h.property({type:l})],d.prototype,"symbolLayers",void 0);a.__decorate([m.enumeration({LabelSymbol3D:"label-3d"},{readOnly:!0})],d.prototype,"type",void 0);return d=t=a.__decorate([e.subclass("esri.symbols.LabelSymbol3D")],d)})},"esri/symbols/Symbol3D":function(){define("../chunks/tslib.es6 ../core/Collection ../core/collectionUtils ../core/Logger ../core/urlUtils ../core/Warning ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/RandomLCG ../core/has ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../portal/Portal ../chunks/persistableUrlUtils ./ExtrudeSymbol3DLayer ./FillSymbol3DLayer ./IconSymbol3DLayer ./LineSymbol3DLayer ./ObjectSymbol3DLayer ./PathSymbol3DLayer ./Symbol ./Symbol3DLayer ./TextSymbol3DLayer ./WaterSymbol3DLayer ./support/StyleOrigin ./support/Thumbnail".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u,w,z,k,v,y,B,C,L,M){const G={icon:u,object:z,line:w,path:k,fill:A,extrude:x,text:B,water:C};g=b.ofType({base:y,key:"type",typeMap:G,errorContext:"symbol-layer"});v=class extends v{constructor(E){super(E);this.type=this.thumbnail=this.styleOrigin=null;this._set("symbolLayers",new ((this.__accessor__&&this.__accessor__.metadata&&this.__accessor__.metadata.symbolLayers)?.type||b))}get color(){return null}set color(E){this.constructed&&h.getLogger(this).error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.")}set symbolLayers(E){c.referenceSetter(E,
this._get("symbolLayers"))}readStyleOrigin(E,F,H){if(E.styleUrl&&E.name)return F=q.fromJSON(E.styleUrl,H),new L({styleUrl:F,name:E.name});if(E.styleName&&E.name)return new L({portal:H?.portal||l.getDefault(),styleName:E.styleName,name:E.name});H?.messages&&H.messages.push(new n("symbol3d:incomplete-style-origin","Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property",{context:H,definition:E}))}writeStyleOrigin(E,F,H,R){E.styleUrl&&E.name?(H=q.toJSON(E.styleUrl,R),d.isAbsolute(H)&&
(H=d.normalize(H)),F.styleOrigin={styleUrl:H,name:E.name}):E.styleName&&E.name&&(E.portal&&R?.portal&&!d.hasSamePortal(E.portal.restUrl,R.portal.restUrl)?R?.messages&&R.messages.push(new n("symbol:cross-portal","The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.",{symbol:this})):F.styleOrigin={styleName:E.styleName,name:E.name})}normalizeCtorArgs(E){return E instanceof y||E&&G[E.type]?{symbolLayers:[E]}:Array.isArray(E)?{symbolLayers:E}:
E}};a.__decorate([m.property({json:{read:!1,write:!1}})],v.prototype,"color",null);a.__decorate([m.property({type:g,nonNullable:!0,json:{write:!0}}),e.cast(c.castForReferenceSetter)],v.prototype,"symbolLayers",null);a.__decorate([m.property({type:L})],v.prototype,"styleOrigin",void 0);a.__decorate([p.reader("styleOrigin")],v.prototype,"readStyleOrigin",null);a.__decorate([t.writer("styleOrigin",{"styleOrigin.styleUrl":{type:String},"styleOrigin.styleName":{type:String},"styleOrigin.name":{type:String}})],
v.prototype,"writeStyleOrigin",null);a.__decorate([m.property({type:M.Thumbnail,json:{read:!1}})],v.prototype,"thumbnail",void 0);a.__decorate([m.property({type:["point-3d","line-3d","polygon-3d","mesh-3d","label-3d"],readOnly:!0})],v.prototype,"type",void 0);return v=a.__decorate([r.subclass("esri.symbols.Symbol3D")],v)})},"esri/symbols/LineSymbol3DLayer":function(){define("../chunks/tslib.es6 ../core/screenUtils ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./LineStyleMarker3D ./Symbol3DLayer ./patterns/LineStylePattern3D ./patterns/utils ./support/colors ./support/materialUtils ./support/Symbol3DMaterial ./support/symbolLayerUtils3D".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x){var A;h=A=class extends f{constructor(u){super(u);this.material=null;this.type="line";this.join="miter";this.cap="butt";this.size=b.px2pt(1);this.marker=this.pattern=null}clone(){const u={enabled:this.enabled,material:null!=this.material?this.material.clone():null,size:this.size,join:this.join,cap:this.cap,pattern:null!=this.pattern?this.pattern.clone():null,marker:null!=this.marker?this.marker.clone():null};return new A(u)}static fromSimpleLineSymbol(u){u=
{enabled:!0,size:u.width??b.px2pt(1),cap:u.cap||"butt",join:u.join||"miter",pattern:u.style?new p({style:u.style}):null,material:new q.Symbol3DMaterial({color:(u.color||t.white).clone()}),marker:u.marker?new g({placement:u.marker.placement,style:u.marker.style,color:u.marker.color?.clone()??null}):null};return new A(u)}};a.__decorate([c.property({type:q.Symbol3DMaterial,json:{write:!0}})],h.prototype,"material",void 0);a.__decorate([m.enumeration({Line:"line"},{readOnly:!0})],h.prototype,"type",void 0);
a.__decorate([c.property({type:x.lineJoins,json:{write:!0,default:"miter"}})],h.prototype,"join",void 0);a.__decorate([c.property({type:x.lineCaps,json:{write:!0,default:"butt"}})],h.prototype,"cap",void 0);a.__decorate([c.property(l.screenSizeProperty)],h.prototype,"size",void 0);a.__decorate([c.property(r.symbol3dLinePatternProperty)],h.prototype,"pattern",void 0);a.__decorate([c.property({types:{key:"type",base:g,typeMap:{style:g}},json:{write:!0}})],h.prototype,"marker",void 0);return h=A=a.__decorate([e.subclass("esri.symbols.LineSymbol3DLayer")],
h)})},"esri/symbols/LineStyleMarker3D":function(){define("../chunks/tslib.es6 ../Color ../core/Clonable ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/RandomLCG ../core/has ../core/accessorSupport/decorators/subclass ./support/lineMarkers".split(" "),function(a,b,c,h,d,n,m,e,g,f){c=class extends c.ClonableMixin(h.JSONSupport){constructor(p){super(p);this.type="style";this.placement="begin-end";this.style="arrow";this.color=null}equals(p){return null!=
p&&p.placement===this.placement&&p.style===this.style&&(null==this.color&&null==p.color||null!=this.color&&null!=p.color&&this.color.toJSON()===p.color.toJSON())}};a.__decorate([d.property({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],c.prototype,"type",void 0);a.__decorate([d.property({type:f.lineMarkerPlacements,json:{default:"begin-end",write:!0}})],c.prototype,"placement",void 0);a.__decorate([d.property({type:f.lineMarkerStyles,json:{default:"arrow",write:!0}})],c.prototype,
"style",void 0);a.__decorate([d.property({type:b,json:{type:[n.Integer],default:null,write:!0}})],c.prototype,"color",void 0);return c=a.__decorate([g.subclass("esri.symbols.LineStyleMarker3D")],c)})},"esri/symbols/ObjectSymbol3DLayer":function(){define("../chunks/tslib.es6 ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./support/ObjectSymbol3DLayerResource ./support/Symbol3DAnchorPosition3D ./support/Symbol3DMaterial".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p){var r;c=r=class extends e{constructor(t){super(t);this.material=null;this.castShadows=!0;this.resource=null;this.type="object";this.roll=this.tilt=this.heading=this.anchorPosition=this.anchor=this.depth=this.height=this.width=void 0}clone(){return new r({heading:this.heading,tilt:this.tilt,roll:this.roll,anchor:this.anchor,anchorPosition:this.anchorPosition?.clone(),depth:this.depth,enabled:this.enabled,height:this.height,material:this.material?.clone()??null,castShadows:this.castShadows,
resource:this.resource?.clone(),width:this.width})}get isPrimitive(){return!this.resource||"string"!==typeof this.resource.href}};a.__decorate([b.property({type:p.Symbol3DMaterial,json:{write:!0}})],c.prototype,"material",void 0);a.__decorate([b.property({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],c.prototype,"castShadows",void 0);a.__decorate([b.property({type:g.ObjectSymbol3DLayerResource,json:{write:!0}})],c.prototype,"resource",void 0);a.__decorate([n.enumeration({Object:"object"},
{readOnly:!0})],c.prototype,"type",void 0);a.__decorate([b.property({type:Number,json:{write:!0}})],c.prototype,"width",void 0);a.__decorate([b.property({type:Number,json:{write:!0}})],c.prototype,"height",void 0);a.__decorate([b.property({type:Number,json:{write:!0}})],c.prototype,"depth",void 0);a.__decorate([n.enumeration({center:"center",top:"top",bottom:"bottom",origin:"origin",relative:"relative"},{default:"origin"})],c.prototype,"anchor",void 0);a.__decorate([b.property({type:f.Symbol3DAnchorPosition3D,
json:{type:[Number],read:{reader:t=>new f.Symbol3DAnchorPosition3D({x:t[0],y:t[1],z:t[2]})},write:{writer:(t,l)=>{l.anchorPosition=[t.x,t.y,t.z]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],c.prototype,"anchorPosition",void 0);a.__decorate([b.property({type:Number,json:{write:!0}})],c.prototype,"heading",void 0);a.__decorate([b.property({type:Number,json:{write:!0}})],c.prototype,"tilt",void 0);a.__decorate([b.property({type:Number,json:{write:!0}})],c.prototype,"roll",void 0);
a.__decorate([b.property({readOnly:!0})],c.prototype,"isPrimitive",null);return c=r=a.__decorate([m.subclass("esri.symbols.ObjectSymbol3DLayer")],c)})},"esri/symbols/support/ObjectSymbol3DLayerResource":function(){define("exports ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ../../chunks/persistableUrlUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p){var r;c=c.strict()({sphere:"sphere",cylinder:"cylinder",cube:"cube",cone:"cone",diamond:"diamond",tetrahedron:"tetrahedron",invertedCone:"inverted-cone"});a.ObjectSymbol3DLayerResource=r=class extends h.JSONSupport{clone(){return new r({href:this.href,primitive:this.primitive})}};b.__decorate([d.property({type:String,json:{read:p.read,write:p.write}})],a.ObjectSymbol3DLayerResource.prototype,"href",void 0);b.__decorate([g.enumeration(c)],a.ObjectSymbol3DLayerResource.prototype,
"primitive",void 0);a.ObjectSymbol3DLayerResource=r=b.__decorate([f.subclass("esri.symbols.support.ObjectSymbol3DLayerResource")],a.ObjectSymbol3DLayerResource);a.defaultPrimitive="sphere";Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/support/Symbol3DAnchorPosition3D":function(){define("exports ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e){var g;a.Symbol3DAnchorPosition3D=g=class extends c{constructor(){super(...arguments);this.z=this.y=this.x=0}clone(){return new g({x:this.x,y:this.y,z:this.z})}};b.__decorate([h.property({type:Number})],a.Symbol3DAnchorPosition3D.prototype,"x",void 0);b.__decorate([h.property({type:Number})],a.Symbol3DAnchorPosition3D.prototype,"y",void 0);b.__decorate([h.property({type:Number})],a.Symbol3DAnchorPosition3D.prototype,"z",void 0);a.Symbol3DAnchorPosition3D=g=b.__decorate([e.subclass("esri.symbols.support.Symbol3DAnchorPosition3D")],
a.Symbol3DAnchorPosition3D);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/PathSymbol3DLayer":function(){define("../chunks/tslib.es6 ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./support/Symbol3DMaterial ./support/symbolLayerUtils3D".split(" "),function(a,b,c,h,d,n,m,e,g,f,p){var r;
c=r=class extends g{constructor(t){super(t);this.material=null;this.castShadows=!0;this.type="path";this.profile="circle";this.join="miter";this.cap="butt";this.height=this.width=void 0;this.anchor="center";this.profileRotation="all"}readWidth(t,l){return null!=t?t:null==l.height&&null!=l.size?l.size:void 0}readHeight(t,l){return null!=t?t:null==l.width&&null!=l.size?l.size:void 0}clone(){return new r({enabled:this.enabled,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,
profile:this.profile,join:this.join,cap:this.cap,width:this.width,height:this.height,profileRotation:this.profileRotation,anchor:this.anchor})}};a.__decorate([b.property({type:f.Symbol3DMaterial,json:{write:!0}})],c.prototype,"material",void 0);a.__decorate([b.property({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],c.prototype,"castShadows",void 0);a.__decorate([n.enumeration({Path:"path"},{readOnly:!0})],c.prototype,"type",void 0);a.__decorate([b.property({type:["circle","quad"],json:{write:!0,
default:"circle"}})],c.prototype,"profile",void 0);a.__decorate([b.property({type:p.lineJoins,json:{write:!0,default:"miter"}})],c.prototype,"join",void 0);a.__decorate([b.property({type:p.pathCaps,json:{write:!0,default:"butt"}})],c.prototype,"cap",void 0);a.__decorate([b.property({type:Number,json:{write:{enabled:!0,target:{width:{type:Number},size:{type:Number}}}}})],c.prototype,"width",void 0);a.__decorate([m.reader("width",["width","size","height"])],c.prototype,"readWidth",null);a.__decorate([b.property({type:Number,
json:{write:!0}})],c.prototype,"height",void 0);a.__decorate([m.reader("height",["height","size","width"])],c.prototype,"readHeight",null);a.__decorate([b.property({type:["center","bottom","top"],json:{write:!0,default:"center"}})],c.prototype,"anchor",void 0);a.__decorate([b.property({type:["heading","all"],json:{write:!0,default:"all"}})],c.prototype,"profileRotation",void 0);return c=r=a.__decorate([e.subclass("esri.symbols.PathSymbol3DLayer")],c)})},"esri/symbols/TextSymbol3DLayer":function(){define("../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Font ./Symbol3DLayer ./support/materialUtils ./support/Symbol3DHalo ./support/Symbol3DMaterial ./support/Symbol3DTextBackground ./support/textUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q){var x;h=x=class extends f{constructor(A){super(A);this._userSize=void 0;this.halo=null;this.horizontalAlignment="center";this.lineHeight=1;this.text=this.background=this.material=null;this.type="text";this.verticalAlignment="baseline"}get font(){return this._get("font")||null}set font(A){null!=A&&null!=this._userSize&&(A.size=this._userSize);this._set("font",A)}writeFont(A,u,w,z){u.font=A.write({},{...z,textSymbol3D:!0});delete u.font.size}get size(){return null!=
this._userSize?this._userSize:null!=this.font?.size?this.font.size:9}set size(A){this._userSize=A;null!=this.font&&(this.font.size=this._userSize);this.notifyChange("size")}clone(){const A=new x({enabled:this.enabled,font:this.font&&b.clone(this.font),halo:this.halo&&b.clone(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:null!=this.material?this.material.clone():null,text:this.text,verticalAlignment:this.verticalAlignment,background:b.clone(this.background)});
A._userSize=this._userSize;return A}static fromTextSymbol(A){var u=x,w=null!=A.font?A.font.clone():new g;var z=A.haloColor;var k=A.haloSize;z=z&&null!=k&&0r[t]=p.toArray(b.AlphaMode.UNLESS_OPAQUE),default:()=>f.clone(),defaultEquals:p=>
p.toCss(!0)===f.toCss(!0)}})],e.prototype,"color",void 0);a.__decorate([n.enumeration({Water:"water"},{readOnly:!0})],e.prototype,"type",void 0);a.__decorate([h.property({type:["small","medium","large"],json:{write:!0,default:"medium"}})],e.prototype,"waterbodySize",void 0);a.__decorate([h.property({type:Number,json:{write:!0,default:null}})],e.prototype,"waveDirection",void 0);a.__decorate([h.property({type:["calm","rippled","slight","moderate"],json:{write:!0,default:"moderate"}})],e.prototype,
"waveStrength",void 0);a=e=g=a.__decorate([m.subclass("esri.symbols.WaterSymbol3DLayer")],e);const f=new b([0,119,190]);return a})},"esri/symbols/support/StyleOrigin":function(){define("../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../portal/Portal".split(" "),function(a,b,c,h,d,n,m,e){var g;b=g=class extends b{constructor(f){super(f);this.portal=this.styleName=
this.styleUrl=this.name=null}clone(){return new g({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}};a.__decorate([c.property({type:String})],b.prototype,"name",void 0);a.__decorate([c.property({type:String})],b.prototype,"styleUrl",void 0);a.__decorate([c.property({type:String})],b.prototype,"styleName",void 0);a.__decorate([c.property({type:e})],b.prototype,"portal",void 0);return b=g=a.__decorate([m.subclass("esri.symbols.support.StyleOrigin")],b)})},"esri/symbols/support/Thumbnail":function(){define("exports ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e){var g;a.Thumbnail=g=class extends c{constructor(){super(...arguments);this.url=""}clone(){return new g({url:this.url})}};b.__decorate([h.property({type:String})],a.Thumbnail.prototype,"url",void 0);a.Thumbnail=g=b.__decorate([e.subclass("esri.symbols.support.Thumbnail")],a.Thumbnail);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/callouts/calloutUtils":function(){define(["exports","./Callout3D","./LineCallout3D"],function(a,b,c){function h(d){if(!d)return!1;
d=d.verticalOffset;return!d||0>=d.screenLength||null!=d.maxWorldLength&&0>=d.maxWorldLength?!1:!0}a.calloutProperty={types:{key:"type",base:b,typeMap:{line:c}},json:{write:!0}};a.hasCalloutSupport=function(d){return"point-3d"===d.type||"label-3d"===d.type};a.hasVisibleCallout=function(d){if(!d||!d.supportsCallout||!d.supportsCallout())return!1;const n=d.callout;return n&&n.visible?h(d)?!0:!1:!1};a.hasVisibleVerticalOffset=h;a.textSymbolLayerSupportsVerticalOffset=function(d){return"center"===d.horizontalAlignment};
Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/callouts/Callout3D":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m){b=class extends b.JSONSupport{constructor(e){super(e);this.visible=!0}clone(){throw Error("Subclasses of Callout3D should implement their own clone method.");
}};a.__decorate([c.property({type:["line"],constructOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],b.prototype,"type",void 0);a.__decorate([c.property({readOnly:!0})],b.prototype,"visible",void 0);return b=a.__decorate([m.subclass("esri.symbols.callouts.Callout3D")],b)})},"esri/symbols/callouts/LineCallout3D":function(){define("../../chunks/tslib.es6 ../../Color ../../core/lang ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Callout3D ./LineCallout3DBorder ../support/materialUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r){var t;n=t=class extends f{constructor(l){super(l);this.type="line";this.color=new b([0,0,0,1]);this.size=h.px2pt(1);this.border=null}get visible(){return 0g&&-1*g,write:(g,f)=>f.angle=g&&-1*g}})],d.prototype,"angle",void 0);a.__decorate([c.property({type:["simple-marker","picture-marker"],readOnly:!0})],d.prototype,"type",void 0);a.__decorate([c.property({type:Number,cast:b.toPt,json:{write:!0}})],d.prototype,"xoffset",void 0);a.__decorate([c.property({type:Number,
cast:b.toPt,json:{write:!0}})],d.prototype,"yoffset",void 0);a.__decorate([c.property({cast:g=>"auto"===g?g:h.ensureNumber(b.toPt(g)),json:{write:!0}})],d.prototype,"size",void 0);return d=a.__decorate([m.subclass("esri.symbols.MarkerSymbol")],d)})},"esri/symbols/MeshSymbol3D":function(){define("../chunks/tslib.es6 ../core/Collection ../core/lang ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./FillSymbol3DLayer ./Symbol3D".split(" "),
function(a,b,c,h,d,n,m,e,g,f){var p;const r=b.ofType({base:null,key:"type",typeMap:{fill:g}});d=p=class extends f{constructor(t){super(t);this.symbolLayers=new r;this.type="mesh-3d"}clone(){return new p({styleOrigin:c.clone(this.styleOrigin),symbolLayers:c.clone(this.symbolLayers),thumbnail:c.clone(this.thumbnail)})}static fromSimpleFillSymbol(t){return new p({symbolLayers:new b([g.fromSimpleFillSymbol(t)])})}};a.__decorate([h.property({type:r})],d.prototype,"symbolLayers",void 0);a.__decorate([m.enumeration({MeshSymbol3D:"mesh-3d"},
{readOnly:!0})],d.prototype,"type",void 0);return d=p=a.__decorate([e.subclass("esri.symbols.MeshSymbol3D")],d)})},"esri/symbols/PictureFillSymbol":function(){define("../chunks/tslib.es6 ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./FillSymbol ./support/urlUtils".split(" "),function(a,b,c,h,d,n,m,e,g,f){var p;d=p=class extends g{constructor(...r){super(...r);
this.type="picture-fill";this.url=null;this.yscale=this.xscale=1;this.height=this.width=12;this.yoffset=this.xoffset=0;this.source=null}normalizeCtorArgs(r,t,l,q){if(r&&"string"!==typeof r&&null==r.imageData)return r;const x={};r&&(x.url=r);t&&(x.outline=t);null!=l&&(x.width=c.toPt(l));null!=q&&(x.height=c.toPt(q));return x}clone(){const r=new p({color:b.clone(this.color),height:this.height,outline:b.clone(this.outline),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,
yscale:this.yscale});r._set("source",b.clone(this.source));return r}hash(){return`${super.hash()}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`}};a.__decorate([m.enumeration({esriPFS:"picture-fill"},{readOnly:!0})],d.prototype,"type",void 0);a.__decorate([h.property(f.urlPropertyDefinition)],d.prototype,"url",void 0);a.__decorate([h.property({type:Number,json:{write:!0}})],d.prototype,"xscale",void 0);a.__decorate([h.property({type:Number,
json:{write:!0}})],d.prototype,"yscale",void 0);a.__decorate([h.property({type:Number,cast:c.toPt,json:{write:!0}})],d.prototype,"width",void 0);a.__decorate([h.property({type:Number,cast:c.toPt,json:{write:!0}})],d.prototype,"height",void 0);a.__decorate([h.property({type:Number,cast:c.toPt,json:{write:!0}})],d.prototype,"xoffset",void 0);a.__decorate([h.property({type:Number,cast:c.toPt,json:{write:!0}})],d.prototype,"yoffset",void 0);a.__decorate([h.property(f.sourcePropertyDefinition)],d.prototype,
"source",void 0);return d=p=a.__decorate([e.subclass("esri.symbols.PictureFillSymbol")],d)})},"esri/symbols/support/urlUtils":function(){define(["exports","../../core/urlUtils","../../chunks/persistableUrlUtils"],function(a,b,c){function h(e,g,f){return g.imageData?b.makeData({mediaType:g.contentType||"image/png",isBase64:!0,data:g.imageData}):d(g.url,f)}function d(e,g){if(!b.isAbsolute(e)){if(g){var {origin:f,layer:p}=g;if("service"!==f&&"portal-item"!==f)var r=null;else r=p?.type,r="feature"===
r||"stream"===r?p.parsedUrl?.path:"map-image"===r||"tile"===r?g.url?.path:null}else r=null;if(r)return b.join(r,"images",e)}return c.fromJSON(e,g)}function n(e,g,f,p){if(b.isDataProtocol(e)){if(e=b.dataComponents(e))g.contentType=e.mediaType,g.imageData=e.data,f&&f.imageData===g.imageData&&f.url&&c.write(f.url,g,"url",p)}else c.write(e,g,"url",p)}const m={json:{read:{source:["imageData","url"],reader:h},write:{writer(e,g,f,p){n(e,g,this.source,p)}}}};a.read=d;a.readImageDataOrUrl=h;a.sourcePropertyDefinition=
{readOnly:!0,json:{read:{source:["imageData","url"],reader(e,g,f){e={};g.imageData&&(e.imageData=g.imageData);g.contentType&&(e.contentType=g.contentType);g.url&&(e.url=d(g.url,f));return e}}}};a.urlPropertyDefinition=m;a.writeImageDataAndUrl=n;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/PictureMarkerSymbol":function(){define("../chunks/tslib.es6 ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ./MarkerSymbol ./support/urlUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p){var r;d=r=class extends f{constructor(...t){super(...t);this.color=null;this.type="picture-marker";this.source=this.url=null;this.width=this.height=12;this.size=null}normalizeCtorArgs(t,l,q){if(t&&"string"!==typeof t&&null==t.imageData)return t;const x={};t&&(x.url=t);null!=l&&(x.width=c.toPt(l));null!=q&&(x.height=c.toPt(q));return x}readHeight(t,l){return l.size||t}readWidth(t,l){return l.size||t}clone(){const t=new r({angle:this.angle,height:this.height,url:this.url,
width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});t._set("source",b.clone(this.source));return t}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};a.__decorate([h.property({json:{write:!1}})],d.prototype,"color",void 0);a.__decorate([m.enumeration({esriPMS:"picture-marker"},{readOnly:!0})],d.prototype,"type",void 0);a.__decorate([h.property(p.urlPropertyDefinition)],d.prototype,"url",void 0);a.__decorate([h.property(p.sourcePropertyDefinition)],d.prototype,"source",
void 0);a.__decorate([h.property({type:Number,cast:c.toPt,json:{write:!0}})],d.prototype,"height",void 0);a.__decorate([e.reader("height",["height","size"])],d.prototype,"readHeight",null);a.__decorate([h.property({type:Number,cast:c.toPt,json:{write:!0}})],d.prototype,"width",void 0);a.__decorate([h.property({json:{write:!1}})],d.prototype,"size",void 0);return d=r=a.__decorate([g.subclass("esri.symbols.PictureMarkerSymbol")],d)})},"esri/symbols/PointSymbol3D":function(){define("../chunks/tslib.es6 ../Color ../core/Collection ../core/lang ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./IconSymbol3DLayer ./ObjectSymbol3DLayer ./Symbol3D ./TextSymbol3DLayer ./callouts/calloutUtils ./callouts/LineCallout3D ./support/Symbol3DVerticalOffset".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x){var A;const u=c.ofType({base:null,key:"type",typeMap:{icon:f,object:p,text:t}});n=A=class extends r{constructor(w){super(w);this.callout=this.verticalOffset=null;this.symbolLayers=new u;this.type="point-3d"}supportsCallout(){if(1>(this.symbolLayers?this.symbolLayers.length:0))return!1;for(const w of this.symbolLayers.items)switch(w.type){case "icon":case "text":case "object":continue;default:return!1}return!0}hasVisibleCallout(){return l.hasVisibleCallout(this)}hasVisibleVerticalOffset(){return l.hasVisibleVerticalOffset(this)}clone(){return new A({verticalOffset:h.clone(this.verticalOffset),
callout:h.clone(this.callout),styleOrigin:h.clone(this.styleOrigin),symbolLayers:h.clone(this.symbolLayers),thumbnail:h.clone(this.thumbnail)})}static fromSimpleMarkerSymbol(w){return new A({symbolLayers:new c([f.fromSimpleMarkerSymbol(w)])})}static fromPictureMarkerSymbol(w){return new A({symbolLayers:new c([f.fromPictureMarkerSymbol(w)])})}static fromCIMSymbol(w){return"CIMPointSymbol"!==w.data?.symbol?.type?null:w.data.symbol?.callout?new A({symbolLayers:new c([f.fromCIMSymbol(w)]),callout:new q({size:.5,
color:new b([0,0,0])}),verticalOffset:new x({screenLength:40})}):new A({symbolLayers:new c([f.fromCIMSymbol(w)])})}static fromTextSymbol(w){return new A({symbolLayers:new c([t.fromTextSymbol(w)])})}};a.__decorate([d.property({type:x,json:{write:!0}})],n.prototype,"verticalOffset",void 0);a.__decorate([d.property(l.calloutProperty)],n.prototype,"callout",void 0);a.__decorate([d.property({type:u,json:{origins:{"web-scene":{write:!0}}}})],n.prototype,"symbolLayers",void 0);a.__decorate([e.enumeration({PointSymbol3D:"point-3d"},
{readOnly:!0})],n.prototype,"type",void 0);return n=A=a.__decorate([g.subclass("esri.symbols.PointSymbol3D")],n)})},"esri/symbols/PolygonSymbol3D":function(){define("../chunks/tslib.es6 ../core/Collection ../core/deprecate ../core/lang ../core/Logger ../core/reactiveUtils ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./ExtrudeSymbol3DLayer ./FillSymbol3DLayer ./IconSymbol3DLayer ./LineSymbol3DLayer ./ObjectSymbol3DLayer ./Symbol3D ./TextSymbol3DLayer ./WaterSymbol3DLayer".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u){var w;const z=b.ofType({base:null,key:"type",typeMap:{extrude:p,fill:r,icon:t,line:l,object:q,text:A,water:u}});e=w=class extends x{constructor(k){super(k);this.symbolLayers=new z;this.type="polygon-3d"}initialize(){const k=v=>{"line"===v.type&&c.deprecated(d.getLogger(this),"LineSymbol3DLayer can not be used as a SymbolLayer with a PolygonSymbol3D symbol anymore.",{replacement:"Use FillSymbol3DLayer.outline instead.",version:"4.28"});"text"===v.type&&
c.deprecated(d.getLogger(this),"TextSymbol3DLayer can not be used as a SymbolLayer with a PolygonSymbol3D symbol anymore.",{replacement:"Use Labels instead.",version:"4.28"})};for(const v of this.symbolLayers)k(v);this.addHandles(n.on(()=>this.symbolLayers,"after-add",({item:v})=>k(v),n.sync))}clone(){return new w({styleOrigin:h.clone(this.styleOrigin),symbolLayers:h.clone(this.symbolLayers),thumbnail:h.clone(this.thumbnail)})}static fromJSON(k){const v=new w;v.read(k);if(2===v.symbolLayers.length&&
"fill"===v.symbolLayers.at(0).type&&"line"===v.symbolLayers.at(1).type){const y=v.symbolLayers.at(0),B=v.symbolLayers.at(1);!B.enabled||k.symbolLayers?.[1]&&!1===k.symbolLayers[1].enable||(y.outline={size:B.size,color:null!=B.material?B.material.color:null});v.symbolLayers.removeAt(1)}return v}static fromSimpleFillSymbol(k){return new w({symbolLayers:new b([r.fromSimpleFillSymbol(k)])})}};a.__decorate([m.property({type:z,json:{write:!0}})],e.prototype,"symbolLayers",void 0);a.__decorate([g.enumeration({PolygonSymbol3D:"polygon-3d"},
{readOnly:!0})],e.prototype,"type",void 0);return e=w=a.__decorate([f.subclass("esri.symbols.PolygonSymbol3D")],e)})},"esri/symbols/SimpleFillSymbol":function(){define("../chunks/tslib.es6 ../Color ../core/jsonMap ../core/lang ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./FillSymbol ./SimpleLineSymbol".split(" "),function(a,b,c,h,d,n,m,e,g,f,p){var r;c=new c.JSONMap({esriSFSSolid:"solid",
esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});f=r=class extends f{constructor(...t){super(...t);this.color=new b([0,0,0,.25]);this.outline=new p;this.type="simple-fill";this.style="solid"}normalizeCtorArgs(t,l,q){if(t&&"string"!==typeof t)return t;const x={};t&&(x.style=t);l&&(x.outline=l);q&&(x.color=q);return x}clone(){return new r({color:h.clone(this.color),
outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};a.__decorate([d.property()],f.prototype,"color",void 0);a.__decorate([d.property()],f.prototype,"outline",void 0);a.__decorate([e.enumeration({esriSFS:"simple-fill"},{readOnly:!0})],f.prototype,"type",void 0);a.__decorate([d.property({type:c.apiValues,json:{read:c.read,write:c.write}})],f.prototype,"style",void 0);return f=r=a.__decorate([g.subclass("esri.symbols.SimpleFillSymbol")],
f)})},"esri/symbols/SimpleMarkerSymbol":function(){define("../chunks/tslib.es6 ../Color ../core/jsonMap ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./MarkerSymbol ./SimpleLineSymbol".split(" "),function(a,b,c,h,d,n,m,e,g,f,p,r,t){var l;c=new c.JSONMap({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",
esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});r=l=class extends r{constructor(...q){super(...q);this.color=new b([255,255,255,.25]);this.type="simple-marker";this.size=12;this.style="circle";this.outline=new t}normalizeCtorArgs(q,x,A,u){if(q&&"string"!==typeof q)return q;const w={};q&&(w.style=q);null!=x&&(w.size=d.toPt(x));A&&(w.outline=A);u&&(w.color=u);return w}writeColor(q,x){q&&"x"!==this.style&&"cross"!==this.style&&(x.color=q.toJSON());null===q&&(x.color=
null)}set path(q){this.style="path";this._set("path",q)}clone(){return new l({angle:this.angle,color:h.clone(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};a.__decorate([n.property()],r.prototype,"color",void 0);a.__decorate([p.writer("color")],r.prototype,"writeColor",null);a.__decorate([g.enumeration({esriSMS:"simple-marker"},
{readOnly:!0})],r.prototype,"type",void 0);a.__decorate([n.property()],r.prototype,"size",void 0);a.__decorate([n.property({type:c.apiValues,json:{read:c.read,write:c.write}})],r.prototype,"style",void 0);a.__decorate([n.property({type:String,json:{write:!0}})],r.prototype,"path",null);a.__decorate([n.property({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":t}},json:{default:null,write:!0}})],r.prototype,"outline",void 0);return r=l=a.__decorate([f.subclass("esri.symbols.SimpleMarkerSymbol")],
r)})},"esri/symbols/TextSymbol":function(){define("../chunks/tslib.es6 ../Color ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Font ./Symbol ./support/textUtils".split(" "),function(a,b,c,h,d,n,m,e,g,f,p,r){var t;p=t=class extends p{constructor(...l){super(...l);this.borderLineSize=this.borderLineColor=
this.backgroundColor=null;this.font=new f;this.horizontalAlignment="center";this.kerning=!0;this.rightToLeft=this.haloSize=this.haloColor=null;this.rotated=!1;this.text="";this.type="text";this.verticalAlignment="baseline";this.angle=this.yoffset=this.xoffset=0;this.width=null;this.lineWidth=192;this.lineHeight=1}normalizeCtorArgs(l,q,x){if(l&&"string"!==typeof l)return l;const A={};l&&(A.text=l);q&&(A.font=q);x&&(A.color=x);return A}writeLineWidth(l,q,x,A){A&&"string"!==typeof A||(q[x]=l)}castLineWidth(l){return h.toPt(l)}writeLineHeight(l,
q,x,A){A&&"string"!==typeof A||(q[x]=l)}clone(){return new t({angle:this.angle,backgroundColor:c.clone(this.backgroundColor),borderLineColor:c.clone(this.borderLineColor),borderLineSize:this.borderLineSize,color:c.clone(this.color),font:this.font&&this.font.clone(),haloColor:c.clone(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,
verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};
a.__decorate([d.property({type:b,json:{write:!0}})],p.prototype,"backgroundColor",void 0);a.__decorate([d.property({type:b,json:{write:!0}})],p.prototype,"borderLineColor",void 0);a.__decorate([d.property({type:Number,json:{write:!0},cast:h.toPt})],p.prototype,"borderLineSize",void 0);a.__decorate([d.property({type:f,json:{write:!0}})],p.prototype,"font",void 0);a.__decorate([d.property({...r.horizontalAlignmentProperty,json:{write:!0}})],p.prototype,"horizontalAlignment",void 0);a.__decorate([d.property({type:Boolean,
json:{write:!0}})],p.prototype,"kerning",void 0);a.__decorate([d.property({type:b,json:{write:!0}})],p.prototype,"haloColor",void 0);a.__decorate([d.property({type:Number,cast:h.toPt,json:{write:!0}})],p.prototype,"haloSize",void 0);a.__decorate([d.property({type:Boolean,json:{write:!0}})],p.prototype,"rightToLeft",void 0);a.__decorate([d.property({type:Boolean,json:{write:!0}})],p.prototype,"rotated",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],p.prototype,"text",void 0);a.__decorate([m.enumeration({esriTS:"text"},
{readOnly:!0})],p.prototype,"type",void 0);a.__decorate([d.property({...r.verticalAlignmentProperty,json:{write:!0}})],p.prototype,"verticalAlignment",void 0);a.__decorate([d.property({type:Number,cast:h.toPt,json:{write:!0}})],p.prototype,"xoffset",void 0);a.__decorate([d.property({type:Number,cast:h.toPt,json:{write:!0}})],p.prototype,"yoffset",void 0);a.__decorate([d.property({type:Number,json:{read:l=>l&&-1*l,write:(l,q)=>q.angle=l&&-1*l}})],p.prototype,"angle",void 0);a.__decorate([d.property({type:Number,
json:{write:!0}})],p.prototype,"width",void 0);a.__decorate([d.property({type:Number})],p.prototype,"lineWidth",void 0);a.__decorate([g.writer("lineWidth")],p.prototype,"writeLineWidth",null);a.__decorate([n.cast("lineWidth")],p.prototype,"castLineWidth",null);a.__decorate([d.property(r.lineHeightProperty)],p.prototype,"lineHeight",void 0);a.__decorate([g.writer("lineHeight")],p.prototype,"writeLineHeight",null);return p=t=a.__decorate([e.subclass("esri.symbols.TextSymbol")],p)})},"esri/symbols/WebStyleSymbol":function(){define("require ../chunks/tslib.es6 ../core/Logger ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/has ../core/RandomLCG ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../portal/Portal ../chunks/persistableUrlUtils ./Symbol ./support/Thumbnail".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t){var l;n=l=class extends r{constructor(q){super(q);this.name=this.thumbnail=this.styleUrl=this.portal=this.styleName=this.color=null;this.type="web-style"}get _fetchCacheKey(){const q=null!=this.portal?this.portal:f.getDefault();return`${this.styleName}:${this.styleUrl}:${this.name}:${q.user?q.user.username:null}:${q.url}`}read(q,x){this.portal=x?.portal;super.read(q,x)}clone(){return new l({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}fetchSymbol(q){return this._fetchSymbol("webRef",
q)}fetchCIMSymbol(q){return this._fetchSymbol("cimRef",q)}async _fetchSymbol(q,x){const A=null!=x?x.cache:null,u=A?this._fetchCacheKey:null;if(null!=A){var w=u&&A.get(u);if(w)return w.clone()}({resolveWebStyleSymbol:w}=await new Promise((z,k)=>a(["./support/webStyleSymbolUtils"],z,k)));h.throwIfAborted(x);x=w(this,{portal:this.portal},q,x);x.catch(z=>{c.getLogger(this).error("#fetchSymbol()","Failed to create symbol from style",z)});x=await x;if(!("webRef"===q&&"point-3d"===x.type||"cimRef"===q&&
"cim"===x.type))return null;null!=A&&A.set(u,x.clone());return x}};b.__decorate([d.property({json:{write:!1}})],n.prototype,"color",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],n.prototype,"styleName",void 0);b.__decorate([d.property({type:f,json:{write:!1}})],n.prototype,"portal",void 0);b.__decorate([d.property({type:String,json:{read:p.read,write:p.write}})],n.prototype,"styleUrl",void 0);b.__decorate([d.property({type:t.Thumbnail,json:{read:!1}})],n.prototype,"thumbnail",void 0);
b.__decorate([d.property({type:String,json:{write:!0}})],n.prototype,"name",void 0);b.__decorate([e.enumeration({styleSymbolReference:"web-style"},{readOnly:!0})],n.prototype,"type",void 0);b.__decorate([d.property()],n.prototype,"_fetchCacheKey",null);return n=l=b.__decorate([g.subclass("esri.symbols.WebStyleSymbol")],n)})},"esri/renderers/Renderer":function(){define("../chunks/tslib.es6 ../core/jsonMap ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/subclass ./support/AuthoringInfo".split(" "),
function(a,b,c,h,d,n,m,e,g){b=new b.JSONMap({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});c=class extends c.JSONSupport{constructor(f){super(f);this.type=this.authoringInfo=null}async getRequiredFields(f){if(!this.collectRequiredFields)return[];const p=new Set;await this.collectRequiredFields(p,f);return Array.from(p).sort()}getSymbol(f,p){}async getSymbolAsync(f,p){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};
a.__decorate([h.property({type:g,json:{write:!0}})],c.prototype,"authoringInfo",void 0);a.__decorate([h.property({type:b.apiValues,readOnly:!0,json:{type:b.jsonValues,read:!1,write:{writer:b.write,ignoreOrigin:!0}}})],c.prototype,"type",void 0);return c=a.__decorate([e.subclass("esri.renderers.Renderer")],c)})},"esri/renderers/support/AuthoringInfo":function(){define("../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ./AuthoringInfoFieldInfo ./AuthoringInfoVisualVariable ../../rest/support/colorRamps".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p){var r;const t=new b.JSONMap({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),l=new b.JSONMap({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",
flow:"flow"});b=new b.JSONMap({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"});const q="inches feet yards miles nautical-miles millimeters centimeters decimeters meters kilometers".split(" ");c=r=class extends c.JSONSupport{constructor(x){super(x);this.fadeRatio=this.colorRamp=null;this.isAutoGenerated=!1;this.visualVariables=this.minSliderValue=this.maxSliderValue=
this.lengthUnit=null}get classificationMethod(){const x=this._get("classificationMethod"),A=this.type;return A&&"relationship"!==A?"class-breaks-size"===A||"class-breaks-color"===A?x||"manual":null:x}set classificationMethod(x){this._set("classificationMethod",x)}readColorRamp(x){return x?p.fromJSON(x):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(x){this._set("fields",x)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(x){this._set("field1",
x)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(x){this._set("field2",x)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(x){this._set("flowTheme",x)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(x){this._set("focus",x)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(x){this._set("numClasses",x)}get statistics(){return"univariate-color-size"===
this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(x){this._set("statistics",x)}get standardDeviationInterval(){const x=this.type;return x&&"relationship"!==x&&"class-breaks-size"!==x&&"class-breaks-color"!==x?null:this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(x){this._set("standardDeviationInterval",x)}get type(){return this._get("type")}set type(x){let A=
x;"classed-size"===x?A="class-breaks-size":"classed-color"===x&&(A="class-breaks-color");this._set("type",A)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(x){this._set("univariateSymbolStyle",x)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(x){this._set("univariateTheme",x)}clone(){return new r({classificationMethod:this.classificationMethod,
colorRamp:h.clone(this.colorRamp),fadeRatio:h.clone(this.fadeRatio),fields:this.fields?.slice(),field1:h.clone(this.field1),field2:h.clone(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map(x=>x.clone()),
univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};a.__decorate([d.property({type:t.apiValues,value:null,json:{type:t.jsonValues,read:t.read,write:t.write,origins:{"web-document":{default:"manual",type:t.jsonValues,read:t.read,write:t.write}}}})],c.prototype,"classificationMethod",null);a.__decorate([d.property({types:p.types,json:{write:!0}})],c.prototype,"colorRamp",void 0);a.__decorate([m.reader("colorRamp")],c.prototype,"readColorRamp",
null);a.__decorate([d.property({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],c.prototype,"fadeRatio",void 0);a.__decorate([d.property({type:[String],value:null,json:{write:!0}})],c.prototype,"fields",null);a.__decorate([d.property({type:g.AuthoringInfoFieldInfo,value:null,json:{write:!0}})],c.prototype,"field1",null);a.__decorate([d.property({type:g.AuthoringInfoFieldInfo,value:null,json:{write:!0}})],c.prototype,"field2",null);a.__decorate([d.property({type:["flow-line","wave-front"],
value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,"flowTheme",null);a.__decorate([d.property({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],c.prototype,"focus",null);a.__decorate([d.property({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],c.prototype,"isAutoGenerated",void 0);a.__decorate([d.property({type:Number,value:null,json:{type:n.Integer,write:!0}})],c.prototype,"numClasses",null);a.__decorate([d.property({type:q,json:{type:q,
read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],c.prototype,"lengthUnit",void 0);a.__decorate([d.property({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],c.prototype,"maxSliderValue",void 0);a.__decorate([d.property({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],c.prototype,"minSliderValue",void 0);a.__decorate([d.property({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],c.prototype,"statistics",null);
a.__decorate([d.property({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],c.prototype,"standardDeviationInterval",null);a.__decorate([d.property({type:l.apiValues,value:null,json:{type:l.jsonValues,read:l.read,write:l.write,origins:{"web-scene":{type:b.jsonValues,write:{writer:b.write,overridePolicy(x){return{enabled:"flow"!==x}}}}}}})],c.prototype,"type",null);a.__decorate([d.property({type:[f],json:{write:!0}})],c.prototype,"visualVariables",void 0);a.__decorate([d.property({type:"caret circle-caret arrow circle-arrow plus-minus circle-plus-minus square circle triangle happy-sad thumb custom".split(" "),
value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,"univariateSymbolStyle",null);a.__decorate([d.property({type:["high-to-low","above-and-below","above","below"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,"univariateTheme",null);return c=r=a.__decorate([e.subclass("esri.renderers.support.AuthoringInfo")],c)})},"esri/renderers/support/AuthoringInfoFieldInfo":function(){define("exports ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ./AuthoringInfoClassBreakInfo".split(" "),
function(a,b,c,h,d,n,m,e,g){var f;a.AuthoringInfoFieldInfo=f=class extends c.JSONSupport{constructor(p){super(p);this.label=this.normalizationField=this.field="";this.classBreakInfos=[]}clone(){return new f({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:h.clone(this.classBreakInfos)})}};b.__decorate([d.property({type:String,json:{write:!0}})],a.AuthoringInfoFieldInfo.prototype,"field",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],a.AuthoringInfoFieldInfo.prototype,
"normalizationField",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],a.AuthoringInfoFieldInfo.prototype,"label",void 0);b.__decorate([d.property({type:[g.AuthoringInfoClassBreakInfo],json:{write:!0}})],a.AuthoringInfoFieldInfo.prototype,"classBreakInfos",void 0);a.AuthoringInfoFieldInfo=f=b.__decorate([e.subclass("esri.renderers.support.AuthoringInfoFieldInfo")],a.AuthoringInfoFieldInfo);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/renderers/support/AuthoringInfoClassBreakInfo":function(){define("exports ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e){var g;a.AuthoringInfoClassBreakInfo=g=class extends c.JSONSupport{constructor(f){super(f);this.maxValue=this.minValue=0}clone(){return new g({minValue:this.minValue,maxValue:this.maxValue})}};b.__decorate([h.property({type:Number,json:{write:!0}})],a.AuthoringInfoClassBreakInfo.prototype,"minValue",void 0);b.__decorate([h.property({type:Number,json:{write:!0}})],a.AuthoringInfoClassBreakInfo.prototype,"maxValue",void 0);a.AuthoringInfoClassBreakInfo=g=b.__decorate([e.subclass("esri.renderers.support.AuthoringInfoClassBreakInfo")],
a.AuthoringInfoClassBreakInfo);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/renderers/support/AuthoringInfoVisualVariable":function(){define("../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/subclass ./AuthoringInfoSizeStop".split(" "),function(a,b,c,h,d,n,m,e){var g;const f=new b.JSONMap({percentTotal:"percent-of-total",
ratio:"ratio",percent:"percent"});b=new b.JSONMap({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"});const p={key(q){return"number"===typeof q?"number":"string"},typeMap:{number:Number,string:String},base:null},r=["high-to-low","above-and-below","centered-on","extremes"],t=[...(new Set("high-to-low above-and-below centered-on extremes above below high-to-low above-and-below above below reference-size".split(" ")))],l="seconds minutes hours days months years".split(" ");
c=g=class extends c.JSONSupport{constructor(q){super(q);this.units=this.type=this.startTime=this.minSliderValue=this.maxSliderValue=this.field=this.endTime=null}castEndTime(q){return"string"===typeof q||"number"===typeof q?q:null}get normalizationField(){return"reference-size"===this.theme?this._get("normalizationField"):null}set normalizationField(q){this._set("normalizationField",q)}get referenceSizeScale(){return"reference-size"===this.theme?this._get("referenceSizeScale"):null}set referenceSizeScale(q){this._set("referenceSizeScale",
q)}get referenceSizeSymbolStyle(){return"reference-size"===this.theme?this._get("referenceSizeSymbolStyle"):null}set referenceSizeSymbolStyle(q){this._set("referenceSizeSymbolStyle",q)}castStartTime(q){return"string"===typeof q||"number"===typeof q?q:null}get sizeStops(){return"reference-size"===this.theme?this._get("sizeStops"):null}set sizeStops(q){this._set("sizeStops",q)}get style(){return"color"===this.type?this._get("style"):null}set style(q){this._set("style",q)}get theme(){return"color"===
this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(q){this._set("theme",q)}clone(){return new g({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,normalizationField:this.normalizationField,referenceSizeScale:this.referenceSizeScale,referenceSizeSymbolStyle:this.referenceSizeSymbolStyle,sizeStops:h.clone(this.sizeStops),startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};
a.__decorate([d.property({types:p,json:{write:!0}})],c.prototype,"endTime",void 0);a.__decorate([n.cast("endTime")],c.prototype,"castEndTime",null);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"field",void 0);a.__decorate([d.property({type:Number,json:{write:!0}})],c.prototype,"maxSliderValue",void 0);a.__decorate([d.property({type:Number,json:{write:!0}})],c.prototype,"minSliderValue",void 0);a.__decorate([d.property({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],
c.prototype,"normalizationField",null);a.__decorate([d.property({type:Number,value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],c.prototype,"referenceSizeScale",null);a.__decorate([d.property({type:["circle","diamond","hexagon-flat","hexagon-pointy","square"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],c.prototype,"referenceSizeSymbolStyle",null);a.__decorate([d.property({types:p,json:{write:!0}})],c.prototype,"startTime",void 0);a.__decorate([n.cast("startTime")],c.prototype,
"castStartTime",null);a.__decorate([d.property({type:[e],json:{origins:{"web-scene":{write:!1}},write:!0}})],c.prototype,"sizeStops",null);a.__decorate([d.property({type:f.apiValues,value:null,json:{type:f.jsonValues,read:f.read,write:f.write}})],c.prototype,"style",null);a.__decorate([d.property({type:t,value:null,json:{type:t,origins:{"web-scene":{type:r,write:{writer:(q,x)=>{r.includes(q)&&(x.theme=q)}}}},write:!0}})],c.prototype,"theme",null);a.__decorate([d.property({type:b.apiValues,json:{type:b.jsonValues,
read:b.read,write:b.write}})],c.prototype,"type",void 0);a.__decorate([d.property({type:l,json:{type:l,write:!0}})],c.prototype,"units",void 0);return c=g=a.__decorate([m.subclass("esri.renderers.support.AuthoringInfoVisualVariable")],c)})},"esri/renderers/support/AuthoringInfoSizeStop":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m){var e;b=e=class extends b.JSONSupport{constructor(g){super(g);this.value=this.size=this.label=null}clone(){return new e({label:this.label,value:this.value,size:this.size})}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"label",void 0);a.__decorate([c.property({type:Number,json:{write:!0}})],b.prototype,"size",void 0);a.__decorate([c.property({type:Number,json:{write:!0}})],b.prototype,"value",void 0);return b=e=a.__decorate([m.subclass("esri.renderers.support.AuthoringInfoSizeStop")],
b)})},"esri/rest/support/colorRamps":function(){define(["exports","./AlgorithmicColorRamp","./ColorRamp","./MultipartColorRamp"],function(a,b,c,h){c={key:"type",base:c,typeMap:{algorithmic:b,multipart:h}};a.fromJSON=function(d){return d?.type?"algorithmic"===d.type?b.fromJSON(d):"multipart"===d.type?h.fromJSON(d):null:null};a.types=c;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/rest/support/AlgorithmicColorRamp":function(){define("../../chunks/tslib.es6 ../../Color ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./ColorRamp".split(" "),
function(a,b,c,h,d,n,m,e){var g;e=g=class extends e{constructor(f){super(f);this.toColor=this.fromColor=this.algorithm=null;this.type="algorithmic"}clone(){return new g({fromColor:c.clone(this.fromColor),toColor:c.clone(this.toColor),algorithm:this.algorithm})}};a.__decorate([n.enumeration({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],e.prototype,"algorithm",void 0);a.__decorate([h.property({type:b,json:{type:[d.Integer],write:!0}})],e.prototype,"fromColor",
void 0);a.__decorate([h.property({type:b,json:{type:[d.Integer],write:!0}})],e.prototype,"toColor",void 0);a.__decorate([h.property({type:["algorithmic"]})],e.prototype,"type",void 0);return e=g=a.__decorate([m.subclass("esri.rest.support.AlgorithmicColorRamp")],e)})},"esri/rest/support/ColorRamp":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m){b=class extends b.JSONSupport{constructor(e){super(e);this.type=null}};a.__decorate([c.property({readOnly:!0,json:{read:!1,write:!0}})],b.prototype,"type",void 0);return b=a.__decorate([m.subclass("esri.rest.support.ColorRamp")],b)})},"esri/rest/support/MultipartColorRamp":function(){define("../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ./AlgorithmicColorRamp ./ColorRamp".split(" "),
function(a,b,c,h,d,n,m,e){var g;h=g=class extends e{constructor(f){super(f);this.colorRamps=null;this.type="multipart"}clone(){return new g({colorRamps:b.clone(this.colorRamps)})}};a.__decorate([c.property({type:[m],json:{write:!0}})],h.prototype,"colorRamps",void 0);a.__decorate([c.property({type:["multipart"]})],h.prototype,"type",void 0);return h=g=a.__decorate([n.subclass("esri.rest.support.MultipartColorRamp")],h)})},"esri/renderers/mixins/VisualVariablesMixin":function(){define("exports ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../layers/support/fieldUtils ../support/randomRotationExpression ../visualVariables/ColorVariable ../visualVariables/OpacityVariable ../visualVariables/RotationVariable ../visualVariables/SizeVariable ../visualVariables/VisualVariable ../visualVariables/VisualVariableFactory".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A){const u={base:x,key:"type",typeMap:{opacity:t,color:r,rotation:l,size:q}};a.VisualVariablesMixin=w=>{w=class extends w{constructor(){super(...arguments);this._vvFactory=new A}set visualVariables(z){this._vvFactory.visualVariables=z;this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(z,k,v){return this._vvFactory.readVariables(z,k,v)}writeVisualVariables(z,k,v,y){k[v]=this._vvFactory.writeVariables(z,y)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;
for(const z of this.visualVariables)if(z.arcadeRequired)return!0;return!1}hasVisualVariables(z,k){return z?0y.type===z&&("string"===typeof k?y.target===k:!1===k?!y.target:
!0)):[]}async collectVVRequiredFields(z,k){var v=[];this.visualVariables&&(v=v.concat(this.visualVariables));for(const B of v)if(B&&(B.field&&f.collectField(z,k,B.field),B.normalizationField&&f.collectField(z,k,B.normalizationField),B.valueExpression)){{v=z;var y=k;const C=p.matchRandomRotationExpression(B.valueExpression);null!=C?(f.collectField(v,y,C),v=!0):v=!1}v||await f.collectArcadeFieldNames(z,k,B.valueExpression)}}};b.__decorate([c.property({types:[u],value:null,json:{write:!0}})],w.prototype,
"visualVariables",null);b.__decorate([m.reader("visualVariables",["visualVariables","rotationType","rotationExpression"])],w.prototype,"readVisualVariables",null);b.__decorate([g.writer("visualVariables")],w.prototype,"writeVisualVariables",null);return w=b.__decorate([e.subclass("esri.renderers.mixins.VisualVariablesMixin")],w)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/renderers/support/randomRotationExpression":function(){define(["exports"],function(a){const b=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;
a.matchRandomRotationExpression=function(c){return c.match(b)?.[1]?.replace(/\\'/g,"'")??null};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/renderers/visualVariables/ColorVariable":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./VisualVariable ./support/ColorStop".split(" "),function(a,b,c,h,d,n,m,e){var g;c=g=class extends m{constructor(f){super(f);
this.type="color";this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(f){f&&Array.isArray(f)&&(f=f.filter(p=>!!p),f.sort((p,r)=>p.value-r.value));this._set("stops",f)}clone(){return new g({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(f=>f.clone()),legendOptions:this.legendOptions?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&
this.stops.map(f=>f.value||0)}};a.__decorate([b.property({readOnly:!0})],c.prototype,"cache",null);a.__decorate([b.property({type:["color"],json:{type:["colorInfo"]}})],c.prototype,"type",void 0);a.__decorate([b.property({type:String,json:{write:!0}})],c.prototype,"normalizationField",void 0);a.__decorate([b.property({type:[e],json:{write:!0}})],c.prototype,"stops",null);return c=g=a.__decorate([n.subclass("esri.renderers.visualVariables.ColorVariable")],c)})},"esri/renderers/visualVariables/VisualVariable":function(){define("../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/ensureType ./support/VisualVariableLegendOptions".split(" "),
function(a,b,c,h,d,n,m,e,g){b=new b.JSONMap({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});c=class extends c.JSONSupport{constructor(f){super(f);this.legendOptions=this.valueExpressionTitle=this.valueExpression=this.field=this.type=this.index=null}castField(f){return null==f?f:"function"===typeof f?(h.getLogger(this).error(".field: field must be a string value"),null):e.ensureString(f)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};
a.__decorate([d.property()],c.prototype,"index",void 0);a.__decorate([d.property({type:b.apiValues,readOnly:!0,json:{read:b.read,write:b.write}})],c.prototype,"type",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"field",void 0);a.__decorate([n.cast("field")],c.prototype,"castField",null);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"valueExpression",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"valueExpressionTitle",
void 0);a.__decorate([d.property({readOnly:!0})],c.prototype,"arcadeRequired",null);a.__decorate([d.property({type:g,json:{write:!0}})],c.prototype,"legendOptions",void 0);return c=a.__decorate([m.subclass("esri.renderers.visualVariables.VisualVariable")],c)})},"esri/renderers/visualVariables/support/VisualVariableLegendOptions":function(){define("../../../chunks/tslib.es6 ../../../core/Clonable ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e){b=class extends b.ClonableMixin(c.JSONSupport){constructor(){super(...arguments);this.title=this.showLegend=null}};a.__decorate([h.property({type:Boolean,json:{write:!0}})],b.prototype,"showLegend",void 0);a.__decorate([h.property({type:String,json:{write:!0}})],b.prototype,"title",void 0);return b=a.__decorate([e.subclass("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],b)})},"esri/renderers/visualVariables/support/ColorStop":function(){define("../../../chunks/tslib.es6 ../../../Color ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/accessorSupport/ensureType ../../../core/RandomLCG ../../../core/has ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer".split(" "),
function(a,b,c,h,d,n,m,e,g){var f;c=f=class extends c.JSONSupport{constructor(p){super(p);this.value=this.label=this.color=null}writeValue(p,r,t){r[t]=null==p?0:p}clone(){return new f({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};a.__decorate([h.property({type:b,json:{type:[d.Integer],write:!0}})],c.prototype,"color",void 0);a.__decorate([h.property({type:String,json:{write:!0}})],c.prototype,"label",void 0);a.__decorate([h.property({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],
c.prototype,"value",void 0);a.__decorate([g.writer("value")],c.prototype,"writeValue",null);return c=f=a.__decorate([e.subclass("esri.renderers.visualVariables.support.ColorStop")],c)})},"esri/renderers/visualVariables/OpacityVariable":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./VisualVariable ./support/OpacityStop".split(" "),function(a,b,c,h,d,n,m,e){var g;
c=g=class extends m{constructor(f){super(f);this.type="opacity";this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(f){f&&Array.isArray(f)&&(f=f.filter(p=>!!p),f.sort((p,r)=>p.value-r.value));this._set("stops",f)}clone(){return new g({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(f=>
f.clone()),legendOptions:this.legendOptions?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(f=>f.value||0)}};a.__decorate([b.property({readOnly:!0})],c.prototype,"cache",null);a.__decorate([b.property({type:["opacity"],json:{type:["transparencyInfo"]}})],c.prototype,"type",void 0);a.__decorate([b.property({type:String,json:{write:!0}})],c.prototype,"normalizationField",void 0);a.__decorate([b.property({type:[e],
json:{write:!0}})],c.prototype,"stops",null);return c=g=a.__decorate([n.subclass("esri.renderers.visualVariables.OpacityVariable")],c)})},"esri/renderers/visualVariables/support/OpacityStop":function(){define("../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/accessorSupport/ensureType ../../../core/RandomLCG ../../../core/has ../../../core/accessorSupport/decorators/reader ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer ../../../webdoc/support/opacityUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f){var p;b=p=class extends b.JSONSupport{constructor(r){super(r);this.value=this.opacity=this.label=null}readOpacity(r,t){return f.transparencyToOpacity(t.transparency)}writeOpacity(r,t,l){t[l]=f.opacityToTransparency(r)}clone(){return new p({label:this.label,opacity:this.opacity,value:this.value})}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"label",void 0);a.__decorate([c.property({type:Number,json:{type:h.Integer,write:{target:"transparency"}}})],
b.prototype,"opacity",void 0);a.__decorate([m.reader("opacity",["transparency"])],b.prototype,"readOpacity",null);a.__decorate([g.writer("opacity")],b.prototype,"writeOpacity",null);a.__decorate([c.property({type:Number,json:{write:!0}})],b.prototype,"value",void 0);return b=p=a.__decorate([e.subclass("esri.renderers.visualVariables.support.OpacityStop")],b)})},"esri/renderers/visualVariables/RotationVariable":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./VisualVariable".split(" "),
function(a,b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);this.axis=null;this.type="rotation";this.rotationType="geographic"}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}clone(){return new e({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions?.clone()})}};a.__decorate([b.property({readOnly:!0})],c.prototype,"cache",null);a.__decorate([b.property({type:["heading",
"tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],c.prototype,"axis",void 0);a.__decorate([b.property({type:["rotation"],json:{type:["rotationInfo"]}})],c.prototype,"type",void 0);a.__decorate([b.property({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],c.prototype,"rotationType",void 0);return c=e=a.__decorate([n.subclass("esri.renderers.visualVariables.RotationVariable")],c)})},"esri/renderers/visualVariables/SizeVariable":function(){define("../../chunks/tslib.es6 ../../core/Error ../../core/jsonMap ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./VisualVariable ./support/castSizeVariable ./support/SizeStop ./support/SizeVariableLegendOptions ./support/sizeVariableUtils ./support/visualVariableUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q){function x(v){if(null!=v){if("string"===typeof v||"number"===typeof v)return p.castSizeFromStringOrNumber(v);if("size"===v.type){if(l.isSizeVariable(v))return v;v={...v};delete v.type;return new k(v)}}}function A(v,y,B){if("object"!==typeof v)return v;y=new k;y.read(v,B);return y}var u;const w=new c.JSONMap({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),z=new c.JSONMap({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",
mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers"});let k=u=class extends f{constructor(v){super(v);this.target=this.scaleBy=this.normalizationField=this.legendOptions=this.axis=null;this.type="size";this.valueUnit=this.valueRepresentation=this.valueExpression=this.useSymbolValue=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=
this.valueExpression&&q.viewScaleRE.test(this.valueExpression)}}set index(v){l.isSizeVariable(this.maxSize)&&(this.maxSize.index=`visualVariables[${v}].maxSize`);l.isSizeVariable(this.minSize)&&(this.minSize.index=`visualVariables[${v}].minSize`);this._set("index",v)}get inputValueType(){return l.getInputValueType(this)}set maxDataValue(v){v&&this.stops&&(h.getLogger(this).warn("cannot set maxDataValue when stops is not null."),v=null);this._set("maxDataValue",v)}set maxSize(v){v&&this.stops&&(h.getLogger(this).warn("cannot set maxSize when stops is not null."),
v=null);this._set("maxSize",v)}castMaxSize(v){return x(v)}readMaxSize(v,y,B){return A(v,y,B)}set minDataValue(v){v&&this.stops&&(h.getLogger(this).warn("cannot set minDataValue when stops is not null."),v=null);this._set("minDataValue",v)}set minSize(v){v&&this.stops&&(h.getLogger(this).warn("cannot set minSize when stops is not null."),v=null);this._set("minSize",v)}castMinSize(v){return x(v)}readMinSize(v,y,B){return A(v,y,B)}get arcadeRequired(){return this.valueExpression?!0:null!=this.minSize&&
"object"===typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"===typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(v){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?v&&Array.isArray(v)&&(v=v.filter(y=>!!y),v.sort((y,B)=>y.value-B.value)):v&&(h.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),v=null);this._set("stops",v)}get transformationType(){return l.getTransformationType(this,
this.inputValueType)}readValueExpression(v,y){return v||y.expression&&"$view.scale"}writeValueExpressionWebScene(v,y,B,C){"$view.scale"===v?C?.messages&&(v=this.index,C.messages.push(new b("property:unsupported",this.type+"VisualVariable.valueExpression \x3d '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:("string"===typeof v?v:`visualVariables[${v}]`)+".valueExpression",context:C}))):y[B]=v}readValueUnit(v){return v?z.read(v):
null}clone(){return new u({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:l.isSizeVariable(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:l.isSizeVariable(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map(v=>v.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,
valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone()})}flipSizes(){if(this.transformationType===l.TransformationType.ClampedLinear){const {minSize:v,maxSize:y}=this;this.minSize=y;this.maxSize=v;return this}if(this.transformationType===l.TransformationType.Stops){const v=this.stops;if(!v)return this;const y=v.map(C=>C.size).reverse(),B=v.length;for(let C=0;C
v.value||0)}};a.__decorate([d.property({readOnly:!0})],k.prototype,"cache",null);a.__decorate([d.property({type:w.apiValues,json:{type:w.jsonValues,origins:{"web-map":{read:!1}},read:w.read,write:w.write}})],k.prototype,"axis",void 0);a.__decorate([d.property()],k.prototype,"index",null);a.__decorate([d.property({type:String,readOnly:!0})],k.prototype,"inputValueType",null);a.__decorate([d.property({type:t,json:{write:!0}})],k.prototype,"legendOptions",void 0);a.__decorate([d.property({type:Number,
value:null,json:{write:!0}})],k.prototype,"maxDataValue",null);a.__decorate([d.property({type:Number,value:null,json:{write:!0}})],k.prototype,"maxSize",null);a.__decorate([n.cast("maxSize")],k.prototype,"castMaxSize",null);a.__decorate([m.reader("maxSize")],k.prototype,"readMaxSize",null);a.__decorate([d.property({type:Number,value:null,json:{write:!0}})],k.prototype,"minDataValue",null);a.__decorate([d.property({type:Number,value:null,json:{write:!0}})],k.prototype,"minSize",null);a.__decorate([n.cast("minSize")],
k.prototype,"castMinSize",null);a.__decorate([m.reader("minSize")],k.prototype,"readMinSize",null);a.__decorate([d.property({type:String,json:{write:!0}})],k.prototype,"normalizationField",void 0);a.__decorate([d.property({readOnly:!0})],k.prototype,"arcadeRequired",null);a.__decorate([d.property({type:String})],k.prototype,"scaleBy",void 0);a.__decorate([d.property({type:[r],value:null,json:{write:!0}})],k.prototype,"stops",null);a.__decorate([d.property({type:["outline"],json:{write:!0}})],k.prototype,
"target",void 0);a.__decorate([d.property({type:String,readOnly:!0})],k.prototype,"transformationType",null);a.__decorate([d.property({type:["size"],json:{type:["sizeInfo"]}})],k.prototype,"type",void 0);a.__decorate([d.property({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],k.prototype,"useSymbolValue",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],k.prototype,"valueExpression",void 0);a.__decorate([m.reader("valueExpression",["valueExpression","expression"])],k.prototype,
"readValueExpression",null);a.__decorate([g.writer("web-scene","valueExpression")],k.prototype,"writeValueExpressionWebScene",null);a.__decorate([d.property({type:["radius","diameter","area","width","distance"],json:{write:!0}})],k.prototype,"valueRepresentation",void 0);a.__decorate([d.property({type:z.apiValues,json:{write:z.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],k.prototype,"valueUnit",void 0);a.__decorate([m.reader("valueUnit")],k.prototype,"readValueUnit",
null);return k=u=a.__decorate([e.subclass("esri.renderers.visualVariables.SizeVariable")],k)})},"esri/renderers/visualVariables/support/castSizeVariable":function(){define(["exports","../../../core/screenUtils"],function(a,b){a.castSizeFromStringOrNumber=function(c){return b.toPt(c)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/renderers/visualVariables/support/SizeStop":function(){define("../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/screenUtils ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e){var g;b=g=class extends b.JSONSupport{constructor(f){super(f);this.useMaxValue=this.useMinValue=this.value=this.size=this.label=null}clone(){return new g({label:this.label,size:this.size,value:this.value,useMaxValue:this.useMaxValue,useMinValue:this.useMinValue})}};a.__decorate([h.property({type:String,json:{write:!0}})],b.prototype,"label",void 0);a.__decorate([h.property({type:Number,cast:c.toPt,json:{write:!0}})],b.prototype,"size",void 0);a.__decorate([h.property({type:Number,
json:{write:!0}})],b.prototype,"value",void 0);a.__decorate([h.property({type:Boolean,json:{write:!1}})],b.prototype,"useMinValue",void 0);a.__decorate([h.property({type:Boolean,json:{write:!1}})],b.prototype,"useMaxValue",void 0);return b=g=a.__decorate([e.subclass("esri.renderers.visualVariables.support.SizeStop")],b)})},"esri/renderers/visualVariables/support/SizeVariableLegendOptions":function(){define("../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass ./VisualVariableLegendOptions".split(" "),
function(a,b,c,h,d,n,m){c=class extends m{constructor(){super(...arguments);this.customValues=null}};a.__decorate([b.property({type:[Number],json:{write:!0}})],c.prototype,"customValues",void 0);return c=a.__decorate([n.subclass("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],c)})},"esri/renderers/visualVariables/support/sizeVariableUtils":function(){define(["exports"],function(a){function b(c){return c.valueExpression?a.InputValueType.Expression:c.field&&"string"===typeof c.field?
a.InputValueType.Field:a.InputValueType.Unknown}a.InputValueType=void 0;(function(c){c.Unknown="unknown";c.Expression="expression";c.Field="field"})(a.InputValueType||(a.InputValueType={}));a.TransformationType=void 0;(function(c){c.Unknown="unknown";c.Stops="stops";c.ClampedLinear="clamped-linear";c.Proportional="proportional";c.Additive="additive";c.Constant="constant";c.Identity="identity";c.RealWorldSize="real-world-size"})(a.TransformationType||(a.TransformationType={}));a.getInputValueType=
b;a.getTransformationType=function(c,h){return(h||b(c))===a.InputValueType.Unknown?a.TransformationType.Constant:c.stops?a.TransformationType.Stops:null!=c.minSize&&null!=c.maxSize&&null!=c.minDataValue&&null!=c.maxDataValue?a.TransformationType.ClampedLinear:"unknown"===(c.valueUnit||"unknown")?null!=c.minSize&&null!=c.minDataValue?c.minSize&&c.minDataValue?a.TransformationType.Proportional:a.TransformationType.Additive:a.TransformationType.Identity:a.TransformationType.RealWorldSize};a.isSizeVariable=
function(c){return c&&"esri.renderers.visualVariables.SizeVariable"===c.declaredClass};a.isValidNumber=function(c){return null!=c&&!isNaN(c)&&isFinite(c)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/renderers/visualVariables/support/visualVariableUtils":function(){define("exports ../../../Color ../../../Graphic ../../../core/compilerUtils ../../../core/Logger ../../support/lengthUtils ./sizeVariableUtils".split(" "),function(a,b,c,h,d,n,m){function e(v,y,B){if(v="visualVariables"in
v&&v.visualVariables?v.visualVariables.find(R=>"color"===R.type):v)if("esri.renderers.visualVariables.ColorVariable"!==v.declaredClass)u("ColorVariable");else{var C="number"===typeof y,L=C?null:y,M=L?.attributes,G=C?y:null,E=v.field,{ipData:F,hasExpression:H}=v.cache;y=v.cache.compiledFunc;if(!E&&!H)return(B=v.stops)&&B[0]&&B[0].color;if("number"!==typeof G)if(H){if(null==B?.arcade){w();return}G=B.arcade.arcadeUtils;E=G.getViewInfo({viewingMode:B.viewingMode,scale:B.scale,spatialReference:B.spatialReference});
L=G.createExecContext(L,E,B.timeZone);y||(y=G.createSyntaxTree(v.valueExpression),y=G.createFunction(y),v.cache.compiledFunc=y);G=G.executeFunction(y,L)}else M&&(G=M[E]);L=v.normalizationField;M=null!=M&&null!=L?parseFloat(M[L]):void 0;if(null!=G&&(!L||C||!isNaN(M)&&0!==M)&&(isNaN(M)||C||(G/=M),C=x(G,F)))return M=C[0],L=C[1],B=M===L?v.stops[M].color:b.blendColors(v.stops[M].color,v.stops[L].color,C[2],null!=B?B.color:void 0),new b(B)}}function g(v,y,B){if(v="visualVariables"in v&&v.visualVariables?
v.visualVariables.find(R=>"opacity"===R.type):v)if("esri.renderers.visualVariables.OpacityVariable"!==v.declaredClass)u("OpacityVariable");else{var C="number"===typeof y,L=C?null:y,M=L?.attributes,G=C?y:null,E=v.field,{ipData:F,hasExpression:H}=v.cache;y=v.cache.compiledFunc;if(!E&&!H)return(v=v.stops)&&v[0]&&v[0].opacity;if("number"!==typeof G)if(H){if(null==B?.arcade){w();return}G=B.arcade.arcadeUtils;E=G.getViewInfo({viewingMode:B.viewingMode,scale:B.scale,spatialReference:B.spatialReference});
B=G.createExecContext(L,E,B.timeZone);y||(L=G.createSyntaxTree(v.valueExpression),y=G.createFunction(L),v.cache.compiledFunc=y);G=G.executeFunction(y,B)}else M&&(G=M[E]);B=v.normalizationField;M=null!=M&&null!=B?parseFloat(M[B]):void 0;if(null!=G&&(!B||C||!isNaN(M)&&0!==M)&&(isNaN(M)||C||(G/=M),C=x(G,F))){B=C[0];M=C[1];if(B===M)return v.stops[B].opacity;B=v.stops[B].opacity;return B+(v.stops[M].opacity-B)*C[2]}}}function f(v,y,B){if(v="visualVariables"in v&&v.visualVariables?v.visualVariables.find(R=>
"rotation"===R.type):v)if("esri.renderers.visualVariables.RotationVariable"!==v.declaredClass)u("RotationVariable");else{var C=v.axis||"heading",L="heading"===C&&"arithmetic"===v.rotationType?90:0;C="heading"===C&&"arithmetic"===v.rotationType?-1:1;var M="number"===typeof y?null:y,G=M?.attributes,E=v.field,{hasExpression:F}=v.cache;y=v.cache.compiledFunc;var H=0;if(!E&&!F)return H;if(F){if(null==B?.arcade){w();return}G=B.arcade.arcadeUtils;E=G.getViewInfo({viewingMode:B.viewingMode,scale:B.scale,
spatialReference:B.spatialReference});B=G.createExecContext(M,E,B.timeZone);y||(y=G.createSyntaxTree(v.valueExpression),y=G.createFunction(y),v.cache.compiledFunc=y);H=G.executeFunction(y,B)}else G&&(H=G[E]||0);return H="number"!==typeof H||isNaN(H)?null:L+C*H}}function p(v,y,B){const C="number"===typeof y;var L=C?null:y;const M=L?.attributes;var G=C?y:null,{isScaleDriven:E}=v.cache;y=v.cache.compiledFunc;if(E)L=null!=B?B.scale:void 0,B=null!=B?B.view:void 0,null==L||"3d"===B?(L=B=null,(L=v.stops)?
(B=L[0].value,L=L[L.length-1].value):(B=v.minDataValue||0,L=v.maxDataValue||0),B=(B+L)/2):B=L,G=B;else if(!C)switch(v.inputValueType){case m.InputValueType.Expression:if(null==B?.arcade){w();return}G=B.arcade.arcadeUtils;E=G.getViewInfo({viewingMode:B.viewingMode,scale:B.scale,spatialReference:B.spatialReference});B=G.createExecContext(L,E,B.timeZone);y||(L=G.createSyntaxTree(v.valueExpression),y=G.createFunction(L),v.cache.compiledFunc=y);G=G.executeFunction(y,B);break;case m.InputValueType.Field:M&&
(G=M[v.field]);break;case m.InputValueType.Unknown:G=null}if(!m.isValidNumber(G))return null;if(C||!v.normalizationField)return G;v=M?parseFloat(M[v.normalizationField]):null;return m.isValidNumber(v)&&0!==v?G/v:null}function r(v,y,B){if(v="visualVariables"in v&&v.visualVariables?v.visualVariables.find(L=>"size"===L.type):v)if("esri.renderers.visualVariables.SizeVariable"!==v.declaredClass)u("SizeVariable");else{var C=p(v,y,B);y=q(C,v,y,B,v.cache.ipData);return null===y||void 0===y||isNaN(y)?0:y}}
function t(v,y,B){return null==v?null:m.isSizeVariable(v)?r(v,y,B):m.isValidNumber(v)?v:null}function l(v,y,B){return m.isValidNumber(B)&&v>B?B:m.isValidNumber(y)&&v=y.maxDataValue?y=B:null==M||null==B?y=null:"area"===y.scaleBy&&C?(v=(y="circle"===C)?k*(M/2)**2:M*M,v+=L*((y?k*(B/2)**2:B*B)-v),y=y?2*Math.sqrt(v/k):Math.sqrt(v)):y=M+L*(B-M);return y;case m.TransformationType.Proportional:return L=null!=C?C.shape:void 0,v/=y.minDataValue,M=t(y.minSize,B,C),y=t(y.maxSize,B,C),C=null,C="circle"===L?2*Math.sqrt(v*(M/2)**2):"square"===L||"diamond"===L||"image"===L?Math.sqrt(v*
M**2):v*M,l(C,M,y);case m.TransformationType.Stops:{const [G,E,F]=x(v,L);G===E?y=t(y.stops?.[G].size,B,C):(v=t(y.stops?.[G].size,B,C),y=t(y.stops?.[E].size,B,C),y=v+(y-v)*F)}return y;case m.TransformationType.RealWorldSize:return L=(C?.resolution??1)*n.meterIn[y.valueUnit],M=t(y.minSize,B,C),C=t(y.maxSize,B,C),{valueRepresentation:y}=y,B=null,B="area"===y?2*Math.sqrt(v/k)/L:"radius"===y||"distance"===y?2*v/L:v/L,l(B,M,C);case m.TransformationType.Identity:return v;case m.TransformationType.Unknown:return null}}
function x(v,y){if(y){var B=0,C=y.length-1;y.some((L,M)=>{if(vd.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=v=>A().warn(`The visualVariable should be an instance of esri.renderers.visualVariables.${v}`),w=()=>A().error("Use of arcade expressions requires an arcade context"),z=new c,k=Math.PI;a.getAllSizes=function(v,y,B){const C=["proportional","proportional","proportional"];for(const L of v)switch(v=
L.useSymbolValue?"symbol-value":r(L,y,B),L.axis){case "width":C[0]=v;break;case "depth":C[1]=v;break;case "height":C[2]=v;break;case "width-and-depth":C[0]=v;C[1]=v;break;case "all":case void 0:case null:C[0]=v;C[1]=v;C[2]=v;break;default:h.neverReached(L.axis)}return C};a.getColor=e;a.getOpacity=g;a.getRotationAngle=f;a.getSize=r;a.getSizeForValue=q;a.getSizeFromNumberOrVariable=t;a.getSizeRangeAtScale=function(v,y,B){const {isScaleDriven:C}=v.cache;if(!(C&&"3d"===B||y))return null;B={scale:y,view:B};
y=t(v.minSize,z,B);v=t(v.maxSize,z,B);if(null!=y||null!=v)return y>v&&(B=v,v=y,y=B),{minSize:y,maxSize:v}};a.getVisualVariableValues=function(v,y,B){if(v.visualVariables){var C=[],L=[],M=[],G=[],E=[];for(const F of v.visualVariables)switch(F.type){case "color":L.push(F);break;case "opacity":M.push(F);break;case "rotation":E.push(F);break;case "size":G.push(F)}L.forEach(F=>{const H=e(F,y,B);C.push({variable:F,value:H})});M.forEach(F=>{const H=g(F,y,B);C.push({variable:F,value:H})});E.forEach(F=>{const H=
f(F,y,B);C.push({variable:F,value:H})});G.forEach(F=>{const H=r(F,y,B);C.push({variable:F,value:H})});return C.filter(F=>null!=F.value)}};a.viewScaleRE=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/Graphic":function(){define("./chunks/tslib.es6 ./geometry ./PopupTemplate ./symbols ./core/Clonable ./core/deprecate ./core/JSONSupport ./core/Logger ./core/reactiveUtils ./core/uid ./core/accessorSupport/decorators/property ./core/has ./core/RandomLCG ./core/accessorSupport/decorators/subclass ./geometry/support/jsonUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q){var x;d=x=class extends d.ClonableMixin(m.JSONSupport){constructor(A){super(A);this.isAggregate=!1;this.sourceLayer=this.popupTemplate=this.origin=this.layer=null;this._version=0;Object.defineProperty(this,"uid",{value:f.generateUID(),configurable:!0});Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1});1
"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:A,origin:u})=>{if(this._lastMeshTransform.localMatrix!==A||this._lastMeshTransform.origin!==u)this._lastMeshTransform.localMatrix=A,this._lastMeshTransform.origin=u,this.notifyMeshTransformChanged()}),g.when(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const A=this.geometry;"mesh"===
A?.type&&A.vertexSpace.origin?(this._lastMeshTransform.localMatrix=A.transform?.localMatrix,this._lastMeshTransform.origin=A.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0);this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(A,u)=>A===u,sync:!0})])}};a.__decorate([p.property({value:null,json:{read:function(A){if(!A)return null;const u={};for(const w in A){const z=q.fromJSON(A[w]);z&&(u[w]=z)}return 0!==Object.keys(u).length?u:
null}}})],d.prototype,"aggregateGeometries",null);a.__decorate([p.property({value:null})],d.prototype,"attributes",null);a.__decorate([p.property({value:null,types:b.geometryTypes,json:{read:q.fromJSON}})],d.prototype,"geometry",null);a.__decorate([p.property({type:Boolean})],d.prototype,"isAggregate",void 0);a.__decorate([p.property({clonable:"reference"})],d.prototype,"layer",void 0);a.__decorate([p.property({clonable:"reference"})],d.prototype,"origin",void 0);a.__decorate([p.property({type:c})],
d.prototype,"popupTemplate",void 0);a.__decorate([p.property({clonable:"reference"})],d.prototype,"sourceLayer",void 0);a.__decorate([p.property({value:null,types:h.symbolTypes})],d.prototype,"symbol",null);a.__decorate([p.property({clonable:!1,json:{read:!1,write:!1}})],d.prototype,"_version",void 0);a.__decorate([p.property({type:Boolean,value:!0})],d.prototype,"visible",null);return d=x=a.__decorate([l.subclass("esri.Graphic")],d)})},"esri/renderers/visualVariables/VisualVariableFactory":function(){define("../../chunks/tslib.es6 ../../core/Accessor ../../core/jsonMap ../../core/Logger ../../core/Warning ../../core/accessorSupport/decorators/property ../../core/has ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./ColorVariable ./OpacityVariable ./RotationVariable ./SizeVariable".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t){const l={color:f,size:t,opacity:p,rotation:r},q=new c.JSONMap({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),x=/^\[([^\]]+)\]$/i;b=class extends b{constructor(){super(...arguments);this.sizeVariables=this.rotationVariables=this.opacityVariables=this.colorVariables=null}set visualVariables(A){this._resetVariables();A=A?.filter(w=>!!w);if(A?.length){for(var u of A)switch(u.type){case "color":this.colorVariables.push(u);break;
case "opacity":this.opacityVariables.push(u);break;case "rotation":this.rotationVariables.push(u);break;case "size":this.sizeVariables.push(u)}this.sizeVariables.length&&this.sizeVariables.some(w=>!!w.target)&&A.sort((w,z)=>{let k=null;return k=w.target===z.target?0:w.target?1:-1});for(u=0;u
{var y=q.read(v.type);const B=l[y];B||(h.getLogger(this).warn(`Unknown variable type: ${y}`),w?.messages&&w.messages.push(new d("visual-variable:unsupported",`visualVariable of type '${y}' is not supported`,{definition:v,context:w})));y=new B;y.read(v,w);return y})}writeVariables(A,u){const w=[];for(const z of A)(A=z.toJSON(u))&&w.push(A);return w}_resetVariables(){this.colorVariables=[];this.opacityVariables=[];this.rotationVariables=[];this.sizeVariables=[]}};a.__decorate([n.property()],b.prototype,
"visualVariables",null);return b=a.__decorate([g.subclass("esri.renderers.visualVariables.VisualVariableFactory")],b)})},"esri/renderers/support/ClassBreakInfo":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./commonProperties".split(" "),function(a,b,c,h,d,n,m,e){var g;b=g=class extends b.JSONSupport{constructor(f){super(f);this.minValue=
this.label=this.description=null;this.maxValue=0;this.symbol=null}clone(){return new g({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}getMeshHash(){const f=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${f}`}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"description",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"label",void 0);a.__decorate([c.property({type:Number,
json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],b.prototype,"minValue",void 0);a.__decorate([c.property({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],b.prototype,"maxValue",void 0);a.__decorate([c.property(e.requiredRendererSymbolProperty)],b.prototype,"symbol",void 0);return b=g=a.__decorate([m.subclass("esri.renderers.support.ClassBreakInfo")],b)})},"esri/renderers/support/commonProperties":function(){define("exports ../../symbols ../../core/object ../../core/accessorSupport/extensions/serializableProperty/reader ../../symbols/support/jsonUtils ../../symbols/Symbol ../../symbols/PolygonSymbol3D".split(" "),
function(a,b,c,h,d,n,m){h={types:b.symbolTypesRenderer,json:{write:{writer:d.write},origins:{"web-scene":{types:b.symbolTypesRenderer3D,write:{writer:d.write},read:{reader:h.createTypeReader({types:b.symbolTypesRenderer3D})}}}}};c=c.deepMerge({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},h);const e={cast:g=>null==g||"string"===typeof g||"number"===typeof g?g:`${g}`,json:{type:String,write:{writer:(g,f)=>{f.value=g?.toString()}}}};a.rendererBackgroundFillSymbolProperty={types:{base:n,key:"type",
typeMap:{"simple-fill":b.symbolTypes.typeMap["simple-fill"],"picture-fill":b.symbolTypes.typeMap["picture-fill"],"polygon-3d":b.symbolTypes.typeMap["polygon-3d"],cim:b.symbolTypes.typeMap.cim}},json:{write:{writer:d.write},origins:{"web-scene":{type:m,write:{writer:d.write}}}}};a.rendererSymbolProperty=h;a.requiredRendererSymbolProperty=c;a.uniqueValueProperty=e;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/support/jsonUtils":function(){define("exports ../../symbols ../../core/Error ../../layers/support/layerUtils ../Symbol3D ./symbolConversion ../WebStyleSymbol".split(" "),
function(a,b,c,h,d,n,m){function e(g,f,p){if(null==g)return null;const {context:r,isLabelSymbol:t}=p;var l=r?.origin;p=r?.messages;if("web-scene"===l&&!(g instanceof d||g instanceof m)){l=n.to3D(g,{retainCIM:!0,hasLabelingContext:t});if(null!=l.symbol)return l.symbol.write(f,r);p?.push(new c("symbol:unsupported",`Symbols of type '${g.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:g,context:r,error:l.error}));return null}return h.isSceneServiceLayer(r?.layer)&&
g instanceof d&&("polygon-3d"===g.type||"line-3d"===g.type)?(p?.push(new c("symbol:unsupported",`Symbols of type '${g.declaredClass}' are not supported on layers of type '${r?.layer?.declaredClass}'.`,{symbol:g,context:r})),null):("web-map"===l||"portal-item"===l&&!h.isSceneServiceLayer(r?.layer))&&(g instanceof d||g instanceof m)?(p?.push(new c("symbol:unsupported",`Symbols of type '${g.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,
{symbol:g,context:r})),null):g.write(f,r)}a.fromJSON=function(g,f){return b.readSymbol(g,null,f)};a.write=function(g,f,p,r){g=e(g,{},{context:r,isLabelSymbol:!1});null!=g&&(f[p]=g)};a.writeLabelSymbol=function(g,f,p,r){g=e(g,{},{context:r,isLabelSymbol:!0});null!=g&&(f[p]=g)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/support/symbolConversion":function(){define("exports ../../symbols ../../core/Error ./defaults3D ../WebStyleSymbol ../PointSymbol3D ../SimpleLineSymbol ../LineSymbol3D ../SimpleMarkerSymbol ../PictureMarkerSymbol ../SimpleFillSymbol ../MeshSymbol3D ../PolygonSymbol3D ../TextSymbol ../LabelSymbol3D".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q){const x={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};a.defaultTo3DOptions=x;a.to3D=function(A,u=x){if(!A)return{symbol:null};const {retainId:w=x.retainId,ignoreDrivers:z=x.ignoreDrivers,hasLabelingContext:k=x.hasLabelingContext,retainCIM:v=x.retainCIM,cimFallbackEnabled:y=x.cimFallbackEnabled}=u;let B=null;if(b.isSymbol3D(A)||A instanceof d)B=A.clone();else if("cim"===A.type){const C=A.data?.symbol?.type;switch(C){case "CIMPointSymbol":B=v?A.clone():
n.fromCIMSymbol(A);break;case "CIMLineSymbol":y&&(B=h.defaultRendererPolylineSymbol3D.clone(),u?.logWarning?.("#useCIMFallbackSymbology()","Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case "CIMPolygonSymbol":y&&(B=h.defaultRendererPolygonSymbol3D.clone(),u?.logWarning?.("#useCIMFallbackSymbology()","Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!B)return{error:new c("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${C||
"unknown"}' is unsupported in 3D`,{symbol:A})}}else if(A instanceof m)B=e.fromSimpleLineSymbol(A);else if(A instanceof g)B=n.fromSimpleMarkerSymbol(A);else if(A instanceof f)B=n.fromPictureMarkerSymbol(A);else if(A instanceof p)B=u.geometryType&&"mesh"===u.geometryType?r.fromSimpleFillSymbol(A):t.fromSimpleFillSymbol(A);else if(A instanceof l)B=k?q.fromTextSymbol(A):n.fromTextSymbol(A);else return{error:new c("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${A.type||A.declaredClass}' is unsupported in 3D`,
{symbol:A})};w&&B&&"cim"!==B.type&&(B.id=A.id);z&&b.isSymbol3D(B)&&B.symbolLayers.forEach(C=>C.ignoreDrivers=!0);return{symbol:B}};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/support/defaults3D":function(){define("exports ../../Color ../../symbols ../../core/Collection ../../core/has ../../core/screenUtils ../FillSymbol3DLayer ../LineSymbol3D ../MeshSymbol3D ../PointSymbol3D ../PolygonSymbol3D ../edges/SolidEdges3D ./defaults ./defaultsJSON ../LineSymbol3DLayer".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q){const x=f.fromSimpleMarkerSymbol(t.defaultPointSymbol2D),A=e.fromSimpleLineSymbol(t.defaultPolylineSymbol2D),u=p.fromSimpleFillSymbol(t.defaultPolygonSymbol2D),w=new g({symbolLayers:new h([new m({material:{color:l.defaultColor},edges:new r({size:n.px2pt(1),color:new b(l.defaultOutlineColor)})})])});c=new e({symbolLayers:new h([new q({material:{color:new b([0,0,0])},size:n.px2pt(1)})])});b=new p({symbolLayers:new h([new m({outline:{color:new b([0,0,0]),size:n.px2pt(1)}})])});
a.defaultRendererPolygonSymbol3D=b;a.defaultRendererPolylineSymbol3D=c;a.getDefaultSymbol3D=function(z){if(null==z)return null;switch(z.type){case "mesh":return w;case "point":case "multipoint":return x;case "polyline":return A;case "polygon":case "extent":return u}return null};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/support/defaults":function(){define("exports ../../core/has ../SimpleFillSymbol ../SimpleLineSymbol ../SimpleMarkerSymbol ../TextSymbol ./defaultsJSON".split(" "),
function(a,b,c,h,d,n,m){const e=d.fromJSON(m.defaultPointSymbolJSON),g=h.fromJSON(m.defaultPolylineSymbolJSON),f=c.fromJSON(m.defaultPolygonSymbolJSON);b=n.fromJSON(m.defaultTextSymbolJSON);d=d.fromJSON(m.errorPointSymbolJSON);h=h.fromJSON(m.errorPolylineSymbolJSON);c=c.fromJSON(m.errorPolygonSymbolJSON);a.defaultPointSymbol2D=e;a.defaultPolygonSymbol2D=f;a.defaultPolylineSymbol2D=g;a.defaultTextSymbol2D=b;a.errorPointSymbol2D=d;a.errorPolygonSymbol2D=c;a.errorPolylineSymbol2D=h;a.getDefaultSymbol2D=
function(p){if(null==p)return null;switch(p.type){case "point":case "multipoint":return e;case "polyline":return g;case "polygon":case "extent":return f}return null};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/support/defaultsJSON":function(){define(["exports"],function(a){const b=[252,146,31,255],c={type:"esriSMS",style:"esriSMSCircle",size:6,color:b,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},h={type:"esriSLS",style:"esriSLSSolid",
width:.75,color:b};a.defaultColor=b;a.defaultOutlineColor=[153,153,153,255];a.defaultPointSymbolJSON=c;a.defaultPolygonSymbolJSON={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}};a.defaultPolylineSymbolJSON=h;a.defaultTextSymbolJSON={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,
text:"",xoffset:0,yoffset:0,angle:0};a.errorPointSymbolJSON={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5};a.errorPolygonSymbolJSON={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null};a.errorPolylineSymbolJSON={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/renderers/support/RendererLegendOptions":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e,g,f){c=c.strict()({ascendingValues:"ascending-values",descendingValues:"descending-values"});b=class extends b.ClonableMixin(h.JSONSupport){constructor(p){super(p);this.order=this.title=null}};a.__decorate([d.property({type:String,json:{write:!0}})],b.prototype,"title",void 0);a.__decorate([g.enumeration(c)],b.prototype,"order",void 0);return b=a.__decorate([f.subclass("esri.renderers.support.RendererLegendOptions")],b)})},"esri/renderers/DictionaryRenderer":function(){define("../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../layers/support/fieldUtils ./Renderer ./mixins/VisualVariablesMixin ./support/DictionaryLoader".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p){var r;h=r=class extends f.VisualVariablesMixin(g){constructor(t){super(t);this.url=this.scaleExpressionTitle=this.scaleExpression=this.fieldMap=this.config=null;this.type="dictionary"}get _loader(){return new p.DictionaryLoader(this.url,this.config,this.fieldMap)}writeData(t,l){t&&(l.scalingExpressionInfo={expression:t,returnType:"number"})}writeVisualVariables(t,l,q,x){x?.origin||super.writeVisualVariables(t,l,q,x)}clone(){return new r({config:b.clone(this.config),
scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:b.clone(this.fieldMap),url:b.clone(this.url),visualVariables:b.clone(this.visualVariables)})}async getSymbolAsync(t,l){return this._loader.getSymbolAsync(t,l)}async collectRequiredFields(t,l){await this.collectVVRequiredFields(t,l);this.scaleExpression&&await e.collectArcadeFieldNames(t,l,this.scaleExpression);for(const q in this.fieldMap){const x=this.fieldMap[q];l.has(x)&&t.add(x)}}get arcadeRequired(){return!0}getSymbol(){return null}getSymbols(){return[]}getAttributeHash(){return this.visualVariables?.reduce((t,
l)=>t+l.getAttributeHash(),"")??""}getMeshHash(){return`${this.url}-${JSON.stringify(this.fieldMap)}`}getSymbolFields(){return this._loader.getSymbolFields()}};a.__decorate([c.property({type:p.DictionaryLoader})],h.prototype,"_loader",null);a.__decorate([c.property({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],h.prototype,"config",void 0);a.__decorate([c.property({type:Object,json:{write:!0}})],h.prototype,"fieldMap",void 0);a.__decorate([c.property({type:String,
json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],h.prototype,"scaleExpression",void 0);a.__decorate([m.writer("scaleExpression")],h.prototype,"writeData",null);a.__decorate([c.property({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(t){return{enabled:!!t&&!!this.scaleExpression}}}}})],h.prototype,"scaleExpressionTitle",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],h.prototype,"url",void 0);
a.__decorate([m.writer("visualVariables")],h.prototype,"writeVisualVariables",null);return h=r=a.__decorate([n.subclass("esri.renderers.DictionaryRenderer")],h)})},"esri/renderers/support/DictionaryLoader":function(){define("exports ../../Color ../../request ../../core/Error ../../core/has ../../core/lang ../../core/Logger ../../core/LRUCache ../../core/promiseUtils ../../core/Version ../../geometry/support/jsonUtils ../../layers/support/FieldsIndex ../../support/arcadeOnDemand ../../symbols/CIMSymbol ../../symbols/cim/OverrideHelper ../../symbols/cim/utils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x){const A={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};class u{constructor(w,z,k){this.url=this.fieldMap=this.config=null;this._ongoingRequests=new Map;this._symbolCache=new e.LRUCache(100);this._dictionaryPromise=this._fieldIndex=this._dictionaryVersion=null;this.url=w;this.config=z;this.fieldMap=k}getSymbolFields(){return this._symbolFields}async getSymbolAsync(w,z){this._dictionaryPromise||
(this._dictionaryPromise=this.fetchResources(z));try{var k=await this._dictionaryPromise}catch(E){if(g.isAbortError(E))return this._dictionaryPromise=null}var v=this._dictionaryVersion?.greaterEqual(4,0),y={};if(this.fieldMap)for(var B of this._symbolFields){var C=x.getFieldName(this.fieldMap[B],this._fieldIndex);if(C){var L=w.attributes[C];y[B]=v?L:null!=L?""+w.attributes[C]:""}else y[B]=""}v=null;try{v=k?.(y,z)}catch(E){return null}if(!v||"string"!==typeof v||"invalid"===v)return null;v=v.split(";");
k=[];y=[];for(B=0;BNumber(E)):"Color"===L?(M=(new b(M)).toRgba(),M=[M[0],M[1],M[2],255*M[3]]):M=Number(M),y.push({primitiveName:C,propertyName:L,value:M,defaultValue:null})))}else if(C.includes("|"))for(var G of C.split("|")){if(this._itemNames.has(G)){k.push(G);
break}}else if(this._itemNames.has(C))k.push(C);else if(0===B){k.length=0;G="Invalid_P";null!=w.geometry&&(p.isPolygon(w.geometry)?G="Invalid_A":p.isPolyline(w.geometry)&&(G="Invalid_L"));k.push(G);break}return this._cimPartsToCIMSymbol(w,k,y,null==w.geometry||!w.geometry.hasZ&&"point"===w.geometry.type?!0:!1,z)}async fetchResources(w){if(this._dictionaryPromise)return this._dictionaryPromise;if(this.url){var z=c(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},
signal:null!=w?w.signal:null}),[{data:k}]=await Promise.all([z,t.loadArcade()]);if(!k)throw this._dictionaryPromise=null,new h("esri.renderers.DictionaryRenderer","Bad dictionary data!");var {authoringInfo:v,dictionary_version:y,expression:B,itemsNames:C}=k;z=!1;y&&(this._dictionaryVersion=f.Version.parse(y),z=this._dictionaryVersion.greaterEqual(4,0));this._refSymbolUrlTemplate=this.url+"/"+k.cimRefTemplateUrl;this._itemNames=new Set(C);this._symbolFields=v.symbol;k={};if(this.config){const G=this.config;
for(var L in G)k[L]=G[L]}if(v.configuration)for(var M of v.configuration)k.hasOwnProperty(M.name)||(k[M.name]=M.value);L=[];if(w?.fields&&this.fieldMap)for(const G in this.fieldMap){const E=this.fieldMap[G];M=w.fields.filter(F=>F.name.toLowerCase()===E?.toLowerCase());0{const E={scale:0};
return(F,H)=>{if(null==G)return null;F=G.repurposeFeature({geometry:null,attributes:F});E.scale=null!=H?H.scale??void 0:void 0;return G.evaluate({$feature:F,$view:E},G.services)}}).catch(G=>{m.getLogger("esri.renderers.support.DictionaryLoader").error("Creating dictionary expression failed:",G);return null})}m.getLogger("esri.renderers.support.DictionaryLoader").error("no valid URL!")}async _cimPartsToCIMSymbol(w,z,k,v,y){const B=Array(z.length);for(let L=0;Lv.data);k=this._refSymbolUrlTemplate.replaceAll(/\{itemName\}/gi,w);z=c(k,{responseType:"json",query:{f:"json"},...z});this._ongoingRequests.set(w,z);z.finally(()=>this._ongoingRequests.delete(w));try{const v=await z;this._symbolCache.put(w,v.data);return v.data}catch(v){throw v;}}}a.DictionaryLoader=u;Object.defineProperty(a,
Symbol.toStringTag,{value:"Module"})})},"esri/core/LRUCache":function(){define(["exports","./MemCache"],function(a,b){class c{constructor(h,d){this._storage=new b.MemCacheStorage;this.name=this.id="";this.size=0;this._storage.maxSize=h;this._storage.register(this);d&&this._storage.registerRemoveFunc("",d)}destroy(){this._storage.deregister(this);this._storage.destroy()}put(h,d,n=1){this._storage.put(this,h,d,n,1)}pop(h){return this._storage.pop(this,h)}get(h){return this._storage.get(this,h)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(h){this._storage.maxSize=
h}resetHitRate(){}}a.LRUCache=c;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/core/MemCache":function(){define(["exports","./PooledArray"],function(a,b){a.RemoveMode=void 0;(function(m){m[m.ALL=0]="ALL";m[m.SOME=1]="SOME"})(a.RemoveMode||(a.RemoveMode={}));class c{constructor(m,e,g){this.name=m;this._storage=e;this.id=`${d++}:`;this.size=0;this.maxSize=-1;this._removeFunc=!1;this._miss=this._hit=0;this._storage.register(this);g&&(this._storage.registerRemoveFunc(this.id,g),
this._removeFunc=!0)}destroy(){this._storage.clear(this);this._removeFunc&&this._storage.deregisterRemoveFunc(this.id);this._storage.deregister(this);this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get storageSize(){return this._storage.size}getSize(m){return this._storage.getSize(this,m)}resetHitRate(){this._hit=this._miss=0}put(m,e,g,f=0){this._storage.put(this,m,e,g,f)}pop(m){m=this._storage.pop(this,m);void 0===m?++this._miss:++this._hit;return m}get(m){m=this._storage.get(this,
m);void 0===m?++this._miss:++this._hit;return m}peek(m){return this._storage.peek(this,m)}updateSize(m,e,g){this._storage.updateSize(this,m,e,g)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class h{get size(){return this._size}constructor(m=10485760){this._maxSize=m;this._db=new Map;this._miss=this._hit=this._size=0;this._removeFuncs=new b;this._users=new b}destroy(){this.clearAll();
this._removeFuncs.clear();this._users.clear();this._db=null}register(m){this._users.push(m)}deregister(m){this._users.removeUnordered(m)}registerRemoveFunc(m,e){this._removeFuncs.push([m,e])}deregisterRemoveFunc(m){this._removeFuncs.filterInPlace(e=>e[0]!==m)}get maxSize(){return this._maxSize}set maxSize(m){this._maxSize=Math.max(m,-1);this._checkSize()}getSize(m,e){return this._db.get(m.id+e)?.size??0}put(m,e,g,f,p){e=m.id+e;const r=this._db.get(e);r&&(this._size-=r.size,m.size-=r.size,this._db.delete(e),
r.entry!==g&&this._notifyRemove(e,r.entry,r.size,a.RemoveMode.ALL));f>this._maxSize?this._notifyRemove(e,g,f,a.RemoveMode.ALL):void 0===g?console.warn("Refusing to cache undefined entry "):!f||0>f?(console.warn(`Refusing to cache entry with size ${f} for key ${e}`),this._notifyRemove(e,g,0,a.RemoveMode.ALL)):(this._db.set(e,new n(g,f,1+Math.max(p,-4)- -3)),this._size+=f,m.size+=f,this._checkSize())}updateSize(m,e,g,f){e=m.id+e;const p=this._db.get(e);if(p&&p.entry===g){this._size-=p.size;for(m.size-=
p.size;f>this._maxSize;)if(f=this._notifyRemove(e,g,f,a.RemoveMode.SOME),!(null!=f&&0{const l=r.lifetime;g[l]=(g[l]||0)+r.size;this._users.forAll(q=>{const {id:x,name:A}=q;t.startsWith(x)&&(e[A]=(e[A]||0)+r.size)})});const f={};this._users.forAll(r=>{const t=r.name;"hitRate"in r&&"number"===typeof r.hitRate&&!isNaN(r.hitRate)&&
0e[t]-e[r]);p.forEach(r=>m[r]=Math.round(e[r]/2**20)+"MB / "+f[r]);for(p=g.length-1;0<=p;--p){const r=g[p];r&&(m["Priority "+(p+-3-1)]=Math.round(r/this._size*100)+"%")}return m}resetStats(){this._hit=this._miss=0;this._users.forAll(m=>m.resetHitRate())}clear(m){const e=m.id;this._db.forEach((g,f)=>{f.startsWith(e)&&(this._size-=g.size,this._db.delete(f),this._notifyRemove(f,g.entry,g.size,
a.RemoveMode.ALL))});m.size=0}clearAll(){this._db.forEach((m,e)=>this._notifyRemove(e,m.entry,m.size,a.RemoveMode.ALL));this._users.forAll(m=>m.size=0);this._size=0;this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(m,e,g,f){let p;this._removeFuncs.some(r=>m.startsWith(r[0])?(r=r[1](e,f,g),"number"===typeof r&&(p=r),!0):!1);return p}_checkSize(){this._users.forAll(m=>this._checkSizeLimits(m));this._checkSizeLimits()}_checkSizeLimits(m){const e=m??this;if(!(0>e.maxSize||
e.size<=e.maxSize)){for(var g=m?.id,f=!0;f;){f=!1;for(const [p,r]of this._db)if(0===r.lifetime&&(!g||p.startsWith(g))){this._purgeItem(p,r,m);if(e.size<=.9*e.maxSize)return;f||=this._db.has(p)}}for(const [p,r]of this._db)if(!g||p.startsWith(g))if(this._purgeItem(p,r,m),e.size<=.9*e.maxSize)break}}_purgeItem(m,e,g=this._users.find(f=>m.startsWith(f.id))){this._db.delete(m);if(1>=e.lives){this._size-=e.size;g&&(g.size-=e.size);const f=this._notifyRemove(m,e.entry,e.size,a.RemoveMode.SOME);null!=f&&
0e.IANAZone.create(q)):null}isDateField(l){return this._dateFieldsSet.has(this.get(l))}isTimeOnlyField(l){return n.isTimeOnlyField(this.get(l))}isNumericField(l){return this._numericFieldsSet.has(this.get(l))}normalizeFieldName(l){return this.get(l)?.name??
void 0}toJSON(){return{fields:this.fields.map(l=>b.isSerializable(l)?l.toJSON():l),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const t=new Set("time-only date-only timestamp-offset esriFieldTypeDateOnly esriFieldTypeTimeOnly esriFieldTypeTimestampOffset".split(" "));return r})},"esri/core/sql/UnknownTimeZone":function(){define(["exports","../../chunks/datetime"],function(a,b){function c(d){return d instanceof b.Zone?d===h.instance?!0:!1:"unknown"===
d?.toString().toLowerCase()?!0:!1}class h{}h.instance=new b.IANAZone("Etc/UTC");a.UnknownTimeZone=h;a.adoptTimeZone=function(d,n){return b.DateTime.fromObject({day:d.day,year:d.year,month:d.month,hour:d.hour,minute:d.minute,second:d.second,millisecond:d.millisecond},{zone:n})};a.isUnknownTimeZone=c;a.substituteUnknownTimezone=function(d){return c(d)?h.instance:d};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/cim/OverrideHelper":function(){define("exports ../../Color ../../core/colorUtils ../../core/lang ../../support/arcadeOnDemand ./utils ../../views/2d/arcade/callExpressionWithFeature".split(" "),
function(a,b,c,h,d,n,m){class e{static findApplicableOverrides(g,f,p){if(g&&f){if(g.primitiveName){let r=!1;for(const t of p)if(t.primitiveName===g.primitiveName){r=!0;break}if(!r)for(const t of f)t.primitiveName===g.primitiveName&&p.push(t)}switch(g.type){case "CIMPointSymbol":case "CIMLineSymbol":case "CIMPolygonSymbol":if(g.effects)for(const r of g.effects)e.findApplicableOverrides(r,f,p);if(g.symbolLayers)for(const r of g.symbolLayers)e.findApplicableOverrides(r,f,p);break;case "CIMSolidStroke":case "CIMPictureStroke":case "CIMGradientStroke":case "CIMSolidFill":case "CIMPictureFill":case "CIMHatchFill":case "CIMGradientFill":case "CIMVectorMarker":case "CIMCharacterMarker":case "CIMPictureMarker":if(g.effects)for(const r of g.effects)e.findApplicableOverrides(r,
f,p);g.markerPlacement&&e.findApplicableOverrides(g.markerPlacement,f,p);if("CIMVectorMarker"===g.type){if(g.markerGraphics)for(const r of g.markerGraphics)e.findApplicableOverrides(r,f,p),e.findApplicableOverrides(r.symbol,f,p)}else"CIMCharacterMarker"===g.type?e.findApplicableOverrides(g.symbol,f,p):"CIMHatchFill"===g.type?e.findApplicableOverrides(g.lineSymbol,f,p):"CIMPictureMarker"===g.type&&e.findApplicableOverrides(g.animatedSymbolProperties,f,p)}}}static findEffectOverrides(g,f){if(!g)return null;
"CIMGeometricEffectDashes"===g.type&&n.normalizeDashEffectTemplate(g);if(!f||!g.primitiveName)return{type:"cim-effect-param",effect:g,overrides:[]};const p=n.toLowerCaseProps(g);g=g.primitiveName;const r=[];for(const t of f)t.primitiveName===g&&r.push(n.toLowerCaseProps(t));return{type:"cim-effect-param",effect:p,overrides:n.normalizePrimitiveOverrideProps(r)}}static async resolveSymbolOverrides(g,f,p,r,t,l,q){if(!g?.symbol)return null;let {symbol:x,primitiveOverrides:A}=g;g=!!A;if(!g&&!r)return x;
x=h.clone(x);A=h.clone(A);let u=!0;f||(f={attributes:{}},u=!1);g&&(u||(A=A.filter(w=>!w.valueExpressionInfo?.expression.includes("$feature"))),q||(A=A.filter(w=>!w.valueExpressionInfo?.expression.includes("$view"))),0e._expressionToRenderExpression.set(t.expression,l)))}0Number(p)):"Color"===g?(g=(new b(f)).toRgba(),g[3]*=255,g):f}}e._expressionToRenderExpression=new Map;a.OverrideHelper=e;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},
"esri/core/colorUtils":function(){define("exports ../Color ./arrayUtils ./lang ../chunks/vec42 ./libs/gl-matrix-2/factories/vec4f64".split(" "),function(a,b,c,h,d,n){function m(y){return"r"in y&&"g"in y&&"b"in y}function e(y,B){const C=[];let L,M;if(y[0].length!==B.length)throw Error("dimensions do not match");const G=y.length,E=y[0].length;let F=0;for(L=0;L.04045>=B?B/12.92:((B+.055)/1.055)**
2.4);y=e(z,y);return{x:100*y[0],y:100*y[1],z:100*y[2]}}function f(y){y=e(k,[y.x/100,y.y/100,y.z/100]).map(B=>Math.min(1,Math.max(.0031308>=B?12.92*B:1.055*B**(1/2.4)-.055,0)));return{r:Math.round(255*y[0]),g:Math.round(255*y[1]),b:Math.round(255*y[2])}}function p(y){y=[y.x/95.047,y.y/100,y.z/108.883].map(B=>B>(6/29)**3?B**(1/3):1/3*(29/6)**2*B+4/29);return{l:116*y[1]-16,a:500*(y[0]-y[1]),b:200*(y[1]-y[2])}}function r(y){const B=y.l;y=[(B+16)/116+y.a/500,(B+16)/116,(B+16)/116-y.b/200].map(C=>C>6/29?
C**3:3*(6/29)**2*(C-4/29));return{x:95.047*y[0],y:100*y[1],z:108.883*y[2]}}function t(y){if(m(y))return y;if("l"in y&&"c"in y&&"h"in y){var B=y.c,C=y.h;return f(r({l:y.l,a:B*Math.cos(C),b:B*Math.sin(C)}))}if("l"in y&&"a"in y&&"b"in y)return f(r(y));if("x"in y&&"y"in y&&"z"in y)return f(y);if("h"in y&&"s"in y&&"v"in y){C=(y.h+360)%360/60;B=y.v/100*255;y=y.s/100*B;const L=y*(1-Math.abs(C%2-1));switch(Math.floor(C)){case 0:C={r:y,g:L,b:0};break;case 1:C={r:L,g:y,b:0};break;case 2:C={r:0,g:y,b:L};break;
case 3:C={r:0,g:L,b:y};break;case 4:C={r:L,g:0,b:y};break;case 5:case 6:C={r:y,g:0,b:L};break;default:C={r:0,g:0,b:0}}C.r=Math.round(C.r+B-y);C.g=Math.round(C.g+B-y);C.b=Math.round(C.b+B-y);return C}return y}function l(y){if("h"in y&&"s"in y&&"v"in y)return y;var B=t(y);y=B.r;const C=B.g,L=B.b;B=Math.max(y,C,L);const M=B-Math.min(y,C,L);y=0===M?0:B===y?(C-L)/M%6:B===C?(L-y)/M+2:(y-C)/M+4;0>y&&(y+=6);return{h:60*y,s:100*(0===M?0:M/B),v:100/255*B}}function q(y){return"l"in y&&"a"in y&&"b"in y?y:p(g(t(y)))}
function x(y){let {r:B,g:C,b:L,a:M}=y;1>M&&(B=Math.round(M*B+255*(1-M)),C=Math.round(M*C+255*(1-M)),L=Math.round(M*L+255*(1-M)));return new b({r:B,g:C,b:L})}function A(y,B){const {r:C,g:L,b:M}=B?.ignoreAlpha?y:x(y);return.2126*C+.7152*L+.0722*M}function u(y,B,C={}){const L=[],M=y.length-1,G=Math.ceil((B-y.length)/M);a:for(let E=0;EE.clone()),...c.shuffle(L,C.seed??1)]}function w(y,
B,C,L={}){var M=y.r,G=y.g;y=y.b;M=Math.round(M+(B.r-M)*C);G=Math.round(G+(B.g-G)*C);B=Math.round(y+(B.b-y)*C);if(!L.offset)return new b([M,G,B]);L=c.getRandomNumberGenerator(L.seed);return new b([v(M,L),v(G,L),v(B,L)])}const z=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],k=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];a.BrightnessThreshold=void 0;(function(y){y[y.Low=160]="Low";y[y.High=225]="High"})(a.BrightnessThreshold||(a.BrightnessThreshold={}));const v=
(y,B)=>{B=Math.floor(10*B())-5;return Math.min(255,Math.max(0,y+B))};a.colorEquals=function(y,B){return y===B||null!=y&&y.equals(B)};a.colorVectorEquals=function(y,B){return y===B||null!=y&&null!=B&&d.equals(y,B)};a.colorVectorToColorAndOpacity=function(y){return n.fromValues(y[0],y[1],y[2],3=B)return[];y=y.map(M=>"string"===typeof M?new b(M):M);if(1===y.length||1===B){C=[];y=y[0];for(var L=0;L=B){C=[];L=(y.length-1)/(B-1);for(let M=0;M
B?new b([0,0,0,y.a]):new b([255,255,255,y.a])};a.isRGB=m;a.multiplyOpacity=function(y,B){y=y.clone();y.a*=B;return y};a.multiplyOpacityToUnitRGBA=function(y,B){y=b.toUnitRGBA(y);y[3]*=B;return y};a.toHSV=l;a.toLAB=q;a.toLCH=function(y){if(!("l"in y&&"c"in y&&"h"in y)){var B=p(g(t(y)));y=B.l;var C=B.a;const L=B.b;B=Math.sqrt(C*C+L*L);C=Math.atan2(L,C);C=0t(v));switch(typeof k){case "string":return!!k;
case "number":return!isNaN(k)}}function l(k,v){if("color"===v||"outlinecolor"===v||"backgroundcolor"===v||"borderlinecolor"===v||"tintcolor"===v)return[...c.defaultCIMColor[v]];const y=c.defaultCIMValues[k];if(!y)throw Error(`InternalError: default value for type ${k}.`);return y[v]}function q(k){return k.split(" ").map(v=>Number(v))}function x(k){return"string"===typeof k?q(k):k}function A(k){if(null==k)return"Normal";switch(k.type){case "CIMTextSymbol":return k.textCase??"Normal";case "CIMPointSymbol":case "CIMLineSymbol":case "CIMPolygonSymbol":var v=
k.symbolLayers;if(!v)break;for(var y of v)if("CIMVectorMarker"===y.type)return A(y);break;case "CIMVectorMarker":if(y=k.markerGraphics)for(v of y)if(v.symbol)return A(v.symbol)}return"Normal"}function u(k,v){return null!==v?(v=v.get(k))?v.name:k:k}function w(k,v,y,B,C){return(y=y*Math.PI/180)?(Math.sin(y)*k+Math.cos(y)*v)*B+C:v*B+C}function z(k,v,y,B,C){return(y=y*Math.PI/180)?(Math.cos(y)*k-Math.sin(y)*v)*B+C:k*B+C}b.adjustTextCase=n;b.analyzeTextParts=function(k,v){const y=[];var B=0;let C=-1;do C=
k.indexOf("[",B),C>=B&&(C>B&&(B=k.slice(B,C),y.push([B,null,d(B)])),B=C+1,C=k.indexOf("]",B),C>=B&&(C>B&&(B=k.slice(B,C),(B=v[B])&&y.push([null,B,!1])),B=C+1));while(-1!==C);B({name:v,alias:v,type:"string"===typeof k[v]?"esriFieldTypeString":"esriFieldTypeDouble"}))};
b.colorToArray=function(k){return[k.r,k.g,k.b,k.a]};b.evaluateValueOrFunction=function(k,v,y,B){return h(k)?k(v,y,B):k};b.fromCIMFontDecoration=function(k){return k.underline?"underline":k.strikethrough?"line-through":"none"};b.fromCIMFontStyle=function(k){let v="normal",y="normal";k&&(k=k.toLowerCase(),k.includes("italic")?v="italic":k.includes("oblique")&&(v="oblique"),k.includes("bold")?y="bold":k.includes("light")&&(y="lighter"));return{style:v,weight:y}};b.fromCIMHorizontalAlignment=function(k){switch(k){default:return"left";
case "Right":return"right";case "Center":return"center";case "Justify":return"center"}};b.fromCIMVerticalAlignment=function(k){switch(k){default:return"top";case "Center":return"middle";case "Baseline":return"baseline";case "Bottom":return"bottom"}};b.getDefaultCIMValue=l;b.getEnum=(k,v)=>null==k?v:k;b.getFieldName=u;b.getFillColor=g;b.getFontStyle=function(k){if(!k)return"normal";switch(k.toLowerCase()){case "italic":return"italic";case "oblique":return"oblique";default:return"normal"}};b.getFontWeight=
function(k){if(!k)return"normal";switch(k.toLowerCase()){case "bold":return"bold";case "bolder":return"bolder";case "lighter":return"lighter";default:return"normal"}};b.getNumericValue=(k,v=0)=>null==k||isNaN(k)?v:k;b.getProcessParam=function(k,v,y){const B="Color"===y||"TintColor"===y||"ToColor"===y,C="Rotation"===y||"Angle"===y||"ToRotation"===y;let L=v[r(y)];null!=L&&(B?L=[L[0]/255,L[1]/255,L[2]/255,L[3]/255]:C&&(L*=Math.PI/180));null==L&&(L=l(v.type,y.toLowerCase()),null!=L&&(B?L=[L[0]/255,L[1]/
255,L[2]/255,L[3]]:C&&(L*=Math.PI/180)));null!=v.primitiveName&&(k=k[v.primitiveName],null!=k&&(k=k[y],null!=k&&("string"===typeof k||"number"===typeof k||Array.isArray(k)?(L=k,null!=L&&(B?L=[L[0]/255,L[1]/255,L[2]/255,L[3]/255]:C&&(L*=Math.PI/180))):(L={valueExpressionInfo:k,defaultValue:L},null!=L&&(B?L={type:"Process",op:"ArcadeColor",value:L}:C&&(L={type:"Process",op:"Divide",left:L,right:180/Math.PI}))))));if(null==L)throw Error(`Failed to derive a value or an expression for "${y}".`);return L};
b.getSize=function(k){if(k)switch(k.type){case "CIMTextSymbol":return k.height;case "CIMPointSymbol":var v=0;if(k.symbolLayers)for(var y of k.symbolLayers)if(y)switch(y.type){case "CIMCharacterMarker":case "CIMPictureMarker":case "CIMVectorMarker":case "CIMObjectMarker3D":case "CIMglTFMarker3D":k=y.size??c.defaultCIMValues.CIMVectorMarker.size,k>v&&(v=k)}return v;case "CIMLineSymbol":case "CIMPolygonSymbol":y=0;if(k.symbolLayers)for(v of k.symbolLayers)if(v)switch(v.type){case "CIMSolidStroke":case "CIMPictureStroke":case "CIMGradientStroke":k=
v.width;null!=k&&k>y&&(y=k);break;case "CIMCharacterMarker":case "CIMPictureMarker":case "CIMVectorMarker":case "CIMObjectMarker3D":case "CIMglTFMarker3D":v.markerPlacement&&e(v.markerPlacement)&&(k=v.size??c.defaultCIMValues.CIMVectorMarker.size,k>y&&(y=k));break;case "CIMPictureFill":k=v.height,null!=k&&k>y&&(y=k)}return y}};b.getStrokeColor=f;b.getStrokeWidth=p;b.getTextCasing=A;b.getTintColor=k=>k.tintColor?m(k.tintColor):[255,255,255,1];b.getValue=(k,v)=>null!=k?k:v;b.importGeometryEngine=function(){return new Promise((k,
v)=>a(["../../geometry/geometryEngineJSON"],k,v))};b.isCIMFill=function(k){return null!=k&&("CIMGradientFill"===k.type||"CIMHatchFill"===k.type||"CIMPictureFill"===k.type||"CIMSolidFill"===k.type||"CIMWaterFill"===k.type)};b.isCIMMarker=function(k){return"CIMVectorMarker"===k.type||"CIMPictureMarker"===k.type||"CIMBarChartMarker"===k.type||"CIMCharacterMarker"===k.type||"CIMPieChartMarker"===k.type||"CIMStackedBarChartMarker"===k.type};b.isCIMMarkerStrokePlacement=e;b.isCIMStroke=function(k){return"CIMGradientStroke"===
k.type||"CIMPictureStroke"===k.type||"CIMSolidStroke"===k.type};b.isFeatureValueFn=h;b.isGeometryEngineRequired=k=>{if(!k)return!1;for(const v of k)switch(v.type){case "CIMGeometricEffectBuffer":case "CIMGeometricEffectOffset":case "CIMGeometricEffectDonut":return!0}return!1};b.isSVGImage=k=>k.includes("data:image/svg+xml");b.isValidCIMValue=t;b.mapCIMSymbolToGeometryType=function(k){if(!k)return null;switch(k.type){case "CIMPointSymbol":case "CIMTextSymbol":return"esriGeometryPoint";case "CIMLineSymbol":return"esriGeometryPolyline";
case "CIMPolygonSymbol":return"esriGeometryPolygon";default:return null}};b.normalizeAlpha=m;b.normalizeDashEffectTemplate=function(k){k?.dashTemplate&&(k.dashTemplate=x(k.dashTemplate));return k};b.normalizeDashTemplate=x;b.normalizePrimitiveOverrideProps=function(k){return k.map(v=>({...v,propertyName:r(v.propertyName)}))};b.parseDashTemplate=q;b.resampleHermite=function(k,v,y,B,C,L,M=!0){const G=v/C;y/=L;const E=Math.ceil(G/2),F=Math.ceil(y/2);for(let J=0;J=H&&(H=2*H*H*H-3*H*H+1,0k[sa+3]&&(H=H*k[sa+3]/250),Z+=H*k[sa],fa+=H*k[sa+1],pa+=H*k[sa+2],N+=H))}}B[Q]=Z/N;B[Q+1]=fa/N;B[Q+2]=pa/N;B[Q+3]=xa/U}};b.toCIMSymbolJSON=function(k){return k.data?.symbol??
null};b.toLowerCaseProps=function(k){const v={};for(const y in k){const B=k[y];v[r(y)]=B}return v};b.uncapitalize=r;Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/cim/defaultCIMValues":function(){define(["exports","./enums"],function(a,b){b={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",
offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",
capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMSolidFill:{enable:!0,colorlocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",
width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry"},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},
CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},
CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,
reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:b.AnimatedSymbolRepeatType.Loop,repeatdelay:0,easing:b.AnimatedSymbolEasingType.Linear},CIMSymbolAnimationSize:{tosize:10},CIMSymbolAnimationScale:{scalefactor:1},CIMSymbolAnimationColor:{tocolor:[255,255,255,1]},CIMSymbolAnimationTransparency:{totransparency:0},CIMSymbolAnimationRotation:{torotation:0},CIMSymbolAnimationOffset:{offsetx:0,offsety:0}};a.defaultCIMColor=
{color:[128,128,128,1],outlinecolor:[0,0,0,1],backgroundcolor:[128,128,128,1],borderlinecolor:[0,0,0,1],tintcolor:[255,255,255,1]};a.defaultCIMValues=b;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/cim/enums":function(){define(["exports"],function(a){a.CapType=void 0;(function(b){b[b.BUTT=0]="BUTT";b[b.ROUND=1]="ROUND";b[b.SQUARE=2]="SQUARE";b[b.UNKNOWN=4]="UNKNOWN"})(a.CapType||(a.CapType={}));a.JoinType=void 0;(function(b){b[b.BEVEL=0]="BEVEL";b[b.ROUND=1]="ROUND";
b[b.MITER=2]="MITER";b[b.UNKNOWN=4]="UNKNOWN"})(a.JoinType||(a.JoinType={}));a.Alignment=void 0;(function(b){b[b.SCREEN=0]="SCREEN";b[b.MAP=1]="MAP"})(a.Alignment||(a.Alignment={}));a.ExternalColorMixMode=void 0;(function(b){b[b.Tint=0]="Tint";b[b.Ignore=1]="Ignore";b[b.Multiply=99]="Multiply"})(a.ExternalColorMixMode||(a.ExternalColorMixMode={}));a.ExtremityPlacement=void 0;(function(b){b.Both="Both";b.JustBegin="JustBegin";b.JustEnd="JustEnd";b.None="None"})(a.ExtremityPlacement||(a.ExtremityPlacement=
{}));a.FillMode=void 0;(function(b){b[b.Mosaic=0]="Mosaic";b[b.Centered=1]="Centered"})(a.FillMode||(a.FillMode={}));a.FontEffects=void 0;(function(b){b[b.Normal=0]="Normal";b[b.Superscript=1]="Superscript";b[b.Subscript=2]="Subscript"})(a.FontEffects||(a.FontEffects={}));a.FontEncoding=void 0;(function(b){b[b.MSSymbol=0]="MSSymbol";b[b.Unicode=1]="Unicode"})(a.FontEncoding||(a.FontEncoding={}));a.FontType=void 0;(function(b){b[b.Unspecified=0]="Unspecified";b[b.TrueType=1]="TrueType";b[b.PSOpenType=
2]="PSOpenType";b[b.TTOpenType=3]="TTOpenType";b[b.Type1=4]="Type1"})(a.FontType||(a.FontType={}));a.AngleAlignment=void 0;(function(b){b[b.Display=0]="Display";b[b.Map=1]="Map"})(a.AngleAlignment||(a.AngleAlignment={}));a.AnimatedSymbolRepeatType=void 0;(function(b){b.None="None";b.Loop="Loop";b.Oscillate="Oscillate"})(a.AnimatedSymbolRepeatType||(a.AnimatedSymbolRepeatType={}));a.AnimatedSymbolEasingType=void 0;(function(b){b.Linear="Linear";b.EaseIn="EaseIn";b.EaseOut="EaseOut";b.EaseInOut="EaseInOut"})(a.AnimatedSymbolEasingType||
(a.AnimatedSymbolEasingType={}));a.DominantSizeAxis=void 0;(function(b){b[b.Z=0]="Z";b[b.X=1]="X";b[b.Y=2]="Y"})(a.DominantSizeAxis||(a.DominantSizeAxis={}));a.RotationOrder=void 0;(function(b){b[b.XYZ=0]="XYZ";b[b.ZXY=1]="ZXY";b[b.YXZ=2]="YXZ"})(a.RotationOrder||(a.RotationOrder={}));a.BalloonCalloutStyle=void 0;(function(b){b[b.Rectangle=0]="Rectangle";b[b.RoundedRectangle=1]="RoundedRectangle";b[b.Oval=2]="Oval"})(a.BalloonCalloutStyle||(a.BalloonCalloutStyle={}));a.BlendingMode=void 0;(function(b){b[b.None=
0]="None";b[b.Alpha=1]="Alpha";b[b.Screen=2]="Screen";b[b.Multiply=3]="Multiply";b[b.Add=4]="Add"})(a.BlendingMode||(a.BlendingMode={}));a.BlockProgression=void 0;(function(b){b[b.TTB=0]="TTB";b[b.RTL=1]="RTL";b[b.BTT=2]="BTT"})(a.BlockProgression||(a.BlockProgression={}));a.BillBoardMode=void 0;(function(b){b[b.None=0]="None";b[b.SignPost=1]="SignPost";b[b.FaceNearPlane=2]="FaceNearPlane"})(a.BillBoardMode||(a.BillBoardMode={}));a.CGAAttributeType=void 0;(function(b){b[b.Float=0]="Float";b[b.String=
1]="String";b[b.Boolean=2]="Boolean"})(a.CGAAttributeType||(a.CGAAttributeType={}));a.ClippingType=void 0;(function(b){b[b.Intersect=0]="Intersect";b[b.Subtract=1]="Subtract"})(a.ClippingType||(a.ClippingType={}));a.GeometricEffectArrowType=void 0;(function(b){b.OpenEnded="OpenEnded";b.Block="Block";b.Crossed="Crossed"})(a.GeometricEffectArrowType||(a.GeometricEffectArrowType={}));a.GeometricEffectControlMeasureLineRule=void 0;(function(b){b.FullGeometry="FullGeometry";b.PerpendicularFromFirstSegment=
"PerpendicularFromFirstSegment";b.ReversedFirstSegment="ReversedFirstSegment";b.PerpendicularToSecondSegment="PerpendicularToSecondSegment";b.SecondSegmentWithTicks="SecondSegmentWithTicks";b.DoublePerpendicular="DoublePerpendicular";b.OppositeToFirstSegment="OppositeToFirstSegment";b.TriplePerpendicular="TriplePerpendicular";b.HalfCircleFirstSegment="HalfCircleFirstSegment";b.HalfCircleSecondSegment="HalfCircleSecondSegment";b.HalfCircleExtended="HalfCircleExtended";b.OpenCircle="OpenCircle";b.CoverageEdgesWithTicks=
"CoverageEdgesWithTicks";b.GapExtentWithDoubleTicks="GapExtentWithDoubleTicks";b.GapExtentMidline="GapExtentMidline";b.Chevron="Chevron";b.PerpendicularWithArc="PerpendicularWithArc";b.ClosedHalfCircle="ClosedHalfCircle";b.TripleParallelExtended="TripleParallelExtended";b.ParallelWithTicks="ParallelWithTicks";b.Parallel="Parallel";b.PerpendicularToFirstSegment="PerpendicularToFirstSegment";b.ParallelOffset="ParallelOffset";b.OffsetOpposite="OffsetOpposite";b.OffsetSame="OffsetSame";b.CircleWithArc=
"CircleWithArc";b.DoubleJog="DoubleJog";b.PerpendicularOffset="PerpendicularOffset";b.LineExcludingLastSegment="LineExcludingLastSegment";b.MultivertexArrow="MultivertexArrow";b.CrossedArrow="CrossedArrow";b.ChevronArrow="ChevronArrow";b.ChevronArrowOffset="ChevronArrowOffset";b.PartialFirstSegment="PartialFirstSegment";b.Arch="Arch";b.CurvedParallelTicks="CurvedParallelTicks";b.Arc90Degrees="Arc90Degrees";b.TipWithPerpendicularAndTicks="TipWithPerpendicularAndTicks";b.ConcentricCircles="ConcentricCircles";
b.DoubleJogArrow="DoubleJogArrow";b.LinkedChevrons="LinkedChevrons";b.SegmentThenHalfCircle="SegmentThenHalfCircle";b.LineWithStraightTicks="LineWithStraightTicks";b.DoubleCurve="DoubleCurve";b.ParallelWithTicksByWidth="ParallelWithTicksByWidth";b.EnclosingRoundedRectangle="EnclosingRoundedRectangle"})(a.GeometricEffectControlMeasureLineRule||(a.GeometricEffectControlMeasureLineRule={}));a.GeometricEffectDonutMethod=void 0;(function(b){b.Mitered="Mitered";b.Bevelled="Bevelled";b.Rounded="Rounded";
b.Square="Square";b.TrueBuffer="TrueBuffer"})(a.GeometricEffectDonutMethod||(a.GeometricEffectDonutMethod={}));a.GeometricEffectEnclosingPolygonMethod=void 0;(function(b){b.ClosePath="ClosePath";b.ConvexHull="ConvexHull";b.RectangularBox="RectangularBox"})(a.GeometricEffectEnclosingPolygonMethod||(a.GeometricEffectEnclosingPolygonMethod={}));a.GeometricEffectExtensionOrigin=void 0;(function(b){b.BeginningOfLine="BeginningOfLine";b.EndOfLine="EndOfLine"})(a.GeometricEffectExtensionOrigin||(a.GeometricEffectExtensionOrigin=
{}));a.GeometricEffectOffsetMethod=void 0;(function(b){b.Mitered="Mitered";b.Bevelled="Bevelled";b.Rounded="Rounded";b.Square="Square"})(a.GeometricEffectOffsetMethod||(a.GeometricEffectOffsetMethod={}));a.GeometricEffectOffsetOption=void 0;(function(b){b.Fast="Fast";b.Accurate="Accurate"})(a.GeometricEffectOffsetOption||(a.GeometricEffectOffsetOption={}));a.GeometricEffectOffsetTangentMethod=void 0;(function(b){b.BeginningOfLine="BeginningOfLine";b.EndOfLine="EndOfLine"})(a.GeometricEffectOffsetTangentMethod||
(a.GeometricEffectOffsetTangentMethod={}));a.GeometricEffectWaveform=void 0;(function(b){b.Sinus="Sinus";b.Square="Square";b.Triangle="Triangle";b.Random="Random"})(a.GeometricEffectWaveform||(a.GeometricEffectWaveform={}));a.GlyphHinting=void 0;(function(b){b[b.None=0]="None";b[b.Default=1]="Default";b[b.Force=2]="Force"})(a.GlyphHinting||(a.GlyphHinting={}));a.GradientAlignment=void 0;(function(b){b[b.Buffered=0]="Buffered";b[b.Left=1]="Left";b[b.Right=2]="Right";b[b.AlongLine=3]="AlongLine"})(a.GradientAlignment||
(a.GradientAlignment={}));a.GradientFillMethod=void 0;(function(b){b[b.Linear=0]="Linear";b[b.Rectangular=1]="Rectangular";b[b.Circular=2]="Circular";b[b.Buffered=3]="Buffered"})(a.GradientFillMethod||(a.GradientFillMethod={}));a.GradientStrokeType=void 0;(function(b){b[b.Discrete=0]="Discrete";b[b.Continuous=1]="Continuous"})(a.GradientStrokeType||(a.GradientStrokeType={}));a.GradientStrokeMethod=void 0;(function(b){b[b.AcrossLine=0]="AcrossLine";b[b.AloneLine=1]="AloneLine"})(a.GradientStrokeMethod||
(a.GradientStrokeMethod={}));a.HorizontalAlignment=void 0;(function(b){b[b.Left=0]="Left";b[b.Right=1]="Right";b[b.Center=2]="Center";b[b.Justify=3]="Justify"})(a.HorizontalAlignment||(a.HorizontalAlignment={}));a.LeaderLineStyle=void 0;(function(b){b[b.Base=0]="Base";b[b.MidPoint=1]="MidPoint";b[b.ThreePoint=2]="ThreePoint";b[b.FourPoint=3]="FourPoint";b[b.Underline=4]="Underline";b[b.CircularCW=5]="CircularCW";b[b.CircularCCW=6]="CircularCCW"})(a.LeaderLineStyle||(a.LeaderLineStyle={}));a.LineCapStyle=
void 0;(function(b){b.Butt="Butt";b.Round="Round";b.Square="Square"})(a.LineCapStyle||(a.LineCapStyle={}));a.LineDashEnding=void 0;(function(b){b.NoConstraint="NoConstraint";b.HalfPattern="HalfPattern";b.HalfGap="HalfGap";b.FullPattern="FullPattern";b.FullGap="FullGap";b.Custom="Custom"})(a.LineDashEnding||(a.LineDashEnding={}));a.LineDecorationStyle=void 0;(function(b){b[b.None=-1]="None";b[b.Custom=0]="Custom";b[b.Circle=1]="Circle";b[b.OpenArrow=2]="OpenArrow";b[b.ClosedArrow=3]="ClosedArrow";
b[b.Diamond=4]="Diamond"})(a.LineDecorationStyle||(a.LineDecorationStyle={}));a.LineGapType=void 0;(function(b){b[b.ExtraLeading=0]="ExtraLeading";b[b.Multiple=1]="Multiple";b[b.Exact=2]="Exact"})(a.LineGapType||(a.LineGapType={}));a.LineJoinStyle=void 0;(function(b){b.Bevel="Bevel";b.Round="Round";b.Miter="Miter"})(a.LineJoinStyle||(a.LineJoinStyle={}));a.ExpressionReturnType=void 0;(function(b){b[b.Default=0]="Default";b[b.String=1]="String";b[b.Numeric=2]="Numeric"})(a.ExpressionReturnType||(a.ExpressionReturnType=
{}));a.MarkerPlacementType=void 0;(function(b){b[b.InsidePolygon=0]="InsidePolygon";b[b.PolygonCenter=1]="PolygonCenter";b[b.RandomlyInsidePolygon=2]="RandomlyInsidePolygon"})(a.MarkerPlacementType||(a.MarkerPlacementType={}));a.MaterialMode=void 0;(function(b){b[b.Tint=0]="Tint";b[b.Replace=1]="Replace";b[b.Multiply=2]="Multiply"})(a.MaterialMode||(a.MaterialMode={}));a.PlacementClip=void 0;(function(b){b[b.ClipAtBoundary=0]="ClipAtBoundary";b[b.RemoveIfCenterOutsideBoundary=1]="RemoveIfCenterOutsideBoundary";
b[b.DoNotTouchBoundary=2]="DoNotTouchBoundary";b[b.DoNotClip=3]="DoNotClip"})(a.PlacementClip||(a.PlacementClip={}));a.PlacementEndings=void 0;(function(b){b.NoConstraint="NoConstraint";b.WithMarkers="WithMarkers";b.WithFullGap="WithFullGap";b.WithHalfGap="WithHalfGap";b.Custom="Custom"})(a.PlacementEndings||(a.PlacementEndings={}));a.PlacementGridType=void 0;(function(b){b.Fixed="Fixed";b.Random="Random";b.RandomFixedQuantity="RandomFixedQuantity"})(a.PlacementGridType||(a.PlacementGridType={}));
a.PlacementOnLineRelativeTo=void 0;(function(b){b.LineMiddle="LineMiddle";b.LineBeginning="LineBeginning";b.LineEnd="LineEnd";b.SegmentMidpoint="SegmentMidpoint"})(a.PlacementOnLineRelativeTo||(a.PlacementOnLineRelativeTo={}));a.PlacementPolygonCenterMethod=void 0;(function(b){b.OnPolygon="OnPolygon";b.CenterOfMass="CenterOfMass";b.BoundingBoxCenter="BoundingBoxCenter"})(a.PlacementPolygonCenterMethod||(a.PlacementPolygonCenterMethod={}));a.PlacementRandomlyAlongLineRandomization=void 0;(function(b){b[b.Low=
0]="Low";b[b.Medium=1]="Medium";b[b.High=2]="High"})(a.PlacementRandomlyAlongLineRandomization||(a.PlacementRandomlyAlongLineRandomization={}));a.PlacementStepPosition=void 0;(function(b){b[b.MarkerCenter=0]="MarkerCenter";b[b.MarkerBounds=1]="MarkerBounds"})(a.PlacementStepPosition||(a.PlacementStepPosition={}));a.PointSymbolCalloutScale=void 0;(function(b){b[b.None=0]="None";b[b.PropUniform=1]="PropUniform";b[b.PropNonuniform=2]="PropNonuniform";b[b.DifUniform=3]="DifUniform";b[b.DifNonuniform=
4]="DifNonuniform"})(a.PointSymbolCalloutScale||(a.PointSymbolCalloutScale={}));a.Simple3DLineStyle=void 0;(function(b){b.Tube="Tube";b.Strip="Strip";b.Wall="Wall"})(a.Simple3DLineStyle||(a.Simple3DLineStyle={}));a.SizeVariationMethod=void 0;(function(b){b[b.Random=0]="Random";b[b.Increasing=1]="Increasing";b[b.Decreasing=2]="Decreasing";b[b.IncreasingThenDecreasing=3]="IncreasingThenDecreasing"})(a.SizeVariationMethod||(a.SizeVariationMethod={}));a.SymbolUnits=void 0;(function(b){b[b.Relative=0]=
"Relative";b[b.Absolute=1]="Absolute"})(a.SymbolUnits||(a.SymbolUnits={}));a.TextCase=void 0;(function(b){b[b.Normal=0]="Normal";b[b.LowerCase=1]="LowerCase";b[b.Allcaps=2]="Allcaps"})(a.TextCase||(a.TextCase={}));a.TextReadingDirection=void 0;(function(b){b[b.LTR=0]="LTR";b[b.RTL=1]="RTL"})(a.TextReadingDirection||(a.TextReadingDirection={}));a.TextureFilter=void 0;(function(b){b.Draft="Draft";b.Picture="Picture";b.Text="Text"})(a.TextureFilter||(a.TextureFilter={}));a.VerticalAlignment=void 0;(function(b){b[b.Top=
0]="Top";b[b.Center=1]="Center";b[b.Baseline=2]="Baseline";b[b.Bottom=3]="Bottom"})(a.VerticalAlignment||(a.VerticalAlignment={}));a.VerticalGlyphOrientation=void 0;(function(b){b[b.Right=0]="Right";b[b.Upright=1]="Upright"})(a.VerticalGlyphOrientation||(a.VerticalGlyphOrientation={}));a.WaterbodySize=void 0;(function(b){b[b.Small=0]="Small";b[b.Medium=1]="Medium";b[b.Large=2]="Large"})(a.WaterbodySize||(a.WaterbodySize={}));a.WaveStrength=void 0;(function(b){b[b.Calm=0]="Calm";b[b.Rippled=1]="Rippled";
b[b.Slight=2]="Slight";b[b.Moderate=3]="Moderate"})(a.WaveStrength||(a.WaveStrength={}));Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/views/2d/arcade/callExpressionWithFeature":function(){define(["../../../core/Error","../../../core/Logger","../../../geometry/support/quantizationUtils"],function(a,b,c){function h(n){const m={};switch(n){case "esriGeometryPoint":return(e,g,f,p)=>c.unquantizePoint(g,m,e,f,p);case "esriGeometryPolygon":return(e,g,f,p)=>c.unquantizePolygon(g,
m,e,f,p);case "esriGeometryPolyline":return(e,g,f,p)=>c.unquantizePolyline(g,m,e,f,p);case "esriGeometryMultipoint":return(e,g,f,p)=>c.unquantizeMultipoint(g,m,e,f,p);default:return b.getLogger("esri.views.2d.support.arcadeOnDemand").error(new a("mapview-arcade",`Unable to handle geometryType: ${n}`)),e=>e}}const d=new Map;return function(n,m,e,g,f){if(null==n)return null;if(n.referencesGeometry()&&f){const {transform:p,hasZ:r,hasM:t}=f;d.has(g)||d.set(g,h(g));g=d.get(g)(m.geometry,p,r,t);m={...m,
geometry:g}}m=n.repurposeFeature(m);try{return n.evaluate({...e,$feature:m},n.services)}catch(p){return b.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",p),null}}})},"esri/geometry/support/quantizationUtils":function(){define(["exports","./jsonUtils"],function(a,b){function c(F){if("lowerLeft"===F.originPosition&&4===F.scale.length&&4===F.translate.length)return F;const {originPosition:H,scale:R,translate:J}=F;F=R[1]??1;return{originPosition:"lowerLeft",
scale:[R[0]??1,"lowerLeft"===H?F:-F,R[2]??1,R[3]??1],translate:[J[0]??0,J[1]??0,J[2]??0,J[3]??0]}}function h({scale:F,translate:H},R){return Math.round((R-H[0])/F[0])}function d({scale:F,translate:H},R){return Math.round((R-H[1])/F[1])}function n({scale:F,translate:H},R){return Math.round(((R??0)-H[2])/F[2])}function m({scale:F,translate:H},R){return R?Math.round((R-H[3])/F[3]):0}function e(F,H){return F&&H?C:F&&!H?y:!F&&H?B:v}function g({scale:F,translate:H},R){return R*F[0]+H[0]}function f({scale:F,
translate:H},R){return R*F[1]+H[1]}function p({scale:F,translate:H},R){return(R??0)*F[2]+H[2]}function r({scale:F,translate:H},R){return R?R*F[3]+H[3]:0}function t(F,H){return F&&H?E:F&&!H?M:!F&&H?G:L}function l(F,H,R){const J=Array(R.length);for(let K=0;Kfa&&(Q=Math.min(Q,J));0pa?N=Math.min(N,K):0{const R=[];if(!H.length)return null;var J=H[0];let K=h(F,J[0]);J=d(F,J[1]);R.push([K,J]);for(let Q=1;Q{const R=[];if(!H.length)return null;var J=H[0];let K=h(F,J[0]),Q=d(F,J[1]);J=n(F,J[2]);R.push([K,Q,
J]);for(let N=1;N{const R=[];if(!H.length)return null;var J=H[0];let K=h(F,J[0]),Q=d(F,J[1]);J=m(F,J[2]);R.push([K,Q,J]);for(let N=1;N{const R=[];if(!H.length)return null;var J=H[0];let K=h(F,J[0]),Q=d(F,J[1]),
N=n(F,J[2]);J=m(F,J[3]);R.push([K,Q,N,J]);for(let U=1;U{const R=Array(H.length);if(!H.length)return R;var J=H[0];let K=g(F,J[0]);J=f(F,J[1]);R[0]=[K,J];const {scale:Q,originPosition:N}=F;F=Q[0];const U="lowerLeft"===N?Q[1]:-Q[1];for(let Z=1;Z
{const R=Array(H.length);if(!H.length)return R;var J=H[0];let K=g(F,J[0]),Q=f(F,J[1]);R[0]=[K,Q,p(F,J[2])];const {scale:N,originPosition:U}=F;J=N[0];const Z="lowerLeft"===U?N[1]:-N[1];for(let fa=1;fa{const R=Array(H.length);if(!H.length)return R;var J=H[0];let K=g(F,J[0]),Q=f(F,J[1]);R[0]=[K,Q,r(F,J[2])];const {scale:N,originPosition:U}=F;J=N[0];const Z="lowerLeft"===U?N[1]:-N[1];for(let fa=1;fa{const R=Array(H.length);if(!H.length)return R;var J=H[0];let K=g(F,J[0]),Q=f(F,J[1]);R[0]=[K,Q,p(F,J[2]),r(F,J[3])];const {scale:N,originPosition:U}=F;J=N[0];const Z="lowerLeft"===U?N[1]:-N[1];for(let fa=1;faA?1:A}getSymbol(){return new l({outline:this.outline})}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol()]}getAttributeHash(){return this.attributes?.reduce((A,
u)=>A+u.getAttributeHash(),"")??""}getMeshHash(){return JSON.stringify(this.outline)}clone(){return new x({attributes:c.clone(this.attributes),backgroundColor:c.clone(this.backgroundColor),dotBlendingEnabled:c.clone(this.dotBlendingEnabled),dotShape:c.clone(this.dotShape),dotSize:c.clone(this.dotSize),dotValue:c.clone(this.dotValue),legendOptions:c.clone(this.legendOptions),outline:c.clone(this.outline),referenceScale:c.clone(this.referenceScale),seed:c.clone(this.seed),visualVariables:c.clone(this.visualVariables),
authoringInfo:c.clone(this.authoringInfo)})}getControllerHash(){const A=this.attributes?.map(w=>w.field||w.valueExpression||""),u=this.outline&&JSON.stringify(this.outline.toJSON())||"";return`${A}-${u}`}async collectRequiredFields(A,u){await this.collectVVRequiredFields(A,u);for(const w of this.attributes??[])w.valueExpression&&await g.collectArcadeFieldNames(A,u,w.valueExpression),w.field&&A.add(w.field)}};a.__decorate([h.property({type:[r],json:{write:!0}})],d.prototype,"attributes",void 0);a.__decorate([h.property({type:b,
json:{write:!0}})],d.prototype,"backgroundColor",void 0);a.__decorate([h.property({type:Boolean,json:{write:!0}})],d.prototype,"dotBlendingEnabled",void 0);a.__decorate([h.property({type:String,json:{write:!1}})],d.prototype,"dotShape",void 0);a.__decorate([h.property({type:Number,json:{write:!0}})],d.prototype,"dotSize",void 0);a.__decorate([h.property({type:t,json:{write:!0}})],d.prototype,"legendOptions",void 0);a.__decorate([h.property({type:q,json:{default:null,write:!0}})],d.prototype,"outline",
void 0);a.__decorate([h.property({type:Number,json:{write:!0}})],d.prototype,"dotValue",void 0);a.__decorate([h.property({type:Number,json:{write:!0}})],d.prototype,"referenceScale",void 0);a.__decorate([h.property({type:Number,json:{write:!0}})],d.prototype,"seed",void 0);a.__decorate([m.enumeration({dotDensity:"dot-density"})],d.prototype,"type",void 0);return d=x=a.__decorate([e.subclass("esri.renderers.DotDensityRenderer")],d)})},"esri/renderers/support/AttributeColorInfo":function(){define("../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/ensureType".split(" "),
function(a,b,c,h,d,n,m,e,g,f){var p;c=p=class extends c.JSONSupport{constructor(r){super(r);this.valueExpressionTitle=this.valueExpression=this.label=this.field=this.color=null}castField(r){return null==r?r:"function"===typeof r?(h.getLogger(this).error(".field: field must be a string value"),null):f.ensureString(r)}getAttributeHash(){return`${this.field}-${this.valueExpression}`}clone(){return new p({color:this.color?.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,
valueExpressionTitle:this.valueExpressionTitle})}};a.__decorate([d.property({type:b,json:{type:[Number],write:!0}})],c.prototype,"color",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"field",void 0);a.__decorate([n.cast("field")],c.prototype,"castField",null);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"label",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"valueExpression",void 0);a.__decorate([d.property({type:String,
json:{write:!0}})],c.prototype,"valueExpressionTitle",void 0);return c=p=a.__decorate([g.subclass("esri.renderers.support.AttributeColorInfo")],c)})},"esri/renderers/support/DotDensityLegendOptions":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m){var e;b=e=class extends b.JSONSupport{constructor(){super(...arguments);
this.unit=null}clone(){return new e({unit:this.unit})}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"unit",void 0);return b=e=a.__decorate([m.subclass("esri.renderers.support.DotDensityLegendOptions")],b)})},"esri/renderers/HeatmapRenderer":function(){define("../chunks/tslib.es6 ../Color ../symbols ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../layers/support/fieldUtils ./Renderer ./support/AuthoringInfo ./support/HeatmapColorStop ./support/HeatmapLegendOptions ./support/heatmapUtils ../symbols/SimpleMarkerSymbol".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A){function u(z){if(null!=z){const {maxDensity:k,minDensity:v,radius:y}=z;if(null!=k||null!=v||null!=y){const {blurRadius:B,maxPixelIntensity:C,minPixelIntensity:L,...M}=z;return M}}return z}var w;c=w=class extends r{constructor(z){super(z);this.authoringInfo=null;this.colorStops=[new l({ratio:0,color:new b("rgba(255, 140, 0, 0)")}),new l({ratio:.75,color:new b("rgba(255, 140, 0, 1)")}),new l({ratio:.9,color:new b("rgba(255, 0, 0, 1)")})];this.legendOptions=
this.field=null;this.maxDensity=.04;this.minDensity=0;this.radius=18;this.referenceScale=0;this.type="heatmap";this.valueExpressionTitle=this.valueExpression=null}normalizeCtorArgs(z){return u(z)}get blurRadius(){return x.kernelDensityRadiusPtToGaussianBlurRadiusPx(this.radius)}set blurRadius(z){const k=this.maxPixelIntensity,v=this.minPixelIntensity;this._set("radius",x.gaussianBlurRadiusPxToKernelDensityRadiusPt(z));this._set("maxDensity",k*this._pixelIntensityToDensity);this._set("minDensity",
v*this._pixelIntensityToDensity)}get maxPixelIntensity(){return this.maxDensity/this._pixelIntensityToDensity}set maxPixelIntensity(z){this._set("maxDensity",z*this._pixelIntensityToDensity)}get minPixelIntensity(){return this.minDensity/this._pixelIntensityToDensity}set minPixelIntensity(z){this._set("minDensity",z*this._pixelIntensityToDensity)}get _pixelIntensityToDensity(){return 24/(x.magicKernelDensityRadiusInflationFactor**2*this.blurRadius**4)}read(z,k){z=u(z);super.read(z,k)}getSymbol(){return new A}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol()]}async collectRequiredFields(z,
k){const v=this.field,y=this.valueExpression;v&&"string"===typeof v&&p.collectField(z,k,v);y&&"string"===typeof y&&await p.collectArcadeFieldNames(z,k,y)}getAttributeHash(){return""}getMeshHash(){return`${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}`}clone(){return new w({authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),colorStops:h.clone(this.colorStops),field:this.field,legendOptions:h.clone(this.legendOptions),maxDensity:this.maxDensity,minDensity:this.minDensity,
radius:this.radius,referenceScale:this.referenceScale,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};a.__decorate([n.property({type:t,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],c.prototype,"authoringInfo",void 0);a.__decorate([n.property({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],c.prototype,"blurRadius",null);a.__decorate([n.property({type:[l],json:{write:!0}})],c.prototype,"colorStops",void 0);a.__decorate([n.property({type:String,
json:{write:!0}})],c.prototype,"field",void 0);a.__decorate([n.property({type:q.HeatmapLegendOptions,json:{write:!0}})],c.prototype,"legendOptions",void 0);a.__decorate([n.property({type:Number,json:{write:!0}})],c.prototype,"maxDensity",void 0);a.__decorate([n.property({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],c.prototype,"maxPixelIntensity",null);a.__decorate([n.property({type:Number,json:{write:!0}})],c.prototype,"minDensity",void 0);a.__decorate([n.property({type:Number,
json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],c.prototype,"minPixelIntensity",null);a.__decorate([n.property({type:Number,cast:d.toPt,json:{write:!0}})],c.prototype,"radius",void 0);a.__decorate([n.property({type:Number,range:{min:0},json:{default:0,write:!0}})],c.prototype,"referenceScale",void 0);a.__decorate([g.enumeration({heatmap:"heatmap"})],c.prototype,"type",void 0);a.__decorate([n.property({type:String,json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],
c.prototype,"valueExpression",void 0);a.__decorate([n.property({type:String})],c.prototype,"valueExpressionTitle",void 0);a.__decorate([n.property({readOnly:!0})],c.prototype,"_pixelIntensityToDensity",null);return c=w=a.__decorate([f.subclass("esri.renderers.HeatmapRenderer")],c)})},"esri/renderers/support/HeatmapColorStop":function(){define("../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e){var g;c=g=class extends c.JSONSupport{constructor(f){super(f);this.ratio=this.color=null}clone(){return new g({color:this.color&&this.color.clone(),ratio:this.ratio})}};a.__decorate([h.property({type:b,json:{type:[d.Integer],default:null,write:!0}})],c.prototype,"color",void 0);a.__decorate([h.property({type:Number,json:{write:!0}})],c.prototype,"ratio",void 0);return c=g=a.__decorate([e.subclass("esri.renderers.support.HeatmapColorStop")],c)})},"esri/renderers/support/HeatmapLegendOptions":function(){define("exports ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e,g){a.HeatmapLegendOptions=class extends c.ClonableMixin(h.JSONSupport){constructor(){super(...arguments);this.title=this.maxLabel=this.minLabel=null}};b.__decorate([d.property({type:String,json:{write:!0}})],a.HeatmapLegendOptions.prototype,"minLabel",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],a.HeatmapLegendOptions.prototype,"maxLabel",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],a.HeatmapLegendOptions.prototype,"title",void 0);a.HeatmapLegendOptions=
b.__decorate([g.subclass("esri.renderers.support.HeatmapLegendOptions")],a.HeatmapLegendOptions);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/renderers/support/heatmapUtils":function(){define(["exports","../../core/mathUtils","../../core/screenUtils","../../chunks/vec42","../../core/libs/gl-matrix-2/factories/vec4f64"],function(a,b,c,h,d){function n(m,e,g,f){let {color:p,ratio:r}=e,{color:t,ratio:l}=g;l===r&&(1===l?r-=1E-6:l+=1E-6);e=b.clamp((f-r)/(l-r),0,1);h.lerp(m,p.toArray(),
t.toArray(),e)}a.createValueFunction=function(m){return"function"===typeof m?m:m?e=>+e[m]:()=>1};a.evaluateDensityKernel=function(m,e,g){m=Math.sqrt(m**2+e**2)/g;return 10<=t&&1>=t).sort((t,l)=>t.ratio-l.ratio).map(({color:t,ratio:l})=>({color:t,ratio:Math.max(l,.001)}));if(1>m.length)return e;
let g=m[0],f=m[0],p=1;const r=d.create();for(let t=0;512>t;t++){const l=(t+.5)/512;for(;l>f.ratio&&pB+C.getAttributeHash(),"")??""}getMeshHash(){return this.getSymbols().reduce((B,C)=>B+=JSON.stringify(C),"")}async collectRequiredFields(B,C){await this.collectVVRequiredFields(B,C);for(const L of this.attributes)L.valueExpression&&await r.collectArcadeFieldNames(B,C,L.valueExpression),
L.field&&B.add(L.field)}};a.__decorate([m.property({type:[q],json:{write:!0}})],d.prototype,"attributes",void 0);a.__decorate([m.property(x.rendererBackgroundFillSymbolProperty)],d.prototype,"backgroundFillSymbol",void 0);a.__decorate([m.property({type:b,json:{write:!0}})],d.prototype,"defaultColor",void 0);a.__decorate([m.property({type:String,json:{write:!0}})],d.prototype,"defaultLabel",void 0);a.__decorate([m.property({type:Number,range:{min:0,max:1},json:{write:!0}})],d.prototype,"holePercentage",
void 0);a.__decorate([m.property({type:A.OthersCategory,json:{write:!0}})],d.prototype,"othersCategory",void 0);a.__decorate([m.property({type:u,json:{write:!0}})],d.prototype,"legendOptions",void 0);a.__decorate([m.property({type:y,json:{default:null,write:!0}})],d.prototype,"outline",void 0);a.__decorate([m.property({type:Number,cast:n.toPt,json:{write:!0}})],d.prototype,"size",void 0);a.__decorate([f.enumeration({pieChart:"pie-chart"})],d.prototype,"type",void 0);a.__decorate([m.property({types:[c]})],
d.prototype,"visualVariables",void 0);return d=a.__decorate([p.subclass("esri.renderers.PieChartRenderer")],d)})},"esri/renderers/support/OthersCategory":function(){define("exports ../../chunks/tslib.es6 ../../Color ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m,e,g,f){a.OthersCategory=class extends h.ClonableMixin(d.JSONSupport){constructor(){super(...arguments);
this.color=new c([0,0,0,0]);this.label=null;this.threshold=0}};b.__decorate([n.property({type:c,json:{write:!0}})],a.OthersCategory.prototype,"color",void 0);b.__decorate([n.property({type:String,json:{write:!0}})],a.OthersCategory.prototype,"label",void 0);b.__decorate([n.property({type:Number,range:{min:0,max:1},json:{write:!0}})],a.OthersCategory.prototype,"threshold",void 0);a.OthersCategory=b.__decorate([f.subclass("esri.renderers.support.OthersCategory")],a.OthersCategory);Object.defineProperty(a,
Symbol.toStringTag,{value:"Module"})})},"esri/renderers/SimpleRenderer":function(){define("../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Renderer ./mixins/VisualVariablesMixin ./support/commonProperties".split(" "),function(a,b,c,h,d,n,m,e,g,f){var p;h=p=class extends g.VisualVariablesMixin(e){constructor(r){super(r);this.symbol=this.label=this.description=
null;this.type="simple"}async collectRequiredFields(r,t){await Promise.all([this.collectSymbolFields(r,t),this.collectVVRequiredFields(r,t)])}async collectSymbolFields(r,t){await Promise.all(this.getSymbols().map(l=>l.collectRequiredFields(r,t)))}getSymbol(r,t){return this.symbol}async getSymbolAsync(r,t){return this.symbol}getSymbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables?.reduce((r,t)=>r+t.getAttributeHash(),"")??""}getMeshHash(){return this.getSymbols().reduce((r,
t)=>r+=JSON.stringify(t),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new p({description:this.description,label:this.label,symbol:b.clone(this.symbol),visualVariables:b.clone(this.visualVariables),authoringInfo:b.clone(this.authoringInfo)})}};a.__decorate([c.property({type:String,json:{write:!0}})],h.prototype,"description",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],h.prototype,"label",void 0);a.__decorate([c.property(f.requiredRendererSymbolProperty)],
h.prototype,"symbol",void 0);a.__decorate([n.enumeration({simple:"simple"})],h.prototype,"type",void 0);return h=p=a.__decorate([m.subclass("esri.renderers.SimpleRenderer")],h)})},"esri/renderers/UniqueValueRenderer":function(){define("../chunks/tslib.es6 ../symbols ../core/Error ../core/lang ../core/Logger ../core/object ../core/reactiveUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/diffUtils ../core/accessorSupport/ensureType ../layers/support/fieldUtils ../portal/Portal ./Renderer ./mixins/VisualVariablesMixin ./support/commonProperties ./support/RendererLegendOptions ./support/UniqueValue ./support/UniqueValueClass ./support/UniqueValueGroup ./support/UniqueValueInfo ../support/arcadeOnDemand ../chunks/persistableUrlUtils ../symbols/support/styleUtils ../symbols/WebStyleSymbol".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u,w,z,k,v,y,B,C,L,M,G,E){function F(K){const {field1:Q,field2:N,field3:U,fieldDelimiter:Z,uniqueValueInfos:fa,valueExpression:pa}=K,xa=!(!Q||!N);return[{classes:(fa??[]).map(ra=>{const {symbol:qa,label:za,value:Da,description:sa}=ra,[X,aa,ha]=xa?Da?.toString()?.split(Z||"")||[]:[Da];ra=[];(Q||pa)&&ra.push(X);N&&ra.push(aa);U&&ra.push(ha);return{symbol:qa,label:za,values:[ra],description:sa}})}]}function H(K){if(null==K||""===K||"string"===typeof K&&(""===
K.trim()||"\x3cnull\x3e"===K.toLowerCase()))K=null;return K+""}var R;const J=q.ensureType(C);u=R=class extends w.VisualVariablesMixin(u){constructor(K){super(K);this._valueInfoMap={};this._isDefaultSymbolDerived=!1;this._isInfosSource=null;this.type="unique-value";this.backgroundFillSymbol=null;this.orderByClassesEnabled=!1;this.styleOrigin=this.portal=this.defaultLabel=this.legendOptions=this.valueExpressionTitle=null;this.diff={uniqueValueInfos(Q,N){if(Q||N){if(!Q||!N)return{type:"complete",oldValue:Q,
newValue:N};var U=!1,Z={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let fa=0;faxa.value===N[fa].value);pa?l.diff(pa,N[fa])?(Z.changed.push({type:"complete",oldValue:pa,newValue:N[fa]}),U=!0):Z.unchanged.push({oldValue:pa,newValue:N[fa]}):(Z.added.push(N[fa]),U=!0)}for(let fa=0;fapa.value===Q[fa].value)||(Z.removed.push(Q[fa]),U=!0);return U?Z:void 0}}};this._set("uniqueValueInfos",[]);this._set("uniqueValueGroups",
[])}get _cache(){return{compiledFunc:null}}set field(K){this._set("field",K);this._updateFieldDelimiter();this._updateUniqueValues()}castField(K){return null==K||"function"===typeof K?K:q.ensureString(K)}writeField(K,Q,N,U){"string"===typeof K?Q[N]=K:U?.messages?U.messages.push(new c("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):d.getLogger("esri.renderers.UniqueValueRenderer").error(".field: cannot write field to JSON since it's not a string value")}set field2(K){this._set("field2",
K);this._updateFieldDelimiter();this._updateUniqueValues()}set field3(K){this._set("field3",K);this._updateUniqueValues()}set valueExpression(K){this._set("valueExpression",K);this._updateUniqueValues()}set defaultSymbol(K){this._isDefaultSymbolDerived=!1;this._set("defaultSymbol",K)}set fieldDelimiter(K){this._set("fieldDelimiter",K);this._updateUniqueValues()}readPortal(K,Q,N){return N.portal||A.getDefault()}readStyleOrigin(K,Q,N){if(Q.styleName)return Object.freeze({styleName:Q.styleName});if(Q.styleUrl)return K=
M.fromJSON(Q.styleUrl,N),Object.freeze({styleUrl:K})}writeStyleOrigin(K,Q,N,U){K.styleName?Q.styleName=K.styleName:K.styleUrl&&(Q.styleUrl=M.toJSON(K.styleUrl,U))}set uniqueValueGroups(K){this.styleOrigin?d.getLogger("esri.renderers.UniqueValueRenderer").error("#uniqueValueGroups\x3d","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",K),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(K){this.styleOrigin?
d.getLogger("esri.renderers.UniqueValueRenderer").error("#uniqueValueInfos\x3d","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",K),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(K,Q){this.styleOrigin?d.getLogger("esri.renderers.UniqueValueRenderer").error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):
(K="object"===typeof K?J(K):new C({value:K,symbol:b.ensureType(Q)}),this.uniqueValueInfos?.push(K),this._valueInfoMap[H(K.value)]=K,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}removeUniqueValueInfo(K){if(this.styleOrigin)d.getLogger("esri.renderers.UniqueValueRenderer").error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");else{var Q=this.uniqueValueInfos;if(Q)for(let N=0;NK+Q.getAttributeHash(),"")??""}getMeshHash(){const K=JSON.stringify(this.backgroundFillSymbol),Q=JSON.stringify(this.defaultSymbol),N=this.uniqueValueInfos?.reduce((U,Z)=>U+Z.getMeshHash(),"");return`${K}.${Q}.${N}.${`${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}`}.${this.valueExpression}`}clone(){const K=new R({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:h.clone(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,
valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:h.clone(this.visualVariables),legendOptions:h.clone(this.legendOptions),authoringInfo:h.clone(this.authoringInfo),backgroundFillSymbol:h.clone(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(K._isDefaultSymbolDerived=!0);K._set("portal",this.portal);const Q=h.clone(this.uniqueValueInfos),N=h.clone(this.uniqueValueGroups);this.styleOrigin&&(K._set("styleOrigin",
Object.freeze(h.clone(this.styleOrigin))),Object.freeze(Q),Object.freeze(N));K._set("uniqueValueInfos",Q);K._updateValueInfoMap();K._set("uniqueValueGroups",N);K._isInfosSource=this._isInfosSource;K._watchUniqueValueInfosAndGroups();return K}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(K,Q){K=[this.collectVVRequiredFields(K,Q),this.collectSymbolFields(K,Q)];await Promise.all(K)}async collectSymbolFields(K,Q){const N=[...this.getSymbols().map(U=>
U.collectRequiredFields(K,Q)),x.collectArcadeFieldNames(K,Q,this.valueExpression)];x.collectField(K,Q,this.field);x.collectField(K,Q,this.field2);x.collectField(K,Q,this.field3);await Promise.all(N)}populateFromStyle(){return G.fetchStyle(this.styleOrigin,{portal:this.portal}).then(K=>{const Q=[];this._valueInfoMap={};K?.data&&Array.isArray(K.data.items)&&K.data.items.forEach(N=>{var U=new E({styleUrl:K.styleUrl,styleName:K.styleName,portal:this.portal,name:N.name});this.defaultSymbol||N.name!==K.data.defaultItem||
(this.defaultSymbol=U,this._isDefaultSymbolDerived=!0);U=new C({value:N.name,symbol:U});Q.push(U);this._valueInfoMap[H(N.name)]=U});this._set("uniqueValueInfos",Object.freeze(Q));this._updateGroupsFromInfos(!0);this._isInfosSource=null;this._watchUniqueValueInfos();!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0);return this})}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",
",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const {uniqueValueInfos:K}=this;if(K)for(const Q of K)this._valueInfoMap[H(Q.value)]=Q}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos();this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles("uvInfos-watcher");const {uniqueValueInfos:K}=this;if(K){const Q=[];for(const N of K)Q.push(m.watch(()=>
({symbol:N.symbol,value:N.value,label:N.label,description:N.description}),(U,Z)=>{U!==Z&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)},{sync:!0}));this.addHandles(Q,"uvInfos-watcher")}}_watchUniqueValueGroups(){this.removeHandles("uvGroups-watcher");const {uniqueValueGroups:K}=this;if(K){const Q=[];for(const N of K){Q.push(m.watch(()=>({classes:N.classes}),(U,Z)=>{U!==Z&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}));for(const U of N.classes??[])Q.push(m.watch(()=>({symbol:U.symbol,
values:U.values,label:U.label,description:U.description}),(Z,fa)=>{Z!==fa&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}))}this.addHandles(Q,"uvGroups-watcher")}}_updateInfosFromGroups(){if(this.uniqueValueGroups){var K=[],{field:Q,field2:N,field3:U,fieldDelimiter:Z,uniqueValueGroups:fa,valueExpression:pa}=this;if(Q||pa){var xa=!(!Q||!N);for(const qa of fa)for(const za of qa.classes??[]){const {symbol:Da,label:sa,values:X,description:aa}=za;for(const ha of X??[]){const {value:I,
value2:T,value3:da}=ha;var ra=[I];N&&ra.push(T);U&&ra.push(da);ra=xa?ra.join(Z||""):ra[0]??void 0;K.push(new C({symbol:Da,label:sa,value:ra,description:aa}))}}}this._set("uniqueValueInfos",K)}else this._set("uniqueValueInfos",null);this._updateValueInfoMap();this._watchUniqueValueInfos()}_updateGroupsFromInfos(K=!1){if(this.uniqueValueInfos){var {field:Q,field2:N,valueExpression:U,fieldDelimiter:Z,uniqueValueInfos:fa}=this;if((Q||U)&&fa.length){var pa=!(!Q||!N),xa=fa.map(ra=>{const {symbol:qa,label:za,
value:Da,description:sa}=ra,[X,aa,ha]=pa?Da?.toString()?.split(Z||"")||[]:[Da];return new y({symbol:qa,label:za,description:sa,values:[new v({value:X,value2:aa,value3:ha})]})});xa=[new B({classes:xa})];K&&Object.freeze(xa);this._set("uniqueValueGroups",xa)}else this._set("uniqueValueGroups",[])}else this._set("uniqueValueGroups",null);this._watchUniqueValueGroups()}_getUniqueValueInfo(K,Q){return this.valueExpression?this._getUnqiueValueInfoForExpression(K,Q):this._getUnqiueValueInfoForFields(K)}_getUnqiueValueInfoForExpression(K,
Q){const {viewingMode:N,scale:U,spatialReference:Z,arcade:fa,timeZone:pa}=Q??{};var xa=this._cache.compiledFunc;Q=fa.arcadeUtils;xa||(xa=Q.createSyntaxTree(this.valueExpression),xa=Q.createFunction(xa),this._cache.compiledFunc=xa);K=Q.executeFunction(xa,Q.createExecContext(K,Q.getViewInfo({viewingMode:N,scale:U,spatialReference:Z}),pa));return this._valueInfoMap[H(K)]}_getUnqiueValueInfoForFields(K){const Q=this.field;K=K.attributes;if(this.field2){var N=this.field2;const U=this.field3,Z=[];Q&&Z.push(K[Q]);
N&&Z.push(K[N]);U&&Z.push(K[U]);N=Z.join(this.fieldDelimiter||"")}else Q&&(N=K[Q]);return this._valueInfoMap[H(N)]}static fromPortalStyle(K,Q){const N=new R(Q?.properties);N._set("styleOrigin",Object.freeze({styleName:K}));N._set("portal",Q?.portal||A.getDefault());Q=N.populateFromStyle();Q.catch(U=>{d.getLogger("esri.renderers.UniqueValueRenderer").error(`#fromPortalStyle('${K}'[, ...])`,"Failed to create unique value renderer from style name",U)});return Q}static fromStyleUrl(K,Q){Q=new R(Q?.properties);
Q._set("styleOrigin",Object.freeze({styleUrl:K}));Q=Q.populateFromStyle();Q.catch(N=>{d.getLogger("esri.renderers.UniqueValueRenderer").error(`#fromStyleUrl('${K}'[, ...])`,"Failed to create unique value renderer from style URL",N)});return Q}};a.__decorate([e.property({readOnly:!0})],u.prototype,"_cache",null);a.__decorate([f.enumeration({uniqueValue:"unique-value"})],u.prototype,"type",void 0);a.__decorate([e.property(z.rendererBackgroundFillSymbolProperty)],u.prototype,"backgroundFillSymbol",void 0);
a.__decorate([e.property({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],u.prototype,"field",null);a.__decorate([g.cast("field")],u.prototype,"castField",null);a.__decorate([t.writer("field")],u.prototype,"writeField",null);a.__decorate([e.property({type:String,value:null,json:{write:!0}})],u.prototype,"field2",null);a.__decorate([e.property({type:String,value:null,json:{write:!0}})],u.prototype,"field3",null);a.__decorate([e.property({type:Boolean,json:{name:"drawInClassOrder",
default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"orderByClassesEnabled",void 0);a.__decorate([e.property({type:String,value:null,json:{write:!0}})],u.prototype,"valueExpression",null);a.__decorate([e.property({type:String,json:{write:!0}})],u.prototype,"valueExpressionTitle",void 0);a.__decorate([e.property({type:k,json:{write:!0}})],u.prototype,"legendOptions",void 0);a.__decorate([e.property({type:String,json:{write:!0}})],u.prototype,"defaultLabel",void 0);a.__decorate([e.property(n.deepMerge({...z.rendererSymbolProperty},
{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],u.prototype,"defaultSymbol",null);a.__decorate([e.property({type:String,value:null,json:{write:!0}})],u.prototype,"fieldDelimiter",null);a.__decorate([e.property({type:A,readOnly:!0})],u.prototype,"portal",void 0);a.__decorate([p.reader("portal",["styleName"])],u.prototype,"readPortal",null);a.__decorate([e.property({readOnly:!0,
json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],u.prototype,"styleOrigin",void 0);a.__decorate([p.reader("styleOrigin",["styleName","styleUrl"])],u.prototype,"readStyleOrigin",null);a.__decorate([t.writer("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],u.prototype,"writeStyleOrigin",null);a.__decorate([e.property({type:[B],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(K,Q,N)=>(Q.uniqueValueGroups||F(Q)).map(U=>B.fromJSON(U,N))},write:{overridePolicy(){return this.styleOrigin?
{enabled:!1}:{enabled:!0}}}}})],u.prototype,"uniqueValueGroups",null);a.__decorate([e.property({type:[C],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],u.prototype,"uniqueValueInfos",null);return u=R=a.__decorate([r.subclass("esri.renderers.UniqueValueRenderer")],u)})},"esri/core/accessorSupport/diffUtils":function(){define(["exports","../Accessor","../Collection","./utils"],function(a,b,c,h){function d(t){return t instanceof c?Object.keys(t.items):t instanceof
b?h.getProperties(t).keys():t?Object.keys(t):[]}function n(t,l){return t instanceof c?t.items[l]:t[l]}function m(t,l){return Array.isArray(t)&&Array.isArray(l)?t.length!==l.length:!1}function e(t){return t?t.declaredClass:null}function g(t,l){const q=t.diff;if(q&&"function"===typeof q)return q(t,l);const x=d(t),A=d(l);if(0!==x.length||0!==A.length){if(!x.length||!A.length||m(t,l))return{type:"complete",oldValue:t,newValue:l};var u=A.filter(k=>!x.includes(k)),w=x.filter(k=>!A.includes(k));w=x.filter(k=>
A.includes(k)&&n(t,k)!==n(l,k)).concat(u,w).sort();if((u=e(t))&&r.has(u)&&w.length)return{type:"complete",oldValue:t,newValue:l};var z;u=t instanceof b&&l instanceof b;for(const k of w){w=n(t,k);const v=n(l,k);if((u||"function"!==typeof w&&"function"!==typeof v)&&w!==v&&(null!=w||null!=v)){if(q&&q[k]&&"function"===typeof q[k])w=q[k]?.(w,v);else if(w instanceof Date&&v instanceof Date){if(w.getTime()===v.getTime())continue;w={type:"complete",oldValue:w,newValue:v}}else w="object"===typeof w&&"object"===
typeof v&&e(w)===e(v)?g(w,v):{type:"complete",oldValue:w,newValue:v};null!=w&&(null!=z?z.diff[k]=w:z={type:"partial",diff:{[k]:w}})}}return z}}function f(t,l){if(null==t)return!1;l=l.split(".");for(const q of l){if("complete"===t.type)break;if("partial"===t.type){if(t=t.diff[q],!t)return!1}else return!1}return!0}function p(t){if(null==t)return!0;switch(t.type){case "complete":return!1;case "collection":for(const l of t.added)if(!p(l))return!1;for(const l of t.removed)if(!p(l))return!1;for(const l of t.changed)if(!p(l))return!1;
return!0;case "partial":for(const l in t.diff)if(!p(t.diff[l]))return!1;return!0}}const r=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);a.diff=function(t,l){if("function"!==typeof t&&"function"!==typeof l&&(null!=t||null!=l))return null==t||null==l||"object"===typeof t&&"object"===typeof l&&e(t)!==e(l)?{type:"complete",oldValue:t,newValue:l}:g(t,l)};a.hasDiff=f;a.hasDiffAny=function(t,l){for(const q of l)if(f(t,
q))return!0;return!1};a.hasRootDiff=function(t,l){return f(t,l)};a.hasRootDiffOnly=function(t,l){return t?"partial"===t.type?(t=Object.keys(t.diff),1===t.length&&t[0]===l):!1:!1};a.isEmpty=p;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/renderers/support/UniqueValue":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./commonProperties".split(" "),
function(a,b,c,h,d,n,m,e,g){b=class extends b.ClonableMixin(c.JSONSupport){constructor(f){super(f);this.value3=this.value2=this.value=null}};a.__decorate([h.property(g.uniqueValueProperty)],b.prototype,"value",void 0);a.__decorate([h.property(g.uniqueValueProperty)],b.prototype,"value2",void 0);a.__decorate([h.property(g.uniqueValueProperty)],b.prototype,"value3",void 0);return b=a.__decorate([e.subclass("esri.renderers.support.UniqueValue")],b)})},"esri/renderers/support/UniqueValueClass":function(){define("../../chunks/tslib.es6 ../../core/arrayUtils ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/has ../../core/accessorSupport/decorators/subclass ./commonProperties ./UniqueValue".split(" "),
function(a,b,c,h,d,n,m,e,g,f){c=class extends c.ClonableMixin(h.JSONSupport){constructor(p){super(p);this.values=this.symbol=this.label=this.description=null}castValues(p){if(null==p)return null;p=Array.isArray(p)?p:[p];const r=typeof p[0];return"string"===r||"number"===r?p.map(t=>new f({value:t})):"object"===r?p[0]instanceof f?p:p.map(t=>new f(t)):null}};a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"description",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],
c.prototype,"label",void 0);a.__decorate([d.property(g.rendererSymbolProperty)],c.prototype,"symbol",void 0);a.__decorate([d.property({type:[f],json:{type:[[String]],read:{reader:p=>p?p.map(r=>new f({value:r[0],value2:r[1],value3:r[2]})):null},write:{writer:(p,r)=>{const t=[];for(const l of p)p=[l.value,l.value2,l.value3].filter(b.isSome).map(q=>q.toString()),t.push(p);r.values=t}}}})],c.prototype,"values",void 0);a.__decorate([n.cast("values")],c.prototype,"castValues",null);return c=a.__decorate([e.subclass("esri.renderers.support.UniqueValueClass")],
c)})},"esri/renderers/support/UniqueValueGroup":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./UniqueValueClass".split(" "),function(a,b,c,h,d,n,m,e,g){b=class extends b.ClonableMixin(c.JSONSupport){constructor(f){super(f);this.classes=this.heading=null}};a.__decorate([h.property({type:String,json:{write:!0}})],
b.prototype,"heading",void 0);a.__decorate([h.property({type:[g],json:{write:!0}})],b.prototype,"classes",void 0);return b=a.__decorate([e.subclass("esri.renderers.support.UniqueValueGroup")],b)})},"esri/renderers/support/UniqueValueInfo":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./commonProperties".split(" "),function(a,b,c,h,d,
n,m,e){var g;b=g=class extends b.JSONSupport{constructor(f){super(f);this.value=this.symbol=this.label=this.description=null}clone(){return new g({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const f=JSON.stringify(this.symbol?.toJSON());return`${this.value}.${f}`}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"description",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,
"label",void 0);a.__decorate([c.property(e.requiredRendererSymbolProperty)],b.prototype,"symbol",void 0);a.__decorate([c.property(e.uniqueValueProperty)],b.prototype,"value",void 0);return b=g=a.__decorate([m.subclass("esri.renderers.support.UniqueValueInfo")],b)})},"esri/symbols/support/styleUtils":function(){define("exports ../../request ../../core/Error ../../core/has ../../core/promiseUtils ../../core/urlUtils ../../portal/Portal ../../portal/PortalQueryParams ./styleCache".split(" "),function(a,
b,c,h,d,n,m,e,g){async function f(l,q){try{return{data:(await t(l,q)).data,baseUrl:n.removeFile(l),styleUrl:l}}catch(x){return d.throwIfAbortError(x),null}}function p(l,q,x){const A=null!=q.portal?q.portal:m.getDefault();let u;q=`${A.url} - ${A.user?.username} - ${l}`;const w=g.cachedStyles.get(q);if(w)return w;x=r(l,A,x).then(z=>{u=z;return z.fetchData()}).then(z=>({data:z,baseUrl:u.itemUrl??"",styleName:l}));g.cachedStyles.set(q,x);return x}function r(l,q,x){return q.load(x).then(()=>{const A=new e({disableExtraQuery:!0,
query:`owner:${"esri_en"} AND type:${"Style"} AND typekeywords:"${l}"`});return q.queryItems(A,x)}).then(({results:A})=>{let u=null;const w=l.toLowerCase();if(A&&Array.isArray(A))for(const z of A)if(z.typeKeywords?.some(k=>k.toLowerCase()===w)&&"Style"===z.type&&"esri_en"===z.owner){u=z;break}if(!u)throw new c("symbolstyleutils:style-not-found",`The style '${l}' could not be found`,{styleName:l});return u.load(x)})}function t(l,q){q={responseType:"json",query:{f:"json"},...q};return b(n.normalize(l),
q)}a.Style2DUrlTemplate="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f\x3djson";a.fetchStyle=function(l,q,x){return null!=l?.styleUrl?f(l.styleUrl,x):null!=l?.styleName?p(l.styleName,q,x):Promise.reject(new c("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))};a.makeCIMSymbolRef=function(l){return null===l||"CIMSymbolReference"===l.type?l:{type:"CIMSymbolReference",
symbol:l}};a.requestJSON=t;a.symbolUrlFromStyleItem=function(l,q,x=["gltf"]){if("cimRef"===q)return encodeURI(l.cimRef);if(l.formatInfos&&!h("enable-feature:force-wosr"))for(const A of x)if(q=l.formatInfos.find(u=>u.type===A))return q.href;return encodeURI(l.webRef)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/symbols/support/styleCache":function(){define(["exports"],function(a){const b=new Map;a.cachedStyles=b;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},
"esri/renderers/support/jsonUtils":function(){define(["exports","../../core/Warning","../../core/accessorSupport/extensions/serializableProperty/reader","./types"],function(a,b,c,h){function d(m,e,g){return m?m&&(m.styleName||m.styleUrl)&&"uniqueValue"!==m.type?(g?.messages&&g.messages.push(new b("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+m.type+"'",{definition:m,context:g})),null):n(m,e,g):null}const n=c.createTypeReader({types:h.rendererTypes});
a.fromJSON=function(m,e){return d(m,null,e)};a.read=d;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/renderers/support/types":function(){define("exports ../../core/Logger ../ClassBreaksRenderer ../DictionaryRenderer ../DotDensityRenderer ../HeatmapRenderer ../PieChartRenderer ../Renderer ../SimpleRenderer ../UniqueValueRenderer".split(" "),function(a,b,c,h,d,n,m,e,g,f){function p(l){const q=l.uniqueValueInfos,x=q?.filter(({symbol:A,label:u},w)=>{A||b.getLogger("esri.renderers.support.types").error(`Removed invalid unique value info ([${w}] ${u}) without a symbol from web scene.`);
return!!A});x?.length!==q?.length&&(l.uniqueValueInfos=x);return l}function r(l){const q=l.classBreakInfos,x=q?.filter(({symbol:A,label:u},w)=>{A||b.getLogger("esri.renderers.support.types").error(`Removed invalid class break info ([${w}] ${u}) without a symbol from web scene.`);return!!A});x?.length!==q?.length&&(l.classBreakInfos=x);return l}const t={key:"type",base:e,typeMap:{simple:g,"unique-value":f,"class-breaks":c,heatmap:n},errorContext:"renderer",validate:function(l){switch(l.type){case "simple":return l.symbol||
(b.getLogger("esri.renderers.support.types").error("Removed invalid 'simple' renderer without a symbol from web scene."),l=void 0),l;case "unique-value":return p(l);case "class-breaks":return r(l);case "heatmap":return l}}};a.rendererTypes={key:"type",base:e,typeMap:{heatmap:n,simple:g,"unique-value":f,"class-breaks":c,"dot-density":d,dictionary:h,"pie-chart":m},errorContext:"renderer"};a.webSceneRendererTypes=t;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/core/MultiOriginJSONSupport":function(){define("exports ../chunks/tslib.es6 ./Accessor ./ReadOnlyMultiOriginJSONSupport ./accessorSupport/get ./accessorSupport/PropertyOrigin ./accessorSupport/utils ./accessorSupport/write ./accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e,g){const f=r=>{r=class extends r{constructor(...t){super(...t)}clear(t,l="user"){return m.getProperties(this).store.delete(t,n.nameToId(l))}write(t,l){t=t||{};e.write(this,t,l);return t}setAtOrigin(t,l,q){m.getProperties(this).setAtOrigin(t,l,n.nameToId(q))}removeOrigin(t){const l=m.getProperties(this).store;t=n.nameToId(t);const q=l.keys(t);for(const x of q)l.originOf(x)===t&&l.set(x,l.get(x,t),n.OriginId.USER)}updateOrigin(t,l){const q=m.getProperties(this).store;l=n.nameToId(l);
const x=d.get(this,t);for(let A=l+1;A{r=class extends f(h.ReadOnlyMultiOriginJSONMixin(r)){constructor(...t){super(...t)}};return r=b.__decorate([g.subclass("esri.core.MultiOriginJSONSupport")],r)};a.MultiOriginJSONSupport=class extends p(c){};a.MultiOriginJSONSupport=
b.__decorate([g.subclass("esri.core.MultiOriginJSONSupport")],a.MultiOriginJSONSupport);a.MultiOriginJSONMixin=p;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/core/ReadOnlyMultiOriginJSONSupport":function(){define("exports ../chunks/tslib.es6 ./Accessor ./accessorSupport/defaultsStoreUtils ./accessorSupport/MultiOriginStore ./accessorSupport/PropertyOrigin ./accessorSupport/read ./accessorSupport/utils ./accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,
m,e,g){const f=p=>{p=class extends p{constructor(...r){super(...r);r=e.getProperties(this);const t=r.store,l=new d;r.store=l;h.setupConstructedDefaults(r,t,l)}read(r,t){m.read(this,r,t)}getAtOrigin(r,t){const l=e.getProperties(this).store,q=n.nameToId(t);if("string"===typeof r)return l.get(r,q);const x={};r.forEach(A=>{x[A]=l.get(A,q)});return x}originOf(r){return n.idToName(this.originIdOf(r))}originIdOf(r){return e.getProperties(this).store.originOf(r)}revert(r,t){const l=e.getProperties(this).store,
q=n.nameToId(t),x=e.getProperties(this);("string"===typeof r?"*"===r?l.keys(q):[r]:r).forEach(A=>{x.invalidate(A);l.revert(A,q);x.commit(A)})}};return p=b.__decorate([g.subclass("esri.core.ReadOnlyMultiOriginJSONSupport")],p)};a.ReadOnlyMultiOriginJSONSupport=class extends f(c){};a.ReadOnlyMultiOriginJSONSupport=b.__decorate([g.subclass("esri.core.ReadOnlyMultiOriginJSONSupport")],a.ReadOnlyMultiOriginJSONSupport);a.ReadOnlyMultiOriginJSONMixin=f;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},
"esri/core/accessorSupport/MultiOriginStore":function(){define(["../lang","./PropertyOrigin"],function(a,b){class c{constructor(){this._propertyOriginMap=new Map;this._originStores=Array(b.originIdNum);this._values=new Map;this.multipleOriginsSupported=!0}clone(h){const d=new c;var n=this._originStores[b.OriginId.DEFAULTS];n&&n.forEach((m,e)=>{d.set(e,a.clone(m),b.OriginId.DEFAULTS)});for(let m=b.OriginId.SERVICE;m{h&&h.has(g)||d.set(g,
a.clone(e),m)});return d}get(h,d){return(d=void 0===d?this._values:this._originStores[d])?d.get(h):void 0}keys(h){return(h=null==h?this._values:this._originStores[h])?[...h.keys()]:[]}set(h,d,n=b.OriginId.USER){var m=this._originStores[n];m||(m=new Map,this._originStores[n]=m);m.set(h,d);return!this._values.has(h)||this._propertyOriginMap.get(h)<=n?(m=this._values.get(h),this._values.set(h,d),this._propertyOriginMap.set(h,n),m!==d):!1}delete(h,d=b.OriginId.USER){var n=this._originStores[d];if(n){var m=
n.get(h);n.delete(h);if(this._values.has(h)&&this._propertyOriginMap.get(h)===d)for(this._values.delete(h),--d;0<=d;d--)if((n=this._originStores[d])&&n.has(h)){this._values.set(h,n.get(h));this._propertyOriginMap.set(h,d);break}return m}}has(h,d){return(d=void 0===d?this._values:this._originStores[d])?d.has(h):!1}revert(h,d){for(;0q(k,v,C));break;case "relationship":if(v.relationships){const C=v.relationships.find(L=>L.id===y.relationshipId);C&&l.collectField(k,B,C.keyField)}l.collectFields(k,B,y.orderByFields?.map(C=>C.field));break;case "text":u(k,B,y.text)}}function x(k,v){if(!v||
0===v.length)return[];k=A(k);const y=[];for(const B of v)k.has(B.name)&&y.push(B.expression);return y}function A(k){const v=new Set;for(const y of k)if(h.addMaybe(v,y.visibilityExpression),!t.isTextElement(y))if(t.isGroupElement(y))h.addMany(v,A(y.elements));else if(h.addMaybe(v,y.editableExpression),t.isFieldElement(y)){const {requiredExpression:B,valueExpression:C}=y;h.addMany(v,[B,C])}return v}function u(k,v,y){l.collectFields(k,v,l.extractSubstitutionTemplatesFromString(y))}var w;const z=r.buildTypeMaps(p);
b=w=class extends b.JSONSupport{constructor(k){super(k);this.expressionInfos=this.elements=this.description=null;this.preserveFieldValuesWhenHidden=!1;this.title=null}castElements(k){return r.ensureType(k,z)}readElements(k,v){return r.fromJSON(v.formElements,z)}writeElements(k,v){v.formElements=r.toJSON(k,z)}clone(){return new w({description:this.description,expressionInfos:c.clone(this.expressionInfos),elements:c.clone(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})}async getFieldsUsed(k,
v){const y=new Set,{description:B,elements:C,expressionInfos:L,title:M}=this;u(y,k,B);u(y,k,M);if(!C)return[];const G=x(C,L).map(E=>l.collectArcadeFieldNames(y,k,E));await Promise.all(G);for(const E of C)q(y,{fieldsIndex:k,relationships:v},E);return Array.from(y).sort()}};a.__decorate([d.property({type:String,json:{write:!0}})],b.prototype,"description",void 0);a.__decorate([d.property({json:{write:!0}})],b.prototype,"elements",void 0);a.__decorate([n.cast("elements")],b.prototype,"castElements",
null);a.__decorate([m.reader("elements",["formElements"])],b.prototype,"readElements",null);a.__decorate([g.writer("elements")],b.prototype,"writeElements",null);a.__decorate([d.property({type:[f],json:{write:!0}})],b.prototype,"expressionInfos",void 0);a.__decorate([d.property({type:Boolean,json:{default:!1,write:!0}})],b.prototype,"preserveFieldValuesWhenHidden",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],b.prototype,"title",void 0);return b=w=a.__decorate([e.subclass("esri.form.FormTemplate")],
b)})},"esri/form/ExpressionInfo":function(){define("../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m){var e;b=e=class extends b.JSONSupport{constructor(g){super(g);this.name=this.expression=null;this.returnType="boolean";this.title=null}clone(){return new e({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};
a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"expression",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"name",void 0);a.__decorate([c.property({type:["boolean","date","number","string"],json:{write:!0}})],b.prototype,"returnType",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"title",void 0);return b=e=a.__decorate([m.subclass("esri.form.ExpressionInfo")],b)})},"esri/form/elements/GroupElement":function(){define("../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./Element ../support/elements".split(" "),
function(a,b,c,h,d,n,m,e,g){var f;e=f=class extends e{constructor(r){super(r);this.elements=null;this.initialState="expanded";this.type="group"}castElements(r){return g.ensureType(r,p,!1)}readElements(r,t){return g.fromJSON(t.formElements,p,!1)}writeElements(r,t){t.formElements=g.toJSON(r,p,!1)}clone(){return new f({description:this.description,elements:b.clone(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};a.__decorate([c.property({json:{write:!0}})],
e.prototype,"elements",void 0);a.__decorate([h.cast("elements")],e.prototype,"castElements",null);a.__decorate([d.reader("elements",["formElements"])],e.prototype,"readElements",null);a.__decorate([m.writer("elements")],e.prototype,"writeElements",null);a.__decorate([c.property({type:["collapsed","expanded"],json:{write:!0}})],e.prototype,"initialState",void 0);a.__decorate([c.property({type:String,json:{read:!1,write:!0}})],e.prototype,"type",void 0);e=f=a.__decorate([n.subclass("esri.form.elements.GroupElement")],
e);const p=g.buildTypeMaps(e);return e})},"esri/form/elements/Element":function(){define(["../../chunks/tslib.es6","../../core/JSONSupport","../../core/accessorSupport/decorators/property","../../core/accessorSupport/decorators/subclass"],function(a,b,c,h){b=class extends b.JSONSupport{constructor(d){super(d);this.visibilityExpression=this.type=this.label=this.description=null}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"description",void 0);a.__decorate([c.property({type:String,
json:{write:!0}})],b.prototype,"label",void 0);a.__decorate([c.property()],b.prototype,"type",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"visibilityExpression",void 0);return b=a.__decorate([h.subclass("esri.form.elements.Element")],b)})},"esri/form/support/elements":function(){define("exports ../../core/accessorSupport/ensureType ../elements/AttachmentElement ../elements/Element ../elements/FieldElement ../elements/RelationshipElement ../elements/TextElement".split(" "),
function(a,b,c,h,d,n,m){a.buildTypeMaps=function(e){return{typesWithGroup:{base:h,key:"type",typeMap:{attachment:c,field:d,group:e,relationship:n,text:m}},typesWithoutGroup:{base:h,key:"type",typeMap:{attachment:c,field:d,relationship:n,text:m}}}};a.ensureType=function(e,g,f=!0){return e?e.map(p=>b.ensureOneOfType(f?g.typesWithGroup:g.typesWithoutGroup,p)):null};a.fromJSON=function(e,g,f=!0){if(!e)return null;const p=f?g.typesWithGroup.typeMap:g.typesWithoutGroup.typeMap;return e.filter(r=>p[r.type]).map(r=>
p[r.type].fromJSON(r))};a.toJSON=function(e,g,f=!0){if(!e)return null;const p=f?g.typesWithGroup.typeMap:g.typesWithoutGroup.typeMap;return e.filter(r=>p[r.type]).map(r=>r.toJSON())};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/form/elements/AttachmentElement":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./Element ./inputs/attachments/AttachmentInput ./inputs/attachments/support/inputs".split(" "),
function(a,b,c,h,d,n,m,e,g){var f;c=g.buildTypeMaps(e);m=f=class extends m{constructor(p){super(p);this.allowUserRename=!0;this.attachmentKeyword=null;this.displayFilename=!1;this.editableExpression=null;this.filenameExpression="{attachmentKeyword}_{now}";this.minAttachmentCount=this.maxAttachmentCount=this.input=null;this.type="attachment";this.useOriginalFilename=!0}clone(){return new f({allowUserRename:this.allowUserRename,attachmentKeyword:this.attachmentKeyword,description:this.description,displayFilename:this.displayFilename,
editableExpression:this.editableExpression,filenameExpression:this.filenameExpression,input:this.input?.clone(),label:this.label,maxAttachmentCount:this.maxAttachmentCount,minAttachmentCount:this.minAttachmentCount,useOriginalFilename:this.useOriginalFilename,visibilityExpression:this.visibilityExpression})}};a.__decorate([b.property({type:Boolean,json:{write:!0}})],m.prototype,"allowUserRename",void 0);a.__decorate([b.property({type:String,json:{write:{isRequired:!0}}})],m.prototype,"attachmentKeyword",
void 0);a.__decorate([b.property({type:Boolean,json:{write:!0}})],m.prototype,"displayFilename",void 0);a.__decorate([b.property({type:String,json:{write:!0}})],m.prototype,"editableExpression",void 0);a.__decorate([b.property({type:String,json:{write:!0}})],m.prototype,"filenameExpression",void 0);a.__decorate([b.property({types:c.allTypes,json:{read:{source:"inputType"},write:{target:"inputType",isRequired:!0}}})],m.prototype,"input",void 0);a.__decorate([b.property({type:Number,json:{write:!0}})],
m.prototype,"maxAttachmentCount",void 0);a.__decorate([b.property({type:Number,json:{write:!0}})],m.prototype,"minAttachmentCount",void 0);a.__decorate([b.property({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],m.prototype,"type",void 0);a.__decorate([b.property({type:Boolean,json:{write:!0}})],m.prototype,"useOriginalFilename",void 0);return m=f=a.__decorate([n.subclass("esri.form.elements.AttachmentElement")],m)})},"esri/form/elements/inputs/attachments/AttachmentInput":function(){define("../../../../chunks/tslib.es6 ../../../../core/accessorSupport/decorators/property ../../../../core/accessorSupport/decorators/cast ../../../../core/RandomLCG ../../../../core/has ../../../../core/accessorSupport/decorators/reader ../../../../core/accessorSupport/decorators/subclass ../../../../core/accessorSupport/decorators/writer ./Input ./support/inputs".split(" "),
function(a,b,c,h,d,n,m,e,g,f){h=class extends g{constructor(r){super(r);this.type="attachment";this.attachmentAssociationType="exact";this.inputTypes=null}castInputs(r){return f.ensureType(r,p,!0)}readInputs(r,t){return f.fromJSON(t.inputTypes,p,!0)}writeInputs(r,t){t.inputTypes=f.toJSON(r,p,!0)}};a.__decorate([b.property({type:["attachment"],readOnly:!0,json:{write:!0}})],h.prototype,"type",void 0);a.__decorate([b.property({type:["any","exact","exactOrNone"],json:{write:!0}})],h.prototype,"attachmentAssociationType",
void 0);a.__decorate([b.property({json:{write:{isRequired:!0}}})],h.prototype,"inputTypes",void 0);a.__decorate([c.cast("inputTypes")],h.prototype,"castInputs",null);a.__decorate([n.reader("inputTypes")],h.prototype,"readInputs",null);a.__decorate([e.writer("inputTypes")],h.prototype,"writeInputs",null);h=a.__decorate([m.subclass("esri.form.elements.inputs.attachments.AttachmentInput")],h);const p=f.buildTypeMaps(h);return h})},"esri/form/elements/inputs/attachments/Input":function(){define("../../../../chunks/tslib.es6 ../../../../core/Clonable ../../../../core/JSONSupport ../../../../core/accessorSupport/decorators/property ../../../../core/has ../../../../core/Logger ../../../../core/RandomLCG ../../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e){b=class extends b.ClonableMixin(c.JSONSupport){constructor(g){super(g);this.type=null}};a.__decorate([h.property()],b.prototype,"type",void 0);return b=a.__decorate([e.subclass("esri.form.elements.inputs.attachments.Input")],b)})},"esri/form/elements/inputs/attachments/support/inputs":function(){define("exports ../../../../../core/accessorSupport/ensureType ../AudioInput ../DocumentInput ../ImageInput ../Input ../SignatureInput ../VideoInput".split(" "),function(a,b,c,h,
d,n,m,e){a.buildTypeMaps=function(g){return{nestableTypes:{base:n,key:"type",typeMap:{audio:c,document:h,image:d,signature:m,video:e}},allTypes:{base:n,key:"type",typeMap:{attachment:g,audio:c,document:h,image:d,signature:m,video:e}}}};a.ensureType=function(g,f,p){return g?g.map(r=>b.ensureOneOfType(p?f.nestableTypes:f.allTypes,r)):null};a.fromJSON=function(g,f,p){if(!g)return null;const r=p?f.nestableTypes.typeMap:f.allTypes.typeMap;return g.filter(t=>r[t.type]).map(t=>r[t.type].fromJSON(t))};a.toJSON=
function(g,f,p){if(!g)return null;const r=p?f.nestableTypes.typeMap:f.allTypes.typeMap;return g.filter(t=>r[t.type]).map(t=>t.toJSON())};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/form/elements/inputs/attachments/AudioInput":function(){define("../../../../chunks/tslib.es6 ../../../../core/accessorSupport/decorators/property ../../../../core/has ../../../../core/Logger ../../../../core/RandomLCG ../../../../core/accessorSupport/decorators/subclass ./Input ./support/utils".split(" "),
function(a,b,c,h,d,n,m,e){c=class extends m{constructor(g){super(g);this.type="audio";this.inputMethod="any";this.maxDuration=null}};a.__decorate([b.property({type:["audio"],readOnly:!0,json:{write:!0}})],c.prototype,"type",void 0);a.__decorate([b.property({type:e.mediaInputArray,json:{write:!0}})],c.prototype,"inputMethod",void 0);a.__decorate([b.property({type:Number,json:{write:!0}})],c.prototype,"maxDuration",void 0);return c=a.__decorate([n.subclass("esri.form.elements.inputs.attachments.AudioInput")],
c)})},"esri/form/elements/inputs/attachments/support/utils":function(){define(["exports"],function(a){a.mediaInputArray=["any","capture","upload"];Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/form/elements/inputs/attachments/DocumentInput":function(){define("../../../../chunks/tslib.es6 ../../../../core/accessorSupport/decorators/property ../../../../core/has ../../../../core/Logger ../../../../core/RandomLCG ../../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
function(a,b,c,h,d,n,m){c=class extends m{constructor(e){super(e);this.type="document";this.maxFileSize=null}};a.__decorate([b.property({type:["document"],readOnly:!0,json:{write:!0}})],c.prototype,"type",void 0);a.__decorate([b.property({type:Number,json:{write:!0}})],c.prototype,"maxFileSize",void 0);return c=a.__decorate([n.subclass("esri.form.elements.inputs.attachments.DocumentInput")],c)})},"esri/form/elements/inputs/attachments/ImageInput":function(){define("../../../../chunks/tslib.es6 ../../../../core/accessorSupport/decorators/property ../../../../core/has ../../../../core/Logger ../../../../core/RandomLCG ../../../../core/accessorSupport/decorators/subclass ./Input ./support/utils".split(" "),
function(a,b,c,h,d,n,m,e){c=class extends m{constructor(g){super(g);this.type="image";this.inputMethod="any";this.maxImageSize=null}};a.__decorate([b.property({type:["image"],readOnly:!0,json:{write:!0}})],c.prototype,"type",void 0);a.__decorate([b.property({type:e.mediaInputArray,json:{write:!0}})],c.prototype,"inputMethod",void 0);a.__decorate([b.property({type:Number,json:{write:!0}})],c.prototype,"maxImageSize",void 0);return c=a.__decorate([n.subclass("esri.form.elements.inputs.attachments.ImageInput")],
c)})},"esri/form/elements/inputs/attachments/SignatureInput":function(){define("../../../../chunks/tslib.es6 ../../../../core/accessorSupport/decorators/property ../../../../core/has ../../../../core/Logger ../../../../core/RandomLCG ../../../../core/accessorSupport/decorators/subclass ./Input ./support/utils".split(" "),function(a,b,c,h,d,n,m,e){c=class extends m{constructor(g){super(g);this.type="signature";this.inputMethod="any"}};a.__decorate([b.property({type:["signature"],readOnly:!0,json:{write:!0}})],
c.prototype,"type",void 0);a.__decorate([b.property({type:e.mediaInputArray,json:{write:!0}})],c.prototype,"inputMethod",void 0);return c=a.__decorate([n.subclass("esri.form.elements.inputs.attachments.SignatureInput")],c)})},"esri/form/elements/inputs/attachments/VideoInput":function(){define("../../../../chunks/tslib.es6 ../../../../core/accessorSupport/decorators/property ../../../../core/has ../../../../core/Logger ../../../../core/RandomLCG ../../../../core/accessorSupport/decorators/subclass ./Input ./support/utils".split(" "),
function(a,b,c,h,d,n,m,e){c=class extends m{constructor(g){super(g);this.type="video";this.inputMethod="any";this.maxDuration=null}};a.__decorate([b.property({type:["video"],readOnly:!0,json:{write:!0}})],c.prototype,"type",void 0);a.__decorate([b.property({type:e.mediaInputArray,json:{write:!0}})],c.prototype,"inputMethod",void 0);a.__decorate([b.property({type:Number,json:{write:!0}})],c.prototype,"maxDuration",void 0);return c=a.__decorate([n.subclass("esri.form.elements.inputs.attachments.VideoInput")],
c)})},"esri/form/elements/FieldElement":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./Element ./support/inputs ../../layers/support/domains".split(" "),function(a,b,c,h,d,n,m,e,g){var f;c=f=class extends m{constructor(p){super(p);this.requiredExpression=this.input=this.hint=this.fieldName=this.editableExpression=this.editable=this.domain=null;this.type=
"field";this.valueExpression=null}clone(){return new f({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})}};a.__decorate([b.property({types:g.types,json:{read:{reader:g.fromJSON},write:!0}})],c.prototype,"domain",void 0);a.__decorate([b.property({type:Boolean,
json:{write:!0}})],c.prototype,"editable",void 0);a.__decorate([b.property({type:String,json:{write:!0}})],c.prototype,"editableExpression",void 0);a.__decorate([b.property({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0);a.__decorate([b.property({type:String,json:{write:!0}})],c.prototype,"hint",void 0);a.__decorate([b.property({types:e.types,json:{read:{source:"inputType"},write:{target:"inputType"}}})],c.prototype,"input",void 0);a.__decorate([b.property({type:String,json:{write:!0}})],
c.prototype,"requiredExpression",void 0);a.__decorate([b.property({type:String,json:{read:!1,write:!0}})],c.prototype,"type",void 0);a.__decorate([b.property({type:String,json:{write:!0}})],c.prototype,"valueExpression",void 0);return c=f=a.__decorate([n.subclass("esri.form.elements.FieldElement")],c)})},"esri/form/elements/support/inputs":function(){define("exports ../inputs/BarcodeScannerInput ../inputs/ComboBoxInput ../inputs/DatePickerInput ../inputs/DateTimeOffsetPickerInput ../inputs/DateTimePickerInput ../inputs/Input ../inputs/RadioButtonsInput ../inputs/SwitchInput ../inputs/TextAreaInput ../inputs/TextBoxInput ../inputs/TimePickerInput".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r){a.types={base:m,key:"type",typeMap:{"barcode-scanner":b,"combo-box":c,"date-picker":h,"datetime-picker":n,"datetimeoffset-picker":d,"radio-buttons":e,switch:g,"text-area":f,"text-box":p,"time-picker":r}};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/form/elements/inputs/BarcodeScannerInput":function(){define("../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass ./TextInput".split(" "),
function(a,b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);this.type="barcode-scanner"}clone(){return new e({maxLength:this.maxLength,minLength:this.minLength})}};a.__decorate([b.property({type:["barcode-scanner"],json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=e=a.__decorate([n.subclass("esri.form.elements.inputs.BarcodeScannerInput")],c)})},"esri/form/elements/inputs/TextInput":function(){define("../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
function(a,b,c,h,d,n,m){c=class extends m{constructor(e){super(e);this.maxLength=null;this.minLength=0}};a.__decorate([b.property({type:Number,json:{write:!0}})],c.prototype,"maxLength",void 0);a.__decorate([b.property({type:Number,json:{write:!0}})],c.prototype,"minLength",void 0);return c=a.__decorate([n.subclass("esri.form.elements.inputs.TextInput")],c)})},"esri/form/elements/inputs/Input":function(){define("../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m){b=class extends b.JSONSupport{constructor(e){super(e);this.type=null}};a.__decorate([c.property()],b.prototype,"type",void 0);return b=a.__decorate([m.subclass("esri.form.elements.inputs.Input")],b)})},"esri/form/elements/inputs/ComboBoxInput":function(){define("../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),function(a,
b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);this.noValueOptionLabel=null;this.showNoValueOption=!0;this.type="combo-box"}clone(){return new e({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};a.__decorate([b.property({type:String,json:{write:!0}})],c.prototype,"noValueOptionLabel",void 0);a.__decorate([b.property({type:Boolean,json:{write:!0}})],c.prototype,"showNoValueOption",void 0);a.__decorate([b.property({type:["combo-box"],json:{read:!1,
write:!0}})],c.prototype,"type",void 0);return c=e=a.__decorate([n.subclass("esri.form.elements.inputs.ComboBoxInput")],c)})},"esri/form/elements/inputs/DatePickerInput":function(){define("../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/reader ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer ./Input".split(" "),function(a,
b,c,h,d,n,m,e,g){var f;c=f=class extends g{constructor(p){super(p);this.min=this.max=null;this.type="date-picker"}readMax(p,r){p=r.max;return null!=p?p:null}writeMax(p,r){r.max=null!=p?p:null}readMin(p,r){p=r.min;return null!=p?p:null}writeMin(p,r){r.min=null!=p?p:null}clone(){return new f({max:this.max,min:this.min})}};a.__decorate([b.property({type:String,json:{type:String,write:!0}})],c.prototype,"max",void 0);a.__decorate([n.reader("max")],c.prototype,"readMax",null);a.__decorate([e.writer("max")],
c.prototype,"writeMax",null);a.__decorate([b.property({type:String,json:{type:String,write:!0}})],c.prototype,"min",void 0);a.__decorate([n.reader("min")],c.prototype,"readMin",null);a.__decorate([e.writer("min")],c.prototype,"writeMin",null);a.__decorate([b.property({type:["date-picker"],json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=f=a.__decorate([m.subclass("esri.form.elements.inputs.DatePickerInput")],c)})},"esri/form/elements/inputs/DateTimeOffsetPickerInput":function(){define("../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/reader ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer ./Input".split(" "),
function(a,b,c,h,d,n,m,e,g){function f(r){return null!=r?r:null}var p;c=p=class extends g{constructor(r){super(r);this.includeTimeOffset=!0;this.min=this.max=null;this.timeResolution="minutes";this.type="datetimeoffset-picker"}readMax(r,t){return f(t.max)}writeMax(r,t){t.max=null!=r?r:null}readMin(r,t){return f(t.min)}writeMin(r,t){t.min=null!=r?r:null}readTimeResolution(r,t){return f(t.timeResolution)}writeTimeResolution(r,t){t.timeResolution=null!=r?r:null}clone(){return new p({includeTimeOffset:this.includeTimeOffset,
max:this.max,min:this.min,timeResolution:this.timeResolution})}};a.__decorate([b.property({type:Boolean,json:{write:!0}})],c.prototype,"includeTimeOffset",void 0);a.__decorate([b.property({type:String,json:{type:String,write:!0}})],c.prototype,"max",void 0);a.__decorate([n.reader("max")],c.prototype,"readMax",null);a.__decorate([e.writer("max")],c.prototype,"writeMax",null);a.__decorate([b.property({type:String,json:{type:String,write:!0}})],c.prototype,"min",void 0);a.__decorate([n.reader("min")],
c.prototype,"readMin",null);a.__decorate([e.writer("min")],c.prototype,"writeMin",null);a.__decorate([b.property({type:String,json:{type:String,write:!0}})],c.prototype,"timeResolution",void 0);a.__decorate([n.reader("timeResolution")],c.prototype,"readTimeResolution",null);a.__decorate([e.writer("timeResolution")],c.prototype,"writeTimeResolution",null);a.__decorate([b.property({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=p=a.__decorate([m.subclass("esri.form.elements.inputs.DateTimeOffsetPickerInput")],
c)})},"esri/form/elements/inputs/DateTimePickerInput":function(){define("../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/reader ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer ./Input".split(" "),function(a,b,c,h,d,n,m,e,g){function f(r){return null!=r?new Date(r):null}var p;c=p=class extends g{constructor(r){super(r);
this.includeTime=!1;this.min=this.max=null;this.type="datetime-picker"}readMax(r,t){return f(t.max)}writeMax(r,t){t.max=r?r.getTime():null}readMin(r,t){return f(t.min)}writeMin(r,t){t.min=r?r.getTime():null}clone(){return new p({includeTime:this.includeTime,max:this.max,min:this.min})}};a.__decorate([b.property({type:Boolean,json:{write:!0}})],c.prototype,"includeTime",void 0);a.__decorate([b.property({type:Date,json:{type:Number,write:!0}})],c.prototype,"max",void 0);a.__decorate([n.reader("max")],
c.prototype,"readMax",null);a.__decorate([e.writer("max")],c.prototype,"writeMax",null);a.__decorate([b.property({type:Date,json:{type:Number,write:!0}})],c.prototype,"min",void 0);a.__decorate([n.reader("min")],c.prototype,"readMin",null);a.__decorate([e.writer("min")],c.prototype,"writeMin",null);a.__decorate([b.property({type:["datetime-picker"],json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=p=a.__decorate([m.subclass("esri.form.elements.inputs.DateTimePickerInput")],c)})},"esri/form/elements/inputs/RadioButtonsInput":function(){define("../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
function(a,b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);this.noValueOptionLabel=null;this.showNoValueOption=!0;this.type="radio-buttons"}clone(){return new e({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};a.__decorate([b.property({type:String,json:{write:!0}})],c.prototype,"noValueOptionLabel",void 0);a.__decorate([b.property({type:Boolean,json:{write:!0}})],c.prototype,"showNoValueOption",void 0);a.__decorate([b.property({type:["radio-buttons"],
json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=e=a.__decorate([n.subclass("esri.form.elements.inputs.RadioButtonsInput")],c)})},"esri/form/elements/inputs/SwitchInput":function(){define("../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),function(a,b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);this.onValue=this.offValue=
null;this.type="switch"}clone(){return new e({offValue:this.offValue,onValue:this.onValue})}};a.__decorate([b.property({type:[String,Number],json:{write:!0}})],c.prototype,"offValue",void 0);a.__decorate([b.property({type:[String,Number],json:{write:!0}})],c.prototype,"onValue",void 0);a.__decorate([b.property({type:["switch"],json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=e=a.__decorate([n.subclass("esri.form.elements.inputs.SwitchInput")],c)})},"esri/form/elements/inputs/TextAreaInput":function(){define("../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass ./TextInput".split(" "),
function(a,b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);this.type="text-area"}clone(){return new e({maxLength:this.maxLength,minLength:this.minLength})}};a.__decorate([b.property({type:["text-area"],json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=e=a.__decorate([n.subclass("esri.form.elements.inputs.TextAreaInput")],c)})},"esri/form/elements/inputs/TextBoxInput":function(){define("../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass ./TextInput".split(" "),
function(a,b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);this.type="text-box"}clone(){return new e({maxLength:this.maxLength,minLength:this.minLength})}};a.__decorate([b.property({type:["text-box"],json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=e=a.__decorate([n.subclass("esri.form.elements.inputs.TextBoxInput")],c)})},"esri/form/elements/inputs/TimePickerInput":function(){define("../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/reader ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer ./Input".split(" "),
function(a,b,c,h,d,n,m,e,g){function f(r){return null!=r?r:null}var p;c=p=class extends g{constructor(r){super(r);this.min=this.max=null;this.timeResolution="minutes";this.type="time-picker"}readMax(r,t){return f(t.max)}writeMax(r,t){t.max=null!=r?r:null}readMin(r,t){return f(t.min)}writeMin(r,t){t.min=null!=r?r:null}readTimeResolution(r,t){return f(t.timeResolution)}writeTimeResolution(r,t){t.timeResolution=null!=r?r:null}clone(){return new p({max:this.max,min:this.min,timeResolution:this.timeResolution})}};
a.__decorate([b.property({type:String,json:{type:String,write:!0}})],c.prototype,"max",void 0);a.__decorate([n.reader("max")],c.prototype,"readMax",null);a.__decorate([e.writer("max")],c.prototype,"writeMax",null);a.__decorate([b.property({type:String,json:{type:String,write:!0}})],c.prototype,"min",void 0);a.__decorate([n.reader("min")],c.prototype,"readMin",null);a.__decorate([e.writer("min")],c.prototype,"writeMin",null);a.__decorate([b.property({type:String,json:{type:String,write:!0}})],c.prototype,
"timeResolution",void 0);a.__decorate([n.reader("timeResolution")],c.prototype,"readTimeResolution",null);a.__decorate([e.writer("timeResolution")],c.prototype,"writeTimeResolution",null);a.__decorate([b.property({type:["time-picker"],json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=p=a.__decorate([m.subclass("esri.form.elements.inputs.TimePickerInput")],c)})},"esri/layers/support/domains":function(){define("exports ../../core/has ./CodedValueDomain ./Domain ./InheritedDomain ./RangeDomain".split(" "),
function(a,b,c,h,d,n){b={key:"type",base:h,typeMap:{range:n,"coded-value":c,inherited:d}};a.CodedValueDomain=c;a.DomainBase=h;a.InheritedDomain=d;a.RangeDomain=n;a.fromJSON=function(m){if(!m?.type)return null;switch(m.type){case "range":return n.fromJSON(m);case "codedValue":return c.fromJSON(m);case "inherited":return d.fromJSON(m)}return null};a.types=b;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/CodedValueDomain":function(){define("../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./CodedValue ./Domain".split(" "),
function(a,b,c,h,d,n,m,e,g){var f;h=f=class extends g{constructor(p){super(p);this.codedValues=null;this.type="coded-value"}getName(p){let r=null;if(this.codedValues){const t=String(p);this.codedValues.some(l=>{String(l.code)===t&&(r=l.name);return!!r})}return r}clone(){return new f({codedValues:b.clone(this.codedValues),name:this.name})}};a.__decorate([c.property({type:[e.CodedValue],json:{write:!0}})],h.prototype,"codedValues",void 0);a.__decorate([n.enumeration({codedValue:"coded-value"})],h.prototype,
"type",void 0);return h=f=a.__decorate([m.subclass("esri.layers.support.CodedValueDomain")],h)})},"esri/layers/support/CodedValue":function(){define("exports ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m,e){var g;a.CodedValue=g=class extends c.JSONSupport{constructor(f){super(f);this.code=this.name=null}clone(){return new g({name:this.name,
code:this.code})}};b.__decorate([h.property({type:String,json:{write:!0}})],a.CodedValue.prototype,"name",void 0);b.__decorate([h.property({type:[String,Number],json:{write:!0}})],a.CodedValue.prototype,"code",void 0);a.CodedValue=g=b.__decorate([e.subclass("esri.layers.support.CodedValue")],a.CodedValue);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/Domain":function(){define("../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e,g){b=new b.JSONMap({inherited:"inherited",codedValue:"coded-value",range:"range"});c=class extends c.JSONSupport{constructor(f){super(f);this.type=this.name=null}};a.__decorate([h.property({type:String,json:{write:!0}})],c.prototype,"name",void 0);a.__decorate([e.enumeration(b)],c.prototype,"type",void 0);return c=a.__decorate([g.subclass("esri.layers.support.Domain")],c)})},"esri/layers/support/InheritedDomain":function(){define("../../chunks/tslib.es6 ../../core/Logger ../../core/has ../../core/RandomLCG ../../core/Error ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Domain".split(" "),
function(a,b,c,h,d,n,m,e){var g;b=g=class extends e{constructor(f){super(f);this.type="inherited"}clone(){return new g}};a.__decorate([n.enumeration({inherited:"inherited"})],b.prototype,"type",void 0);return b=g=a.__decorate([m.subclass("esri.layers.support.InheritedDomain")],b)})},"esri/layers/support/RangeDomain":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Domain".split(" "),
function(a,b,c,h,d,n,m,e){var g;c=g=class extends e{constructor(f){super(f);this.minValue=this.maxValue=null;this.type="range"}clone(){return new g({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};a.__decorate([b.property({json:{type:[Number],read:{source:"range",reader(f,p){return p.range?.[1]}},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(f,p,r){p[r]=[this.minValue||0,f]}}}})],c.prototype,"maxValue",void 0);a.__decorate([b.property({json:{type:[Number],
read:{source:"range",reader(f,p){return p.range?.[0]}},write:{target:"range",writer(f,p,r){p[r]=[f,this.maxValue||0]}}}})],c.prototype,"minValue",void 0);a.__decorate([n.enumeration({range:"range"})],c.prototype,"type",void 0);return c=g=a.__decorate([m.subclass("esri.layers.support.RangeDomain")],c)})},"esri/form/elements/RelationshipElement":function(){define("../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ./Element ../../popup/support/RelatedRecordsInfoFieldOrder".split(" "),
function(a,b,c,h,d,n,m,e){var g;h=g=class extends m{constructor(f){super(f);this.displayCount=null;this.displayType="list";this.relationshipId=this.orderByFields=this.editableExpression=null;this.type="relationship"}clone(){return new g({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:b.clone(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};
a.__decorate([c.property({type:Number,json:{write:!0}})],h.prototype,"displayCount",void 0);a.__decorate([c.property({type:["list"],json:{write:!0}})],h.prototype,"displayType",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],h.prototype,"editableExpression",void 0);a.__decorate([c.property({type:[e],json:{write:!0}})],h.prototype,"orderByFields",void 0);a.__decorate([c.property({type:Number,json:{write:!0}})],h.prototype,"relationshipId",void 0);a.__decorate([c.property({type:["relationship"],
json:{read:!1,write:!0}})],h.prototype,"type",void 0);return h=g=a.__decorate([n.subclass("esri.form.elements.RelationshipElement")],h)})},"esri/form/elements/TextElement":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./Element".split(" "),function(a,b,c,h,d,n,m){var e;c=e=class extends m{constructor(g){super(g);this.text=null;this.textFormat="plain-text";
this.type="text"}clone(){return new e({text:this.text,textFormat:this.textFormat,visibilityExpression:this.visibilityExpression})}};a.__decorate([b.property({type:String,json:{write:!0}})],c.prototype,"text",void 0);a.__decorate([b.property({type:String,json:{write:!0}})],c.prototype,"textFormat",void 0);a.__decorate([b.property({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=e=a.__decorate([n.subclass("esri.form.elements.TextElement")],c)})},"esri/form/support/formUtils":function(){define(["exports"],
function(a){function b(h){return"text-area"===h.type}function c(h){return"text-box"===h.type}a.isFieldElement=h=>"field"===h.type;a.isGroupElement=h=>"group"===h.type;a.isRelationshipElement=h=>"relationship"===h.type;a.isTextAreaInput=b;a.isTextBoxInput=c;a.isTextElement=h=>"text"===h.type;a.isTextInput=function(h){return b(h)||c(h)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/graphics/sources/MemorySource":function(){define("exports ../../../chunks/tslib.es6 ../../../geometry ../../../Graphic ../../../core/Collection ../../../core/Error ../../../core/has ../../../core/Loadable ../../../core/Logger ../../../core/Promise ../../../core/workers/workers ../../../core/accessorSupport/decorators/property ../../../core/accessorSupport/ensureType ../../../core/RandomLCG ../../../core/accessorSupport/decorators/shared ../../../core/accessorSupport/decorators/subclass ../../../rest/query/operations/editsZScale ../../../rest/query/operations/queryZScale ../../../rest/support/FeatureSet ../../../geometry/Extent ../../../geometry/Polygon ../../../geometry/support/typeUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u,w,z,k,v){let y=0;a.MemorySource=class extends e.LoadableMixin(f.EsriPromiseMixin(d)){constructor(B){super(B);this._idToClientGraphic=null;this.type="memory"}load(B){this.addResolvingPromise(this._startWorker(null!=B?B.signal:null));return Promise.resolve(this)}destroy(){this._connection?.close();this._connection=null}get _workerGeometryType(){const B=this.layer?.geometryType;return B?this._geometryTypeRequiresClientGraphicMapping(B)?"polygon":B:null}applyEdits(B){return this.load().then(()=>
this._applyEdits(B))}openPorts(){return this.load().then(()=>this._connection.openPorts())}async queryFeatures(B,C={}){await this.load(C);C=await this._connection.invoke("queryFeatures",B?B.toJSON():null,C);u.applyFeatureSetZUnitScaling(B,this.layer.spatialReference,C);B=w.fromJSON(C);if(!this._requiresClientGraphicMapping())return B;C=this.layer.objectIdField;for(const L of B.features){const M=this._idToClientGraphic.get(L.attributes[C]);M&&(L.geometry=M.geometry)}B.geometryType=this.layer.geometryType;
return B}async queryFeaturesJSON(B,C={}){if(this._requiresClientGraphicMapping())throw new n("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");await this.load(C);C=await this._connection.invoke("queryFeatures",B?B.toJSON():null,C);u.applyFeatureSetZUnitScaling(B,this.layer.spatialReference,C);return C}queryFeatureCount(B,C={}){return this.load(C).then(()=>this._connection.invoke("queryFeatureCount",B?B.toJSON():null,C))}queryObjectIds(B,
C={}){return this.load(C).then(()=>this._connection.invoke("queryObjectIds",B?B.toJSON():null,C))}queryExtent(B,C={}){return this.load(C).then(()=>this._connection.invoke("queryExtent",B?B.toJSON():null,C)).then(L=>({count:L.count,extent:z.fromJSON(L.extent)}))}querySnapping(B,C={}){return this.load(C).then(()=>this._connection.invoke("querySnapping",B,C))}async _applyEdits(B){if(!this._connection)throw new n("feature-layer-source:edit-failure","Memory source not loaded");const C=this.layer.objectIdField;
let L=null;const M=[],G=[];await Promise.all([this._prepareClientMapping(B.addFeatures,null),this._prepareClientMapping(B.updateFeatures,null)]);const E=J=>"objectId"in J&&null!=J.objectId?J.objectId:"attributes"in J&&null!=J.attributes[C]?J.attributes[C]:null;B.addFeatures&&(L=this._prepareAddFeatures(B.addFeatures));if(B.deleteFeatures)for(var F of B.deleteFeatures){const J=E(F);null!=J&&M.push(J)}F=B.updateFeatures&&this._idToClientGraphic?new Map:null;if(B.updateFeatures)for(const J of B.updateFeatures)G.push(this._serializeFeature(J)),
F&&(B=E(J),null!=B&&F.set(B,J));A.unapplyEditsZUnitScaling(L?L.features:null,G,this.layer.spatialReference);const {fullExtent:H,featureEditResults:R}=await this._connection.invoke("applyEdits",{adds:L?L.features:[],updates:G,deletes:M});this.fullExtent=H;L&&L.finish(R.uidToObjectId);this._updateClientGraphicIds(F,R);return this._createEditsResult(R)}async _prepareClientMapping(B,C){if("mesh"===this._layerOrSourceGeometryType&&null!=B){var L=[];for(const {geometry:M}of B)null==M||"mesh"!==M.type||
M.hasExtent||M.loaded||L.push(M.load({signal:C}));L.length&&await Promise.all(L)}}_updateClientGraphicIds(B,C){if(this._idToClientGraphic){if(B)for(const L of C.updateResults){if(!L.success)continue;const M=B.get(L.objectId);null!=M&&this._addIdToClientGraphic(M)}for(const L of C.deleteResults)L.success&&this._idToClientGraphic.delete(L.objectId)}}_createEditsResult(B){return{addFeatureResults:B.addResults?B.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:B.updateResults?
B.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:B.deleteResults?B.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(B){const C=!0===B.success?null:B.error||{code:void 0,description:void 0};return{objectId:B.objectId,globalId:B.globalId,error:C?new n("feature-layer-source:edit-failure",C.description,{code:C.code}):null}}_prepareAddFeatures(B){const C=new Map,
L=Array(B.length);let M=null;for(let E=0;E{g.getLogger(this).error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead");Q.preventDefault()}));R={features:J.features,fields:C?.map(Q=>Q.toJSON()),geometryType:v.typeKebabDictionary.toJSON(this._workerGeometryType),
hasM:"mesh"!==this._layerOrSourceGeometryType&&G,hasZ:"mesh"===this._layerOrSourceGeometryType||E,objectIdField:M,spatialReference:R?null:L&&L.toJSON(),timeInfo:F?.toJSON()??null,dateFieldsTimeZone:H};B=await this._connection.invoke("load",R,{signal:B});for(var K of B.warnings)g.getLogger(this.layer).warn("#load()",`${K.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:K});B.featureErrors.length&&g.getLogger(this.layer).warn("#load()",`Encountered ${B.featureErrors.length} validation errors while loading features. (title: '${this.layer.title||
"no title"}', id: '${this.layer.id??"no id"}')`,{errors:B.featureErrors});K=B.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(J.inferredGeometryType)&&(K.geometryType=v.typeKebabDictionary.toJSON(J.inferredGeometryType));this.sourceJSON=K;this._requiresClientGraphicMapping()&&(this._idToClientGraphic=new Map);J.finish(B.assignedObjectIds)}};b.__decorate([q.shared({Type:h,ensureType:t.ensureType(h)})],a.MemorySource.prototype,"itemType",void 0);b.__decorate([r.property()],a.MemorySource.prototype,
"type",void 0);b.__decorate([r.property({constructOnly:!0})],a.MemorySource.prototype,"layer",void 0);b.__decorate([r.property({readOnly:!0})],a.MemorySource.prototype,"_workerGeometryType",null);b.__decorate([r.property()],a.MemorySource.prototype,"sourceJSON",void 0);a.MemorySource=b.__decorate([x.subclass("esri.layers.graphics.sources.MemorySource")],a.MemorySource);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/core/workers/workers":function(){define("require exports ../Error ../has ../promiseUtils ./Connection ./connectionRegistry ./RemoteClient ./WorkerOwner".split(" "),
function(a,b,c,h,d,n,m,e,g){function f(w){if(w&&w.__esModule)return w;const z=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(w)for(const k in w)if("default"!==k){const v=Object.getOwnPropertyDescriptor(w,k);Object.defineProperty(z,k,v.get?v:{enumerable:!0,get:()=>w[k]})}z.default=w;return Object.freeze(z)}async function p(w,z){const k=new n,{registryTarget:v,...y}=z;await k.open(w,y);v&&m.register(v,k);return k}async function r(){if(A)return A;u=new AbortController;const w=[];for(let z=
0;zx[z]=v);w.push(k)}return A=Promise.all(w)}const t=h("host-browser")?Math.min(navigator.hardwareConcurrency-1,h("workers-pool-size")??8):0;let l=h("esri-mobile")?Math.min(t,3):t;l||=h("safari")&&h("mac")?7:2;let q=0;const x=[];let A=null,u;b.Connection=n;b.RemoteClient=e;b.initialize=function(){r()};b.open=async function(w,z={}){if("string"!==typeof w)throw new c("workers:undefined-module","modulePath is missing");var k=z.strategy||"distributed";h("host-webworker")&&
!h("esri-workers")&&(k="local");if("local"===k){var v=await e.loadWorker(w);v||=await new Promise((y,B)=>a([w],C=>y(f(C)),B));d.throwIfAborted(z.signal);k=z.client||v;v=e.connect(v,z.schedule);return p([v],{...z,client:k})}await r();d.throwIfAborted(z.signal);if("dedicated"===k)return k=q++%l,k=await x[k].open(w,z),p([k],z);if(z.maxNumWorkers&&0y.open(w,
z));return p(k,z)};b.openWithPorts=function(w,z){return p(w,{client:z})};b.terminate=function(){A&&(u.abort(),A=null);for(let w=0;w{let t=!0;const l=q=>{c.throwIfAborted(f.signal);t&&(t=!1,q())};this._clients.length=g.length;this._clientPromises.length=g.length;this._inUseClients.length=g.length;for(let q=0;q{this._clients[q]=new m(A,f,this._ongoingJobsQueue);l(p);return this._clients[q]},()=>{l(r);return null}):(this._clients[q]=
new m(x,f,this._ongoingJobsQueue),this._clientPromises[q]=Promise.resolve(this._clients[q]),l(p))}})}broadcast(g,f,p){const r=Array(this._clientPromises.length);for(let t=0;tl?.invoke(g,f,p));return r}close(){let g;for(;g=this._ongoingJobsQueue.pop();)g.resolver.reject(c.createAbortError(`Worker closing, aborting job calling '${g.methodName}'`));for(const f of this._clientPromises)f.then(p=>p?.close());this._clients.length=0;this._clientPromises.length=
0;this._inUseClients.length=0;d.unregister(this)}invoke(g,f,p){return this.apply(g,[f],p)}apply(g,f,p){const r=c.createResolver();this._ongoingJobsQueue.push({methodName:g,data:f,invokeOptions:p,resolver:r});for(g=0;gt?.jobAdded());return r.promise}createInvokeProxy(g){return n.createInvokeProxy(this,g)}on(g,f){return Promise.all(this._clientPromises).then(()=>a.handlesGroup(this._clients.map(p=>p.on(g,
f))))}openPorts(){return new Promise(g=>{const f=Array(this._clientPromises.length);let p=f.length;for(let r=0;r{t&&(f[r]=t.openPort());0===--p&&g(f)})})}get test(){}}return e})},"esri/core/Queue":function(){define(["./accessorSupport/tracking","./accessorSupport/tracking/SimpleObservable"],function(a,b){class c{constructor(h=d=>d.values().next().value){this._peeker=h;this._observable=new b.SimpleObservable;this._items=new Set}get length(){a.trackAccess(this._observable);
return this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0!==this.length){for(var h of this._items);return h}}peek(){if(0!==this.length)return this._peeker(this._items)}push(h){this.contains(h)||(this._items.add(h),this._observable.notify())}contains(h){a.trackAccess(this._observable);return this._items.has(h)}pop(){if(0!==this.length){var h=this.peek();this._items.delete(h);this._observable.notify();return h}}popLast(){if(0!==this.length){var h=this.last();
this._items.delete(h);this._observable.notify();return h}}remove(h){this.contains(h)&&(this._items.delete(h),this._observable.notify())}filter(h){const d=this.length;this._items.forEach(n=>{h(n)||this._items.delete(n)});d!==this._items.size&&this._observable.notify();return this}*[Symbol.iterator](){a.trackAccess(this._observable);yield*this._items}}return c})},"esri/core/workers/connectionRegistry":function(){define(["exports"],function(a){const b=new FinalizationRegistry(c=>{c.close()});a.register=
function(c,h){b.register(c,h,h)};a.unregister=function(c){b.unregister(c)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/core/workers/InvokeHandler":function(){define(["exports"],function(a){a.createInvokeProxy=function(b,c){return new Proxy({},{get(h,d,n){return(...m)=>{let e,g;const f=m[m.length-1];"object"===typeof f&&!Array.isArray(f)&&null!=f&&("signal"in f||"transferList"in f||0===Object.keys(f).length)&&(e=f.signal,g=f.transferList,m.pop());return b.apply(c?`${c}.${d.toString()}`:
d.toString(),m,{transferList:g,signal:e})}}})};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/core/workers/RemoteClient":function(){define("../../kernel ../Error ../events ../handleUtils ../maybe ../promiseUtils ./InvokeHandler ./registry ./utils ../../support/revision".split(" "),function(a,b,c,h,d,n,m,e,g,f){const {CLOSE:p,ABORT:r,INVOKE:t,RESPONSE:l,OPEN_PORT:q,ON:x}=g.MessageType;class A{constructor(w){this._invoke=w;this._timer=null;this._cancelledJobIds=new Set;this._invokeMessages=
[];this._timer=null;this._process=this._process.bind(this)}push(w){w.type===g.MessageType.ABORT?this._cancelledJobIds.add(w.jobId):(this._invokeMessages.push(w),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0;this._cancelledJobIds.clear();this._timer=null}_process(){this._timer=null;for(const w of this._invokeMessages)this._cancelledJobIds.has(w.jobId)||this._invoke(w);this._cancelledJobIds.clear();this._invokeMessages.length=0}}class u{static connect(w,
z){const k=new MessageChannel;w="function"===typeof w?new w:"default"in w&&"function"===typeof w.default?new w.default:w;z=new u(k.port1,{channel:k,client:w,schedule:z});"object"===typeof w&&"remoteClient"in w&&(w.remoteClient=z);u.clients.set(z,w);return k.port2}static loadWorker(w){return(w=e.registry[w])?w():Promise.resolve(null)}constructor(w,z,k){this._port=w;this._jobQueue=k;this._outJobs=new Map;this._inJobs=new Map;this._invokeQueue=new A(v=>this._onInvokeMessage(v));this._client=z.client;
this._onMessage=this._onMessage.bind(this);this._channel=z.channel;this._schedule=z.schedule;this._port.addEventListener("message",this._onMessage);this._port.start()}close(){this._post({type:p});this._close()}isBusy(){return 0{if(n.isAborted(v))this._processWork(),L(n.createAbortError());else{var M=n.onAbort(v,()=>{const G=this._outJobs.get(B);G&&(this._outJobs.delete(B),this._processWork(),d.removeMaybe(G.abortHandle),this._post({type:r,jobId:B}),L(n.createAbortError()))});this._outJobs.set(B,{resolve:C,reject:L,abortHandle:M,debugInfo:w});this._post({type:t,jobId:B,methodName:w,abortable:null!=v},z,y)}})}createInvokeProxy(w){return m.createInvokeProxy(this,w)}on(w,z){function k(y){z(y.data)}const v=new MessageChannel;
this._port.postMessage({type:g.MessageType.ON,eventType:w,port:v.port2},[v.port2]);v.port1.addEventListener("message",k);v.port1.start();return h.makeHandle(()=>{v.port1.postMessage({type:g.MessageType.CLOSE});v.port1.close();v.port1.removeEventListener("message",k)})}jobAdded(){this._processWork()}openPort(){const w=new MessageChannel;this._post({type:q,port:w.port2});return w.port1}_processWork(){if(!(2<=this._outJobs.size)){var w=this._jobQueue?.pop();if(w){var {methodName:z,data:k,invokeOptions:v,
resolver:y}=w;this.apply(z,k,v).then(B=>y.resolve(B)).catch(B=>y.reject(B))}}}_close(){this._channel&&(this._channel=void 0);this._port.removeEventListener("message",this._onMessage);this._port.close();this._outJobs.forEach(w=>{d.removeMaybe(w.abortHandle);w.reject(n.createAbortError(`Worker closing, aborting job calling '${w.debugInfo}'`))});this._inJobs.clear();this._outJobs.clear();this._invokeQueue.clear();this._schedule=this._client=this._port=null}_onMessage(w){null!=this._schedule?this._schedule(()=>
this._processMessage(w,!0)):this._processMessage(w,!1)}_processMessage(w,z){if(w=g.receiveMessage(w))switch(w.type){case l:this._onResponseMessage(w);break;case t:z?this._onInvokeMessage(w):this._invokeQueue.push(w);break;case r:this._onAbortMessage(w);break;case p:this._onCloseMessage();break;case q:this._onOpenPortMessage(w);break;case x:this._onOnMessage(w)}}_onAbortMessage(w){const z=this._inJobs,k=w.jobId,v=z.get(k);this._invokeQueue.push(w);v&&(v.controller&&v.controller.abort(),z.delete(k))}_onCloseMessage(){const w=
this._client;this._close();w&&"destroy"in w&&u.clients.get(this)===w&&w.destroy();u.clients.delete(this);w?.remoteClient&&(w.remoteClient=null)}_onInvokeMessage(w){const {methodName:z,jobId:k,data:v=[],abortable:y}=w;w=y?new AbortController:null;const B=this._inJobs;let C=this._client,L=C[z],M;try{if(!L&&z&&z.includes(".")){const G=z.split(".");for(let E=0;E{B.has(k)&&(B.delete(k),this._post({type:l,jobId:k},G))},G=>{B.has(k)&&(B.delete(k),n.isAbortError(G)||this._post({type:l,jobId:k,error:g.toInvokeError(G||{message:`Error encountered at method ${z}`})}))})):this._post({type:l,jobId:k},M)}_onOpenPortMessage(w){new u(w.port,{client:this._client})}_onOnMessage(w){const {port:z}=w,k=this._client.on(w.eventType,
y=>{z.postMessage(y)}),v=c.on(w.port,"message",y=>{g.receiveMessage(y)?.type===g.MessageType.CLOSE&&(v.remove(),k.remove(),z.close())})}_onResponseMessage(w){const {jobId:z,error:k,data:v}=w;w=this._outJobs;if(w.has(z)){var y=w.get(z);w.delete(z);this._processWork();d.removeMaybe(y.abortHandle);k?y.reject(b.fromJSON(JSON.parse(k))):y.resolve(v)}}_post(w,z,k){return g.postMessage(this._port,w,z,k)}}u.kernelInfo={buildDate:f.buildDate,fullVersion:a.fullVersion,revision:f.commitHash};u.clients=new Map;
return u})},"esri/core/workers/registry":function(){define(["require","exports"],function(a,b){const c=h=>Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"}));b.registry={statsWorker:()=>new Promise((h,d)=>a(["../../smartMapping/statistics/support/statsWorker"],h,d)),geometryEngineWorker:()=>new Promise((h,d)=>a(["../../geometry/geometryEngineWorker"],h,d)),CSVSourceWorker:()=>new Promise((h,d)=>a(["../../layers/graphics/sources/support/CSVSourceWorker"],
n=>h(c(n)),d)),EdgeProcessingWorker:()=>new Promise((h,d)=>a(["../../views/3d/webgl-engine/lib/edgeRendering/EdgeProcessingWorker"],n=>h(c(n)),d)),ElevationSamplerWorker:()=>new Promise((h,d)=>a(["../../geometry/support/meshUtils/ElevationSamplerWorker"],n=>h(c(n)),d)),FeatureServiceSnappingSourceWorker:()=>new Promise((h,d)=>a(["../../views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker"],n=>h(c(n)),d)),GeoJSONSourceWorker:()=>new Promise((h,d)=>a(["../../layers/graphics/sources/geojson/GeoJSONSourceWorker"],
n=>h(c(n)),d)),LercWorker:()=>new Promise((h,d)=>a(["../../layers/support/LercWorker"],n=>h(c(n)),d)),MemorySourceWorker:()=>new Promise((h,d)=>a(["../../layers/graphics/sources/support/MemorySourceWorker"],n=>h(c(n)),d)),PBFDecoderWorker:()=>new Promise((h,d)=>a(["../../views/3d/support/PBFDecoderWorker"],n=>h(c(n)),d)),FeaturePipelineWorker:()=>new Promise((h,d)=>a(["../../views/2d/layers/features/FeaturePipelineWorker"],n=>h(c(n)),d)),PointCloudWorker:()=>new Promise((h,d)=>a(["../../views/3d/layers/PointCloudWorker"],
n=>h(c(n)),d)),RasterWorker:()=>new Promise((h,d)=>a(["../../layers/support/RasterWorker"],n=>h(c(n)),d)),SceneLayerSnappingSourceWorker:()=>new Promise((h,d)=>a(["../../views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker"],n=>h(c(n)),d)),SceneLayerWorker:()=>new Promise((h,d)=>a(["../../views/3d/layers/SceneLayerWorker"],h,d)),WFSSourceWorker:()=>new Promise((h,d)=>a(["../../layers/graphics/sources/WFSSourceWorker"],n=>h(c(n)),d)),WorkerTileHandler:()=>new Promise((h,
d)=>a(["../../views/2d/engine/vectorTiles/WorkerTileHandler"],n=>h(c(n)),d)),Lyr3DWorker:()=>new Promise((h,d)=>a(["../../views/3d/layers/Lyr3DWorker"],h,d)),Feature3DPipelineWorker:()=>new Promise((h,d)=>a(["../../views/3d/layers/graphics/pipeline/Feature3DPipelineWorker"],n=>h(c(n)),d))};Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})})},"esri/core/workers/utils":function(){define(["exports","../has","../promiseUtils"],function(a,b,c){function h(g){return g&&"object"===typeof g&&("result"in
g||"transferList"in g)}function d(g){return g?"string"===typeof g?JSON.stringify({name:"message",message:g}):g.toJSON?JSON.stringify(g):JSON.stringify({name:g.name,message:g.message,details:g.details||{stack:g.stack}}):null}function n(g,f,p,r){if(f.type===a.MessageType.OPEN_PORT)g.postMessage(f,[f.port]);else if(f.type!==a.MessageType.INVOKE&&f.type!==a.MessageType.RESPONSE)g.postMessage(f);else if(h(p)?(r=m(p.transferList),f.data=p.result):(r=m(r),f.data=p),r){if(b("ff"))for(const t of r)if("byteLength"in
t&&267386880!(f instanceof ArrayBuffer||"ArrayBuffer"===f?.constructor?.name));return g.length?
g:null}a.MessageType=void 0;(function(g){g[g.HANDSHAKE=0]="HANDSHAKE";g[g.OPEN=1]="OPEN";g[g.OPENED=2]="OPENED";g[g.RESPONSE=3]="RESPONSE";g[g.INVOKE=4]="INVOKE";g[g.ABORT=5]="ABORT";g[g.CLOSE=6]="CLOSE";g[g.OPEN_PORT=7]="OPEN_PORT";g[g.ON=8]="ON"})(a.MessageType||(a.MessageType={}));let e=0;a.ignoreConnectionErrors=async function(g){try{return await g}catch(f){if(g="worker:port-closed"===f?.name,!c.isAbortError(f)&&!g)throw f;}};a.isTransferrableResult=h;a.newJobId=function(){return e++};a.portClosedErrorName=
"worker:port-closed";a.postMessage=n;a.receiveMessage=function(g){return g?(g=g.data)?"string"===typeof g?JSON.parse(g):g:null:null};a.toInvokeError=d;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/core/workers/WorkerOwner":function(){define("../Error ../Logger ../maybe ../promiseUtils ./staticWorkerMessages ./utils ./workerFactory".split(" "),function(a,b,c,h,d,n,m){const {ABORT:e,INVOKE:g,OPEN:f,OPENED:p,RESPONSE:r}=n.MessageType;class t{static async create(l){const q=await m.createWorker();
return new t(q,l)}constructor(l,q){this._outJobs=new Map;this._inJobs=new Map;this.worker=l;this.id=q;l.addEventListener("message",this._onMessage.bind(this));l.addEventListener("error",x=>{x.preventDefault();b.getLogger("esri.core.workers.WorkerOwner").error(x)})}terminate(){this.worker.terminate()}async open(l,q={}){const {signal:x}=q,A=n.newJobId();return new Promise((u,w)=>{const z=h.onAbortOrThrow(x,()=>{this._outJobs.delete(A);this._post({type:e,jobId:A})});this._outJobs.set(A,{resolve:u,reject:w,
abortHandle:z});this._post({type:f,jobId:A,modulePath:l})})}_onMessage(l){if(l=n.receiveMessage(l))switch(l.type){case p:this._onOpenedMessage(l);break;case r:this._onResponseMessage(l);break;case e:this._onAbortMessage(l);break;case g:this._onInvokeMessage(l)}}_onAbortMessage(l){const q=this._inJobs;l=l.jobId;const x=q.get(l);x&&(x.controller&&x.controller.abort(),q.delete(l))}_onInvokeMessage(l){const {methodName:q,jobId:x,data:A,abortable:u}=l;l=u?new AbortController:null;const w=this._inJobs,
z=d.staticWorkerMessages[q];let k;try{if("function"!==typeof z)throw new TypeError(`${q} is not a function`);k=z.call(null,A,{signal:l?l.signal:null})}catch(v){this._post({type:r,jobId:x,error:n.toInvokeError(v)});return}h.isPromiseLike(k)?(w.set(x,{controller:l,promise:k}),k.then(v=>{w.has(x)&&(w.delete(x),this._post({type:r,jobId:x},v))},v=>{w.has(x)&&(w.delete(x),v||={message:"Error encountered at method"+q},h.isAbortError(v)||this._post({type:r,jobId:x,error:n.toInvokeError(v||{message:`Error encountered at method ${q}`})}))})):
this._post({type:r,jobId:x},k)}_onOpenedMessage(l){const {jobId:q,data:x}=l;if(l=this._outJobs.get(q))this._outJobs.delete(q),c.removeMaybe(l.abortHandle),l.resolve(x)}_onResponseMessage(l){const {jobId:q,error:x,data:A}=l;if(l=this._outJobs.get(q))this._outJobs.delete(q),c.removeMaybe(l.abortHandle),x?l.reject(a.fromJSON(JSON.parse(x))):l.resolve(A)}_post(l,q,x){return n.postMessage(this.worker,l,q,x)}}return t})},"esri/core/workers/staticWorkerMessages":function(){define(["exports","../../request",
"../urlUtils"],function(a,b,c){a.staticWorkerMessages={async request(h,d){const n=h.options,m=n.responseType;n.signal=d?.signal;n.responseType="native"===m||"native-request-init"===m?"native-request-init":m&&["blob","json","text"].includes(m)&&c.getInterceptor(h.url)?.after?m:"array-buffer";h=await b(h.url,n);d={data:h.data,httpStatus:h.httpStatus,ssl:h.ssl};switch(h.requestOptions?.responseType){case "native-request-init":return delete d.data.signal,d;case "blob":d.data=await d.data.arrayBuffer();
break;case "json":d.data=(new TextEncoder).encode(JSON.stringify(d.data)).buffer;break;case "text":d.data=(new TextEncoder).encode(d.data).buffer}return{result:d,transferList:[d.data]}}};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/core/workers/workerFactory":function(){define("exports ../../config ../../request ../Error ../Logger ../urlUtils ../../intl ../../kernel ../has ./loaderConfig ./utils ./WorkerFallback ../../intl/locale ../../support/revision".split(" "),function(a,
b,c,h,d,n,m,e,g,f,p,r,t,l){async function q(k){return new Promise(v=>{function y(C){(C=p.receiveMessage(C))&&C.type===A&&(k.removeEventListener("message",y),k.removeEventListener("error",B),v(k))}function B(C){C.preventDefault();k.removeEventListener("message",y);k.removeEventListener("error",B);x().warn("Failed to create Worker. Fallback to execute module in main thread",C);k=new r;k.addEventListener("message",y);k.addEventListener("error",B)}k.addEventListener("message",y);k.addEventListener("error",
B)})}const x=()=>d.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:A}=p.MessageType;let u,w,z=0;a.createWorker=async function(){if(!g("esri-workers"))return q(new r);if(!u&&!w)try{var k=["let globalId\x3d0;const outgoing\x3dnew Map,configuration\x3d",';self.esriConfig\x3dconfiguration.esriConfig;const workerPath\x3dself.esriConfig.workers.workerPath,HANDSHAKE\x3d0,OPEN\x3d1,OPENED\x3d2,RESPONSE\x3d3,INVOKE\x3d4,ABORT\x3d5;function createAbortError(){const e\x3dnew Error("Aborted");return e.name\x3d"AbortError",e}function receiveMessage(e){return e\x26\x26e.data?"string"\x3d\x3dtypeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t\x3dr\x26\x26r.signal,n\x3dglobalId++;let s\x3dnull;return new Promise(((r,i)\x3d\x3e{if(t){if(t.aborted)return i(createAbortError());s\x3d()\x3d\x3e{outgoing.get(n)\x26\x26(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!\x3dt,data:o})})).finally((()\x3d\x3e{t\x26\x26t.removeEventListener("abort",s)}))}let workerRevisionChecked\x3d!1;function checkWorkerRevision(e){if(!workerRevisionChecked\x26\x26e.kernelInfo){workerRevisionChecked\x3d!0;const{revision:o,fullVersion:r}\x3dconfiguration.kernelInfo,{revision:t,fullVersion:n,version:s}\x3de.kernelInfo;esriConfig.assetsPath!\x3d\x3desriConfig.defaultAssetsPath\x26\x26o!\x3d\x3dt\x26\x26console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\nModules version: ${r}\nAssets version: ${n??s}\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o\x3dreceiveMessage(e);if(!o)return;const r\x3do.jobId;switch(o.type){case 1:let n;function t(e){const o\x3dn.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"\x3d\x3dtypeof define\x26\x26define.amd?require([workerPath],(e\x3d\x3e{n\x3de.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e\x3d\x3ee||new Promise((e\x3d\x3e{require([o.modulePath],e)})))).then(t)})):"System"in self\x26\x26"function"\x3d\x3dtypeof System.import?System.import(workerPath).then((e\x3d\x3e(n\x3de.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e\x3d\x3ee||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e\x3d\x3e{n\x3de.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e\x3d\x3ee||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n\x3dself.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const s\x3doutgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig\x3dconfiguration.loaderConfig,esriConfig.workers.loaderUrl\x26\x26(self.importScripts(esriConfig.workers.loaderUrl),"function"\x3d\x3dtypeof require\x26\x26"function"\x3d\x3dtypeof require.config\x26\x26require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'],
v=k.join;let C;if(null!=b["default"]){const E={...b};delete E["default"];C=JSON.parse(JSON.stringify(E))}else C=JSON.parse(JSON.stringify(b));C.assetsPath=n.makeAbsolute(C.assetsPath);C.defaultAssetsPath=C.defaultAssetsPath?n.makeAbsolute(C.defaultAssetsPath):void 0;C.request.interceptors=[];C.log.interceptors=[];C.locale=t.getLocale();C.has={"esri-csp-restrictions":g("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":g("esri-2d-update-debug"),"esri-2d-log-updating":g("esri-2d-log-updating"),
"featurelayer-pbf":g("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":g("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":g("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":g("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":g("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":g("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":g("featurelayer-query-pausing-enabled"),
"featurelayer-snapshot-enabled":g("featurelayer-snapshot-enabled"),"esri-atomics":g("esri-atomics"),"esri-shared-array-buffer":g("esri-shared-array-buffer"),"esri-tiles-debug":g("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":g("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":g("feature-polyline-generalization-factor"),"host-webworker":1};C.workers.loaderUrl?C.workers.loaderUrl=n.makeAbsolute(C.workers.loaderUrl):f.defaultLoaderUrl&&(C.workers.loaderUrl=f.defaultLoaderUrl);
C.workers.workerPath=C.workers.workerPath?n.makeAbsolute(C.workers.workerPath):"esri/core/workers/RemoteClient";C.workers.useDynamicImport=!1;const L=b.workers.loaderConfig,M=f.loaderConfig({baseUrl:L?.baseUrl,locale:t.getLocale(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...L?.has},map:{...L?.map},paths:{...L?.paths},packages:L?.packages||[]});var y=JSON.stringify({esriConfig:C,loaderConfig:M,kernelInfo:{buildDate:l.buildDate,fullVersion:e.fullVersion,revision:l.commitHash}});
const G=v.call(k,y);u=URL.createObjectURL(new Blob([G],{type:"text/javascript"}))}catch(C){w=C||{}}let B;if(u)try{B=new Worker(u,{name:`esri-worker-${z++}`})}catch(C){x().warn("Failed to create Worker. Fallback to execute module in main thread",w),B=new r}else x().warn("Failed to create Worker. Fallback to execute module in main thread",w),B=new r;return q(B)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/core/workers/loaderConfig":function(){define(["exports","../../assets",
"../has","../urlUtils"],function(a,b,c,h){a.defaultLoaderUrl=null;a.defaultLoaderUrl=h.makeAbsolute(b.getAssetUrl("esri/core/workers/init.js"));const d={};d.baseUrl=h.makeAbsolute(b.getAssetUrl("dojo/"));d.packages=[{name:"esri",location:"../esri"}];a.loaderConfig=function(n){const m={async:n.async,isDebug:n.isDebug,locale:n.locale,baseUrl:n.baseUrl,has:{...n.has},map:{...n.map},packages:n.packages?.slice()||[],paths:{...d.paths,...n.paths}};n.hasOwnProperty("async")||(m.async=!0);n.hasOwnProperty("isDebug")||
(m.isDebug=!1);n.baseUrl||(m.baseUrl=d.baseUrl);d.packages?.forEach(e=>{a:{var g=m.packages??[];for(const f of g)if(f.name===e.name)break a;g.push(e)}});return m};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/core/workers/WorkerFallback":function(){define(["require","../nextTick","./RemoteClient","./utils"],function(a,b,c,h){function d(e){if(e&&e.__esModule)return e;const g=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const f in e)if("default"!==f){const p=
Object.getOwnPropertyDescriptor(e,f);Object.defineProperty(g,f,p.get?p:{enumerable:!0,get:()=>e[f]})}g.default=e;return Object.freeze(g)}class n{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach(g=>{this[g]=(...f)=>e[g](...f)})}}class m{constructor(){this._dispatcher=new n;this._workerPostMessage({type:h.MessageType.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&
this.removeEventListener("message",this._onmessageHandler);(this._onmessageHandler=e)&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler);(this._onmessageerrorHandler=e)&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler);
(this._onerrorHandler=e)&&this.addEventListener("error",e)}postMessage(e){b.nextTick(()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))})}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,g,f){this._dispatcher.addEventListener(e,g,f)}removeEventListener(e,g,f){this._dispatcher.removeEventListener(e,g,f)}_workerPostMessage(e){b.nextTick(()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))})}async _workerMessageHandler(e){if((e=h.receiveMessage(e))&&
e.type===h.MessageType.OPEN){const {modulePath:g,jobId:f}=e;(e=await c.loadWorker(g))||(e=await new Promise((p,r)=>a([g],t=>p(d(t)),r)));e=c.connect(e);this._workerPostMessage({type:h.MessageType.OPENED,jobId:f,data:e})}}}return m})},"esri/rest/query/operations/editsZScale":function(){define(["exports","../../../core/unitUtils","../../../geometry/support/spatialReferenceUtils"],function(a,b,c){function h(n,m,e){if(null==n.hasM||n.hasZ)for(const g of m)for(const f of g)2Math.round((C-k)/w),C=>Math.round((v-C)/z));for(let C=0,L=y.length;CE*G+M}if(this.hasM&&null!=z?.scale?.[3]){const {translate:[,,,M],scale:[,,,G]}=z;L=E=>null==E?E:E*G+M}C=this._getHydrationFunction(u,
M=>M*y+k,M=>v-M*B,C,L);for(const {geometry:M}of w)null!=M&&C&&C(M);this.transform=null;return this}_quantizePoints(u,w,z){let k,v;const y=[];for(let C=0,L=u.length;C{k.x=w(k.x);k.y=z(k.y);return k}:"polyline"===u||"polygon"===u?k=>{const v=l.isPolygon(k)?k.rings:k.paths,y=[];for(let B=0,C=
v.length;B{const v=this._quantizePoints(k.points,w,z);return v&&0k:null}_getHydrationFunction(u,w,z,k,v){return"point"===u?y=>{y.x=w(y.x);y.y=z(y.y);k&&(y.z=k(y.z))}:"polyline"===u||"polygon"===u?y=>{y=l.isPolygon(y)?y.rings:y.paths;for(let L=0,M=y.length;L{y.xmin=w(y.xmin);y.ymin=z(y.ymin);y.xmax=w(y.xmax);y.ymax=z(y.ymax);k&&null!=y.zmax&&null!=y.zmin&&
(y.zmax=k(y.zmax),y.zmin=k(y.zmin));v&&null!=y.mmax&&null!=y.mmin&&(y.mmax=v(y.mmax),y.mmin=v(y.mmin))}:"multipoint"===u?y=>{y=y.points;let B;for(let L=0,M=y.length;L{e=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(g){null!=
g?this._override("apiKey",g):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};b.__decorate([c.property({type:String})],e.prototype,"apiKey",null);return e=b.__decorate([m.subclass("esri.layers.mixins.APIKeyMixin")],e)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/mixins/ArcGISService":function(){define("exports ../../chunks/tslib.es6 ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/has ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../support/arcgisLayerUrl".split(" "),
function(a,b,c,h,d,n,m,e){a.ArcGISService=g=>{g=class extends g{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const f=e.parse(this.url);if(null!=f&&f.title)return f.title}return this._get("title")||""}set title(f){this._set("title",f)}set url(f){this._set("url",e.sanitizeUrl(f,c.getLogger(this)))}};b.__decorate([h.property()],g.prototype,"title",null);b.__decorate([h.property({type:String})],g.prototype,"url",null);return g=b.__decorate([m.subclass("esri.layers.mixins.ArcGISService")],
g)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/mixins/BlendLayer":function(){define("exports ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../effects/jsonUtils".split(" "),function(a,b,c,h,d,n,m,e){const g={type:"average color-burn color-dodge color darken destination-atop destination-in destination-out destination-over difference exclusion hard-light hue invert lighten lighter luminosity minus multiply normal overlay plus reflect saturation screen soft-light source-atop source-in source-out vivid-light xor".split(" "),
nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:!0},"portal-item":{read:!0,write:!0}}}};h={read:{reader:e.read},write:{allowNull:!0,writer:e.write}};const f={json:{read:!1,write:!1,origins:{"web-map":h,"portal-item":h}}};a.BlendLayer=p=>{p=class extends p{constructor(){super(...arguments);this.blendMode="normal";this.effect=null}};b.__decorate([c.property(g)],p.prototype,"blendMode",void 0);b.__decorate([c.property(f)],p.prototype,"effect",void 0);return p=b.__decorate([m.subclass("esri.layers.mixins.BlendLayer")],
p)};a.blendModeProperty=g;a.effectProperty=f;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/effects/jsonUtils":function(){define(["exports","../../core/Error","../../core/object","./parser","./utils"],function(a,b,c,h,d){function n(f){return(f=h.parse(f))?d.isEffectFunctions(f)?f.map(p=>p.toJSON()):f.map(({scale:p,effects:r})=>({scale:p,value:r.map(t=>t.toJSON())})):null}function m(f){if(!f||0===f.length)return null;var p=(p=f[0])?"scale"in p:!1;if(p){p=[];for(const r of f)p.push({scale:r.scale,
value:e(r.value)});return p}return e(f)}function e(f){if(!f?.length)return"";const p=[];for(const q of f){f=[];switch(q.type){case "grayscale":case "sepia":case "saturate":case "invert":case "brightness":case "contrast":case "opacity":f=[g(q,"amount")];break;case "blur":f=[g(q,"radius","pt")];break;case "hue-rotate":f=[g(q,"angle","deg")];break;case "drop-shadow":f=g(q,"xoffset","pt");var r=g(q,"yoffset","pt"),t=g(q,"blurRadius","pt"),l=q;if(null==l.color)throw new b("effect:missing-parameter",`Missing parameter '${"color"}' in ${l.type} effect`,
{effect:l});l=l.color;f=[f,r,t,`rgba(${l[0]||0}, ${l[1]||0}, ${l[2]||0}, ${l[3]/255||0})`];break;case "bloom":f=[g(q,"strength"),g(q,"radius","pt"),g(q,"threshold")]}f=`${q.type}(${f.filter(Boolean).join(" ")})`;h.parse(f);p.push(f)}return p.join(" ")}function g(f,p,r){if(null==f[p])throw new b("effect:missing-parameter",`Missing parameter '${p}' in ${f.type} effect`,{effect:f});return r?f[p]+r:""+f[p]}a.effectFunctionsFromJSON=e;a.fromJSON=m;a.read=function(f,p,r){try{return m(f)}catch(t){r?.messages?.push(t)}return null};
a.toJSON=n;a.write=function(f,p,r,t){try{const l=n(f);c.setDeepValue(r,l,p)}catch(l){t.messages&&t.messages.push(l)}};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/effects/parser":function(){define(["exports","../../colorUtils","../../core/Error","./effects","./utils"],function(a,b,c,h,d){function n(k,v,y,B){k=Error.call(this,k);Object.setPrototypeOf&&Object.setPrototypeOf(k,n.prototype);k.expected=v;k.found=y;k.location=B;k.name="SyntaxError";return k}function m(k,
v,y){y=y||" ";if(k.length>v)return k;v-=k.length;y+=y.repeat(v);return k+y.slice(0,v)}function e(k,v){function y(Xa,wa){return{type:"literal",text:Xa,ignoreCase:wa}}function B(Xa,wa,Ja){return{type:"class",parts:Xa,inverted:wa,ignoreCase:Ja}}function C(Xa){return{type:"other",description:Xa}}function L(Xa){var wa=eb[Xa];if(!wa){if(Xa>=eb.length)var Ja=eb.length-1;else for(Ja=Xa;!eb[--Ja];);wa=eb[Ja];for(wa={line:wa.line,column:wa.column};Jahb&&(hb=ya,ib=[]),ib.push(Xa))}function E(){Ma++;var Xa=ya;R();if(k.substr(ya,4)===pa){var wa=pa;ya+=4}else wa=N,0===Ma&&G(Aa);wa!==N?(R(),Va=Xa,Xa=[]):(ya=Xa,Xa=N);Ma--;Xa===N&&0===Ma&&G(oa);if(Xa===N)if(Xa=[],wa=F(),wa!==N)for(;wa!==N;)Xa.push(wa),wa=F();else Xa=N;return Xa}function F(){var Xa=
ya;R();Ma++;var wa=ya;var Ja=J();if(Ja!==N){if(40===k.charCodeAt(ya)){var Ua=qa;ya++}else Ua=N,0===Ma&&G(Sa);Ua!==N?(Va=wa,wa=Ja):(ya=wa,wa=N)}else ya=wa,wa=N;Ma--;wa===N&&(Ja=N,0===Ma&&G(Qa));if(wa!==N){R();Ja=ya;Ua=H();if(Ua!==N){var xb=[];var ia=ya;var Ea=R();if(44===k.charCodeAt(ya)){var La=ra;ya++}else La=N,0===Ma&&G(Fa);La===N&&(La=null);var Oa=R();var Za=H();Za!==N?ia=Ea=[Ea,La,Oa,Za]:(ya=ia,ia=N);for(;ia!==N;)xb.push(ia),ia=ya,Ea=R(),44===k.charCodeAt(ya)?(La=ra,ya++):(La=N,0===Ma&&G(Fa)),
La===N&&(La=null),Oa=R(),Za=H(),Za!==N?ia=Ea=[Ea,La,Oa,Za]:(ya=ia,ia=N);Va=Ja;Ja=0f(y))}function f(k){try{switch(k.name){case "grayscale":case "sepia":case "saturate":case "invert":case "brightness":case "contrast":var v=1;p(k.parameters,1);1===k.parameters.length&&(v=l(k.parameters[0]));return new h.ColorMatrixEffect(k.name,v);case "opacity":return v=1,p(k.parameters,1),1===k.parameters.length&&(v=l(k.parameters[0])),new h.OpacityEffect(v);case "hue-rotate":v=0;
p(k.parameters,1);if(1===k.parameters.length){var y=k.parameters[0];if("quantity"!==y.type||!(0===y.value&&null===y.unit||y.unit&&null!=A[y.unit]))throw new c("effect:type-error",`Expected , Actual: ${r(y)}`,{term:y});v=y.value*A[y.unit]||0}return new h.HueRotateEffect(v);case "blur":return v=0,p(k.parameters,1),1===k.parameters.length&&(v=q(k.parameters[0]),t(v,k.parameters[0])),new h.BlurEffect(v);case "drop-shadow":const G=[];let E=null;for(const F of k.parameters)if("color"===F.type){G.length&&
Object.freeze(G);if(E)throw new c("effect:type-error","Accepts only one color",{});a:{y=void 0;var B=F;switch(B.colorType){case "hex":E=b.hex2rgba(B.value);break a;case "named":E=x(B.value);break a;case "function":v=B.value;p(v.parameters,4);if(w.test(v.name))y=[l(v.parameters[0]),l(v.parameters[1]),l(v.parameters[2]),v.parameters[3]?l(v.parameters[3]):1];else if(z.test(v.name)){B=b;var C=B.hsla2rgba,L=v.parameters[0],M=L;if("quantity"!==M.type||null!==M.unit)throw new c("effect:type-error",`Expected , Actual: ${r(M)}`,
{term:M});t(L.value,L);y=C.call(B,L.value,l(v.parameters[1]),l(v.parameters[2]),v.parameters[3]?l(v.parameters[3]):1)}else throw new c("effect:syntax-error",`Invalid color function '${v.name}'`,{colorFunction:v});E=y;break a}E=void 0}}else{const H=q(F);if(Object.isFrozen(G))throw new c("effect:type-error","\x3clength\x3e parameters not consecutive",{lengths:G});G.push(H);3===G.length&&t(H,F)}if(2>G.length||3{2,3}, Actual: {${G.length}}`,
{lengths:G});return new h.DropShadowEffect(G[0],G[1],G[2]||0,E||x("black"));case "bloom":return v=1,L=C=0,p(k.parameters,3),k.parameters[0]&&(v=l(k.parameters[0])),k.parameters[1]&&(C=q(k.parameters[1]),t(C,k.parameters[1])),k.parameters[2]&&(L=l(k.parameters[2])),new h.BloomEffect(v,C,L)}}catch(G){throw G.details.filter=k,G;}throw new c("effect:unknown-effect",`Effect '${k.name}' is not supported`,{effect:k});}function p(k,v){if(k.length>v)throw new c("effect:type-error",`Function supports up to ${v} parameters, Actual: ${k.length}`,
{parameters:k});}function r(k){if("color"===k.type)return"\x3ccolor\x3e";if(k.unit){if(k.unit in u)return"\x3clength\x3e";if(k.unit in A)return"\x3cangle\x3e";if("%"===k.unit)return"\x3cpercentage\x3e"}return"\x3cdouble\x3e"}function t(k,v){if(0>k)throw new c("effect:type-error",`Negative values are not allowed, Actual: ${k}`,{term:v});}function l(k){if("quantity"!==k.type||null!==k.unit&&"%"!==k.unit)throw new c("effect:type-error",`Expected or , Actual: ${r(k)}`,{term:k});const v=
k.value;t(v,k);return"%"===k.unit?.01*v:v}function q(k){if("quantity"!==k.type||!(0===k.value&&null===k.unit||k.unit&&null!=u[k.unit]))throw new c("effect:type-error",`Expected , Actual: ${r(k)}`,{term:k});return k.value*u[k.unit]||0}function x(k){if(!b.isNamedColor(k))throw new c("effect:unknown-color",`color '${k}' isn't valid`,{namedColor:k});return b.getNamedColorCopy(k)}(function(k,v){function y(){this.constructor=k}y.prototype=v.prototype;k.prototype=new y})(n,Error);n.prototype.format=
function(k){var v="Error: "+this.message;if(this.location){var y=null,B;for(B=0;B{if(!Number.isFinite(v.scale)||0>=v.scale)throw new c("effect:invalid-scale","scale must be finite and greater than 0",{stop:v});return{scale:v.scale,effects:g(v.value)}});k.sort((v,y)=>y.effects.length-v.effects.length);for(let v=0;vy.scale-v.scale);return k};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/mixins/CustomParametersMixin":function(){define("exports ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m){a.CustomParametersMixin=e=>{e=class extends e{constructor(){super(...arguments);this.customParameters=null}};b.__decorate([c.property({type:Object,json:{write:{overridePolicy(g){return{enabled:!!(g&&0{A=class extends A{constructor(...w){super(...w);this[u]=!0;this._applyEditsHandler=z=>{const {serviceUrl:k,layerId:v,gdbVersion:y,
mayReceiveServiceEdits:B,result:C}=z;z=k===this.url;const L=null!=v&&null!=this.layerId&&v===this.layerId,M=t(this),G=t(this)&&l(k,y,this.gdbVersion);!z||M&&!G||!L&&!B||(z=C.then(E=>{this.lastEditsEventDate=new Date;if(L&&(E.addedFeatures.length||E.updatedFeatures.length||E.deletedFeatures.length||E.addedAttachments.length||E.updatedAttachments.length||E.deletedAttachments.length))return this.emit("edits",h.clone(E)),E;const F=E.editedFeatures?.find(({layerId:H})=>H===this.layerId);if(F){const {adds:H,
updates:R,deletes:J}=F.editedFeatures;E={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:H?H.map(({attributes:K})=>({objectId:this.objectIdField&&K[this.objectIdField],globalId:this.globalIdField&&K[this.globalIdField]})):[],deletedFeatures:J?J.map(({attributes:K})=>({objectId:this.objectIdField&&K[this.objectIdField],globalId:this.globalIdField&&K[this.globalIdField]})):[],updatedFeatures:R?R.map(({current:{attributes:K}})=>({objectId:this.objectIdField&&
K[this.objectIdField],globalId:this.globalIdField&&K[this.globalIdField]})):[],editedFeatures:h.clone(E.editedFeatures),exceededTransferLimit:!1,historicMoment:h.clone(E.historicMoment)};this.emit("edits",E);return E}E={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:h.clone(E.editedFeatures),exceededTransferLimit:!1,historicMoment:h.clone(E.historicMoment)};"historicMoment"in this&&this._shouldUpdateHistoricMoment(k,
y,E.historicMoment)&&this.emit("edits",E);return E}).then(E=>{"historicMoment"in this&&this._shouldUpdateHistoricMoment(k,y,E.historicMoment)&&(this.historicMoment=E.historicMoment);return E}),this.emit("apply-edits",{result:z}))};this._updateMomentHandler=z=>{const {serviceUrl:k,gdbVersion:v,moment:y}=z;z=k===this.url;const B=t(this),C=t(this)&&l(k,v,this.gdbVersion),L=t(this)&&!l(k,this.gdbVersion,null);z&&B&&C&&L&&"historicMoment"in this&&this.historicMoment!==y&&(this.historicMoment=y)};this.when().then(()=>
{this.addHandles(p(this._applyEditsHandler));"historicMoment"in this&&this.addHandles(r(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(w,z,k){return"historicMoment"in this&&this.historicMoment!==k&&f.isVersionInEditSession(w,z)}};var u=x;b.__decorate([n.property()],A.prototype,"lastEditsEventDate",void 0);return A=b.__decorate([g.subclass("esri.layers.mixins.EditBusLayer")],A)};a.emitApplyEditsEvent=function(A,u,w=null,z=!1){const k=d.createResolver();q.emit("apply-edits",{serviceUrl:A,
layerId:u,gdbVersion:w,mayReceiveServiceEdits:null==u?!0:z,result:k.promise});return k};a.emitUpdateMomentEvent=function(A,u,w=null,z){q.emit("update-moment",{serviceUrl:A,layerId:u,gdbVersion:w,moment:z})};a.isEditBusLayer=function(A){return null!=A&&"object"===typeof A&&x in A};a.isLayerWithGDBVersion=t;a.onApplyEditsEvent=p;a.onUpdateMomentEvent=r;a.versionMatches=l;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/versionManagement/support/versionManagementUtils":function(){define(["require",
"exports","../../request","../../core/uuid"],function(a,b,c,h){const d=h.generateLowercaseBracedUUID(),n=new Map,m=new Map;h=new Map;b.currentSessionId=d;b.defaultVersionNameLookup=n;b.isHistoricVersion=async function(e,g,f){if(!e||!f)return!1;if(!g)return!0;f=(new URL(e)).host;f=n.get(f);f||(e=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),f=(await c(e,{responseType:"json",query:{f:"json"}})).data.defaultVersionName);return f===g?!0:!1};b.isSafeToEditVersion=async function(e,
g,f=!1){if(!e||!g)return!0;e=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");const p=m.get(e)?.entries();if(p)for(const [r,t]of p)if(t.name===g){g=!t.stack?.hasForwardEdits();if(!g&&f){const [{deleteForwardEdits:l},{default:q}]=await Promise.all([new Promise((x,A)=>a(["../../rest/versionManagement/gdbVersion/deleteForwardEdits"],x,A)),new Promise((x,A)=>a(["../../rest/versionManagement/gdbVersion/support/DeleteForwardEditsParameters"],u=>x(Object.freeze(Object.defineProperty({__proto__:null,
default:u},Symbol.toStringTag,{value:"Module"}))),A))]);f=await l(e,r,new q({sessionId:d,moment:t.moment}));f.success&&t.stack?.clearForwardEdits();return f.success}return g}return!0};b.isVersionInEditSession=function(e,g){if(!e)return!1;e=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");if(e=m.get(e)?.entries())for(const [,f]of e)if(f.name===g)return"edit"===f.lockType;return!1};b.versionCollection=m;b.versionCollectionCount=h;Object.defineProperty(b,Symbol.toStringTag,
{value:"Module"})})},"esri/core/uuid":function(){define(["exports"],function(a){function b(){if(c)return crypto.randomUUID();const h=crypto.getRandomValues(new Uint16Array(8));h[3]=h[3]&4095|16384;h[4]=h[4]&16383|32768;const d=n=>h[n].toString(16).padStart(4,"0");return d(0)+d(1)+"-"+d(2)+"-"+d(3)+"-"+d(4)+"-"+d(5)+d(6)+d(7)}const c="randomUUID"in crypto;a.generateBracedUUID=function(){return`{${b().toUpperCase()}}`};a.generateLowercaseBracedUUID=function(){return`{${b()}}`};a.generateUUID=b;a.normalizeGlobalID=
function(h){const d=h.toUpperCase();return"{"!==h[0]?`{${d}}`:d};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/mixins/FeatureEffectLayer":function(){define("exports ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../support/FeatureEffect".split(" "),function(a,b,c,h,d,n,m,e){h={write:{allowNull:!0}};const g={type:e,json:{origins:{"web-map":h,"portal-item":h}}};
a.FeatureEffectLayer=f=>{f=class extends f{constructor(){super(...arguments);this.featureEffect=null}};b.__decorate([c.property(g)],f.prototype,"featureEffect",void 0);return f=b.__decorate([m.subclass("esri.layers.mixins.FeatureEffectLayer")],f)};a.featureEffectProperty=g;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/FeatureEffect":function(){define("../../chunks/tslib.es6 ../../core/Error ../../core/JSONSupport ../../core/object ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../effects/jsonUtils ./FeatureFilter".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p){var r;n={read:{reader:f.read},write:{writer:f.write,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}};m={read:{reader:f.read},write:{writer:f.write,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}};e={name:"showExcludedLabels",default:!0};c=r=class extends c.JSONSupport{constructor(t){super(t);this.excludedEffect=this.includedEffect=this.filter=null;this.excludedLabelsVisible=
!1}write(t,l){t=super.write(t,l);if(l?.origin){if(t.filter){const q=Object.keys(t.filter);if(1G instanceof Date?G.getTime():G):C[L]=M instanceof Date?M.getTime():M}B.parameterValues=C}}writeStart(y,B){B.resultOffset=this.start;B.resultRecordCount=this.num||10;B.where="1\x3d1"}writeWhere(y,B){B.where=y||"1\x3d1"}clone(){return new k(d.clone({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,
defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:null!=this.historicMoment?new Date(this.historicMoment.getTime()):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,
num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,
returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))}};v.MAX_MAX_RECORD_COUNT_FACTOR=5;a.__decorate([n.property({json:{write:!0}})],
v.prototype,"aggregateIds",void 0);a.__decorate([n.property({type:Boolean,json:{write:!0}})],v.prototype,"cacheHint",void 0);a.__decorate([n.property({type:Boolean,json:{default:!1,write:!0}})],v.prototype,"compactGeometryEnabled",void 0);a.__decorate([n.property({json:{write:!0}})],v.prototype,"datumTransformation",void 0);a.__decorate([m.cast("datumTransformation")],v.prototype,"castDatumTransformation",null);a.__decorate([n.property({type:Boolean,json:{default:!1,write:!0}})],v.prototype,"defaultSpatialReferenceEnabled",
void 0);a.__decorate([n.property({type:Number,json:{write:{overridePolicy(y){return{enabled:0y?1:y>v.MAX_MAX_RECORD_COUNT_FACTOR?v.MAX_MAX_RECORD_COUNT_FACTOR:y},json:{write:{overridePolicy(y){return{enabled:1{L=class extends L{constructor(){super(...arguments);this.dateFieldsTimeZone=this.capabilities=this.copyright=null;this.datesInUnknownTimezone=!1;this.globalIdField=this.geometryType=this.geometryFieldsInfo=this.gdbVersion=this.fullExtent=this.floorInfo=this.elevationInfo=this.editingInfo=this.editFieldsInfo=this.displayField=this.definitionExpression=null;this.hasZ=this.hasM=void 0;this.historicMoment=this.heightModelInfo=
null;this.indexes=new (c.ofType(u.FeatureIndex));this.isTable=!1;this.layerId=void 0;this.minScale=this.maxScale=0;this.relationships=this.preferredTimeZone=this.objectIdField=null;this.returnZ=this.returnM=void 0;this.sourceJSON=this.serviceItemId=this.serviceDefinitionExpression=null;this.spatialReference=l.WGS84;this.trackIdField=this.subtypes=this.subtypeField=null;this.version=void 0}get authenticationTriggerEvent(){if(!this.url)return null;const {capabilities:M}=this;if(M){const {query:E,operations:F,
editing:H}=M;if(!E.supportsQueryByOthers||!E.supportsQueryByAnonymous||F.supportsEditing&&!(H.supportsUpdateByOthers&&H.supportsUpdateByAnonymous&&H.supportsDeleteByOthers&&H.supportsDeleteByAnonymous))return"load"}if(this.serviceDefinitionExpression?.toLowerCase().includes("current_user"))return"load";if(this.userHasUpdateItemPrivileges){if(w.isLayerCacheStale(this))return"load";if(this.hasUpdateItemRestrictions)return M.operations.supportsQuery?"editing":"load"}if(this.userHasFullEditingPrivileges&&
this.hasFullEditingRestrictions)return"editing";const G=this.editFieldsInfo;return(G?.creatorField||G?.editorField)&&M?.operations.supportsEditing?"editing":null}readCapabilitiesFromService(M,G){return y.getFeatureLayerCapabilities(G,this.url)}readEditingInfo(M,G){({editingInfo:M}=G);return M?{lastEditDate:null!=M.lastEditDate?new Date(M.lastEditDate):null}:null}get effectiveCapabilities(){var M=this.capabilities;if(!M)return null;M=h.clone(M);const {operations:G,editing:E}=M;if(w.supportsQueryOnly(this))return this.userHasUpdateItemPrivileges&&
(G.supportsQuery=!0),M;if(this.userHasUpdateItemPrivileges)return G.supportsAdd=G.supportsDelete=G.supportsEditing=G.supportsQuery=G.supportsUpdate=E.supportsDeleteByOthers=E.supportsGeometryUpdate=E.supportsUpdateByOthers=!0,M;this.userHasFullEditingPrivileges&&G.supportsEditing&&(G.supportsAdd=G.supportsDelete=G.supportsUpdate=E.supportsGeometryUpdate=!0);return M}readGlobalIdFieldFromService(M,G){return w.readGlobalIdField(G)}get hasFullEditingRestrictions(){const M=this.capabilities;if(!M||w.supportsQueryOnly(this))return!1;
const {operations:G,editing:E}=M;return G.supportsEditing&&!(G.supportsAdd&&G.supportsDelete&&G.supportsUpdate&&E.supportsGeometryUpdate)}get hasUpdateItemRestrictions(){const M=this.capabilities;if(!M)return!1;const {operations:G,editing:E}=M;return w.supportsQueryOnly(this)?!G.supportsQuery:!(G.supportsAdd&&G.supportsDelete&&G.supportsEditing&&G.supportsQuery&&G.supportsUpdate&&E.supportsDeleteByOthers&&E.supportsGeometryUpdate&&E.supportsUpdateByOthers)}readIsTableFromService(M,G){return"Table"===
G.type}readMaxScale(M,G){return G.effectiveMaxScale||M||0}readMinScale(M,G){return G.effectiveMinScale||M||0}readObjectIdFieldFromService(M,G){return w.readObjectIdField(G)}readServiceDefinitionExpression(M,G){return G.definitionQuery||G.definitionExpression}set url(M){null==M?this._set("url",M):(M=q.sanitizeUrlWithLayerId({layer:this,url:M,nonStandardUrlAllowed:!0,logger:d.getLogger(this)}),this._set("url",M.url),null!=M.layerId&&this._set("layerId",M.layerId))}writeUrl(M,G,E,F){q.writeUrlWithLayerId(this,
M,null,G,F)}readVersion(M,G){return w.readVersion(G)}};b.__decorate([n.property({readOnly:!0})],L.prototype,"authenticationTriggerEvent",null);b.__decorate([n.property({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],L.prototype,"copyright",void 0);b.__decorate([n.property({readOnly:!0,json:{read:!1,origins:{service:{read:{source:"advancedQueryCapabilities allowGeometryUpdates allowUpdateWithoutMValues archivingInfo capabilities datesInUnknownTimezone hasAttachments hasM hasZ isDataBranchVersioned isDataVersioned maxRecordCount maxRecordCountFactor ownershipBasedAccessControlForFeatures standardMaxRecordCount supportedQueryFormats supportsAdvancedQueries supportsApplyEditsWithGlobalIds supportsAttachmentsByUploadId supportsAttachmentsResizing supportsCalculate supportsCoordinatesQuantization supportsExceedsLimitStatistics supportsFieldDescriptionProperty supportsQuantizationEditMode supportsRollbackOnFailureParameter supportsStatistics supportsTruncate supportsValidateSql tileMaxRecordCount useStandardizedQueries".split(" ")}}}}})],
L.prototype,"capabilities",void 0);b.__decorate([e.reader("service","capabilities")],L.prototype,"readCapabilitiesFromService",null);b.__decorate([n.property(C.timeZoneProperty("dateFieldsTimeReference"))],L.prototype,"dateFieldsTimeZone",void 0);b.__decorate([n.property({type:Boolean})],L.prototype,"datesInUnknownTimezone",void 0);b.__decorate([n.property({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],L.prototype,
"definitionExpression",void 0);b.__decorate([n.property({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],L.prototype,"displayField",void 0);b.__decorate([n.property({readOnly:!0,type:A})],L.prototype,"editFieldsInfo",void 0);b.__decorate([n.property({readOnly:!0})],L.prototype,"editingInfo",void 0);b.__decorate([e.reader("editingInfo")],L.prototype,"readEditingInfo",null);b.__decorate([n.property({readOnly:!0})],L.prototype,"effectiveCapabilities",null);b.__decorate([n.property((()=>
{const M=h.clone(x.elevationInfo),G=M.json.origins;G["web-map"]={read:!1,write:!1};G["portal-item"]={read:!1,write:!1};return M})())],L.prototype,"elevationInfo",void 0);b.__decorate([n.property({type:k,json:{name:"layerDefinition.floorInfo",write:!0,origins:{"web-scene":{name:"layerDefinition.floorInfo",write:{enabled:!0,layerContainerTypes:p.excludeTables}}}}})],L.prototype,"floorInfo",void 0);b.__decorate([n.property({type:r,json:{origins:{service:{read:{source:"extent"}}}}})],L.prototype,"fullExtent",
void 0);b.__decorate([n.property()],L.prototype,"gdbVersion",void 0);b.__decorate([n.property({readOnly:!0,type:z,json:{read:{source:"geometryProperties"}}})],L.prototype,"geometryFieldsInfo",void 0);b.__decorate([n.property({type:"point polygon polyline multipoint multipatch mesh".split(" "),json:{origins:{service:{read:w.geometryTypeKebabDict.read}}}})],L.prototype,"geometryType",void 0);b.__decorate([n.property({type:String})],L.prototype,"globalIdField",void 0);b.__decorate([e.reader("service",
"globalIdField",["globalIdField","fields"])],L.prototype,"readGlobalIdFieldFromService",null);b.__decorate([n.property({readOnly:!0})],L.prototype,"hasFullEditingRestrictions",null);b.__decorate([n.property({type:Boolean,json:{origins:{service:{read:!0}}}})],L.prototype,"hasM",void 0);b.__decorate([n.property({readOnly:!0})],L.prototype,"hasUpdateItemRestrictions",null);b.__decorate([n.property({type:Boolean,json:{origins:{service:{read:!0}}}})],L.prototype,"hasZ",void 0);b.__decorate([n.property({readOnly:!0,
type:t})],L.prototype,"heightModelInfo",void 0);b.__decorate([n.property({type:Date})],L.prototype,"historicMoment",void 0);b.__decorate([n.property({type:c.ofType(u.FeatureIndex),readOnly:!0})],L.prototype,"indexes",void 0);b.__decorate([n.property({readOnly:!0})],L.prototype,"isTable",void 0);b.__decorate([e.reader("service","isTable",["type"])],L.prototype,"readIsTableFromService",null);b.__decorate([n.property({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},
read:!1}})],L.prototype,"layerId",void 0);b.__decorate([n.property(x.maxScale)],L.prototype,"maxScale",void 0);b.__decorate([e.reader("service","maxScale",["maxScale","effectiveMaxScale"])],L.prototype,"readMaxScale",null);b.__decorate([n.property(x.minScale)],L.prototype,"minScale",void 0);b.__decorate([e.reader("service","minScale",["minScale","effectiveMinScale"])],L.prototype,"readMinScale",null);b.__decorate([n.property({type:String})],L.prototype,"objectIdField",void 0);b.__decorate([e.reader("service",
"objectIdField",["objectIdField","fields"])],L.prototype,"readObjectIdFieldFromService",null);b.__decorate([n.property(C.timeZoneProperty("preferredTimeReference"))],L.prototype,"preferredTimeZone",void 0);b.__decorate([n.property({type:[v],readOnly:!0})],L.prototype,"relationships",void 0);b.__decorate([n.property({type:Boolean})],L.prototype,"returnM",void 0);b.__decorate([n.property({type:Boolean})],L.prototype,"returnZ",void 0);b.__decorate([n.property({readOnly:!0,json:{write:!1}})],L.prototype,
"serverGens",void 0);b.__decorate([n.property({readOnly:!0})],L.prototype,"serviceDefinitionExpression",void 0);b.__decorate([e.reader("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],L.prototype,"readServiceDefinitionExpression",null);b.__decorate([n.property({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],L.prototype,"serviceItemId",void 0);b.__decorate([n.property()],L.prototype,"sourceJSON",void 0);b.__decorate([n.property({type:l,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],
L.prototype,"spatialReference",void 0);b.__decorate([n.property({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],L.prototype,"subtypeField",void 0);b.__decorate([n.property({type:[B],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],L.prototype,"subtypes",void 0);b.__decorate([n.property({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],L.prototype,"trackIdField",void 0);b.__decorate([n.property(x.url)],L.prototype,"url",null);b.__decorate([f.writer("url")],L.prototype,
"writeUrl",null);b.__decorate([n.property({json:{origins:{service:{read:!0}},read:!1}})],L.prototype,"version",void 0);b.__decorate([e.reader("service","version","currentVersion capabilities drawingInfo hasAttachments htmlPopupType relationships timeInfo typeIdField types".split(" "))],L.prototype,"readVersion",null);return L=b.__decorate([g.subclass("esri.layers.mixins.FeatureLayerBase")],L)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/geometry/HeightModelInfo":function(){define("../chunks/tslib.es6 ../core/arrayUtils ../core/jsonMap ../core/JSONSupport ../core/unitUtils ../core/Warning ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r){function t(A,u){return new n("height-unit:unsupported",`Height unit of value '${A}' is not supported`,u)}var l;const q=c.strict()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"});e=q.jsonValues.slice();b.removeUnordered(e,"orthometric");const x=c.strict()({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"});b=l=class extends h.JSONSupport{constructor(A){super(A);this.heightModel="gravity-related-height";this.heightUnit="meters";this.vertCRS=null}writeHeightModel(A,u,w){return q.write(A,
u,w)}readHeightModel(A,u,w){if(u=q.read(A))return u;if(w?.messages){u=w.messages;var z=u.push;A=new n("height-model:unsupported",`Height model of value '${A}' is not supported`,{context:w});z.call(u,A)}return null}readHeightUnit(A,u,w){if(u=x.read(A))return u;w?.messages&&w.messages.push(t(A,{context:w}));return null}readHeightUnitService(A,u,w){if(u=d.unitFromRESTJSON(A)||x.read(A))return u;w?.messages&&w.messages.push(t(A,{context:w}));return null}readVertCRS(A,u){return u.vertCRS||u.ellipsoid||
u.geoid}clone(){return new l({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(A){return A?this===A?!0:this.heightModel===A.heightModel&&this.heightUnit===A.heightUnit&&this.vertCRS===A.vertCRS:!1}static deriveUnitFromSR(A,u){u=d.getVerticalUnitStringForSR(u);return new l({heightModel:A.heightModel,heightUnit:u??void 0,vertCRS:A.vertCRS})}write(A,u){u={origin:"web-scene",...u};return super.write(A,u)}static fromJSON(A){if(!A)return null;const u=new l;u.read(A,
{origin:"web-scene"});return u}};a.__decorate([m.property({type:q.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:e,default:"ellipsoidal"}}}})],b.prototype,"heightModel",void 0);a.__decorate([r.writer("web-scene","heightModel")],b.prototype,"writeHeightModel",null);a.__decorate([f.reader(["web-scene","service"],"heightModel")],b.prototype,"readHeightModel",null);a.__decorate([m.property({type:x.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:x.jsonValues,write:x.write}}}})],
b.prototype,"heightUnit",void 0);a.__decorate([f.reader("web-scene","heightUnit")],b.prototype,"readHeightUnit",null);a.__decorate([f.reader("service","heightUnit")],b.prototype,"readHeightUnitService",null);a.__decorate([m.property({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],b.prototype,"vertCRS",void 0);a.__decorate([f.reader("service","vertCRS",["vertCRS","ellipsoid","geoid"])],b.prototype,"readVertCRS",null);return b=l=a.__decorate([p.subclass("esri.geometry.HeightModelInfo")],
b)})},"esri/layers/support/EditFieldsInfo":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../time/timeZoneUtils".split(" "),function(a,b,c,h,d,n,m,e,g){b=class extends b.ClonableMixin(c.JSONSupport){constructor(f){super(f);this.timeZone=this.realm=this.editDateField=this.editorField=this.creationDateField=this.creatorField=
null}};a.__decorate([h.property()],b.prototype,"creatorField",void 0);a.__decorate([h.property()],b.prototype,"creationDateField",void 0);a.__decorate([h.property()],b.prototype,"editorField",void 0);a.__decorate([h.property()],b.prototype,"editDateField",void 0);a.__decorate([h.property()],b.prototype,"realm",void 0);a.__decorate([h.property(g.timeZoneProperty("dateFieldsTimeReference",!0))],b.prototype,"timeZone",void 0);return b=a.__decorate([e.subclass("esri.layers.support.EditFieldsInfo")],b)})},
"esri/layers/support/FeatureIndex":function(){define("exports ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m,e,g){a.FeatureIndex=class extends c.ClonableMixin(h.JSONSupport){constructor(f){super(f)}};b.__decorate([d.property({constructOnly:!0,json:{write:!0}})],a.FeatureIndex.prototype,"name",void 0);
b.__decorate([d.property({constructOnly:!0,json:{write:!0}})],a.FeatureIndex.prototype,"fields",void 0);b.__decorate([d.property({constructOnly:!0,json:{write:!0}})],a.FeatureIndex.prototype,"isAscending",void 0);b.__decorate([d.property({constructOnly:!0,json:{write:!0}})],a.FeatureIndex.prototype,"indexType",void 0);b.__decorate([d.property({constructOnly:!0,json:{write:!0}})],a.FeatureIndex.prototype,"isUnique",void 0);b.__decorate([d.property({constructOnly:!0,json:{write:!0}})],a.FeatureIndex.prototype,
"description",void 0);a.FeatureIndex=b.__decorate([g.subclass("esri.layers.support.FeatureIndex")],a.FeatureIndex);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/featureLayerUtils":function(){define("require exports ../../kernel ../../symbols ../../core/asyncUtils ../../core/Error ../../core/jsonMap ../../core/sql ../../core/uuid ../../core/accessorSupport/extensions/serializableProperty/reader ./CodedValue ./CodedValueDomain ./featureQueryAll ./fieldUtils ./layerUtils ../../renderers/SimpleRenderer ../../renderers/UniqueValueRenderer ../../rest/support/AttachmentQuery ../../rest/support/Query ../../rest/support/RelationshipQuery".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u,w,z){function k(E,F,H){const {attributes:R}=F,{objectIdField:J}=E;return E.capabilities?.data?.supportsAttachment?F?R?J&&R[J]?Promise.resolve():Promise.reject(new n(H,`feature is missing the identifying attribute ${J}`)):Promise.reject(new n(H,"'attributes' are required on a feature to query attachments")):Promise.reject(new n(H,"A feature is required to add/delete/update attachments")):Promise.reject(new n(H,"this layer doesn't support attachments"))}
function v(E,F){return F?l.isStringField({type:F})&&"number"===typeof E?`${E}`:l.isIntegerField({type:F})&&"string"===typeof E?Number.parseInt(E,10):E:E}async function y(E){return(await E.load()).source}async function B(E,F){if(c.id&&!c.id.findCredential(E)){var H;try{const R=await q.getOwningPortalUrl(E,F);R&&(H=await c.id.checkSignInStatus(`${R}/sharing`))}catch(R){}if(H)try{await c.id.getCredential(E,{signal:null!=F?F.signal:null})}catch(R){}}}async function C(E,F,H){if(null==F)return null;const R=
[],{objectIdField:J}=E;F.forEach(K=>{let Q=null;"attributes"in K?({attributes:K}=K,Q={globalId:K[H],objectId:null!=K[J]&&-1!==K[J]?K[J]:null}):Q={globalId:K.globalId,objectId:null!=K.objectId&&-1!==K.objectId?K.objectId:null};null!=Q.globalId&&(null!=Q.objectId&&-1!==Q.objectId||R.push(Q.globalId))});if(0===R.length)return null;F=E.createQuery();F.where=R.map(K=>`${H}='${K}'`).join(" OR ");F.returnGeometry=!1;F.outFields=[J,H];F.cacheHint=!1;F=await d.resultOrAbort(t.queryAllJSON(E,F));if(!F.ok)return null;
E=new Map;F=F.value.features;for(const K of F){F=K.attributes[H];const Q=K.attributes[J];null!=F&&null!=Q&&-1!==Q&&E.set(g.normalizeGlobalID(F),Q)}return E}function L(E){return E.sourceJSON?.isMultiServicesView||M(E)}function M(E){return!!E.sourceJSON?.capabilities?.toLowerCase().split(",").map(F=>F.trim()).includes("map")}m=new m.JSONMap({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});
const G=f.createTypeReader({types:h.symbolTypesRenderer});b.addAttachment=async function(E,F,H,R){const J=await y(E);await k(E,F,R);if(!J.addAttachment)throw new n(R,"Layer source does not support addAttachment capability");return J.addAttachment(F,H)};b.applyEdits=async function(E,F,H){const {applyEdits:R}=await new Promise((K,Q)=>a(["../graphics/editingSupport"],K,Q));E=await E.load();let J=H;"feature"===E.type&&E.infoFor3D&&null!=F.deleteFeatures&&null!=E.globalIdField&&(J={...J,globalIdToObjectId:await C(E,
F.deleteFeatures,E.globalIdField)});return R(E,E.source,F,H)};b.computeDomainFromSubtypes=function(E,F){const {fieldsIndex:H,subtypeField:R}=E,{name:J,type:K}=H.get(F)??{};return J?(R&&H.get(R)?.name)===J&&E.subtypes?.length&&(E=E.subtypes.map(Q=>new p.CodedValue({code:v(Q.code,K),name:Q.name})),E?.length)?new r({codedValues:E}):null:null};b.computeDomainFromTypes=function(E,F){const {fieldsIndex:H}=E,{name:R,type:J}=H.get(F)??{};return R?("typeIdField"in E?H.get(E.typeIdField)?.name:null)===R&&"types"in
E&&E.types?.length?(E=E.types.map(K=>new p.CodedValue({code:v(K.id,J),name:K.name})),new r({codedValues:E})):null:null};b.computeEffectiveEditingEnabled=function(E){return L(E)?!1:E.userHasUpdateItemPrivileges||E.editingEnabled};b.createDefaultRenderer=function(E,F){if(E.defaultSymbol)return E.types?.length?new A({defaultSymbol:G(E.defaultSymbol,E,F),field:E.typeIdField,uniqueValueInfos:E.types.map(H=>({id:H.id,symbol:G(H.symbol,H,F)}))}):new x({symbol:G(E.defaultSymbol,E,F)})};b.createQuery=function(E){const F=
new w,H=E.capabilities?.data,R=E.capabilities?.query;F.historicMoment=E.historicMoment;F.gdbVersion=E.gdbVersion;F.returnGeometry=!0;R&&(F.compactGeometryEnabled=R.supportsCompactGeometry,F.defaultSpatialReferenceEnabled=R.supportsDefaultSpatialReference);H&&(H.supportsZ&&null!=E.returnZ&&(F.returnZ=E.returnZ),H.supportsM&&null!=E.returnM&&(F.returnM=E.returnM));F.outFields=["*"];const {timeOffset:J,timeExtent:K}=E;F.timeExtent=null!=J&&null!=K?K.offset(-J.value,J.unit):K||null;F.multipatchOption=
"multipatch"===E.geometryType?"xyFootprint":null;return F};b.deleteAttachments=async function(E,F,H,R){const J=await y(E);await k(E,F,R);if(!J.deleteAttachments)throw new n(R,"Layer source does not support deleteAttachments capability");return J.deleteAttachments(F,H)};b.ensureCredentialIfSignedIn=B;b.ensureLayerCredential=async function(E,F,H){const R=E.parsedUrl?.path;R&&E.authenticationTriggerEvent===F&&await B(R,H)};b.fetchRecomputedExtents=async function(E,F,H){E=(await E.load({signal:F?.signal})).source;
if(!E.fetchRecomputedExtents)throw new n(H,"Layer source does not support fetchUpdates capability");return E.fetchRecomputedExtents(F)};b.geometryTypeKebabDict=m;b.getFeatureSubtype=function(E,F){const {subtypes:H,subtypeField:R}=E;if(!F?.attributes||!H?.length||!R)return null;const J=F.attributes[R];return null==J?null:H.find(K=>K.code===J)};b.getFeatureType=function(E,F,H){if(!F||!H||!E)return null;const R=H.getAttribute(F);return null==R?null:E.find(J=>{({id:J}=J);return null!=J&&J.toString()===
R.toString()})??null};b.getGlobalIdToObjectIdMap=C;b.hasDataChanged=async function(E){const F=E.source;if(F?.refresh)try{const {dataChanged:H,updates:R}=await F.refresh();null!=R&&(E.sourceJSON={...E.sourceJSON,...R},E.read(R,{origin:"service",url:E.parsedUrl}));if(H)return!0}catch{}if(E.definitionExpression)try{return(await e.parseWhereClause(E.definitionExpression,E.fieldsIndex)).hasDateFunctions}catch{}return!1};b.isLayerCacheStale=function(E){let F=E.sourceJSON?.cacheMaxAge;if(!F)return!1;E=E.editingInfo?.lastEditDate?.getTime();
if(null==E)return!0;F*=1E3;return Date.now()-Ea(["../graphics/editingSupport"],J,K));E=await E.load();return R(E,E.source,F,H)};b.validateBinsQuery=function(E,F,H){F=F?.queryBins;if(!F)throw new n(H,"Layer source does not support binning");switch(E.binParameters.type){case "auto-interval":if(!F.supportsAutoInterval)throw new n(H,
"Layer source does not support auto-interval binning");break;case "date":if(!F.supportsDate)throw new n(H,"Layer source does not support date binning");break;case "fixed-boundaries":if(!F.supportsFixedBoundaries)throw new n(H,"Layer source does not support fixed-boundaries binning");break;case "fixed-interval":if(!F.supportsFixedInterval)throw new n(H,"Layer source does not support fixed-interval binning");}F=F?.supportedStatistics;if(E.outStatistics&&F){const R=new Map([["count","count"],["sum",
"sum"],["min","min"],["max","max"],["avg","avg"],["stddev","stddev"],["var","var"],["percentile-continuous","percentileContinuous"],["percentile-discrete","percentileDiscrete"],["centroid-aggregate","centroid"],["convex-hull-aggregate","convexHull"],["envelope-aggregate","envelope"]]);for(const {statisticType:J}of E.outStatistics)if((E=R.get(J))&&!F[E])throw new n(H,`Layer source does not support ${J} statistic type`);}};Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/featureQueryAll":function(){define(["exports",
"../../rest/support/Query"],function(a,b){function c(n){return d(n)*h(n)}function h(n){return n.capabilities.query.maxRecordCount||2E3}function d(n){return n.capabilities.query.supportsMaxRecordCountFactor?b.MAX_MAX_RECORD_COUNT_FACTOR:1}a.getMaxRecordCountFactor=d;a.getMaximumQuerySize=c;a.getMaximumRecordCount=h;a.queryAllJSON=async function(n,m,e){m=m.clone();n.capabilities.query.supportsMaxRecordCountFactor&&(m.maxRecordCountFactor=d(n));const g=c(n),f=n.capabilities.query.supportsPagination;
m.start=0;m.num=g;let p=null;for(;;){const r=await n.source.queryFeaturesJSON(m,e);null==p?p=r:p.features=p.features.concat(r.features);p.exceededTransferLimit=r.exceededTransferLimit;if(!f||!r.exceededTransferLimit)break;m.start+=g}return p};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/rest/support/AttachmentQuery":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer".split(" "),
function(a,b,c,h,d,n,m){var e;b=e=class extends b.JSONSupport{constructor(g){super(g);this.attachmentsWhere=this.attachmentTypes=null;this.cacheHint=void 0;this.objectIds=this.num=this.name=this.globalIds=this.keywords=null;this.returnMetadata=!1;this.where=this.start=this.size=null}writeStart(g,f){f.resultOffset=this.start;f.resultRecordCount=this.num||10}clone(){return new e(c.clone({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,
where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};a.__decorate([h.property({type:[String],json:{write:!0}})],b.prototype,"attachmentTypes",void 0);a.__decorate([h.property({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],b.prototype,"attachmentsWhere",void 0);a.__decorate([h.property({type:Boolean,json:{write:!0}})],
b.prototype,"cacheHint",void 0);a.__decorate([h.property({type:[String],json:{write:!0}})],b.prototype,"keywords",void 0);a.__decorate([h.property({type:[String],json:{write:!0}})],b.prototype,"globalIds",void 0);a.__decorate([h.property({json:{write:!0}})],b.prototype,"name",void 0);a.__decorate([h.property({type:Number,json:{read:{source:"resultRecordCount"}}})],b.prototype,"num",void 0);a.__decorate([h.property({type:[Number],json:{write:!0}})],b.prototype,"objectIds",void 0);a.__decorate([h.property({type:Boolean,
json:{default:!1,write:!0}})],b.prototype,"returnMetadata",void 0);a.__decorate([h.property({type:[Number],json:{write:!0}})],b.prototype,"size",void 0);a.__decorate([h.property({type:Number,json:{read:{source:"resultOffset"}}})],b.prototype,"start",void 0);a.__decorate([m.writer("start"),m.writer("num")],b.prototype,"writeStart",null);a.__decorate([h.property({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],b.prototype,"where",void 0);b=e=a.__decorate([n.subclass("esri.rest.support.AttachmentQuery")],
b);b.from=d.ensureType(b);return b})},"esri/rest/support/RelationshipQuery":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../layers/support/source/DataLayerSource ../../geometry/SpatialReference".split(" "),function(a,b,c,h,d,n,m,e,g,f){var p;b=p=class extends c.JSONSupport{constructor(r){super(r);
this.dynamicDataSource=this.cacheHint=void 0;this.gdbVersion=null;this.geometryPrecision=void 0;this.historicMoment=null;this.maxAllowableOffset=void 0;this.outSpatialReference=this.outFields=this.orderByFields=this.objectIds=null;this.num=this.start=this.relationshipId=void 0;this.returnGeometry=!1;this.returnZ=this.returnM=void 0;this.where=null}_writeHistoricMoment(r,t){t.historicMoment=r&&r.getTime()}writeStart(r,t){t.resultOffset=this.start;t.resultRecordCount=this.num||10;0h.areaUnitsJSONMap.read(f)||h.lengthUnitsJSONMap.read(f)}})],b.prototype,"units",void 0);return b=a.__decorate([g.subclass("esri.layers.support.GeometryFieldsInfo")],b)})},"esri/layers/support/LayerFloorInfo":function(){define("../../chunks/tslib.es6 ../../core/Collection ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e){var g;c=g=class extends c.JSONSupport{constructor(f){super(f);this.floorField=null;this.viewAllMode=!1;this.viewAllLevelIds=new b}clone(){return new g({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};a.__decorate([h.property({type:String,json:{write:!0}})],c.prototype,"floorField",void 0);a.__decorate([h.property({json:{read:!1,write:!1}})],c.prototype,"viewAllMode",void 0);a.__decorate([h.property({json:{read:!1,write:!1}})],
c.prototype,"viewAllLevelIds",void 0);return c=g=a.__decorate([e.subclass("esri.layers.support.LayerFloorInfo")],c)})},"esri/layers/support/Relationship":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m,e,g){n=new c.JSONMap({esriRelCardinalityOneToOne:"one-to-one",
esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"});c=new c.JSONMap({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});b=class extends b.ClonableMixin(h.JSONSupport){constructor(f){super(f);this.role=this.relationshipTableId=this.relatedTableId=this.name=this.keyFieldInRelationshipTable=this.keyField=this.id=this.composite=this.cardinality=null}};a.__decorate([d.property({json:{read:n.read,write:n.write}})],b.prototype,"cardinality",void 0);a.__decorate([d.property({json:{read:!0,
write:!0}})],b.prototype,"composite",void 0);a.__decorate([d.property({json:{read:!0,write:!0}})],b.prototype,"id",void 0);a.__decorate([d.property({json:{read:!0,write:!0}})],b.prototype,"keyField",void 0);a.__decorate([d.property({json:{read:!0,write:!0}})],b.prototype,"keyFieldInRelationshipTable",void 0);a.__decorate([d.property({json:{read:!0,write:!0}})],b.prototype,"name",void 0);a.__decorate([d.property({json:{read:!0,write:!0}})],b.prototype,"relatedTableId",void 0);a.__decorate([d.property({json:{read:!0,
write:!0}})],b.prototype,"relationshipTableId",void 0);a.__decorate([d.property({json:{read:c.read,write:c.write}})],b.prototype,"role",void 0);return b=a.__decorate([g.subclass("esri.layers.support.Relationship")],b)})},"esri/layers/support/serviceCapabilitiesUtils":function(){define(["exports","../../core/has","./arcgisLayerUrl","../../rest/support/jsonUtils"],function(a,b,c,h){function d(r){r=r?.supportedSpatialAggregationStatistics?.map(t=>t.toLowerCase());return{envelope:!!r?.includes("envelopeaggregate"),
centroid:!!r?.includes("centroidaggregate"),convexHull:!!r?.includes("convexhullaggregate")}}function n(r,t){return!!r?.supportedOperationsWithCacheHint?.map(l=>l.toLowerCase())?.includes(t.toLowerCase())}function m(r){r=r?.supportedStatisticTypes?.map(t=>t.toLowerCase());return{count:!!r?.includes("count"),sum:!!r?.includes("sum"),min:!!r?.includes("min"),max:!!r?.includes("max"),avg:!!r?.includes("avg"),var:!!r?.includes("var"),stddev:!!r?.includes("stddev"),percentileContinuous:!!r?.includes("percentile_continuous"),
percentileDiscrete:!!r?.includes("percentile_discrete"),envelope:!!r?.includes("envelopeaggregate"),centroid:!!r?.includes("centroidaggregate"),convexHull:!!r?.includes("convexhullaggregate")}}function e(r){const t=r.attachmentProperties,l={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:n(r.advancedQueryCapabilities,"queryAttachments"),supportsResize:h.readBoolean(r,"supportsAttachmentsResizing",!1)};t&&Array.isArray(t)&&t.forEach(q=>
{const x=p[q.name];x&&(l[x]=!!q.isEnabled)});return l}function g(r,t,l){r=r?r.toLowerCase().split(",").map(k=>k.trim()):[];l=l?c.parse(l):null;l=r.includes(null!=l&&"MapServer"===l.serverType?"data":"query");const q=r.includes("editing")&&!t.datesInUnknownTimezone;let x=q&&r.includes("create"),A=q&&r.includes("delete"),u=q&&r.includes("update");const w=r.includes("changetracking"),z=t.advancedQueryCapabilities;!q||x||A||u||(x=A=u=!0);return{supportsCalculate:h.readBoolean(t,"supportsCalculate",!1),
supportsTruncate:h.readBoolean(t,"supportsTruncate",!1),supportsValidateSql:h.readBoolean(t,"supportsValidateSql",!1),supportsAdd:x,supportsDelete:A,supportsEditing:q,supportsChangeTracking:w,supportsQuery:l,supportsQueryAnalytics:h.readBoolean(z,"supportsQueryAnalytic",!1),supportsQueryAttachments:h.readBoolean(z,"supportsQueryAttachments",!1),supportsQueryBins:h.readBoolean(z,"supportsQueryBins",!1),supportsQueryTopFeatures:h.readBoolean(z,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:h.readBoolean(t,
"supportsAttachmentsResizing",!1),supportsSync:r.includes("sync"),supportsUpdate:u,supportsExceedsLimitStatistics:h.readBoolean(t,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:h.readBoolean(t,"supportsAsyncConvert3D",!1)}}function f(r,t){const l=r.advancedQueryCapabilities,q=r.ownershipBasedAccessControlForFeatures,x=r.archivingInfo;var A=r.currentVersion;A=!t?.includes("MapServer")||A>=b("mapserver-pbf-version-support");t=c.isHostedAgolService(t);const u=new Set((r.supportedQueryFormats??
"").split(",").map(w=>w.toLowerCase().trim()));return{maxRecordCount:h.readNumber(r,"maxRecordCount",void 0),maxRecordCountFactor:h.readNumber(r,"maxRecordCountFactor",void 0),standardMaxRecordCount:h.readNumber(r,"standardMaxRecordCount",void 0),supportedSpatialAggregationStatistics:d(l),supportsCacheHint:h.readBoolean(l,"supportsQueryWithCacheHint",!1)||n(l,"query"),supportsCentroid:h.readBoolean(l,"supportsReturningGeometryCentroid",!1),supportsCompactGeometry:t,supportsDefaultSpatialReference:h.readBoolean(l,
"supportsDefaultSR",!1),supportsDisjointSpatialRelationship:h.readBoolean(l,"supportsDisjointSpatialRel",!1),supportsDistance:h.readBoolean(l,"supportsQueryWithDistance",!1),supportsDistinct:h.readBoolean(l,"supportsDistinct",r.supportsAdvancedQueries),supportsExtent:h.readBoolean(l,"supportsReturningQueryExtent",!1),supportsFormatPBF:A&&u.has("pbf"),supportsFullTextSearch:h.readBoolean(l,"supportsFullTextSearch",!1),supportsGeometryProperties:h.readBoolean(l,"supportsReturningGeometryProperties",
!1),supportsHavingClause:h.readBoolean(l,"supportsHavingClause",!1),supportsHistoricMoment:h.readBoolean(x,"supportsQueryWithHistoricMoment",!1),supportsMaxRecordCountFactor:h.readBoolean(l,"supportsMaxRecordCountFactor",!1),supportsOrderBy:h.readBoolean(l,"supportsOrderBy",r.supportsAdvancedQueries),supportsPagination:h.readBoolean(l,"supportsPagination",!1),supportsPercentileStatistics:h.readBoolean(l,"supportsPercentileStatistics",!1),supportsQuantization:h.readBoolean(r,"supportsCoordinatesQuantization",
!1),supportsQuantizationEditMode:h.readBoolean(r,"supportsQuantizationEditMode",!1),supportsQueryByAnonymous:h.readBoolean(q,"allowAnonymousToQuery",!0),supportsQueryByOthers:h.readBoolean(q,"allowOthersToQuery",!0),supportsQueryGeometry:h.readBoolean(r,"supportsReturningQueryGeometry",!1),supportsResultType:h.readBoolean(l,"supportsQueryWithResultType",!1),supportsSpatialAggregationStatistics:h.readBoolean(l,"supportsSpatialAggregationStatistics",!1),supportsSqlExpression:h.readBoolean(l,"supportsSqlExpression",
!1),supportsStandardizedQueriesOnly:h.readBoolean(r,"useStandardizedQueries",!1),supportsStatistics:h.readBoolean(l,"supportsStatistics",r.supportsStatistics),supportsTopFeaturesQuery:h.readBoolean(l,"supportsTopFeaturesQuery",!1),tileMaxRecordCount:h.readNumber(r,"tileMaxRecordCount",void 0)}}const p={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};a.getFeatureLayerCapabilities=function(r,t){var l={supportsCacheHint:n(r.advancedQueryCapabilities,
"queryAnalytics")},q=e(r);var x={isVersioned:h.readBoolean(r,"isDataVersioned",!1),isBranchVersioned:h.readBoolean(r,"isDataBranchVersioned",!1),supportsAttachment:h.readBoolean(r,"hasAttachments",!1),supportsM:h.readBoolean(r,"hasM",!1),supportsZ:h.readBoolean(r,"hasZ",!1)};var A={supportsAdvancedFieldProperties:h.readBoolean(r,"supportsFieldDescriptionProperty",!1)},u=g(r.capabilities,r,t);t=f(r,t);var w=r?r.queryBinsCapabilities:void 0;w={supportsDate:h.readBoolean(w,"supportsDateBin",!1),supportsFixedInterval:h.readBoolean(w,
"supportsFixedIntervalBin",!1),supportsAutoInterval:h.readBoolean(w,"supportsAutoIntervalBin",!1),supportsFixedBoundaries:h.readBoolean(w,"supportsFixedBoundariesBin",!1),supportedStatistics:m(w)};var z=r.advancedQueryCapabilities;var k=h.readBoolean(z,"supportsAdvancedQueryRelated",!1);z={supportsPagination:h.readBoolean(z,"supportsQueryRelatedPagination",!1),supportsCount:k,supportsOrderBy:k,supportsCacheHint:n(z,"queryRelated")};k={supportsCacheHint:n(r.advancedQueryCapabilities,"queryTopFilter")};
const v=r.ownershipBasedAccessControlForFeatures,y=r?r.advancedEditingCapabilities:void 0;r={supportsGeometryUpdate:h.readBoolean(r,"allowGeometryUpdates",!0),supportsGlobalId:h.readBoolean(r,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:h.readBoolean(r,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:h.readBoolean(r,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:h.readBoolean(r,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:h.readBoolean(r,
"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:h.readBoolean(v,"allowAnonymousToDelete",!0),supportsDeleteByOthers:h.readBoolean(v,"allowOthersToDelete",!0),supportsUpdateByAnonymous:h.readBoolean(v,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:h.readBoolean(v,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:h.readBoolean(y,"supportsAsyncApplyEdits",!1),zDefault:h.readNumber(r,"zDefault",void 0)};return{analytics:l,attachment:q,data:x,metadata:A,operations:u,query:t,queryBins:w,
queryRelated:z,queryTopFeatures:k,editing:r}};a.getVideoLayerCapabilities=function(r){return{operations:{supportsAppend:h.readBoolean(r,"supportsAppend",!1),supportsCoverageQuery:r?.playbackInfo?.klv["0601"]??!1,supportsExportClip:h.readBoolean(r,"supportsExportClip",!1),supportsExportFrameset:h.readBoolean(r,"supportsExportFrameset",!1),supportsMensuration:h.readBoolean(r,"supportsMensuration",!1),supportsUpdate:h.readBoolean(r,"supportsUpdate",!1)}}};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},
"esri/rest/support/jsonUtils":function(){define(["exports"],function(a){function b(c,h,d){return c&&c.hasOwnProperty(h)?c[h]:d}a.readBoolean=function(c,h,d){return!!b(c,h,d)};a.readNumber=function(c,h,d){return b(c,h,d)};a.readValue=b;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/Subtype":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./domains".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p){b=class extends b.ClonableMixin(c.JSONSupport){constructor(r){super(r);this.code=null;this.defaultValues={};this.name=this.domains=null}readDomains(r){if(!r)return null;const t={};for(const l of Object.keys(r))t[l]=p.fromJSON(r[l]);return t}writeDomains(r,t){if(r){var l={};for(const q of Object.keys(r))r[q]&&(l[q]=r[q]?.toJSON());t.domains=l}}};a.__decorate([h.property({type:Number,json:{write:!0}})],b.prototype,"code",void 0);a.__decorate([h.property({type:Object,
json:{write:!0}})],b.prototype,"defaultValues",void 0);a.__decorate([h.property({json:{write:!0}})],b.prototype,"domains",void 0);a.__decorate([e.reader("domains")],b.prototype,"readDomains",null);a.__decorate([f.writer("domains")],b.prototype,"writeDomains",null);a.__decorate([h.property({type:String,json:{write:!0}})],b.prototype,"name",void 0);return b=a.__decorate([g.subclass("esri.layers.support.Subtype")],b)})},"esri/layers/mixins/FeatureReductionLayer":function(){define("exports ../../chunks/tslib.es6 ../../renderers/ClassBreaksRenderer ../../renderers/DictionaryRenderer ../../renderers/DotDensityRenderer ../../renderers/HeatmapRenderer ../../renderers/PieChartRenderer ../../renderers/Renderer ../../renderers/SimpleRenderer ../../renderers/UniqueValueRenderer ../../renderers/support/jsonUtils ../../core/Logger ../../core/reactiveUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../support/AggregateField ../support/featureReductionUtils ../../renderers/visualVariables/SizeVariable ../../renderers/visualVariables/support/SizeStop ../../views/2d/layers/support/clusterUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u,w,z,k,v){a.FeatureReductionLayer=y=>{y=class extends y{constructor(...B){super(...B);this.addHandles(t.watch(()=>this.renderer,()=>{if(this.featureReduction){const C=this._normalizeFeatureReduction(this.featureReduction);this._set("featureReduction",C)}},t.sync))}set featureReduction(B){B=this._normalizeFeatureReduction(B);this._set("featureReduction",B)}set renderer(B){}_withClusterVariable(B,C,L){B=B.clone();"visualVariables"in B&&(B.visualVariables||
(B.visualVariables=[]),B.visualVariables.some(M=>"size"===M.type)||B.visualVariables.push(new z({field:"cluster_count",stops:[new k({value:1}),new k({useMinValue:!0,size:C}),new k({useMaxValue:!0,size:L})]})));return B}_normalizeFeatureReduction(B){if("cluster"!==B?.type)return B;const C=B.clone();var L=[new u({name:"cluster_count",alias:"cluster_count",isAutoGenerated:!0,statisticType:"count"})];const M=(C.fields??[]).filter(H=>!H.isAutoGenerated);var G=B.renderer&&!B.renderer.authoringInfo?.isAutoGenerated;
const {clusterMinSize:E,clusterMaxSize:F}=C;if(G)return C.fields=[...L,...M],L=this._withClusterVariable(C.renderer,E,F),C.effectiveFeatureRenderer=L,C.effectiveClusterRenderer=L,C;if(B.symbol){C.fields=[...L,...M];C.renderer=null;if(!this.renderer)return C.effectiveFeatureRenderer=null,C.effectiveClusterRenderer=null,C;G=v.createInferredClusterRenderer(L,this.renderer);G=this._withClusterVariable(G,E,F);B=new g({symbol:B.symbol,visualVariables:"visualVariables"in G&&G.visualVariables?G.visualVariables:
[]});C.fields=[...L,...M];C.effectiveFeatureRenderer=G;C.effectiveClusterRenderer=B;return C}if(!this.renderer)return B;B=v.createInferredClusterRenderer(L,this.renderer);C.fields=[...L,...M];C.renderer=B;L=this._withClusterVariable(B,E,F);C.effectiveFeatureRenderer=L;C.effectiveClusterRenderer=L;return C}};b.__decorate([l.property(w.featureReductionProperty)],y.prototype,"featureReduction",null);return y=b.__decorate([A.subclass("esri.layers.mixins.FeatureReductionLayer")],y)};Object.defineProperty(a,
Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/AggregateField":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ./ExpressionInfo".split(" "),function(a,b,c,h,d,n,m,e){var g;b=g=class extends b.JSONSupport{constructor(f){super(f);this.isAutoGenerated=!1;this.statisticType=this.onStatisticExpression=this.onStatisticField=this.alias=
this.name=null}clone(){return new g({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:c.clone(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};a.__decorate([h.property({type:Boolean,json:{write:!0}})],b.prototype,"isAutoGenerated",void 0);a.__decorate([h.property({type:String,json:{write:!0}})],b.prototype,"name",void 0);a.__decorate([h.property({type:String,json:{write:!0}})],b.prototype,"alias",void 0);
a.__decorate([h.property({type:String,json:{write:!0}})],b.prototype,"onStatisticField",void 0);a.__decorate([h.property({type:e,json:{write:!0}})],b.prototype,"onStatisticExpression",void 0);a.__decorate([h.property({type:String,json:{write:!0}})],b.prototype,"statisticType",void 0);return b=g=a.__decorate([m.subclass("esri.layers.support.AggregateField")],b)})},"esri/layers/support/ExpressionInfo":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e){b=class extends b.ClonableMixin(c.JSONSupport){constructor(g){super(g);this.returnType=this.title=this.expression=null}};a.__decorate([h.property({type:String,json:{write:!0}})],b.prototype,"expression",void 0);a.__decorate([h.property({type:String,json:{write:!0}})],b.prototype,"title",void 0);a.__decorate([h.property({type:String,json:{write:!0}})],b.prototype,"returnType",void 0);return b=a.__decorate([e.subclass("esri.layers.support.ExpressionInfo")],b)})},"esri/layers/support/featureReductionUtils":function(){define("exports ../../core/accessorSupport/layerContainerType ./FeatureReduction ./FeatureReductionBinning ./FeatureReductionCluster ./FeatureReductionSelection".split(" "),
function(a,b,c,h,d,n){const m={key:"type",base:c.FeatureReduction,typeMap:{cluster:d,binning:h}};a.featureReductionProperty={types:{key:"type",base:c.FeatureReduction,typeMap:{selection:n,cluster:d,binning:h}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:m},"portal-item":{types:m},"web-scene":{types:{key:"type",base:c.FeatureReduction,typeMap:{selection:n}},name:"layerDefinition.featureReduction",write:{layerContainerTypes:b.excludeTables}}}}};Object.defineProperty(a,
Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/FeatureReduction":function(){define("exports ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m,e){a.FeatureReduction=class extends c.JSONSupport{constructor(){super(...arguments);this.type=null}};b.__decorate([h.property({type:["selection","cluster","binning"],
readOnly:!0,json:{read:!1,write:!0}})],a.FeatureReduction.prototype,"type",void 0);a.FeatureReduction=b.__decorate([e.subclass("esri.layers.support.FeatureReduction")],a.FeatureReduction);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/FeatureReductionBinning":function(){define("../../chunks/tslib.es6 ../../PopupTemplate ../../renderers/ClassBreaksRenderer ../../renderers/DictionaryRenderer ../../renderers/DotDensityRenderer ../../renderers/HeatmapRenderer ../../renderers/PieChartRenderer ../../renderers/Renderer ../../renderers/SimpleRenderer ../../renderers/UniqueValueRenderer ../../renderers/support/jsonUtils ../../renderers/support/types ../../core/lang ../../core/object ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./AggregateField ./commonProperties ./featureLayerUtils ./FeatureReduction ./LabelClass".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u,w,z,k,v,y,B,C,L){var M;c=M=class extends C.FeatureReduction{constructor(G){super(G);this.type="binning";this.binType="geohash";this.labelingInfo=this.fixedBinLevel=null;this.labelsVisible=!0;this.maxScale=0;this.popupEnabled=!0;this.popupTemplate=null;this.size=q.toPt("12px");this.fields=[];this.renderer=null}writeFields(G,E,F){G=G.filter(H=>"avg_angle"!==H.statisticType).map(H=>H.toJSON());l.setDeepValue(F,G,E)}readRenderer(G,E,F){return(G=E.drawingInfo?.renderer)?
p.read(G,E,F)??void 0:B.createDefaultRenderer(E,F)}clone(){return new M({fields:t.clone(this.fields),fixedBinLevel:this.fixedBinLevel,labelingInfo:t.clone(this.labelingInfo),labelsVisible:this.labelsVisible,maxScale:this.maxScale,popupEnabled:this.popupEnabled,popupTemplate:t.clone(this.popupTemplate),renderer:t.clone(this.renderer),binType:t.clone(this.binType),size:this.size})}};a.__decorate([u.enumeration({binning:"binning"})],c.prototype,"type",void 0);a.__decorate([u.enumeration({geohash:"geohash",
square:"square"}),x.property({type:["geohash","square"]})],c.prototype,"binType",void 0);a.__decorate([x.property({type:Number,json:{write:!0}})],c.prototype,"fixedBinLevel",void 0);a.__decorate([x.property({type:[L],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],c.prototype,"labelingInfo",void 0);a.__decorate([x.property(y.labelsVisible)],c.prototype,"labelsVisible",void 0);a.__decorate([x.property({type:Number,json:{default:0,name:"visibilityInfo.maxScale"}})],
c.prototype,"maxScale",void 0);a.__decorate([x.property(y.popupEnabled)],c.prototype,"popupEnabled",void 0);a.__decorate([x.property({type:b,json:{name:"popupInfo",write:!0}})],c.prototype,"popupTemplate",void 0);a.__decorate([x.property({cast:G=>"auto"===G?G:A.ensureNumber(q.toPt(G))})],c.prototype,"size",void 0);a.__decorate([x.property({type:[v],json:{write:!0}})],c.prototype,"fields",void 0);a.__decorate([k.writer("fields")],c.prototype,"writeFields",null);a.__decorate([x.property({types:r.rendererTypes,
json:{write:{target:"drawingInfo.renderer"}}})],c.prototype,"renderer",void 0);a.__decorate([w.reader("renderer",["drawingInfo.renderer"])],c.prototype,"readRenderer",null);return c=M=a.__decorate([z.subclass("esri.layers.support.FeatureReductionBinning")],c)})},"esri/layers/support/LabelClass":function(){define("../../chunks/tslib.es6 ../../symbols ../../core/has ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/Logger ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./LabelExpressionInfo ./labelUtils ./layerUtils ../../symbols/support/defaults ../../symbols/support/jsonUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A){function u(v,y,B){return{enabled:!q.isSceneServiceLayer(B?.layer)}}function w(v){return v?"service"===v.origin?!1:"map-image"!==v.layer?.type:!0}function z(v){return"map-image"===v?.type?!!v.capabilities?.exportMap?.supportsArcadeExpressionForLabeling:!1}var k;c=new h.JSONMap({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",
esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",
esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},
{ignoreUnknown:!0});d=k=class extends d.JSONSupport{static evaluateWhere(v,y){const B=(C,L,M)=>{switch(L){case "\x3d":return C==M;case "\x3c\x3e":return C!=M;case "\x3e":return C>M;case "\x3e\x3d":return C>=M;case "\x3c":return C'__begin__$feature["'+A+'"]__end__'),x=f.test(x)?x.replace(f,""):'"'+x,x=p.test(x)?x.replace(p,""):x+'"',x=x.replaceAll(e,'" + ').replaceAll(g,' + "')):x='""';return x}function n(x){return x?.match(r)?.[1].trim()||null}function m(x){if(!x)return null;let A=t.exec(x)||l.exec(x);return A?A[1]||A[3]:(A=q.exec(x))?A[2]:null}const e=RegExp("__begin__","ig"),g=RegExp("__end__","ig"),f=RegExp("^__begin__","i"),p=RegExp("__end__$","i"),r=/^\s*\{([^}]+)\}\s*$/i,t=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,
l=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,q=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;a.convertTemplatedStringToArcade=d;a.getLabelExpression=h;a.getLabelExpressionArcade=function(x){x=h(x);if(!x)return null;switch(x.type){case "conventional":return d(x.expression);case "arcade":return x.expression}return null};a.getLabelExpressionSingleField=function(x){x=h(x);if(!x)return null;switch(x.type){case "conventional":return n(x.expression);
case "arcade":return m(x.expression)}return null};a.getSingleFieldArcadeExpression=m;a.getSingleFieldTemplatedString=n;a.sqlToTemplateString=c;a.templateStringToSql=function(x){return x.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/FeatureReductionCluster":function(){define("../../chunks/tslib.es6 ../../PopupTemplate ../../renderers/ClassBreaksRenderer ../../renderers/DictionaryRenderer ../../renderers/DotDensityRenderer ../../renderers/HeatmapRenderer ../../renderers/PieChartRenderer ../../renderers/Renderer ../../renderers/SimpleRenderer ../../renderers/UniqueValueRenderer ../../renderers/support/jsonUtils ../../renderers/support/types ../../symbols ../../core/JSONSupport ../../core/lang ../../core/object ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./AggregateField ./commonProperties ./featureLayerUtils ./LabelClass".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u,w,z,k,v,y,B,C,L){var M;c=M=class extends l.JSONSupport{constructor(G){super(G);this.type="cluster";this.clusterRadius=A.toPt("80px");this.clusterMinSize=A.toPt("12px");this.clusterMaxSize=A.toPt("50px");this.maxScale=0;this.popupEnabled=!0;this.labelingInfo=this.symbol=this.renderer=this.popupTemplate=null;this.labelsVisible=!0;this.fields=[]}readRenderer(G,E,F){G=E.drawingInfo?.renderer;return G?.authoringInfo?.isAutoGenerated?null:G?"simple"!==G.type||
G.visualVariables?.length?p.read(G,E,F)??void 0:null:C.createDefaultRenderer(E,F)}readSymbol(G,E,F){G=E.drawingInfo?.renderer;return G?.authoringInfo?.isAutoGenerated?null:G&&"simple"===G.type&&!G.visualVariables?.length?p.read(G,E,F)?.symbol:null}writeSymbol(G,E,F,H){F=this.renderer?.authoringInfo?.isAutoGenerated;if(!this.renderer||F)G=new g({symbol:G}),E.drawingInfo={renderer:G.write({},H)}}writeFields(G,E,F){G=G.filter(H=>"avg_angle"!==H.statisticType).map(H=>H.toJSON());x.setDeepValue(F,G,E)}readFields(G,
E,F){return G.filter(H=>!H.isAutoGenerated).map(H=>y.fromJSON(H))}clone(){return new M({clusterRadius:this.clusterRadius,clusterMinSize:this.clusterMinSize,clusterMaxSize:this.clusterMaxSize,labelingInfo:q.clone(this.labelingInfo),labelsVisible:this.labelsVisible,fields:q.clone(this.fields),maxScale:this.maxScale,renderer:q.clone(this.renderer),symbol:q.clone(this.symbol),popupEnabled:this.popupEnabled,popupTemplate:q.clone(this.popupTemplate)})}};a.__decorate([u.property({type:["cluster"],readOnly:!0,
json:{write:!0}})],c.prototype,"type",void 0);a.__decorate([u.property({cast:G=>"auto"===G?G:w.ensureNumber(A.toPt(G)),json:{write:!0}})],c.prototype,"clusterRadius",void 0);a.__decorate([u.property({type:Number,cast:A.toPt,json:{write:!0}})],c.prototype,"clusterMinSize",void 0);a.__decorate([u.property({type:Number,cast:A.toPt,json:{write:!0}})],c.prototype,"clusterMaxSize",void 0);a.__decorate([u.property({type:Number,json:{default:0,name:"visibilityInfo.maxScale"}})],c.prototype,"maxScale",void 0);
a.__decorate([u.property(B.popupEnabled)],c.prototype,"popupEnabled",void 0);a.__decorate([u.property({type:b,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],c.prototype,"popupTemplate",void 0);a.__decorate([u.property({types:r.rendererTypes,json:{write:{target:"drawingInfo.renderer"}}})],c.prototype,"renderer",void 0);a.__decorate([z.reader("renderer",["drawingInfo.renderer"])],c.prototype,"readRenderer",null);a.__decorate([u.property({types:t.symbolTypesCluster})],c.prototype,"symbol",
void 0);a.__decorate([z.reader("symbol",["drawingInfo.renderer"])],c.prototype,"readSymbol",null);a.__decorate([v.writer("symbol")],c.prototype,"writeSymbol",null);a.__decorate([u.property({type:[L],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],c.prototype,"labelingInfo",void 0);a.__decorate([u.property(B.labelsVisible)],c.prototype,"labelsVisible",void 0);a.__decorate([u.property({type:[y],json:{write:!0}})],c.prototype,"fields",void 0);a.__decorate([v.writer("fields")],
c.prototype,"writeFields",null);a.__decorate([z.reader("fields")],c.prototype,"readFields",null);return c=M=a.__decorate([k.subclass("esri.layers.support.FeatureReductionCluster")],c)})},"esri/layers/support/FeatureReductionSelection":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./FeatureReduction".split(" "),function(a,b,c,h,d,n,m){var e;c=e=class extends m.FeatureReduction{constructor(g){super(g);
this.type="selection"}clone(){return new e}};a.__decorate([b.property({type:["selection"]})],c.prototype,"type",void 0);return c=e=a.__decorate([n.subclass("esri.layers.support.FeatureReductionSelection")],c)})},"esri/views/2d/layers/support/clusterUtils":function(){define("exports ../../../../renderers/ClassBreaksRenderer ../../../../renderers/DictionaryRenderer ../../../../renderers/DotDensityRenderer ../../../../renderers/HeatmapRenderer ../../../../renderers/PieChartRenderer ../../../../renderers/Renderer ../../../../renderers/SimpleRenderer ../../../../renderers/UniqueValueRenderer ../../../../renderers/support/jsonUtils ../../../../core/Logger ../../../../symbols ../../../../core/Error ../../../../core/has ../../../../core/MD5 ../../../../layers/support/AggregateField ../../../../layers/support/ExpressionInfo ../../../../renderers/support/AuthoringInfo ../../../../symbols/SimpleMarkerSymbol".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u,w){function z(L,M,G){switch(L){case "sum":return`cluster_sum_${M}`;case "avg":case "avg_angle":return`cluster_avg_${M}`;case "mode":return`cluster_type_${M}`;case "avg_norm":return L=M.toLowerCase()+",norm:field,"+G.toLowerCase(),"cluster_avg_"+q.createMD5Hash(L)}}function k(L,M,G,E){const F=q.createMD5Hash(M),H="mode"===G?`cluster_type_${F}`:"sum"===G?`cluster_sum_${F}`:`cluster_avg_${F}`;L.some(R=>R.name===H)||L.push(new x({name:H,isAutoGenerated:!0,
onStatisticExpression:new A({expression:M,returnType:E}),statisticType:G}));return H}function v(L,M,G,E,F){if("cluster_count"===M||L.some(R=>R.name===M))return M;const H=z(G,M,F);L.some(R=>R.name===H)||("avg_norm"===G?L.push(new x({name:H,isAutoGenerated:!0,onStatisticExpression:new A({expression:`$feature.${M} / $feature.${F}`,returnType:E}),statisticType:"avg"})):L.push(new x({name:H,isAutoGenerated:!0,onStatisticField:M,statisticType:G})));return H}l.add("esri-cluster-arcade-enabled",!0);const y=
l("esri-cluster-arcade-enabled"),B=new Set(["simple-line","simple-fill","picture-fill"]),C=L=>{const M=G=>p.getLogger("esri.views.2d.layers.support.clusterUtils").error(new t("Unsupported-renderer",G,{renderer:L}));if(!L)return!1;switch(L.type){case "unique-value":if(L.field2||L.field3)return M("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case "class-breaks":if(L.normalizationField){const G=L.normalizationType;if("field"!==G)return M(`FeatureReductionCluster does not support a normalizationType of ${G}`),
!1}break;case "simple":case "pie-chart":break;default:return M(`FeatureReductionCluster does not support renderers of type ${L.type}`),!1}if(!y){if("valueExpression"in L&&L.valueExpression)return M("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in L&&L.visualVariables||[]).some(G=>!!("valueExpression"in G&&G.valueExpression)))return M("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),
!1}return!0};a.createInferredClusterRenderer=function(L,M){let G=M.clone();if(!C(G))return G;M.getSymbols().some(E=>B.has(E.type))&&(G=new e({symbol:new w}));G.authoringInfo||(G.authoringInfo=new u);G.authoringInfo.isAutoGenerated=!0;"visualVariables"in G&&(M=(G.visualVariables||[]).filter(E=>"$view.scale"!==E.valueExpression),M.forEach(E=>{"rotation"===E.type?E.field?E.field=v(L,E.field,"avg_angle","number"):E.valueExpression&&(E.field=k(L,E.valueExpression,"avg_angle","number"),E.valueExpression=
null):E.normalizationField?(E.field=v(L,E.field,"avg_norm","number",E.normalizationField),E.normalizationField=null):E.field?E.field=v(L,E.field,"avg","number"):E.valueExpression&&(E.field=k(L,E.valueExpression,"avg","number"),E.valueExpression=null)}),G.visualVariables=M);switch(G.type){case "pie-chart":for(const E of G.attributes)E.field?E.field=v(L,E.field,"sum","number"):E.valueExpression&&(E.field=k(L,E.valueExpression,"sum","number"),E.valueExpression=null);break;case "unique-value":G.field?
G.field=v(L,G.field,"mode","string"):G.valueExpression&&(G.field=k(L,G.valueExpression,"mode","string"),G.valueExpression=null);break;case "class-breaks":G.normalizationField?(G.field=v(L,G.field,"avg_norm","number",G.normalizationField),G.normalizationField=null):G.field?G.field=v(L,G.field,"avg","number"):G.valueExpression&&(G.field=k(L,G.valueExpression,"avg","number"),G.valueExpression=null)}return G};a.findSizeVV=L=>L?.find(({type:M})=>"size"===M)??null;a.hasClusterCountVV=L=>!!L?.some(({field:M})=>
"cluster_count"===M);a.isClusterCompatibleRenderer=C;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/core/MD5":function(){define(["exports"],function(a){function b(e,g){const f=(e&65535)+(g&65535);return(e>>16)+(g>>16)+(f>>16)<<16|f&65535}function c(e,g,f,p,r,t){e=b(b(g,e),b(p,t));return b(e<>>32-r,f)}function h(e,g,f,p,r,t,l){return c(g&f|~g&p,e,g,r,t,l)}function d(e,g,f,p,r,t,l){return c(g&p|f&~p,e,g,r,t,l)}function n(e,g,f,p,r,t,l){return c(f^(g|~p),e,g,r,t,l)}const m=
{Base64:0,Hex:1,String:2,Raw:3};a.createMD5Hash=function(e,g=m.Hex){g=g||m.Base64;var f=[];for(let l=0,q=8*e.length;l>5]|=(e.charCodeAt(l/8)&255)<>5]|=128<>>9<<4)+14]=e;e=1732584193;var p=-271733879;let r=-1732584194,t=271733878;for(let l=0;l>2]>>l%4*8+4&15)+"0123456789abcdef".charAt(f[l>>2]>>l%4*8&15));return g.join("");case m.String:g=[];for(let l=0,q=32*f.length;l>5]>>>l%32&255));return g.join("");case m.Base64:g=[];for(let l=0,q=4*f.length;l>2]>>l%4*8&255)<<16|(f[l+1>>2]>>(l+1)%4*8&255)<<8|f[l+2>>2]>>(l+2)%4*8&255,
p=0;4>p;p++)8*l+6*p>32*f.length?g.push("\x3d"):g.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>6*(3-p)&63));return g.join("")}};a.outputTypes=m;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/mixins/OrderedLayer":function(){define("exports ../../chunks/tslib.es6 ../../core/object ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../support/OrderByInfo".split(" "),
function(a,b,c,h,d,n,m,e,g){const f={type:[g],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:function(p,r,t){if(!p)return null;p=p.find(l=>!!l.field);if(!p)return null;r=new g;r.read(p,t);return[r]}},write:{writer:function(p,r,t,l){(p=p.find(q=>!!q.field))&&c.setDeepValue(t,[p.toJSON()],r)}}}};a.OrderedLayer=p=>{p=class extends p{constructor(){super(...arguments);this.orderBy=null}};b.__decorate([h.property(f)],p.prototype,"orderBy",void 0);return p=b.__decorate([e.subclass("esri.layers.mixins.OrderedLayer")],
p)};a.orderByProperty=f;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/OrderByInfo":function(){define("../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,h,d,n,m,e){var g;b=new b.JSONMap({asc:"ascending",desc:"descending"});c=g=class extends c.JSONSupport{constructor(f){super(f);
this.valueExpression=this.field=null;this.order="ascending"}clone(){return new g({field:this.field,valueExpression:this.valueExpression,order:this.order})}};a.__decorate([h.property({type:String,json:{write:!0}})],c.prototype,"field",void 0);a.__decorate([h.property({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],c.prototype,"valueExpression",void 0);a.__decorate([h.property({type:b.apiValues,json:{type:b.jsonValues,read:b.read,write:b.write}})],c.prototype,"order",void 0);
return c=g=a.__decorate([e.subclass("esri.layers.support.OrderByInfo")],c)})},"esri/layers/mixins/PublishableLayer":function(){define("exports ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../support/PublishingInfo".split(" "),function(a,b,c,h,d,n,m,e){const g=Symbol();a.PublishableLayer=f=>{f=class extends f{constructor(){super(...arguments);this[p]=!0}get publishingInfo(){if(this.destroyed)return null;
var r=this._get("publishingInfo");if(r)return r;r=new e;this._checkPublishingStatus(r);return r}_checkPublishingStatus(r){let t=0;const l=async x=>{r.updating=!0;let A;try{A=await this.fetchPublishingStatus()}catch(u){A="unavailable"}if("published"===A||"unavailable"===A)"publishing"===r.status&&this.refresh(),q.remove();r.status=A;r.updating=!1;q.removed||(t=setTimeout(l,x,x+125))},q={removed:!1,remove(){this.removed=!0;clearTimeout(t)}};this.when().catch(()=>q.remove());l(250);this.addHandles(q)}};
var p=g;b.__decorate([c.property({readOnly:!0,clonable:!1})],f.prototype,"publishingInfo",null);return f=b.__decorate([m.subclass("esri.layers.mixins.PublishableLayer")],f)};a.isPublishableLayer=function(f){return null!=f&&"object"===typeof f&&g in f};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/PublishingInfo":function(){define("../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m){b=class extends b{constructor(){super(...arguments);this.updating=!1;this.status="unknown"}};a.__decorate([c.property()],b.prototype,"updating",void 0);a.__decorate([c.property()],b.prototype,"status",void 0);return b=a.__decorate([m.subclass("esri.layers.support.PublishingInfo")],b)})},"esri/layers/mixins/TemporalLayer":function(){define("exports ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/layerContainerType ../support/fieldUtils ../support/TimeInfo ../../portal/timeUnitKebabDictionary ../../time/TimeExtent ../../time/TimeInterval".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l){const q={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:g.excludeTables}}};a.TemporalLayer=x=>{x=class extends x{constructor(){super(...arguments);this.timeOffset=this.timeExtent=null;this.useViewTime=!0}readOffset(A,u){u=u.timeInfo.exportOptions;if(!u)return null;A=u.timeOffset;u=r.timeUnitKebabDictionary.fromJSON(u.timeOffsetUnits);return A&&u?new l({value:A,unit:u}):null}set timeInfo(A){f.fixTimeInfoFields(A,
this.fieldsIndex);this._set("timeInfo",A)}};b.__decorate([c.property({type:t,json:{write:!1}})],x.prototype,"timeExtent",void 0);b.__decorate([c.property({type:l})],x.prototype,"timeOffset",void 0);b.__decorate([m.reader("service","timeOffset",["timeInfo.exportOptions"])],x.prototype,"readOffset",null);b.__decorate([c.property({value:null,type:p,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],x.prototype,"timeInfo",null);b.__decorate([c.property(q)],
x.prototype,"useViewTime",void 0);return x=b.__decorate([e.subclass("esri.layers.mixins.TemporalLayer")],x)};a.useViewTimeProperty=q;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/TimeInfo":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../time/TimeExtent ../../time/TimeInterval ../../time/timeZoneUtils".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t){b=class extends b.ClonableMixin(c.JSONSupport){constructor(l){super(l);this.cumulative=!1;this.fullTimeExtent=this.endField=null;this.hasLiveData=!1;this.trackIdField=this.timeZone=this.startField=this.interval=null;this.useTime=!0;this.stops=null}readFullTimeExtent(l,q){return q.timeExtent&&Array.isArray(q.timeExtent)&&2===q.timeExtent.length?p.fromArray(q.timeExtent):null}writeFullTimeExtent(l,q){q.timeExtent=null!=l?.start&&null!=l.end?l.toArray():null}readInterval(l,
q){return q.timeInterval&&q.timeIntervalUnits?r.fromJSON({value:q.timeInterval,unit:q.timeIntervalUnits}):q.defaultTimeInterval&&q.defaultTimeIntervalUnits?r.fromJSON({value:q.defaultTimeInterval,unit:q.defaultTimeIntervalUnits}):null}writeInterval(l,q){q.timeInterval=l?.toJSON().value??null;q.timeIntervalUnits=l?.toJSON().unit??null}};a.__decorate([h.property({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],b.prototype,"cumulative",void 0);a.__decorate([h.property({type:String,
json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],b.prototype,"endField",void 0);a.__decorate([h.property({type:p,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"fullTimeExtent",void 0);a.__decorate([e.reader("fullTimeExtent",["timeExtent"])],b.prototype,"readFullTimeExtent",null);a.__decorate([f.writer("fullTimeExtent")],b.prototype,"writeFullTimeExtent",null);a.__decorate([h.property({type:Boolean,json:{write:!0}})],b.prototype,"hasLiveData",void 0);a.__decorate([h.property({type:r,
json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"interval",void 0);a.__decorate([e.reader("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],b.prototype,"readInterval",null);a.__decorate([f.writer("interval")],b.prototype,"writeInterval",null);a.__decorate([h.property({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],b.prototype,"startField",void 0);a.__decorate([h.property(t.timeZoneProperty("timeReference",!0))],b.prototype,
"timeZone",void 0);a.__decorate([h.property({type:String,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"trackIdField",void 0);a.__decorate([h.property({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],b.prototype,"useTime",void 0);a.__decorate([h.property({type:[Date],json:{read:!1}})],b.prototype,"stops",void 0);return b=a.__decorate([g.subclass("esri.layers.support.TimeInfo")],b)})},"esri/time/TimeInterval":function(){define("../chunks/tslib.es6 ../core/Clonable ../core/JSONSupport ../core/timeUtils ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../portal/timeUnitKebabDictionary".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p){b=class extends b.ClonableMixin(c.JSONSupport){constructor(r){super(r);this.unit="milliseconds";this.value=0}toMilliseconds(){return h.convertTime(this.value,this.unit,"milliseconds")}};a.__decorate([g.enumeration(p.timeUnitKebabDictionary,{nonNullable:!0})],b.prototype,"unit",void 0);a.__decorate([d.property({type:Number,json:{write:!0},nonNullable:!0})],b.prototype,"value",void 0);return b=a.__decorate([f.subclass("esri.time.TimeInterval")],b)})},"esri/portal/timeUnitKebabDictionary":function(){define(["exports",
"../core/jsonMap"],function(a,b){b=b.strict()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0});a.timeUnitKebabDictionary=b;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/FeatureTemplate":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e,g){c=new c.JSONMap({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",
esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});b=class extends b.ClonableMixin(h.JSONSupport){constructor(f){super(f);this.thumbnail=this.prototype=this.drawingTool=this.description=this.name=null}};a.__decorate([d.property({json:{write:!0}})],b.prototype,"name",void 0);a.__decorate([d.property({json:{write:!0}})],b.prototype,"description",void 0);a.__decorate([d.property({json:{read:c.read,write:c.write}})],b.prototype,
"drawingTool",void 0);a.__decorate([d.property({json:{write:!0}})],b.prototype,"prototype",void 0);a.__decorate([d.property({json:{write:!0}})],b.prototype,"thumbnail",void 0);return b=a.__decorate([g.subclass("esri.layers.support.FeatureTemplate")],b)})},"esri/layers/support/FeatureType":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./domains ./FeatureTemplate".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r){b=class extends b.ClonableMixin(c.JSONSupport){constructor(t){super(t);this.templates=this.domains=this.name=this.id=null}readDomains(t){const l={};for(const q of Object.keys(t))l[q]=p.fromJSON(t[q]);return l}writeDomains(t,l){const q={};for(const x of Object.keys(t))t[x]&&(q[x]=t[x]?.toJSON());l.domains=q}};a.__decorate([h.property({json:{write:!0}})],b.prototype,"id",void 0);a.__decorate([h.property({json:{write:!0}})],b.prototype,"name",void 0);a.__decorate([h.property({json:{write:!0}})],
b.prototype,"domains",void 0);a.__decorate([e.reader("domains")],b.prototype,"readDomains",null);a.__decorate([f.writer("domains")],b.prototype,"writeDomains",null);a.__decorate([h.property({type:[r],json:{write:!0}})],b.prototype,"templates",void 0);return b=a.__decorate([g.subclass("esri.layers.support.FeatureType")],b)})},"esri/layers/support/fieldProperties":function(){define("exports ../../core/has ../../core/Logger ./Field ./FieldsIndex ./fieldUtils".split(" "),function(a,b,c,h,d,n){a.defineFieldProperties=
function(){return{fields:{type:[h],value:null,set:function(m){if(m&&b("big-integer-warning-enabled")){var e=m.filter(g=>"big-integer"===g.type||"oid"===g.type&&8<=(g.length||0));e.length&&(e=e.map(g=>`'${g.name}'`).join(", "),c.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",
m)}},fieldsIndex:{readOnly:!0,get(){return d.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(m){this._userOutFields=m;this.notifyChange("outFields")},get:function(){const m=this._userOutFields;if(!m?.length)return null;if(m.includes("*"))return["*"];if(!this.fields)return m;for(const e of m)this.fieldsIndex?.has(e)||c.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${e} found in outFields`,{layer:this,outFields:m});
return n.fixFields(this.fieldsIndex,m)}}}};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/labelingInfo":function(){define(["exports","../../core/Error","../../core/Logger","./LabelClass"],function(a,b,c,h){const d=()=>c.getLogger("esri.layers.support.labelingInfo"),n=/\[([^[\]]+)\]/gi,m={esriGeometryPoint:"above-right above-center above-left center-center center-left center-right below-center below-left below-right".split(" "),esriGeometryMultiPatch:["always-horizontal"],
esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:null,esriGeometryEnvelope:null};a.reader=function(e,g,f){return e?e.map(p=>{const r=new h;r.read(p,f);if(r.labelExpression){const t=g.fields||g.layerDefinition?.fields||this.fields;r.labelExpression=r.labelExpression.replaceAll(n,(l,q)=>{a:if(t){l=q.toLowerCase();for(let x=0;x{const h=new Set([9709,9716,9741,9761,9766]);for(var d=9712;9713>=d;d++)h.add(d);for(d=9748;9749>=d;d++)h.add(d);for(d=20904;20932>=d;d++)h.add(d);for(d=21004;21032>=d;d++)h.add(d);for(d=21207;21264>=d;d++)h.add(d);for(d=21307;21364>=d;d++)h.add(d);for(d=23301;23333>=d;d++)h.add(d);for(d=102759;102760>=d;d++)h.add(d);for(d=102934;102955>=
d;d++)h.add(d);return h}]);c.push([10.9,()=>{const h=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(var d=9356;9360>=d;d++)h.add(d);for(d=9404;9407>=d;d++)h.add(d);for(d=9476;9482>=d;d++)h.add(d);for(d=9487;9494>=d;d++)h.add(d);for(d=9697;9699>=d;d++)h.add(d);return h}]);c.push([10.81,()=>{const h=new Set([9265,9333,103598,103699]);for(var d=9248;9254>=d;d++)h.add(d);for(d=9271;9273>=d;d++)h.add(d);for(d=9284;9285>=d;d++)h.add(d);for(d=21453;21463>=
d;d++)h.add(d);return h}]);c.push([10.8,()=>{const h=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(var d=8035;8036>=d;d++)h.add(d);for(d=8455;8456>=d;d++)h.add(d);for(d=8518;8529>=d;d++)h.add(d);for(d=8533;8536>=d;d++)h.add(d);for(d=8538;8540>=d;d++)h.add(d);for(d=8677;8679>=d;d++)h.add(d);for(d=8902;8903>=d;d++)h.add(d);for(d=8907;8910>=d;d++)h.add(d);for(d=8949;8951>=d;d++)h.add(d);for(d=8972;8987>=d;d++)h.add(d);for(d=9039;9040>=d;d++)h.add(d);for(d=
9068;9069>=d;d++)h.add(d);for(d=9140;9141>=d;d++)h.add(d);for(d=9148;9150>=d;d++)h.add(d);for(d=9153;9159>=d;d++)h.add(d);for(d=9205;9218>=d;d++)h.add(d);for(d=9221;9222>=d;d++)h.add(d);for(d=54098;54101>=d;d++)h.add(d);return h}]);c.push([10.71,()=>{const h=new Set([6316]);for(var d=8351;8353>=d;d++)h.add(d);for(d=9294;9297>=d;d++)h.add(d);for(d=22619;22621>=d;d++)h.add(d);for(d=103586;103594>=d;d++)h.add(d);return h}]);a.serviceSupportsSpatialReference=function(h,d){if(b.isHostedAgolService(h.url??
""))return!0;({wkid:d}=d);for(const n of c){if((h.version??0)>=n[0])break;"function"===typeof n[1]&&(n[1]=n[1]());if(n[1].has(d))return!1}return!0};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/support/popupUtils":function(){define("exports ../PopupTemplate ../layers/support/fieldUtils ../popup/content/AttachmentsContent ../popup/content/Content ../popup/content/CustomContent ../popup/content/ExpressionContent ../popup/content/FieldsContent ../popup/content/MediaContent ../popup/content/RelationshipContent ../popup/content/TextContent ../popup/content/UtilityNetworkAssociationsContent ../popup/FieldInfo ../popup/support/FieldInfoFormat".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l){function q({fields:y,ignoreFieldTypes:B,sortDisabled:C}){const L=y;B&&(y=y.filter(M=>!B.includes(M.type)));y===L&&(y=y.slice());!0!==C&&y.sort(x);return y}function x(y,B){return"oid"===y.type?-1:"oid"===B.type?1:k(y)?-1:k(B)?1:(y.alias||y.name).toLocaleLowerCase().localeCompare((B.alias||B.name).toLocaleLowerCase())}function A(y,B){const C=B?.visibleFieldNames;return q({fields:y.fields??[],ignoreFieldTypes:B?.ignoreFieldTypes||v,sortDisabled:B?.sortDisabled}).map(L=>
{var M=L.name,G=c.isFieldEditable(L,y),E=L.alias,F=z(L),H={...y,visibleFieldNames:C};L=H.visibleFieldNames?H.visibleFieldNames.has(L.name):c.isFieldVisibleByDefault(L,H);return new t({fieldName:M,isEditable:G,label:E,format:F,visible:L})})}function u(y,B){return y.map(C=>new t({fieldName:C.name,isEditable:!1,label:C.alias,format:w(C,B),visible:!0}))}function w(y,B){const {onStatisticField:C,onStatisticExpression:L,statisticType:M}=y;if(C&&(y=B.find(G=>C===G.name)))return z(y);if("number"===L?.returnType)return new l({digitSeparator:!0,
places:2});if("count"===M)return new l({digitSeparator:!0,places:0})}function z(y){switch(y.type){case "small-integer":case "integer":case "single":return new l({digitSeparator:!0,places:0});case "double":return new l({digitSeparator:!0,places:2});case "string":if(c.isRasterPixelValueField(y.name))return new l({digitSeparator:!0,places:0})}}function k(y){return"name"===(y.name&&y.name.toLowerCase())||"name"===y.alias?.toLowerCase()?!0:!1}const v=["geometry","blob","raster","guid","xml"];a.createFieldInfos=
A;a.createFieldsContent=function(y,B){return new e({fieldInfos:A(y,B).filter(C=>C.visible)})};a.createPopupTemplate=function({displayField:y,editFieldsInfo:B,fields:C,objectIdField:L,title:M},G){if(!C)return null;B=A({editFieldsInfo:B,fields:C,objectIdField:L},G);if(!B.length)return null;C={titleBase:M,fields:C,displayField:y};y=c.getDisplayFieldName(C);({titleBase:C}=C);y=y?`${C}: {${y.trim()}}`:C??"";C=[new e,new h];return new b({title:y,content:C,fieldInfos:B})};a.createPopupTemplateForFeatureReduction=
function(y){const {fields:B,featureReduction:C,title:L}=y;y=C.fields;if(!y)return null;y=u(y,B??[]);if(!y.length)return null;var M=[new e];return new b({title:L,content:M,fieldInfos:y})};a.getFeaturePopupTitle=function(y){const {title:B,graphic:C}=y??{},{attributes:L,sourceLayer:M}=C??{};y=M&&"displayField"in M?M.displayField:null;const G=C?.getObjectId()?.toString();return B||(y?L?.[y]:null)||G||""};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/views/3d/webgl-engine/core/shaderLibrary/util/AlphaCutoff":function(){define(["exports"],
function(a){a.alphaCutoff=1/255.5;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/webdoc/interfaces":function(){define(["exports"],function(a){a.SaveOperationType=void 0;var b=a.SaveOperationType||(a.SaveOperationType={});b[b.SAVE=0]="SAVE";b[b.SAVE_AS=1]="SAVE_AS";Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/graphics/sources/FeatureLayerSource":function(){define("require ../../../chunks/tslib.es6 ../../../config ../../../geometry ../../../request ../../../core/arrayUtils ../../../core/Error ../../../core/has ../../../core/jsonMap ../../../core/Loadable ../../../core/Logger ../../../core/object ../../../core/promiseUtils ../../../core/reactiveUtils ../../../core/urlUtils ../../../core/uuid ../../../core/accessorSupport/decorators/property ../../../core/accessorSupport/decorators/subclass ../../../geometry/Extent ../../../geometry/support/MeshGeoreferencedVertexSpace ../../../geometry/support/meshVertexSpaceUtils ../../../geometry/support/meshUtils/External ../applyEditsUtils ./support/clientSideDefaults ./support/QueryTask ../../support/arcgisLayerUrl ../../support/featureLayerUtils ../../support/infoFor3D ../../../rest/query/executeQueryJSON ../../../rest/query/operations/editsZScale ../../../rest/support/Query ../../../time/TimeExtent ../../../versionManagement/support/versionManagementUtils ../../../geometry/SpatialReference".split(" "),
function(a,b,c,h,d,n,m,e,g,f,p,r,t,l,q,x,A,u,w,z,k,v,y,B,C,L,M,G,E,F,H,R,J,K){const Q=new g.JSONMap({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),N=new g.JSONMap({Started:"published",Publishing:"publishing",Stopped:"unavailable"});h=class extends f{constructor(U){super(U);this.type="feature-layer";this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]);this.refresh=t.debounce(async()=>{await this.load();var Z=this.sourceJSON.editingInfo?.lastEditDate;
if(null==Z)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}Z=Z!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:Z,updates:Z?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}});this._ongoingAssetUploads=new Map}load(U){const Z=this._fetchService(this.layer.sourceJSON,{...U}).then(()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,U)).then(()=>this._ensureLatestMetadata(U));this.addResolvingPromise(Z);
return Promise.resolve(this)}initialize(){this.addHandles([l.watch(()=>{const U=this.layer;return U&&"lastEditsEventDate"in U?U.lastEditsEventDate:null},U=>this._handleLastEditsEventChange(U))])}destroy(){this._removeEditInterceptor()}get queryTask(){const {capabilities:U,parsedUrl:Z,gdbVersion:fa,spatialReference:pa,fieldsIndex:xa}=this.layer,ra="infoFor3D"in this.layer?this.layer.infoFor3D:null,qa="dynamicDataSource"in this.layer?this.layer.dynamicDataSource:null,za=e("featurelayer-pbf")&&U?.query.supportsFormatPBF&&
null==ra;return new C({url:Z.path,pbfSupported:za,fieldsIndex:xa,infoFor3D:ra,dynamicDataSource:qa,gdbVersion:fa,sourceSpatialReference:pa,queryAttachmentsSupported:U?.operations?.supportsQueryAttachments??!1})}async addAttachment(U,Z){await this.load();var {layer:fa}=this;await M.ensureLayerCredential(fa,"editing");U=U.attributes[fa.objectIdField];fa=fa.parsedUrl.path+"/"+U+"/addAttachment";const pa=this._getLayerRequestOptions();Z=this._getFormDataForAttachment(Z,pa.query);try{const xa=await d(fa,
{body:Z});return y.createFeatureEditResult(xa.data.addAttachmentResult)}catch(xa){throw this._createAttachmentErrorResult(U,xa);}}async updateAttachment(U,Z,fa){await this.load();var {layer:pa}=this;await M.ensureLayerCredential(pa,"editing");U=U.attributes[pa.objectIdField];pa=pa.parsedUrl.path+"/"+U+"/updateAttachment";Z=this._getLayerRequestOptions({query:{attachmentId:Z}});fa=this._getFormDataForAttachment(fa,Z.query);try{const xa=await d(pa,{body:fa});return y.createFeatureEditResult(xa.data.updateAttachmentResult)}catch(xa){throw this._createAttachmentErrorResult(U,
xa);}}async applyEdits(U,Z){await this.load();const {layer:fa}=this;await M.ensureLayerCredential(fa,"editing");const pa="infoFor3D"in fa?fa.infoFor3D:null;var xa=null!=pa,ra=xa||(Z?.globalIdUsed??!1);const qa=xa?await this._uploadMeshesAndGetAssetMapEditsJSON(U):null;var za=U.addFeatures?.map(T=>y.getFeatureJSON(this.layer,T,pa))??[];za=(await Promise.all(za)).filter(n.isSome);var Da=U.updateFeatures?.map(T=>y.getFeatureJSON(this.layer,T,pa))??[];Da=(await Promise.all(Da)).filter(n.isSome);const sa=
y.getFeatureIds(this.layer,U.deleteFeatures,ra);F.unapplyEditsZUnitScaling(za,Da,fa.spatialReference);U=await y.getAttachmentEditsJSON(this.layer,U);xa=fa.capabilities.editing.supportsAsyncApplyEdits&&xa;const X=Z?.gdbVersion||fa.gdbVersion,aa={gdbVersion:X,rollbackOnFailure:Z?.rollbackOnFailureEnabled,useGlobalIds:ra,returnEditMoment:Z?.returnEditMoment,usePreviousEditMoment:Z?.usePreviousEditMoment,async:xa};await J.isSafeToEditVersion(this.layer.url,X,!0);const ha=J.isVersionInEditSession(this.layer.url,
X||null);if(await J.isHistoricVersion(fa.url,X,fa.historicMoment))throw new m("feature-layer-source:historic-version","Editing a historic version is not allowed");Z?.returnServiceEditsOption?(aa.edits=JSON.stringify([{id:fa.layerId,adds:za.length?za:null,updates:Da.length?Da:null,deletes:sa.length?sa:null,attachments:U,assetMaps:qa}]),aa.returnServiceEditsOption=Q.toJSON(Z?.returnServiceEditsOption),aa.returnServiceEditsInSourceSR=Z?.returnServiceEditsInSourceSR):(aa.adds=za.length?JSON.stringify(za):
null,aa.updates=Da.length?JSON.stringify(Da):null,aa.deletes=sa.length?ra?JSON.stringify(sa):sa.join(","):null,aa.attachments=U&&JSON.stringify(U),aa.assetMaps=null!=qa?JSON.stringify(qa):void 0);ra=this._getLayerRequestOptions({method:"post",query:aa});ha&&(ra.authMode="immediate",ra.query.returnEditMoment=!0,ra.query.sessionId=J.currentSessionId);Z=Z?.returnServiceEditsOption?fa.url:fa.parsedUrl.path;let I;try{I=xa?await this._asyncApplyEdits(Z+"/applyEdits",ra):await d(Z+"/applyEdits",ra)}catch(T){if(y.isProtectedOrPrivateVersionError(T))ra.authMode=
"immediate",I=xa?await this._asyncApplyEdits(Z+"/applyEdits",ra):await d(Z+"/applyEdits",ra);else throw T;}return this._createEditsResult(I)}async deleteAttachments(U,Z){await this.load();var {layer:fa}=this;await M.ensureLayerCredential(fa,"editing");U=U.attributes[fa.objectIdField];fa=fa.parsedUrl.path+"/"+U+"/deleteAttachments";try{return(await d(fa,this._getLayerRequestOptions({query:{attachmentIds:Z.join(",")},method:"post"}))).data.deleteAttachmentResults.map(y.createFeatureEditResult)}catch(pa){throw this._createAttachmentErrorResult(U,
pa);}}fetchRecomputedExtents(U={}){return this.load({signal:U.signal}).then(async()=>{var Z=this._getLayerRequestOptions({...U,query:{returnUpdates:!0}});const {layerId:fa,url:pa}=this.layer;({data:Z}=await d(`${pa}/${fa}`,Z));const {id:xa,extent:ra,fullExtent:qa,timeExtent:za}=Z;Z=ra||qa;return{id:xa,fullExtent:Z&&w.fromJSON(Z),timeExtent:za&&R.fromJSON({start:za[0],end:za[1]})}})}async queryAttachments(U,Z={}){await this.load();Z=this._getLayerRequestOptions(Z);return this.queryTask.executeAttachmentQuery(U,
Z)}async queryFeatures(U,Z){await this.load();Z=await this.queryTask.execute(U,{...Z,query:this._createRequestQueryOptions(Z)});U.outStatistics?.length&&Z.features.length&&Z.features.forEach(fa=>{const pa=fa.attributes;U.outStatistics?.forEach(({outStatisticFieldName:xa})=>{if(xa){const ra=xa.toLowerCase();ra&&ra in pa&&xa!==ra&&(pa[xa]=pa[ra],delete pa[ra])}})});return Z}async queryFeaturesJSON(U,Z){await this.load();return this.queryTask.executeJSON(U,{...Z,query:this._createRequestQueryOptions(Z)})}async queryObjectIds(U,
Z){await this.load();return this.queryTask.executeForIds(U,{...Z,query:this._createRequestQueryOptions(Z)})}async queryFeatureCount(U,Z){await this.load();return this.queryTask.executeForCount(U,{...Z,query:this._createRequestQueryOptions(Z)})}async queryExtent(U,Z){await this.load();return this.queryTask.executeForExtent(U,{...Z,query:this._createRequestQueryOptions(Z)})}async queryRelatedFeatures(U,Z){await this.load();return this.queryTask.executeRelationshipQuery(U,{...Z,query:this._createRequestQueryOptions(Z)})}async queryRelatedFeaturesCount(U,
Z){await this.load();return this.queryTask.executeRelationshipQueryForCount(U,{...Z,query:this._createRequestQueryOptions(Z)})}async queryTopFeatures(U,Z){await this.load();return this.queryTask.executeTopFeaturesQuery(U,{...Z,query:this._createRequestQueryOptions(Z)})}async queryBins(U,Z){await this.load();return this.queryTask.executeBinsQuery(U,{...Z,query:this._createRequestQueryOptions(Z)})}async queryTopObjectIds(U,Z){await this.load();return this.queryTask.executeForTopIds(U,{...Z,query:this._createRequestQueryOptions(Z)})}async queryTopExtents(U,
Z){await this.load();return this.queryTask.executeForTopExtents(U,{...Z,query:this._createRequestQueryOptions(Z)})}async queryTopCount(U,Z){await this.load();return this.queryTask.executeForTopCount(U,{...Z,query:this._createRequestQueryOptions(Z)})}async fetchPublishingStatus(){if(!L.isHostedAgolService(this.layer.url))return"unavailable";var U=q.join(this.layer.url,"status");U=await d(U,{query:{f:"json"}});return N.fromJSON(U.data.status)}async uploadAssets(U,Z){const {uploadAssets:fa}=await new Promise((pa,
xa)=>a(["./support/uploadAssets"],pa,xa));return fa(U,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},Z)}_handleLastEditsEventChange(U){const Z=this.layer;if(null!=U&&"capabilities"in Z&&"effectiveCapabilities"in Z&&!Z.capabilities?.operations?.supportsEditing&&Z.effectiveCapabilities?.operations?.supportsEditing){var fa=Z.url;null!=fa&&("layerId"in Z&&q.join(fa,Z.layerId.toString()),this._getOrCreateEditInterceptor(fa).before=pa=>{var xa=pa.requestOptions.method??"auto";if("auto"===xa||
"head"===xa)xa=pa.requestOptions.query??{},xa._ts=U.getTime(),pa.requestOptions.query=xa})}}_getOrCreateEditInterceptor(U){null==this._editInterceptor&&(this._editInterceptor={urls:U},c.request.internalInterceptors.push(this._editInterceptor));return this._editInterceptor}_removeEditInterceptor(){null!=this._editInterceptor&&(n.remove(c.request.internalInterceptors,this._editInterceptor),this._editInterceptor=null)}async _asyncApplyEdits(U,Z){for(U=(await d(U,Z)).data.statusUrl;;){Z=(await d(U,{query:{f:"json"},
responseType:"json"})).data;switch(Z.status){case "Completed":return d(Z.resultUrl,{query:{f:"json"},responseType:"json"});case "CompletedWithErrors":throw new m("async-applyEdits-failed","asynchronous applyEdits call failed.");case "Failed ImportChanges":case "InProgress":case "Pending":case "ExportAttachments":case "ExportChanges":case "ExportingData":case "ExportingSnapshot":case "ImportAttachments":case "ProvisioningReplica":case "UnRegisteringReplica":break;default:throw new m("async-applyEdits-failed",
"asynchronous applyEdits call failed (undefined response status)");}await t.after(1E3)}}_createRequestQueryOptions(U){U={...this.layer.customParameters,token:this.layer.apiKey,...U?.query};this.layer.datesInUnknownTimezone&&(U.timeReferenceUnknownClient=!0);return U}async _fetchService(U,Z){U||(U={},e("featurelayer-advanced-symbols")&&(U.returnAdvancedSymbols=!0),Z?.cacheBust&&(U._ts=Date.now()),{data:U}=await d(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:U,signal:Z?.signal})));
this.sourceJSON=await this._patchServiceJSON(U,Z?.signal);Z=U.type;if(!this.supportedSourceTypes.has(Z))throw new m("feature-layer-source:unsupported-type",`Source type "${Z}" is not supported`);}async _patchServiceJSON(U,Z){if("Table"!==U.type&&U.geometryType&&!U?.drawingInfo?.renderer&&!U.defaultSymbol){const fa=B.createDrawingInfo(U.geometryType).renderer;r.setDeepValue("drawingInfo.renderer",fa,U)}"esriGeometryMultiPatch"===U.geometryType&&U.infoFor3D&&(U.geometryType="mesh");if(null==U.extent)try{const {data:fa}=
await d(this.layer.url,this._getLayerRequestOptions({signal:Z}));fa.spatialReference&&(U.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:fa.spatialReference})}catch(fa){t.throwIfAbortError(fa)}return U}async _ensureLatestMetadata(U){if(this.layer.userHasUpdateItemPrivileges&&0xa.geometry);if(Z.length!==fa.length+U.updateFeatures.length)throw new m("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");U=[];fa=new Map;for(const xa of Z){const {geometry:ra}=xa;var {vertexSpace:pa}=ra;if(k.isRelativeVertexSpace(pa))U.push(ra);else{pa=ra.origin;const {convertMeshVertexSpace:qa}=await new Promise((za,Da)=>a(["../../../geometry/support/meshUtils/convertMeshVertexSpace"],
za,Da));pa=await qa(ra,new z({origin:[pa.x,pa.y,pa.z??0]}));fa.set(pa,ra);xa.geometry=pa;U.push(pa)}}await this.uploadAssets(U);for(const [xa,ra]of fa)ra.addExternalSources(xa.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(Z),updates:[],deletes:[]}}_getAssetMapEditsJSON(U){const Z=[],fa=this.layer.globalIdField,pa=this.layer.parsedUrl;for(const ra of U){({metadata:U}=ra.geometry);var xa=U.getExternalSourcesOnService(pa);U=ra.getAttribute(fa);if(0===xa.length)p.getLogger(this).error(`Skipping feature ${U}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);
else{({source:xa}=xa.find(v.isOriginalExternal)??xa[0]);for(const qa of xa)1!==qa.parts.length?p.getLogger(this).error(`Skipping asset ${qa.assetName}. It does not have exactly one part, so we cannot map it to a feature.`):Z.push({globalId:x.generateBracedUUID(),parentGlobalId:U,assetName:qa.assetName,assetHash:qa.parts[0].partHash,flags:[]})}}return Z}_createEditsResult(U){var Z=U.data;const {layerId:fa}=this.layer;U=[];let pa=null;if(Array.isArray(Z))for(var xa of Z)U.push({id:xa.id,editedFeatures:xa.editedFeatures}),
xa.id===fa&&(pa={addResults:xa.addResults??[],updateResults:xa.updateResults??[],deleteResults:xa.deleteResults??[],attachments:xa.attachments,editMoment:xa.editMoment});else pa=Z;xa=y.unpackEditResultData(pa);if(0sa.getAttribute(fa)).filter(n.isSome);if(0===
U.length)return!1;const {assetMapFieldRoles:{parentGlobalId:qa,assetHash:za}}=xa;U=new H({where:`${qa} IN (${U.map(sa=>`'${sa}'`)})`,outFields:[za,qa],returnGeometry:!1});U=await E.executeQueryJSON(ra,U);const {features:Da}=U;return 0===Da.length?!1:!Z.some(sa=>{const X=sa.getAttribute(fa);if(!X)return!0;({metadata:sa}=sa.geometry);const aa=Da.filter(I=>I.getAttribute(qa)===X);if(0===aa.length)return!0;const ha=aa.map(I=>I.getAttribute(za));return sa.getExternalSourcesOnService(pa).flatMap(({source:I})=>
I.flatMap(T=>T.parts.map(da=>da.partHash))).some(I=>ha.every(T=>I!==T))})}};b.__decorate([A.property()],h.prototype,"type",void 0);b.__decorate([A.property({constructOnly:!0})],h.prototype,"layer",void 0);b.__decorate([A.property({constructOnly:!0})],h.prototype,"supportedSourceTypes",void 0);b.__decorate([A.property({readOnly:!0})],h.prototype,"queryTask",null);return h=b.__decorate([u.subclass("esri.layers.graphics.sources.FeatureLayerSource")],h)})},"esri/geometry/support/MeshGeoreferencedVertexSpace":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,h,d,n,m,e,g){c=b=class extends b.ClonableMixin(c.JSONSupport){constructor(f){super(f);this.type="georeferenced";this.origin=null}};c.absolute=new b;a.__decorate([e.enumeration({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0);a.__decorate([h.property({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0);return c=b=a.__decorate([g.subclass("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)})},"esri/geometry/support/meshVertexSpaceUtils":function(){define("exports ../../core/deprecate ../../core/Logger ../../chunks/vec32 ../Point ./MeshGeoreferencedVertexSpace ./MeshLocalVertexSpace".split(" "),
function(a,b,c,h,d,n,m){function e(g){return null!=g.origin}a.isAbsoluteVertexSpace=function(g){return!e(g)};a.isMeshWithRelativeVertexSpace=function(g){return e(g.vertexSpace)};a.isRelativeVertexSpace=e;a.selectVertexSpace=function(g,f){const {x:p,y:r,z:t,spatialReference:l}=g;g=[p,r,t??0];void 0!==f?.geographic&&(b.deprecated(c.getLogger("esri.geometry.Mesh"),"option: geographic",{replacement:"Use the `vertexSpace` option instead.",version:"4.29",warnOnce:!0}),f.vertexSpace&&c.getLogger("esri.geometry.Mesh").warn("Deprecated geographic flag ignored since vertexSpace option is provided."));
var q;null!=(q=f?.vertexSpace)?f=q:(f=f?.geographic,f=null==f?void 0:f?"local":"georeferenced");return"local"===(f??(l.isGeographic||l.isWebMercator?"local":"georeferenced"))?new m({origin:g}):new n({origin:g})};a.vertexSpaceEquals=function(g,f){return g.type===f.type&&(g.origin===f.origin||null!=g.origin&&null!=f.origin&&h.exactEquals(g.origin,f.origin))};a.vertexSpaceOriginToPoint=function(g,f){if(!e(g))return null;const [p,r,t]=g.origin;return new d({x:p,y:r,z:t,spatialReference:f})};Object.defineProperty(a,
Symbol.toStringTag,{value:"Module"})})},"esri/chunks/vec32":function(){define(["exports","../core/libs/gl-matrix-2/factories/vec3f64","../core/libs/gl-matrix-2/math/common"],function(a,b,c){function h(X){const aa=X[0],ha=X[1];X=X[2];return Math.sqrt(aa*aa+ha*ha+X*X)}function d(X,aa){X[0]=aa[0];X[1]=aa[1];X[2]=aa[2];return X}function n(X,aa,ha,I){X[0]=aa;X[1]=ha;X[2]=I;return X}function m(X,aa,ha){X[0]=aa[0]+ha[0];X[1]=aa[1]+ha[1];X[2]=aa[2]+ha[2];return X}function e(X,aa,ha){X[0]=aa[0]-ha[0];X[1]=
aa[1]-ha[1];X[2]=aa[2]-ha[2];return X}function g(X,aa,ha){X[0]=aa[0]*ha[0];X[1]=aa[1]*ha[1];X[2]=aa[2]*ha[2];return X}function f(X,aa,ha){X[0]=aa[0]/ha[0];X[1]=aa[1]/ha[1];X[2]=aa[2]/ha[2];return X}function p(X,aa){X[0]=Math.ceil(aa[0]);X[1]=Math.ceil(aa[1]);X[2]=Math.ceil(aa[2]);return X}function r(X,aa){X[0]=Math.floor(aa[0]);X[1]=Math.floor(aa[1]);X[2]=Math.floor(aa[2]);return X}function t(X,aa){X[0]=Math.abs(aa[0]);X[1]=Math.abs(aa[1]);X[2]=Math.abs(aa[2]);return X}function l(X,aa){X[0]=Math.sign(aa[0]);
X[1]=Math.sign(aa[1]);X[2]=Math.sign(aa[2]);return X}function q(X,aa,ha){X[0]=Math.min(aa[0],ha[0]);X[1]=Math.min(aa[1],ha[1]);X[2]=Math.min(aa[2],ha[2]);return X}function x(X,aa,ha){X[0]=Math.max(aa[0],ha[0]);X[1]=Math.max(aa[1],ha[1]);X[2]=Math.max(aa[2],ha[2]);return X}function A(X,aa=0,ha=1){X[0]=Math.min(Math.max(X[0],aa),ha);X[1]=Math.min(Math.max(X[1],aa),ha);X[2]=Math.min(Math.max(X[2],aa),ha);return X}function u(X,aa){X[0]=Math.round(aa[0]);X[1]=Math.round(aa[1]);X[2]=Math.round(aa[2]);return X}
function w(X,aa,ha){X[0]=aa[0]*ha;X[1]=aa[1]*ha;X[2]=aa[2]*ha;return X}function z(X,aa,ha,I){X[0]=aa[0]+ha[0]*I;X[1]=aa[1]+ha[1]*I;X[2]=aa[2]+ha[2]*I;return X}function k(X,aa){const ha=aa[0]-X[0],I=aa[1]-X[1];X=aa[2]-X[2];return Math.sqrt(ha*ha+I*I+X*X)}function v(X,aa){const ha=aa[0]-X[0],I=aa[1]-X[1];X=aa[2]-X[2];return ha*ha+I*I+X*X}function y(X){const aa=X[0],ha=X[1];X=X[2];return aa*aa+ha*ha+X*X}function B(X,aa){X[0]=-aa[0];X[1]=-aa[1];X[2]=-aa[2];return X}function C(X,aa){X[0]=1/aa[0];X[1]=
1/aa[1];X[2]=1/aa[2];return X}function L(X,aa){var ha=aa[0];const I=aa[1],T=aa[2];ha=ha*ha+I*I+T*T;0X?Math.PI:Math.acos(X)}function xa(X){return"vec3("+X[0]+", "+X[1]+", "+X[2]+")"}function ra(X,aa){return X[0]===aa[0]&&X[1]===aa[1]&&X[2]===aa[2]}function qa(X,aa){if(X===aa)return!0;const ha=X[0],I=X[1];X=X[2];const T=aa[0],da=aa[1];aa=aa[2];const la=c.getEpsilon();return Math.abs(ha-T)<=la*Math.max(1,Math.abs(ha),Math.abs(T))&&Math.abs(I-da)<=la*Math.max(1,Math.abs(I),Math.abs(da))&&Math.abs(X-aa)<=
la*Math.max(1,Math.abs(X),Math.abs(aa))}function za(X,aa,ha){const I=ha[0]-aa[0],T=ha[1]-aa[1];aa=ha[2]-aa[2];ha=I*I+T*T+aa*aa;if(0