{"version":3,"sources":["node_modules/@arcgis/core/core/support/OwningCollection.js","node_modules/@arcgis/core/support/GraphicsCollection.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 t from \"../Collection.js\";\nimport { castForReferenceSetter as s, referenceSetter as o } from \"../collectionUtils.js\";\nimport \"../has.js\";\nimport \"../Logger.js\";\nimport { property as r } from \"../accessorSupport/decorators/property.js\";\nimport \"../RandomLCG.js\";\nimport { subclass as i } from \"../accessorSupport/decorators/subclass.js\";\nlet n = class extends t {\n constructor(e) {\n super(e), this.addHandles([this.on(\"before-add\", e => {\n null == e.item && e.preventDefault();\n }), this.on(\"after-add\", e => this._own(e.item)), this.on(\"after-remove\", e => this._release(e.item))]);\n }\n get owner() {\n return this._get(\"owner\");\n }\n set owner(e) {\n e !== this._get(\"owner\") && (this._releaseAll(), this._set(\"owner\", e), this._ownAll());\n }\n _ownAll() {\n for (const e of this.items) this._own(e);\n }\n _releaseAll() {\n for (const e of this.items) this._release(e);\n }\n _createNewInstance(e) {\n return this.itemType ? new (t.ofType(this.itemType.Type))(e) : new t(e);\n }\n};\nfunction l(e, t) {\n return {\n type: e,\n cast: s,\n set(s) {\n const r = o(s, this._get(t), e);\n r.owner = this, this._set(t, r);\n }\n };\n}\ne([r()], n.prototype, \"owner\", null), n = e([i(\"esri.core.support.OwningCollection\")], n);\nexport { n as OwningCollection, l as owningCollectionProperty };","/*\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 r } from \"../chunks/tslib.es6.js\";\nimport o from \"../Graphic.js\";\nimport \"../core/Logger.js\";\nimport { ensureType as e } from \"../core/accessorSupport/ensureType.js\";\nimport \"../core/RandomLCG.js\";\nimport \"../core/has.js\";\nimport \"../core/Error.js\";\nimport { shared as s } from \"../core/accessorSupport/decorators/shared.js\";\nimport { subclass as p } from \"../core/accessorSupport/decorators/subclass.js\";\nimport { OwningCollection as t } from \"../core/support/OwningCollection.js\";\nlet c = class extends t {\n _own(r) {\n r.layer && \"remove\" in r.layer && r.layer !== this.owner && r.layer.remove(r), r.layer = this.owner;\n }\n _release(r) {\n r.layer === this.owner && (r.layer = null);\n }\n};\nr([s({\n Type: o,\n ensureType: e(o)\n})], c.prototype, \"itemType\", void 0), c = r([p(\"esri.support.GraphicsCollection\")], c);\nexport { c as GraphicsCollection };"],"mappings":"qQAYA,IAAIA,EAAI,cAAcC,CAAE,CACtB,YAAY,EAAG,CACb,MAAM,CAAC,EAAG,KAAK,WAAW,CAAC,KAAK,GAAG,aAAcC,GAAK,CAC5CA,EAAE,MAAV,MAAkBA,EAAE,eAAe,CACrC,CAAC,EAAG,KAAK,GAAG,YAAaA,GAAK,KAAK,KAAKA,EAAE,IAAI,CAAC,EAAG,KAAK,GAAG,eAAgBA,GAAK,KAAK,SAASA,EAAE,IAAI,CAAC,CAAC,CAAC,CACxG,CACA,IAAI,OAAQ,CACV,OAAO,KAAK,KAAK,OAAO,CAC1B,CACA,IAAI,MAAM,EAAG,CACX,IAAM,KAAK,KAAK,OAAO,IAAM,KAAK,YAAY,EAAG,KAAK,KAAK,QAAS,CAAC,EAAG,KAAK,QAAQ,EACvF,CACA,SAAU,CACR,QAAW,KAAK,KAAK,MAAO,KAAK,KAAK,CAAC,CACzC,CACA,aAAc,CACZ,QAAW,KAAK,KAAK,MAAO,KAAK,SAAS,CAAC,CAC7C,CACA,mBAAmB,EAAG,CACpB,OAAO,KAAK,SAAW,IAAKD,EAAE,OAAO,KAAK,SAAS,IAAI,GAAG,CAAC,EAAI,IAAIA,EAAE,CAAC,CACxE,CACF,EACA,SAASE,EAAE,EAAG,EAAG,CACf,MAAO,CACL,KAAM,EACN,KAAMC,EACN,IAAIC,EAAG,CACL,IAAMC,EAAIN,EAAEK,EAAG,KAAK,KAAK,CAAC,EAAG,CAAC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