1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`1.0.0`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`a243a336-be3f-488f-89ff-ad230533a959`,e._sentryDebugIdIdentifier=`sentry-dbid-a243a336-be3f-488f-89ff-ad230533a959`)}catch{}})();import{r as e}from"./rolldown-runtime-CjDDarHI.js";import{c as t}from"./analytics-vendor-ClWvVIGM.js";import{Gt as n,Tn as r,c as i,w as a}from"./vendor-sYYAGAZv.js";import{g as o}from"./pdf-vendor-BqQfIjDP.js";import"./Icons-BmgYLLjD.js";var s=e(t(),1),c=o(),l=(0,s.createContext)(void 0),u=()=>{let e=(0,s.useContext)(l);if(!e)throw Error(`useToast must be used within a ToastProvider`);return e},d=({children:e})=>{let[t,o]=(0,s.useState)([]),u=(0,s.useCallback)(e=>{o(t=>t.filter(t=>t.id!==e))},[]),d=(0,s.useCallback)(e=>{let t=Math.random().toString(36).substring(2,9),n={...e,id:t};o(e=>[...e,n]),e.duration!==0&&setTimeout(()=>{u(t)},e.duration||4e3)},[u]),f=(0,s.useMemo)(()=>({success:(e,t)=>d({type:`success`,message:e,title:t}),error:(e,t)=>d({type:`error`,message:e,title:t}),info:(e,t)=>d({type:`info`,message:e,title:t}),warning:(e,t)=>d({type:`warning`,message:e,title:t})}),[d]);return(0,c.jsxs)(l.Provider,{value:{toast:f,addToast:d,removeToast:u},children:[e,(0,c.jsx)(`div`,{className:`fixed top-4 right-4 z-[9999] flex flex-col gap-3 w-full max-w-sm pointer-events-none p-4 md:p-0`,children:t.map(e=>(0,c.jsxs)(`div`,{className:`pointer-events-auto flex w-full transform overflow-hidden rounded-lg bg-surface-card shadow-lg ring-1 transition-all duration-300 animate-in slide-in-from-top-5 fade-in ${e.type===`success`?`ring-success-fg/20`:e.type===`error`?`ring-danger-fg/20`:e.type===`warning`?`ring-warning-fg/20`:`ring-info-fg/20`}`,children:[(0,c.jsxs)(`div`,{className:`p-4 flex items-start gap-3 w-full`,children:[(0,c.jsxs)(`div`,{className:`shrink-0 mt-0.5`,children:[e.type===`success`&&(0,c.jsx)(r,{className:`h-5 w-5 text-success-fg`}),e.type===`error`&&(0,c.jsx)(a,{className:`h-5 w-5 text-danger-fg`}),e.type===`warning`&&(0,c.jsx)(a,{className:`h-5 w-5 text-warning-fg`}),e.type===`info`&&(0,c.jsx)(n,{className:`h-5 w-5 text-info-fg`})]}),(0,c.jsxs)(`div`,{className:`flex-1`,children:[e.title&&(0,c.jsx)(`p`,{className:`text-sm font-bold text-ink`,children:e.title}),(0,c.jsx)(`p`,{className:`text-sm text-ink-mut leading-tight`,children:e.message})]}),(0,c.jsx)(`button`,{onClick:()=>u(e.id),className:`text-ink-mut hover:text-ink shrink-0`,children:(0,c.jsx)(i,{className:`h-4 w-4`})})]}),(0,c.jsx)(`div`,{className:`absolute bottom-0 left-0 h-1 w-full origin-left animate-[shrink_4s_linear_forwards] ${e.type===`success`?`bg-success-fg`:e.type===`error`?`bg-danger-fg`:e.type===`warning`?`bg-warning-fg`:`bg-info-fg`}`})]},e.id))}),(0,c.jsx)(`style`,{children:` 2 @keyframes shrink { 3 from { transform: scaleX(1); } 4 to { transform: scaleX(0); } 5 } 6 `})]})};export{u as n,d 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.