1import{a as l,o as c,t as m}from"./s38czHs1.js";import{Un as f,er as S,on as g}from"./DStU2pOR.js";import{a as d,i as p,n as u}from"./BzcFU6T9.js";var i="favorite_venues";function F(){try{return new Set(JSON.parse(m(i)??"[]"))}catch{return new Set}}var a=S(F());function w(){c(i,JSON.stringify([...a.value]))}f(a,w,{deep:!0});function v(e,r){p(t=>({favorite_venues:{...t.favorite_venues??{},[String(e)]:r}}))}var y=e=>Object.values(e).filter(r=>r!==!1&&r!=null),h=e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length,s=!1;f([u,()=>d.value.favorite_venues],([e,r])=>{if(e){if(h(r))a.value=new Set(y(r));else if(a.value.size&&!s){s=!0;for(const t of a.value)v(t,t)}}},{immediate:!0});function b(){function e(t){const o=new Set(a.value),n=!o.has(t);n?o.add(t):o.delete(t),a.value=o,u.value&&v(t,n?t:!1)}function r(t){return a.value.has(t)}return{toggleFavorite:e,isFavorite:r,favoriteIds:g(()=>[...a.value])}}function j(){a.value=new Set,s=!1,l(i)}export{b as n,j as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.