!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"d59f3e13055072acb481db3c59603d296982e8b2"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e7ef7a8b-2ac4-4dca-995e-966b88537a1d",e._sentryDebugIdIdentifier="sentry-dbid-e7ef7a8b-2ac4-4dca-995e-966b88537a1d")}catch(e){}}(),self.onmessage=function(e){const{collection:n,sortBy:a}=e.data,t={"alpha-asc":(e,n)=>String(e.label).localeCompare(String(n.label),void 0,{sensitivity:"accent",ignorePunctuation:!0,numeric:!0}),"alpha-desc":(e,n)=>String(n.label).localeCompare(String(e.label),void 0,{sensitivity:"accent",ignorePunctuation:!0,numeric:!0}),"num-asc":(e,n)=>String(e.pill_raw||e.pill||e.actualCount||e.count||0).localeCompare(String(n.pill_raw||n.pill||n.actualCount||n.count||0),void 0,{sensitivity:"accent",ignorePunctuation:!0,numeric:!0}),"num-desc":(e,n)=>String(n.pill_raw||n.pill||n.actualCount||n.count||0).localeCompare(String(e.pill_raw||e.pill||e.actualCount||e.count||0),void 0,{sensitivity:"accent",ignorePunctuation:!0,numeric:!0})},i=t[a]||t["alpha-asc"],l=n.slice().sort(i);self.postMessage(l)};