1"use strict";(self.webpackChunkcbs_all_access=self.webpackChunkcbs_all_access||[]).push([[20193],{61758:(e,t,s)=>{function i(e,t,s){let i="unknown";if(e&&e instanceof XMLHttpRequest){const t=s.context(e).params;if(!(t&&t.status&&t.method&&t.host&&t.pathname))return"xhrOriginMissing";i=t.status+" "+t.method+": "+t.host+t.pathname}else if(e&&"string"==typeof e.tagName&&(i=e.tagName.toLowerCase(),e.id&&(i+="#"+e.id),e.className))for(let t=0;t<e.classList.length;t++)i+="."+e.classList[t];return"unknown"===i&&("string"==typeof t?i=t:t===document?i="document":t===window?i="window":t instanceof FileReader&&(i="FileReader")),i}s.d(t,{_:()=>i})},71977:(e,t,s)=>{function i(e,t,s="string",r=[]){return e&&"object"==typeof e?(Object.keys(e).forEach(n=>{"object"==typeof e[n]?i(e[n],t,s,r):typeof e[n]!==s||r.includes(n)||(e[n]=t(e[n]))}),e):e}s.d(t,{R:()=>i})},81109:(e,t,s)=>{s.r(t),s.d(t,{Aggregate:()=>b});var i=s(57538),r=s(42425),n=s(36015),o=s(57319),a=s(50265),h=s(96664),c=s(61758);class u{constructor(e,t,s,i,r){this.n=e,this.s=t,this.e=s,this.o=i,this.t=r}}const m={global:{mouseup:!0,mousedown:!0},window:{load:!0,pagehide:!0},xhrOriginMissing:{ignoreAll:!0}},d={typing:"typing",scrolling:"scrolling",mousing:"mousing",touching:"touching"},g={[d.typing]:1e3,[d.scrolling]:100,[d.mousing]:1e3,[d.touching]:1e3},l={[d.typing]:2e3,[d.scrolling]:1e3,[d.mousing]:2e3,[d.touching]:2e3};class p{prevStoredEvents=new Set;constructor(e){this.parent=e}#e(e){return e.n in d}#t(e){const t={e:e.e};return this.parent.events.merge(t=>!(t.o!==e.o||t.n!==e.n||e.s-t.s<l[e.o]||t.e>e.s-g[e.o]),t)}#s(e){if(e.n in m.global)return!0;const t=e.o;return!(!m[t]?.ignoreAll&&!m[t]?.[e.n])||"xhrOriginMissing"===t&&"Ajax"===e.n}#i(){if(this.parent.blocked)return!1;if(this.parent.events.length>=r.MAX_NODES_PER_HARVEST){if(this.parent.mode!==o.IK.ERROR)return!1;this.trimSTNsByTime(),this.parent.events.length>=r.MAX_NODES_PER_HARVEST&&this.trimSTNsByIndex(1)}return!0}#r(e){return!(this.#s(e)||!this.#i())&&(this.#e(e)&&this.#t(e)||this.parent.events.add(e),!0)}storeNode(e){return this.#r(e)}processPVT(e,t,s){return this.storeTiming({[e]:t})}storeTiming(e,t=!1){if(!e)return!1;let s=!0;for(let i in e){let r=e[i];const n=i.toLowerCase();n.indexOf("size")>=0||n.indexOf("status")>=0||"number"==typeof r&&r>=0&&(r=Math.round(r),t&&this.parent.timeKeeper?.ready&&(r=this.parent.timeKeeper.convertAbsoluteTimestamp(Math.floor(this.parent.timeKeeper.correctAbsoluteTimestamp(r)))),this.#r(new u(i,r,r,"document","timing"))||(s=!1))}return s}storeEvent(e,t,s,i){if(this.prevStoredEvents.has(e)||!this.#i())return!1;this.prevStoredEvents.add(e);const r=new u(function(e){switch(e){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 e}}(e.type),s,i,void 0,"event");try{r.o=(0,c._)(e.target,t,this.parent.ee)}catch(e){r.o=(0,c._)(null,t,this.parent.ee)}return this.#r(r)}storeHist(e,t,s){return this.#r(new u("history.pushState",s,s,e,t))}storeResources(e){if(!e||0===e.length)return!1;let t=!0;for(let s=0;s<e.length;s++){const i=e[s];if(!this.#i())break;const{initiatorType:r,fetchStart:n,responseEnd:o,entryType:a}=i,{protocol:c,hostname:m,port:d,pathname:g}=(0,h.e)(i.name),l=new u(r,0|n,0|o,"".concat(c,"://").concat(m,":").concat(d).concat(g),a);this.#r(l)||(t=!1)}return t}storeErrorAgg(e,t,s,i){return"err"===e&&this.#r(new u("error",i.time,i.time,s.message,s.stackHash))}storeXhrAgg(e,t,s,i){return"xhr"===e&&this.#r(new u("Ajax",i.time,i.time+i.duration,"".concat(s.status," ").concat(s.method,": ").concat(s.host).concat(s.pathname),"ajax"))}trimSTNsByTime(e=r.ERROR_MODE_SECONDS_WINDOW){this.parent.events.clear({clearBeforeTime:Math.max(a.z-e,0),timestampKey:"e"})}trimSTNsByIndex(e=0){this.parent.events.clear({clearBeforeIndex:e})}clear(){this.prevStoredEvents.clear()}}var f=s(28005),v=s(39289),R=s(71977),S=s(94371),T=s(12435);class b extends n.m{static featureName=r.FEATURE_NAME;constructor(e){super(e,r.FEATURE_NAME),this.harvestOpts.raw=!0,this.entitled=void 0,this.everHarvested=!1,this.harvesting=!1,this.traceStorage=new p(this),this.waitForFlags(["sts","st"]).then(([e,t])=>this.initialize(e,t))}
1initialize(e,t,s){return this.entitled??=t,this.entitled||(this.blocked=!0),this.blocked?this.deregisterDrain():(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(o.wO.RESET,()=>{this.blocked||this.abort(1)}),this.ee.on(o.wO.UPDATE,(e,t)=>{this.blocked||(this.mode===o.IK.FULL||t.sessionReplayMode!==o.IK.FULL&&t.sessionTraceMode!==o.IK.FULL||this.switchToFull(),(this.sessionId!==t.value||"cross-tab"===e&&t.sessionTraceMode===o.IK.OFF)&&this.abort(2))}),"undefined"!=typeof PerformanceNavigationTiming&&v._A.performance?.getEntriesByType("navigation")?.length>0?this.traceStorage.storeTiming(v._A.performance.getEntriesByType("navigation")[0]):this.traceStorage.storeTiming(v._A.performance?.timing,!0)),this.agentRef.runtime.session.isNew||s?this.mode=e:this.mode=this.agentRef.runtime.session.state.sessionTraceMode,this.mode===o.IK.OFF?this.deregisterDrain():((0,i.X)("bst",(...e)=>this.traceStorage.storeEvent(...e),this.featureName,this.ee),(0,i.X)("bstResource",(...e)=>this.traceStorage.storeResources(...e),this.featureName,this.ee),(0,i.X)("bstHist",(...e)=>this.traceStorage.storeHist(...e),this.featureName,this.ee),(0,i.X)("bstXhrAgg",(...e)=>this.traceStorage.storeXhrAgg(...e),this.featureName,this.ee),(0,i.X)("bstApi",(...e)=>this.traceStorage.storeNode(...e),this.featureName,this.ee),(0,i.X)("trace-jserror",(...e)=>this.traceStorage.storeErrorAgg(...e),this.featureName,this.ee),(0,i.X)("pvtAdded",(...e)=>this.traceStorage.processPVT(...e),this.featureName,this.ee),this.mode!==o.IK.FULL&&(0,i.X)("trace-jserror",()=>{this.mode===o.IK.ERROR&&this.switchToFull()},this.featureName,this.ee),this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),void this.drain()))}preHarvestChecks(){if(!this.blocked&&this.mode===o.IK.FULL&&this.timeKeeper?.ready&&this.agentRef.runtime.session){if(this.sessionId===this.agentRef.runtime.session.state.value&&this.ptid===this.agentRef.runtime.ptid)return!0;this.abort(3)}}serializer(e){if(e.length)return this.everHarvested=!0,(0,R.R)(e,this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}queryStringsBuilder(e){const t=!this.agentRef.runtime.session.state.traceHarvestStarted;t&&this.agentRef.runtime.session.write({traceHarvestStarted:!0});const s=1===this.agentRef.runtime.session.state.sessionReplayMode,i=this.agentRef.info.jsAttributes["enduser.id"],r=this.agentRef.runtime.appMetadata.agents?.[0]?.entityGuid,n=e.reduce((e,t)=>Math.min(e,t.s),1/0),o=e.reduce((e,t)=>Math.max(e,t.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(n)),attributes:(0,f.j6)({...r&&{entityGuid:r},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(n)),"trace.lastTimestamp":Math.floor(this.timeKeeper.correctRelativeTimestamp(o)),"trace.nodes":e.length,"trace.originTimestamp":this.timeKeeper.correctedOriginTime,agentVersion:this.agentRef.runtime.version,...t&&{firstSessionHarvest:t},...s&&{hasReplay:s},ptid:"".concat(this.ptid),session:"".concat(this.sessionId),...i&&{"enduser.id":this.obfuscator.obfuscateString(i)},currentUrl:this.obfuscator.obfuscateString((0,S.f)(""+location))},5e3).substring(1)}}switchToFull(){if(this.mode===o.IK.FULL||!this.entitled||this.blocked)return;const e=this.mode;if(this.mode=o.IK.FULL,this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),e===o.IK.OFF||!this.initialized)return this.initialize(this.mode,this.entitled);this.initialized&&(this.traceStorage.trimSTNsByTime(),this.agentRef.runtime.harvester.triggerHarvestFor(this))}abort(e){(0,T.Z)(60,e),this.blocked=!0,this.mode=o.IK.OFF,this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),this.events.clear()}postHarvestCleanup(e){this.traceStorage.clear(),super.postHarvestCleanup(e)}}}}]); 2//# sourceMappingURL=session_trace-aggregate-074f727054bb369fdffc.min.js.map
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.