1import{c as e,n as t}from"./jsx-runtime-DQYatRE7.js";import{t as n}from"./compiler-runtime-B8YkK2wH.js";import{r}from"./assert-DGVD2UuV.js";var i=n(),a=e(t(),1),o=1,s=1e6,c=0;function l(){return c=(c+1)%(2**53-1),c.toString()}var u=new Map,d=e=>{if(u.has(e))return;let t=setTimeout(()=>{u.delete(e),h({type:`REMOVE_TOAST`,toastId:e})},s);u.set(e,t)},f=(e,t)=>{switch(t.type){case`ADD_TOAST`:return{...e,toasts:[t.toast,...e.toasts].slice(0,o)};case`UPDATE_TOAST`:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case`DISMISS_TOAST`:{let{toastId:n}=t;return n?d(n):e.toasts.forEach(e=>{d(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case`REMOVE_TOAST`:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};default:return r(t)}},p=[],m={toasts:[]};function h(e){m=f(m,e),p.forEach(e=>{e(m)})}function g({...e}){let t=l(),n=e=>h({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>h({type:`DISMISS_TOAST`,toastId:t});return h({type:`ADD_TOAST`,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function _(){let e=(0,i.c)(5),[t,n]=a.useState(m),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>(p.push(n),()=>{let e=p.indexOf(n);e>-1&&p.splice(e,1)}),e[0]=r):r=e[0];let o;e[1]===t?o=e[2]:(o=[t],e[1]=t,e[2]=o),a.useEffect(r,o);let s;return e[3]===t?s=e[4]:(s={...t,toast:g,dismiss:v},e[3]=t,e[4]=s),s}function v(e){return h({type:`DISMISS_TOAST`,toastId:e})}export{_ 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.