const e=new class{constructor(){this.RTE_DTO_RENDERER_MAP=new Map,this.RTE_TOOLBAR_BUTTON_RENDERER_MAP=new Map}registerRTEDTORenderer(e,r){const t=this.RTE_DTO_RENDERER_MAP.get(e);if(r&&t&&t.constructor.name!==r.constructor.name)throw new Error(`Renderer for type ${e} is already registered with a different class(${t.constructor.name}).`);this.RTE_DTO_RENDERER_MAP.set(e,r)}registerRTEToolbarButtonRenderer(e,r){this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.set(e,r)}getRTERenderer(e){return this.RTE_DTO_RENDERER_MAP.get(e)}getRTEToolbarButtonRenderer(e){return this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.get(e)}};export{e as R}