1"use strict";(self.webpackChunk_aqx_member_web=self.webpackChunk_aqx_member_web||[]).push([["1890"],{15613:function(e,t,n){n.r(t),n.d(t,{DEFAULT_RUM_PROFILER_CONFIGURATION:()=>m,createRumProfiler:()=>f});var s=n(93099),i=n(7411),r=n(30063),a=n(42818),o=n(853),l=n(48399),u=n(5531);let c=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g,d=(e,t)=>e||(t?t.replace(c,"/?"):"/");var p=n(73716);let m={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function f(e,t,n,c,v,w,h,g=m){let b,y=(0,u.QB)(e,t,w,6),I=[],k={state:"stopped",stateReason:"initializing"};function _(){if("running"===k.state)return;let t=h.findView();b=t?{startClocks:t.startClocks,viewId:t.id,viewName:d(t.name,document.location.pathname)}:void 0,I.push((0,i.addEventListener)(e,window,"visibilitychange",j).stop,(0,i.addEventListener)(e,window,"beforeunload",L).stop),E()}async function S(){await M("stopped-by-user")}async function M(e){await C(e),I.forEach(e=>e()),c.set({status:"stopped",error_reason:void 0})}function E(){let e,n=(0,r.Rf)().Profiler;if(!n)throw c.set({status:"error",error_reason:"not-supported-by-browser"}),Error("RUM Profiler is not supported in this browser.");R(k).catch(s.$y);let{cleanupTasks:i}=function(e){if("running"===e.state)return{cleanupTasks:e.cleanupTasks};let n=[];return n.push(t.subscribe(2,e=>{let t={viewId:e.id,viewName:d(e.name,document.location.pathname),startClocks:e.startClocks};D(t),b=t}).unsubscribe),{cleanupTasks:n}}(k);try{e=new n({sampleInterval:g.sampleIntervalMs,maxBufferSize:Math.round(1.5*g.collectIntervalMs/g.sampleIntervalMs)})}catch(e){e instanceof Error&&e.message.includes("disabled by Document Policy")?(a.jf.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",e),c.set({status:"error",error_reason:"missing-document-policy-header"})):c.set({status:"error",error_reason:"unexpected-exception"});return}c.set({status:"running",error_reason:void 0}),k={state:"running",startClocks:(0,o.$I)(),profiler:e,timeoutId:(0,l.iK)(E,g.collectIntervalMs),views:[],cleanupTasks:i,longTasks:[]},D(b),e.addEventListener("samplebufferfull",O)}async function R(t){if("running"!==t.state)return;(0,l.gr)(t.timeoutId),t.profiler.removeEventListener("samplebufferfull",O);let{startClocks:i,views:r}=t;await t.profiler.stop().then(t=>{let s=(0,o.$I)(),a=(0,o._J)(i.timeStamp,s.timeStamp),l=v.findLongTasks(i.relative,a),u=a<g.minProfileDurationMs,c=function(e){let t=0;for(let n of e)void 0!==n.stackId&&t++;return t}(t.samples)<g.minNumberOfSamples;0===l.length&&(u||c)||function(t){var s;let i={event:function(e,t,n){let s=(0,p.MS)(t),i=function(e,t,n){let s={application:{id:t}};n&&(s.session={id:n});let{ids:i,names:r}=function(e){let t={ids:[],names:[]};for(let n of e)t.ids.push(n.viewId),n.viewName&&t.names.push(n.viewName);return t.names=Array.from(new Set(t.names)),t}(e.views);i.length&&(s.view={id:i,name:r});let a=e.longTasks.map(e=>e.id).filter(e=>void 0!==e);return a.length&&(s.long_task={id:a}),s}(e,t.applicationId,n),r=s.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"]);return{...i,attachments:["wall-time.json"],start:new Date(e.startClocks.timeStamp).toISOString(),end:new Date(e.endClocks.timeStamp).toISOString(),family:"chrome",runtime:"chrome",format:"json",version:4,tags_profiler:r.join(","),_dd:{clock_drift:(0,o.QA)()}}}(t,e,null==(s=n.findTrackedSession())?void 0:s.id),"wall-time.json":t};y.send(i)}(Object.assign(t,{startClocks:i,endClocks:s,clocksOrigin:(0,o.cQ)(),longTasks:l,views:r,sampleInterval:g.sampleIntervalMs}))}).catch(s.$y)}async function C(e){"running"===k.state&&(await T(),k={state:"stopped",stateReason:e})}async function P(){"running"===k.state&&(await T(),k={state:"paused"})}async function T(){"running"===k.state&&(k.cleanupTasks.forEach(e=>e()),await R(k))}function D(e){"running"===k.state&&e&&k.views.push(e)}function O(){E()}function j(){"hidden"===document.visibilityState&&"running"===k.state?P().catch(s.$y):"visible"===document.visibilityState&&"paused"===k.state&&E()}function L(){E()}return t.subscribe(9,()=>
1{M("session-expired").catch(s.$y)}),t.subscribe(10,()=>{"stopped"===k.state&&"session-expired"===k.stateReason&&_()}),{start:_,stop:S,isStopped:function(){return"stopped"===k.state},isRunning:function(){return"running"===k.state},isPaused:function(){return"paused"===k.state}}}}}]);
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.