PageSourceSearch

https://www.cancerresearchuk.org/_next/static/chunks/0a5fvatwq4ku0.js

js cancerresearchuk.org collected 2026-09-24 06:56:32 UTC 155,562 bytes, 4 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,800433,e=>{"use strict";let t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},r=console,n={};Object.keys(t).forEach(e=>{n[e]=r[e]});let i="Datadog Browser SDK:",o={debug:n.debug.bind(r,i),log:n.log.bind(r,i),info:n.info.bind(r,i),warn:n.warn.bind(r,i),error:n.error.bind(r,i)},a="https://docs.datadoghq.com",s=`${a}/real_user_monitoring/browser/troubleshooting`;e.s(["ConsoleApiName",0,t,"DOCS_ORIGIN",0,a,"DOCS_TROUBLESHOOTING",0,s,"MORE_DETAILS",0,"More details:","display",0,o,"globalConsole",0,r])},26124,e=>{"use strict";var t=e.i(800433);e.s(["catchUserErrors",0,function(e,r){return(...n)=>{try{return e(...n)}catch(e){t.display.error(r,e)}}}])},236060,e=>{"use strict";let t;var r=e.i(800433);let n=!1;function i(e,t,r){try{return e.apply(t,r)}catch(e){o(e)}}function o(e){if(a(e),t)try{t(e)}catch(e){a(e)}}function a(...e){n&&r.display.error("[MONITOR]",...e)}e.s(["callMonitored",0,i,"displayIfDebugEnabled",0,a,"monitor",0,function(e){return function(...t){return i(e,this,t)}},"monitorError",0,o,"setDebugMode",0,function(e){n=e},"startMonitorErrorCollection",0,function(e){t=e}])},922348,e=>{"use strict";var t=e.i(26124),r=e.i(236060),n=e.i(800433);e.s(["defineGlobal",0,function(e,r,i){let o=e[r];o&&!o.q&&o.version&&n.display.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[r]=i,o&&o.q&&o.q.forEach(e=>(0,t.catchUserErrors)(e,"onReady callback threw an error:")())},"makePublicApi",0,function(e){let t={version:"6.33.0",onReady(e){e()},...e};return Object.defineProperty(t,"_setDebug",{get:()=>r.setDebugMode,enumerable:!1}),t}])},276207,e=>{"use strict";function t(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}let r=t();e.s(["getGlobalObject",0,t,"globalObject",0,r,"isWorkerEnvironment",0,"WorkerGlobalScope"in r])},500750,e=>{"use strict";e.s(["ContextManagerMethod",0,{getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"},"CustomerContextKey",0,{userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"}])},776965,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)?void 0!==window.TextEncoder?new TextEncoder().encode(e).length:new Blob([e]).size:e.length},"concatBuffers",0,function(e){if(1===e.length)return e[0];let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}])},823359,e=>{"use strict";var t=e.i(276207);e.s(["getZoneJsOriginalValue",0,function(e,r){let n,i=(0,t.getGlobalObject)();return i.Zone&&"function"==typeof i.Zone.__symbol__&&(n=e[i.Zone.__symbol__(r)]),n||(n=e[r]),n}])},446098,e=>{"use strict";var t=e.i(823359),r=e.i(236060),n=e.i(276207);e.s(["clearInterval",0,function(e){(0,t.getZoneJsOriginalValue)((0,n.getGlobalObject)(),"clearInterval")(e)},"clearTimeout",0,function(e){(0,t.getZoneJsOriginalValue)((0,n.getGlobalObject)(),"clearTimeout")(e)},"setInterval",0,function(e,i){return(0,t.getZoneJsOriginalValue)((0,n.getGlobalObject)(),"setInterval")((0,r.monitor)(e),i)},"setTimeout",0,function(e,i){return(0,t.getZoneJsOriginalValue)((0,n.getGlobalObject)(),"setTimeout")((0,r.monitor)(e),i)}])},65185,441756,85462,370600,980661,651694,116920,36613,518479,960764,373958,e=>{"use strict";let t;var r,n,i=e.i(800433),o=e.i(776965),a=e.i(446098);function s(){}function l(e,t,r){if("object"!=typeof e||null===e)return JSON.stringify(e);let n=u(Object.prototype),i=u(Array.prototype),o=u(Object.getPrototypeOf(e)),a=u(e);try{return JSON.stringify(e,t,r)}catch(e){return"<error: unable to serialize object>"}finally{n(),i(),o(),a()}}function u(e){let t=e.toJSON;return t?(delete e.toJSON,()=>{e.toJSON=t}):s}e.s(["noop",0,s,"throttle",0,function(e,t,r){let n,i,o=!r||void 0===r.leading||r.leading,s=!r||void 0===r.trailing||r.trailing,l=!1;return{throttled:(...r)=>{if(l){n=r;return}o?e(...r):n=r,l=!0,i=(0,a.setTimeout)(()=>{s&&n&&e(...n),l=!1,n=void 0},t)},cancel:()=>{(0,a.clearTimeout)(i),l=!1,n=void 0}}}],441756),e.s(["detachToJsonMethod",0,u,"jsonStringify",0,l],85462);let c=220*o.ONE_KIBI_BYTE;function d(e,t=c){let r=u(Object.prototype),n=u(Array.prototype),i=[],o=new WeakMap,a=p(e,"$",void 0,i,o),s=JSON.stringify(a),l=s?s.length:0;if(l>t)return void f(t,"discarded",e);for(;i.length>0&&l<t;){let r=i.shift(),n=0;if(Array.isArray(r.source))for(let a=0;a<r.source.length;a++){let s=p(r.source[a],r.path,a,i,o);if(void 0!==s?l+=JSON.stringify(s).length:l+=4,l+=n,n=1,l>t){f(t,"truncated",e);break}r.target[a]=s}else for(let a in r.source)if(Object.prototype.hasOwnProperty.call(r.source,a)){let s=p(r.source[a],r.path,a,i,o);if(void 0!==s&&(l+=JSON.stringify(s).length+n+a.length+3,n=1),l>t){f(t,"truncated",e);break}r.target[a]=s}}return r(),n(),a}function p(e,t,r,n,i){let o=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(e){}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&&n[1])return`[${n[1]}]`}catch(e){}return"[Unserializable]"}(o);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;if(i.has(e))return`[Reference seen at ${i.get(e)}]`;let l=void 0!==r?`${t}.${r}`:t,u=Array.isArray(o)?[]:{};return i.set(e,l),n.push({source:o,target:u,path:l}),u}function f(e,t,r){i.display.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,r)}function m(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function g(e){return"object"===m(e)}function v(e){var r,n;let i=[],o=w(e,"stack"),a=String(e);if(o&&o.startsWith(a)&&(o=o.slice(a.length)),o&&o.split("\n").forEach(e
1=>{let t=function(e){let t=h.exec(e);if(!t)return;let r=t[2]&&0===t[2].indexOf("native"),n=t[2]&&0===t[2].indexOf("eval"),i=E.exec(t[2]);return n&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:r?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:r?void 0:t[2]}}(e)||function(e){let t=S.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:t[2]}}(e)||function(e){let t=_.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:+t[3],url:t[2]}}(e)||function(e){let t=T.exec(e);if(!t)return;let r=t[3]&&t[3].indexOf(" > eval")>-1,n=C.exec(t[3]);return r&&n&&(t[3]=n[1],t[4]=n[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}(e);t&&(!t.func&&t.line&&(t.func="?"),i.push(t))}),i.length>0&&function(){if(void 0!==t)return t;let[e,r]=[class extends Error{constructor(){super(),this.name="Error"}},Error].map(e=>new e);return t=A(Object.getPrototypeOf(e))&&r.stack!==e.stack}()&&e instanceof Error){let t=[],o=e;for(;(o=Object.getPrototypeOf(o))&&A(o);){let e=(null==(r=o.constructor)?void 0:r.name)||"?";t.push(e)}for(let e=t.length-1;e>=0&&(null==(n=i[0])?void 0:n.func)===t[e];e--)i.shift()}return{message:w(e,"message"),name:w(e,"name"),stack:i}}e.s(["sanitize",0,d],370600),e.s(["getType",0,m,"isIndexableObject",0,g],980661);let y="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",b="(?::(\\d+))",h=RegExp(`^\\s*at (.*?) ?\\(${y}${b}?${b}?\\)?\\s*$`,"i"),E=RegExp(`\\((\\S*)${b}${b}\\)`),S=RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${y}${b}?${b}??\\s*$`,"i"),_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,T=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,C=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function w(e,t){return g(e)&&"string"==typeof e[t]?e[t]:void 0}let O=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function A(e){return String(e.constructor).startsWith("class ")}e.s(["computeStackTrace",0,v,"computeStackTraceFromOnErrorMessage",0,function(e,t,r,n){var i;let o,a;if(void 0===t)return;let{name:s,message:l}=(i=e,"[object String]"===({}).toString.call(i)&&([,o,a]=O.exec(i)),{name:o,message:a});return{name:s,message:l,stack:[{url:t,column:n,line:r}]}}],651694);var I=e.i(236060);function R(e){let t=k(e);return e.stack.forEach(e=>{let r="?"===e.func?"<anonymous>":e.func,n=e.args&&e.args.length>0?`(${e.args.join(", ")})`:"",i=e.line?`:${e.line}`:"",o=e.line&&e.column?`:${e.column}`:"";t+=`
2  at ${r}${n} @ ${e.url}${i}${o}`}),t}function k(e){return`${e.name||"Error"}: ${e.message}`}e.s(["createHandlingStack",0,function(e){let t,r=Error(e);return r.name="HandlingStack",(0,I.callMonitored)(()=>{let e=v(r);e.stack=e.stack.slice(2),t=R(e)}),t},"formatErrorMessage",0,k,"toStackTraceString",0,R],116920);let N="No stack, consider using an instance of Error";function x({originalError:e,stackTrace:t,source:r,useFallbackStack:n=!0,nonErrorPrefix:i}){var o,a,s,u;let c=M(e);return!t&&c&&(t=v(e)),{source:r,type:t?t.name:void 0,message:(o=t,a=c,s=i,u=e,(null==o?void 0:o.message)&&(null==o?void 0:o.name)?o.message:a?"Empty message":s?`${s} ${l(d(u))}`:l(d(u))),stack:t?R(t):n?N:void 0}}function M(e){return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}function D(e,t){return Object.keys(e).some(r=>e[r]===t)}e.s(["NO_ERROR_STACK_PRESENT_MESSAGE",0,N,"computeRawError",0,function({stackTrace:e,originalError:t,handlingStack:r,componentStack:n,startClocks:i,nonErrorPrefix:o,useFallbackStack:a=!0,source:s,handling:l}){var u;let c=x({originalError:t,stackTrace:e,source:s,useFallbackStack:a,nonErrorPrefix:o});return{startClocks:i,handling:l,handlingStack:r,componentStack:n,originalError:t,...c,causes:M(t)?function(e,t){let r=[],n=e.cause;for(;null!=n&&r.length<10;){let e=x({originalError:n,source:t,useFallbackStack:!1});r.push(e),n=M(n)?n.cause:void 0}return r.length?r:void 0}(t,s):void 0,fingerprint:M(u=t)&&"dd_fingerprint"in u?String(u.dd_fingerprint):void 0,context:function(e){if(g(e))return e.dd_context}(t)}},"isError",0,M],65185),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,D,"shallowClone",0,function(e){return{...e}},"tryJsonParse",0,function(e){try{return JSON.parse(e)}catch(e){}}],36613),(r=n||(n={})).TRACK_INTAKE_REQUESTS="track_intake_requests",r.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",r.FEATURE_OPERATION_VITAL="feature_operation_vital",r.START_STOP_ACTION="start_stop_action",r.START_STOP_RESOURCE="start_stop_resource",r.USE_CHANGE_RECORDS="use_change_records",r.USE_INCREMENTAL_CHANGE_RECORDS="use_incremental_change_records",r.TOO_MANY_REQUESTS_INVESTIGATION="too_many_requests_investigation",r.TRACK_RESOURCE_HEADERS="track_resource_headers";let L=new Set;function P(e,t){var r;let n=t?`${e}:${t}`:e;return(n.length>200||(r=n,function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(r)))&&i.display.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${i.MORE_DETAILS} ${i.DOCS_ORIGIN}/getting_started/tagging/#defining-tags`),n.replace(/,/g,"_")}e.s(["ExperimentalFeature",0,n,"getExperimentalFeatures",0,function(){return L},"initFeatureFlags",0,function(e){Array.isArray(e)&&e.filter(e=>
2D(n,e)).forEach(e=>{L.add(e)})},"isExperimentalFeatureEnabled",0,function(e){return L.has(e)}],518479),e.s(["buildTags",0,function(e){let{env:t,service:r,version:n,datacenter:i,sdkVersion:o,variant:a}=e,s=[P("sdk_version",null!=o?o:"6.33.0")];return t&&s.push(P("env",t)),r&&s.push(P("service",r)),n&&s.push(P("version",n)),i&&s.push(P("datacenter",i)),a&&s.push(P("variant",a)),s}],960764),e.s(["INTAKE_SITE_EU1",0,"datadoghq.eu","INTAKE_SITE_FED_STAGING",0,"dd0g-gov.com","INTAKE_SITE_STAGING",0,"datad0g.com","INTAKE_SITE_US1",0,"datadoghq.com","INTAKE_SITE_US1_FED",0,"ddog-gov.com","INTAKE_SITE_US2_FED",0,"us2.ddog-gov.com","INTAKE_URL_PARAMETERS",0,["ddsource","dd-api-key","dd-request-id"],"PCI_INTAKE_HOST_US1",0,"pci.browser-intake-datadoghq.com"],373958)},9331,e=>{"use strict";var t=e.i(236060),r=e.i(276207);function n(e){let n=r.globalObject.queueMicrotask;"function"==typeof n?n((0,t.monitor)(e)):Promise.resolve().then((0,t.monitor)(e))}class i{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()}}e.s(["BufferedObservable",0,class extends i{constructor(e){super(),this.maxBufferSize=e,this.buffer=[]}notify(e){this.buffer.push(e),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),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.maxBufferSize=this.buffer.length=0})}},"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())})}],9331)},739828,816321,e=>{"use strict";let t;function r(e,t){return+e.toFixed(t)}function n(e){return"number"==typeof e}e.s(["isNumber",0,n,"isPercentage",0,function(e){return n(e)&&e>=0&&e<=100},"performDraw",0,function(e){return 0!==e&&100*Math.random()<=e},"round",0,r],816321);function i(){return new Date().getTime()}function o(){return i()}function a(){return performance.now()}function s(e,t){return e+t}function l(e){return e-u()}function u(){var e,r;return void 0===t&&(t=null!=(r=null==(e=performance.timing)?void 0:e.navigationStart)?r:performance.timeOrigin),t}e.s(["ONE_HOUR",0,36e5,"ONE_MINUTE",0,6e4,"ONE_SECOND",0,1e3,"ONE_YEAR",0,31536e6,"addDuration",0,s,"clocksNow",0,function(){return{relative:a(),timeStamp:o()}},"clocksOrigin",0,function(){return{relative:0,timeStamp:u()}},"currentDrift",0,function(){return Math.round(i()-s(u(),performance.now()))},"dateNow",0,i,"elapsed",0,function(e,t){return t-e},"getRelativeTime",0,l,"looksLikeRelativeTime",0,function(e){return e<31536e6},"relativeNow",0,a,"relativeToClocks",0,function(e){var t,r;let n;return{relative:e,timeStamp:(t=e,(n=i()-performance.now())>u()?Math.round(s(n,t)):(r=t,Math.round(s(u(),r))))}},"timeStampNow",0,o,"timeStampToClocks",0,function(e){return{relative:l(e),timeStamp:e}},"toServerDuration",0,function(e){return n(e)?r(1e6*e,0):e}],739828)},209100,869210,466405,374685,e=>{"use strict";var t=e.i(276207);e.s(["sendToExtension",0,function(e,r){let n=t.globalObject.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:r})}],209100);var r=e.i(980661);function n(e,t,i=function(){if("u">typeof WeakSet){let e=new WeakSet;return{hasAlreadyBeenSeen(t){let r=e.has(t);return r||e.add(t),r}}}let e=[];return{hasAlreadyBeenSeen(t){let r=e.indexOf(t)>=0;return r||e.push(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){let e=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,e)}if(i.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){let r=Array.isArray(e)?e:[];for(let e=0;e<t.length;++e)r[e]=n(r[e],t[e],i);return r}let o="object"===(0,r.getType)(e)?e:{};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=n(o[e],t[e],i));return o}function i(){let e=(0,t.getGlobalObject)().DatadogEventBridge;if(e)return{getCapabilities(){var t;return JSON.parse((null==(t=e.getCapabilities)?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return null==(t=e.getPrivacyLevel)?void 0:t.call(e)},getAllowedWebViewHosts:()=>JSON.parse(e.getAllowedWebViewHosts()),send(t,r,n){e.send(JSON.stringify({eventType:t,event:r,view:n?{id:n}:void 0}))}}}
2e.s(["combine",0,function(...e){let t;for(let r of e)null!=r&&(t=n(t,r));return t},"deepClone",0,function(e){return n(void 0,e)}],869210),e.s(["getConnectivity",0,function(){var e;let r=t.globalObject.navigator;return{status:r.onLine?"connected":"not_connected",interfaces:r.connection&&r.connection.type?[r.connection.type]:void 0,effective_type:null==(e=r.connection)?void 0:e.effectiveType}}],466405),e.s(["bridgeSupports",0,function(e){let t=i();return!!t&&t.getCapabilities().includes(e)},"canUseEventBridge",0,function(e){var r;void 0===e&&(e=null==(r=(0,t.getGlobalObject)().location)?void 0:r.hostname);let n=i();return!!n&&n.getAllowedWebViewHosts().some(t=>e===t||e.endsWith(`.${t}`))},"getEventBridge",0,i],374685)},661,e=>{"use strict";var t=e.i(823359),r=e.i(276207);e.s(["fetch",0,function(e,n){return(0,t.getZoneJsOriginalValue)((0,r.getGlobalObject)(),"fetch")(e,n)}])},246980,877188,882225,e=>{"use strict";var t=e.i(661),r=e.i(236060),n=e.i(9331),i=e.i(776965),o=e.i(446098),a=e.i(739828);function s(e){return e>=500}e.s(["isServerError",0,s,"tryToClone",0,function(e){try{return e.clone()}catch(e){return}}],877188);let l={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};e.s(["ErrorSource",0,l],882225);let u=80*i.ONE_KIBI_BYTE,c=20*i.ONE_MEBI_BYTE,d=a.ONE_MINUTE,p=a.ONE_SECOND;function f(e,t,r,n,i,a){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?m(e,t,r,a,{onSuccess:()=>g(0,t,r,n,i,a),onFailure:()=>{t.queuedPayloads.enqueue(e)||a.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),function e(t,r,n,i,a){2===t.transportStatus&&(0,o.setTimeout)(()=>{m(t.queuedPayloads.first(),t,r,a,{onSuccess:()=>{t.queuedPayloads.dequeue(),t.currentBackoffTime=p,g(1,t,r,n,i,a)},onFailure:()=>{t.currentBackoffTime=Math.min(d,2*t.currentBackoffTime),e(t,r,n,i,a)}})},t.currentBackoffTime)}(t,r,n,i,a)}}):t.queuedPayloads.enqueue(e)||a.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,r,n,o,s){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:`Reached max ${n} events size queued for upload: ${c/i.ONE_MEBI_BYTE}MiB`,source:l.AGENT,startClocks:(0,a.clocksNow)()}),t.queueFullReported=!0);let u=t.queuedPayloads;for(t.queuedPayloads=v();u.size()>0;)f(u.dequeue(),t,r,n,o,s)}function v(){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>=c}}}let y=16*i.ONE_KIBI_BYTE,b=!1;function h(e,n,i){let o=e.build("fetch",n);(0,t.fetch)(o,{method:"POST",body:n.data,mode:"cors"}).then((0,r.monitor)(e=>null==i?void 0:i({status:e.status,type:e.type}))).catch((0,r.monitor)(()=>null==i?void 0:i({status:0})))}e.s(["RECOMMENDED_REQUEST_BYTES_LIMIT",0,y,"createHttpRequest",0,function(e,t,i=y){let o=new n.Observable,a={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:v(),queueFullReported:!1};return{observable:o,send:r=>{for(let n of e)f(r,a,(e,t)=>{h(n,e,t)},n.trackType,t,o)},sendOnExit:t=>{for(let n of e)!function(e,t,n){if(navigator.sendBeacon&&n.bytesCount<t)try{let t=e.build("beacon",n);if(navigator.sendBeacon(t,n.data))return}catch(e){var i;i=e,b||(b=!0,(0,r.monitorError)(i))}h(e,n)}(n,i,t)}}}],246980)},756203,411300,e=>{"use strict";
2var t=e.i(276207),r=e.i(9331),n=e.i(446098),i=e.i(739828),o=e.i(246980);let a=30*i.ONE_SECOND,s=t.isWorkerEnvironment?1:50;e.s(["createFlushController",0,function({pageMayExitObservable:e,sessionExpireObservable:t}){let i,l,u=new r.Observable,c=e.subscribe(e=>{i=e.reason;try{u.notify(e.reason)}finally{i=void 0}g(e.reason)}),d=t.subscribe(()=>g("session_expire")),p=new r.Observable(()=>()=>{c.unsubscribe(),d.unsubscribe()}),f=0,m=0;function g(e){if(0===m)return;let t=m,r=f;m=0,f=0,v(),p.notify({reason:e,messagesCount:t,bytesCount:r})}function v(){(0,n.clearTimeout)(l),l=void 0}return{flushObservable:p,preparePageExitFlushObservable:u,get messagesCount(){return m},notifyBeforeAddMessage(e){f+e>=o.RECOMMENDED_REQUEST_BYTES_LIMIT&&g(null!=i?i:"bytes_limit"),m+=1,f+=e,void 0===l&&(l=(0,n.setTimeout)(()=>{g("duration_limit")},a))},notifyAfterAddMessage(e=0){f+=e,m>=s?g(null!=i?i:"messages_limit"):f>=o.RECOMMENDED_REQUEST_BYTES_LIMIT&&g(null!=i?i:"bytes_limit")},notifyAfterRemoveMessage(e){f-=e,0==(m-=1)&&v()}}}],756203),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)}],411300)},741494,e=>{"use strict";var t=e.i(236060),r=e.i(823359);function n(e,i,o,a,{once:s,capture:l,passive:u}={}){let c=(0,t.monitor)(t=>{(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(s&&m(),a(t))}),d=u?{capture:l,passive:u}:l,p=window.EventTarget&&i instanceof EventTarget?window.EventTarget.prototype:i,f=(0,r.getZoneJsOriginalValue)(p,"addEventListener");function m(){let e=(0,r.getZoneJsOriginalValue)(p,"removeEventListener");o.forEach(t=>e.call(i,t,c,d))}return o.forEach(e=>f.call(i,e,c,d)),{stop:m}}e.s(["addEventListener",0,function(e,t,r,i,o){return n(e,t,[r],i,o)},"addEventListeners",0,n])},881742,789803,542538,773925,603609,e=>{"use strict";let t;var r=e.i(800433),n=e.i(65185),i=e.i(116920),o=e.i(518479),a=e.i(960764),s=e.i(373958),l=e.i(9331),u=e.i(739828),c=e.i(236060),d=e.i(209100),p=e.i(816321),f=e.i(85462),m=e.i(869210),g=e.i(651694),v=e.i(466405),y=e.i(374685),b=e.i(756203),h=e.i(246980),E=e.i(411300),S=e.i(276207),_=e.i(741494);let T={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function C(e){return new l.Observable(t=>{if(S.isWorkerEnvironment)return;let{stop:r}=(0,_.addEventListeners)(e,window,["visibilitychange","freeze"],e=>{"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:T.HIDDEN}):"freeze"===e.type&&t.notify({reason:T.FROZEN})},{capture:!0}),n=(0,_.addEventListener)(e,window,"beforeunload",()=>{t.notify({reason:T.UNLOADING})}).stop;return()=>{r(),n()}})}function w(e){return(0,E.objectValues)(T).includes(e)}e.s(["PageExitReason",0,T,"createPageMayExitObservable",0,C,"isPageExitReason",0,w],789803);var O=e.i(776965);let A=256*O.ONE_KIBI_BYTE;function I({encoder:e,request:t,flushController:n}){let i={},o=n.flushObservable.subscribe(r=>(function(r){let n=(0,E.objectValues)(i).join("\n");i={};let o=w(r.reason),a=o?t.sendOnExit:t.send;if(o&&e.isAsync){let t=e.finishSync();t.outputBytesCount&&a(R(t));let r=[t.pendingData,n].filter(Boolean).join("\n");r&&a({data:r,bytesCount:(0,O.computeBytesCount)(r)})}else n&&e.write(e.isEmpty?n:`
3${n}`),e.finish(e=>{a(R(e))})})(r));function a(t,o){let a,s,l=(0,f.jsonStringify)(t),u=e.estimateEncodedBytesCount(l);u>=A?r.display.warn(`Discarded a message whose size was bigger than the maximum allowed size ${A/O.ONE_KIBI_BYTE}KiB. ${r.MORE_DETAILS} ${r.DOCS_TROUBLESHOOTING}/#technical-limitations`):(void 0!==o&&void 0!==i[o]&&(a=i[o],delete i[o],s=e.estimateEncodedBytesCount(a),n.notifyAfterRemoveMessage(s)),n.notifyBeforeAddMessage(u),void 0!==o?(i[o]=l,n.notifyAfterAddMessage()):e.write(e.isEmpty?l:`
4${l}`,e=>{n.notifyAfterAddMessage(e-u)}))}return{flushController:n,add:a,upsert:a,stop:o.unsubscribe}}function R(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}function k(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(r,n){let i=(0,O.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(["createBatch",0,I],542538),e.s(["createIdentityEncoder",0,k],773925);let N="DISCARDED",x="SKIPPED";e.s(["DISCARDED",0,N,"SKIPPED",0,x,"abstractHooks",0,function(){let e={};return{register:(t,r)=>(e[t]||(e[t]=[]),e[t].push(r),{unregister:()=>{e[t]=e[t].filter(e=>e!==r)}}),triggerHook(t,r){let n=e[t]||[],i=[];for(let e of n){let t=e(r);if(t===N)return N;t!==x&&i.push(t)}return(0,m.combine)(...i)}}}],603609);var M=e.i(441756);let D="configuration",L="usage",P=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],U=[s.INTAKE_SITE_US1_FED,s.INTAKE_SITE_US2_FED];function $(){return t||(t=new l.BufferedObservable(100)),t}function V(e,t){$().notify({rawEvent:{type:"log",status:"error",...function(e){if((0,n.isError)(e)){var t;let r=(0,g.computeStackTrace)(e);return{error:{kind:r.name,stack:(0,i.toStackTraceString)(((t=r).stack=t.stack.filter(e=>!e.url||P.some(t=>e.url.startsWith(t))),t))},message:r.message}}return{error:{stack:n.NO_ERROR_STACK_PRESENT_MESSAGE},message:`Uncaught ${(0,f.jsonStringify)(e)}`}}(e),...t}})}e.s(["addTelemetryConfiguration",0,function(e){$().notify({rawEvent:{type:D,configuration:e}})},"addTelemetryDebug",0,function(e,t){(0,c.displayIfDebugEnabled)(r.ConsoleApiName.debug,e,t),$().notify({rawEvent:{type:"log",message:e,status:"debug",...t}})},"addTelemetryError",0,V,"addTelemetryMetrics",0,function(e,t){$().notify({rawEvent:{type:"log",message:e,status:"debug",...t},metricName:e})},"addTelemetryUsage",0,function(e){$().notify({rawEvent:{type:L,usage:e}})},"startTelemetry",0,function(e,t,r){let n=new l.Observable,{enabled:i,metricsEnabled:g}=function(e,t,r,n,i=1,s=15){var l;let g={},y=!U.includes(t.site)&&(0,p.performDraw)(t.telemetrySampleRate),b={log:y,[D]:y&&(0,p.performDraw)(t.telemetryConfigurationSampleRate),[L]:y&&(0,p.performDraw)(t.telemetryUsageSampleRate),metric:y&&(0,p.performDraw)(i)},h={is_local_file:(null==(l=S.globalObject.location)?void 0:l.protocol)==="file:",is_worker:S.isWorkerEnvironment},E=$();return E.subscribe(({rawEvent:i,metricName:l})=>{var c,p,y,E;let S;if(l&&!b.metric||!b[i.type])return;let _=l||i.status||i.type,T=g[_];if(T||(T=g[_]=new Set),T.size>=s)return;let C=(0,f.jsonStringify)(i);if(T.has(C))return;let w=r.triggerHook(1,{startTime:(0,u.clocksNow)().relative});if(w===N)return;let O=(c=w,p=e,y=i,E=h,S={type:"telemetry",date:(0,u.clocksNow)().timeStamp,service:p,version:"6.33.0",source:"browser",_dd:{format_version:2},telemetry:(0,m.combine)(y,{runtime_env:E,connectivity:(0,v.getConnectivity)(),sdk_setup:"npm"}),ddtags:(0,a.buildTags)(t).join(","),experimental_features:Array.from((0,o.getExperimentalFeatures)())},(0,m.combine)(S,c));n.notify(O),(0,d.sendToExtension)("telemetry",O),T.add(C)}),E.unbuffer(),(0,c.startMonitorErrorCollection)(V),{enabled:y,metricsEnabled:b.metric}}(e,t,r,n),{stop:E}=function(e,t){let r=[];if((0,y.canUseEventBridge)()){let e=(0,y.getEventBridge)(),n=t.subscribe(t=>e.send("internal_telemetry",t));r.push(n.unsubscribe)}else{let n=[e.rumEndpointBuilder];e.replica&&e.site===s.INTAKE_SITE_STAGING&&n.push(e.replica.rumEndpointBuilder);let i=I({encoder:k(),request:(0,h.createHttpRequest)(n,M.noop),flushController:(0,b.createFlushController)({pageMayExitObservable:C(e),sessionExpireOb
4servable:new l.Observable})});r.push(i.stop);let o=t.subscribe(i.add);r.push(o.unsubscribe)}return{stop:()=>r.forEach(e=>e())}}(t,n);return{stop:E,enabled:i,metricsEnabled:g}}],881742)},725319,943647,851901,e=>{"use strict";var t=e.i(800433);e.s(["displayAlreadyInitializedError",0,function(e,r){r.silentMultipleInit||t.display.error(`${e} is already initialized.`)}],725319);var r=e.i(9331);let n={GRANTED:"granted",NOT_GRANTED:"not-granted"};e.s(["TrackingConsent",0,n,"createTrackingConsentState",0,function(e){let t=new r.Observable;return{tryToInit(t){e||(e=t)},update(r){e=r,t.notify()},isGranted:()=>e===n.GRANTED,observable:t}}],943647);var i=e.i(881742),o=e.i(236060);e.s(["defineContextMethod",0,function(e,t,r,n){return(0,o.monitor)((...o)=>(n&&(0,i.addTelemetryUsage)({feature:n}),e()[t][r](...o)))}],851901)},608184,e=>{"use strict";e.s(["mockable",0,function(e){return e}])},178525,144752,65306,346200,885684,580109,812853,996220,290984,134562,885629,614285,866606,179257,447071,479259,773057,565081,908012,e=>{"use strict";let t,r,n,i,o,a,s,l,u,c,d,p,f,m,g;var v,y,b=e.i(500750),h=e.i(881742),E=e.i(869210),S=e.i(922348),_=e.i(236060),T=e.i(739828),C=e.i(116920),w=e.i(370600),O=e.i(773925),A=e.i(725319),I=e.i(943647),R=e.i(851901),k=e.i(9331),N=e.i(608184),x=e.i(446098),M=e.i(441756);function D(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:M.noop};else i=M.noop;let o=!1,a=function(){let e;if(o)return i.apply(this,arguments);let t=Array.from(arguments);(0,_.callMonitored)(r,null,[{target:this,parameters:t,onPostCall:t=>{e=t},handlingStack:n?(0,C.createHandlingStack)("instrumented method"):void 0}]);let a=i.apply(this,t);return e&&(0,_.callMonitored)(e,null,[a]),a};return e[t]=a,{stop:()=>{o=!0,e[t]===a&&(e[t]=i)}}}e.s(["instrumentMethod",0,D,"instrumentSetter",0,function(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t);if(!n||!n.set||!n.configurable)return{stop:M.noop};let i=M.noop,o=(e,t)=>{(0,x.setTimeout)(()=>{o!==i&&r(e,t)},0)},a=function(e){n.set.call(this,e),o(this,e)};return Object.defineProperty(e,t,{set:a}),{stop:()=>{var r;(null==(r=Object.getOwnPropertyDescriptor(e,t))?void 0:r.set)===a&&Object.defineProperty(e,t,n),o=i}}}],144752);var L=e.i(651694),P=e.i(276207),U=e.i(65185),$=e.i(882225);function V(){return new k.Observable(e=>{var t,r;let n=(t,r)=>{let n=(0,U.computeRawError)({stackTrace:r,originalError:t,startClocks:(0,T.clocksNow)(),nonErrorPrefix:"Uncaught",source:$.ErrorSource.SOURCE,handling:"unhandled"});e.notify(n)},{stop:i}=(t=n,D((0,P.getGlobalObject)(),"onerror",({parameters:[e,r,n,i,o]})=>{let a;(0,U.isError)(o)||(a=(0,L.computeStackTraceFromOnErrorMessage)(e,r,n,i)),t(null!=o?o:e,a)})),{stop:o}=(r=n,D((0,P.getGlobalObject)(),"onunhandledrejection",({parameters:[e]})=>{r(e.reason||"Empty reason")}));return()=>{i(),o()}})}var B=e.i(518479);function F(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,F)}let K=/(\S+?)\s*=\s*(.+?)(?:;|$)/g;function j(e,t){for(K.lastIndex=0;;){let r=K.exec(e);if(r){if(r[1]===t)return r[2]}else break}}function q(e,t,r=""){let n=e.charCodeAt(t-1),i=n>=55296&&n<=56319?t+1:t;return e.length<=i?e:`${e.slice(0,i)}${r}`}let G={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},H={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},z={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",BF_CACHE:"bf_cache"},W={CLICK:"click",CUSTOM:"custom",TAP:"tap",SCROLL:"scroll",SWIPE:"swipe",APPLICATION_START:"application_start",BACK:"back"},Y={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},J={DURATION:"duration",OPERATION_STEP:"operation_step"};function X({vitalsByName:e,vitalsByReference:t},r,n={}){let i={id:F(),name:r,startClocks:(0,T.clocksNow)(),...n},o={__dd_vital_reference:!0};return e.set(r,i),t.set(o,i),o}function Z(e,{vitalsByName:t,vitalsByReference:r},n,i={}){var o,a,s,l,u;let c="string"==typeof n?t.get(n):r.get(n);c&&(e((o=c,a=c.startClocks,s=i,l=(0,T.clocksNow)(),{id:o.id,name:o.name,type:J.DURATION,startClocks:a,duration:(0,T.elapsed)(a.timeStamp,l.timeStamp),context:(0,E.combine)(o.context,s.context),description:null!=(u=s.description)?u:o.description,handlingStack:o.handlingStack})),"string"==typeof n?t.delete(n):r.delete(n))}function Q(e){let{startClocks:t,type:r,name:n,description:i,context:o,handlingStack:a}=e,s=e.type===J.DURATION?e.id:void 0,l={id:null!=s?s:F(),type:r,name:n,description:i,...r===J.DURATION?{duration:(0,T.toServerDuration)(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:l,type:G.VITAL,context:o},startClocks:t,duration:r===J.DURATION?e.duration:void 0,domainContext:a?{handlingStack:a}:{}}}function ee(e,t,r){if(e)for(let n of e){let e=n[t];e&&e(r)}}function et(e,t){let r=e.indexOf(t);r>=0&&e.splice(r,1)}function er(e){return Array.isArray(e)&&e.length>0}e.s(["ActionType",0,W,"FrustrationType",0,Y,"RumEventType",0,G,"RumLongTaskEntryType",0,H,"ViewLoadingType",0,z,"VitalType",0,J],65306);var en=e.i(800433),ei=e.i(374685);function eo(e){return el(e,location.href).href}function ea(e){try{return!!el(e)}catch(e){return!1}}function es(e){let t=el(e).pathname;return"/"===t[0]?t:`/${t}`}function el(e,r){let{URL:n}=function(){var e;if(!t){let r,n;try{(r=document.createElement("iframe")).style.display="none",document.body.appendChild(r),n=null!=(e=r.contentWindow)?e:P.globalObject}catch(e){n=P.globalObject}t={URL:n.URL},null==r||r.remove()}return t}();try{return void 0!==r?new n(e,r):new n(e)}catch(e){throw Error(`Failed to construct URL: ${String(e)}`)}}function eu(e,t,r=0,n){let i=new Date;i.setTime(i.getTime()+r);let o=`expires=${i.toUTCString()}`,a=n&&n.crossSite?"none":"strict",s=n&&n.domain?`;domain=${n.domain}`:"",l=n&&n.secure?";secure":"",u=n&&n.partitioned?";partitioned":"";document.cookie=`${e}=${t};${o};path=/;samesite=${a}${s}${l}${u}`}function ec(e){return j(document.cookie,e)}function ed(e){return r||(r=function(e){let t=new Map;for(K.lastIndex=0;;){let r=K.exec(e);if(r)t.set(r[1],r[2]);else break}return t}(document.cookie)),r.get(e)}e.s(["buildUrl",0,el,"getPathName",0,es,"isValidUrl",0,ea,"normalizeUrl",0,eo],346200);function ep(e=location.hostname,t=document.referrer){if(void 0===n){let r=function(e,t){try{return e||el(t).hostname}catch(e){}}(e,t);if(r){let e=`dd_site_test_${F()}`,t=r.split("."),i=t.pop();for(;t.length&&!ec(e);)i=`${t.pop()}.${i}`,eu(e,"test",T.ONE_SECOND,{domain:i});eu(e,"",0,{domain:i}),n=i}}return n}var ef=e.i(36613);let em="datadog-synthetics-",eg=`${em}public-id`,ev=`${em}result-id`,ey=`${em}injects-rum`,eb=`${em}rum-context`;function eh(){return!P.isWorkerEnvironment&&!!(P.globalObject._DATADOG_SYNTHETICS_INJECTS_RUM||ed(ey))}function eE(){var e;let t=function(){let e=P.globalObject._DATADOG_SYNTHETICS_RUM_CONTEXT;if(e)return e;let t=ed(eb);return t?(0,ef.tryJsonParse)(decodeURIComponent(t)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||ed(eg),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||ed(ev)}}();return"object"==typeof(e=t)&&null!==e&&"string"==typeof e.test_id&&"string"==typeof e.result_id?t:void 0}var eS=e.i(776965);async function e_(e,t){let r=e.getReader(),n=[];for(;;){let e=await r.read();if(e.done)break;t.collectStreamBody&&n.push(e.value)}
4return r.cancel().catch(M.noop),t.collectStreamBody?(0,eS.concatBuffers)(n):void 0}var eT=e.i(877188);let eC=[];function ew({responseBodyAction:e}={}){return e&&eC.push(e),i||(i=new k.Observable(e=>{if(!P.globalObject.fetch)return;let{stop:t}=D(P.globalObject,"fetch",t=>(function({parameters:e,onPostCall:t,handlingStack:r},n){var i,o;let[a,s]=e,l=s&&s.method;void 0===l&&a instanceof Request&&(l=a.method);let u=void 0!==l?String(l).toUpperCase():"GET",c=a instanceof Request?a.url:eo(String(a)),d={state:"start",init:s,input:a,method:u,startClocks:(0,T.clocksNow)(),url:c,handlingStack:r,isAbortedOnStart:a instanceof Request&&(null==(i=a.signal)?void 0:i.aborted)||(null==(o=null==s?void 0:s.signal)?void 0:o.aborted)||!1};n.notify(d),e[0]=d.input,e[1]=d.init,t(e=>{eO(n,e,d).catch(_.monitorError)})})(t,e),{computeHandlingStack:!0});return t})),i}async function eO(e,t,r){var n,i;let o;r.state="resolve";try{o=await t}catch(t){r.status=0,r.isAborted=(null==(i=null==(n=r.init)?void 0:n.signal)?void 0:i.aborted)||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,r.error=t,e.notify(r);return}r.response=o,r.status=o.status,r.responseType=o.type,r.isAborted=!1;let a=eC.reduce((e,t)=>Math.max(e,t(r)),0);if(0!==a){let e=(0,eT.tryToClone)(o);if(e&&e.body)try{let t=await e_(e.body,{collectStreamBody:2===a});r.responseBody=t&&new TextDecoder().decode(t)}catch(e){}}e.notify(r)}var eA=e.i(741494);let eI=[];function eR(e,t,r,n){var i,o;let a=(i=r,o=n,`_dd_c_${i}_${o}`);eI.push((0,eA.addEventListener)(e,window,"storage",({key:e})=>{a===e&&t.setContext(l())})),t.changeObservable.subscribe(function(){localStorage.setItem(a,JSON.stringify(t.getContext()))});let s=(0,E.combine)(l(),t.getContext());function l(){let e=localStorage.getItem(a);return e?JSON.parse(e):{}}(0,ef.isEmptyObject)(s)||t.setContext(s)}var ek=e.i(603609),eN=e.i(980661);function ex(e,t,r){let n={...e};for(let[e,{required:i,type:o}]of Object.entries(t))"string"!==o||eM(n[e])||(n[e]=String(n[e])),i&&eM(n[e])&&en.display.warn(`The property ${e} of ${r} is required; context will not be sent to the intake.`);return n}function eM(e){return null==e||""===e}function eD(e="",{propertiesConfig:t={}}={}){let r={},n=new k.Observable,i={getContext:()=>(0,E.deepClone)(r),setContext:o=>{let a;((a="object"===(0,eN.getType)(o))||en.display.error("Unsupported context:",o),a)?r=(0,w.sanitize)(ex(o,t,e)):i.clearContext(),n.notify()},setContextProperty:(i,o)=>{r=(0,w.sanitize)(ex({...r,[i]:o},t,e)),n.notify()},removeContextProperty:i=>{delete r[i],ex(r,t,e),n.notify()},clearContext:()=>{r={},n.notify()},changeObservable:n};return i}function eL(){return eD("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function eP(){return eD("global context")}function eU(){return eD("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}let e$=ek.abstractHooks;function eV(e){let t=(0,eN.getType)(e);return"string"===t||"function"===t||e instanceof RegExp}function eB(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){en.display.error(e)}return!1})}var eF=e.i(26124),eK=e.i(816321);function ej(){return 0===eq()}function eq(){return null!=o?o:o=function(e=window){var t;let r=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(r)?0:(null==(t=e.navigator.vendor)?void 0:t.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?1:2}()}e.s(["isChromium",0,ej,"isSafari",0,function(){return 1===eq()}],885684);let eG="_dd_s";var eH=e.i(411300);let ez=4*T.ONE_HOUR,eW=15*T.ONE_MINUTE,eY=T.ONE_YEAR,eJ={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"};e.s(["SESSION_COOKIE_EXPIRATION_DELAY",0,eY,"SESSION_EXPIRATION_DELAY",0,eW,"SESSION_NOT_TRACKED",0,"0","SESSION_TIME_OUT_DELAY",0,ez,"SessionPersistence",0,eJ],580109);let eX=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function eZ(e,t){let r={isExpired:"1"};return t.trackAnonymousUser&&(null==e?void 0:e.anonymousId)&&(r.anonymousId=null==e?void 0:e.anonymousId),r}function eQ(e){return(0,ef.isEmptyObject)(e)}function e0(e){var t;return void 0!==e.isExpired||!((void 0===(t=e).created||(0,T.dateNow)()-Number(t.created)<ez)&&(void 0===t.expire||(0,T.dateNow)()<Number(t.expire)))}function e1(e){e.expire=String((0,T.dateNow)()+eW)}function e2(e){return(0,eH.objectEntries)(e).map(([e,t])=>"anonymousId"===e?`aid=${t}`:`${e}=${t}`).join("&")}function e6(e){let t={};return e&&(-1!==e.indexOf("&")||eX.test(e))&&e.split("&").forEach(e
4=>{let r=eX.exec(e);if(null!==r){let[,e,n]=r;"aid"===e?t.anonymousId=n:t[e]=n}}),t}function e3(e,t,r,n){let i=e2(r);t.betaEncodeCookieOptions&&(i=e2({...r,...!(0,ef.isEmptyObject)(r)?{c:e4(e)}:{}})),eu(eG,i,t.trackAnonymousUser?eY:n,e)}function e8(e,t){return t.betaEncodeCookieOptions?function(e){let t,r=(function(e){let t=new Map;for(K.lastIndex=0;;){let r=K.exec(e);if(r){let e=r[1],n=r[2];t.has(e)?t.get(e).push(n):t.set(e,[n])}else break}return t})(document.cookie).get(eG)||[],n=e4(e);for(let e of r.reverse())if((t=e6(e)).c===n)break;return null==t||delete t.c,null!=t?t:{}}(e):e6(ec(eG))}function e4(e){return((e.domain?e.domain.split(".").length-1:0)<<1|!!e.crossSite).toString(16)}function e5(e){localStorage.setItem(eG,e2(e))}function e9(){return e6(localStorage.getItem(eG))}let e7=T.ONE_SECOND,te=[];function tt(e,t,r=0){var n;let i,{isLockEnabled:o,persistSession:s,expireSession:l}=t,u=e=>s({...e,lock:i}),c=()=>{let{lock:e,...r}=t.retrieveSession();return{session:r,lock:e&&!function(e){let[,t]=e.split("--");return!t||(0,T.elapsed)(Number(t),(0,T.timeStampNow)())>e7}(e)?e:void 0}};if(a||(a=e),e!==a)return void te.push(e);if(o&&r>=100)return void tn(t);let d=c();if(o&&(d.lock||(i=F()+"--"+(0,T.timeStampNow)(),u(d.session),(d=c()).lock!==i)))return void tr(e,t,r);let p=e.process(d.session);if(o&&(d=c()).lock!==i)return void tr(e,t,r);if(p&&(e0(p)?l(p):(e1(p),o?u(p):s(p))),o&&!(p&&e0(p))){if((d=c()).lock!==i)return void tr(e,t,r);s(d.session),p=d.session}null==(n=e.after)||n.call(e,p||d.session),tn(t)}function tr(e,t,r){(0,x.setTimeout)(()=>{tt(e,t,r+1)},10)}function tn(e){a=void 0;let t=te.shift();t&&tt(t,e)}let ti="_DD_SESSION";function to(){let e=(0,P.getGlobalObject)();return e[ti]||(e[ti]={}),(0,ef.shallowClone)(e[ti])}function ta(e){(0,P.getGlobalObject)()[ti]=(0,ef.shallowClone)(e)}let ts=T.ONE_SECOND,tl=["chrome-extension://","moz-extension://"];function tu(e){return tl.some(t=>e.includes(t))}var tc=e.i(373958);function td(e,t,r){let n=function(e,t){let r=`/api/v2/${t}`,n=e.proxy;if("string"==typeof n){let e=eo(n);return t=>`${e}?ddforward=${encodeURIComponent(`${r}?${t}`)}`}if("function"==typeof n)return e=>n({path:r,parameters:e});let i=tp(t,e);return e=>`https://${i}${r}?${e}`}(e,t);return{build:(i,o)=>n(function({clientToken:e,internalAnalyticsSubdomain:t,source:r="browser"},n,i,{retry:o,encoding:a},s=[]){let l=[`ddsource=${r}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.33.0")}`,"dd-evp-origin=browser",`dd-request-id=${F()}`].concat(s);return a&&l.push(`dd-evp-encoding=${a}`),"rum"===n&&(l.push(`batch_time=${(0,T.timeStampNow)()}`,`_dd.api=${i}`),o&&l.push(`_dd.retry_count=${o.count}`,`_dd.retry_after=${o.lastFailureStatus}`)),t&&l.reverse(),l.join("&")}(e,t,i,o,r)),trackType:t}}function tp(e,t){let{site:r=tc.INTAKE_SITE_US1,internalAnalyticsSubdomain:n}=t;if("logs"===e&&t.usePciIntake&&r===tc.INTAKE_SITE_US1)return tc.PCI_INTAKE_HOST_US1;if(n&&r===tc.INTAKE_SITE_US1)return`${n}.${tc.INTAKE_SITE_US1}`;if(r===tc.INTAKE_SITE_FED_STAGING)return`http-intake.logs.${r}`;let i=r.split("."),o=i.pop();return`browser-intake-${i.join("-")}.${o}`}let tf={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},tm={ALL:"all",SAMPLED:"sampled"};function tg(e,t){return null==e||"string"==typeof e||(en.display.error(`${t} must be defined as a string`),!1)}function tv(e,t){return void 0===e||!!(0,eK.isPercentage)(e)||(en.display.error(`${t} Sample Rate should be a number between 0 and 100`),!1)}let ty=["tracecontext","datadog"],tb=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache"];function th(e){return eV(e)?{match:e,propagatorTypes:ty}:(0,eN.isIndexableObject)(e)&&eV(e.match)&&(null===e.propagatorTypes||void 0===e.propagatorTypes||Array.isArray(e.propagatorTypes))?{match:e.match,propagatorTypes:e.propagatorTypes||ty}:void 0}let tE=["request","response","any"];var tS=e.i(661);function t_(e,t){t.lastIndex=0;let r=t.exec(e);if(!r)return;let[n,i]=r;return i||n}let tT=/[a-zA-Z_$]/,tC=/[a-zA-Z0-9_$]/,tw=/[0-9]/,tO=/[a-fA-F0-9]/,tA={0:()=>
4!1,1:()=>!1,2:e=>tT.test(e),3:e=>tC.test(e),4:e=>"."===e,5:e=>"["===e,6:e=>"]"===e,7:e=>tw.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&&tO.test(e)},tI={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]},tR=[2,3,7,10],tk=[4,5,6],tN={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"},tx=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function tM(e,t){let r,n,i=(r={fetch:{}},{get:()=>r,increment:(e,t)=>{r[e]||(r[e]={}),r[e][t]||(r[e][t]=0),r[e][t]=r[e][t]+1}}),o=await tL(e);return o.ok?(i.increment("fetch","success"),n=function(e,t,r,n){let i={...e};return tx.forEach(e=>{e in t&&(i[e]=o(t[e]))}),Object.keys(r).forEach(e=>{var n;void 0!==t[e]&&(n=r[e],t[e].forEach(({key:e,value:t})=>{n.setContextProperty(e,o(t))}))}),i;function o(e){if(Array.isArray(e))return e.map(o);if((0,eN.isIndexableObject)(e)){if("rcSerializedType"in e){let r=e.rcSerializedType;switch(r){case"string":return e.value;case"regex":return tD(e.value);case"dynamic":var t=e;let i,o=t.strategy;switch(o){case"cookie":i=function({name:e}){let t=ec(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(t){en.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){en.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=function(e){let t,r=[],n=0,i={quote:void 0,escapeSequence:void 0},o="";for(let l of e){if(!(t=tI[n].find(e=>tA[e](l,i))))return[];if(void 0!==i.escapeSequence&&12!==t){var a,s;if(a=i.escapeSequence,!("\"'/\\bfnrt".includes(a)||a.startsWith("u")&&5===a.length))return[];o+=(s=i.escapeSequence).startsWith("u")?String.fromCharCode(parseInt(s.slice(1),16)):tN[s],i.escapeSequence=void 0}tR.includes(t)?o+=l:tk.includes(t)&&""!==o?(r.push(o),o=""):12===t?i.escapeSequence=i.escapeSequence?`${i.escapeSequence}${l}`:l:8===t?i.quote=l:9===t&&(i.quote=void 0),n=t}return tI[n].includes(1)?(""!==o&&r.push(o),r):[]}(e);if(0===r.length){en.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){en.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(e){n.increment("localStorage","failure");return}return n.increment("localStorage",null!==t?"success":"missing"),null!=t?t:void 0}(t);break;default:en.display.error(`Unsupported remote configuration: "strategy": "${o}"`);return}let a=t.extractor;return void 0!==a&&"string"==typeof i?function(e,t){let r=tD(e.value);if(void 0!==r)return t_(t,r)}(a,i):i;default:en.display.error(`Unsupported remote configuration: "rcSerializedType": "${r}"`);return}}return(0,ef.mapValues)(e,o)}return e}}(e,o.value,t,i)):(i.increment("fetch","failure"),en.display.error(o.error)),(0,h.addTelemetryMetrics)("remote configuration metrics",{metrics:i.get()}),n}function tD(e){try{return new RegExp(e)}catch(t){en.display.error(`Invalid regex in the remote configuration: '${e}'`)}}async function tL(e){let t;try{var r;t=await (0,tS.fetch)((r=e).remoteConfigurationProxy?r.remoteConfigurationProxy:`https://sdk-configuration.${tp("rum",r)}/v1/${encodeURIComponent(r.remoteConfigurationId)}.json`)}catch(e){t=void 0}if(!t||!t.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};let n=await t.json();return n.rum?{ok:!0,value:n.rum}:{ok:!1,error:Error("No remote configuration for RUM.")}}function tP(e,t,r){e.changeObservable.subscribe(()=>{let n=e.getContext();r.add(e=>e[t].setContext(n))})}var tU=e.i(209100),t$=e.i(789803);let tV="_dd_tab_id";var tB=e.i(823359);function tF(){let e=tK();return new k.Observable(t=>{if(!e)return;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 tK(){let e,t=window;if(t.Zone&&(e=(0,tB.getZoneJsOriginalValue)(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){let r=new t.MutationObserver(M.noop),n=(0,tB.getZoneJsOriginalValue)(r,"originalInstance");e=n&&n.constructor}return e||(e=t.MutationObserver),e}e.s(["createDOMMutationObservable",0,tF,"getMutationObserverConstructor",0,tK],812853);let tj=class{constructor(){this.callbacks={}}notify(e,t){let r=this.callbacks[e];
4r&&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)}}}},tq=1/0,tG=T.ONE_MINUTE,tH=new Set;function tz({expireDelay:e,maxEntries:t}){let r=[];l||(l=(0,x.setInterval)(()=>void tH.forEach(e=>e()),tG));let n=()=>{let t=(0,T.relativeNow)()-e;for(;r.length>0&&r[r.length-1].endTime<t;)r.pop()};return tH.add(n),{add:function(e,n){let i={value:e,startTime:n,endTime:tq,remove:()=>{et(r,i)},close:e=>{i.endTime=e}};return t&&r.length>=t&&r.pop(),r.unshift(i),i},find:function(e=tq,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&&t.endTime===tq&&t.close(e)},findAll:function(e=tq,t=0){let n=(0,T.addDuration)(e,t);return r.filter(t=>t.startTime<=n&&e<=t.endTime).map(e=>e.value)},getEntries:function(e){return r.filter(t=>t.startTime===e)},reset:function(){r=[]},stop:function(){tH.delete(n),0===tH.size&&l&&((0,x.clearInterval)(l),l=void 0)}}}e.s(["createValueHistory",0,tz],996220);let tW="fetch",tY="other",tJ=new WeakMap;function tX({target:e,parameters:[t,r]}){tJ.set(e,{state:"open",method:String(t).toUpperCase(),url:eo(String(r))})}function tZ({target:e}){let t=tJ.get(e);t&&(t.isAborted=!0)}let tQ="initial_document",t0=[["document",e=>tQ===e],["xhr",e=>"xmlhttprequest"===e],[tW,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 t1(e){let t=e.name;if(!ea(t))return tY;let r=es(t);for(let[t,n]of t0)if(n(e.initiatorType,r))return t;return tY}function t2(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function t6(e){return"xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType}function t3(e){let{duration:t,startTime:r,responseEnd:n}=e;return 0===t&&r<n?(0,T.elapsed)(r,n):t}function t8(e){if(!t5(e))return;let{startTime:t,fetchStart:r,workerStart:n,redirectStart:i,redirectEnd:o,domainLookupStart:a,domainLookupEnd:s,connectStart:l,secureConnectionStart:u,connectEnd:c,requestStart:d,responseStart:p,responseEnd:f}=e,m={download:t9(t,p,f),first_byte:t9(t,d,p)};return 0<n&&n<r&&(m.worker=t9(t,n,r)),r<c&&(m.connect=t9(t,l,c),l<=u&&u<=c&&(m.ssl=t9(t,u,c))),r<s&&(m.dns=t9(t,a,s)),t<o&&(m.redirect=t9(t,i,o)),m}function t4(e){return e.duration>=0}function t5(e){var t;let r=t2(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=!((t=e).redirectEnd>t.startTime)||t2(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart);return r&&n}function t9(e,t,r){if(e<=t&&t<=r)return{duration:(0,T.toServerDuration)((0,T.elapsed)(t,r)),start:(0,T.toServerDuration)((0,T.elapsed)(e,t))}}function t7(e){return""===e.nextHopProtocol?void 0:e.nextHopProtocol}function re(e){return""===e.deliveryType?"other":e.deliveryType}function rt(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 rr(e){return e&&(!tc.INTAKE_URL_PARAMETERS.every(t=>e.includes(t))||(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.TRACK_INTAKE_REQUESTS))}let rn=/data:(.+)?(;base64)?,/g;function ri(e,t=24e3){if(e.length<=t||!e.startsWith("data:"))return e;let r=e.substring(0,100).match(rn);return r?`${r[0]}[...]`:e}e.s(["FAKE_INITIAL_DOCUMENT",0,tQ,"computeResourceEntryDeliveryType",0,re,"computeResourceEntryDetails",0,t8,"computeResourceEntryDuration",0,t3,"computeResourceEntryProtocol",0,t7,"computeResourceEntrySize",0,rt,"computeResourceEntryType",0,t1,"hasValidResourceEntryDuration",0,t4,"hasValidResourceEntryTimings",0,t5,"isAllowedRequestUrl",0,rr,"isResourceEntryRequestType",0,t6,"sanitizeIfLongDataUrl",0,ri],290984);let ro=new Map;function ra(e,t){var r,n;let i,o,a;if(100===t)return!0;
4if(0===t)return!1;let s=ro.get(t);return s&&e===s.sessionId?s.decision:(i=window.BigInt?(r=BigInt(`0x${e.split("-")[4]}`),n=t,o=BigInt("1111111111111111111"),Number(r*o%(a=BigInt("0x10000000000000000")))<=n/100*Number(a)):(0,eK.performDraw)(t),ro.set(t,{sessionId:e,decision:i}),i)}e.s(["isSampled",0,ra],134562);function rs(e){let t=crypto.getRandomValues(new Uint32Array(2));return 63===e&&(t[t.length-1]>>>=1),{toString(e=10){let r=t[1],n=t[0],i="";do{let t=r%e*0x100000000+n;r=Math.floor(r/e),n=Math.floor(t/e),i=(t%e).toString(e)+i}while(r||n)return i}}}function rl(e){return e.toString(16).padStart(16,"0")}function ru(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function rc(e,t,r,n,i,o){let a=r.findTrackedSession();if(!a)return;let s=e.allowedTracingUrls.find(e=>eB([e.match],t.url,!0));if(!s)return;let l=ra(a.id,e.traceSampleRate);(l||e.traceContextInjection===tm.ALL)&&(t.traceSampled=l,t.traceId=rs(64),t.spanId=rs(63),o(function(e,t,r,n,i,o,a,s){let l={};if(i.forEach(n=>{switch(n){case"datadog":Object.assign(l,{"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(l,{traceparent:`00-0000000000000000${rl(e)}-${rl(t)}-0${r?"1":"0"}`,tracestate:`dd=s:${r?"1":"0"};o:rum`});break;case"b3":Object.assign(l,{b3:`${rl(e)}-${rl(t)}-${r?"1":"0"}`});break;case"b3multi":Object.assign(l,{"X-B3-TraceId":rl(e),"X-B3-SpanId":rl(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&&(l.baggage=i)}return l}(t.traceId,t.spanId,t.traceSampled,a.id,s.propagatorTypes,n,i,e)))}let rd=32*eS.ONE_KIBI_BYTE;function rp(e,t){return t.allowedGraphQlUrls.find(t=>eB([t.match],e))}let rf=1;function rm(){let e=rf;return rf+=1,e}function rg(e){return(0,eK.isNumber)(e)&&e<0?void 0:e}function rv(e){return e.nodeType===Node.TEXT_NODE}function ry(e){return e.nodeType===Node.COMMENT_NODE}function rb(e){return e.nodeType===Node.ELEMENT_NODE}function rh(e){return rb(e)&&!!e.shadowRoot}function rE(e){return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&rb(e.host)}function rS(e){return rE(e)?e.host:e.parentNode}function r_(e){if(e.parentElement)return e.parentElement;let t=e.parentNode;return t&&rE(t)?t.host:null}function rT(e,t){return new k.Observable(r=>{var n;let i,o;if(!window.PerformanceObserver)return;let a=e=>{let t=e.filter(e=>{var t;return!((t=e).entryType===y.RESOURCE&&(!rr(t.name)||!t4(t)))});t.length>0&&r.notify(t)},s=!0,l=new PerformanceObserver((0,_.monitor)(e=>{s?i=(0,x.setTimeout)(()=>a(e.getEntries())):a(e.getEntries())}));try{l.observe(t)}catch(e){if([y.RESOURCE,y.NAVIGATION,y.LONG_TASK,y.PAINT].includes(t.type)){t.buffered&&(i=(0,x.setTimeout)(()=>a(performance.getEntriesByType(t.type))));try{l.observe({entryTypes:[t.type]})}catch(e){return}}}return s=!1,n=e,!c&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(c=(0,eA.addEventListener)(n,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),rC(y.FIRST_INPUT)||t.type!==y.FIRST_INPUT||({stop:o}=function(e,t){let r=(0,T.dateNow)(),n=!1,{stop:i}=(0,eA.addEventListeners)(e,window,["click","mousedown","keydown","touchstart","pointerdown"],t=>{var r,n;if(!t.cancelable)return;let i={entryType:"first-input",processingStart:(0,T.relativeNow)(),processingEnd:(0,T.relativeNow)(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,interactionId:0,toJSON:()=>({})};"pointerdown"===t.type?(r=e,n=i,(0,eA.addEventListeners)(r,window,["pointerup","pointercancel"],e=>{"pointerup"===e.type&&o(n)},{once:!0})):o(i)},{passive:!0,capture:!0});return{stop:i};function o(e){if(!n){n=!0,i();let o=e.processingStart-e.startTime;o>=0&&o<(0,T.dateNow)()-r&&t(e)}}}(e,e=>{a([e])})),()=>{l.disconnect(),o&&o(),(0,x.clearTimeout)(i)}})}function rC(e){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(e)}e.s(["forEachChildNodes",0,function(e,t){let r=e.firstChild;for(;r;)t(r),r=r.nextSibling;rh(e)&&t(e.shadowRoot)},"getParentElement",0,r_,"getParentNode",0,rS,"hasChildNodes",0,function(e){return e.childNodes.length>0||rh(e)},"isCommentNode",0,ry,"isElementNode",0,rb,"isNodeShadowHost",0,rh,"isNodeShadowRoot",0,rE,"isTextNode",0,rv],885629),(v=y||(y={})).EVENT="event",v.FIRST_INPUT="first-input",v.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",v.LAYOUT_SHIFT="layout-shift",v.LONG_TASK="longtask",v.LONG_ANIMATION_FRAME="long-animation-frame",v.NAVIGATION="navigation",v.PAINT="paint",v.RESOURCE="resource",v.VISIBILITY_STATE="visibility-state",e.s(["RumPerformanceEntryType",0,y,"createPerformanceObservable",0,rT,"supp
4ortPerformanceTimingEvent",0,rC],614285);let rw="data-dd-excluded-activity-mutations";function rO(e,t,r,n,i,o){let a,s=(0,N.mockable)(rA)(e,t,r,n),l=!1,u=(0,x.setTimeout)((0,_.monitor)(()=>f({hadActivity:!1})),100),c=void 0!==o?(0,x.setTimeout)((0,_.monitor)(()=>f({hadActivity:!0,end:(0,T.timeStampNow)()})),o):void 0,d=s.subscribe(({isBusy:e})=>{(0,x.clearTimeout)(u),(0,x.clearTimeout)(a);let t=(0,T.timeStampNow)();e||(a=(0,x.setTimeout)((0,_.monitor)(()=>f({hadActivity:!0,end:t})),100))}),p=()=>{l=!0,(0,x.clearTimeout)(u),(0,x.clearTimeout)(a),(0,x.clearTimeout)(c),d.unsubscribe()};function f(e){l||(p(),i(e))}return{stop:p}}function rA(e,t,r,n){return new k.Observable(i=>{let o,a=[],s=0;return a.push(t.subscribe(e=>{e.every(rR)||l()}),r.subscribe(l),rT(n,{type:y.RESOURCE}).subscribe(e=>{e.some(e=>!rI(n,e.name))&&l()}),e.subscribe(7,e=>{rI(n,e.url)||(void 0===o&&(o=e.requestIndex),s+=1,l())}),e.subscribe(8,e=>{rI(n,e.url)||void 0===o||e.requestIndex<o||(s-=1,l())})),()=>{a.forEach(e=>e.unsubscribe())};function l(){i.notify({isBusy:s>0})}})}function rI(e,t){return eB(e.excludedActivityUrls,t)}function rR(e){let t="characterData"===e.type?e.target.parentElement:e.target;return!!(t&&rb(t)&&t.matches(`[${rw}], [${rw}] *`))}let rk="data-dd-action-name",rN="Masked Element",rx=[rk,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],rM=[rV,rU],rD=[rV,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(!rP(n))return`${CSS.escape(e.tagName)}.${CSS.escape(n)}`}},r$];function rL(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}),rE(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=rK(i,t,rM,rj,r,n);if(e)return rG(e,n);n=rG(rK(i,t,rD,rq,r,n)||function(e){let t=rF(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 rP(e){return/[0-9]/.test(e)}function rU(e){if(e.id&&!rP(e.id))return`#${CSS.escape(e.id)}`}function r$(e){return CSS.escape(e.tagName)}function rV(e,t){if(t){let e=r(t);if(e)return e}for(let e of rx){let t=r(e);if(t)return t}function r(t){if(e.hasAttribute(t))return`${CSS.escape(e.tagName)}${rB(t,e.getAttribute(t))}`}}function rB(e,t){return`[${e}="${CSS.escape(t)}"]`}function rF(e){let t=e.parentNode.firstElementChild,r=1;for(;t&&t!==e;)t.tagName===e.tagName&&(r+=1),t=t.nextElementSibling;return r}function rK(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 rj(e,t,r,n){return 1===t.querySelectorAll(rG(r,n)).length}function rq(e,t,r,n){let i;if(void 0===n)i=e=>e.matches(r);else{let e=rG(`${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 rG(e,t){return t?`${e}>${t}`:e}let rH={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:tf.ALLOW,MASK:tf.MASK,MASK_USER_INPUT:tf.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:tf.MASK_UNLESS_ALLOWLISTED},rz="data-dd-privacy",rW={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function rY(e){return`[${rz}="${e}"], .dd-privacy-${e}`}function rJ(e,t,r){if(r&&r.has(e))return r.get(e);let n=rS(e),i=n?rJ(n,t,r):t,o=rX(rZ(e),i);return r&&r.set(e,o),o}function rX(e,t){switch(t){case rH.HIDDEN:case rH.IGNORE:return t}switch(e){case rH.ALLOW:case rH.MASK:case rH.MASK_USER_INPUT:case rH.MASK_UNLESS_ALLOWLISTED:case rH.HIDDEN:case rH.IGNORE:return e;default:return t}}function rZ(e){if(rb(e)){if("BASE"===e.tagName)return rH.ALLOW;if("INPUT"===e.tagName){if("password"===e.type||"email"===e.type||"tel"===e.type||"hidden"===e.type)return rH.MASK;let t=e.getAttribute("autocomplete");if(t&&(t.startsWith("cc-")||t.endsWith("-password")))return rH.MASK}if(e.matches(rY(rH.HIDDEN)))return rH.HIDDEN;if(e.matches(rY(rH.MASK)))return rH.MASK;if(e.matches(rY(rH.MASK_UNLESS_ALLOWLISTED)))return rH.MASK_UNLESS_ALLOWLISTED;if(e.matches(rY(rH.MASK_USER_INPUT)))return rH.MASK_USER_INPUT;if(e.matches(rY(rH.ALLOW)))return rH.ALLOW;if(function(e){if("SCRIPT"===e.nodeName)return!0;
4if("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}(e))return rH.IGNORE}}function rQ(e,t){switch(t){case rH.MASK:case rH.HIDDEN:case rH.IGNORE:return!0;case rH.MASK_UNLESS_ALLOWLISTED:if(rv(e))return!!r1(e.parentNode)||!r6(e.textContent||"");return r1(e);case rH.MASK_USER_INPUT:return rv(e)?r1(e.parentNode):r1(e);default:return!1}}function r0(e,t,r,n,i){if(n!==rH.MASK&&n!==rH.MASK_UNLESS_ALLOWLISTED||t===rz||rx.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 r1(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!!rW[e.tagName]}function r2(e){return e.replace(/\S/g,"x")}function r6(e){var t;return!(e&&e.trim())||(null==(t=window.$DD_ALLOW)?void 0:t.has(e.toLocaleLowerCase()))||!1}function r3(e,t){return r6(e)?e:t||r2(e)}function r8({lifeCycle:e,isChildEvent:t,onChange:r=M.noop}){let n={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=e.subscribe(13,e=>{var i;if("view"!==e.type&&"vital"!==e.type&&t(e))switch(e.type){case G.ERROR:n.errorCount+=1,r();break;case G.ACTION:n.actionCount+=1,e.action.frustration&&(n.frustrationCount+=e.action.frustration.type.length),r();break;case G.LONG_TASK:n.longTaskCount+=1,r();break;case G.RESOURCE:(null==(i=e._dd)?void 0:i.discarded)||(n.resourceCount+=1,r())}});return{stop:()=>{i.unsubscribe()},eventCounts:n}}e.s(["CENSORED_IMG_MARK",0,"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==","CENSORED_STRING_MARK",0,"***","FORM_PRIVATE_TAG_NAMES",0,rW,"NodePrivacyLevel",0,rH,"PRIVACY_ATTR_NAME",0,rz,"PRIVACY_ATTR_VALUE_HIDDEN",0,"hidden","TEXT_MASKING_CHAR",0,"x","getPrivacySelector",0,rY],866606),e.s(["getNodePrivacyLevel",0,rJ,"getNodeSelfPrivacyLevel",0,rZ,"getTextContent",0,function(e,t){var r;let n=null==(r=e.parentElement)?void 0:r.tagName,i=e.textContent||"";if("HEAD"!==n||i.trim()){if("SCRIPT"===n)i="***";else if(t===rH.HIDDEN)i="***";else if(rQ(e,t))if("DATALIST"===n||"SELECT"===n||"OPTGROUP"===n){if(!i.trim())return}else i="OPTION"===n?"***":r2(i);return i}},"maskDisallowedTextContent",0,r3,"reducePrivacyLevel",0,rX,"shouldMaskAttribute",0,r0,"shouldMaskNode",0,rQ],179257);let r4=5*T.ONE_MINUTE;function r5(e){let t=tz({expireDelay:r4}),r=new Map;function n(e){var t;r.delete(e.key),null==(t=e.eventCounts)||t.stop()}function i(){r.forEach(e=>{n(e)}),t.reset()}let o=e.subscribe(10,i);return{start:function(i,o,a,s){let l=F(),u=t.add(l,o.relative),c=r.get(i);c&&n(c);let d=(null==s?void 0:s.isChildEvent)?r8({lifeCycle:e,isChildEvent:s.isChildEvent(l)}):void 0,p={id:l,key:i,startClocks:o,data:a,historyEntry:u,eventCounts:d};return r.set(i,p),p},stop:function(e,t,i){var o;let a=r.get(e);if(!a)return;let s=i?(0,E.combine)(a.data,i):a.data;a.historyEntry.close(t.relative);let l=(0,T.elapsed)(a.startClocks.timeStamp,t.timeStamp),u=null==(o=a.eventCounts)?void 0:o.eventCounts;return n(a),{...s,id:a.id,startClocks:a.startClocks,duration:l,counts:u}},discard:function(e){var t;let i=r.get(e);if(!i)return;let o=null==(t=i.eventCounts)?void 0:t.eventCounts;return n(i),i.historyEntry.remove(),{...i.data,id:i.id,startClocks:i.startClocks,counts:o}},getCounts:function(e){var t,n;return null==(n=null==(t=r.get(e))?void 0:t.eventCounts)?void 0:n.eventCounts},findId:function(e){return t.findAll(e)},stopAll:function(){o.unsubscribe(),i(),t.stop()}}}let r9=["HTML","BODY"],r7=2*eS.ONE_KIBI_BYTE,ne=rx.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]),nt=T.ONE_SECOND;function nr(e,t){let r=function(e,t){let r=e;for(;r;){if(r.matches(t))return r;r=r_(r)}return null}(e,`[${t}]`);
4if(r)return ns(na(r.getAttribute(t).trim()))}let nn=[(e,t,r)=>{if("labels"in e&&e.labels&&e.labels.length>0)return nu(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 nu(e,t,r)},(e,t,r)=>nl(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=>nc(e,t,r)).join(" "),nameSource:"text_content"}},(e,t,r)=>nl(e,"alt",t,r),(e,t,r)=>nl(e,"name",t,r),(e,t,r)=>nl(e,"title",t,r),(e,t,r)=>nl(e,"placeholder",t,r),(e,t,r)=>{if("options"in e&&e.options.length>0)return nu(e.options[0],t,r)}],ni=[(e,t,r)=>nu(e,t,r)];function no(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&&e.trim();if(n)return{name:ns(na(n)),nameSource:r}}}if("FORM"===i.nodeName)break;i=r_(i),o+=1}}function na(e){return e.replace(/\s+/g," ")}function ns(e){return e.length>100?`${q(e,100)} [...]`:e}function nl(e,t,r,n){let{enablePrivacyForActionName:i,defaultPrivacyLevel:o}=r,a=e.getAttribute(t);if(a&&i){let i=rJ(e,o,n);r0(e.tagName,t,a,i,r)&&(a=r3(a,rN))}else a||(a="");return{name:a,nameSource:"standard_attribute"}}function nu(e,t,r){return{name:nc(e,t,r)||"",nameSource:"text_content"}}function nc(e,t,r){if(e.isContentEditable)return;let{enablePrivacyForActionName:n,actionNameAttribute:i,defaultPrivacyLevel:o}=t;if((0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.USE_TREE_WALKER_FOR_ACTION_NAME)){var a=e,s=i,l=n,u=o,c=r;let t=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(e){let t=rJ(e,u,c);if(l&&t&&rQ(e,t))return NodeFilter.FILTER_REJECT;if(rb(e)){if(e.hasAttribute(rk)||s&&e.hasAttribute(s))return NodeFilter.FILTER_REJECT;let t=getComputedStyle(e);if("visible"!==t.visibility||"none"===t.display||t.contentVisibility&&"visible"!==t.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}),d="";for(;t.nextNode();){let e=t.currentNode;if(rb(e)){("BR"===e.nodeName||"P"===e.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(e).display))&&(d+=" ");continue}d+=e.textContent||""}return d.replace(/\s+/g," ").trim()}if("innerText"in e){let t=e.innerText,r=r=>{let n=e.querySelectorAll(r);for(let e=0;e<n.length;e+=1){let r=n[e];if("innerText"in r){let e=r.innerText;e&&e.trim().length>0&&(t=t.replace(e,""))}}};return r(`[${rk}]`),i&&r(`[${i}]`),n&&r(`${rY(rH.HIDDEN)}, ${rY(rH.MASK)}`),t}return e.textContent}function nd(){let e=window.getSelection();return!e||e.isCollapsed}function np(e){return e.target instanceof Element&&!1!==e.isPrimary}function nf(e){if(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||!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 nm=10*T.ONE_SECOND,ng=new Map;function nv(e,t){ng.set(e,t),ng.forEach((e,t)=>{(0,T.elapsed)(t,(0,T.relativeNow)())>nm&&ng.delete(t)})}function ny(e){return t=>void 0!==t.action&&void 0!==t.action.id&&t.action.id.includes(e)}function nb(e){if(e.composed&&rh(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 nh(e){var t,r,n,i;let o="events"in e,a=rg((0,T.toServerDuration)(e.duration));return{rawRumEvent:{type:G.ACTION,date:e.startClocks.timeStamp,action:{id:e.id,target:{name:e.name},type:e.type,...void 0!==a&&{loading_time:a},...e.counts&&{error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},frustration:{type:e.frustrationTypes}},...o?{_dd:{action:{target:{selector:(null==(t=e.target)?void 0:t.selector)||void 0,width:(null==(r=e.target)?void 0:r.width)||void 0,height:(null==(n=e.target)?void 0:n.height)||void 0,composed_path_selector:null==(i=e.target)?void 0:i.composedPathSelector},position:e.position,name_source:e.nameSource}}}:{context:e.context}},duration:e.duration,startClocks:e.startClocks,domainContext:o?{events:e.events}:{handlingStack:e.handlingStack}}}var nE=e.i(85462);let nS={},n_="csp_violation";function nT(e){return{startClocks:(0,T.clocksNow)(),source:$.ErrorSource.REPORT,handling:"unhandled",...e}}function nC(e,t,r,n,i){return r?(0,C.toStackTraceString)({name:e,message:t,stack:[{func:"?",url:r,line:null!=n?n:void 0,column:null!=i?i:void 0}]}):void 0}function nw(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,T.dateNow)(),i=(0,x.setTimeout)(()=>{r({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,T.dateNow)()-n))})},0),()=>(0,x.clearTimeout)(i)}e.s(["requestIdleCallback",0,nw],447071);let nO=T.ONE_SECOND;function nA(){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(){nw(t,{timeout:nO})}return{push(t){1===e.push(t)&&r()},stop(){e.length=0}}}let nI=new WeakSet;function nR(e){return(0,T.addDuration)(e.startTime,e.duration)}function nk(e,t,r){return document.readyState===t||"complete"===document.readyState?(r(),{stop:M.noop}):(0,eA.addEventListener)(e,window,"complete"===t?"load":"DOMContentLoaded",r,{once:!0})}e.s(["asyncRunOnReadyState",0,function(e,t){return new Promise(r=>{nk(e,t,r)})},"runOnReadyState",0,nk],479259);let nN=2*T.ONE_MINUTE;function nx(e,t){let r=t&&Number(t);if(e&&r)return{traceId:e,traceTime:r}}function nM(e){if(e&&ry(e)){let t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function nD(){if(rC(y.NAVIGATION)){let e=performance.getEntriesByType(y.NAVIGATION)[0];if(e)return e}let e=function(){let e={},t=performance.timing;for(let r in t)if((0,eK.isNumber)(t[r])){let n=t[r];e[r]=0===n?0:(0,T.getRelativeTime)(n)}return e}(),t={entryType:y.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 nL(e){return e.responseStart>=0&&e.responseStart<=(0,T.relativeNow)()?e.responseStart:void 0}function nP(e,t){nk(e,"interactive",()=>{let e=(0,N.mockable)(nD)(),r=Object.assign(e.toJSON(),{entryType:y.RESOURCE,initiatorType:tQ,duration:e.responseEnd,traceId:function(e){var t;let r,n,i=(r=(t=e).querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]"),nx(r&&r.content,n&&n.content)||function(e){let t=function(e){for(let t=0;t<e.childNodes.length;t+=1){let r=nM(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=nM(r);if(n)return n;if(!rv(r))break}}(e);if(t)return nx(j(t,"trace-id"),j(t,"trace-time"))}(e));if(!(!i||i.traceTime<=(0,T.dateNow)()-nN))return i.traceId}(document),toJSON:()=>({...r,toJSON:void 0})});t(r)})}function nU(e,t,r,n){let i=t6(e)&&n?n.getMatchingRequest(e):void 0;return n$(e,i,r,t)}function n$(e,t,r,n){var i,o,a,s;if(!e&&!t)return;let l=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,n):function(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:rs(63).toString(),rule_psr:t.rulePsr}}}
4(e,n);if(!n.trackResources&&!l)return;let u=e?(0,T.relativeToClocks)(e.startTime):t.startClocks,c=e?t3(e):(i=r,o=u,a=t.duration,i.wasInPageStateDuringPeriod("frozen",o.relative,a)?void 0:a),d=(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.TRACK_RESOURCE_HEADERS)?function(e,t){let r=t.trackResourceHeaders;if(0===r.length||!e)return;let n=r.filter(t=>void 0===t.url||eB([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===tW&&e.response)return nB(e.response.headers,t);if("xhr"===e.type&&e.xhr){let r=e.xhr.getAllResponseHeaders();if(r)try{return nB(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){}}}(e,i):void 0,s=o.length>0?function(e,t){var r;let n;if(e.type===tW)return(null==(r=e.init)?void 0:r.headers)?n=new Headers(e.init.headers):e.input instanceof Request&&(n=e.input.headers),n?nB(n,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,n):void 0,p=t&&function(e,t){let r=rp(e.url,t);if(r){let t=function(e,t=!1){let r,n,i,o;if("POST"===e.method?r=function(e){if(!e||"string"!=typeof e)return;let t=(0,ef.tryJsonParse)(e);if(t)return{query:t.query,operationName:t.operationName,variables:t.variables?JSON.stringify(t.variables):void 0}}(e.requestBody):"GET"===e.method&&(o=(i=(n=el(e.url).searchParams).get("variables"))&&void 0!==(0,ef.tryJsonParse)(i)?i:void 0,r={query:n.get("query")||void 0,operationName:n.get("operationName")||void 0,variables:o}),r)return function(e,t){let r,n,i;if(e.query){var o;let i=e.query.trim();r=null==(o=i.match(/^\s*(query|mutation|subscription)\b/i))?void 0:o[1],t&&(n=q(i,rd,"..."))}return e.variables&&(i=e.variables),{operationType:r,operationName:e.operationName,variables:i,payload:n}}(r,t)}(e,r.trackPayload);if(t){if(r.trackResponseErrors&&e.responseBody){let r=function(e){let t=(0,ef.tryJsonParse)(e);if(t&&"object"==typeof t){if(er(t.errors))return t.errors.map(e=>{var t;return{message:e.message,path:e.path,locations:e.locations,code:null==(t=e.extensions)?void 0:t.code}})}}(e.responseBody);r&&(t.error_count=r.length,t.errors=r)}return t}return}}(t,n),f=e&&function(e){let t=e.contentType;if(t)return{resource:{response:{headers:{"content-type":t}}}}}(e),m=(0,E.combine)({date:u.timeStamp,resource:{id:F(),duration:(0,T.toServerDuration)(c),type:t?"xhr"===t.type?"xhr":tW:t1(e),method:t?t.method:void 0,status_code:t?t.status:0===(s=e.responseStatus)?void 0:s,url:t?ri(t.url):e.name,protocol:e&&t7(e),delivery_type:e&&re(e),graphql:p},type:G.RESOURCE,_dd:{discarded:!n.trackResources}},l,e&&function(e){let{renderBlockingStatus:t}=e;return{resource:{render_blocking_status:t,...rt(e),...t8(e)}}}(e),f,d);return{startClocks:u,duration:c,rawRumEvent:m,domainContext:function(e,t){if(t){let r={performanceEntry:e,isAborted:t.isAborted,handlingStack:t.handlingStack};return"xhr"===t.type?{xhr:t.xhr,...r}:{requestInput:t.input,requestInit:t.init,response:t.response,error:t.error,...r}}return{performanceEntry:e}}(e,t)}}let nV=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/;function nB(e,t){let r={},n=0,i=0,o=!1;return e.forEach((e,a)=>{if(i++,n>=100){o||(en.display.warn("Maximum number of headers (100) has been reached. Further headers are dropped."),o=!0);return}let s=a.toLowerCase();if(nV.test(s))return;let l=t.find(e=>eB([e.name],s));if(!l)return;let{extractor:u}=l,c=u?t_(e,u):e;void 0!==c&&(c.length>128&&(en.display.warn(`Header "${s}" value was truncated from ${c.length} to 128 characters.`),(0,h.addTelemetryDebug)("Resource header value was truncated",{header_name:s,original_length:c.length,limit:128})),r[s]=q(c,128),n++)}),o&&(0,h.addTelemetryDebug)("Maximum number of resource headers reached",{collectedHeaderCount:n,totalHeaderCount:i}),n>0?r:void 0}var nF=T;let nK=10*T.ONE_MINUTE,nj=10*T.ONE_MINUTE;function nq(e,t,r=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:M.noop};if(rC(y.VISIBILITY_STATE)){let e=performance.getEntriesByType(y.VISIBILITY_STATE).filter(e=>"hidden"===e.name).find(e=>e.startTime>=t.relative);if(e)return{timeStamp:e.startTime,stop:M.noop}}let n=1/0,{stop:i}=(0,eA.addEventListeners)(e,r,["pagehide","visibilitychange"],e=>{("pagehide"===e.type||"hidden"===document.visibilityState)&&(n=e.timeStamp,i())},{capture:!0});return{get timeStamp(){return n},stop:i}}let nG=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 nH({x:e,y:t,width:r,height:n}){return{x:e,y:t,width:r,height:n}}let nz=5*T.ONE_SECOND,nW=T.ONE_SECOND,nY=0,nJ=1/0,nX=0,nZ=()=>d?nY:window.performance.interactionCount||0,nQ=+T.ONE_MINUTE;function n0(e){return Math.min(e,nQ)}
4function n1(){let e=window.visualViewport;return Math.round(e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function n2(e){var t;return p||(t=e,p=new k.Observable(e=>{let{throttled:r}=(0,M.throttle)(()=>{e.notify(n6())},200);return(0,eA.addEventListener)(t,window,"resize",r,{capture:!0,passive:!0}).stop})),p}function n6(){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)}}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,n1],773057),e.s(["getViewportDimension",0,n6,"initViewportObservable",0,n2],565081);let n3=T.ONE_SECOND,n8=5*nF.ONE_MINUTE,n4=5*nF.ONE_MINUTE;function n5(e){let t=e.indexOf("?");return t<0?e:e.slice(0,t)}let n9=T.ONE_MINUTE,n7=[];async function ie(e){let t,r,n=e.sessionStoreStrategyType;n&&(n.type===eJ.COOKIE?(t=e8(n.cookieOptions,e),r={cookie:await it(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):t=e9(),(0,h.addTelemetryDebug)("Unexpected session state",{sessionStoreStrategyType:n.type,session:t,isSyntheticsTest:!!eE(),createdTimestamp:null==t?void 0:t.created,expireTimestamp:null==t?void 0:t.expire,...r}))}async function it(){let e;return{count:(e="cookieStore"in window?await window.cookieStore.getAll(eG):document.cookie.split(/\s*;\s*/).filter(e=>e.startsWith(eG))).length,domain:ep()||"undefined",...e}}var ir=e.i(542538),ii=e.i(756203),io=e.i(246980);function ia(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}let is=10*T.ONE_SECOND;function il(){0!==f.batchCount&&((0,h.addTelemetryMetrics)("Customer data measures",f),id())}function iu(){return{min:1/0,max:0,sum:0}}function ic(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function id(){f={batchCount:0,batchBytesCount:iu(),batchMessagesCount:iu()}}function ip(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}let im=T.ONE_SECOND;function ig(e,t){let r=j(document.cookie,e),n=(0,x.setInterval)(()=>{let n=j(document.cookie,e);n!==r&&(r=n,t(n))},im);return()=>{(0,x.clearInterval)(n)}}let iv="datadog-ci-visibility-test-execution-id";function iy(e,t,r=3e3){let n=0,i=!1;return{isLimitReached(){if(0===n&&(0,x.setTimeout)(()=>{n=0},T.ONE_MINUTE),(n+=1)<=r||i)return i=!1,!1;if(n===r+1){i=!0;try{t({message:`Reached max number of ${e}s by minute: ${r}`,source:$.ErrorSource.AGENT,startClocks:(0,T.clocksNow)()})}finally{i=!1}}return!0}}}var ib=e.i(960764);function ih(e){return"object"===(0,eN.getType)(e)}let iE={"view.name":"string","view.url":"string","view.referrer":"string"},iS={context:"object"},i_={service:"string",version:"string"};var iT=e.i(466405);let iC=[G.ACTION,G.ERROR,G.LONG_TASK,G.RESOURCE,G.VITAL];function iw(e,t,r,n,i,o,a,l,c,p,v){var b,S;let O,A,I=[],R=new tj;R.subscribe(13,e=>(0,tU.sendToExtension)("rum",e));let P=e=>{R.notify(14,{error:e}),(0,h.addTelemetryDebug)("Error reported to customer",{"error.message":e.message})},V=(0,t$.createPageMayExitObservable)(e),K=(0,ei.canUseEventBridge)()?(O={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:+!!(0,ei.bridgeSupports)("records")},{findTrackedSession:()=>O,expire:M.noop,expireObservable:new k.Observable,setForcedReplay:M.noop}):((A=function(e,t,r){let n=new k.Observable,i=new k.Observable,o=function(e,t,r,n=function(e,t){return e.type===eJ.COOKIE?function(e,t){let r={isLockEnabled:ej(),persistSession:r=>e3(t,e,r,eW),retrieveSession:()=>e8(t,e),expireSession:r=>e3(t,e,eZ(r,e),ez)};if(!ed(eG)){let e=ed("_dd"),t=ed("_dd_r"),n=ed("_dd_l"),i={};e&&(i.id=e),n&&/^[01]$/.test(n)&&(i.logs=n),t&&/^[012]$/.test(t)&&(i.rum=t),eQ(i)||(e1(i),r.persistSession(i))}return r}(t,e.cookieOptions):e.type===eJ.LOCAL_STORAGE?{isLockEnabled:!1,persistSession:e5,retrieveSession:e9,expireSession:e=>(function(e,t){e5(eZ(e,t))})(e,t)}:{expireSession:e=>(function(e,t){ta(eZ(e,t))})(e,t),isLockEnabled:!1,persistSession:ta,retrieveSession:to}}(e,t)){let i,o=new k.Observable,a=new k.Observable,s=new k.Observable,l=(0,x.setInterval)(function(){let e=n.retrieveSession();e0(e)?tt({process:e=>e0(e)?eZ(e,t):void 0,after:d},n):d(e)},ts);p();let{throttled:u,cancel:c}=(0,M.throttle)(()=>{tt({process:e=>{if(eQ(e))return;let n=d(e);return function(e){if(eQ(e))return;let n=r(e.rum);e.rum=n,delete e.isExpired,"0"===n||e.id||(e.id=F(),e.created=String((0,T.dateNow)())),t.trackA
4nonymousUser&&!e.anonymousId&&(e.anonymousId=F())}(n),n},after:e=>{eQ(e)||f()||(i=e,o.notify()),i=e}},n)},ts);function d(e){var r;return e0(e)&&(e=eZ(e,t)),f()&&((r=e,i.id!==r.id||i.rum!==r.rum)?(i=eZ(i,t),a.notify()):(s.notify({previousState:i,newState:e}),i=e)),e}function p(){tt({process:e=>{if(eQ(e))return e.anonymousId=F(),eZ(e,t)},after:e=>{i=e}},n)}function f(){return(null==i?void 0:i.rum)!==void 0}return{expandOrRenewSession:u,expandSession:function(){tt({process:e=>f()?d(e):void 0},n)},getSession:()=>i,renewObservable:o,expireObservable:a,sessionStateUpdateObservable:s,restartSession:p,expire:e=>{c(),!1===e&&i&&delete i.anonymousId,n.expireSession(i),d(eZ(i,t))},stop:()=>{(0,x.clearInterval)(l)},updateSessionState:function(e){tt({process:t=>({...t,...e}),after:d},n)}}}(e.sessionStoreStrategyType,e,t);n7.push(()=>o.stop());let a=tz({expireDelay:ez});function s(){let t=o.getSession();return t?{id:t.id,trackingType:t.rum,isReplayForced:!!t.forcedReplay,anonymousId:t.anonymousId}:(ie(e).catch(()=>void 0),{id:"invalid",trackingType:"0",isReplayForced:!1,anonymousId:void 0})}return n7.push(()=>a.stop()),o.renewObservable.subscribe(()=>{a.add(s(),(0,T.relativeNow)()),n.notify()}),o.expireObservable.subscribe(()=>{i.notify(),a.closeActive((0,T.relativeNow)())}),o.expandOrRenewSession(),a.add(s(),(0,T.clocksOrigin)().relative),r.observable.subscribe(()=>{r.isGranted()?o.expandOrRenewSession():o.expire(!1)}),function(e,t){let{stop:r}=(0,eA.addEventListeners)(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0});n7.push(r)}(e,()=>{r.isGranted()&&o.expandOrRenewSession()}),function(e,t){let r=()=>{"visible"===document.visibilityState&&t()},{stop:n}=(0,eA.addEventListener)(e,document,"visibilitychange",r);n7.push(n);let i=(0,x.setInterval)(r,n9);n7.push(()=>{(0,x.clearInterval)(i)})}(e,()=>o.expandSession()),function(e,t){let{stop:r}=(0,eA.addEventListener)(e,window,"resume",t,{capture:!0});n7.push(r)}(e,()=>o.restartSession()),{findSession:(e,t)=>a.find(e,t),renewObservable:n,expireObservable:i,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}(e,t=>{var r,n,i;return r=e,"0"===(i=n=t)||"1"===i||"2"===i?n:(0,eK.performDraw)(r.sessionSampleRate)?(0,eK.performDraw)(r.sessionReplaySampleRate)?"1":"2":"0"},o)).expireObservable.subscribe(()=>{R.notify(9)}),A.renewObservable.subscribe(()=>{R.notify(10)}),A.sessionStateUpdateObservable.subscribe(({previousState:e,newState:t})=>{if(!e.forcedReplay&&t.forcedReplay){let e=A.findSession();e&&(e.isReplayForced=!0)}}),{findTrackedSession:e=>{let t=A.findSession(e);if(t&&"0"!==t.trackingType)return{id:t.id,sessionReplay:"1"===t.trackingType?1:2*!!t.isReplayForced,anonymousId:t.anonymousId}},expire:A.expire,expireObservable:A.expireObservable,setForcedReplay:()=>A.updateSessionState({forcedReplay:"1"})});if((0,ei.canUseEventBridge)()){let e;e=(0,ei.getEventBridge)(),R.subscribe(13,t=>{e.send("rum",t)});let t=V.subscribe(e=>{R.notify(11,e)});I.push(()=>t.unsubscribe())}else{let t,r,n=(b=K.expireObservable,t=[e.rumEndpointBuilder],e.replica&&t.push(e.replica.rumEndpointBuilder),r=(0,ir.createBatch)({encoder:i(2),request:(0,io.createHttpRequest)(t,P),flushController:(0,ii.createFlushController)({pageMayExitObservable:V,sessionExpireObservable:b})}),R.subscribe(13,e=>{e.type===G.VIEW?r.upsert(e,e.view.id):r.add(e)}),r),o=n.flushController.preparePageExitFlushObservable.subscribe(e=>{R.notify(11,{reason:e})});I.push(()=>o.unsubscribe()),I.push(()=>n.stop()),S=n.flushController.flushObservable,c.metricsEnabled&&(id(),m=!1,R.subscribe(13,()=>{m=!0}),S.subscribe(({bytesCount:e,messagesCount:t})=>{m&&(m=!1,f.batchCount+=1,ic(f.batchBytesCount,e),ic(f.batchMessagesCount,t))}),(0,x.setInterval)(il,is))}p.register(1,()=>o.isGranted()?ek.SKIPPED:ek.DISCARDED);let{stop:j}=function(e,t){if(!t.metricsEnabled)return{stop:M.noop};let{unsubscribe:r}=e.subscribe(4,({initialViewMetrics:e})=>{var t,n;e.largestContentfulPaint&&e.navigationTimings&&((0,h.addTelemetryMetrics)("Initial view metrics",{metrics:(t=e.largestContentfulPaint,n=e.navigationTimings,{lcp:{value:t.value},navigation:{domComplete:n.domComplete,domContentLoaded:n.domContentLoaded,domInteractive:n.domInteractive,firstByte:n.firstByte,loadEvent:n.loadEvent}})}),r())});return{stop:r}}(R,c);I.push(j);let{stop:ee,...et}=function(e,t,r,n,i,o,a,l,c,p){var f,m,v,b,S,O,A,I,R,P,V;let K,j,ee,et,er,eo,ea,es,eu,ec,ep,em,eg,ev,ey,eb,eS,e_=[],eT=tF(),eC=(j=(0,ef.shallowClone)(location),new k.Observable(e=>{var t,n;let{stop:i}=function(e,t){let{stop:r}=D(ia("pushState"),"pushState",({onPostCall:e})=>{e(t)}),{stop:n}=D(ia("replaceState"),"replaceState",({onPostCall:e})=>{e(t)}),{stop:i}=(0,eA.addEventListener)(e,window,"popstate",t);return{stop:()=>{r(),n(),i()}}}(r,a),{stop:o}=(t=r,n=a,(0,eA.addEventListener)(t,window,"hashchange",n));function a(){if(j.href===location.href)return;let t=(0,ef.shallowClone)(location);e.notify({newLocation:t,oldLocation:j}),j=t}return()=>{i(),o()}})),{observable:eO,stop:eI}=function(){let e=new k.Observable,{stop:t}=D(window,"open",()=>e.notify());return{observable:e,stop:t}}();e_.push(eI),t.register(0,({eventType:e})=>{let t=r.source;return{type:e,_dd:{format_version:2,drift:(0,T.currentDrift)(),configuration:{session_sample_rate:(0,eK.roun
4d)(r.sessionSampleRate,3),session_replay_sample_rate:(0,eK.round)(r.sessionReplaySampleRate,3),profiling_sample_rate:(0,eK.round)(r.profilingSampleRate,3),trace_sample_rate:(0,eK.round)(r.traceSampleRate,3),beta_encode_cookie_options:r.betaEncodeCookieOptions},browser_sdk_version:(0,ei.canUseEventBridge)()?"6.33.0":void 0,sdk_name:c},application:{id:r.applicationId},date:(0,T.timeStampNow)(),source:t}}),t.register(1,()=>({application:{id:r.applicationId}}));let ex=function(e,t,r=500){let n,i=tz({expireDelay:ez,maxEntries:4e3});rC(y.VISIBILITY_STATE)&&performance.getEntriesByType(y.VISIBILITY_STATE).forEach(e=>{a("hidden"===e.name?"hidden":"active",e.startTime)}),a(ip(),(0,T.relativeNow)());let{stop:o}=(0,eA.addEventListeners)(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],e=>{var t;a("freeze"===(t=e).type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":ip(),e.timeStamp)},{capture:!0});function a(e,t=(0,T.relativeNow)()){e!==n&&(n=e,i.closeActive(t),i.add({state:n,startTime:t},t))}function s(e,t,r){return i.findAll(t,r).some(t=>t.state===e)}return e.register(0,({startTime:e,duration:t=0,eventType:n})=>n===G.VIEW?{type:n,_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,T.toServerDuration)((0,T.elapsed)(t,r))}))}(i.findAll(e,t),e,r)}}:n===G.ACTION||n===G.ERROR?{type:n,view:{in_foreground:s("active",e,0)}}:ek.SKIPPED),{wasInPageStateDuringPeriod:s,addPageState:a,stop:()=>{o(),i.stop()}}}(t,r);e_.push(()=>ex.stop());let eM=(ee=tz({expireDelay:ez}),e.subscribe(1,e=>{var t;ee.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})=>{ee.closeActive(e.relative)}),e.subscribe(3,e=>{let t=ee.find(e.startClocks.relative);t&&(e.name&&(t.name=e.name),e.context&&(t.context=e.context),t.sessionIsActive=e.sessionIsActive)}),e.subscribe(10,()=>{ee.reset()}),{findView:e=>ee.find(e),stop:()=>{ee.stop()}});e_.push(()=>eM.stop());let e$=function(e,t,r){let n,i=tz({expireDelay:ez});e.subscribe(1,({startClocks:e,url:t})=>{let r=(0,N.mockable)(location).href,o=void 0!==t?el(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,T.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(0,({startTime:e,eventType:t})=>{let r=i.find(e);return r?{type:t,view:{url:r.url,referrer:r.referrer}}:ek.DISCARDED}),{findUrl:e=>i.find(e),stop:()=>{o.unsubscribe(),i.stop()}}}(e,t,eC);e_.push(()=>e$.stop());let eV=(et=tz({expireDelay:ez}),e.subscribe(1,({startClocks:e})=>{et.add({},e.relative)}),e.subscribe(6,({endClocks:e})=>{et.closeActive(e.relative)}),t.register(0,({startTime:e,eventType:t})=>{if(!r.trackFeatureFlagsForEvents.concat([G.VIEW,G.ERROR]).includes(t))return ek.SKIPPED;let n=et.find(e);return!n||(0,ef.isEmptyObject)(n)?ek.SKIPPED:{type:t,feature_flags:n}}),{addFeatureFlagEvaluation:(e,t)=>{let r=et.find();r&&(r[e]=t)}});t.register(0,({eventType:e,startTime:t})=>{let r,o,a,s=n.findTrackedSession(t),l=eM.findView(t);return s&&l?(e===G.VIEW?(r=!!i.getReplayStats(l.id)||void 0,o=1===s.sessionReplay,a=!!l.sessionIsActive&&void 0):r=!!i.isRecording()||void 0,{type:e,session:{id:s.id,type:"user",has_replay:r,sampled_for_replay:o,is_active:a}}):ek.DISCARDED}),t.register(1,({startTime:e})=>{let t=n.findTrackedSession(e);return t?{session:{id:t.id}}:ek.SKIPPED}),t.register(0,({eventType:e})=>({type:e,connectivity:(0,iT.getConnectivity)()})),s||(s=null!=(f=function(){try{let e=sessionStorage.getItem(tV);if(e)return e;let t=F();return sessionStorage.setItem(tV,t),t}catch(e){return}}())?f:F()),er=s,t.register(0,()=>({tab:{id:er}}));let eB=(eo=eP(),r.storeContextsAcrossPages&&eR(r,eo,"rum",2),t.register(0,()=>{let e=eo.getContext();return{context:e}}),eo),eF=(ea=eU(),r.storeContextsAcrossPages&&eR(r,ea,"rum",1),t.register(0,({eventType:e,startTime:t})=>{let i=ea.getContext(),o=n.findTrackedSession(t);
4return(o&&o.anonymousId&&!i.anonymous_id&&r.trackAnonymousUser&&(i.anonymous_id=o.anonymousId),(0,ef.isEmptyObject)(i))?ek.SKIPPED:{type:e,usr:i}}),t.register(1,({startTime:e})=>{var t;return{anonymous_id:null==(t=n.findTrackedSession(e))?void 0:t.anonymousId}}),ea),ej=(es=eL(),r.storeContextsAcrossPages&&eR(r,es,"rum",4),t.register(0,()=>{let e=es.getContext();return(0,ef.isEmptyObject)(e)||!e.id?ek.SKIPPED:{account:e}}),es),eq=function(e,t,r,n,i){var o;let a,s,{unsubscribe:l}=e.subscribe(0,t=>{e.notify(12,nh(t))}),u=M.noop;i.trackUserInteractions&&(a=function(e,t,r,n){let i,o=r5(e),a=new k.Observable;e.subscribe(5,u),e.subscribe(11,u);let{stop:s}=function(e,{onPointerDown:t,onPointerUp:r}){let n,i,o={selection:!1,input:!1,scroll:!1},a=[(0,eA.addEventListener)(e,window,"pointerdown",e=>{np(e)&&(n=nd(),o={selection:!1,input:!1,scroll:!1},i=t(e))},{capture:!0}),(0,eA.addEventListener)(e,window,"selectionchange",()=>{n&&nd()||(o.selection=!0)},{capture:!0}),(0,eA.addEventListener)(e,window,"scroll",()=>{o.scroll=!0},{capture:!0,passive:!0}),(0,eA.addEventListener)(e,window,"pointerup",e=>{if(np(e)&&i){let t=o;r(i,e,()=>t),i=void 0}},{capture:!0}),(0,eA.addEventListener)(e,window,"input",()=>{o.input=!0},{capture:!0})];return{stop:()=>{a.forEach(e=>e.stop())}}}(n,{onPointerDown:i=>(function(e,t,r,n,i){let o,a=e.betaTrackActionsInShadowDom?nb(n):n.target;if((o=e.enablePrivacyForActionName?rJ(a,e.defaultPrivacyLevel):rH.ALLOW)===rH.HIDDEN)return;let s=function(e,t,r){let n=r.betaTrackActionsInShadowDom?nb(e):e.target,i=n.getBoundingClientRect(),o=rL(n,r.actionNameAttribute),a=function(e,t){let r=e.filter(e=>e instanceof Element&&!r9.includes(e.tagName));if(0===r.length)return"";let n=t?[t].concat(ne):ne,i="";for(let e of r)if((i+=function(e,t){let r=r$(e),n=rU(e),i=Array.from(e.classList).filter(e=>!rP(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(rB(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=rF(e);return`:nth-child(${n+1})${r.length>1?`:nth-of-type(${i})`:""}`}(e);return`${r}${n||""}${o}${i}${a};`}(e,n)).length>=r7)return q(i,r7);return i}(e.composedPath(),r.actionNameAttribute);o&&nv(e.timeStamp,o);let{name:s,nameSource:l}=function(e,t,r=rH.ALLOW){let n=new Map,{actionNameAttribute:i}=t,o=nr(e,rk)||i&&nr(e,i);return o?{name:o,nameSource:"custom_attribute"}:r===rH.MASK?{name:rN,nameSource:"mask_placeholder"}:no(e,nn,t,n)||no(e,ni,t,n)||{name:"",nameSource:"blank"}}(n,r,t);return{type:W.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:l}}(n,o,e),l=!1;return rO(t,r,i,e,e=>{l=e.hadActivity},100),{clickActionBase:s,hadActivityOnPointerDown:()=>l}})(n,e,t,i,r),onPointerUp:({clickActionBase:i,hadActivityOnPointerDown:s},u,c)=>{!function(e,t,r,n,i,o,a,s,l,u,c){var d;let p=function e(t,r,n,i,o){let a,s=F(),l=(0,T.relativeToClocks)(o.timeStamp),u=r.start(s,l,i,{isChildEvent:ny});t.notify(15,u);let c=0,d=[],p=new k.Observable;function f(e){0===c&&(c=1,a=e?r.stop(s,(0,T.timeStampToClocks)(e)):r.discard(s),p.notify())}return{event:o,stop:f,stopObservable:p,get hasError(){var m;let e=null!=(m=null==a?void 0:a.counts)?m:r.getCounts(s);return!!e&&e.errorCount>0},get hasPageActivity(){return a&&"duration"in a},getUserActivity:n,addFrustration:e=>{d.push(e)},get startClocks(){return l},isStopped:()=>1===c||2===c,clone:()=>e(t,r,n,i,o),validate:e=>{if(f(),1!==c||!a)return;let r={frustrationTypes:d,events:null!=e?e:[o],event:o,...a,counts:a.counts};t.notify(0,r),c=2},discard:()=>{f(),c=2}}}(t,i,u,s,l);a(p);let f=null==(d=null==s?void 0:s.target)?void 0:d.selector;f&&nv(l.timeStamp,f);let{stop:m}=rO(t,r,n,e,e=>{e.hadActivity&&e.end<p.startClocks.timeStamp?p.discard():e.hadActivity?p.stop(e.end):c()?p.stop(p.startClocks.timeStamp):p.stop()},nm),g=t.subscribe(5,({endClocks:e})=>{p.stop(e.timeStamp)}),v=t.subscribe(11,()=>
4{p.stop((0,T.timeStampNow)())}),y=o.subscribe(()=>{p.stop()});p.stopObservable.subscribe(()=>{v.unsubscribe(),g.unsubscribe(),m(),y.unsubscribe()})}(n,e,t,r,o,a,l,i,u,c,s)}});return{stop:()=>{u(),a.notify(),s(),o.stopAll()},findActionId:o.findId};function l(e){if(!i||!i.tryAppend(e)){let t=e.clone();i=function(e,t){let r,n=[],i=0;function o(e){e.stopObservable.subscribe(a),n.push(e),(0,x.clearTimeout)(r),r=(0,x.setTimeout)(s,nt)}function a(){1===i&&n.every(e=>e.isStopped())&&(i=2,t(n))}function s(){(0,x.clearTimeout)(r),0===i&&(i=1,a())}return o(e),{tryAppend:e=>{var t,r,a,l;return 0===i&&(!(n.length>0)||(t=n[n.length-1].event,r=e.event,t.target===r.target&&100>=(a=t,l=r,Math.sqrt(Math.pow(a.clientX-l.clientX,2)+Math.pow(a.clientY-l.clientY,2)))&&t.timeStamp-r.timeStamp<=nt)?(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=>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<=T.ONE_SECOND)return!0;return!1}(e))return t.addFrustration(Y.RAGE_CLICK),e.some(nf)&&t.addFrustration(Y.DEAD_CLICK),t.hasError&&t.addFrustration(Y.ERROR_CLICK),{isRage:!0};let r=e.some(e=>e.getUserActivity().selection);return e.forEach(e=>{e.hasError&&e.addFrustration(Y.ERROR_CLICK),nf(e)&&!r&&e.addFrustration(Y.DEAD_CLICK)}),{isRage:!1}}(e,t);r?(e.forEach(e=>e.discard()),t.stop((0,T.timeStampNow)()),t.validate(e.map(e=>e.event))):(t.discard(),e.forEach(e=>e.validate()))})(e,t),i=void 0})}}function u(){i&&i.stop()}}(e,r,n,i));let c=(o=t=>{e.notify(12,nh(t))},{addAction:function(e){o({id:F(),frustrationTypes:[],...e})},startAction:function(t,r={},n=(0,T.clocksNow)()){var i;let o=null!=(i=r.actionKey)?i:t,a=s.start(o,n,{name:t,...r},{isChildEvent:ny});e.notify(15,a)},stopAction:function(e,t={},r=(0,T.clocksNow)()){var n;let i=null!=(n=t.actionKey)?n:e,a=s.stop(i,r,t);if(!a)return;let l=[];a.counts&&a.counts.errorCount>0&&l.push(Y.ERROR_CLICK),o({...a,type:a.type||W.CUSTOM,frustrationTypes:l})},findActionId:(s=r5(e)).findId,stop:s.stopAll}),d={findActionId:e=>{var t;let r=c.findActionId(e),n=null!=(t=null==a?void 0:a.findActionId(e))?t:[];return r.concat(n)}};return t.register(0,({startTime:e,eventType:t})=>{if(t!==G.ERROR&&t!==G.RESOURCE&&t!==G.LONG_TASK)return ek.SKIPPED;let r=t===G.LONG_TASK?(0,T.addDuration)(e,1):e,n=d.findActionId(r);return n.length?{type:t,action:{id:n}}:ek.SKIPPED}),t.register(1,({startTime:e})=>({action:{id:d.findActionId(e)}})),{addAction:c.addAction,startAction:c.startAction,stopAction:c.stopAction,actionContexts:d,stop:()=>{l(),u(),c.stop(),null==a||a.stop()}}}(e,t,eT,eO,r);e_.push(eq.stop);let eG={addEvent:(t,r,n,i)=>{iC.includes(r.type)&&e.notify(12,{startClocks:(0,T.relativeToClocks)(t),rawRumEvent:r,domainContext:n,duration:i})}},eW=(ec=requestAnimationFrame((0,_.monitor)(()=>{eu=n6()})),ep=n2(r).subscribe(e=>{eu=e}).unsubscribe,t.register(0,({eventType:e})=>({type:e,display:eu?{viewport:eu}:void 0})),{stop:()=>{ep(),ec&&cancelAnimationFrame(ec)}});e_.push(eW.stop);let eY=function(e,t,r=function(e,t){let r=window.cookieStore?function(e){return(t,r)=>(0,eA.addEventListener)(e,window.cookieStore,"change",e=>{let n=e.changed.find(e=>e.name===t)||e.deleted.find(e=>e.name===t);n&&r(n.value)}).stop}(e):ig;return new k.Observable(e=>r(t,t=>e.notify(t)))}(e,iv)){var n;let i=ed(iv)||(null==(n=window.Cypress)?void 0:n.env("traceId")),o=r.subscribe(e=>{i=e});return t.register(0,({eventType:e})=>"string"!=typeof i?ek.SKIPPED:{type:e,session:{type:"ci_test"},ci_test:{test_execution_id:i}}),{stop:()=>{o.unsubscribe()}}}(r,t);e_.push(eY.stop),t.register(0,({eventType:e})=>eE()?{type:e,session:{type:"synthetics"},synthetics:{...eE(),injected:eh()}}:ek.SKIPPED),g={[G.VIEW]:{"view.performance.lcp.resource_url":"string",...iS,...iE,...i_},[G.ERROR]:{"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string",...iS,...iE,...i_},[G.RESOURCE]:{"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object",...iS,...iE,...i_},[G.ACTION]:{"action.target.name":"string",...iS,...iE,...i_},[G.LONG_TASK]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...iS,...iE,...i_},[G.VITAL]:{...iS,...iE,...i_}},em={[G.ERROR]:iy(G.ERROR,p,void 0),[G.ACTION]:iy(G.ACTION,p,void 0),[G.VITAL]:iy(G.VITAL,p,void 0)},e.subscribe(12,({startClocks:n,duration:i,rawRumEvent:o,domainContext:a})=>{let s=t.triggerHook(0,{eventType:o.type,rawRumEvent:o,domainContext:a,startTime:n.relative,duration:i});if(s===ek.DISCARDED)return;let l=(0,E.combine)(s,o,{ddtags:(0,ib.buildTags)(r).join(",")});(function(e,t,r,n){var i,o;if(t){let n,i,a=(o=g[e.type],i=(e=>
4t(e,r))(n=(0,E.deepClone)(e)),(0,eH.objectEntries)(o).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(ih(t)&&ih(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,eN.getType)(r);i===n?e[t]=(0,w.sanitize)(r):"object"===n&&("undefined"===i||"null"===i)&&(e[t]={})}(t,o,r[o],i)}})(e,n,t.split(/\.|(?=\[\])/),r)),i);if(!1===a&&e.type!==G.VIEW)return!1;!1===a&&en.display.warn("Can't dismiss view events using beforeSend!")}return!(null==(i=n[e.type])?void 0:i.isLimitReached())})(l,r.beforeSend,a,em)&&((0,ef.isEmptyObject)(l.context)&&delete l.context,e.notify(13,l))});let{addTiming:eJ,setLoadingTime:eX,startView:eZ,setViewName:eQ,setViewContext:e0,setViewContextProperty:e1,getViewContext:e2,stop:e6}=(e.subscribe(4,t=>{var n,o,a,s,l,u,c,d,p,f,m,g,v,y,b,h,E,S,_,C;let w,O,A;return e.notify(12,(n=t,o=r,w=i.getReplayStats(n.id),O=null==(s=null==(a=n.commonViewMetrics)?void 0:a.cumulativeLayoutShift)?void 0:s.devicePixelRatio,A={_dd:{document_version:n.documentVersion,replay_stats:w,cls:O?{device_pixel_ratio:O}:void 0,configuration:{start_session_replay_recording_manually:o.startSessionReplayRecordingManually}},date:n.startClocks.timeStamp,type:G.VIEW,view:{action:{count:n.eventCounts.actionCount},frustration:{count:n.eventCounts.frustrationCount},cumulative_layout_shift:null==(l=n.commonViewMetrics.cumulativeLayoutShift)?void 0:l.value,cumulative_layout_shift_time:(0,T.toServerDuration)(null==(u=n.commonViewMetrics.cumulativeLayoutShift)?void 0:u.time),cumulative_layout_shift_target_selector:null==(c=n.commonViewMetrics.cumulativeLayoutShift)?void 0:c.targetSelector,first_byte:(0,T.toServerDuration)(null==(d=n.initialViewMetrics.navigationTimings)?void 0:d.firstByte),dom_complete:(0,T.toServerDuration)(null==(p=n.initialViewMetrics.navigationTimings)?void 0:p.domComplete),dom_content_loaded:(0,T.toServerDuration)(null==(f=n.initialViewMetrics.navigationTimings)?void 0:f.domContentLoaded),dom_interactive:(0,T.toServerDuration)(null==(m=n.initialViewMetrics.navigationTimings)?void 0:m.domInteractive),error:{count:n.eventCounts.errorCount},first_contentful_paint:(0,T.toServerDuration)(n.initialViewMetrics.firstContentfulPaint),first_input_delay:(0,T.toServerDuration)(null==(g=n.initialViewMetrics.firstInput)?void 0:g.delay),first_input_time:(0,T.toServerDuration)(null==(v=n.initialViewMetrics.firstInput)?void 0:v.time),first_input_target_selector:null==(y=n.initialViewMetrics.firstInput)?void 0:y.targetSelector,interaction_to_next_paint:(0,T.toServerDuration)(null==(b=n.commonViewMetrics.interactionToNextPaint)?void 0:b.value),interaction_to_next_paint_time:(0,T.toServerDuration)(null==(h=n.commonViewMetrics.interactionToNextPaint)?void 0:h.time),interaction_to_next_paint_target_selector:null==(E=n.commonViewMetrics.interactionToNextPaint)?void 0:E.targetSelector,is_active:n.isActive,name:n.name,largest_contentful_paint:(0,T.toServerDuration)(null==(S=n.initialViewMetrics.largestContentfulPaint)?void 0:S.value),largest_contentful_paint_target_selector:null==(_=n.initialViewMetrics.largestContentfulPaint)?void 0:_.targetSelector,load_event:(0,T.toServerDuration)(null==(C=n.initialViewMetrics.navigationTimings)?void 0:C.loadEvent),loading_time:rg((0,T.toServerDuration)(n.commonViewMetrics.loadingTime)),loading_type:n.loadingType,long_task:{count:n.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:r,firstInput:n,largestContentfulPaint:i}){return{cls:e&&{score:e.value,timestamp:(0,T.toServerDuration)(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:r&&{timestamp:(0,T.toServerDuration)(r)},fid:n&&{duration:(0,T.toServerDuration)(n.delay),timestamp:(0,T.toServerDuration)(n.time),target_selector:n.targetSelector},inp:t&&{duration:(0,T.toServerDuration)(t.value),timestamp:(0,T.toServerDuration)(t.time),target_selector:t.targetSelector,sub_parts:t.subParts?{input_delay:(0,T.toServerDuration)(t.subParts.inputDelay),processing_duration:(0,T.toServerDuration)(t.subParts.processingDuration),presentation_delay:(0,T.toServerDuration)(t.subParts.presentationDelay)}:void 0},lcp:i&&{timestamp:(0,T.toServerDuration)(i.value),target_selector:i.targetSelector,resource_url:i.resourceUrl,sub_parts:i.subParts?{load_delay:(0,T.toServerDuration)(i.subParts.loadDelay),load_time:(0,T.toServerDuration)(i.subParts.loadTime),render_delay:(0,T.toServerDuration)(i.subParts.renderDelay)}:void 0}}}(n.commonViewMetrics,n.initialViewMetrics),resource:{count:n.eventCounts.resourceCount},time_spent:(0,T.toServerDuration)(n.duration)},display:n.commonViewMetrics.scroll?{scroll:{max_depth:n.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:n.
4commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:n.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,T.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(e){return}}()}},(0,ef.isEmptyObject)(n.customTimings)||(A.view.custom_timings=(0,ef.mapValues)(n.customTimings,T.toServerDuration)),{rawRumEvent:A,startClocks:n.startClocks,duration:n.duration,domainContext:{location:n.location,handlingStack:n.handlingStack}}))}),t.register(0,({startTime:e,eventType:t})=>{let r=eM.findView(e);return r?{type:t,service:r.service,version:r.version,context:r.context,view:{id:r.id,name:r.name}}:ek.DISCARDED}),t.register(1,({startTime:e})=>{var t;return{view:{id:null==(t=eM.findView(e))?void 0:t.id}}}),function(e,t,r,n,i,o,a){let s,l,u=new Set,c=p(z.INITIAL_LOAD,(0,nF.clocksOrigin)(),a);function p(i,o,a){let s=function(e,t,r,n,i,o=(0,nF.clocksNow)(),a){var s;let l,u=F(),c=new k.Observable,p={},f=0,m=(0,ef.shallowClone)((0,N.mockable)(window.location)),g=eD(),v=!0,b=null==a?void 0:a.name,h=(null==a?void 0:a.service)||n.service,E=(null==a?void 0:a.version)||n.version,S=null==a?void 0:a.context,C=null==a?void 0:a.handlingStack;S&&g.setContext(S);let w={id:u,name:b,startClocks:o,service:h,version:E,context:S,url:null==a?void 0:a.url};e.notify(1,w),e.notify(2,w);let{throttled:O,cancel:A}=(0,M.throttle)(W,3e3,{leading:!1}),{setLoadEvent:I,setViewEnd:R,stop:D,stopINPTracking:L,getCommonViewMetrics:P,setLoadingTime:U}=function(e,t,r,n,i,o,a){let s={},l=!1,u=!1,{stop:c,setLoadEvent:p}=function(e,t,r,n,i,o,a){let s=i===z.INITIAL_LOAD,l=!0,u=[],c=nq(n,o);function d(){if(!l&&!s&&u.length>0){let e=Math.max(...u);e<c.timeStamp-o.relative&&a(e)}}let{stop:p}=rO(e,t,r,n,e=>{l&&(l=!1,e.hadActivity&&u.push((0,T.elapsed)(o.timeStamp,e.end)),d())});return{stop:()=>{p(),c.stop()},setLoadEvent:e=>{s&&(s=!1,u.push(e),d())}}}(e,t,r,n,o,a,e=>{l||(s.loadingTime=e,i())}),{stop:f}=function(e,t,r,n=function(e,t=n3){return new k.Observable(r=>{if(window.ResizeObserver){let n=(0,M.throttle)(function(){r.notify(function(){let e=n1(),{height:t}=n6();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(t+e),scrollTop:e}}())},t,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver((0,_.monitor)(n.throttled));i&&o.observe(i);let a=(0,eA.addEventListener)(e,window,"scroll",n.throttled,{passive:!0});return()=>{n.cancel(),o.disconnect(),a.stop()}}})}(e)){let i=0,o=0,a=0,s=n.subscribe(({scrollDepth:e,scrollTop:n,scrollHeight:s})=>{let l=!1;if(e>i&&(i=e,l=!0),s>o){o=s;let e=(0,T.relativeNow)();a=(0,T.elapsed)(t.relative,e),l=!0}l&&r({maxDepth:Math.min(i,o),maxDepthScrollTop:n,maxScrollHeight:o,maxScrollHeightTime:a})});return{stop:()=>s.unsubscribe()}}(n,a,e=>{s.scroll=e}),{stop:m}=function(e,t,r){let n,i,o,a,s;if(!(rC(y.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:M.noop};let l=0;r({value:0});let u=(a=0,s=0,{update:e=>{let t;return void 0===i||e.startTime-o>=nW||e.startTime-i>=nz?(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}}}),c=rT(e,{type:y.LAYOUT_SHIFT,buffered:!0}).subscribe(i=>{var o;for(let a of i){if(a.hadRecentInput||a.startTime<t)continue;let{cumulatedValue:i,isMaxValue:s}=u.update(a);if(s){let e=function(e){let t;for(let r of e)if(r.node&&rb(r.node)){let e=nG(r);(!t||nG(t)<e)&&(t=r)}return t}(a.sources);n={target:(null==e?void 0:e.node)?new WeakRef(e.node):void 0,time:(0,T.elapsed)(t,a.startTime),previousRect:null==e?void 0:e.previousRect,currentRect:null==e?void 0:e.currentRect,devicePixelRatio:window.devicePixelRatio}}if(i>l){l=i;let t=null==(o=null==n?void 0:n.target)?void 0:o.deref();r({value:(0,eK.round)(l,4),targetSelector:t&&rL(t,e.actionNameAttribute),time:null==n?void 0:n.time,previousRect:(null==n?void 0:n.previousRect)?nH(n.previousRect):void 0,currentRect:(null==n?void 0:n.currentRect)?nH(n.currentRect):void 0,devicePixelRatio:null==n?void 0:n.devicePixelRatio})}}});return{stop:()=>{c.unsubscribe()}}}(n,a.relative,e=>{s.cumulativeLayoutShift=e,i()}),{stop:g,getInteractionToNextPaint:v,setViewEnd:b}=function(e,t,r){var n;let i,o,a;if(!(rC(y.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>
4void 0,setViewEnd:M.noop,stop:M.noop};let s=1/0,{getViewInteractionCount:l,stopViewInteractionCount:u}=(n=r,"interactionCount"in performance||d||(d=new window.PerformanceObserver((0,_.monitor)(e=>{e.getEntries().forEach(e=>{e.interactionId&&(nJ=Math.min(nJ,e.interactionId),nY=((nX=Math.max(nX,e.interactionId))-nJ)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),o=n===z.INITIAL_LOAD?0:nZ(),a={stopped:!1},{getViewInteractionCount:()=>a.stopped?a.interactionCount:nZ()-o,stopViewInteractionCount:()=>{a={stopped:!0,interactionCount:nZ()-o}}}),c=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)}}(l),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,T.elapsed)(n.startTime,n.processingStart),processingDuration:(0,T.elapsed)(n.processingStart,o),presentationDelay:(0,T.elapsed)(o,i)}},stop(){t.clear()}}}(c),f=rT(e,{type:y.FIRST_INPUT,buffered:!0}).subscribe(g),m=rT(e,{type:y.EVENT,durationThreshold:40,buffered:!0}).subscribe(g);function g(r){for(let e of r)e.interactionId&&e.startTime>=t&&e.startTime<=s&&(c.process(e),p.process(e));p.pruneUntracked();let n=c.estimateP98Interaction();n&&function(r){let n=(0,T.elapsed)(t,r.startTime);if(!i||r.duration!==i.duration||n!==i.startTime){var o;let t,a=(o=r.startTime,t=ng.get(o),ng.delete(o),t);!a&&r.target&&rb(r.target)&&(a=rL(r.target,e.actionNameAttribute)),i={duration:r.duration,startTime:n,targetSelector:a}}i.subParts=p.computeSubParts(r,n0(i.duration))}(n)}return{getInteractionToNextPaint:()=>i?{value:n0(i.duration),targetSelector:i.targetSelector,time:i.startTime,subParts:i.subParts}:l()?{value:0}:void 0,setViewEnd:e=>{s=e,u()},stop:()=>{m.unsubscribe(),f.unsubscribe(),p.stop()}}}(n,a.relative,o);return{stop:()=>{c(),m(),f()}
4,stopINPTracking:g,setLoadEvent:p,setViewEnd:e=>{u=!0,b(e)},getCommonViewMetrics:()=>(s.interactionToNextPaint=v(),s),setLoadingTime:e=>{if(u)return;let t=(0,T.elapsed)(a.timeStamp,null!=e?e:(0,T.timeStampNow)());l||c(),l=!0,s.loadingTime=t,i()}}}(e,t,r,n,H,i,o),{stop:$,initialViewMetrics:V}=i===z.INITIAL_LOAD?function(e,t,r,n){var i,o,a;let s,l={},{stop:u}=(i=e=>{r(e.loadEvent),l.navigationTimings=e,n()},function(e,t){let r,{stop:n}=nk(e,"complete",()=>{r=(0,x.setTimeout)(()=>t())});return{stop:()=>{n(),(0,x.clearTimeout)(r)}}}(e,()=>{var e;let t=(0,N.mockable)(nD)();t.loadEventEnd<=0||i({domComplete:(e=t).domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:nL(e)})})),c=nq(e,t),{stop:d}=(o=e=>{l.firstContentfulPaint=e,n()},{stop:rT(e,{type:y.PAINT,buffered:!0}).subscribe(e=>{let t=e.find(e=>"first-contentful-paint"===e.name&&e.startTime<c.timeStamp&&e.startTime<nK);t&&o(t.startTime)}).unsubscribe}),{stop:p}=function(e,t,r,n){let i=1/0,{stop:o}=(0,eA.addEventListeners)(e,r,["pointerdown","keydown"],e=>{i=e.timeStamp},{capture:!0,once:!0}),a=0,s=rT(e,{type:y.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(r=>{let o=(0,eH.findLast)(r,e=>e.entryType===y.LARGEST_CONTENTFUL_PAINT&&e.startTime<i&&e.startTime<t.timeStamp&&e.startTime<nj&&e.size>a);if(o){var s;let t;o.element&&(t=rL(o.element,e.actionNameAttribute));let r=""===(s=o).url?void 0:s.url,i=o.startTime,l=function(e,t){let r=nL(nD());if(void 0===r)return;let n=e?function(e,t){let r=function(){if(rC(y.RESOURCE))return performance.getEntriesByType(y.RESOURCE)}();if(r)return(0,eH.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,(null==n?void 0:n.responseEnd)||0));return{loadDelay:i-r,loadTime:o-i,renderDelay:t-o}}(r,i);n({value:i,targetSelector:t,resourceUrl:r,subParts:l}),a=o.size}});return{stop:()=>{o(),s.unsubscribe()}}}(e,c,window,e=>{l.largestContentfulPaint=e,n()}),{stop:f}=(a=e=>{l.firstInput=e,n()},s=rT(e,{type:y.FIRST_INPUT,buffered:!0}).subscribe(t=>{let r=t.find(e=>e.startTime<c.timeStamp);if(r){let t,n=(0,T.elapsed)(r.startTime,r.processingStart);r.target&&rb(r.target)&&(t=rL(r.target,e.actionNameAttribute)),a({delay:n>=0?n:0,time:r.startTime,targetSelector:t})}}),{stop:()=>{s.unsubscribe()}});return{stop:function(){u(),d(),p(),f(),c.stop()},initialViewMetrics:l}}(n,o,I,H):{stop:M.noop,initialViewMetrics:{}};i===z.BF_CACHE&&(s=o.relative,requestAnimationFrame(()=>{requestAnimationFrame(()=>{(e=>{V.firstContentfulPaint=e,V.largestContentfulPaint={value:e},H()})((0,T.elapsed)(s,(0,T.relativeNow)()))})}));let{stop:B,eventCounts:K}=function(e,t,r){let{stop:n,eventCounts:i}=r8({lifeCycle:e,isChildEvent:e=>e.view.id===t,onChange:r});return{stop:n,eventCounts:i}}(e,u,H),j=(0,x.setInterval)(W,n8),q=e.subscribe(11,e=>{e.reason===t$.PageExitReason.UNLOADING&&W()});function G(){e.notify(3,{id:u,name:b,context:g.getContext(),startClocks:o,sessionIsActive:v})}function H(){G(),O()}function W(){A(),G(),f+=1;let t=void 0===l?(0,nF.timeStampNow)():l.timeStamp;e.notify(4,{customTimings:p,documentVersion:f,id:u,name:b,service:h,version:E,context:g.getContext(),loadingType:i,location:m,handlingStack:C,startClocks:o,commonViewMetrics:P(),initialViewMetrics:V,duration:(0,nF.elapsed)(o.timeStamp,t),isActive:void 0===l,sessionIsActive:v,eventCounts:K})}return W(),g.changeObservable.subscribe(H),{get name(){return b},service:h,version:E,contextManager:g,stopObservable:c,end(t={}){var r,n;l||(l=null!=(r=t.endClocks)?r:(0,nF.clocksNow)(),v=null==(n=t.sessionIsActive)||n,e.notify(5,{endClocks:l}),e.notify(6,{endClocks:l}),(0,x.clearInterval)(j),R(l.relative),D(),q.unsubscribe(),W(),(0,x.setTimeout)(()=>{this.stop()},n4))},stop(){$(),B(),L(),c.notify()},addTiming(e,t){var r;let n;if(l)return;let i=(0,nF.looksLikeRelativeTime)(t)?t:(0,nF.elapsed)(o.timeStamp,t);p[(n=(r=e).replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==r&&en.display.warn(`Invalid timing name: ${r}, sanitized to: ${n}`),n]=i,H()},setLoadingTime:U,setViewName(e){b=e,W()}}}(e,t,r,n,i,o,a);return u.add(s),s.stopObservable.subscribe(()=>{u.delete(s)}),s}return e.subscribe(10,()=>{c=p(z.ROUTE_CHANGE,void 0,{name:c.name,service:c.service,version:c.version,context:c.contextManager.getContext()})}),e.subscribe(9,()=>{c.end({sessionIsActive:!1})}),o&&(l=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)||n5(n.hash)===n5(r.hash))||(c.end(),c=p(z.ROUTE_CHANGE))}),n.trackBfcacheViews&&(s=function(e,t){let{stop:r}=(0,eA.addEventListener)(e,window,"pageshow",e=>{e.persisted&&t(e)},{capture:!0});return r}(n,e=>{c.end();let t=(0,nF.relativeToClocks)(e.timeStamp);c=p(z.BF_CACHE,t,void 0)}))),{addTiming:(e,t=(0,nF.timeStampNow)())=>{c.addTiming(e,t)}
4,setLoadingTime:e=>c.setLoadingTime(e),startView:(e,t)=>{c.end({endClocks:t}),c=p(z.ROUTE_CHANGE,t,e)},setViewContext:e=>{c.contextManager.setContext(e)},setViewContextProperty:(e,t)=>{c.contextManager.setContextProperty(e,t)},setViewName:e=>{c.setViewName(e)},getViewContext:()=>c.contextManager.getContext(),stop:()=>{l&&l.unsubscribe(),s&&s(),c.end(),u.forEach(e=>e.stop())}}}(e,eT,eO,r,eC,!r.trackViewsManually,o)),e3=window,e8=new Map;function e4(){e3.DD_SOURCE_CODE_CONTEXT&&((0,eH.objectEntries)(e3.DD_SOURCE_CODE_CONTEXT).forEach(([e,t])=>{let r=(0,L.computeStackTrace)({stack:e}).stack[0];r.url?e8.has(r.url)||e8.set(r.url,t):(0,h.addTelemetryError)("Source code context: missing frame url",{stack:e})}),e3.DD_SOURCE_CODE_CONTEXT={})}e4(),t.register(0,({domainContext:e,rawRumEvent:t})=>{var r,n,i,o;let a;if(e4(),0===e8.size)return ek.SKIPPED;let s=(r=e,"long_task"===(n=t).type&&"long-animation-frame"===n.long_task.entry_type?null==(i=n.long_task.scripts[0])?void 0:i.source_url:("handlingStack"in r&&(a=r.handlingStack),"error"===n.type&&n.error.stack&&(a=n.error.stack),null==(o=(0,L.computeStackTrace)({stack:a}).stack[0])?void 0:o.url)),l=s&&e8.get(s);return l?{type:t.type,service:l.service,version:l.version}:ek.SKIPPED}),e_.push(e6);let e5=function(e,t,r){let n,i=(0,N.mockable)(nA)(),o=t.trackEarlyRequests;if(o){let t,r,i;t=new Set,r=!1,i=e.subscribe(8,e=>{if(t.add(e),t.size>1e3){let e=t.values().next().value;if(!r){let n;if(r=!0,(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.TOO_MANY_REQUESTS_INVESTIGATION)){let r=0,i=0,o=0,a=0;for(let e of t)e.isAborted&&r++,e.isAbortedOnStart&&i++,"xhr"===e.type&&o++,!performance.getEntriesByName(e.url,"resource").some(t=>t.startTime>=e.startClocks.relative)&&a++;let s=(0,T.timeStampNow)()-e.startClocks.timeStamp;n={abortedCount:r,abortedOnStartCount:i,xhrCount:o,fetchCount:t.size-o,oldestRequestAge:s,oldestRequestEndAge:s-e.duration,withoutMatchingEntryCount:a}}(0,h.addTelemetryDebug)("Too many requests",n)}t.delete(e)}}),n={getMatchingRequest(e){let r,n=1/0;for(let i of t){let t=e.startTime-i.startClocks.relative;0<=t&&t<n&&i.url===e.name&&(n=Math.abs(t),r=i)}return r&&t.delete(r),r},stop(){i.unsubscribe()}}}else e.subscribe(8,e=>{s(()=>{var n,i,o;return n=e,i=t,o=r,n$(function(e){if(!performance||!("getEntriesByName"in performance))return;let t=performance.getEntriesByName(e.url,"resource");if(!t.length||!("toJSON"in t[0]))return;let r=t.filter(e=>!nI.has(e)).filter(e=>t4(e)&&t5(e)).filter(t=>{var r,n,i;return r=t,n=e.startClocks.relative,i=nR({startTime:e.startClocks.relative,duration:e.duration}),r.startTime>=n-1&&nR(r)<=(0,T.addDuration)(i,1)});if(1===r.length)return nI.add(r[0]),r[0].toJSON()}(n),n,o,i)})});let a=rT(t,{type:y.RESOURCE,buffered:!0}).subscribe(e=>{for(let i of e)(o||!t6(i))&&s(()=>nU(i,t,r,n))});function s(t){i.push(()=>{let r=t();r&&e.notify(12,r)})}(0,N.mockable)(nP)(t,e=>{s(()=>nU(e,t,r,n))});let l=r5(e),u={startResource:function(e,t={},r=(0,T.clocksNow)()){var n;let i=null!=(n=t.resourceKey)?n:e;l.start(i,r,{url:e,...t})},stopResource:function(t,r={},n=(0,T.clocksNow)()){var i;let o=null!=(i=r.resourceKey)?i:t,a=l.stop(o,n,{context:r.context,type:r.type});if(!a)return;let s=(0,T.elapsed)(a.startClocks.relative,n.relative),u={date:a.startClocks.timeStamp,type:G.RESOURCE,resource:{id:a.id,type:a.type||tY,url:ri(a.url),duration:(0,T.toServerDuration)(s),method:a.method,status_code:r.statusCode,size:r.size},_dd:{},context:a.context};e.notify(12,{rawRumEvent:u,startClocks:a.startClocks,duration:s,domainContext:{isManual:!0}})}};return{startResource:u.startResource,stopResource:u.stopResource,stop:()=>{i.stop(),a.unsubscribe(),l.stopAll()}}}(e,r,ex);e_.push(e5.stop);let{stop:e9}=(eg=rT(r,{type:rC(y.LONG_ANIMATION_FRAME)?y.LONG_ANIMATION_FRAME:y.LONG_TASK,buffered:!0}).subscribe(t=>{for(let n of t){if(!r.trackLongTasks)break;let t=(0,T.relativeToClocks)(n.startTime),i=function(e,t){let r=F(),n=(0,T.toServerDuration)(e.duration),i={date:t.timeStamp,type:G.LONG_TASK,_dd:{discarded:!1}};return e.entryType===y.LONG_TASK?{...i,long_task:{id:r,entry_type:H.LONG_TASK,duration:n}}:{...i,long_task:{id:r,entry_type:H.LONG_ANIMATION_FRAME,duration:n,blocking_duration:(0,T.toServerDuration)(e.blockingDuration),first_ui_event_timestamp:(0,T.toServerDuration)(e.firstUIEventTimestamp),render_start:(0,T.toServerDuration)(e.renderStart),style_and_layout_start:(0,T.toServerDuration)(e.styleAndLayoutStart),start_time:(0,T.toServerDuration)(e.startTime),scripts:e.scripts.map(e=>({duration:(0,T.toServerDuration)(e.duration),pause_duration:(0,T.toServerDuration)(e.pauseDuration),forced_style_and_layout_duration:(0,T.toServerDuration)(e.forcedStyleAndLayoutDuration),start_time:(0,T.toServerDuration)(e.startTime),execution_start:(0,T.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(12,{rawRumEvent:i,startClocks:t,duration:n.duration,domainContext:{performanceEntry:n}})}}),{stop:()=>eg.unsubscribe()});e_.push(e9);let{addError:e7}
4=(ev=new k.Observable,l.subscribe(e=>{0===e.type&&ev.notify(e.error)}),S=ev,(K=[en.ConsoleApiName.error].map(e=>{var t;return nS[e]||(nS[e]=(t=e,new k.Observable(e=>{let r=en.globalConsole[t];return en.globalConsole[t]=(...n)=>{r.apply(console,n);let i=(0,C.createHandlingStack)("console error");(0,_.callMonitored)(()=>{e.notify(function(e,t,r){let n=e.map(e=>{var t;return"string"==typeof(t=e)?(0,w.sanitize)(t):(0,U.isError)(t)?(0,C.formatErrorMessage)((0,L.computeStackTrace)(t)):(0,nE.jsonStringify)((0,w.sanitize)(t),void 0,2)}).join(" ");if(t===en.ConsoleApiName.error){let i=e.find(U.isError),o=(0,U.computeRawError)({originalError:i,handlingStack:r,startClocks:(0,T.clocksNow)(),source:$.ErrorSource.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=n,{api:t,message:n,handlingStack:r,error:o}}return{api:t,message:n,error:void 0,handlingStack:r}}(n,t,i))})},()=>{en.globalConsole[t]=r}}))),nS[e]}),(0,k.mergeObservables)(...K)).subscribe(e=>S.notify(e.error)),(ey=[],(m=[n_,"intervention"]).includes(n_)&&ey.push((O=r,new k.Observable(e=>{let{stop:t}=(0,eA.addEventListener)(O,document,"securitypolicyviolation",t=>{var r;let n;e.notify((r=t,n=`'${r.blockedURI}' blocked by '${r.effectiveDirective}' directive`,nT({type:r.effectiveDirective,message:`${n_}: ${n}`,originalError:r,csp:{disposition:r.disposition},stack:nC(r.effectiveDirective,r.originalPolicy?`${n} of the policy "${q(r.originalPolicy,100,"...")}"`:"no policy",r.sourceFile,r.lineNumber,r.columnNumber)})))});return t}))),(eb=m.filter(e=>e!==n_)).length&&ey.push((A=eb,new k.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 nT({type:r.id,message:`${t}: ${r.message}`,originalError:e,stack:nC(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}(t)))),r=new window.ReportingObserver(t,{types:A,buffered:!0});return r.observe(),()=>{r.disconnect()}}))),(0,k.mergeObservables)(...ey)).subscribe(e=>ev.notify(e)),ev.subscribe(t=>e.notify(14,{error:t})),(I=e).subscribe(14,({error:e})=>{var t;let r,n;I.notify(12,(r={date:(t=e).startClocks.timeStamp,error:{id:F(),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},type:G.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=(0,U.computeRawError)({originalError:e,handlingStack:t,componentStack:r,startClocks:n,nonErrorPrefix:"Provided",source:$.ErrorSource.CUSTOM,handling:"handled"});o.context=(0,E.combine)(o.context,i),I.notify(14,{error:o})}});eS={clearTracingIfNeeded:ru,traceFetch:e=>rc(r,e,n,eF,ej,t=>{var r;if(e.input instanceof Request&&!(null==(r=e.init)?void 0:r.headers))e.input=new Request(e.input),Object.keys(t).forEach(r=>{e.input.headers.append(r,t[r])});else{e.init=(0,ef.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,eH.objectEntries)(t))}}),traceXhr:(e,t)=>rc(r,e,n,eF,ej,e=>{Object.keys(e).forEach(r=>{t.setRequestHeader(r,e[r])})})},function(e,t,r){var n;(!u&&(n=t,u=new k.Observable(e=>{let{stop:t}=D(XMLHttpRequest.prototype,"open",tX),{stop:r}=D(XMLHttpRequest.prototype,"send",t=>{!function({target:e,parameters:[t],handlingStack:r},n,i){let o=tJ.get(e);if(!o)return;o.state="start",o.startClocks=(0,T.clocksNow)(),o.isAborted=!1,o.xhr=e,o.handlingStack=r,o.requestBody=t;let a=!1,{stop:s}=D(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&l()}),l=()=>{u(),s(),a||(a=!0,o.state="complete",o.duration=(0,T.elapsed)(o.startClocks.timeStamp,(0,T.timeStampNow)()),o.status=e.status,"string"==typeof e.response&&(o.responseBody=e.response),i.notify((0,ef.shallowClone)(o)))},{stop:u}=(0,eA.addEventListener)(n,e,"loadend",l);i.notify(o)}(t,n,e)},{computeHandlingStack:!0}),{stop:i}=D(XMLHttpRequest.prototype,"abort",tZ);return()=>{t(),r(),i()}})),u).subscribe(t=>
4{if(rr(t.url))switch(t.state){case"start":r.traceXhr(t,t.xhr),t.requestIndex=rm(),e.notify(7,{requestIndex:t.requestIndex,url:t.url});break;case"complete":r.clearTracingIfNeeded(t),e.notify(8,{...t,type:"xhr",isAbortedOnStart:!1})}})}(e,r,eS),R=e,P=r,V=eS,ew({responseBodyAction:e=>{var t;return(null==(t=rp(e.url,P))?void 0:t.trackResponseErrors)?2:1}}).subscribe(e=>{var t;if(rr(e.url))switch(e.state){case"start":V.traceFetch(e),e.requestIndex=rm(),R.notify(7,{requestIndex:e.requestIndex,url:e.url});break;case"resolve":V.clearTracingIfNeeded(e),R.notify(8,{...e,duration:(0,T.elapsed)(e.startClocks.timeStamp,(0,T.timeStampNow)()),type:tW,requestBody:null==(t=e.init)?void 0:t.body})}});let te=function(e,t,r){function n(r){t.wasInPageStateDuringPeriod("frozen",r.startClocks.relative,r.duration)||e.notify(12,Q(r))}return{addOperationStepVital:function(t,r,n,i){if(!(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.FEATURE_OPERATION_VITAL))return;let{operationKey:o,context:a,description:s,handlingStack:l}=n||{},u={name:t,type:J.OPERATION_STEP,operationKey:o,failureReason:i,stepType:r,startClocks:(0,T.clocksNow)(),context:(0,w.sanitize)(a),description:s,handlingStack:l};e.notify(12,Q(u))},addDurationVital:n,startDurationVital:(t,n={})=>{let i=X(r,t,n),o=r.vitalsByReference.get(i);return o&&e.notify(16,o),i},stopDurationVital:(e,t={})=>{Z(n,r,e,t)}}}(e,ex,a),tt=(v=r.applicationId,b=eq.actionContexts,{get:e=>{let t=eM.findView(e),r=e$.findUrl(e),i=n.findTrackedSession(e);if(i&&t&&r){let n=b.findActionId(e);return{application_id:v,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:eq.addAction,startAction:eq.startAction,stopAction:eq.stopAction,startResource:e5.startResource,stopResource:e5.stopResource,addEvent:eG.addEvent,addError:e7,addTiming:eJ,setLoadingTime:eX,addFeatureFlagEvaluation:eV.addFeatureFlagEvaluation,startView:eZ,setViewContext:e0,setViewContextProperty:e1,getViewContext:e2,setViewName:eQ,viewHistory:eM,getInternalContext:tt.get,startDurationVital:te.startDurationVital,stopDurationVital:te.stopDurationVital,addDurationVital:te.addDurationVital,addOperationStepVital:te.addOperationStepVital,globalContext:eB,userContext:eF,accountContext:ej,stop:()=>e_.forEach(e=>e())}}(R,p,e,K,t,n,a,l,v,P);return I.push(ee),l.unbuffer(),I.push(()=>r.stop()),{...et,lifeCycle:R,session:K,stopSession:()=>K.expire(),telemetry:c,stop:()=>{I.forEach(e=>e())},hooks:p}}e.s(["makeRumPublicApi",0,function(e,t,r={}){let n,i,o=(0,I.createTrackingConsentState)(),a={vitalsByName:new Map,vitalsByReference:new WeakMap},s=(n=new k.BufferedObservable(500),i=(0,N.mockable)(V)().subscribe(e=>{n.notify({type:0,error:e})}),{observable:n,stop:()=>{i.unsubscribe()}}).observable,l=function({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},r,n,i){let o,a,s,l,u,c,d=(c=[],{add:e=>{c.push(e)>500&&c.splice(0,1)},remove:e=>{et(c,e)},drain:e=>{c.forEach(t=>t(e)),c.length=0}}),p=eP();tP(p,b.CustomerContextKey.globalContext,d);let f=eU();tP(f,b.CustomerContextKey.userContext,d);let m=eL();tP(m,b.CustomerContextKey.accountContext,d);let g=e$(),v=r.observable.subscribe(E),y={};function E(){let e;if(!s||!l||!r.isGranted())return;if(u||(u=(0,N.mockable)(h.startTelemetry)("browser-rum-sdk",l,g)),v.unsubscribe(),l.trackViewsManually){if(!o)return;d.remove(o.callback),e=o.options}let t=i(l,a,e,u,g);d.drain(t)}function S(e,n){var i,o,u,c,d,p,f,m,g;let v,y,b=(0,ei.canUseEventBridge)();if(b&&(e={...f=e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!=(m=f.defaultPrivacyLevel)?m:null==(g=(0,ei.getEventBridge)())?void 0:g.getPrivacyLevel()}),s=e,(0,h.addTelemetryConfiguration)((v={session_sample_rate:(u=i=e).sessionSampleRate,telemetry_sample_rate:u.telemetrySampleRate,telemetry_configuration_sample_rate:u.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:u.telemetryUsageSampleRate,use_before_send:!!u.beforeSend,use_partitioned_cross_site_session_cookie:u.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:u.useSecureSessionCookie,use_proxy:!!u.proxy,silent_multiple_init:u.silentMultipleInit,track_session_across_subdomains:u.trackSessionAcrossSubdomains,track_anonymous_user:u.trackA
4nonymousUser,session_persistence:Array.isArray(u.sessionPersistence)?u.sessionPersistence[0]:u.sessionPersistence,allow_fallback_to_local_storage:!!u.allowFallbackToLocalStorage,store_contexts_across_pages:!!u.storeContextsAcrossPages,allow_untrusted_events:!!u.allowUntrustedEvents,tracking_consent:u.trackingConsent,use_allowed_tracking_origins:Array.isArray(u.allowedTrackingOrigins),beta_encode_cookie_options:u.betaEncodeCookieOptions,source:u.source,sdk_version:u.sdkVersion,variant:u.variant},{session_replay_sample_rate:i.sessionReplaySampleRate,start_session_replay_recording_manually:i.startSessionReplayRecordingManually,trace_sample_rate:i.traceSampleRate,trace_context_injection:i.traceContextInjection,propagate_trace_baggage:i.propagateTraceBaggage,action_name_attribute:i.actionNameAttribute,use_allowed_tracing_urls:er(i.allowedTracingUrls),use_allowed_graph_ql_urls:er(i.allowedGraphQlUrls),use_track_graph_ql_payload:er(c=i.allowedGraphQlUrls)&&c.some(e=>(0,eN.isIndexableObject)(e)&&e.trackPayload),use_track_graph_ql_response_errors:er(d=i.allowedGraphQlUrls)&&d.some(e=>(0,eN.isIndexableObject)(e)&&e.trackResponseErrors),selected_tracing_propagators:(y=new Set,er(i.allowedTracingUrls)&&i.allowedTracingUrls.forEach(e=>{var t;null==(t=th(e))||t.propagatorTypes.forEach(e=>y.add(e))}),Array.from(y)),default_privacy_level:i.defaultPrivacyLevel,enable_privacy_for_action_name:i.enablePrivacyForActionName,use_excluded_activity_urls:er(i.excludedActivityUrls),use_worker_url:!!i.workerUrl,compress_intake_requests:i.compressIntakeRequests,track_views_manually:i.trackViewsManually,track_user_interactions:i.trackUserInteractions,track_resources:i.trackResources,track_long_task:i.trackLongTasks,track_bfcache_views:i.trackBfcacheViews,track_early_requests:i.trackEarlyRequests,plugins:null==(o=i.plugins)?void 0:o.map(e=>{var t;return{name:e.name,...null==(t=e.getConfigurationTelemetry)?void 0:t.call(e)}}),track_feature_flags_for_events:i.trackFeatureFlagsForEvents,remote_configuration_id:i.remoteConfigurationId,profiling_sample_rate:i.profilingSampleRate,use_remote_configuration_proxy:!!i.remoteConfigurationProxy,track_resource_headers:!0===(p=i.trackResourceHeaders)?"default_headers":Array.isArray(p)?"custom":void 0,...v})),l)return void(0,A.displayAlreadyInitializedError)("DD_RUM",e);let S=function(e,t){var r,n,i,o,a,s,l;if(void 0===e.trackFeatureFlagsForEvents||Array.isArray(e.trackFeatureFlagsForEvents)||en.display.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId)return void en.display.error("Application ID is not configured, no RUM data will be collected.");if(!tv(e.sessionReplaySampleRate,"Session Replay")||!tv(e.traceSampleRate,"Trace"))return;if(void 0!==e.excludedActivityUrls&&!Array.isArray(e.excludedActivityUrls))return void en.display.error("Excluded Activity Urls should be an array");let u=function(e){if(void 0===e.allowedTracingUrls)return[];if(!Array.isArray(e.allowedTracingUrls))return void en.display.error("Allowed Tracing URLs should be an array");if(0!==e.allowedTracingUrls.length&&void 0===e.service)return void en.display.error("Service needs to be configured when tracing is enabled");let t=[];return e.allowedTracingUrls.forEach(e=>{let r=th(e);r?t.push(r):en.display.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",e)}),t}(e);if(!u)return;let c=function(e,t){var r,n,i,o,a,s,l,u,c,d,p,f,m;if(!e||!e.clientToken)return void en.display.error("Client Token is not configured, we will not send any data.");if(void 0!==e.allowedTrackingOrigins&&!Array.isArray(e.allowedTrackingOrigins))return void en.display.error("Allowed Tracking Origins must be an array");if((!(p=e.site)||"string"!=typeof p||/(datadog|ddog|datad0g|dd0g)/.test(p)||(en.display.error(`Site should be a valid Datadog site. ${en.MORE_DETAILS} ${en.DOCS_ORIGIN}/getting_started/site/.`),0))&&tv(e.sessionSampleRate,"Session")&&tv(e.telemetrySampleRate,"Telemetry")&&tv(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&tv(e.telemetryUsageSampleRate,"Telemetry Usage")&&tg(e.version,"Version")&&tg(e.env,"Env")&&tg(e.service,"Service")&&function(e,t){let r=(0,N.mockable)((0,P.getGlobalObject)().location),n=r?r.origin:"",i=e.allowedTrackingOrigins;if(!i)return!function(e,t=""){return!tu(e)&&tu(t.split("\n").filter(e=>{let t=e.trim();return t.length&&/^at\s+|@/.test(t)})[1]||"")}(n,t)||(en.display.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);let o=eB(i,n);return o||en.display.error("SDK initialized on a non-allowed domain."),o}(e,null!=t?t:"")){let t,p,g;if(void 0!==e.trackingConsent&&!(0,ef.objectHasValue)(I.TrackingConsent,e.trackingConsent))return void en.display.error('Tracking Consent should be either "granted" or "not-granted"');
4return{beforeSend:e.beforeSend&&(0,eF.catchUserErrors)(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:P.isWorkerEnvironment?void 0:function(e){var t,r;let{sessionPersistence:n}=e;for(let i of(t=n,r=e,Array.isArray(t)?t:void 0!==t?[t]:r.allowFallbackToLocalStorage?[eJ.COOKIE,eJ.LOCAL_STORAGE]:[eJ.COOKIE])){let t=function(e,t){switch(e){case eJ.COOKIE:let r;return(r=function(e){let t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){let e=ep();if(!e)return;t.domain=e}return t}(t))&&function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{let t=`dd_cookie_test_${F()}`,r="test";eu(t,r,T.ONE_MINUTE,e);let n=ec(t)===r;return eu(t,"",0,e),n}catch(e){return en.display.error(e),!1}}(r)?{type:eJ.COOKIE,cookieOptions:r}:void 0;case eJ.LOCAL_STORAGE:try{let e=F(),t=`_dd_test_${e}`;localStorage.setItem(t,e);let r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:eJ.LOCAL_STORAGE}:void 0}catch(e){return}case eJ.MEMORY:return{type:eJ.MEMORY};default:en.display.error(`Invalid session persistence '${String(e)}'`);return}}(i,e);if(void 0!==t)return t}}(e),sessionSampleRate:null!=(r=e.sessionSampleRate)?r:100,telemetrySampleRate:null!=(n=e.telemetrySampleRate)?n:20,telemetryConfigurationSampleRate:null!=(i=e.telemetryConfigurationSampleRate)?i:5,telemetryUsageSampleRate:null!=(o=e.telemetryUsageSampleRate)?o:5,service:null!=(a=e.service)?a:void 0,env:null!=(s=e.env)?s:void 0,version:null!=(l=e.version)?l:void 0,datacenter:null!=(u=e.datacenter)?u:void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!=(c=e.trackingConsent)?c:I.TrackingConsent.GRANTED,trackAnonymousUser:null==(d=e.trackAnonymousUser)||d,storeContextsAcrossPages:!!e.storeContextsAcrossPages,betaEncodeCookieOptions:!!e.betaEncodeCookieOptions,variant:e.variant,sdkVersion:e.sdkVersion,...(t=e.site||tc.INTAKE_SITE_US1,p="flutter"===(f=e.source)||"unity"===f?f:"browser",g={logsEndpointBuilder:td(m={...e,site:t,source:p},"logs"),rumEndpointBuilder:td(m,"rum"),profilingEndpointBuilder:td(m,"profile"),sessionReplayEndpointBuilder:td(m,"replay"),exposuresEndpointBuilder:td(m,"exposures"),flagEvaluationEndpointBuilder:td(m,"flagevaluation")},{replica:function(e){if(!e.replica)return;let t={...e,site:tc.INTAKE_SITE_US1,clientToken:e.replica.clientToken};return{logsEndpointBuilder:td(t,"logs"),rumEndpointBuilder:td(t,"rum",[`application.id=${e.replica.applicationId}`])}}({...e,site:t,source:p}),site:t,source:p,...g})}}}(e,t),d=function(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return en.display.warn("allowedGraphQlUrls should be an array"),[];let t=[];
4return e.allowedGraphQlUrls.forEach(e=>{eV(e)?t.push({match:e,trackPayload:!1,trackResponseErrors:!1}):(0,eN.isIndexableObject)(e)&&eV(e.match)&&t.push({match:e.match,trackPayload:!!e.trackPayload,trackResponseErrors:!!e.trackResponseErrors})}),t}(e);if(!c)return;let p=null!=(r=e.sessionReplaySampleRate)?r:0;return{applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,betaTrackActionsInShadowDom:!!e.betaTrackActionsInShadowDom,sessionReplaySampleRate:p,startSessionReplayRecordingManually:void 0!==e.startSessionReplayRecordingManually?!!e.startSessionReplayRecordingManually:0===p,traceSampleRate:null!=(n=e.traceSampleRate)?n:100,rulePsr:(0,eK.isNumber)(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:u,excludedActivityUrls:null!=(i=e.excludedActivityUrls)?i:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(null==(o=e.trackUserInteractions)||o),trackViewsManually:!!e.trackViewsManually,trackResources:!!(null==(a=e.trackResources)||a),trackResourceHeaders:function(e){let t=e.trackResourceHeaders;if(void 0===t||!1===t)return[];if(!0===t)return tb.map(e=>({name:e}));if(!Array.isArray(t))return en.display.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(0===t.length)return en.display.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];let r=[];return t.forEach((e,t)=>{(0,eN.isIndexableObject)(e)&&eV(e.name)?void 0===e.url||eV(e.url)?void 0===e.extractor||e.extractor instanceof RegExp?void 0===e.location||tE.includes(e.location)?r.push({...e,name:"string"==typeof e.name?e.name.toLowerCase():e.name}):en.display.warn(`trackResourceHeaders[${t}].location should be 'request', 'response', or 'any'`):en.display.warn(`trackResourceHeaders[${t}].extractor should be a RegExp`):en.display.warn(`trackResourceHeaders[${t}].url should be a MatchOption`):en.display.warn(`trackResourceHeaders[${t}] should be a MatchHeader object with a 'name' property`)}),r}(e),trackLongTasks:!!(null==(s=e.trackLongTasks)||s),trackBfcacheViews:!!e.trackBfcacheViews,trackEarlyRequests:!!e.trackEarlyRequests,subdomain:e.subdomain,defaultPrivacyLevel:(0,ef.objectHasValue)(tf,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:tf.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,traceContextInjection:(0,ef.objectHasValue)(tm,e.traceContextInjection)?e.traceContextInjection:tm.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:null!=(l=e.profilingSampleRate)?l:0,propagateTraceBaggage:!!e.propagateTraceBaggage,allowedGraphQlUrls:d,...c}}(e,n);if(S){if(!b&&!S.sessionStoreStrategyType)return void en.display.warn("No storage available for session. We will not send any data.");if(S.compressIntakeRequests&&!b&&t&&!(a=t(S,"Datadog RUM",M.noop)))return;l=S,ew().subscribe(M.noop),r.tryToInit(S.trackingConsent),E()}}let C=e=>{d.add(t=>t.addDurationVital(e))};return{init(t,r,n){t?((0,B.initFeatureFlags)(t.enableExperimentalFeatures),s=t,e&&eh()||(ee(t.plugins,"onInit",{initConfiguration:t,publicApi:r}),t.remoteConfigurationId?tM(t,{user:f,context:p}).then(e=>{e&&S(e,n)}).catch(_.monitorError):S(t,n))):en.display.error("Missing configuration")},get initConfiguration(){return s},getInternalContext:M.noop,stopSession:M.noop,addTiming(e,t=(0,T.timeStampNow)()){d.add(r=>r.addTiming(e,t))},setLoadingTime:e=>{d.add(t=>t.setLoadingTime(e))},startView(e,t=(0,T.clocksNow)()){let r=r=>{r.startView(e,t)};d.add(r),o||(o={options:e,callback:r},E())}
4,setViewName(e){d.add(t=>t.setViewName(e))},setViewContext(e){d.add(t=>t.setViewContext(e))},setViewContextProperty(e,t){d.add(r=>r.setViewContextProperty(e,t))},getViewContext:()=>y,globalContext:p,userContext:f,accountContext:m,addAction(e){d.add(t=>t.addAction(e))},startAction(e,t){let r=(0,T.clocksNow)();d.add(n=>n.startAction(e,t,r))},stopAction(e,t){let r=(0,T.clocksNow)();d.add(n=>n.stopAction(e,t,r))},startResource(e,t){let r=(0,T.clocksNow)();d.add(n=>n.startResource(e,t,r))},stopResource(e,t){let r=(0,T.clocksNow)();d.add(n=>n.stopResource(e,t,r))},addError(e){d.add(t=>t.addError(e))},addFeatureFlagEvaluation(e,t){d.add(r=>r.addFeatureFlagEvaluation(e,t))},startDurationVital:(e,t)=>X(n,e,t),stopDurationVital(e,t){Z(C,n,e,t)},addDurationVital:C,addOperationStepVital:(e,t,r,n)=>{d.add(i=>i.addOperationStepVital((0,w.sanitize)(e),t,(0,w.sanitize)(r),(0,w.sanitize)(n)))}}}(r,o,a,(n,i,u,c,d)=>{var p,f;let m=i&&r.createDeflateEncoder?e=>r.createDeflateEncoder(n,i,e):O.createIdentityEncoder,g=(0,N.mockable)(iw)(n,e,t,u,m,o,a,s,c,d,r.sdkName);return e.onRumStart(g.lifeCycle,n,g.session,g.viewHistory,i,g.telemetry),t.onRumStart(g.lifeCycle,g.hooks,n,g.session,g.viewHistory,m),p=l,f=g,l={init:e=>{(0,A.displayAlreadyInitializedError)("DD_RUM",e)},initConfiguration:p.initConfiguration,...f},ee(n.plugins,"onRumStart",{strategy:l,addEvent:g.addEvent,addError:g.addError}),g}),u=()=>l,c=(0,S.makePublicApi)({init:e=>{let t=Error().stack;(0,_.callMonitored)(()=>l.init(e,c,t))},setTrackingConsent:(0,_.monitor)(e=>{o.update(e),(0,h.addTelemetryUsage)({feature:"set-tracking-consent",tracking_consent:e})}),setViewName:(0,_.monitor)(e=>{l.setViewName(e),(0,h.addTelemetryUsage)({feature:"set-view-name"})}),setViewContext:(0,_.monitor)(e=>{l.setViewContext(e),(0,h.addTelemetryUsage)({feature:"set-view-context"})}),setViewContextProperty:(0,_.monitor)((e,t)=>{l.setViewContextProperty(e,t),(0,h.addTelemetryUsage)({feature:"set-view-context-property"})}),getViewContext:(0,_.monitor)(()=>((0,h.addTelemetryUsage)({feature:"set-view-context-property"}),l.getViewContext())),getInternalContext:(0,_.monitor)(e=>l.getInternalContext(e)),getInitConfiguration:(0,_.monitor)(()=>(0,E.deepClone)(l.initConfiguration)),addAction:(e,t)=>{let r=(0,C.createHandlingStack)("action");(0,_.callMonitored)(()=>{l.addAction({name:(0,w.sanitize)(e),context:(0,w.sanitize)(t),startClocks:(0,T.clocksNow)(),type:W.CUSTOM,handlingStack:r}),(0,h.addTelemetryUsage)({feature:"add-action"})})},startAction:(0,_.monitor)((e,t)=>{(!l.initConfiguration||(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.START_STOP_ACTION))&&l.startAction((0,w.sanitize)(e),{type:(0,w.sanitize)(t&&t.type),context:(0,w.sanitize)(t&&t.context),actionKey:t&&t.actionKey})}),stopAction:(0,_.monitor)((e,t)=>{(!l.initConfiguration||(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.START_STOP_ACTION))&&l.stopAction((0,w.sanitize)(e),{type:(0,w.sanitize)(t&&t.type),context:(0,w.sanitize)(t&&t.context),actionKey:t&&t.actionKey})}),startResource:(0,_.monitor)((e,t)=>{(!l.initConfiguration||(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.START_STOP_RESOURCE))&&l.startResource((0,w.sanitize)(e),{type:(0,w.sanitize)(t&&t.type),method:(0,w.sanitize)(t&&t.method),context:(0,w.sanitize)(t&&t.context),resourceKey:t&&t.resourceKey})}),stopResource:(0,_.monitor)((e,t)=>{(!l.initConfiguration||(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.START_STOP_RESOURCE))&&l.stopResource((0,w.sanitize)(e),{type:(0,w.sanitize)(t&&t.type),statusCode:t&&t.statusCode,size:t&&t.size,context:(0,w.sanitize)(t&&t.context),resourceKey:t&&t.resourceKey})}),addError:(e,t)=>{let r=(0,C.createHandlingStack)("error");(0,_.callMonitored)(()=>{l.addError({error:e,handlingStack:r,context:(0,w.sanitize)(t),startClocks:(0,T.clocksNow)()}),(0,h.addTelemetryUsage)({feature:"add-error"})})},addTiming:(0,_.monitor)((e,t)=>{l.addTiming((0,w.sanitize)(e),t)}),setViewLoadingTime:(0,_.monitor)(()=>{let e=(0,T.timeStampNow)();l.setLoadingTime(e),(0,h.addTelemetryUsage)({feature:"addViewLoadingTime"})}),setGlobalContext:(0,R.defineContextMethod)(u,b.CustomerContextKey.globalContext,b.ContextManagerMethod.setContext,"set-global-context"),getGlobalContext:(0,R.defineContextMethod)(u,b.CustomerContextKey.globalContext,b.ContextManagerMethod.getContext,"get-global-context"),setGlobalContextProperty:(0,R.defineContextMethod)(u,b.CustomerContextKey.globalContext,b.ContextManagerMethod.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:(0,R.defineContextMethod)(u,b.CustomerContextKey.globalContext,b.ContextManagerMethod.removeContextProperty,"remove-global-context-property"),clearGlobalContext:(0,R.defineContextMethod)(u,b.CustomerContextKey.globalContext,b.ContextManagerMethod.clearContext,"clear-global-context"),setUser:(0,R.defineContextMethod)(u,b.CustomerContextKey.userContext,b.ContextManagerMethod.setContext,"set-user"),getUser:(0,R.defineContextMethod)(u,b.CustomerContextKey.userContext,b.ContextManagerMethod.getContext,"get-user"),setUserProperty:(0,R.defineContextMethod)(u,b.CustomerContextKey.userContext,b.ContextManagerMethod.setContextProperty,"set-user-property"),removeUserProperty:(0,R.defineContextMethod)(u,b.CustomerContextKey.userContext,b.ContextManagerMethod.removeContextProperty,"remove-user-property"),clearUser:(0,R.defineContextMethod)(u,b.CustomerContextKey.userContext,b.ContextManagerMethod.clearContext,"clear-user"),setAccount:(0,R.defineContextMethod)(u,b.CustomerContextKey.accountContext,b.ContextManagerMethod.setContext,"set-account"),getAccount:(0,R.defineContextMethod)(u,b.CustomerContextKey.accountContext,b.ContextManagerMethod.getContext,"get-account"),setAccountProperty:(0,R.defineContextMethod)(u,b.CustomerContextKey.accountContext,b.ContextManagerMethod.setContextProperty,"set-account-property"),removeAccountProperty:(0,R.defineContextMethod)(u,b.CustomerContextKey.accountContext,b.ContextManagerMethod.removeContextProperty,"remove-account-property"),clearAccount:(0,R.defineContextMethod)(u,b.CustomerContextKey.accountContext,b.ContextManagerMethod.clearContext,"clear-account"),startView:e=>{let t=(0,C.createHandlingStack)("view");(0,_.callMonitored)(()=>{l.startView({..."object"==typeof e?e:{name:e},handlingStack:t}),(0,h.addTelemetryUsage)({feature:"start-view"})})},stopSession:(0,_.monitor)(()=>{l.stopSession(),(0,h.addTelemetryUsage)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,_.monitor)((e,t)=>{l.addFeatureFlagEvaluation((0,w.sanitize)(e),(0,w.sanitize)(t)),(0,h.addTelemetryUsage)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,_.monitor)(()=>e.getSessionReplayLink()),startSessionReplayRecording:(0,_.monitor)(t=>
4{e.start(t),(0,h.addTelemetryUsage)({feature:"start-session-replay-recording",force:t&&t.force})}),stopSessionReplayRecording:(0,_.monitor)(()=>e.stop()),addDurationVital:(e,t)=>{let r=(0,C.createHandlingStack)("vital");(0,_.callMonitored)(()=>{(0,h.addTelemetryUsage)({feature:"add-duration-vital"}),l.addDurationVital({id:F(),name:(0,w.sanitize)(e),type:J.DURATION,startClocks:(0,T.timeStampToClocks)(t.startTime),duration:t.duration,context:(0,w.sanitize)(t&&t.context),description:(0,w.sanitize)(t&&t.description),handlingStack:r})})},startDurationVital:(e,t)=>{let r=(0,C.createHandlingStack)("vital");return(0,_.callMonitored)(()=>((0,h.addTelemetryUsage)({feature:"start-duration-vital"}),l.startDurationVital((0,w.sanitize)(e),{context:(0,w.sanitize)(t&&t.context),description:(0,w.sanitize)(t&&t.description),handlingStack:r})))},stopDurationVital:(0,_.monitor)((e,t)=>{(0,h.addTelemetryUsage)({feature:"stop-duration-vital"}),l.stopDurationVital("string"==typeof e?(0,w.sanitize)(e):e,{context:(0,w.sanitize)(t&&t.context),description:(0,w.sanitize)(t&&t.description)})}),startFeatureOperation:(e,t)=>{let r=(0,C.createHandlingStack)("vital");(0,_.callMonitored)(()=>{(0,h.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"start"}),l.addOperationStepVital(e,"start",{...t,handlingStack:r})})},succeedFeatureOperation:(0,_.monitor)((e,t)=>{(0,h.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"succeed"}),l.addOperationStepVital(e,"end",t)}),failFeatureOperation:(0,_.monitor)((e,t,r)=>{(0,h.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"fail"}),l.addOperationStepVital(e,"end",r,t)})});return c}],908012),e.s([],178525)}]);

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.