/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as r}from"tslib";import e from"../Graphic.js";import{subclass as o}from"../core/accessorSupport/decorators.js";import{ensureType as s}from"../core/accessorSupport/ensureType.js";import{OwningCollection as p}from"../core/support/OwningCollection.js";import{shared as t}from"../core/accessorSupport/decorators/shared.js";let i=class extends p{_own(r){r.layer&&"remove"in r.layer&&r.layer!==this.owner&&r.layer.remove(r),r.layer=this.owner}_release(r){r.layer===this.owner&&(r.layer=null)}};r([t({Type:e,ensureType:s(e)})],i.prototype,"itemType",void 0),i=r([o("esri.support.GraphicsCollection")],i);export{i as GraphicsCollection};
