1import{t as e}from"./CwpEE_Ai.js";import{t as s}from"./meydr0K0.js";var t=new class{buffer=[];flushScheduled=!1;flushDeadline=2e3;constructor(){this.attachVisibilityFlush()}push(...e){this.buffer.push(...e),s.log("DataLayerFlusher | Buffer updated with ",e),this.scheduleFlush()}scheduleFlush(){if(this.flushScheduled)return;this.flushScheduled=!0,s.log("DataLayerFlusher | Flush scheduled");const e=()=>this.doFlush();"requestIdleCallback"in window?(s.log("DataLayerFlusher | Using requestIdleCallback"),window.requestIdleCallback(e,{timeout:this.flushDeadline})):(s.log("DataLayerFlusher | Using setTimeout"),setTimeout(e,this.flushDeadline))}doFlush(){this.flushScheduled=!1,0!==this.buffer.length&&(s.log("DataLayerFlusher | Flushing buffer with ",this.buffer),this.buffer.forEach(s=>e.push(s)),this.buffer=[])}attachVisibilityFlush(){document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(s.log("DataLayerFlusher | Flushing because of visibility change to hidden"),this.doFlush())})}};export{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.