1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`26799787-7821-4387-8c89-b8574c366fa9`,e._sentryDebugIdIdentifier=`sentry-dbid-26799787-7821-4387-8c89-b8574c366fa9`)}catch{}})();var e=[`stolen`,`copyright`,`wrong-credit`,`inappropriate`,`duplicate`,`broken`,`other`],t={stolen:`Stolen â it's my work`,copyright:`Copyright or trademark`,"wrong-credit":`Wrong or missing credit`,inappropriate:`Inappropriate content`,duplicate:`Duplicate icon`,broken:`Broken or low-quality file`,other:`Something else`},n=[`stolen`,`copyright`,`wrong-credit`],r=[`open`,`reviewing`,`actioned`,`rejected`],i={open:`Open`,reviewing:`Reviewing`,actioned:`Actioned`,rejected:`No action`},a={open:`warning`,reviewing:`info`,actioned:`success`,rejected:`neutral`},o=4e3,s=8e3;function c(t){return typeof t==`string`&&e.includes(t)}function l(e){return typeof e==`string`&&r.includes(e)}function u(e){return l(e)?i[e]:String(e||`open`)}function d(e){return l(e)?a[e]:`neutral`}function f(e){if(typeof e!=`string`)return``;let t=e.trim();if(!t)return``;let n=/^[a-z][a-z0-9+.-]*:/i.test(t)?t:`https://${t}`;try{let e=new URL(n);return e.protocol!==`http:`&&e.protocol!==`https:`?``:e.toString()}catch{return``}}function p(e,t=140){let n=String(e||``).replace(/\s+/g,` `).trim();return n.length<=t?n:`${n.slice(0,t-1).trimEnd()}â¦`}var m=`general`,h=`report:`;function g(e){let t=String(e||``).trim();return t?`${h}${t}`:m}function _(e){return g(e?.relatedReportId||``)}function v(e){let t=String(e||``).trim();if(t.startsWith(h)){let e=t.slice(7).trim();if(e)return{kind:`report`,reportId:e}}return{kind:`general`,reportId:``}}function y(e,t){return String(e.createdAt||``).localeCompare(String(t.createdAt||``))}function b(e,t={}){let n=t.ownerName||`macOSicons`,r=t.reportTitles||{},i=new Map,a=e=>{let t=i.get(e);if(t)return t;let{kind:a,reportId:o}=v(e),s={id:e,kind:a,reportId:o,title:a===`general`?n:r[o]||`Report`,subtitle:a===`general`?``:`Report`,iconId:``,iconName:``,iconThumbnailUrl:``,messages:[],lastMessageAt:null,lastMessagePreview:``,lastMessageFromOwner:!1,unreadCount:0};return i.set(e,s),s};a(m);for(let t of e||[]){if(!t)continue;let e=a(_(t));e.messages.push(t),e.kind===`report`&&t.relatedIcon?.id&&(e.iconId=t.relatedIcon.id,t.relatedIcon.appName&&(e.iconName=t.relatedIcon.appName,e.title=t.relatedIcon.appName)),t.sender===`admin`&&!t.readByUser&&(e.unreadCount+=1)}for(let e of i.values()){e.messages.sort(y);let t=e.messages[e.messages.length-1];t&&(e.lastMessageAt=t.createdAt,e.lastMessagePreview=p(t.body,80),e.lastMessageFromOwner=t.sender===`admin`)}return[...i.values()].sort((e,t)=>!e.lastMessageAt&&!t.lastMessageAt?e.id.localeCompare(t.id):e.lastMessageAt?t.lastMessageAt?t.lastMessageAt.localeCompare(e.lastMessageAt):-1:1)}function x(e){return(e||[]).reduce((e,t)=>e+t.unreadCount,0)}var S=36e5;function C(e){if(!e)return``;let t=new Date(e);return Number.isNaN(t.getTime())?``:`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`}function w(e){if(!e)return NaN;let t=new Date(e).getTime();return Number.isNaN(t)?NaN:t}function T(e,t=S){let n=[],r=NaN,i=``;for(let a of e||[]){if(!a)continue;let e=w(a.createdAt),o=C(a.createdAt),s=!Number.isNaN(e),c=!!o&&!!i&&o!==i,l=s&&!Number.isNaN(r)&&e-r>t;(n.length===0||c||l)&&n.push({key:`g${n.length}-${a.id}`,startedAt:a.createdAt,runs:[]});let u=n[n.length-1],d=u.runs[u.runs.length-1];!d||d.sender!==a.sender?u.runs.push({key:`r-${a.id}`,sender:a.sender,messages:[a]}):d.messages.push(a),s&&(r=e),o&&(i=o)}return n}function E(e){let t=new Map;for(let n of e||[])n&&t.set(n.id,n);let n=new Map,r=new Map;for(let i of e||[]){if(!i)continue;let e=``,a=i.replyToId||``;for(let n=0;a&&a!==i.id&&n<8;n++){let n=t.get(a);if(!n)break;e=a,a=n.replyToId||``}if(n.set(i.id,e),e){let t=r.get(e)||[];t.push(i),r.set(e,t)}}return{rootOf:n,replies:r}}function D(e,t,n){let r=t?(e||[]).find(e=>e?.id===t):void 0;return r?{id:r.id,name:r.sender===n?`yourself`:r.senderName||`them`,preview:p(r.body,80)}:null}export{f as _,T as a,x as c,e as d,n as f,p as g,c as h,g as i,s as l,r as m,b as n,v as o,t as p,E as r,D as s,m as t,o as u,d as v,u as y};
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.