1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12],{19773:(e,t,n)=>{n.r(t),n.d(t,{DEFAULT_RUM_PROFILER_CONFIGURATION:()=>w,createRumProfiler:()=>b});var s=n(45670),r=n(11696),i=n(41768),a=n(38954),o=n(26664),l=n(94357),u=n(85590),c=n(45597);let d=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g,p=(e,t)=>e||function(e){return e?e.replace(d,"/?"):"/"}(t);var f=n(89480),m=n(62073),v=n(98771);let g=m.AQ;function h(e){let t=(0,v.qj)({expireDelay:g});return e.subscribe(12,({rawRumEvent:e,startClocks:n,duration:s})=>{"long_task"===e.type&&t.add({id:e.long_task.id,startClocks:n,duration:s,entryType:e.long_task.entry_type===c.K.LONG_TASK?c.do.LONG_TASK:c.do.LONG_ANIMATION_FRAME},n.relative).close((0,o.Gw)(n.relative,s))}),t}let w={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function b(e,t,n,d,m,v,g=w){let k,I=(0,c.wP)(e,t,m,6),_=[],y=(0,s.B)(h)(t),M={state:"stopped",stateReason:"initializing"};function S(){if("running"===M.state)return;let t=v.findView();k=t?{startClocks:t.startClocks,viewId:t.id,viewName:p(t.name,document.location.pathname)}:void 0,_.push((0,r.q)(e,window,"visibilitychange",P).stop,(0,r.q)(e,window,"beforeunload",R).stop),N()}function T(e){(function(e){if("running"!==M.state){("paused"===M.state||"stopped"===M.state&&"stopped-by-user"===e)&&(M={state:"stopped",stateReason:e});return}let t=M;M={state:"stopped",stateReason:e},t.cleanupTasks.forEach(e=>e()),O(t)})(e),_.forEach(e=>e()),_.length=0,d.set({status:"stopped",error_reason:void 0})}function N(){let e,n=(0,i.VZ)().Profiler;if(!n)throw d.set({status:"error",error_reason:"not-supported-by-browser"}),Error("RUM Profiler is not supported in this browser.");"running"===M.state&&O(M);let{cleanupTasks:s}=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:p(e.name,document.location.pathname),startClocks:e.startClocks};D(t),k=t}).unsubscribe),{cleanupTasks:n}}(M);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.Vy.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",e),d.set({status:"error",error_reason:"missing-document-policy-header"})):d.set({status:"error",error_reason:"unexpected-exception"});return}d.set({status:"running",error_reason:void 0}),M={state:"running",startClocks:(0,o.M8)(),profiler:e,timeoutId:(0,l.wg)(N,g.collectIntervalMs),views:[],cleanupTasks:s,longTasks:[]},D(k),e.addEventListener("samplebufferfull",E)}function O(t){(0,l.DJ)(t.timeoutId),t.profiler.removeEventListener("samplebufferfull",E);let{startClocks:s,views:r}=t;t.profiler.stop().then(t=>{let i=(0,o.M8)(),a=(0,o.vk)(s.timeStamp,i.timeStamp),l=y.findAll(s.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 r={event:function(e,t,n){let s=(0,f.m5)(t),r=function(e,t,n){let{ids:s,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=e.longTasks.map(e=>e.id).filter(e=>void 0!==e),a={application:{id:t}};return n&&(a.session={id:n}),s.length&&(a.view={id:s,name:r}),i.length&&(a.long_task={id:i}),a}(e,t.applicationId,n),i=s.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"]);return{...r,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:i.join(","),_dd:{clock_drift:(0,o.TP)()}}}(t,e,null==(s=n.findTrackedSession())?void 0:s.id),"wall-time.json":t};I.send(r)}(Object.assign(t,{startClocks:s,endClocks:i,clocksOrigin:(0,o.Oc)(),longTasks:l,views:r,sampleInterval:g.sampleIntervalMs}))}).catch(u.Dx)}function D(e){"running"===M.state&&e&&M.views.push(e)}function E(){N()}function P(){"hidden"===document.visibilityState&&"running"===M.state?function(){if("running"!==M.state)return;let e=M;M={state:"paused"}
1,e.cleanupTasks.forEach(e=>e()),O(e)}():"visible"===document.visibilityState&&"paused"===M.state&&N()}function R(){N()}return t.subscribe(9,()=>{T("session-expired")}),t.subscribe(10,()=>{"stopped"===M.state&&"session-expired"===M.stateReason&&S()}),{start:S,stop:function(){T("stopped-by-user")},isStopped:function(){return"stopped"===M.state},isRunning:function(){return"running"===M.state},isPaused:function(){return"paused"===M.state}}}},83010:(e,t,n)=>{n.r(t),n.d(t,{DEFAULT_RUM_PROFILER_CONFIGURATION:()=>w,createRumProfiler:()=>b});var s=n(11782),r=n(42236),i=n(35428),a=n(13938),o=n(32068),l=n(74349),u=n(90198),c=n(78229);let d=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g,p=(e,t)=>e||function(e){return e?e.replace(d,"/?"):"/"}(t);var f=n(87780),m=n(81545),v=n(29471);let g=m.AQ;function h(e){let t=(0,v.qj)({expireDelay:g});return e.subscribe(12,({rawRumEvent:e,startClocks:n,duration:s})=>{"long_task"===e.type&&t.add({id:e.long_task.id,startClocks:n,duration:s,entryType:e.long_task.entry_type===c.K.LONG_TASK?c.do.LONG_TASK:c.do.LONG_ANIMATION_FRAME},n.relative).close((0,o.Gw)(n.relative,s))}),t}let w={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function b(e,t,n,d,m,v,g=w){let k,I=(0,c.wP)(e,t,m,6),_=[],y=(0,s.B)(h)(t),M={state:"stopped",stateReason:"initializing"};function S(){if("running"===M.state)return;let t=v.findView();k=t?{startClocks:t.startClocks,viewId:t.id,viewName:p(t.name,document.location.pathname)}:void 0,_.push((0,r.q)(e,window,"visibilitychange",P).stop,(0,r.q)(e,window,"beforeunload",R).stop),N()}function T(e){(function(e){if("running"!==M.state){("paused"===M.state||"stopped"===M.state&&"stopped-by-user"===e)&&(M={state:"stopped",stateReason:e});return}let t=M;M={state:"stopped",stateReason:e},t.cleanupTasks.forEach(e=>e()),O(t)})(e),_.forEach(e=>e()),_.length=0,d.set({status:"stopped",error_reason:void 0})}function N(){let e,n=(0,i.VZ)().Profiler;if(!n)throw d.set({status:"error",error_reason:"not-supported-by-browser"}),Error("RUM Profiler is not supported in this browser.");"running"===M.state&&O(M);let{cleanupTasks:s}=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:p(e.name,document.location.pathname),startClocks:e.startClocks};D(t),k=t}).unsubscribe),{cleanupTasks:n}}(M);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.Vy.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",e),d.set({status:"error",error_reason:"missing-document-policy-header"})):d.set({status:"error",error_reason:"unexpected-exception"});return}d.set({status:"running",error_reason:void 0}),M={state:"running",startClocks:(0,o.M8)(),profiler:e,timeoutId:(0,l.wg)(N,g.collectIntervalMs),views:[],cleanupTasks:s,longTasks:[]},D(k),e.addEventListener("samplebufferfull",E)}function O(t){(0,l.DJ)(t.timeoutId),t.profiler.removeEventListener("samplebufferfull",E);let{startClocks:s,views:r}=t;t.profiler.stop().then(t=>{let i=(0,o.M8)(),a=(0,o.vk)(s.timeStamp,i.timeStamp),l=y.findAll(s.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 r={event:function(e,t,n){let s=(0,f.m5)(t),r=function(e,t,n){let{ids:s,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=e.longTasks.map(e=>e.id).filter(e=>void 0!==e),a={application:{id:t}};return n&&(a.session={id:n}),s.length&&(a.view={id:s,name:r}),i.length&&(a.long_task={id:i}),a}(e,t.applicationId,n),i=s.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"]);return{...r,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:i.join(","),_dd:{clock_drift:(0,o.TP)()}}}(t,e,null==(s=n.findTrackedSession())?void 0:s.id),"wall-time.json":t};I.send(r)}(Object.assign(t,{startClocks:s,endClocks:i,clocksOrigin:(0,o.Oc)(),longTasks:l,views:r,sampleInterval:g.sampleIntervalMs}))}).catch(u.Dx)}function D(e){"running"===M.state&&e&&M.views.push(e)}function E(){N()}function P(){"hidden"===document.visibilityState&&"running"===M.state?function(){if("running"!==M.state)return;let e=M;M={state:"paused"}
1,e.cleanupTasks.forEach(e=>e()),O(e)}():"visible"===document.visibilityState&&"paused"===M.state&&N()}function R(){N()}return t.subscribe(9,()=>{T("session-expired")}),t.subscribe(10,()=>{"stopped"===M.state&&"session-expired"===M.stateReason&&S()}),{start:S,stop:function(){T("stopped-by-user")},isStopped:function(){return"stopped"===M.state},isRunning:function(){return"running"===M.state},isPaused:function(){return"paused"===M.state}}}}}]); 2//# sourceMappingURL=profiler.601bc94f01b8f966.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.