1import{a as P}from"./chunk-F7PEUPO7.js";import{D as p,G as $,H as M,P as x,S as z,W as E,c as d,da as T,f as y,ha as b,ma as v,x as W,ya as h,z as C}from"./chunk-XPHYESLE.js";import{g as U}from"./chunk-3IKYG4ZB.js";var j=U(P());function R(l,u,i,a={terminateOnComplete:!0}){return new d(t=>{let e,n;try{e=l(),e.onmessage=r=>t.next(r.data),e.onerror=r=>t.error(r),n=u.pipe(v(),h(r=>{if(i&&r.hasValue){let o=i(r.value);e.postMessage(r,o)}else e.postMessage(r)})).subscribe()}catch(r){t.error(r)}return()=>{n&&n.unsubscribe(),e&&a.terminateOnComplete&&e.terminate()}}).pipe(p(({kind:t,value:e,error:n})=>new C(t,e,n)),T())}function O(l,u,i){let{selectTransferables:a=void 0,workerCount:t=navigator.hardwareConcurrency?navigator.hardwareConcurrency-1:null,fallbackWorkerCount:e=3,flattenOperator:n=$()}=i||{};return new d(r=>{let o=new y,f=0,g=0,k=!1,w=Array.from({length:t!==null?t:e}).map((s,m)=>{let c=null;return{factory(){return c||(c=l(m)),c},terminate(){!this.processing&&c&&c.terminate()},processing:!1,index:m}}),A=z(o,u).pipe(h(([s])=>{g++,s.processing=!0}),b(()=>{o.complete(),k=!0,w.forEach(s=>s.terminate())}),p(([s,m])=>{let c=M(W(m),x);return R(()=>s.factory(),c,a,{terminateOnComplete:!1}).pipe(b(()=>{f++,s.processing=!1,k?s.terminate():o.next(s),k&&f===g&&r.complete()}))}),n).subscribe(r);return w.forEach(s=>o.next(s)),()=>A.unsubscribe()})}function _(l,u){return O(()=>new Worker(new URL("worker-DADTXKE6.js",import.meta.url),{type:"module"}),Object.keys(l).map(i=>{let a=l[i],t=Math.ceil(a.size/u),e=[],n=0;for(let r=1;r<=t;r++){let o=Math.min(n+u,a.size),f=a.slice(n,o);e.push({id:i,index:r,data:f}),n=o}return e}).flat()).pipe(E(),p(i=>{let a=i.reduce((t,e)=>(t[e.id]=[...t[e.id]??[],e],t),{});return Object.keys(a).reduce((t,e)=>{let n=[...a[e]];return n.sort((r,o)=>r.index-o.index),t[e]=`${(0,j.md5)(n.map(r=>r.crc).flat())}-${n.length}`,t},{})}))}export{_ as a}; 2/**i18n:223b62bb93d2a3e7bd7733f57a7bc04723744db96c93dcac397d58c320eb8b7b*/
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.