PageSourceSearch

https://www.buzzrx.com/_next/static/chunks/harvester.38b933ae601c0f39.js

js buzzrx.com collected 2026-10-09 23:56:39 UTC 8,880 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1631],{2574:(e,t,n)=>{n.d(t,{F:()=>i});var r=n(92685),s=n(83897);class i{constructor(e,t){this.agentRef=e,this.eventType=t,this.warnedRegexMissing=!1,this.warnedInvalidRegex=!1,this.warnedInvalidReplacement=!1}get obfuscateConfigRules(){let e=this.agentRef.init.obfuscate||[];return this.eventType?e.filter(e=>!this.#e(e)||e.eventFilter.includes(this.eventType)):e}obfuscateString(e){if("string"!=typeof e||0===e.trim().length)return e;let t=this.obfuscateConfigRules.map(e=>this.validateObfuscationRule(e));return(0,r.p)()&&t.push({regex:/^file:\/\/(.*)/,replacement:atob("ZmlsZTovL09CRlVTQ0FURUQ=")}),t.filter(e=>e.isValid).reduce((e,t)=>{let{rule:n}=t;return e.replace(n.regex,n.replacement||"*")},e)}traverseAndObfuscateEvents(e){if(!e||"object"!=typeof e)return e;if(this.eventType)return this.#t(e,this.obfuscateString.bind(this)),e;let t=new Set,n=[],r=[];return(this.obfuscateConfigRules.forEach(e=>{this.#e(e)?(r.push(e),e.eventFilter.forEach(e=>t.add(e))):n.push(e)}),0===r.length)?this.#t(e,this.obfuscateString.bind(this)):this.#n(e,this.obfuscateString.bind(this),Array.from(t),n,null),e}#t(e,t){e&&"object"==typeof e&&Object.keys(e).forEach(n=>{let r=e[n];"object"==typeof r&&null!==r?this.#t(r,t):"string"==typeof r&&(e[n]=t(r))})}#n(e,t,n,r,s){if(!e||"object"!=typeof e)return;let i=s;"eventType"in e&&"string"==typeof e.eventType&&(i=n.includes(e.eventType)),Object.keys(e).forEach(s=>{let a=e[s];"object"==typeof a&&null!==a?this.#n(a,t,n,r,i):"string"==typeof a&&(!0===i?e[s]=t(a):!1===i&&r.length>0&&(e[s]=this.#r(a,r)))})}#r(e,t){return"string"!=typeof e||0===e.trim().length?e:t.map(e=>this.validateObfuscationRule(e)).filter(e=>e.isValid).reduce((e,t)=>{let{rule:n}=t;return e.replace(n.regex,n.replacement||"*")},e)}#e(e){return Array.isArray(e?.eventFilter)&&e.eventFilter.length>0}validateObfuscationRule(e){let t=void 0===e.regex,n=!(void 0===e.regex||"string"==typeof e.regex||e.regex instanceof RegExp),r=!!(e.replacement&&"string"!=typeof e.replacement);return t&&!this.warnedRegexMissing?((0,s.R)(12,e),this.warnedRegexMissing=!0):n&&!this.warnedInvalidRegex&&((0,s.R)(13,e),this.warnedInvalidRegex=!0),r&&!this.warnedInvalidReplacement&&((0,s.R)(14,e),this.warnedInvalidReplacement=!0),{rule:e,isValid:!t&&!n&&!r,errors:{regexMissingDetected:t,invalidRegexDetected:n,invalidReplacementDetected:r}}}}},27235:(e,t,n)=>{n.d(t,{t:()=>y});var r=n(20141),s=n(17543),i=n(10603),a=n(60469),o=n(49591),l=n(84374),u=n(81054),c=n(45827),p=n(83897),h=n(43785),f=n(64959),d=n(43272);let g={};function y(e,{endpoint:t,payload:n,localOpts:v={},submitMethod:m=(0,f.mj)(),cbFinished:b,raw:R,featureName:F,endpointVersion:T=1,harvesterObfuscator:x}){var A,E,w,j;let O,k,S,H,C,V;if(!e.info.errorBeacon)return!1;let{body:I,qs:N}=function(e={}){let t=e=>"u">typeof Uint8Array&&e instanceof Uint8Array||Array.isArray(e)||"string"==typeof e?e:Object.entries(e||{}).reduce((e,[t,n])=>(("number"==typeof n||"string"==typeof n&&n.length>0||"object"==typeof n&&Object.keys(n||{}).length>0)&&(e[t]=n),e),{});return{body:t(e.body),qs:t(e.qs)}}(n);if(0===Object.keys(I).length&&!v.sendEmptyBody)return b&&b({sent:!1}),!1;let M=!1===e.init.ssl?"http":"https",U=e.init.proxy.beacon||e.info.errorBeacon,B=t!==r.v4||1!==T,L=R?"".concat(M,"://").concat(U,"/").concat(t):"".concat(M,"://").concat(U).concat(B?"/"+t:"","/").concat(T,"/").concat(e.info.licenseKey),W=R?"":(A=e,E=N,w=t,j=x,O=(0,u.L)(""+i.gm.location),k=j?.obfuscateString(O)??O,S=A.runtime.session,H=!!S?.state.sessionReplaySentFirstChunk&&S?.state.sessionReplayMode===1&&w!==r.XX,C=!!S?.state.traceHarvestStarted&&S?.state.sessionTraceMode===1&&![r.Yy,r.df].includes(w),V=["a="+A.info.applicationID,(0,c.uR)("sa",A.info.sa?""+A.info.sa:""),(0,c.uR)("v",s.xv),A.info.transactionName?(0,c.uR)("to",A.info.transactionName):(0,c.uR)("t",A.info.tNamePlain||"Unnamed Transaction"),(0,c.uR)("ct",A.runtime.customTransaction),"&rst="+(0,l.t)(),"&s="+(S?.state.value||"0"),(0,c.uR)("ref",k),(0,c.uR)("ptid",A.runtime.ptid?""+A.runtime.ptid:"")],H&&V.push((0,c.uR)("hr","1",E)),C&&V.push((0,c.uR)("ht","1",E)),V.join("")),q=(0,c.WL)(N,e.runtime.maxBytes);""===W&&q.startsWith("&")&&(q=q.substring(1));let _="".concat(W).concat(q),z=_?"".concat(L,"?").concat(_):L,X=N?.attributes?.includes("gzip")||t===r.qY?I:(0,h.A)(I);X&&0!==X.length&&"{}"!==X&&"[]"!==X||(X=""),t!==r.df&&X.length>75e4&&1===(g[t]=(g[t]||0)+1)&&(0,p.R)(28,t);let J=[{key:"content-type",value:"text/plain"},...v.headers||[]],K=m({url:z,body:X,sync:v.isFinalHarvest&&i.bv,headers:J});if(!v.isFinalHarvest&&b){m===f.nF?K.addEventListener("loadend",function(){b({sent:0!==this.status,status:this.status,retry:D(this.status),fullUrl:z,xhr:this,responseText:this.responseText}),D(this.status)||P()}
1,(0,o.jT)(!1)):m===f.Jf&&K.then(async function(e){let t=e.status;b({sent:!0,status:t,retry:D(t),fullUrl:z,fetchResponse:e,responseText:await e.text()}),D(t)||P()});function P(){try{if(F===r.hg||F===r.K7.jserrors&&!I?.err)return;let t=W.includes("hr=1"),n=W.includes("ht=1"),s=N?.attributes?.includes("hasError=true");(0,a.p)("harvest-metadata",[{[F]:{...t&&{hasReplay:t},...n&&{hasTrace:n},...s&&{hasError:s}}}],void 0,r.K7.metrics,e.ee)}catch(e){}}}return(0,d.W)({drained:!!e.runtime?.activatedFeatures,type:"data",name:"harvest",feature:F,data:{endpoint:t,headers:J,payload:n,submitMethod:m===f.nF?"xhr":m===f.Jf?"fetch":"beacon",raw:R,synchronousXhr:!!(v.isFinalHarvest&&i.bv)}}),!0;function D(e){switch(e){case 408:case 429:case 500:return!0}return e>=502&&e<=504||e>=512&&e<=530}}},45827:(e,t,n)=>{n.d(t,{WL:()=>l,uR:()=>u});var r=n(43785),s={"%2C":",","%3A":":","%2F":"/","%40":"@","%24":"$","%3B":";"},i=RegExp(Object.keys(s).join("|"),"g");function a(e){return s[e]}function o(e){return null==e?"null":encodeURIComponent(e).replace(i,a)}function l(e,t){var n=0,s="";return Object.entries(e||{}).forEach(([e,i])=>{var a,l,u=[];if("string"==typeof i||!Array.isArray(i)&&null!=i&&i.toString().length)a="&"+e+"="+o(i),n+=a.length,s+=a;else if(Array.isArray(i)&&i.length){for(n+=9,l=0;l<i.length&&(a=o((0,r.A)(i[l])),n+=a.length,void 0===t||!(n>=t));l++)u.push(a);s+="&"+e+"=%5B"+u.join(",")+"%5D"}}),s}function u(e,t,n={}){return Object.keys(n).includes(e)?"":t&&"string"==typeof t?"&"+e+"="+o(t):""}},64959:(e,t,n)=>{n.d(t,{Jf:()=>i,mj:()=>s,nF:()=>a});var r=n(10603);function s({isFinalHarvest:e=!1}={}){return e&&r.RI?o:"u">typeof XMLHttpRequest?a:i}function i({url:e,body:t=null,method:n="POST",headers:r=[{key:"content-type",value:"text/plain"}]}){let s={};for(let e of r)s[e.key]=e.value;return fetch(e,{headers:s,method:n,body:t})}function a({url:e,body:t=null,sync:n,method:r="POST",headers:s=[{key:"content-type",value:"text/plain"}]}){let i=new XMLHttpRequest;return i.open(r,e,!n),s.forEach(e=>{i.setRequestHeader(e.key,e.value)}),i.send(t),i}function o({url:e,body:t}){try{return window.navigator.sendBeacon.bind(window.navigator)(e,t)}catch(e){return!1}}},92680:(e,t,n)=>{n.r(t),n.d(t,{Harvester:()=>g});var r=n(93856),s=n(20141),i=n(60469),a=n(10603),o=n(6266);if(a.bv){a.gm.cleanupTasks=[];let e=a.gm.close;a.gm.close=()=>{for(let e of a.gm.cleanupTasks)e();e()}}var l=n(64959),u=n(27235),c=n(2574);let p="Harvester/Retry/",h=p+"Attempted/",f=p+"Failed/",d=p+"Succeeded/";class g{#s=!1;initializedAggregates=[];constructor(e){this.agentRef=e,this.obfuscator=new c.F(e)}startTimer(e=this.agentRef.init.harvest.interval){var t;if(this.#s)return;this.#s=!0,t=()=>
1{this.initializedAggregates.forEach(e=>{"function"==typeof e.harvestOpts.beforeUnload&&e.harvestOpts.beforeUnload()}),this.initializedAggregates.forEach(e=>this.triggerHarvestFor(e,{isFinalHarvest:!0}))},a.RI?(0,o.u)(t,!0):a.bv&&a.gm.cleanupTasks.push(t);let n=()=>{this.initializedAggregates.forEach(e=>this.triggerHarvestFor(e)),setTimeout(n,1e3*e)};setTimeout(n,1e3*e)}triggerHarvestFor(e,t={}){let n={ranSend:!1,payload:void 0,endpointVersion:e.harvestEndpointVersion||1};if(e.blocked||this.agentRef.init?.browser_consent_mode?.enabled&&!this.agentRef.runtime.consented)return n;let a=(0,l.mj)(t);if(!a)return n;let o=!t.isFinalHarvest&&a===l.nF;return n.payload=e.makeHarvestPayload(o,t),n.payload&&((0,u.t)(this.agentRef,{endpoint:s.$J[e.featureName],payload:n.payload,localOpts:t,submitMethod:a,harvesterObfuscator:this.obfuscator,cbFinished:function(n){if(e.harvestOpts.prevAttemptCode){let t=t=>(0,i.p)(r.xV,[t],void 0,s.K7.metrics,e.ee);t(h+e.featureName),t((n.retry?f:d)+e.harvestOpts.prevAttemptCode),delete e.harvestOpts.prevAttemptCode}n.retry&&(e.harvestOpts.prevAttemptCode=n.status),t.forceNoRetry&&(n.retry=!1),e.postHarvestCleanup(n)},raw:e.harvestOpts.raw,featureName:e.featureName,endpointVersion:n.endpointVersion}),n.ranSend=!0),n}}},92685:(e,t,n)=>{n.d(t,{p:()=>s});var r=n(10603);function s(){return r.gm?.location?.protocol==="file:"}}}]);
2//# sourceMappingURL=harvester.38b933ae601c0f39.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.