PageSourceSearch

https://minside.liverpool.no/_next/static/chunks/3uvkg-kltbefj.js

js liverpool.no collected 2026-09-24 20:44:39 UTC 161,951 bytes, 5 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,827129,e=>{"use strict";let t;var r,n=e.i(639385),i=e.i(190187),o=e.i(534502);let a=((r={}).BEFORE_UNLOAD="beforeunload",r.CLICK="click",r.DBL_CLICK="dblclick",r.KEY_DOWN="keydown",r.LOAD="load",r.POP_STATE="popstate",r.SCROLL="scroll",r.TOUCH_START="touchstart",r.TOUCH_END="touchend",r.TOUCH_MOVE="touchmove",r.VISIBILITY_CHANGE="visibilitychange",r.PAGE_SHOW="pageshow",r.FREEZE="freeze",r.RESUME="resume",r.DOM_CONTENT_LOADED="DOMContentLoaded",r.POINTER_DOWN="pointerdown",r.POINTER_UP="pointerup",r.POINTER_CANCEL="pointercancel",r.HASH_CHANGE="hashchange",r.PAGE_HIDE="pagehide",r.MOUSE_DOWN="mousedown",r.MOUSE_UP="mouseup",r.MOUSE_MOVE="mousemove",r.FOCUS="focus",r.BLUR="blur",r.CONTEXT_MENU="contextmenu",r.RESIZE="resize",r.CHANGE="change",r.INPUT="input",r.PLAY="play",r.PAUSE="pause",r.SECURITY_POLICY_VIOLATION="securitypolicyviolation",r.SELECTION_CHANGE="selectionchange",r.STORAGE="storage",r.UNHANDLED_REJECTION="unhandledrejection",r);function s(e,t,r,n){return c(e,[t],r,n)}function c(e,r,i,{once:a,capture:s,passive:u}={}){let l=(0,o.monitor)(e=>{(e.isTrusted||e.__ddIsTrusted||!1!==t)&&(a&&m(),i(e))}),d=u?{capture:s,passive:u}:s,p=window.EventTarget&&e instanceof EventTarget?window.EventTarget.prototype:e,f=(0,n.getZoneJsOriginalValue)(p,"addEventListener");function m(){let t=(0,n.getZoneJsOriginalValue)(p,"removeEventListener");r.forEach(r=>t.call(e,r,l,d))}return r.forEach(t=>f.call(e,t,l,d)),{stop:m}}e.s(["DOM_EVENT",0,a,"addEventListener",0,s,"addEventListeners",0,c,"isEventSupported",0,function(e,t){if(!e)return!1;try{return s(e,t,i.noop).stop(),!0}catch{return!1}},"setAllowUntrustedEvents",0,function(e){!0!==t&&(t=e??!1)}])},223950,774803,237852,163601,167338,837262,669319,839985,e=>{"use strict";let t;var r,n,i=e.i(545468),o=e.i(817195),a=e.i(177171),s=e.i(190187),c=e.i(19516),u=e.i(807266),l=e.i(829381),d=e.i(391648),p=e.i(133398),f=e.i(388760),m=e.i(577814),g=e.i(841619),y=e.i(796701),v=e.i(121968),E=e.i(976445),b=e.i(199150),h=e.i(827129),S=e.i(954226);let _={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function T(){return new i.Observable(e=>{let t=S.globalObject.window;if(!t)return;let{stop:r}=(0,h.addEventListeners)(t,["visibilitychange","freeze"],t=>{"visibilitychange"===t.type&&"hidden"===document.visibilityState?e.notify({reason:_.HIDDEN}):"freeze"===t.type&&e.notify({reason:_.FROZEN})},{capture:!0}),n=(0,h.addEventListener)(t,"beforeunload",()=>{e.notify({reason:_.UNLOADING})}).stop;return()=>{r(),n()}})}function O(e){return(0,b.objectValues)(_).includes(e)}function w(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(r,n){let i=(0,v.computeBytesCount)(r);t+=i,e+=r,n&&n(i)},finish(e){e(this.finishSync())},finishSync(){let r={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,r},estimateEncodedBytesCount:e=>e.length}}e.s(["PageExitReason",0,_,"createPageMayExitObservable",0,T,"isPageExitReason",0,O],774803),e.s(["createIdentityEncoder",0,w],237852);var C=e.i(515452),R=e.i(667098);let A=30*R.ONE_SECOND,I=S.isWorkerEnvironment?1:50;function N({pageMayExitObservable:e}){let t,r,n=new i.Observable,o=e.subscribe(e=>{t=e.reason;try{n.notify(e.reason)}finally{t=void 0}u(e.reason)}),a=new i.Observable(()=>()=>{o.unsubscribe()}),s=0,c=0;function u(e){if(0===c)return;let t=c,n=s;c=0,s=0,(0,C.clearTimeout)(r),r=void 0,a.notify({reason:e,messagesCount:t,bytesCount:n})}return{flushObservable:a,prepareUrgentFlushObservable:n,forceFlush:u,get messagesCount(){return c},notifyBeforeAddMessage(e){s+e>=E.RECOMMENDED_REQUEST_BYTES_LIMIT&&u(t??"bytes_limit"),c+=1,s+=e,void 0===r&&(r=(0,C.setTimeout)(()=>{u("duration_limit")},A))},notifyAfterAddMessage(e=0){s+=e,c>=I?u(t??"messages_limit"):s>=E.RECOMMENDED_REQUEST_BYTES_LIMIT&&u(t??"bytes_limit")}}}var k=e.i(51167);let D=256*v.ONE_KIBI_BYTE;function x({encoder:e=w(),endpoints:t,reportError:r}){let n=(0,y.mockable)(E.createHttpRequest)(t,r),i=(0,y.mockable)(T)(),a=(0,y.mockable)(N)({pageMayExitObservable:i}),s={},c=a.flushObservable.subscribe(t=>(function(t){let r=(0,b.objectValues)(s).join("\n");s={};let i=O(t.reason),o=i?n.sendOnExit:n.send;if(i&&e.isAsync){let t=e.finishSync();t.outputBytesCount&&o(M(t));
1let n=[t.pendingData,r].filter(Boolean).join("\n");n&&o({data:n,bytesCount:(0,v.computeBytesCount)(n)})}else r&&e.write(e.isEmpty?r:`
2${r}`),e.finish(e=>{o(M(e))})})(t));function u(t,r){let n=(0,l.jsonStringify)(t),i=e.estimateEncodedBytesCount(n);if(i>=D)return void o.display.warn(`Discarded a message whose size was bigger than the maximum allowed size ${D/v.ONE_KIBI_BYTE}KiB. ${k.MORE_DETAILS} ${o.DOCS_TROUBLESHOOTING}/#technical-limitations`);if(void 0!==r){let t;void 0!==s[r]?t=i-e.estimateEncodedBytesCount(s[r]):(a.notifyBeforeAddMessage(i),t=0),s[r]=n,a.notifyAfterAddMessage(t)}else a.notifyBeforeAddMessage(i),e.write(e.isEmpty?n:`
3${n}`,e=>{a.notifyAfterAddMessage(e-i)})}return{get isEmpty(){return 0===a.messagesCount},add:u,upsert:u,prepareUrgentFlushObservable:a.prepareUrgentFlushObservable,forceFlush:a.forceFlush,flushObservable:a.flushObservable,stop:c.unsubscribe}}function M(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}e.s(["createBatch",0,x],163601);let U="configuration",L="usage",P="datad0g.com",V="datadoghq.com",$="ddog-gov.com",j="us2.ddog-gov.com",B=["ddsource","dd-api-key","dd-request-id"];e.s(["INTAKE_SITE_EU1",0,"datadoghq.eu","INTAKE_SITE_STAGING",0,P,"INTAKE_SITE_US1",0,V,"INTAKE_SITE_US1_FED",0,$,"INTAKE_SITE_US2_FED",0,j,"isIntakeUrl",0,function(e){return B.every(t=>e.includes(t))}],167338);var F=e.i(861142);function K(e,t,r){return{build:(n,i)=>H({proxy:e.proxy,site:e.site,path:`/api/v2/${t}`,parameters:function({clientToken:e,source:t="browser"},r,n,{retry:i,encoding:o},a=[]){let s=[`ddsource=${t}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("7.13.0")}`,"dd-evp-origin=browser",`dd-request-id=${function e(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e)}()}`].concat(a);return o&&s.push(`dd-evp-encoding=${o}`),"rum"===r&&(s.push(`batch_time=${(0,R.timeStampNow)()}`,`_dd.api=${n}`),i&&s.push(`_dd.retry_count=${i.count}`,`_dd.retry_after=${i.lastFailureStatus}`)),s.join("&")}(e,t,n,i,r)}),trackType:t}}function q({replica:e,proxy:t,source:r},n){if(e)return K({clientToken:e.clientToken,proxy:t,source:r,site:V},n,"rum"===n?[`application.id=${e.applicationId}`]:void 0)}function H({proxy:e,site:t=V,path:r,parameters:n="",subdomain:i}){let o=r;if(n&&(o+=`?${n}`),"string"==typeof e){let t=`${(0,F.normalizeUrl)(e)}?ddforward=${encodeURIComponent(o)}`;return i&&(t+=`&ddforwardSubdomain=${i}`),t}if("function"==typeof e)return e({path:r,parameters:n,subdomain:i});let a=t.split("."),s=a.pop(),c=`browser-intake-${a.join("-")}.${s}`;return i&&(c=`${i}.${c}`),`https://${c}${o}`}e.s(["buildEndpointUrl",0,H,"createEndpointBuilder",0,K,"createReplicaEndpointBuilder",0,q],837262);var G=e.i(586937);function W(e,t,r){if(void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t.source,t.flags);if(r.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){let n=Array.isArray(e)?e:[];for(let e=0;e<t.length;++e)n[e]=W(n[e],t[e],r);return n}let n="object"===(0,G.getType)(e)?e:{};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&"__proto__"!==e&&(n[e]=W(n[e],t[e],r));return n}function z(...e){let t;for(let r of e)null!=r&&(t=W(t,r,Y()));return t}function Y(){let e=new WeakSet;return{hasAlreadyBeenSeen(t){let r=e.has(t);return r||e.add(t),r}}}e.s(["combine",0,z,"deepClone",0,function(e){return W(void 0,e,Y())}],669319);var J=e.i(293201),X=e.i(534502);let Z="DISCARDED";function Q(e){return 0!==e&&100*Math.random()<=e}e.s(["DISCARDED",0,Z,"SKIPPED",0,"SKIPPED","createHook",0,function(){let e=[];return{register:t=>(e.push(t),{unregister(){e=e.filter(e=>e!==t)}}),trigger(t){let r=[];for(let n of e){let e=n(t);if("DISCARDED"===e)return Z;"SKIPPED"!==e&&r.push(e)}return z(...r)}}}],839985);let ee=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],et=((r={}).LOGS="browser-logs-sdk",r.RUM="browser-rum-sdk",r),er=((n={}).CUSTOMER_DATA_METRIC_NAME="Customer data measures",n.REMOTE_CONFIGURATION_METRIC_NAME="remote configuration metrics",n.RECORDER_INIT_METRICS_TELEMETRY_NAME="Recorder init metrics",n.SEGMENT_METRICS_TELEMETRY_NAME="Segment network request metrics",n.SESSION_MANAGER_INIT_METRICS_TELEMETRY_NAME="Session manager init metrics",n),en=[$,j];function ei(){return t||(t=new i.BufferedObservable(100)),t}function eo(e,t){ei().notify({rawEvent:{type:"log",status:"error",...function(e){if((0,d.isError)(e)){var t;let r=(0,c.computeStackTrace)(e);return{error:{kind:r.name,stack:(0,u.toStackTraceString)(((t=r).stack=t.stack.filter(e=>!e.url||ee.some(t=>e.url.startsWith(t))),t))},message:r.message}}return{error:{stack:d.NO_ERROR_STACK_PRESENT_MESSAGE},message:`Uncaught ${(0,l.jsonStringify)(e)}`}}(e),...t}})}e.s(["TelemetryMetrics",0,er,"TelemetryService",0,et,"addTelemetryConfiguration",0,function(e){ei().notify({rawEvent:{type:U,configuration:e}})},"addTelemetryDebug",0,function(e,t){(0,J.getDebugMode)()&&o.display.debug("[Telemetry]",e,t),ei().notify({rawEvent:{type:"log",message:e,status:"debug",...t}})},"addTelemetryError",0,eo,"addTelemetryMetrics",0,function(e,t){ei().notify({rawEvent:{type:"log",message:e,status:"debug",...t},metricName:e})},"addTelemetryUsage",0,function(e){ei().notify({rawEvent:{type:L,usage:e}})},"startTelemetry",0,function(e,t,r,n){let o=new i.Observable,{enabled:c,metricsEnabled:u}=function(e,t,r,n,i,o=1,s=15){let c={},u=!en.includes(t.site)&&Q(t.telemetrySampleRate),d={log:u,[U]:u&&Q(t.telemetryConfigurationSampleRate),[L]:u&&Q(t.telemetryUsageSampleRate),metric:u&&Q(o)},g={is_local_file:S.globalObject.location?.protocol==="file:",is_worker:S.isWorkerEnvironment}
3,y=ei();return y.subscribe(({rawEvent:o,metricName:u})=>{var y,v,E,b;let h;if(u&&!d.metric||!d[o.type])return;let S=u||o.status||o.type,_=c[S];if(_||(_=c[S]=new Set),_.size>=s)return;let T=(0,l.jsonStringify)(o);if(_.has(T))return;let O=r.trigger({startTime:(0,R.clocksNow)().relative});if(O===Z)return;let w=(y=O,v=e,E=o,b=g,h={type:"telemetry",date:(0,R.clocksNow)().timeStamp,service:v,version:"7.13.0",source:"browser",_dd:{format_version:2},telemetry:z(E,{runtime_env:b,connectivity:(0,m.getConnectivity)(),sdk_setup:"npm",sdk_name:i}),ddtags:(0,p.buildTags)(t).join(","),experimental_features:Array.from((0,a.getExperimentalFeatures)())},z(h,y));n.notify(w),(0,f.sendToExtension)("telemetry",w),_.add(T)}),y.unbuffer(),(0,X.startMonitorErrorCollection)(eo),{enabled:u,metricsEnabled:d.metric}}(e,t,r,o,n),{stop:d}=function(e,t){let r=[];if((0,g.canUseEventBridge)()){let e=(0,g.getEventBridge)(),n=t.subscribe(t=>e.send("internal_telemetry",t));r.push(n.unsubscribe)}else{let n=[K(e,"rum")],i=q(e,"rum");i&&e.site===P&&n.push(i);let o=x({endpoints:n,reportError:s.noop});r.push(o.stop);let a=t.subscribe(o.add);r.push(a.unsubscribe)}return{stop:()=>r.forEach(e=>e())}}(t,o);return{stop:d,enabled:c,metricsEnabled:u}}],223950)},817195,e=>{"use strict";var t=e.i(51167);let r=(0,t.createDisplay)("Datadog Browser SDK:"),n=`${t.DOCS_ORIGIN}/real_user_monitoring/browser/troubleshooting`;e.s(["DOCS_TROUBLESHOOTING",0,n,"display",0,r])},177171,e=>{"use strict";var t,r=e.i(805492);let n=((t={}).SESSION_REPLAY_RECORD_CANVAS="session_replay_record_canvas",t.TRACK_INTAKE_REQUESTS="track_intake_requests",t.TRACK_WEBSOCKETS="track_websockets",t),i=new Set;e.s(["ExperimentalFeature",0,n,"getExperimentalFeatures",0,function(){return i},"initFeatureFlags",0,function(e){Array.isArray(e)&&e.filter(e=>(0,r.objectHasValue)(n,e)).forEach(e=>{i.add(e)})},"isExperimentalFeatureEnabled",0,function(e){return i.has(e)}])},545468,e=>{"use strict";var t=e.i(954226),r=e.i(534502);function n(e){let n=t.globalObject.queueMicrotask;"function"==typeof n?n((0,r.monitor)(e)):Promise.resolve().then((0,r.monitor)(e))}var i=class{constructor(e){this.onFirstSubscribe=e,this.observers=[]}subscribe(e){return this.addObserver(e),{unsubscribe:()=>this.removeObserver(e)}}notify(e){this.observers.forEach(t=>t(e))}addObserver(e){this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(e){this.observers=this.observers.filter(t=>e!==t),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}},o=class extends i{constructor(e,t){super(),this.maxBufferSize=e,this.onDrop=t,this.buffer=[],this.droppedCount=0}notify(e){this.buffer.push(e),this.buffer.length>this.maxBufferSize&&(this.buffer.shift(),this.droppedCount++),super.notify(e)}subscribe(e){let t=!1;return n(()=>{for(let r of this.buffer){if(t)return;e(r)}t||this.addObserver(e)}),{unsubscribe:()=>{t=!0,this.removeObserver(e)}}}unbuffer(){n(()=>{this.droppedCount>0&&this.onDrop&&this.onDrop(this.droppedCount),this.maxBufferSize=this.buffer.length=0})}};e.s(["BufferedObservable",0,o,"Observable",0,i,"mergeObservables",0,function(...e){return new i(t=>{let r=e.map(e=>e.subscribe(e=>t.notify(e)));return()=>r.forEach(e=>e.unsubscribe())})}],545468)},829381,391648,133398,388760,577814,e=>{"use strict";var t=e.i(190187);function r(e){let r=e.toJSON;return r?(delete e.toJSON,()=>{e.toJSON=r}):t.noop}e.s(["detachToJsonMethod",0,r,"jsonStringify",0,function(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);let i=r(Object.prototype),o=r(Array.prototype),a=r(Object.getPrototypeOf(e)),s=r(e);try{return JSON.stringify(e,t,n)}catch{return"<error: unable to serialize object>"}finally{i(),o(),a(),s()}}],829381),e.s(["NO_ERROR_STACK_PRESENT_MESSAGE",0,"No stack, consider using an instance of Error","isError",0,function(e){try{return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}catch{return!1}}],391648);var n=e.i(817195),i=e.i(51167);function o(e,t){var r;let o=t?`${e}:${t}`:e;return(o.length>200||(r=o,RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(r)))&&n.display.warn(`Tag ${o} doesn't meet tag requirements and will be sanitized. ${i.MORE_DETAILS} ${i.DOCS_ORIGIN}/getting_started/tagging/#defining-tags`),o.replace(/,/g,"_")}e.s(["buildTags",0,function(e){let{env:t,service:r,version:n,datacenter:i,sdkVersion:a,variant:s}=e,c=[o("sdk_version",a??"7.13.0")];return t&&c.push(o("env",t)),r&&c.push(o("service",r)),n&&c.push(o("version",n)),i&&c.push(o("datacenter",i)),s&&c.push(o("variant",s)),c}],133398);var a=e.i(954226);e.s(["sendToExtension",0,function(e,t){let r=a.globalObject.__ddBrowserSdkExtensionCallback;r&&r({type:e,payload:t})}],388760),e.s(["getConnectivity",0,function(){let{navigator:e}=a.globalObject;return{status:e?.onLine?"connected":"not_connected",interfaces:e?.connection?.type?[e.connection.type]:void 0,effective_type:e?.connection?.effectiveType}}],577814)},121968,e=>{"use strict";let t=/[^\u0000-\u007F]/;e.s(["ONE_KIBI_BYTE",0,1024,"ONE_MEBI_BYTE",0,1048576,"computeBytesCount",0,function(e){return t.test(e)?new TextEncoder().encode(e).length:e.length},"concatBuffers",0,function(e){if(1===e.length)return e[0];let t=new Uint8Array(e.reduce((e,t)=>
3e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}])},190187,639385,515452,e=>{"use strict";var t=e.i(954226);function r(e,r){let n,i=t.globalObject;return i.Zone&&"function"==typeof i.Zone.__symbol__&&(n=e[i.Zone.__symbol__(r)]),n||(n=e[r]),n}e.s(["getZoneJsOriginalValue",0,r],639385);var n=e.i(534502);function i(e,i){return r(t.globalObject,"setTimeout")((0,n.monitor)(e),i)}function o(e){r(t.globalObject,"clearTimeout")(e)}e.s(["clearInterval",0,function(e){r(t.globalObject,"clearInterval")(e)},"clearTimeout",0,o,"setInterval",0,function(e,i){return r(t.globalObject,"setInterval")((0,n.monitor)(e),i)},"setTimeout",0,i],515452),e.s(["noop",0,function(){},"throttle",0,function(e,t,r){let n,a,s=r?.leading===void 0||r.leading,c=r?.trailing===void 0||r.trailing,u=!1;return{throttled:(...r)=>{if(u){n=r;return}s?e(...r):n=r,u=!0,a=i(()=>{c&&n&&e(...n),u=!1,n=void 0},t)},cancel:()=>{o(a),u=!1,n=void 0}}}],190187)},805492,e=>{"use strict";let t=(e,t)=>"__proto__"===e?void 0:t;e.s(["isEmptyObject",0,function(e){return 0===Object.keys(e).length},"mapValues",0,function(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n]);return r},"objectHasValue",0,function(e,t){return Object.keys(e).some(r=>e[r]===t)},"shallowClone",0,function(e){return{...e}},"tryJsonParse",0,function(e){try{return JSON.parse(e,t)}catch{}}])},841619,e=>{"use strict";var t,r=e.i(817195),n=e.i(954226);let i=((t={}).RECORDS="records",t.PROFILES="profiles",t);function o(){let e=n.globalObject.DatadogEventBridge;if(e)return{getCapabilities:()=>JSON.parse(e.getCapabilities?.()||"[]"),getPrivacyLevel:()=>e.getPrivacyLevel?.(),getIsTraceSampled:()=>JSON.parse(e.getIsTraceSampled?.()||"null"),getAllowedWebViewHosts:()=>JSON.parse(e.getAllowedWebViewHosts()),send(t,r,n){e.send(JSON.stringify({eventType:t,event:r,view:n?{id:n}:void 0}))}}}e.s(["BridgeCapability",0,i,"bridgeSupports",0,function(e){let t=o();return!!t&&t.getCapabilities().includes(e)},"canUseEventBridge",0,function(e=n.globalObject.location?.hostname){return o()?.getAllowedWebViewHosts().some(t=>(function(e,t){if(!t.includes("*"))return e===t||e.endsWith(`.${t}`);let n=t.split("*");if(2!==n.length)return r.display.error(`Invalid WebView host pattern "${t}": only one wildcard (*) is supported.`),!1;let[i,o]=n;return e.length>i.length+o.length&&e.startsWith(i)&&e.endsWith(o)})(e,t))??!1},"getEventBridge",0,o])},976445,949142,91866,199150,e=>{"use strict";var t=e.i(545468),r=e.i(121968),n=e.i(639385),i=e.i(954226);function o(e,t){return(0,n.getZoneJsOriginalValue)(i.globalObject,"fetch")(e,t)}e.s(["fetch",0,o],949142);var a=e.i(515452);function s(e){return e>=500}e.s(["isServerError",0,s,"tryToClone",0,function(e){try{return e.clone()}catch{return}}],91866);var c=e.i(667098);let u=80*r.ONE_KIBI_BYTE,l=20*r.ONE_MEBI_BYTE,d=c.ONE_MINUTE,p=c.ONE_SECOND;function f(e,t,r,n,i,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?m(e,t,r,o,{onSuccess:()=>g(0,t,r,n,i,o),onFailure:()=>{t.queuedPayloads.enqueue(e)||o.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),function e(t,r,n,i,o){2===t.transportStatus&&(0,a.setTimeout)(()=>{m(t.queuedPayloads.first(),t,r,o,{onSuccess:()=>{t.queuedPayloads.dequeue(),t.currentBackoffTime=p,g(1,t,r,n,i,o)},onFailure:()=>{t.currentBackoffTime=Math.min(d,2*t.currentBackoffTime),e(t,r,n,i,o)}})},t.currentBackoffTime)}(t,r,n,i,o)}}):t.queuedPayloads.enqueue(e)||o.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function m(e,t,r,n,{onSuccess:i,onFailure:o}){t.bandwidthMonitor.add(e),r(e,r=>{var a;t.bandwidthMonitor.remove(e),"opaque"!==(a=r).type&&(0===a.status&&!navigator.onLine||408===a.status||429===a.status||s(a.status))?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:r.status},n.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o()):(t.transportStatus=0,n.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),i())})}function g(e,t,n,i,o,a){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o(`Reached max ${i} events size queued for upload: ${l/r.ONE_MEBI_BYTE}MiB`),t.queueFullReported=!0);let s=t.queuedPayloads;for(t.queuedPayloads=y();s.size()>0;)f(s.dequeue(),t,n,i,o,a)}function y(){let e=[];return{bytesCount:0,enqueue(t){return!this.isFull()&&(e.push(t),this.bytesCount+=t.bytesCount,!0)},first:()=>e[0],dequeue(){let t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:()=>e.length,isFull(){return this.bytesCount>=l}}}var v=e.i(534502);let E=16*r.ONE_KIBI_BYTE,b=!1;function h(e,t,r){o(e.build("fetch",t),{method:"POST",body:t.data,mode:"cors"}).then((0,v.monitor)(e=>r?.({status:e.status,type:e.type}))).catch((0,v.monitor)(()=>r?.({status:0})))}e.s(["RECOMMENDED_REQUEST_BYTES_LIMIT",0,E,"createHttpRequest",0,function(e,r,n=E){let i=new t.Observable,o={transportStatus:0,currentBackoffTime:p,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=u&&this.ongoingRequestCount<32},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:y(),queueFullReported:!1};return{observable:i,send:t=>{for(let n of e)f(t,o,(e,t)=>{h(n,e,t)},n.trackType,r,i)},sendOnExit:t=>{for(let r of e)!function(e,t,r){if(r.bytesCount<t)try{let t=e.build("beacon",r);if(navigator.sendBeacon(t,r.data))return}catch(e){var n;n=e,b||(b=!0,(0,v.monitorError)(n))}h(e,r)}(r,n,t)}}}
3],976445),e.s(["findLast",0,function(e,t){for(let r=e.length-1;r>=0;r-=1){let n=e[r];if(t(n,r,e))return n}},"objectEntries",0,function(e){return Object.entries(e)},"objectValues",0,function(e){return Object.values(e)}],199150)},248393,e=>{"use strict";var t=e.i(667098),r=e.i(586937),n=e.i(466244),i=e.i(805492);function o(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}e.s(["CACHE_STATUS_TO_METRIC_MAP",0,{hit:"success",miss:"missing",error:"failure"},"createConfigurationCache",0,function({remoteConfigurationId:e}){let a=`dd_rc_${e}`;return{read(){let e;try{e=localStorage.getItem(a)}catch{return{status:"error"}}if(null===e)return{status:"miss"};let t=(0,i.tryJsonParse)(e);return void 0===t||!function(e){if("object"!=typeof e||null===e)return!1;let t="version"in e&&3===e.version,n="config"in e&&"object"==typeof e.config&&null!==e.config,i="metadata"in e&&(0,r.isIndexableObject)(e.metadata)&&"string"==typeof e.metadata.syncId&&"number"==typeof e.metadata.lastSynced;return t&&n&&i}(t)?(this.remove(),{status:"error"}):{status:"hit",config:t.config,metadata:t.metadata}},remove(){try{localStorage.removeItem(a)}catch{}},write(e,r){let i=this.read();("hit"!==i.status||JSON.stringify(i.config)!==JSON.stringify(e))&&o(a,{version:3,config:e,metadata:{lastModified:r,lastSynced:(0,t.timeStampNow)(),syncId:(0,n.generateUUID)()}})},stampFirstApplied(e){if(void 0!==e.metadata.firstApplied)return e.metadata;let r={...e.metadata,firstApplied:(0,t.timeStampNow)()};return o(a,{version:3,config:e.config,metadata:r}),r}}}])},401711,156834,777083,527090,522939,303059,245821,484148,981225,774304,754752,622378,932989,850971,538276,242652,10931,540721,959300,950559,698821,968514,73403,609965,194655,753719,e=>{"use strict";let t,r,n,i,o,a,s,c,u,l,d,p,f;var m,g,y,v,E,b,h,S,_=e.i(710754),T=e.i(525554),O=e.i(270666),w=e.i(248393),C=e.i(586937),R=e.i(223950),A=e.i(817195),I=e.i(949142),N=e.i(466244),k=e.i(861142),D=e.i(954226),x=e.i(667098);function M(e,t,r=0,n){let i=new Date;i.setTime(i.getTime()+r);let o=`expires=${i.toUTCString()}`,a=n?.crossSite?"none":"strict",s=n?.domain?`;domain=${n.domain}`:"",c=n?.secure?";secure":"",u=n?.partitioned?";partitioned":"";document.cookie=`${e}=${t};${o};path=/;samesite=${a}${s}${c}${u}`}function U(e){let t=(0,N.findCommaSeparatedValue)(document.cookie,e);if(""!==t)return t}function L(e){return(0,N.findAllCommaSeparatedValues)(document.cookie).get(e)||[]}function P(e){return t||(t=(0,N.findCommaSeparatedValues)(document.cookie)),t.get(e)}var V=e.i(805492),$=e.i(534502),j=e.i(837262);let B=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","telemetrySampleRate","trackAnonymousUser","trackUserInteractions","trackResources","trackLongTasks","traceContextInjection","actionNameAttribute","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function F(e,t){let r,n=q(),i=await G(e);return i.ok?(n.increment("fetch","success"),r=K(e,i.value,t,n)):(n.increment("fetch","failure"),A.display.error(i.error)),(0,R.addTelemetryMetrics)(R.TelemetryMetrics.REMOTE_CONFIGURATION_METRIC_NAME,{metrics:n.get()}),r}function K(e,t,r,n){let i={...e};if(t.rum){let e=t.rum;B.forEach(t=>{t in e&&(i[t]=o(e[t]))}),Object.keys(r).forEach(t=>{var n;void 0!==e[t]&&(n=r[t],e[t].forEach(({key:e,value:t})=>{n.setContextProperty(e,o(t))}))})}return t.profiling?.sampleRate!==void 0&&(i.profilingSampleRate=t.profiling.sampleRate),i;function o(e){if(Array.isArray(e))return e.map(o);if((0,C.isIndexableObject)(e)){if("rcSerializedType"in e){let r=e.rcSerializedType;switch(r){case"string":return e.value;case"regex":return H(e.value);case"dynamic":var t=e;let i,o=t.strategy;switch(o){case"cookie":i=function({name:e}){let t=U(e);return n.increment("cookie",void 0!==t?"success":"missing"),t}(t);break;case"dom":i=function({selector:e,attribute:t}){var r,i;let o;try{o=document.querySelector(e)}catch{A.display.error(`Invalid selector in the remote configuration: '${e}'`),n.increment("dom","failure");return}if(!o)return void n.increment("dom","missing");if(r=o,i=t,"password"===r.getAttribute("type")&&"value"===i){A.display.error(`Forbidden element selected by the remote configuration: '${e}'`),n.increment("dom","failure");return}let a=void 0!==t?o.getAttribute(t):o.textContent;return null===a?void n.increment("dom","missing"):(n.increment("dom","success"),a)}(t);break;case"js":i=function({path:e}){let t=window,r=(0,O.parseJsonPath)(e);if(0===r.length){A.display.error(`Invalid JSON path in the remote configuration: '${e}'`),n.increment("js","failure");return}for(let i of r){if(!(i in t))return void n.increment("js","missing");try{t=t[i]}catch(t){A.display.error(`Error accessing: '${e}'`,t),n.increment("js","failure");return}}return n.increment("js","success"),t}(t);break;case"localStorage":i=function({key:e}){let t;try{t=localStorage.getItem(e)}catch{n.increment("localStorage","failure");return}return n.increment("localStorage",null!==t?"success":"missing"),t??void 0}(t);break;default:A.display.error(`Unsupported remote configuration: "strategy": "${o}"`);return}let a=t.extractor;return void 0!==a&&"string"==typeof i?function(e,t){let r=H(e.value);if(void 0!==r)return(0,T.extractRegexMatch)(t,r)}(a,i):i;default:A.display.error(`Unsupported remote configuration: "rcSerializedType": "${r}"`);return}}return(0,V.mapValues)(e,o)}return e}}function q(){let e={fetch:{}};return{get:()=>e,increment:(t,r)=>{e[t]||(e[t]={}),e[t][r]||(e[t][r]=0),e[t][r]=e[t][r]+1}}}function H(e){try{return new RegExp(e)}catch{A.display.error(`Invalid regex in the remote configuration: '${e}'`)}}async function G(e){let t;try{t=await (0,I.fetch)(function(e){if(e.remoteConfigurationProxy)return e.remoteConfigurationProxy;let t=W(e);return(0,j.buildEndpointUrl)({site:e.site,path:`/v1/${encodeURIComponent(t)}.json`,subdomain:"sdk-configuration"})}(e))}catch{t=void 0}if(!t?.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};let r=await t.json();return r.rum||r.profiling?{ok:!0,value:r,lastModified:function(e){let t=e.headers?.get("last-modified");if(!t)return;let r=new Date(t).getTime();return isNaN(r)?void 0:r}(t)}:{ok:!1,error:Error("No remote configuration for RUM.")}}function W(e){return e.remoteConfiguration?.id??e.remoteConfigurationId}var z=e.i(545468);let Y={GRANTED:"granted",NOT_GRANTED:"not-granted"};var J=e.i(167338);let X={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},Z={ALL:"all",SAMPLED:"sampled"},Q={clientToken:{type:"string",required:!0},service:{type:"string"},env:{type:"string"},version:{type:"string"},site:{type:"site",default:J.INTAKE_SITE_US1},proxy:{type:"union",variants:[{type:"string"},{type:"function",signature:void 0}]},sessionSampleRate:{type:"percentage",default:100},telemetrySampleRate:{type:"percentage",default:20},telemetryConfigurationSampleRate:{type:"percentage",default:5},telemetryUsageSampleRate:{type:"percentage",default:5},silentMultipleInit:{type:"boolean",default:!1,strict:!1},storeContextsAcrossPages:{type:"boolean",default:!1,strict:!1},trackAnonymousUser:{type:"boolean",default:!0,strict:!1},useSecureSessionCookie:{type:"boolean",default:!1,strict:!1},usePartitionedCrossSiteSessionCookie:{type:"boolean",default:!1,strict:!1}
3,trackSessionAcrossSubdomains:{type:"boolean",default:!1,strict:!1},allowedTrackingOrigins:{type:"match-option",multiple:!0,strict:!1},trackingConsent:{type:"enum",values:Y,default:Y.GRANTED},beforeSend:{type:"function",signature:void 0},source:{type:"enum",values:["browser","flutter","unity"],default:"browser",strict:!1},sessionPersistence:{type:"enum",values:["cookie","local-storage","memory"],multiple:!0,strict:!1},replica:{type:"schema",schema:{clientToken:{type:"string",required:!0},applicationId:{type:"string"}}},datacenter:{type:"string"},sdkVersion:{type:"string"},variant:{type:"string"}};function ee(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackAnonymousUser,session_persistence:Array.isArray(e.sessionPersistence)?e.sessionPersistence[0]:e.sessionPersistence,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins),source:e.source,sdk_version:e.sdkVersion,variant:e.variant}}e.s(["BROWSER_CORE_SCHEMA",0,Q,"DefaultPrivacyLevel",0,X,"TraceContextInjection",0,Z,"serializeConfiguration",0,ee],156834);var et=e.i(177171),er=e.i(841619);function en(e,t){return(...r)=>{try{return e(...r)}catch(e){A.display.error(t,e)}}}function ei(e){return Array.isArray(e)&&e.length>0}function eo(e,t){return+e.toFixed(t)}function ea(e){return"number"==typeof e}var es=e.i(669319),ec=e.i(51167);function eu(e,t,r){let n={};for(let[i,o]of Object.entries(e)){let e=t[i],a=o.multiple?function(e,t,r){if(null==t)return;if("enum"===e.type&&e.allowAll&&"all"===t)return ep(e.values).slice();let n=Array.isArray(t)?t:[t],i=[];for(let t of n){let n=ed(e,t,r);if(void 0===n){if(!1!==e.strict)return}else i.push(n)}if(!1!==e.strict||0!==i.length||!(n.length>0))return i}(o,e,r):ed(o,e,r);if(void 0===a){if(null!=e&&""!==e){if(r.error(function(e,t){switch(t.type){case"string":return`"${e}" must be a non-empty string`;case"number":if(void 0!==t.min&&void 0!==t.max)return`"${e}" must be a number between ${t.min} and ${t.max}`;if(void 0!==t.min)return`"${e}" must be a number greater than or equal to ${t.min}`;if(void 0!==t.max)return`"${e}" must be a number less than or equal to ${t.max}`;return`"${e}" must be a finite number`;case"percentage":return`"${e}" must be a number between 0 and 100`;case"boolean":return`"${e}" must be a boolean`;case"site":return`"${e}" must be a valid Datadog site. ${ec.MORE_DETAILS} ${ec.DOCS_ORIGIN}/getting_started/site/.`;case"match-option":return`"${e}" must be a string, RegExp, or function`;case"enum":return`"${e}" must be one of: "${ep(t.values).join('", "')}"`;case"union":return`"${e}" does not match any expected type`;case"schema":return`"${e}" is not a valid object`;case"function":return`"${e}" must be a function`}}(i,o)),o.required||!1!==o.strict)return}else if(o.required)return void r.error(`"${i}" is required`);n[i]="default"in o?(0,es.deepClone)(o.default):void 0}else n[i]=a}return n}let el=/(datadog|ddog|datad0g|dd0g)/;function ed(e,t,r){if("schema"===e.type){if("object"!=typeof t||null===t)return;return eu(e.schema,t,r)}if("union"===e.type){if(null==t)return;for(let n of e.variants){let e=ed(n,t,r);if(void 0!==e)return e}return}if(null!=t)switch(e.type){case"function":return"function"==typeof t?t:void 0;case"string":return"string"==typeof t&&t.length>0?t:void 0;case"number":return"number"==typeof t&&Number.isFinite(t)&&(void 0===e.min||t>=e.min)&&(void 0===e.max||t<=e.max)?t:void 0;case"percentage":return(0,C.isPercentage)(t)?t:void 0;case"boolean":return"boolean"==typeof t?t:!1===e.strict?!!t:void 0;case"site":if("string"!=typeof t||!el.test(t))return;return t;case"match-option":return(0,C.isMatchOption)(t)?t:void 0;case"enum":return"string"==typeof t&&ep(e.values).includes(t)?t:void 0}}function ep(e){return Array.isArray(e)?e:Object.values(e)}
3let ef=["tracecontext","datadog"],em=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache","cf-cache-status","x-vercel-cache"],eg={...Q,applicationId:{type:"string",required:!0},actionNameAttribute:{type:"string"},workerUrl:{type:"string"},subdomain:{type:"string"},sessionReplaySampleRate:{type:"percentage",default:0},traceSampleRate:{type:"percentage",default:100},profilingSampleRate:{type:"percentage",default:0},compressIntakeRequests:{type:"boolean",default:!1},trackUserInteractions:{type:"boolean",default:!0,strict:!1},trackResources:{type:"boolean",default:!0,strict:!1},trackLongTasks:{type:"boolean",default:!0,strict:!1},trackViewsManually:{type:"boolean",default:!1,strict:!1},betaEnableViewUpdates:{type:"boolean"},betaTrackWebSockets:{type:"boolean",default:!1,strict:!1},enablePrivacyForActionName:{type:"boolean",default:!0},propagateTraceBaggage:{type:"boolean",default:!0},startSessionReplayRecordingManually:{type:"boolean",default:!1,strict:!1},sessionReplayCanvasRecording:{type:"schema",schema:{enable:{type:"boolean",required:!0},maxFramesPerSecond:{type:"number",min:0,max:5,default:1},hashingMaxDimension:{type:"number",min:1,max:100,default:100},maxImageDimension:{type:"number",min:1,max:1e3,default:1e3}}},defaultPrivacyLevel:{type:"enum",values:X,default:X.MASK_USER_INPUT,strict:!1},traceContextInjection:{type:"enum",values:Z,default:Z.SAMPLED,strict:!1},excludedActivityUrls:{type:"match-option",multiple:!0,default:[]},allowedTracingUrls:{type:"union",multiple:!0,strict:!1,default:[],variants:[{type:"match-option"},{type:"schema",schema:{match:{type:"match-option",required:!0},propagatorTypes:{type:"enum",values:["datadog","b3","b3multi","tracecontext"],multiple:!0,strict:!1,default:ef}}}]},plugins:{type:"schema",multiple:!0,strict:!1,default:[],schema:{name:{type:"string",required:!0},getConfigurationTelemetry:{type:"function",strict:!1,signature:void 0},onInit:{type:"function",strict:!1,signature:void 0},onRumStart:{type:"function",strict:!1,signature:void 0}}},trackFeatureFlagsForEvents:{type:"enum",values:["vital","action","long_task","resource"],multiple:!0,strict:!1,default:[]}};function ey(e,t,r){return!(0,er.canUseEventBridge)()&&(e??!1)}function ev(e,t){var r;let n=(r=A.display,e&&"object"==typeof e?eu(eg,e,r):void r.error("Configuration must be an object"));if(!n)return;let i=n.allowedTracingUrls.map(eE).filter(Boolean);if(i.length>0&&!n.service)return void A.display.error("Service needs to be configured when tracing is enabled");let o=(0,et.isExperimentalFeatureEnabled)(et.ExperimentalFeature.SESSION_REPLAY_RECORD_CANVAS)?n.sessionReplayCanvasRecording:void 0;return{...n,service:n.service||n.applicationId,sessionReplayCanvasRecording:o,betaEnableViewUpdates:ey(n.betaEnableViewUpdates,n.proxy,t),allowedTracingUrls:i,beforeSend:n.beforeSend?en(n.beforeSend,"beforeSend threw an error:"):void 0,rulePsr:ea(e.traceSampleRate)?e.traceSampleRate/100:void 0,trackResourceHeaders:function(e){let t=e.trackResourceHeaders;if(void 0===t||!1===t)return[];if(!0===t)return em.map(e=>({name:e}));if(!Array.isArray(t))return A.display.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(0===t.length)return A.display.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];let r=[];return t.forEach((e,t)=>{if(!(0,C.isIndexableObject)(e))return void A.display.warn(`trackResourceHeaders[${t}] should be a MatchHeader object`);if(void 0!==e.name&&!(0,C.isMatchOption)(e.name))return void A.display.warn(`trackResourceHeaders[${t}].name should be a MatchOption`);if(void 0!==e.url&&!(0,C.isMatchOption)(e.url))return void A.display.warn(`trackResourceHeaders[${t}].url should be a MatchOption`);if(void 0!==e.extractor&&!(e.extractor instanceof RegExp))return void A.display.warn(`trackResourceHeaders[${t}].extractor should be a RegExp`);if(void 0!==e.location&&("string"!=typeof e.location||!eb.includes(e.location)))return void A.display.warn(`trackResourceHeaders[${t}].location should be 'request', 'response', or 'any'`);let{name:n,...i}=e;r.push({...i,...void 0!==n?{name:"string"==typeof n?n.toLowerCase():n}:{}})}),r}(e),allowedGraphQlUrls:function(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return A.display.warn("allowedGraphQlUrls should be an array"),[];let t=[];
3return e.allowedGraphQlUrls.forEach(e=>{(0,C.isMatchOption)(e)?t.push({match:e,trackPayload:!1,trackResponseErrors:!1}):(0,C.isIndexableObject)(e)&&(0,C.isMatchOption)(e.match)&&t.push({match:e.match,trackPayload:!!e.trackPayload,trackResponseErrors:!!e.trackResponseErrors})}),t}(e),remoteConfigurationId:W(e)}}function eE(e){return(0,C.isMatchOption)(e)?{match:e,propagatorTypes:ef}:(0,C.isIndexableObject)(e)&&(0,C.isMatchOption)(e.match)&&(null===e.propagatorTypes||void 0===e.propagatorTypes||Array.isArray(e.propagatorTypes))?{match:e.match,propagatorTypes:e.propagatorTypes||ef}:void 0}let eb=["request","response","any"];function eh(e,t,r){var n,i,o;let a,s=ee(e);return{session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,propagate_trace_baggage:e.propagateTraceBaggage,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:ei(e.allowedTracingUrls),use_allowed_graph_ql_urls:ei(e.allowedGraphQlUrls),use_track_graph_ql_payload:ei(n=e.allowedGraphQlUrls)&&n.some(e=>(0,C.isIndexableObject)(e)&&e.trackPayload),use_track_graph_ql_response_errors:ei(i=e.allowedGraphQlUrls)&&i.some(e=>(0,C.isIndexableObject)(e)&&e.trackResponseErrors),selected_tracing_propagators:(a=new Set,ei(e.allowedTracingUrls)&&e.allowedTracingUrls.forEach(e=>{eE(e)?.propagatorTypes.forEach(e=>a.add(e))}),Array.from(a)),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:ei(e.excludedActivityUrls),use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,plugins:e.plugins?.map(e=>({name:e.name,...e.getConfigurationTelemetry?.()})),track_feature_flags_for_events:e.trackFeatureFlagsForEvents,remote_configuration_id:W(e),remote_configuration:r&&{last_modified:r.lastModified,last_synced:r.lastSynced,first_applied:r.firstApplied,sync_id:r.syncId},profiling_sample_rate:e.profilingSampleRate,use_remote_configuration_proxy:!!e.remoteConfigurationProxy,track_resource_headers:!0===(o=e.trackResourceHeaders)?"default_headers":Array.isArray(o)?"custom":void 0,beta_enable_view_updates:ey(e.betaEnableViewUpdates,e.proxy,t),beta_track_web_sockets:e.betaTrackWebSockets,...s}}e.s(["DEFAULT_TRACKED_RESOURCE_HEADERS",0,em,"serializeRumConfiguration",0,eh,"validateAndBuildRumConfiguration",0,ev],777083);var eS=e.i(839985),e_=e.i(639385),eT=e.i(190187);function eO(){let e=ew();return new z.Observable(t=>{let r=new e((0,$.monitor)(e=>t.notify(e)));return r.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>r.disconnect()})}function ew(){let e,t=window;if(t.Zone&&(e=(0,e_.getZoneJsOriginalValue)(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){let r=new t.MutationObserver(eT.noop);e=(0,e_.getZoneJsOriginalValue)(r,"originalInstance")?.constructor}return e||(e=t.MutationObserver),e}e.s(["createDOMMutationObservable",0,eO,"getMutationObserverConstructor",0,ew],527090);var eC=class{constructor(){this.callbacks={}}notify(e,t){let r=this.callbacks[e];r&&r.forEach(e=>e(t))}subscribe(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:()=>{this.callbacks[e]=this.callbacks[e].filter(e=>t!==e)}}}};let eR=((m={})[m.AUTO_ACTION_COMPLETED=0]="AUTO_ACTION_COMPLETED",m[m.BEFORE_VIEW_CREATED=1]="BEFORE_VIEW_CREATED",m[m.VIEW_CREATED=2]="VIEW_CREATED",m[m.BEFORE_VIEW_UPDATED=3]="BEFORE_VIEW_UPDATED",m[m.VIEW_UPDATED=4]="VIEW_UPDATED",m[m.VIEW_ENDED=5]="VIEW_ENDED",m[m.AFTER_VIEW_ENDED=6]="AFTER_VIEW_ENDED",m[m.REQUEST_STARTED=7]="REQUEST_STARTED",m[m.REQUEST_COMPLETED=8]="REQUEST_COMPLETED",m[m.WEBSOCKET_COMPLETED=9]="WEBSOCKET_COMPLETED",m[m.SESSION_EXPIRED=10]="SESSION_EXPIRED",m[m.SESSION_RENEWED=11]="SESSION_RENEWED",m[m.PREPARE_URGENT_FLUSH=12]="PREPARE_URGENT_FLUSH",m[m.RAW_RUM_EVENT_COLLECTED=13]="RAW_RUM_EVENT_COLLECTED",m[m.RUM_EVENT_COLLECTED=14]="RUM_EVENT_COLLECTED",m[m.RAW_ERROR_COLLECTED=15]="RAW_ERROR_COLLECTED",m[m.ACTION_STARTED=16]="ACTION_STARTED",m[m.DURATION_VITAL_STARTED=17]="DURATION_VITAL_STARTED",m);e.s(["LifeCycle",0,eC,"LifeCycleEventType",0,eR],522939);
3let eA=4*x.ONE_HOUR,eI=15*x.ONE_MINUTE,eN=x.ONE_YEAR,ek={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"};e.s(["SESSION_COOKIE_EXPIRATION_DELAY",0,eN,"SESSION_EXPIRATION_DELAY",0,eI,"SESSION_TIME_OUT_DELAY",0,eA,"SessionPersistence",0,ek],303059);var eD=e.i(515452);let ex=1/0,eM=x.ONE_MINUTE,eU=new Set;function eL({expireDelay:e,maxEntries:t}){let r=[],i=()=>{if(!e)return;let t=(0,x.relativeNow)()-e;for(;r.length>0&&r[r.length-1].endTime<t;)r.pop()};return e&&(n||(n=(0,eD.setInterval)(()=>void eU.forEach(e=>e()),eM)),eU.add(i)),{add:function(e,n){let i={value:e,startTime:n,endTime:ex,remove:()=>{var e;let t;(t=(e=r).indexOf(i))>=0&&e.splice(t,1)},close:e=>{i.endTime=e}};return t&&r.length>=t&&r.pop(),r.unshift(i),i},find:function(e=ex,t={returnInactive:!1}){for(let n of r)if(n.startTime<=e){if(t.returnInactive||e<=n.endTime)return n.value;break}},closeActive:function(e){let t=r[0];t?.endTime===ex&&t.close(e)},findAll:function(e=ex,t=0){let n=(0,x.addDuration)(e,t);return r.filter(t=>t.startTime<=n&&e<=t.endTime).map(e=>e.value)},findAllEntries:function(e=ex,t=0){let n=(0,x.addDuration)(e,t);return r.filter(t=>t.startTime<=n&&e<=t.endTime)},getEntries:function(e){return r.filter(t=>t.startTime===e)},reset:function(){r=[]},stop:function(){eU.delete(i),0===eU.size&&n&&((0,eD.clearInterval)(n),n=void 0)}}}e.s(["createValueHistory",0,eL],245821);let eP="fetch",eV="other",e$=[["document",e=>"navigation"===e],["xhr",e=>"xmlhttprequest"===e],[eP,e=>"fetch"===e],["beacon",e=>"beacon"===e],["css",(e,t)=>/\.css$/i.test(t)],["js",(e,t)=>/\.js$/i.test(t)],["image",(e,t)=>["image","img","icon"].includes(e)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)],["font",(e,t)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(t)],["media",(e,t)=>["audio","video"].includes(e)||null!==/\.(mp3|mp4)$/i.exec(t)]];function ej(e){let t=e.name;if(!(0,k.isValidUrl)(t))return eV;let r=(0,k.getPathName)(t);for(let[t,n]of e$)if(n(e.initiatorType,r))return t;return eV}function eB(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function eF(e){return"xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType}function eK(e){let{duration:t,startTime:r,responseEnd:n}=e;return"navigation"===e.initiatorType||0===t&&r<n?(0,x.elapsed)(r,n):t}function eq(e){var t,r;let n,i;if(n=eB((t=e).startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),i=!((r=t).redirectEnd>r.startTime)||eB(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart),!n||!i)return;let{startTime:o,fetchStart:a,workerStart:s,redirectStart:c,redirectEnd:u,domainLookupStart:l,domainLookupEnd:d,connectStart:p,secureConnectionStart:f,connectEnd:m,requestStart:g,responseStart:y,responseEnd:v}=e,E={download:eG(o,y,v),first_byte:eG(o,g,y)};return 0<s&&s<a&&(E.worker=eG(o,s,a)),a<m&&(E.connect=eG(o,p,m),p<=f&&f<=m&&(E.ssl=eG(o,f,m))),a<d&&(E.dns=eG(o,l,d)),o<u&&(E.redirect=eG(o,c,u)),E}function eH(e){return e.duration>=0}function eG(e,t,r){if(e<=t&&t<=r)return{duration:(0,x.toServerDuration)((0,x.elapsed)(t,r)),start:(0,x.toServerDuration)((0,x.elapsed)(e,t))}}function eW(e){return""===e.nextHopProtocol?void 0:e.nextHopProtocol}function ez(e){return""===e.deliveryType?"other":e.deliveryType}function eY(e){if(e.startTime<e.responseStart){let{encodedBodySize:t,decodedBodySize:r,transferSize:n}=e;return{size:r,encoded_body_size:t,decoded_body_size:r,transfer_size:n}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function eJ(e){return e&&(!(0,J.isIntakeUrl)(e)||(0,et.isExperimentalFeatureEnabled)(et.ExperimentalFeature.TRACK_INTAKE_REQUESTS))}let eX=/data:(.+)?(;base64)?,/g;function eZ(e,t=24e3){if(e.length<=t||!e.startsWith("data:"))return e;let r=e.substring(0,100).match(eX);return r?`${r[0]}[...]`:e}function eQ(e){return e.nodeType===Node.TEXT_NODE}function e0(e){return e.nodeType===Node.COMMENT_NODE}function e1(e){return e.nodeType===Node.ELEMENT_NODE}function e2(e){return e1(e)&&!!e.shadowRoot}function e5(e){return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e1(e.host)}function e3(e){return e5(e)?e.host:e.parentNode}function e9(e){if(e.parentElement)return e.parentElement;let t=e.parentNode;return t&&e5(t)?t.host:null}e.s(["computeResourceEntryDeliveryType",0,ez,"computeResourceEntryDetails",0,eq,"computeResourceEntryDuration",0,eK,"computeResourceEntryProtocol",0,eW,"computeResourceEntrySize",0,eY,"computeResourceEntryType",0,ej,"hasValidResourceEntryDuration",0,eH,"isAllowedRequestUrl",0,eJ,"isResourceEntryRequestType",0,eF,"sanitizeIfLongDataUrl",0,eZ],484148),e.s(["forEachChildNodes",0,function(e,t){let r=e.firstChild;for(;r;)t(r),r=r.nextSibling;e2(e)&&t(e.shadowRoot)},"getParentElement",0,e9,"getParentNode",0,e3,"hasChildNodes",0,function(e){return e.childNodes.length>0||e2(e)},"isCommentNode",0,e0,"isElementNode",0,e1,"isNodeShadowHost",0,e2,"isNodeShadowRoot",0,e5,"isTextNode",0,eQ],981225);var e6=e.i(827129);let e8=((g={}).EVENT="event",g.FIRST_INPUT="first-input",g.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",g.LAYOUT_SHIFT="layout-shift",g.LONG_TASK="longtask",g.LONG_ANIMATION_FRAME="long-animation-frame",g.NAVIGATION="navigation",g.PAINT="paint",g.RESOURCE="resource",g.VISIBILITY_STATE="visibility-state",g);function e4(e){return new z.Observable(t=>{let r,n=e=>{let r=e.filter(e=>{var t;return!("resource"===(t=e).entryType&&(!eJ(t.name)||!eH(t)))});r.length>0&&t.notify(r)},o=!0,a=new PerformanceObserver((0,$.monitor)(e=>{o?r=(0,eD.setTimeout)(()=>n(e.getEntries())):n(e.getEntries())}));return a.observe(e),o=!1,!i&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(i=(0,e6.addEventListener)(performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()}
3)),()=>{a.disconnect(),(0,eD.clearTimeout)(r)}})}function e7(e){return PerformanceObserver.supportedEntryTypes.includes(e)}e.s(["RumPerformanceEntryType",0,e8,"createPerformanceObservable",0,e4,"supportPerformanceTimingEvent",0,e7],774304);let te="Masked Element",tt=["data-dd-action-name","data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],tr=[tc,ta],tn=[tc,function(e){if("BODY"===e.tagName)return;let t=e.classList;for(let r=0;r<t.length;r+=1){let n=t[r];if(!to(n))return`${CSS.escape(e.tagName)}.${CSS.escape(n)}`}},ts];function ti(e,t){if(!e.isConnected)return;let r=function(e){let t=[],r=e;for(;r;){let e=r.getRootNode();if(t.push({rootNode:e,target:r}),e5(e))r=e.host;else break}return t.reverse()}(e),n=[];for(let{rootNode:e,target:i}of r){let r=function(e,t,r){let n,i=e;for(;i&&"HTML"!==i.nodeName;){let e=td(i,t,tr,tp,r,n);if(e)return tm(e,n);n=tm(td(i,t,tn,tf,r,n)||function(e){let t=tl(e);return`${CSS.escape(e.tagName)}:nth-of-type(${t})`}(i),n),i=i.parentElement}return n}(i,e,t);if(!r)return;n.push(r)}return n.join("::shadow ")}function to(e){return/[0-9]/.test(e)}function ta(e){if(e.id&&!to(e.id))return`#${CSS.escape(e.id)}`}function ts(e){return CSS.escape(e.tagName)}function tc(e,t){if(t){let e=r(t);if(e)return e}for(let e of tt){let t=r(e);if(t)return t}function r(t){if(e.hasAttribute(t))return`${CSS.escape(e.tagName)}${tu(t,e.getAttribute(t))}`}}function tu(e,t){return`[${e}="${CSS.escape(t)}"]`}function tl(e){let t=e.parentNode.firstElementChild,r=1;for(;t&&t!==e;)t.tagName===e.tagName&&(r+=1),t=t.nextElementSibling;return r}function td(e,t,r,n,i,o){for(let a of r){let r=a(e,i);if(r&&n(e,t,r,o))return r}}function tp(e,t,r,n){return 1===t.querySelectorAll(tm(r,n)).length}function tf(e,t,r,n){let i;if(void 0===n)i=e=>e.matches(r);else{let e=tm(`${r}:scope`,n);i=t=>null!==t.querySelector(e)}let o=e.previousElementSibling;for(;o;){if(i(o))return!1;o=o.previousElementSibling}for(o=e.nextElementSibling;o;){if(i(o))return!1;o=o.nextElementSibling}return!0}function tm(e,t){return t?`${e}>${t}`:e}let tg={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:X.ALLOW,MASK:X.MASK,MASK_USER_INPUT:X.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:X.MASK_UNLESS_ALLOWLISTED},ty="data-dd-privacy",tv="dd-privacy-",tE={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function tb(e){return`[${ty}="${e}"], .${tv}${e}`}function th(e,t,r){if(r?.has(e))return r.get(e);let n=e3(e),i=n?th(n,t,r):t,o=tS(t_(e),i);return r&&r.set(e,o),o}function tS(e,t){switch(t){case tg.HIDDEN:case tg.IGNORE:return t}switch(e){case tg.ALLOW:case tg.MASK:case tg.MASK_USER_INPUT:case tg.MASK_UNLESS_ALLOWLISTED:case tg.HIDDEN:case tg.IGNORE:return e;default:return t}}function t_(e){if(e1(e)){if("BASE"===e.tagName)return tg.ALLOW;if("INPUT"===e.tagName){if("password"===e.type||"email"===e.type||"tel"===e.type||"hidden"===e.type)return tg.MASK;let t=e.getAttribute("autocomplete");if(t&&(t.startsWith("cc-")||t.endsWith("-password")))return tg.MASK}if(e.matches(tb(tg.HIDDEN)))return tg.HIDDEN;if(e.matches(tb(tg.MASK)))return tg.MASK;if(e.matches(tb(tg.MASK_UNLESS_ALLOWLISTED)))return tg.MASK_UNLESS_ALLOWLISTED;if(e.matches(tb(tg.MASK_USER_INPUT)))return tg.MASK_USER_INPUT;if(e.matches(tb(tg.ALLOW)))return tg.ALLOW;if(tR(e))return tg.IGNORE}}function tT(e,t){switch(t){case tg.MASK:case tg.HIDDEN:case tg.IGNORE:return!0;case tg.MASK_UNLESS_ALLOWLISTED:if(eQ(e))return!!tw(e.parentNode)||!tA(e.textContent||"");return tw(e);case tg.MASK_USER_INPUT:return eQ(e)?tw(e.parentNode):tw(e);default:return!1}}function tO(e,t,r,n,i){if(n!==tg.MASK&&n!==tg.MASK_UNLESS_ALLOWLISTED||"data-dd-privacy"===t||tt.includes(t)||t===i.actionNameAttribute)return!1;switch(t){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!("A"===e&&"href"===t||"IFRAME"===e&&"srcdoc"===t||r&&t.startsWith("data-"))||("IMG"===e||"SOURCE"===e)&&("src"===t||"srcset"===t)}function tw(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!tE[e.tagName]}function tC(e){return e.replace(/\S/g,"x")}function tR(e){if("SCRIPT"===e.nodeName)return!0;
3if("LINK"===e.nodeName){let e=t("rel");return/preload|prefetch/i.test(e)&&"script"===t("as")||"shortcut icon"===e||"icon"===e}if("META"===e.nodeName){let r=t("name"),n=t("rel"),i=t("property");return/^msapplication-tile(image|color)$/.test(r)||"application-name"===r||"icon"===n||"apple-touch-icon"===n||"shortcut icon"===n||"keywords"===r||"description"===r||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(r)||"pinterest"===r||"robots"===r||"googlebot"===r||"bingbot"===r||e.hasAttribute("http-equiv")||"author"===r||"generator"===r||"framework"===r||"publisher"===r||"progid"===r||/^article:/.test(i)||/^product:/.test(i)||"google-site-verification"===r||"yandex-verification"===r||"csrf-token"===r||"p:domain_verify"===r||"verify-v1"===r||"verification"===r||"shopify-checkout-api-token"===r}function t(t){return(e.getAttribute(t)||"").toLowerCase()}return!1}function tA(e){return!e?.trim()||window.$DD_ALLOW?.has(e.toLocaleLowerCase())||!1}function tI(e,t){return tA(e)?e:t||tC(e)}function tN(){let e=window.visualViewport;return Math.round(e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function tk(){return o||(o=new z.Observable(e=>{let{throttled:t}=(0,eT.throttle)(()=>{e.notify(tD())},200);return(0,e6.addEventListener)(window,e6.DOM_EVENT.RESIZE,t,{capture:!0,passive:!0}).stop})),o}function tD(){let e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}function tx(e,t){return e*t/100}e.s(["CENSORED_IMG_MARK",0,"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==","CENSORED_STRING_MARK",0,"***","FORM_PRIVATE_TAG_NAMES",0,tE,"NodePrivacyLevel",0,tg,"PRIVACY_ATTR_NAME",0,ty,"PRIVACY_ATTR_VALUE_ALLOW",0,"allow","PRIVACY_ATTR_VALUE_HIDDEN",0,"hidden","PRIVACY_ATTR_VALUE_MASK",0,"mask","PRIVACY_ATTR_VALUE_MASK_UNLESS_ALLOWLISTED",0,"mask-unless-allowlisted","PRIVACY_ATTR_VALUE_MASK_USER_INPUT",0,"mask-user-input","PRIVACY_CLASS_PREFIX",0,tv,"TEXT_MASKING_CHAR",0,"x","getPrivacySelector",0,tb],754752),e.s(["censorText",0,tC,"getNodePrivacyLevel",0,th,"getNodeSelfPrivacyLevel",0,t_,"getTextContent",0,function(e,t){let r=e.parentElement?.tagName,n=e.textContent||"";return("SCRIPT"===r||t===tg.HIDDEN?n="***":tT(e,t)&&("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r||(n="OPTION"===r?"***":tC(n))),"HEAD"!==r||n.trim())?n:""},"isAllowlisted",0,tA,"maskDisallowedTextContent",0,tI,"reducePrivacyLevel",0,tS,"shouldIgnoreElement",0,tR,"shouldMaskAttribute",0,tO,"shouldMaskNode",0,tT],622378),e.s(["getScrollX",0,function(){let e=window.visualViewport;return Math.round(e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)},"getScrollY",0,tN],932989),e.s(["getViewportDimension",0,tD,"initViewportObservable",0,tk],850971);let tM=new Map;function tU(e,t){var r,n;let i;if(100===t)return!0;if(0===t)return!1;let o=tM.get(t);if(e===o?.sessionId)return o.decision;let a=(r=BigInt(`0x${e.split("-")[4]}`),n=t,Number(0xf6b75ab2bc471c7n*r%(i=1n<<64n))<=n/100*Number(i));return tM.set(t,{sessionId:e,decision:a}),a}e.s(["correctedChildSampleRate",0,tx,"isSampled",0,tU],538276);let tL=((y={})[y.OFF=0]="OFF",y[y.SAMPLED=1]="SAMPLED",y[y.FORCED=2]="FORCED",y);function tP(e,t){return(0,er.canUseEventBridge)()?+!!(0,er.bridgeSupports)(er.BridgeCapability.RECORDS):tU(e.id,tx(t.sessionSampleRate,t.sessionReplaySampleRate))?1:2*!!e.isReplayForced}e.s(["SessionReplayState",0,tL,"computeSessionReplayState",0,tP],242652);var tV=e.i(807266);function t$(e,t,r,{computeHandlingStack:n}={}){let i=e[t];if("function"!=typeof i)if(!(t in e&&"string"==typeof t&&t.startsWith("on")))return{stop:eT.noop};else i=eT.noop;let o=!1,{stop:a}=tB(e,t,i,function(){if(o)return i.apply(this,arguments);let e=Array.from(arguments);return tF(r,{target:this,parameters:e,handlingStack:n?(0,tV.createHandlingStack)("instrumented method"):void 0},()=>i.apply(this,e))});return{stop:()=>{o=!0,a()}}}function tj(e,t,r,{computeHandlingStack:n}={}){let i=e[t];if("function"!=typeof i)return{stop:eT.noop};let o=!1,a=function(){if(!new.target)return Reflect.apply(i,this,Array.from(arguments));let e=new.target===a?i:new.target;if(o)return Reflect.construct(i,arguments,e);let t=Array.from(arguments);return tF(r,{parameters:t,handlingStack:n?(0,tV.createHandlingStack)("instrumented constructor"):void 0},()=>Reflect.construct(i,t,e))},s=function(e,t){for(let r of[].concat(Object.getOwnPropertyNames(t),Object.getOwnPropertySymbols(t))){let n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n)}let{stop:r}=tB(t.prototype,"constructor",t.prototype.constructor,e);return r}(a,i),{stop:c}=tB(e,t,i,a);return{stop:()=>{o=!0,s(),c()}}}function tB(e,t,r,n){return e[t]=n,{stop:()=>{e[t]===n&&(e[t]=r)}}}function tF(e,t,r){let n;(0,$.callMonitored)(e,null,[{...t,onPostCall:e=>{n=e}}]);let i=r();return n&&(0,$.callMonitored)(n,null,[i]),i}e.s(["instrumentConstructor",0,tj,"instrumentMethod",0,t$,"instrumentSetter",0,function(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t);if(!n?.set||!n.configurable)return{stop:eT.noop};let i=eT.noop,o=(e,t)=>{(0,eD.setTimeout)(()=>{o!==i&&r(e,t)},0)},a=function(e){n.set.call(this,e),o(this,e)};
3return Object.defineProperty(e,t,{set:a}),{stop:()=>{Object.getOwnPropertyDescriptor(e,t)?.set===a&&Object.defineProperty(e,t,n),o=i}}}],10931);function tK(e){let t=crypto.getRandomValues(new Uint32Array(2)),r=BigInt(t[0])+(BigInt(t[1])<<32n);return 63===e&&(r&=0x7fffffffffffffffn),r}function tq(e){return e.toString(16).padStart(16,"0")}function tH(e,t,r=!1){return e.some(e=>{try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.lastIndex=0,e.test(t);if("string"==typeof e)return r?t.startsWith(e):e===t}catch(e){A.display.error(e)}return!1})}var tG=e.i(199150);function tW(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function tz(e,t,r,n,i,o){let a=r.findTrackedSession();if(!a)return;let s=e.allowedTracingUrls.find(e=>tH([e.match],t.url,!0));if(!s)return;let c=tU(a.id,tx(e.sessionSampleRate,e.traceSampleRate)),u=(0,er.canUseEventBridge)()?(0,er.getEventBridge)()?.getIsTraceSampled()??c:c;(u||e.traceContextInjection===Z.ALL)&&(t.traceSampled=u,t.traceId=tK(64),t.spanId=tK(63),o(function(e,t,r,n,i,o,a,s){let c={};if(i.forEach(n=>{switch(n){case"datadog":Object.assign(c,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":e.toString()});break;case"tracecontext":Object.assign(c,{traceparent:`00-0000000000000000${tq(e)}-${tq(t)}-0${r?"1":"0"}`,tracestate:`dd=s:${r?"1":"0"};o:rum`});break;case"b3":Object.assign(c,{b3:`${tq(e)}-${tq(t)}-${r?"1":"0"}`});break;case"b3multi":Object.assign(c,{"X-B3-TraceId":tq(e),"X-B3-SpanId":tq(t),"X-B3-Sampled":r?"1":"0"})}}),s.propagateTraceBaggage){let e={"session.id":n},t=o.getContext().id;"string"==typeof t&&(e["user.id"]=t);let r=a.getContext().id;"string"==typeof r&&(e["account.id"]=r);let i=Object.entries(e).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join(",");i&&(c.baggage=i)}return c}(t.traceId,t.spanId,t.traceSampled,a.id,s.propagatorTypes,n,i,e)))}var tY=e.i(121968);let tJ=32*tY.ONE_KIBI_BYTE;function tX(e,t){return t.allowedGraphQlUrls.find(t=>tH([t.match],e))}var tZ=e.i(796701),tQ=e.i(19516),t0=e.i(391648);let t1={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"},t2=((v={}).UNCAUGHT="Uncaught",v.PROVIDED="Provided",v),t5=((E={}).HANDLED="handled",E.UNHANDLED="unhandled",E);e.s(["ErrorHandling",0,t5,"ErrorSource",0,t1,"NonErrorPrefix",0,t2],540721);var t3=e.i(829381);let t9=220*tY.ONE_KIBI_BYTE;function t6(e,t=t9){let r=(0,t3.detachToJsonMethod)(Object.prototype),n=(0,t3.detachToJsonMethod)(Array.prototype);try{let r=[],n=new WeakMap,i=t8(e,"$",void 0,r,n),o=JSON.stringify(i),a=o?o.length:0;if(a>t)return void t4(t,"discarded",e);for(;r.length>0&&a<t;){let i=r.shift(),o=0;if(Array.isArray(i.source))for(let s=0;s<i.source.length;s++){let c=t8(i.source[s],i.path,s,r,n);if(void 0!==c?a+=JSON.stringify(c).length:a+=4,a+=o,o=1,a>t){t4(t,"truncated",e);break}i.target[s]=c}else for(let s in i.source)if(Object.prototype.hasOwnProperty.call(i.source,s)){let c=t8(i.source[s],i.path,s,r,n);if(void 0!==c&&(a+=JSON.stringify(c).length+o+s.length+3,o=1),a>t){t4(t,"truncated",e);break}i.target[s]=c}}return i}finally{r(),n()}}function t8(e,t,r,n,i){let o=function(e){if(("object"!=typeof e||null===e)&&"function"!=typeof e)return e;if("function"==typeof e.toJSON)try{return e.toJSON()}catch{}return e}(e);if(!o||"object"!=typeof o){var a;return"bigint"==typeof(a=o)?`[BigInt] ${a.toString()}`:"function"==typeof a?`[Function] ${a.name||"unknown"}`:"symbol"==typeof a?`[Symbol] ${a.description||a.toString()}`:a}let s=function e(t){try{if(t instanceof Event){var r;return{type:(r=t).type,isTrusted:r.isTrusted,currentTarget:r.currentTarget?e(r.currentTarget):null,target:r.target?e(r.target):null}}if(t instanceof RegExp)return`[RegExp] ${t.toString()}`;let n=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(n?.[1])return`[${n[1]}]`}catch{}return"[Unserializable]"}(o);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;if(i.has(e))return`[Reference seen at ${i.get(e)}]`;let c=void 0!==r?`${t}.${r}`:t,u=Array.isArray(o)?[]:{};return i.set(e,c),n.push({source:o,target:u,path:c}),u}function t4(e,t,r){A.display.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,r)}let t7=new Map,re=new Set,rt=!1;function rr(){let e=D.globalObject.window?.DD_SOURCE_CODE_CONTEXT;if(!e)return;let t=!1,r=!1,n=!1;for(let[i,o]of Object.entries(e)){if(t=t||void 0!==o.ddDebugId,r=r||void 0!==o.service,n=n||void 0!==o.version,re.has(i))continue;re.add(i);let e=(0,tQ.computeStackTrace)({stack:i}).stack[0]?.url;e&&!t7.has(e)&&t7.set(e,o)}rt||(rt=!0,(0,R.addTelemetryUsage)({feature:"source-code-context",use_debug_id:t,use_service:r,use_version:n}))}function rn(e){rr();let t=new Set,r=[];for(let n of e){if(t.has(n))continue;t.add(n);let e=t7.get(n)?.ddDebugId;void 0!==e&&r.push({url:n,id:e})}return r.length?r:void 0}function ri(e){return rr(),t7.get(e)}function ro({originalError:e,stackTrace:t,source:r,useFallbackStack:n=!0,nonErrorPrefix:i}){var o,a,s,c;let u=(0,t0.isError)(e);return{source:r,type:t?t.name:void 0,message:(o=t,a=u,s=i,c=e,o?.message&&o?.name?o.message:a?"Empty message":s?`${s} ${(0,t3.jsonStringify)(t6(c))}`:(0,t3.jsonStringify)(t6(c))),stack:t?(0,tV.toStackTraceString)(t):n?t0.NO_ERROR_STACK_PRESENT_MESSAGE:void 0}}function ra(e){return e?.stack.map(e=>e.url).filter(e=>!!e)??[]}function rs({stackTrace:e,originalError:t,handlingStack:r,componentStack:n,startClocks:i,nonErrorPrefix:o,useFallbackStack:a=!0,source:s,handling:c}){var u;let l,d=e??((0,t0.isError)(t)?(0,tQ.computeStackTrace)(t):void 0),p=(0,t0.isError)(t)?function(e){let t=[],r=e.cause;for(;null!=r&&t.length<10;){let e=(0,t0.isError)(r),n=e?(0,tQ.computeStackTrace)(r):void 0;t.push({originalError:r,stackTrace:n}),r=e?r.cause:void 0}return t}(t):[],f=ro({originalError:t,stackTrace:d,source:s,useFallbackStack:a,nonErrorPrefix:o}),m=p.map(({originalError:e,stackTrace:t})=>ro({originalError:e,stackTrace:t,source:s,useFallbackStack:!1}));return{startClocks:i,handling:c,handlingStack:r,componentStack:n,originalError:t,...f,debugIds:(l=p.flatMap(({stackTrace:e})=>ra(e)),rn(ra(d).concat(l))),causes:m.length?m:void 0,fingerprint:(u=t,(0,t0.isError)(u)&&"dd_fingerprint"in u?String(u.dd_fingerprint):void 0),context:function(e){if((0,C.isIndexableObject)(e))return e.dd_context}(t)}}function rc(){return new z.Observable(e=>{var t,r;let n=(t,r)=>{let n=rs({stackTrace:r,originalError:t,startClocks:(0,x.clocksNow)(),nonErrorPrefix:"Uncaught",source:t1.SOURCE,handling:"unhandled"});e.notify(n)},{stop:i}=(t=n,t$(D.globalObject,"onerror",({parameters:[e,r,n,i,o]})=>{let a;(0,t0.isError)(o)||(a=(0,tQ.computeStackTraceFromOnErrorMessage)(e,r,n,i)
3),t(o??e,a)})),{stop:o}=(r=n,(0,e6.isEventSupported)(D.globalObject.window,"unhandledrejection")?t$(D.globalObject,"onunhandledrejection",({parameters:[e]})=>{r(e.reason||"Empty reason")}):{stop:eT.noop});return()=>{i(),o()}})}e.s(["buildDebugIdByUrl",0,rn,"getSourceCodeContext",0,ri],959300);let ru=new WeakMap;function rl(){return a||(a="XMLHttpRequest"in D.globalObject?new z.Observable(e=>{let{stop:t}=t$(XMLHttpRequest.prototype,"open",rd),{stop:r}=t$(XMLHttpRequest.prototype,"send",t=>{!function({target:e,parameters:[t],handlingStack:r},n){let i=ru.get(e);if(!i)return;i.state="start",i.startClocks=(0,x.clocksNow)(),i.isAborted=!1,i.xhr=e,i.handlingStack=r,i.requestBody=t;let o=!1,{stop:a}=t$(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&s()}),s=()=>{c(),a(),o||(o=!0,i.duration=(0,x.elapsed)(i.startClocks.timeStamp,(0,x.timeStampNow)()),i.status=e.status,"string"==typeof e.response&&(i.responseBody=e.response),n.notify({...i,state:"complete"}))},{stop:c}=(0,e6.addEventListener)(e,"loadend",s);n.notify(i)}(t,e)},{computeHandlingStack:!0}),{stop:n}=t$(XMLHttpRequest.prototype,"abort",rp);return()=>{t(),r(),n()}}):new z.Observable),a}function rd({target:e,parameters:[t,r]}){ru.set(e,{state:"open",method:String(t).toUpperCase(),url:(0,k.normalizeUrl)(String(r))})}function rp({target:e}){let t=ru.get(e);t&&(t.isAborted=!0)}var rf=e.i(91866);async function rm(e){let t=e.getReader(),r=[];for(;;){let e=await t.read();if(e.done)break;r.push(e.value)}return t.cancel().catch(eT.noop),(0,tY.concatBuffers)(r)}let rg=((b={})[b.IGNORE=0]="IGNORE",b[b.COLLECT=1]="COLLECT",b),ry=[];function rv({responseBodyAction:e}={}){return e&&ry.push(e),s||(s=new z.Observable(e=>{if(!D.globalObject.fetch)return;let{stop:t}=t$(D.globalObject,"fetch",t=>(function({parameters:e,onPostCall:t,handlingStack:r},n){let[i,o]=e,a=o?.method;void 0===a&&i instanceof Request&&(a=i.method);let s=void 0!==a?String(a).toUpperCase():"GET",c=i instanceof Request?i.url:(0,k.normalizeUrl)(String(i)),u={state:"start",init:o,input:i,method:s,startClocks:(0,x.clocksNow)(),url:c,handlingStack:r,isAbortedOnStart:i instanceof Request&&i.signal?.aborted||o?.signal?.aborted||!1};n.notify(u),e[0]=u.input,e[1]=u.init,t(e=>{rE(n,e,u).catch($.monitorError)})})(t,e),{computeHandlingStack:!0});return t})),s}async function rE(e,t,r){let n;try{n=await t}catch(t){e.notify({...r,state:"resolve",status:0,isAborted:r.init?.signal?.aborted||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t});return}if(r.response=n,r.status=n.status,r.responseType=n.type,r.isAborted=!1,1===ry.reduce((e,t)=>Math.max(e,t(r)),0)){let e=(0,rf.tryToClone)(n);if(e?.body)try{let t=await rm(e.body);r.responseBody=new TextDecoder().decode(t)}catch{}}e.notify({...r,state:"resolve"})}let rb={},rh=((h={})[h.RUNTIME_ERROR=0]="RUNTIME_ERROR",h[h.FETCH=1]="FETCH",h[h.XHR=2]="XHR",h[h.CONSOLE=3]="CONSOLE",h),rS=1;function r_(e){e.requestIndex||(e.requestIndex=rS++)}var rT=x;function rO(e){return"string"==typeof e?(0,tY.computeBytesCount)(e):e instanceof ArrayBuffer||ArrayBuffer.isView(e)?e.byteLength:"u">typeof Blob&&e instanceof Blob?e.size:0}function rw(e,t,r){if(void 0===e.openClocks)return;let n=(0,rT.elapsed)(e.openClocks.timeStamp,t.timeStamp);if("in"===r&&void 0===e.firstMessageInOffset?e.firstMessageInOffset=n:"out"===r&&void 0===e.firstMessageOutOffset&&(e.firstMessageOutOffset=n),"in"===r){if(void 0!==e.lastMessageInAt){let r=(0,rT.elapsed)(e.lastMessageInAt,t.timeStamp);r>e.longestInboundSilence&&(e.longestInboundSilence=r)}e.lastMessageInAt=t.timeStamp}}function rC(e){return ea(e)&&e<0?void 0:e}function rR(e,t,r,n,i,o){let a,s=(0,tZ.mockable)(rA)(e,t,r,n),c=!1,u=(0,eD.setTimeout)((0,$.monitor)(()=>f({hadActivity:!1})),100),l=void 0!==o?(0,eD.setTimeout)((0,$.monitor)(()=>f({hadActivity:!0,end:(0,x.timeStampNow)()})),o):void 0,d=s.subscribe(({isBusy:e})=>{(0,eD.clearTimeout)(u),(0,eD.clearTimeout)(a);let t=(0,x.timeStampNow)();e||(a=(0,eD.setTimeout)((0,$.monitor)(()=>f({hadActivity:!0,end:t})),100))}),p=()=>{c=!0,(0,eD.clearTimeout)(u),(0,eD.clearTimeout)(a),(0,eD.clearTimeout)(l),d.unsubscribe()};function f(e){c||(p(),i(e))}return{stop:p}}function rA(e,t,r,n){return new z.Observable(i=>{let o,a=[],s=0;return a.push(t.subscribe(e=>{e.every(rN)||c()}),r.subscribe(c),e4({type:"resource"}).subscribe(e=>{e.some(e=>!rI(n,e.name))&&c()}),e.subscribe(7,e=>{rI(n,e.url)||(void 0===o&&(o=e.requestIndex),s+=1,c())}),e.subscribe(8,e=>{rI(n,e.url)||void 0===o||e.requestIndex<o||(s-=1,c())})),()=>
3{a.forEach(e=>e.unsubscribe())};function c(){i.notify({isBusy:s>0})}})}function rI(e,t){return tH(e.excludedActivityUrls,t)}function rN(e){let t="characterData"===e.type?e.target.parentElement:e.target;return!!(t&&e1(t)&&t.matches("[data-dd-excluded-activity-mutations], [data-dd-excluded-activity-mutations] *"))}function rk({lifeCycle:e,isChildEvent:t,onChange:r=eT.noop}){let n={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=e.subscribe(14,e=>{if("view"!==e.type&&"vital"!==e.type&&t(e))switch(e.type){case _.RumEventType.ERROR:n.errorCount+=1,r();break;case _.RumEventType.ACTION:n.actionCount+=1,e.action.frustration&&(n.frustrationCount+=e.action.frustration.type.length),r();break;case _.RumEventType.LONG_TASK:n.longTaskCount+=1,r();break;case _.RumEventType.RESOURCE:e._dd?.discarded||(n.resourceCount+=1,r())}});return{stop:()=>{i.unsubscribe()},eventCounts:n}}let rD=5*x.ONE_MINUTE;function rx(e){let t=eL({expireDelay:rD}),r=new Map;function n(e){r.delete(e.key),e.eventCounts?.stop()}function i(){r.forEach(e=>{n(e)}),t.reset()}let o=e.subscribe(11,i);return{start:function(i,o,a,s){let c=(0,N.generateUUID)(),u=t.add(c,o.relative),l=r.get(i);l&&n(l);let d={id:c,key:i,startClocks:o,data:a,historyEntry:u,eventCounts:s?.isChildEvent?rk({lifeCycle:e,isChildEvent:s.isChildEvent(c)}):void 0};return r.set(i,d),d},stop:function(e,t,i){let o=r.get(e);if(!o)return;let a=i?(0,es.combine)(o.data,i):o.data;o.historyEntry.close(t.relative);let s=(0,x.elapsed)(o.startClocks.timeStamp,t.timeStamp),c=o.eventCounts?.eventCounts;return n(o),{...a,id:o.id,startClocks:o.startClocks,duration:s,counts:c}},discard:function(e){let t=r.get(e);if(!t)return;let i=t.eventCounts?.eventCounts;return n(t),t.historyEntry.remove(),{...t.data,id:t.id,startClocks:t.startClocks,counts:i}},getCounts:function(e){return r.get(e)?.eventCounts?.eventCounts},findId:function(e){return t.findAll(e)},stopAll:function(){o.unsubscribe(),i(),t.stop()}}}let rM=["HTML","BODY"],rU=2*tY.ONE_KIBI_BYTE,rL=tt.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]),rP=x.ONE_SECOND;function rV(e,t){let r=function(e,t){let r=e;for(;r;){if(r.matches(t))return r;r=e9(r)}return null}(e,`[${t}]`);if(r)return rK(rF(r.getAttribute(t).trim()))}let r$=[(e,t,r)=>{if("labels"in e&&e.labels&&e.labels.length>0)return rH(e.labels[0],t,r)},e=>{if("INPUT"===e.nodeName){let t=e.getAttribute("type");if("button"===t||"submit"===t||"reset"===t)return{name:e.value,nameSource:"text_content"}}},(e,t,r)=>{if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return rH(e,t,r)},(e,t,r)=>rq(e,"aria-label",t,r),(e,t,r)=>{let n=e.getAttribute("aria-labelledby");if(n)return{name:n.split(/\s+/).map(t=>(function(e,t){let r=e.getRootNode();if(r instanceof ShadowRoot){let e=r.getElementById(t);if(e)return e}return e.ownerDocument?e.ownerDocument.getElementById(t):null})(e,t)).filter(e=>!!e).map(e=>rG(e,t,r)).join(" "),nameSource:"text_content"}},(e,t,r)=>rq(e,"alt",t,r),(e,t,r)=>rq(e,"name",t,r),(e,t,r)=>rq(e,"title",t,r),(e,t,r)=>rq(e,"placeholder",t,r),(e,t,r)=>{if("options"in e&&e.options.length>0)return rH(e.options[0],t,r)}],rj=[(e,t,r)=>rH(e,t,r)];function rB(e,t,r,n){let i=e,o=0;for(;o<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(let e of t){let t=e(i,r,n);if(t){let{name:e,nameSource:r}=t,n=e?.trim();if(n)return{name:rK(rF(n)),nameSource:r}}}if("FORM"===i.nodeName)break;i=e9(i),o+=1}}function rF(e){return e.replace(/\s+/g," ")}function rK(e){return e.length>100?`${(0,N.safeTruncate)(e,100)} [...]`:e}function rq(e,t,r,n){let{enablePrivacyForActionName:i,defaultPrivacyLevel:o}=r,a=e.getAttribute(t);if(a&&i){let i=th(e,o,n);tO(e.tagName,t,a,i,r)&&(a=tI(a,te))}else a||(a="");return{name:a,nameSource:"standard_attribute"}}function rH(e,t,r){return{name:rG(e,t,r)||"",nameSource:"text_content"}}function rG(e,t,r){if(e.isContentEditable)return;let{enablePrivacyForActionName:n,actionNameAttribute:i,defaultPrivacyLevel:o}=t,a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(e){let t=th(e,o,r);if(n&&t&&tT(e,t))return NodeFilter.FILTER_REJECT;if(e1(e)){if(e.hasAttribute("data-dd-action-name")||i&&e.hasAttribute(i))return NodeFilter.FILTER_REJECT;let t=getComputedStyle(e);
3if("visible"!==t.visibility||"none"===t.display||t.contentVisibility&&"visible"!==t.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}),s="";for(;a.nextNode();){let e=a.currentNode;if(e1(e)){("BR"===e.nodeName||"P"===e.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(e).display))&&(s+=" ");continue}s+=e.textContent||""}return s.replace(/\s+/g," ").trim()}function rW(){let e=window.getSelection();return!e||e.isCollapsed}function rz(e){return e.target instanceof Element&&!1!==e.isPrimary}function rY(e){if((2&e.ignore)!=0||e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll)return!1;let t=e.event.target;return"LABEL"===t.tagName&&t.hasAttribute("for")&&(t=document.getElementById(t.getAttribute("for"))),!t?.matches('input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}let rJ=10*x.ONE_SECOND,rX=new Map;function rZ(e,t){rX.set(e,t),rX.forEach((e,t)=>{(0,x.elapsed)(t,(0,x.relativeNow)())>rJ&&rX.delete(t)})}function rQ(e){return t=>t.action?.id?.includes(e)??!1}function r0(e){if(e.composed&&e2(e.target)&&"function"==typeof e.composedPath){let t=e.composedPath();if(t.length>0&&t[0]instanceof Element)return t[0]}return e.target}function r1(e){let t="events"in e,r=rC((0,x.toServerDuration)(e.duration));return{rawRumEvent:{type:_.RumEventType.ACTION,date:e.startClocks.timeStamp,action:{id:e.id,target:{name:e.name},type:e.type,...void 0!==r&&{loading_time:r},...e.counts&&{error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},frustration:{type:e.frustrationTypes}},...t?{_dd:{action:{target:{selector:e.target?.selector||void 0,width:e.target?.width||void 0,height:e.target?.height||void 0,composed_path_selector:e.target?.composedPathSelector},position:e.position,name_source:e.nameSource}}}:{context:e.context}},duration:e.duration,startClocks:e.startClocks,domainContext:t?{events:e.events}:{handlingStack:e.handlingStack}}}let r2="csp_violation";function r5(e){return{startClocks:(0,x.clocksNow)(),source:t1.REPORT,handling:"unhandled",...e}}function r3(e,t,r,n,i){return r?(0,tV.toStackTraceString)({name:e,message:t,stack:[{func:"?",url:r,line:n??void 0,column:i??void 0}]}):void 0}function r9(){if(e7("navigation")){let e=performance.getEntriesByType("navigation")[0];if(e&&!(e.loadEventEnd>0&&e.domComplete<=0))return e}let e=function(){let e={},t=performance.timing;for(let r in t)if(ea(t[r])){let n=t[r];e[r]=0===n?0:(0,x.toRelativeTime)(n)}return e}(),t={entryType:"navigation",initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function r6(e){return e.responseStart>=0&&e.responseStart<=(0,x.relativeNow)()?e.responseStart:void 0}let r8=2*x.ONE_MINUTE;function r4(e){var t;let r,n,i=(r=(t=e).querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]"),r7(r?.content,n?.content)||function(e){let t=function(e){for(let t=0;t<e.childNodes.length;t+=1){let r=ne(e.childNodes[t]);if(r)return r}if(e.body)for(let t=e.body.childNodes.length-1;t>=0;t-=1){let r=e.body.childNodes[t],n=ne(r);if(n)return n;if(!eQ(r))break}}(e);if(t)return r7((0,N.findCommaSeparatedValue)(t,"trace-id"),(0,N.findCommaSeparatedValue)(t,"trace-time"))}(e));if(!(!i||i.traceTime<=(0,x.getTimeOrigin)()-r8))return i.traceId}function r7(e,t){let r=t&&Number(t);if(e&&r)return{traceId:e,traceTime:r}}function ne(e){if(e&&e0(e)){let t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function nt(e,t){var r;let n,i;if(window.requestIdleCallback&&window.cancelIdleCallback){let r=window.requestIdleCallback((0,$.monitor)(e),t);return()=>window.cancelIdleCallback(r)}return r=e,n=(0,x.dateNow)(),i=(0,eD.setTimeout)(()=>{r({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,x.dateNow)()-n))})},0),()=>(0,eD.clearTimeout)(i)}e.s(["requestIdleCallback",0,nt],950559);let nr=x.ONE_SECOND;function nn(){let e=[];function t(t){let n;if(!t||t.didTimeout){let e=performance.now();n=()=>30-(performance.now()-e)}else n=t.timeRemaining.bind(t);for(;n()>0&&e.length;)e.shift()();e.length&&r()}function r(){nt(t,{timeout:nr})}return{push(t){1===e.push(t)&&r()},stop(){e.length=0}}}function ni(e,t){return document.readyState===e||"complete"===document.readyState?(t(),{stop:eT.noop}):(0,e6.addEventListener)(window,"complete"===e?"load":"DOMContentLoaded",t,{once:!0})}function no(e,t,r){var n,i;let o=t?function(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}(t,r):function(e,t){if("navigation"!==e.initiatorType)return;let r=(0,tZ.mockable)(r4)(document);if(r)return{_dd:{trace_id:r,span_id:tK(63).toString(),rule_psr:t.rulePsr}}}(e,r);if(!r.trackResources&&!o)return;let a=(0,x.relativeToClocks)(e.startTime),s=eK(e),c=function(e,t){let r=t.trackResourceHeaders;if(0===r.length||!e)return;let n=r.filter(t=>void 0===t.url||tH([t.url],e.url,!0));if(0===n.length)return;let i=n.filter(e=>void 0===e.location||"any"===e.location||"response"===e.location),o=n.filter(e=>void 0===e.location||"any"===e.location||"request"===e.location),a=i.length>0?function(e,t){if(e.type===eP&&e.response)return nc(e.response.headers,t);if("xhr"===e.type&&e.xhr){let r=e.xhr.getAllResponseHeaders();if(r)try{return nc(new Headers(function(e){let t=[];for(let r of e.trim().split(/\r\n/)){let e=r.indexOf(":");e>0&&t.push([r.substring(0,e).trim(),r.substring(e+1).trim()])}return t}(r)),t)}catch{}}}(e,i):void 0,s=o.length>0?function(e,t){let r;if(e.type===eP)return e.init?.headers?r=new Headers(e.init.headers):e.input instanceof Request&&(r=e.input.headers),r?nc(r,t):void 0}(e,o):void 0;if(a||s)return{resource:{request:s?{headers:s}:void 0,response:a?{headers:a}:void 0}}}(t,r);return{startClocks:a,duration:s,rawRumEvent:(0,es.combine)({date:a.timeStamp,resource:{id:(0,N.generateUUID)(),duration:(0,x.toServerDuration)(s),type:ej(e),method:t?.method,status_code:t?t.status:0===(n=e.responseStatus)?void 0:n,url:t?eZ(t.url):e.name,protocol:eW(e),delivery_type:ez(e),graphql:t&&function(e,t){let r=tX(e.url,t);if(r){let t=function(e,t=!1){var r;let n,i,o,a;if("POST"===e.method?n=function(e){if(!e||"string"!=typeof e)return;let t=(0,V.tryJsonParse)(e);if(t)return{query:t.query,operationName:t.operationName,variables:t.variables?JSON.stringify(t.variables):void 0,operationType:t.operationType}}(e.requestBody):"GET"===e.method&&(r=e.url,a=(o=(i=(0,k.buildUrl)(r).searchParams).get("variables"))&&void 0!==(0,V.tryJsonParse)(o)?o:void 0,n={query:i.get("query")||void 0,operationName:i.get("operationName")||void 0,variables:a,operationType:i.get("operationType")||void 0}),n)return function(e,t){let r,n,i;if(e.query){var o;let i=e.query.trim();o=i,r=o.match(/^\s*(query|mutation|subscription)\b/i)?.[1],t&&(n=(0,N.safeTruncate)(i,tJ,"..."))}if(!r){let t=e.operationType;("query"===t||"mutation"===t||"subscription"===t)&&(r=t)}return e.variables&&(i=e.variables),{operationType:r,operationName:e.operationName,variables:i,payload:n}}(n,t)}(e,r.trackPayload);if(t){if(r.trackResponseErrors&&e.responseBody){let r=function(e){let t=(0,V.tryJsonParse)(e);if(t&&"object"==typeof t&&ei(t.errors))return t.errors.map(e=>({message:e.message,path:e.path,locations:e.locations,code:e.extensions?.code}))}(e.responseBody);r&&(t.error_count=r.length,t.errors=r)}return t}return}}(t,r),render_blocking_status:e.renderBlockingStatus,...eY(e),...eq(e)},type:_.RumEventType.RESOURCE,_dd:{discarded:!r.trackResources}},o,function(e){let t=e.contentType;if(t)return{resource:{response:{headers:{"content-type":t}}}}}(e),c),domainContext:{performanceEntry:e,isManual:!1,isAborted:!!(i=t)&&i.isAborted,isWebSocket:!1,handlingStack:i?.handlingStack,requestInit:i?.init,requestInput:i?.input,response:i?.response,error:i?.error,xhr:i?.xhr}}}e.s(["asyncRunOnReadyState",0,function(e){return new Promise(t=>{ni(e,t)})},"runOnReadyState",0,ni],698821);let na=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/,ns=e=>em.includes(e);function nc(e,t){let r={},n=0,i=!1;return e.forEach((e,o)=>{if(n>=100){i||(A.display.warn("Maximum number of headers (100) has been reached. Further headers are dropped."),i=!0);return}let a=o.toLowerCase();if(na.test(a))return;let s=t.find(e=>tH([e.name??ns],a));if(!s)return;let{extractor:c}=s,u=c?(0,T.extractRegexMatch)(e,c):e;void 0!==u&&(u.length>128&&A.display.warn(`Header "${a}" value was truncated from ${u.length} to 128 characters.`),r[a]=(0,N.safeTruncate)(u,128),n++)}),n>0?r:void 0}let nu=10*x.ONE_MINUTE,nl=10*x.ONE_MINUTE;
3function nd(e,t=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:eT.noop};if(e7("visibility-state")){let t=performance.getEntriesByType("visibility-state").filter(e=>"hidden"===e.name).find(t=>t.startTime>=e.relative);if(t)return{timeStamp:t.startTime,stop:eT.noop}}let r=1/0,{stop:n}=(0,e6.addEventListeners)(t,[e6.DOM_EVENT.PAGE_HIDE,e6.DOM_EVENT.VISIBILITY_CHANGE],e=>{(e.type===e6.DOM_EVENT.PAGE_HIDE||"hidden"===document.visibilityState)&&(r=e.timeStamp,n())},{capture:!0});return{get timeStamp(){return r},stop:n}}let np=e=>{var t,r;let n,i,o,a;return e.previousRect.width*e.previousRect.height+e.currentRect.width*e.currentRect.height-(t=e.previousRect,r=e.currentRect,n=Math.max(t.left,r.left),i=Math.max(t.top,r.top),o=Math.min(t.right,r.right),a=Math.min(t.bottom,r.bottom),n>=o||i>=a?0:(o-n)*(a-i))};function nf({x:e,y:t,width:r,height:n}){return{x:e,y:t,width:r,height:n}}let nm=5*x.ONE_SECOND,ng=x.ONE_SECOND,ny=0,nv=1/0,nE=0,nb=()=>u?ny:window.performance.interactionCount||0,nh=+x.ONE_MINUTE;function nS(e){return Math.min(e,nh)}let n_=x.ONE_SECOND;var nT=x,nO=e.i(774803);function nw(e,t,r){let n={...e};for(let[e,{required:i,type:o}]of Object.entries(t))"string"!==o||nC(n[e])||(n[e]=String(n[e])),i&&nC(n[e])&&A.display.warn(`The property ${e} of ${r} is required; context will not be sent to the intake.`);return n}function nC(e){return null==e||""===e}function nR(e="",{propertiesConfig:t={}}={}){let r={},n=new z.Observable,i={getContext:()=>(0,es.deepClone)(r),setContext:o=>{let a;((a="object"===(0,C.getType)(o))||A.display.error("Unsupported context:",o),a)?r=t6(nw(o,t,e)):i.clearContext(),n.notify()},setContextProperty:(i,o)=>{r=t6(nw({...r,[i]:o},t,e)),n.notify()},removeContextProperty:i=>{delete r[i],nw(r,t,e),n.notify()},clearContext:()=>{r={},n.notify()},changeObservable:n};return i}let nA=5*nT.ONE_MINUTE,nI=5*nT.ONE_MINUTE;function nN(e){let t=e.indexOf("?");return t<0?e:e.slice(0,t)}function nk(e,t){let r=new Set;for(let n of e)n.startsWith(`${t}.`)&&r.add(n.slice(t.length+1));return r}let nD=((S={})[S.REPLAY=1]="REPLAY",S[S.RUM=2]="RUM",S[S.TELEMETRY=4]="TELEMETRY",S[S.PROFILING=6]="PROFILING",S);e.s(["DeflateEncoderStreamId",0,nD],968514);var nx=e.i(163601),nM=e.i(388760);function nU(){return(0,tZ.mockable)(D.globalObject.location)}function nL(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}let nP=10*x.ONE_SECOND;function nV(){0!==l.batchCount&&((0,R.addTelemetryMetrics)(R.TelemetryMetrics.CUSTOMER_DATA_METRIC_NAME,l),nB())}function n$(){return{min:1/0,max:0,sum:0}}function nj(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function nB(){l={batchCount:0,batchBytesCount:n$(),batchMessagesCount:n$()}}function nF(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function nK(e){let{startClocks:t,type:r,name:n,description:i,context:o,handlingStack:a}=e,s={id:(e.type===_.VitalType.DURATION?e.id:void 0)??(0,N.generateUUID)(),type:r,name:n,description:i,...r===_.VitalType.DURATION?{duration:(0,x.toServerDuration)(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:s,type:_.RumEventType.VITAL,context:o},startClocks:t,duration:r===_.VitalType.DURATION?e.duration:void 0,domainContext:a?{handlingStack:a}:{}}}async function nq(e,t){let r=`dd_cookie_test_${(0,N.generateUUID)()}`,n="test",i=e(r,t);try{return await i.getAllAndSet(()=>({value:n,expireDelay:x.ONE_MINUTE})),(await i.getAll()).includes(n)}catch(e){return A.display.error(e),!1}finally{try{await i.delete()}catch{}}}function nH(e,t){let r=(0,tZ.mockable)(D.globalObject.cookieStore),n=new z.Observable(()=>(0,e6.addEventListener)(r,"change",t=>{(t.changed.some(t=>t.name===e)||t.deleted.some(t=>t.name===e))&&n.notify()}).stop);return{getAll:async()=>(await r.getAll(e)).map(e=>e.value),delete:()=>r.delete({name:e,domain:t.domain,path:"/",partitioned:t.partitioned}),async getAllAndSet(n){let i=await r.getAll(e),{value:o,expireDelay:a}=n(i.map(e=>e.value));try{await r.set({name:e,value:o,expires:(0,x.dateNow)()+a,path:"/",sameSite:t.crossSite?"none":"strict",domain:t.domain,secure:t.secure,partitioned:t.partitioned})}catch(r){if(!e.startsWith("dd_cookie_test_")){let n=L(e);(0,R.addTelemetryDebug)("Failed to set cookie using Cookie Store API",{"error.message":r.message,newValue:o,cookieOptions:{...t},cookies:i.map(e=>({...e})),cookieCount:i.length,documentCookies:n})}}},observable:n}}let nG=x.ONE_SECOND;function nW(e,t){let r=L(e),n=new z.Observable(()=>{let t=(0,eD.setInterval)(()=>{i(L(e))},nG);return()=>{(0,eD.clearInterval)(t)}});function i(e){String(e)!==String(r)&&(r=e,n.notify())}return{getAll:()=>Promise.resolve(L(e)),async getAllAndSet(r){let{value:n,expireDelay:o}=r(L(e));M(e,n,o,t),await Promise.resolve(),i([n])},async delete(){M(e,"",0,t),await Promise.resolve(),i([])},observable:n}}function nz(){let e=(0,tZ.mockable)(D.globalObject.cookieStore);return!!(e&&(0,e6.isEventSupported)(e,"change"))}let nY=x.ONE_SECOND;function nJ(e,t){let r=U(e),n=(0,eD.setInterval)(()=>{let n=U(e);n!==r&&(r=n,t(n))},nY);return()=>{(0,eD.clearInterval)(n)}}let nX="datadog-synthetics-",nZ=`${nX}public-id`,nQ=`${nX}result-id`,n0=`${nX}injects-rum`,n1=`${nX}rum-context`;function n2(){return!D.isWorkerEnvironment&&!!(D.globalObject._DATADOG_SYNTHETICS_INJECTS_RUM||P(n0))}function n5(){var e;let t=function(){let e=D.globalObject._DATADOG_SYNTHETICS_RUM_CONTEXT;if(e)return e;let t=P(n1);return t?(0,V.tryJsonParse)(decodeURIComponent(t)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||P(nZ),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||P(nQ)}}();return"object"==typeof(e=t)&&null!==e&&"string"==typeof e.test_id&&"string"==typeof e.result_id?t:void 0}function n3(e){return"object"===(0,C.getType)(e)}var n9=e.i(133398);function n6(e,t,r=3e3){let n=0,i=!1;return{isLimitReached(){if(0===n&&(0,eD.setTimeout)(()=>{n=0},x.ONE_MINUTE),(n+=1)<=r||i)return i=!1,!1;if(n===r+1){i=!0;try{t(`Reached max number of ${e}s by minute: ${r}`)}finally{i=!1}}return!0}}}let n8={"view.name":"string","view.url":"string","view.referrer":"string",context:"object",service:"string",version:"string"},n4={[_.RumEventType.VIEW]:{...n8,"view.performance.lcp.resource_url":"string"}
3,[_.RumEventType.ERROR]:{...n8,"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string","_dd.debug_ids":"array"},[_.RumEventType.RESOURCE]:{...n8,"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object","resource.websocket.close_reason":"string","resource.websocket.protocol":"string"},[_.RumEventType.ACTION]:{...n8,"action.target.name":"string"},[_.RumEventType.LONG_TASK]:{...n8,"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string","_dd.debug_ids":"array"},[_.RumEventType.VITAL]:n8};var n7=e.i(577814);let ie=[_.RumEventType.ACTION,_.RumEventType.ERROR,_.RumEventType.LONG_TASK,_.RumEventType.RESOURCE,_.RumEventType.VITAL],it=[];function ir(e,t,r){var n,i;if("u"<typeof window||"u"<typeof localStorage)return;let o=(n=t,i=r,`_dd_c_${n}_${i}`);it.push((0,e6.addEventListener)(window,"storage",({key:t})=>{o===t&&e.setContext(s())})),e.changeObservable.subscribe(function(){localStorage.setItem(o,JSON.stringify(e.getContext()))});let a=(0,es.combine)(s(),e.getContext());function s(){let e=localStorage.getItem(o);return e?(0,V.tryJsonParse)(e)??{}:{}}(0,V.isEmptyObject)(a)||e.setContext(a)}function ii(){return nR("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function io(){return nR("global context")}let ia="_dd_tab_id";function is(){return nR("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function ic(e,t,r,n,i,o,a,s,f,m){var g;let y=[],v=new eC;v.subscribe(14,e=>(0,nM.sendToExtension)("rum",e)),t.expireObservable.subscribe(()=>v.notify(10,{endClocks:(0,x.clocksNow)()})),t.renewObservable.subscribe(()=>v.notify(11));let E=e=>{v.notify(15,{error:{message:e,source:t1.AGENT,startClocks:(0,x.clocksNow)()}}),(0,R.addTelemetryDebug)("Error reported to customer",{"error.message":e})};if((0,er.canUseEventBridge)()){let e;e=(0,er.getEventBridge)(),v.subscribe(14,t=>{e.send("rum",t)});let t=(0,nO.createPageMayExitObservable)().subscribe(e=>{v.notify(12,e.reason)});y.push(()=>t.unsubscribe())}else{let r=function(e,t,r,n,i){let o=[(0,j.createEndpointBuilder)(e,"rum")],a=(0,j.createReplicaEndpointBuilder)(e,"rum");a&&o.push(a);let s=(0,nx.createBatch)({encoder:i(nD.RUM),endpoints:o,reportError:r});n.subscribe(()=>s.forceFlush("session_expire"));let{dispatch:c,stop:u}=function(e,t){let r,n,i=!1,o=0,{unsubscribe:a}=e.flushObservable.subscribe(()=>{i=!1,n=r});return{dispatch:a=>{if(a.type!==_.RumEventType.VIEW)return void e.add(a);if(!t)return void e.upsert(a,a.view.id);let s=a.view.id;if(!a.view.is_active){s===r?.view.id&&(r=void 0,n=void 0,i=!1,o=0),e.upsert(a,s);return}if(s!==r?.view.id){o=0,e.upsert(a,s),r=a,i=!e.isEmpty;return}if(r=a,i)return void e.upsert(a,s);if((o+=1)>=100){o=0,e.upsert(a,s),i=!e.isEmpty;return}if(n){let t=function(e,t){let r=function e(t,r,n){let i={},o=n?.replaceKeys??new Set,a=n?.appendKeys??new Set,s=n?.ignoreKeys??new Set;for(let n of Object.keys(t)){if(s.has(n))continue;let c=t[n],u=r[n];if(!o.has(n)&&(0,C.isIndexableObject)(c)&&(0,C.isIndexableObject)(u)){let t=e(c,u,{replaceKeys:nk(o,n),appendKeys:nk(a,n),ignoreKeys:nk(s,n)});t&&(i[n]=t)}else a.has(n)&&Array.isArray(c)&&Array.isArray(u)?c.length>u.length&&(i[n]=c.slice(u.length)):!function e(t,r){if(t===r)return!0;if(null===t||"object"!=typeof t||null===r||"object"!=typeof r)return t===r;if(Array.isArray(t)&&Array.isArray(r))return t.length===r.length&&t.every((t,n)=>e(t,r[n]));if(Array.isArray(t)||Array.isArray(r))return!1;let n=Object.keys(t),i=Object.keys(r);return n.length===i.length&&n.every(n=>i.includes(n)&&e(t[n],r[n]))}(c,u)&&(i[n]=c)}for(let e of Object.keys(r))e in t||(i[e]=null);return Object.keys(i).length>0?i:void 0}(e,t,{replaceKeys:new Set(["view.custom_timings","context","connectivity","usr","device","privacy"]),appendKeys:new Set(["_dd.page_states"]),ignoreKeys:new Set(["date","type","application","session","view.id","view.url","_dd.document_version","_dd.format_version"])});if(r)return(0,es.combine)(r,{type:_.RumEventType.VIEW_UPDATE,date:e.date,application:e.application,session:e.session,view:{id:e.view.id,url:e.view.url},_dd:{document_version:e._dd.document_version,format_version:e._dd.format_version}})}(a,n);t&&((0,nM.sendToExtension)("rum",t),e.upsert(t,s))}},stop:a}}(s,e.betaEnableViewUpdates);t.subscribe(14,c);let l=s.stop.bind(s);return s.stop=()=>{u(),l()},s}(e,v,E,t.expireObservable,o),n=r.prepareUrgentFlushObservable.subscribe(e=>{v.notify(12,e)});y.push(()=>n.unsubscribe()),y.push(()=>r.stop()),g=r.flushObservable,s.metricsEnabled&&(nB(),d=!1,v.subscribe(14,()=>{d=!0}),g.subscribe(({bytesCount:e,messagesCount:t})=>{d&&(d=!1,l.batchCount+=1,nj(l.batchBytesCount,e),nj(l.batchMessagesCount,t))}),(0,eD.setInterval)(nV,nP))}let{stop:b,...h}=function(e,t,r,n,i,o,a,s,l){var d,f,m,g,y,v,E,b,h,S,T,O,w;let R,I,M,U,L,j,B,F,K,q,H,G,W,Y,J,X,Z,Q,ee=[],en=eO(),ei=(M=(0,V.shallowClone)(nU()),new z.Observable(e=>{var t;let{stop:r}=function(e){let{stop:t}=t$(nL("pushState"),"pushState",({onPostCall:t})=>{t(e)}),{stop:r}=t$(nL("replaceState"),"replaceState",({onPostCall:t})=>{t(e)}),{stop:n}=(0,e6.addEventListener)(window,e6.DOM_EVENT.POP_STATE,e);return{stop:()=>{t(),r(),n()}}}(i),{stop:n}=(t=i,(0,e6.addEventListener)(window,e6.DOM_EVENT.HASH_CHANGE,t));function i(){if(M.href===nU().href)return;let t=(0,V.shallowClone)(nU());e.notify({newLocation:t,oldLocation:M}),M=t}return()=>{r(),n()}})),{observable:ea,stop:eu}=function(){let e=new z.Observable,{stop:t}=t$(window,"open",()=>e.notify());return{observable:e,stop:t}}();ee.push(eu);let{assembleEventDefaults:el}=t;el.register(({eventType:e})=>{let t=r.source;return{type:e,_dd:{format_version:2,drift:(0,x.clockDrift)(),configuration:{session_sample_rate:eo(r.sessionSampleRate,3),session_replay_sample_rate:eo(r.sessionReplaySampleRate,3),profiling_sample_rate:eo(r.profilingSampleRate,3),trace_sample_rate:eo(r.traceSampleRate,3)},browser_sdk_version:(0,er.canUseEventBridge)()?"7.13.0":void 0,sdk_name:s},application:{id:r.applicationId},date:(0,x.timeStampNow)(),source:t}});let ed=function(e,t=500){let r,n=eL({expireDelay:eA,maxEntries:4e3});e7("visibility-state")&&performance.getEntriesByType("visibility-state").forEach(e
3=>{o("hidden"===e.name?"hidden":"active",e.startTime)}),o(nF(),(0,x.relativeNow)());let{stop:i}=(0,e6.addEventListeners)(window,[e6.DOM_EVENT.PAGE_SHOW,e6.DOM_EVENT.FOCUS,e6.DOM_EVENT.BLUR,e6.DOM_EVENT.VISIBILITY_CHANGE,e6.DOM_EVENT.RESUME,e6.DOM_EVENT.FREEZE,e6.DOM_EVENT.PAGE_HIDE],e=>{var t;o((t=e).type===e6.DOM_EVENT.FREEZE?"frozen":t.type===e6.DOM_EVENT.PAGE_HIDE?t.persisted?"frozen":"terminated":nF(),e.timeStamp)},{capture:!0});function o(e,t=(0,x.relativeNow)()){e!==r&&(r=e,n.closeActive(t),n.add({state:r,startTime:t},t))}function a(e,t,r){return n.findAll(t,r).some(t=>t.state===e)}return e.register(({startTime:e,duration:r=0,eventType:i})=>i===_.RumEventType.VIEW?{type:i,_dd:{page_states:function(e,t,r){if(0!==e.length)return e.slice(-r).reverse().map(({state:e,startTime:r})=>({state:e,start:(0,x.toServerDuration)((0,x.elapsed)(t,r))}))}(n.findAll(e,r),e,t)}}:i===_.RumEventType.ACTION||i===_.RumEventType.ERROR?{type:i,view:{in_foreground:a("active",e,0)}}:eS.SKIPPED),{wasInPageStateDuringPeriod:a,addPageState:o,stop:()=>{i(),n.stop()}}}(el);ee.push(()=>ed.stop());let ep=(U=eL({expireDelay:eA}),e.subscribe(1,e=>{var t;U.add({service:(t=e).service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks},e.startClocks.relative)}),e.subscribe(6,({endClocks:e})=>{U.closeActive(e.relative)}),e.subscribe(3,e=>{let t=U.find(e.startClocks.relative);t&&(e.name&&(t.name=e.name),e.context&&(t.context=e.context),t.sessionIsActive=e.sessionIsActive)}),e.subscribe(11,()=>{U.reset()}),{findView:(e,t)=>U.find(e,t),stop:()=>{U.stop()}});ee.push(()=>ep.stop());let ef=function(e,t,r){let n,i=eL({expireDelay:eA});e.subscribe(1,({startClocks:e,url:t})=>{let r=(0,tZ.mockable)(D.globalObject.location).href,o=void 0!==t?(0,k.buildUrl)(t,r).href:r;i.add(a({url:o,referrer:n||document.referrer}),e.relative),n=o}),e.subscribe(6,({endClocks:e})=>{i.closeActive(e.relative)});let o=r.subscribe(({newLocation:e})=>{let t=i.find();if(t){let r=(0,x.relativeNow)();i.closeActive(r),i.add(a({url:e.href,referrer:t.referrer}),r)}});function a({url:e,referrer:t}){return{url:e,referrer:t}}return t.register(({startTime:e,eventType:t})=>{let r=i.find(e);return r?{type:t,view:{url:r.url,referrer:r.referrer}}:eS.DISCARDED}),{findUrl:e=>i.find(e),stop:()=>{o.unsubscribe(),i.stop()}}}(e,el,ei);ee.push(()=>ef.stop());let em=(L=eL({expireDelay:eA}),e.subscribe(1,({startClocks:e})=>{L.add({},e.relative)}),e.subscribe(6,({endClocks:e})=>{L.closeActive(e.relative)}),el.register(({startTime:e,eventType:t})=>{if(!r.trackFeatureFlagsForEvents.concat([_.RumEventType.VIEW,_.RumEventType.ERROR]).includes(t))return eS.SKIPPED;let n=L.find(e);return!n||(0,V.isEmptyObject)(n)?eS.SKIPPED:{type:t,feature_flags:n}}),{addFeatureFlagEvaluation:(e,t)=>{let r=L.find();r&&(r[e]=t)}});el.register(({eventType:e,startTime:t})=>{let o,a,s,c=n.findTrackedSession(t),u=ep.findView(t);return c&&u?(e===_.RumEventType.VIEW?(o=!!i.getReplayStats(u.id)||void 0,a=1===tP(c,r),s=!!u.sessionIsActive&&void 0):o=!!i.isRecording()||void 0,{type:e,session:{id:c.id,type:"user",has_replay:o,sampled_for_replay:a,is_active:s}}):eS.DISCARDED}),el.register(({eventType:e})=>({type:e,connectivity:(0,n7.getConnectivity)()})),p||(p=function(){try{let e=sessionStorage.getItem(ia);if(e)return e;let t=(0,N.generateUUID)();return sessionStorage.setItem(ia,t),t}catch{return}}()??(0,N.generateUUID)()),j=p,el.register(()=>({tab:{id:j}}));let eg=(B=io(),r.storeContextsAcrossPages&&ir(B,"rum",2),el.register(()=>{let e=B.getContext();return{context:e}}),B),ey=(F=is(),r.storeContextsAcrossPages&&ir(F,"rum",1),el.register(({eventType:e,startTime:t})=>{let i=F.getContext(),o=n.findTrackedSession(t);return(o?.anonymousId&&!i.anonymous_id&&r.trackAnonymousUser&&(i.anonymous_id=o.anonymousId),(0,V.isEmptyObject)(i))?eS.SKIPPED:{type:e,usr:i}}),F),ev=(K=ii(),r.storeContextsAcrossPages&&ir(K,"rum",4),el.register(()=>{let e=K.getContext();return(0,V.isEmptyObject)(e)||!e.id?eS.SKIPPED:{account:e}}),K),eE=function(e,t,r,n,i){var o;let a,s,{unsubscribe:c}=e.subscribe(0,t=>{e.notify(13,r1(t))}),u=eT.noop;i.trackUserInteractions&&(a=function(e,t,r,n){let i,o=rx(e),a=new z.Observable;e.subscribe(5,u),e.subscribe(12,u);let{stop:s}=function({onPointerDown:e,onPointerUp:t}){let r,n,i={selection:!1,input:!1,scroll:!1},o=[(0,e6.addEventListener)(window,e6.DOM_EVENT.POINTER_DOWN,t=>{rz(t)&&(r=rW(),i={selection:!1,input:!1,scroll:!1},n=e(t))},{capture:!0}),(0,e6.addEventListener)(window,e6.DOM_EVENT.SELECTION_CHANGE,()=>{r&&rW()||(i.selection=!0)},{capture:!0}),(0,e6.addEventListener)(window,e6.DOM_EVENT.SCROLL,()=>{i.scroll=!0},{capture:!0,passive:!0}),(0,e6.addEventListener)(window,e6.DOM_EVENT.POINTER_UP,e=>{if(rz(e)&&n){let r=i;t(n,e,()=>r),n=void 0}},{capture:!0}),(0,e6.addEventListener)(window,e6.DOM_EVENT.INPUT,()=>{i.input=!0},{capture:!0})];return{stop:()=>
3{o.forEach(e=>e.stop())}}}({onPointerDown:i=>(function(e,t,r,n,i){let o;if((o=e.enablePrivacyForActionName?th(r0(n),e.defaultPrivacyLevel):tg.ALLOW)===tg.HIDDEN)return;let a=function(e,t,r){let n=r0(e),i=n.getBoundingClientRect(),o=ti(n,r.actionNameAttribute),a=function(e,t){let r=e.filter(e=>e instanceof Element&&!rM.includes(e.tagName));if(0===r.length)return"";let n=t?[t].concat(rL):rL,i="";for(let e of r)if((i+=function(e,t){let r=ts(e),n=ta(e),i=Array.from(e.classList).filter(e=>!to(e)).sort().map(e=>`.${CSS.escape(e)}`).join(""),o=function(e,t){let r=[];for(let n of Array.from(e.attributes))t.includes(n.name)&&r.push(tu(n.name,n.value));return r.sort().join("")}(e,t),a=function(e){let t=Array.from(e.parentNode.children);if(t.length<=1)return"";let r=t.filter(t=>t.tagName===e.tagName),n=t.indexOf(e),i=tl(e);return`:nth-child(${n+1})${r.length>1?`:nth-of-type(${i})`:""}`}(e);return`${r}${n||""}${o}${i}${a};`}(e,n)).length>=rU)return(0,N.safeTruncate)(i,rU);return i}(e.composedPath(),r.actionNameAttribute);o&&rZ(e.timeStamp,o);let{name:s,nameSource:c}=function(e,t,r=tg.ALLOW){let n=new Map,{actionNameAttribute:i}=t,o=rV(e,"data-dd-action-name")||i&&rV(e,i);return o?{name:o,nameSource:"custom_attribute"}:r===tg.MASK?{name:te,nameSource:"mask_placeholder"}:rB(e,r$,t,n)||rB(e,rj,t,n)||{name:"",nameSource:"blank"}}(n,r,t);return{type:_.ActionType.CLICK,target:{width:Math.round(i.width),height:Math.round(i.height),selector:o,composedPathSelector:a||void 0},position:{x:Math.round(e.clientX-i.left),y:Math.round(e.clientY-i.top)},name:s,nameSource:c}}(n,o,e),s=!1;return rR(t,r,i,e,e=>{s=e.hadActivity},100),{clickActionBase:a,ignore:function(e){let t=0,r=e;for(;r;){let e=r.getAttribute("data-dd-ignore-frustration");if(null!==e){let r=e.split(/\s+/);if(""===e.trim()||r.includes("all"))return 7;r.includes("rage-click")&&(t|=1),r.includes("dead-click")&&(t|=2),r.includes("error-click")&&(t|=4)}if(7===t)break;r=e9(r)}return t}(r0(n)),hadActivityOnPointerDown:()=>s}})(n,e,t,i,r),onPointerUp:({clickActionBase:i,ignore:s,hadActivityOnPointerDown:u},l,d)=>{!function(e,t,r,n,i,o,a,s,c,u,l,d){let p=function e(t,r,n,i,o,a){let s,c=(0,N.generateUUID)(),u=(0,x.relativeToClocks)(a.timeStamp),l=r.start(c,u,i,{isChildEvent:rQ});t.notify(16,l);let d=0,p=[],f=new z.Observable;function m(e){0===d&&(d=1,s=e?r.stop(c,(0,x.timeStampToClocks)(e)):r.discard(c),f.notify())}return{event:a,ignore:o,stop:m,stopObservable:f,get hasError(){let e=s?.counts??r.getCounts(c);return!!e&&e.errorCount>0},get hasPageActivity(){return s&&"duration"in s},getUserActivity:n,addFrustration:e=>{p.push(e)},get startClocks(){return u},isStopped:()=>1===d||2===d,clone:()=>e(t,r,n,i,o,a),validate:e=>
3{if(m(),1!==d||!s)return;let r={frustrationTypes:p,events:e??[a],event:a,...s,counts:s.counts};t.notify(0,r),d=2},discard:()=>{m(),d=2}}}(t,i,l,s,c,u);a(p);let f=s?.target?.selector;f&&rZ(u.timeStamp,f);let{stop:m}=rR(t,r,n,e,e=>{e.hadActivity&&e.end<p.startClocks.timeStamp?p.discard():e.hadActivity?p.stop(e.end):d()?p.stop(p.startClocks.timeStamp):p.stop()},rJ),g=t.subscribe(5,({endClocks:e})=>{p.stop(e.timeStamp)}),y=t.subscribe(12,()=>{p.stop((0,x.timeStampNow)())}),v=o.subscribe(()=>{p.stop()});p.stopObservable.subscribe(()=>{y.unsubscribe(),g.unsubscribe(),m(),v.unsubscribe()})}(n,e,t,r,o,a,c,i,s,l,d,u)}});return{stop:()=>{u(),a.notify(),s(),o.stopAll()},findActionId:o.findId};function c(e){if(!i?.tryAppend(e)){let t=e.clone(),r=function(e,t){let r,n=[],i=0;function o(e){e.stopObservable.subscribe(a),n.push(e),(0,eD.clearTimeout)(r),r=(0,eD.setTimeout)(s,rP)}function a(){1===i&&n.every(e=>e.isStopped())&&(i=2,t(n))}function s(){(0,eD.clearTimeout)(r),0===i&&(i=1,a())}return o(e),{tryAppend:e=>{var t,r,a,c;return 0===i&&(!(n.length>0)||(t=n[n.length-1],r=e,(1&t.ignore)!=0==((1&r.ignore)!=0)&&t.event.target===r.event.target&&100>=(a=t.event,c=r.event,Math.sqrt(Math.pow(a.clientX-c.clientX,2)+Math.pow(a.clientY-c.clientY,2)))&&t.event.timeStamp-r.event.timeStamp<=rP)?(o(e),!0):(s(),!1))},stop:()=>{s()}}}(e,e=>{(function(e,t){let{isRage:r}=function(e,t){if(function(e){if(e.some(e=>(1&e.ignore)!=0||e.getUserActivity().selection||e.getUserActivity().scroll))return!1;for(let t=0;t<e.length-2;t+=1)if(e[t+3-1].event.timeStamp-e[t].event.timeStamp<=x.ONE_SECOND)return!0;return!1}(e))return t.addFrustration(_.FrustrationType.RAGE_CLICK),e.some(rY)&&t.addFrustration(_.FrustrationType.DEAD_CLICK),t.hasError&&(4&t.ignore)==0&&t.addFrustration(_.FrustrationType.ERROR_CLICK),{isRage:!0};let r=e.some(e=>e.getUserActivity().selection);return e.forEach(e=>{e.hasError&&(4&e.ignore)==0&&e.addFrustration(_.FrustrationType.ERROR_CLICK),rY(e)&&!r&&e.addFrustration(_.FrustrationType.DEAD_CLICK)}),{isRage:!1}}(e,t);r?(e.forEach(e=>e.discard()),t.stop((0,x.timeStampNow)()),t.validate(e.map(e=>e.event))):(t.discard(),e.forEach(e=>e.validate()))})(e,t),i===r&&(i=void 0)});i=r}}function u(){i&&i.stop()}}(e,r,n,i));let l=(o=t=>{e.notify(13,r1(t))},{addAction:function(e){o({id:(0,N.generateUUID)(),frustrationTypes:[],...e})},startAction:function(t,r={},n=(0,x.clocksNow)()){let i=r.actionKey??t,o=s.start(i,n,{name:t,...r},{isChildEvent:rQ});e.notify(16,o)},stopAction:function(e,t={},r=(0,x.clocksNow)()){let n=t.actionKey??e,i=s.stop(n,r,t);if(!i)return;let a=[];i.counts&&i.counts.errorCount>0&&a.push(_.FrustrationType.ERROR_CLICK),o({...i,type:i.type||_.ActionType.CUSTOM,frustrationTypes:a})},findActionId:(s=rx(e)).findId,stop:s.stopAll}),d={findActionId:e=>{let t=l.findActionId(e),r=a?.findActionId(e)??[];return t.concat(r)}};return t.assembleEventDefaults.register(({startTime:e,eventType:t})=>{if(t!==_.RumEventType.ERROR&&t!==_.RumEventType.RESOURCE&&t!==_.RumEventType.LONG_TASK)return eS.SKIPPED;let r=t===_.RumEventType.LONG_TASK?(0,x.addDuration)(e,1):e,n=d.findActionId(r);return n.length?{type:t,action:{id:n}}:eS.SKIPPED}),t.assembleTelemetry.register(({startTime:e})=>({action:{id:d.findActionId(e)}})),{addAction:l.addAction,startAction:l.startAction,stopAction:l.stopAction,actionContexts:d,stop:()=>{c(),u(),l.stop(),a?.stop()}}}(e,t,en,ea,r);ee.push(eE.stop);let eb={addEvent:(t,r,n,i)=>{ie.includes(r.type)&&e.notify(13,{startClocks:(0,x.relativeToClocks)(t),rawRumEvent:r,domainContext:n,duration:i})}},eh=(H=requestAnimationFrame((0,$.monitor)(()=>{q=tD()})),G=tk().subscribe(e=>{q=e}).unsubscribe,el.register(({eventType:e})=>({type:e,display:q?{viewport:q}:void 0})),{stop:()=>{G(),H&&cancelAnimationFrame(H)}});ee.push(eh.stop);let e_=function(e,t=function(e){let t=nz()?(e,t)=>(0,e6.addEventListener)(D.globalObject.cookieStore,e6.DOM_EVENT.CHANGE,r=>{let n=r.changed.find(t=>t.name===e)||r.deleted.find(t=>t.name===e);n&&t(n.value)}).stop:nJ;return new z.Observable(r=>t(e,e=>r.notify(e)))}("datadog-ci-visibility-test-execution-id")){let r=P("datadog-ci-visibility-test-execution-id")||function(){let e=window.Cypress;if(e)try{return e.env("traceId")}catch{A.display.warn("Failed to read Cypress test execution id via Cypress.env(). Upgrade dd-trace-js to >= 5.88.0 to keep RUM ↔ test correlation working.");return}}(),n=t.subscribe(e=>{r=e});return e.register(({eventType:e})=>"string"!=typeof r?eS.SKIPPED:{type:e,session:{type:"ci_test"},ci_test:{test_execution_id:r}}),{stop:()=>{n.unsubscribe()}}}(el);ee.push(e_.stop),el.register(({eventType:e})=>n5()?{type:e,session:{type:"synthetics"},synthetics:{...n5(),injected:n2()}}
3:eS.SKIPPED),W={[_.RumEventType.ERROR]:n6(_.RumEventType.ERROR,l,void 0),[_.RumEventType.ACTION]:n6(_.RumEventType.ACTION,l,void 0),[_.RumEventType.VITAL]:n6(_.RumEventType.VITAL,l,void 0)},e.subscribe(13,({startClocks:n,duration:i,rawRumEvent:o,domainContext:a})=>{let s={eventType:o.type,rawRumEvent:o,domainContext:a,startTime:n.relative,duration:i},c=t.assembleEventDefaults.trigger(s);if(c===eS.DISCARDED)return;let u=t.assembleEvent.trigger(s);if(u===eS.DISCARDED)return;let l=(0,es.combine)(c,o,u,{ddtags:(0,n9.buildTags)(r).join(",")});(function(e,t,r,n){if(t){var i;let n,o,a=(i=n4[e.type],o=(e=>t(e,r))(n=(0,es.deepClone)(e)),(0,tG.objectEntries)(i).forEach(([t,r])=>(function e(t,r,n,i){let[o,...a]=n;if("[]"===o){Array.isArray(t)&&Array.isArray(r)&&t.forEach((t,n)=>e(t,r[n],a,i));return}if(n3(t)&&n3(r)){if(a.length>0)return e(t[o],r[o],a,i);!function(e,t,r,n){if(e[t]===r)return;let i=(0,C.getType)(r);i===n?e[t]=t6(r):"object"===n&&("undefined"===i||"null"===i)?e[t]={}:"array"===n&&("undefined"===i||"null"===i)&&(e[t]=[])}(t,o,r[o],i)}})(e,n,t.split(/\.|(?=\[\])/),r)),o);if(!1===a&&e.type!==_.RumEventType.VIEW)return!1;!1===a&&A.display.warn("Can't dismiss view events using beforeSend!")}return!n[e.type]?.isLimitReached()})(l,r.beforeSend,a,W)&&((0,V.isEmptyObject)(l.context)&&delete l.context,e.
3notify(14,l))});let{addTiming:ew,setLoadingTime:eC,startView:eR,setViewName:eI,setViewContext:eN,setViewContextProperty:ek,getViewContext:ex,stop:eM}=(e.subscribe(4,t=>{var n,o;let a,s,c;return e.notify(13,(n=t,o=r,a=i.getReplayStats(n.id),s=n.commonViewMetrics?.cumulativeLayoutShift?.devicePixelRatio,c={_dd:{document_version:n.documentVersion,replay_stats:a,cls:s?{device_pixel_ratio:s}:void 0,configuration:{start_session_replay_recording_manually:o.startSessionReplayRecordingManually,remote_configuration_id:o.remoteConfigurationId}},date:n.startClocks.timeStamp,type:_.RumEventType.VIEW,view:{action:{count:n.eventCounts.actionCount},frustration:{count:n.eventCounts.frustrationCount},cumulative_layout_shift:n.commonViewMetrics.cumulativeLayoutShift?.value,cumulative_layout_shift_time:(0,x.toServerDuration)(n.commonViewMetrics.cumulativeLayoutShift?.time),cumulative_layout_shift_target_selector:n.commonViewMetrics.cumulativeLayoutShift?.targetSelector,first_byte:(0,x.toServerDuration)(n.initialViewMetrics.navigationTimings?.firstByte),dom_complete:(0,x.toServerDuration)(n.initialViewMetrics.navigationTimings?.domComplete),dom_content_loaded:(0,x.toServerDuration)(n.initialViewMetrics.navigationTimings?.domContentLoaded),dom_interactive:(0,x.toServerDuration)(n.initialViewMetrics.navigationTimings?.domInteractive),error:{count:n.eventCounts.errorCount},first_contentful_paint:(0,x.toServerDuration)(n.initialViewMetrics.firstContentfulPaint),interaction_to_next_paint:(0,x.toServerDuration)(n.commonViewMetrics.interactionToNextPaint?.value),interaction_to_next_paint_time:(0,x.toServerDuration)(n.commonViewMetrics.interactionToNextPaint?.time),interaction_to_next_paint_target_selector:n.commonViewMetrics.interactionToNextPaint?.targetSelector,is_active:n.isActive,name:n.name,largest_contentful_paint:(0,x.toServerDuration)(n.initialViewMetrics.largestContentfulPaint?.value),largest_contentful_paint_target_selector:n.initialViewMetrics.largestContentfulPaint?.targetSelector,load_event:(0,x.toServerDuration)(n.initialViewMetrics.navigationTimings?.loadEvent),loading_time:rC((0,x.toServerDuration)(n.commonViewMetrics.loadingTime)),loading_type:n.loadingType,long_task:{count:n.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:r,largestContentfulPaint:n}){return{cls:e&&{score:e.value,timestamp:(0,x.toServerDuration)(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:r&&{timestamp:(0,x.toServerDuration)(r)},inp:t&&{duration:(0,x.toServerDuration)(t.value),timestamp:(0,x.toServerDuration)(t.time),target_selector:t.targetSelector,sub_parts:t.subParts?{input_delay:(0,x.toServerDuration)(t.subParts.inputDelay),processing_duration:(0,x.toServerDuration)(t.subParts.processingDuration),presentation_delay:(0,x.toServerDuration)(t.subParts.presentationDelay)}:void 0},lcp:n&&{timestamp:(0,x.toServerDuration)(n.value),target_selector:n.targetSelector,resource_url:n.resourceUrl,sub_parts:n.subParts?{load_delay:(0,x.toServerDuration)(n.subParts.loadDelay),load_time:(0,x.toServerDuration)(n.subParts.loadTime),render_delay:(0,x.toServerDuration)(n.subParts.renderDelay)}:void 0}}}(n.commonViewMetrics,n.initialViewMetrics),resource:{count:n.eventCounts.resourceCount},time_spent:(0,x.toServerDuration)(n.duration)},display:n.commonViewMetrics.scroll?{scroll:{max_depth:n.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:n.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:n.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,x.toServerDuration)(n.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:o.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:function(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}()}},(0,V.isEmptyObject)(n.customTimings)||(c.view.custom_timings=(0,V.mapValues)(n.customTimings,x.toServerDuration)),{rawRumEvent:c,startClocks:n.startClocks,duration:n.duration,domainContext:{location:n.location,handlingStack:n.handlingStack}}))}),t.assembleEventDefaults.register(({startTime:e,eventType:t})=>{let r=ep.findView(e);return r?{type:t,service:r.service,version:r.version,context:r.context,view:{id:r.id,name:r.name}}:eS.DISCARDED}),t.assembleTelemetry.register(({startTime:e})=>({view:{id:ep.findView(e)?.id}})),function(e,t,r,n,i,o,a){let s,c,l=new Set,d=p(_.ViewLoadingType.INITIAL_LOAD,(0,nT.clocksOrigin)(),a);function p(i,o,a){let s=function(e,t,r,n,i,o=(0,nT.clocksNow)(),a){var s;let c,l=(0,N.generateUUID)(),d=new z.Observable,p={},f=0,m=(0,V.shallowClone)((0,tZ.mockable)(window.location)),g=nR(),y=!0,v=a?.name,E=a?.service||n.service,b=a?.version||n.version,h=a?.context,S=a?.handlingStack;h&&g.setContext(h);let T={id:l,name:v,startClocks:o,service:E,version:b,context:h,url:a?.url};e.notify(1,T),e.notify(2,T);let{throttled:O,cancel:w}=(0,eT.throttle)(H,3e3,{leading:!1}),{setLoadEvent:C,setViewEnd:R,stop:I,stopINPTracking:k,getCommonViewMetrics:D,setLoa
3dingTime:M}=function(e,t,r,n,i,o,a){let s={},c=!1,l=!1,{stop:d,setLoadEvent:p}=function(e,t,r,n,i,o,a){let s=i===_.ViewLoadingType.INITIAL_LOAD,c=!0,u=[],l=nd(o);function d(){if(!c&&!s&&u.length>0){let e=Math.max(...u);e<l.timeStamp-o.relative&&a(e)}}let{stop:p}=rR(e,t,r,n,e=>{c&&(c=!1,e.hadActivity&&u.push((0,x.elapsed)(o.timeStamp,e.end)),d())});return{stop:()=>{p(),l.stop()},setLoadEvent:e=>{s&&(s=!1,u.push(e),d())}}}(e,t,r,n,o,a,e=>{c||(s.loadingTime=e,i())}),{stop:f}=function(e,t,r=function(e=n_){return new z.Observable(t=>{let r=(0,eT.throttle)(function(){t.notify(function(){let e=tN(),{height:t}=tD();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(t+e),scrollTop:e}}())},e,{leading:!1,trailing:!0}),n=document.scrollingElement||document.documentElement,i=new ResizeObserver((0,$.monitor)(r.throttled));n&&i.observe(n);let o=(0,e6.addEventListener)(window,e6.DOM_EVENT.SCROLL,r.throttled,{passive:!0});return()=>{r.cancel(),i.disconnect(),o.stop()}})}()){let n=0,i=0,o=0,a=r.subscribe(({scrollDepth:r,scrollTop:a,scrollHeight:s})=>{let c=!1;if(r>n&&(n=r,c=!0),s>i){i=s;let t=(0,x.relativeNow)();o=(0,x.elapsed)(e.relative,t),c=!0}c&&t({maxDepth:Math.min(n,i),maxDepthScrollTop:a,maxScrollHeight:i,maxScrollHeightTime:o})});return{stop:()=>a.unsubscribe()}}(a,e=>{s.scroll=e}),{stop:m}=function(e,t,r){let n,i,o,a,s;if(!(e7("layout-shift")&&"WeakRef"in window))return{stop:eT.noop};let c=0;r({value:0});let u=(a=0,s=0,{update:e=>{let t;return void 0===i||e.startTime-o>=ng||e.startTime-i>=nm?(i=o=e.startTime,s=a=e.value,t=!0):(a+=e.value,o=e.startTime,(t=e.value>s)&&(s=e.value)),{cumulatedValue:a,isMaxValue:t}}}),l=e4({type:"layout-shift",buffered:!0}).subscribe(i=>{for(let o of i){if(o.hadRecentInput||o.startTime<t)continue;let{cumulatedValue:i,isMaxValue:a}=u.update(o);if(a){let e=function(e){let t;for(let r of e)if(r.node&&e1(r.node)){let e=np(r);(!t||np(t)<e)&&(t=r)}return t}(o.sources);n={target:e?.node?new WeakRef(e.node):void 0,time:(0,x.elapsed)(t,o.startTime),previousRect:e?.previousRect,currentRect:e?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(i>c){c=i;let t=n?.target?.deref();r({value:eo(c,4),targetSelector:t&&ti(t,e.actionNameAttribute),time:n?.time,previousRect:n?.previousRect?nf(n.previousRect):void 0,currentRect:n?.currentRect?nf(n.currentRect):void 0,devicePixelRatio:n?.devicePixelRatio})}}});return{stop:()=>{l.unsubscribe()}}}(n,a.relative,e=>{s.cumulativeLayoutShift=e,i()}),{stop:g,getInteractionToNextPaint:y,setViewEnd:v}=function(e,t,r){var n;let i,o,a;if(!(e7("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>void 0,setViewEnd:eT.noop,stop:eT.noop};let s=1/0,{getViewInteractionCount:c,stopViewInteractionCount:l}=(n=r,"interactionCount"in performance||u||(u=new window.PerformanceObserver((0,$.monitor)(e=>{e.getEntries().forEach(e=>{e.interactionId&&(nv=Math.min(nv,e.interactionId),ny=((nE=Math.max(nE,e.interactionId))-nv)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),o=n===_.ViewLoadingType.INITIAL_LOAD?0:nb(),a={stopped:!1},{getViewInteractionCount:()=>a.stopped?a.interactionCount:nb()-o,stopViewInteractionCount:()=>{a={stopped:!0,interactionCount:nb()-o}}}),d=function(e){let t=[];function r(){t.sort((e,t)=>t.duration-e.duration).splice(10)}return{process(e){let n=t.findIndex(t=>e.interactionId===t.interactionId),i=t[t.length-1];-1!==n?e.duration>t[n].duration&&(t[n]=e,r()):(t.length<10||e.duration>i.duration)&&(t.push(e),r())},estimateP98Interaction(){let r=Math.min(t.length-1,Math.floor(e()/50));return t[r]},isTracked:e=>t.some(t=>t.interactionId===e)}}(c),p=function(e){let t=new Map;function r(e,t){e.startTime=Math.min(t.startTime,e.startTime),e.processingStart=Math.min(t.processingStart,e.processingStart),e.processingEnd=Math.max(t.processingEnd,e.processingEnd)}return{process(e){if(void 0===e.interactionId||!e.processingStart||!e.processingEnd)return;let n=e.startTime+e.duration,i=t.get(e.interactionId);if(i)return void r(i,e);for(let[,i]of t.entries())if(8>=Math.abs(n-i.referenceRenderTime)){r(i,e),t.set(e.interactionId,i);return}t.set(e.interactionId,{startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,referenceRenderTime:n})},pruneUntracked(){for(let[r]of t)e.isTracked(r)||t.delete(r)},computeSubParts(e,r){if(!e.processingStart||!e.processingEnd||void 0===e.interactionId)return;let n=t.get(e.interactionId);if(!n)return;let i=Math.max(n.startTime+r,n.processingStart),o=Math.min(n.processingEnd,i);return{inputDelay:(0,x.elapsed)(n.startTime,n.processingStart),processingDuration:(0,x.elapsed)(n.processingStart,o),presentationDelay:(0,x.elapsed)(o,i)}},stop(){t.clear()}}}(d),f=e4({type:"first-input",buffered:!0}).subscribe(g),m=e4({type:"event",durationThreshold:40,buffered:!0}).subscribe(g);function g(r){for(let e of r)e.interactionId&&e.startTime>=t&&e.startTime<=s&&(d.process(e),p.process(e));p.pruneUntracked();let n=d.estimateP98Interaction();n&&function(r){let n=(0,x.elapsed)(t,r.startTime);if(r.duration!==i?.duration||n!==i.startTime){var o;let t,a=(o=r.startTime,t=rX.get(o),rX.delete(o),t);!a&&r.target&&e1(r.target)&&(a=ti(r.target,e.actionNameAttribute)),i={duration:r.duration,startTime:n,targetSelector:a}}i.subParts=p.computeSubParts(r,nS(i.duration))}(n)}return{getInteractionToNextPaint:()=>i?{value:nS(i.duration),targetSelector:i.targetSelector,time:i.startTime,subParts:i.subParts}:c()?{value:0}
3:void 0,setViewEnd:e=>{s=e,l()},stop:()=>{m.unsubscribe(),f.unsubscribe(),p.stop()}}}(n,a.relative,o);return{stop:()=>{d(),m(),f()},stopINPTracking:g,setLoadEvent:p,setViewEnd:e=>{l=!0,v(e)},getCommonViewMetrics:()=>(s.interactionToNextPaint=y(),s),setLoadingTime:e=>{if(l)return;let t=(0,x.elapsed)(a.timeStamp,e??(0,x.timeStampNow)());c||d(),c=!0,s.loadingTime=t,i()}}}(e,t,r,n,q,i,o),{stop:U,initialViewMetrics:L}=i===_.ViewLoadingType.INITIAL_LOAD?function(e,t,r,n){var i,o;let a={},{stop:s}=(i=e=>{r(e.loadEvent),a.navigationTimings=e,n()},function(e){let t,{stop:r}=ni("complete",()=>{t=(0,eD.setTimeout)(()=>e())});return{stop:()=>{r(),(0,eD.clearTimeout)(t)}}}(()=>{var e;let t=(0,tZ.mockable)(r9)();t.loadEventEnd<=0||i({domComplete:(e=t).domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:r6(e)})})),c=nd(t),{stop:u}=(o=e=>{a.firstContentfulPaint=e,n()},{stop:e4({type:"paint",buffered:!0}).subscribe(e=>{let t=e.find(e=>"first-contentful-paint"===e.name&&e.startTime<c.timeStamp&&e.startTime<nu);t&&o(t.startTime)}).unsubscribe}),{stop:l}=function(e,t,r,n){let i=1/0,{stop:o}=(0,e6.addEventListeners)(r,[e6.DOM_EVENT.POINTER_DOWN,e6.DOM_EVENT.KEY_DOWN],e=>{i=e.timeStamp},{capture:!0,once:!0}),a=0,s=e4({type:"largest-contentful-paint",buffered:!0}).subscribe(r=>{let o=(0,tG.findLast)(r,e=>"largest-contentful-paint"===e.entryType&&e.startTime<i&&e.startTime<t.timeStamp&&e.startTime<nl&&e.size>a);if(o){var s;let t;o.element&&(t=ti(o.element,e.actionNameAttribute));let r=""===(s=o).url?void 0:s.url,i=o.startTime,c=function(e,t){let r=r6(r9());if(void 0===r)return;let n=e?function(e,t){let r=function(){if(e7("resource"))return performance.getEntriesByType("resource")}();if(r)return(0,tG.findLast)(r,r=>r.name===e&&r.startTime<=t)}(e,t):void 0,i=n?Math.max(r,n.requestStart||n.startTime):r,o=Math.min(t,Math.max(i,n?.responseEnd||0));return{loadDelay:i-r,loadTime:o-i,renderDelay:t-o}}(r,i);n({value:i,targetSelector:t,resourceUrl:r,subParts:c}),a=o.size}});return{stop:()=>{o(),s.unsubscribe()}}}(e,c,window,e=>{a.largestContentfulPaint=e,n()});return{stop:function(){s(),u(),l(),c.stop()},initialViewMetrics:a}}(n,o,C,q):{stop:eT.noop,initialViewMetrics:{}};i===_.ViewLoadingType.BF_CACHE&&(s=o.relative,requestAnimationFrame(()=>{requestAnimationFrame(()=>{(e=>{L.firstContentfulPaint=e,L.largestContentfulPaint={value:e},q()})((0,x.elapsed)(s,(0,x.relativeNow)()))})}));let{stop:P,eventCounts:j}=function(e,t,r){let{stop:n,eventCounts:i}=rk({lifeCycle:e,isChildEvent:e=>e.view.id===t,onChange:r});return{stop:n,eventCounts:i}}(e,l,q),B=(0,eD.setInterval)(H,nA),F=e.subscribe(12,e=>{e===nO.PageExitReason.UNLOADING&&H()});function K(){e.notify(3,{id:l,name:v,context:g.getContext(),startClocks:o,sessionIsActive:y})}function q(){K(),O()}function H(){w(),K(),f+=1;let t=void 0===c?(0,nT.timeStampNow)():c.timeStamp;e.notify(4,{customTimings:p,documentVersion:f,id:l,name:v,service:E,version:b,context:g.getContext(),loadingType:i,location:m,handlingStack:S,startClocks:o,commonViewMetrics:D(),initialViewMetrics:L,duration:(0,nT.elapsed)(o.timeStamp,t),isActive:void 0===c,sessionIsActive:y,eventCounts:j})}return H(),g.changeObservable.subscribe(q),{get name(){return v},service:E,version:b,contextManager:g,stopObservable:d,end(t={}){c||(c=t.endClocks??(0,nT.clocksNow)(),y=t.sessionIsActive??!0,e.notify(5,{endClocks:c}),e.notify(6,{endClocks:c}),(0,eD.clearInterval)(B),R(c.relative),I(),F.unsubscribe(),H(),(0,eD.setTimeout)(()=>{this.stop()},nI))},stop(){U(),P(),k(),d.notify()},addTiming(e,t){var r;let n;if(c)return;let i=(0,nT.isRelativeTime)(t)?t:(0,nT.elapsed)(o.timeStamp,t);p[(n=(r=e).replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==r&&A.display.warn(`Invalid timing name: ${r}, sanitized to: ${n}`),n]=i,q()},setLoadingTime:M,setViewName(e){v=e,H()}}}(e,t,r,n,i,o,a);return l.add(s),s.stopObservable.subscribe(()=>{l.delete(s)}),s}return e.subscribe(11,()=>{d=p(_.ViewLoadingType.SESSION_RENEWAL,void 0,{name:d.name,service:d.service,version:d.version,context:d.contextManager.getContext()})}),e.subscribe(10,({endClocks:e})=>{d.end({sessionIsActive:!1,endClocks:e})}),o&&(c=i.subscribe(({oldLocation:e,newLocation:t})=>{var r,n;let i;r=e,n=t,r.pathname===n.pathname&&(""!==(i=n.hash.substring(1))&&document.getElementById(i)||nN(n.hash)===nN(r.hash))||(d.end(),d=p(_.ViewLoadingType.ROUTE_CHANGE))}),s=function(e){let{stop:t}=(0,e6.addEventListener)(window,e6.DOM_EVENT.PAGE_SHOW,t=>{t.persisted&&e(t)},{capture:!0});return t}(e=>{d.end();let t=(0,nT.relativeToClocks)(e.timeStamp);d=p(_.ViewLoadingType.BF_CACHE,t,void 0)})),{addTiming:(e,t=(0,nT.timeStampNow)())=>{d.addTiming(e,t)}
3,setLoadingTime:e=>d.setLoadingTime(e),startView:(e,t)=>{d.end({endClocks:t}),d=p(_.ViewLoadingType.ROUTE_CHANGE,t,e)},setViewContext:e=>{d.contextManager.setContext(e)},setViewContextProperty:(e,t)=>{d.contextManager.setContextProperty(e,t)},setViewName:e=>{d.setViewName(e)},getViewContext:()=>d.contextManager.getContext(),stop:()=>{c&&c.unsubscribe(),s&&s(),d.end(),l.forEach(e=>e.stop())}}}(e,en,ea,r,ei,!r.trackViewsManually,o));el.register(({domainContext:e,rawRumEvent:t})=>{var r,n;let i,o=(r=e,"long_task"===(n=t).type&&"long-animation-frame"===n.long_task.entry_type?n.long_task.scripts[0]?.source_url:("handlingStack"in r&&(i=r.handlingStack),"error"===n.type&&n.error.stack&&(i=n.error.stack),(0,tQ.computeStackTrace)({stack:i}).stack[0]?.url));if(!o)return eS.SKIPPED;let a=ri(o);return a?{type:t.type,service:a.service,version:a.version}:eS.SKIPPED}),ee.push(eM);let eU=function(e,t){let r,n,i=(0,tZ.mockable)(nn)(),o=(r=new Set,n=e.subscribe(8,e=>{r.add(e),r.size>1e3&&r.delete(r.values().next().value)}),{getMatchingRequest(e){let t,n=1/0;for(let i of r){let r=e.startTime-i.startClocks.relative;0<=r&&r<n&&i.url===e.name&&(n=Math.abs(r),t=i)}return t&&r.delete(t),t},stop(){n.unsubscribe()}});e.subscribe(9,r=>{var n,i;let o,a,s=(n=r,i=t,o=(0,x.elapsed)(n.startClocks.timeStamp,n.endClocks.timeStamp),a={date:n.startClocks.timeStamp,type:_.RumEventType.RESOURCE,resource:{id:(0,N.generateUUID)(),type:"websocket",url:n.url,duration:(0,x.toServerDuration)(o),websocket:{connection_id:n.connectionId,handshake_succeeded:n.handshakeSucceeded,start_time:n.startClocks.timeStamp,end_time:n.endClocks.timeStamp,start_view_id:n.startViewId,end_view_id:n.endViewId,tracking_end_reason:n.trackingEndReason,close_code:n.closeCode,close_reason:n.closeReason,was_clean:n.wasClean,messages_in:n.messagesIn,messages_out:n.messagesOut,time_to_first_message_in:(0,x.toServerDuration)(n.firstMessageInOffset),time_to_first_message_out:(0,x.toServerDuration)(n.firstMessageOutOffset),last_message_in_at:n.lastMessageInAt,longest_inbound_silence:(0,x.toServerDuration)(n.longestInboundSilence),inbound_idle_duration_before_close:(0,x.toServerDuration)(n.inboundIdleDurationBeforeClose),buffered_amount_max:n.bufferedAmountMax,protocol:n.protocol,setup_duration:(0,x.toServerDuration)(n.setupDuration)}},_dd:{discarded:!i.trackResources}},{startClocks:n.startClocks,duration:o,rawRumEvent:a,domainContext:{isWebSocket:!0,isManual:!1,webSocket:n.webSocket}});e.notify(13,s)});let a=e4({type:"resource",buffered:!0}).subscribe(r=>{for(let n of r)eF(n)?(0,eD.setTimeout)(()=>{let r=no(n,o.getMatchingRequest(n),t);r&&e.notify(13,r)},50):c(()=>no(n,void 0,t))}),{stop:s}=ni("interactive",()=>{c(()=>no(r9(),void 0,t))});function c(t){i.push(()=>{let r=t();r&&e.notify(13,r)})}let u=rx(e),l={startResource:function(e,t={},r=(0,x.clocksNow)()){let n=t.resourceKey??e;u.start(n,r,{url:e,...t})},stopResource:function(t,r={},n=(0,x.clocksNow)()){let i=r.resourceKey??t,o=u.stop(i,n,{context:r.context,type:r.type});if(!o)return;let a=(0,x.elapsed)(o.startClocks.relative,n.relative),s={date:o.startClocks.timeStamp,type:_.RumEventType.RESOURCE,resource:{id:o.id,type:o.type||eV,url:eZ(o.url),duration:(0,x.toServerDuration)(a),method:o.method,status_code:r.statusCode,size:r.size},_dd:{},context:o.context};e.notify(13,{rawRumEvent:s,startClocks:o.startClocks,duration:a,domainContext:{isManual:!0}})}};return{startResource:l.startResource,stopResource:l.stopResource,stop:()=>{s(),i.stop(),a.unsubscribe(),u.stopAll()}}}(e,r);ee.push(eU.stop);let{stop:e$}=(Y=e4({type:e7("long-animation-frame")?"long-animation-frame":"longtask",buffered:!0}).subscribe(t=>{for(let n of t){if(!r.trackLongTasks)break;let t=(0,x.relativeToClocks)(n.startTime),i=function(e,t){let r=(0,N.generateUUID)(),n=(0,x.toServerDuration)(e.duration),i={date:t.timeStamp,type:_.RumEventType.LONG_TASK,_dd:{discarded:!1}};if("longtask"===e.entryType)return{...i,long_task:{id:r,entry_type:_.RumLongTaskEntryType.LONG_TASK,duration:n}};let o=rn(e.scripts.map(e=>e.sourceURL).filter(e=>!!e));return{...i,_dd:{discarded:!1,debug_ids:o},long_task:{id:r,entry_type:_.RumLongTaskEntryType.LONG_ANIMATION_FRAME,duration:n,blocking_duration:(0,x.toServerDuration)(e.blockingDuration),first_ui_event_timestamp:(0,x.toServerDuration)(e.firstUIEventTimestamp),render_start:(0,x.toServerDuration)(e.renderStart),style_and_layout_start:(0,x.toServerDuration)(e.styleAndLayoutStart),start_time:(0,x.toServerDuration)(e.startTime),scripts:e.scripts.map(e=>({duration:(0,x.toServerDuration)(e.duration),pause_duration:(0,x.toServerDuration)(e.pauseDuration),forced_style_and_layout_duration:(0,x.toServerDuration)(e.forcedStyleAndLayoutDuration),start_time:(0,x.toServerDuration)(e.startTime),execution_start:(0,x.toServerDuration)(e.executionStart),source_url:e.sourceURL,source_function_name:e.sourceFunctionName,source_char_position:e.sourceCharPosition,invoker:e.invoker,invoker_type:e.invokerType,window_attribution:e.windowAttribution}))}}}(n,t);e.notify(13,{rawRumEvent:i,startClocks:t,duration:n.duration,domainContext:{performanceEntry:n}})}}),{stop:()=>Y.unsubscribe()});ee.push(e$);let{addError:ej}=(J=new z.Observable,a.subscribe(({data:e,type:t})=>{t===rh.RUNTIME_ERROR?J.notify(e):t===rh.CONSOLE&&e.api===ec.ConsoleApiName.error&&J.notify(e.error)}),(X=[],(d=[r2,"intervention"]).includes(r2)&&X.push(new z.Observable(e=>{if(!(0,e6.isEventSupported)(document,"securitypolicyviolation"))return;let{stop:t}=(0,e6.addEventListener)(document,"securitypolicyviolation",t=>{var r;let n;e.notify((r=t,n=`'${r.blockedURI}' blocked by '${r.effectiveDirective}' directive`,r5({type:r.effectiveDirective,message:`${r2}: ${n}
3`,originalError:r,csp:{disposition:r.disposition},stack:r3(r.effectiveDirective,r.originalPolicy?`${n} of the policy "${(0,N.safeTruncate)(r.originalPolicy,100,"...")}"`:"no policy",r.sourceFile,r.lineNumber,r.columnNumber),debugIds:r.sourceFile?rn([r.sourceFile]):void 0})))});return t})),(Z=d.filter(e=>e!==r2)).length&&X.push((y=Z,new z.Observable(e=>{if(!window.ReportingObserver)return;let t=(0,$.monitor)((t,r)=>t.forEach(t=>e.notify(function(e){let{type:t,body:r}=e;return r5({type:r.id,message:`${t}: ${r.message}`,originalError:e,stack:r3(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber),debugIds:r.sourceFile?rn([r.sourceFile]):void 0})}(t)))),r=new window.ReportingObserver(t,{types:y,buffered:!0});return r.observe(),()=>{r.disconnect()}}))),(0,z.mergeObservables)(...X)).subscribe(e=>J.notify(e)),J.subscribe(t=>e.notify(15,{error:t})),(v=e).subscribe(15,({error:e})=>{var t;let r,n;v.notify(13,(r={date:(t=e).startClocks.timeStamp,error:{id:(0,N.generateUUID)(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,component_stack:t.componentStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},_dd:{debug_ids:t.debugIds},type:_.RumEventType.ERROR,context:t.context},n={error:t.originalError,handlingStack:t.handlingStack},{rawRumEvent:r,startClocks:t.startClocks,domainContext:n}))}),{addError:({error:e,handlingStack:t,componentStack:r,startClocks:n,context:i})=>{let o=rs({originalError:e,handlingStack:t,componentStack:r,startClocks:n,nonErrorPrefix:t2.PROVIDED,source:t1.CUSTOM,handling:t5.HANDLED});o.context=(0,es.combine)(o.context,i),v.notify(15,{error:o})}});Q={clearTracingIfNeeded:tW,traceFetch:e=>tz(r,e,n,ey,ev,t=>{if(e.input instanceof Request&&!e.init?.headers)e.input=new Request(e.input),Object.keys(t).forEach(r=>{e.input.headers.append(r,t[r])});else{e.init=(0,V.shallowClone)(e.init);let r=[];e.init.headers instanceof Headers?e.init.headers.forEach((e,t)=>{r.push([t,e])}):Array.isArray(e.init.headers)?e.init.headers.forEach(e=>{r.push(e)}):e.init.headers&&Object.keys(e.init.headers).forEach(t=>{r.push([t,e.init.headers[t]])}),e.init.headers=r.concat((0,tG.objectEntries)(t))}}),traceXhr:(e,t)=>tz(r,e,n,ey,ev,e=>{try{Object.keys(e).forEach(r=>{t.setRequestHeader(r,e[r])})}catch{}})},E=e,b=Q,h=a,(R=[]).push(rl().subscribe(e=>{"start"===e.state&&eJ(e.url)&&(b.traceXhr(e,e.xhr),r_(e))})),R.push(h.subscribe(({data:e,type:t})=>{if(t===rh.XHR&&eJ(e.url))switch(e.state){case"start":r_(e),E.notify(7,{requestIndex:e.requestIndex,url:e.url});break;case"complete":b.clearTracingIfNeeded(e),E.notify(8,{...e,type:"xhr",isAbortedOnStart:!1})}})),S=e,T=r,O=Q,w=a,(I=[]).push(rv({responseBodyAction:e=>tX(e.url,T)?.trackResponseErrors?rg.COLLECT:rg.IGNORE}).subscribe(e=>{"start"===e.state&&eJ(e.url)&&(O.traceFetch(e),r_(e))})),I.push(w.subscribe(({data:e,type:t})=>{if(t===rh.FETCH&&eJ(e.url))switch(e.state){case"start":r_(e),S.notify(7,{requestIndex:e.requestIndex,url:e.url});break;case"resolve":O.clearTracingIfNeeded(e),S.notify(8,{...e,duration:(0,x.elapsed)(e.startClocks.timeStamp,(0,x.timeStampNow)()),type:eP,requestBody:e.init?.body})}}));let eB=function(e,t){let r=rx(e);function n(r){t.wasInPageStateDuringPeriod("frozen",r.startClocks.relative,r.duration)||e.notify(13,nK(r))}return{addOperationStepVital:function(t,r,n,i){let{operationKey:o,context:a,description:s,handlingStack:c}=n||{},u={name:t,type:_.VitalType.OPERATION_STEP,operationKey:o,failureReason:i,stepType:r,startClocks:(0,x.clocksNow)(),context:t6(a),description:s,handlingStack:c};e.notify(13,nK(u))},addDurationVital:n,startDurationVital:function(t,n={},i=(0,x.clocksNow)()){let{id:o}=r.start(n.vitalKey??t,i,{name:t,...n});e.notify(17,{id:o,name:t,startClocks:i,...n})},stopDurationVital:function(e,t={},i=(0,x.clocksNow)()){let o=r.stop(t.vitalKey??e,i,t);o&&n({type:_.VitalType.DURATION,...o})}}}(e,ed);if(r.trackResources&&(r.betaTrackWebSockets||(0,et.isExperimentalFeatureEnabled)(et.ExperimentalFeature.TRACK_WEBSOCKETS))){let t,r,n=(f=eB.addDurationVital,t=function(e,t,r,n){let i=new Map;function o(t,i,o){let a=function(e,t,r,n){let i=t.at,o="session_end"===r?n.findView(i.relative,{returnInactive:!0})?.id:n.findView(i.relative)?.id,a=void 0!==e.lastMessageInAt?(0,rT.elapsed)(e.lastMessageInAt,i.timeStamp):void 0,{openClocks:s,...c}=e;return{...c,endClocks:i,endViewId:o,inboundIdleDurationBeforeClose:a,trackingEndReason:r,handshakeSucceeded:void 0!==s,setupDuration:e.setupDuration??(0,rT.elapsed)(e.startClocks.timeStamp,i.timeStamp),closeCode:t.code,closeReason:t.reason,wasClean:t.wasClean}}(t,i,o,r);e.notify(9,a),n({id:(0,N.generateUUID)(),name:"websocket-closed",type:_.VitalType.DURATION,startClocks:a.endClocks,duration:0,
3context:t6({url:a.url,connection_id:a.connectionId})})}let a=t.subscribe(e=>{switch(e.state){case"connecting":{var t;let o,a=(0,N.generateUUID)(),s=r.findView(e.startClocks.relative)?.id,c=(t=e.url,(o=(0,k.buildUrl)(t)).search="",o.href),u={webSocket:e.instance,connectionId:a,url:c,startClocks:e.startClocks,startViewId:s,messagesIn:{count:0,size:0},messagesOut:{count:0,size:0},longestInboundSilence:0,bufferedAmountMax:0};i.set(e.instance,u),n({id:(0,N.generateUUID)(),name:"websocket-connecting",type:_.VitalType.DURATION,startClocks:e.startClocks,duration:0,context:t6({url:c,connection_id:a})});return}case"open":{let t=i.get(e.instance);if(!t)return;t.openClocks=e.openClocks,t.protocol=e.protocol,t.setupDuration=(0,rT.elapsed)(t.startClocks.timeStamp,e.openClocks.timeStamp);return}case"message-in":{let t=i.get(e.instance);if(!t)return;t.messagesIn.count+=1,t.messagesIn.size+=e.size,rw(t,e.at,"in");return}case"message-out":{let t=i.get(e.instance);if(!t)return;e.bufferedAmountPreSend>t.bufferedAmountMax&&(t.bufferedAmountMax=e.bufferedAmountPreSend),t.messagesOut.count+=1,t.messagesOut.size+=e.size,rw(t,e.at,"out");return}case"closed":{let t=i.get(e.instance);if(!t)return;i.delete(e.instance),o(t,e,"close_event");return}}});return{flushOpenConnections:(e,t=(0,rT.clocksNow)())=>{i.forEach(r=>{o(r,{at:t},e)}),i.clear()},stop:()=>{a.unsubscribe(),i.clear()}}}(e,(c||(c=new z.Observable(e=>{if("function"!=typeof D.globalObject.WebSocket)return;let{stop:t}=tj(D.globalObject,"WebSocket",({parameters:t,onPostCall:r})=>{let n=Array.isArray(t[1])?[].concat(t[1]):t[1],i=(0,x.clocksNow)();r(t=>{e.notify({state:"connecting",instance:t,url:t.url,protocols:n,startClocks:i}),function(e,t){let{stop:r}=(0,e6.addEventListener)(e,"open",()=>{t.notify({state:"open",instance:e,openClocks:(0,x.clocksNow)(),protocol:e.protocol||""}),r()}),{stop:n}=(0,e6.addEventListener)(e,"message",r=>{t.notify({state:"message-in",instance:e,size:rO(r.data),at:(0,x.clocksNow)()})}),{stop:i}=(0,e6.addEventListener)(e,"close",r=>{t.notify({state:"closed",instance:e,code:r.code,reason:r.reason,wasClean:r.wasClean,at:(0,x.clocksNow)()}),n(),i()})}(t,e)})}),{stop:r}=t$(D.globalObject.WebSocket.prototype,"send",({target:t,parameters:[r],onPostCall:n})=>{let i=rO(r),o=t.bufferedAmount;n(()=>{e.notify({state:"message-out",instance:t,size:i,bufferedAmountPreSend:o,at:(0,x.clocksNow)()})})});return()=>{t(),r()}})),c),ep,f),r=e.subscribe(10,({endClocks:e})=>{t.flushOpenConnections("session_end",e)}),{stop:()=>{r.unsubscribe(),t.flushOpenConnections("session_end"),t.stop()}});ee.push(n.stop)}let eK=(m=r.applicationId,g=eE.actionContexts,{get:e=>{let t=ep.findView(e),r=ef.findUrl(e),i=n.findTrackedSession(e);if(i&&t&&r){let n=g.findActionId(e);return{application_id:m,session_id:i.id,user_action:n?{id:n}:void 0,view:{id:t.id,name:t.name,referrer:r.referrer,url:r.url}}}}});return{addAction:eE.addAction,startAction:eE.startAction,stopAction:eE.stopAction,startResource:eU.startResource,stopResource:eU.stopResource,addEvent:eb.addEvent,addError:ej,addTiming:ew,setLoadingTime:eC,addFeatureFlagEvaluation:em.addFeatureFlagEvaluation,startView:eR,setViewContext:eN,setViewContextProperty:ek,getViewContext:ex,setViewName:eI,viewHistory:ep,sessionManager:n,stopSession:()=>n.expire(),getInternalContext:eK.get,startDurationVital:eB.startDurationVital,stopDurationVital:eB.stopDurationVital,addDurationVital:eB.addDurationVital,addOperationStepVital:eB.addOperationStepVital,globalContext:eg,userContext:ey,accountContext:ev,stop:()=>ee.forEach(e=>e())}}(v,f,e,t,r,i,a,m,E);return y.push(b),a.unbuffer(),y.push(()=>n.stop()),{...h,lifeCycle:v,sessionManager:t,stopSession:()=>t.expire(),telemetry:s,stop:()=>{y.forEach(e=>e())},hooks:f}}function iu(e){return!!e&&"function"==typeof e.then}let il="userContext",id="globalContext",ip="accountContext",im="getContext",ig="setContext",iy="setContextProperty",iv="removeContextProperty",iE="clearContext";function ib(e,t,r,n){return(0,$.monitor)((...i)=>(n&&(0,R.addTelemetryUsage)({feature:n}),e()[t][r](...i)))}function ih(e,t,r){e.changeObservable.subscribe(()=>{let n=e.getContext();r.notify(e=>e[t].setContext(n))})}function iS(e,t){t.silentMultipleInit||A.display.error(`${e} is already initialized.`)}let i_=["chrome-extension://","moz-extension://"];function iT(e){return i_.some(t=>e.includes(t))}let iO=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function iw(e){return e.created?Number(e.created):void 0}function iC(e){let t=e.expire&&Number(e.expire),r=iw(e);if(t&&r)return Math.min(t,r+eA)}function iR(e,t){let r={isExpired:"1"};
3return t.trackAnonymousUser&&e?.anonymousId&&(r.anonymousId=e?.anonymousId),r}function iA(e){return(0,V.isEmptyObject)(e)}function iI(e){let t;return void 0!==e.isExpired||!((t=iC(e))&&(0,x.dateNow)()<t)}function iN(e){e.expire=String((0,x.dateNow)()+eI)}function ik(e){return(0,tG.objectEntries)(e).map(([e,t])=>"anonymousId"===e?`aid=${t}`:`${e}=${t}`).join("&")}function iD(e){let t={};return e&&(-1!==e.indexOf("&")||iO.test(e))&&e.split("&").forEach(e=>{let r=iO.exec(e);if(null!==r){let[,e,n]=r;"aid"===e?t.anonymousId=n:t[e]=n}}),t}function ix(e,t){return iA(e)?(t.trackAnonymousUser&&(e.anonymousId=(0,N.generateUUID)()),iR(e,t)):e}function iM(e,t){if(iA(e))return e;let r=e;return iI(e)&&(r=iR(e,t)),r.id||(r.id=(0,N.generateUUID)(),r.created=String((0,x.dateNow)())),t.trackAnonymousUser&&!r.anonymousId&&(r.anonymousId=(0,N.generateUUID)()),delete r.isExpired,iN(r),r}let iU="_dd_s_v2",iL="_dd_s";async function iP(e){let t=function(e){let t={};if(t.secure=e.useSecureSessionCookie||e.usePartitionedCrossSiteSessionCookie,t.crossSite=e.usePartitionedCrossSiteSessionCookie,t.partitioned=e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){let e=function(e=D.globalObject.location?.hostname??"",t="u">typeof document?document.referrer:""){if("u">typeof document){if(void 0===r){let n=function(e,t){try{return e||(0,k.buildUrl)(t).hostname}catch{}}(e,t);if(n){let e=`dd_site_test_${(0,N.generateUUID)()}`,t=n.split("."),i=t.pop();for(;t.length&&!U(e);)i=`${t.pop()}.${i}`,M(e,"test",x.ONE_SECOND,{domain:i});M(e,"",0,{domain:i}),r=i}}return r}}();if(!e)return;t.domain=e}return t}(e);if(t){if(nz()&&await nq(nH,t))return{type:ek.COOKIE,cookieOptions:t,cookieApi:1};if(await nq(nW,t))return{type:ek.COOKIE,cookieOptions:t,cookieApi:0}}}function iV(e,t){return 1===e?nH(iU,t):nW(iU,t)}function i$(e,t){let r;for(let n of e.slice().reverse())if((r=iD(n)).c===t)break;return delete r?.c,r??{}}function ij(e){return((e.domain?e.domain.split(".").length-1:0)<<1|!!e.crossSite).toString(16)}let iB="_DD_SESSION";async function iF(e){var t;for(let r of void 0!==(t=e.sessionPersistence)?t:D.isWorkerEnvironment?[ek.MEMORY]:[ek.COOKIE]){let t=await function(e,t){switch(e){case ek.COOKIE:return iP(t);case ek.LOCAL_STORAGE:try{let e=(0,N.generateUUID)(),t=`_dd_test_${e}`;localStorage.setItem(t,e);let r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:ek.LOCAL_STORAGE}:void 0}catch{return}case ek.MEMORY:return{type:ek.MEMORY};default:A.display.error(`Invalid session persistence '${String(e)}'`);return}}(r,e);if(void 0!==t)return t}}function iK(e,t){switch(e.type){case ek.COOKIE:return function(e,t){let{cookieOptions:r,cookieApi:n}=e,i=new z.Observable,o=!!t.trackAnonymousUser,a=ij(r),s=(0,tZ.mockable)(iV)(n,r),c=!0;function u(e){return s.getAllAndSet(t=>{var n,i;let s=i$(t,a);return c&&(0,V.isEmptyObject)(s)&&(s=i$(L(iL),a)),c=!1,{value:(n=e(s),i=r,ik((0,V.isEmptyObject)(n)?n:{...n,c:ij(i)})),expireDelay:o?eN:eA}})}return s.observable.subscribe(()=>{s.getAll().then(e=>{i.notify(i$(e,a))}).catch(e=>(0,$.monitorError)(Error(`Error while reading session cookies on change: ${e}`)))}),{async setSessionState(e,t){"u">typeof navigator&&navigator.locks?await navigator.locks.request(iU,()=>u(e)).catch(e=>{var t;if(!((t=e)instanceof Error&&("AbortError"===t.name||t.message.includes("no longer runnable"))))throw e}):(f=(f??Promise.resolve()).then(()=>u(e)),await f)},sessionObservable:i}}(e,t);case ek.LOCAL_STORAGE:let r,n;return r=new z.Observable(e=>(0,e6.addEventListener)(window,"storage",t=>{"_dd_s_v2"===t.key&&t.storageArea===localStorage&&e.notify(iD(t.newValue))}).stop),n=!0,{async setSessionState(e,t){let i=iD(localStorage.getItem(iU));n&&iA(i)&&(i=iD(localStorage.getItem(iL))),n=!1;let o=e(i);localStorage.setItem(iU,ik(o)),await Promise.resolve(),r.notify(o)},sessionObservable:r};case ek.MEMORY:let i,o,a,s;return(i=D.globalObject)._DD_SESSION||(i[iB]={}),o=i[iB],a=new z.Observable,s=o.onChange,o.onChange=e=>{s?.(e),a.notify(e)},{async setSessionState(e,t){let r=o.state??{},n=(0,V.shallowClone)(e(r));o.state=n,await Promise.resolve(),o.onChange?.(n)},sessionObservable:a}}}let iq=x.ONE_MINUTE,iH=12*x.ONE_HOUR,iG=[];async function iW(e,t){let r,n=(0,x.relativeNow)(),i=new z.Observable,o=new z.Observable,a=await (0,tZ.mockable)(iF)(e);if(!a)return void A.display.warn("No storage available for session. We will not send any data.");let s=(0,tZ.mockable)(iK)(a,e),c=eL({maxEntries:1e3});iG.push(()=>c.stop());let u=!1,{throttled:l,cancel:d}=(0,eT.throttle)(()=>{u=!1,s.setSessionState(t=>iM(t,e),"expandOrRenewOnActivity").catch($.monitorError)},x.ONE_SECOND);iG.push(d),iG.push(()=>(0,eD.clearTimeout)(r));let p=!1;iG.push(()=>{p=!0});let f=await m().catch(e=>(0,$.monitorError)(Error(`Error while resolving initial session state: ${e}`)));if(f&&!p){let r;for(;!t.isGranted();)if(v(),await new Promise(e=>t.onGrantedOnce(e)),p||!(f=await m().catch($.monitorError))||p)return;return c.add(E(f),(0,x.clocksOrigin)().relative),g(f),r=s.sessionObservable.subscribe(e=>{g(e),y(e)}),iG.push(()=>r.unsubscribe()),t.observable.subscribe(()=>{t.isGranted()?(u=!1,s.setSessionState(t=>iM(t,e),"expandOrRenewOnConsent").catch($.monitorError)):v()}),D.isWorkerEnvironment||(function(e){let{stop:t}=(0,e6.addEventListeners)(window,["click","touchstart","keydown","scroll"],e,{capture:!0,passive:!0});iG.push(t)}(()=>{t.isGranted()&&l()}),function(e){let t=()=>{"visible"===document.visibilityState&&e()},{stop:r}=(0,e6.addEventListener)(document,"visibilitychange",t);iG.push(r);let n=(0,eD.setInterval)(t,iq);iG.push(()=>{(0,eD.clearInterval)(n)})}(()=>{u||s.setSessionState(e=>(iI(e)||iA(e)||!e.id||iN(e),e),"expandOnVisibility").catch($.monitorError)}),function(e){let{stop:t}=(0,e6.addEventListener)(window,"resume",e,{capture:!0});iG.push(t)}(()=>{s.setSessionState(t=>ix(t,e),"initializeOnResume").catch($.monitorError)})),(0,R.addTelemetryMetrics)("Session manager init metrics",{metrics:{duration:(0,x.elapsed)(n,(0,x.relativeNow)())}}),{findSession:(e,t)=>c.find(e,t),findTrackedSession:(t,{returnInactive:r=!1,maxAge:n=iH}={})=>{let i=c.find(t,{returnInactive:r});if(i&&"invalid"!==i.id&&tU(i.id,e.sessionSampleRate)&&!((0,x.dateNow)()-i.createdAt>n))return i},renewObservable:i,expireObservable:o,expire:v,updateSessionState:e=>{s.setSessionState(t=>({...t,...e}),"updateState").catch($.monitorError)}}}async function m(){let t={};return await s.setSessionState(r=>t=iM(ix(r,e),e),"initialize"),t}function g(n){(0,eD.clearTimeout)(r);let i=iC(n);if(i){let n=i-(0,x.dateNow)();r=(0,eD.setTimeout)(()=>{s.setSessionState(r=>iI(r)?(t.isGranted()||delete r.anonymousId,iR(r,e)):r,"expireOnTimeout").catch($.monitorError)},n)}}function y(e){let t=c.find(),r=t?.id!==void 0,n=void 0!==e.id,a=r&&n&&t.id!==e.id;if(r&&(!n||a)&&(u=!0,o.notify(),c.closeActive((0,x.relativeNow)())),n&&(!r||a)){if(u)return;c.add(E(e),(0,x.relativeNow)()),i.notify()}
3else r&&n&&!a&&(t.isReplayForced=!!e.forcedReplay)}function v(){d();let r=iR(c.find(),e);t.isGranted()||delete r.anonymousId,y(r),s.setSessionState(r=>(t.isGranted()||delete r.anonymousId,iR(r,e)),"expire").catch($.monitorError)}function E(e){let t=iw(e)??(0,x.timeStampNow)();return e.id?{id:e.id,isReplayForced:!!e.forcedReplay,anonymousId:e.anonymousId,createdAt:t}:{id:"invalid",isReplayForced:!1,anonymousId:void 0,createdAt:t}}}var iz=e.i(237852),iY=e.i(293201);function iJ(e){let t={version:"7.13.0",onReady(e){e()},...e};return Object.defineProperty(t,"_setDebug",{get:()=>iY.setDebugMode,enumerable:!1}),t}function iX(e,t){if(void 0!==e)return"string"!=typeof e?void A.display.warn(`Invalid ${t} provided (expected a string, got ${typeof e}). Ignoring.`):t6(e)}e.s(["defineGlobal",0,function(e,t,r){let n=e[t];n&&!n.q&&n.version&&A.display.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=r,n?.q&&n.q.forEach(e=>en(e,"onReady callback threw an error:")())},"makePublicApi",0,iJ],73403),e.s(["makeRumPublicApi",0,function(e,t,r={}){let n=function(e){let t=new z.Observable;function r(){return e===Y.GRANTED}return{tryToInit(t){e||(e=t)},onGrantedOnce(e){if(r())e();else{let n=t.subscribe(()=>{r()&&(e(),n.unsubscribe())})}},update(r){e=r,t.notify()},isGranted:r,observable:t}}(),i=function(){let e,t=new z.BufferedObservable(500,e=>{(0,R.addTelemetryDebug)("Early data collection dropped data on unbuffer",{count:e})}),r=[];function n(e,n){r.push(n.subscribe(r=>{t.notify({type:e,data:r})}))}return n(0,(0,tZ.mockable)(rc)()),n(1,rv()),n(2,rl()),n(3,(e=Object.values(ec.ConsoleApiName).map(e=>{var t;return rb[e]||(rb[e]=(t=e,new z.Observable(e=>{let r=ec.globalConsole[t];return ec.globalConsole[t]=(...n)=>{r.apply(console,n);let i=(0,tV.createHandlingStack)("console error");(0,$.callMonitored)(()=>{e.notify(function(e,t,r){let n=e.map(e=>{var t;return"string"==typeof(t=e)?t6(t):(0,t0.isError)(t)?(0,tV.formatErrorMessage)((0,tQ.computeStackTrace)(t)):(0,t3.jsonStringify)(t6(t),void 0,2)}).join(" ");if(t===ec.ConsoleApiName.error){let i=rs({originalError:e.find(t0.isError),handlingStack:r,startClocks:(0,x.clocksNow)(),source:t1.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return i.message=n,{api:t,message:n,handlingStack:r,error:i}}return{api:t,message:n,error:void 0,handlingStack:r}}(n,t,i))})},()=>{ec.globalConsole[t]=r}}))),rb[e]}),(0,z.mergeObservables)(...e))),{observable:t,stop:()=>r.forEach(e=>e.unsubscribe())}}(),o=function({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t,s
3dkName:r},n,i){let o,a,s,c,u,l,d=new z.BufferedObservable(500,e=>{(0,R.addTelemetryDebug)("preStartRum buffer data lost",{count:e})}),p=io();ih(p,id,d);let f=is();ih(f,il,d);let m=ii();ih(m,ip,d);let g={assembleEventDefaults:(0,eS.createHook)(),assembleTelemetry:(0,eS.createHook)(),assembleEvent:(0,eS.createHook)()},y=n.observable.subscribe(b),v={},E=!1;function b(){let e;if(E||!s||!c||!u||!l)return;if(y.unsubscribe(),c.trackViewsManually){if(!o)return;e=o.options}let t=c.trackViewsManually?o?.callback:void 0,r=i(c,u,a,e,l,g);E=!0,d.subscribe(e=>{e!==t&&e(r)}),d.unbuffer()}function h(e,i,o){var d;let p=(0,er.canUseEventBridge)();if(p&&(e={...d=e,service:d.service||d.applicationId,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:d.defaultPrivacyLevel??(0,er.getEventBridge)()?.getPrivacyLevel()}),s=e,c)return void iS("DD_RUM",e);let f=ev(e,r);if(f&&function(e,t){let r=(0,tZ.mockable)(D.globalObject.location),n=r?r.origin:"",i=e.allowedTrackingOrigins;if(!i)return!function(e,t=""){return!iT(e)&&iT(t.split("\n").filter(e=>{let t=e.trim();return t.length&&/^at\s+|@/.test(t)})[1]||"")}(n,t)||(A.display.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);let o=tH(i,n);return o||A.display.error("SDK initialized on a non-allowed domain."),o}(f,i??"")){if(f.compressIntakeRequests&&!p&&t&&!(a=t(f,"Datadog RUM",eT.noop)))return;c=f,n.tryToInit(f.trackingConsent),n.onGrantedOnce(()=>{let t,{assembleTelemetry:i}=g;(i.register(()=>n.isGranted()?eS.SKIPPED:eS.DISCARDED),l=(0,tZ.mockable)(R.startTelemetry)(R.TelemetryService.RUM,f,i,r),D.isWorkerEnvironment)?A.display.warn("The RUM SDK is not supported in a web or service worker environment."):((0,er.canUseEventBridge)()?(t={id:(0,N.generateUUID)(),isReplayForced:!1,anonymousId:void 0,createdAt:(0,x.timeStampNow)()},Promise.resolve({findSession:()=>t,findTrackedSession:()=>t,renewObservable:new z.Observable,expireObservable:new z.Observable,expire:eT.noop,updateSessionState:e=>{t={...t,...e}}})):(0,tZ.mockable)(iW)(f,n)).then(t=>{if(t){var n,a;n=u=t,a={application:{id:f.applicationId}},i.register(({startTime:e})=>{let t=n.findTrackedSession(e);return t?{session:{id:t.id},anonymous_id:t.anonymousId,...a}:eS.SKIPPED}),(0,R.addTelemetryConfiguration)(eh(e,r,o)),b()}}).catch($.monitorError)})}}return{init(t,r,n){if(!t)return void A.display.error("Missing configuration");if((0,et.initFeatureFlags)(t.enableExperimentalFeatures),(0,e6.setAllowUntrustedEvents)(t.allowUntrustedEvents),s=t,e&&n2())return;let i=function(e,t){if(!e)return!0;let r=e.map(e=>e.onInit?.(t));return r.some(iu)?Promise.all(r).then(e=>!e.includes(!1)):!r.includes(!1)}(t.plugins,{initConfiguration:t,publicApi:r,registerAssembleEventHook:g.assembleEvent.register});function o(){if(W(t)){let e={user:f,context:p};if(t.remoteConfigurationId||t.remoteConfiguration?.sync)F(t,e).then(e=>{e&&h(e,n)}).catch($.monitorError);else{let r,i,o,a=(r=(0,w.createConfigurationCache)({remoteConfigurationId:W(t)}),i=q(),o=r.read(),(i.increment("cache",w.CACHE_STATUS_TO_METRIC_MAP[o.status]),G(t).then(e=>{e.ok?(i.increment("fetch","success"),r.write(e.value,e.lastModified)):(i.increment("fetch","failure"),A.display.error(e.error))}).catch($.monitorError).finally(()=>{(0,R.addTelemetryMetrics)(R.TelemetryMetrics.REMOTE_CONFIGURATION_METRIC_NAME,{metrics:i.get()})}),"hit"===o.status)?{metadata:r.stampFirstApplied(o),initConfiguration:K(t,o.config,e,i)}:t.remoteConfiguration?.required?void 0:{initConfiguration:t});a&&h(a.initConfiguration,n,a.metadata)}}else h(t,n)}"boolean"==typeof i?i&&o():i.then(e=>{e&&o()}).catch($.monitorError)},get initConfiguration(){return s},getInternalContext:eT.noop,stopSession:eT.noop,addTiming(e,t=(0,x.timeStampNow)()){d.notify(r=>r.addTiming(e,t))},setLoadingTime:e=>{d.notify(t=>t.setLoadingTime(e))},startView(e,t=(0,x.clocksNow)()){let r=r=>{r.startView(e,t)};d.notify(r),o||(o={options:e,callback:r},b())},setViewName(e){d.notify(t=>t.setViewName(e))},setViewContext(e){d.notify(t=>t.setViewContext(e))}
3,setViewContextProperty(e,t){d.notify(r=>r.setViewContextProperty(e,t))},getViewContext:()=>v,globalContext:p,userContext:f,accountContext:m,addAction(e){d.notify(t=>t.addAction(e))},startAction(e,t){let r=(0,x.clocksNow)();d.notify(n=>n.startAction(e,t,r))},stopAction(e,t){let r=(0,x.clocksNow)();d.notify(n=>n.stopAction(e,t,r))},startResource(e,t){let r=(0,x.clocksNow)();d.notify(n=>n.startResource(e,t,r))},stopResource(e,t){let r=(0,x.clocksNow)();d.notify(n=>n.stopResource(e,t,r))},addError(e){d.notify(t=>t.addError(e))},addFeatureFlagEvaluation(e,t){d.notify(r=>r.addFeatureFlagEvaluation(e,t))},startDurationVital(e,t){let r=(0,x.clocksNow)();d.notify(n=>n.startDurationVital(e,t,r))},stopDurationVital(e,t){let r=(0,x.clocksNow)();d.notify(n=>n.stopDurationVital(e,t,r))},addDurationVital(e){d.notify(t=>t.addDurationVital(e))},addOperationStepVital:(e,t,r,n)=>{d.notify(i=>i.addOperationStepVital(t6(e),t,t6(r),t6(n)))}}}(r,n,(n,a,s,c,u,l)=>{let d=s&&r.createDeflateEncoder?e=>r.createDeflateEncoder(s,e):iz.createIdentityEncoder,p=(0,tZ.mockable)(ic)(n,a,e,t,c,d,i.observable,u,l,r.sdkName);e.onRumStart(p.lifeCycle,n,a,p.viewHistory,s,p.telemetry),t.onRumStart(p.lifeCycle,p.hooks,n,a,p.viewHistory,d),f=o,m=p,o={...f,init:e=>{iS("DD_RUM",e)},getInternalContext:m.getInternalContext,stopSession:m.stopSession,getViewContext:m.getViewContext,globalContext:m.globalContext,userContext:m.userContext,accountContext:m.accountContext};var f,m,g=n.plugins,y={addEvent:p.addEvent,addError:p.addError};for(let e of g??[])e.onRumStart?.(y);return p}),a=()=>o,s=(e,t)=>{let r=(0,tV.createHandlingStack)("vital");(0,$.callMonitored)(()=>{(0,R.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"start"}),o.addOperationStepVital(e,"start",{...t,handlingStack:r})})},c=(0,$.monitor)((e,t)=>{(0,R.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"succeed"}),o.addOperationStepVital(e,"end",t)}),u=(0,$.monitor)((e,t,r)=>{(0,R.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"fail"}),o.addOperationStepVital(e,"end",r,t)}),l=iJ({init:e=>{let t=Error().stack;(0,$.callMonitored)(()=>o.init(e,l,t))},setTrackingConsent:(0,$.monitor)(e=>{n.update(e),(0,R.addTelemetryUsage)({feature:"set-tracking-consent",tracking_consent:e})}),setViewName:(0,$.monitor)(e=>{o.setViewName(iX(e,"view name")),(0,R.addTelemetryUsage)({feature:"set-view-name"})}),setViewContext:(0,$.monitor)(e=>{o.setViewContext(e),(0,R.addTelemetryUsage)({feature:"set-view-context"})}),setViewContextProperty:(0,$.monitor)((e,t)=>{o.setViewContextProperty(e,t),(0,R.addTelemetryUsage)({feature:"set-view-context-property"})}),getViewContext:(0,$.monitor)(()=>((0,R.addTelemetryUsage)({feature:"set-view-context-property"}),o.getViewContext())),getInternalContext:(0,$.monitor)(e=>o.getInternalContext(e)),getInitConfiguration:(0,$.monitor)(()=>(0,es.deepClone)(o.initConfiguration)),addAction:(e,t)=>{let r=(0,tV.createHandlingStack)("action");(0,$.callMonitored)(()=>{o.addAction({name:t6(e),context:t6(t),startClocks:(0,x.clocksNow)(),type:_.ActionType.CUSTOM,handlingStack:r}),(0,R.addTelemetryUsage)({feature:"add-action"})})},startAction:(0,$.monitor)((e,t)=>{(0,R.addTelemetryUsage)({feature:"start-action"}),o.startAction(t6(e),{type:t6(t?.type),context:t6(t?.context),actionKey:t?.actionKey})}),stopAction:(0,$.monitor)((e,t)=>{(0,R.addTelemetryUsage)({feature:"stop-action"}),o.stopAction(t6(e),{type:t6(t?.type),context:t6(t?.context),actionKey:t?.actionKey})}),startResource:(0,$.monitor)((e,t)=>{(0,R.addTelemetryUsage)({feature:"start-resource"}),o.startResource(t6(e),{type:t6(t?.type),method:t6(t?.method),context:t6(t?.context),resourceKey:t?.resourceKey})}),stopResource:(0,$.monitor)((e,t)=>{(0,R.addTelemetryUsage)({feature:"stop-resource"}),o.stopResource(t6(e),{type:t6(t?.type),statusCode:t?.statusCode,size:t?.size,context:t6(t?.context),resourceKey:t?.resourceKey})}),addError:(e,t)=>{let r=(0,tV.createHandlingStack)("error");(0,$.callMonitored)(()=>{o.addError({error:e,handlingStack:r,context:t6(t),startClocks:(0,x.clocksNow)()}),(0,R.addTelemetryUsage)({feature:"add-error"})})},addTiming:(0,$.monitor)((e,t)=>{o.addTiming(t6(e),t)}
3),setViewLoadingTime:(0,$.monitor)(()=>{let e=(0,x.timeStampNow)();o.setLoadingTime(e),(0,R.addTelemetryUsage)({feature:"addViewLoadingTime"})}),setGlobalContext:ib(a,id,ig,"set-global-context"),getGlobalContext:ib(a,id,im,"get-global-context"),setGlobalContextProperty:ib(a,id,iy,"set-global-context-property"),removeGlobalContextProperty:ib(a,id,iv,"remove-global-context-property"),clearGlobalContext:ib(a,id,iE,"clear-global-context"),setUser:ib(a,il,ig,"set-user"),getUser:ib(a,il,im,"get-user"),setUserProperty:ib(a,il,iy,"set-user-property"),removeUserProperty:ib(a,il,iv,"remove-user-property"),clearUser:ib(a,il,iE,"clear-user"),setAccount:ib(a,ip,ig,"set-account"),getAccount:ib(a,ip,im,"get-account"),setAccountProperty:ib(a,ip,iy,"set-account-property"),removeAccountProperty:ib(a,ip,iv,"remove-account-property"),clearAccount:ib(a,ip,iE,"clear-account"),startView:e=>{let t=(0,tV.createHandlingStack)("view");(0,$.callMonitored)(()=>{let r="object"==typeof e?e:{name:e};o.startView({...r,name:iX(r.name,"view name"),service:iX(r.service,"view service"),version:iX(r.version,"view version"),handlingStack:t}),(0,R.addTelemetryUsage)({feature:"start-view"})})},stopSession:(0,$.monitor)(()=>{o.stopSession(),(0,R.addTelemetryUsage)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,$.monitor)((e,t)=>{o.addFeatureFlagEvaluation(t6(e),t6(t)),(0,R.addTelemetryUsage)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,$.monitor)(()=>e.getSessionReplayLink()),startSessionReplayRecording:(0,$.monitor)(t=>{e.start(t),(0,R.addTelemetryUsage)({feature:"start-session-replay-recording",force:t?.force})}),stopSessionReplayRecording:(0,$.monitor)(()=>e.stop()),addDurationVital:(e,t)=>{let r=(0,tV.createHandlingStack)("vital");(0,$.callMonitored)(()=>{(0,R.addTelemetryUsage)({feature:"add-duration-vital"}),o.addDurationVital({id:(0,N.generateUUID)(),name:t6(e),type:_.VitalType.DURATION,startClocks:(0,x.timeStampToClocks)(t.startTime),duration:t.duration,context:t6(t?.context),description:t6(t?.description),handlingStack:r})})},startDurationVital:(e,t)=>{let r=(0,tV.createHandlingStack)("vital");(0,$.callMonitored)(()=>{(0,R.addTelemetryUsage)({feature:"start-duration-vital"}),o.startDurationVital(t6(e),{vitalKey:t?.vitalKey,context:t6(t?.context),description:t6(t?.description),handlingStack:r})})},stopDurationVital:(0,$.monitor)((e,t)=>{(0,R.addTelemetryUsage)({feature:"stop-duration-vital"}),o.stopDurationVital(t6(e),{vitalKey:t?.vitalKey,context:t6(t?.context),description:t6(t?.description)})}),startOperation:s,succeedOperation:c,failOperation:u,startFeatureOperation:s,succeedFeatureOperation:c,failFeatureOperation:u,DEFAULT_TRACKED_RESOURCE_HEADERS:em});return l}],609965),e.s(["getSessionReplayUrl",0,function(e,{session:t,viewContext:r,errorType:n}){var i;let o,a,s=t?t.id:"no-session-id",c=[];return void 0!==n&&c.push(`error-type=${n}`),r&&(c.push(`seed=${r.id}`),c.push(`from=${r.startClocks.timeStamp}`)),`${o=(i=e).site,a=i.subdomain||function(e){switch(e.site){case J.INTAKE_SITE_US1:case J.INTAKE_SITE_EU1:return"app";case J.INTAKE_SITE_STAGING:return"dd";default:return}}(i),`https://${a?`${a}.`:""}${o}`}/rum/replay/sessions/${s}?${c.join("&")}`}],194655);var iZ=e.i(976445);e.s(["createFormDataTransport",0,function(e,t,r,n){let i=(0,iZ.createHttpRequest)([(0,j.createEndpointBuilder)(e,"profile")],e=>{t.notify(15,{error:{message:e,source:t1.AGENT,startClocks:(0,x.clocksNow)()}}),(0,R.addTelemetryDebug)("Error reported to customer",{"error.message":e})}),o=r(n);return{async send({event:e,...t}){let r=new FormData,n=(0,t3.jsonStringify)(e);if(!n)throw Error("Failed to serialize event");r.append("event",new Blob([n],{type:"application/json"}),"event.json");let a=n.length;for(let[e,n]of(0,tG.objectEntries)(t)){let t=(0,t3.jsonStringify)(n);if(!t)throw Error("Failed to serialize attachment");let i=await function(e,t){return new Promise(r=>{e.write(t),e.finish(e=>{r(e)})})}(o,t);a+=i.outputBytesCount,r.append(e,new Blob([i.output]),e)}i.send({data:r,bytesCount:a})}}}],753719),e.s([],401711)},710754,525554,270666,e=>{"use strict";e.s(["ActionType",0,{CLICK:"click",CUSTOM:"custom",TAP:"tap",SCROLL:"scroll",SWIPE:"swipe",APPLICATION_START:"application_start",BACK:"back"},"FrustrationType",0,{RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},"RumEventType",0,{ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",VIEW_UPDATE:"view_update",RESOURCE:"resource",VITAL:"vital"},"RumLongTaskEntryType",0,{LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},"ViewLoadingType",0,{INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",SESSION_RENEWAL:"session_renewal",BF_CACHE:"bf_cache"}
3,"VitalType",0,{DURATION:"duration",OPERATION_STEP:"operation_step"}],710754),e.s(["extractRegexMatch",0,function(e,t){t.lastIndex=0;let r=t.exec(e);if(!r)return;let[n,i]=r;return i||n}],525554);let t=/[a-zA-Z_$]/,r=/[a-zA-Z0-9_$]/,n=/[0-9]/,i=/[a-fA-F0-9]/,o={0:()=>!1,1:()=>!1,2:e=>t.test(e),3:e=>r.test(e),4:e=>"."===e,5:e=>"["===e,6:e=>"]"===e,7:e=>n.test(e),8:e=>"'\"".includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>"\\"===e,12:(e,t)=>void 0===t.escapeSequence?`${t.quote}/\\bfnrtu`.includes(e):!!t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5&&i.test(e)},a={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},s=[2,3,7,10],c=[4,5,6],u={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"};e.s(["parseJsonPath",0,function(e){let t,r=[],n=0,i={quote:void 0,escapeSequence:void 0},l="";for(let f of e){if(!(t=a[n].find(e=>o[e](f,i))))return[];if(void 0!==i.escapeSequence&&12!==t){var d,p;if(d=i.escapeSequence,!("\"'/\\bfnrt".includes(d)||d.startsWith("u")&&5===d.length))return[];l+=(p=i.escapeSequence).startsWith("u")?String.fromCharCode(parseInt(p.slice(1),16)):u[p],i.escapeSequence=void 0}s.includes(t)?l+=f:c.includes(t)&&""!==l?(r.push(l),l=""):12===t?i.escapeSequence=i.escapeSequence?`${i.escapeSequence}${f}`:f:8===t?i.quote=f:9===t&&(i.quote=void 0),n=t}return a[n].includes(1)?(""!==l&&r.push(l),r):[]}],270666)}]);
4
5//# sourceMappingURL=1vz7si7ba3e4v.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.