PageSourceSearch

https://care.siriusxm.com/accountcenter/chunk-KATEZOHF.js

js siriusxm.com collected 2026-09-24 08:27:43 UTC 130,559 bytes, 9 lines download raw bytes

1import{a as g,b as ne,c as Ir,f as We}from"./chunk-JQMSBYWQ.js";var at={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},Ce=console,Ot={};Object.keys(at).forEach(e=>{Ot[e]=Ce[e]});var Yt="Datadog Browser SDK:",T={debug:Ot.debug.bind(Ce,Yt),log:Ot.log.bind(Ce,Yt),info:Ot.info.bind(Ce,Yt),warn:Ot.warn.bind(Ce,Yt),error:Ot.error.bind(Ce,Yt)},Xt="https://docs.datadoghq.com",Qn=`${Xt}/real_user_monitoring/browser/troubleshooting`,Rt="More details:";function Oe(e){return e!==0&&Math.random()*100<=e}function ze(e,t){return+e.toFixed(t)}function Zn(e){return Ue(e)&&e>=0&&e<=100}function Ue(e){return typeof e=="number"}var P=1e3,U=60*P,ko=60*U,Mc=24*ko,Lo=365*Mc;function Ye(e){return{relative:e,timeStamp:Dc(e)}}function ei(e){return{relative:Jt(e),timeStamp:e}}function Dc(e){let t=K()-performance.now();return t>Qt()?Math.round(Xe(t,e)):Pc(e)}function ti(){return Math.round(K()-Xe(Qt(),performance.now()))}function v(e){return Ue(e)?ze(e*1e6,0):e}function K(){return new Date().getTime()}function B(){return K()}function G(){return performance.now()}function M(){return{relative:G(),timeStamp:B()}}function Ar(){return{relative:0,timeStamp:Qt()}}function N(e,t){return t-e}function Xe(e,t){return e+t}function Jt(e){return e-Qt()}function Pc(e){return Math.round(Xe(Qt(),e))}function ri(e){return e<Lo}var wo;function Qt(){var e,t;return wo===void 0&&(wo=(t=(e=performance.timing)===null||e===void 0?void 0:e.navigationStart)!==null&&t!==void 0?t:performance.timeOrigin),wo}function ie(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let e=_dd_temp_;return delete Object.prototype._dd_temp_,typeof e!="object"&&(typeof self=="object"?e=self:typeof window=="object"?e=window:e={}),e}var z=ie(),ct="WorkerGlobalScope"in z;var Cr,oi=!1;function ni(e){Cr=e}function Mo(e){oi=e}function Uc(e,t,r){let o=r.value;r.value=function(...n){return(Cr?b(o):o).apply(this,n)}}function b(e){return function(){return pe(e,this,arguments)}}function pe(e,t,r){try{return e.apply(t,r)}catch(o){Je(o)}}function Je(e){if(Or(e),Cr)try{Cr(e)}catch(t){Or(t)}}function Or(...e){oi&&T.error("[MONITOR]",...e)}function be(e,t){let r=ie(),o;return r.Zone&&typeof r.Zone.__symbol__=="function"&&(o=e[r.Zone.__symbol__(t)]),o||(o=e[t]),o}function V(e,t){return be(ie(),"setTimeout")(b(e),t)}function q(e){be(ie(),"clearTimeout")(e)}function ye(e,t){return be(ie(),"setInterval")(b(e),t)}function Re(e){be(ie(),"clearInterval")(e)}function w(e,t,r,o,n){return se(e,t,[r],o,n)}function se(e,t,r,o,{once:n,capture:i,passive:s}={}){let a=b(d=>{!d.isTrusted&&!d.__ddIsTrusted&&!e.allowUntrustedEvents||(n&&l(),o(d))}),c=s?{capture:i,passive:s}:i,u=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,p=be(u,"addEventListener");r.forEach(d=>p.call(t,d,a,c));function l(){let d=be(u,"removeEventListener");r.forEach(m=>d.call(t,m,a,c))}return{stop:l}}function Ve(e){return g({},e)}function ut(e,t){return Object.keys(e).some(r=>e[r]===t)}function Z(e){return Object.keys(e).length===0}function Rr(e,t){let r={};for(let o of Object.keys(e))r[o]=t(e[o]);return r}var ee=(function(e){return e.TRACK_INTAKE_REQUESTS="track_intake_requests",e.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",e.FEATURE_OPERATION_VITAL="feature_operation_vital",e.SHORT_SESSION_INVESTIGATION="short_session_investigation",e.ENCODE_COOKIE_OPTIONS="encode_cookie_options",e.AVOID_FETCH_KEEPALIVE="avoid_fetch_keepalive",e})(ee||{}),Do=new Set;function Po(e){Array.isArray(e)&&ii(e.filter(t=>ut(ee,t)))}function ii(e){e.forEach(t=>{Do.add(t)})}function ae(e){return Do.has(e)}function Uo(){return Do}function Vo(e){var t;let r=(t=z.queueMicrotask)===null||t===void 0?void 0:t.bind(z);typeof r=="function"?r(b(e)):Promise.resolve().then(b(e))}var y=class{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(r=>r(t))}addObserver(t){this.observers.push(t),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(r=>t!==r),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}};function Nr(...e){return new y(t=>{let r=e.map(o=>o.subscribe(n=>t.notify(n)));return()=>r.forEach(o=>o.unsubscribe())})}var lt=class extends y{constructor(t){super(),this.maxBufferSize=t,this.buffer=[]}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(t)}
1subscribe(t){let r=!1,o={unsubscribe:()=>{r=!0,this.removeObserver(t)}};return Vo(()=>{for(let n of this.buffer){if(r)return;t(n)}r||this.addObserver(t)}),o}unbuffer(){Vo(()=>{this.maxBufferSize=this.buffer.length=0})}};var Vc=/[^\u0000-\u007F]/;function wr(e){return Vc.test(e)?window.TextEncoder!==void 0?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function Em(e){let t=e.reduce((n,i)=>n+i.length,0),r=new Uint8Array(t),o=0;for(let n of e)r.set(n,o),o+=n.length;return r}function si(e){return e>=500}function ai(e){try{return e.clone()}catch(t){return}}var fe={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};var Bc=80*1024,Gc=32,ci=20*1048576,$c=U,ui=P;function Fo(e,t,r,o,n,i){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?di(e,t,r,i,{onSuccess:()=>pi(0,t,r,o,n,i),onFailure:()=>{t.queuedPayloads.enqueue(e)||i.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),li(t,r,o,n,i)}}):t.queuedPayloads.enqueue(e)||i.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function li(e,t,r,o,n){e.transportStatus===2&&V(()=>{let i=e.queuedPayloads.first();di(i,e,t,n,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=ui,pi(1,e,t,r,o,n)},onFailure:()=>{e.currentBackoffTime=Math.min($c,e.currentBackoffTime*2),li(e,t,r,o,n)}})},e.currentBackoffTime)}function di(e,t,r,o,{onSuccess:n,onFailure:i}){t.bandwidthMonitor.add(e),r(e,s=>{t.bandwidthMonitor.remove(e),Kc(s)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:s.status},o.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),i()):(t.transportStatus=0,o.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),n())})}function pi(e,t,r,o,n,i){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(n({message:`Reached max ${o} events size queued for upload: ${ci/1048576}MiB`,source:fe.AGENT,startClocks:M()}),t.queueFullReported=!0);let s=t.queuedPayloads;for(t.queuedPayloads=mi();s.size()>0;)Fo(s.dequeue(),t,r,o,n,i)}function Kc(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||si(e.status))}function fi(){return{transportStatus:0,currentBackoffTime:ui,bandwidthMonitor:Hc(),queuedPayloads:mi(),queueFullReported:!1}}function mi(){let e=[];return{bytesCount:0,enqueue(t){return this.isFull()?!1:(e.push(t),this.bytesCount+=t.bytesCount,!0)},first(){return e[0]},dequeue(){let t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size(){return e.length},isFull(){return this.bytesCount>=ci}}}function Hc(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=Bc&&this.ongoingRequestCount<Gc},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}}}}function Qe(e,t,r){let o=new y,n=fi();return{observable:o,send:i=>{for(let s of e)Fo(i,n,(a,c)=>{ae(ee.AVOID_FETCH_KEEPALIVE)?kr(s,a,c):Wc(s,t,a,c)},s.trackType,r,o)},sendOnExit:i=>{for(let s of e)jc(s,t,i)}}}function jc(e,t,r){if(!!navigator.sendBeacon&&r.bytesCount<t)try{let n=e.build("beacon",r);if(navigator.sendBeacon(n,r.data))return}catch(n){qc(n)}kr(e,r)}var Ei=!1;function qc(e){Ei||(Ei=!0,Je(e))}function Wc(e,t,r,o){if(zc()&&r.bytesCount<t){let i=e.build("fetch-keepalive",r);fetch(i,{method:"POST",body:r.data,keepalive:!0,mode:"cors"}).then(b(s=>o?.({status:s.status,type:s.type}))).catch(b(()=>kr(e,r,o)))}else kr(e,r,o)}function kr(e,t,r){let o=e.build("fetch",t);fetch(o,{method:"POST",body:t.data,mode:"cors"}).then(b(n=>r?.({status:n.status,type:n.type}))).catch(b(()=>r?.({status:0})))}function zc(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}function Ne(){let e=Yc();if(e)return{getCapabilities(){var t;return JSON.parse(((t=e.getCapabilities)===null||t===void 0?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return(t=e.getPrivacyLevel)===null||t===void 0?void 0:t.call(e)},getAllowedWebViewHosts(){return JSON.parse(e.getAllowedWebViewHosts())},send(t,r,o){let n=o?{id:o}:void 0;e.send(JSON.stringify({eventType:t,event:r,view:n}))}}}function Lr(e){let t=Ne();return!!t&&t.getCapabilities().includes(e)}function he(e){var t;e===void 0&&(e=(t=ie().location)===null||t===void 0?void 0:t.hostname);let r=Ne();return!!r&&r.getAllowedWebViewHosts().some(o=>e===o||e.endsWith(`.${o}`))}function Yc(){return ie().DatadogEventBridge}function Mr(e,t){for(let r=e.length-1;r>=0;r-=1){let o=e[r];if(t(o,r,e))return o}}function Dr(e){return Object.values(e)}function Ze(e){return Object.entries(e)}var Fe={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Bo(e){return new y(t=>{let{stop:r}=se(e,window,["visibilitychange","freeze"],n=>{n.type==="visibilitychange"&&document.visibilityState==="hidden"?t.notify({reason:Fe.HIDDEN}):n.type==="freeze"&&t.notify({reason:Fe.FROZEN})},{capture:!0}),o=w(e,window,"beforeunload",()=>{t.notify({reason:Fe.UNLOADING})}).stop;return()=>{r(),o()}})}function Go(e){return Dr(Fe).includes(e)}function et(e,t,r){let o=r&&r.leading!==void 0?r.leading:!0,n=r&&r.trailing!==void 0?r.trailing:!0,i=!1,s,a;return{throttled:(...c)=>{if(i){s=c;return}o?e(...c):s=c,i=!0,a=V(()=>{n&&s&&e(...s),i=!1,s=void 0},t)},cancel:()=>{q(a),i=!1,s=void 0}}}function O(){}function Te(e,t,r){if(typeof e!="object"||e===null)return JSON.stringify(e);let o=dt(Object.prototype),n=dt(Array.prototype),i=dt(Object.getPrototypeOf(e)),s=dt(e);try{return JSON.stringify(e,t,r)}catch(a){return"<error: unable to serialize object>"}finally{o(),n(),i(),s()}}function dt(e){let t=e,r=t.toJSON;return r?(delete t.toJSON,()=>{t.toJSON=r}):O}function Nt({encoder:e,request:t,flushController:r,messageBytesLimit:o}){let n={},i=r.flushObservable.subscribe(l=>p(l));function s(l,d,m){r.notifyBeforeAddMessage(d),m!==void 0?(n[m]=l,r.notifyAfterAddMessage()):e.write(e.isEmpty?l:`
2${l}`,f=>{r.notifyAfterAddMessage(f-d)})}function a(l){return l!==void 0&&n[l]!==void 0}function c(l){let d=n[l];delete n[l];let m=e.estimateEncodedBytesCount(d);r.notifyAfterRemoveMessage(m)}function u(l,d){let m=Te(l),f=e.estimateEncodedBytesCount(m);if(f>=o){T.warn(`Discarded a message whose size was bigger than the maximum allowed size ${o}KB. ${Rt} ${Qn}/#technical-limitations`);return}a(d)&&c(d),s(m,f,d)}function p(l){let d=Dr(n).join(`
3`);n={};let m=Go(l.reason),f=m?t.sendOnExit:t.send;if(m&&e.isAsync){let E=e.finishSync();E.outputBytesCount&&f(gi(E));
3let _=[E.pendingData,d].filter(Boolean).join(`
4`);_&&f({data:_,bytesCount:wr(_)})}else d&&e.write(e.isEmpty?d:`
5${d}`),e.finish(E=>{f(gi(E))})}return{flushController:r,add:u,upsert:u,stop:i.unsubscribe}}function gi(e){let t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}function wt({messagesLimit:e,bytesLimit:t,durationLimit:r,pageMayExitObservable:o,sessionExpireObservable:n}){let i=o.subscribe(f=>p(f.reason)),s=n.subscribe(()=>p("session_expire")),a=new y(()=>()=>{i.unsubscribe(),s.unsubscribe()}),c=0,u=0;function p(f){if(u===0)return;let E=u,_=c;u=0,c=0,m(),a.notify({reason:f,messagesCount:E,bytesCount:_})}let l;function d(){l===void 0&&(l=V(()=>{p("duration_limit")},r))}function m(){q(l),l=void 0}return{flushObservable:a,get messagesCount(){return u},notifyBeforeAddMessage(f){c+f>=t&&p("bytes_limit"),u+=1,c+=f,d()},notifyAfterAddMessage(f=0){c+=f,u>=e?p("messages_limit"):c>=t&&p("bytes_limit")},notifyAfterRemoveMessage(f){c-=f,u-=1,u===0&&m()}}}var Xc=220*1024,Jc="$",Qc=3;function L(e,t=Xc){let r=dt(Object.prototype),o=dt(Array.prototype),n=[],i=new WeakMap,s=$o(e,Jc,void 0,n,i),a=JSON.stringify(s),c=a?a.length:0;if(c>t){Ko(t,"discarded",e);return}for(;n.length>0&&c<t;){let u=n.shift(),p=0;if(Array.isArray(u.source))for(let l=0;l<u.source.length;l++){let d=$o(u.source[l],u.path,l,n,i);if(d!==void 0?c+=JSON.stringify(d).length:c+=4,c+=p,p=1,c>t){Ko(t,"truncated",e);break}u.target[l]=d}else for(let l in u.source)if(Object.prototype.hasOwnProperty.call(u.source,l)){let d=$o(u.source[l],u.path,l,n,i);if(d!==void 0&&(c+=JSON.stringify(d).length+p+l.length+Qc,p=1),c>t){Ko(t,"truncated",e);break}u.target[l]=d}}return r(),o(),s}function $o(e,t,r,o,n){let i=tu(e);if(!i||typeof i!="object")return Zc(i);let s=Ho(i);if(s!=="[Object]"&&s!=="[Array]"&&s!=="[Error]")return s;let a=e;if(n.has(a))return`[Reference seen at ${n.get(a)}]`;let c=r!==void 0?`${t}.${r}`:t,u=Array.isArray(i)?[]:{};return n.set(a,c),o.push({source:i,target:u,path:c}),u}function Zc(e){return typeof e=="bigint"?`[BigInt] ${e.toString()}`:typeof e=="function"?`[Function] ${e.name||"unknown"}`:typeof e=="symbol"?`[Symbol] ${e.description||e.toString()}`:e}function Ho(e){try{if(e instanceof Event)return eu(e);if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;let r=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(r&&r[1])return`[${r[1]}]`}catch(t){}return"[Unserializable]"}function eu(e){return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?Ho(e.currentTarget):null,target:e.target?Ho(e.target):null}}function tu(e){let t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch(r){}return e}function Ko(e,t,r){T.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,r)}function we(e){var t,r;let o=[],n=jo(e,"stack"),i=String(e);if(n&&n.startsWith(i)&&(n=n.slice(i.length)),n&&n.split(`
6`).forEach(s=>{let a=nu(s)||su(s)||cu(s)||du(s);a&&(!a.func&&a.line&&(a.func="?"),o.push(a))}),o.length>0&&mu()&&e instanceof Error){let s=[],a=e;for(;(a=Object.getPrototypeOf(a))&&yi(a);){let c=((t=a.constructor)===null||t===void 0?void 0:t.name)||"?";s.push(c)}for(let c=s.length-1;c>=0&&((r=o[0])===null||r===void 0?void 0:r.func)===s[c];c--)o.shift()}return{message:jo(e,"message"),name:jo(e,"name"),stack:o}}var Si="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",kt="(?::(\\d+))",ru=new RegExp(`^\\s*at (.*?) ?\\(${Si}${kt}?${kt}?\\)?\\s*$`,"i"),ou=new RegExp(`\\((\\S*)${kt}${kt}\\)`);function nu(e){let t=ru.exec(e);if(!t)return;let r=t[2]&&t[2].indexOf("native")===0,o=t[2]&&t[2].indexOf("eval")===0,n=ou.exec(t[2]);return o&&n&&(t[2]=n[1],t[3]=n[2],t[4]=n[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]}}var iu=new RegExp(`^\\s*at ?${Si}${kt}?${kt}??\\s*$`,"i");function su(e){let t=iu.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:"?",line:t[2]?+t[2]:void 0,url:t[1]}}var au=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function cu(e){let t=au.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:+t[3],url:t[2]}}
6var uu=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,lu=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function du(e){let t=uu.exec(e);if(!t)return;let r=t[3]&&t[3].indexOf(" > eval")>-1,o=lu.exec(t[3]);return r&&o&&(t[3]=o[1],t[4]=o[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]}}function jo(e,t){if(typeof e!="object"||!e||!(t in e))return;let r=e[t];return typeof r=="string"?r:void 0}function bi(e,t,r,o){if(t===void 0)return;let{name:n,message:i}=fu(e);return{name:n,message:i,stack:[{url:t,column:o,line:r}]}}var pu=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function fu(e){let t,r;return{}.toString.call(e)==="[object String]"&&([,t,r]=pu.exec(e)),{name:t,message:r}}function yi(e){return String(e.constructor).startsWith("class ")}var Pr;function mu(){if(Pr!==void 0)return Pr;class e extends Error{constructor(){super(),this.name="Error"}}let[t,r]=[e,Error].map(o=>new o);return Pr=yi(Object.getPrototypeOf(t))&&r.stack!==t.stack,Pr}function pt(e){let r=new Error(e);r.name="HandlingStack";let o;return pe(()=>{let n=we(r);n.stack=n.stack.slice(2),o=tt(n)}),o}function tt(e){let t=qo(e);return e.stack.forEach(r=>{let o=r.func==="?"?"<anonymous>":r.func,n=r.args&&r.args.length>0?`(${r.args.join(", ")})`:"",i=r.line?`:${r.line}`:"",s=r.line&&r.column?`:${r.column}`:"";t+=`
7  at ${o}${n} @ ${r.url}${i}${s}`}),t}function qo(e){return`${e.name||"Error"}: ${e.message}`}var Ur="No stack, consider using an instance of Error";function ft({stackTrace:e,originalError:t,handlingStack:r,componentStack:o,startClocks:n,nonErrorPrefix:i,useFallbackStack:s=!0,source:a,handling:c}){let u=ve(t);return!e&&u&&(e=we(t)),{startClocks:n,source:a,handling:c,handlingStack:r,componentStack:o,originalError:t,type:e?e.name:void 0,message:Eu(e,u,i,t),stack:e?tt(e):s?Ur:void 0,causes:u?yu(t,a):void 0,fingerprint:gu(t),context:Su(t)}}function Eu(e,t,r,o){return e?.message&&e?.name?e.message:t?"Empty message":`${r} ${Te(L(o))}`}function gu(e){return ve(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function Su(e){if(e!==null&&typeof e=="object"&&"dd_context"in e)return e.dd_context}function bu(e){var t;return(t=/@ (.+)/.exec(e))===null||t===void 0?void 0:t[1]}function ve(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function yu(e,t){let r=e,o=[];for(;ve(r?.cause)&&o.length<10;){let n=we(r.cause);o.push({message:r.cause.message,source:t,type:n?.name,stack:n&&tt(n)}),r=r.cause}return o.length?o:void 0}var Tu=200;function Vr(e){let{env:t,service:r,version:o,datacenter:n,sdkVersion:i,variant:s}=e,a=[Lt("sdk_version",i??"6.23.0")];return t&&a.push(Lt("env",t)),r&&a.push(Lt("service",r)),o&&a.push(Lt("version",o)),n&&a.push(Lt("datacenter",n)),s&&a.push(Lt("variant",s)),a}function Lt(e,t){let r=t?`${e}:${t}`:e;return(r.length>Tu||xu(r))&&T.warn(`Tag ${r} doesn't meet tag requirements and will be sanitized. ${Rt} ${Xt}/getting_started/tagging/#defining-tags`),_u(r)}function _u(e){return e.replace(/,/g,"_")}function xu(e){return hu()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e):!1}function hu(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}var Fr="datad0g.com",Ti="dd0g-gov.com",ke="datadoghq.com",_i="datadoghq.eu",xi="ddog-gov.com",hi="pci.browser-intake-datadoghq.com",vi=["ddsource","dd-api-key","dd-request-id"];function er(e,t){let r=z.__ddBrowserSdkExtensionCallback;r&&r({type:e,payload:t})}function me(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Br(e,t,r=vu()){if(t===void 0)return e;if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let n=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,n)}if(r.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){let n=Array.isArray(e)?e:[];for(let i=0;i<t.length;++i)n[i]=Br(n[i],t[i],r);return n}let o=me(e)==="object"?e:{};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=Br(o[n],t[n],r));return o}function Mt(e){return Br(void 0,e)}function Y(...e){let t;for(let r of e)r!=null&&(t=Br(t,r));return t}function vu(){if(typeof WeakSet<"u"){let t=new WeakSet;return{hasAlreadyBeenSeen(r){let o=t.has(r);return o||t.add(r),o}}}let e=[];return{hasAlreadyBeenSeen(t){let r=e.indexOf(t)>=0;return r||e.push(t),r}}}function Gr(){var e;let t=z.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:(e=t.connection)===null||e===void 0?void 0:e.effectiveType}}var ce="DISCARDED",H="SKIPPED";function Ii(){let e={};return{register(t,r){return e[t]||(e[t]=[]),e[t].push(r),{unregister:()=>{e[t]=e[t].filter(o=>o!==r)}}},triggerHook(t,r){let o=e[t]||[],n=[];for(let i of o){let s=i(r);if(s===ce)return ce;s!==H&&n.push(s)}return Y(...n)}}}var Be={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"};var Iu=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],Au=1,Cu=[xi],Wo;function mt(){return Wo||(Wo=new lt(100)),Wo}function $r(e,t,r,o,n,i){let s=new y,{stop:a}=Ru(t,o,n,i,s),{enabled:c,metricsEnabled:u}=Ou(e,t,r,s);return{stop:a,enabled:c,metricsEnabled:u}}function Ou(e,t,r,o,n=Au){let i={},s=!Cu.includes(t.site)&&Oe(t.telemetrySampleRate),a={[Be.LOG]:s,[Be.CONFIGURATION]:s&&Oe(t.telemetryConfigurationSampleRate),[Be.USAGE]:s&&Oe(t.telemetryUsageSampleRate),metric:s&&Oe(n)},c=Nu(),u=mt();return u.subscribe(({rawEvent:l,metricName:d})=>{if(d&&!a.metric||!a[l.type])return;let m=d||l.status||l.type,f=i[m];if(f||(f=i[m]=new Set),f.size>=t.maxTelemetryEventsPerPage)return;let E=Te(l);
7if(f.has(E))return;let _=r.triggerHook(1,{startTime:M().relative});if(_===ce)return;let R=p(_,e,l,c);o.notify(R),er("telemetry",R),f.add(E)}),u.unbuffer(),ni(zo),{enabled:s,metricsEnabled:a.metric};function p(l,d,m,f){let _={type:"telemetry",date:M().timeStamp,service:d,version:"6.23.0",source:"browser",_dd:{format_version:2},telemetry:Y(m,{runtime_env:f,connectivity:Gr(),sdk_setup:"npm"}),ddtags:Vr(t).join(","),experimental_features:Array.from(Uo())};return Y(_,l)}}function Ru(e,t,r,o,n){let i=[];if(he()){let s=Ne(),a=n.subscribe(c=>s.send("internal_telemetry",c));i.push(a.unsubscribe)}else{let s=[e.rumEndpointBuilder];e.replica&&wu(e)&&s.push(e.replica.rumEndpointBuilder);let a=Nt({encoder:o(4),request:Qe(s,e.batchBytesLimit,t),flushController:wt({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:r,sessionExpireObservable:new y}),messageBytesLimit:e.messageBytesLimit});i.push(a.stop);let c=n.subscribe(a.add);i.push(c.unsubscribe)}return{stop:()=>i.forEach(s=>s())}}function Nu(){var e;return{is_local_file:((e=z.location)===null||e===void 0?void 0:e.protocol)==="file:",is_worker:ct}}function wu(e){return e.site===Fr}function Ie(e,t){Or(at.debug,e,t),mt().notify({rawEvent:g({type:Be.LOG,message:e,status:"debug"},t)})}function zo(e,t){mt().notify({rawEvent:g(g({type:Be.LOG,status:"error"},ku(e)),t)})}function Kr(e){mt().notify({rawEvent:{type:Be.CONFIGURATION,configuration:e}})}function rt(e,t){mt().notify({rawEvent:g({type:Be.LOG,message:e,status:"debug"},t),metricName:e})}function $(e){mt().notify({rawEvent:{type:Be.USAGE,usage:e}})}function ku(e){if(ve(e)){let t=we(e);return{error:{kind:t.name,stack:tt(Lu(t))},message:t.message}}return{error:{stack:Ur},message:`Uncaught ${Te(e)}`}}function Lu(e){return e.stack=e.stack.filter(t=>!t.url||Iu.some(r=>t.url.startsWith(r))),e}function Hr(e,t){return(...r)=>{try{return e(...r)}catch(o){T.error(t,o)}}}function D(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):`10000000-1000-4000-8000-${1e11}`.replace(/[018]/g,D)}var Dt=/([\w-]+)\s*=\s*([^;]+)/g;function ot(e,t){for(Dt.lastIndex=0;;){let r=Dt.exec(e);if(r){if(r[1]===t)return r[2]}else break}}function Ai(e){let t=new Map;for(Dt.lastIndex=0;;){let r=Dt.exec(e);if(r){let o=r[1],n=r[2];t.has(o)?t.get(o).push(n):t.set(o,[n])}else break}return t}function Ci(e){let t=new Map;for(Dt.lastIndex=0;;){let r=Dt.exec(e);if(r)t.set(r[1],r[2]);else break}return t}function Pt(e,t,r=""){let o=e.charCodeAt(t-1),i=o>=55296&&o<=56319?t+1:t;return e.length<=i?e:`${e.slice(0,i)}${r}`}function Oi(){return Ri()===0}function QE(){return Ri()===1}var jr;function Ri(){return jr??(jr=Du())}function Du(e=window){var t;let r=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(r)?0:((t=e.navigator.vendor)===null||t===void 0?void 0:t.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?1:2}function Ut(e){return tr(e,location.href).href}function Ni(e){try{return!!tr(e)}catch(t){return!1}}function wi(e){let t=tr(e).pathname;return t[0]==="/"?t:`/${t}`}function tr(e,t){let{URL:r}=Pu();try{return t!==void 0?new r(e,t):new r(e)}catch(o){throw new Error(`Failed to construct URL: ${String(o)}`)}}var Yo;function Pu(){if(!Yo){let e,t;try{e=document.createElement("iframe"),e.style.display="none",document.body.appendChild(e),t=e.contentWindow}catch(r){t=z}Yo={URL:t.URL},e?.remove()}return Yo}function Vt(e,t,r=0,o){let n=new Date;n.setTime(n.getTime()+r);let i=`expires=${n.toUTCString()}`,s=o&&o.crossSite?"none":"strict",a=o&&o.domain?`;domain=${o.domain}`:"",c=o&&o.secure?";secure":"",u=o&&o.partitioned?";partitioned":"";document.cookie=`${e}=${t};${i};path=/;samesite=${s}${a}${c}${u}`}function Et(e){return ot(document.cookie,e)}function ki(e){return Ai(document.cookie).get(e)||[]}var Xo;function _e(e){return Xo||(Xo=Ci(document.cookie)),Xo.get(e)}function Qo(e,t){Vt(e,"",0,t)}function Zo(e){if(document.cookie===void 0||document.cookie===null)return!1;try{let t=`dd_cookie_test_${D()}`,r="test";Vt(t,r,U,e);let o=Et(t)===r;return Qo(t,e),o}catch(t){return T.error(t),!1}}var Jo;function qr(e=location.hostname,t=document.referrer){if(Jo===void 0){let r=Uu(e,t);if(r){let o=`dd_site_test_${D()}`,n="test",i=r.split("."),s=i.pop();for(;i.length&&!Et(o);)s=`${i.pop()}.${s}`,Vt(o,n,P,{domain:s});Qo(o,{domain:s}),Jo=s}}return Jo}function Uu(e,t){try{return e||tr(t).hostname}catch(r){}}var Ee="_dd_s";
7var re=4*ko,Wr=15*U,Li=Lo,rr="0",Ae={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"};var en=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function Mi(e){return!!e&&(e.indexOf("&")!==-1||en.test(e))}var Vu="1";function Le(e,t){let r={isExpired:Vu};return t.trackAnonymousUser&&e?.anonymousId&&(r.anonymousId=e?.anonymousId),r}function or(e){return Z(e)}function zr(e){return!or(e)}function gt(e){return e.isExpired!==void 0||!Fu(e)}function Fu(e){return(e.created===void 0||K()-Number(e.created)<re)&&(e.expire===void 0||K()<Number(e.expire))}function Yr(e){e.expire=String(K()+Wr)}function nr(e){return Ze(e).map(([t,r])=>t==="anonymousId"?`aid=${r}`:`${t}=${r}`).join("&")}function St(e){let t={};return Mi(e)&&e.split("&").forEach(r=>{let o=en.exec(r);if(o!==null){let[,n,i]=o;n==="aid"?t.anonymousId=i:t[n]=i}}),t}var Bu="_dd",Gu="_dd_r",$u="_dd_l",Ku="rum",Hu="logs";function Pi(e){if(!_e(Ee)){let r=_e(Bu),o=_e(Gu),n=_e($u),i={};r&&(i.id=r),n&&/^[01]$/.test(n)&&(i[Hu]=n),o&&/^[012]$/.test(o)&&(i[Ku]=o),zr(i)&&(Yr(i),e.persistSession(i))}}var ju=0;function tn(e){let t=qu(e);return t&&Zo(t)?{type:Ae.COOKIE,cookieOptions:t}:void 0}function Vi(e,t){let r={isLockEnabled:Oi(),persistSession:o=>Ui(t,e,o,Wr),retrieveSession:()=>rn(t),expireSession:o=>Ui(t,e,Le(o,e),re)};return Pi(r),r}function Ui(e,t,r,o){let n=nr(r);ae(ee.ENCODE_COOKIE_OPTIONS)&&(n=nr(g(g({},r),Z(r)?{}:{c:Fi(e)}))),Vt(Ee,n,t.trackAnonymousUser?Li:o,e)}function rn(e){if(ae(ee.ENCODE_COOKIE_OPTIONS))return Wu(e);let t=Et(Ee);return St(t)}function qu(e){let t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){let r=qr();if(!r)return;t.domain=r}return t}function Fi(e){let t=e.domain?e.domain.split(".").length-1:0,r=0;return r|=ju<<5,r|=t<<1,r|=e.crossSite?1:0,r.toString(16)}function Wu(e){let t=ki(Ee),r=Fi(e),o;for(let n of t.reverse())if(o=St(n),o.c===r)break;return o==null||delete o.c,o??{}}var zu="_dd_test_";function on(){try{let e=D(),t=`${zu}${e}`;localStorage.setItem(t,e);let r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:Ae.LOCAL_STORAGE}:void 0}catch(e){return}}function Bi(e){return{isLockEnabled:!1,persistSession:Gi,retrieveSession:nn,expireSession:t=>Yu(t,e)}}function Gi(e){localStorage.setItem(Ee,nr(e))}function nn(){let e=localStorage.getItem(Ee);return St(e)}function Yu(e,t){Gi(Le(e,t))}var Xu=10,Ju=100,Qu=P,Ki="--",Hi=[],Jr;function nt(e,t,r=0){var o;let{isLockEnabled:n,persistSession:i,expireSession:s}=t,a=d=>i(ne(g({},d),{lock:u})),c=()=>{let f=t.retrieveSession(),{lock:d}=f;return{session:Ir(f,["lock"]),lock:d&&!el(d)?d:void 0}};if(Jr||(Jr=e),e!==Jr){Hi.push(e);return}if(n&&r>=Ju){$i(t);return}let u,p=c();if(n){if(p.lock){Xr(e,t,r);return}if(u=Zu(),a(p.session),p=c(),p.lock!==u){Xr(e,t,r);return}}let l=e.process(p.session);if(n&&(p=c(),p.lock!==u)){Xr(e,t,r);return}if(l&&(gt(l)?s(l):(Yr(l),n?a(l):i(l))),n&&!(l&&gt(l))){if(p=c(),p.lock!==u){Xr(e,t,r);return}i(p.session),l=p.session}(o=e.after)===null||o===void 0||o.call(e,l||p.session),$i(t)}function Xr(e,t,r){V(()=>{nt(e,t,r+1)},Xu)}function $i(e){Jr=void 0;let t=Hi.shift();t&&nt(t,e)}function Zu(){return D()+Ki+B()}function el(e){let[,t]=e.split(Ki);return!t||N(Number(t),B())>Qu}var ji=P;function qi(e){switch(e.sessionPersistence){case Ae.COOKIE:return tn(e);case Ae.LOCAL_STORAGE:return on();case void 0:{let t=tn(e);return!t&&e.allowFallbackToLocalStorage&&(t=on()),t}default:T.error(`Invalid session persistence '${String(e.sessionPersistence)}'`)}}function tl(e,t){return e.type===Ae.COOKIE?Vi(t,e.cookieOptions):Bi(t)}function Wi(e,t,r,o,n=tl(e,t)){let i=new y,s=new y,a=new y,c=ye(m,ji),u;E();let{throttled:p,cancel:l}=et(()=>{nt({process:S=>{if(or(S))return;let k=f(S);return _(k),k},after:S=>{zr(S)&&!R()&&x(S),u=S}},n)},ji);function d(){nt({process:S=>R()?f(S):void 0},n)}function m(){let S=n.retrieveSession();gt(S)?nt({process:k=>gt(k)?Le(k,t):void 0,after:f},n):f(S)}function f(S){return gt(S)&&(S=Le(S,t)),R()&&(F(S)?le():(a.notify({previousState:u,newState:S}),u=S)),S}function E(){nt({process:S=>{if(or(S))return S.anonymousId=D(),Le(S,t)},after:S=>{u=S}},n)}function _(S){if(or(S))return!1;let k=o(S[r]);S[r]=k,delete S.isExpired,k!==rr&&!S.id&&(S.id=D(),S.created=String(K()))}function R(){return u?.[r]!==void 0}function F(S){return u.id!==S.id||u[r]!==S[r]}function le(){u=Le(u,t),s.notify()}function x(S){u=S,i.notify()}function A(S){nt({process:k=>
7g(g({},k),S),after:f},n)}return{expandOrRenewSession:p,expandSession:d,getSession:()=>u,renewObservable:i,expireObservable:s,sessionStateUpdateObservable:a,restartSession:E,expire:S=>{l(),S===!1&&u&&delete u.anonymousId,n.expireSession(u),f(Le(u,t))},stop:()=>{Re(c)},updateSessionState:A}}var ir={GRANTED:"granted",NOT_GRANTED:"not-granted"};function sn(e){let t=new y;return{tryToInit(r){e||(e=r)},update(r){e=r,t.notify()},isGranted(){return e===ir.GRANTED},observable:t}}function bt(e){let t=me(e);return t==="string"||t==="function"||e instanceof RegExp}function it(e,t,r=!1){return e.some(o=>{try{if(typeof o=="function")return o(t);if(o instanceof RegExp)return o.test(t);if(typeof o=="string")return r?t.startsWith(o):o===t}catch(n){T.error(n)}return!1})}var rl=["chrome-extension://","moz-extension://"];function zi(e){return rl.some(t=>e.includes(t))}function Yi(e,t=""){if(zi(e))return!1;let o=t.split(`
8`).filter(n=>{let i=n.trim();return i.length&&/^at\s+|@/.test(i)})[1]||"";return zi(o)}var ol="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",nl="SDK initialized on a non-allowed domain.";function Xi(e,t,r=typeof location<"u"?location.origin:""){let o=e.allowedTrackingOrigins;if(!o)return Yi(r,t)?(T.error(ol),!1):!0;let n=it(o,r);return n||T.error(nl),n}function Ge(e,t,r){let o=il(e,t);return{build(n,i){let s=sl(e,t,n,i,r);return o(s)},trackType:t}}function il(e,t){let r=`/api/v2/${t}`,o=e.proxy;if(typeof o=="string"){let i=Ut(o);return s=>`${i}?ddforward=${encodeURIComponent(`${r}?${s}`)}`}if(typeof o=="function")return i=>o({path:r,parameters:i});let n=sr(t,e);return i=>`https://${n}${r}?${i}`}function sr(e,t){let{site:r=ke,internalAnalyticsSubdomain:o}=t;if(e==="logs"&&t.usePciIntake&&r===ke)return hi;if(o&&r===ke)return`${o}.${ke}`;if(r===Ti)return`http-intake.logs.${r}`;let n=r.split("."),i=n.pop();return`browser-intake-${n.join("-")}.${i}`}function sl({clientToken:e,internalAnalyticsSubdomain:t,source:r="browser"},o,n,{retry:i,encoding:s},a=[]){let c=[`ddsource=${r}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.23.0")}`,"dd-evp-origin=browser",`dd-request-id=${D()}`].concat(a);return s&&c.push(`dd-evp-encoding=${s}`),o==="rum"&&(c.push(`batch_time=${B()}`,`_dd.api=${n}`),i&&c.push(`_dd.retry_count=${i.count}`,`_dd.retry_after=${i.lastFailureStatus}`)),t&&c.reverse(),c.join("&")}function an(e){let t=e.site||ke,r=al(e.source),o=cl(ne(g({},e),{site:t,source:r})),n=ul(ne(g({},e),{site:t,source:r}));return g({replica:n,site:t,source:r},o)}function al(e){return e==="flutter"||e==="unity"?e:"browser"}function cl(e){return{logsEndpointBuilder:Ge(e,"logs"),rumEndpointBuilder:Ge(e,"rum"),profilingEndpointBuilder:Ge(e,"profile"),sessionReplayEndpointBuilder:Ge(e,"replay"),exposuresEndpointBuilder:Ge(e,"exposures")}}function ul(e){if(!e.replica)return;let t=ne(g({},e),{site:ke,clientToken:e.replica.clientToken});return{logsEndpointBuilder:Ge(t,"logs"),rumEndpointBuilder:Ge(t,"rum",[`application.id=${e.replica.applicationId}`])}}function Qr(e){return vi.every(t=>e.includes(t))}var Me={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},yt={ALL:"all",SAMPLED:"sampled"};function cn(e,t){return e!=null&&typeof e!="string"?(T.error(`${t} must be defined as a string`),!1):!0}function ll(e){return e&&typeof e=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(e)?(T.error(`Site should be a valid Datadog site. ${Rt} ${Xt}/getting_started/site/.`),!1):!0}function $e(e,t){return e!==void 0&&!Zn(e)?(T.error(`${t} Sample Rate should be a number between 0 and 100`),!1):!0}function Zr(e,t){var r,o,n,i,s,a,c,u,p,l;if(!e||!e.clientToken){T.error("Client Token is not configured, we will not send any data.");return}if(e.allowedTrackingOrigins!==void 0&&!Array.isArray(e.allowedTrackingOrigins)){T.error("Allowed Tracking Origins must be an array");return}if(!(!ll(e.site)||!$e(e.sessionSampleRate,"Session")||!$e(e.telemetrySampleRate,"Telemetry")||!$e(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!$e(e.telemetryUsageSampleRate,"Telemetry Usage")||!cn(e.version,"Version")||!cn(e.env,"Env")||!cn(e.service,"Service")||!Xi(e,t??""))){if(e.trackingConsent!==void 0&&!ut(ir,e.trackingConsent)){T.error('Tracking Consent should be either "granted" or "not-granted"');return}return g({beforeSend:e.beforeSend&&Hr(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:ct?void 0:qi(e),sessionSampleRate:(r=e.sessionSampleRate)!==null&&r!==void 0?r:100,telemetrySampleRate:(o=e.telemetrySampleRate)!==null&&o!==void 0?o:20,telemetryConfigurationSampleRate:(n=e.telemetryConfigurationSampleRate)!==null&&n!==void 0?n:5,telemetryUsageSampleRate:(i=e.telemetryUsageSampleRate)!==null&&i!==void 0?i:5,service:(s=e.service)!==null&&s!==void 0?s:void 0,env:(a=e.env)!==null&&a!==void 0?a:void 0,version:(c=e.version)!==null&&c!==void 0?c:void 0,datacenter:(u=e.datacenter)!==null&&u!==void 0?u:void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:(p=e.trackingConsent)!==null&&p!==void 0?p:ir.GRANTED,trackAnonymousUser:(l=e.trackA
8nonymousUser)!==null&&l!==void 0?l:!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*1024,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*P,batchMessagesLimit:ct?1:50,messageBytesLimit:256*1024,variant:e.variant,sdkVersion:e.sdkVersion},an(e))}}function eo(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackAnonymousUser,session_persistence:e.sessionPersistence,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins),source:e.source,sdk_version:e.sdkVersion,variant:e.variant}}function te(e,t,r,{computeHandlingStack:o}={}){let n=e[t];if(typeof n!="function")if(t in e&&t.startsWith("on"))n=O;else return{stop:O};let i=!1,s=function(){if(i)return n.apply(this,arguments);let a=Array.from(arguments),c;pe(r,null,[{target:this,parameters:a,onPostCall:p=>{c=p},handlingStack:o?pt("instrumented method"):void 0}]);let u=n.apply(this,a);return c&&pe(c,null,[u]),u};return e[t]=s,{stop:()=>{i=!0,e[t]===s&&(e[t]=n)}}}function dl(e,t,r){let o=Object.getOwnPropertyDescriptor(e,t);if(!o||!o.set||!o.configurable)return{stop:O};let n=O,i=(a,c)=>{V(()=>{i!==n&&r(a,c)},0)},s=function(a){o.set.call(this,a),i(this,a)};return Object.defineProperty(e,t,{set:s}),{stop:()=>{var a;((a=Object.getOwnPropertyDescriptor(e,t))===null||a===void 0?void 0:a.set)===s&&Object.defineProperty(e,t,o),i=n}}}function Ji(){return new y(e=>{let t=(n,i)=>{let s=ft({stackTrace:i,originalError:n,startClocks:M(),nonErrorPrefix:"Uncaught",source:fe.SOURCE,handling:"unhandled"});e.notify(s)},{stop:r}=pl(t),{stop:o}=fl(t);return()=>{r(),o()}})}function pl(e){return te(ie(),"onerror",({parameters:[t,r,o,n,i]})=>{let s;ve(i)||(s=bi(t,r,o,n)),e(i??t,s)})}function fl(e){return te(ie(),"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")})}function un(e){let t=g({version:"6.23.0",onReady(r){r()}},e);return Object.defineProperty(t,"_setDebug",{get(){return Mo},enumerable:!1}),t}function ml(e,t,r){let o=e[t];o&&!o.q&&o.version&&T.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=r,o&&o.q&&o.q.forEach(n=>Hr(n,"onReady callback threw an error:")())}function ar(e,t){t.silentMultipleInit||T.error(`${e} is already initialized.`)}var Tt={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function ln(e,t){let r=[];t.includes(Tt.cspViolation)&&r.push(gl(e));let o=t.filter(n=>n!==Tt.cspViolation);return o.length&&r.push(El(o)),Nr(...r)}function El(e){return new y(t=>{if(!window.ReportingObserver)return;let r=b((n,i)=>n.forEach(s=>t.notify(Sl(s)))),o=new window.ReportingObserver(r,{types:e,buffered:!0});return o.observe(),()=>{o.disconnect()}})}function gl(e){return new y(t=>{let{stop:r}=w(e,document,"securitypolicyviolation",o=>{t.notify(bl(o))});return r})}function Sl(e){let{type:t,body:r}=e;return Qi({type:r.id,message:`${t}: ${r.message}`,originalError:e,stack:Zi(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}function bl(e){let t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return Qi({type:e.effectiveDirective,message:`${Tt.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:Zi(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${Pt(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function Qi(e){return g({startClocks:M(),source:fe.REPORT,handling:"unhandled"},e)}function Zi(e,t,r,o,n){return r?tt({name:e,message:t,stack:[{func:"?",url:r,line:o??void 0,column:n??void 0}]}):void 0}function db(e){let t=new Set;return e.forEach(r=>t.add(r)),Array.from(t)}function to(e,t){let r=e.indexOf(t);r>=0&&e.splice(r,1)}function Ft(e){return Array.isArray(e)&&e.length>0}var ro=1/0,es=U,cr=null,oo=new Set;
8function yl(){oo.forEach(e=>e())}function ge({expireDelay:e,maxEntries:t}){let r=[];cr||(cr=ye(()=>yl(),es));let o=()=>{let p=G()-e;for(;r.length>0&&r[r.length-1].endTime<p;)r.pop()};oo.add(o);function n(p,l){let d={value:p,startTime:l,endTime:ro,remove:()=>{to(r,d)},close:m=>{d.endTime=m}};return t&&r.length>=t&&r.pop(),r.unshift(d),d}function i(p=ro,l={returnInactive:!1}){for(let d of r)if(d.startTime<=p){if(l.returnInactive||p<=d.endTime)return d.value;break}}function s(p){let l=r[0];l&&l.endTime===ro&&l.close(p)}function a(p=ro,l=0){let d=Xe(p,l);return r.filter(m=>m.startTime<=d&&p<=m.endTime).map(m=>m.value)}function c(){r=[]}function u(){oo.delete(o),oo.size===0&&cr&&(Re(cr),cr=null)}return{add:n,find:i,closeActive:s,findAll:a,reset:c,stop:u}}var Tl="datadog-synthetics-public-id",_l="datadog-synthetics-result-id",xl="datadog-synthetics-injects-rum";function ur(){return ct?!1:!!(z._DATADOG_SYNTHETICS_INJECTS_RUM||_e(xl))}function no(){let e=window._DATADOG_SYNTHETICS_PUBLIC_ID||_e(Tl);return typeof e=="string"?e:void 0}function io(){let e=window._DATADOG_SYNTHETICS_RESULT_ID||_e(_l);return typeof e=="string"?e:void 0}function lr(){return!!(no()&&io())}var hl=U,vl=re,_t=[];function dn(e,t,r,o){let n=new y,i=new y,s=Wi(e.sessionStoreStrategyType,e,t,r);_t.push(()=>s.stop());let a=ge({expireDelay:vl});if(_t.push(()=>a.stop()),s.renewObservable.subscribe(()=>{a.add(c(),G()),n.notify()}),s.expireObservable.subscribe(()=>{i.notify(),a.closeActive(G())}),s.expandOrRenewSession(),a.add(c(),Ar().relative),ae(ee.SHORT_SESSION_INVESTIGATION)){let u=s.getSession();u&&Rl(e,u)}o.observable.subscribe(()=>{o.isGranted()?s.expandOrRenewSession():s.expire(!1)}),Il(e,()=>{o.isGranted()&&s.expandOrRenewSession()}),Al(e,()=>s.expandSession()),Cl(e,()=>s.restartSession());function c(){let u=s.getSession();return u?{id:u.id,trackingType:u[t],isReplayForced:!!u.forcedReplay,anonymousId:u.anonymousId}:(Ol(e).catch(()=>{}),{id:"invalid",trackingType:rr,isReplayForced:!1,anonymousId:void 0})}return{findSession:(u,p)=>a.find(u,p),renewObservable:n,expireObservable:i,sessionStateUpdateObservable:s.sessionStateUpdateObservable,expire:s.expire,updateSessionState:s.updateSessionState}}function Il(e,t){let{stop:r}=se(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0});_t.push(r)}function Al(e,t){let r=()=>{document.visibilityState==="visible"&&t()},{stop:o}=w(e,document,"visibilitychange",r);_t.push(o);let n=ye(r,hl);_t.push(()=>{Re(n)})}function Cl(e,t){let{stop:r}=w(e,window,"resume",t,{capture:!0});_t.push(r)}function Ol(e){return We(this,null,function*(){let t=e.sessionStoreStrategyType;if(!t)return;let r,o;t.type===Ae.COOKIE?(r=rn(t.cookieOptions),o={cookie:yield ts(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):r=nn(),Ie("Unexpected session state",g({sessionStoreStrategyType:t.type,session:r,isSyntheticsTest:lr(),createdTimestamp:r?.created,expireTimestamp:r?.expire},o))})}function Rl(e,t){if(!window.cookieStore||!t.created)return;let r=Number(t.created),o=K(),{stop:n}=w(e,cookieStore,"change",i);_t.push(n);function i(s){let a=Mr(s.changed,u=>u.name===Ee);if(!a)return;let c=K()-r;if(c>14*U)n();else{let u=St(a.value);if(u.id&&u.id!==t.id){n();let p=K()-o;ts().then(l=>{Ie("Session cookie changed",{time:p,session_age:c,old:t,new:u,cookie:l})}).catch(Je)}}}}function ts(){return We(this,null,function*(){let e;return"cookieStore"in window?e=yield window.cookieStore.getAll(Ee):e=document.cookie.split(/\s*;\s*/).filter(t=>t.startsWith(Ee)),g({count:e.length,domain:qr()||"undefined"},e)})}function pn(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(r,o){let n=wr(r);t+=n,e+=r,o&&o(n)},finish(r){r(this.finishSync())},finishSync(){let r={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,r},estimateEncodedBytesCount(r){return r.length}}}var dr=class{constructor(){this.callbacks={}}notify(t,r){let o=this.callbacks[t];o&&o.forEach(n=>n(r))}subscribe(t,r){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(r),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(o=>r!==o)}}}};function so(e,t,r){let o=0,n=!1;return{isLimitReached(){if(o===0&&V(()=>{o=0},U),o+=1,o<=t||n)return n=!1,!1;if(o===t+1){n=!0;try{r({message:`Reached max number of ${e}s by minute: ${t}`,source:fe.AGENT,startClocks:M()})}finally{n=!1}}return!0}}}function Bt(e,t,r){return document.readyState===t||document.readyState==="complete"?(r(),{stop:O}):w(e,window,t==="complete"?"load":"DOMContentLoaded",r,{once:!0})}function Nl(e,t){return new Promise(r=>{Bt(e,t,r)})}var fn,mn=new WeakMap;function En(e){return fn||(fn=wl(e)),fn}function wl(e){return new y(t=>{let{stop:r}=te(XMLHttpRequest.prototype,"open",kl),{stop:o}=te(XMLHttpRequest.prototype,"send",i=>{Ll(i,e,t)},{computeHandlingStack:!0}),{stop:n}=te(XMLHttpRequest.prototype,"abort",Ml);return()=>{r(),o(),n()}})}function kl({target:e,parameters:[t,r]}){mn.set(e,{state:"open",method:String(t).toUpperCase(),url:Ut(String(r))})}function Ll({target:e,parameters:[t],handlingStack:r},o,n){let i=mn.get(e);if(!i)return;let s=i;s.state="start",s.startClocks=M(),s.isAborted=!1,s.xhr=e,s.handlingStack=r,s.body=t;let a=!1,{stop:c}=te(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&u()}),u=()=>{if(p(),c(),a)return;a=!0;let l=i;l.state="complete",l.duration=N(s.startClocks.timeStamp,B()),l.status=e.status,n.notify(Ve(l))},{stop:p}=w(o,e,"loadend",u);n.notify(s)}function Ml({target:e}){let t=mn.get(e);t&&(t.isAborted=!0)}var gn;function pr(){return gn||(gn=Dl()),gn}function Dl(){return new y(e=>{if(!z.fetch)return;let{stop:t}=te(z,"fetch",r=>Pl(r,e),{computeHandlingStack:!0});return t})}function Pl({parameters:e,onPostCall:t,handlingStack:r},o){let[n,i]=e,s=i&&i.method;s===void 0&&n instanceof Request&&(s=n.method);let a=s!==void 0?String(s).toUpperCase():"GET",c=n instanceof Request?n.url:Ut(String(n)),u=M(),p={state:"start",init:i,input:n,method:a,startClocks:u,url:c,handlingStack:r};o.notify(p),e[0]=p.input,e[1]=p.init,t(l=>Ul(o,l,p))}function Ul(e,t,r){let o=r;function n(i){o.state="resolve",Object.assign(o,i),e.notify(o)}t.then(b(i=>{n({response:i,responseType:i.type,status:i.status,isAborted:!1})}),b(i=>{var s,a;n({status:0,isAborted:((a=(s=o.init)===null||s===void 0?void 0:s.signal)===null||a===void 0?void 0:a.aborted)||i instanceof DOMException&&i.code===DOMException.ABORT_ERR,error:i})}
8))}function Sn(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){let r=window.requestIdleCallback(b(e),t);return()=>window.cancelIdleCallback(r)}return Fl(e)}var Vl=50;function Fl(e){let t=K(),r=V(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,Vl-(K()-t))})},0);return()=>q(r)}var Bl=P,Gl=30;function rs(){let e=[];function t(o){let n;if(o.didTimeout){let i=performance.now();n=()=>Gl-(performance.now()-i)}else n=o.timeRemaining.bind(o);for(;n()>0&&e.length;)e.shift()();e.length&&r()}function r(){Sn(t,{timeout:Bl})}return{push(o){e.push(o)===1&&r()},stop(){e.length=0}}}var bn={};function yn(e){let t=e.map(r=>(bn[r]||(bn[r]=$l(r)),bn[r]));return Nr(...t)}function $l(e){return new y(t=>{let r=Ce[e];return Ce[e]=(...o)=>{r.apply(console,o);let n=pt("console error");pe(()=>{t.notify(Kl(o,e,n))})},()=>{Ce[e]=r}})}function Kl(e,t,r){let o=e.map(n=>Hl(n)).join(" ");if(t===at.error){let n=e.find(ve),i=ft({originalError:n,handlingStack:r,startClocks:M(),source:fe.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return i.message=o,{api:t,message:o,handlingStack:r,error:i}}return{api:t,message:o,error:void 0,handlingStack:r}}function Hl(e){return typeof e=="string"?L(e):ve(e)?qo(we(e)):Te
8(L(e),void 0,2)}var jl=500;function Tn(){let e=[];return{add:n=>{e.push(n)>jl&&e.splice(0,1)},remove:n=>{to(e,n)},drain:n=>{e.forEach(i=>i(n)),e.length=0}}}function os(e){let t=me(e)==="object";return t||T.error("Unsupported context:",e),t}function _n(e,t,r){let o=g({},e);for(let[n,{required:i,type:s}]of Object.entries(t))s==="string"&&!ns(o[n])&&(o[n]=String(o[n])),i&&ns(o[n])&&T.warn(`The property ${n} of ${r} is required; context will not be sent to the intake.`);return o}function ns(e){return e==null||e===""}function Ke(e="",{propertiesConfig:t={}}={}){let r={},o=new y,n={getContext:()=>Mt(r),setContext:i=>{os(i)?r=L(_n(i,t,e)):n.clearContext(),o.notify()},setContextProperty:(i,s)=>{r=L(_n(ne(g({},r),{[i]:s}),t,e)),o.notify()},removeContextProperty:i=>{delete r[i],_n(r,t,e),o.notify()},clearContext:()=>{r={},o.notify()},changeObservable:o};return n}function X(e,t,r,o){return b((...n)=>(o&&$({feature:o}),e()[t][r](...n)))}function ql(e,t,r){e.changeObservable.subscribe(()=>{let o=e.getContext();r.add(n=>n[t].setContext(o))})}var Wl="_dd_c",zl=[];function Gt(e,t,r,o){let n=Yl(r,o);zl.push(w(e,window,"storage",({key:u})=>{n===u&&s()})),t.changeObservable.subscribe(a);let i=Y(c(),t.getContext());Z(i)||t.setContext(i);function s(){t.setContext(c())}function a(){localStorage.setItem(n,JSON.stringify(t.getContext()))}function c(){let u=localStorage.getItem(n);return u?JSON.parse(u):{}}}function Yl(e,t){return`${Wl}_${e}_${t}`}function xn(e,t,r){let o=ao();return t.storeContextsAcrossPages&&Gt(t,o,r,4),e.register(0,()=>{let n=o.getContext();return Z(n)||!n.id?H:{account:n}}),o}function ao(){return Ke("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function hn(e,t,r,o){let n=co();return t.storeContextsAcrossPages&&Gt(t,n,r,2),e.register(0,()=>{let i=n.getContext();return o?{context:i}:i}),n}function co(){return Ke("global context")}function vn(e,t,r,o){let n=uo();return t.storeContextsAcrossPages&&Gt(t,n,o,1),e.register(0,({eventType:i,startTime:s})=>{let a=n.getContext(),c=r.findTrackedSession(s);return c&&c.anonymousId&&!a.anonymous_id&&t.trackAnonymousUser&&(a.anonymous_id=c.anonymousId),Z(a)?H:{type:i,usr:a}}),e.register(1,({startTime:i})=>{var s;return{anonymous_id:(s=r.findTrackedSession(i))===null||s===void 0?void 0:s.anonymousId}}),n}function uo(){return Ke("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}var j={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},J={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};function In(e,t,r){let o=e.getReader(),n=[],i=0;s();function s(){o.read().then(b(c=>{if(c.done){a();return}r.collectStreamBody&&n.push(c.value),i+=c.value.length,i>r.bytesLimit?a():s()}),b(c=>t(c)))}function a(){o.cancel().catch(O);let c,u;if(r.collectStreamBody){let p;if(n.length===1)p=n[0];else{p=new Uint8Array(i);let l=0;n.forEach(d=>{p.set(d,l),l+=d.length})}c=p.slice(0,r.bytesLimit),u=p.length>r.bytesLimit}t(void 0,c,u)}}var Q={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},$t={FETCH:Q.FETCH,XHR:Q.XHR};var Xl=500;function is(e=Ji){let t=new lt(Xl),r=e().subscribe(o=>{t.notify({type:0,error:o})});return{observable:t,stop:()=>{r.unsubscribe()}}}function ss(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}}var An="initial_document",Jl=[[Q.DOCUMENT,e=>An===e],[Q.XHR,e=>e==="xmlhttprequest"],[Q.FETCH,e=>e==="fetch"],[Q.BEACON,e=>e==="beacon"],[Q.CSS,(e,t)=>/\.css$/i.test(t)],[Q.JS,(e,t)=>/\.js$/i.test(t)],[Q.IMAGE,(e,t)=>["image","img","icon"].includes(e)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)!==null],[Q.FONT,(e,t)=>/\.(woff|eot|woff2|ttf)$/i.exec(t)!==null],[Q.MEDIA,(e,t)=>["audio","video"].includes(e)||/\.(mp3|mp4)$/i.exec(t)!==null]];function cs(e){let t=e.name;if(!Ni(t))return Q.OTHER;let r=wi(t);for(let[o,n]of Jl)if(n(e.initiatorType,r))return o;return Q.OTHER}function as(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function Cn(e){return e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch"}function us(e){let{duration:t,startTime:r,responseEnd:o}=e;return t===0&&r<o?N(r,o):t}function ls(e){if(!On(e))return;let{startTime:t,fetchStart:r,workerStart:o,redirectStart:n,redirectEnd:i,domainLookupStart:s,domainLookupEnd:a,connectStart:c,secureConnectionStart:u,connectEnd:p,requestStart:l,responseStart:d,responseEnd:m}=e,f={download:xt(t,d,m),first_byte:xt(t,l,d)};return 0<o&&o<r&&(f.worker=xt(t,o,r)),r<p&&(f.connect=xt(t,c,p),c<=u&&u<=p&&(f.ssl=xt(t,u,p))),r<a&&(f.dns=xt(t,s,a)),t<i&&(f.redirect=xt(t,n,i)),f}function lo(e){return e.duration>=0}function On(e){let t=as(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),r=Ql(e)?as(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart):!0;return t&&r}function Ql(e){return e.redirectEnd>e.startTime}function xt(e,t,r){if(e<=t&&t<=r)return{duration:v(N(t,r)),start:v(N(e,t))}}function ds(e){return e.nextHopProtocol===""?void 0:e.nextHopProtocol}function ps(e){return e.deliveryType===""?"other":e.deliveryType}function fs(e){if(e.startTime<e.responseStart){let{encodedBodySize:t,decodedBodySize:r,transferSize:o}=e;return{size:r,encoded_body_size:t,decoded_body_size:r,transfer_size:o}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function fr(e){return e&&(!Qr(e)||ae(ee.TRACK_INTAKE_REQUESTS))}var Zl=/data:(.+)?(;base64)?,/g,ed=24e3;function Rn(e,t=ed){if(e.length<=t||!e.startsWith("data:"))return e;let r=e.substring(0,100).match(Zl);return r?`${r[0]}[...]`:e}function ms(e,t){let r=K(),o=!1,{stop:n}=se(e,window,["click","mousedown","keydown","touchstart","pointerdown"],a=>{if(!a.cancelable)return;let c={entryType:"first-input",processingStart:G(),processingEnd:G(),startTime:a.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:()=>({})};a.type==="pointerdown"?i(e,c):s(c)},{passive:!0,capture:!0});return{stop:n};function i(a,c){se(a,window,["pointerup","pointercancel"],u=>{u.type==="pointerup"&&s(c)},{once:!0})}function s(a){if(!o){o=!0,n();let c=a.processingStart-a.startTime;c>=0&&c<K()-r&&t(a)}}}var I=(function(e){return e.EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.LONG_ANIMATION_FRAME="long-animation-frame",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource",e.VISIBILITY_STATE="visibility-state",e})(I||{});function W(e,t){return new y(r=>{if(!window.PerformanceObserver)return;let o=c=>{let u=od(c);u.length>0&&r.notify(u)},n,i=!0,s=new PerformanceObserver(b(c=>{i?n=V(()=>o(c.getEntries())):o(c.getEntries())}));try{s.observe(t)}catch(c){if([I.RESOURCE,I.NAVIGATION,I.LONG_TASK,I.PAINT].includes(t.type)){t.buffered&&(n=V(()=>o(performance.getEntriesByType(t.type))));try{s.observe({entryTypes:[t.type]})}catch(p){return}}}i=!1,td(e);let a;return!ue(I.FIRST_INPUT)&&t.type===I.FIRST_INPUT&&({stop:a}=ms(e,c=>{o([c])})),()=>{s.disconnect(),a&&a(),q(n)}})}var mr;function td(e){return!mr&&rd()&&"addEventListener"in performance&&(mr=w(e,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()}
8)),()=>{mr?.stop()}}function rd(){return window.performance!==void 0&&"getEntries"in performance}function ue(e){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(e)}function od(e){return e.filter(t=>!nd(t))}function nd(e){return e.entryType===I.RESOURCE&&(!fr(e.name)||!lo(e))}function id(e,t,r,o){let n=c=>{t.notify(14,{error:c}),Ie("Error reported to customer",{"error.message":c.message})},i=Qe([e.profilingEndpointBuilder],e.batchBytesLimit,n),s=r(o);return{send(p){return We(this,null,function*(){var l=p,{event:c}=l,u=Ir(l,["event"]);let d=new FormData,m=Te(c);if(!m)throw new Error("Failed to serialize event");d.append("event",new Blob([m],{type:"application/json"}),"event.json");let f=m.length;for(let[E,_]of Ze(u)){let R=Te(_);if(!R)throw new Error("Failed to serialize attachment");let F=yield sd(s,R);f+=F.outputBytesCount,d.append(E,new Blob([F.output]),E)}i.send({data:d,bytesCount:f})})}}}function sd(e,t){return new Promise(r=>{e.write(t),e.finish(o=>{r(o)})})}var h={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},po={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},xe={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",BF_CACHE:"bf_cache"},ht={CLICK:"click",CUSTOM:"custom"},vt={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},It={DURATION:"duration",OPERATION_STEP:"operation_step"};function gs(){return{vitalsByName:new Map,vitalsByReference:new WeakMap}}function Ss(e,t,r){function o(s){return!t.wasInPageStateDuringPeriod("frozen",s.startClocks.relative,s.duration)}function n(s){o(s)&&e.notify(12,Es(s))}function i(s,a,c,u){if(!ae(ee.FEATURE_OPERATION_VITAL))return;let{operationKey:p,context:l,description:d}=c||{},m={name:s,type:It.OPERATION_STEP,operationKey:p,failureReason:u,stepType:a,startClocks:M(),context:L(l),description:d};e.notify(12,Es(m))}return{addOperationStepVital:i,addDurationVital:n,startDurationVital:(s,a={})=>Nn(r,s,a),stopDurationVital:(s,a={})=>{wn(n,r,s,a)}}}function Nn({vitalsByName:e,vitalsByReference:t},r,o={}){let n=g({name:r,startClocks:M()},o),i={__dd_vital_reference:!0};return e.set(r,n),t.set(i,n),i}function wn(e,{vitalsByName:t,vitalsByReference:r},o,n={}){let i=typeof o=="string"?t.get(o):r.get(o);i&&(e(ad(i,i.startClocks,n,M())),typeof o=="string"?t.delete(o):r.delete(o))}function ad(e,t,r,o){var n;return{name:e.name,type:It.DURATION,startClocks:t,duration:N(t.timeStamp,o.timeStamp),context:Y(e.context,r.context),description:(n=r.description)!==null&&n!==void 0?n:e.description}}function Es(e){let{startClocks:t,type:r,name:o,description:n,context:i}=e,s=g({id:D(),type:r,name:o,description:n},r===It.DURATION?{duration:v(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason});return{rawRumEvent:{date:t.timeStamp,vital:s,type:h.VITAL,context:i},startTime:t.relative,duration:r===It.DURATION?e.duration:void 0,domainContext:{}}}function fo(e,t,r){if(e)for(let o of e){let n=o[t];n&&n(r)}}var bs=new Map;function kn(e,t){if(t===100)return!0;if(t===0)return!1;let r=bs.get(t);if(r&&e===r.sessionId)return r.decision;let o;return window.BigInt?o=cd(BigInt(`0x${e.split("-")[4]}`),t):o=Oe(t),bs.set(t,{sessionId:e,decision:o}),o}function cd(e,t){let r=BigInt("1111111111111111111"),o=BigInt("0x10000000000000000"),n=e*r%o;return Number(n)<=t/100*Number(o)}function ys(){return Ts(64)}function mo(){return Ts(63)}function Ts(e){let t=crypto.getRandomValues(new Uint32Array(2));return e===63&&(t[t.length-1]>>>=1),{toString(r=10){let o=t[1],n=t[0],i="";do{let s=o%r*4294967296+n;o=Math.floor(o/r),n=Math.floor(s/r),i=(s%r).toString(r)+i}while(o||n);return i}}}function At(e){return e.toString(16).padStart(16,"0")}function xs(e){let t=e;return me(t)==="object"&&bt(t.match)&&Array.isArray(t.propagatorTypes)}function ud(e){e.status===0&&!e.isAborted&&(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function hs(e,t,r,o){return{clearTracingIfNeeded:ud,traceFetch:n=>_s(e,n,t,r,o,i=>{var s;if(n.input instanceof Request&&!(!((s=n.init)===null||s===void 0)&&s.headers))n.input=new Request
8(n.input),Object.keys(i).forEach(a=>{n.input.headers.append(a,i[a])});else{n.init=Ve(n.init);let a=[];n.init.headers instanceof Headers?n.init.headers.forEach((c,u)=>{a.push([u,c])}):Array.isArray(n.init.headers)?n.init.headers.forEach(c=>{a.push(c)}):n.init.headers&&Object.keys(n.init.headers).forEach(c=>{a.push([c,n.init.headers[c]])}),n.init.headers=a.concat(Ze(i))}}),traceXhr:(n,i)=>_s(e,n,t,r,o,s=>{Object.keys(s).forEach(a=>{i.setRequestHeader(a,s[a])})})}}function _s(e,t,r,o,n,i){let s=r.findTrackedSession();if(!s)return;let a=e.allowedTracingUrls.find(p=>it([p.match],t.url,!0));if(!a)return;let c=kn(s.id,e.traceSampleRate);(c||e.traceContextInjection===yt.ALL)&&(t.traceSampled=c,t.traceId=ys(),t.spanId=mo(),i(ld(t.traceId,t.spanId,t.traceSampled,s.id,a.propagatorTypes,o,n,e)))}function ld(e,t,r,o,n,i,s,a){let c={};if(n.forEach(u=>{switch(u){case"datadog":{Object.assign(c,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":e.toString()});break}case"tracecontext":{Object.assign(c,{traceparent:`00-0000000000000000${At(e)}-${At(t)}-0${r?"1":"0"}`,tracestate:`dd=s:${r?"1":"0"};o:rum`});break}case"b3":{Object.assign(c,{b3:`${At(e)}-${At(t)}-${r?"1":"0"}`});break}case"b3multi":{Object.assign(c,{"X-B3-TraceId":At(e),"X-B3-SpanId":At(t),"X-B3-Sampled":r?"1":"0"});break}}}),a.propagateTraceBaggage){let u={"session.id":o},p=i.getContext().id;typeof p=="string"&&(u["user.id"]=p);let l=s.getContext().id;typeof l=="string"&&(u["account.id"]=l);let d=Object.entries(u).map(([m,f])=>`${m}=${encodeURIComponent(f)}`).join(",");d&&(c.baggage=d)}return c}var vs=["tracecontext","datadog"];function Is(e,t){var r,o,n,i,s,a,c;if(e.trackFeatureFlagsForEvents!==void 0&&!Array.isArray(e.trackFeatureFlagsForEvents)&&T.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId){T.error("Application ID is not configured, no RUM data will be collected.");return}if(!$e(e.sessionReplaySampleRate,"Session Replay")||!$e(e.traceSampleRate,"Trace"))return;if(e.excludedActivityUrls!==void 0&&!Array.isArray(e.excludedActivityUrls)){T.error("Excluded Activity Urls should be an array");return}let u=dd(e);if(!u)return;let p=Zr(e,t),l=fd(e);if(!p)return;let d=(r=e.sessionReplaySampleRate)!==null&&r!==void 0?r:0;return g({applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:d,startSessionReplayRecordingManually:e.startSessionReplayRecordingManually!==void 0?!!e.startSessionReplayRecordingManually:d===0,traceSampleRate:(o=e.traceSampleRate)!==null&&o!==void 0?o:100,rulePsr:Ue(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:u,excludedActivityUrls:(n=e.excludedActivityUrls)!==null&&n!==void 0?n:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(!((i=e.trackUserInteractions)!==null&&i!==void 0)||i),trackViewsManually:!!e.trackViewsManually,trackResources:!!(!((s=e.trackResources)!==null&&s!==void 0)||s),trackLongTasks:!!(!((a=e.trackLongTasks)!==null&&a!==void 0)||a),trackBfcacheViews:!!e.trackBfcacheViews,trackEarlyRequests:!!e.trackEarlyRequests,subdomain:e.subdomain,defaultPrivacyLevel:ut(Me,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:Me.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,traceContextInjection:ut(yt,e.traceContextInjection)?e.traceContextInjection:yt.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:(c=e.profilingSampleRate)!==null&&c!==void 0?c:0,prop
8agateTraceBaggage:!!e.propagateTraceBaggage,allowedGraphQlUrls:l},p)}function dd(e){if(e.allowedTracingUrls===void 0)return[];if(!Array.isArray(e.allowedTracingUrls)){T.error("Allowed Tracing URLs should be an array");return}if(e.allowedTracingUrls.length!==0&&e.service===void 0){T.error("Service needs to be configured when tracing is enabled");return}let t=[];return e.allowedTracingUrls.forEach(r=>{bt(r)?t.push({match:r,propagatorTypes:vs}):xs(r)?t.push(r):T.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",r)}),t}function pd(e){let t=new Set;return Ft(e.allowedTracingUrls)&&e.allowedTracingUrls.forEach(r=>{bt(r)?vs.forEach(o=>t.add(o)):me(r)==="object"&&Array.isArray(r.propagatorTypes)&&r.propagatorTypes.forEach(o=>t.add(o))}),Array.from(t)}function fd(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return T.warn("allowedGraphQlUrls should be an array"),[];let t=[];return e.allowedGraphQlUrls.forEach(r=>{bt(r)?t.push({match:r,trackPayload:!1}):r&&typeof r=="object"&&"match"in r&&bt(r.match)&&t.push({match:r.match,trackPayload:!!r.trackPayload})}),t}function md(e){return Ft(e)&&e.some(t=>typeof t=="object"&&"trackPayload"in t?!!t.trackPayload:!1)}function As(e){var t;let r=eo(e);return g({session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,propagate_trace_baggage:e.propagateTraceBaggage,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:Ft(e.allowedTracingUrls),use_allowed_graph_ql_urls:Ft(e.allowedGraphQlUrls),use_track_graph_ql_payload:md(e.allowedGraphQlUrls),selected_tracing_propagators:pd(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:Ft(e.excludedActivityUrls),use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,track_bfcache_views:e.trackBfcacheViews,track_early_requests:e.trackEarlyRequests,plugins:(t=e.plugins)===null||t===void 0?void 0:t.map(o=>{var n;return g({name:o.name},(n=o.getConfigurationTelemetry)===null||n===void 0?void 0:n.call(o))}),track_feature_flags_for_events:e.trackFeatureFlagsForEvents,remote_configuration_id:e.remoteConfigurationId,profiling_sample_rate:e.profilingSampleRate,use_remote_configuration_proxy:!!e.remoteConfigurationProxy},r)}function Os(e){let t=[],r=0,o,n={quote:void 0,escapeSequence:void 0},i="";for(let s of e){if(o=Cs[r].find(a=>Td[a](s,n)),!o)return[];if(n.escapeSequence!==void 0&&o!==12){if(!hd(n.escapeSequence))return[];i+=Id(n.escapeSequence),n.escapeSequence=void 0}_d.includes(o)?i+=s:xd.includes(o)&&i!==""?(t.push(i),i=""):o===12?n.escapeSequence=n.escapeSequence?`${n.escapeSequence}${s}`:s:o===8?n.quote=s:o===9&&(n.quote=void 0),r=o}return Cs[r].includes(1)?(i!==""&&t.push(i),t):[]}var Ed=/[a-zA-Z_$]/,gd=/[a-zA-Z0-9_$]/,Sd=/[0-9]/,bd=/[a-fA-F0-9]/,yd=`'"`,Td={0:()=>!1,1:()=>!1,2:e=>Ed.test(e),3:e=>gd.test(e),4:e=>e===".",5:e=>e==="[",6:e=>e==="]",7:e=>Sd.test(e),8:e=>yd.includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>e==="\\",12:(e,t)=>t.escapeSequence===void 0?`${t.quote}/\\bfnrtu`.includes(e):t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5?bd.test(e):!1},Cs={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]},_d=[2,3,7,10],xd=[4,5,6];function hd(e){return`"'/\\bfnrt`.includes(e)||e.startsWith("u")&&e.length===5}var vd={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:`
9`,r:"\r",t:"	"};function Id(e){return e.startsWith("u")?String.fromCharCode(parseInt(e.slice(1),16)):vd[e]}var Ad="v1",Cd=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];function Rs(e,t){return We(this,null,function*(){let r,o=Rd(),n=yield L
9d(e);return n.ok?(o.increment("fetch","success"),r=Od(e,n.value,t,o)):(o.increment("fetch","failure"),T.error(n.error)),rt("remote configuration metrics",{metrics:o.get()}),r})}function Od(e,t,r,o){let n=g({},e);return Cd.forEach(d=>{d in t&&(n[d]=i(t[d]))}),Object.keys(r).forEach(d=>{t[d]!==void 0&&s(r[d],t[d])}),n;function i(d){if(Array.isArray(d))return d.map(i);if(Nd(d)){if(wd(d)){let m=d.rcSerializedType;switch(m){case"string":return d.value;case"regex":return Ns(d.value);case"dynamic":return a(d);default:T.error(`Unsupported remote configuration: "rcSerializedType": "${m}"`);return}}return Rr(d,i)}return d}function s(d,m){m.forEach(({key:f,value:E})=>{d.setContextProperty(f,i(E))})}function a(d){let m=d.strategy,f;switch(m){case"cookie":f=c(d);break;case"dom":f=u(d);break;case"js":f=l(d);break;default:T.error(`Unsupported remote configuration: "strategy": "${m}"`);return}let E=d.extractor;return E!==void 0&&typeof f=="string"?kd(E,f):f}function c({name:d}){let m=Et(d);return o.increment("cookie",m!==void 0?"success":"missing"),m}function u({selector:d,attribute:m}){let f;try{f=document.querySelector(d)}catch(_){T.error(`Invalid selector in the remote configuration: '${d}'`),o.increment("dom","failure");return}if(!f){o.increment("dom","missing");return}if(p(f,m)){T.error(`Forbidden element selected by the remote configuration: '${d}'`),o.increment("dom","failure");return}let E=m!==void 0?f.getAttribute(m):f.textContent;if(E===null){o.increment("dom","missing");return}return o.increment("dom","success"),E}function p(d,m){return d.getAttribute("type")==="password"&&m==="value"}function l({path:d}){let m=window,f=Os(d);if(f.length===0){T.error(`Invalid JSON path in the remote configuration: '${d}'`),o.increment("js","failure");return}for(let E of f){if(!(E in m)){o.increment("js","missing");return}try{m=m[E]}catch(_){T.error(`Error accessing: '${d}'`,_),o.increment("js","failure");return}}return o.increment("js","success"),m}}function Rd(){let e={fetch:{}};return{get:()=>e,increment:(t,r)=>{e[t]||(e[t]={}),e[t][r]||(e[t][r]=0),e[t][r]=e[t][r]+1}}}function Nd(e){return typeof e=="object"&&e!==null}function wd(e){return"rcSerializedType"in e}function Ns(e){try{return new RegExp(e)}catch(t){T.error(`Invalid regex in the remote configuration: '${e}'`)}}function kd(e,t){let r=Ns(e.value);if(r===void 0)return;let o=r.exec(t);if(o===null)return;let[n,i]=o;return i||n}function Ld(e){return We(this,null,function*(){let t;try{t=yield fetch(Md(e))}catch(o){t=void 0}if(!t||!t.ok)return{ok:!1,error:new Error("Error fetching the remote configuration.")};let r=yield t.json();return r.rum?{ok:!0,value:r.rum}:{ok:!1,error:new Error("No remote configuration for RUM.")}})}function Md(e){return e.remoteConfigurationProxy?e.remoteConfigurationProxy:`https://sdk-configuration.${sr("rum",e)}/${Ad}/${encodeURIComponent(e.remoteConfigurationId)}.json`}function ws({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},r,o,n){let i=Tn(),s=co();Ln(s,j.globalContext,i);let a=uo();Ln(a,j.userContext,i);let c=ao();Ln(c,j.accountContext,i);let u,p,l,d,m=r.observable.subscribe(E),f={};function E(){if(!l||!d||!r.isGranted())return;m.unsubscribe();let x;if(d.trackViewsManually){if(!u)return;i.remove(u.callback),x=u.options}let A=n(d,p,x);i.drain(A)}function _(x,A){let S=he();if(S&&(x=Dd(x)),l=x,Kr(As(x)),d){ar("DD_RUM",x);return}let k=Is(x,A);if(k){if(!S&&!k.sessionStoreStrategyType){T.warn("No storage available for session. We will not send any data.");return}k.compressIntakeRequests&&!S&&t&&(p=t(k,"Datadog RUM",O),!p)||(d=k,pr().subscribe(O),r.tryToInit(k.trackingConsent),E())}}let R=x=>{i.add(A=>A.addDurationVital(x))};return{init(x,A,S){if(!x){T.error("Missing configuration");return}Po(x.enableExperimentalFeatures),l=x,!(e&&ur())&&(fo(x.plugins,"onInit",{initConfiguration:x,publicApi:A}),x.remoteConfigurationId?Rs(x,{user:a,context:s}).then(k=>{k&&_(k,S)}).catch(Je):_(x,S))},get initConfiguration(){return l},getInternalContext:O,stopSession:O,addTiming(x,A=B()){i.add(S=>S.addTiming(x,A))},startView(x,A=M()){let S=k=>{k.startView(x,A)};
9i.add(S),u||(u={options:x,callback:S},E())},setViewName(x){i.add(A=>A.setViewName(x))},setViewContext(x){i.add(A=>A.setViewContext(x))},setViewContextProperty(x,A){i.add(S=>S.setViewContextProperty(x,A))},getViewContext:()=>f,globalContext:s,userContext:a,accountContext:c,addAction(x){i.add(A=>A.addAction(x))},addError(x){i.add(A=>A.addError(x))},addFeatureFlagEvaluation(x,A){i.add(S=>S.addFeatureFlagEvaluation(x,A))},startDurationVital(x,A){return Nn(o,x,A)},stopDurationVital(x,A){wn(R,o,x,A)},addDurationVital:R,addOperationStepVital:(x,A,S,k)=>{i.add(zt=>zt.addOperationStepVital(L(x),A,L(S),L(k)))}}}function Dd(e){var t,r;return ne(g({},e),{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(t=e.defaultPrivacyLevel)!==null&&t!==void 0?t:(r=Ne())===null||r===void 0?void 0:r.getPrivacyLevel()})}function Ln(e,t,r){e.changeObservable.subscribe(()=>{let o=e.getContext();r.add(n=>n[t].setContext(o))})}function Pd(e,t,r,o={}){let n=sn(),i=gs(),s=is().observable,a=ws(o,n,i,(l,d,m)=>{let f=d&&o.createDeflateEncoder?_=>o.createDeflateEncoder(l,d,_):pn,E=e(l,t,r,m,f,n,i,s,o.sdkName);return t.onRumStart(E.lifeCycle,l,E.session,E.viewHistory,d,E.telemetry),r.onRumStart(E.lifeCycle,E.hooks,l,E.session,E.viewHistory,f),a=Ud(a,E),fo(l.plugins,"onRumStart",{strategy:a,addEvent:E.addEvent}),E}),c=()=>a,u=b(l=>{let d=typeof l=="object"?l:{name:l};a.startView(d),$({feature:"start-view"})}),p=un({init:l=>{let d=new Error().stack;pe(()=>a.init(l,p,d))},setTrackingConsent:b(l=>{n.update(l),$({feature:"set-tracking-consent",tracking_consent:l})}),setViewName:b(l=>{a.setViewName(l),$({feature:"set-view-name"})}),setViewContext:b(l=>{a.setViewContext(l),$({feature:"set-view-context"})}),setViewContextProperty:b((l,d)=>{a.setViewContextProperty(l,d),$({feature:"set-view-context-property"})}),getViewContext:b(()=>($({feature:"set-view-context-property"}),a.getViewContext())),getInternalContext:b(l=>a.getInternalContext(l)),getInitConfiguration:b(()=>Mt(a.initConfiguration)),addAction:(l,d)=>{let m=pt("action");pe(()=>{a.addAction({name:L(l),context:L(d),startClocks:M(),type:ht.CUSTOM,handlingStack:m}),$({feature:"add-action"})})},addError:(l,d)=>{let m=pt("error");pe(()=>{a.addError({error:l,handlingStack:m,context:L(d),startClocks:M()}),$({feature:"add-error"})})},addTiming:b((l,d)=>{a.addTiming(L(l),d)}),setGlobalContext:X(c,j.globalContext,J.setContext,"set-global-context"),getGlobalContext:X(c,j.globalContext,J.getContext,"get-global-context"),setGlobalContextProperty:X(c,j.globalContext,J.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:X(c,j.globalContext,J.removeContextProperty,"remove-global-context-property"),clearGlobalContext:X(c,j.globalContext,J.clearContext,"clear-global-context"),setUser:X(c,j.userContext,J.setContext,"set-user"),getUser:X(c,j.userContext,J.getContext,"get-user"),setUserProperty:X(c,j.userContext,J.setContextProperty,"set-user-property"),removeUserProperty:X(c,j.userContext,J.removeContextProperty,"remove-user-property"),clearUser:X(c,j.userContext,J.clearContext,"clear-user"),setAccount:X(c,j.accountContext,J.setContext,"set-account"),getAccount:X(c,j.accountContext,J.getContext,"get-account"),setAccountProperty:X(c,j.accountContext,J.setContextProperty,"set-account-property"),removeAccountProperty:X(c,j.accountContext,J.removeContextProperty,"remove-account-property"),clearAccount:X(c,j.accountContext,J.clearContext,"clear-account"),startView:u,stopSession:b(()=>{a.stopSession(),$({feature:"stop-session"})}),addFeatureFlagEvaluation:b((l,d)=>{a.addFeatureFlagEvaluation(L(l),L(d)),$({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:b(()=>t.getSessionReplayLink()),startSessionReplayRecording:b(l=>{t.start(l),$({feature:"start-session-replay-recording",force:l&&l.force})}),stopSessionReplayRecording:b(()=>t.stop()),addDurationVital:b((l,d)=>{$({feature:"add-duration-vital"}),a.addDurationVital({name:L(l),type:It.DURATION,startClocks:ei(d.startTime),duration:d.duration,context:L(d&&d.context),description:L(d&&d.description)})}),startDurationVital:b((l,d)=>($({feature:"start-duration-vital"}),a.startDurationVital(L(l),{context:L(d&&d.context),description:L(d&&d.description)}))),stopDurationVital:b((l,d)=>{$({feature:"stop-duration-vital"}),a.stopDurationVital(typeof l=="string"?L(l):l,{context:L(d&&d.context),description:L(d&&d.description)})}),startFeatureOperation:b((l,d)=>{$({feature:"add-operation-step-vital",action_type:"start"}),a.addOperationStepVital(l,"start",d)}),succeedFeatureOperation:b((l,d)=>{$({feature:"add-operation-step-vital",action_type:"succeed"}),a.addOperationStepVital(l,"end",d)}),failFeatureOperation:b((l,d,m)=>{$({feature:"add-operation-step-vital",action_type:"fail"}),a.addOperationStepVital(l,"end",m,d)})});return p}function Ud(e,t){return g({init:r=>{ar("DD_RUM",r)},initConfiguration:e.initConfiguration},t)}function ks(){let e=Ls();return new y(t=>{if(!e)return;let r=new e(b(o=>t.notify(o)));return r.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>r.disconnect()})}function Ls(){let e,t=window;if(t.Zone&&(e=be(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){let r=new t.MutationObserver(O),o=be(r,"originalInstance");e=o&&o.constructor}return e||(e=t.MutationObserver),e}function Ms(){let e=new y,{stop:t}=te(window,"open",()=>e.notify());return{observable:e,stop:t}}function Ds(e,t,r,o,n){return{get:i=>{let s=r.findView(i),a=n.findUrl(i),c=t.findTrackedSession(i);if(c&&s&&a){let u=o.findActionId(i);return{application_id:e,session_id:c.id,user_action:u?{id:u}:void 0,view:{id:s.id,name:s.name,referrer:a.referrer,url:a.url}}}}}}var Mn=dr;var Vd=re;function Dn(e){let t=ge({expireDelay:Vd});e.subscribe(1,o=>{t.add(r(o),o.startClocks.relative)}),e.subscribe(6,({endClocks:o})=>{t.closeActive(o.relative)}),e.subscribe(3,o=>{let n=t.find(o.startClocks.relative);n&&(o.name&&(n.name=o.name),o.context&&(n.context=o.context),n.sessionIsActive=o.sessionIsActive)}),e.subscribe(10,()=>{t.reset()});function r(o){return{service:o.service,version:o.version,context:o.context,id:o.id,name:o.name,startClocks:o.startClocks}}return{findView:o=>t.find(o),stop:()=>{t.stop()}}}var Ps=1;function Us(e,t,r,o,n){let i=hs(t,r,o,n);Fd(e,t,i),Bd(e,i)}function Fd(e,t,r){let o=En(t).subscribe(n=>{let i=n;if(fr(i.url))switch(i.state){case"start":r.traceXhr(i,i.xhr),i.requestIndex=Vs(),e.notify(7,{requestIndex:i.requestIndex,url:i.url});break;case"complete":r.clearTracingIfNeeded(i),e.notify(8,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:$t.XHR,url:i.url,xhr:i.xhr,isAborted:i.isAborted,handlingStack:i.handlingStack,body:i.body});break}});return{stop:()=>o.unsubscribe()}}function Bd(e,t){let r=pr().subscribe(o=>{let n=o;if(fr(n.url))switch(n.state){case"start":t.traceFetch(n),n.requestIndex=Vs(),e.notify(7,{requestIndex:n.requestIndex,url:n.url});break;case"resolve":Gd(n,i=>{var s;t.clearTracingIfNeeded(n),e.notify(8,{duration:i,method:n.method,requestIndex:n.requestIndex,responseType:n.responseType,spanId:n.spanId,startClocks:n.startClocks,status:n.status,traceId:n.traceId,traceSampled:n.traceSampled,type:$t.FETCH,url:n.url,response:n.response,init:n.init,input:n.input,isAborted:n.isAborted,handlingStack:n.handlingStack,body:(s=n.init)===null||s===void 0?void 0:s.body})});break}});return{stop:()=>r.unsubscribe()}}function Vs(){let e=Ps;return Ps+=1,e}function Gd(e,t){let r=e.response&&ai(e.response);!r||!r.body?t(N(e.startClocks.timeStamp,B())):In(r.body,()=>{t(N(e.startClocks.timeStamp,B()))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1})}function Eo(e){return Ue(e)&&e<0?void 0:e}function go({lifeCycle:e,isChildEvent:t,onChange:r=O}){let o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},n=e.subscribe(13,i=>{var s;if(!(i.type==="view"||i.type==="vital"||!t(i)))switch(i.type){case h.ERROR:o.errorCount+=1,r();break;case h.ACTION:o.actionCount+=1,i.action.frustration&&(o.frustrationCount+=i.action.frustration.type.length),r();break;case h.LONG_TASK:o.longTaskCount+=1,r();break;case h.RESOURCE:!((s=i._dd)===null||s===void 0)&&s.discarded||(o.resourceCount+=1,r());break}});return{stop:()=>{n.unsubscribe()},eventCounts:o}}
9function Er(e){return e.nodeType===Node.TEXT_NODE}function Fs(e){return e.nodeType===Node.COMMENT_NODE}function oe(e){return e.nodeType===Node.ELEMENT_NODE}function Bs(e){return oe(e)&&!!e.shadowRoot}function $d(e){let t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&oe(t.host)}function Wx(e){return e.childNodes.length>0||Bs(e)}function zx(e,t){let r=e.firstChild;for(;r;)t(r),r=r.nextSibling;Bs(e)&&t(e.shadowRoot)}function Gs(e){return $d(e)?e.host:e.parentNode}var Un=100,Kd=100,$s="data-dd-excluded-activity-mutations";function gr(e,t,r,o,n,i){let s=jd(e,t,r,o);return Hd(s,n,i)}function Hd(e,t,r){let o,n=!1,i=V(b(()=>u({hadActivity:!1})),Un),s=r!==void 0?V(b(()=>u({hadActivity:!0,end:B()})),r):void 0,a=e.subscribe(({isBusy:p})=>{q(i),q(o);let l=B();p||(o=V(b(()=>u({hadActivity:!0,end:l})),Kd))}),c=()=>{n=!0,q(i),q(o),q(s),a.unsubscribe()};function u(p){n||(c(),t(p))}return{stop:c}}function jd(e,t,r,o){return new y(n=>{let i=[],s,a=0;return i.push(t.subscribe(u=>{u.every(qd)||c()}),r.subscribe(c),W(o,{type:I.RESOURCE}).subscribe(u=>{u.some(p=>!Pn(o,p.name))&&c()}),e.subscribe(7,u=>{Pn(o,u.url)||(s===void 0&&(s=u.requestIndex),a+=1,c())}),e.subscribe(8,u=>{Pn(o,u.url)||s===void 0||u.requestIndex<s||(a-=1,c())})),()=>{i.forEach(u=>u.unsubscribe())};function c(){n.notify({isBusy:a>0})}})}function Pn(e,t){return it(e.excludedActivityUrls,t)}function qd(e){let t=e.type==="characterData"?e.target.parentElement:e.target;return!!(t&&oe(t)&&t.matches(`[${$s}], [${$s}] *`))}var Ct="data-dd-action-name",Ks="Masked Element";var js=[Ct,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Wd=[Ws,Yd],zd=[Ws,Xd,Jd];function De(e,t){if(!e.isConnected)return;let r,o=e;for(;o&&o.nodeName!=="HTML";){let n=Hs(o,Wd,Zd,t,r);if(n)return n;r=Hs(o,zd,ep,t,r)||So(Qd(o),r),o=o.parentElement}return r}function qs(e){return/[0-9]/.test(e)}function Yd(e){if(e.id&&!qs(e.id))return`#${CSS.escape(e.id)}`}function Xd(e){if(e.tagName==="BODY")return;let t=e.classList;for(let r=0;r<t.length;r+=1){let o=t[r];if(!qs(o))return`${CSS.escape(e.tagName)}.${CSS.escape(o)}`}}function Jd(e){return CSS.escape(e.tagName)}function Ws(e,t){if(t){let o=r(t);if(o)return o}for(let o of js){let n=r(o);if(n)return n}function r(o){if(e.hasAttribute(o))return`${CSS.escape(e.tagName)}[${o}="${CSS.escape(e.getAttribute(o))}"]`}}function Qd(e){let t=e.parentElement.firstElementChild,r=1;for(;t&&t!==e;)t.tagName===e.tagName&&(r+=1),t=t.nextElementSibling;return`${CSS.escape(e.tagName)}:nth-of-type(${r})`}function Hs(e,t,r,o,n){for(let i of t){let s=i(e,o);if(s&&r(e,s,n))return So(s,n)}}function Zd(e,t,r){return e.ownerDocument.querySelectorAll(So(t,r)).length===1}function ep(e,t,r){let o;if(r===void 0)o=s=>s.matches(t);else{let s=So(`${t}:scope`,r);o=a=>a.querySelector(s)!==null}let i=e.parentElement.firstElementChild;for(;i;){if(i!==e&&o(i))return!1;i=i.nextElementSibling}return!0}function So(e,t){return t?`${e}>${t}`:e}var C={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Me.ALLOW,MASK:Me.MASK,MASK_USER_INPUT:Me.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:Me.MASK_UNLESS_ALLOWLISTED},tp="data-dd-privacy";var nh="hidden",rp="dd-privacy-",bo="***",ih="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",z
9s={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},Ys="x";function He(e){return`[${tp}="${e}"], .${rp}${e}`}function Sr(e,t,r){if(r&&r.has(e))return r.get(e);let o=Gs(e),n=o?Sr(o,t,r):t,i=np(e),s=op(i,n);return r&&r.set(e,s),s}function op(e,t){switch(t){case C.HIDDEN:case C.IGNORE:return t}switch(e){case C.ALLOW:case C.MASK:case C.MASK_USER_INPUT:case C.MASK_UNLESS_ALLOWLISTED:case C.HIDDEN:case C.IGNORE:return e;default:return t}}function np(e){if(oe(e)){if(e.tagName==="BASE")return C.ALLOW;if(e.tagName==="INPUT"){let t=e;if(t.type==="password"||t.type==="email"||t.type==="tel")return C.MASK;if(t.type==="hidden")return C.MASK;let r=t.getAttribute("autocomplete");if(r&&(r.startsWith("cc-")||r.endsWith("-password")))return C.MASK}if(e.matches(He(C.HIDDEN)))return C.HIDDEN;if(e.matches(He(C.MASK)))return C.MASK;if(e.matches(He(C.MASK_UNLESS_ALLOWLISTED)))return C.MASK_UNLESS_ALLOWLISTED;if(e.matches(He(C.MASK_USER_INPUT)))return C.MASK_USER_INPUT;if(e.matches(He(C.ALLOW)))return C.ALLOW;if(ip(e))return C.IGNORE}}function Vn(e,t){switch(t){case C.MASK:case C.HIDDEN:case C.IGNORE:return!0;case C.MASK_UNLESS_ALLOWLISTED:return Er(e)?yo(e.parentNode)?!0:!Js(e.textContent||""):yo(e);case C.MASK_USER_INPUT:return Er(e)?yo(e.parentNode):yo(e);default:return!1}}function yo(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;let t=e;if(t.tagName==="INPUT")switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!zs[t.tagName]}var Xs=e=>e.replace(/\S/g,Ys);function uh(e,t){var r;let o=(r=e.parentElement)===null||r===void 0?void 0:r.tagName,n=e.textContent||"";if(o==="HEAD"&&!n.trim())return;let s=t;if(o==="SCRIPT")n=bo;else if(s===C.HIDDEN)n=bo;else if(Vn(e,s))if(o==="DATALIST"||o==="SELECT"||o==="OPTGROUP"){if(!n.trim())return}else o==="OPTION"?n=bo:s===C.MASK_UNLESS_ALLOWLISTED?n=sp(n):n=Xs(n);return n}function ip(e){if(e.nodeName==="SCRIPT")return!0;if(e.nodeName==="LINK"){let r=t("rel");return/preload|prefetch/i.test(r)&&t("as")==="script"||r==="shortcut icon"||r==="icon"}if(e.nodeName==="META"){let r=t("name"),o=t("rel"),n=t("property");return/^msapplication-tile(image|color)$/.test(r)||r==="application-name"||o==="icon"||o==="apple-touch-icon"||o==="shortcut icon"||r==="keywords"||r==="description"||/^(og|twitter|fb):/.test(n)||/^(og|twitter):/.test(r)||r==="pinterest"||r==="robots"||r==="googlebot"||r==="bingbot"||e.hasAttribute("http-equiv")||r==="author"||r==="generator"||r==="framework"||r==="publisher"||r==="progid"||/^article:/.test(n)||/^product:/.test(n)||r==="google-site-verification"||r==="yandex-verification"||r==="csrf-token"||r==="p:domain_verify"||r==="verify-v1"||r==="verification"||r==="shopify-checkout-api-token"}function t(r){return(e.getAttribute(r)||"").toLowerCase()}return!1}function Js(e){var t;return!e||!e.trim()?!0:((t=window.$DD_ALLOW)===null||t===void 0?void 0:t.has(e.toLocaleLowerCase()))||!1}function sp(e,t){return Js(e)?e:t||Xs(e)}var Qs=P,ap=100;function Zs(e,t){let r=[],o=0,n;i(e);function i(c){c.stopObservable.subscribe(s),r.push(c),q(n),n=V(a,Qs)}function s(){o===1&&r.every(c=>c.isStopped())&&(o=2,t(r))}function a(){q(n),o===0&&(o=1,s())}return{tryAppend:c=>o!==0?!1:r.length>0&&!cp(r[r.length-1].event,c.event)?(a(),!1):(i(c),!0),stop:()=>{a()}}}function cp(e,t){return e.target===t.target&&up(e,t)<=ap&&e.timeStamp-t.timeStamp<=Qs}function up(e,t){return Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2))}function ra(e,t,r=C.ALLOW){let{actionNameAttribute:o}=t,n=ea(e,Ct)||o&&ea(e,o);return n?{name:n,nameSource:"custom_attribute"}:r===C.MASK?{name:Ks,nameSource:"mask_placeholder"}:ta(e,lp,t)||ta(e,dp,t)||{name:"",nameSource:"blank"}}function ea(e,t){let r=e.closest(`[${t}]`);if(!r)return;let o=r.getAttribute(t);return na(oa(o.trim()))}var lp=[(e,t)=>{if("labels"in e&&e.labels&&e.labels.length>0)return To(e.labels[0],t)},e=>{if(e.nodeName==="INPUT"){let t=e,r=t.getAttribute("type");if(r==="button"||r==="submit"||r==="reset")return{name:t.value,nameSource:"text_content"}}},(e,t)=>{if(e.nodeName==="BUTTON"||e.nodeName==="LABEL"||e.getAttribute("role")==="button")return To(e,t)},e=>br(e,"aria-label"),(e,t)=>{let r=e.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(o=>fp(e,o)).filter(o=>!!o).map(o=>ia(o,t)).join(" "),nameSource:"text_content"}},e=>br(e,"alt"),e=>br(e,"name"),e=>br(e,"title"),e=>br(e,"placeholder"),(e,t)=>{if("options"in e&&e.options.length>0)return To(e.options[0],t)}],dp=[(e,t)=>To(e,t)],pp=10;function ta(e,t,r){let o=e,n=0;for(;n<=pp&&o&&o.nodeName!=="BODY"&&o.nodeName!=="HTML"&&o.nodeName!=="HEAD";){for(let i of t){let s=i(o,r);if(s){let{name:a,nameSource:c}=s,u=a&&a.trim();if(u)return{name:na(oa(u)),nameSource:c}}}if(o.nodeName==="FORM")break;o=o.parentElement,n+=1}}function oa(e){return e.replace(/\s+/g," ")}function na(e){return e.length>100?`${Pt(e,100)} [...]`:e}function fp(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}function br(e,t){return{name:e.getAttribute(t)||"",nameSource:"standard_attribute"}}function To(e,t){return{name:ia(e,t)||"",nameSource:"text_content"}}function ia(e,t){if(e.isContentEditable)return;
9let{enablePrivacyForActionName:r,actionNameAttribute:o,defaultPrivacyLevel:n}=t;if(ae(ee.USE_TREE_WALKER_FOR_ACTION_NAME))return mp(e,o,r,n);if("innerText"in e){let i=e.innerText,s=a=>{let c=e.querySelectorAll(a);for(let u=0;u<c.length;u+=1){let p=c[u];if("innerText"in p){let l=p.innerText;l&&l.trim().length>0&&(i=i.replace(l,""))}}};return s(`[${Ct}]`),o&&s(`[${o}]`),r&&s(`${He(C.HIDDEN)}, ${He(C.MASK)}`),i}return e.textContent}function mp(e,t,r,o){let n=new Map,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,a),s="";for(;i.nextNode();){let c=i.currentNode;if(oe(c)){(c.nodeName==="BR"||c.nodeName==="P"||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(c).display))&&(s+=" ");continue}s+=c.textContent||""}return s.replace(/\s+/g," ").trim();function a(c){let u=Sr(c,o,n);if(r&&u&&Vn(c,u))return NodeFilter.FILTER_REJECT;if(oe(c)){if(c.hasAttribute(Ct)||t&&c.hasAttribute(t))return NodeFilter.FILTER_REJECT;let p=getComputedStyle(c);if(p.visibility!=="visible"||p.display==="none"||p.contentVisibility&&p.contentVisibility!=="visible")return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}}function ca(e,{onPointerDown:t,onPointerUp:r}){let o,n={selection:!1,input:!1,scroll:!1},i,s=[w(e,window,"pointerdown",a=>{aa(a)&&(o=sa(),n={selection:!1,input:!1,scroll:!1},i=t(a))},{capture:!0}),w(e,window,"selectionchange",()=>{(!o||!sa())&&(n.selection=!0)},{capture:!0}),w(e,window,"scroll",()=>{n.scroll=!0},{capture:!0,passive:!0}),w(e,window,"pointerup",a=>{if(aa(a)&&i){let c=n;r(i,a,()=>c),i=void 0}},{capture:!0}),w(e,window,"input",()=>{n.input=!0},{capture:!0})];return{stop:()=>{s.forEach(a=>a.stop())}}}function sa(){let e=window.getSelection();return!e||e.isCollapsed}function aa(e){return e.target instanceof Element&&e.isPrimary!==!1}var ua=3;function da(e,t){if(Ep(e))return t.addFrustration(vt.RAGE_CLICK),e.some(la)&&t.addFrustration(vt.DEAD_CLICK),t.hasError&&t.addFrustration(vt.ERROR_CLICK),{isRage:!0};let r=e.some(o=>o.getUserActivity().selection);return e.forEach(o=>{o.hasError&&o.addFrustration(vt.ERROR_CLICK),la(o)&&!r&&o.addFrustration(vt.DEAD_CLICK)}),{isRage:!1}}function Ep(e){if(e.some(t=>t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let t=0;t<e.length-(ua-1);t+=1)if(e[t+ua-1].event.timeStamp-e[t].event.timeStamp<=P)return!0;return!1}
9var gp='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] *';function la(e){if(e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll)return!1;let t=e.event.target;return t.tagName==="LABEL"&&t.hasAttribute("for")&&(t=document.getElementById(t.getAttribute("for"))),!t||!t.matches(gp)}var Fn=10*P,yr=new Map;function pa(e){let t=yr.get(e);return yr.delete(e),t}function Bn(e,t){yr.set(e,t),yr.forEach((r,o)=>{N(o,G())>Fn&&yr.delete(o)})}var Sp=5*U;function fa(e,t,r,o){let n=ge({expireDelay:Sp}),i=new y,s;e.subscribe(10,()=>{n.reset()}),e.subscribe(5,p),e.subscribe(11,l=>{l.reason===Fe.UNLOADING&&p()});let{stop:a}=ca(o,{onPointerDown:l=>bp(o,e,t,l,r),onPointerUp:({clickActionBase:l,hadActivityOnPointerDown:d},m,f)=>{yp(o,e,t,r,n,i,u,l,m,f,d)}});return{stop:()=>{p(),i.notify(),a()},actionContexts:{findActionId:l=>n.findAll(l)}};function u(l){if(!s||!s.tryAppend(l)){let d=l.clone();s=Zs(l,m=>{_p(m,d)})}}function p(){s&&s.stop()}}function bp(e,t,r,o,n){let i;if(e.enablePrivacyForActionName?i=Sr(o.target,e.defaultPrivacyLevel):i=C.ALLOW,i===C.HIDDEN)return;let s=Tp(o,i,e),a=!1;return gr(t,r,n,e,c=>{a=c.hadActivity},Un),{clickActionBase:s,hadActivityOnPointerDown:()=>a}}function yp(e,t,r,o,n,i,s,a,c,u,p){var l;let d=ma(t,n,u,a,c);s(d);let m=(l=a?.target)===null||l===void 0?void 0:l.selector;m&&Bn(c.timeStamp,m);let{stop:f}=gr(t,r,o,e,R=>{R.hadActivity&&R.end<d.startClocks.timeStamp?d.discard():R.hadActivity?d.stop(R.end):p()?d.stop(d.startClocks.timeStamp):d.stop()},Fn),E=t.subscribe(5,({endClocks:R})=>{d.stop(R.timeStamp)}),_=i.subscribe(()=>{d.stop()});d.stopObservable.subscribe(()=>{E.unsubscribe(),f(),_.unsubscribe()})}function Tp(e,t,r){let o=e.target.getBoundingClientRect(),n=De(e.target,r.actionNameAttribute);n&&Bn(e.timeStamp,n);let{name:i,nameSource:s}=ra(e.target,r,t);return{type:ht.CLICK,target:{width:Math.round(o.width),height:Math.round(o.height),selector:n},position:{x:Math.round(e.clientX-o.left),y:Math.round(e.clientY-o.top)},name:i,nameSource:s}}function ma(e,t,r,o,n){let i=D(),s=M(),a=t.add(i,s.relative),c=go({lifeCycle:e,isChildEvent:f=>f.action!==void 0&&(Array.isArray(f.action.id)?f.action.id.includes(i):f.action.id===i)}),u=0,p,l=[],d=new y;function m(f){u===0&&(p=f,u=1,p?a.close(Jt(p)):a.remove(),c.stop(),d.notify())}return{event:n,stop:m,stopObservable:d,get hasError(){return c.eventCounts.errorCount>0},get hasPageActivity(){return p!==void 0},getUserActivity:r,addFrustration:f=>{l.push(f)},startClocks:s,isStopped:()=>u===1||u===2,clone:()=>ma(e,t,r,o,n),validate:f=>{if(m(),u!==1)return;let{resourceCount:E,errorCount:_,longTaskCount:R}=c.eventCounts,F=g({duration:p&&N(s.timeStamp,p),startClocks:s,id:i,frustrationTypes:l,counts:{resourceCount:E,errorCount:_,longTaskCount:R},events:f??[n],event:n},o);e.notify(0,F),u=2},discard:()=>{m(),u=2}}}function _p(e,t){let{isRage:r}=da(e,t);r?(e.forEach(o=>o.discard()),t.stop(B()),t.validate(e.map(o=>o.event))):(t.discard(),e.forEach(o=>o.validate()))}function ga(e,t,r,o,n){let{unsubscribe:i}=e.subscribe(0,c=>{e.notify(12,Ea(c))});t.register(0,({startTime:c,eventType:u})=>
9{if(u!==h.ERROR&&u!==h.RESOURCE&&u!==h.LONG_TASK)return H;let p=s.findActionId(c);return p?{type:u,action:{id:p}}:H}),t.register(1,({startTime:c})=>({action:{id:s.findActionId(c)}}));let s={findActionId:O},a=O;return n.trackUserInteractions&&({actionContexts:s,stop:a}=fa(e,r,o,n)),{addAction:c=>{e.notify(12,Ea(c))},actionContexts:s,stop:()=>{i(),a()}}}function Ea(e){let t=Gn(e)?{action:{id:e.id,loading_time:Eo(v(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position,name_source:e.nameSource}}}:{context:e.context},r=Y({action:{id:D(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:h.ACTION},t),o=Gn(e)?e.duration:void 0,n=Gn(e)?{events:e.events}:{handlingStack:e.handlingStack};return{rawRumEvent:r,duration:o,startTime:e.startClocks.relative,domainContext:n}}function Gn(e){return e.type!==ht.CUSTOM}function Sa(e){let t=yn([at.error]).subscribe(r=>e.notify(r.error));return{stop:()=>{t.unsubscribe()}}}function ba(e,t){let r=ln(e,[Tt.cspViolation,Tt.intervention]).subscribe(o=>t.notify(o));return{stop:()=>{r.unsubscribe()}}}function ya(e,t,r){let o=new y;return r.subscribe(n=>{n.type===0&&o.notify(n.error)}),Sa(o),ba(t,o),o.subscribe(n=>e.notify(14,{error:n})),xp(e)}function xp(e){return e.subscribe(14,({error:t})=>{e.notify(12,hp(t))}),{addError:({error:t,handlingStack:r,componentStack:o,startClocks:n,context:i})=>{let s=ft({originalError:t,handlingStack:r,componentStack:o,startClocks:n,nonErrorPrefix:"Provided",source:fe.CUSTOM,handling:"handled"});s.context=Y(s.context,i),e.notify(14,{error:s})}}}function hp(e){let t={date:e.startClocks.timeStamp,error:{id:D(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,component_stack:e.componentStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:h.ERROR,context:e.context},r={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:t,startTime:e.startClocks.relative,domainContext:r}}var Ta=new WeakSet;function _a(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(o=>!Ta.has(o)).filter(o=>lo(o)&&On(o)).filter(o=>vp(o,e.startClocks.relative,xa({startTime:e.startClocks.relative,duration:e.duration})));if(r.length===1)return Ta.add(r[0]),r[0].toJSON()}function xa(e){return Xe(e.startTime,e.duration)}function vp(e,t,r){return e.startTime>=t-1&&xa(e)<=Xe(r,1)}var Ip=2*U;function va(e){let t=Ap(e)||Cp(e);if(!(!t||t.traceTime<=K()-Ip))return t.traceId}function Ap(e){let t=e.querySelector("meta[name=dd-trace-id]"),r=e.querySelector("meta[name=dd-trace-time]");return Ia(t&&t.content,r&&r.content)}function Cp(e){let t=Op(e);if(t)return Ia(ot(t,"trace-id"),ot(t,"trace-time"))}function Ia(e,t){let r=t&&Number(t);if(!(!e||!r))return{traceId:e,traceTime:r}}function Op(e){for(let t=0;t<e.childNodes.length;t+=1){let r=ha(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],o=ha(r);if(o)return o;if(!Er(r))break}}function ha(e){if(e&&Fs(e)){let t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function _o(){if(ue(I.NAVIGATION)){let r=performance.getEntriesByType(I.NAVIGATION)[0];if(r)return r}let e=Rp(),t=g({entryType:I.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>ne(g({},t),{toJSON:void 0})},e);return t}function Rp(){let e={},t=performance.timing;for(let r in t)if(Ue(t[r])){let o=r,n=t[o];e[o]=n===0?0:Jt(n)}return e}function Aa(e,t,r=_o){Bt(e,"interactive",()=>{let o=r(),n=Object.assign(o.toJSON(),{entryType:I.RESOURCE,initiatorType:An,duration:o.responseEnd,traceId:va(document),toJSON:()=>ne(g({},n),{toJSON:void 0})});t(n)})}var Np=1e3;function Ca(e){let t=new Set,r=e.subscribe(8,o=>{t.add(o),t.size>
9Np&&(Ie("Too many requests"),t.delete(t.values().next().value))});return{getMatchingRequest(o){let n=1/0,i;for(let s of t){let a=o.startTime-s.startClocks.relative;0<=a&&a<n&&s.url===o.name&&(n=Math.abs(a),i=s)}return i&&t.delete(i),i},stop(){r.unsubscribe()}}}var wp=32*1024;function Oa(e,t){return t.allowedGraphQlUrls.find(r=>it([r.match],e))}function Ra(e,t=!1){if(!e||typeof e!="string")return;let r;try{r=JSON.parse(e)}catch(a){return}if(!r||!r.query)return;let o=r.query.trim(),n=kp(o),i=r.operationName;if(!n)return;let s;return r.variables&&(s=JSON.stringify(r.variables)),{operationType:n,operationName:i,variables:s,payload:t?Pt(o,wp,"..."):void 0}}function kp(e){var t;return(t=e.match(/^\s*(query|mutation|subscription)\b/i))===null||t===void 0?void 0:t[1]}function wa(e,t,r,o=rs(),n=Aa){let i,s=t.trackEarlyRequests;s?i=Ca(e):e.subscribe(8,u=>{c(()=>Lp(u,t,r))});let a=W(t,{type:I.RESOURCE,buffered:!0}).subscribe(u=>{for(let p of u)(s||!Cn(p))&&c(()=>Na(p,t,r,i))});n(t,u=>{c(()=>Na(u,t,r,i))});function c(u){o.push(()=>{let p=u();p&&e.notify(12,p)})}return{stop:()=>{o.stop(),a.unsubscribe()}}}function Lp(e,t,r){let o=_a(e);return ka(o,e,r,t)}function Na(e,t,r,o){let n=Cn(e)&&o?o.getMatchingRequest(e):void 0;return ka(e,n,r,t)}function ka(e,t,r,o){if(!e&&!t)return;let n=t?Up(t,o):Vp(e,o);if(!o.trackResources&&!n)return;let i=e?Ye(e.startTime):t.startClocks,s=e?us(e):Fp(r,i,t.duration),a=t&&Mp(t,o),c=Y({date:i.timeStamp,resource:{id:D(),duration:v(s),type:t?t.type===$t.XHR?Q.XHR:Q.FETCH:cs(e),method:t?t.method:void 0,status_code:t?t.status:Bp(e.responseStatus),url:t?Rn(t.url):e.name,protocol:e&&ds(e),delivery_type:e&&ps(e),graphql:a},type:h.RESOURCE,_dd:{discarded:!o.trackResources}},n,e&&Pp(e));return{startTime:i.relative,duration:s,rawRumEvent:c,domainContext:Dp(e,t)}}function Mp(e,t){let r=Oa(e.url,t);if(r)return Ra(e.body,r.trackPayload)}function Dp(e,t){if(t){let r={performanceEntry:e,isAborted:t.isAborted,handlingStack:t.handlingStack};return t.type===$t.XHR?g({xhr:t.xhr},r):g({requestInput:t.input,requestInit:t.init,response:t.response,error:t.error},r)}return{performanceEntry:e}}function Pp(e){let{renderBlockingStatus:t}=e;return{resource:g(g({render_blocking_status:t},fs(e)),ls(e))}}function Up(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}}}function Vp(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:mo().toString(),rule_psr:t.rulePsr}}}function Fp(e,t,r){return e.wasInPageStateDuringPeriod("frozen",t.relative,r)?void 0:r}function Bp(e){return e===0?void 0:e}function La(e,t,r){let{stop:o,eventCounts:n}=go({lifeCycle:e,isChildEvent:i=>i.view.id===t,onChange:r});return{stop:o,eventCounts:n}}var Gp=10*U;function Ma(e,t,r){return{stop:W(e,{type:I.PAINT,buffered:!0}).subscribe(n=>{let i=n.find(s=>s.name==="first-contentful-paint"&&s.startTime<t.timeStamp&&s.startTime<Gp);i&&r(i.startTime)}).unsubscribe}}function Da(e,t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t(N(e,G()))})})}function Pa(e,t,r){let o=W(e,{type:I.FIRST_INPUT,buffered:!0}).subscribe(n=>{let i=n.find(s=>s.startTime<t.timeStamp);if(i){let s=N(i.startTime,i.processingStart),a;i.target&&oe(i.target)&&(a=De(i.target,e.actionNameAttribute)),r({delay:s>=0?s:0,time:i.startTime,targetSelector:a})}});return{stop:()=>{o.unsubscribe()}}}function Ua(e,t,r=_o){return Hp(e,()=>{let o=r();Kp(o)||t($p(o))})}function $p(e){return{domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:e.responseStart>=0&&e.responseStart<=G()?e.responseStart:void 0}}function Kp(e){return e.loadEventEnd<=0}function Hp(e,t){let r,{stop:o}=Bt(e,"complete",()=>{r=V(()=>t())});return{stop:()=>{o(),q(r)}}}var jp=10*U;function Va(e,t,r,o){let n=1/0,{stop:i}=se(e,r,["pointerdown","keydown"],c=>{n=c.timeStamp},{capture:!0,once:!0}),s=0,a=W(e,{type:I.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(c=>{let u=Mr(c,p=>p.entryType===I.LARGEST_CONTENTFUL_PAINT&&p.startTime<n&&p.startTime<t.timeStamp&&p.startTime<jp&&p.size>s);if(u){let p;u.element&&(p=De(u.element,e.actionNameAttribute)),o({value:u.startTime,targetSelector:p,resourceUrl:qp(u)}),s=u.size}});return{stop:()=>{i(),a.unsubscribe()}}}function qp(e){return e.url===""?void 0:e.url}function xo(e,t,r=window){if(document.visibilityState==="hidden")return{timeStamp:0,stop:O};if(ue(I.VISIBILITY_STATE)){let i=performance.getEntriesByType(I.VISIBILITY_STATE).filter(s=>s.name==="hidden").find(s=>s.startTime>=t.relative);if(i)return{timeStamp:i.startTime,stop:O}}let o=1/0,{stop:n}=se(e,r,["pagehide","visibilitychange"],i=>{(i.type==="pagehide"||document.visibilityState==="hidden")&&(o=i.timeStamp,n())},{capture:!0});return{get timeStamp(){return o},stop:n}}function Fa(e,t,r,o){let n={},{stop:i}=Ua(e,l=>{r(l.loadEvent),n.navigationTimings=l,o()}),s=xo(e,t),{stop:a}=Ma(e,s,l=>{n.firstContentfulPaint=l,o()}),{stop:c}=Va(e,s,window,l=>{n.largestContentfulPaint=l,o()}),{stop:u}=Pa(e,s,l=>{n.firstInput=l,o()});function p(){i(),a(),c(),u(),s.stop()}return{stop:p,initialViewMetrics:n}}var $n=(e,t)=>e*t,Wp=(e,t)=>{let r=Math.max(e.left,t.left),o=Math.max(e.top,t.top),n=Math.min(e.right,t.right),i=Math.min(e.bottom,t.bottom);return r>=n||o>
9=i?0:$n(n-r,i-o)},Kn=e=>{let t=$n(e.previousRect.width,e.previousRect.height),r=$n(e.currentRect.width,e.currentRect.height),o=Wp(e.previousRect,e.currentRect);return t+r-o};function Ga(e,t,r){if(!Qp())return{stop:O};let o=0,n;r({value:0});let i=Jp(),s=W(e,{type:I.LAYOUT_SHIFT,buffered:!0}).subscribe(a=>{var c;for(let u of a){if(u.hadRecentInput||u.startTime<t)continue;let{cumulatedValue:p,isMaxValue:l}=i.update(u);if(l){let d=zp(u.sources);n={target:d?.node?new WeakRef(d.node):void 0,time:N(t,u.startTime),previousRect:d?.previousRect,currentRect:d?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(p>o){o=p;let d=(c=n?.target)===null||c===void 0?void 0:c.deref();r({value:ze(o,4),targetSelector:d&&De(d,e.actionNameAttribute),time:n?.time,previousRect:n?.previousRect?Ba(n.previousRect):void 0,currentRect:n?.currentRect?Ba(n.currentRect):void 0,devicePixelRatio:n?.devicePixelRatio})}}});return{stop:()=>{s.unsubscribe()}}}function zp(e){let t;for(let r of e)if(r.node&&oe(r.node)){let o=Kn(r);(!t||Kn(t)<o)&&(t=r)}return t}function Ba({x:e,y:t,width:r,height:o}){return{x:e,y:t,width:r,height:o}}var Yp=5*P,Xp=P;function Jp(){let e=0,t,r,o=0;return{update:n=>{let i=t===void 0||n.startTime-r>=Xp||n.startTime-t>=Yp,s;return i?(t=r=n.startTime,o=e=n.value,s=!0):(e+=n.value,r=n.startTime,s=n.value>o,s&&(o=n.value)),{cumulatedValue:e,isMaxValue:s}}}}function Qp(){return ue(I.LAYOUT_SHIFT)&&"WeakRef"in window}var ho,$a=0,Hn=1/0,jn=0;function Ka(){"interactionCount"in performance||ho||(ho=new window.PerformanceObserver(b(e=>{e.getEntries().forEach(t=>{let r=t;r.interactionId&&(Hn=Math.min(Hn,r.interactionId),jn=Math.max(jn,r.interactionId),$a=(jn-Hn)/7+1)})})),ho.observe({type:"event",buffered:!0,durationThreshold:0}))}var qn=()=>ho?$a:window.performance.interactionCount||0;var Ha=10,Zp=1*U;function ja(e,t,r){if(!rf())return{getInteractionToNextPaint:()=>{},setViewEnd:O,stop:O};let{getViewInteractionCount:o,stopViewInteractionCount:n}=tf(r),i=1/0,s=ef(o),a=-1,c,u;function p(m){for(let E of m)E.interactionId&&E.startTime>=t&&E.startTime<=i&&s.process(E);let f=s.estimateP98Interaction();f&&f.duration!==a&&(a=f.duration,u=N(t,f.startTime),c=pa(f.startTime),!c&&f.target&&oe(f.target)&&(c=De(f.target,e.actionNameAttribute)))}let l=W(e,{type:I.FIRST_INPUT,buffered:!0}).subscribe(p),d=W(e,{type:I.EVENT,durationThreshold:40,buffered:!0}).subscribe(p);return{getInteractionToNextPaint:()=>{if(a>=0)return{value:Math.min(a,Zp),targetSelector:c,time:u};if(o())return{value:0}}
9,setViewEnd:m=>{i=m,n()},stop:()=>{d.unsubscribe(),l.unsubscribe()}}}function ef(e){let t=[];function r(){t.sort((o,n)=>n.duration-o.duration).splice(Ha)}return{process(o){let n=t.findIndex(s=>o.interactionId===s.interactionId),i=t[t.length-1];n!==-1?o.duration>t[n].duration&&(t[n]=o,r()):(t.length<Ha||o.duration>i.duration)&&(t.push(o),r())},estimateP98Interaction(){let o=Math.min(t.length-1,Math.floor(e()/50));return t[o]}}}function tf(e){Ka();let t=e===xe.INITIAL_LOAD?0:qn(),r={stopped:!1};function o(){return qn()-t}return{getViewInteractionCount:()=>r.stopped?r.interactionCount:o(),stopViewInteractionCount:()=>{r={stopped:!0,interactionCount:o()}}}}function rf(){return ue(I.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function qa(e,t,r,o,n,i,s){let a=n===xe.INITIAL_LOAD,c=!0,u=[],p=xo(o,i);function l(){if(!c&&!a&&u.length>0){let m=Math.max(...u);m<p.timeStamp-i.relative&&s(m)}}let{stop:d}=gr(e,t,r,o,m=>{c&&(c=!1,m.hadActivity&&u.push(N(i.timeStamp,m.end)),l())});return{stop:()=>{d(),p.stop()},setLoadEvent:m=>{a&&(a=!1,u.push(m),l())}}}function of(){let e,t=window.visualViewport;return t?e=t.pageLeft-t.offsetLeft:window.scrollX!==void 0?e=window.scrollX:e=window.pageXOffset||0,Math.round(e)}function Wn(){let e,t=window.visualViewport;return t?e=t.pageTop-t.offsetTop:window.scrollY!==void 0?e=window.scrollY:e=window.pageYOffset||0,Math.round(e)}var zn;function Yn(e){return zn||(zn=nf(e)),zn}function nf(e){return new y(t=>{let{throttled:r}=et(()=>{t.notify(Kt())},200);return w(e,window,"resize",r,{capture:!0,passive:!0}).stop})}function Kt(){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)}}var sf=P;function Wa(e,t,r,o=cf(e)){let n=0,i=0,s=0,a=o.subscribe(({scrollDepth:c,scrollTop:u,scrollHeight:p})=>{let l=!1;if(c>n&&(n=c,l=!0),p>i){i=p;let d=G();s=N(t.relative,d),l=!0}l&&r({maxDepth:Math.min(n,i),maxDepthScrollTop:u,maxScrollHeight:i,maxScrollHeightTime:s})});return{stop:()=>a.unsubscribe()}}function af(){let e=Wn(),{height:t}=Kt(),r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),o=Math.round(t+e);return{scrollHeight:r,scrollDepth:o,scrollTop:e}}function cf(e,t=sf){return new y(r=>{function o(){r.notify(af())}if(window.ResizeObserver){let n=et(o,t,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,s=new ResizeObserver(b(n.throttled));i&&s.observe(i);let a=w(e,window,"scroll",n.throttled,{passive:!0});return()=>{n.cancel(),s.disconnect(),a.stop()}}})}function za(e,t,r,o,n,i,s){let a={},{stop:c,setLoadEvent:u}=qa(e,t,r,o,i,s,E=>{a.loadingTime=E,n()}),{stop:p}=Wa(o,s,E=>{a.scroll=E}),{stop:l}=Ga(o,s.relative,E=>{a.cumulativeLayoutShift=E,n()}),{stop:d,getInteractionToNextPaint:m,setViewEnd:f}=ja(o,s.relative,i);return{stop:()=>{c(),l(),p()},stopINPTracking:d,setLoadEvent:u,setViewEnd:f,getCommonViewMetrics:()=>(a.interactionToNextPaint=m(),a)}}function Ya(e,t){let{stop:r}=w(e,window,"pageshow",o=>{o.persisted&&t(o)},{capture:!0});return r}function Xa(e,t,r){Da(e.relative,o=>{t.firstContentfulPaint=o,t.largestContentfulPaint={value:o},r()})}var uf=3e3,lf=5*U,df=5*U;function Qa(e,t,r,o,n,i,s,a){let c=new Set,u=d(xe.INITIAL_LOAD,Ar(),a),p;m();let l;s&&(l=f(i),n.trackBfcacheViews&&(p=Ya(n,E=>{u.end();let _=Ye(E.timeStamp);u=d(xe.BF_CACHE,_,void 0)})));function d(E,_,R){let F=pf(t,r,o,n,e,E,_,R);return c.add(F),F.stopObservable.subscribe(()=>{c.delete(F)}),F}function m(){t.subscribe(10,()=>{u=d(xe.ROUTE_CHANGE,void 0,{name:u.name,service:u.service,version:u.version,context:u.contextManager.getContext()})}),t.subscribe(9,()=>{u.end({sessionIsActive:!1})})}function f(E){return E.subscribe(({oldLocation:_,newLocation:R})=>{mf(_,R)&&(u.end(),u=d(xe.ROUTE_CHANGE))})}return{addTiming:(E,_=B())=>{u.addTiming(E,_)},startView:(E,_)=>{u.end({endClocks:_}),u=d(xe.ROUTE_CHANGE,_,E)},setViewContext:E=>{u.contextManager.setContext(E)},setViewContextProperty:(E,_)=>{u.contextManager.setContextProperty(E,_)}
9,setViewName:E=>{u.setViewName(E)},getViewContext:()=>u.contextManager.getContext(),stop:()=>{l&&l.unsubscribe(),p&&p(),u.end(),c.forEach(E=>E.stop())}}}function pf(e,t,r,o,n,i,s=M(),a){let c=D(),u=new y,p={},l=0,d,m=Ve(n),f=Ke(),E=!0,_=a?.name,R=a?.service||o.service,F=a?.version||o.version,le=a?.context;le&&f.setContext(le);let x={id:c,name:_,startClocks:s,service:R,version:F,context:le};e.notify(1,x),e.notify(2,x);let{throttled:A,cancel:S}=et(qe,uf,{leading:!1}),{setLoadEvent:k,setViewEnd:zt,stop:Io,stopINPTracking:Tr,getCommonViewMetrics:_r}=za(e,t,r,o,je,i,s),{stop:Ao,initialViewMetrics:xr}=i===xe.INITIAL_LOAD?Fa(o,s,k,je):{stop:O,initialViewMetrics:{}};i===xe.BF_CACHE&&Xa(s,xr,je);let{stop:Co,eventCounts:Oo}=La(e,c,je),Ro=ye(qe,lf),No=e.subscribe(11,Se=>{Se.reason===Fe.UNLOADING&&qe()});qe(),f.changeObservable.subscribe(je);function hr(){e.notify(3,{id:c,name:_,context:f.getContext(),startClocks:s,sessionIsActive:E})}function je(){hr(),A()}function qe(){S(),hr(),l+=1;let Se=d===void 0?B():d.timeStamp;e.notify(4,{customTimings:p,documentVersion:l,id:c,name:_,service:R,version:F,context:f.getContext(),loadingType:i,location:m,startClocks:s,commonViewMetrics:_r(),initialViewMetrics:xr,duration:N(s.timeStamp,Se),isActive:d===void 0,sessionIsActive:E,eventCounts:Oo})}return{get name(){return _},service:R,version:F,contextManager:f,stopObservable:u,end(Se={}){var Pe,st;d||(d=(Pe=Se.endClocks)!==null&&Pe!==void 0?Pe:M(),E=(st=Se.sessionIsActive)!==null&&st!==void 0?st:!0,e.notify(5,{endClocks:d}),e.notify(6,{endClocks:d}),Re(Ro),zt(d.relative),Io(),No.unsubscribe(),qe(),V(()=>{this.stop()},df))},stop(){Ao(),Co(),Tr(),u.notify()},addTiming(Se,Pe){if(d)return;let st=ri(Pe)?Pe:N(s.timeStamp,Pe);p[ff(Se)]=st,je()},setViewName(Se){_=Se,qe()}}}function ff(e){let t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&T.warn(`Invalid timing name: ${e}, sanitized to: ${t}`),t}function mf(e,t){return e.pathname!==t.pathname||!Ef(t.hash)&&Ja(t.hash)!==Ja(e.hash)}function Ef(e){let t=e.substring(1);return t!==""&&!!document.getElementById(t)}function Ja(e){let t=e.indexOf("?");return t<0?e:e.slice(0,t)}function Za(e,t,r,o,n,i,s,a,c,u){return e.subscribe(4,p=>e.notify(12,gf(p,r,a))),t.register(0,({startTime:p,eventType:l})=>{let d=c.findView(p);return d?{type:l,service:d.service,version:d.version,context:d.context,view:{id:d.id,name:d.name}}:ce}),t.register(1,({startTime:p})=>{var l;return{view:{id:(l=c.findView(p))===null||l===void 0?void 0:l.id}}}),Qa(o,e,n,i,r,s,!r.trackViewsManually,u)}function gf(e,t,r){var o,n,i,s,a,c,u,p,l,d,m,f,E,_,R,F,le,x;let A=r.getReplayStats(e.id),S=(n=(o=e.commonViewMetrics)===null||o===void 0?void 0:o.cumulativeLayoutShift)===null||n===void 0?void 0:n.devicePixelRatio,k={_dd:{document_version:e.documentVersion,replay_stats:A,cls:S?{device_pixel_ratio:S}:void 0,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:h.VIEW,view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:(i=e.commonViewMetrics.cumulativeLayoutShift)===null||i===void 0?void 0:i.value,cumulative_layout_shift_time:v((s=e.commonViewMetrics.cumulativeLayoutShift)===null||s===void 0?void 0:s.time),cumulative_layout_shift_target_selector:(a=e.commonViewMetrics.cumulativeLayoutShift)===null||a===void 0?void 0:a.targetSelector,first_byte:v((c=e.initialViewMetrics.navigationTimings)===null||c===void 0?void 0:c.firstByte),dom_complete:v((u=e.initialViewMetrics.navigationTimings)===null||u===void 0?void 0:u.domComplete),dom_content_loaded:v((p=e.initialViewMetrics.navigationTimings)===null||p===void 0?void 0:p.domContentLoaded),dom_interactive:v((l=e.initialViewMetrics.navigationTimings)===null||l===void 0?void 0:l.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:v(e.initialViewMetrics.firstContentfulPaint),first_input_delay:v((d=e.initialViewMetrics.firstInput)===null||d===void 0?void 0:d.delay),first_input_time:v((m=e.initialViewMetrics.firstInput)===null||m===void 0?void 0:m.time),first_input_target_selector:(f=e.initialViewMetrics.firstInput)===null||f===void 0?void 0:f.targetSelector,interaction_to_next_paint:v((E=e.commonViewMetrics.interactionToNextPaint)===null||E===void 0?void 0:E.value),interaction_to_next_paint_time:v((_=e.commonViewMetrics.interactionToNextPaint)===null||_===void 0?void 0:_.time),interaction_to_next_paint_target_selector:(R=e.commonViewMetrics.interactionToNextPaint)===null||R===void 0?void 0:R.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:v((F=e.initialViewMetrics.largestContentfulPaint)===null||F===void 0?void 0:F.value),largest_contentful_paint_target_selector:(le=e.initialViewMetrics.largestContentfulPaint)===null||le===void 0?void 0:le.targetSelector,load_event:v((x=e.initialViewMetrics.navigationTimings)===null||x===void 0?void 0:x.loadEvent),loading_time:Eo(v(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},performance:Sf(e.commonViewMetrics,e.initialViewMetrics),resource:{count:e.eventCounts.resourceCount},time_spent:v(e.duration)},display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:v(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:t.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:ss()}};return Z(e.customTimings)||(k.view.custom_timings=Rr(e.customTimings,v)),{rawRumEvent:k,startTime:e.startClocks.relative,duration:e.duration,domainContext:{location:e.location}}}function Sf({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:r,firstInput:o,largestContentfulPaint:n}){return{cls:e&&{score:e.value,timestamp:v(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:r&&{timestamp:v(r)},fid:o&&{duration:v(o.delay),timestamp:v(o.time),target_selector:o.targetSelector},inp:t&&{duration:v(t.value),timestamp:v(t.time),target_selector:t.targetSelector},lcp:n&&{timestamp:v(n.value),target_selector:n.targetSelector,resource_url:n.resourceUrl}}}var bf="rum";function ec(e,t,r){let o=dn(e,bf,n=>yf(e,n),r);return o.expireObservable.subscribe(()=>{t.notify(9)}
9),o.renewObservable.subscribe(()=>{t.notify(10)}),o.sessionStateUpdateObservable.subscribe(({previousState:n,newState:i})=>{if(!n.forcedReplay&&i.forcedReplay){let s=o.findSession();s&&(s.isReplayForced=!0)}}),{findTrackedSession:n=>{let i=o.findSession(n);if(!(!i||i.trackingType==="0"))return{id:i.id,sessionReplay:i.trackingType==="1"?1:i.isReplayForced?2:0,anonymousId:i.anonymousId}},expire:o.expire,expireObservable:o.expireObservable,setForcedReplay:()=>o.updateSessionState({forcedReplay:"1"})}}function tc(){let e={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:Lr("records")?1:0};return{findTrackedSession:()=>e,expire:O,expireObservable:new y,setForcedReplay:O}}function yf(e,t){return Tf(t)?t:Oe(e.sessionSampleRate)?Oe(e.sessionReplaySampleRate)?"1":"2":"0"}function Tf(e){return e==="0"||e==="1"||e==="2"}function rc(e,t,r,o,n,i){let s=[e.rumEndpointBuilder];e.replica&&s.push(e.replica.rumEndpointBuilder);let a=Nt({encoder:i(2),request:Qe(s,e.batchBytesLimit,r),flushController:wt({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:o,sessionExpireObservable:n}),messageBytesLimit:e.messageBytesLimit});return t.subscribe(13,c=>{c.type===h.VIEW?a.upsert(c,c.view.id):a.add(c)}),a}function oc(e){let t=Ne();e.subscribe(13,r=>{t.send("rum",r)})}var _f=re;function nc(e,t,r,o){let n=ge({expireDelay:_f}),i;e.subscribe(1,({startClocks:c})=>{let u=o.href;n.add(a({url:u,referrer:i||document.referrer}),c.relative),i=u}),e.subscribe(6,({endClocks:c})=>{n.closeActive(c.relative)});let s=r.subscribe(({newLocation:c})=>{let u=n.find();if(u){let p=G();n.closeActive(p),n.add(a({url:c.href,referrer:u.referrer}),p)}});function a({url:c,referrer:u}){return{url:c,referrer:u}}return t.register(0,({startTime:c,eventType:u})=>{let p=n.find(c);return p?{type:u,view:{url:p.url,referrer:p.referrer}}:ce}),{findUrl:c=>n.find(c),stop:()=>{s.unsubscribe(),n.stop()}}}function sc(e,t){let r=Ve(t);return new y(o=>{let{stop:n}=xf(e,s),{stop:i}=hf(e,s);function s(){if(r.href===t.href)return;let a=Ve(t);o.notify({newLocation:a,oldLocation:r}),r=a}return()=>{n(),i()}})}function xf(e,t){let{stop:r}=te(ic("pushState"),"pushState",({onPostCall:i})=>{i(t)}),{stop:o}=te(ic("replaceState"),"replaceState",({onPostCall:i})=>{i(t)}),{stop:n}=w(e,window,"popstate",t);return{stop:()=>{r(),o(),n()}}}function hf(e,t){return w(e,window,"hashchange",t)}function ic(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}var vf=re;function ac(e,t,r){let o=ge({expireDelay:vf});return e.subscribe(1,({startClocks:n})=>{o.add({},n.relative)}),e.subscribe(6,({endClocks:n})=>{o.closeActive(n.relative)}),t.register(0,({startTime:n,eventType:i})=>{if(!r.trackFeatureFlagsForEvents.concat([h.VIEW,h.ERROR]).includes(i))return H;let a=o.find(n);return!a||Z(a)?H:{type:i,feature_flags:a}}),{addFeatureFlagEvaluation:(n,i)=>{let s=o.find();s&&(s[n]=i)}}}var If=10*P,Ht,vo;function lc(e,t,r){e.metricsEnabled&&(dc(),vo=!1,t.subscribe(13,()=>{vo=!0}),r.subscribe(({bytesCount:o,messagesCount:n})=>{vo&&(vo=!1,Ht.batchCount+=1,uc(Ht.batchBytesCount,o),uc(Ht.batchMessagesCount,n))}),ye(Af,If))}function Af(){Ht.batchCount!==0&&(rt("Customer data measures",Ht),dc())}function cc(){return{min:1/0,max:0,sum:0}}function uc(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function dc(){Ht={batchCount:0,batchBytesCount:cc(),batchMessagesCount:cc()}}var Cf=4e3,Of=500,Rf=re;function pc(e,t,r=Of){let o=ge({expireDelay:Rf,maxEntries:Cf}),n;ue(I.VISIBILITY_STATE)&&performance.getEntriesByType(I.VISIBILITY_STATE).forEach(u=>{let p=u.name==="hidden"?"hidden":"active";s(p,u.startTime)}),s(fc(),G());let{stop:i}=se(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],c=>{s(wf(c),c.timeStamp)},{capture:!0});function s(c,u=G()){c!==n&&(n=c,o.closeActive(u),o.add({state:n,startTime:u},u))}function a(c,u,p){return o.findAll(u,p).some(l=>l.state===c)}return e.register(0,({startTime:c,duration:u=0,eventType:p})=>{if(p===h.VIEW){let l=o.findAll(c,u);return{type:p,_dd:{page_states:Nf(l,c,r)}}}return p===h.ACTION||p===h.ERROR?{type:p,view:{in_foreground:a("active",c,0)}}:H}),{wasInPageStateDuringPeriod:a,addPageState:s,stop:()=>{i(),o.stop()}}}function Nf(e,t,r){if(e.length!==0)return e.slice(-r).reverse().map(({state:o,startTime:n})=>({state:o,start:v(N(t,n))}
9))}function wf(e){return e.type==="freeze"?"frozen":e.type==="pagehide"?e.persisted?"frozen":"terminated":fc()}function fc(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function mc(e,t){let r,o=requestAnimationFrame(b(()=>{r=Kt()})),n=Yn(t).subscribe(i=>{r=i}).unsubscribe;return e.register(0,({eventType:i})=>({type:i,display:r?{viewport:r}:void 0})),{stop:()=>{n(),o&&cancelAnimationFrame(o)}}}function Ec(e,t){let r=window.cookieStore?kf(e):Mf;return new y(o=>r(t,n=>o.notify(n)))}function kf(e){return(t,r)=>w(e,window.cookieStore,"change",n=>{let i=n.changed.find(s=>s.name===t)||n.deleted.find(s=>s.name===t);i&&r(i.value)}).stop}var Lf=P;function Mf(e,t){let r=ot(document.cookie,e),o=ye(()=>{let n=ot(document.cookie,e);n!==r&&t(n)},Lf);return()=>{Re(o)}}var gc="datadog-ci-visibility-test-execution-id";function Sc(e,t,r=Ec(e,gc)){var o;let n=_e(gc)||((o=window.Cypress)===null||o===void 0?void 0:o.env("traceId")),i=r.subscribe(s=>{n=s});return t.register(0,({eventType:s})=>typeof n!="string"?H:{type:s,session:{type:"ci_test"},ci_test:{test_execution_id:n}}),{stop:()=>{i.unsubscribe()}}}function bc(e,t){let r=W(t,{type:I.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(o=>{for(let n of o){let i=Ye(n.startTime),s={date:i.timeStamp,long_task:{id:D(),entry_type:po.LONG_ANIMATION_FRAME,duration:v(n.duration),blocking_duration:v(n.blockingDuration),first_ui_event_timestamp:v(n.firstUIEventTimestamp),render_start:v(n.renderStart),style_and_layout_start:v(n.styleAndLayoutStart),start_time:v(n.startTime),scripts:n.scripts.map(a=>({duration:v(a.duration),pause_duration:v(a.pauseDuration),forced_style_and_layout_duration:v(a.forcedStyleAndLayoutDuration),start_time:v(a.startTime),execution_start:v(a.executionStart),source_url:a.sourceURL,source_function_name:a.sourceFunctionName,source_char_position:a.sourceCharPosition,invoker:a.invoker,invoker_type:a.invokerType,window_attribution:a.windowAttribution}))},type:h.LONG_TASK,_dd:{discarded:!1}};e.notify(12,{rawRumEvent:s,startTime:i.relative,duration:n.duration,domainContext:{performanceEntry:n}})}});return{stop:()=>r.unsubscribe()}}function yc(e,t){let r=W(t,{type:I.LONG_TASK,buffered:!0}).subscribe(o=>{for(let n of o){if(n.entryType!==I.LONG_TASK||!t.trackLongTasks)break;let i=Ye(n.startTime),s={date:i.timeStamp,long_task:{id:D(),entry_type:po.LONG_TASK,duration:v(n.duration)},type:h.LONG_TASK,_dd:{discarded:!1}};e.notify(12,{rawRumEvent:s,startTime:i.relative,duration:n.duration,domainContext:{performanceEntry:n}})}});return{stop(){r.unsubscribe()}}}function Tc(e){e.register(0,({eventType:t})=>{if(!lr())return H;let r=no(),o=io();return{type:t,session:{type:"synthetics"},synthetics:{test_id:r,result_id:o,injected:ur()}}})}function xc(e,t,r){let o=Mt(e),n=r(o);return Ze(t).forEach(([i,s])=>Xn(e,o,i.split(/\.|(?=\[\])/),s)),n}function Xn(e,t,r,o){let[n,...i]=r;if(n==="[]"){Array.isArray(e)&&Array.isArray(t)&&e.forEach((s,a)=>Xn(s,t[a],i,o));return}if(!(!_c(e)||!_c(t))){if(i.length>0)return Xn(e[n],t[n],i,o);Df(e,n,t[n],o)}}function Df(e,t,r,o){let n=me(r);n===o?e[t]=L(r):o==="object"&&(n==="undefined"||n==="null")&&(e[t]={})}function _c(e){return me(e)==="object"}var jt={"view.name":"string","view.url":"string","view.referrer":"string"},qt={context:"object"},Wt={service:"string",version:"string"},hc;function vc(e,t,r,o){hc={[h.VIEW]:g(g(g({"view.performance.lcp.resource_url":"string"},qt),jt),Wt),[h.ERROR]:g(g(g({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},qt),jt),Wt),[h.RESOURCE]:g(g(g({"resource.url":"string"},qt),jt),Wt),[h.ACTION]:g(g(g({"action.target.name":"string"},qt),jt),Wt),[h.LONG_TASK]:g(g(g({"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string"},qt),jt),Wt),[h.VITAL]:g(g(g({},qt),jt),Wt)};let n={[h.ERROR]:so(h.ERROR,e.eventRateLimiterThreshold,o),[h.ACTION]:so(h.ACTION,e.eventRateLimiterThreshold,o),[h.VITAL]:so(h.VITAL,e.eventRateLimiterThreshold,o)};t.subscribe(12,({startTime:i,duration:s,rawRumEvent:a,domainContext:c})=>{let u=r.triggerHook(0,{eventType:a.type,startTime:i,duration:s});if(u===ce)return;let p=Y(u,a,{ddtags:Vr(e).join(",")});Pf(p,e.beforeSend,c,n)&&(Z(p.context)&&delete p.context,t.notify(13,p))})}function Pf(e,t,r,o){var n;if(t){let s=xc(e,hc[e.type],a=>t(a,r));if(s===!1&&e.type!==h.VIEW)return!1;
9s===!1&&T.warn("Can't dismiss view events using beforeSend!")}return!((n=o[e.type])===null||n===void 0?void 0:n.isLimitReached())}function Ic(e,t,r,o){e.register(0,({eventType:n,startTime:i})=>{let s=t.findTrackedSession(i),a=o.findView(i);if(!s||!a)return ce;let c,u,p;return n===h.VIEW?(c=r.getReplayStats(a.id)?!0:void 0,u=s.sessionReplay===1,p=a.sessionIsActive?void 0:!1):c=r.isRecording()?!0:void 0,{type:n,session:{id:s.id,type:"user",has_replay:c,sampled_for_replay:u,is_active:p}}}),e.register(1,({startTime:n})=>{let i=t.findTrackedSession(n);return i?{session:{id:i.id}}:H})}function Ac(e){e.register(0,({eventType:t})=>({type:t,connectivity:Gr()}))}function Cc(e,t,r){e.register(0,({eventType:o})=>{let n=t.source;return{type:o,_dd:{format_version:2,drift:ti(),configuration:{session_sample_rate:ze(t.sessionSampleRate,3),session_replay_sample_rate:ze(t.sessionReplaySampleRate,3),profiling_sample_rate:ze(t.profilingSampleRate,3)},browser_sdk_version:he()?"6.23.0":void 0,sdk_name:r},application:{id:t.applicationId},date:B(),source:n}}),e.register(1,()=>({application:{id:t.applicationId}}))}function Oc(e,t){e.register(1,()=>t.isGranted()?H:ce)}var Jn=Ii;var Uf=[h.ACTION,h.ERROR,h.LONG_TASK,h.RESOURCE,h.VITAL];function Rc(e){return{addEvent:(t,r,o,n)=>{Uf.includes(r.type)&&e.notify(12,{startTime:t,rawRumEvent:r,domainContext:o,duration:n})}}}function Nc(e,t){if(!t.metricsEnabled)return{stop:O};let{unsubscribe:r}=e.subscribe(4,({initialViewMetrics:o})=>{!o.largestContentfulPaint||!o.navigationTimings||(rt("Initial view metrics",{metrics:Vf(o.largestContentfulPaint,o.navigationTimings)}),r())});return{stop:r}}function Vf(e,t){return{lcp:{value:e.value},navigation:{domComplete:t.domComplete,domContentLoaded:t.domContentLoaded,domInteractive:t.domInteractive,firstByte:t.firstByte,loadEvent:t.loadEvent}}}function Ff(e,t,r,o,n,i,s,a,c){let u=[],p=new Mn,l=Jn();p.subscribe(13,de=>er("rum",de));let d=de=>{p.notify(14,{error:de}),Ie("Error reported to customer",{"error.message":de.message})},m=Bo(e),f=m.subscribe(de=>{p.notify(11,de)});u.push(()=>f.unsubscribe());let E=$r("browser-rum-sdk",e,l,d,m,n);u.push(E.stop);let _=he()?tc():ec(e,p,i);if(he())oc(p);else{let de=rc(e,p,d,m,_.expireObservable,n);u.push(()=>de.stop()),lc(E,p,de.flushController.flushObservable)}let R=ks(),F=sc(e,location),{observable:le,stop:x}=Ms();u.push(x),Cc(l,e,c);let A=pc(l,e),S=Dn(p);u.push(()=>S.stop());let k=nc(p,l,F,location);u.push(()=>k.stop());let zt=ac(p,l,e);Ic(l,_,t,S),Ac(l),Oc(l,i);let Io=hn(l,e,"rum",!0),Tr=vn(l,e,_,"rum"),_r=xn(l,e,"rum"),{actionContexts:Ao,addAction:xr,addEvent:Co,stop:Oo}=Bf(p,l,e,A,R,le,d);u.push(Oo);
9let{addTiming:Ro,startView:No,setViewName:hr,setViewContext:je,setViewContextProperty:qe,getViewContext:Se,stop:Pe}=Za(p,l,e,location,R,le,F,t,S,o);u.push(Pe);let{stop:st}=Nc(p,E);u.push(st);let{stop:wc}=wa(p,e,A);if(u.push(wc),e.trackLongTasks)if(ue(I.LONG_ANIMATION_FRAME)){let{stop:de}=bc(p,e);u.push(de)}else yc(p,e);let{addError:kc}=ya(p,e,a);a.unbuffer(),Us(p,e,_,Tr,_r);let vr=Ss(p,A,s),Lc=Ds(e.applicationId,_,S,Ao,k);return u.push(()=>r.stop()),{addAction:xr,addEvent:Co,addError:kc,addTiming:Ro,addFeatureFlagEvaluation:zt.addFeatureFlagEvaluation,startView:No,setViewContext:je,setViewContextProperty:qe,getViewContext:Se,setViewName:hr,lifeCycle:p,viewHistory:S,session:_,stopSession:()=>_.expire(),getInternalContext:Lc.get,startDurationVital:vr.startDurationVital,stopDurationVital:vr.stopDurationVital,addDurationVital:vr.addDurationVital,addOperationStepVital:vr.addOperationStepVital,globalContext:Io,userContext:Tr,accountContext:_r,telemetry:E,stop:()=>{u.forEach(de=>de())},hooks:l}}function Bf(e,t,r,o,n,i,s){let a=ga(e,t,n,i,r),c=Rc(e),u=mc(t,r),p=Sc(r,t);return Tc(t),vc(r,e,t,s),{pageStateHistory:o,addAction:a.addAction,addEvent:c.addEvent,actionContexts:a.actionContexts,stop:()=>{a.stop(),p.stop(),u.stop(),o.stop()}}}function Gf(e,{session:t,viewContext:r,errorType:o}){let n=t?t.id:"no-session-id",i=[];o!==void 0&&i.push(`error-type=${o}`),r&&(i.push(`seed=${r.id}`),i.push(`from=${r.startClocks.timeStamp}`));let s=$f(e),a=`/rum/replay/sessions/${n}`;return`${s}${a}?${i.join("&")}`}function $f(e){let t=e.site,r=e.subdomain||Kf(e);return`https://${r?`${r}.`:""}${t}`}function Kf(e){switch(e.site){case ke:case _i:return"app";case Fr:return"dd";default:return}}export{at as a,Ce as b,Ot as c,T as d,Xt as e,Oe as f,P as g,Ye as h,ti as i,B as j,M as k,Ar as l,N as m,Jt as n,Em as o,ie as p,z as q,ct as r,Uc as s,b as t,pe as u,Je as v,V as w,q as x,y,et as z,O as A,Po as B,QE as C,tr as D,Dr as E,sn as F,Qr as G,Zr as H,eo as I,we as J,pt as K,tt as L,te as M,dl as N,L as O,ft as P,bu as Q,fe as R,un as S,ml as T,ar as U,w as V,se as W,Tt as X,ln as Y,Vr as Z,Lt as _,_u as $,er as aa,Mt as ba,Y as ca,si as da,ai as ea,Qe as fa,Ne as ga,Lr as ha,he as ia,Bo as ja,Go as ka,Nt as la,wt as ma,ce as na,H as oa,Ii as pa,$r as qa,Ie as ra,zo as sa,Kr as ta,rt as ua,$ as va,db as wa,ur as xa,dn as ya,pn as za,dr as Aa,so as Ba,Nl as Ca,En as Da,pr as Ea,Sn as Fa,yn as Ga,Tn as Ha,Ke as Ia,X as Ja,ql as Ka,xn as La,ao as Ma,hn as Na,co as Oa,vn as Pa,uo as Qa,j as Ra,J as Sa,In as Ta,$t as Ua,is as Va,h as Wa,ht as Xa,kn as Ya,Pd as Za,Ls as _a,Rn as $a,I as ab,ue as bb,Bs as cb,$d as db,Wx as eb,zx as fb,Gs as gb,js as hb,C as ib,tp as jb,nh as kb,bo as lb,ih as mb,Sr as nb,op as ob,np as pb,Vn as qb,uh as rb,of as sb,Wn as tb,Yn as ub,Kt as vb,Ff as wb,Gf as xb,id as yb};

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.