var Dn=t=>{throw TypeError(t)};var Pn=(t,e,r)=>e.has(t)||Dn("Cannot "+r);var _=(t,e,r)=>(Pn(t,e,"read from private field"),r?r.call(t):e.get(t)),nt=(t,e,r)=>e.has(t)?Dn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),G=(t,e,r,n)=>(Pn(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var Qe=(t,e,r,n)=>({set _(a){G(t,e,a,r)},get _(){return _(t,e,n)}});import{c as No,p as Lo,r as ae,_ as $t,j as C,O as Mo}from"./svn-lib-models-CnHFhceI.js";import{S as Pa,w as Ua,x as Do,n as rt,y as Un,A as Bn,B as At,C as Po,E as Fn,F as Vn,G as Uo,j as zn,J as Hn,K as Bo,L as Fo}from"./svn-lib-shared-ui-CxUiY1I5.js";import{M as Vo,D as zo,b as Ho}from"./FavouritesProvider-BZ4cVEAj.js";import{i as Gn}from"./infiniteQueryBehavior-B5SZdNmX.js";import{F as Go}from"./svn-lib-hooks-EFgjTDqk.js";import{b as jo}from"./angular-Dfec6NkN.js";import{F as Ko}from"./finance-context-BgU1Yvyi.js";import{p as qo,d as Yo,S as Qo}from"./context-B0nlviwN.js";import{m as Nr}from"./core-C5xSKnuZ.js";import{S as Wo}from"./index-BIq2DlVC.js";import{k as Xo,l as Zo,_ as Jo,u as $o,M as ts,m as es,S as rs}from"./components-BhWu--0s.js";import"./index-Bje6ARuY.js";import"./publish-CIZVnbcb.js";import"./utils-bGFjD22D.js";import"./annotations-C6OPd-wV.js";import"./useScrollLock-BskhqLT2.js";import"./useScript-DobWZcD1.js";import"./svn-lib-utils-CZ36a6bR.js";import"./index-ovh5Z2ew.js";/**
 * @remix-run/react v2.11.2
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */let jn="positions";function ns({getKey:t,...e}){let{isSpaMode:r}=Xo(),n=No(),a=Lo();Zo({getKey:t,storageKey:jn});let i=ae.useMemo(()=>{if(!t)return null;let s=t(n,a);return s!==n.key?s:null},[]);if(r)return null;let o=((s,c)=>{if(!window.history.state||!window.history.state.key){let u=Math.random().toString(32).slice(2);window.history.replaceState({key:u},"")}try{let l=JSON.parse(sessionStorage.getItem(s)||"{}")[c||window.history.state.key];typeof l=="number"&&window.scrollTo(0,l)}catch(u){console.error(u),sessionStorage.removeItem(s)}}).toString();return ae.createElement("script",Jo({},e,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${o})(${JSON.stringify(jn)}, ${JSON.stringify(i)})`}}))}var fr={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},bt=console,re={};Object.keys(fr).forEach(function(t){re[t]=bt[t]});var Ie="Datadog Browser SDK:",I={debug:re.debug.bind(bt,Ie),log:re.log.bind(bt,Ie),info:re.info.bind(bt,Ie),warn:re.warn.bind(bt,Ie),error:re.error.bind(bt,Ie)},vr="https://docs.datadoghq.com",Ba="".concat(vr,"/real_user_monitoring/browser/troubleshooting"),pr="More details:";function Fa(t,e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{return t.apply(void 0,r)}catch(a){I.error(e,a)}}}function Kt(t){return t!==0&&Math.random()*100<=t}function or(t,e){return+t.toFixed(e)}function as(t){return me(t)&&t>=0&&t<=100}function me(t){return typeof t=="number"}var Q=1e3,tt=60*Q,Va=60*tt,is=24*Va,os=365*is;function hr(t){return{relative:t,timeStamp:us(t)}}function ss(t){return{relative:ln(t),timeStamp:t}}function us(t){var e=ht()-performance.now();return e>Be()?Math.round(ge(e,t)):ls(t)}function cs(){return Math.round(ht()-ge(Be(),performance.now()))}function w(t){return me(t)?or(t*1e6,0):t}function ht(){return new Date().getTime()}function V(){return ht()}function lt(){return performance.now()}function Y(){return{relative:lt(),timeStamp:V()}}function za(){return{relative:0,timeStamp:Be()}}function j(t,e){return e-t}function ge(t,e){return t+e}function ln(t){return t-Be()}function ls(t){return Math.round(ge(Be(),t))}function ds(t){return t<os}var Lr;function Be(){return Lr===void 0&&(Lr=performance.timing.navigationStart),Lr}var Ot=1024,Ha=1024*Ot,fs=/[^\u0000-\u007F]/;function dn(t){return fs.test(t)?window.TextEncoder!==void 0?new TextEncoder().encode(t).length:new Blob([t]).size:t.length}function vs(t){for(var e=t.reduce(function(s,c){return s+c.length},0),r=new Uint8Array(e),n=0,a=0,i=t;a<i.length;a++){var o=i[a];r.set(o,n),n+=o.length}return r}function dt(t,e){return t.indexOf(e)!==-1}function fn(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach(function(n){return e.push(n)});else for(var r=0;r<t.length;r++)e.push(t[r]);return e}function Nt(t,e){for(var r=0;r<t.length;r+=1){var n=t[r];if(e(n,r))return n}}function ps(t,e){for(var r=t.length-1;r>=0;r-=1){var n=t[r];if(e(n,r,t))return n}}function hs(t,e){Array.prototype.forEach.call(t,e)}function mr(t){return Object.keys(t).map(function(e){return t[e]})}function vn(t){return Object.keys(t).map(function(e){return[e,t[e]]})}function Fe(t,e){return t.slice(0,e.length)===e}function ms(t,e){return t.slice(-e.length)===e}function E(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.forEach(function(n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}),t}function Ne(t){return E({},t)}function Le(t,e){return Object.keys(t).some(function(r){return t[r]===e})}function Yt(t){return Object.keys(t).length===0}function gs(t,e){for(var r={},n=0,a=Object.keys(t);n<a.length;n++){var i=a[n];r[i]=e(t[i])}return r}function Dt(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var t=_dd_temp_;return delete Object.prototype._dd_temp_,typeof t!="object"&&(typeof self=="object"?t=self:typeof window=="object"?t=window:t={}),t}function Lt(t,e){var r=Dt(),n;return r.Zone&&typeof r.Zone.__symbol__=="function"&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}var As=function(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,i;n<a;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},tn,Ga=!1;function _s(t){tn=t}function bs(t){Ga=t}function y(t){return function(){return Qt(t,this,arguments)}}function Qt(t,e,r){try{return t.apply(e,r)}catch(n){if(en(n),tn)try{tn(n)}catch(a){en(a)}}}function en(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];Ga&&I.error.apply(I,As(["[MONITOR]"],t,!1))}function H(t,e){return Lt(Dt(),"setTimeout")(y(t),e)}function at(t){Lt(Dt(),"clearTimeout")(t)}function Ae(t,e){return Lt(Dt(),"setInterval")(y(t),e)}function gr(t){Lt(Dt(),"clearInterval")(t)}var k=function(){function t(e){this.onFirstSubscribe=e,this.observers=[]}return t.prototype.subscribe=function(e){var r=this;return this.observers.push(e),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){r.observers=r.observers.filter(function(n){return e!==n}),!r.observers.length&&r.onLastUnsubscribe&&r.onLastUnsubscribe()}}},t.prototype.notify=function(e){this.observers.forEach(function(r){return r(e)})},t}();function ja(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new k(function(r){var n=t.map(function(a){return a.subscribe(function(i){return r.notify(i)})});return function(){return n.forEach(function(a){return a.unsubscribe()})}})}function St(t,e,r){var n=r&&r.leading!==void 0?r.leading:!0,a=r&&r.trailing!==void 0?r.trailing:!0,i=!1,o,s;return{throttled:function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];if(i){o=c;return}n?t.apply(void 0,c):o=c,i=!0,s=H(function(){a&&o&&t.apply(void 0,o),i=!1,o=void 0},e)},cancel:function(){at(s),i=!1,o=void 0}}}function x(){}function K(t){return t?(parseInt(t,10)^Math.random()*16>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,K)}var sr=/([\w-]+)\s*=\s*([^;]+)/g;function Me(t,e){for(sr.lastIndex=0;;){var r=sr.exec(t);if(r){if(r[1]===e)return r[2]}else break}}function ys(t){var e=new Map;for(sr.lastIndex=0;;){var r=sr.exec(t);if(r)e.set(r[1],r[2]);else break}return e}function Ka(t,e,r){r===void 0&&(r="");var n=t.charCodeAt(e-1),a=n>=55296&&n<=56319,i=a?e+1:e;return t.length<=i?t:"".concat(t.slice(0,i)).concat(r)}function Ss(){return pn()===0}function Es(){return pn()===1}function ws(){return pn()===2}var We;function pn(){return We??(We=Ts())}function Ts(t){var e;t===void 0&&(t=window);var r=t.navigator.userAgent;return t.chrome||/HeadlessChrome/.test(r)?1:((e=t.navigator.vendor)===null||e===void 0?void 0:e.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?2:t.document.documentMode?0:3}function Ve(t,e,r,n){var a=new Date;a.setTime(a.getTime()+r);var i="expires=".concat(a.toUTCString()),o=n&&n.crossSite?"none":"strict",s=n&&n.domain?";domain=".concat(n.domain):"",c=n&&n.secure?";secure":"",u=n&&n.partitioned?";partitioned":"";document.cookie="".concat(t,"=").concat(e,";").concat(i,";path=/;samesite=").concat(o).concat(s).concat(c).concat(u)}function hn(t){return Me(document.cookie,t)}var Mr;function xt(t){return Mr||(Mr=ys(document.cookie)),Mr.get(t)}function qa(t,e){Ve(t,"",0,e)}function Cs(t){if(document.cookie===void 0||document.cookie===null)return!1;try{var e="dd_cookie_test_".concat(K()),r="test";Ve(e,r,tt,t);var n=hn(e)===r;return qa(e,t),n}catch(a){return I.error(a),!1}}var Dr;function Is(){if(Dr===void 0){for(var t="dd_site_test_".concat(K()),e="test",r=window.location.hostname.split("."),n=r.pop();r.length&&!hn(t);)n="".concat(r.pop(),".").concat(n),Ve(t,e,Q,{domain:n});qa(t,{domain:n}),Dr=n}return Dr}var _e="_dd_s",Zt=4*Va,Ya=15*tt,Qa=/^([a-zA-Z]+)=([a-z0-9-]+)$/,mn="&",xs="1";function Gt(){return{isExpired:xs}}function nr(t){return Yt(t)}function Wa(t){return!nr(t)}function ur(t){return t.isExpired!==void 0||!Rs(t)}function Rs(t){return(t.created===void 0||ht()-Number(t.created)<Zt)&&(t.expire===void 0||ht()<Number(t.expire))}function Xa(t){t.expire=String(ht()+Ya)}function gn(t){return vn(t).map(function(e){var r=e[0],n=e[1];return"".concat(r,"=").concat(n)}).join(mn)}function Za(t){var e={};return ks(t)&&t.split(mn).forEach(function(r){var n=Qa.exec(r);if(n!==null){var a=n[1],i=n[2];e[a]=i}}),e}function ks(t){return!!t&&(t.indexOf(mn)!==-1||Qa.test(t))}var Os="_dd",Ns="_dd_r",Ls="_dd_l",Ms="rum",Ds="logs";function Ps(t){var e=xt(_e);if(!e){var r=xt(Os),n=xt(Ns),a=xt(Ls),i={};r&&(i.id=r),a&&/^[01]$/.test(a)&&(i[Ds]=a),n&&/^[012]$/.test(n)&&(i[Ms]=n),Wa(i)&&(Xa(i),t.persistSession(i))}}function Us(t){var e=Hs(t);return Cs(e)?{type:"Cookie",cookieOptions:e}:void 0}function Bs(t){var e={isLockEnabled:Es(),persistSession:Fs(t),retrieveSession:zs,expireSession:function(){return Vs(t)}};return Ps(e),e}function Fs(t){return function(e){Ve(_e,gn(e),Ya,t)}}function Vs(t){Ve(_e,gn(Gt()),Zt,t)}function zs(){var t=hn(_e);return Za(t)}function Hs(t){var e={};return e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=Is()),e}var Gs="_dd_test_";function js(){try{var t=K(),e="".concat(Gs).concat(t);localStorage.setItem(e,t);var r=localStorage.getItem(e);return localStorage.removeItem(e),t===r?{type:"LocalStorage"}:void 0}catch{return}}function Ks(){return{isLockEnabled:!1,persistSession:Ja,retrieveSession:qs,expireSession:Ys}}function Ja(t){localStorage.setItem(_e,gn(t))}function qs(){var t=localStorage.getItem(_e);return Za(t)}function Ys(){Ja(Gt())}var Qs=10,Ws=100,$a=[],ar;function jt(t,e,r){var n;r===void 0&&(r=0);var a=e.isLockEnabled,i=e.persistSession,o=e.expireSession,s=function(d){return i(E({},d,{lock:u}))},c=function(){var d=e.retrieveSession(),v=d.lock;return d.lock&&delete d.lock,{session:d,lock:v}};if(ar||(ar=t),t!==ar){$a.push(t);return}if(a&&r>=Ws){Kn(e);return}var u,l=c();if(a){if(l.lock){Xe(t,e,r);return}if(u=K(),s(l.session),l=c(),l.lock!==u){Xe(t,e,r);return}}var f=t.process(l.session);if(a&&(l=c(),l.lock!==u)){Xe(t,e,r);return}if(f&&(ur(f)?o():(Xa(f),a?s(f):i(f))),a&&!(f&&ur(f))){if(l=c(),l.lock!==u){Xe(t,e,r);return}i(l.session),f=l.session}(n=t.after)===null||n===void 0||n.call(t,f||l.session),Kn(e)}function Xe(t,e,r){H(function(){jt(t,e,r+1)},Qs)}function Kn(t){ar=void 0;var e=$a.shift();e&&jt(e,t)}var qn=Q;function Xs(t){var e=Us(t);return!e&&t.allowFallbackToLocalStorage&&(e=js()),e}function Zs(t,e,r){var n=new k,a=new k,i=new k,o=t.type==="Cookie"?Bs(t.cookieOptions):Ks(),s=o.expireSession,c=Ae(p,qn),u;h();var l=St(function(){jt({process:function(A){if(!nr(A)){var z=m(A);return g(z),z}},after:function(A){Wa(A)&&!b()&&B(A),u=A}},o)},qn),f=l.throttled,d=l.cancel;function v(){jt({process:function(A){return b()?m(A):void 0}},o)}function p(){jt({process:function(A){return ur(A)?Gt():void 0},after:m},o)}function m(A){return ur(A)&&(A=Gt()),b()&&(R(A)?O():(i.notify({previousState:u,newState:A}),u=A)),A}function h(){jt({process:function(A){if(nr(A))return Gt()},after:function(A){u=A}},o)}function g(A){if(nr(A))return!1;var z=r(A[e]),Bt=z.trackingType,D=z.isTracked;A[e]=Bt,delete A.isExpired,D&&!A.id&&(A.id=K(),A.created=String(ht()))}function b(){return u[e]!==void 0}function R(A){return u.id!==A.id||u[e]!==A[e]}function O(){u=Gt(),a.notify()}function B(A){u=A,n.notify()}function L(A){jt({process:function(z){return E({},z,A)},after:m},o)}return{expandOrRenewSession:f,expandSession:v,getSession:function(){return u},renewObservable:n,expireObservable:a,sessionStateUpdateObservable:i,restartSession:h,expire:function(){d(),s(),m(Gt())},stop:function(){gr(c)},updateSessionState:L}}var rn={GRANTED:"granted",NOT_GRANTED:"not-granted"};function Js(t){var e=new k;return{tryToInit:function(r){t||(t=r)},update:function(r){t=r,e.notify()},isGranted:function(){return t===rn.GRANTED},observable:e}}function Jt(t,e,r){if(typeof t!="object"||t===null)return JSON.stringify(t);var n=ie(Object.prototype),a=ie(Array.prototype),i=ie(Object.getPrototypeOf(t)),o=ie(t);try{return JSON.stringify(t,e,r)}catch{return"<error: unable to serialize object>"}finally{n(),a(),i(),o()}}function ie(t){var e=t,r=e.toJSON;return r?(delete e.toJSON,function(){e.toJSON=r}):x}function An(t){return Ar(t,location.href).href}function $s(t){try{return!!Ar(t)}catch{return!1}}function tu(t){var e=Ar(t).pathname;return e[0]==="/"?e:"/".concat(e)}function Ar(t,e){var r=eu();if(r)try{return e!==void 0?new r(t,e):new r(t)}catch(o){throw new Error("Failed to construct URL: ".concat(String(o)," ").concat(Jt({url:t,base:e})))}if(e===void 0&&!/:/.test(t))throw new Error("Invalid URL: '".concat(t,"'"));var n=document,a=n.createElement("a");if(e!==void 0){n=document.implementation.createHTMLDocument("");var i=n.createElement("base");i.href=e,n.head.appendChild(i),n.body.appendChild(a)}return a.href=t,a}var Yn=URL,Ze;function eu(){if(Ze===void 0)try{var t=new Yn("http://test/path");Ze=t.href==="http://test/path"}catch{Ze=!1}return Ze?Yn:void 0}var ti="datad0g.com",ru="dd0g-gov.com",Rt="datadoghq.com",nu="datadoghq.eu",au="ddog-gov.com",ei="pci.browser-intake-datadoghq.com";function Oe(t,e,r){var n=iu(t,e);return{build:function(a,i){var o=su(t,e,r,a,i);return n(o)},urlPrefix:n(""),trackType:e}}function iu(t,e){var r="/api/v2/".concat(e),n=t.proxy;if(typeof n=="string"){var a=An(n);return function(o){return"".concat(a,"?ddforward=").concat(encodeURIComponent("".concat(r,"?").concat(o)))}}if(typeof n=="function")return function(o){return n({path:r,parameters:o})};var i=ou(e,t);return function(o){return"https://".concat(i).concat(r,"?").concat(o)}}function ou(t,e){var r=e.site,n=r===void 0?Rt:r,a=e.internalAnalyticsSubdomain;if(t==="logs"&&e.usePciIntake&&n===Rt)return ei;if(a&&n===Rt)return"".concat(a,".").concat(Rt);if(n===ru)return"http-intake.logs.".concat(n);var i=n.split("."),o=i.pop();return"browser-intake-".concat(i.join("-"),".").concat(o)}function su(t,e,r,n,a){var i=t.clientToken,o=t.internalAnalyticsSubdomain,s=a.retry,c=a.encoding,u=["sdk_version:".concat("5.27.0"),"api:".concat(n)].concat(r);s&&u.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var l=["ddsource=browser","ddtags=".concat(encodeURIComponent(u.join(","))),"dd-api-key=".concat(i),"dd-evp-origin-version=".concat(encodeURIComponent("5.27.0")),"dd-evp-origin=browser","dd-request-id=".concat(K())];return c&&l.push("dd-evp-encoding=".concat(c)),e==="rum"&&l.push("batch_time=".concat(V())),o&&l.reverse(),l.join("&")}var uu=200;function cu(t){var e=t.env,r=t.service,n=t.version,a=t.datacenter,i=[];return e&&i.push(Je("env",e)),r&&i.push(Je("service",r)),n&&i.push(Je("version",n)),a&&i.push(Je("datacenter",a)),i}function Je(t,e){var r=uu-t.length-1;(e.length>r||lu(e))&&I.warn("".concat(t," value doesn't meet tag requirements and will be sanitized. ").concat(pr," ").concat(vr,"/getting_started/tagging/#defining-tags"));var n=e.replace(/,/g,"_");return"".concat(t,":").concat(n)}function lu(t){return du()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(t):!1}function du(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function fu(t){var e=t.site||Rt,r=cu(t),n=vu(t,r),a=hu(n,e),i=pu(t,a,r);return E({isIntakeUrl:function(o){return a.some(function(s){return o.indexOf(s)===0})},replica:i,site:e},n)}function vu(t,e){return{logsEndpointBuilder:Oe(t,"logs",e),rumEndpointBuilder:Oe(t,"rum",e),sessionReplayEndpointBuilder:Oe(t,"replay",e)}}function pu(t,e,r){if(t.replica){var n=E({},t,{site:Rt,clientToken:t.replica.clientToken}),a={logsEndpointBuilder:Oe(n,"logs",r),rumEndpointBuilder:Oe(n,"rum",r)};return e.push.apply(e,mr(a).map(function(i){return i.urlPrefix})),E({applicationId:t.replica.applicationId},a)}}function hu(t,e){var r=mr(t).map(function(n){return n.urlPrefix});return e===Rt&&r.push("https://".concat(ei,"/")),r}var ce={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},nn={ALL:"all",SAMPLED:"sampled"};function Pr(t,e){return t!=null&&typeof t!="string"?(I.error("".concat(e," must be defined as a string")),!1):!0}function mu(t){return t&&typeof t=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(t)?(I.error("Site should be a valid Datadog site. ".concat(pr," ").concat(vr,"/getting_started/site/.")),!1):!0}function oe(t,e){return t!==void 0&&!as(t)?(I.error("".concat(e," Sample Rate should be a number between 0 and 100")),!1):!0}function gu(t){var e,r,n,a,i;if(!t||!t.clientToken){I.error("Client Token is not configured, we will not send any data.");return}if(!(!mu(t.site)||!oe(t.sessionSampleRate,"Session")||!oe(t.telemetrySampleRate,"Telemetry")||!oe(t.telemetryConfigurationSampleRate,"Telemetry Configuration")||!oe(t.telemetryUsageSampleRate,"Telemetry Usage")||!Pr(t.version,"Version")||!Pr(t.env,"Env")||!Pr(t.service,"Service"))){if(t.trackingConsent!==void 0&&!Le(rn,t.trackingConsent)){I.error('Tracking Consent should be either "granted" or "not-granted"');return}return E({beforeSend:t.beforeSend&&Fa(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Xs(t),sessionSampleRate:(e=t.sessionSampleRate)!==null&&e!==void 0?e:100,telemetrySampleRate:(r=t.telemetrySampleRate)!==null&&r!==void 0?r:20,telemetryConfigurationSampleRate:(n=t.telemetryConfigurationSampleRate)!==null&&n!==void 0?n:5,telemetryUsageSampleRate:(a=t.telemetryUsageSampleRate)!==null&&a!==void 0?a:5,service:t.service||void 0,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:(i=t.trackingConsent)!==null&&i!==void 0?i:rn.GRANTED,storeContextsAcrossPages:!!t.storeContextsAcrossPages,batchBytesLimit:16*Ot,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*Q,batchMessagesLimit:50,messageBytesLimit:256*Ot},fu(t))}}function Au(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_cross_site_session_cookie:t.useCrossSiteSessionCookie,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,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages,allow_untrusted_events:!!t.allowUntrustedEvents,tracking_consent:t.trackingConsent}}var ot;(function(t){t.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",t.REMOTE_CONFIGURATION="remote_configuration",t.UPDATE_VIEW_NAME="update_view_name",t.LONG_ANIMATION_FRAME="long_animation_frame",t.VIEW_SPECIFIC_CONTEXT="view_specific_context"})(ot||(ot={}));var _n=new Set;function _u(t){Array.isArray(t)&&bu(t.filter(function(e){return Le(ot,e)}))}function bu(t){t.forEach(function(e){_n.add(e)})}function yt(t){return _n.has(t)}function yu(){return _n}var ze="?";function Pt(t){var e=[],r=Ur(t,"stack"),n=String(t);return r&&Fe(r,n)&&(r=r.slice(n.length)),r&&r.split(`
`).forEach(function(a){var i=wu(a)||Cu(a)||xu(a)||Ou(a);i&&(!i.func&&i.line&&(i.func=ze),e.push(i))}),{message:Ur(t,"message"),name:Ur(t,"name"),stack:e}}var ri="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",he="(?::(\\d+))",Su=new RegExp("^\\s*at (.*?) ?\\(".concat(ri).concat(he,"?").concat(he,"?\\)?\\s*$"),"i"),Eu=new RegExp("\\((\\S*)".concat(he).concat(he,"\\)"));function wu(t){var e=Su.exec(t);if(e){var r=e[2]&&e[2].indexOf("native")===0,n=e[2]&&e[2].indexOf("eval")===0,a=Eu.exec(e[2]);return n&&a&&(e[2]=a[1],e[3]=a[2],e[4]=a[3]),{args:r?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||ze,line:e[3]?+e[3]:void 0,url:r?void 0:e[2]}}}var Tu=new RegExp("^\\s*at ?".concat(ri).concat(he,"?").concat(he,"??\\s*$"),"i");function Cu(t){var e=Tu.exec(t);if(e)return{args:[],column:e[3]?+e[3]:void 0,func:ze,line:e[2]?+e[2]:void 0,url:e[1]}}var Iu=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function xu(t){var e=Iu.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||ze,line:+e[3],url:e[2]}}var Ru=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,ku=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Ou(t){var e=Ru.exec(t);if(e){var r=e[3]&&e[3].indexOf(" > eval")>-1,n=ku.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]||ze,line:e[4]?+e[4]:void 0,url:e[3]}}}function Ur(t,e){if(!(typeof t!="object"||!t||!(e in t))){var r=t[e];return typeof r=="string"?r:void 0}}function Nu(t,e,r,n){var a=[{url:e,column:n,line:r}],i=Mu(t),o=i.name,s=i.message;return{name:o,message:s,stack:a}}var Lu=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Mu(t){var e,r,n;return{}.toString.call(t)==="[object String]"&&(e=Lu.exec(t),r=e[1],n=e[2]),{name:r,message:n}}function cr(){var t=2,e=new Error,r;if(!e.stack)try{throw e}catch{}return Qt(function(){var n=Pt(e);n.stack=n.stack.slice(t),r=be(n)}),r}function be(t){var e=ni(t);return t.stack.forEach(function(r){var n=r.func==="?"?"<anonymous>":r.func,a=r.args&&r.args.length>0?"(".concat(r.args.join(", "),")"):"",i=r.line?":".concat(r.line):"",o=r.line&&r.column?":".concat(r.column):"";e+=`
  at `.concat(n).concat(a," @ ").concat(r.url).concat(i).concat(o)}),e}function ni(t){return"".concat(t.name||"Error",": ").concat(t.message)}function J(t,e,r,n){var a=n===void 0?{}:n,i=a.computeHandlingStack,o=t[e];if(typeof o!="function")if(e in t&&Fe(e,"on"))o=x;else return{stop:x};var s=!1,c=function(){if(s)return o.apply(this,arguments);var u=fn(arguments),l;Qt(r,null,[{target:this,parameters:u,onPostCall:function(d){l=d},handlingStack:i?cr():void 0}]);var f=o.apply(this,u);return l&&Qt(l,null,[f]),f};return t[e]=c,{stop:function(){s=!0,t[e]===c&&(t[e]=o)}}}function xe(t,e,r){var n=Object.getOwnPropertyDescriptor(t,e);if(!n||!n.set||!n.configurable)return{stop:x};var a=x,i=function(s,c){H(function(){i!==a&&r(s,c)},0)},o=function(s){n.set.call(this,s),i(this,s)};return Object.defineProperty(t,e,{set:o}),{stop:function(){var s;((s=Object.getOwnPropertyDescriptor(t,e))===null||s===void 0?void 0:s.set)===o&&Object.defineProperty(t,e,n),i=a}}}var Du=220*Ot,Pu="$",Uu=3;function P(t,e){e===void 0&&(e=Du);var r=ie(Object.prototype),n=ie(Array.prototype),a=[],i=new WeakMap,o=Br(t,Pu,void 0,a,i),s=JSON.stringify(o),c=s?s.length:0;if(c>e){Fr(e,"discarded",t);return}for(;a.length>0&&c<e;){var u=a.shift(),l=0;if(Array.isArray(u.source))for(var f=0;f<u.source.length;f++){var d=Br(u.source[f],u.path,f,a,i);if(d!==void 0?c+=JSON.stringify(d).length:c+=4,c+=l,l=1,c>e){Fr(e,"truncated",t);break}u.target[f]=d}else for(var f in u.source)if(Object.prototype.hasOwnProperty.call(u.source,f)){var d=Br(u.source[f],u.path,f,a,i);if(d!==void 0&&(c+=JSON.stringify(d).length+l+f.length+Uu,l=1),c>e){Fr(e,"truncated",t);break}u.target[f]=d}}return r(),n(),o}function Br(t,e,r,n,a){var i=Vu(t);if(!i||typeof i!="object")return Bu(i);var o=Fu(i);if(o!=="[Object]"&&o!=="[Array]"&&o!=="[Error]")return o;var s=t;if(a.has(s))return"[Reference seen at ".concat(a.get(s),"]");var c=r!==void 0?"".concat(e,".").concat(r):e,u=Array.isArray(i)?[]:{};return a.set(s,c),n.push({source:i,target:u,path:c}),u}function Bu(t){return typeof t=="bigint"?"[BigInt] ".concat(t.toString()):typeof t=="function"?"[Function] ".concat(t.name||"unknown"):typeof t=="symbol"?"[Symbol] ".concat(t.description||t.toString()):t}function Fu(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t),r=e.match(/\[object (.*)\]/);if(r&&r[1])return"[".concat(r[1],"]")}catch{}return"[Unserializable]"}function Vu(t){var e=t;if(e&&typeof e.toJSON=="function")try{return e.toJSON()}catch{}return t}function Fr(t,e,r){I.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),r)}var ai="No stack, consider using an instance of Error";function ii(t){var e=t.stackTrace,r=t.originalError,n=t.handlingStack,a=t.startClocks,i=t.nonErrorPrefix,o=t.source,s=t.handling,c=r instanceof Error,u=zu(e,c,i,r),l=Hu(c,e)?be(e):ai,f=c?si(r,o):void 0,d=e?e.name:void 0,v=oi(r);return{startClocks:a,source:o,handling:s,handlingStack:n,originalError:r,type:d,message:u,stack:l,causes:f,fingerprint:v}}function zu(t,e,r,n){return t!=null&&t.message&&(t!=null&&t.name)?t.message:e?"Empty message":"".concat(r," ").concat(Jt(P(n)))}function Hu(t,e){return e===void 0?!1:t?!0:e.stack.length>0&&(e.stack.length>1||e.stack[0].url!==void 0)}function oi(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function si(t,e){for(var r=t,n=[];(r==null?void 0:r.cause)instanceof Error&&n.length<10;){var a=Pt(r.cause);n.push({message:r.cause.message,source:e,type:a==null?void 0:a.name,stack:a&&be(a)}),r=r.cause}return n.length?n:void 0}var ye={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function Gu(t){var e=function(a,i){var o=ii({stackTrace:a,originalError:i,startClocks:Y(),nonErrorPrefix:"Uncaught",source:ye.SOURCE,handling:"unhandled"});t.notify(o)},r=ju(e).stop,n=Ku(e).stop;return{stop:function(){r(),n()}}}function ju(t){return J(window,"onerror",function(e){var r=e.parameters,n=r[0],a=r[1],i=r[2],o=r[3],s=r[4],c;s instanceof Error?c=Pt(s):c=Nu(n,a,i,o),t(c,s??n)})}function Ku(t){return J(window,"onunhandledrejection",function(e){var r=e.parameters[0],n=r.reason||"Empty reason",a=Pt(n);t(a,n)})}function qu(t){var e=E({version:"5.27.0",onReady:function(r){r()}},t);return Object.defineProperty(e,"_setDebug",{get:function(){return bs},enumerable:!1}),e}function Yu(t,e,r){var n=t[e];n&&!n.q&&n.version&&I.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),t[e]=r,n&&n.q&&n.q.forEach(function(a){return Fa(a,"onReady callback threw an error:")()})}function ui(t,e){e.silentMultipleInit||I.error("".concat(t," is already initialized."))}function N(t,e,r,n,a){return $(t,e,[r],n,a)}function $(t,e,r,n,a){var i=a===void 0?{}:a,o=i.once,s=i.capture,c=i.passive,u=y(function(v){!v.isTrusted&&!v.__ddIsTrusted&&!t.allowUntrustedEvents||(o&&d(),n(v))}),l=c?{capture:s,passive:c}:s,f=Lt(e,"addEventListener");r.forEach(function(v){return f.call(e,v,u,l)});function d(){var v=Lt(e,"removeEventListener");r.forEach(function(p){return v.call(e,p,u,l)})}return{stop:d}}var De={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function Qu(t,e){var r=[];dt(e,De.cspViolation)&&r.push(Xu(t));var n=e.filter(function(a){return a!==De.cspViolation});return n.length&&r.push(Wu(n)),ja.apply(void 0,r)}function Wu(t){return new k(function(e){if(window.ReportingObserver){var r=y(function(a,i){return a.forEach(function(o){return e.notify(Zu(o))})}),n=new window.ReportingObserver(r,{types:t,buffered:!0});return n.observe(),function(){n.disconnect()}}})}function Xu(t){return new k(function(e){var r=N(t,document,"securitypolicyviolation",function(n){e.notify(Ju(n))}).stop;return r})}function Zu(t){var e=t.type,r=t.body;return ci({type:r.id,message:"".concat(e,": ").concat(r.message),originalError:t,stack:li(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}function Ju(t){var e="'".concat(t.blockedURI,"' blocked by '").concat(t.effectiveDirective,"' directive");return ci({type:t.effectiveDirective,message:"".concat(De.cspViolation,": ").concat(e),originalError:t,csp:{disposition:t.disposition},stack:li(t.effectiveDirective,t.originalPolicy?"".concat(e,' of the policy "').concat(Ka(t.originalPolicy,100,"..."),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}function ci(t){return E({startClocks:Y(),source:ye.REPORT,handling:"unhandled"},t)}function li(t,e,r,n,a){return r?be({name:t,message:e,stack:[{func:"?",url:r,line:n??void 0,column:a??void 0}]}):void 0}function bn(t,e){var r=window.__ddBrowserSdkExtensionCallback;r&&r({type:t,payload:e})}function Ut(t){return t===null?"null":Array.isArray(t)?"array":typeof t}function lr(t,e,r){if(r===void 0&&(r=$u()),e===void 0)return t;if(typeof e!="object"||e===null)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var n=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,n)}if(!r.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var a=Array.isArray(t)?t:[],i=0;i<e.length;++i)a[i]=lr(a[i],e[i],r);return a}var o=Ut(t)==="object"?t:{};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(o[s]=lr(o[s],e[s],r));return o}}function yn(t){return lr(void 0,t)}function mt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n=0,a=t;n<a.length;n++){var i=a[n];i!=null&&(r=lr(r,i))}return r}function $u(){if(typeof WeakSet<"u"){var t=new WeakSet;return{hasAlreadyBeenSeen:function(r){var n=t.has(r);return n||t.add(r),n}}}var e=[];return{hasAlreadyBeenSeen:function(r){var n=e.indexOf(r)>=0;return n||e.push(r),n}}}function di(){var t,e=window.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:(t=e.connection)===null||t===void 0?void 0:t.effectiveType}}function fi(t,e){var r=t.indexOf(e);r>=0&&t.splice(r,1)}var tc=500;function vi(){var t=[],e=function(a){var i=t.push(a);i>tc&&t.splice(0,1)},r=function(a){fi(t,a)},n=function(a){t.forEach(function(i){return i(a)}),t.length=0};return{add:e,remove:r,drain:n}}var qt={log:"log",configuration:"configuration",usage:"usage"},ec=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],rc=[au],pi=vi(),Se=function(t){pi.add(function(){return Se(t)})};function nc(t,e){var r,n,a=new k,i=new Set,o=!dt(rc,e.site)&&Kt(e.telemetrySampleRate),s=(r={},r[qt.log]=o,r[qt.configuration]=o&&Kt(e.telemetryConfigurationSampleRate),r[qt.usage]=o&&Kt(e.telemetryUsageSampleRate),r),c=ac();Se=function(l){var f=Jt(l);if(s[l.type]&&i.size<e.maxTelemetryEventsPerPage&&!i.has(f)){var d=u(t,l,c);a.notify(d),bn("telemetry",d),i.add(f)}},_s(dr);function u(l,f,d){return mt({type:"telemetry",date:V(),service:l,version:"5.27.0",source:"browser",_dd:{format_version:2},telemetry:mt(f,{runtime_env:d,connectivity:di()}),experimental_features:fn(yu())},n!==void 0?n():{})}return{setContextProvider:function(l){n=l},observable:a,enabled:o}}function ac(){return{is_local_file:window.location.protocol==="file:",is_worker:"WorkerGlobalScope"in self}}function ic(){pi.drain()}function oc(t){return t.site===ti}function Ee(t,e){en(fr.debug,t,e),Se(E({type:qt.log,message:t,status:"debug"},e))}function dr(t,e){Se(E({type:qt.log,status:"error"},uc(t),e))}function sc(t){Se({type:qt.configuration,configuration:t})}function X(t){Se({type:qt.usage,usage:t})}function uc(t){if(t instanceof Error){var e=Pt(t);return{error:{kind:e.name,stack:be(cc(e))},message:e.message}}return{error:{stack:ai},message:"".concat("Uncaught"," ").concat(Jt(t))}}function cc(t){return t.stack=t.stack.filter(function(e){return!e.url||ec.some(function(r){return Fe(e.url,r)})}),t}var $e=1/0,lc=tt;function we(t){var e=t.expireDelay,r=t.maxEntries,n=[],a=Ae(function(){return i()},lc);function i(){for(var d=lt()-e;n.length>0&&n[n.length-1].endTime<d;)n.pop()}function o(d,v){var p={value:d,startTime:v,endTime:$e,remove:function(){fi(n,p)},close:function(m){p.endTime=m}};return r&&n.length>=r&&n.pop(),n.unshift(p),p}function s(d,v){d===void 0&&(d=$e),v===void 0&&(v={returnInactive:!1});for(var p=0,m=n;p<m.length;p++){var h=m[p];if(h.startTime<=d){if(v.returnInactive||d<=h.endTime)return h.value;break}}}function c(d){var v=n[0];v&&v.endTime===$e&&v.close(d)}function u(d,v){d===void 0&&(d=$e),v===void 0&&(v=0);var p=ge(d,v);return n.filter(function(m){return m.startTime<=p&&d<=m.endTime}).map(function(m){return m.value})}function l(){n=[]}function f(){gr(a)}return{add:o,find:s,closeActive:c,findAll:u,reset:l,stop:f}}var dc=tt,fc=Zt;function vc(t,e,r,n){var a=new k,i=new k,o=Zs(t.sessionStoreStrategyType,e,r),s=we({expireDelay:fc});o.renewObservable.subscribe(function(){s.add(c(),lt()),a.notify()}),o.expireObservable.subscribe(function(){i.notify(),s.closeActive(lt())}),o.expandOrRenewSession(),s.add(c(),za().relative),n.observable.subscribe(function(){n.isGranted()?o.expandOrRenewSession():o.expire()}),pc(t,function(){n.isGranted()&&o.expandOrRenewSession()}),hc(t,function(){return o.expandSession()}),mc(t,function(){return o.restartSession()});function c(){return{id:o.getSession().id,trackingType:o.getSession()[e],isReplayForced:!!o.getSession().forcedReplay}}return{findSession:function(u,l){return s.find(u,l)},renewObservable:a,expireObservable:i,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}function pc(t,e){$(t,window,["click","touchstart","keydown","scroll"],e,{capture:!0,passive:!0}).stop}function hc(t,e){var r=function(){document.visibilityState==="visible"&&e()};N(t,document,"visibilitychange",r).stop,Ae(r,dc)}function mc(t,e){N(t,window,"resume",e,{capture:!0}).stop}function gc(t){return t>=500}function Ac(t){try{return t.clone()}catch{return}}var _c=80*Ot,bc=32,hi=3*Ha,yc=tt,mi=Q;function gi(t,e,r,n,a){e.transportStatus===0&&e.queuedPayloads.size()===0&&e.bandwidthMonitor.canHandle(t)?_i(t,e,r,{onSuccess:function(){return bi(0,e,r,n,a)},onFailure:function(){e.queuedPayloads.enqueue(t),Ai(e,r,n,a)}}):e.queuedPayloads.enqueue(t)}function Ai(t,e,r,n){t.transportStatus===2&&H(function(){var a=t.queuedPayloads.first();_i(a,t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=mi,bi(1,t,e,r,n)},onFailure:function(){t.currentBackoffTime=Math.min(yc,t.currentBackoffTime*2),Ai(t,e,r,n)}})},t.currentBackoffTime)}function _i(t,e,r,n){var a=n.onSuccess,i=n.onFailure;e.bandwidthMonitor.add(t),r(t,function(o){e.bandwidthMonitor.remove(t),Sc(o)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:o.status},i()):(e.transportStatus=0,a())})}function bi(t,e,r,n,a){t===0&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(a({message:"Reached max ".concat(n," events size queued for upload: ").concat(hi/Ha,"MiB"),source:ye.AGENT,startClocks:Y()}),e.queueFullReported=!0);var i=e.queuedPayloads;for(e.queuedPayloads=yi();i.size()>0;)gi(i.dequeue(),e,r,n,a)}function Sc(t){return t.type!=="opaque"&&(t.status===0&&!navigator.onLine||t.status===408||t.status===429||gc(t.status))}function Ec(){return{transportStatus:0,currentBackoffTime:mi,bandwidthMonitor:wc(),queuedPayloads:yi(),queueFullReported:!1}}function yi(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=hi}}}function wc(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return this.ongoingRequestCount===0||this.ongoingByteCount+t.bytesCount<=_c&&this.ongoingRequestCount<bc},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}}}function Si(t,e,r,n){var a=Ec(),i=function(o,s){return Ic(t,e,r,o,s)};return{send:function(o){gi(o,a,i,e.trackType,n)},sendOnExit:function(o){Tc(t,e,r,o)}}}function Tc(t,e,r,n){var a=!!navigator.sendBeacon&&n.bytesCount<r;if(a)try{var i=e.build("beacon",n),o=navigator.sendBeacon(i,n.data);if(o)return}catch(c){Cc(c)}var s=e.build("xhr",n);an(t,s,n.data)}var Qn=!1;function Cc(t){Qn||(Qn=!0,dr(t))}function Ic(t,e,r,n,a){var i=xc()&&n.bytesCount<r;if(i){var o=e.build("fetch",n);fetch(o,{method:"POST",body:n.data,keepalive:!0,mode:"cors"}).then(y(function(c){return a==null?void 0:a({status:c.status,type:c.type})}),y(function(){var c=e.build("xhr",n);an(t,c,n.data,a)}))}else{var s=e.build("xhr",n);an(t,s,n.data,a)}}function xc(){try{return window.Request&&"keepalive"in new Request("http://a")}catch{return!1}}function an(t,e,r,n){var a=new XMLHttpRequest;a.open("POST",e,!0),r instanceof Blob&&a.setRequestHeader("Content-Type",r.type),N(t,a,"loadend",function(){n==null||n({status:a.status})},{once:!0}),a.send(r)}function Te(){var t=Rc();if(t)return{getCapabilities:function(){var e;return JSON.parse(((e=t.getCapabilities)===null||e===void 0?void 0:e.call(t))||"[]")},getPrivacyLevel:function(){var e;return(e=t.getPrivacyLevel)===null||e===void 0?void 0:e.call(t)},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,r,n){var a=n?{id:n}:void 0;t.send(JSON.stringify({eventType:e,event:r,view:a}))}}}function Ei(t){var e=Te();return!!e&&dt(e.getCapabilities(),t)}function Wt(t){var e;t===void 0&&(t=(e=Dt().location)===null||e===void 0?void 0:e.hostname);var r=Te();return!!r&&r.getAllowedWebViewHosts().some(function(n){return t===n||ms(t,".".concat(n))})}function Rc(){return Dt().DatadogEventBridge}var le={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function kc(t){return new k(function(e){var r=$(t,window,["visibilitychange","freeze"],function(a){a.type==="visibilitychange"&&document.visibilityState==="hidden"?e.notify({reason:le.HIDDEN}):a.type==="freeze"&&e.notify({reason:le.FROZEN})},{capture:!0}).stop,n=N(t,window,"beforeunload",function(){e.notify({reason:le.UNLOADING})}).stop;return function(){r(),n()}})}function wi(t){return dt(mr(le),t)}function Oc(t){var e=t.encoder,r=t.request,n=t.flushController,a=t.messageBytesLimit,i={},o=n.flushObservable.subscribe(function(d){return f(d)});function s(d,v,p){n.notifyBeforeAddMessage(v),p!==void 0?(i[p]=d,n.notifyAfterAddMessage()):e.write(e.isEmpty?d:`
`.concat(d),function(m){n.notifyAfterAddMessage(m-v)})}function c(d){return d!==void 0&&i[d]!==void 0}function u(d){var v=i[d];delete i[d];var p=e.estimateEncodedBytesCount(v);n.notifyAfterRemoveMessage(p)}function l(d,v){var p=Jt(d),m=e.estimateEncodedBytesCount(p);if(m>=a){I.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(a,"KB. ").concat(pr," ").concat(Ba,"/#technical-limitations"));return}c(v)&&u(v),s(p,m,v)}function f(d){var v=mr(i).join(`
`);i={};var p=wi(d.reason),m=p?r.sendOnExit:r.send;if(p&&e.isAsync){var h=e.finishSync();h.outputBytesCount&&m(Wn(h));var g=[h.pendingData,v].filter(Boolean).join(`
`);g&&m({data:g,bytesCount:dn(g)})}else v&&e.write(e.isEmpty?v:`
`.concat(v)),e.finish(function(b){m(Wn(b))})}return{flushController:n,add:l,upsert:l,stop:o.unsubscribe}}function Wn(t){var e;return typeof t.output=="string"?e=t.output:e=new Blob([t.output],{type:"text/plain"}),{data:e,bytesCount:t.outputBytesCount,encoding:t.encoding}}function Nc(t){var e=t.messagesLimit,r=t.bytesLimit,n=t.durationLimit,a=t.pageExitObservable,i=t.sessionExpireObservable,o=a.subscribe(function(m){return f(m.reason)}),s=i.subscribe(function(){return f("session_expire")}),c=new k(function(){return function(){o.unsubscribe(),s.unsubscribe()}}),u=0,l=0;function f(m){if(l!==0){var h=l,g=u;l=0,u=0,p(),c.notify({reason:m,messagesCount:h,bytesCount:g})}}var d;function v(){d===void 0&&(d=H(function(){f("duration_limit")},n))}function p(){at(d),d=void 0}return{flushObservable:c,get messagesCount(){return l},notifyBeforeAddMessage:function(m){u+m>=r&&f("bytes_limit"),l+=1,u+=m,v()},notifyAfterAddMessage:function(m){m===void 0&&(m=0),u+=m,l>=e?f("messages_limit"):u>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(m){u-=m,l-=1,l===0&&p()}}}function Lc(t,e,r,n,a,i,o){o===void 0&&(o=Oc);var s=u(t,e),c=r&&u(t,r);function u(l,f){var d=f.endpoint,v=f.encoder;return o({encoder:v,request:Si(l,d,l.batchBytesLimit,n),flushController:Nc({messagesLimit:l.batchMessagesLimit,bytesLimit:l.batchBytesLimit,durationLimit:l.flushTimeout,pageExitObservable:a,sessionExpireObservable:i}),messageBytesLimit:l.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(l,f){f===void 0&&(f=!0),s.add(l),c&&f&&c.add(r.transformMessage?r.transformMessage(l):l)},upsert:function(l,f){s.upsert(l,f),c&&c.upsert(r.transformMessage?r.transformMessage(l):l,f)},stop:function(){s.stop(),c&&c.stop()}}}function Mc(){var t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write:function(r,n){var a=dn(r);e+=a,t+=r,n&&n(a)},finish:function(r){r(this.finishSync())},finishSync:function(){var r={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,r},estimateEncodedBytesCount:function(r){return r.length}}}var Dc=function(){function t(){this.callbacks={}}return t.prototype.notify=function(e,r){var n=this.callbacks[e];n&&n.forEach(function(a){return a(r)})},t.prototype.subscribe=function(e,r){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(r),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter(function(a){return r!==a})}}},t}();function Vr(t,e,r){var n=0,a=!1;return{isLimitReached:function(){if(n===0&&H(function(){n=0},tt),n+=1,n<=e||a)return a=!1,!1;if(n===e+1){a=!0;try{r({message:"Reached max number of ".concat(t,"s by minute: ").concat(e),source:ye.AGENT,startClocks:Y()})}finally{a=!1}}return!0}}}function Sn(t,e,r){if(document.readyState===e||document.readyState==="complete")return r(),{stop:x};var n=e==="complete"?"load":"DOMContentLoaded";return N(t,window,n,r,{once:!0})}var zr,En=new WeakMap;function Pc(t){return zr||(zr=Uc(t)),zr}function Uc(t){return new k(function(e){var r=J(XMLHttpRequest.prototype,"open",Bc).stop,n=J(XMLHttpRequest.prototype,"send",function(i){Fc(i,t,e)},{computeHandlingStack:!0}).stop,a=J(XMLHttpRequest.prototype,"abort",Vc).stop;return function(){r(),n(),a()}})}function Bc(t){var e=t.target,r=t.parameters,n=r[0],a=r[1];En.set(e,{state:"open",method:String(n).toUpperCase(),url:An(String(a))})}function Fc(t,e,r){var n=t.target,a=t.handlingStack,i=En.get(n);if(i){var o=i;o.state="start",o.startClocks=Y(),o.isAborted=!1,o.xhr=n,o.handlingStack=a;var s=!1,c=J(n,"onreadystatechange",function(){n.readyState===XMLHttpRequest.DONE&&u()}).stop,u=function(){if(l(),c(),!s){s=!0;var f=i;f.state="complete",f.duration=j(o.startClocks.timeStamp,V()),f.status=n.status,r.notify(Ne(f))}},l=N(e,n,"loadend",u).stop;r.notify(o)}}function Vc(t){var e=t.target,r=En.get(e);r&&(r.isAborted=!0)}var Hr;function Ti(){return Hr||(Hr=zc()),Hr}function zc(){return new k(function(t){if(window.fetch){var e=J(window,"fetch",function(r){return Hc(r,t)},{computeHandlingStack:!0}).stop;return e}})}function Hc(t,e){var r=t.parameters,n=t.onPostCall,a=t.handlingStack,i=r[0],o=r[1],s=o&&o.method;s===void 0&&i instanceof Request&&(s=i.method);var c=s!==void 0?String(s).toUpperCase():"GET",u=i instanceof Request?i.url:An(String(i)),l=Y(),f={state:"start",init:o,input:i,method:c,startClocks:l,url:u,handlingStack:a};e.notify(f),r[0]=f.input,r[1]=f.init,n(function(d){return Gc(e,d,f)})}function Gc(t,e,r){var n=r;function a(i){n.state="resolve",E(n,i),t.notify(n)}e.then(y(function(i){a({response:i,responseType:i.type,status:i.status,isAborted:!1})}),y(function(i){var o,s;a({status:0,isAborted:((s=(o=n.init)===null||o===void 0?void 0:o.signal)===null||s===void 0?void 0:s.aborted)||i instanceof DOMException&&i.code===DOMException.ABORT_ERR,error:i})}))}var Gr={};function jc(t){var e=t.map(function(r){return Gr[r]||(Gr[r]=Kc(r)),Gr[r]});return ja.apply(void 0,e)}function Kc(t){return new k(function(e){var r=bt[t];return bt[t]=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];r.apply(console,n);var i=cr();Qt(function(){e.notify(qc(n,t,i))})},function(){bt[t]=r}})}function qc(t,e,r){var n=t.map(function(o){return Yc(o)}).join(" "),a;if(e===fr.error){var i=Nt(t,function(o){return o instanceof Error});a={stack:i?be(Pt(i)):void 0,fingerprint:oi(i),causes:i?si(i,"console"):void 0,startClocks:Y(),message:n,source:ye.CONSOLE,handling:"handled",handlingStack:r}}return{api:e,message:n,error:a,handlingStack:r}}function Yc(t){return typeof t=="string"?P(t):t instanceof Error?ni(Pt(t)):Jt(P(t),void 0,2)}function on(t){var e={},r=new k,n={getContext:function(){return yn(e)},setContext:function(a){Ut(a)==="object"?(e=P(a),t&&t.updateCustomerData(e)):n.clearContext(),r.notify()},setContextProperty:function(a,i){e[a]=P(i),t&&t.updateCustomerData(e),r.notify()},removeContextProperty:function(a){delete e[a],t&&t.updateCustomerData(e),r.notify()},clearContext:function(){e={},t&&t.resetCustomerData(),r.notify()},changeObservable:r};return n}var Qc="_dd_c",Wc=[];function Xn(t,e,r,n){var a=Xc(r,n);Wc.push(N(t,window,"storage",function(c){var u=c.key;a===u&&i()})),e.changeObservable.subscribe(o),e.setContext(mt(s(),e.getContext()));function i(){e.setContext(s())}function o(){localStorage.setItem(a,JSON.stringify(e.getContext()))}function s(){var c=localStorage.getItem(a);return c!==null?JSON.parse(c):{}}}function Xc(t,e){return"".concat(Qc,"_").concat(t,"_").concat(e)}var Zc=3*Ot,Jc=16*Ot,$c=200;function tl(t){t===void 0&&(t=2);var e=new Map,r=!1;function n(a){if(a===void 0&&(a=0),!(r||t===0)){var i=t===2?Zc:Jc,o=a;e.forEach(function(s){o+=s.getBytesCount()}),o>i&&(el(i),r=!0)}}return{createDetachedTracker:function(){var a=Zn(function(){return n(a.getBytesCount())});return a},getOrCreateTracker:function(a){return e.has(a)||e.set(a,Zn(n)),e.get(a)},setCompressionStatus:function(a){t===0&&(t=a,n())},getCompressionStatus:function(){return t},stop:function(){e.forEach(function(a){return a.stop()}),e.clear()}}}function Zn(t){var e=0,r=St(function(o){e=dn(Jt(o)),t()},$c),n=r.throttled,a=r.cancel,i=function(){a(),e=0};return{updateCustomerData:function(o){Yt(o)?i():n(o)},resetCustomerData:i,getBytesCount:function(){return e},stop:function(){a()}}}function el(t){I.warn("Customer data exceeds the recommended ".concat(t/Ot,"KiB threshold. ").concat(pr," ").concat(Ba,"/#customer-data-exceeds-the-recommended-threshold-warning"))}function rl(t,e,r){var n=t.getReader(),a=0;i();function i(){n.read().then(y(function(s){if(s.done){o();return}a+=s.value.length,a>r.bytesLimit?o():i()}),y(function(s){return e(s)}))}function o(){n.cancel().catch(x);var s,c;e(void 0,s,c)}}var nl="datadog-synthetics-public-id",al="datadog-synthetics-result-id",il="datadog-synthetics-injects-rum";function Ci(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||xt(il))}function ol(){var t=window._DATADOG_SYNTHETICS_PUBLIC_ID||xt(nl);return typeof t=="string"?t:void 0}function sl(){var t=window._DATADOG_SYNTHETICS_RESULT_ID||xt(al);return typeof t=="string"?t:void 0}function Jn(t){var e=E({},t),r=["id","name","email"];return r.forEach(function(n){n in e&&(e[n]=String(e[n]))}),e}function ul(t){var e=Ut(t)==="object";return e||I.error("Unsupported user:",t),e}function wn(t){var e=Ut(t);return e==="string"||e==="function"||t instanceof RegExp}function Ii(t,e,r){return r===void 0&&(r=!1),t.some(function(n){try{if(typeof n=="function")return n(e);if(n instanceof RegExp)return n.test(e);if(typeof n=="string")return r?Fe(e,n):n===e}catch(a){I.error(a)}return!1})}function cl(t,e,r){return{context:t.getContext(),user:e.getContext(),hasReplay:r.isRecording()?!0:void 0}}function ll(){var t=new Map,e=new WeakMap;return{vitalsByName:t,vitalsByReference:e}}function dl(t,e,r){function n(i){return!e.wasInPageStateDuringPeriod("frozen",i.startClocks.relative,i.duration)}function a(i){n(i)&&t.notify(12,vl(i))}return{addDurationVital:a,startDurationVital:function(i,o){return o===void 0&&(o={}),xi(r,i,o)},stopDurationVital:function(i,o){o===void 0&&(o={}),Ri(a,r,i,o)}}}function xi(t,e,r){var n=t.vitalsByName,a=t.vitalsByReference;r===void 0&&(r={});var i={name:e,startClocks:Y(),context:r.context,description:r.description},o={__dd_vital_reference:!0};return n.set(e,i),a.set(o,i),o}function Ri(t,e,r,n){var a=e.vitalsByName,i=e.vitalsByReference;n===void 0&&(n={});var o=typeof r=="string"?a.get(r):i.get(r);o&&(t(fl(o,o.startClocks,n,Y())),typeof r=="string"?a.delete(r):i.delete(r))}function fl(t,e,r,n){var a;return{name:t.name,type:"duration",startClocks:e,duration:j(e.timeStamp,n.timeStamp),context:mt(t.context,r.context),description:(a=r.description)!==null&&a!==void 0?a:t.description}}function vl(t,e){var r={date:t.startClocks.timeStamp,vital:{id:K(),type:t.type,name:t.name,duration:w(t.duration),description:t.description},type:"vital"};return r._dd={vital:{computed_value:!0}},{rawRumEvent:r,startTime:t.startClocks.relative,customerContext:t.context,domainContext:{}}}function pl(t){var e=t;return Ut(e)==="object"&&wn(e.match)&&Array.isArray(e.propagatorTypes)}function hl(t){t.status===0&&!t.isAborted&&(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function ml(t,e){return{clearTracingIfNeeded:hl,traceFetch:function(r){return $n(t,r,e,function(n){var a;if(r.input instanceof Request&&!(!((a=r.init)===null||a===void 0)&&a.headers))r.input=new Request(r.input),Object.keys(n).forEach(function(o){r.input.headers.append(o,n[o])});else{r.init=Ne(r.init);var i=[];r.init.headers instanceof Headers?r.init.headers.forEach(function(o,s){i.push([s,o])}):Array.isArray(r.init.headers)?r.init.headers.forEach(function(o){i.push(o)}):r.init.headers&&Object.keys(r.init.headers).forEach(function(o){i.push([o,r.init.headers[o]])}),r.init.headers=i.concat(vn(n))}})},traceXhr:function(r,n){return $n(t,r,e,function(a){Object.keys(a).forEach(function(i){n.setRequestHeader(i,a[i])})})}}}function $n(t,e,r,n){if(!(!gl()||!r.findTrackedSession())){var a=Nt(t.allowedTracingUrls,function(i){return Ii([i.match],e.url,!0)});a&&(e.traceSampled=!me(t.traceSampleRate)||Kt(t.traceSampleRate),!(!e.traceSampled&&t.traceContextInjection!==nn.ALL)&&(e.traceId=sn(),e.spanId=sn(),n(Al(e.traceId,e.spanId,e.traceSampled,a.propagatorTypes))))}}function gl(){return ki()!==void 0}function ki(){return window.crypto||window.msCrypto}function Al(t,e,r,n){var a={};return n.forEach(function(i){switch(i){case"datadog":{E(a,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toDecimalString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":t.toDecimalString()});break}case"tracecontext":{E(a,{traceparent:"00-0000000000000000".concat(t.toPaddedHexadecimalString(),"-").concat(e.toPaddedHexadecimalString(),"-0").concat(r?"1":"0")});break}case"b3":{E(a,{b3:"".concat(t.toPaddedHexadecimalString(),"-").concat(e.toPaddedHexadecimalString(),"-").concat(r?"1":"0")});break}case"b3multi":{E(a,{"X-B3-TraceId":t.toPaddedHexadecimalString(),"X-B3-SpanId":e.toPaddedHexadecimalString(),"X-B3-Sampled":r?"1":"0"});break}}}),a}function sn(){var t=new Uint8Array(8);ki().getRandomValues(t),t[0]=t[0]&127;function e(i){return t[i]*16777216+(t[i+1]<<16)+(t[i+2]<<8)+t[i+3]}function r(i){var o=e(0),s=e(4),c="";do{var u=o%i*4294967296+s;o=Math.floor(o/i),s=Math.floor(u/i),c=(u%i).toString(i)+c}while(o||s);return c}function n(){return r(10)}function a(){var i=r(16);return Array(17-i.length).join("0")+i}return{toDecimalString:n,toPaddedHexadecimalString:a}}var Oi=["tracecontext","datadog"];function _l(t){var e,r;if(!t.applicationId){I.error("Application ID is not configured, no RUM data will be collected.");return}if(!(!oe(t.sessionReplaySampleRate,"Session Replay")||!oe(t.traceSampleRate,"Trace"))){if(t.excludedActivityUrls!==void 0&&!Array.isArray(t.excludedActivityUrls)){I.error("Excluded Activity Urls should be an array");return}var n=bl(t);if(n){var a=gu(t);if(a)return E({applicationId:t.applicationId,version:t.version||void 0,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:(e=t.sessionReplaySampleRate)!==null&&e!==void 0?e:0,startSessionReplayRecordingManually:!!t.startSessionReplayRecordingManually,traceSampleRate:t.traceSampleRate,allowedTracingUrls:n,excludedActivityUrls:(r=t.excludedActivityUrls)!==null&&r!==void 0?r:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:Le(ce,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:ce.MASK,enablePrivacyForActionName:!!t.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:Le(nn,t.traceContextInjection)?t.traceContextInjection:nn.ALL,plugins:t.betaPlugins||[]},a)}}}function bl(t){if(t.allowedTracingUrls===void 0)return[];if(!Array.isArray(t.allowedTracingUrls)){I.error("Allowed Tracing URLs should be an array");return}if(t.allowedTracingUrls.length!==0&&t.service===void 0){I.error("Service needs to be configured when tracing is enabled");return}var e=[];return t.allowedTracingUrls.forEach(function(r){wn(r)?e.push({match:r,propagatorTypes:Oi}):pl(r)?e.push(r):I.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",r)}),e}function yl(t){var e=new Set;return Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach(function(r){wn(r)?Oi.forEach(function(n){return e.add(n)}):Ut(r)==="object"&&Array.isArray(r.propagatorTypes)&&r.propagatorTypes.forEach(function(n){return e.add(n)})}),fn(e)}function Sl(t){var e,r=Au(t);return E({session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,trace_context_injection:t.traceContextInjection,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:yl(t),default_privacy_level:t.defaultPrivacyLevel,enable_privacy_for_action_name:t.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(t.excludedActivityUrls)&&t.excludedActivityUrls.length>0,use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks,plugins:(e=t.betaPlugins)===null||e===void 0?void 0:e.map(function(n){var a;return E({name:n.name},(a=n.getConfigurationTelemetry)===null||a===void 0?void 0:a.call(n))})},r)}var El="https://d3uc069fcn7uxw.cloudfront.net/configuration";function wl(t,e){Cl(t,function(r){e(Tl(t,r))})}function Tl(t,e){return E({},t,e)}function Cl(t,e){var r=new XMLHttpRequest;N(t,r,"load",function(){r.status===200?e(JSON.parse(r.responseText)):ta()}),N(t,r,"error",function(){ta()}),r.open("GET","".concat(El,"/").concat(encodeURIComponent(t.remoteConfigurationId),".json")),r.send()}function ta(){I.error("Error fetching the remote configuration.")}function Il(t,e,r){if(t)for(var n=0,a=t;n<a.length;n++){var i=a[n],o=i[e];o&&o(r)}}function xl(t,e,r,n,a){var i=t.ignoreInitIfSyntheticsWillInjectRum,o=t.startDeflateWorker,s=vi(),c,u,l,f,d=r.observable.subscribe(v);function v(){if(!(!l||!f||!r.isGranted())){d.unsubscribe();var h;if(f.trackViewsManually){if(!c)return;s.remove(c.callback),h=c.options}var g=a(f,u,h);s.drain(g)}}function p(h){var g=Wt();if(g&&(h=Rl(h)),l=h,sc(Sl(h)),f){ui("DD_RUM",h);return}var b=_l(h);if(b){if(!g&&!b.sessionStoreStrategyType){I.warn("No storage available for session. We will not send any data.");return}b.compressIntakeRequests&&!g&&o&&(u=o(b,"Datadog RUM",x),!u)||(f=b,Ti().subscribe(x),r.tryToInit(b.trackingConsent),v())}}var m=function(h){s.add(function(g){return g.addDurationVital(h)})};return{init:function(h,g){if(!h){I.error("Missing configuration");return}_u(h.enableExperimentalFeatures),l=h,!(i&&Ci())&&(Il(h.betaPlugins,"onInit",{initConfiguration:h,publicApi:g}),h.remoteConfigurationId&&yt(ot.REMOTE_CONFIGURATION)?wl(h,p):p(h))},get initConfiguration(){return l},getInternalContext:x,stopSession:x,addTiming:function(h,g){g===void 0&&(g=V()),s.add(function(b){return b.addTiming(h,g)})},startView:function(h,g){g===void 0&&(g=Y());var b=function(R){R.startView(h,g)};s.add(b),c||(c={options:h,callback:b},v())},updateViewName:function(h){s.add(function(g){return g.updateViewName(h)})},setViewContext:function(h){s.add(function(g){return g.setViewContext(h)})},setViewContextProperty:function(h,g){s.add(function(b){return b.setViewContextProperty(h,g)})},addAction:function(h,g){g===void 0&&(g=e()),s.add(function(b){return b.addAction(h,g)})},addError:function(h,g){g===void 0&&(g=e()),s.add(function(b){return b.addError(h,g)})},addFeatureFlagEvaluation:function(h,g){s.add(function(b){return b.addFeatureFlagEvaluation(h,g)})},startDurationVital:function(h,g){return xi(n,h,g)},stopDurationVital:function(h,g){Ri(m,n,h,g)},addDurationVital:m}}function Rl(t){var e,r;return E({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(e=t.defaultPrivacyLevel)!==null&&e!==void 0?e:(r=Te())===null||r===void 0?void 0:r.getPrivacyLevel()})}var ea="rum";function kl(t,e,r){r===void 0&&(r={});var n=tl(0),a=on(n.getOrCreateTracker(2)),i=on(n.getOrCreateTracker(1)),o=Js(),s=ll();function c(){return cl(a,i,e)}var u=xl(r,c,o,s,function(d,v,p){d.storeContextsAcrossPages&&(Xn(d,a,ea,2),Xn(d,i,ea,1)),n.setCompressionStatus(v?1:2);var m=t(d,e,n,c,p,v&&r.createDeflateEncoder?function(h){return r.createDeflateEncoder(d,v,h)}:Mc,o,s);return e.onRumStart(m.lifeCycle,d,m.session,m.viewHistory,v),u=Ol(u,m),m}),l=y(function(d){var v=typeof d=="object"?d:{name:d};v.context&&n.getOrCreateTracker(3).updateCustomerData(v.context),u.startView(v),X({feature:"start-view"})}),f=qu({init:y(function(d){u.init(d,f),yt(ot.UPDATE_VIEW_NAME)&&(f.updateViewName=y(function(v){u.updateViewName(v)})),yt(ot.VIEW_SPECIFIC_CONTEXT)&&(f.setViewContext=y(function(v){u.setViewContext(v)}),f.setViewContextProperty=y(function(v,p){u.setViewContextProperty(v,p)}))}),setTrackingConsent:y(function(d){o.update(d),X({feature:"set-tracking-consent",tracking_consent:d})}),setGlobalContext:y(function(d){a.setContext(d),X({feature:"set-global-context"})}),getGlobalContext:y(function(){return a.getContext()}),setGlobalContextProperty:y(function(d,v){a.setContextProperty(d,v),X({feature:"set-global-context"})}),removeGlobalContextProperty:y(function(d){return a.removeContextProperty(d)}),clearGlobalContext:y(function(){return a.clearContext()}),getInternalContext:y(function(d){return u.getInternalContext(d)}),getInitConfiguration:y(function(){return yn(u.initConfiguration)}),addAction:function(d,v){var p=cr();Qt(function(){u.addAction({name:P(d),context:P(v),startClocks:Y(),type:"custom",handlingStack:p}),X({feature:"add-action"})})},addError:function(d,v){var p=cr();Qt(function(){u.addError({error:d,handlingStack:p,context:P(v),startClocks:Y()}),X({feature:"add-error"})})},addTiming:y(function(d,v){u.addTiming(P(d),v)}),setUser:y(function(d){ul(d)&&i.setContext(Jn(d)),X({feature:"set-user"})}),getUser:y(function(){return i.getContext()}),setUserProperty:y(function(d,v){var p,m=Jn((p={},p[d]=v,p))[d];i.setContextProperty(d,m),X({feature:"set-user"})}),removeUserProperty:y(function(d){return i.removeContextProperty(d)}),clearUser:y(function(){return i.clearContext()}),startView:l,stopSession:y(function(){u.stopSession(),X({feature:"stop-session"})}),addFeatureFlagEvaluation:y(function(d,v){u.addFeatureFlagEvaluation(P(d),P(v)),X({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:y(function(){return e.getSessionReplayLink()}),startSessionReplayRecording:y(function(d){e.start(d),X({feature:"start-session-replay-recording",force:d&&d.force})}),stopSessionReplayRecording:y(function(){return e.stop()}),addDurationVital:y(function(d,v){X({feature:"add-duration-vital"}),u.addDurationVital({name:P(d),type:"duration",startClocks:ss(v.startTime),duration:v.duration,context:P(v&&v.context),description:P(v&&v.description)})}),startDurationVital:y(function(d,v){return X({feature:"start-duration-vital"}),u.startDurationVital(P(d),{context:P(v&&v.context),description:P(v&&v.description)})}),stopDurationVital:y(function(d,v){X({feature:"stop-duration-vital"}),u.stopDurationVital(typeof d=="string"?P(d):d,{context:P(v&&v.context),description:P(v&&v.description)})})});return f}function Ol(t,e){return E({init:function(r){ui("DD_RUM",r)},initConfiguration:t.initConfiguration},e)}function Nl(){var t=Ni();return new k(function(e){if(t){var r=new t(y(function(){return e.notify()}));return r.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return r.disconnect()}}})}function Ni(){var t,e=window;if(e.Zone&&(t=Lt(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var r=new e.MutationObserver(x),n=Lt(r,"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}var Li="initial_document",Ll=[["document",function(t){return Li===t}],["xhr",function(t){return t==="xmlhttprequest"}],["fetch",function(t){return t==="fetch"}],["beacon",function(t){return t==="beacon"}],["css",function(t,e){return/\.css$/i.test(e)}],["js",function(t,e){return/\.js$/i.test(e)}],["image",function(t,e){return dt(["image","img","icon"],t)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)!==null}],["font",function(t,e){return/\.(woff|eot|woff2|ttf)$/i.exec(e)!==null}],["media",function(t,e){return dt(["audio","video"],t)||/\.(mp3|mp4)$/i.exec(e)!==null}]];function Ml(t){var e=t.name;if(!$s(e))return Ee('Failed to construct URL for "'.concat(t.name,'"')),"other";for(var r=tu(e),n=0,a=Ll;n<a.length;n++){var i=a[n],o=i[0],s=i[1];if(s(t.initiatorType,r))return o}return"other"}function ra(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=1;r<t.length;r+=1)if(t[r-1]>t[r])return!1;return!0}function Dl(t){return t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch"}function Pl(t){var e=t.duration,r=t.startTime,n=t.responseEnd;return e===0&&r<n?w(j(r,n)):w(e)}function Ul(t){if(Di(t)){var e=t.startTime,r=t.fetchStart,n=t.redirectStart,a=t.redirectEnd,i=t.domainLookupStart,o=t.domainLookupEnd,s=t.connectStart,c=t.secureConnectionStart,u=t.connectEnd,l=t.requestStart,f=t.responseStart,d=t.responseEnd,v={download:te(e,f,d),first_byte:te(e,l,f)};return r<u&&(v.connect=te(e,s,u),s<=c&&c<=u&&(v.ssl=te(e,c,u))),r<o&&(v.dns=te(e,i,o)),e<a&&(v.redirect=te(e,n,a)),v}}function Mi(t){return t.duration>=0}function Di(t){var e=ra(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),r=Bl(t)?ra(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart):!0;return e&&r}function Bl(t){return t.redirectEnd>t.startTime}function te(t,e,r){if(t<=e&&e<=r)return{duration:w(j(e,r)),start:w(j(t,e))}}function Fl(t){if(t.startTime<t.responseStart){var e=t.encodedBodySize,r=t.decodedBodySize,n=t.transferSize;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}}function Tn(t,e){return e&&!t.isIntakeUrl(e)}var Vl=/data:(.+)?(;base64)?,/g,na=24e3;function Pi(t){return t.length<=na?!1:t.substring(0,5)==="data:"?(t=t.substring(0,na),!0):!1}function Ui(t){return"".concat(t.match(Vl)[0],"[...]")}var T;(function(t){t.EVENT="event",t.FIRST_INPUT="first-input",t.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",t.LAYOUT_SHIFT="layout-shift",t.LONG_TASK="longtask",t.LONG_ANIMATION_FRAME="long-animation-frame",t.NAVIGATION="navigation",t.PAINT="paint",t.RESOURCE="resource"})(T||(T={}));function He(t,e){return new k(function(r){if(window.PerformanceObserver){var n=function(c){var u=Gl(t,c);u.length>0&&r.notify(u)},a,i=!0,o=new PerformanceObserver(y(function(c){i?a=H(function(){return n(c.getEntries())}):n(c.getEntries())}));try{o.observe(e)}catch{var s=[T.RESOURCE,T.NAVIGATION,T.LONG_TASK,T.PAINT];if(dt(s,e.type)){e.buffered&&(a=H(function(){return n(performance.getEntriesByType(e.type))}));try{o.observe({entryTypes:[e.type]})}catch{return}}}return i=!1,zl(t),function(){o.disconnect(),at(a)}}})}var Re;function zl(t){return!Re&&Hl()&&"addEventListener"in performance&&(Re=N(t,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),function(){Re==null||Re.stop()}}function Hl(){return window.performance!==void 0&&"getEntries"in performance}function _r(t){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(t)}function Gl(t,e){return e.filter(function(r){return!jl(t,r)})}function jl(t,e){return e.entryType===T.RESOURCE&&(!Tn(t,e.name)||!Mi(e))}function aa(){return window.performance!==void 0&&"getEntries"in performance}function Kl(t,e){var r=[];if(aa()){var n=performance.getEntries();H(function(){return jr(t,n)})}if(window.PerformanceObserver){var a=y(function(l){return jr(t,l.getEntries())}),i=[T.PAINT],o=[T.FIRST_INPUT,T.LAYOUT_SHIFT,T.EVENT];try{o.forEach(function(l){var f=new window.PerformanceObserver(a);f.observe({type:l,buffered:!0,durationThreshold:40}),r.push(function(){return f.disconnect()})})}catch{i.push.apply(i,o)}var s=new PerformanceObserver(a);try{s.observe({entryTypes:i}),r.push(function(){return s.disconnect()})}catch{}if(aa()&&"addEventListener"in performance){var c=N(e,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()}).stop;r.push(c)}}if(!_r(T.FIRST_INPUT)){var u=ql(e,function(l){jr(t,[l])}).stop;r.push(u)}return{stop:function(){r.forEach(function(l){return l()})}}}function ql(t,e){var r=ht(),n=!1,a=$(t,window,["click","mousedown","keydown","touchstart","pointerdown"],function(s){if(s.cancelable){var c={entryType:T.FIRST_INPUT,processingStart:lt(),processingEnd:lt(),startTime:s.timeStamp,duration:0,name:""};s.type==="pointerdown"?i(t,c):o(c)}},{passive:!0,capture:!0}).stop;return{stop:a};function i(s,c){$(s,window,["pointerup","pointercancel"],function(u){u.type==="pointerup"&&o(c)},{once:!0})}function o(s){if(!n){n=!0,a();var c=s.processingStart-s.startTime;c>=0&&c<ht()-r&&e(s)}}}function jr(t,e){var r=e.filter(function(n){return Le(T,n.entryType)});r.length&&t.notify(0,r)}function Yl(){var t=ol(),e=sl();if(t&&e)return{test_id:t,result_id:e,injected:Ci()}}function Ql(t,e,r){var n=yn(t),a=r(n);return vn(e).forEach(function(i){var o=i[0],s=i[1],c=Wl(n,o),u=Ut(c);u===s?ia(t,o,P(c)):s==="object"&&(u==="undefined"||u==="null")&&ia(t,o,{})}),a}function Wl(t,e){for(var r=t,n=0,a=e.split(".");n<a.length;n++){var i=a[n];if(!Xl(r,i))return;r=r[i]}return r}function ia(t,e,r){for(var n=t,a=e.split("."),i=0;i<a.length;i+=1){var o=a[i];if(!Bi(n))return;i!==a.length-1?n=n[o]:n[o]=r}}function Bi(t){return Ut(t)==="object"}function Xl(t,e){return Bi(t)&&Object.prototype.hasOwnProperty.call(t,e)}var zt={"view.name":"string","view.url":"string","view.referrer":"string"},ee={context:"object"},Kr={service:"string",version:"string"},Fi;function Zl(t,e,r,n,a,i,o,s,c,u){var l,f;Fi=(l={},l.view=yt(ot.VIEW_SPECIFIC_CONTEXT)?E({},ee,zt):zt,l.error=E({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},ee,zt,Kr),l.resource=E({"resource.url":"string"},yt(ot.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},ee,zt,Kr),l.action=E({"action.target.name":"string"},ee,zt,Kr),l.long_task=E({},ee,zt),l.vital=E({},ee,zt),l);var d=(f={},f.error=Vr("error",t.eventRateLimiterThreshold,u),f.action=Vr("action",t.eventRateLimiterThreshold,u),f.vital=Vr("vital",t.eventRateLimiterThreshold,u),f),v=Yl();e.subscribe(12,function(p){var m=p.startTime,h=p.rawRumEvent,g=p.domainContext,b=p.savedCommonContext,R=p.customerContext,O=n.findView(m),B=a.findUrl(m),L=r.findTrackedSession(m);if(L&&O&&B){var A=b||c(),z=i.findActionId(m),Bt={_dd:{format_version:2,drift:cs(),configuration:{session_sample_rate:or(t.sessionSampleRate,3),session_replay_sample_rate:or(t.sessionReplaySampleRate,3)},browser_sdk_version:Wt()?"5.27.0":void 0},application:{id:t.applicationId},date:V(),service:O.service||t.service,version:O.version||t.version,source:"browser",session:{id:L.id,type:v?"synthetics":s.get()?"ci_test":"user"},view:{id:O.id,name:O.name,url:B.url,referrer:B.referrer},action:$l(h)&&z?{id:z}:void 0,synthetics:v,ci_test:s.get(),display:o.get(),connectivity:di()},D=mt(Bt,h);D.context=mt(A.context,O.context,R),"has_replay"in D.session||(D.session.has_replay=A.hasReplay),D.type==="view"&&(D.session.sampled_for_replay=L.sessionReplay===1),Yt(A.user)||(D.usr=A.user),Jl(D,t.beforeSend,g,d)&&(Yt(D.context)&&delete D.context,e.notify(13,D))}})}function Jl(t,e,r,n){var a;if(e){var i=Ql(t,Fi[t.type],function(s){return e(s,r)});if(i===!1&&t.type!=="view")return!1;i===!1&&I.warn("Can't dismiss view events using beforeSend!")}var o=(a=n[t.type])===null||a===void 0?void 0:a.isLimitReached();return!o}function $l(t){return["error","resource","long_task"].indexOf(t.type)!==-1}function td(t,e,r,n,a){return{get:function(i){var o=r.findView(i),s=a.findUrl(i),c=e.findTrackedSession(i);if(c&&o&&s){var u=n.findActionId(i);return{application_id:t,session_id:c.id,user_action:u?{id:u}:void 0,view:{id:o.id,name:o.name,referrer:s.referrer,url:s.url}}}}}}var ed=Dc,rd=Zt;function nd(t){var e=we({expireDelay:rd});t.subscribe(2,function(n){e.add(r(n),n.startClocks.relative)}),t.subscribe(6,function(n){var a=n.endClocks;e.closeActive(a.relative)}),t.subscribe(4,function(n){var a=e.find(n.startClocks.relative);a&&n.name&&(a.name=n.name),a&&n.context&&(a.context=n.context)}),t.subscribe(10,function(){e.reset()});function r(n){return{service:n.service,version:n.version,context:n.context,id:n.id,name:n.name,startClocks:n.startClocks}}return{findView:function(n){return e.find(n)},stop:function(){e.stop()}}}var oa=1;function ad(t,e,r){var n=ml(e,r);id(t,e,n),od(t,e,n)}function id(t,e,r){var n=Pc(e).subscribe(function(a){var i=a;if(Tn(e,i.url))switch(i.state){case"start":r.traceXhr(i,i.xhr),i.requestIndex=Vi(),t.notify(7,{requestIndex:i.requestIndex,url:i.url});break;case"complete":r.clearTracingIfNeeded(i),t.notify(8,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"xhr",url:i.url,xhr:i.xhr,isAborted:i.isAborted,handlingStack:i.handlingStack});break}});return{stop:function(){return n.unsubscribe()}}}function od(t,e,r){var n=Ti().subscribe(function(a){var i=a;if(Tn(e,i.url))switch(i.state){case"start":r.traceFetch(i),i.requestIndex=Vi(),t.notify(7,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":sd(i,function(o){r.clearTracingIfNeeded(i),t.notify(8,{duration:o,method:i.method,requestIndex:i.requestIndex,responseType:i.responseType,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"fetch",url:i.url,response:i.response,init:i.init,input:i.input,isAborted:i.isAborted,handlingStack:i.handlingStack})});break}});return{stop:function(){return n.unsubscribe()}}}function Vi(){var t=oa;return oa+=1,t}function sd(t,e){var r=t.response&&Ac(t.response);!r||!r.body?e(j(t.startClocks.timeStamp,V())):rl(r.body,function(){e(j(t.startClocks.timeStamp,V()))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1})}function zi(t){return me(t)&&t<0?void 0:t}function Hi(t){var e=t.lifeCycle,r=t.isChildEvent,n=t.onChange,a=n===void 0?x:n,i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(13,function(s){var c;if(!(s.type==="view"||s.type==="vital"||!r(s)))switch(s.type){case"error":i.errorCount+=1,a();break;case"action":i.actionCount+=1,s.action.frustration&&(i.frustrationCount+=s.action.frustration.type.length),a();break;case"long_task":i.longTaskCount+=1,a();break;case"resource":!((c=s._dd)===null||c===void 0)&&c.discarded||(i.resourceCount+=1,a());break}});return{stop:function(){o.unsubscribe()},eventCounts:i}}var Gi=100,ud=100;function Cn(t,e,r,n,a){var i=ld(t,e,r);return cd(i,n,a)}function cd(t,e,r){var n,a=!1,i=H(y(function(){return u({hadActivity:!1})}),Gi),o=r!==void 0?H(y(function(){return u({hadActivity:!0,end:V()})}),r):void 0,s=t.subscribe(function(l){var f=l.isBusy;at(i),at(n);var d=V();f||(n=H(y(function(){return u({hadActivity:!0,end:d})}),ud))}),c=function(){a=!0,at(i),at(n),at(o),s.unsubscribe()};function u(l){a||(c(),e(l))}return{stop:c}}function ld(t,e,r){return new k(function(n){var a=[],i,o=0;a.push(e.subscribe(c),He(r,{type:T.RESOURCE}).subscribe(function(u){u.some(function(l){return!qr(r,l.name)})&&c()}),t.subscribe(7,function(u){qr(r,u.url)||(i===void 0&&(i=u.requestIndex),o+=1,c())}),t.subscribe(8,function(u){qr(r,u.url)||i===void 0||u.requestIndex<i||(o-=1,c())}));var s=dd(c).stop;return function(){s(),a.forEach(function(u){return u.unsubscribe()})};function c(){n.notify({isBusy:o>0})}})}function qr(t,e){return Ii(t.excludedActivityUrls,e)}function dd(t){return J(window,"open",t)}function Mt(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(e,r){return r?e==="\0"?"�":"".concat(e.slice(0,-1),"\\").concat(e.charCodeAt(e.length-1).toString(16)," "):"\\".concat(e)})}function se(t,e){return t.matches?t.matches(e):t.msMatchesSelector?t.msMatchesSelector(e):!1}function Ge(t){if(t.parentElement)return t.parentElement;for(;t.parentNode;){if(t.parentNode.nodeType===Node.ELEMENT_NODE)return t.parentNode;t=t.parentNode}return null}function fd(t){if(t.classList)return t.classList;var e=(t.getAttribute("class")||"").trim();return e?e.split(/\s+/):[]}var sa=1,vd=function(){function t(e){var r=this;this.map=new WeakMap,e&&e.forEach(function(n){return r.map.set(n,sa)})}return t.prototype.add=function(e){return this.map.set(e,sa),this},t.prototype.delete=function(e){return this.map.delete(e)},t.prototype.has=function(e){return this.map.has(e)},t}();function ji(t){return t.nodeType===Node.TEXT_NODE}function pd(t){return t.nodeType===Node.COMMENT_NODE}function Ce(t){return t.nodeType===Node.ELEMENT_NODE}function br(t){return Ce(t)&&!!t.shadowRoot}function In(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Ce(e.host)}function hd(t){return t.childNodes.length>0||br(t)}function Ki(t,e){for(var r=t.firstChild;r;)e(r),r=r.nextSibling;br(t)&&e(t.shadowRoot)}function yr(t){return In(t)?t.host:t.parentNode}var S={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:ce.ALLOW,MASK:ce.MASK,MASK_USER_INPUT:ce.MASK_USER_INPUT},xn="data-dd-privacy",md="hidden",gd="dd-privacy-",kt="***",ua="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Ad={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},_d="x";function gt(t,e,r){if(r&&r.has(t))return r.get(t);var n=yr(t),a=n?gt(n,e,r):e,i=Yi(t),o=qi(i,a);return r&&r.set(t,o),o}function qi(t,e){switch(e){case S.HIDDEN:case S.IGNORE:return e}switch(t){case S.ALLOW:case S.MASK:case S.MASK_USER_INPUT:case S.HIDDEN:case S.IGNORE:return t;default:return e}}function Yi(t){if(Ce(t)){if(t.tagName==="BASE")return S.ALLOW;if(t.tagName==="INPUT"){var e=t;if(e.type==="password"||e.type==="email"||e.type==="tel"||e.type==="hidden")return S.MASK;var r=e.getAttribute("autocomplete");if(r&&r.indexOf("cc-")===0)return S.MASK}if(se(t,ue(S.HIDDEN)))return S.HIDDEN;if(se(t,ue(S.MASK)))return S.MASK;if(se(t,ue(S.MASK_USER_INPUT)))return S.MASK_USER_INPUT;if(se(t,ue(S.ALLOW)))return S.ALLOW;if(yd(t))return S.IGNORE}}function Sr(t,e){switch(e){case S.MASK:case S.HIDDEN:case S.IGNORE:return!0;case S.MASK_USER_INPUT:return ji(t)?ca(t.parentNode):ca(t);default:return!1}}function ca(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if(e.tagName==="INPUT")switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!Ad[e.tagName]}var bd=function(t){return t.replace(/\S/g,_d)};function Qi(t,e,r){var n,a=(n=t.parentElement)===null||n===void 0?void 0:n.tagName,i=t.textContent||"";if(!(e&&!i.trim())){var o=r,s=a==="SCRIPT";if(s)i=kt;else if(o===S.HIDDEN)i=kt;else if(Sr(t,o))if(a==="DATALIST"||a==="SELECT"||a==="OPTGROUP"){if(!i.trim())return}else a==="OPTION"?i=kt:i=bd(i);return i}}function yd(t){if(t.nodeName==="SCRIPT")return!0;if(t.nodeName==="LINK"){var e=a("rel");return/preload|prefetch/i.test(e)&&a("as")==="script"||e==="shortcut icon"||e==="icon"}if(t.nodeName==="META"){var r=a("name"),e=a("rel"),n=a("property");return/^msapplication-tile(image|color)$/.test(r)||r==="application-name"||e==="icon"||e==="apple-touch-icon"||e==="shortcut icon"||r==="keywords"||r==="description"||/^(og|twitter|fb):/.test(n)||/^(og|twitter):/.test(r)||r==="pinterest"||r==="robots"||r==="googlebot"||r==="bingbot"||t.hasAttribute("http-equiv")||r==="author"||r==="generator"||r==="framework"||r==="publisher"||r==="progid"||/^article:/.test(n)||/^product:/.test(n)||r==="google-site-verification"||r==="yandex-verification"||r==="csrf-token"||r==="p:domain_verify"||r==="verify-v1"||r==="verification"||r==="shopify-checkout-api-token"}function a(i){return(t.getAttribute(i)||"").toLowerCase()}return!1}function ue(t){return"[".concat(xn,'="').concat(t,'"], .').concat(gd).concat(t)}var Rn="data-dd-action-name",Sd="Masked Element";function Ed(t,e,r){var n=e.enablePrivacyForActionName,a=e.actionNameAttribute,i=la(t,Rn)||a&&la(t,a);return r===S.MASK?i||Sd:i||da(t,a,wd,n)||da(t,a,Td,n)||""}function la(t,e){var r;if(kd())r=t.closest("[".concat(e,"]"));else for(var n=t;n;){if(n.hasAttribute(e)){r=n;break}n=Ge(n)}if(r){var a=r.getAttribute(e);return Xi(Wi(a.trim()))}}var wd=[function(t,e,r){if(Rd()){if("labels"in t&&t.labels&&t.labels.length>0)return ne(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&Nt(t.ownerDocument.querySelectorAll("label"),function(a){return a.htmlFor===t.id});return n&&ne(n,e,r)}},function(t){if(t.nodeName==="INPUT"){var e=t,r=e.getAttribute("type");if(r==="button"||r==="submit"||r==="reset")return e.value}},function(t,e,r){if(t.nodeName==="BUTTON"||t.nodeName==="LABEL"||t.getAttribute("role")==="button")return ne(t,e,r)},function(t){return t.getAttribute("aria-label")},function(t,e,r){var n=t.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map(function(a){return Id(t,a)}).filter(function(a){return!!a}).map(function(a){return ne(a,e,r)}).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return ne(t.options[0],e)}],Td=[function(t,e,r){return ne(t,e,r)}],Cd=10;function da(t,e,r,n){for(var a=t,i=0;i<=Cd&&a&&a.nodeName!=="BODY"&&a.nodeName!=="HTML"&&a.nodeName!=="HEAD";){for(var o=0,s=r;o<s.length;o++){var c=s[o],u=c(a,e,n);if(typeof u=="string"){var l=u.trim();if(l)return Xi(Wi(l))}}if(a.nodeName==="FORM")break;a=Ge(a),i+=1}}function Wi(t){return t.replace(/\s+/g," ")}function Xi(t){return t.length>100?"".concat(Ka(t,100)," [...]"):t}function Id(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}function ne(t,e,r){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,a=function(i){for(var o=t.querySelectorAll(i),s=0;s<o.length;s+=1){var c=o[s];if("innerText"in c){var u=c.innerText;u&&u.trim().length>0&&(n=n.replace(u,""))}}};return xd()||a("script, style"),a("[".concat(Rn,"]")),e&&a("[".concat(e,"]")),r&&a("".concat(ue(S.HIDDEN),", ").concat(ue(S.MASK))),n}return t.textContent}}function xd(){return!Ss()}var Yr;function Rd(){return Yr===void 0&&(Yr="labels"in HTMLInputElement.prototype),Yr}var Qr;function kd(){return Qr===void 0&&(Qr="closest"in HTMLElement.prototype),Qr}var Zi=[Rn,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Od=[$i,Ld],Nd=[$i,Md,Dd];function je(t,e){if(Vd(t)){for(var r,n=t;n&&n.nodeName!=="HTML";){var a=fa(n,Od,Ud,e,r);if(a)return a;var i=fa(n,Nd,Bd,e,r);r=i||Pe(Pd(n),r),n=Ge(n)}return r}}function Ji(t){return/[0-9]/.test(t)}function Ld(t){if(t.id&&!Ji(t.id))return"#".concat(Mt(t.id))}function Md(t){if(t.tagName!=="BODY")for(var e=fd(t),r=0;r<e.length;r+=1){var n=e[r];if(!Ji(n))return"".concat(Mt(t.tagName),".").concat(Mt(n))}}function Dd(t){return Mt(t.tagName)}function $i(t,e){if(e){var r=o(e);if(r)return r}for(var n=0,a=Zi;n<a.length;n++){var i=a[n],r=o(i);if(r)return r}function o(s){if(t.hasAttribute(s))return"".concat(Mt(t.tagName),"[").concat(s,'="').concat(Mt(t.getAttribute(s)),'"]')}}function Pd(t){for(var e=Ge(t).firstElementChild,r=1;e&&e!==t;)e.tagName===t.tagName&&(r+=1),e=e.nextElementSibling;return"".concat(Mt(t.tagName),":nth-of-type(").concat(r,")")}function fa(t,e,r,n,a){for(var i=0,o=e;i<o.length;i++){var s=o[i],c=s(t,n);if(c&&r(t,c,a))return Pe(c,a)}}function Ud(t,e,r){return t.ownerDocument.querySelectorAll(Pe(e,r)).length===1}function Bd(t,e,r){var n;if(r===void 0)n=function(s){return se(s,e)};else{var a=Fd()?Pe("".concat(e,":scope"),r):Pe(e,r);n=function(s){return s.querySelector(a)!==null}}for(var i=Ge(t),o=i.firstElementChild;o;){if(o!==t&&n(o))return!1;o=o.nextElementSibling}return!0}function Pe(t,e){return e?"".concat(t,">").concat(e):t}var tr;function Fd(){if(tr===void 0)try{document.querySelector(":scope"),tr=!0}catch{tr=!1}return tr}function Vd(t){return"isConnected"in t?t.isConnected:t.ownerDocument.documentElement.contains(t)}var to=Q,zd=100;function Hd(t,e){var r=[],n=0,a;i(t);function i(c){c.stopObservable.subscribe(o),r.push(c),at(a),a=H(s,to)}function o(){n===1&&r.every(function(c){return c.isStopped()})&&(n=2,e(r))}function s(){at(a),n===0&&(n=1,o())}return{tryAppend:function(c){return n!==0?!1:r.length>0&&!Gd(r[r.length-1].event,c.event)?(s(),!1):(i(c),!0)},stop:function(){s()}}}function Gd(t,e){return t.target===e.target&&jd(t,e)<=zd&&t.timeStamp-e.timeStamp<=to}function jd(t,e){return Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2))}function Kd(t,e){var r=e.onPointerDown,n=e.onPointerUp,a,i={selection:!1,input:!1,scroll:!1},o,s=[N(t,window,"pointerdown",function(c){pa(c)&&(a=va(),i={selection:!1,input:!1,scroll:!1},o=r(c))},{capture:!0}),N(t,window,"selectionchange",function(){(!a||!va())&&(i.selection=!0)},{capture:!0}),N(t,window,"scroll",function(){i.scroll=!0},{capture:!0,passive:!0}),N(t,window,"pointerup",function(c){if(pa(c)&&o){var u=i;n(o,c,function(){return u}),o=void 0}},{capture:!0}),N(t,window,"input",function(){i.input=!0},{capture:!0})];return{stop:function(){s.forEach(function(c){return c.stop()})}}}function va(){var t=window.getSelection();return!t||t.isCollapsed}function pa(t){return t.target instanceof Element&&t.isPrimary!==!1}var ha=3;function qd(t,e){if(Yd(t))return e.addFrustration("rage_click"),t.some(ma)&&e.addFrustration("dead_click"),e.hasError&&e.addFrustration("error_click"),{isRage:!0};var r=t.some(function(n){return n.getUserActivity().selection});return t.forEach(function(n){n.hasError&&n.addFrustration("error_click"),ma(n)&&!r&&n.addFrustration("dead_click")}),{isRage:!1}}function Yd(t){if(t.some(function(r){return r.getUserActivity().selection||r.getUserActivity().scroll}))return!1;for(var e=0;e<t.length-(ha-1);e+=1)if(t[e+ha-1].event.timeStamp-t[e].event.timeStamp<=Q)return!0;return!1}var Qd='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function ma(t){return t.hasPageActivity||t.getUserActivity().input||t.getUserActivity().scroll?!1:!se(t.event.target,Qd)}var Wd=10*Q,Xd=5*tt;function Zd(t,e,r){var n=we({expireDelay:Xd}),a=new k,i;t.subscribe(10,function(){n.reset()}),t.subscribe(5,u);var o=Kd(r,{onPointerDown:function(l){return Jd(r,t,e,l)},onPointerUp:function(l,f,d){var v=l.clickActionBase,p=l.hadActivityOnPointerDown;$d(r,t,e,n,a,c,v,f,d,p)}}).stop,s={findActionId:function(l){return n.findAll(l)}};return{stop:function(){u(),a.notify(),o()},actionContexts:s};function c(l){if(!i||!i.tryAppend(l)){var f=l.clone();i=Hd(l,function(d){ef(d,f)})}}function u(){i&&i.stop()}}function Jd(t,e,r,n){var a=t.enablePrivacyForActionName?gt(n.target,t.defaultPrivacyLevel):S.ALLOW;if(a!==S.HIDDEN){var i=tf(n,a,t),o=!1;return Cn(e,r,t,function(s){o=s.hadActivity},Gi),{clickActionBase:i,hadActivityOnPointerDown:function(){return o}}}}function $d(t,e,r,n,a,i,o,s,c,u){var l=eo(e,n,c,o,s);i(l);var f=Cn(e,r,t,function(p){p.hadActivity&&p.end<l.startClocks.timeStamp?l.discard():p.hadActivity?l.stop(p.end):u()?l.stop(l.startClocks.timeStamp):l.stop()},Wd).stop,d=e.subscribe(5,function(p){var m=p.endClocks;l.stop(m.timeStamp)}),v=a.subscribe(function(){l.stop()});l.stopObservable.subscribe(function(){d.unsubscribe(),f(),v.unsubscribe()})}function tf(t,e,r){var n=t.target.getBoundingClientRect();return{type:"click",target:{width:Math.round(n.width),height:Math.round(n.height),selector:je(t.target,r.actionNameAttribute)},position:{x:Math.round(t.clientX-n.left),y:Math.round(t.clientY-n.top)},name:Ed(t.target,r,e)}}function eo(t,e,r,n,a){var i=K(),o=Y(),s=e.add(i,o.relative),c=Hi({lifeCycle:t,isChildEvent:function(p){return p.action!==void 0&&(Array.isArray(p.action.id)?dt(p.action.id,i):p.action.id===i)}}),u=0,l,f=[],d=new k;function v(p){u===0&&(l=p,u=1,l?s.close(ln(l)):s.remove(),c.stop(),d.notify())}return{event:a,stop:v,stopObservable:d,get hasError(){return c.eventCounts.errorCount>0},get hasPageActivity(){return l!==void 0},getUserActivity:r,addFrustration:function(p){f.push(p)},startClocks:o,isStopped:function(){return u===1||u===2},clone:function(){return eo(t,e,r,n,a)},validate:function(p){if(v(),u===1){var m=c.eventCounts,h=m.resourceCount,g=m.errorCount,b=m.longTaskCount,R=E({type:"click",duration:l&&j(o.timeStamp,l),startClocks:o,id:i,frustrationTypes:f,counts:{resourceCount:h,errorCount:g,longTaskCount:b},events:p??[a],event:a},n);t.notify(1,R),u=2}},discard:function(){v(),u=2}}}function ef(t,e){var r=qd(t,e).isRage;r?(t.forEach(function(n){return n.discard()}),e.stop(V()),e.validate(t.map(function(n){return n.event}))):(e.discard(),t.forEach(function(n){return n.validate()}))}function rf(t,e,r,n){t.subscribe(1,function(i){return t.notify(12,ga(i,n))});var a={findActionId:x};return r.trackUserInteractions&&(a=Zd(t,e,r).actionContexts),{addAction:function(i,o){t.notify(12,E({savedCommonContext:o},ga(i,n)))},actionContexts:a}}function ga(t,e){var r=er(t)?{action:{id:t.id,loading_time:zi(w(t.duration)),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position}}}:void 0,n=er(t)?void 0:t.context,a=mt({action:{id:K(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.wasInPageStateAt("active",t.startClocks.relative)}},r),i=er(t)?{events:t.events}:{};return!er(t)&&t.handlingStack&&(i.handlingStack=t.handlingStack),{customerContext:n,rawRumEvent:a,startTime:t.startClocks.relative,domainContext:i}}function er(t){return t.type!=="custom"}function nf(t){var e=jc([fr.error]).subscribe(function(r){return t.notify(r.error)});return{stop:function(){e.unsubscribe()}}}function af(t,e){var r=Qu(t,[De.cspViolation,De.intervention]).subscribe(function(n){return e.notify(n)});return{stop:function(){r.unsubscribe()}}}function of(t,e,r,n){var a=new k;return nf(a),Gu(a),af(e,a),a.subscribe(function(i){return t.notify(14,{error:i})}),sf(t,r,n)}function sf(t,e,r){return t.subscribe(14,function(n){var a=n.error,i=n.customerContext,o=n.savedCommonContext;t.notify(12,E({customerContext:i,savedCommonContext:o},uf(a,e,r)))}),{addError:function(n,a){var i=n.error,o=n.handlingStack,s=n.startClocks,c=n.context,u=i instanceof Error?Pt(i):void 0,l=ii({stackTrace:u,originalError:i,handlingStack:o,startClocks:s,nonErrorPrefix:"Provided",source:ye.CUSTOM,handling:"handled"});t.notify(14,{customerContext:c,savedCommonContext:a,error:l})}}}function uf(t,e,r){var n={date:t.startClocks.timeStamp,error:{id:K(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},type:"error",view:{in_foreground:e.wasInPageStateAt("active",t.startClocks.relative)}},a=r.findFeatureFlagEvaluations(t.startClocks.relative);a&&!Yt(a)&&(n.feature_flags=a);var i={error:t.originalError,handlingStack:t.handlingStack};return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:i}}function cf(t,e){var r=He(e,{type:T.LONG_TASK,buffered:!0}).subscribe(function(n){for(var a=0,i=n;a<i.length;a++){var o=i[a];if(o.entryType!==T.LONG_TASK||!e.trackLongTasks)break;var s=hr(o.startTime),c={date:s.timeStamp,long_task:{id:K(),entry_type:"long-task",duration:w(o.duration)},type:"long_task",_dd:{discarded:!1}};t.notify(12,{rawRumEvent:c,startTime:s.relative,domainContext:{performanceEntry:o}})}});return{stop:function(){r.unsubscribe()}}}var Aa=new vd;function lf(t){if(!(!performance||!("getEntriesByName"in performance))){var e=performance.getEntriesByName(t.url,"resource");if(!(!e.length||!("toJSON"in e[0]))){var r=e.filter(function(n){return!Aa.has(n)}).filter(function(n){return Mi(n)&&Di(n)}).filter(function(n){return df(n,t.startClocks.relative,ro({startTime:t.startClocks.relative,duration:t.duration}))});if(r.length===1)return Aa.add(r[0]),r[0].toJSON()}}}function ro(t){return ge(t.startTime,t.duration)}function df(t,e,r){var n=1;return t.startTime>=e-n&&ro(t)<=ge(r,n)}var ff=2*tt;function vf(t){var e=pf(t)||hf(t);if(!(!e||e.traceTime<=ht()-ff))return e.traceId}function pf(t){var e=t.querySelector("meta[name=dd-trace-id]"),r=t.querySelector("meta[name=dd-trace-time]");return no(e&&e.content,r&&r.content)}function hf(t){var e=mf(t);if(e)return no(Me(e,"trace-id"),Me(e,"trace-time"))}function no(t,e){var r=e&&Number(e);if(!(!t||!r))return{traceId:t,traceTime:r}}function mf(t){for(var e=0;e<t.childNodes.length;e+=1){var r=_a(t.childNodes[e]);if(r)return r}if(t.body)for(var e=t.body.childNodes.length-1;e>=0;e-=1){var n=t.body.childNodes[e],r=_a(n);if(r)return r;if(!ji(n))break}}function _a(t){if(t&&pd(t)){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function ao(){if(_r(T.NAVIGATION)){var t=performance.getEntriesByType(T.NAVIGATION)[0];if(t)return t}var e=gf(),r=E({entryType:T.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return E({},r,{toJSON:void 0})}},e);return r}function gf(){var t={},e=performance.timing;for(var r in e)if(me(e[r])){var n=r,a=e[n];t[n]=a===0?0:ln(a)}return t}function Af(t,e){Sn(t,"interactive",function(){var r=E(ao().toJSON(),{entryType:T.RESOURCE,initiatorType:Li,traceId:vf(document),toJSON:function(){return E({},r,{toJSON:void 0})}});e(r)})}function _f(t,e,r,n){n===void 0&&(n=Af),t.subscribe(8,function(i){var o=bf(i,e,r);o&&t.notify(12,o)});var a=He(e,{type:T.RESOURCE,buffered:!0}).subscribe(function(i){for(var o=0,s=i;o<s.length;o++){var c=s[o];if(!Dl(c)){var u=ba(c,e);u&&t.notify(12,u)}}});return n(e,function(i){var o=ba(i,e);o&&t.notify(12,o)}),{stop:function(){a.unsubscribe()}}}function bf(t,e,r){var n=lf(t),a=n?hr(n.startTime):t.startClocks,i=yf(t,e);if(!(!e.trackResources&&!i)){var o=t.type==="xhr"?"xhr":"fetch",s=n?io(n):void 0,c=Ef(r,a,t.duration),u=mt({date:a.timeStamp,resource:{id:K(),type:o,duration:c,method:t.method,status_code:t.status,url:Pi(t.url)?Ui(t.url):t.url},type:"resource",_dd:{discarded:!e.trackResources}},i,s);return{startTime:a.relative,rawRumEvent:u,domainContext:{performanceEntry:n,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}}function ba(t,e){var r=hr(t.startTime),n=Sf(t,e);if(!(!e.trackResources&&!n)){var a=Ml(t),i=io(t),o=mt({date:r.timeStamp,resource:{id:K(),type:a,url:t.name,status_code:wf(t.responseStatus)},type:"resource",_dd:{discarded:!e.trackResources}},n,i);return{startTime:r.relative,rawRumEvent:o,domainContext:{performanceEntry:t}}}}function io(t){var e=t.renderBlockingStatus;return{resource:E({duration:Pl(t),render_blocking_status:e},Fl(t),Ul(t))}}function yf(t,e){var r=t.traceSampled&&t.traceId&&t.spanId;if(r)return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:oo(e)}}}function Sf(t,e){var r=t.traceId;if(r)return{_dd:{trace_id:t.traceId,span_id:sn().toDecimalString(),rule_psr:oo(e)}}}function oo(t){return me(t.traceSampleRate)?t.traceSampleRate/100:void 0}function Ef(t,e,r){return t.wasInPageStateDuringPeriod("frozen",e.relative,r)?void 0:w(r)}function wf(t){return t===0?void 0:t}function Tf(t,e,r){var n=Hi({lifeCycle:t,isChildEvent:function(o){return o.view.id===e},onChange:r}),a=n.stop,i=n.eventCounts;return{stop:a,eventCounts:i}}var Cf=10*tt;function If(t,e,r){var n=t.subscribe(0,function(a){var i=Nt(a,function(o){return o.entryType===T.PAINT&&o.name==="first-contentful-paint"&&o.startTime<e.timeStamp&&o.startTime<Cf});i&&r(i.startTime)}).unsubscribe;return{stop:n}}function xf(t,e,r,n){var a=t.subscribe(0,function(i){var o=Nt(i,function(u){return u.entryType===T.FIRST_INPUT&&u.startTime<r.timeStamp});if(o){var s=j(o.startTime,o.processingStart),c=void 0;o.target&&Ce(o.target)&&(c=je(o.target,e.actionNameAttribute)),n({delay:s>=0?s:0,time:o.startTime,targetSelector:c})}}).unsubscribe;return{stop:a}}function Rf(t,e,r){return r===void 0&&(r=ao),Nf(t,function(){var n=r();Of(n)||e(kf(n))})}function kf(t){return{domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:t.responseStart>=0&&t.responseStart<=lt()?t.responseStart:void 0}}function Of(t){return t.loadEventEnd<=0}function Nf(t,e){var r,n=Sn(t,"complete",function(){r=H(function(){return e()})}).stop;return{stop:function(){n(),at(r)}}}var Lf=10*tt;function Mf(t,e,r,n){var a=1/0,i=$(t,r,["pointerdown","keydown"],function(c){a=c.timeStamp},{capture:!0,once:!0}).stop,o=0,s=He(t,{type:T.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(function(c){var u=ps(c,function(f){return f.entryType===T.LARGEST_CONTENTFUL_PAINT&&f.startTime<a&&f.startTime<e.timeStamp&&f.startTime<Lf&&f.size>o});if(u){var l=void 0;u.element&&(l=je(u.element,t.actionNameAttribute)),n({value:u.startTime,targetSelector:l}),o=u.size}});return{stop:function(){i(),s.unsubscribe()}}}function so(t,e){e===void 0&&(e=window);var r,n;return document.visibilityState==="hidden"?r=0:(r=1/0,n=$(t,e,["pagehide","visibilitychange"],function(a){(a.type==="pagehide"||document.visibilityState==="hidden")&&(r=a.timeStamp,n())},{capture:!0}).stop),{get timeStamp(){return r},stop:function(){n==null||n()}}}function Df(t,e,r,n){var a={},i=Rf(e,function(f){r(f.loadEvent),a.navigationTimings=f,n()}).stop,o=so(e),s=If(t,o,function(f){a.firstContentfulPaint=f,n()}).stop,c=Mf(e,o,window,function(f){a.largestContentfulPaint=f,n()}).stop,u=xf(t,e,o,function(f){a.firstInput=f,n()}).stop;function l(){i(),s(),c(),u(),o.stop()}return{stop:l,initialViewMetrics:a}}function Pf(t,e,r,n){if(!zf())return{stop:x};var a=0,i,o;n({value:0});var s=Vf(),c=e.subscribe(0,function(u){for(var l=0,f=u;l<f.length;l++){var d=f[l];if(d.entryType===T.LAYOUT_SHIFT&&!d.hadRecentInput){var v=s.update(d),p=v.cumulatedValue,m=v.isMaxValue;if(m){var h=Uf(d.sources);i=h?new WeakRef(h):void 0,o=j(r,d.startTime)}if(p>a){a=p;var h=i==null?void 0:i.deref();n({value:or(a,4),targetSelector:h&&je(h,t.actionNameAttribute),time:o})}}}}).unsubscribe;return{stop:c}}function Uf(t){var e;if(t)return(e=Nt(t,function(r){return!!r.node&&Ce(r.node)}))===null||e===void 0?void 0:e.node}var Bf=5*Q,Ff=Q;function Vf(){var t=0,e,r,n=0;return{update:function(a){var i=e===void 0||a.startTime-r>=Ff||a.startTime-e>=Bf,o;return i?(e=r=a.startTime,n=t=a.value,o=!0):(t+=a.value,r=a.startTime,o=a.value>n,o&&(n=a.value)),{cumulatedValue:t,isMaxValue:o}}}}function zf(){return _r(T.LAYOUT_SHIFT)&&"WeakRef"in window}var ir,uo=0,Wr=1/0,Xr=0;function Hf(){"interactionCount"in performance||ir||(ir=new window.PerformanceObserver(y(function(t){t.getEntries().forEach(function(e){var r=e;r.interactionId&&(Wr=Math.min(Wr,r.interactionId),Xr=Math.max(Xr,r.interactionId),uo=(Xr-Wr)/7+1)})})),ir.observe({type:"event",buffered:!0,durationThreshold:0}))}var ya=function(){return ir?uo:window.performance.interactionCount||0},Sa=10,Gf=1*tt;function jf(t,e,r,n){if(!Yf())return{getInteractionToNextPaint:function(){},setViewEnd:x,stop:x};var a=qf(r),i=a.getViewInteractionCount,o=a.stopViewInteractionCount,s=1/0,c=Kf(i),u=-1,l,f,d=n.subscribe(0,function(v){for(var p=0,m=v;p<m.length;p++){var h=m[p];(h.entryType===T.EVENT||h.entryType===T.FIRST_INPUT)&&h.interactionId&&h.startTime>=e&&h.startTime<=s&&c.process(h)}var g=c.estimateP98Interaction();g&&g.duration!==u&&(u=g.duration,f=j(e,g.startTime),g.target&&Ce(g.target)?l=je(g.target,t.actionNameAttribute):l=void 0)}).unsubscribe;return{getInteractionToNextPaint:function(){if(u>=0)return{value:Math.min(u,Gf),targetSelector:l,time:f};if(i())return{value:0}},setViewEnd:function(v){s=v,o()},stop:d}}function Kf(t){var e=[];function r(){e.sort(function(n,a){return a.duration-n.duration}).splice(Sa)}return{process:function(n){var a=e.findIndex(function(o){return n.interactionId===o.interactionId}),i=e[e.length-1];a!==-1?n.duration>e[a].duration&&(e[a]=n,r()):(e.length<Sa||n.duration>i.duration)&&(e.push(n),r())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}function qf(t){Hf();var e=t==="initial_load"?0:ya(),r={stopped:!1};function n(){return ya()-e}return{getViewInteractionCount:function(){return r.stopped?r.interactionCount:n()},stopViewInteractionCount:function(){r={stopped:!0,interactionCount:n()}}}}function Yf(){return _r(T.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function Qf(t,e,r,n,a,i){var o=n==="initial_load",s=!0,c=[],u=so(r);function l(){if(!s&&!o&&c.length>0){var d=Math.max.apply(Math,c);d<u.timeStamp&&i(d)}}var f=Cn(t,e,r,function(d){s&&(s=!1,d.hadActivity&&c.push(j(a.timeStamp,d.end)),l())}).stop;return{stop:function(){f(),u.stop()},setLoadEvent:function(d){o&&(o=!1,c.push(d),l())}}}function co(){var t,e=window.visualViewport;return e?t=e.pageLeft-e.offsetLeft:window.scrollX!==void 0?t=window.scrollX:t=window.pageXOffset||0,Math.round(t)}function kn(){var t,e=window.visualViewport;return e?t=e.pageTop-e.offsetTop:window.scrollY!==void 0?t=window.scrollY:t=window.pageYOffset||0,Math.round(t)}var Zr;function lo(t){return Zr||(Zr=Wf(t)),Zr}function Wf(t){return new k(function(e){var r=St(function(){e.notify(Er())},200).throttled;return N(t,window,"resize",r,{capture:!0,passive:!0}).stop})}function Er(){var 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)}}var Xf=Q;function Zf(t,e,r,n){n===void 0&&(n=$f(t));var a=0,i=0,o=0,s=n.subscribe(function(c){var u=c.scrollDepth,l=c.scrollTop,f=c.scrollHeight,d=!1;if(u>a&&(a=u,d=!0),f>i){i=f;var v=lt();o=j(e.relative,v),d=!0}d&&r({maxDepth:Math.min(a,i),maxDepthScrollTop:l,maxScrollHeight:i,maxScrollHeightTime:o})});return{stop:function(){return s.unsubscribe()}}}function Jf(){var t=kn(),e=Er().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),n=Math.round(e+t);return{scrollHeight:r,scrollDepth:n,scrollTop:t}}function $f(t,e){return e===void 0&&(e=Xf),new k(function(r){function n(){r.notify(Jf())}if(window.ResizeObserver){var a=St(n,e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(y(a.throttled));o.observe(i);var s=N(t,window,"scroll",a.throttled,{passive:!0});return function(){a.cancel(),o.unobserve(i),s.stop()}}})}function tv(t,e,r,n,a,i){var o={},s=Qf(t,e,r,a,i,function(h){o.loadingTime=h,n()}),c=s.stop,u=s.setLoadEvent,l=Zf(r,i,function(h){o.scroll=h}).stop,f=Pf(r,t,i.relative,function(h){o.cumulativeLayoutShift=h,n()}).stop,d=jf(r,i.relative,a,t),v=d.stop,p=d.getInteractionToNextPaint,m=d.setViewEnd;return{stop:function(){c(),f(),l()},stopINPTracking:v,setLoadEvent:u,setViewEnd:m,getCommonViewMetrics:function(){return o.interactionToNextPaint=p(),o}}}var ev=3e3,rv=5*tt,nv=5*tt;function av(t,e,r,n,a,i,o){var s=new Set,c=l("initial_load",za(),o);f();var u;i&&(u=d(a));function l(v,p,m){var h=iv(e,r,n,t,v,p,m);return s.add(h),h.stopObservable.subscribe(function(){s.delete(h)}),h}function f(){e.subscribe(10,function(){c=l("route_change",void 0,{name:c.name,service:c.service,version:c.version,context:c.contextManager.getContext()})}),e.subscribe(9,function(){c.end({sessionIsActive:!1})}),e.subscribe(11,function(v){v.reason===le.UNLOADING&&c.end()})}function d(v){return v.subscribe(function(p){var m=p.oldLocation,h=p.newLocation;sv(m,h)&&(c.end(),c=l("route_change"))})}return{addTiming:function(v,p){p===void 0&&(p=V()),c.addTiming(v,p)},startView:function(v,p){c.end({endClocks:p}),c=l("route_change",p,v)},setViewContext:function(v){c.contextManager.setContext(v)},setViewContextProperty:function(v,p){c.contextManager.setContextProperty(v,p)},updateViewName:function(v){c.updateViewName(v)},stop:function(){u&&u.unsubscribe(),c.end(),s.forEach(function(v){return v.stop()})}}}function iv(t,e,r,n,a,i,o){i===void 0&&(i=Y());var s=K(),c=new k,u={},l=0,f,d=Ne(n),v=on(),p=!0,m,h,g,b;o&&(m=o.name,h=o.service||void 0,g=o.version||void 0,yt(ot.VIEW_SPECIFIC_CONTEXT)&&o.context&&(b=o.context,v.setContext(b)));var R={id:s,name:m,startClocks:i,service:h,version:g,context:b};t.notify(2,R),t.notify(3,R);var O=St(Et,ev,{leading:!1}),B=O.throttled,L=O.cancel,A=tv(t,e,r,B,a,i),z=A.setLoadEvent,Bt=A.setViewEnd,D=A.stop,Tr=A.stopINPTracking,Cr=A.getCommonViewMetrics,qe=a==="initial_load"?Df(t,r,z,B):{stop:x,initialViewMetrics:{}},Ir=qe.stop,xr=qe.initialViewMetrics,Ye=Tf(t,s,B),Rr=Ye.stop,kr=Ye.eventCounts,Or=Ae(Et,rv);Et(),v.changeObservable.subscribe(Et);function Et(){L(),l+=1;var W=f===void 0?V():f.timeStamp;t.notify(4,{customTimings:u,documentVersion:l,id:s,name:m,service:h,version:g,context:yt(ot.VIEW_SPECIFIC_CONTEXT)?v.getContext():void 0,loadingType:a,location:d,startClocks:i,commonViewMetrics:Cr(),initialViewMetrics:xr,duration:j(i.timeStamp,W),isActive:f===void 0,sessionIsActive:p,eventCounts:kr})}return{get name(){return m},service:h,version:g,contextManager:v,stopObservable:c,end:function(W){var Ft=this,F,Vt;W===void 0&&(W={}),!f&&(f=(F=W.endClocks)!==null&&F!==void 0?F:Y(),p=(Vt=W.sessionIsActive)!==null&&Vt!==void 0?Vt:!0,t.notify(5,{endClocks:f}),t.notify(6,{endClocks:f}),gr(Or),Bt(f.relative),D(),Et(),H(function(){Ft.stop()},nv))},stop:function(){Ir(),Rr(),Tr(),c.notify()},addTiming:function(W,Ft){if(!f){var F=ds(Ft)?Ft:j(i.timeStamp,Ft);u[ov(W)]=F,B()}},updateViewName:function(W){yt(ot.UPDATE_VIEW_NAME)&&(m=W,Et())}}}function ov(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return e!==t&&I.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(e)),e}function sv(t,e){return t.pathname!==e.pathname||!uv(e.hash)&&Ea(e.hash)!==Ea(t.hash)}function uv(t){var e=t.substring(1);return e!==""&&!!document.getElementById(e)}function Ea(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function cv(t,e,r,n,a,i,o,s,c){return t.subscribe(4,function(u){return t.notify(12,lv(u,e,i,s,o))}),av(r,t,n,e,a,!e.trackViewsManually,c)}function lv(t,e,r,n,a){var i,o,s,c,u,l,f,d,v,p,m,h,g,b,R,O,B=n.getReplayStats(t.id),L=r.findFeatureFlagEvaluations(t.startClocks.relative),A=a.findAll(t.startClocks.relative,t.duration),z={_dd:{document_version:t.documentVersion,replay_stats:B,page_states:A,configuration:{start_session_replay_recording_manually:e.startSessionReplayRecordingManually}},date:t.startClocks.timeStamp,type:"view",view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:(i=t.commonViewMetrics.cumulativeLayoutShift)===null||i===void 0?void 0:i.value,cumulative_layout_shift_time:w((o=t.commonViewMetrics.cumulativeLayoutShift)===null||o===void 0?void 0:o.time),cumulative_layout_shift_target_selector:(s=t.commonViewMetrics.cumulativeLayoutShift)===null||s===void 0?void 0:s.targetSelector,first_byte:w((c=t.initialViewMetrics.navigationTimings)===null||c===void 0?void 0:c.firstByte),dom_complete:w((u=t.initialViewMetrics.navigationTimings)===null||u===void 0?void 0:u.domComplete),dom_content_loaded:w((l=t.initialViewMetrics.navigationTimings)===null||l===void 0?void 0:l.domContentLoaded),dom_interactive:w((f=t.initialViewMetrics.navigationTimings)===null||f===void 0?void 0:f.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:w(t.initialViewMetrics.firstContentfulPaint),first_input_delay:w((d=t.initialViewMetrics.firstInput)===null||d===void 0?void 0:d.delay),first_input_time:w((v=t.initialViewMetrics.firstInput)===null||v===void 0?void 0:v.time),first_input_target_selector:(p=t.initialViewMetrics.firstInput)===null||p===void 0?void 0:p.targetSelector,interaction_to_next_paint:w((m=t.commonViewMetrics.interactionToNextPaint)===null||m===void 0?void 0:m.value),interaction_to_next_paint_time:w((h=t.commonViewMetrics.interactionToNextPaint)===null||h===void 0?void 0:h.time),interaction_to_next_paint_target_selector:(g=t.commonViewMetrics.interactionToNextPaint)===null||g===void 0?void 0:g.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:w((b=t.initialViewMetrics.largestContentfulPaint)===null||b===void 0?void 0:b.value),largest_contentful_paint_target_selector:(R=t.initialViewMetrics.largestContentfulPaint)===null||R===void 0?void 0:R.targetSelector,load_event:w((O=t.initialViewMetrics.navigationTimings)===null||O===void 0?void 0:O.loadEvent),loading_time:zi(w(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:w(t.duration)},feature_flags:L&&!Yt(L)?L:void 0,display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:w(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:B?!0:void 0,is_active:t.sessionIsActive?void 0:!1},privacy:{replay_level:e.defaultPrivacyLevel}};return Yt(t.customTimings)||(z.view.custom_timings=gs(t.customTimings,w)),{rawRumEvent:z,startTime:t.startClocks.relative,domainContext:{location:t.location}}}var dv="rum";function fv(t,e,r){var n=vc(t,dv,function(a){return pv(t,a)},r);return n.expireObservable.subscribe(function(){e.notify(9)}),n.renewObservable.subscribe(function(){e.notify(10)}),n.sessionStateUpdateObservable.subscribe(function(a){var i=a.previousState,o=a.newState;if(!i.forcedReplay&&o.forcedReplay){var s=n.findSession();s&&(s.isReplayForced=!0)}}),{findTrackedSession:function(a){var i=n.findSession(a);if(!(!i||!fo(i.trackingType)))return{id:i.id,sessionReplay:i.trackingType==="1"?1:i.isReplayForced?2:0}},expire:n.expire,expireObservable:n.expireObservable,setForcedReplay:function(){return n.updateSessionState({forcedReplay:"1"})}}}function vv(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:Ei("records")?1:0};return{findTrackedSession:function(){return t},expire:x,expireObservable:new k,setForcedReplay:x}}function pv(t,e){var r;return hv(e)?r=e:Kt(t.sessionSampleRate)?Kt(t.sessionReplaySampleRate)?r="1":r="2":r="0",{trackingType:r,isTracked:fo(r)}}function hv(t){return t==="0"||t==="1"||t==="2"}function fo(t){return t==="2"||t==="1"}function mv(t,e,r,n,a,i,o){var s=t.replica,c=Lc(t,{endpoint:t.rumEndpointBuilder,encoder:o(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(u){return mt(u,{application:{id:s.applicationId}})},encoder:o(3)},n,a,i);return e.subscribe(13,function(u){u.type==="view"?c.upsert(u,u.view.id):c.add(u)}),r.subscribe(function(u){return c.add(u,oc(t))}),c}function gv(t){var e=Te();t.subscribe(13,function(r){e.send("rum",r)})}var Av=Zt;function _v(t,e,r){var n=we({expireDelay:Av}),a;t.subscribe(2,function(s){var c=s.startClocks,u=r.href;n.add(o({url:u,referrer:a||document.referrer}),c.relative),a=u}),t.subscribe(6,function(s){var c=s.endClocks;n.closeActive(c.relative)});var i=e.subscribe(function(s){var c=s.newLocation,u=n.find();if(u){var l=lt();n.closeActive(l),n.add(o({url:c.href,referrer:u.referrer}),l)}});function o(s){var c=s.url,u=s.referrer;return{url:c,referrer:u}}return{findUrl:function(s){return n.find(s)},stop:function(){i.unsubscribe(),n.stop()}}}function bv(t,e){var r=Ne(e);return new k(function(n){var a=yv(t,o).stop,i=Sv(t,o).stop;function o(){if(r.href!==e.href){var s=Ne(e);n.notify({newLocation:s,oldLocation:r}),r=s}}return function(){a(),i()}})}function yv(t,e){var r=J(wa("pushState"),"pushState",function(i){var o=i.onPostCall;o(e)}).stop,n=J(wa("replaceState"),"replaceState",function(i){var o=i.onPostCall;o(e)}).stop,a=N(t,window,"popstate",e).stop;return{stop:function(){r(),n(),a()}}}function Sv(t,e){return N(t,window,"hashchange",e)}function wa(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}var Ev=Zt;function wv(t,e){var r=we({expireDelay:Ev});return t.subscribe(2,function(n){var a=n.startClocks;r.add({},a.relative),e.resetCustomerData()}),t.subscribe(6,function(n){var a=n.endClocks;r.closeActive(a.relative)}),{findFeatureFlagEvaluations:function(n){return r.find(n)},addFeatureFlagEvaluation:function(n,a){var i=r.find();i&&(i[n]=a,e.updateCustomerData(i))},stop:function(){return e.stop()}}}var Tv=10*Q,_t,Ht,un;function Cv(t,e,r,n,a){var i=e.enabled&&Kt(t.customerDataTelemetrySampleRate);i&&(vo(),Ta(),r.subscribe(13,function(o){un=!0,ke(Ht.globalContextBytes,n.getOrCreateTracker(2).getBytesCount()),ke(Ht.userContextBytes,n.getOrCreateTracker(1).getBytesCount()),ke(Ht.featureFlagBytes,dt(["view","error"],o.type)?n.getOrCreateTracker(0).getBytesCount():0)}),a.subscribe(function(o){var s=o.bytesCount,c=o.messagesCount;un&&(_t.batchCount+=1,ke(_t.batchBytesCount,s),ke(_t.batchMessagesCount,c),Jr(_t.globalContextBytes,Ht.globalContextBytes),Jr(_t.userContextBytes,Ht.userContextBytes),Jr(_t.featureFlagBytes,Ht.featureFlagBytes),Ta())}),Ae(Iv,Tv))}function Iv(){_t.batchCount!==0&&(Ee("Customer data measures",_t),vo())}function wt(){return{min:1/0,max:0,sum:0}}function ke(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function Jr(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function vo(){_t={batchCount:0,batchBytesCount:wt(),batchMessagesCount:wt(),globalContextBytes:wt(),userContextBytes:wt(),featureFlagBytes:wt()}}function Ta(){un=!1,Ht={globalContextBytes:wt(),userContextBytes:wt(),featureFlagBytes:wt()}}var xv=4e3,Rv=500,kv=Zt;function Ov(t,e){e===void 0&&(e=Rv);var r=we({expireDelay:kv,maxEntries:xv}),n;i(po(),lt());var a=$(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(s){i(Nv(s),s.timeStamp)},{capture:!0}).stop;function i(s,c){c===void 0&&(c=lt()),s!==n&&(n=s,r.closeActive(c),r.add({state:n,startTime:c},c))}var o={findAll:function(s,c){var u=r.findAll(s,c);if(u.length!==0){for(var l=[],f=Math.max(0,u.length-e),d=u.length-1;d>=f;d--){var v=u[d],p=j(s,v.startTime);l.push({state:v.state,start:w(p)})}return l}},wasInPageStateAt:function(s,c){return o.wasInPageStateDuringPeriod(s,c,0)},wasInPageStateDuringPeriod:function(s,c,u){return r.findAll(c,u).some(function(l){return l.state===s})},addPageState:i,stop:function(){a(),r.stop()}};return o}function Nv(t){return t.type==="freeze"?"frozen":t.type==="pagehide"?t.persisted?"frozen":"terminated":po()}function po(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function Lv(t){var e=Er(),r=lo(t).subscribe(function(n){e=n}).unsubscribe;return{get:function(){return{viewport:e}},stop:r}}function Mv(t,e){var r=window.cookieStore?Dv(t):Uv;return new k(function(n){return r(e,function(a){return n.notify(a)})})}function Dv(t){return function(e,r){var n=N(t,window.cookieStore,"change",function(a){var i=Nt(a.changed,function(o){return o.name===e})||Nt(a.deleted,function(o){return o.name===e});i&&r(i.value)});return n.stop}}var Pv=Q;function Uv(t,e){var r=Me(document.cookie,t),n=Ae(function(){var a=Me(document.cookie,t);a!==r&&e(a)},Pv);return function(){gr(n)}}var Ca="datadog-ci-visibility-test-execution-id";function Bv(t,e){var r;e===void 0&&(e=Mv(t,Ca));var n=xt(Ca)||((r=window.Cypress)===null||r===void 0?void 0:r.env("traceId")),a=e.subscribe(function(i){n=i});return{get:function(){if(typeof n=="string")return{test_execution_id:n}},stop:function(){return a.unsubscribe()}}}function Fv(t,e){var r=He(e,{type:T.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(function(n){for(var a=0,i=n;a<i.length;a++){var o=i[a],s=hr(o.startTime),c={date:s.timeStamp,long_task:{id:K(),entry_type:"long-animation-frame",duration:w(o.duration),blocking_duration:w(o.blockingDuration),first_ui_event_timestamp:w(o.firstUIEventTimestamp),render_start:w(o.renderStart),style_and_layout_start:w(o.styleAndLayoutStart),scripts:o.scripts.map(function(u){return{duration:w(u.duration),pause_duration:w(u.pauseDuration),forced_style_and_layout_duration:w(u.forcedStyleAndLayoutDuration),start_time:w(u.startTime),execution_start:w(u.executionStart),source_url:u.sourceURL,source_function_name:u.sourceFunctionName,source_char_position:u.sourceCharPosition,invoker:u.invoker,invoker_type:u.invokerType,window_attribution:u.windowAttribution}})},type:"long_task",_dd:{discarded:!1}};t.notify(12,{rawRumEvent:c,startTime:s.relative,domainContext:{performanceEntry:o}})}});return{stop:function(){return r.unsubscribe()}}}function Vv(t,e,r,n,a,i,o,s){var c=[],u=new ed;u.subscribe(13,function(F){return bn("rum",F)});var l=zv(t);l.setContextProvider(function(){var F,Vt;return{application:{id:t.applicationId},session:{id:(F=m.findTrackedSession())===null||F===void 0?void 0:F.id},view:{id:(Vt=B.findView())===null||Vt===void 0?void 0:Vt.id},action:{id:A.findActionId()}}});var f=function(F){u.notify(14,{error:F}),Ee("Error reported to customer",{"error.message":F.message})},d=wv(u,r.getOrCreateTracker(0)),v=kc(t),p=v.subscribe(function(F){u.notify(11,F)});c.push(function(){return p.unsubscribe()});var m=Wt()?vv():fv(t,u,o);if(Wt())gv(u);else{var h=mv(t,u,l.observable,f,v,m.expireObservable,i);c.push(function(){return h.stop()}),Cv(t,l,u,r,h.flushObservable)}var g=Nl(),b=bv(t,location),R=Ov(t),O=Hv(u,t,location,m,R,b,g,n,f),B=O.viewHistory,L=O.urlContexts,A=O.actionContexts,z=O.addAction,Bt=O.stop;c.push(Bt),ic();var D=cv(u,t,location,g,b,d,R,e,a),Tr=D.addTiming,Cr=D.startView,qe=D.updateViewName,Ir=D.setViewContext,xr=D.setViewContextProperty,Ye=D.stop;c.push(Ye);var Rr=_f(u,t,R).stop;if(c.push(Rr),yt(ot.LONG_ANIMATION_FRAME)){if(t.trackLongTasks){var kr=Fv(u,t).stop;c.push(kr)}}else cf(u,t);var Or=of(u,t,R,d).addError;ad(u,t,m);var Et=Kl(u,t).stop;c.push(Et);var W=dl(u,R,s),Ft=td(t.applicationId,m,B,A,L);return{addAction:z,addError:Or,addTiming:Tr,addFeatureFlagEvaluation:d.addFeatureFlagEvaluation,startView:Cr,setViewContext:Ir,setViewContextProperty:xr,updateViewName:qe,lifeCycle:u,viewHistory:B,session:m,stopSession:function(){return m.expire()},getInternalContext:Ft.get,startDurationVital:W.startDurationVital,stopDurationVital:W.stopDurationVital,addDurationVital:W.addDurationVital,stop:function(){c.forEach(function(F){return F()})}}}function zv(t){var e=nc("browser-rum-sdk",t);if(Wt()){var r=Te();e.observable.subscribe(function(n){return r.send("internal_telemetry",n)})}return e}function Hv(t,e,r,n,a,i,o,s,c){var u=nd(t),l=_v(t,i,r),f=rf(t,o,e,a),d=f.addAction,v=f.actionContexts,p=Lv(e),m=Bv(e);return Zl(e,t,n,u,l,v,p,m,s,c),{viewHistory:u,pageStateHistory:a,urlContexts:l,addAction:d,actionContexts:v,stop:function(){m.stop(),p.stop(),l.stop(),u.stop(),a.stop()}}}function Gv(t,e){var r=e.session,n=e.viewContext,a=e.errorType,i=r?r.id:"no-session-id",o=[];a!==void 0&&o.push("error-type=".concat(a)),n&&(o.push("seed=".concat(n.id)),o.push("from=".concat(n.startClocks.timeStamp)));var s=jv(t),c="/rum/replay/sessions/".concat(i);return"".concat(s).concat(c,"?").concat(o.join("&"))}function jv(t){var e=t.site,r=t.subdomain||Kv(t);return"https://".concat(r?"".concat(r,"."):"").concat(e)}function Kv(t){switch(t.site){case Rt:case nu:return"app";case ti:return"dd";default:return}}var qv=10,q;function Yv(t){return wr(t).segments_count}function Qv(t){wr(t).segments_count+=1}function Wv(t){wr(t).records_count+=1}function Xv(t,e){wr(t).segments_total_raw_size+=e}function Zv(t){return q==null?void 0:q.get(t)}function wr(t){q||(q=new Map);var e;return q.has(t)?e=q.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},q.set(t,e),q.size>qv&&Jv()),e}function Jv(){if(q)if(q.keys){var t=q.keys().next().value;t&&q.delete(t)}else{var e=!0;q.forEach(function(r,n){e&&(q.delete(n),e=!1)})}}var On=new WeakMap;function pt(t){return On.has(t)}function $v(t){for(var e=t;e;){if(!pt(e)&&!In(e))return!1;e=yr(e)}return!0}function Z(t){return On.get(t)}function tp(t,e){On.set(t,e)}function Nn(t,e){var r=t.tagName,n=t.value;if(Sr(t,e)){var a=t.type;return r==="INPUT"&&(a==="button"||a==="submit"||a==="reset")?n:!n||r==="OPTION"?void 0:kt}if(r==="OPTION"||r==="SELECT")return t.value;if(!(r!=="INPUT"&&r!=="TEXTAREA"))return n}var ep=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,rp=/^[A-Za-z]+:|^\/\//,np=/^data:.*,/i;function ap(t,e){return t.replace(ep,function(r,n,a,i,o,s){var c=a||o||s;if(!e||!c||rp.test(c)||np.test(c))return r;var u=n||i||"";return"url(".concat(u).concat(ip(c,e)).concat(u,")")})}function ip(t,e){try{return Ar(t,e).href}catch{return t}}var op=/[^a-z1-6-_]/;function ho(t){var e=t.toLowerCase().trim();return op.test(e)?"div":e}function Ia(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(t,"' height='").concat(e,"' style='background-color:silver'%3E%3C/svg%3E")}var vt={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},Xt={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},it={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},ut={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},xa={Play:0,Pause:1};function mo(t){if(!(t===void 0||t.length===0))return t.map(function(e){var r=e.cssRules||e.rules,n=Array.from(r,function(i){return i.cssText}),a={cssRules:n,disabled:e.disabled||void 0,media:e.media.length>0?Array.from(e.media):void 0};return a})}function go(t,e,r,n){if(e===S.HIDDEN)return null;var a=t.getAttribute(r);if(e===S.MASK&&r!==xn&&!Zi.includes(r)&&r!==n.actionNameAttribute){var i=t.tagName;switch(r){case"title":case"alt":case"placeholder":return kt}if(i==="IMG"&&(r==="src"||r==="srcset")){var o=t;if(o.naturalWidth>0)return Ia(o.naturalWidth,o.naturalHeight);var s=t.getBoundingClientRect(),c=s.width,u=s.height;return c>0||u>0?Ia(c,u):ua}if(i==="SOURCE"&&(r==="src"||r==="srcset"))return ua;if(i==="A"&&r==="href"||a&&Fe(r,"data-")||i==="IFRAME"&&r==="srcdoc")return kt}return!a||typeof a!="string"?a:Pi(a)?Ui(a):a}function sp(t,e,r){var n;if(e===S.HIDDEN)return{};for(var a={},i=ho(t.tagName),o=t.ownerDocument,s=0;s<t.attributes.length;s+=1){var c=t.attributes.item(s),u=c.name,l=go(t,e,u,r.configuration);l!==null&&(a[u]=l)}if(t.value&&(i==="textarea"||i==="select"||i==="option"||i==="input")){var f=Nn(t,e);f!==void 0&&(a.value=f)}if(i==="option"&&e===S.ALLOW){var d=t;d.selected&&(a.selected=d.selected)}if(i==="link"){var v=Array.from(o.styleSheets).find(function(O){return O.href===t.href}),p=cn(v);p&&v&&(a._cssText=p)}if(i==="style"&&t.sheet){var p=cn(t.sheet);p&&(a._cssText=p)}var m=t;if(i==="input"&&(m.type==="radio"||m.type==="checkbox")&&(e===S.ALLOW?a.checked=!!m.checked:Sr(m,e)&&delete a.checked),i==="audio"||i==="video"){var h=t;a.rr_mediaState=h.paused?"paused":"played"}var g,b,R=r.serializationContext;switch(R.status){case 0:g=Math.round(t.scrollTop),b=Math.round(t.scrollLeft),(g||b)&&R.elementsScrollPositions.set(t,{scrollTop:g,scrollLeft:b});break;case 1:R.elementsScrollPositions.has(t)&&(n=R.elementsScrollPositions.get(t),g=n.scrollTop,b=n.scrollLeft);break}return b&&(a.rr_scrollLeft=b),g&&(a.rr_scrollTop=g),a}function cn(t){if(!t)return null;var e;try{e=t.rules||t.cssRules}catch{}if(!e)return null;var r=Array.from(e,ws()?up:Ao).join("");return ap(r,t.href)}function up(t){if(lp(t)&&t.selectorText.includes(":")){var e=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return t.cssText.replace(e,"$1\\$2")}return Ao(t)}function Ao(t){return cp(t)&&cn(t.styleSheet)||t.cssText}function cp(t){return"styleSheet"in t}function lp(t){return"selectorText"in t}function Ln(t,e){var r=vp(t,e);if(!r)return null;var n=Z(t)||fp(),a=r;return a.id=n,tp(t,n),e.serializedNodeIds&&e.serializedNodeIds.add(n),a}var dp=1;function fp(){return dp++}function Mn(t,e){var r=[];return Ki(t,function(n){var a=Ln(n,e);a&&r.push(a)}),r}function vp(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return pp(t,e);case t.DOCUMENT_FRAGMENT_NODE:return hp(t,e);case t.DOCUMENT_TYPE_NODE:return mp(t);case t.ELEMENT_NODE:return gp(t,e);case t.TEXT_NODE:return _p(t,e);case t.CDATA_SECTION_NODE:return bp()}}function pp(t,e){return{type:Xt.Document,childNodes:Mn(t,e),adoptedStyleSheets:mo(t.adoptedStyleSheets)}}function hp(t,e){var r=In(t);return r&&e.serializationContext.shadowRootsController.addShadowRoot(t),{type:Xt.DocumentFragment,childNodes:Mn(t,e),isShadowRoot:r,adoptedStyleSheets:r?mo(t.adoptedStyleSheets):void 0}}function mp(t){return{type:Xt.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId}}function gp(t,e){var r,n=ho(t.tagName),a=Ap(t)||void 0,i=qi(Yi(t),e.parentNodePrivacyLevel);if(i===S.HIDDEN){var o=t.getBoundingClientRect(),s=o.width,c=o.height;return{type:Xt.Element,tagName:n,attributes:(r={rr_width:"".concat(s,"px"),rr_height:"".concat(c,"px")},r[xn]=md,r),childNodes:[],isSVG:a}}if(i!==S.IGNORE){var u=sp(t,i,e),l=[];if(hd(t)&&n!=="style"){var f=void 0;e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===(n==="head")?f=e:f=E({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:n==="head"}),l=Mn(t,f)}return{type:Xt.Element,tagName:n,attributes:u,childNodes:l,isSVG:a}}}function Ap(t){return t.tagName==="svg"||t instanceof SVGElement}function _p(t,e){var r=Qi(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(r!==void 0)return{type:Xt.Text,textContent:r}}function bp(){return{type:Xt.CDATA,textContent:""}}function yp(t,e,r){return Ln(t,{serializationContext:r,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function _o(t){return!!t.changedTouches}function Ke(t){return t.composed===!0&&br(t.target)?t.composedPath()[0]:t.target}var Ra=25;function Sp(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>Ra||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>Ra}var Ep=function(t,e){var r=window.visualViewport,n={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};if(r)Sp(r)?(n.layoutViewportX=Math.round(t+r.offsetLeft),n.layoutViewportY=Math.round(e+r.offsetTop)):(n.visualViewportX=Math.round(t-r.offsetLeft),n.visualViewportY=Math.round(e-r.offsetTop));else return n;return n},bo=function(t){return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}};function ct(t,e){return{data:E({source:t},e),type:vt.IncrementalSnapshot,timestamp:V()}}var wp=50;function Tp(t,e){var r=St(function(o){var s=Ke(o);if(pt(s)){var c=yo(o);if(!c)return;var u={id:Z(s),timeOffset:0,x:c.x,y:c.y};e(ct(_o(o)?it.TouchMove:it.MouseMove,{positions:[u]}))}},wp,{trailing:!1}),n=r.throttled,a=r.cancel,i=$(t,document,["mousemove","touchmove"],n,{capture:!0,passive:!0}).stop;return{stop:function(){i(),a()}}}function yo(t){var e=_o(t)?t.changedTouches[0]:t,r=e.clientX,n=e.clientY;if(window.visualViewport){var a=Ep(r,n),i=a.visualViewportX,o=a.visualViewportY;r=i,n=o}if(!Number.isFinite(r)||!Number.isFinite(n)){t.isTrusted&&Ee("mouse/touch event without x/y");return}return{x:r,y:n}}var st,ka=(st={},st.pointerup=ut.MouseUp,st.mousedown=ut.MouseDown,st.click=ut.Click,st.contextmenu=ut.ContextMenu,st.dblclick=ut.DblClick,st.focus=ut.Focus,st.blur=ut.Blur,st.touchstart=ut.TouchStart,st.touchend=ut.TouchEnd,st);function Cp(t,e,r){var n=function(a){var i=Ke(a);if(!(gt(i,t.defaultPrivacyLevel)===S.HIDDEN||!pt(i))){var o=Z(i),s=ka[a.type],c;if(s!==ut.Blur&&s!==ut.Focus){var u=yo(a);if(!u)return;c={id:o,type:s,x:u.x,y:u.y}}else c={id:o,type:s};var l=E({id:r.getIdForEvent(a)},ct(it.MouseInteraction,c));e(l)}};return $(t,document,Object.keys(ka),n,{capture:!0,passive:!0})}var Ip=100;function So(t,e,r,n){n===void 0&&(n=document);var a=St(function(c){var u=Ke(c);if(!(!u||gt(u,t.defaultPrivacyLevel)===S.HIDDEN||!pt(u))){var l=Z(u),f=u===document?{scrollTop:kn(),scrollLeft:co()}:{scrollTop:Math.round(u.scrollTop),scrollLeft:Math.round(u.scrollLeft)};r.set(u,f),e(ct(it.Scroll,{id:l,x:f.scrollLeft,y:f.scrollTop}))}},Ip),i=a.throttled,o=a.cancel,s=N(t,n,"scroll",i,{capture:!0,passive:!0}).stop;return{stop:function(){s(),o()}}}var xp=200;function Rp(t,e){var r=lo(t).subscribe(function(n){e(ct(it.ViewportResize,n))});return{stop:function(){r.unsubscribe()}}}function kp(t,e){var r=window.visualViewport;if(!r)return{stop:x};var n=St(function(){e({data:bo(r),type:vt.VisualViewport,timestamp:V()})},xp,{trailing:!1}),a=n.throttled,i=n.cancel,o=$(t,r,["resize","scroll"],a,{capture:!0,passive:!0}).stop;return{stop:function(){o(),i()}}}function Op(t,e){return $(t,document,["play","pause"],function(r){var n=Ke(r);!n||gt(n,t.defaultPrivacyLevel)===S.HIDDEN||!pt(n)||e(ct(it.MediaInteraction,{id:Z(n),type:r.type==="play"?xa.Play:xa.Pause}))},{capture:!0,passive:!0})}function Np(t){function e(a,i){a&&pt(a.ownerNode)&&i(Z(a.ownerNode))}var r=[J(CSSStyleSheet.prototype,"insertRule",function(a){var i=a.target,o=a.parameters,s=o[0],c=o[1];e(i,function(u){return t(ct(it.StyleSheetRule,{id:u,adds:[{rule:s,index:c}]}))})}),J(CSSStyleSheet.prototype,"deleteRule",function(a){var i=a.target,o=a.parameters[0];e(i,function(s){return t(ct(it.StyleSheetRule,{id:s,removes:[{index:o}]}))})})];typeof CSSGroupingRule<"u"?n(CSSGroupingRule):(n(CSSMediaRule),n(CSSSupportsRule));function n(a){r.push(J(a.prototype,"insertRule",function(i){var o=i.target,s=i.parameters,c=s[0],u=s[1];e(o.parentStyleSheet,function(l){var f=Oa(o);f&&(f.push(u||0),t(ct(it.StyleSheetRule,{id:l,adds:[{rule:c,index:f}]})))})}),J(a.prototype,"deleteRule",function(i){var o=i.target,s=i.parameters[0];e(o.parentStyleSheet,function(c){var u=Oa(o);u&&(u.push(s),t(ct(it.StyleSheetRule,{id:c,removes:[{index:u}]})))})}))}return{stop:function(){r.forEach(function(a){return a.stop()})}}}function Oa(t){for(var e=[],r=t;r.parentRule;){var n=Array.from(r.parentRule.cssRules),a=n.indexOf(r);e.unshift(a),r=r.parentRule}if(r.parentStyleSheet){var i=Array.from(r.parentStyleSheet.cssRules),o=i.indexOf(r);return e.unshift(o),e}}function Lp(t,e){return $(t,window,["focus","blur"],function(){e({data:{has_focus:document.hasFocus()},type:vt.Focus,timestamp:V()})})}function Mp(t,e,r){var n=t.subscribe(12,function(a){var i,o;a.rawRumEvent.type==="action"&&a.rawRumEvent.action.type==="click"&&(!((o=(i=a.rawRumEvent.action.frustration)===null||i===void 0?void 0:i.type)===null||o===void 0)&&o.length)&&"events"in a.domainContext&&a.domainContext.events&&a.domainContext.events.length&&e({timestamp:a.rawRumEvent.date,type:vt.FrustrationRecord,data:{frustrationTypes:a.rawRumEvent.action.frustration.type,recordIds:a.domainContext.events.map(function(s){return r.getIdForEvent(s)})}})});return{stop:function(){n.unsubscribe()}}}function Dp(t,e){var r=t.subscribe(5,function(){e({timestamp:V(),type:vt.ViewEnd})});return{stop:function(){r.unsubscribe()}}}function Eo(t,e,r){r===void 0&&(r=document);var n=t.defaultPrivacyLevel,a=new WeakMap,i=r!==document,o=$(t,r,i?["change"]:["input","change"],function(f){var d=Ke(f);(d instanceof HTMLInputElement||d instanceof HTMLTextAreaElement||d instanceof HTMLSelectElement)&&u(d)},{capture:!0,passive:!0}).stop,s;if(i)s=x;else{var c=[xe(HTMLInputElement.prototype,"value",u),xe(HTMLInputElement.prototype,"checked",u),xe(HTMLSelectElement.prototype,"value",u),xe(HTMLTextAreaElement.prototype,"value",u),xe(HTMLSelectElement.prototype,"selectedIndex",u)];s=function(){c.forEach(function(f){return f.stop()})}}return{stop:function(){s(),o()}};function u(f){var d=gt(f,n);if(d!==S.HIDDEN){var v=f.type,p;if(v==="radio"||v==="checkbox"){if(Sr(f,d))return;p={isChecked:f.checked}}else{var m=Nn(f,d);if(m===void 0)return;p={text:m}}l(f,p);var h=f.name;v==="radio"&&h&&f.checked&&hs(document.querySelectorAll('input[type="radio"][name="'.concat(Mt(h),'"]')),function(g){g!==f&&l(g,{isChecked:!1})})}}function l(f,d){if(pt(f)){var v=a.get(f);(!v||v.text!==d.text||v.isChecked!==d.isChecked)&&(a.set(f,d),e(ct(it.Input,E({id:Z(f)},d))))}}}var Pp=100,Up=16;function Bp(t){var e=x,r=[];function n(){e(),t(r),r=[]}var a=St(n,Up,{leading:!1}),i=a.throttled,o=a.cancel;return{addMutations:function(s){r.length===0&&(e=Fp(i,{timeout:Pp})),r.push.apply(r,s)},flush:n,stop:function(){e(),o()}}}function Fp(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var r=window.requestIdleCallback(y(t),e);return function(){return window.cancelIdleCallback(r)}}var n=window.requestAnimationFrame(y(t));return function(){return window.cancelAnimationFrame(n)}}function wo(t,e,r,n){var a=Ni();if(!a)return{stop:x,flush:x};var i=Bp(function(s){Vp(s.concat(o.takeRecords()),t,e,r)}),o=new a(y(i.addMutations));return o.observe(n,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){o.disconnect(),i.stop()},flush:function(){i.flush()}}}function Vp(t,e,r,n){var a=new Map;t.filter(function(d){return d.type==="childList"}).forEach(function(d){d.removedNodes.forEach(function(v){To(v,n.removeShadowRoot)})});var i=t.filter(function(d){return d.target.isConnected&&$v(d.target)&&gt(d.target,r.defaultPrivacyLevel,a)!==S.HIDDEN}),o=zp(i.filter(function(d){return d.type==="childList"}),r,n,a),s=o.adds,c=o.removes,u=o.hasBeenSerialized,l=Hp(i.filter(function(d){return d.type==="characterData"&&!u(d.target)}),r,a),f=Gp(i.filter(function(d){return d.type==="attributes"&&!u(d.target)}),r,a);!l.length&&!f.length&&!c.length&&!s.length||e(ct(it.Mutation,{adds:s,removes:c,texts:l,attributes:f}))}function zp(t,e,r,n){for(var a=new Set,i=new Map,o=function(L){L.addedNodes.forEach(function(A){a.add(A)}),L.removedNodes.forEach(function(A){a.has(A)||i.set(A,L.target),a.delete(A)})},s=0,c=t;s<c.length;s++){var u=c[s];o(u)}var l=Array.from(a);jp(l);for(var f=new Set,d=[],v=0,p=l;v<p.length;v++){var m=p[v];if(!O(m)){var h=gt(m.parentNode,e.defaultPrivacyLevel,n);if(!(h===S.HIDDEN||h===S.IGNORE)){var g=Ln(m,{serializedNodeIds:f,parentNodePrivacyLevel:h,serializationContext:{status:2,shadowRootsController:r},configuration:e});if(g){var b=yr(m);d.push({nextId:B(m),parentId:Z(b),node:g})}}}}var R=[];return i.forEach(function(L,A){pt(A)&&R.push({parentId:Z(L),id:Z(A)})}),{adds:d,removes:R,hasBeenSerialized:O};function O(L){return pt(L)&&f.has(Z(L))}function B(L){for(var A=L.nextSibling;A;){if(pt(A))return Z(A);A=A.nextSibling}return null}}function Hp(t,e,r){for(var n,a=[],i=new Set,o=t.filter(function(d){return i.has(d.target)?!1:(i.add(d.target),!0)}),s=0,c=o;s<c.length;s++){var u=c[s],l=u.target.textContent;if(l!==u.oldValue){var f=gt(yr(u.target),e.defaultPrivacyLevel,r);f===S.HIDDEN||f===S.IGNORE||a.push({id:Z(u.target),value:(n=Qi(u.target,!1,f))!==null&&n!==void 0?n:null})}}return a}function Gp(t,e,r){for(var n=[],a=new Map,i=t.filter(function(h){var g=a.get(h.target);return g&&g.has(h.attributeName)?!1:(g?g.add(h.attributeName):a.set(h.target,new Set([h.attributeName])),!0)}),o=new Map,s=0,c=i;s<c.length;s++){var u=c[s],l=u.target.getAttribute(u.attributeName);if(l!==u.oldValue){var f=gt(u.target,e.defaultPrivacyLevel,r),d=go(u.target,f,u.attributeName,e),v=void 0;if(u.attributeName==="value"){var p=Nn(u.target,f);if(p===void 0)continue;v=p}else typeof d=="string"?v=d:v=null;var m=o.get(u.target);m||(m={id:Z(u.target),attributes:{}},n.push(m),o.set(u.target,m)),m.attributes[u.attributeName]=v}}return n}function jp(t){t.sort(function(e,r){var n=e.compareDocumentPosition(r);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}function To(t,e){br(t)&&e(t.shadowRoot),Ki(t,function(r){return To(r,e)})}function Kp(){var t=new WeakMap;return{set:function(e,r){e===document&&!document.scrollingElement||t.set(e===document?document.scrollingElement:e,r)},get:function(e){return t.get(e)},has:function(e){return t.has(e)}}}var qp=function(t,e,r){var n=new Map,a={addShadowRoot:function(i){if(!n.has(i)){var o=wo(e,t,a,i),s=Eo(t,e,i),c=So(t,e,r,i);n.set(i,{flush:function(){return o.flush()},stop:function(){o.stop(),s.stop(),c.stop()}})}},removeShadowRoot:function(i){var o=n.get(i);o&&(o.stop(),n.delete(i))},stop:function(){n.forEach(function(i){var o=i.stop;return o()})},flush:function(){n.forEach(function(i){var o=i.flush;return o()})}};return a};function Yp(t,e,r,n,a,i){var o=function(c,u){c===void 0&&(c=V()),u===void 0&&(u={status:0,elementsScrollPositions:t,shadowRootsController:e});var l=Er(),f=l.width,d=l.height,v=[{data:{height:d,href:window.location.href,width:f},type:vt.Meta,timestamp:c},{data:{has_focus:document.hasFocus()},type:vt.Focus,timestamp:c},{data:{node:yp(document,n,u),initialOffset:{left:co(),top:kn()}},type:vt.FullSnapshot,timestamp:c}];return window.visualViewport&&v.push({data:bo(window.visualViewport),type:vt.VisualViewport,timestamp:c}),v};i(o());var s=r.subscribe(3,function(c){a(),i(o(c.startClocks.timeStamp,{shadowRootsController:e,status:1,elementsScrollPositions:t}))}).unsubscribe;return{stop:s}}function Qp(){var t=new WeakMap,e=1;return{getIdForEvent:function(r){return t.has(r)||t.set(r,e++),t.get(r)}}}function Wp(t){var e=t.emit,r=t.configuration,n=t.lifeCycle;if(!e)throw new Error("emit function is required");var a=function(d){e(d),bn("record",{record:d});var v=t.viewHistory.findView();Wv(v.id)},i=Kp(),o=qp(r,a,i),s=Yp(i,o,n,r,c,function(d){return d.forEach(function(v){return a(v)})}).stop;function c(){o.flush(),l.flush()}var u=Qp(),l=wo(a,r,o,document),f=[l,Tp(r,a),Cp(r,a,u),So(r,a,i,document),Rp(r,a),Eo(r,a),Op(r,a),Np(a),Lp(r,a),kp(r,a),Mp(n,a,u),Dp(n,function(d){c(),a(d)})];return{stop:function(){o.stop(),f.forEach(function(d){return d.stop()}),s()},flushMutations:c,shadowRootsController:o}}function Xp(t,e,r){var n=new FormData;n.append("segment",new Blob([t],{type:"application/octet-stream"}),"".concat(e.session.id,"-").concat(e.start));var a=E({raw_segment_size:r,compressed_segment_size:t.byteLength},e),i=JSON.stringify(a);return n.append("event",new Blob([i],{type:"application/json"})),{data:n,bytesCount:t.byteLength}}function Zp(t){var e=t.context,r=t.creationReason,n=t.encoder,a=0,i=e.view.id,o=E({start:1/0,end:-1/0,creation_reason:r,records_count:0,has_full_snapshot:!1,index_in_view:Yv(i),source:"browser"},e);Qv(i);function s(u,l){o.start=Math.min(o.start,u.timestamp),o.end=Math.max(o.end,u.timestamp),o.records_count+=1,o.has_full_snapshot||(o.has_full_snapshot=u.type===vt.FullSnapshot);var f=n.isEmpty?'{"records":[':",";n.write(f+JSON.stringify(u),function(d){a+=d,l(a)})}function c(u){if(n.isEmpty)throw new Error("Empty segment flushed");n.write("],".concat(JSON.stringify(o).slice(1),`
`)),n.finish(function(l){Xv(o.view.id,l.rawBytesCount),u(o,l)})}return{addRecord:s,flush:c}}var Jp=30*Q,Co=6e4;function $p(t,e,r,n,a,i){return th(t,function(){return eh(e.applicationId,r,n)},a,i)}function th(t,e,r,n){var a={status:0,nextSegmentCreationReason:"init"},i=t.subscribe(3,function(){s("view_change")}).unsubscribe,o=t.subscribe(11,function(c){s(c.reason)}).unsubscribe;function s(c){a.status===1&&(a.segment.flush(function(u,l){var f=Xp(l.output,u,l.rawBytesCount);wi(c)?r.sendOnExit(f):r.send(f)}),at(a.expirationTimeoutId)),c!=="stop"?a={status:0,nextSegmentCreationReason:c}:a={status:2}}return{addRecord:function(c){if(a.status!==2){if(a.status===0){var u=e();if(!u)return;a={status:1,segment:Zp({encoder:n,context:u,creationReason:a.nextSegmentCreationReason}),expirationTimeoutId:H(function(){s("segment_duration_limit")},Jp)}}a.segment.addRecord(c,function(l){l>Co&&s("segment_bytes_limit")})}},stop:function(){s("stop"),i(),o()}}}function eh(t,e,r){var n=e.findTrackedSession(),a=r.findView();if(!(!n||!a))return{application:{id:t},session:{id:n.id},view:{id:a.id}}}function rh(t){var e=Te();return{addRecord:function(r){var n=t.findView();e.send("record",r,n.id)}}}function nh(t,e,r,n,a,i){var o=[],s=function(d){t.notify(14,{error:d}),Ee("Error reported to customer",{"error.message":d.message})},c=i||Si(e,e.sessionReplayEndpointBuilder,Co,s),u;if(Wt())u=rh(n).addRecord;else{var l=$p(t,e,r,n,c,a);u=l.addRecord,o.push(l.stop)}var f=Wp({emit:u,configuration:e,lifeCycle:t,viewHistory:n}).stop;return o.push(f),{stop:function(){o.forEach(function(d){return d()})}}}function Io(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function ah(t,e,r,n){var a=e.findTrackedSession(),i=ih(a,n),o=r.findView();return Gv(t,{viewContext:o,errorType:i,session:a})}function ih(t,e){if(!Io())return"browser-not-supported";if(!t)return"rum-not-tracked";if(t.sessionReplay===0)return"incorrect-session-plan";if(!e)return"replay-not-started"}function xo(t,e,r){var n=0,a=[],i,o=0,s=[],c=N(t,e,"message",function(f){var d=f.data;if(!(d.type!=="wrote"||d.streamId!==r)){n+=d.additionalBytesCount,a.push(d.result),i=d.trailer;var v=s.shift();v&&v.id===d.id?v.writeCallback?v.writeCallback(d.result.byteLength):v.finishCallback&&v.finishCallback():(c(),Ee("Worker responses received out of order."))}}).stop;function u(){var f=a.length===0?new Uint8Array(0):vs(a.concat(i)),d={rawBytesCount:n,output:f,outputBytesCount:f.byteLength,encoding:"deflate"};return n=0,a=[],d}function l(){o>0&&(e.postMessage({action:"reset",streamId:r}),o=0)}return{isAsync:!0,get isEmpty(){return o===0},write:function(f,d){e.postMessage({action:"write",id:o,data:f,streamId:r}),s.push({id:o,writeCallback:d,data:f}),o+=1},finish:function(f){l(),s.length?(s.forEach(function(d){delete d.writeCallback}),s[s.length-1].finishCallback=function(){return f(u())}):f(u())},finishSync:function(){l();var f=s.map(function(d){return delete d.writeCallback,delete d.finishCallback,d.data}).join("");return E(u(),{pendingData:f})},estimateEncodedBytesCount:function(f){return f.length/8},stop:function(){c()}}}var oh=10*Q;function Ro(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=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]),_=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]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(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 m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(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)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;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},U=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=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]},R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,l,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},D=function(t,e,n,r){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&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<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(E(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_tr_tally:function(t,e,n){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&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(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)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,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|0},H=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}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},Y={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"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},kt=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))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(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<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(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-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(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=yt(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=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(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-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||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=X(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=yt(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&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(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=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(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 Lt=[new Rt(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(Zt(t),0===t.lookahead&&e===q)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,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){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=ut,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),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(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),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(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}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[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),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)},Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(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)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(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=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(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=M(t.adler,r.pending_buf,r.pending-a,a)),kt(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,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(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=M(t.adler,r.pending_buf,r.pending-a,a)),kt(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,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)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+ft;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=ft-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(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=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=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},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};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 Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.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?Pt:Mt,"[object ArrayBuffer]"===Ht.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),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;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},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(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,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.27.0"};case"write":var n=e.get(a.streamId);n||(n=new Jt,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(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,K.Z_SYNC_FLUSH),{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){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var U={status:0};function ko(t,e,r,n){switch(n===void 0&&(n=Ro),U.status===0&&sh(t,e,n),U.status){case 1:return U.initializationFailureCallbacks.push(r),U.worker;case 3:return U.worker}}function Na(){return U.status}function sh(t,e,r){r===void 0&&(r=Ro);try{var n=r(t),a=N(t,n,"error",function(s){$r(t,e,s)}).stop,i=N(t,n,"message",function(s){var c=s.data;c.type==="errored"?$r(t,e,c.error,c.streamId):c.type==="initialized"&&ch(c.version)}).stop;n.postMessage({action:"init"}),H(function(){return uh(e)},oh);var o=function(){a(),i()};U={status:1,worker:n,stop:o,initializationFailureCallbacks:[]}}catch(s){$r(t,e,s)}}function uh(t){U.status===1&&(I.error("".concat(t," failed to start: a timeout occurred while initializing the Worker")),U.initializationFailureCallbacks.forEach(function(e){return e()}),U={status:2})}function ch(t){U.status===1&&(U={status:3,worker:U.worker,stop:U.stop,version:t})}function $r(t,e,r,n){if(U.status===1||U.status===0){if(I.error("".concat(e," failed to start: an error occurred while creating the Worker:"),r),r instanceof Event||r instanceof Error&&lh(r.message)){var a=void 0;t.workerUrl?a="Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):a="Please make sure CSP is correctly configured.",I.error("".concat(a," See documentation at ").concat(vr,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else dr(r);U.status===1&&U.initializationFailureCallbacks.forEach(function(i){return i()}),U={status:2}}else dr(r,{worker_version:U.status===3&&U.version,stream_id:n})}function lh(t){return dt(t,"Content Security Policy")||dt(t,"requires 'TrustedScriptURL'")}function dh(t,e){if(Wt()&&!Ei("records")||!Io())return{start:x,stop:x,getReplayStats:function(){},onRumStart:x,isRecording:function(){return!1},getSessionReplayLink:function(){}};var r={status:1},n=function(){r={status:1}},a=function(){r={status:0}},i=x;return{start:function(o){return n(o)},stop:function(){return a()},getSessionReplayLink:function(){return i()},onRumStart:function(o,s,c,u,l){s.startSessionReplayRecordingManually&&(r={status:0}),o.subscribe(9,function(){(r.status===2||r.status===3)&&(a(),r={status:1})}),o.subscribe(11,function(v){v.reason===le.UNLOADING&&a()}),o.subscribe(10,function(){r.status===1&&n()});var f;function d(){return f||(l||(l=ko(s,"Datadog Session Replay",function(){a()},e)),l&&(f=xo(s,l,1))),f}n=function(v){var p=c.findTrackedSession();if(!p||p.sessionReplay===0&&(!v||!v.force)){r={status:1};return}r.status===2||r.status===3||(r={status:2},Sn(s,"interactive",function(){if(r.status===2){var m=d();if(!m){r={status:0};return}var h=t(o,s,c,u,m).stop;r={status:3,stopRecording:h}}}),v&&v.force&&p.sessionReplay===0&&c.setForcedReplay())},a=function(){r.status!==0&&(r.status===3&&r.stopRecording(),r={status:0})},i=function(){return ah(s,c,u,r.status!==0)},r.status===1&&n()},isRecording:function(){return Na()===3&&r.status===3},getReplayStats:function(o){return Na()===3?Zv(o):void 0}}}var fh=dh(nh),Oo=kl(Vv,fh,{startDeflateWorker:ko,createDeflateEncoder:xo});Yu(Dt(),"DD_RUM",Oo);var ft,La,vh=(La=class extends Pa{constructor(e={}){super();nt(this,ft);this.config=e,G(this,ft,new Map)}build(e,r,n){const a=r.queryKey,i=r.queryHash??Ua(a,r);let o=this.get(i);return o||(o=new Do({cache:this,queryKey:a,queryHash:i,options:e.defaultQueryOptions(r),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(o)),o}add(e){_(this,ft).has(e.queryHash)||(_(this,ft).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=_(this,ft).get(e.queryHash);r&&(e.destroy(),r===e&&_(this,ft).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){rt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return _(this,ft).get(e)}getAll(){return[..._(this,ft).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(n=>Un(r,n))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(n=>Un(e,n)):r}notify(e){rt.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){rt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){rt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ft=new WeakMap,La),et,Ue,Ma,ph=(Ma=class extends Pa{constructor(e={}){super();nt(this,et);nt(this,Ue);this.config=e,G(this,et,new Map),G(this,Ue,Date.now())}build(e,r,n){const a=new Vo({mutationCache:this,mutationId:++Qe(this,Ue)._,options:e.defaultMutationOptions(r),state:n});return this.add(a),a}add(e){const r=rr(e),n=_(this,et).get(r)??[];n.push(e),_(this,et).set(r,n),this.notify({type:"added",mutation:e})}remove(e){var n;const r=rr(e);if(_(this,et).has(r)){const a=(n=_(this,et).get(r))==null?void 0:n.filter(i=>i!==e);a&&(a.length===0?_(this,et).delete(r):_(this,et).set(r,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const r=(n=_(this,et).get(rr(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===e}runNext(e){var n;const r=(n=_(this,et).get(rr(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){rt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[..._(this,et).values()].flat()}find(e){const r={exact:!0,...e};return this.getAll().find(n=>Bn(r,n))}findAll(e={}){return this.getAll().filter(r=>Bn(e,r))}notify(e){rt.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){const e=this.getAll().filter(r=>r.state.isPaused);return rt.batch(()=>Promise.all(e.map(r=>r.continue().catch(At))))}},et=new WeakMap,Ue=new WeakMap,Ma);function rr(t){var e;return((e=t.options.scope)==null?void 0:e.id)??String(t.mutationId)}var M,Tt,Ct,de,fe,It,ve,pe,Da,hh=(Da=class{constructor(t={}){nt(this,M);nt(this,Tt);nt(this,Ct);nt(this,de);nt(this,fe);nt(this,It);nt(this,ve);nt(this,pe);G(this,M,t.queryCache||new vh),G(this,Tt,t.mutationCache||new ph),G(this,Ct,t.defaultOptions||{}),G(this,de,new Map),G(this,fe,new Map),G(this,It,0)}mount(){Qe(this,It)._++,_(this,It)===1&&(G(this,ve,Po.subscribe(async t=>{t&&(await this.resumePausedMutations(),_(this,M).onFocus())})),G(this,pe,Fn.subscribe(async t=>{t&&(await this.resumePausedMutations(),_(this,M).onOnline())})))}unmount(){var t,e;Qe(this,It)._--,_(this,It)===0&&((t=_(this,ve))==null||t.call(this),G(this,ve,void 0),(e=_(this,pe))==null||e.call(this),G(this,pe,void 0))}isFetching(t){return _(this,M).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return _(this,Tt).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=_(this,M).get(e.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const r=this.defaultQueryOptions(t),n=_(this,M).build(this,r);return t.revalidateIfStale&&n.isStaleByTime(Vn(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(e)}}getQueriesData(t){return _(this,M).findAll(t).map(({queryKey:e,state:r})=>{const n=r.data;return[e,n]})}setQueryData(t,e,r){const n=this.defaultQueryOptions({queryKey:t}),a=_(this,M).get(n.queryHash),i=a==null?void 0:a.state.data,o=Uo(e,i);if(o!==void 0)return _(this,M).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(t,e,r){return rt.batch(()=>_(this,M).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,r)]))}getQueryState(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=_(this,M).get(e.queryHash))==null?void 0:r.state}removeQueries(t){const e=_(this,M);rt.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=_(this,M),n={type:"active",...t};return rt.batch(()=>(r.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t={},e={}){const r={revert:!0,...e},n=rt.batch(()=>_(this,M).findAll(t).map(a=>a.cancel(r)));return Promise.all(n).then(At).catch(At)}invalidateQueries(t={},e={}){return rt.batch(()=>{if(_(this,M).findAll(t).forEach(n=>{n.invalidate()}),t.refetchType==="none")return Promise.resolve();const r={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(r,e)})}refetchQueries(t={},e){const r={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},n=rt.batch(()=>_(this,M).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let i=a.fetch(void 0,r);return r.throwOnError||(i=i.catch(At)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(At)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=_(this,M).build(this,e);return r.isStaleByTime(Vn(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(At).catch(At)}fetchInfiniteQuery(t){return t.behavior=Gn(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(At).catch(At)}ensureInfiniteQueryData(t){return t.behavior=Gn(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Fn.isOnline()?_(this,Tt).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,M)}getMutationCache(){return _(this,Tt)}getDefaultOptions(){return _(this,Ct)}setDefaultOptions(t){G(this,Ct,t)}setQueryDefaults(t,e){_(this,de).set(zn(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[..._(this,de).values()];let r={};return e.forEach(n=>{Hn(t,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(t,e){_(this,fe).set(zn(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[..._(this,fe).values()];let r={};return e.forEach(n=>{Hn(t,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={..._(this,Ct).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Ua(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===Bo&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{..._(this,Ct).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){_(this,M).clear(),_(this,Tt).clear()}},M=new WeakMap,Tt=new WeakMap,Ct=new WeakMap,de=new WeakMap,fe=new WeakMap,It=new WeakMap,ve=new WeakMap,pe=new WeakMap,Da),mh=function(){return null};const gh="/assets/audi-BVec-mEf.ico",Ah="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAABMLAAATCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdKksACQsRAAkOHAkKDx4ICw4TAB4vTgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwUJAAMECBEDBQtiBAULYgMECBADBQkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwsUAAAAAAABAgRrAgIFlwICBJcBAgRqAAAAAAgLFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJz94AAICBAACBAcqAQEC1wIDBVsCAwVcAQEC1wMEBykCAgQAM0uFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQGCwAFCA8HAQECoAEBAeQDBQkjAwUJIwEBAeQBAgOgBwoRBwUHDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoPGwAAAAAAAgMFVwAAAfgBAQOwCAwWBgkOGAYBAgOxAAAB+AIDBVcAAAAADhMeAAAAAAAAAAAAAAAAAAAAAAACBAYAAwUJHwEBAs4AAAD/AgMFbwAAAAAAAAAAAgMFbwAAAP8BAQLOBAUJHwMEBwAAAAAAAAAAAAAAAAASHTYAAAAAAAIDBXMAAAD/AAAA/gICBIsEBwwYBQcNGQICBIsAAAD+AAAA/wIDBXIAAAAAFyVCAAAAAAAeKD4AAgMGAAQGCxgDBAhgAQIDvAABAe8AAAD8AQEC1AEBAtQAAAD8AAEB7wECA7wEBQlgBQgNGAIEBwAmMkoABAcLAAUIDgoBAgOmAQIEugQHDT0CAwWwAAAA/wAAAP8AAAD/AAAA/wIDBbAGCQ89AgIEugECA6YHCxEKBggNAAAAAAACAwVeAAAB+AECA9wBAQLbAAEB8QEBAsgCAwWDAgMFgwECA8gBAQHxAQEC2wECA9wAAQH4AwQGXgAAAAADBQgrAQEC1QAAAfoBAQLSAQIEjgMECEIFCQ8QIztnACY9ZQAGChAQAwUIQgIDBY4BAgPSAAEB+gEBAtUFBgorAgQIggECBJoCBAdNBAcNFhEbLgELEh8AAAAAAAAAAAAAAAAAAAAAAA4WIwAVITQBBgoQFgQFCE0CAwWaBAYJggYKEhcHDBYDBgsUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALEBkADBIcAwsPFxcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8AAPw/AAD8PwAA/D8AAPgfAADwDwAA8A8AAOGHAADgBwAAwAMAAIABAACAAQAAAAAAAAfgAAA//AAA//8AAA==",_h="/assets/vw-D67X5wEJ.ico",bh="/assets/seat-nBF5U7nJ.ico",yh="/assets/skoda-Cd7DNx7P.ico",Sh="/assets/vw-D67X5wEJ.ico",Eh="/assets/tailwind.audi19-Isgf7Kzf.css",wh="/assets/tailwind.cupra20-T7Jg_Mbq.css",Th="/assets/tailwind.seat21-DKoDpkLL.css",Ch="/assets/tailwind.skoda23-DINvE1_a.css",Ih="/assets/tailwind.vw19-CPtNjgul.css",xh={AUDI19:Eh,CUPRA20:wh,SEAT21:Th,SKODA23:Ch,VW19:Ih},Rh={[$t.AUDI]:gh,[$t.CUPRA]:Ah,[$t.LNF]:_h,[$t.SEAT]:bh,[$t.SKODA]:yh,[$t.VW]:Sh};function kh({brand:t,theme:e}){const r=i=>[{rel:"stylesheet",href:xh[i]},{rel:"stylesheet",href:`https://assets.stockcars.porscheinformatik.cloud/fonts/${i.toLowerCase()}/fonts.css`}],n=i=>({rel:"icon",type:"image/x-icon",href:Rh[i]}),a=(i,o)=>[...r(o),n(i)];return C.jsx(C.Fragment,{children:a(t,e).map((i,o)=>C.jsx("link",{...i},o))})}function Oh({googleSiteVerificationId:t}){return C.jsx("meta",{name:"google-site-verification",content:t??""})}function Nh({oneTrustCookieApi:t}){return C.jsx(C.Fragment,{children:t&&C.jsxs(C.Fragment,{children:[C.jsx("link",{rel:"preload",href:t.url,as:"script"}),C.jsx("script",{src:t.url,async:!0,type:"text/javascript","data-domain-script":t.dataDomainScript,"data-document-language":!0})]})})}function $h(){var s,c;const t=$o(),e=Go(),[r]=ae.useState(()=>new hh({defaultOptions:{queries:{staleTime:Wo,retry:0}}})),[n,a]=ae.useState(!1),i={...t.initialConfig,...qo(Yo()),baseUrl:t.baseUrl},o={msUrl:i.properties.msUrl,ccUrl:i.properties.ccUrl,carlogUrl:i.properties.carlogUrl,brandingHomepageUrl:i.brandingHomepageUrl,priceConfig:i.properties.priceConfig,financeCalcConfig:i.properties.financeCalc,externalTestDriveUrl:i.properties.externalTestDriveUrl,dataProtectionUrl:i.properties.dataProtectionUrl,moonConsultationUrl:i.properties.moonConsultationUrl,contactUrl:i.properties.contactUrl,oneTrustCookieApi:i.properties.oneTrustCookieApi,googleTagManager:i.properties.googleTagManager,carFilter:i.properties.carFilter};return ae.useEffect(()=>{a(!0)},[]),ae.useEffect(()=>{const u=t.environment;if(i.properties.datadogRum&&(!i.properties.datadogRum.requiresConsent||e!=null&&e.performance)&&!u.isDevelop){const l=i.properties.datadogRum,f=u.pagesBranch=="develop"?l.env:u.pagesBranch;Oo.init({applicationId:l==null?void 0:l.applicationId,clientToken:l==null?void 0:l.clientToken,site:l==null?void 0:l.site,service:l==null?void 0:l.service,env:f,version:u.pagesCommitSha,sessionSampleRate:l==null?void 0:l.sessionSampleRate,sessionReplaySampleRate:l==null?void 0:l.sessionReplaySampleRate,telemetrySampleRate:l==null?void 0:l.telemetrySampleRate,trackResources:l==null?void 0:l.trackResources,trackLongTasks:l==null?void 0:l.trackLongTasks,trackUserInteractions:l==null?void 0:l.trackUserInteractions,defaultPrivacyLevel:ce[l==null?void 0:l.defaultPrivacyLevel],silentMultipleInit:!0})}},[i.properties.datadogRum,t.environment,e==null?void 0:e.performance]),C.jsxs("html",{lang:i.language,"data-hydrated":n,className:i.theme.toLowerCase(),children:[C.jsxs("head",{children:[C.jsx("base",{href:"/"}),C.jsx("meta",{charSet:"utf-8"}),C.jsx("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),C.jsx(kh,{brand:i.brand,theme:Nr(i.brand)}),C.jsx(Oh,{googleSiteVerificationId:(s=i.properties)==null?void 0:s.googleSiteVerificationId}),C.jsx(ts,{}),C.jsx(es,{})]}),C.jsxs("body",{children:[C.jsx(Qo,{canonicalBaseUrl:i.canonicalBaseUrl,brand:i.brand,tailwindTheme:Nr(i.brand),dealer:t.dealer,dealerGroup:i.dealerGroup,internetDealerId:i.internetDealerId,country:i.country,language:(c=i.language)==null?void 0:c.split("-")[0],locale:i.language,enabledFeatures:i.enabledFeatures,frontendProperties:o,disclaimerLinks:i.disclaimerLinks,baseHref:i.baseHref,heading:i.heading,priceContext:i.priceContext,environment:t.environment,theme:i.brand,baseUrl:"",children:C.jsx(zo,{country:i.country,children:C.jsx(Ko,{children:C.jsx(Fo,{client:r,children:C.jsxs(Ho,{country:i.country,brand:i.brand,children:[C.jsx(Mo,{}),C.jsx(mh,{initialIsOpen:!1})]})})})})}),C.jsx(ns,{}),C.jsx(jo,{initialConfig:{...i,theme:Nr(i.brand),baseHref:i.baseHref}}),C.jsx(Nh,{oneTrustCookieApi:i.properties.oneTrustCookieApi}),C.jsx(rs,{})]})]})}export{$h as default};
