function n(n){return o(n,"dir","ltr")}function t(n){return o(n,"theme","light")}function o(n,t,o){const u=n.closest(`[${t}]`);return u?u.getAttribute(t):o}function u(n){n&&("setFocus"in n&&"function"==typeof n.setFocus?n.setFocus():n.focus())}function r(n,t,o){const u=`[slot="${t}"]`;return(null==o?void 0:o.all)?function(n,t,o){let u=Array.from(n.querySelectorAll(t));u=o&&!1===o.direct?u:u.filter(t=>t.parentElement===n);const r=null==o?void 0:o.selector;return r?u.map(n=>n.querySelector(r)).filter(n=>!!n):u}(n,u,o):function(n,t,o){let u=n.querySelector(t);u=o&&!1===o.direct||(null==u?void 0:u.parentElement)===n?u:null;const r=null==o?void 0:o.selector;return r?u.querySelector(r):u}(n,u,o)}export{r as a,n as b,u as f,t as g}