import{E as e}from"./utils-7Gdj77QB.js";import{r as t}from"./plugins-CCU8jDti.js";function n(e){let n=t(e);return n?n===`discord`||n===`telegram`:!1}function r(e){return a(e)}function i(e){return a(e)}function a(e){let{providerId:t,providerSetting:r,globalSetting:i}=e,a=r===void 0?i:r;return a===!0?!0:a===!1?!1:n(t)}function o(e){let{providerSetting:t,globalSetting:n}=e;return t===!1?!0:t===void 0?n===!1:!1}function s(t,n){let{commands:r}=t??{};if(!(!e(r)||!Object.hasOwn(r,n)))return r[n]}function c(e,t){return s(e,t)===!0}function l(e){return s(e,`restart`)!==!1}export{r as a,i,o as n,l as r,c as t};
