{"version":3,"sources":["node_modules/@arcgis/core/layers/graphics/sources/MemorySource.js","node_modules/@arcgis/core/layers/support/PublishingInfo.js","node_modules/@arcgis/core/layers/mixins/PublishableLayer.js","node_modules/@arcgis/core/layers/FeatureLayer.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../../chunks/tslib.es6.js\";\nimport \"../../../geometry.js\";\nimport t from \"../../../Graphic.js\";\nimport r from \"../../../core/Collection.js\";\nimport s from \"../../../core/Error.js\";\nimport has from \"../../../core/has.js\";\nimport i from \"../../../core/Loadable.js\";\nimport o from \"../../../core/Logger.js\";\nimport { EsriPromiseMixin as n } from \"../../../core/Promise.js\";\nimport { open as a } from \"../../../core/workers/workers.js\";\nimport { property as l } from \"../../../core/accessorSupport/decorators/property.js\";\nimport { ensureType as u } from \"../../../core/accessorSupport/ensureType.js\";\nimport \"../../../core/RandomLCG.js\";\nimport { shared as p } from \"../../../core/accessorSupport/decorators/shared.js\";\nimport { subclass as c } from \"../../../core/accessorSupport/decorators/subclass.js\";\nimport { unapplyEditsZUnitScaling as d } from \"../../../rest/query/operations/editsZScale.js\";\nimport { applyFeatureSetZUnitScaling as h } from \"../../../rest/query/operations/queryZScale.js\";\nimport y from \"../../../rest/support/FeatureSet.js\";\nimport m from \"../../../geometry/Extent.js\";\nimport f from \"../../../geometry/Polygon.js\";\nimport { typeKebabDictionary as g } from \"../../../geometry/support/typeUtils.js\";\nlet _ = 0,\n T = class extends i.LoadableMixin(n(r)) {\n constructor(e) {\n super(e), this._idToClientGraphic = null, this.type = \"memory\";\n }\n load(e) {\n const t = null != e ? e.signal : null;\n return this.addResolvingPromise(this._startWorker(t)), Promise.resolve(this);\n }\n destroy() {\n this._connection?.close(), this._connection = null;\n }\n get _workerGeometryType() {\n const e = this.layer?.geometryType;\n return e ? this._geometryTypeRequiresClientGraphicMapping(e) ? \"polygon\" : e : null;\n }\n applyEdits(e) {\n return this.load().then(() => this._applyEdits(e));\n }\n openPorts() {\n return this.load().then(() => this._connection.openPorts());\n }\n async queryFeatures(e, t = {}) {\n await this.load(t);\n const r = await this._connection.invoke(\"queryFeatures\", e ? e.toJSON() : null, t);\n h(e, this.layer.spatialReference, r);\n const s = y.fromJSON(r);\n if (!this._requiresClientGraphicMapping()) return s;\n const i = this.layer.objectIdField;\n for (const o of s.features) {\n const e = o.attributes[i],\n t = this._idToClientGraphic.get(e);\n t && (o.geometry = t.geometry);\n }\n return s.geometryType = this.layer.geometryType, s;\n }\n async queryFeaturesJSON(e, t = {}) {\n if (this._requiresClientGraphicMapping()) throw new s(\"query-features-json:unsupported\", \"Cannot query in JSON format for client only geometry types (mesh and extent)\");\n await this.load(t);\n const r = await this._connection.invoke(\"queryFeatures\", e ? e.toJSON() : null, t);\n return h(e, this.layer.spatialReference, r), r;\n }\n queryFeatureCount(e, t = {}) {\n return this.load(t).then(() => this._connection.invoke(\"queryFeatureCount\", e ? e.toJSON() : null, t));\n }\n queryObjectIds(e, t = {}) {\n return this.load(t).then(() => this._connection.invoke(\"queryObjectIds\", e ? e.toJSON() : null, t));\n }\n queryExtent(e, t = {}) {\n return this.load(t).then(() => this._connection.invoke(\"queryExtent\", e ? e.toJSON() : null, t)).then(e => ({\n count: e.count,\n extent: m.fromJSON(e.extent)\n }));\n }\n querySnapping(e, t = {}) {\n return this.load(t).then(() => this._connection.invoke(\"querySnapping\", e, t));\n }\n async _applyEdits(e) {\n if (!this._connection) throw new s(\"feature-layer-source:edit-failure\", \"Memory source not loaded\");\n const t = this.layer.objectIdField;\n let r = null;\n const i = [],\n o = [];\n await Promise.all([this._prepareClientMapping(e.addFeatures, null), this._prepareClientMapping(e.updateFeatures, null)]);\n const n = e => \"objectId\" in e && null != e.objectId ? e.objectId : \"attributes\" in e && null != e.attributes[t] ? e.attributes[t] : null;\n if (e.addFeatures && (r = this._prepareAddFeatures(e.addFeatures)), e.deleteFeatures) for (const s of e.deleteFeatures) {\n const e = n(s);\n null != e && i.push(e);\n }\n const a = e.updateFeatures && this._idToClientGraphic ? new Map() : null;\n if (e.updateFeatures) for (const s of e.updateFeatures) if (o.push(this._serializeFeature(s)), a) {\n const e = n(s);\n null != e && a.set(e, s);\n }\n d(r ? r.features : null, o, this.layer.spatialReference);\n const {\n fullExtent: l,\n featureEditResults: u\n } = await this._connection.invoke(\"applyEdits\", {\n adds: r ? r.features : [],\n updates: o,\n deletes: i\n });\n return this.fullExtent = l, r && r.finish(u.uidToObjectId), this._updateClientGraphicIds(a, u), this._createEditsResult(u);\n }\n async _prepareClientMapping(e, t) {\n if (\"mesh\" !== this._layerOrSourceGeometryType || null == e) return;\n const r = [];\n for (const {\n geometry: s\n } of e) null == s || \"mesh\" !== s.type || s.hasExtent || s.loaded || r.push(s.load({\n signal: t\n }));\n r.length && (await Promise.all(r));\n }\n _updateClientGraphicIds(e, t) {\n if (this._idToClientGraphic) {\n if (e) for (const r of t.updateResults) {\n if (!r.success) continue;\n const t = e.get(r.objectId);\n null != t && this._addIdToClientGraphic(t);\n }\n for (const e of t.deleteResults) e.success && this._idToClientGraphic.delete(e.objectId);\n }\n }\n _createEditsResult(e) {\n return {\n addFeatureResults: e.addResults ? e.addResults.map(this._createFeatureEditResult, this) : [],\n updateFeatureResults: e.updateResults ? e.updateResults.map(this._createFeatureEditResult, this) : [],\n deleteFeatureResults: e.deleteResults ? e.deleteResults.map(this._createFeatureEditResult, this) : [],\n addAttachmentResults: [],\n updateAttachmentResults: [],\n deleteAttachmentResults: []\n };\n }\n _createFeatureEditResult(e) {\n const t = !0 === e.success ? null : e.error || {\n code: void 0,\n description: void 0\n };\n return {\n objectId: e.objectId,\n globalId: e.globalId,\n error: t ? new s(\"feature-layer-source:edit-failure\", t.description, {\n code: t.code\n }) : null\n };\n }\n _prepareAddFeatures(e) {\n const t = new Map(),\n r = new Array(e.length);\n let s = null;\n for (let o = 0; o < e.length; o++) {\n const i = e[o],\n n = this._serializeFeature(i);\n s || null == i.geometry || (s = i.geometry.type), r[o] = n, t.set(`${n.uid}`, i);\n }\n const i = this;\n return {\n features: r,\n inferredGeometryType: s,\n finish(e) {\n const r = i.sourceJSON.objectIdField;\n for (const s in e) {\n const o = e[s],\n n = t.get(s);\n n && (n.attributes || (n.attributes = {}), -1 === o ? delete n.attributes[r] : n.attributes[r] = o, i._addIdToClientGraphic(n));\n }\n }\n };\n }\n _addIdToClientGraphic(e) {\n if (!this._idToClientGraphic) return;\n const t = this.sourceJSON.objectIdField,\n r = e.attributes?.[t];\n null != r && this._idToClientGraphic.set(r, e);\n }\n get _layerOrSourceGeometryType() {\n return this.layer?.geometryType ?? this.sourceJSON?.geometryType;\n }\n _requiresClientGraphicMapping() {\n return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType);\n }\n _geometryRequiresClientGraphicMapping(e) {\n return this._geometryTypeRequiresClientGraphicMapping(e.type);\n }\n _geometryTypeRequiresClientGraphicMapping(e) {\n return \"mesh\" === e || \"multipatch\" === e || \"extent\" === e;\n }\n _serializeFeature(e) {\n const {\n attributes: t\n } = e,\n r = this._geometryForSerialization(e),\n s = (_++).toString();\n return r ? {\n uid: s,\n geometry: r.toJSON(),\n attributes: t\n } : {\n uid: s,\n attributes: t\n };\n }\n _geometryForSerialization(e) {\n const {\n geometry: t\n } = e;\n if (null == t) return null;\n if (this._geometryRequiresClientGraphicMapping(t)) {\n return t.extent ? f.fromExtent(t.extent) : null;\n }\n return t;\n }\n async _startWorker(e) {\n this._connection = await a(\"MemorySourceWorker\", {\n strategy: has(\"feature-layers-workers\") ? \"dedicated\" : \"local\",\n signal: e,\n registryTarget: this\n });\n const {\n fields: t,\n spatialReference: r,\n objectIdField: s,\n hasM: i,\n hasZ: n,\n timeInfo: l,\n dateFieldsTimeZone: u\n } = this.layer,\n p = \"defaults\" === this.layer.originOf(\"spatialReference\");\n await this._prepareClientMapping(this.items, e);\n const c = this._prepareAddFeatures(this.items);\n this.addHandles(this.on(\"before-changes\", e => {\n o.getLogger(this).error(\"Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead\"), e.preventDefault();\n }));\n const d = {\n features: c.features,\n fields: t?.map(e => e.toJSON()),\n geometryType: g.toJSON(this._workerGeometryType),\n hasM: \"mesh\" !== this._layerOrSourceGeometryType && i,\n hasZ: \"mesh\" === this._layerOrSourceGeometryType || n,\n objectIdField: s,\n spatialReference: p ? null : r && r.toJSON(),\n timeInfo: l?.toJSON() ?? null,\n dateFieldsTimeZone: u\n },\n h = await this._connection.invoke(\"load\", d, {\n signal: e\n });\n for (const a of h.warnings) o.getLogger(this.layer).warn(\"#load()\", `${a.message} (title: '${this.layer.title || \"no title\"}', id: '${this.layer.id ?? \"no id\"}')`, {\n warning: a\n });\n h.featureErrors.length && o.getLogger(this.layer).warn(\"#load()\", `Encountered ${h.featureErrors.length} validation errors while loading features. (title: '${this.layer.title || \"no title\"}', id: '${this.layer.id ?? \"no id\"}')`, {\n errors: h.featureErrors\n });\n const y = h.layerDefinition;\n this._geometryTypeRequiresClientGraphicMapping(c.inferredGeometryType) && (y.geometryType = g.toJSON(c.inferredGeometryType)), this.sourceJSON = y, this._requiresClientGraphicMapping() && (this._idToClientGraphic = new Map()), c.finish(h.assignedObjectIds);\n }\n };\ne([p({\n Type: t,\n ensureType: u(t)\n})], T.prototype, \"itemType\", void 0), e([l()], T.prototype, \"type\", void 0), e([l({\n constructOnly: !0\n})], T.prototype, \"layer\", void 0), e([l({\n readOnly: !0\n})], T.prototype, \"_workerGeometryType\", null), e([l()], T.prototype, \"sourceJSON\", void 0), T = e([c(\"esri.layers.graphics.sources.MemorySource\")], T);\nexport { T as MemorySource };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as o } from \"../../chunks/tslib.es6.js\";\nimport s from \"../../core/Accessor.js\";\nimport { property as r } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { subclass as t } from \"../../core/accessorSupport/decorators/subclass.js\";\nlet e = class extends s {\n constructor() {\n super(...arguments), this.updating = !1, this.status = \"unknown\";\n }\n};\no([r()], e.prototype, \"updating\", void 0), o([r()], e.prototype, \"status\", void 0), e = o([t(\"esri.layers.support.PublishingInfo\")], e);\nconst p = e;\nexport { p as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as t } from \"../../chunks/tslib.es6.js\";\nimport { property as s } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { subclass as e } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport r from \"../support/PublishingInfo.js\";\nconst o = Symbol();\nfunction i(t) {\n return null != t && \"object\" == typeof t && o in t;\n}\nconst n = i => {\n var n;\n let u = class extends i {\n constructor() {\n super(...arguments), this[n] = !0;\n }\n get publishingInfo() {\n if (this.destroyed) return null;\n const t = this._get(\"publishingInfo\");\n if (t) return t;\n const s = new r();\n return this._checkPublishingStatus(s), s;\n }\n _checkPublishingStatus(t) {\n const s = 250,\n e = 125;\n let r = 0;\n const o = async s => {\n let n;\n t.updating = !0;\n try {\n n = await this.fetchPublishingStatus();\n } catch (u) {\n n = \"unavailable\";\n }\n \"published\" !== n && \"unavailable\" !== n || (\"publishing\" === t.status && this.refresh(), i.remove()), t.status = n, t.updating = !1, i.removed || (r = setTimeout(o, s, s + e));\n },\n i = {\n removed: !1,\n remove() {\n this.removed = !0, clearTimeout(r);\n }\n };\n this.when().catch(() => i.remove()), o(s), this.addHandles(i);\n }\n };\n return n = o, t([s({\n readOnly: !0,\n clonable: !1\n })], u.prototype, \"publishingInfo\", null), u = t([e(\"esri.layers.mixins.PublishableLayer\")], u), u;\n};\nexport { n as PublishableLayer, i as isPublishableLayer };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../chunks/tslib.es6.js\";\nimport t from \"../PopupTemplate.js\";\nimport \"../renderers/ClassBreaksRenderer.js\";\nimport \"../renderers/DictionaryRenderer.js\";\nimport \"../renderers/DotDensityRenderer.js\";\nimport \"../renderers/HeatmapRenderer.js\";\nimport \"../renderers/PieChartRenderer.js\";\nimport \"../renderers/Renderer.js\";\nimport \"../renderers/SimpleRenderer.js\";\nimport \"../renderers/UniqueValueRenderer.js\";\nimport { read as r } from \"../renderers/support/jsonUtils.js\";\nimport { rendererTypes as i, webSceneRendererTypes as o } from \"../renderers/support/types.js\";\nimport s from \"../request.js\";\nimport { symbolTypes as a } from \"../symbols.js\";\nimport { ClonableMixin as n } from \"../core/Clonable.js\";\nimport l from \"../core/Collection.js\";\nimport p from \"../core/Error.js\";\nimport { clone as u } from \"../core/lang.js\";\nimport d from \"../core/Logger.js\";\nimport { MultiOriginJSONMixin as y } from \"../core/MultiOriginJSONSupport.js\";\nimport { setDeepValue as c } from \"../core/object.js\";\nimport { debounce as m, throwIfAbortError as h, whenOrAbort as f } from \"../core/promiseUtils.js\";\nimport { sqlAnd as b } from \"../core/sql.js\";\nimport { urlToObject as g, join as w } from \"../core/urlUtils.js\";\nimport v from \"../core/Warning.js\";\nimport { property as j } from \"../core/accessorSupport/decorators/property.js\";\nimport { cast as S } from \"../core/accessorSupport/decorators/cast.js\";\nimport { reader as F } from \"../core/accessorSupport/decorators/reader.js\";\nimport { subclass as T } from \"../core/accessorSupport/decorators/subclass.js\";\nimport { writer as I } from \"../core/accessorSupport/decorators/writer.js\";\nimport { excludeTables as E } from \"../core/accessorSupport/layerContainerType.js\";\nimport D from \"../form/FormTemplate.js\";\nimport L from \"../geometry/SpatialReference.js\";\nimport _ from \"./Layer.js\";\nimport { MemorySource as x } from \"./graphics/sources/MemorySource.js\";\nimport { APIKeyMixin as P } from \"./mixins/APIKeyMixin.js\";\nimport { ArcGISService as q } from \"./mixins/ArcGISService.js\";\nimport { BlendLayer as C } from \"./mixins/BlendLayer.js\";\nimport { CustomParametersMixin as M } from \"./mixins/CustomParametersMixin.js\";\nimport { EditBusLayer as O } from \"./mixins/EditBusLayer.js\";\nimport { FeatureEffectLayer as A } from \"./mixins/FeatureEffectLayer.js\";\nimport { FeatureLayerBase as R } from \"./mixins/FeatureLayerBase.js\";\nimport { FeatureReductionLayer as V } from \"./mixins/FeatureReductionLayer.js\";\nimport { OperationalLayer as Q } from \"./mixins/OperationalLayer.js\";\nimport { OrderedLayer as U } from \"./mixins/OrderedLayer.js\";\nimport { PortalLayer as B } from \"./mixins/PortalLayer.js\";\nimport { PublishableLayer as N } from \"./mixins/PublishableLayer.js\";\nimport { RefreshableLayer as $ } from \"./mixins/RefreshableLayer.js\";\nimport { ScaleRangeLayer as G } from \"./mixins/ScaleRangeLayer.js\";\nimport { TemporalLayer as J } from \"./mixins/TemporalLayer.js\";\nimport { titleFromUrlAndName as W, parse as Z, cleanTitle as H } from \"./support/arcgisLayerUrl.js\";\nimport { attributeTableTemplate as k, id as z, labelsVisible as K, opacityDrawingInfo as X, legendEnabled as Y, listMode as ee, popupEnabled as te, screenSizePerspectiveEnabled as re } from \"./support/commonProperties.js\";\nimport { ensureLayerCredential as ie, computeEffectiveEditingEnabled as oe, readGlobalIdField as se, readObjectIdField as ae, createDefaultRenderer as ne, addAttachment as le, updateAttachment as pe, applyEdits as ue, uploadAssets as de, createQuery as ye, deleteAttachments as ce, fetchRecomputedExtents as me, getFeatureType as he, computeDomainFromSubtypes as fe, getFeatureSubtype as be, computeDomainFromTypes as ge, queryAttachments as we, queryObjectIds as ve, queryFeatureCount as je, queryExtent as Se, queryRelatedFeatures as Fe, queryRelatedFeaturesCount as Te, validateBinsQuery as Ie, hasDataChanged as Ee, geometryTypeKebabDict as De } from \"./support/featureLayerUtils.js\";\nimport Le from \"./support/FeatureTemplate.js\";\nimport _e from \"./support/FeatureType.js\";\nimport { defineFieldProperties as xe } from \"./support/fieldProperties.js\";\nimport { fixRendererFields as Pe, fixTimeInfoFields as qe } from \"./support/fieldUtils.js\";\nimport Ce from \"./support/LabelClass.js\";\nimport { reader as Me } from \"./support/labelingInfo.js\";\nimport { getFeatureLayerCapabilities as Oe } from \"./support/serviceCapabilitiesUtils.js\";\nimport Ae from \"./support/TimeInfo.js\";\nimport { serviceSupportsSpatialReference as Re } from \"./support/versionUtils.js\";\nimport { DataLayerSource as Ve } from \"./support/source/DataLayerSource.js\";\nimport { loadStyleRenderer as Qe } from \"../renderers/support/styleUtils.js\";\nimport Ue from \"../rest/support/FeatureSet.js\";\nimport Be from \"../rest/support/Query.js\";\nimport { createPopupTemplate as Ne } from \"../support/popupUtils.js\";\nimport { alphaCutoff as $e } from \"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaCutoff.js\";\nimport { SaveOperationType as Ge } from \"../webdoc/interfaces.js\";\nimport { opacityToTransparency as Je } from \"../webdoc/support/opacityUtils.js\";\nconst We = \"FeatureLayer\";\nfunction Ze(e, t) {\n return new p(\"layer:unsupported\", `Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`, {\n layer: e\n });\n}\nfunction He(e) {\n return e && e instanceof l;\n}\nconst ke = xe();\nfunction ze(e, t, r) {\n const i = !!r?.writeLayerSchema;\n return {\n enabled: i,\n ignoreOrigin: i\n };\n}\nlet Ke = class extends R(V(A(N(O(C(U(J(G($(q(Q(B(y(M(P(n(_))))))))))))))))) {\n constructor(...e) {\n super(...e), this.attributeTableTemplate = null, this.charts = null, this.copyright = null, this.displayField = null, this.dynamicDataSource = null, this.fields = null, this.fieldsIndex = null, this.formTemplate = null, this.fullExtent = null, this.geometryType = null, this.hasM = void 0, this.hasZ = void 0, this.infoFor3D = null, this.isTable = !1, this.labelsVisible = !0, this.labelingInfo = null, this.legendEnabled = !0, this.objectIdField = null, this.outFields = null, this.path = null, this.popupEnabled = !0, this.popupTemplate = null, this.resourceInfo = null, this.screenSizePerspectiveEnabled = !0, this.spatialReference = L.WGS84, this.subtypeCode = null, this.supportedSourceTypes = new Set([\"Feature Layer\", \"Oriented Imagery Layer\", \"Table\", \"Catalog Layer\"]), this.templates = null, this.timeInfo = null, this.title = null, this.sublayerTitleMode = \"item-title\", this.type = \"feature\", this.typeIdField = null, this.types = null, this.visible = !0, this._debouncedSaveOperations = m(async (e, t, r) => {\n const {\n save: i,\n saveAs: o\n } = await import(\"./save/featureLayerUtils.js\");\n switch (e) {\n case Ge.SAVE:\n return i(this, t);\n case Ge.SAVE_AS:\n return o(this, r, t);\n }\n });\n }\n destroy() {\n this.source?.destroy();\n }\n normalizeCtorArgs(e, t) {\n return \"string\" == typeof e ? {\n url: e,\n ...t\n } : e;\n }\n load(e) {\n const t = null != e ? e.signal : null;\n if (this.portalItem?.loaded && this.source) return this.addResolvingPromise(this.createGraphicsSource(t).then(e => this.initLayerProperties(e))), Promise.resolve(this);\n const r = this.loadFromPortal({\n supportedTypes: [\"Feature Service\", \"Feature Collection\", \"Scene Service\"]\n }, e).catch(h).then(async () => {\n if (this.url && null == this.layerId && /FeatureServer|MapServer\\/*$/i.test(this.url)) {\n const e = await this._fetchFirstValidLayerId(t);\n null != e && (this.layerId = e);\n }\n if (!this.url && !this._hasMemorySource()) throw new p(\"feature-layer:missing-url-or-source\", \"Feature layer must be created with either a url or a source\");\n return this.initLayerProperties(await this.createGraphicsSource(t));\n }).then(() => ie(this, \"load\", e));\n return this.addResolvingPromise(r), Promise.resolve(this);\n }\n warnInvisibleDrapedSymbols() {\n \"on-the-ground\" === this.elevationInfo?.mode && \"simple\" === this.renderer?.type && \"polygon-3d\" === this.renderer.symbol?.type && this.renderer.symbol.symbolLayers.some(e => \"fill\" === e.type && null != e.material && (!e.material.color || e.material.color.a * this.opacity < $e) && (this.loadWarnings.push(new v(\"feature-layer:invisible-draped-symbols\", \"FeatureLayer has fully transparent symbols which will no longer render or highlight\", {\n layer: this\n })), !0));\n }\n readCapabilities(e, t) {\n return t = t.layerDefinition || t, Oe(t, this.url);\n }\n get createQueryVersion() {\n return this.commitProperty(\"definitionExpression\"), this.commitProperty(\"dynamicDataSource\"), this.commitProperty(\"timeExtent\"), this.commitProperty(\"timeOffset\"), this.commitProperty(\"geometryType\"), this.commitProperty(\"gdbVersion\"), this.commitProperty(\"historicMoment\"), this.commitProperty(\"returnZ\"), this.commitProperty(\"capabilities\"), this.commitProperty(\"returnM\"), (this._get(\"createQueryVersion\") ?? 0) + 1;\n }\n get editingEnabled() {\n return !(this.loaded && !this.capabilities?.operations.supportsEditing) && (this._isOverridden(\"editingEnabled\") ? this._get(\"editingEnabled\") : this._hasMemorySource() || this.userHasEditingPrivileges);\n }\n set editingEnabled(e) {\n this._overrideIfSome(\"editingEnabled\", e);\n }\n readEditingEnabled(e, t) {\n return this._readEditingEnabled(t, !1);\n }\n readEditingEnabledFromWebMap(e, t, r) {\n return this._readEditingEnabled(t, !0, r);\n }\n writeEditingEnabled(e, t) {\n this._writeEditingEnabled(e, t, !1);\n }\n writeEditingEnabledToWebMap(e, t, r, i) {\n this._writeEditingEnabled(e, t, !0, i);\n }\n get effectiveEditingEnabled() {\n return oe(this);\n }\n readIsTable(e, t) {\n return \"Table\" === (t = t?.layerDefinition ?? t).type || !t.geometryType;\n }\n writeIsTable(e, t, r, i) {\n i?.writeLayerSchema && c(r, e ? \"Table\" : \"Feature Layer\", t);\n }\n readGlobalIdField(e, t) {\n return se(t.layerDefinition || t);\n }\n readObjectIdField(e, t) {\n return ae(t.layerDefinition || t);\n }\n get parsedUrl() {\n const e = g(this.url);\n return null != e && (null != this.dynamicDataSource ? e.path = w(e.path, \"dynamicLayer\") : null != this.layerId && (e.path = w(e.path, this.layerId.toString()))), e;\n }\n get defaultPopupTemplate() {\n return this.createPopupTemplate();\n }\n set renderer(e) {\n Pe(e, this.fieldsIndex), this._set(\"renderer\", e);\n }\n readRenderer(e, t, i) {\n t = t.layerDefinition || t;\n const o = t.drawingInfo?.renderer;\n if (o) {\n const e = r(o, t, i) ?? void 0;\n return e || d.getLogger(this).error(\"Failed to create renderer\", {\n rendererDefinition: t.drawingInfo.renderer,\n layer: this,\n context: i\n }), e;\n }\n return ne(t, i);\n }\n set source(e) {\n const t = this._get(\"source\");\n t !== e && (He(t) && this._resetMemorySource(t), He(e) && this._initMemorySource(e), this._set(\"source\", e));\n }\n castSource(e) {\n return e ? Array.isArray(e) || e instanceof l ? new x({\n layer: this,\n items: e\n }) : e : null;\n }\n readSource(e, t) {\n const r = Ue.fromJSON(t.featureSet);\n return new x({\n layer: this,\n items: r?.features ?? []\n });\n }\n readTemplates(e, t) {\n const r = t.editFieldsInfo,\n i = r?.creatorField,\n o = r?.editorField;\n return e = e?.map(e => Le.fromJSON(e)), this._fixTemplates(e, i), this._fixTemplates(e, o), e;\n }\n readTitle(e, t) {\n const r = t.layerDefinition?.name ?? t.name,\n i = t.title || t.layerDefinition?.title;\n if (r) {\n const e = this.portalItem?.title;\n if (\"item-title\" === this.sublayerTitleMode) return this.url ? W(this.url, r) : r;\n let t = r;\n if (!t && this.url) {\n const e = Z(this.url);\n null != e && (t = e.title);\n }\n if (!t) return;\n return \"item-title-and-service-name\" === this.sublayerTitleMode && e && e !== t && (t = e + \" - \" + t), H(t);\n }\n if (\"item-title\" === this.sublayerTitleMode && i) return i;\n }\n readTitleFromWebMap(e, t) {\n return t.title || t.layerDefinition?.name;\n }\n readTypeIdField(e, t) {\n let r = (t = t.layerDefinition || t).typeIdField;\n if (r && t.fields) {\n r = r.toLowerCase();\n const e = t.fields.find(e => e.name.toLowerCase() === r);\n e && (r = e.name);\n }\n return r;\n }\n readTypes(e, t) {\n e = (t = t.layerDefinition || t).types;\n const r = t.editFieldsInfo,\n i = r?.creatorField,\n o = r?.editorField;\n return e?.map(e => (e = _e.fromJSON(e), this._fixTemplates(e.templates, i), this._fixTemplates(e.templates, o), e));\n }\n readVisible(e, t) {\n return null != t.layerDefinition?.defaultVisibility ? !!t.layerDefinition.defaultVisibility : null != t.visibility ? !!t.visibility : void 0;\n }\n async addAttachment(e, t) {\n const r = await le(this, e, t, We);\n return this.lastEditsEventDate = new Date(), r;\n }\n async updateAttachment(e, t, r) {\n const i = await pe(this, e, t, r, We);\n return this.lastEditsEventDate = new Date(), i;\n }\n async applyEdits(e, t) {\n return ue(this, e, t);\n }\n async uploadAssets(e, t) {\n return de(this, e, t);\n }\n on(e, t) {\n return super.on(e, t);\n }\n createPopupTemplate(e) {\n return Ne(this, e);\n }\n async createGraphicsSource(e) {\n if (this._hasMemorySource() && this.source) return this.source.load({\n signal: e\n });\n const {\n default: t\n } = await f(import(\"./graphics/sources/FeatureLayerSource.js\"), e);\n return new t({\n layer: this,\n supportedSourceTypes: this.supportedSourceTypes\n }).load({\n signal: e\n });\n }\n createQuery() {\n const e = ye(this);\n e.dynamicDataSource = this.dynamicDataSource;\n const t = null != this.subtypeCode ? `${this.subtypeField} = ${this.subtypeCode}` : null,\n r = b(this.definitionExpression, t);\n return e.where = r || \"1=1\", e;\n }\n async deleteAttachments(e, t) {\n const r = await ce(this, e, t, We);\n return this.lastEditsEventDate = new Date(), r;\n }\n async fetchRecomputedExtents(e) {\n return me(this, e, We);\n }\n getFeatureType(e) {\n return he(this.types, this.typeIdField, e);\n }\n getFieldDomain(e, t) {\n const r = t?.feature,\n i = !!this.subtypes?.length;\n if (i && !t?.excludeImpliedDomains) {\n const t = fe(this, e);\n if (t) return t;\n }\n const o = i && be(this, r);\n if (o) {\n const t = o?.domains?.[e];\n return \"inherited\" === t?.type ? this._getLayerDomain(e) : t;\n }\n const s = this.getFeatureType(r),\n a = this._getLayerDomain(e);\n if (s) {\n const t = s.domains && s.domains[e];\n if (t && \"inherited\" !== t?.type) return t;\n }\n if (a) return a;\n if (!t?.excludeImpliedDomains) {\n const t = ge(this, e);\n if (t) return t;\n }\n return null;\n }\n getField(e) {\n return this.fieldsIndex.get(e);\n }\n async queryAttachments(e, t) {\n return we(this, e, t, We);\n }\n async queryFeatures(e, t) {\n const r = await this.load(),\n i = await r.source.queryFeatures(Be.from(e) ?? r.createQuery(), t);\n if (i?.features) for (const o of i.features) o.layer = o.sourceLayer = r;\n return i;\n }\n async queryObjectIds(e, t) {\n return ve(this, e, t, We);\n }\n async queryFeatureCount(e, t) {\n return je(this, e, t, We);\n }\n async queryExtent(e, t) {\n return Se(this, e, t, We);\n }\n async queryRelatedFeatures(e, t) {\n return Fe(this, e, t, We);\n }\n async queryRelatedFeaturesCount(e, t) {\n return Te(this, e, t, We);\n }\n async queryTopFeatures(e, t) {\n const {\n source: r,\n capabilities: i\n } = await this.load();\n if (!r.queryTopFeatures || !i?.query?.supportsTopFeaturesQuery) throw new p(We, \"Layer source does not support queryTopFeatures capability\");\n const o = await import(\"../rest/support/TopFeaturesQuery.js\"),\n s = await r.queryTopFeatures(o.default.from(e), t);\n if (s?.features) for (const a of s.features) a.layer = a.sourceLayer = this;\n return s;\n }\n async queryBins(e, t) {\n const {\n source: r,\n capabilities: i\n } = await this.load();\n if (!r.queryBins || !i?.operations?.supportsQueryBins) throw new p(We, \"Layer source does not support queryBins capability\");\n Ie(e, i, We);\n const o = await import(\"../rest/support/BinsQuery.js\"),\n s = await r.queryBins(o.default.from(e), t);\n if (s.features) for (const a of s.features) a.layer = a.sourceLayer = this;\n return s;\n }\n async queryTopObjectIds(e, t) {\n const {\n source: r,\n capabilities: i\n } = await this.load();\n if (!r.queryTopObjectIds || !i?.query.supportsTopFeaturesQuery) throw new p(We, \"Layer source does not support queryTopObjectIds capability\");\n const o = await import(\"../rest/support/TopFeaturesQuery.js\");\n return r.queryTopObjectIds(o.default.from(e), t);\n }\n async queryTopFeaturesExtent(e, t) {\n const {\n source: r,\n capabilities: i\n } = await this.load();\n if (!r.queryTopExtents || !i?.query?.supportsTopFeaturesQuery) throw new p(We, \"Layer source does not support queryTopExtents capability\");\n const o = await import(\"../rest/support/TopFeaturesQuery.js\");\n return r.queryTopExtents(o.default.from(e), t);\n }\n async queryTopFeatureCount(e, t) {\n const {\n source: r,\n capabilities: i\n } = await this.load();\n if (!r.queryTopCount || !i?.query?.supportsTopFeaturesQuery) throw new p(We, \"Layer source does not support queryFeatureCount capability\");\n const o = await import(\"../rest/support/TopFeaturesQuery.js\");\n return r.queryTopCount(o.default.from(e), t);\n }\n read(e, t) {\n const r = e.featureCollection;\n if ((r || \"Feature Collection\" === e.type) && (this.resourceInfo = e), r) {\n const e = r.layers;\n e && 1 === e.length && (super.read(e[0], t), null != r.showLegend && super.read({\n showLegend: r.showLegend\n }, t));\n }\n super.read(e, t), t && \"service\" === t.origin && (this.revert([\"objectIdField\", \"fields\", \"timeInfo\", \"dateFieldsTimeZone\"], \"service\"), this.spatialReference || this.revert([\"spatialReference\"], \"service\"));\n }\n write(e, t) {\n t = {\n ...t,\n origin: t?.origin ?? void 0,\n writeLayerSchema: t?.writeLayerSchema ?? this._hasMemorySource()\n };\n const {\n origin: r,\n layerContainerType: i,\n messages: o\n } = t;\n if (this.dynamicDataSource) return o?.push(Ze(this, \"using a dynamic data source cannot be written to web scenes, web maps and feature service items\")), null;\n if (this.isTable) {\n if ((\"web-map\" === r || \"web-scene\" === r) && \"tables\" !== i) return o?.push(Ze(this, `a table source can only be written to tables, not ${i}`)), null;\n if (this._hasMemorySource()) return o?.push(Ze(this, \"using an in-memory table source cannot be written to web scenes and web maps\")), null;\n } else if (this.loaded && (\"web-map\" === r || \"web-scene\" === r) && \"tables\" === i) return o?.push(Ze(this, \"using a non-table source cannot be written to tables in web maps or web scenes\")), null;\n return super.write(e, t);\n }\n clone() {\n if (this._hasMemorySource()) throw new p(We, `FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);\n return super.clone();\n }\n serviceSupportsSpatialReference(e) {\n return !!this.loaded && (\"memory\" === this.source?.type || Re(this, e));\n }\n async save(e) {\n return this._debouncedSaveOperations(Ge.SAVE, e);\n }\n async saveAs(e, t) {\n return this._debouncedSaveOperations(Ge.SAVE_AS, t, e);\n }\n _readEditingEnabled(e, t, r) {\n let i = e.layerDefinition?.capabilities;\n return i ? this._hasEditingCapability(i) : (i = e.capabilities, t && \"web-map\" === r?.origin && !this._hasMemorySource() && i ? this._hasEditingCapability(i) : void 0);\n }\n _hasEditingCapability(e) {\n return e.toLowerCase().split(\",\").map(e => e.trim()).includes(\"editing\");\n }\n _writeEditingEnabled(e, t, r, i) {\n if (!e) {\n const e = this.capabilities?.operations?.supportsSync ? \"Query,Sync\" : \"Query\";\n c(\"layerDefinition.capabilities\", e, t), r && !i?.writeLayerSchema && (t.capabilities = e);\n }\n }\n _getLayerDomain(e) {\n const t = this.fieldsIndex.get(e);\n return t ? t.domain : null;\n }\n _fetchFirstValidLayerId(e) {\n return s(this.url ?? \"\", {\n query: {\n f: \"json\",\n ...this.customParameters,\n token: this.apiKey\n },\n responseType: \"json\",\n signal: e\n }).then(e => {\n const t = e.data;\n if (t) return this.findFirstValidLayerId(t);\n });\n }\n async initLayerProperties(e) {\n return this._set(\"source\", e), e.sourceJSON && (this.sourceJSON = e.sourceJSON, this.read(e.sourceJSON, {\n origin: \"service\",\n portalItem: this.portalItem,\n portal: this.portalItem?.portal,\n url: this.parsedUrl\n })), this._verifySource(), this._verifyFields(), Pe(this.renderer, this.fieldsIndex), qe(this.timeInfo, this.fieldsIndex), Qe(this, {\n origin: \"service\"\n });\n }\n async hasDataChanged() {\n return Ee(this);\n }\n async fetchPublishingStatus() {\n const e = this.source;\n return e?.fetchPublishingStatus ? e.fetchPublishingStatus() : \"unavailable\";\n }\n _verifyFields() {\n const e = this.parsedUrl?.path ?? \"undefined\";\n this.objectIdField || console.log(\"FeatureLayer: 'objectIdField' property is not defined (url: \" + e + \")\"), this.isTable || this._hasMemorySource() || -1 !== e.search(/\\/FeatureServer\\//i) || this.fields?.some(e => \"geometry\" === e.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: \" + e + \")\");\n }\n _fixTemplates(e, t) {\n e && e.forEach(e => {\n const r = e.prototype?.attributes;\n r && t && delete r[t];\n });\n }\n _verifySource() {\n if (this._hasMemorySource()) {\n if (this.url) throw new p(\"feature-layer:mixed-source-and-url\", \"FeatureLayer cannot be created with both an in-memory source and a url\");\n } else if (!this.url) throw new p(\"feature-layer:source-or-url-required\", \"FeatureLayer requires either a url, a valid portal item or a source\");\n }\n _initMemorySource(e) {\n e.forEach(e => {\n e.layer = this, e.sourceLayer = this;\n }), this.addHandles([e.on(\"after-add\", e => {\n e.item.layer = this, e.item.sourceLayer = this;\n }), e.on(\"after-remove\", e => {\n e.item.layer = null, e.item.sourceLayer = null;\n })], \"fl-source\");\n }\n _resetMemorySource(e) {\n e.forEach(e => {\n e.layer = null, e.sourceLayer = null;\n }), this.removeHandles(\"fl-source\");\n }\n _hasMemorySource() {\n return !(this.url || !this.source);\n }\n findFirstValidLayerId(e) {\n return Array.isArray(e.layers) && e.layers.length > 0 ? e.layers[0].id : Array.isArray(e.tables) && e.tables.length > 0 ? e.tables[0].id : void 0;\n }\n};\ne([j(k)], Ke.prototype, \"attributeTableTemplate\", void 0), e([F(\"service\", \"capabilities\")], Ke.prototype, \"readCapabilities\", null), e([j({\n json: {\n origins: {\n \"web-scene\": {\n write: !1\n }\n },\n write: !0\n }\n})], Ke.prototype, \"charts\", void 0), e([j({\n readOnly: !0\n})], Ke.prototype, \"createQueryVersion\", null), e([j({\n json: {\n read: {\n source: \"layerDefinition.copyrightText\"\n }\n }\n})], Ke.prototype, \"copyright\", void 0), e([j({\n json: {\n read: {\n source: \"layerDefinition.displayField\"\n }\n }\n})], Ke.prototype, \"displayField\", void 0), e([j({\n types: a,\n readOnly: !0\n})], Ke.prototype, \"defaultSymbol\", void 0), e([j({\n type: Ve\n})], Ke.prototype, \"dynamicDataSource\", void 0), e([j({\n type: Boolean\n})], Ke.prototype, \"editingEnabled\", null), e([F([\"portal-item\", \"web-scene\"], \"editingEnabled\", [\"layerDefinition.capabilities\"])], Ke.prototype, \"readEditingEnabled\", null), e([F(\"web-map\", \"editingEnabled\", [\"capabilities\", \"layerDefinition.capabilities\"])], Ke.prototype, \"readEditingEnabledFromWebMap\", null), e([I([\"portal-item\", \"web-scene\"], \"editingEnabled\", {\n \"layerDefinition.capabilities\": {\n type: String\n }\n})], Ke.prototype, \"writeEditingEnabled\", null), e([I(\"web-map\", \"editingEnabled\", {\n capabilities: {\n type: String\n },\n \"layerDefinition.capabilities\": {\n type: String\n }\n})], Ke.prototype, \"writeEditingEnabledToWebMap\", null), e([j({\n readOnly: !0\n})], Ke.prototype, \"effectiveEditingEnabled\", null), e([j({\n ...ke.fields,\n json: {\n read: {\n source: \"layerDefinition.fields\"\n },\n origins: {\n service: {\n name: \"fields\"\n },\n \"web-map\": {\n write: {\n target: \"layerDefinition.fields\",\n overridePolicy: ze\n }\n }\n }\n }\n})], Ke.prototype, \"fields\", void 0), e([j(ke.fieldsIndex)], Ke.prototype, \"fieldsIndex\", void 0), e([j({\n type: D,\n json: {\n name: \"formInfo\",\n write: !0,\n origins: {\n \"web-scene\": {\n read: !1,\n write: !1\n }\n }\n }\n})], Ke.prototype, \"formTemplate\", void 0), e([j({\n json: {\n read: {\n source: \"layerDefinition.extent\"\n }\n }\n})], Ke.prototype, \"fullExtent\", void 0), e([j({\n json: {\n origins: {\n \"web-map\": {\n write: {\n target: \"layerDefinition.geometryType\",\n overridePolicy: ze,\n writer(e, t, r) {\n const i = e ? De.toJSON(e) : null;\n i && c(r, i, t);\n }\n }\n }\n },\n read: {\n source: \"layerDefinition.geometryType\",\n reader: De.read\n }\n }\n})], Ke.prototype, \"geometryType\", void 0), e([j({\n json: {\n read: {\n source: \"layerDefinition.hasM\"\n }\n }\n})], Ke.prototype, \"hasM\", void 0), e([j({\n json: {\n read: {\n source: \"layerDefinition.hasZ\"\n }\n }\n})], Ke.prototype, \"hasZ\", void 0), e([j(z)], Ke.prototype, \"id\", void 0), e([j({\n readOnly: !0,\n json: {\n origins: {\n service: {\n read: !0\n }\n },\n read: !1\n }\n})], Ke.prototype, \"infoFor3D\", void 0), e([j({\n json: {\n origins: {\n \"web-map\": {\n write: {\n target: \"layerDefinition.type\"\n }\n }\n }\n }\n})], Ke.prototype, \"isTable\", void 0), e([F(\"service\", \"isTable\", [\"type\", \"geometryType\"]), F(\"isTable\", [\"layerDefinition.type\", \"layerDefinition.geometryType\"])], Ke.prototype, \"readIsTable\", null), e([I(\"web-map\", \"isTable\")], Ke.prototype, \"writeIsTable\", null), e([j(K)], Ke.prototype, \"labelsVisible\", void 0), e([j({\n type: [Ce],\n json: {\n origins: {\n service: {\n name: \"drawingInfo.labelingInfo\",\n read: Me,\n write: !1\n },\n \"web-scene\": {\n name: \"layerDefinition.drawingInfo.labelingInfo\",\n read: Me,\n write: {\n enabled: !0,\n layerContainerTypes: E\n }\n }\n },\n name: \"layerDefinition.drawingInfo.labelingInfo\",\n read: Me,\n write: !0\n }\n})], Ke.prototype, \"labelingInfo\", void 0), e([j((() => {\n const e = u(X);\n return e.json.origins[\"portal-item\"] = {\n write: {\n target: \"layerDefinition.drawingInfo.transparency\",\n writer(e, t, r) {\n c(r, Je(e), t);\n }\n }\n }, e;\n})())], Ke.prototype, \"opacity\", void 0), e([j(Y)], Ke.prototype, \"legendEnabled\", void 0), e([j({\n type: [\"show\", \"hide\"],\n json: (() => {\n const e = u(ee.json);\n return e.origins[\"portal-item\"] = {\n read: !1,\n write: !1\n }, e;\n })()\n})], Ke.prototype, \"listMode\", void 0), e([F(\"globalIdField\", [\"layerDefinition.globalIdField\", \"layerDefinition.fields\"])], Ke.prototype, \"readGlobalIdField\", null), e([j({\n json: {\n origins: {\n \"web-map\": {\n write: {\n target: \"layerDefinition.objectIdField\",\n overridePolicy: ze\n }\n }\n }\n }\n})], Ke.prototype, \"objectIdField\", void 0), e([F(\"objectIdField\", [\"layerDefinition.objectIdField\", \"layerDefinition.fields\"])], Ke.prototype, \"readObjectIdField\", null), e([j({\n value: \"ArcGISFeatureLayer\",\n type: [\"ArcGISFeatureLayer\"]\n})], Ke.prototype, \"operationalLayerType\", void 0), e([j(ke.outFields)], Ke.prototype, \"outFields\", void 0), e([j({\n readOnly: !0\n})], Ke.prototype, \"parsedUrl\", null), e([j({\n type: String,\n json: {\n origins: {\n \"web-scene\": {\n read: !0,\n write: !0\n }\n },\n read: !1\n }\n})], Ke.prototype, \"path\", void 0), e([j(te)], Ke.prototype, \"popupEnabled\", void 0), e([j({\n type: t,\n json: {\n name: \"popupInfo\",\n write: !0\n }\n})], Ke.prototype, \"popupTemplate\", void 0), e([j({\n readOnly: !0\n})], Ke.prototype, \"defaultPopupTemplate\", null), e([j({\n types: i,\n json: {\n origins: {\n service: {\n write: {\n target: \"drawingInfo.renderer\",\n enabled: !1\n }\n },\n \"web-scene\": {\n types: o,\n name: \"layerDefinition.drawingInfo.renderer\",\n write: {\n layerContainerTypes: E,\n overridePolicy: (e, t, r) => ({\n ignoreOrigin: r?.writeLayerSchema\n })\n }\n }\n },\n write: {\n target: \"layerDefinition.drawingInfo.renderer\",\n overridePolicy: (e, t, r) => ({\n ignoreOrigin: r?.writeLayerSchema\n })\n }\n }\n})], Ke.prototype, \"renderer\", null), e([F(\"service\", \"renderer\", [\"drawingInfo.renderer\", \"defaultSymbol\"]), F(\"renderer\", [\"layerDefinition.drawingInfo.renderer\", \"layerDefinition.defaultSymbol\"])], Ke.prototype, \"readRenderer\", null), e([j()], Ke.prototype, \"resourceInfo\", void 0), e([j((() => {\n const e = u(re);\n return e.json.origins[\"portal-item\"] = {\n read: !1,\n write: !1\n }, e;\n})())], Ke.prototype, \"screenSizePerspectiveEnabled\", void 0), e([j({\n clonable: !1\n})], Ke.prototype, \"source\", null), e([S(\"source\")], Ke.prototype, \"castSource\", null), e([F(\"portal-item\", \"source\", [\"featureSet\"]), F(\"web-map\", \"source\", [\"featureSet\"])], Ke.prototype, \"readSource\", null), e([j({\n json: {\n read: {\n source: \"layerDefinition.extent.spatialReference\"\n }\n }\n})], Ke.prototype, \"spatialReference\", void 0), e([j({\n type: Number\n})], Ke.prototype, \"subtypeCode\", void 0), e([j({\n type: [Le]\n})], Ke.prototype, \"templates\", void 0), e([F(\"templates\", [\"editFieldsInfo\", \"creatorField\", \"editorField\", \"templates\"])], Ke.prototype, \"readTemplates\", null), e([j({\n type: Ae\n})], Ke.prototype, \"timeInfo\", void 0), e([j()], Ke.prototype, \"title\", void 0), e([F(\"service\", \"title\", [\"name\"]), F(\"portal-item\", \"title\", [\"layerDefinition.title\", \"layerDefinition.name\", \"title\"])], Ke.prototype, \"readTitle\", null), e([F(\"web-map\", \"title\", [\"layerDefinition.name\", \"title\"])], Ke.prototype, \"readTitleFromWebMap\", null), e([j({\n type: String\n})], Ke.prototype, \"sublayerTitleMode\", void 0), e([j({\n json: {\n read: !1\n }\n})], Ke.prototype, \"type\", void 0), e([j({\n type: String\n})], Ke.prototype, \"typeIdField\", void 0), e([F(\"service\", \"typeIdField\"), F(\"typeIdField\", [\"layerDefinition.typeIdField\"])], Ke.prototype, \"readTypeIdField\", null), e([j({\n type: [_e]\n})], Ke.prototype, \"types\", void 0), e([F(\"service\", \"types\", [\"types\"]), F(\"types\", [\"layerDefinition.types\"])], Ke.prototype, \"readTypes\", null), e([j({\n type: Boolean,\n json: {\n origins: {\n \"portal-item\": {\n write: {\n target: \"layerDefinition.defaultVisibility\"\n }\n }\n }\n }\n})], Ke.prototype, \"visible\", void 0), e([F(\"portal-item\", \"visible\", [\"visibility\", \"layerDefinition.defaultVisibility\"])], Ke.prototype, \"readVisible\", null), Ke = e([T(\"esri.layers.FeatureLayer\")], Ke);\nconst Xe = Ke;\nexport { Xe as default };"],"mappings":"40FAyBA,IAAIA,GAAI,EACNC,EAAI,cAAcC,GAAE,cAAcC,GAAEC,CAAC,CAAC,CAAE,CACtC,YAAY,EAAG,CACb,MAAM,CAAC,EAAG,KAAK,mBAAqB,KAAM,KAAK,KAAO,QACxD,CACA,KAAK,EAAG,CACN,IAAM,EAAY,GAAR,KAAY,EAAE,OAAS,KACjC,OAAO,KAAK,oBAAoB,KAAK,aAAa,CAAC,CAAC,EAAG,QAAQ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AE,CACvC,KAAM,MACR,CAAC,CAAC,EAAG9B,EAAG,UAAW,cAAe,MAAM,EAAGgB,EAAE,CAACE,EAAE,UAAW,aAAa,EAAGA,EAAE,cAAe,CAAC,6BAA6B,CAAC,CAAC,EAAGlB,EAAG,UAAW,kBAAmB,IAAI,EAAGgB,EAAE,CAACc,EAAE,CAC1K,KAAM,CAAC3B,CAAE,CACX,CAAC,CAAC,EAAGH,EAAG,UAAW,QAAS,MAAM,EAAGgB,EAAE,CAACE,EAAE,UAAW,QAAS,CAAC,OAAO,CAAC,EAAGA,EAAE,QAAS,CAAC,uBAAuB,CAAC,CAAC,EAAGlB,EAAG,UAAW,YAAa,IAAI,EAAGgB,EAAE,CAACc,EAAE,CACvJ,KAAM,QACN,KAAM,CACJ,QAAS,CACP,cAAe,CACb,MAAO,CACL,OAAQ,mCACV,CACF,CACF,CACF,CACF,CAAC,CAAC,EAAG9B,EAAG,UAAW,UAAW,MAAM,EAAGgB,EAAE,CAACE,EAAE,cAAe,UAAW,CAAC,aAAc,mCAAmC,CAAC,CAAC,EAAGlB,EAAG,UAAW,cAAe,IAAI,EAAGA,EAAKgB,EAAE,CAACK,EAAE,0BAA0B,CAAC,EAAGrB,CAAE,EAC3M,IAAMiD,GAAKjD","names":["_","T","m","n","V","_0","__async","r","t","s","d","i","o","e","w","a","l","u","v","p","has","c","h","y","e","b","r","m","a","p","o","n","i","u","t","s","p","r","o","__async","m","a","We","Ze","s","He","V","ke","ze","Ke","B","c","n","F","l","p","t","f","b","j","S","e","i","g","k","r","__async","o","A","__spreadValues","a","J","Z","D","I","z","T","d","w","m","q","x","h","M","v","W","Q","U","O","P","E","L","C","_","__spreadProps","R","K","u","Xe"],"x_google_ignoreList":[0,1,2,3]}