import s from"@arcgis/core/core/Handles.js";class e{}export function handles(r){const t=r?.prototype?.destroy;return class extends(r??e){_handles=new s;destroy(){return this._handles.destroy(),t?.call(this)??void 0}}}