function n(n){if(!n)return null;const u=n.querySelector("slot");if(!u)return null;return u.assignedElements({flatten:!0})[0]||null}function u(n,u){return n&&u>0&&n.length>u?n.substring(0,u)+"...":n}function l(u,l,e){u.then((()=>{!function(u,l){const e=n(u);e&&l&&(e.value=l)}(l,e)}))}function e(u,l){const e=function(u){const l=n(u);if(!l)return"";const e=l.value;return null!=e?String(e):""}(u);return e!==l?e:l}function t(n,u,l){if(!l)return{shouldClose:!1,newValue:null};if(!n.composedPath().includes(u)){return{shouldClose:!0,newValue:e(u.shadowRoot,u.value||"")}}return{shouldClose:!1,newValue:null}}function r(n,u,l){if(!l)return{shouldClose:!1,newValue:null};if(!n.composedPath().includes(u)){return{shouldClose:!0,newValue:e(u.shadowRoot,u.value||"")}}return{shouldClose:!1,newValue:null}}export{r as a,u as g,t as h,l as u};
