import{a3 as t}from"./index-nE6cslhy.js";import{r as a}from"./vendor-react-Co0R0q1H.js";const e=a=>(a.type??a.payload_type)===t.ADVERT,n=a=>(a.type??a.payload_type)===t.TRACE,o=a=>(a.type??a.payload_type)===t.TXT_MSG,s=a=>(a.type??a.payload_type)===t.PATH,r=a=>(a.type??a.payload_type)===t.ACK,p=a=>{const e=a.type??a.payload_type;return e===t.GRP_TXT||e===t.GRP_DATA},y=t=>(t.path_length??(Array.isArray(t.original_path)?t.original_path.length:0))>0,f=t=>!!t.src_hash,c=t=>null!=t.airtime_ms,i=new Set,_=new Map;function l(t,a){return`${t}|${a}`}function d(t,a){const e=l(t,a);_.set(e,(_.get(e)??0)+1)}function u(t,a){const e=l(t,a),n=_.get(e)??0;n>1?_.set(e,n-1):_.delete(e)}function g(t){for(const a of t){const t=l(a.target,a.fn);i.has(t)||i.add(t)}}function h(t){a.useEffect(()=>{for(const a of t)d(a.target,a.fn);return()=>{for(const a of t)u(a.target,a.fn)}},[t])}export{y as a,f as b,o as c,r as d,e,n as f,s as g,c as h,p as i,g as r,h as u};
