let registry=[],watchedIcons=[];export function watchIcon(r){watchedIcons.push(r)}export function unwatchIcon(r){watchedIcons=watchedIcons.filter((e=>e!==r))}export function getIconLibrary(r){var e;return null===(e=null===window||void 0===window?void 0:window.registry)||void 0===e?void 0:e.filter((e=>e.name===r))[0]}export function registerIconLibrary(r,e){unregisterIconLibrary(r),registry.push({name:r,resolver:e.resolver,mutator:e.mutator}),window.registry=registry,watchedIcons.map((e=>{e.library===r&&e.redraw()}))}export function unregisterIconLibrary(r){registry=registry.filter((e=>e.name!==r)),window.registry=registry}window.ceRegisterIconLibrary=registerIconLibrary;