PageSourceSearch

https://app.timix.ai/chunk-FAVMEVBJ.js

js timix.ai collected 2026-10-05 14:00:04 UTC 7,774 bytes, 1 lines download raw bytes

1import{a as x,b,c as y,d as k}from"./chunk-O3Z6HZNQ.js";import{b as S,d as n}from"./chunk-S4HPKQK5.js";import{a as T}from"./chunk-HDNAZXPS.js";import{a as O}from"./chunk-KLPWIIYY.js";import{b as M,e as F}from"./chunk-RORUNH2Y.js";import"./chunk-NKR4K52Y.js";import"./chunk-6AESRXMQ.js";import"./chunk-QM7JTERM.js";import{i as E}from"./chunk-GMUE7SNW.js";import{Q as a,a as w,d,q as A}from"./chunk-HNRUTSPV.js";import{a as f,b as p}from"./chunk-ZY7WU73K.js";var h=class{constructor(e,t,r,s,i){this.n=e,this.s=t,this.e=r,this.o=s,this.t=i}};function L(u){switch(u){case"keydown":case"keyup":case"keypress":return"typing";case"mousemove":case"mouseenter":case"mouseleave":case"mouseover":case"mouseout":return"mousing";case"touchstart":case"touchmove":case"touchend":case"touchcancel":case"touchenter":case"touchleave":return"touching";case"scroll":case"scrollend":return"scrolling";default:return u}}var N={global:{mouseup:!0,mousedown:!0},window:{load:!0,pagehide:!0},xhrOriginMissing:{ignoreAll:!0}},c={typing:"typing",scrolling:"scrolling",mousing:"mousing",touching:"touching"},U={[c.typing]:1e3,[c.scrolling]:100,[c.mousing]:1e3,[c.touching]:1e3},B={[c.typing]:2e3,[c.scrolling]:1e3,[c.mousing]:2e3,[c.touching]:2e3},v=class{prevStoredEvents=new Set;constructor(e){this.parent=e}#i(e){return e.n in c}#r(e){let t=s=>!(s.o!==e.o||s.n!==e.n||e.s-s.s<B[e.o]||s.e>e.s-U[e.o]),r={e:e.e};return this.parent.events.merge(t,r)}#s(e){if(e.n in N.global)return!0;let t=e.o;return N[t]?.ignoreAll||N[t]?.[e.n]?!0:t==="xhrOriginMissing"&&e.n==="Ajax"}#t(){if(this.parent.blocked)return!1;if(this.parent.events.length>=y){if(this.parent.mode!==n.ERROR)return!1;this.trimSTNsByTime(),this.parent.events.length>=y&&this.trimSTNsByIndex(1)}return!0}#e(e){return this.#s(e)||!this.#t()?!1:((!this.#i(e)||!this.#r(e))&&this.parent.events.add(e),!0)}storeNode(e){return this.#e(e)}processPVT(e,t,r){return this.storeTiming({[e]:t})}storeTiming(e,t=!1){if(!e)return!1;let r=!0;for(let s in e){let i=e[s],o=s.toLowerCase();o.indexOf("size")>=0||o.indexOf("status")>=0||typeof i=="number"&&i>=0&&(i=Math.round(i),t&&this.parent.timeKeeper?.ready&&(i=this.parent.timeKeeper.convertAbsoluteTimestamp(Math.floor(this.parent.timeKeeper.correctAbsoluteTimestamp(i)))),this.#e(new h(s,i,i,"document","timing"))||(r=!1))}return r}storeEvent(e,t,r,s){if(this.prevStoredEvents.has(e)||!this.#t())return!1;this.prevStoredEvents.add(e);let i=new h(L(e.type),r,s,void 0,"event");try{i.o=T(e.target,t,this.parent.ee)}catch{i.o=T(null,t,this.parent.ee)}return this.#e(i)}storeHist(e,t,r){return this.#e(new h("history.pushState",r,r,e,t))}storeResources(e){if(!e||e.length===0)return!1;let t=!0;for(let r=0;r<e.length;r++){let s=e[r];if(!this.#t())break;let{initiatorType:i,fetchStart:o,responseEnd:g,entryType:R}=s,{protocol:m,hostname:l,port:H,pathname:I}=x(s.name),_=new h(i,o|0,g|0,"".concat(m,"://").concat(l,":").concat(H).concat(I),R);this.#e(_)||(t=!1)}return t}storeErrorAgg(e,t,r,s){return e!=="err"?!1:this.#e(new h("error",s.time,s.time,r.message,r.stackHash))}storeXhrAgg(e,t,r,s){return e!=="xhr"?!1:this.#e(new h("Ajax",s.time,s.time+s.duration,"".concat(r.status," ").concat(r.method,": ").concat(r.host).concat(r.pathname),"ajax"))}trimSTNsByTime(e=k){this.parent.events.clear({clearBeforeTime:Math.max(w-e,0),timestampKey:"e"})}trimSTNsByIndex(e=0){this.parent.events.clear({clearBeforeIndex:e})}clear(){this.prevStoredEvents.clear()}};var D=5e3,ne=(()=>{class u extends F{static featureName=b;constructor(t){super(t,b),this.harvestOpts.raw=!0,this.entitled=void 0,this.everHarvested=!1,this.harvesting=!1,this.traceStorage=new v(this),this.waitForFlags(["sts","st"]).then(([r,s])=>
1this.initialize(r,s))}initialize(t,r,s){if(this.entitled??=r,this.entitled||(this.blocked=!0),this.blocked)return this.deregisterDrain();if(this.timeKeeper??=this.agentRef.runtime.timeKeeper,this.initialized||(this.initialized=!0,this.ptid=this.agentRef.runtime.ptid,this.sessionId=this.agentRef.runtime.session?.state.value,this.ee.on(S.RESET,()=>{this.blocked||this.abort(1)}),this.ee.on(S.UPDATE,(i,o)=>{this.blocked||(this.mode!==n.FULL&&(o.sessionReplayMode===n.FULL||o.sessionTraceMode===n.FULL)&&this.switchToFull(),(this.sessionId!==o.value||i==="cross-tab"&&o.sessionTraceMode===n.OFF)&&this.abort(2))}),typeof PerformanceNavigationTiming<"u"&&d.performance?.getEntriesByType("navigation")?.length>0?this.traceStorage.storeTiming(d.performance.getEntriesByType("navigation")[0]):this.traceStorage.storeTiming(d.performance?.timing,!0)),!this.agentRef.runtime.session.isNew&&!s?this.mode=this.agentRef.runtime.session.state.sessionTraceMode:this.mode=t,this.mode===n.OFF)return this.deregisterDrain();a("bst",(...i)=>this.traceStorage.storeEvent(...i),this.featureName,this.ee),a("bstResource",(...i)=>this.traceStorage.storeResources(...i),this.featureName,this.ee),a("bstHist",(...i)=>this.traceStorage.storeHist(...i),this.featureName,this.ee),a("bstXhrAgg",(...i)=>this.traceStorage.storeXhrAgg(...i),this.featureName,this.ee),a("bstApi",(...i)=>this.traceStorage.storeNode(...i),this.featureName,this.ee),a("trace-jserror",(...i)=>this.traceStorage.storeErrorAgg(...i),this.featureName,this.ee),a("pvtAdded",(...i)=>this.traceStorage.processPVT(...i),this.featureName,this.ee),this.mode!==n.FULL&&a("trace-jserror",()=>{this.mode===n.ERROR&&this.switchToFull()},this.featureName,this.ee),this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),this.drain()}preHarvestChecks(){if(!(this.blocked||this.mode!==n.FULL)&&this.timeKeeper?.ready&&this.agentRef.runtime.session){if(this.sessionId!==this.agentRef.runtime.session.state.value||this.ptid!==this.agentRef.runtime.ptid){this.abort(3);return}return!0}}serializer(t){if(t.length)return this.everHarvested=!0,O(t,this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}queryStringsBuilder(t){let r=!this.agentRef.runtime.session.state.traceHarvestStarted;r&&this.agentRef.runtime.session.write({traceHarvestStarted:!0});let s=this.agentRef.runtime.session.state.sessionReplayMode===1,i=this.agentRef.info.jsAttributes["enduser.id"],o=this.agentRef.runtime.appMetadata.agents?.[0]?.entityGuid,g=t.reduce((m,l)=>Math.min(m,l.s),1/0),R=t.reduce((m,l)=>Math.max(m,l.s),-1/0);return{browser_monitoring_key:this.agentRef.info.licenseKey,type:"BrowserSessionChunk",app_id:this.agentRef.info.applicationID,protocol_version:"0",timestamp:Math.floor(this.timeKeeper.correctRelativeTimestamp(g)),attributes:M(p(f(p(f(f(p(f({},o&&{entityGuid:o}),{harvestId:"".concat(this.agentRef.runtime.session.state.value,"_").concat(this.agentRef.runtime.ptid,"_").concat(this.agentRef.runtime.harvestCount),"trace.firstTimestamp":Math.floor(this.timeKeeper.correctRelativeTimestamp(g)),"trace.lastTimestamp":Math.floor(this.timeKeeper.correctRelativeTimestamp(R)),"trace.nodes":t.length,"trace.originTimestamp":this.timeKeeper.correctedOriginTime,agentVersion:this.agentRef.runtime.version}),r&&{firstSessionHarvest:r}),s&&{hasReplay:s}),{ptid:"".concat(this.ptid),session:"".concat(this.sessionId)}),i&&{"enduser.id":this.obfuscator.obfuscateString(i)}),{currentUrl:this.obfuscator.obfuscateString(E(""+location))}),D).substring(1)}}switchToFull(){if(this.mode===n.FULL||!this.entitled||this.blocked)return;let t=this.mode;if(this.mode=n.FULL,this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),t===n.OFF||!this.initialized)return this.initialize(this.mode,this.entitled);this.initialized&&(this.traceStorage.trimSTNsByTime(),this.agentRef.runtime.harvester.triggerHarvestFor(this))}abort(t){A(60,t),this.blocked=!0,this.mode=n.OFF,this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),this.events.clear()}postHarvestCleanup(t){this.traceStorage.clear(),super.postHarvestCleanup(t)}}return u})();export{ne as Aggregate};

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.