import{DirectiveRegistry as d,Utils as m}from"../index.js";const{dashToCamel:v,memoize:h,createFunction:f}=m,x=h(v),p=/(.+)(\((.*)\)){1}/,b={attribute:(n,e)=>e.startsWith("@"),process:({attributeName:n,targetNode:e,scopeNode:r,expression:s,context:i})=>{const a=x(n.slice(1)),l=p.test(s||""),u=function(c){let o=f("event","item",`return ${s};`),t;return l||(t=o.call(r)),t?t(c,i):o.call(r,c,i())};return e.addEventListener(a,u),{removeAttribute:!0}}};d.add(b);
