PageSourceSearch

https://www.headquarters.health/_next/static/chunks/34472.dfa1211e27fc8d1e.js

js headquarters.health collected 2026-10-05 18:03:31 UTC 173,117 bytes, 4 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34472],{992:(t,e,r)=>{r.d(e,{m5:()=>i});var n=r(57986);function i(t){let{env:e,service:r,version:n,datacenter:i,sdkVersion:o,variant:s}=t,l=[a("sdk_version",null!=o?o:"6.30.1")];return e&&l.push(a("env",e)),r&&l.push(a("service",r)),n&&l.push(a("version",n)),i&&l.push(a("datacenter",i)),s&&l.push(a("variant",s)),l}function a(t,e){var r;let i=e?`${t}:${e}`:t;return(i.length>200||(r=i,function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(t){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(r)))&&n.Vy.warn(`Tag ${i} doesn't meet tag requirements and will be sanitized. ${n.xG} ${n.fH}/getting_started/tagging/#defining-tags`),i.replace(/,/g,"_")}},5937:(t,e,r)=>{r.d(e,{Z:()=>n});let n="_dd_s"},8128:(t,e,r)=>{r.d(e,{tO:()=>c});var n=r(96656),i=r(48086),a=r(83037),o=r(49088),s=r(42274);let l=30*o.OY,u=n.Wq?1:50;function c({pageMayExitObservable:t,sessionExpireObservable:e}){let r,n=t.subscribe(t=>h(t.reason)),o=e.subscribe(()=>h("session_expire")),d=new i.cP(()=>()=>{n.unsubscribe(),o.unsubscribe()}),f=0,p=0;function h(t){if(0===p)return;let e=p,r=f;p=0,f=0,m(),d.notify({reason:t,messagesCount:e,bytesCount:r})}function m(){(0,a.DJ)(r),r=void 0}return{flushObservable:d,get messagesCount(){return p},notifyBeforeAddMessage(t){f+t>=s.AK&&h("bytes_limit"),p+=1,f+=t,void 0===r&&(r=(0,a.wg)(()=>{h("duration_limit")},l))},notifyAfterAddMessage(t=0){f+=t,p>=u?h("messages_limit"):f>=s.AK&&h("bytes_limit")},notifyAfterRemoveMessage(t){f-=t,0==(p-=1)&&m()}}}},10993:(t,e,r)=>{r.d(e,{AQ:()=>i,HB:()=>a,Q_:()=>l,_P:()=>o,gB:()=>s});var n=r(49088);let i=4*n.MA,a=15*n.iW,o=n.$H,s="0",l={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"}}
1,12102:(t,e,r)=>{r.d(e,{iA:()=>c,Hv:()=>f,ge:()=>u});var n=r(30666),i=r(90061),a=r(38335),o=r(5937),s=r(88007),l=r(10993);function u(t){let e=function(t){let e={};if(e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains){let t=(0,a.DQ)();if(!t)return;e.domain=t}return e}(t);return e&&(0,a.z$)(e)?{type:l.Q_.COOKIE,cookieOptions:e}:void 0}function c(t,e){let r={isLockEnabled:(0,i.F2)(),persistSession:r=>d(e,t,r,l.HB),retrieveSession:()=>f(e,t),expireSession:r=>d(e,t,(0,s.zn)(r,t),l.AQ)};if(!(0,a.B9)(o.Z)){let t=(0,a.B9)("_dd"),e=(0,a.B9)("_dd_r"),n=(0,a.B9)("_dd_l"),i={};t&&(i.id=t),n&&/^[01]$/.test(n)&&(i.logs=n),e&&/^[012]$/.test(e)&&(i.rum=e),(0,s.c$)(i)&&((0,s.oT)(i),r.persistSession(i))}return r}function d(t,e,r,i){let u=(0,s.D9)(r);e.betaEncodeCookieOptions&&(u=(0,s.D9)({...r,...!(0,n.RI)(r)?{c:p(t)}:{}})),(0,a.TV)(o.Z,u,e.trackAnonymousUser?l._P:i,t)}function f(t,e){if(e.betaEncodeCookieOptions){var r=t;let e,n=(0,a.OR)(o.Z),i=p(r);for(let t of n.reverse())if((e=(0,s.H9)(t)).c===i)break;return null==e||delete e.c,null!=e?e:{}}let n=(0,a.Ri)(o.Z);return(0,s.H9)(n)}function p(t){return((t.domain?t.domain.split(".").length-1:0)<<1|!!t.crossSite).toString(16)}},12760:(t,e,r)=>{let n;r.d(e,{AY:()=>o,L2:()=>s,c$:()=>l,l2:()=>a});var i=r(96656);function a(t){return l(t,location.href).href}function o(t){try{return!!l(t)}catch(t){return!1}}function s(t){let e=l(t).pathname;return"/"===e[0]?e:`/${e}`}function l(t,e){let{URL:r}=function(){if(!n){let t,e;try{(t=document.createElement("iframe")).style.display="none",document.body.appendChild(t),e=t.contentWindow}catch(t){e=i.J2}n={URL:e.URL},null==t||t.remove()}return n}();try{return void 0!==e?new r(t,e):new r(t)}catch(t){throw Error(`Failed to construct URL: ${String(t)}`)}}},12831:(t,e,r)=>{r.d(e,{Z:()=>s,m:()=>o});var n=r(74299),i=r(47566),a=r(57986);function o(t){let e={version:"6.30.1",onReady(t){t()},...t};return Object.defineProperty(e,"_setDebug",{get:()=>i.pM,enumerable:!1}),e}function s(t,e,r){let i=t[e];i&&!i.q&&i.version&&a.Vy.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),t[e]=r,i&&i.q&&i.q.forEach(t=>(0,n.y)(t,"onReady callback threw an error:")())}},12954:(t,e,r)=>{function n(t){return t>=500}function i(t){try{return t.clone()}catch(t){return}}r.d(e,{G:()=>n,i:()=>i})},13053:(t,e,r)=>{r.d(e,{a:()=>s});var n=r(57986),i=r(22873),a=r(84665);let o=220*i._m;function s(t,e=o){let r=(0,a.M)(Object.prototype),n=(0,a.M)(Array.prototype),i=[],c=new WeakMap,d=l(t,"$",void 0,i,c),f=JSON.stringify(d),p=f?f.length:0;if(p>e)return void u(e,"discarded",t);for(;i.length>0&&p<e;){let r=i.shift(),n=0;if(Array.isArray(r.source))for(let a=0;a<r.source.length;a++){let o=l(r.source[a],r.path,a,i,c);if(void 0!==o?p+=JSON.stringify(o).length:p+=4,p+=n,n=1,p>e){u(e,"truncated",t);break}r.target[a]=o}else for(let a in r.source)if(Object.prototype.hasOwnProperty.call(r.source,a)){let o=l(r.source[a],r.path,a,i,c);if(void 0!==o&&(p+=JSON.stringify(o).length+n+a.length+3,n=1),p>e){u(e,"truncated",t);break}r.target[a]=o}}return r(),n(),d}function l(t,e,r,n,i){let a=function(t){if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(t){}return t}(t);if(!a||"object"!=typeof a){var o;return"bigint"==typeof(o=a)?`[BigInt] ${o.toString()}`:"function"==typeof o?`[Function] ${o.name||"unknown"}`:"symbol"==typeof o?`[Symbol] ${o.description||o.toString()}`:o}let s=function t(e){try{if(e instanceof Event){var r;return{type:(r=e).type,isTrusted:r.isTrusted,currentTarget:r.currentTarget?t(r.currentTarget):null,target:r.target?t(r.target):null}}if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;let n=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(n&&n[1])return`[${n[1]}]`}catch(t){}return"[Unserializable]"}(a);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;if(i.has(t))return`[Reference seen at ${i.get(t)}]`;let l=void 0!==r?`${e}.${r}`:e,u=Array.isArray(a)?[]:{};return i.set(t,l),n.push({source:a,target:u,path:l}),u}function u(t,e,r){n.Vy.warn(`The data provided has been ${e} as it is over the limit of ${t} characters:`,r)}},16464:(t,e,r)=>{function n(t){return 0!==t&&100*Math.random()<=t}function i(t,e){return+t.toFixed(e)}function a(t){return o(t)&&t>=0&&t<=100}function o(t){return"number"==typeof t}r.d(e,{Et:()=>o,LI:()=>i,fp:()=>a,ic:()=>n})},17965:(t,e,r)=>{r.d(e,{WA:()=>m,uT:()=>g,bX:()=>_,hO:()=>b,Sz:()=>y});
1var n=r(74299),i=r(57986),a=r(16464),o=r(30666),s=r(77874),l=r(67438),u=r(96656),c=r(39972),d=r(90366);let f=["chrome-extension://","moz-extension://"];function p(t){return f.some(e=>t.includes(e))}var h=r(44231);let m={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},g={ALL:"all",SAMPLED:"sampled"};function v(t,e){return null==t||"string"==typeof t||(i.Vy.error(`${e} must be defined as a string`),!1)}function _(t,e){return void 0===t||!!(0,a.fp)(t)||(i.Vy.error(`${e} Sample Rate should be a number between 0 and 100`),!1)}function y(t,e){var r,a,f,m,g,y,b,w,S,k,E;return t&&t.clientToken?void 0===t.allowedTrackingOrigins||Array.isArray(t.allowedTrackingOrigins)?(!(E=t.site)||"string"!=typeof E||/(datadog|ddog|datad0g|dd0g)/.test(E)||(i.Vy.error(`Site should be a valid Datadog site. ${i.xG} ${i.fH}/getting_started/site/.`),0))&&_(t.sessionSampleRate,"Session")&&_(t.telemetrySampleRate,"Telemetry")&&_(t.telemetryConfigurationSampleRate,"Telemetry Configuration")&&_(t.telemetryUsageSampleRate,"Telemetry Usage")&&v(t.version,"Version")&&v(t.env,"Env")&&v(t.service,"Service")&&function(t,e){let r=(0,d.B)((0,u.VZ)().location),n=r?r.origin:"",a=t.allowedTrackingOrigins;if(!a)return!function(t,e=""){return!p(t)&&p(e.split("\n").filter(t=>{let e=t.trim();return e.length&&/^at\s+|@/.test(e)})[1]||"")}(n,e)||(i.Vy.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);let o=(0,c.K)(a,n);return o||i.Vy.error("SDK initialized on a non-allowed domain."),o}(t,null!=e?e:"")?void 0===t.trackingConsent||(0,o.Rj)(l.w,t.trackingConsent)?{beforeSend:t.beforeSend&&(0,n.y)(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:u.Wq?void 0:(0,s.nd)(t),sessionSampleRate:null!=(r=t.sessionSampleRate)?r:100,telemetrySampleRate:null!=(a=t.telemetrySampleRate)?a:20,telemetryConfigurationSampleRate:null!=(f=t.telemetryConfigurationSampleRate)?f:5,telemetryUsageSampleRate:null!=(m=t.telemetryUsageSampleRate)?m:5,service:null!=(g=t.service)?g:void 0,env:null!=(y=t.env)?y:void 0,version:null!=(b=t.version)?b:void 0,datacenter:null!=(w=t.datacenter)?w:void 0,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:null!=(S=t.trackingConsent)?S:l.w.GRANTED,trackAnonymousUser:null==(k=t.trackAnonymousUser)||k,storeContextsAcrossPages:!!t.storeContextsAcrossPages,betaEncodeCookieOptions:!!t.betaEncodeCookieOptions,variant:t.variant,sdkVersion:t.sdkVersion,...(0,h.T)(t)}:void i.Vy.error('Tracking Consent should be either "granted" or "not-granted"'):void 0:void i.Vy.error("Allowed Tracking Origins must be an array"):void i.Vy.error("Client Token is not configured, we will not send any data.")}function b(t){return{session_sample_rate:t.sessionSampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:t.telemetryUsageSampleRate,use_before_send:!!t.beforeSend,use_partitioned_cross_site_session_cookie:t.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:!!t.proxy,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,track_anonymous_user:t.trackAnonymousUser,session_persistence:Array.isArray(t.sessionPersistence)?t.sessionPersistence[0]:t.sessionPersistence,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages,allow_untrusted_events:!!t.allowUntrustedEvents,tracking_consent:t.trackingConsent,use_allowed_tracking_origins:Array.isArray(t.allowedTrackingOrigins),beta_encode_cookie_options:t.betaEncodeCookieOptions,source:t.source,sdk_version:t.sdkVersion,variant:t.variant}}},18044:(t,e,r)=>{r.d(e,{BB:()=>o});var n=r(83037),i=r(47566),a=r(49088);function o(t,e){var r;let o,s;if(window.requestIdleCallback&&window.cancelIdleCallback){let r=window.requestIdleCallback((0,i.dm)(t),e);return()=>window.cancelIdleCallback(r)}return r=t,o=(0,a.x3)(),s=(0,n.wg)(()=>{r({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,a.x3)()-o))})},0),()=>(0,n.DJ)(s)}},18439:(t,e,r)=>{r.d(e,{g:()=>n});let n={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"}},22873:(t,e,r)=>{r.d(e,{WW:()=>o,_m:()=>n,iH:()=>i,wh:()=>s});let n=1024,i=1048576,a=/[^\u0000-\u007F]/;function o(t){return a.test(t)?void 0!==window.TextEncoder?new TextEncoder().encode(t).length:new Blob([t]).size:t.length}function s(t){if(1===t.length)return t[0];let e=new Uint8Array(t.reduce((t,e)=>t+e.length,0)),r=0;for(let n of t)e.set(n,r),r+=n.length;return e}},25130:(t,e,r)=>{r.d(e,{Kp:()=>u,_T:()=>l,y5:()=>s});var n=r(48086),i=r(82386),a=r(96656),o=r(47848);let s={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function l(t){return new n.cP(e=>{if(a.Wq)return;let{stop:r}=(0,o.l)(t,window,["visibilitychange","freeze"],t=>{"visibilitychange"===t.type&&"hidden"===document.visibilityState?e.notify({reason:s.HIDDEN}):"freeze"===t.type&&e.notify({reason:s.FROZEN})},{capture:!0}),n=(0,o.q)(t,window,"beforeunload",()=>{e.notify({reason:s.UNLOADING})}).stop;return()=>{r(),n()}})}function u(t){return(0,i.KQ)(s).includes(t)}},25945:(t,e,r)=>{r.d(e,{Aq:()=>s,R9:()=>i,q7:()=>u,sr:()=>l});var n,i,a=r(30666);(n=i||(i={})).TRACK_INTAKE_REQUESTS="track_intake_requests",n.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",n.FEATURE_OPERATION_VITAL="feature_operation_vital",n.SHORT_SESSION_INVESTIGATION="short_session_investigation",n.START_STOP_ACTION="start_stop_action",n.START_STOP_RESOURCE="start_stop_resource",n.USE_CHANGE_RECORDS="use_change_records",n.LCP_SUBPARTS="lcp_subparts",n.INP_SUBPARTS="inp_subparts";let o=new Set;function s(t){Array.isArray(t)&&t.filter(t=>
1(0,a.Rj)(i,t)).forEach(t=>{o.add(t)})}function l(t){return o.has(t)}function u(){return o}},27120:(t,e,r)=>{r.d(e,{H:()=>s,t:()=>l});var n=r(83037),i=r(47566),a=r(40987),o=r(65589);function s(t,e,r,{computeHandlingStack:n}={}){let l=t[e];if("function"!=typeof l)if(!(e in t&&"string"==typeof e&&e.startsWith("on")))return{stop:a.l};else l=a.l;let u=!1,c=function(){let t;if(u)return l.apply(this,arguments);let e=Array.from(arguments);(0,i.um)(r,null,[{target:this,parameters:e,onPostCall:e=>{t=e},handlingStack:n?(0,o.uC)("instrumented method"):void 0}]);let a=l.apply(this,e);return t&&(0,i.um)(t,null,[a]),a};return t[e]=c,{stop:()=>{u=!0,t[e]===c&&(t[e]=l)}}}function l(t,e,r){let i=Object.getOwnPropertyDescriptor(t,e);if(!i||!i.set||!i.configurable)return{stop:a.l};let o=a.l,s=(t,e)=>{(0,n.wg)(()=>{s!==o&&r(t,e)},0)},l=function(t){i.set.call(this,t),s(this,t)};return Object.defineProperty(t,e,{set:l}),{stop:()=>{var r;(null==(r=Object.getOwnPropertyDescriptor(t,e))?void 0:r.set)===l&&Object.defineProperty(t,e,i),s=o}}}},28076:(t,e,r)=>{r.d(e,{N:()=>i});var n=r(22873);function i(){let t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write(r,i){let a=(0,n.WW)(r);e+=a,t+=r,i&&i(a)},finish(t){t(this.finishSync())},finishSync(){let r={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,r},estimateEncodedBytesCount:t=>t.length}}},30666:(t,e,r)=>{function n(t){try{return JSON.parse(t)}catch(t){}}function i(t){return{...t}}function a(t,e){return Object.keys(t).some(r=>t[r]===e)}function o(t){return 0===Object.keys(t).length}function s(t,e){let r={};for(let n of Object.keys(t))r[n]=e(t[n]);return r}r.d(e,{LG:()=>s,RI:()=>o,Rj:()=>a,XU:()=>n,yG:()=>i})},34472:(t,e,r)=>{let n;r.r(e),r.d(e,{DefaultPrivacyLevel:()=>M.WA,datadogRum:()=>$});var i=r(12831),a=r(96656),o=r(88274),s=r(84959),l=r(40987),u=r(77267),c=r(47848),d=r(22873);function f(t,e,r){let n,i=0,a=[],o=!0,s=0,l=[],{stop:u}=(0,c.q)(t,e,"message",({data:t})=>{if("wrote"!==t.type||t.streamId!==r)return;let e=l[0];e&&(e.id===t.id?(l.shift(),i+=t.additionalBytesCount,a.push(t.result),n=t.trailer,e.writeCallback?e.writeCallback(t.result.byteLength):e.finishCallback&&e.finishCallback()):e.id<t.id&&u())});function f(){let t=0===a.length?new Uint8Array(0):(0,d.wh)(a.concat(n)),e={rawBytesCount:i,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return i=0,a=[],e}function p(){o||(e.postMessage({action:"reset",streamId:r}),o=!0)}return{isAsync:!0,get isEmpty(){return o},write(t,n){e.postMessage({action:"write",id:s,data:t,streamId:r}),l.push({id:s,writeCallback:n,data:t}),o=!1,s+=1},finish(t){p(),l.length?(l.forEach(t=>{delete t.writeCallback}),l[l.length-1].finishCallback=()=>t(f())):t(f())},finishSync(){p();let t=l.map(t=>t.data).join("");return l.length=0,{...f(),pendingData:t}},estimateEncodedBytesCount:t=>t.length/8,stop(){u()}}}var p=r(49088),h=r(90366),m=r(83037),g=r(57986),v=r(91463);function _({configuredUrl:t,error:e,source:r,scriptType:n}){var i;if(g.Vy.error(`${r} failed to start: an error occurred while initializing the ${n}:`,e),e instanceof Event||e instanceof Error&&((i=e.message).includes("Content Security Policy")||i.includes("requires 'TrustedScriptURL'"))){let e;e=t?`Please make sure the ${n} URL ${t} is correct and CSP is correctly configured.`:"Please make sure CSP is correctly configured.",g.Vy.error(`${e} See documentation at ${g.fH}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else"worker"===n&&(0,v.VJ)(e)}let y=30*p.OY;function b(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>
vendor: 5,321 bytes, line 1
1>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},C=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},D=!1,M=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},j=M,L=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),T=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},O={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=j,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=O[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;
vendor: 14,903 bytes, line 1
1for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?M(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r<n;r++)m(t,t.bl_tree[2*i[r]+1],3);C(t,t.dyn_ltree,e-1),C(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=T(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=H-(u-i),i=u-H,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t||!t.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){D||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),D=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t||!t.state||e>5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=T(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=H-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t||!t.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(O[n]);if(t.header&&(e=this.strm,a=t.header,e&&e.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t||!t.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
1i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(O[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"6.30.1"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let w={status:0};function S(t,e,r){switch(0===w.status&&function(t,e){try{let r=(0,h.B)(b)(t),{stop:n}=(0,c.q)(t,r,"error",r=>{k(t,e,r)}),{stop:i}=(0,c.q)(t,r,"message",({data:r})=>{var n;"errored"===r.type?k(t,e,r.error,r.streamId):"initialized"===r.type&&(n=r.version,1===w.status&&(w={status:3,worker:w.worker,stop:w.stop,version:n}))});r.postMessage({action:"init"}),(0,m.wg)(()=>{var t;return t=e,void(1===w.status&&(g.Vy.error(`${t} failed to start: a timeout occurred while initializing the Worker`),w.initializationFailureCallbacks.forEach(t=>t()),w={status:2}))},y),w={status:1,worker:r,stop:()=>{n(),i()},initializationFailureCallbacks:[]}}catch(r){k(t,e,r)}}(t,e),w.status){case 1:return w.initializationFailureCallbacks.push(r),w.worker;case 3:return w.worker}}function k(t,e,r,n){1===w.status||0===w.status?(_({configuredUrl:t.workerUrl,error:r,source:e,scriptType:"worker"}),1===w.status&&w.initializationFailureCallbacks.forEach(t=>t()),w={status:2}):(0,v.VJ)(r,{worker_version:3===w.status&&w.version,stream_id:n})}function E(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}
1var A=r(48086),T=r(77211),x=r(47566);async function R(t,e,r){try{return await r}finally{t.notify(e)}}async function C(){try{return await (0,h.B)(O)()}catch(t){_({error:t,source:"Recorder",scriptType:"module"})}}async function O(){return(await r.e(89777).then(r.bind(r,9644))).startRecording}var I=r(83854);async function N(){try{return await (0,h.B)(P)()}catch(t){_({error:t,source:"Profiler",scriptType:"module"})}}async function P(){return(await r.e(12).then(r.bind(r,21512))).createRumProfiler}var M=r(17965);let L=function(t){let e;if((0,s.d0)()&&!(0,s.Ww)("records")||!E())return{start:l.l,stop:l.l,getReplayStats:()=>void 0,onRumStart:l.l,isRecording:()=>!1,getSessionReplayLink:()=>void 0};let{strategy:r,shouldStartImmediately:n}=(e=0,{strategy:{start(){e=1},stop(){e=2},isRecording:()=>!1,getSessionReplayLink:l.l},shouldStartImmediately:t=>1===e||0===e&&!t.startSessionReplayRecordingManually});return{start:t=>r.start(t),stop:()=>r.stop(),getSessionReplayLink:()=>r.getSessionReplayLink(),onRumStart:function(e,i,a,s,u,c){let d;r=function(t,e,r,n,i,a,s){let u,c=0;e.subscribe(9,()=>{(2===c||3===c)&&(m(),c=1)}),e.subscribe(10,()=>{1===c&&h()});let d=new A.cP;!function(t,e){let r,n,i;if(!t.metricsEnabled)return l.l;let{unsubscribe:a}=e.subscribe(t=>{switch(t.type){case"start":r={forced:t.forced,timestamp:(0,p.nx)()},n=void 0,i=void 0;break;case"document-ready":r&&(n=(0,p.vk)(r.timestamp,(0,p.nx)()));break;case"recorder-settled":r&&(i=(0,p.vk)(r.timestamp,(0,p.nx)()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":var e,o,s,l;a(),r&&(0,v.Gk)("Recorder init metrics",{metrics:(e=r.forced,o=i,s=(0,p.vk)(r.timestamp,(0,p.nx)()),l=t.type,{forced:e,loadRecorderModuleDuration:o,recorderInitDuration:s,result:l,waitForDocReadyDuration:n})})}})}(s,d);let f=async o=>{d.notify({type:"start",forced:o});let[l]=await Promise.all([R(d,{type:"recorder-settled"},i()),R(d,{type:"document-ready"},(0,T.N)(t,"interactive"))]);if(2!==c)return void d.notify({type:"aborted"});if(!l){c=0,d.notify({type:"recorder-load-failed"});return}let f=a();if(!f){c=0,d.notify({type:"deflate-encoder-load-failed"});return}({stop:u}=l(e,t,r,n,f,s)),c=3,d.notify({type:"succeeded"})};function h(t){var e,n,i,a,o;let s=r.findTrackedSession();if(e=s,n=t,!e||0===e.sessionReplay&&(!n||!n.force)){c=1;return}if(2===(i=c)||3===i)return;c=2;let l=(a=s,(o=t)&&o.force&&0===a.sessionReplay||!1);f(l).catch(x.Dx),l&&r.setForcedReplay()}function m(){3===c&&(null==u||u()),c=0}return{start:h,stop:m,getSessionReplayLink:()=>{var e,i,a;let s,l,u;return e=0!==c,i=s=r.findTrackedSession(),a=e,l=E()?i?0===i.sessionReplay?"incorrect-session-plan":a?void 0:"replay-not-started":"rum-not-tracked":"browser-not-supported",u=n.findView(),(0,o.dx)(t,{viewContext:u,errorType:l,session:s})},isRecording:()=>3===c}}(i,e,a,s,t,function(){return!d&&(null!=u||(u=S(i,"Datadog Session Replay",()=>r.stop())),u&&(d=f(i,u,1))),d},c),n(i)&&r.start()},isRecording:()=>3===w.status&&r.isRecording(),getReplayStats:t=>3===w.status?(0,u.lv)(t):void 0}}(C),$=(0,o.AB)(L,{onRumStart:function(t,e,r,i,s,l){let u,c=i.findTrackedSession();if(!c||!(0,o.$5)(c.id,r.profilingSampleRate))return;let d=(u={status:"starting"},e.register(0,({eventType:t})=>t!==o.bb.VIEW&&t!==o.bb.LONG_TASK&&t!==o.bb.ACTION&&t!==o.bb.VITAL?I.$O:{type:t,_dd:{profiling:u}}),{get:()=>u,set:t=>{u=t}});void 0===(0,a.VZ)().Profiler?d.set({status:"error",error_reason:"not-supported-by-browser"}):N().then(e=>{e?(n=e(r,t,i,d,l,s,void 0)).start():d.set({status:"error",error_reason:"failed-to-lazy-load"})}).catch(x.Dx)},stop:()=>{null==n||n.stop()}},{startDeflateWorker:S,createDeflateEncoder:f,sdkName:"rum"});(0,i.Z)((0,a.VZ)(),"DD_RUM",$)},36124:(t,e,r)=>{r.d(e,{As:()=>c,bJ:()=>d,e6:()=>l});var n=r(13053),i=r(84665),a=r(60058),o=r(65589),s=r(77003);let l="No stack, consider using an instance of Error";function u({originalError:t,stackTrace:e,source:r,useFallbackStack:s=!0,nonErrorPrefix:c}){var f,p,h,m;let g=d(t);return!e&&g&&(e=(0,a.T)(t)),{source:r,type:e?e.name:void 0,message:(f=e,p=g,h=c,m=t,(null==f?void 0:f.message)&&(null==f?void 0:f.name)?f.message:p?"Empty message":h?`${h} ${(0,i.s)((0,n.a)(m))}`:(0,i.s)((0,n.a)(m))),stack:e?(0,o.Yn)(e):s?l:void 0}}function c({stackTrace:t,originalError:e,handlingStack:r,componentStack:n,startClocks:i,nonErrorPrefix:a,useFallbackStack:o=!0,source:l,handling:f}){var p;let h=u({originalError:e,stackTrace:t,source:l,useFallbackStack:o,nonErrorPrefix:a});return{startClocks:i,handling:f,handlingStack:r,componentStack:n,originalError:e,...h,causes:d(e)?function(t,e){let r=[],n=t.cause;for(;null!=n&&r.length<10;){let t=u({originalError:n,source:e,useFallbackStack:!1});r.push(t),n=d(n)?n.cause:void 0}return r.length?r:void 0}(e,l):void 0,fingerprint:d(p=e)&&"dd_fingerprint"in p?String(p.dd_fingerprint):void 0,context:function(t){if((0,s.O)(t))return t.dd_context}(e)}}function d(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}},38335:(t,e,r)=>{let n,i;r.d(e,{B9:()=>f,DQ:()=>h,OR:()=>d,Ri:()=>c,TV:()=>u,z$:()=>p});var a=r(57986),o=r(49088),s=r(51520),l=r(12760);function u(t,e,r=0,n){let i=new Date;i.setTime(i.getTime()+r);let a=`expires=${i.toUTCString()}`,o=n&&n.crossSite?"none":"strict",s=n&&n.domain?`;domain=${n.domain}`:"",l=n&&n.secure?";secure":"",c=n&&n.partitioned?";partitioned":"";document.cookie=`${t}=${e};${a};path=/;samesite=${o}${s}${l}${c}`}function c(t){return(0,s.rx)(document.cookie,t)}function d(t){return(0,s.Dh)(document.cookie).get(t)||[]}function f(t){return n||(n=(0,s.it)(document.cookie)),n.get(t)}function p(t){if(void 0===document.cookie||null===document.cookie)return!1;try{let e=`dd_cookie_test_${(0,s.lk)()}`,r="test";u(e,r,o.iW,t);let n=c(e)===r;return u(e,"",0,t),n}catch(t){return a.Vy.error(t),!1}}function h(t=location.hostname,e=document.referrer){if(void 0===i){let r=function(t,e){try{return t||(0,l.c$)(e).hostname}catch(t){}}(t,e);if(r){let t=`dd_site_test_${(0,s.lk)()}`,e=r.split("."),n=e.pop();for(;e.length&&!c(t);)n=`${e.pop()}.${n}`,u(t,"test",o.OY,{domain:n});u(t,"",0,{domain:n}),i=n}}return i}},39972:(t,e,r)=>{r.d(e,{K:()=>o,V:()=>a});var n=r(57986),i=r(77003);function a(t){let e=(0,i.P)(t);return"string"===e||"function"===e||t instanceof RegExp}function o(t,e,r=!1){return t.some(t=>{try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);
1if("string"==typeof t)return r?e.startsWith(t):t===e}catch(t){n.Vy.error(t)}return!1})}},40987:(t,e,r)=>{r.d(e,{l:()=>a,n:()=>i});var n=r(83037);function i(t,e,r){let i,a,o=!r||void 0===r.leading||r.leading,s=!r||void 0===r.trailing||r.trailing,l=!1;return{throttled:(...r)=>{if(l){i=r;return}o?t(...r):i=r,l=!0,a=(0,n.wg)(()=>{s&&i&&t(...i),l=!1,i=void 0},e)},cancel:()=>{(0,n.DJ)(a),l=!1,i=void 0}}}function a(){}},41627:(t,e,r)=>{r.d(e,{W:()=>i});var n=r(96656);function i(t,e){let r,i=(0,n.VZ)();return i.Zone&&"function"==typeof i.Zone.__symbol__&&(r=t[i.Zone.__symbol__(e)]),r||(r=t[e]),r}},42274:(t,e,r)=>{r.d(e,{AK:()=>y,sA:()=>b});var n=r(43919),i=r(47566),a=r(48086),o=r(22873),s=r(83037),l=r(49088),u=r(12954),c=r(18439);let d=80*o._m,f=20*o.iH,p=l.iW,h=l.OY;function m(t,e,r,n,i,a){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?g(t,e,r,a,{onSuccess:()=>v(0,e,r,n,i,a),onFailure:()=>{e.queuedPayloads.enqueue(t)||a.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t}),function t(e,r,n,i,a){2===e.transportStatus&&(0,s.wg)(()=>{g(e.queuedPayloads.first(),e,r,a,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=h,v(1,e,r,n,i,a)},onFailure:()=>{e.currentBackoffTime=Math.min(p,2*e.currentBackoffTime),t(e,r,n,i,a)}})},e.currentBackoffTime)}(e,r,n,i,a)}}):e.queuedPayloads.enqueue(t)||a.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t})}function g(t,e,r,n,{onSuccess:i,onFailure:a}){e.bandwidthMonitor.add(t),r(t,r=>{var o;e.bandwidthMonitor.remove(t),"opaque"!==(o=r).type&&(0===o.status&&!navigator.onLine||408===o.status||429===o.status||(0,u.G)(o.status))?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:r.status},n.notify({type:"failure",bandwidth:e.bandwidthMonitor.stats(),payload:t}),a()):(e.transportStatus=0,n.notify({type:"success",bandwidth:e.bandwidthMonitor.stats(),payload:t}),i())})}function v(t,e,r,n,i,a){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:`Reached max ${n} events size queued for upload: ${f/o.iH}MiB`,source:c.g.AGENT,startClocks:(0,l.M8)()}),e.queueFullReported=!0);let s=e.queuedPayloads;for(e.queuedPayloads=_();s.size()>0;)m(s.dequeue(),e,r,n,i,a)}function _(){let t=[];return{bytesCount:0,enqueue(e){return!this.isFull()&&(t.push(e),this.bytesCount+=e.bytesCount,!0)},first:()=>t[0],dequeue(){let e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:()=>t.length,isFull(){return this.bytesCount>=f}}}let y=16*o._m;function b(t,e,r=y){let n=new a.cP,o={transportStatus:0,currentBackoffTime:h,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=d&&this.ongoingRequestCount<32},add(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:_(),queueFullReported:!1};return{observable:n,send:r=>{for(let i of t)m(r,o,(t,e)=>{S(i,t,e)},i.trackType,e,n)},sendOnExit:e=>{for(let n of t)!function(t,e,r){if(navigator.sendBeacon&&r.bytesCount<e)try{let e=t.build("beacon",r);if(navigator.sendBeacon(e,r.data))return}catch(t){var n;n=t,w||(w=!0,(0,i.Dx)(n))}S(t,r)}(n,r,e)}}}let w=!1;function S(t,e,r){let a=t.build("fetch",e);(0,n.h)(a,{method:"POST",body:e.data,mode:"cors"}).then((0,i.dm)(t=>null==r?void 0:r({status:t.status,type:t.type}))).catch((0,i.dm)(()=>null==r?void 0:r({status:0})))}},43919:(t,e,r)=>{r.d(e,{h:()=>a});var n=r(41627),i=r(96656);function a(t,e){return(0,n.W)((0,i.VZ)(),"fetch")(t,e)}},44231:(t,e,r)=>{r.d(e,{T:()=>a,w:()=>o});var n=r(51867),i=r(46694);function a(t){var e,r;let a=t.site||n.NW,o="flutter"===(e=t.source)||"unity"===e?e:"browser",s=(r={...t,site:a,source:o},{logsEndpointBuilder:(0,i.n)(r,"logs"),rumEndpointBuilder:(0,i.n)(r,"rum"),profilingEndpointBuilder:(0,i.n)(r,"profile"),sessionReplayEndpointBuilder:(0,i.n)(r,"replay"),exposuresEndpointBuilder:(0,i.n)(r,"exposures"),flagEvaluationEndpointBuilder:(0,i.n)(r,"flagevaluation")});return{replica:function(t){if(!t.replica)return;let e={...t,site:n.NW,clientToken:t.replica.clientToken};return{logsEndpointBuilder:(0,i.n)(e,"logs"),rumEndpointBuilder:(0,i.n)(e,"rum",[`application.id=${t.replica.applicationId}`])}}({...t,site:a,source:o}),site:a,source:o,...s}}function o(t){return n.Ih.every(e=>t.includes(e))}},46694:(t,e,r)=>{r.d(e,{G:()=>l,n:()=>s});var n=r(49088),i=r(12760),a=r(51520),o=r(51867);function s(t,e,r){let o=function(t,e){let r=`/api/v2/${e}`,n=t.proxy;if("string"==typeof n){let t=(0,i.l2)(n);return e=>`${t}?ddforward=${encodeURIComponent(`${r}?${e}`)}`}if("function"==typeof n)return t=>n({path:r,parameters:t});let a=l(e,t);return t=>`https://${a}${r}?${t}`}(t,e);return{build:(i,s)=>o(function({clientToken:t,internalAnalyticsSubdomain:e,source:r="browser"},i,o,{retry:s,encoding:l},u=[]){let c=[`ddsource=${r}`,`dd-api-key=${t}`,`dd-evp-origin-version=${encodeURIComponent("6.30.1")}`,"dd-evp-origin=browser",`dd-request-id=${(0,a.lk)()}`].concat(u);return l&&c.push(`dd-evp-encoding=${l}`),"rum"===i&&(c.push(`batch_time=${(0,n.nx)()}`,`_dd.api=${o}
1`),s&&c.push(`_dd.retry_count=${s.count}`,`_dd.retry_after=${s.lastFailureStatus}`)),e&&c.reverse(),c.join("&")}(t,e,i,s,r)),trackType:e}}function l(t,e){let{site:r=o.NW,internalAnalyticsSubdomain:n}=e;if("logs"===t&&e.usePciIntake&&r===o.NW)return o.$A;if(n&&r===o.NW)return`${n}.${o.NW}`;if(r===o.TC)return`http-intake.logs.${r}`;let i=r.split("."),a=i.pop();return`browser-intake-${i.join("-")}.${a}`}},47566:(t,e,r)=>{let n;r.d(e,{Bd:()=>o,Dx:()=>c,dm:()=>l,oO:()=>d,pM:()=>s,um:()=>u});var i=r(57986);let a=!1;function o(t){n=t}function s(t){a=t}function l(t){return function(...e){return u(t,this,e)}}function u(t,e,r){try{return t.apply(e,r)}catch(t){c(t)}}function c(t){if(d(t),n)try{n(t)}catch(t){d(t)}}function d(...t){a&&i.Vy.error("[MONITOR]",...t)}},47848:(t,e,r)=>{r.d(e,{l:()=>o,q:()=>a});var n=r(47566),i=r(41627);function a(t,e,r,n,i){return o(t,e,[r],n,i)}function o(t,e,r,a,{once:s,capture:l,passive:u}={}){let c=(0,n.dm)(e=>{(e.isTrusted||e.__ddIsTrusted||t.allowUntrustedEvents)&&(s&&h(),a(e))}),d=u?{capture:l,passive:u}:l,f=window.EventTarget&&e instanceof EventTarget?window.EventTarget.prototype:e,p=(0,i.W)(f,"addEventListener");function h(){let t=(0,i.W)(f,"removeEventListener");r.forEach(r=>t.call(e,r,c,d))}return r.forEach(t=>p.call(e,t,c,d)),{stop:h}}},48086:(t,e,r)=>{r.d(e,{dX:()=>l,cP:()=>o,Fx:()=>s});var n=r(47566),i=r(96656);function a(t){var e;let r=null==(e=i.J2.queueMicrotask)?void 0:e.bind(i.J2);"function"==typeof r?r((0,n.dm)(t)):Promise.resolve().then((0,n.dm)(t))}class o{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(e=>e(t))}addObserver(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(e=>t!==e),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function s(...t){return new o(e=>{let r=t.map(t=>t.subscribe(t=>e.notify(t)));return()=>r.forEach(t=>t.unsubscribe())})}class l extends o{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)}subscribe(t){let e=!1;return a(()=>{for(let r of this.buffer){if(e)return;t(r)}e||this.addObserver(t)}),{unsubscribe:()=>{e=!0,this.removeObserver(t)}}}unbuffer(){a(()=>{this.maxBufferSize=this.buffer.length=0})}}},49088:(t,e,r)=>{let n;r.d(e,{$H:()=>l,$S:()=>m,FR:()=>u,Gw:()=>y,M8:()=>g,MA:()=>s,OY:()=>a,Oc:()=>v,TP:()=>d,Zj:()=>f,gs:()=>b,iW:()=>o,jR:()=>c,nx:()=>h,pu:()=>w,vk:()=>_,x3:()=>p});var i=r(16464);let a=1e3,o=6e4,s=36e5,l=31536e6;function u(t){var e,r;let n;return{relative:t,timeStamp:(e=t,(n=p()-performance.now())>S()?Math.round(function(t,e){return t+e}(n,e)):(r=e,Math.round(S()+r)))}}function c(t){return{relative:b(t),timeStamp:t}}function d(){var t;return Math.round(p()-(t=S(),t+performance.now()))}function f(t){return(0,i.Et)(t)?(0,i.LI)(1e6*t,0):t}function p(){return new Date().getTime()}function h(){return p()}function m(){return performance.now()}function g(){return{relative:m(),timeStamp:h()}}function v(){return{relative:0,timeStamp:S()}}function _(t,e){return e-t}function y(t,e){return t+e}function b(t){return t-S()}function w(t){return t<l}function S(){var t,e;return void 0===n&&(n=null!=(e=null==(t=performance.timing)?void 0:t.navigationStart)?e:performance.timeOrigin),n}},51520:(t,e,r)=>{function n(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n)}r.d(e,{Dh:()=>o,_R:()=>l,it:()=>s,lk:()=>n,rx:()=>a});let i=/(\S+?)\s*=\s*(.+?)(?:;|$)/g;function a(t,e){for(i.lastIndex=0;;){let r=i.exec(t);if(r){if(r[1]===e)return r[2]}else break}}function o(t){let e=new Map;for(i.lastIndex=0;;){let r=i.exec(t);if(r){let t=r[1],n=r[2];e.has(t)?e.get(t).push(n):e.set(t,[n])}else break}return e}function s(t){let e=new Map;for(i.lastIndex=0;;){let r=i.exec(t);if(r)e.set(r[1],r[2]);else break}return e}function l(t,e,r=""){let n=t.charCodeAt(e-1),i=n>=55296&&n<=56319?e+1:e;return t.length<=i?t:`${t.slice(0,i)}${r}`}},51867:(t,e,r)=>{r.d(e,{$A:()=>l,Bb:()=>n,Ih:()=>u,NW:()=>a,R8:()=>s,TC:()=>i,dV:()=>o});let n="datad0g.com",i="dd0g-gov.com",a="datadoghq.com",o="datadoghq.eu",s="ddog-gov.com",l="pci.browser-intake-datadoghq.com",u=["ddsource","dd-api-key","dd-request-id"]},57986:(t,e,r)=>{r.d(e,{JZ:()=>i,Vy:()=>s,Xs:()=>u,bP:()=>n,fH:()=>l,xG:()=>c});let n={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},i=console,a={};
1Object.keys(n).forEach(t=>{a[t]=i[t]});let o="Datadog Browser SDK:",s={debug:a.debug.bind(i,o),log:a.log.bind(i,o),info:a.info.bind(i,o),warn:a.warn.bind(i,o),error:a.error.bind(i,o)},l="https://docs.datadoghq.com",u=`${l}/real_user_monitoring/browser/troubleshooting`,c="More details:"},60058:(t,e,r)=>{let n;r.d(e,{T:()=>a,h:()=>m});var i=r(77003);function a(t){var e,r;let i=[],a=h(t,"stack"),o=String(t);if(a&&a.startsWith(o)&&(a=a.slice(o.length)),a&&a.split("\n").forEach(t=>{let e=function(t){let e=l.exec(t);if(!e)return;let r=e[2]&&0===e[2].indexOf("native"),n=e[2]&&0===e[2].indexOf("eval"),i=u.exec(e[2]);return n&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]),{args:r?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:e[3]?+e[3]:void 0,url:r?void 0:e[2]}}(t)||function(t){let e=c.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:e[3]?+e[3]:void 0,url:e[2]}}(t)||function(t){let e=d.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:+e[3],url:e[2]}}(t)||function(t){let e=f.exec(t);if(!e)return;let r=e[3]&&e[3].indexOf(" > eval")>-1,n=p.exec(e[3]);return r&&n&&(e[3]=n[1],e[4]=n[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||"?",line:e[4]?+e[4]:void 0,url:e[3]}}(t);e&&(!e.func&&e.line&&(e.func="?"),i.push(e))}),i.length>0&&function(){if(void 0!==n)return n;class t extends Error{constructor(){super(),this.name="Error"}}let[e,r]=[t,Error].map(t=>new t);return n=v(Object.getPrototypeOf(e))&&r.stack!==e.stack}()&&t instanceof Error){let n=[],a=t;for(;(a=Object.getPrototypeOf(a))&&v(a);){let t=(null==(e=a.constructor)?void 0:e.name)||"?";n.push(t)}for(let t=n.length-1;t>=0&&(null==(r=i[0])?void 0:r.func)===n[t];t--)i.shift()}return{message:h(t,"message"),name:h(t,"name"),stack:i}}let o="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",s="(?::(\\d+))",l=RegExp(`^\\s*at (.*?) ?\\(${o}${s}?${s}?\\)?\\s*$`,"i"),u=RegExp(`\\((\\S*)${s}${s}\\)`),c=RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${o}${s}?${s}??\\s*$`,"i"),d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,f=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function h(t,e){return(0,i.O)(t)&&"string"==typeof t[e]?t[e]:void 0}function m(t,e,r,n){var i;let a,o;if(void 0===e)return;let{name:s,message:l}=(i=t,"[object String]"===({}).toString.call(i)&&([,a,o]=g.exec(i)),{name:a,message:o});return{name:s,message:l,stack:[{url:e,column:n,line:r}]}}let g=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function v(t){return String(t.constructor).startsWith("class ")}},60911:(t,e,r)=>{r.d(e,{aW:()=>s,dX:()=>c,eh:()=>l});var n=r(51520),i=r(10993),a=r(88007),o=r(5937);function s(){try{let t=(0,n.lk)(),e=`_dd_test_${t}`;localStorage.setItem(e,t);let r=localStorage.getItem(e);return localStorage.removeItem(e),t===r?{type:i.Q_.LOCAL_STORAGE}:void 0}catch(t){return}}function l(t){return{isLockEnabled:!1,persistSession:u,retrieveSession:c,expireSession:e=>{var r,n;return r=e,n=t,void u((0,a.zn)(r,n))}}}function u(t){localStorage.setItem(o.Z,(0,a.D9)(t))}function c(){let t=localStorage.getItem(o.Z);return(0,a.H9)(t)}},62812:(t,e,r)=>{function n(t,e){let r=t.indexOf(e);r>=0&&t.splice(r,1)}function i(t){return Array.isArray(t)&&t.length>0}r.d(e,{Ai:()=>n,EI:()=>i})},64283:(t,e,r)=>{let n;r.d(e,{qj:()=>c});var i=r(83037),a=r(62812),o=r(49088);let s=1/0,l=o.iW,u=new Set;function c({expireDelay:t,maxEntries:e}){let r=[];n||(n=(0,i.yb)(()=>void u.forEach(t=>t()),l));let d=()=>{let e=(0,o.$S)()-t;for(;r.length>0&&r[r.length-1].endTime<e;)r.pop()};return u.add(d),{add:function(t,n){let i={value:t,startTime:n,endTime:s,remove:()=>{(0,a.Ai)(r,i)},close:t=>{i.endTime=t}};return e&&r.length>=e&&r.pop(),r.unshift(i),i},find:function(t=s,e={returnInactive:!1}){for(let n of r)if(n.startTime<=t){if(e.returnInactive||t<=n.endTime)return n.value;break}},closeActive:function(t){let e=r[0];e&&e.endTime===s&&e.close(t)},findAll:function(t=s,e=0){let n=(0,o.Gw)(t,e);return r.filter(e=>e.startTime<=n&&t<=e.endTime).map(t=>t.value)},reset:function(){r=[]},stop:function(){u.delete(d),0===u.size&&n&&((0,i.vG)(n),n=void 0)}}}},64988:(t,e,r)=>{r.d(e,{q:()=>i});var n=r(96656);function i(){var t;let e=n.J2.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:null==(t=e.connection)?void 0:t.effectiveType}}},65589:(t,e,r)=>{r.d(e,{NR:()=>s,Yn:()=>o,uC:()=>a});var n=r(47566),i=r(60058);function a(t){let e,r=Error(t);return r.name="HandlingStack",(0,n.um)(()=>{let t=(0,i.T)(r);t.stack=t.stack.slice(2),e=o(t)}),e}function o(t){let e=s(t);return t.stack.forEach(t=>{let r="?"===t.func?"<anonymous>":t.func,n=t.args&&t.args.length>0?`(${t.args.join(", ")})`:"",i=t.line?`:${t.line}`:"",a=t.line&&t.column?`:${t.column}`:"";e+=`
2  at ${r}${n} @ ${t.url}${i}${a}`}),e}function s(t){return`${t.name||"Error"}: ${t.message}`}},67438:(t,e,r)=>{r.d(e,{D:()=>a,w:()=>i});var n=r(48086);let i={GRANTED:"granted",NOT_GRANTED:"not-granted"};function a(t){let e=new n.cP;return{tryToInit(e){t||(t=e)},update(r){t=r,e.notify()},isGranted:()=>t===i.GRANTED,observable:e}}},72358:(t,e,r)=>{r.d(e,{X:()=>u});var n=r(57986),i=r(82386),a=r(25130),o=r(84665),s=r(22873);let l=256*s._m;function u({encoder:t,request:e,flushController:r}){let d={},f=r.flushObservable.subscribe(r=>(function(r){let n=(0,i.KQ)(d).join("\n");d={};let o=(0,a.Kp)(r.reason),l=o?e.sendOnExit:e.send;if(o&&t.isAsync){let e=t.finishSync();e.outputBytesCount&&l(c(e));
2let r=[e.pendingData,n].filter(Boolean).join("\n");r&&l({data:r,bytesCount:(0,s.WW)(r)})}else n&&t.write(t.isEmpty?n:`
3${n}`),t.finish(t=>{l(c(t))})})(r));function p(e,i){let a,u,c=(0,o.s)(e),f=t.estimateEncodedBytesCount(c);f>=l?n.Vy.warn(`Discarded a message whose size was bigger than the maximum allowed size ${l/s._m}KiB. ${n.xG} ${n.Xs}/#technical-limitations`):(void 0!==i&&void 0!==d[i]&&(a=d[i],delete d[i],u=t.estimateEncodedBytesCount(a),r.notifyAfterRemoveMessage(u)),r.notifyBeforeAddMessage(f),void 0!==i?(d[i]=c,r.notifyAfterAddMessage()):t.write(t.isEmpty?c:`
4${c}`,t=>{r.notifyAfterAddMessage(t-f)}))}return{flushController:r,add:p,upsert:p,stop:f.unsubscribe}}function c(t){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding}}},74299:(t,e,r)=>{r.d(e,{y:()=>i});var n=r(57986);function i(t,e){return(...r)=>{try{return t(...r)}catch(t){n.Vy.error(e,t)}}}},77003:(t,e,r)=>{function n(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function i(t){return"object"===n(t)}r.d(e,{O:()=>i,P:()=>n})},77211:(t,e,r)=>{r.d(e,{H:()=>a,N:()=>o});var n=r(40987),i=r(47848);function a(t,e,r){return document.readyState===e||"complete"===document.readyState?(r(),{stop:n.l}):(0,i.q)(t,window,"complete"===e?"load":"DOMContentLoaded",r,{once:!0})}function o(t,e){return new Promise(r=>{a(t,e,r)})}},77267:(t,e,r)=>{let n;function i(t){return u(t).segments_count}function a(t){u(t).segments_count+=1}function o(t){u(t).records_count+=1}function s(t,e){u(t).segments_total_raw_size+=e}function l(t){return null==n?void 0:n.get(t)}function u(t){let e;return n||(n=new Map),n.has(t)?e=n.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},n.set(t,e),n.size>1e3&&function(){if(!n)return;let t=n.keys().next().value;t&&n.delete(t)}()),e}r.d(e,{$1:()=>o,H5:()=>a,K_:()=>i,L7:()=>s,lv:()=>l})},77874:(t,e,r)=>{let n;r.d(e,{nd:()=>A,oC:()=>T});var i=r(83037),a=r(48086),o=r(49088),s=r(40987),l=r(51520),u=r(57986),c=r(12102),d=r(88007),f=r(60911);let p=o.OY,h=[];function m(t,e,r=0){var i;let a,{isLockEnabled:s,persistSession:u,expireSession:c}=e,f=t=>u({...t,lock:a}),_=()=>{let{lock:t,...r}=e.retrieveSession();return{session:r,lock:t&&!function(t){let[,e]=t.split("--");return!e||(0,o.vk)(Number(e),(0,o.nx)())>p}(t)?t:void 0}};if(n||(n=t),t!==n)return void h.push(t);if(s&&r>=100)return void v(e);let y=_();if(s&&(y.lock||(a=(0,l.lk)()+"--"+(0,o.nx)(),f(y.session),(y=_()).lock!==a)))return void g(t,e,r);let b=t.process(y.session);if(s&&(y=_()).lock!==a)return void g(t,e,r);if(b&&((0,d.W3)(b)?c(b):((0,d.oT)(b),s?f(b):u(b))),s&&!(b&&(0,d.W3)(b))){if((y=_()).lock!==a)return void g(t,e,r);u(y.session),b=y.session}null==(i=t.after)||i.call(t,b||y.session),v(e)}function g(t,e,r){(0,i.wg)(()=>{m(t,e,r+1)},10)}function v(t){n=void 0;let e=h.shift();e&&m(e,t)}var _=r(10993),y=r(96656),b=r(30666);let w="_DD_SESSION";function S(){let t=(0,y.VZ)();return t[w]||(t[w]={}),(0,b.yG)(t[w])}function k(t){(0,y.VZ)()[w]=(0,b.yG)(t)}let E=o.OY;function A(t){var e,r;let{sessionPersistence:n}=t;for(let i of(e=n,r=t,Array.isArray(e)?e:void 0!==e?[e]:r.allowFallbackToLocalStorage?[_.Q_.COOKIE,_.Q_.LOCAL_STORAGE]:[_.Q_.COOKIE])){let e=function(t,e){switch(t){case _.Q_.COOKIE:return(0,c.ge)(e);case _.Q_.LOCAL_STORAGE:return(0,f.aW)();case _.Q_.MEMORY:return{type:_.Q_.MEMORY};default:u.Vy.error(`Invalid session persistence '${String(t)}'`);return}}(i,t);if(void 0!==e)return e}}function T(t,e,r,n,u=function(t,e){return t.type===_.Q_.COOKIE?(0,c.iA)(e,t.cookieOptions):t.type===_.Q_.LOCAL_STORAGE?(0,f.eh)(e):{expireSession:t=>(function(t,e){k((0,d.zn)(t,e))})(t,e),isLockEnabled:!1,persistSession:k,retrieveSession:S}}(t,e)){let p,h=new a.cP,g=new a.cP,v=new a.cP,y=(0,i.yb)(function(){let t=u.retrieveSession();(0,d.W3)(t)?m({process:t=>(0,d.W3)(t)?(0,d.zn)(t,e):void 0,after:A},u):A(t)},E);x();let{throttled:b,cancel:w}=(0,s.n)(()=>{m({process:t=>{if((0,d.TE)(t))return;let i=A(t);return function(t){if((0,d.TE)(t))return;let i=n(t[r]);t[r]=i,delete t.isExpired,i===_.gB||t.id||(t.id=(0,l.lk)(),t.created=String((0,o.x3)())),e.trackAnonymousUser&&!t.anonymousId&&(t.anonymousId=(0,l.lk)())}(i),i},after:t=>{(0,d.c$)(t)&&!R()&&(p=t,h.notify()),p=t}},u)},E);function A(t){var n;return(0,d.W3)(t)&&(t=(0,d.zn)(t,e)),R()&&((n=t,p.id!==n.id||p[r]!==n[r])?(p=(0,d.zn)(p,e),g.notify()):(v.notify({previousState:p,newState:t}),p=t)),t}function x(){m({process:t=>{if((0,d.TE)(t))return t.anonymousId=(0,l.lk)(),(0,d.zn)(t,e)},after:t=>{p=t}},u)}function R(){return(null==p?void 0:p[r])!==void 0}return{expandOrRenewSession:b,expandSession:function(){m({process:t=>R()?A(t):void 0},u)},getSession:()=>
4p,renewObservable:h,expireObservable:g,sessionStateUpdateObservable:v,restartSession:x,expire:t=>{w(),!1===t&&p&&delete p.anonymousId,u.expireSession(p),A((0,d.zn)(p,e))},stop:()=>{(0,i.vG)(y)},updateSessionState:function(t){m({process:e=>({...e,...t}),after:A},u)}}}},82386:(t,e,r)=>{function n(t,e){for(let r=t.length-1;r>=0;r-=1){let n=t[r];if(e(n,r,t))return n}}function i(t){return Object.values(t)}function a(t){return Object.entries(t)}r.d(e,{KQ:()=>i,Uk:()=>n,WP:()=>a})},83037:(t,e,r)=>{r.d(e,{DJ:()=>s,vG:()=>u,wg:()=>o,yb:()=>l});var n=r(41627),i=r(47566),a=r(96656);function o(t,e){return(0,n.W)((0,a.VZ)(),"setTimeout")((0,i.dm)(t),e)}function s(t){(0,n.W)((0,a.VZ)(),"clearTimeout")(t)}function l(t,e){return(0,n.W)((0,a.VZ)(),"setInterval")((0,i.dm)(t),e)}function u(t){(0,n.W)((0,a.VZ)(),"clearInterval")(t)}},83550:(t,e,r)=>{r.d(e,{Go:()=>a,kg:()=>o});var n=r(77003);function i(t,e,r=function(){if("u">typeof WeakSet){let t=new WeakSet;return{hasAlreadyBeenSeen(e){let r=t.has(e);return r||t.add(e),r}}}let t=[];return{hasAlreadyBeenSeen(e){let r=t.indexOf(e)>=0;return r||t.push(e),r}}}()){if(void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,t)}if(r.hasAlreadyBeenSeen(e))return;if(Array.isArray(e)){let n=Array.isArray(t)?t:[];for(let t=0;t<e.length;++t)n[t]=i(n[t],e[t],r);return n}let a="object"===(0,n.P)(t)?t:{};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=i(a[t],e[t],r));return a}function a(t){return i(void 0,t)}function o(...t){let e;for(let r of t)null!=r&&(e=i(e,r));return e}},83854:(t,e,r)=>{r.d(e,{$O:()=>a,XP:()=>o,ug:()=>i});var n=r(83550);let i="DISCARDED",a="SKIPPED";function o(){let t={};return{register:(e,r)=>(t[e]||(t[e]=[]),t[e].push(r),{unregister:()=>{t[e]=t[e].filter(t=>t!==r)}}),triggerHook(e,r){let o=t[e]||[],s=[];for(let t of o){let e=t(r);if(e===i)return i;e!==a&&s.push(e)}return(0,n.kg)(...s)}}}},84665:(t,e,r)=>{r.d(e,{M:()=>a,s:()=>i});var n=r(40987);function i(t,e,r){if("object"!=typeof t||null===t)return JSON.stringify(t);let n=a(Object.prototype),i=a(Array.prototype),o=a(Object.getPrototypeOf(t)),s=a(t);try{return JSON.stringify(t,e,r)}catch(t){return"<error: unable to serialize object>"}finally{n(),i(),o(),s()}}function a(t){let e=t.toJSON;return e?(delete t.toJSON,()=>{t.toJSON=e}):n.l}},84959:(t,e,r)=>{r.d(e,{Ww:()=>a,Y9:()=>i,d0:()=>o});var n=r(96656);function i(){let t=(0,n.VZ)().DatadogEventBridge;if(t)return{getCapabilities(){var e;return JSON.parse((null==(e=t.getCapabilities)?void 0:e.call(t))||"[]")},getPrivacyLevel(){var e;return null==(e=t.getPrivacyLevel)?void 0:e.call(t)},getAllowedWebViewHosts:()=>JSON.parse(t.getAllowedWebViewHosts()),send(e,r,n){t.send(JSON.stringify({eventType:e,event:r,view:n?{id:n}:void 0}))}}}function a(t){let e=i();return!!e&&e.getCapabilities().includes(t)}function o(t){var e;void 0===t&&(t=null==(e=(0,n.VZ)().location)?void 0:e.hostname);let r=i();return!!r&&r.getAllowedWebViewHosts().some(e=>t===e||t.endsWith(`.${e}`))}},88007:(t,e,r)=>{r.d(e,{oT:()=>f,zn:()=>l,W3:()=>d,TE:()=>u,c$:()=>c,H9:()=>h,D9:()=>p});var n=r(30666),i=r(82386),a=r(49088),o=r(10993);let s=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function l(t,e){let r={isExpired:"1"};return e.trackAnonymousUser&&(null==t?void 0:t.anonymousId)&&(r.anonymousId=null==t?void 0:t.anonymousId),r}function u(t){return(0,n.RI)(t)}function c(t){return!u(t)}function d(t){var e;return void 0!==t.isExpired||!((void 0===(e=t).created||(0,a.x3)()-Number(e.created)<o.AQ)&&(void 0===e.expire||(0,a.x3)()<Number(e.expire)))}function f(t){t.expire=String((0,a.x3)()+o.HB)}function p(t){return(0,i.WP)(t).map(([t,e])=>"anonymousId"===t?`aid=${e}`:`${t}=${e}`).join("&")}function h(t){let e={};return t&&(-1!==t.indexOf("&")||s.test(t))&&t.split("&").forEach(t=>{let r=s.exec(t);if(null!==r){let[,t,n]=r;"aid"===t?e.anonymousId=n:e[t]=n}}),e}},88274:(t,e,r)=>{let n,i,a,o,s,l,u,c;r.d(e,{X2:()=>Z,eT:()=>e5,o:()=>e6,$m:()=>e0,NT:()=>e1,Wd:()=>e2,bb:()=>q,K:()=>j,do:()=>f,wP:()=>nq,wI:()=>eI,W3:()=>t6,PJ:()=>e4,dT:()=>e7,$4:()=>eN,Gn:()=>r8,zL:()=>r4,dx:()=>nz,rf:()=>rn,pB:()=>r7,wR:()=>eO,g1:()=>r9,nS:()=>ex,XS:()=>eR,p_:()=>eC,$5:()=>eg,AB:()=>nD,jR:()=>e9,ei:()=>ep,ap:()=>re,Ie:()=>rt});var d,f,p=r(67438),h=r(48086),m=r(90366),g=r(27120),v=r(49088),_=r(60058),y=r(96656),b=r(36124),w=r(18439);function S(){return new h.cP(t=>{var e,r;let n=(e,r)=>{let n=(0,b.As)({stackTrace:r,originalError:e,startClocks:(0,v.M8)(),nonErrorPrefix:"Uncaught",source:w.g.SOURCE,handling:"unhandled"});t.notify(n)},{stop:i}=(e=n,(0,g.H)((0,y.VZ)(),"onerror",({parameters:[t,r,n,i,a]})=>{let o;
4(0,b.bJ)(a)||(o=(0,_.h)(t,r,n,i)),e(null!=a?a:t,o)})),{stop:a}=(r=n,(0,g.H)((0,y.VZ)(),"onunhandledrejection",({parameters:[t]})=>{r(t.reason||"Empty reason")}));return()=>{i(),a()}})}var k=r(28076),E=r(65589),A=r(47566),T=r(91463),x=r(12831),R=r(83550),C=r(13053),O=r(25945);function I(t,e,r,n){return(0,A.dm)((...i)=>(n&&(0,T.Q6)({feature:n}),t()[e][r](...i)))}let N="userContext",P="globalContext",M="accountContext",L="getContext",$="setContext",U="setContextProperty",V="removeContextProperty",D="clearContext";var B=r(57986);function z(t,e){e.silentMultipleInit||B.Vy.error(`${t} is already initialized.`)}let q={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},j={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},F="initial_load",W="route_change",G="bf_cache",Z={CLICK:"click",CUSTOM:"custom",TAP:"tap",SCROLL:"scroll",SWIPE:"swipe",APPLICATION_START:"application_start",BACK:"back"},K="error_click",H="dead_click",J="duration";var Y=r(51520);function Q({vitalsByName:t,vitalsByReference:e},r,n={}){let i={name:r,startClocks:(0,v.M8)(),...n},a={__dd_vital_reference:!0};return t.set(r,i),e.set(a,i),a}function X(t,{vitalsByName:e,vitalsByReference:r},n,i={}){var a,o,s,l,u;let c="string"==typeof n?e.get(n):r.get(n);c&&(t((a=c,o=c.startClocks,s=i,l=(0,v.M8)(),{name:a.name,type:J,startClocks:o,duration:(0,v.vk)(o.timeStamp,l.timeStamp),context:(0,R.kg)(a.context,s.context),description:null!=(u=s.description)?u:a.description,handlingStack:a.handlingStack})),"string"==typeof n?e.delete(n):r.delete(n))}function tt(t){let{startClocks:e,type:r,name:n,description:i,context:a,handlingStack:o}=t,s={id:(0,Y.lk)(),type:r,name:n,description:i,...r===J?{duration:(0,v.Zj)(t.duration)}:{step_type:t.stepType,operation_key:t.operationKey,failure_reason:t.failureReason}};return{rawRumEvent:{date:e.timeStamp,vital:s,type:q.VITAL,context:a},startClocks:e,duration:r===J?t.duration:void 0,domainContext:o?{handlingStack:o}:{}}}function te(t,e,r){if(t)for(let n of t){let t=n[e];t&&t(r)}}var tr=r(62812),tn=r(47848),ti=r(30666);let ta=[];function to(t,e,r,n){var i,a;let o=(i=r,a=n,`_dd_c_${i}_${a}`);ta.push((0,tn.q)(t,window,"storage",({key:t})=>{o===t&&e.setContext(l())})),e.changeObservable.subscribe(function(){localStorage.setItem(o,JSON.stringify(e.getContext()))});let s=(0,R.kg)(l(),e.getContext());function l(){let t=localStorage.getItem(o);return t?JSON.parse(t):{}}(0,ti.RI)(s)||e.setContext(s)}var ts=r(77003);function tl(t,e,r){let n={...t};for(let[t,{required:i,type:a}]of Object.entries(e))"string"!==a||tu(n[t])||(n[t]=String(n[t])),i&&tu(n[t])&&B.Vy.warn(`The property ${t} of ${r} is required; context will not be sent to the intake.`);return n}function tu(t){return null==t||""===t}function tc(t="",{propertiesConfig:e={}}={}){let r={},n=new h.cP,i={getContext:()=>(0,R.Go)(r),setContext:a=>{let o;((o="object"===(0,ts.P)(a))||B.Vy.error("Unsupported context:",a),o)?r=(0,C.a)(tl(a,e,t)):i.clearContext(),n.notify()},setContextProperty:(i,a)=>{r=(0,C.a)(tl({...r,[i]:a},e,t)),n.notify()},removeContextProperty:i=>{delete r[i],tl(r,e,t),n.notify()},clearContext:()=>{r={},n.notify()},changeObservable:n};return i}function td(){return tc("global context")}var tf=r(83854);function tp(){return tc("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function th(){return tc("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}var tm=r(84959),tg=r(40987),tv=r(12760),t_=r(22873);async function ty(t,e){let r=t.getReader(),n=[];for(;;){let t=await r.read();if(t.done)break;e.collectStreamBody&&n.push(t.value)}return r.cancel().catch(tg.l),e.collectStreamBody?(0,t_.wh)(n):void 0}var tb=r(12954);let tw=[];function tS({responseBodyAction:t}={}){return t&&tw.push(t),n||(n=new h.cP(t=>{if(!y.J2.fetch)return;let{stop:e}=(0,g.H)(y.J2,"fetch",e=>(function({parameters:t,onPostCall:e,handlingStack:r},n){let[i,a]=t,o=a&&a.method;void 0===o&&i instanceof Request&&(o=i.method);let s=void 0!==o?String(o).toUpperCase():"GET",l=i instanceof Request?i.url:(0,tv.l2)(String(i)),u={state:"start",init:a,input
4:i,method:s,startClocks:(0,v.M8)(),url:l,handlingStack:r};n.notify(u),t[0]=u.input,t[1]=u.init,e(t=>{tk(n,t,u).catch(A.Dx)})})(e,t),{computeHandlingStack:!0});return e})),n}async function tk(t,e,r){var n,i;let a;r.state="resolve";try{a=await e}catch(e){r.status=0,r.isAborted=(null==(i=null==(n=r.init)?void 0:n.signal)?void 0:i.aborted)||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,r.error=e,t.notify(r);return}r.response=a,r.status=a.status,r.responseType=a.type,r.isAborted=!1;let o=tw.reduce((t,e)=>Math.max(t,e(r)),0);if(0!==o){let t=(0,tb.i)(a);if(t&&t.body)try{let e=await ty(t.body,{collectStreamBody:2===o});r.responseBody=e&&new TextDecoder().decode(e)}catch(t){}}t.notify(r)}var tE=r(38335);let tA="datadog-synthetics-",tT=`${tA}public-id`,tx=`${tA}result-id`,tR=`${tA}injects-rum`,tC=`${tA}rum-context`;function tO(){return!y.Wq&&!!(y.J2._DATADOG_SYNTHETICS_INJECTS_RUM||(0,tE.B9)(tR))}function tI(){var t;let e=function(){let t=y.J2._DATADOG_SYNTHETICS_RUM_CONTEXT;if(t)return t;let e=(0,tE.B9)(tC);return e?(0,ti.XU)(decodeURIComponent(e)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||(0,tE.B9)(tT),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||(0,tE.B9)(tx)}}();return"object"==typeof(t=e)&&null!==t&&"string"==typeof t.test_id&&"string"==typeof t.result_id?e:void 0}let tN=tf.XP;var tP=r(17965),tM=r(16464),tL=r(39972);let t$=["tracecontext","datadog"];function tU(t){return(0,tL.V)(t)?{match:t,propagatorTypes:t$}:(0,ts.O)(t)&&(0,tL.V)(t.match)&&(null===t.propagatorTypes||void 0===t.propagatorTypes||Array.isArray(t.propagatorTypes))?{match:t.match,propagatorTypes:t.propagatorTypes||t$}:void 0}var tV=r(43919),tD=r(46694);let tB=/[a-zA-Z_$]/,tz=/[a-zA-Z0-9_$]/,tq=/[0-9]/,tj=/[a-fA-F0-9]/,tF={0:()=>!1,1:()=>!1,2:t=>tB.test(t),3:t=>tz.test(t),4:t=>"."===t,5:t=>"["===t,6:t=>"]"===t,7:t=>tq.test(t),8:t=>"'\"".includes(t),9:(t,e)=>t===e.quote,10:()=>!0,11:t=>"\\"===t,12:(t,e)=>void 0===e.escapeSequence?`${e.quote}/\\bfnrtu`.includes(t):!!e.escapeSequence.startsWith("u")&&e.escapeSequence.length<5&&tj.test(t)},tW={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]},tG=[2,3,7,10],tZ=[4,5,6],tK={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"},tH=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function tJ(t,e){let r,n,i=(r={fetch:{}},{get:()=>r,increment:(t,e)=>{r[t]||(r[t]={}),r[t][e]||(r[t][e]=0),r[t][e]=r[t][e]+1}}),a=await tQ(t);return a.ok?(i.increment("fetch","success"),n=function(t,e,r,n){let i={...t};return tH.forEach(t=>{t in e&&(i[t]=a(e[t]))}),Object.keys(r).forEach(t=>{var n;void 0!==e[t]&&(n=r[t],e[t].forEach(({key:t,value:e})=>{n.setContextProperty(t,a(e))}))}),i;function a(t){if(Array.isArray(t))return t.map(a);if((0,ts.O)(t)){if("rcSerializedType"in t){let r=t.rcSerializedType;switch(r){case"string":return t.value;case"regex":return tY(t.value);case"dynamic":var e=t;let i,a=e.strategy;switch(a){case"cookie":i=function({name:t}){let e=(0,tE.Ri)(t);return n.increment("cookie",void 0!==e?"success":"missing"),e}(e);break;case"dom":i=function({selector:t,attribute:e}){var r,i;let a;try{a=document.querySelector(t)}catch(e){B.Vy.error(`Invalid selector in the remote configuration: '${t}'`),n.increment("dom","failure");return}if(!a)return void n.increment("dom","missing");if(r=a,i=e,"password"===r.getAttribute("type")&&"value"===i){B.Vy.error(`Forbidden element selected by the remote configuration: '${t}'`),n.increment("dom","failure");return}let o=void 0!==e?a.getAttribute(e):a.textContent;return null===o?void n.increment("dom","missing"):(n.increment("dom","success"),o)}(e);break;case"js":i=function({path:t}){let e=window,r=function(t){let e,r=[],n=0,i={quote:void 0,escapeSequence:void 0},a="";for(let l of t){if(!(e=tW[n].find(t=>tF[t](l,i))))return[];if(void 0!==i.escapeSequence&&12!==e){var o,s;if(o=i.escapeSequence,!("\"'/\\bfnrt".includes(o)||o.startsWith("u")&&5===o.length))return[];a+=(s=i.escapeSequence).startsWith("u")?String.fromCharCode(parseInt(s.slice(1),16)):tK[s],i.escapeSequence=void 0}tG.includes(e)?a+=l:tZ.includes(e)&&""!==a?(r.push(a),a=""):12===e?i.escapeSequence=i.escapeSequence?`${i.escapeSequence}${l}`:l:8===e?i.quote=l:9===e&&(i.quote=void 0),n=e}return tW[n].includes(1)?(""!==a&&r.push(a),r):[]}(t);if(0===r.length){B.Vy.error(`Invalid JSON path in the remote configuration: '${t}'`),n.increment("js","failure");return}for(let i of r){if(!(i in e))return void n.increment("js","missing");try{e=e[i]}catch(e){B.Vy.error(`Error accessing: '${t}'`,e),n.increment("js","failure");return}}return n.increment("js","success"),e}(e);break;case"localStorage":i=function({key:t}){let e;try{e=localStorage.getItem(t)}catch(t){n.increment("localStorage","failure");return}return n.increment("localStorage",null!==e?"success":"missing"),null!=e?e:void 0}(e);break;default:B.Vy.error(`Unsupported remote configuration: "strategy": "${a}"`);return}let o=e.extractor;return void 0!==o&&"string"==typeof i?function(t,e){let r=tY(t.value);if(void 0===r)return;let n=r.exec(e);if(null===n)return;let[i,a]=n;return a||i}(o,i):i;default:B.Vy.error(`Unsupported remote configuration: "rcSerializedType": "${r}"`);return}}return(0,ti.LG)(t,a)}return t}}(t,a.value,e,i)):(i.increment("fetch","failure"),B.Vy.error(a.error)),(0,T.Gk)("remote configuration metrics",{metrics:i.get()}),n}function tY(t){try{return new RegExp(t)}catch(e){B.Vy.error(`Invalid regex in the remote configuration: '${t}'`)}}async function tQ(t){let e;try{var r;e=await (0,tV.h)((r=t).remoteConfigurationProxy?r.remoteConfigurationProxy:`https://sdk-configuration.${(0,tD.G)("rum",r)}/v1/${encodeURIComponent(r.remoteConfigurationId)}.json`)}catch(t){e=void 0}if(!e||!e.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};let n=await e.json();return n.rum?{ok:!0,value:n.rum}:{ok:!1,error:Error("No remote configuration for RUM.")}}function tX(t,e,r){t.changeObservable.subscribe(()=>{let n=t.getContext();r.add(t=>t[e].setContext(n))})}var t0=r(90628),t1=r(25130),t2=r(41627);function t6(){let t,e=window;if(e.Zone&&(t=(0,t2.W)(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){let r=new e.MutationObserver(tg.l),n=(0,t2.W)(r,"originalInstance");
4t=n&&n.constructor}return t||(t=e.MutationObserver),t}class t5{constructor(){this.callbacks={}}notify(t,e){let r=this.callbacks[t];r&&r.forEach(t=>t(e))}subscribe(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(t=>e!==t)}}}}var t3=r(10993),t8=r(64283);let t4=t3.AQ,t9=new WeakMap;function t7({target:t,parameters:[e,r]}){t9.set(t,{state:"open",method:String(e).toUpperCase(),url:(0,tv.l2)(String(r))})}function et({target:t}){let e=t9.get(t);e&&(e.isAborted=!0)}let ee="fetch",er="other";var en=r(44231);let ei="initial_document",ea=[["document",t=>ei===t],["xhr",t=>"xmlhttprequest"===t],[ee,t=>"fetch"===t],["beacon",t=>"beacon"===t],["css",(t,e)=>/\.css$/i.test(e)],["js",(t,e)=>/\.js$/i.test(e)],["image",(t,e)=>["image","img","icon"].includes(t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)],["font",(t,e)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)],["media",(t,e)=>["audio","video"].includes(t)||null!==/\.(mp3|mp4)$/i.exec(e)]];function eo(...t){for(let e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function es(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType}function el(t){return t.duration>=0}function eu(t){var e;let r=eo(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!((e=t).redirectEnd>e.startTime)||eo(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return r&&n}function ec(t,e,r){if(t<=e&&e<=r)return{duration:(0,v.Zj)((0,v.vk)(e,r)),start:(0,v.Zj)((0,v.vk)(t,e))}}function ed(t){return t&&(!(0,en.w)(t)||(0,O.sr)(O.R9.TRACK_INTAKE_REQUESTS))}let ef=/data:(.+)?(;base64)?,/g;function ep(t,e=24e3){if(t.length<=e||!t.startsWith("data:"))return t;let r=t.substring(0,100).match(ef);return r?`${r[0]}[...]`:t}var eh=r(82386);let em=new Map;function eg(t,e){var r,n;let i,a,o;if(100===e)return!0;if(0===e)return!1;let s=em.get(e);return s&&t===s.sessionId?s.decision:(i=window.BigInt?(r=BigInt(`0x${t.split("-")[4]}`),n=e,a=BigInt("1111111111111111111"),Number(r*a%(o=BigInt("0x10000000000000000")))<=n/100*Number(o)):(0,tM.ic)(e),em.set(e,{sessionId:t,decision:i}),i)}function ev(t){let e=crypto.getRandomValues(new Uint32Array(2));return 63===t&&(e[e.length-1]>>>=1),{toString(t=10){let r=e[1],n=e[0],i="";do{let e=r%t*0x100000000+n;r=Math.floor(r/t),n=Math.floor(e/t),i=(e%t).toString(t)+i}while(r||n);return i}}}function e_(t){return t.toString(16).padStart(16,"0")}function ey(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function eb(t,e,r,n,i,a){let o=r.findTrackedSession();if(!o)return;let s=t.allowedTracingUrls.find(t=>(0,tL.K)([t.match],e.url,!0));if(!s)return;let l=eg(o.id,t.traceSampleRate);(l||t.traceContextInjection===tP.uT.ALL)&&(e.traceSampled=l,e.traceId=ev(64),e.spanId=ev(63),a(function(t,e,r,n,i,a,o,s){let l={};if(i.forEach(n=>{switch(n){case"datadog":Object.assign(l,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":t.toString()});break;case"tracecontext":Object.assign(l,{traceparent:`00-0000000000000000${e_(t)}-${e_(e)}-0${r?"1":"0"}`,tracestate:`dd=s:${r?"1":"0"};o:rum`});break;case"b3":Object.assign(l,{b3:`${e_(t)}-${e_(e)}-${r?"1":"0"}`});break;case"b3multi":Object.assign(l,{"X-B3-TraceId":e_(t),"X-B3-SpanId":e_(e),"X-B3-Sampled":r?"1":"0"})}}),s.propagateTraceBaggage){let t={"session.id":n},e=a.getContext().id;"string"==typeof e&&(t["user.id"]=e);let r=o.getContext().id;"string"==typeof r&&(t["account.id"]=r);let i=Object.entries(t).map(([t,e])=>`${t}=${encodeURIComponent(e)}`).join(",");i&&(l.baggage=i)}return l}(e.traceId,e.spanId,e.traceSampled,o.id,s.propagatorTypes,n,i,t)))}let ew=32*t_._m;function eS(t,e){return e.allowedGraphQlUrls.find(e=>(0,tL.K)([e.match],t))}let ek=1;function eE(){let t=ek;return ek+=1,t}function eA(t){return(0,tM.Et)(t)&&t<0?void 0:t}function eT(t){return t.nodeType===Node.TEXT_NODE}function ex(t){return t.nodeType===Node.ELEMENT_NODE}function eR(t){return ex(t)&&!!t.shadowRoot}function eC(t){return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&ex(t.host)}function eO(t){return t.childNodes.length>0||eR(t)}function eI(t,e){let r=t.firstChild;for(;r;)e(r),r=r.nextSibling;eR(t)&&e(t.shadowRoot)}function eN(t){return eC(t)?t.host:t.parentNode}function eP(t){if(t.parentElement)return t.parentElement;let e=t.parentNode;return e&&eC(e)?e.host:null}var eM=r(83037);function eL(t,e){return new h.cP(r=>{var n;let i,o;if(!window.PerformanceObserver)return;let s=t=>{let e=t.filter(t=>{var e;return!((e=t).entryType===f.RESOURCE&&(!ed(e.name)||!el(e)))});e.length>0&&r.notify(e)},l=!0,u=new PerformanceObserver((0,A.dm)(t=>{l?i=(0,eM.wg)(()=>s(t.getEntries())):s(t.getEntries())}));try{u.observe(e)}catch(t){if([f.RESOURCE,f.NAVIGATION,f.LONG_TASK,f.PAINT].includes(e.type)){e.buffered&&(i=(0,eM.wg)(()=>s(performance.getEntriesByType(e.type))));try{u.observe({entryTypes:[e.type]})}catch(t){return}}}return l=!1,n=t,!a&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(a=(0,tn.q)(n,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),e$(f.FIRST_INPUT)||e.type!==f.FIRST_INPUT||({stop:o}=function(t,e){let r=(0,v.x3)(),n=!1,{stop:i}=(0,tn.l)(t,window,["click","mousedown","keydown","touchstart","pointerdown"],e=>{var r,n;if(!e.cancelable)return;let i={entryType:"first-input",processingStart:(0,v.$S)(),processingEnd:(0,v.$S)(),startTime:e.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:()=>({})};"pointerdown"===e.type?(r=t,n=i,(0,tn.l)(r,window,["pointerup","pointercancel"],t=>{"pointerup"===t.type&&a(n)},{once:!0})):a(i)},{passive:!0,capture:!0});return{stop:i};function a(t){if(!n){n=!0,i();let a=t.processingStart-t.startTime;a>=0&&a<(0,v.x3)()-r&&e(t)}
4}}(t,t=>{s([t])})),()=>{u.disconnect(),o&&o(),(0,eM.DJ)(i)}})}function e$(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}(d=f||(f={})).EVENT="event",d.FIRST_INPUT="first-input",d.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",d.LAYOUT_SHIFT="layout-shift",d.LONG_TASK="longtask",d.LONG_ANIMATION_FRAME="long-animation-frame",d.NAVIGATION="navigation",d.PAINT="paint",d.RESOURCE="resource",d.VISIBILITY_STATE="visibility-state";let eU="data-dd-excluded-activity-mutations";function eV(t,e,r,n,i,a){let o,s=(0,m.B)(eD)(t,e,r,n),l=!1,u=(0,eM.wg)((0,A.dm)(()=>p({hadActivity:!1})),100),c=void 0!==a?(0,eM.wg)((0,A.dm)(()=>p({hadActivity:!0,end:(0,v.nx)()})),a):void 0,d=s.subscribe(({isBusy:t})=>{(0,eM.DJ)(u),(0,eM.DJ)(o);let e=(0,v.nx)();t||(o=(0,eM.wg)((0,A.dm)(()=>p({hadActivity:!0,end:e})),100))}),f=()=>{l=!0,(0,eM.DJ)(u),(0,eM.DJ)(o),(0,eM.DJ)(c),d.unsubscribe()};function p(t){l||(f(),i(t))}return{stop:f}}function eD(t,e,r,n){return new h.cP(i=>{let a,o=[],s=0;return o.push(e.subscribe(t=>{t.every(ez)||l()}),r.subscribe(l),eL(n,{type:f.RESOURCE}).subscribe(t=>{t.some(t=>!eB(n,t.name))&&l()}),t.subscribe(7,t=>{eB(n,t.url)||(void 0===a&&(a=t.requestIndex),s+=1,l())}),t.subscribe(8,t=>{eB(n,t.url)||void 0===a||t.requestIndex<a||(s-=1,l())})),()=>{o.forEach(t=>t.unsubscribe())};function l(){i.notify({isBusy:s>0})}})}function eB(t,e){return(0,tL.K)(t.excludedActivityUrls,e)}function ez(t){let e="characterData"===t.type?t.target.parentElement:t.target;return!!(e&&ex(e)&&e.matches(`[${eU}], [${eU}] *`))}let eq="data-dd-action-name",ej="Masked Element",eF=[eq,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],eW=[eH,function(t){if(t.id&&!eK(t.id))return`#${CSS.escape(t.id)}`}],eG=[eH,function(t){if("BODY"===t.tagName)return;let e=t.classList;for(let r=0;r<e.length;r+=1){let n=e[r];if(!eK(n))return`${CSS.escape(t.tagName)}.${CSS.escape(n)}`}},function(t){return CSS.escape(t.tagName)}];function eZ(t,e){if(!t.isConnected)return;let r=function(t){let e=[],r=t;for(;r;){let t=r.getRootNode();if(e.push({rootNode:t,target:r}),eC(t))r=t.host;else break}return e.reverse()}(t),n=[];for(let{rootNode:t,target:i}of r){let r=function(t,e,r){let n,i=t;for(;i&&"HTML"!==i.nodeName;){let t=eJ(i,e,eW,eY,r,n);if(t)return eX(t,n);n=eX(eJ(i,e,eG,eQ,r,n)||function(t){let e=t.parentNode.firstElementChild,r=1;for(;e&&e!==t;)e.tagName===t.tagName&&(r+=1),e=e.nextElementSibling;return`${CSS.escape(t.tagName)}:nth-of-type(${r})`}(i),n),i=i.parentElement}return n}(i,t,e);if(!r)return;n.push(r)}return n.join("::shadow ")}function eK(t){return/[0-9]/.test(t)}function eH(t,e){if(e){let t=r(e);if(t)return t}for(let t of eF){let e=r(t);if(e)return e}function r(e){if(t.hasAttribute(e))return`${CSS.escape(t.tagName)}[${e}="${CSS.escape(t.getAttribute(e))}"]`}}function eJ(t,e,r,n,i,a){for(let o of r){let r=o(t,i);if(r&&n(t,e,r,a))return r}}function eY(t,e,r,n){return 1===e.querySelectorAll(eX(r,n)).length}function eQ(t,e,r,n){let i;if(void 0===n)i=t=>t.matches(r);else{let t=eX(`${r}:scope`,n);i=e=>null!==e.querySelector(t)}let a=t.previousElementSibling;for(;a;){if(i(a))return!1;a=a.previousElementSibling}for(a=t.nextElementSibling;a;){if(i(a))return!1;a=a.nextElementSibling}return!0}function eX(t,e){return e?`${t}>${e}`:t}let e0={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:tP.WA.ALLOW,MASK:tP.WA.MASK,MASK_USER_INPUT:tP.WA.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:tP.WA.MASK_UNLESS_ALLOWLISTED},e1="data-dd-privacy",e2="hidden",e6="***",e5="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",e3={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function e8(t){return`[${e1}="${t}"], .dd-privacy-${t}`}function e4(t,e,r){if(r&&r.has(t))return r.get(t);let n=eN(t),i=n?e4(n,e,r):e,a=e9(e7(t),i);return r&&r.set(t,a),a}function e9(t,e){switch(e){case e0.HIDDEN:case e0.IGNORE:return e}switch(t){case e0.ALLOW:case e0.MASK:case e0.MASK_USER_INPUT:case e0.MASK_UNLESS_ALLOWLISTED:case e0.HIDDEN:case e0.IGNORE:return t;default:return e}}function e7(t){if(ex(t)){if("BASE"===t.tagName)return e0.ALLOW;if("INPUT"===t.tagName){if("password"===t.type||"email"===t.type||"tel"===t.type||"hidden"===t.type)return e0.MASK;let e=t.getAttribute("autocomplete");if(e&&(e.startsWith("cc-")||e.endsWith("-password")))return e0.MASK}if(t.matches(e8(e0.HIDDEN)))return e0.HIDDEN;if(t.matches(e8(e0.MASK)))return e0.MASK;if(t.matches(e8(e0.MASK_UNLESS_ALLOWLISTED)))return e0.MASK_UNLESS_ALLOWLISTED;if(t.matches(e8(e0.MASK_USER_INPUT)))return e0.MASK_USER_INPUT;if(t.matches(e8(e0.ALLOW)))return e0.ALLOW;if(function(t){if("SCRIPT"===t.nodeName)return!0;
4if("LINK"===t.nodeName){let t=e("rel");return/preload|prefetch/i.test(t)&&"script"===e("as")||"shortcut icon"===t||"icon"===t}if("META"===t.nodeName){let r=e("name"),n=e("rel"),i=e("property");return/^msapplication-tile(image|color)$/.test(r)||"application-name"===r||"icon"===n||"apple-touch-icon"===n||"shortcut icon"===n||"keywords"===r||"description"===r||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(r)||"pinterest"===r||"robots"===r||"googlebot"===r||"bingbot"===r||t.hasAttribute("http-equiv")||"author"===r||"generator"===r||"framework"===r||"publisher"===r||"progid"===r||/^article:/.test(i)||/^product:/.test(i)||"google-site-verification"===r||"yandex-verification"===r||"csrf-token"===r||"p:domain_verify"===r||"verify-v1"===r||"verification"===r||"shopify-checkout-api-token"===r}function e(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t))return e0.IGNORE}}function rt(t,e){switch(e){case e0.MASK:case e0.HIDDEN:case e0.IGNORE:return!0;case e0.MASK_UNLESS_ALLOWLISTED:if(eT(t))return!!rr(t.parentNode)||!ri(t.textContent||"");return rr(t);case e0.MASK_USER_INPUT:return eT(t)?rr(t.parentNode):rr(t);default:return!1}}function re(t,e,r,n,i){if(n!==e0.MASK&&n!==e0.MASK_UNLESS_ALLOWLISTED||e===e1||eF.includes(e)||e===i.actionNameAttribute)return!1;switch(e){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!("A"===t&&"href"===e||"IFRAME"===t&&"srcdoc"===e||r&&e.startsWith("data-"))||("IMG"===t||"SOURCE"===t)&&("src"===e||"srcset"===e)}function rr(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;if("INPUT"===t.tagName)switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!e3[t.tagName]}function rn(t,e){var r;let n=null==(r=t.parentElement)?void 0:r.tagName,i=t.textContent||"";if("HEAD"!==n||i.trim()){if("SCRIPT"===n)i=e6;else if(e===e0.HIDDEN)i=e6;else if(rt(t,e))if("DATALIST"===n||"SELECT"===n||"OPTGROUP"===n){if(!i.trim())return}else i="OPTION"===n?e6:e===e0.MASK_UNLESS_ALLOWLISTED?ra(i):i.replace(/\S/g,"x");return i}}function ri(t){var e;return!(t&&t.trim())||(null==(e=window.$DD_ALLOW)?void 0:e.has(t.toLocaleLowerCase()))||!1}function ra(t,e){return ri(t)?t:e||t.replace(/\S/g,"x")}function ro({lifeCycle:t,isChildEvent:e,onChange:r=tg.l}){let n={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=t.subscribe(13,t=>{var i;if("view"!==t.type&&"vital"!==t.type&&e(t))switch(t.type){case q.ERROR:n.errorCount+=1,r();break;case q.ACTION:n.actionCount+=1,t.action.frustration&&(n.frustrationCount+=t.action.frustration.type.length),r();break;case q.LONG_TASK:n.longTaskCount+=1,r();break;case q.RESOURCE:(null==(i=t._dd)?void 0:i.discarded)||(n.resourceCount+=1,r())}});return{stop:()=>{i.unsubscribe()},eventCounts:n}}let rs=5*v.iW;function rl(t){let e=(0,t8.qj)({expireDelay:rs}),r=new Map;function n(t){var e;r.delete(t.key),null==(e=t.eventCounts)||e.stop()}function i(){r.forEach(t=>{n(t)}),e.reset()}let a=t.subscribe(10,i);return{start:function(i,a,o,s){let l=(0,Y.lk)(),u=e.add(l,a.relative),c=r.get(i);c&&n(c);let d=(null==s?void 0:s.isChildEvent)?ro({lifeCycle:t,isChildEvent:s.isChildEvent(l)}):void 0;r.set(i,{id:l,key:i,startClocks:a,data:o,historyEntry:u,eventCounts:d})},stop:function(t,e,i){var a;let o=r.get(t);if(!o)return;let s=i?(0,R.kg)(o.data,i):o.data;o.historyEntry.close(e.relative);let l=(0,v.vk)(o.startClocks.timeStamp,e.timeStamp),u=null==(a=o.eventCounts)?void 0:a.eventCounts;return n(o),{...s,id:o.id,startClocks:o.startClocks,duration:l,counts:u}},discard:function(t){var e;let i=r.get(t);if(!i)return;let a=null==(e=i.eventCounts)?void 0:e.eventCounts;return n(i),i.historyEntry.remove(),{...i.data,id:i.id,startClocks:i.startClocks,counts:a}},getCounts:function(t){var e,n;return null==(n=null==(e=r.get(t))?void 0:e.eventCounts)?void 0:n.eventCounts},findId:function(t){return e.findAll(t)},stopAll:function(){a.unsubscribe(),i(),e.stop()}}}let ru=v.OY;function rc(t,e){let r=function(t,e){let r=t;for(;r;){if(r.matches(e))return r;r=eP(r)}return null}(t,`[${e}]`);if(r)return rm(rh(r.getAttribute(e).trim()))}let rd=[(t,e,r)=>{if("labels"in t&&t.labels&&t.labels.length>0)return rv(t.labels[0],e,r)},t=>{if("INPUT"===t.nodeName){let e=t.getAttribute("type");if("button"===e||"submit"===e||"reset"===e)return{name:t.value,nameSource:"text_content"}}},(t,e,r)=>{if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return rv(t,e,r)},(t,e,r)=>rg(t,"aria-label",e,r),(t,e,r)=>{let n=t.getAttribute("aria-labelledby");if(n)return{name:n.split(/\s+/).map(e=>(function(t,e){let r=t.getRootNode();if(r instanceof ShadowRoot){let t=r.getElementById(e);if(t)return t}return t.ownerDocument?t.ownerDocument.getElementById(e):null})(t,e)).filter(t=>!!t).map(t=>r_(t,e,r)).join(" "),nameSource:"text_content"}},(t,e,r)=>rg(t,"alt",e,r),(t,e,r)=>rg(t,"name",e,r),(t,e,r)=>rg(t,"title",e,r),(t,e,r)=>rg(t,"placeholder",e,r),(t,e,r)=>{if("options"in t&&t.options.length>0)return rv(t.options[0],e,r)}],rf=[(t,e,r)=>rv(t,e,r)];function rp(t,e,r,n){let i=t,a=0;for(;a<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(let t of e){let e=t(i,r,n);if(e){let{name:t,nameSource:r}=e,n=t&&t.trim();if(n)return{name:rm(rh(n)),nameSource:r}}}if("FORM"===i.nodeName)break;
4i=eP(i),a+=1}}function rh(t){return t.replace(/\s+/g," ")}function rm(t){return t.length>100?`${(0,Y._R)(t,100)} [...]`:t}function rg(t,e,r,n){let{enablePrivacyForActionName:i,defaultPrivacyLevel:a}=r,o=t.getAttribute(e);if(o&&i){let i=e4(t,a,n);re(t.tagName,e,o,i,r)&&(o=ra(o,ej))}else o||(o="");return{name:o,nameSource:"standard_attribute"}}function rv(t,e,r){return{name:r_(t,e,r)||"",nameSource:"text_content"}}function r_(t,e,r){if(t.isContentEditable)return;let{enablePrivacyForActionName:n,actionNameAttribute:i,defaultPrivacyLevel:a}=e;if((0,O.sr)(O.R9.USE_TREE_WALKER_FOR_ACTION_NAME)){var o=t,s=i,l=n,u=a,c=r;let e=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(t){let e=e4(t,u,c);if(l&&e&&rt(t,e))return NodeFilter.FILTER_REJECT;if(ex(t)){if(t.hasAttribute(eq)||s&&t.hasAttribute(s))return NodeFilter.FILTER_REJECT;let e=getComputedStyle(t);if("visible"!==e.visibility||"none"===e.display||e.contentVisibility&&"visible"!==e.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}),d="";for(;e.nextNode();){let t=e.currentNode;if(ex(t)){("BR"===t.nodeName||"P"===t.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(t).display))&&(d+=" ");continue}d+=t.textContent||""}return d.replace(/\s+/g," ").trim()}if("innerText"in t){let e=t.innerText,r=r=>{let n=t.querySelectorAll(r);for(let t=0;t<n.length;t+=1){let r=n[t];if("innerText"in r){let t=r.innerText;t&&t.trim().length>0&&(e=e.replace(t,""))}}};return r(`[${eq}]`),i&&r(`[${i}]`),n&&r(`${e8(e0.HIDDEN)}, ${e8(e0.MASK)}`),e}return t.textContent}function ry(){let t=window.getSelection();return!t||t.isCollapsed}function rb(t){return t.target instanceof Element&&!1!==t.isPrimary}function rw(t){if(t.hasPageActivity||t.getUserActivity().input||t.getUserActivity().scroll)return!1;let e=t.event.target;return"LABEL"===e.tagName&&e.hasAttribute("for")&&(e=document.getElementById(e.getAttribute("for"))),!e||!e.matches('input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}let rS=10*v.OY,rk=new Map;function rE(t,e){rk.set(t,e),rk.forEach((t,e)=>{(0,v.vk)(e,(0,v.$S)())>rS&&rk.delete(e)})}function rA(t){return e=>void 0!==e.action&&void 0!==e.action.id&&e.action.id.includes(t)}function rT(t){if(t.composed&&eR(t.target)&&"function"==typeof t.composedPath){let e=t.composedPath();if(e.length>0&&e[0]instanceof Element)return e[0]}return t.target}function rx(t){let e="events"in t,r=eA((0,v.Zj)(t.duration));return{rawRumEvent:{type:q.ACTION,date:t.startClocks.timeStamp,action:{id:t.id,target:{name:t.name},type:t.type,...void 0!==r&&{loading_time:r},...t.counts&&{error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},frustration:{type:t.frustrationTypes}},...e?{_dd:{action:{target:t.target,position:t.position,name_source:t.nameSource}}}:{context:t.context}},duration:t.duration,startClocks:t.startClocks,domainContext:e?{events:t.events}:{handlingStack:t.handlingStack}}}var rR=r(84665);let rC={},rO="csp_violation";function rI(t){return{startClocks:(0,v.M8)(),source:w.g.REPORT,handling:"unhandled",...t}}function rN(t,e,r,n,i){return r?(0,E.Yn)({name:t,message:e,stack:[{func:"?",url:r,line:null!=n?n:void 0,column:null!=i?i:void 0}]}):void 0}var rP=r(18044);let rM=v.OY;function rL(){let t=[];function e(e){let n;if(e.didTimeout){let t=performance.now();n=()=>30-(performance.now()-t)}else n=e.timeRemaining.bind(e);for(;n()>0&&t.length;)t.shift()();t.length&&r()}function r(){(0,rP.BB)(e,{timeout:rM})}return{push(e){1===t.push(e)&&r()},stop(){t.length=0}}}let r$=new WeakSet;function rU(t){return(0,v.Gw)(t.startTime,t.duration)}var rV=r(77211);let rD=2*v.iW;function rB(t,e){let r=e&&Number(e);if(t&&r)return{traceId:t,traceTime:r}}function rz(t){if(t&&t.nodeType===Node.COMMENT_NODE){let e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function rq(){if(e$(f.NAVIGATION)){let t=performance.getEntriesByType(f.NAVIGATION)[0];if(t)return t}let t=function(){let t={},e=performance.timing;for(let r in e)if((0,tM.Et)(e[r])){let n=e[r];t[r]=0===n?0:(0,v.gs)(n)}return t}(),e={entryType:f.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:t.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...e,toJSON:void 0}),...t};return e}function rj(t){return t.responseStart>=0&&t.responseStart<=(0,v.$S)()?t.responseStart:void 0}function rF(t,e){(0,rV.H)(t,"interactive",()=>{let t=(0,m.B)(rq)(),r=Object.assign(t.toJSON(),{entryType:f.RESOURCE,initiatorType:ei,duration:t.responseEnd,traceId:function(t){var e;let r,n,i=(r=(e=t).querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]"),rB(r&&r.content,n&&n.content)||function(t){let e=function(t){for(let e=0;e<t.childNodes.length;e+=1){let r=rz(t.childNodes[e]);if(r)return r}if(t.body)for(let e=t.body.childNodes.length-1;e>=0;e-=1){let r=t.body.childNodes[e],n=rz(r);if(n)return n;if(!eT(r))break}}(t);if(e)return rB((0,Y.rx)(e,"trace-id"),(0,Y.rx)(e,"trace-time"))}(t));if(!(!i||i.traceTime<=(0,v.x3)()-rD))return i.traceId}(document),toJSON:()=>({...r,toJSON:void 0})});e(r)})}function rW(t,e,r,n){let i=es(t)&&n?n.getMatchingRequest(t):void 0;return rG(t,i,r,e)}function rG(t,e,r,n){var i,a,o,s;if(!t&&!e)return;let l=e?function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toString(),trace_id:t.traceId.toString(),rule_psr:e.rulePsr}}}
4(e,n):function(t,e){if(t.traceId)return{_dd:{trace_id:t.traceId,span_id:ev(63).toString(),rule_psr:e.rulePsr}}}(t,n);if(!n.trackResources&&!l)return;let u=t?(0,v.FR)(t.startTime):e.startClocks,c=t?function(t){let{duration:e,startTime:r,responseEnd:n}=t;return 0===e&&r<n?(0,v.vk)(r,n):e}(t):(i=r,a=u,o=e.duration,i.wasInPageStateDuringPeriod("frozen",a.relative,o)?void 0:o),d=e&&function(t,e){let r=eS(t.url,e);if(r){let e=function(t,e=!1){var r;let n,i,a,o;if("POST"===t.method?n=function(t){if(!t||"string"!=typeof t)return;let e=(0,ti.XU)(t);if(e)return{query:e.query,operationName:e.operationName,variables:e.variables?JSON.stringify(e.variables):void 0}}(t.requestBody):"GET"===t.method&&(r=t.url,o=(a=(i=(0,tv.c$)(r).searchParams).get("variables"))&&void 0!==(0,ti.XU)(a)?a:void 0,n={query:i.get("query")||void 0,operationName:i.get("operationName")||void 0,variables:o}),n)return function(t,e){let r,n,i;if(t.query){var a;let i=t.query.trim();r=null==(a=i.match(/^\s*(query|mutation|subscription)\b/i))?void 0:a[1],e&&(n=(0,Y._R)(i,ew,"..."))}return t.variables&&(i=t.variables),{operationType:r,operationName:t.operationName,variables:i,payload:n}}(n,e)}(t,r.trackPayload);if(e){if(r.trackResponseErrors&&t.responseBody){let r=function(t){let e=(0,ti.XU)(t);if(e&&"object"==typeof e){if((0,tr.EI)(e.errors))return e.errors.map(t=>{var e;return{message:t.message,path:t.path,locations:t.locations,code:null==(e=t.extensions)?void 0:e.code}})}}(t.responseBody);r&&(e.error_count=r.length,e.errors=r)}return e}return}}(e,n),f=(0,R.kg)({date:u.timeStamp,resource:{id:(0,Y.lk)(),duration:(0,v.Zj)(c),type:e?"xhr"===e.type?"xhr":ee:function(t){let e=t.name;if(!(0,tv.AY)(e))return er;let r=(0,tv.L2)(e);for(let[e,n]of ea)if(n(t.initiatorType,r))return e;return er}(t),method:e?e.method:void 0,status_code:e?e.status:0===(s=t.responseStatus)?void 0:s,url:e?ep(e.url):t.name,protocol:t&&(""===t.nextHopProtocol?void 0:t.nextHopProtocol),delivery_type:t&&(""===t.deliveryType?"other":t.deliveryType),graphql:d},type:q.RESOURCE,_dd:{discarded:!n.trackResources}},l,t&&function(t){let{renderBlockingStatus:e}=t;return{resource:{render_blocking_status:e,...function(t){if(t.startTime<t.responseStart){let{encodedBodySize:e,decodedBodySize:r,transferSize:n}=t;return{size:r,encoded_body_size:e,decoded_body_size:r,transfer_size:n}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}(t),...function(t){if(!eu(t))return;let{startTime:e,fetchStart:r,workerStart:n,redirectStart:i,redirectEnd:a,domainLookupStart:o,domainLookupEnd:s,connectStart:l,secureConnectionStart:u,connectEnd:c,requestStart:d,responseStart:f,responseEnd:p}=t,h={download:ec(e,f,p),first_byte:ec(e,d,f)};return 0<n&&n<r&&(h.worker=ec(e,n,r)),r<c&&(h.connect=ec(e,l,c),l<=u&&u<=c&&(h.ssl=ec(e,u,c))),r<s&&(h.dns=ec(e,o,s)),e<a&&(h.redirect=ec(e,i,a)),h}(t)}}}(t));return{startClocks:u,duration:c,rawRumEvent:f,domainContext:function(t,e){if(e){let r={performanceEntry:t,isAborted:e.isAborted,handlingStack:e.handlingStack};return"xhr"===e.type?{xhr:e.xhr,...r}:{requestInput:e.input,requestInit:e.init,response:e.response,error:e.error,...r}}return{performanceEntry:t}}(t,e)}}let rZ=10*v.iW,rK=10*v.iW;function rH(t,e,r=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:tg.l};if(e$(f.VISIBILITY_STATE)){let t=performance.getEntriesByType(f.VISIBILITY_STATE).filter(t=>"hidden"===t.name).find(t=>t.startTime>=e.relative);if(t)return{timeStamp:t.startTime,stop:tg.l}}let n=1/0,{stop:i}=(0,tn.l)(t,r,["pagehide","visibilitychange"],t=>{("pagehide"===t.type||"hidden"===document.visibilityState)&&(n=t.timeStamp,i())},{capture:!0});return{get timeStamp(){return n},stop:i}}let rJ=t=>{var e,r;let n,i,a,o;return t.previousRect.width*t.previousRect.height+t.currentRect.width*t.currentRect.height-(e=t.previousRect,r=t.currentRect,n=Math.max(e.left,r.left),i=Math.max(e.top,r.top),a=Math.min(e.right,r.right),o=Math.min(e.bottom,r.bottom),n>=a||i>=o?0:(a-n)*(o-i))};function rY({x:t,y:e,width:r,height:n}){return{x:t,y:e,width:r,height:n}}let rQ=5*v.OY,rX=v.OY,r0=0,r1=1/0,r2=0,r6=()=>o?r0:window.performance.interactionCount||0,r5=+v.iW;function r3(t){return Math.min(t,r5)}
4function r8(){let t=window.visualViewport;return Math.round(t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function r4(){let t=window.visualViewport;return Math.round(t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function r9(t){var e;return s||(e=t,s=new h.cP(t=>{let{throttled:r}=(0,tg.n)(()=>{t.notify(r7())},200);return(0,tn.q)(e,window,"resize",r,{capture:!0,passive:!0}).stop})),s}function r7(){let t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}let nt=v.OY,ne=5*v.iW,nr=5*v.iW;function nn(t){let e=t.indexOf("?");return e<0?t:t.slice(0,e)}var ni=r(77874),na=r(88007),no=r(12102),ns=r(5937),nl=r(60911);let nu=v.iW,nc=t3.AQ,nd=[];async function nf(t){let e,r,n=t.sessionStoreStrategyType;n&&(n.type===t3.Q_.COOKIE?(e=(0,no.Hv)(n.cookieOptions,t),r={cookie:await np(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):e=(0,nl.dX)(),(0,T.A2)("Unexpected session state",{sessionStoreStrategyType:n.type,session:e,isSyntheticsTest:!!tI(),createdTimestamp:null==e?void 0:e.created,expireTimestamp:null==e?void 0:e.expire,...r}))}async function np(){let t;return{count:(t="cookieStore"in window?await window.cookieStore.getAll(ns.Z):document.cookie.split(/\s*;\s*/).filter(t=>t.startsWith(ns.Z))).length,domain:(0,tE.DQ)()||"undefined",...t}}var nh=r(72358),nm=r(42274),ng=r(8128);let nv=t3.AQ;function n_(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}let ny=t3.AQ,nb=10*v.OY;function nw(){0!==l.batchCount&&((0,T.Gk)("Customer data measures",l),nE())}function nS(){return{min:1/0,max:0,sum:0}}function nk(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function nE(){l={batchCount:0,batchBytesCount:nS(),batchMessagesCount:nS()}}let nA=t3.AQ;function nT(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}let nx=v.OY;function nR(t,e){let r=(0,Y.rx)(document.cookie,t),n=(0,eM.yb)(()=>{let n=(0,Y.rx)(document.cookie,t);n!==r&&(r=n,e(n))},nx);return()=>{(0,eM.vG)(n)}}let nC="datadog-ci-visibility-test-execution-id";function nO(t,e,r=3e3){let n=0,i=!1;return{isLimitReached(){if(0===n&&(0,eM.wg)(()=>{n=0},v.iW),(n+=1)<=r||i)return i=!1,!1;if(n===r+1){i=!0;try{e({message:`Reached max number of ${t}s by minute: ${r}`,source:w.g.AGENT,startClocks:(0,v.M8)()})}finally{i=!1}}return!0}}}var nI=r(992);function nN(t){return"object"===(0,ts.P)(t)}let nP={"view.name":"string","view.url":"string","view.referrer":"string"},nM={context:"object"},nL={service:"string",version:"string"};var n$=r(64988);let nU=[q.ACTION,q.ERROR,q.LONG_TASK,q.RESOURCE,q.VITAL];function nV(t,e,r,n,a,s,d,p,y,S,k){var x,I;let N,P,M=[],L=new t5;L.subscribe(13,t=>(0,t0.b)("rum",t));let $=t=>{L.notify(14,{error:t}),(0,T.A2)("Error reported to customer",{"error.message":t.message})},U=(0,t1._T)(t),V=U.subscribe(t=>{L.notify(11,t)});M.push(()=>V.unsubscribe());let D=(0,tm.d0)()?(N={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:+!!(0,tm.Ww)("records")},{findTrackedSession:()=>N,expire:tg.l,expireObservable:new h.cP,setForcedReplay:tg.l}):((P=function(t,e,r){let n=new h.cP,i=new h.cP,a=(0,ni.oC)(t.sessionStoreStrategyType,t,"rum",e);nd.push(()=>a.stop());let o=(0,t8.qj)({expireDelay:nc});if(nd.push(()=>o.stop()),a.renewObservable.subscribe(()=>{o.add(s(),(0,v.$S)()),n.notify()}),a.expireObservable.subscribe(()=>{i.notify(),o.closeActive((0,v.$S)())}),a.expandOrRenewSession(),o.add(s(),(0,v.Oc)().relative),(0,O.sr)(O.R9.SHORT_SESSION_INVESTIGATION)){let e=a.getSession();e&&function(t,e){if(!window.cookieStore||!e.created)return;let r=Number(e.created),n=(0,v.x3)(),{stop:i}=(0,tn.q)(t,cookieStore,"change",function(t){let a=(0,eh.Uk)(t.changed,t=>t.name===ns.Z);if(!a)return;let o=(0,v.x3)()-r;if(o>14*v.iW)i();else{let t=(0,na.H9)(a.value);if(t.id&&t.id!==e.id){i();let r=(0,v.x3)()-n;np().then(n=>{(0,T.A2)("Session cookie changed",{time:r,session_age:o,old:e,new:t,cookie:n})}).catch(A.Dx)}}});nd.push(i)}(t,e)}function s(){let e=a.getSession();return e?{id:e.id,trackingType:e.rum,isReplayForced:!!e.forcedReplay,anonymousId:e.anonymousId}:(nf(t).catch(()=>void 0),{id:"invalid",trackingType:t3.gB,isReplayForced:!1,anonymousId:void 0})}return r.observable.subscribe(()=>{r.isGranted()?a.expandOrRenewSession():a.expire(!1)}),function(t,e){let{stop:r}=(0,tn.l)(t,window,["click","touchstart","keydown","scroll"],e,{capture:!0,passive:!0});nd.push(r)}(t,()=>{r.isGranted()&&a.expandOrRenewSession()}),function(t,e){let r=()=>{"visible"===document.visibilityState&&e()},{stop:n}=(0,tn.q)(t,document,"visibilitychange",r);nd.push(n);let i=(0,eM.yb)(r,nu);nd.push(()=>{(0,eM.vG)(i)})}(t,()=>a.expandSession()),function(t,e){let{stop:r}=(0,tn.q)(t,window,"resume",e,{capture:!0});nd.push(r)}(t,()=>a.restartSession()),{findSession:(t,e)=>o.find(t,e),renewObservable:n,expireObservable:i,sessionStateUpdateOb
4servable:a.sessionStateUpdateObservable,expire:a.expire,updateSessionState:a.updateSessionState}}(t,e=>{var r,n,i;return r=t,"0"===(i=n=e)||"1"===i||"2"===i?n:(0,tM.ic)(r.sessionSampleRate)?(0,tM.ic)(r.sessionReplaySampleRate)?"1":"2":"0"},s)).expireObservable.subscribe(()=>{L.notify(9)}),P.renewObservable.subscribe(()=>{L.notify(10)}),P.sessionStateUpdateObservable.subscribe(({previousState:t,newState:e})=>{if(!t.forcedReplay&&e.forcedReplay){let t=P.findSession();t&&(t.isReplayForced=!0)}}),{findTrackedSession:t=>{let e=P.findSession(t);if(e&&"0"!==e.trackingType)return{id:e.id,sessionReplay:"1"===e.trackingType?1:2*!!e.isReplayForced,anonymousId:e.anonymousId}},expire:P.expire,expireObservable:P.expireObservable,setForcedReplay:()=>P.updateSessionState({forcedReplay:"1"})});if((0,tm.d0)()){let t;t=(0,tm.Y9)(),L.subscribe(13,e=>{t.send("rum",e)})}else{let e,r,n=(x=D.expireObservable,e=[t.rumEndpointBuilder],t.replica&&e.push(t.replica.rumEndpointBuilder),r=(0,nh.X)({encoder:a(2),request:(0,nm.sA)(e,$),flushController:(0,ng.tO)({pageMayExitObservable:U,sessionExpireObservable:x})}),L.subscribe(13,t=>{t.type===q.VIEW?r.upsert(t,t.view.id):r.add(t)}),r);M.push(()=>n.stop()),I=n.flushController.flushObservable,y.metricsEnabled&&(nE(),u=!1,L.subscribe(13,()=>{u=!0}),I.subscribe(({bytesCount:t,messagesCount:e})=>{u&&(u=!1,l.batchCount+=1,nk(l.batchBytesCount,t),nk(l.batchMessagesCount,e))}),(0,eM.yb)(nw,nb))}S.register(1,()=>s.isGranted()?tf.$O:tf.ug);let{stop:z}=function(t,e){if(!e.metricsEnabled)return{stop:tg.l};let{unsubscribe:r}=t.subscribe(4,({initialViewMetrics:t})=>{var e,n;t.largestContentfulPaint&&t.navigationTimings&&((0,T.Gk)("Initial view metrics",{metrics:(e=t.largestContentfulPaint,n=t.navigationTimings,{lcp:{value:e.value},navigation:{domComplete:n.domComplete,domContentLoaded:n.domContentLoaded,domInteractive:n.domInteractive,firstByte:n.firstByte,loadEvent:n.loadEvent}})}),r())});return{stop:r}}(L,y);M.push(z);let{stop:J,...te}=function(t,e,r,n,a,s,l,u,d,p){var y,S,k,x,I,N,P,M,L,$;let U,V,D,z,J,te,tr,ta,tl,tu,tv,t_,ty,tb,tw,tk,tA,tT=[],tx=(V=t6(),new h.cP(t=>{if(!V)return;let e=new V((0,A.dm)(e=>t.notify(e)));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>e.disconnect()})),tR=(D=(0,ti.yG)(location),new h.cP(t=>{var e,n;let{stop:i}=function(t,e){let{stop:r}=(0,g.H)(n_("pushState"),"pushState",({onPostCall:t})=>{t(e)}),{stop:n}=(0,g.H)(n_("replaceState"),"replaceState",({onPostCall:t})=>{t(e)}),{stop:i}=(0,tn.q)(t,window,"popstate",e);return{stop:()=>{r(),n(),i()}}}(r,o),{stop:a}=(e=r,n=o,(0,tn.q)(e,window,"hashchange",n));function o(){if(D.href===location.href)return;let e=(0,ti.yG)(location);t.notify({newLocation:e,oldLocation:D}),D=e}return()=>{i(),a()}})),{observable:tC,stop:tN}=function(){let t=new h.cP,{stop:e}=(0,g.H)(window,"open",()=>t.notify());return{observable:t,stop:e}}();tT.push(tN),e.register(0,({eventType:t})=>{let e=r.source;return{type:t,_dd:{format_version:2,drift:(0,v.TP)(),configuration:{session_sample_rate:(0,tM.LI)(r.sessionSampleRate,3),session_replay_sample_rate:(0,tM.LI)(r.sessionReplaySampleRate,3),profiling_sample_rate:(0,tM.LI)(r.profilingSampleRate,3),trace_sample_rate:(0,tM.LI)(r.traceSampleRate,3),beta_encode_cookie_options:r.betaEncodeCookieOptions},browser_sdk_version:(0,tm.d0)()?"6.30.1":void 0,sdk_name:d},application:{id:r.applicationId},date:(0,v.nx)(),source:e}}),e.register(1,()=>({application:{id:r.applicationId}}));let tP=function(t,e,r=500){let n,i=(0,t8.qj)({expireDelay:nA,maxEntries:4e3});e$(f.VISIBILITY_STATE)&&performance.getEntriesByType(f.VISIBILITY_STATE).forEach(t=>{o("hidden"===t.name?"hidden":"active",t.startTime)}),o(nT(),(0,v.$S)());let{stop:a}=(0,tn.l)(e,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],t=>{var e;o("freeze"===(e=t).type?"frozen":"pagehide"===e.type?e.persisted?"frozen":"terminated":nT(),t.timeStamp)},{capture:!0});function o(t,e=(0,v.$S)()){t!==n&&(n=t,i.closeActive(e),i.add({state:n,startTime:e},e))}function s(t,e,r){return i.findAll(e,r).some(e=>e.state===t)}return t.register(0,({startTime:t,duration:e=0,eventType:n})=>n===q.VIEW?{type:n,_dd:{page_states:function(t,e,r){if(0!==t.length)return t.slice(-r).reverse().map(({state:t,startTime:r})=>({state:t,start:(0,v.Zj)((0,v.vk)(e,r))}))}(i.findAll(t,e),t,r)}}
4:n===q.ACTION||n===q.ERROR?{type:n,view:{in_foreground:s("active",t,0)}}:tf.$O),{wasInPageStateDuringPeriod:s,addPageState:o,stop:()=>{a(),i.stop()}}}(e,r);tT.push(()=>tP.stop());let tL=(z=(0,t8.qj)({expireDelay:t4}),t.subscribe(1,t=>{var e;z.add({service:(e=t).service,version:e.version,context:e.context,id:e.id,name:e.name,startClocks:e.startClocks},t.startClocks.relative)}),t.subscribe(6,({endClocks:t})=>{z.closeActive(t.relative)}),t.subscribe(3,t=>{let e=z.find(t.startClocks.relative);e&&(t.name&&(e.name=t.name),t.context&&(e.context=t.context),e.sessionIsActive=t.sessionIsActive)}),t.subscribe(10,()=>{z.reset()}),{findView:t=>z.find(t),stop:()=>{z.stop()}});tT.push(()=>tL.stop());let t$=function(t,e,r){let n,i=(0,t8.qj)({expireDelay:nv});t.subscribe(1,({startClocks:t})=>{let e=(0,m.B)(location).href;i.add(o({url:e,referrer:n||document.referrer}),t.relative),n=e}),t.subscribe(6,({endClocks:t})=>{i.closeActive(t.relative)});let a=r.subscribe(({newLocation:t})=>{let e=i.find();if(e){let r=(0,v.$S)();i.closeActive(r),i.add(o({url:t.href,referrer:e.referrer}),r)}});function o({url:t,referrer:e}){return{url:t,referrer:e}}return e.register(0,({startTime:t,eventType:e})=>{let r=i.find(t);return r?{type:e,view:{url:r.url,referrer:r.referrer}}:tf.ug}),{findUrl:t=>i.find(t),stop:()=>{a.unsubscribe(),i.stop()}}}(t,e,tR);tT.push(()=>t$.stop());let tU=(J=(0,t8.qj)({expireDelay:ny}),t.subscribe(1,({startClocks:t})=>{J.add({},t.relative)}),t.subscribe(6,({endClocks:t})=>{J.closeActive(t.relative)}),e.register(0,({startTime:t,eventType:e})=>{if(!r.trackFeatureFlagsForEvents.concat([q.VIEW,q.ERROR]).includes(e))return tf.$O;let n=J.find(t);return!n||(0,ti.RI)(n)?tf.$O:{type:e,feature_flags:n}}),{addFeatureFlagEvaluation:(t,e)=>{let r=J.find();r&&(r[t]=e)}});e.register(0,({eventType:t,startTime:e})=>{let r,i,o,s=n.findTrackedSession(e),l=tL.findView(e);return s&&l?(t===q.VIEW?(r=!!a.getReplayStats(l.id)||void 0,i=1===s.sessionReplay,o=!!l.sessionIsActive&&void 0):r=!!a.isRecording()||void 0,{type:t,session:{id:s.id,type:"user",has_replay:r,sampled_for_replay:i,is_active:o}}):tf.ug}),e.register(1,({startTime:t})=>{let e=n.findTrackedSession(t);return e?{session:{id:e.id}}:tf.$O}),e.register(0,({eventType:t})=>({type:t,connectivity:(0,n$.q)()}));let tV=(te=td(),r.storeContextsAcrossPages&&to(r,te,"rum",2),e.register(0,()=>{let t=te.getContext();return{context:t}}),te),tD=(tr=tp(),r.storeContextsAcrossPages&&to(r,tr,"rum",1),e.register(0,({eventType:t,startTime:e})=>{let i=tr.getContext(),a=n.findTrackedSession(e);return(a&&a.anonymousId&&!i.anonymous_id&&r.trackAnonymousUser&&(i.anonymous_id=a.anonymousId),(0,ti.RI)(i))?tf.$O:{type:t,usr:i}}),e.register(1,({startTime:t})=>{var e;return{anonymous_id:null==(e=n.findTrackedSession(t))?void 0:e.anonymousId}}),tr),tB=(ta=th(),r.storeContextsAcrossPages&&to(r,ta,"rum",4),e.register(0,()=>{let t=ta.getContext();return(0,ti.RI)(t)||!t.id?tf.$O:{account:t}}),ta),tz=function(t,e,r,n,i){var a;let o,s,{unsubscribe:l}=t.subscribe(0,e=>{t.notify(12,rx(e))}),u=tg.l;i.trackUserInteractions&&(o=function(t,e,r,n){let i,a=rl(t),o=new h.cP;t.subscribe(5,u),t.subscribe(11,u);let{stop:s}=function(t,{onPointerDown:e,onPointerUp:r}){let n,i,a={selection:!1,input:!1,scroll:!1},o=[(0,tn.q)(t,window,"pointerdown",t=>{rb(t)&&(n=ry(),a={selection:!1,input:!1,scroll:!1},i=e(t))},{capture:!0}),(0,tn.q)(t,window,"selectionchange",()=>{n&&ry()||(a.selection=!0)},{capture:!0}),(0,tn.q)(t,window,"scroll",()=>{a.scroll=!0},{capture:!0,passive:!0}),(0,tn.q)(t,window,"pointerup",t=>{if(rb(t)&&i){let e=a;r(i,t,()=>e),i=void 0}},{capture:!0}),(0,tn.q)(t,window,"input",()=>{a.input=!0},{capture:!0})];return{stop:()=>{o.forEach(t=>t.stop())}}}(n,{onPointerDown:i=>(function(t,e,r,n,i){let a,o=t.betaTrackActionsInShadowDom?rT(n):n.target;if((a=t.enablePrivacyForActionName?e4(o,t.defaultPrivacyLevel):e0.ALLOW)===e0.HIDDEN)return;let s=function(t,e,r){let n=r.betaTrackActionsInShadowDom?rT(t):t.target,i=n.getBoundingClientRect(),a=eZ(n,r.actionNameAttribute);a&&rE(t.timeStamp,a);let{name:o,nameSource:s}=function(t,e,r=e0.ALLOW){let n=new Map,{actionNameAttribute:i}=e,a=rc(t,eq)||i&&rc(t,i);return a?{name:a,nameSource:"custom_attribute"}:r===e0.MASK?{name:ej,nameSource:"mask_placeholder"}:rp(t,rd,e,n)||rp(t,rf,e,n)||{name:"",nameSource:"blank"}}(n,r,e);return{type:Z.CLICK,target:{width:Math.round(i.width),height:Math.round(i.height),selector:a},position:{x:Math.round(t.clientX-i.left),y:Math.round(t.clientY-i.top)},name:o,nameSource:s}}(n,a,t),l=!1;return eV(e,r,i,t,t=>{l=t.hadActivity},100),{clickActionBase:s,hadActivityOnPointerDown:()=>l}})(n,t,e,i,r),onPointerUp:({clickActionBase:i,hadActivityOnPointerDown:s},u,c)=>{!function(t,e,r,n,i,a,o,s,l,u,c){var d;let f=function t(e,r,n,i,a){let o,s=(0,Y.lk)(),l=(0,v.FR)(a.timeStamp);r.start(s,l,i,{isChildEvent:rA});let u=0,c=[],d=new h.cP;function f(t){0===u&&(u=1,o=t?r.stop(s,(0,v.jR)(t)):r.discard(s),d.notify())}return{event:a,stop:f,stopObservable:d,get hasError(){var p;let t=null!=(p=null==o?void 0:o.counts)?p:r.getCounts(s);return!!t&&t.errorCount>0},get hasPageActivity(){return o&&"duration"in o},getUserActivity:n,addFrustration:t=>{c.push(t)},get startClocks(){return l},isStopped:()=>1===u||2===u,clone:()=>t(e,r,n,i,a),validate:t=>{if(f(),1!==u||!o)return;let r={frustrationTypes:c,events:null!=t?t:[a],event:a,...o,counts:o.counts};e.notify(0,r),u=2},discard:()=>{f(),u=2}}}(e,i,u,s,l);o(f);let p=null==(d=null==s?void 0:s.target)?void 0:d.selector;p&&rE(l.timeStamp,p);let{stop:m}=eV(e,r,n,t,t=>{t.hadActivity&&t.end<f.startClocks.timeStamp?f.discard():t.hadActivity?f.stop(t.end):c()?f.stop(f.startClocks.timeStamp):f.stop()},rS),g=e.subscribe(5,({endClocks:t})=>{f.stop(t.timeStamp)}),_=e.subscribe(11,()=>{f.stop((0,v.nx)())}),y=a.subscribe(()=>{f.stop()});f.stopObservable.subscribe(()=>{_.unsubscribe(),g.unsubscribe(),m(),y.unsubscribe()})}(n,t,e,r,a,o,l,i,u,c,s)}});return{stop:()=>{u(),o.notify(),s(),a.stopAll()},findActionId:a.findId};function l(t){if(!i||!i.tryAppend(t)){let e=t.clone();i=function(t,e){let r,n=[],i=0;function a(t){t.stopObservable.subscribe(o),n.push(t),(0,eM.DJ)(r),r=(0,eM.wg)(s,ru)}function o(){1===i&&n.every(t=>t.isStopped())&&(i=2,e(n))}function s(){(0,eM.DJ)(r),0===i&&(i=1,o())}return a(t),{tryAppend:t=>{var e,r,o,l;return 0===i&&(!(n.length>0)||(e=n[n.length-1].event,r=t.event,e.target===r.target&&100>=(o=e,l=r,Math.sqrt(Math.pow(o.clientX-l.clientX,2)+Math.pow(o.clientY-l.clientY,2)))&&e.timeStamp-r.timeStamp<=ru)?(a(t),!0):(s(),!1))},stop:()=>{s()}}}(t,t=>{(function(t,e){let{isRage:r}=function(t,e){if(function(t){if(t.some(t=>t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=v.OY)return!0;return!1}(t))return e.addFrustration("rage_click"),t.some(rw)&&e.addFrustration(H),e.hasError&&e.addFrustration(K),{isRage:!0};let r=t.some(t=>t.getUserActivity().selection);return t.forEach(t=>{t.hasError&&t.addFrustration(K),rw(t)&&!r&&t.addFrustration(H)}),{isRage:!1}}(t,e);r?(t.forEach(t=>t.discard()),e.stop((0,v.nx)()),e.validate(t.map(t=>t.event))):(e.discard(),t.forEach(t=>t.validate()))})(t,e),i=void 0})}}function u(){i&&i.stop()}}(t,r,n,i));let c=(a=e=>{t.notify(12,rx(e))},{addAction:function(t){a({id:(0,Y.lk)(),frustrationTypes:[],...t})},startAction:function(t,e={},r=(0,v.M8)()){var n;let i=null!=(n=e.actionKey)?n:t;s.start(i,r,{name:t,...e},{isChildEvent:rA})},stopAction:function(t,e={},r=(0,v.M8)()){var n;let i=null!=(n=e.actionKey)?n:t,o=s.stop(i,r,e);if(!o)return;let l=[];o.counts&&o.counts.errorCount>0&&l.push(K),a({...o,type:o.type||Z.CUSTOM,frustrationTypes:l})},findActionId:(s=rl(t)).findId,stop:s.stopAll}),d={findActionId:t=>{var e;let r=c.findActionId(t),n=null!=(e=null==o?void 0:o.findActionId(t))?e:[];return r.concat(n)}};return e.register(0,({startTime:t,eventType:e})=>
4{if(e!==q.ERROR&&e!==q.RESOURCE&&e!==q.LONG_TASK)return tf.$O;let r=e===q.LONG_TASK?(0,v.Gw)(t,1):t,n=d.findActionId(r);return n.length?{type:e,action:{id:n}}:tf.$O}),e.register(1,({startTime:t})=>({action:{id:d.findActionId(t)}})),{addAction:c.addAction,startAction:c.startAction,stopAction:c.stopAction,actionContexts:d,stop:()=>{l(),u(),c.stop(),null==o||o.stop()}}}(t,e,tx,tC,r);tT.push(tz.stop);let tq={addEvent:(e,r,n,i)=>{nU.includes(r.type)&&t.notify(12,{startClocks:(0,v.FR)(e),rawRumEvent:r,domainContext:n,duration:i})}},tj=(tu=requestAnimationFrame((0,A.dm)(()=>{tl=r7()})),tv=r9(r).subscribe(t=>{tl=t}).unsubscribe,e.register(0,({eventType:t})=>({type:t,display:tl?{viewport:tl}:void 0})),{stop:()=>{tv(),tu&&cancelAnimationFrame(tu)}});tT.push(tj.stop);let tF=function(t,e,r=function(t,e){let r=window.cookieStore?function(t){return(e,r)=>(0,tn.q)(t,window.cookieStore,"change",t=>{let n=t.changed.find(t=>t.name===e)||t.deleted.find(t=>t.name===e);n&&r(n.value)}).stop}(t):nR;return new h.cP(t=>r(e,e=>t.notify(e)))}(t,nC)){var n;let i=(0,tE.B9)(nC)||(null==(n=window.Cypress)?void 0:n.env("traceId")),a=r.subscribe(t=>{i=t});return e.register(0,({eventType:t})=>"string"!=typeof i?tf.$O:{type:t,session:{type:"ci_test"},ci_test:{test_execution_id:i}}),{stop:()=>{a.unsubscribe()}}}(r,e);tT.push(tF.stop),e.register(0,({eventType:t})=>tI()?{type:t,session:{type:"synthetics"},synthetics:{...tI(),injected:tO()}}:tf.$O),c={[q.VIEW]:{"view.performance.lcp.resource_url":"string",...nM,...nP,...nL},[q.ERROR]:{"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string",...nM,...nP,...nL},[q.RESOURCE]:{"resource.url":"string","resource.graphql.variables":"string",...nM,...nP,...nL},[q.ACTION]:{"action.target.name":"string",...nM,...nP,...nL},[q.LONG_TASK]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...nM,...nP,...nL},[q.VITAL]:{...nM,...nP,...nL}},t_={[q.ERROR]:nO(q.ERROR,p,void 0),[q.ACTION]:nO(q.ACTION,p,void 0),[q.VITAL]:nO(q.VITAL,p,void 0)},t.subscribe(12,({startClocks:n,duration:i,rawRumEvent:a,domainContext:o})=>{let s=e.triggerHook(0,{eventType:a.type,rawRumEvent:a,domainContext:o,startTime:n.relative,duration:i});if(s===tf.ug)return;let l=(0,R.kg)(s,a,{ddtags:(0,nI.m5)(r).join(",")});(function(t,e,r,n){var i,a;if(e){let n,i,o=(a=c[t.type],i=(t=>e(t,r))(n=(0,R.Go)(t)),(0,eh.WP)(a).forEach(([e,r])=>(function t(e,r,n,i){let[a,...o]=n;if("[]"===a){Array.isArray(e)&&Array.isArray(r)&&e.forEach((e,n)=>t(e,r[n],o,i));return}if(nN(e)&&nN(r)){var s,l,u,c;let n;if(o.length>0)return t(e[a],r[a],o,i);s=e,l=a,u=r[a],c=i,(n=(0,ts.P)(u))===c?s[l]=(0,C.a)(u):"object"===c&&("undefined"===n||"null"===n)&&(s[l]={})}})(t,n,e.split(/\.|(?=\[\])/),r)),i);if(!1===o&&t.type!==q.VIEW)return!1;!1===o&&B.Vy.warn("Can't dismiss view events using beforeSend!")}return!(null==(i=n[t.type])?void 0:i.isLimitReached())})(l,r.beforeSend,o,t_)&&((0,ti.RI)(l.context)&&delete l.context,t.notify(13,l))});let{addTiming:tW,startView:tG,setViewName:tZ,setViewContext:tK,setViewContextProperty:tH,getViewContext:tJ,stop:tY}=(t.subscribe(4,e=>{var n,i,o,s,l,u,c,d,f,p,h,m,g,_,y,b,w,S,k,E;let A,T,x;return t.notify(12,(n=e,i=r,A=a.getReplayStats(n.id),T=null==(s=null==(o=n.commonViewMetrics)?void 0:o.cumulativeLayoutShift)?void 0:s.devicePixelRatio,x={_dd:{document_version:n.documentVersion,replay_stats:A,cls:T?{device_pixel_ratio:T}:void 0,configuration:{start_session_replay_recording_manually:i.startSessionReplayRecordingManually}},date:n.startClocks.timeStamp,type:q.VIEW,view:{action:{count:n.eventCounts.actionCount},frustration:{count:n.eventCounts.frustrationCount},cumulative_layout_shift:null==(l=n.commonViewMetrics.cumulativeLayoutShift)?void 0:l.value,cumulative_layout_shift_time:(0,v.Zj)(null==(u=n.commonViewMetrics.cumulativeLayoutShift)?void 0:u.time),cumulative_layout_shift_target_selector:null==(c=n.commonViewMetrics.cumulativeLayoutShift)?void 0:c.targetSelector,first_byte:(0,v.Zj)(null==(d=n.initialViewMetrics.navigationTimings)?void 0:d.firstByte),dom_complete:(0,v.Zj)(null==(f=n.initialViewMetrics.navigationTimings)?void 0:f.domComplete),dom_content_loaded:(0,v.Zj)(null==(p=n.initialViewMetrics.navigationTimings)?void 0:p.domContentLoaded),dom_interactive:(0,v.Zj)(null==(h=n.initialViewMetrics.navigationTimings)?void 0:h.domInteractive),error:{count:n.eventCounts.errorCount},first_contentful_paint:(0,v.Zj)(n.initialViewMetrics.firstContentfulPaint),first_input_delay:(0,v.Zj)(null==(m=n.initialViewMetrics.firstInput)?void 0:m.delay),first_input_time:(0,v.Zj)(null==(g=n.initialViewMetrics.firstInput)?void 0:g.time),first_input_target_selector:null==(_=n.initialViewMetrics.firstInput)?void 0:_.targetSelector,interaction_to_next_paint:(0,v.Zj)(null==(y=n.commonViewMetrics.interactionToNextPaint)?void 0:y.value),interaction_to_next_paint_time:(0,v.Zj)(null==(b=n.commonViewMetrics.interactionToNextPaint)?void 0:b.time),interaction_to_next_paint_target_selector:null==(w=n.commonViewMetrics.interactionToNextPaint)?void 0:w.targetSelector,is_active:n.isActive,name:n.name,largest_contentful_paint:(0,v.Zj)(null==(S=n.initialViewMetrics.largestContentfulPaint)?void 0:S.value),largest_contentful_paint_target_selector:null==(k=n.initialViewMetrics.largestContentfulPaint)?void 0:k.targetSelector,load_event:(0,v.Zj)(null==(E=n.initialViewMetrics.navigationTimings)?void 0:E.loadEvent),loading_time:eA((0,v.Zj)(n.commonViewMetrics.loadingTime)),loading_type:n.loadingType,long_task:{count:n.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:t,interactionToNextPaint:e},{firstContentfulPaint:r,firstInput:n,largestContentfulPaint:i}){return{cls:t&&{score:t.value,timestamp:(0,v.Zj)(t.time),target_selector:t.targetSelector,previous_rect:t.previousRect,current_rect:t.currentRect},fcp:r&&{timestamp:(0,v.Zj)(r)},fid:n&&{duration:(0,v.Zj)(n.delay),timestamp:(0,v.Zj)(n.time),target_selector:n.targetSelector},inp:e&&{duration:(0,v.Zj)(e.value),timestamp:(0,v.Zj)(e.time),target_selector:e.targetSelector,sub_parts:e.subParts?{input_delay:(0,v.Zj)(e.subParts.inputDelay),processing_duration:(0,v.Zj)(e.subParts.processingDuration),presentation_delay:(0,v.Zj)(e.subParts.presentationDelay)}:void 0},lcp:i&&{timestamp:(0,v.Zj)(i.value),target_selector:i.targetSelector,resource_url:i.resourceUrl,sub_parts:i.subParts?{load_delay:(0,v.Zj)(i.subParts.loadDelay),load_time:(0,v.Zj)(i.subParts.loadTime),render_delay:(0,v.Zj)(i.subParts.renderDelay)}:void 0}}}(n.commonViewMetrics,n.initialViewMetrics),resource:{count:n.eventCounts.resourceCount},time_spent:(0,v.Zj)(n.duration)},display:n.commonViewMetrics.scroll?{scroll:{max_depth:n.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:n.
4commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:n.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,v.Zj)(n.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:i.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:function(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){return}}()}},(0,ti.RI)(n.customTimings)||(x.view.custom_timings=(0,ti.LG)(n.customTimings,v.Zj)),{rawRumEvent:x,startClocks:n.startClocks,duration:n.duration,domainContext:{location:n.location,handlingStack:n.handlingStack}}))}),e.register(0,({startTime:t,eventType:e})=>{let r=tL.findView(t);return r?{type:e,service:r.service,version:r.version,context:r.context,view:{id:r.id,name:r.name}}:tf.ug}),e.register(1,({startTime:t})=>{var e;return{view:{id:null==(e=tL.findView(t))?void 0:e.id}}}),function(t,e,r,n,i,a,s){let l,u,c=new Set,d=p(F,(0,v.Oc)(),s);function p(i,a,s){let l=function(t,e,r,n,i,a=(0,v.M8)(),s){var l;let u,c=(0,Y.lk)(),d=new h.cP,p={},g=0,_=(0,ti.yG)((0,m.B)(window.location)),y=tc(),b=!0,w=null==s?void 0:s.name,S=(null==s?void 0:s.service)||n.service,k=(null==s?void 0:s.version)||n.version,E=null==s?void 0:s.context,T=null==s?void 0:s.handlingStack;E&&y.setContext(E);let x={id:c,name:w,startClocks:a,service:S,version:k,context:E};t.notify(1,x),t.notify(2,x);let{throttled:R,cancel:C}=(0,tg.n)(Z,3e3,{leading:!1}),{setLoadEvent:I,setViewEnd:N,stop:P,stopINPTracking:M,getCommonViewMetrics:L}=function(t,e,r,n,i,a,s){let l={},{stop:u,setLoadEvent:c}=function(t,e,r,n,i,a,o){let s=i===F,l=!0,u=[],c=rH(n,a);function d(){if(!l&&!s&&u.length>0){let t=Math.max(...u);t<c.timeStamp-a.relative&&o(t)}}let{stop:f}=eV(t,e,r,n,t=>{l&&(l=!1,t.hadActivity&&u.push((0,v.vk)(a.timeStamp,t.end)),d())});return{stop:()=>{f(),c.stop()},setLoadEvent:t=>{s&&(s=!1,u.push(t),d())}}}(t,e,r,n,a,s,t=>{l.loadingTime=t,i()}),{stop:d}=function(t,e,r,n=function(t,e=nt){return new h.cP(r=>{if(window.ResizeObserver){let n=(0,tg.n)(function(){r.notify(function(){let t=r4(),{height:e}=r7();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(e+t),scrollTop:t}}())},e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,a=new ResizeObserver((0,A.dm)(n.throttled));i&&a.observe(i);let o=(0,tn.q)(t,window,"scroll",n.throttled,{passive:!0});return()=>{n.cancel(),a.disconnect(),o.stop()}}})}(t)){let i=0,a=0,o=0,s=n.subscribe(({scrollDepth:t,scrollTop:n,scrollHeight:s})=>{let l=!1;if(t>i&&(i=t,l=!0),s>a){a=s;let t=(0,v.$S)();o=(0,v.vk)(e.relative,t),l=!0}l&&r({maxDepth:Math.min(i,a),maxDepthScrollTop:n,maxScrollHeight:a,maxScrollHeightTime:o})});return{stop:()=>s.unsubscribe()}}(n,s,t=>{l.scroll=t}),{stop:p}=function(t,e,r){let n,i,a,o,s;if(!(e$(f.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:tg.l};let l=0;r({value:0});let u=(o=0,s=0,{update:t=>{let e;return void 0===i||t.startTime-a>=rX||t.startTime-i>=rQ?(i=a=t.startTime,s=o=t.value,e=!0):(o+=t.value,a=t.startTime,(e=t.value>s)&&(s=t.value)),{cumulatedValue:o,isMaxValue:e}}}),c=eL(t,{type:f.LAYOUT_SHIFT,buffered:!0}).subscribe(i=>{var a;for(let o of i){if(o.hadRecentInput||o.startTime<e)continue;let{cumulatedValue:i,isMaxValue:s}=u.update(o);if(s){let t=function(t){let e;for(let r of t)if(r.node&&ex(r.node)){let t=rJ(r);(!e||rJ(e)<t)&&(e=r)}return e}(o.sources);n={target:(null==t?void 0:t.node)?new WeakRef(t.node):void 0,time:(0,v.vk)(e,o.startTime),previousRect:null==t?void 0:t.previousRect,currentRect:null==t?void 0:t.currentRect,devicePixelRatio:window.devicePixelRatio}}if(i>l){l=i;let e=null==(a=null==n?void 0:n.target)?void 0:a.deref();r({value:(0,tM.LI)(l,4),targetSelector:e&&eZ(e,t.actionNameAttribute),time:null==n?void 0:n.time,previousRect:(null==n?void 0:n.previousRect)?rY(n.previousRect):void 0,currentRect:(null==n?void 0:n.currentRect)?rY(n.currentRect):void 0,devicePixelRatio:null==n?void 0:n.devicePixelRatio})}}});return{stop:()=>{c.unsubscribe()}}}(n,s.relative,t=>{l.cumulativeLayoutShift=t,i()}),{stop:m,getInteractionToNextPaint:g,setViewEnd:_}=function(t,e,r){var n;let i,a,s;if(!(e$(f.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>
4void 0,setViewEnd:tg.l,stop:tg.l};let l=1/0,{getViewInteractionCount:u,stopViewInteractionCount:c}=(n=r,"interactionCount"in performance||o||(o=new window.PerformanceObserver((0,A.dm)(t=>{t.getEntries().forEach(t=>{t.interactionId&&(r1=Math.min(r1,t.interactionId),r0=((r2=Math.max(r2,t.interactionId))-r1)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),a=n===F?0:r6(),s={stopped:!1},{getViewInteractionCount:()=>s.stopped?s.interactionCount:r6()-a,stopViewInteractionCount:()=>{s={stopped:!0,interactionCount:r6()-a}}}),d=function(t){let e=[];function r(){e.sort((t,e)=>e.duration-t.duration).splice(10)}return{process(t){let n=e.findIndex(e=>t.interactionId===e.interactionId),i=e[e.length-1];-1!==n?t.duration>e[n].duration&&(e[n]=t,r()):(e.length<10||t.duration>i.duration)&&(e.push(t),r())},estimateP98Interaction(){let r=Math.min(e.length-1,Math.floor(t()/50));return e[r]},isTracked:t=>e.some(e=>e.interactionId===t)}}(u),p=(0,O.sr)(O.R9.INP_SUBPARTS)?function(t){let e=new Map;function r(t,e){t.startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd)}return{process(t){if(void 0===t.interactionId||!t.processingStart||!t.processingEnd)return;let n=t.startTime+t.duration,i=e.get(t.interactionId);if(i)return void r(i,t);for(let[,i]of e.entries())if(8>=Math.abs(n-i.referenceRenderTime)){r(i,t),e.set(t.interactionId,i);return}e.set(t.interactionId,{startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,referenceRenderTime:n})},pruneUntracked(){for(let[r]of e)t.isTracked(r)||e.delete(r)},computeSubParts(t,r){if(!t.processingStart||!t.processingEnd||void 0===t.interactionId)return;let n=e.get(t.interactionId);if(!n)return;let i=Math.max(n.startTime+r,n.processingStart),a=Math.min(n.processingEnd,i);return{inputDelay:(0,v.vk)(n.startTime,n.processingStart),processingDuration:(0,v.vk)(n.processingStart,a),presentationDelay:(0,v.vk)(a,i)}},stop(){e.clear()}}}(d):null,h=eL(t,{type:f.FIRST_INPUT,buffered:!0}).subscribe(g),m=eL(t,{type:f.EVENT,durationThreshold:40,buffered:!0}).subscribe(g);function g(r){for(let t of r)t.interactionId&&t.startTime>=e&&t.startTime<=l&&(d.process(t),null==p||p.process(t));null==p||p.pruneUntracked();let n=d.estimateP98Interaction();n&&function(r){let n=(0,v.vk)(e,r.startTime);if(!i||r.duration!==i.duration||n!==i.startTime){var a;let e,o=(a=r.startTime,e=rk.get(a),rk.delete(a),e);!o&&r.target&&ex(r.target)&&(o=eZ(r.target,t.actionNameAttribute)),i={duration:r.duration,startTime:n,targetSelector:o}}p&&(i.subParts=p.computeSubParts(r,r3(i.duration)))}(n)}return{getInteractionToNextPaint:()=>i?{value:r3(i.duration),targetSelector:i.targetSelector,time:i.startTime,subParts:i.subParts}:u()?{value:0}:void 0,setViewEnd:t=>{l=t,c()},stop:()=>{m.unsubscribe(),h.unsubscribe(),null==p||p.stop()}}}(n,s.relative,a);return{stop:()=>{u(),p(),d()},stopINPTracking:m,setLoadEvent:c,setViewEnd:_,getCommonViewMetrics:()=>(l.interactionToNextPaint=g(),l)}}(t,e,r,n,W,i,a),{stop:$,initialViewMetrics:U}=i===F?function(t,e,r,n){var i,a,o;let s,l={},{stop:u}=(i=t=>{r(t.loadEvent),l.navigationTimings=t,n()},function(t,e){let r,{stop:n}=(0,rV.H)(t,"complete",()=>{r=(0,eM.wg)(()=>e())});return{stop:()=>{n(),(0,eM.DJ)(r)}}}(t,()=>{var t;let e=(0,m.B)(rq)();e.loadEventEnd<=0||i({domComplete:(t=e).domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:rj(t)})})),c=rH(t,e),{stop:d}=(a=t=>{l.firstContentfulPaint=t,n()},{stop:eL(t,{type:f.PAINT,buffered:!0}).subscribe(t=>{let e=t.find(t=>"first-contentful-paint"===t.name&&t.startTime<c.timeStamp&&t.startTime<rZ);e&&a(e.startTime)}).unsubscribe}),{stop:p}=function(t,e,r,n){let i=1/0,{stop:a}=(0,tn.l)(t,r,["pointerdown","keydown"],t=>{i=t.timeStamp},{capture:!0,once:!0}),o=0,s=eL(t,{type:f.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(r=>{let a=(0,eh.Uk)(r,t=>t.entryType===f.LARGEST_CONTENTFUL_PAINT&&t.startTime<i&&t.startTime<e.timeStamp&&t.startTime<rK&&t.size>o);if(a){var s;let e;a.element&&(e=eZ(a.element,t.actionNameAttribute));let r=""===(s=a).url?void 0:s.url,i=a.startTime,l=(0,O.sr)(O.R9.LCP_SUBPARTS)?function(t,e){let r=rj(rq());if(void 0===r)return;let n=t?function(t,e){let r=function(){if(e$(f.RESOURCE))return performance.getEntriesByType(f.RESOURCE)}();if(r)return(0,eh.Uk)(r,r=>r.name===t&&r.startTime<=e)}(t,e):void 0,i=n?Math.max(r,n.requestStart||n.startTime):r,a=Math.min(e,Math.max(i,(null==n?void 0:n.responseEnd)||0));return{loadDelay:i-r,loadTime:a-i,renderDelay:e-a}}(r,i):void 0;n({value:i,targetSelector:e,resourceUrl:r,subParts:l}),o=a.size}}
4);return{stop:()=>{a(),s.unsubscribe()}}}(t,c,window,t=>{l.largestContentfulPaint=t,n()}),{stop:h}=(o=t=>{l.firstInput=t,n()},s=eL(t,{type:f.FIRST_INPUT,buffered:!0}).subscribe(e=>{let r=e.find(t=>t.startTime<c.timeStamp);if(r){let e,n=(0,v.vk)(r.startTime,r.processingStart);r.target&&ex(r.target)&&(e=eZ(r.target,t.actionNameAttribute)),o({delay:n>=0?n:0,time:r.startTime,targetSelector:e})}}),{stop:()=>{s.unsubscribe()}});return{stop:function(){u(),d(),p(),h(),c.stop()},initialViewMetrics:l}}(n,a,I,W):{stop:tg.l,initialViewMetrics:{}};i===G&&(l=a.relative,requestAnimationFrame(()=>{requestAnimationFrame(()=>{(t=>{U.firstContentfulPaint=t,U.largestContentfulPaint={value:t},W()})((0,v.vk)(l,(0,v.$S)()))})}));let{stop:V,eventCounts:D}=function(t,e,r){let{stop:n,eventCounts:i}=ro({lifeCycle:t,isChildEvent:t=>t.view.id===e,onChange:r});return{stop:n,eventCounts:i}}(t,c,W),z=(0,eM.yb)(Z,ne),q=t.subscribe(11,t=>{t.reason===t1.y5.UNLOADING&&Z()});function j(){t.notify(3,{id:c,name:w,context:y.getContext(),startClocks:a,sessionIsActive:b})}function W(){j(),R()}function Z(){C(),j(),g+=1;let e=void 0===u?(0,v.nx)():u.timeStamp;t.notify(4,{customTimings:p,documentVersion:g,id:c,name:w,service:S,version:k,context:y.getContext(),loadingType:i,location:_,handlingStack:T,startClocks:a,commonViewMetrics:L(),initialViewMetrics:U,duration:(0,v.vk)(a.timeStamp,e),isActive:void 0===u,sessionIsActive:b,eventCounts:D})}return Z(),y.changeObservable.subscribe(W),{get name(){return w},service:S,version:k,contextManager:y,stopObservable:d,end(e={}){var r,n;u||(u=null!=(r=e.endClocks)?r:(0,v.M8)(),b=null==(n=e.sessionIsActive)||n,t.notify(5,{endClocks:u}),t.notify(6,{endClocks:u}),(0,eM.vG)(z),N(u.relative),P(),q.unsubscribe(),Z(),(0,eM.wg)(()=>{this.stop()},nr))},stop(){$(),V(),M(),d.notify()},addTiming(t,e){var r;let n;if(u)return;let i=(0,v.pu)(e)?e:(0,v.vk)(a.timeStamp,e);p[(n=(r=t).replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==r&&B.Vy.warn(`Invalid timing name: ${r}, sanitized to: ${n}`),n]=i,W()},setViewName(t){w=t,Z()}}}(t,e,r,n,i,a,s);return c.add(l),l.stopObservable.subscribe(()=>{c.delete(l)}),l}return t.subscribe(10,()=>{d=p(W,void 0,{name:d.name,service:d.service,version:d.version,context:d.contextManager.getContext()})}),t.subscribe(9,()=>{d.end({sessionIsActive:!1})}),a&&(u=i.subscribe(({oldLocation:t,newLocation:e})=>{var r,n;let i;r=t,n=e,r.pathname===n.pathname&&(""!==(i=n.hash.substring(1))&&document.getElementById(i)||nn(n.hash)===nn(r.hash))||(d.end(),d=p(W))}),n.trackBfcacheViews&&(l=function(t,e){let{stop:r}=(0,tn.q)(t,window,"pageshow",t=>{t.persisted&&e(t)},{capture:!0});return r}(n,t=>{d.end(),d=p(G,(0,v.FR)(t.timeStamp),void 0)}))),{addTiming:(t,e=(0,v.nx)())=>{d.addTiming(t,e)},startView:(t,e)=>{d.end({endClocks:e}),d=p(W,e,t)},setViewContext:t=>{d.contextManager.setContext(t)},setViewContextProperty:(t,e)=>{d.contextManager.setContextProperty(t,e)},setViewName:t=>{d.setViewName(t)},getViewContext:()=>d.contextManager.getContext(),stop:()=>{u&&u.unsubscribe(),l&&l(),d.end(),c.forEach(t=>t.stop())}}}(t,tx,tC,r,tR,!r.trackViewsManually,s)),tQ=window,tX=new Map;function t0(){tQ.DD_SOURCE_CODE_CONTEXT&&((0,eh.WP)(tQ.DD_SOURCE_CODE_CONTEXT).forEach(([t,e])=>{let r=(0,_.T)({stack:t}).stack[0];r.url?tX.has(r.url)||tX.set(r.url,e):(0,T.VJ)("Source code context: missing frame url",{stack:t})}),tQ.DD_SOURCE_CODE_CONTEXT={})}t0(),e.register(0,({domainContext:t,rawRumEvent:e})=>{var r,n,i,a;let o;if(t0(),0===tX.size)return tf.$O;let s=(r=t,"long_task"===(n=e).type&&"long-animation-frame"===n.long_task.entry_type?null==(i=n.long_task.scripts[0])?void 0:i.source_url:("handlingStack"in r&&(o=r.handlingStack),"error"===n.type&&n.error.stack&&(o=n.error.stack),null==(a=(0,_.T)({stack:o}).stack[0])?void 0:a.url)),l=s&&tX.get(s);return l?{type:e.type,service:l.service,version:l.version}:tf.$O}),tT.push(tY);let t2=function(t,e,r){let n,i=(0,m.B)(rL)(),a=e.trackEarlyRequests;if(a){let e,r;e=new Set,r=t.subscribe(8,t=>{e.add(t),e.size>1e3&&((0,T.A2)("Too many requests"),e.delete(e.values().next().value))}),n={getMatchingRequest(t){let r,n=1/0;for(let i of e){let e=t.startTime-i.startClocks.relative;0<=e&&e<n&&i.url===t.name&&(n=Math.abs(e),r=i)}return r&&e.delete(r),r},stop(){r.unsubscribe()}}}else t.subscribe(8,t=>{s(()=>{var n,i,a;return n=t,i=e,a=r,rG(function(t){if(!performance||!("getEntriesByName"in performance))return;let e=performance.getEntriesByName(t.url,"resource");if(!e.length||!("toJSON"in e[0]))return;let r=e.filter(t=>!r$.has(t)).filter(t=>el(t)&&eu(t)).filter(e=>{var r,n,i;return r=e,n=t.startClocks.relative,i=rU({startTime:t.startClocks.relative,duration:t.duration}),r.startTime>
4=n-1&&rU(r)<=(0,v.Gw)(i,1)});if(1===r.length)return r$.add(r[0]),r[0].toJSON()}(n),n,a,i)})});let o=eL(e,{type:f.RESOURCE,buffered:!0}).subscribe(t=>{for(let i of t)(a||!es(i))&&s(()=>rW(i,e,r,n))});function s(e){i.push(()=>{let r=e();r&&t.notify(12,r)})}(0,m.B)(rF)(e,t=>{s(()=>rW(t,e,r,n))});let l=rl(t),u={startResource:function(t,e={},r=(0,v.M8)()){var n;let i=null!=(n=e.resourceKey)?n:t;l.start(i,r,{url:t,...e})},stopResource:function(e,r={},n=(0,v.M8)()){var i,a,o,s;let u=null!=(i=r.resourceKey)?i:e,c=l.stop(u,n,{context:r.context,type:r.type});if(c){let e,i;a=c.id,o=c.startClocks,s=r.statusCode,e=n?(0,v.vk)(o.relative,n.relative):void 0,i={date:o.timeStamp,type:q.RESOURCE,resource:{id:a,type:c.type||er,url:ep(c.url),duration:void 0!==e?(0,v.Zj)(e):void 0,method:c.method,status_code:s},_dd:{},context:c.context},t.notify(12,{rawRumEvent:i,startClocks:o,duration:e,domainContext:{isManual:!0}})}}};return{startResource:u.startResource,stopResource:u.stopResource,stop:()=>{i.stop(),o.unsubscribe(),l.stopAll()}}}(t,r,tP);tT.push(t2.stop);let{stop:t5}=(ty=eL(r,{type:e$(f.LONG_ANIMATION_FRAME)?f.LONG_ANIMATION_FRAME:f.LONG_TASK,buffered:!0}).subscribe(e=>{for(let n of e){if(!r.trackLongTasks)break;let e=(0,v.FR)(n.startTime),i=function(t,e){let r=(0,Y.lk)(),n=(0,v.Zj)(t.duration),i={date:e.timeStamp,type:q.LONG_TASK,_dd:{discarded:!1}};return t.entryType===f.LONG_TASK?{...i,long_task:{id:r,entry_type:j.LONG_TASK,duration:n}}:{...i,long_task:{id:r,entry_type:j.LONG_ANIMATION_FRAME,duration:n,blocking_duration:(0,v.Zj)(t.blockingDuration),first_ui_event_timestamp:(0,v.Zj)(t.firstUIEventTimestamp),render_start:(0,v.Zj)(t.renderStart),style_and_layout_start:(0,v.Zj)(t.styleAndLayoutStart),start_time:(0,v.Zj)(t.startTime),scripts:t.scripts.map(t=>({duration:(0,v.Zj)(t.duration),pause_duration:(0,v.Zj)(t.pauseDuration),forced_style_and_layout_duration:(0,v.Zj)(t.forcedStyleAndLayoutDuration),start_time:(0,v.Zj)(t.startTime),execution_start:(0,v.Zj)(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}))}}}(n,e);t.notify(12,{rawRumEvent:i,startClocks:e,duration:n.duration,domainContext:{performanceEntry:n}})}}),{stop:()=>ty.unsubscribe()});tT.push(t5);let{addError:t3}=(tb=new h.cP,u.subscribe(t=>{0===t.type&&tb.notify(t.error)}),x=tb,(U=[B.bP.error].map(t=>{var e;return rC[t]||(rC[t]=(e=t,new h.cP(t=>{let r=B.JZ[e];return B.JZ[e]=(...n)=>{r.apply(console,n);let i=(0,E.uC)("console error");(0,A.um)(()=>{t.notify(function(t,e,r){let n=t.map(t=>{var e;return"string"==typeof(e=t)?(0,C.a)(e):(0,b.bJ)(e)?(0,E.NR)((0,_.T)(e)):(0,rR.s)((0,C.a)(e),void 0,2)}).join(" ");if(e===B.bP.error){let i=t.find(b.bJ),a=(0,b.As)({originalError:i,handlingStack:r,startClocks:(0,v.M8)(),source:w.g.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return a.message=n,{api:e,message:n,handlingStack:r,error:a}}return{api:e,message:n,error:void 0,handlingStack:r}}(n,e,i))})},()=>{B.JZ[e]=r}}))),rC[t]}),(0,h.Fx)(...U)).subscribe(t=>x.notify(t.error)),(tw=[],(y=[rO,"intervention"]).includes(rO)&&tw.push((I=r,new h.cP(t=>{let{stop:e}=(0,tn.q)(I,document,"securitypolicyviolation",e=>{var r;let n;t.notify((r=e,n=`'${r.blockedURI}' blocked by '${r.effectiveDirective}' directive`,rI({type:r.effectiveDirective,message:`${rO}: ${n}`,originalError:r,csp:{disposition:r.disposition},stack:rN(r.effectiveDirective,r.originalPolicy?`${n} of the policy "${(0,Y._R)(r.originalPolicy,100,"...")}"`:"no policy",r.sourceFile,r.lineNumber,r.columnNumber)})))});return e}))),(tk=y.filter(t=>t!==rO)).length&&tw.push((N=tk,new h.cP(t=>{if(!window.ReportingObserver)return;let e=(0,A.dm)((e,r)=>e.forEach(e=>t.notify(function(t){let{type:e,body:r}=t;return rI({type:r.id,message:`${e}: ${r.message}`,originalError:t,stack:rN(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}(e)))),r=new window.ReportingObserver(e,{types:N,buffered:!0});return r.observe(),()=>{r.disconnect()}}))),(0,h.Fx)(...tw)).subscribe(t=>tb.notify(t)),tb.subscribe(e=>t.notify(14,{error:e})),(P=t).subscribe(14,({error:t})=>{var e;let r,n;P.notify(12,(r={date:(e=t).startClocks.timeStamp,error:{id:(0,Y.lk)(),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:q.ERROR,context:e.context},n={error:e.originalError,handlingStack:e.handlingStack},{rawRumEvent:r,startClocks:e.startClocks,domainContext:n}))}),{addError:({error:t,handlingStack:e,componentStack:r,startClocks:n,context:i})=>{let a=(0,b.As)({originalError:t,handlingStack:e,componentStack:r,startClocks:n,nonErrorPrefix:"Provided",source:w.g.CUSTOM,handling:"handled"});a.context=(0,R.kg)(a.context,i),P.notify(14,{error:a})}});tA={clearTracingIfNeeded:ey,traceFetch:t=>eb(r,t,n,tD,tB,e=>{var r;if(t.input instanceof Request&&!(null==(r=t.init)?void 0:r.headers))t.input=new Request
4(t.input),Object.keys(e).forEach(r=>{t.input.headers.append(r,e[r])});else{t.init=(0,ti.yG)(t.init);let r=[];t.init.headers instanceof Headers?t.init.headers.forEach((t,e)=>{r.push([e,t])}):Array.isArray(t.init.headers)?t.init.headers.forEach(t=>{r.push(t)}):t.init.headers&&Object.keys(t.init.headers).forEach(e=>{r.push([e,t.init.headers[e]])}),t.init.headers=r.concat((0,eh.WP)(e))}}),traceXhr:(t,e)=>eb(r,t,n,tD,tB,t=>{Object.keys(t).forEach(r=>{e.setRequestHeader(r,t[r])})})},function(t,e,r){var n;(!i&&(n=e,i=new h.cP(t=>{let{stop:e}=(0,g.H)(XMLHttpRequest.prototype,"open",t7),{stop:r}=(0,g.H)(XMLHttpRequest.prototype,"send",e=>{!function({target:t,parameters:[e],handlingStack:r},n,i){let a=t9.get(t);if(!a)return;a.state="start",a.startClocks=(0,v.M8)(),a.isAborted=!1,a.xhr=t,a.handlingStack=r,a.requestBody=e;let o=!1,{stop:s}=(0,g.H)(t,"onreadystatechange",()=>{t.readyState===XMLHttpRequest.DONE&&l()}),l=()=>{u(),s(),o||(o=!0,a.state="complete",a.duration=(0,v.vk)(a.startClocks.timeStamp,(0,v.nx)()),a.status=t.status,"string"==typeof t.response&&(a.responseBody=t.response),i.notify((0,ti.yG)(a)))},{stop:u}=(0,tn.q)(n,t,"loadend",l);i.notify(a)}(e,n,t)},{computeHandlingStack:!0}),{stop:i}=(0,g.H)(XMLHttpRequest.prototype,"abort",et);return()=>{e(),r(),i()}})),i).subscribe(e=>{if(ed(e.url))switch(e.state){case"start":r.traceXhr(e,e.xhr),e.requestIndex=eE(),t.notify(7,{requestIndex:e.requestIndex,url:e.url});break;case"complete":r.clearTracingIfNeeded(e),t.notify(8,{duration:e.duration,method:e.method,requestIndex:e.requestIndex,spanId:e.spanId,startClocks:e.startClocks,status:e.status,traceId:e.traceId,traceSampled:e.traceSampled,type:"xhr",url:e.url,xhr:e.xhr,isAborted:e.isAborted,handlingStack:e.handlingStack,requestBody:e.requestBody,responseBody:e.responseBody})}})}(t,r,tA),M=t,L=r,$=tA,tS({responseBodyAction:t=>{var e;return(null==(e=eS(t.url,L))?void 0:e.trackResponseErrors)?2:1}}).subscribe(t=>{var e;if(ed(t.url))switch(t.state){case"start":$.traceFetch(t),t.requestIndex=eE(),M.notify(7,{requestIndex:t.requestIndex,url:t.url});break;case"resolve":$.clearTracingIfNeeded(t),M.notify(8,{duration:(0,v.vk)(t.startClocks.timeStamp,(0,v.nx)()),method:t.method,requestIndex:t.requestIndex,responseType:t.responseType,spanId:t.spanId,startClocks:t.startClocks,status:t.status,traceId:t.traceId,traceSampled:t.traceSampled,type:ee,url:t.url,response:t.response,init:t.init,input:t.input,isAborted:t.isAborted,handlingStack:t.handlingStack,requestBody:null==(e=t.init)?void 0:e.body,responseBody:t.responseBody})}});let en=function(t,e,r){function n(r){e.wasInPageStateDuringPeriod("frozen",r.startClocks.relative,r.duration)||t.notify(12,tt(r))}return{addOperationStepVital:function(e,r,n,i){if(!(0,O.sr)(O.R9.FEATURE_OPERATION_VITAL))return;let{operationKey:a,context:o,description:s}=n||{},l={name:e,type:"operation_step",operationKey:a,failureReason:i,stepType:r,startClocks:(0,v.M8)(),context:(0,C.a)(o),description:s};t.notify(12,tt(l))},addDurationVital:n,startDurationVital:(t,e={})=>Q(r,t,e),stopDurationVital:(t,e={})=>{X(n,r,t,e)}}}(t,tP,l),ei=(S=r.applicationId,k=tz.actionContexts,{get:t=>{let e=tL.findView(t),r=t$.findUrl(t),i=n.findTrackedSession(t);if(i&&e&&r){let n=k.findActionId(t);return{application_id:S,session_id:i.id,user_action:n?{id:n}:void 0,view:{id:e.id,name:e.name,referrer:r.referrer,url:r.url}}}}});return{addAction:tz.addAction,startAction:tz.startAction,stopAction:tz.stopAction,startResource:t2.startResource,stopResource:t2.stopResource,addEvent:tq.addEvent,addError:t3,addTiming:tW,addFeatureFlagEvaluation:tU.addFeatureFlagEvaluation,startView:tG,setViewContext:tK,setViewContextProperty:tH,getViewContext:tJ,setViewName:tZ,viewHistory:tL,getInternalContext:ei.get,startDurationVital:en.startDurationVital,stopDurationVital:en.stopDurationVital,addDurationVital:en.addDurationVital,addOperationStepVital:en.addOperationStepVital,globalContext:tV,userContext:tD,accountContext:tB,stop:()=>tT.forEach(t=>t())}}(L,S,t,D,e,n,d,p,k,$);return M.push(J),p.unbuffer(),M.push(()=>r.stop()),{...te,lifeCycle:L,session:D,stopSession:()=>D.expire(),telemetry:y,stop:()=>{M.forEach(t=>t())},hooks:S}}function nD(t,e,r={}){let n,i,a=(0,p.D)(),o={vitalsByName:new Map,vitalsByReference:new WeakMap},s=(n=new h.dX(500),i=(0,m.B)(S)().subscribe(t=>{n.notify({type:0,error:t})}),{observable:n,stop:()=>{i.unsubscribe()}}).observable,l=function({ignoreInitIfSyntheticsWillInjectRum:t=!0,startDeflateWorker:e},r,n,i){let a,o,s,l,u,c,d=(c=[],{add:t=>{c.push(t)>500&&c.splice(0,1)},remove:t=>{(0,tr.Ai)(c,t)},drain:t=>
4{c.forEach(e=>e(t)),c.length=0}}),f=td();tX(f,P,d);let p=tp();tX(p,N,d);let h=th();tX(h,M,d);let g=tN(),_=r.observable.subscribe(b),y={};function b(){let t;if(!s||!l||!r.isGranted())return;if(u||(u=(0,m.B)(T.a5)("browser-rum-sdk",l,g)),_.unsubscribe(),l.trackViewsManually){if(!a)return;d.remove(a.callback),t=a.options}let e=i(l,o,t,u,g);d.drain(e)}function w(t,n){var i,a,u,c,d,f,p;let h,m,g=(0,tm.d0)();if(g&&(t={...d=t,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!=(f=d.defaultPrivacyLevel)?f:null==(p=(0,tm.Y9)())?void 0:p.getPrivacyLevel()}),s=t,(0,T.Rr)((i=t,h=(0,tP.hO)(i),{session_replay_sample_rate:i.sessionReplaySampleRate,start_session_replay_recording_manually:i.startSessionReplayRecordingManually,trace_sample_rate:i.traceSampleRate,trace_context_injection:i.traceContextInjection,propagate_trace_baggage:i.propagateTraceBaggage,action_name_attribute:i.actionNameAttribute,use_allowed_tracing_urls:(0,tr.EI)(i.allowedTracingUrls),use_allowed_graph_ql_urls:(0,tr.EI)(i.allowedGraphQlUrls),use_track_graph_ql_payload:(u=i.allowedGraphQlUrls,(0,tr.EI)(u)&&u.some(t=>(0,ts.O)(t)&&t.trackPayload)),use_track_graph_ql_response_errors:(c=i.allowedGraphQlUrls,(0,tr.EI)(c)&&c.some(t=>(0,ts.O)(t)&&t.trackResponseErrors)),selected_tracing_propagators:(m=new Set,(0,tr.EI)(i.allowedTracingUrls)&&i.allowedTracingUrls.forEach(t=>{var e;null==(e=tU(t))||e.propagatorTypes.forEach(t=>m.add(t))}),Array.from(m)),default_privacy_level:i.defaultPrivacyLevel,enable_privacy_for_action_name:i.enablePrivacyForActionName,use_excluded_activity_urls:(0,tr.EI)(i.excludedActivityUrls),use_worker_url:!!i.workerUrl,compress_intake_requests:i.compressIntakeRequests,track_views_manually:i.trackViewsManually,track_user_interactions:i.trackUserInteractions,track_resources:i.trackResources,track_long_task:i.trackLongTasks,track_bfcache_views:i.trackBfcacheViews,track_early_requests:i.trackEarlyRequests,plugins:null==(a=i.plugins)?void 0:a.map(t=>{var e;return{name:t.name,...null==(e=t.getConfigurationTelemetry)?void 0:e.call(t)}}),track_feature_flags_for_events:i.trackFeatureFlagsForEvents,remote_configuration_id:i.remoteConfigurationId,profiling_sample_rate:i.profilingSampleRate,use_remote_configuration_proxy:!!i.remoteConfigurationProxy,...h})),l)return void z("DD_RUM",t);let v=function(t,e){var r,n,i,a,o,s,l;if(void 0===t.trackFeatureFlagsForEvents||Array.isArray(t.trackFeatureFlagsForEvents)||B.Vy.warn("trackFeatureFlagsForEvents should be an array"),!t.applicationId)return void B.Vy.error("Application ID is not configured, no RUM data will be collected.");if(!(0,tP.bX)(t.sessionReplaySampleRate,"Session Replay")||!(0,tP.bX)(t.traceSampleRate,"Trace"))return;if(void 0!==t.excludedActivityUrls&&!Array.isArray(t.excludedActivityUrls))return void B.Vy.error("Excluded Activity Urls should be an array");let u=function(t){if(void 0===t.allowedTracingUrls)return[];if(!Array.isArray(t.allowedTracingUrls))return void B.Vy.error("Allowed Tracing URLs should be an array");if(0!==t.allowedTracingUrls.length&&void 0===t.service)return void B.Vy.error("Service needs to be configured when tracing is enabled");let e=[];return t.allowedTracingUrls.forEach(t=>{let r=tU(t);r?e.push(r):B.Vy.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)}),e}(t);if(!u)return;let c=(0,tP.Sz)(t,e),d=function(t){if(!t.allowedGraphQlUrls)return[];if(!Array.isArray(t.allowedGraphQlUrls))return B.Vy.warn("allowedGraphQlUrls should be an array"),[];let e=[];
4return t.allowedGraphQlUrls.forEach(t=>{(0,tL.V)(t)?e.push({match:t,trackPayload:!1,trackResponseErrors:!1}):(0,ts.O)(t)&&(0,tL.V)(t.match)&&e.push({match:t.match,trackPayload:!!t.trackPayload,trackResponseErrors:!!t.trackResponseErrors})}),e}(t);if(!c)return;let f=null!=(r=t.sessionReplaySampleRate)?r:0;return{applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,betaTrackActionsInShadowDom:!!t.betaTrackActionsInShadowDom,sessionReplaySampleRate:f,startSessionReplayRecordingManually:void 0!==t.startSessionReplayRecordingManually?!!t.startSessionReplayRecordingManually:0===f,traceSampleRate:null!=(n=t.traceSampleRate)?n:100,rulePsr:(0,tM.Et)(t.traceSampleRate)?t.traceSampleRate/100:void 0,allowedTracingUrls:u,excludedActivityUrls:null!=(i=t.excludedActivityUrls)?i:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!(null==(a=t.trackUserInteractions)||a),trackViewsManually:!!t.trackViewsManually,trackResources:!!(null==(o=t.trackResources)||o),trackLongTasks:!!(null==(s=t.trackLongTasks)||s),trackBfcacheViews:!!t.trackBfcacheViews,trackEarlyRequests:!!t.trackEarlyRequests,subdomain:t.subdomain,defaultPrivacyLevel:(0,ti.Rj)(tP.WA,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:tP.WA.MASK,enablePrivacyForActionName:!!t.enablePrivacyForActionName,traceContextInjection:(0,ti.Rj)(tP.uT,t.traceContextInjection)?t.traceContextInjection:tP.uT.SAMPLED,plugins:t.plugins||[],trackFeatureFlagsForEvents:t.trackFeatureFlagsForEvents||[],profilingSampleRate:null!=(l=t.profilingSampleRate)?l:0,propagateTraceBaggage:!!t.propagateTraceBaggage,allowedGraphQlUrls:d,...c}}(t,n);if(v){if(!g&&!v.sessionStoreStrategyType)return void B.Vy.warn("No storage available for session. We will not send any data.");if(v.compressIntakeRequests&&!g&&e&&!(o=e(v,"Datadog RUM",tg.l)))return;l=v,tS().subscribe(tg.l),r.tryToInit(v.trackingConsent),b()}}let S=t=>{d.add(e=>e.addDurationVital(t))};return{init(e,r,n){e?((0,O.Aq)(e.enableExperimentalFeatures),s=e,t&&tO()||(te(e.plugins,"onInit",{initConfiguration:e,publicApi:r}),e.remoteConfigurationId?tJ(e,{user:p,context:f}).then(t=>{t&&w(t,n)}).catch(A.Dx):w(e,n))):B.Vy.error("Missing configuration")},get initConfiguration(){return s},getInternalContext:tg.l,stopSession:tg.l,addTiming(t,e=(0,v.nx)()){d.add(r=>r.addTiming(t,e))},startView(t,e=(0,v.M8)()){let r=r=>{r.startView(t,e)};d.add(r),a||(a={options:t,callback:r},b())},setViewName(t){d.add(e=>e.setViewName(t))},setViewContext(t){d.add(e=>e.setViewContext(t))},setViewContextProperty(t,e){d.add(r=>r.setViewContextProperty(t,e))},getViewContext:()=>y,globalContext:f,userContext:p,accountContext:h,addAction(t){d.add(e=>e.addAction(t))},startAction(t,e){let r=(0,v.M8)();d.add(n=>n.startAction(t,e,r))},stopAction(t,e){let r=(0,v.M8)();d.add(n=>n.stopAction(t,e,r))},startResource(t,e){let r=(0,v.M8)();d.add(n=>n.startResource(t,e,r))},stopResource(t,e){let r=(0,v.M8)();d.add(n=>n.stopResource(t,e,r))},addError(t){d.add(e=>e.addError(t))},addFeatureFlagEvaluation(t,e){d.add(r=>r.addFeatureFlagEvaluation(t,e))},startDurationVital:(t,e)=>Q(n,t,e),stopDurationVital(t,e){X(S,n,t,e)},addDurationVital:S,addOperationStepVital:(t,e,r,n)=>{d.add(i=>i.addOperationStepVital((0,C.a)(t),e,(0,C.a)(r),(0,C.a)(n)))}}}(r,a,o,(n,i,u,c,d)=>{var f,p;let h=i&&r.createDeflateEncoder?t=>r.createDeflateEncoder(n,i,t):k.N,g=(0,m.B)(nV)(n,t,e,u,h,a,o,s,c,d,r.sdkName);return t.onRumStart(g.lifeCycle,n,g.session,g.viewHistory,i,g.telemetry),e.onRumStart(g.lifeCycle,g.hooks,n,g.session,g.viewHistory,h),f=l,p=g,l={init:t=>{z("DD_RUM",t)},initConfiguration:f.initConfiguration,...p},te(n.plugins,"onRumStart",{strategy:l,addEvent:g.addEvent}),g}),u=()=>l,c=(0,x.m)({init:t=>{let e=Error().stack;(0,A.um)(()=>l.init(t,c,e))},setTrackingConsent:(0,A.dm)(t=>{a.update(t),(0,T.Q6)({feature:"set-tracking-consent",tracking_consent:t})}),setViewName:(0,A.dm)(t=>{l.setViewName(t),(0,T.Q6)({feature:"set-view-name"})}),setViewContext:(0,A.dm)(t=>{l.setViewContext(t),(0,T.Q6)({feature:"set-view-context"})}),setViewContextProperty:(0,A.dm)((t,e)=>{l.setViewContextProperty(t,e),(0,T.Q6)({feature:"set-view-context-property"})}),getViewContext:(0,A.dm)(()=>((0,T.Q6)({feature:"set-view-context-property"}),l.getViewContext())),getInternalContext:(0,A.dm)(t=>l.getInternalContext(t)),getInitConfiguration:(0,A.dm)(()=>(0,R.Go)(l.initConfiguration)),addAction:(t,e)=>{let r=(0,E.uC)("action");(0,A.um)(()=>{l.addAction({name:(0,C.a)(t),context:(0,C.a)(e),startClocks:(0,v.M8)(),type:Z.CUSTOM,handlingStack:r}),(0,T.Q6)({feature:"add-action"})})},startAction:(0,A.dm)((t,e)=>{(!l.initConfiguration||(0,O.sr)(O.R9.START_STOP_ACTION))&&l.startAction((0,C.a)(t),{type:(0,C.a)(e&&e.type),context:(0,C.a)(e&&e.context),actionKey:e&&e.actionKey})}),stopAction:(0,A.dm)((t,e)=>{(!l.initConfiguration||(0,O.sr)(O.R9.START_STOP_ACTION))&&l.stopAction((0,C.a)(t),{type:(0,C.a)(e&&e.type),context:(0,C.a)(e&&e.context),actionKey:e&&e.actionKey})}),startResource:(0,A.dm)((t,e)=>{(!l.initConfiguration||(0,O.sr)(O.R9.START_STOP_RESOURCE))&&l.startResource((0,C.a)(t),{type:(0,C.a)(e&&e.type),method:(0,C.a)(e&&e.method),context:(0,C.a)(e&&e.context),resourceKey:e&&e.resourceKey})}),stopResource:(0,A.dm)((t,e)=>{(!l.initConfiguration||(0,O.sr)(O.R9.START_STOP_RESOURCE))&&l.stopResource((0,C.a)(t),{type:(0,C.a)(e&&e.type),statusCode:e&&e.statusCode,context:(0,C.a)(e&&e.context),resourceKey:e&&e.resourceKey})}),addError:(t,e)=>{let r=(0,E.uC)("error");(0,A.um)(()=>{l.addError({error:t,handlingStack:r,context:(0,C.a)(e),startClocks:(0,v.M8)()}),(0,T.Q6)({feature:"add-error"})})},addTiming:(0,A.dm)((t,e)=>{l.addTiming((0,C.a)(t),e)}),setGlobalContext:I(u,P,$,"set-global-context"),getGlobalContext:I(u,P,L,"get-global-context"),setGlobalContextProperty:I(u,P,U,"set-global-context-property"),removeGlobalContextProperty:I(u,P,V,"remove-global-context-property"),clearGlobalContext:I(u,P,D,"clear-global-context"),setUser:I(u,N,$,"set-user"),getUser:I(u,N,L,"get-user"),setUserProperty:I(u,N,U,"set-user-property"),removeUserProperty:I(u,N,V,"remove-user-property"),clearUser:I(u,N,D,"clear-user"),setAccount:I(u,M,$,"set-account"),getAccount:I(u,M,L,"get-account"),setAccountProperty:I(u,M,U,"set-account-property"),removeAccountProperty:I(u,M,V,"remove-account-property"),clearAccount:I(u,M,D,"clear-account"),startView:t=>{let e=(0,E.uC)("view");(0,A.um)(()=>{l.startView({..."object"==typeof t?t:{name:t},handlingStack:e}),(0,T.Q6)({feature:"start-view"})})},stopSession:(0,A.dm)(()=>{l.stopSession(),(0,T.Q6)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,A.dm)((t,e)=>{l.addFeatureFlagEvaluation((0,C.a)(t),(0,C.a)(e)),(0,T.Q6)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,A.dm)(()=>t.getSessionReplayLink()),startSessionReplayRecording:(0,A.dm)(e=>{t.start(e),(0,T.Q6)({feature:"start-session-replay-recording",force:e&&e.force})}),stopSessionReplayRecording:(0,A.dm)(()=>t.stop()),addDurationVital:(t,e)=>{let r=(0,E.uC)("vital");(0,A.um)(()=>{(0,T.Q6)({feature:"add-duration-vital"}),l.addDurationVital({name:(0,C.a)(t),type:J,startClocks:(0,v.jR)(e.startTime),duration:e.duration,context:(0,C.a)(e&&e.context),description:(0,C.a)(e&&e.description),handlingStack:r})})},startDurationVital:(t,e)=>{let r=(0,E.uC)("vital");return(0,A.um)(()=>((0,T.Q6)({feature:"start-duration-vital"}),l.startDurationVital((0,C.a)(t),{context:(0,C.a)(e&&e.context),description:(0,C.a)(e&&e.description),handlingStack:r})))},stopDurationVital:(0,A.dm)((t,e)=>{(0,T.Q6)({feature:"stop-duration-vital"}),l.stopDurationVital("string"==typeof t?(0,C.a)(t):t,{context:(0,C.a)(e&&e.context),description:(0,C.a)(e&&e.description)})}),startFeatureOperation:(0,A.dm)((t,e)=>{(0,T.Q6)({feature:"add-operation-step-vital",action_type:"start"}),l.addOperationStepVital(t,"start",e)}),succeedFeatureOperation:(0,A.dm)((t,e)=>{(0,T.Q6)({feature:"add-operation-step-vital",action_type:"succeed"}),l.addOperationStepVital(t,"end",e)}),failFeatureOperation:(0,A.dm)((t,e,r)=>{(0,T.Q6)({feature:"add-operation-step-vital",action_type:"fail"}),l.addOperationStepVital(t,"end",r,e)})});return c}var nB=r(51867);function nz(t,{session:e,viewContext:r,errorType:n}){var i;let a,o,s=e?e.id:"no-session-id",l=[];void 0!==n&&l.push(`error-type=${n}`),r&&(l.push(`seed=${r.id}`),l.push(`from=${r.startClocks.timeStamp}`));let u=(a=(i=t).site,o=i.subdomain||function(t){switch(t.site){case nB.NW:case nB.dV:return"app";case nB.Bb:return"dd";default:return}}(i),`https://${o?`${o}.`:""}${a}`),c=`/rum/replay/sessions/${s}`;return`${u}${c}?${l.join("&")}`}function nq(t,e,r,n){let i=(0,nm.sA)([t.profilingEndpointBuilder],t=>{e.notify(14,{error:t}),(0,T.A2)("Error reported to customer",{"error.message":t.message})}),a=r(n);return{async send({event:t,...e}){let r=new FormData,n=(0,rR.s)(t);if(!n)throw Error("Failed to serialize event");r.append("event",new Blob([n],{type:"application/json"}),"event.json");let o=n.length;for(let[t,n]of(0,eh.WP)(e)){let e=(0,rR.s)(n);if(!e)throw Error("Failed to serialize attachment");let i=await function(t,e){return new Promise(r=>{t.write(e),t.finish(t=>{r(t)})})}(a,e);o+=i.outputBytesCount,r.append(t,new Blob([i.output]),t)}i.send({data:r,bytesCount:o})}}}},90061:(t,e,r)=>{let n;function i(){return 0===o()}function a(){return 1===o()}function o(){return null!=n?n:n=function(t=window){var e;let r=t.navigator.userAgent;return t.chrome||/HeadlessChrome/.test(r)?0:(null==(e=t.navigator.vendor)?void 0:e.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?1:2}()}r.d(e,{F2:()=>i,nr:()=>a})},90366:(t,e,r)=>{r.d(e,{B:()=>n});function n(t){return t}},90628:(t,e,r)=>{r.d(e,{b:()=>i});var n=r(96656);function i(t,e){let r=n.J2.__ddBrowserSdkExtensionCallback;r&&r({type:t,payload:e})}},91463:(t,e,r)=>{let n;r.d(e,{Rr:()=>$,A2:()=>M,VJ:()=>L,Gk:()=>U,Q6:()=>V,a5:()=>P});var i=r(57986),a=r(36124),o=r(65589),s=r(25945),l=r(992),u=r(51867),c=r(48086),d=r(49088),f=r(47566),p=r(90628),h=r(16464),m=r(84665),g=r(83550),v=r(60058),_=r(64988),y=r(84959),b=r(72358),w=r(42274),S=r(8128),k=r(28076),E=r(25130),A=r(83854),T=r(96656),x=r
4(40987);let R="configuration",C="usage",O=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],I=[u.R8];function N(){return n||(n=new c.dX(100)),n}function P(t,e,r){let n=new c.cP,{enabled:i,metricsEnabled:a}=function(t,e,r,n,i=1,a=15){var o;let u={},c=!I.includes(e.site)&&(0,h.ic)(e.telemetrySampleRate),v={log:c,[R]:c&&(0,h.ic)(e.telemetryConfigurationSampleRate),[C]:c&&(0,h.ic)(e.telemetryUsageSampleRate),metric:c&&(0,h.ic)(i)},y={is_local_file:(null==(o=T.J2.location)?void 0:o.protocol)==="file:",is_worker:T.Wq},b=N();return b.subscribe(({rawEvent:i,metricName:o})=>{var c,f,h,b;let w;if(o&&!v.metric||!v[i.type])return;let S=o||i.status||i.type,k=u[S];if(k||(k=u[S]=new Set),k.size>=a)return;let E=(0,m.s)(i);if(k.has(E))return;let T=r.triggerHook(1,{startTime:(0,d.M8)().relative});if(T===A.ug)return;let x=(c=T,f=t,h=i,b=y,w={type:"telemetry",date:(0,d.M8)().timeStamp,service:f,version:"6.30.1",source:"browser",_dd:{format_version:2},telemetry:(0,g.kg)(h,{runtime_env:b,connectivity:(0,_.q)(),sdk_setup:"npm"}),ddtags:(0,l.m5)(e).join(","),experimental_features:Array.from((0,s.q7)())},(0,g.kg)(w,c));n.notify(x),(0,p.b)("telemetry",x),k.add(E)}),b.unbuffer(),(0,f.Bd)(L),{enabled:c,metricsEnabled:v.metric}}(t,e,r,n),{stop:o}=function(t,e){let r=[];if((0,y.d0)()){let t=(0,y.Y9)(),n=e.subscribe(e=>t.send("internal_telemetry",e));r.push(n.unsubscribe)}else{let n=[t.rumEndpointBuilder];t.replica&&t.site===u.Bb&&n.push(t.replica.rumEndpointBuilder);let i=(0,b.X)({encoder:(0,k.N)(),request:(0,w.sA)(n,x.l),flushController:(0,S.tO)({pageMayExitObservable:(0,E._T)(t),sessionExpireObservable:new c.cP})});r.push(i.stop);let a=e.subscribe(i.add);r.push(a.unsubscribe)}return{stop:()=>r.forEach(t=>t())}}(e,n);return{stop:o,enabled:i,metricsEnabled:a}}function M(t,e){(0,f.oO)(i.bP.debug,t,e),N().notify({rawEvent:{type:"log",message:t,status:"debug",...e}})}function L(t,e){N().notify({rawEvent:{type:"log",status:"error",...function(t){if((0,a.bJ)(t)){var e;let r=(0,v.T)(t);return{error:{kind:r.name,stack:(0,o.Yn)(((e=r).stack=e.stack.filter(t=>!t.url||O.some(e=>t.url.startsWith(e))),e))},message:r.message}}return{error:{stack:a.e6},message:`Uncaught ${(0,m.s)(t)}`}}(t),...e}})}function $(t){N().notify({rawEvent:{type:R,configuration:t}})}function U(t,e){N().notify({rawEvent:{type:"log",message:t,status:"debug",...e},metricName:t})}function V(t){N().notify({rawEvent:{type:C,usage:t}})}},96656:(t,e,r)=>{function n(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let t=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof t&&(t="object"==typeof self?self:"object"==typeof window?window:{}),t}r.d(e,{J2:()=>i,VZ:()=>n,Wq:()=>a});let i=n(),a="WorkerGlobalScope"in i}}]);

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.