PageSourceSearch

https://login2.boomerang-partners.com/anonymous/assets/anonymous.1bfdef00.js

js boomerang-partners.com collected 2026-09-30 17:26:33 UTC 146,473 bytes, 1 lines download raw bytes

1var t,e,n,r,i,a,o,s,u,c,l,d,f,p,h,v,m,g,_,y,b,w,S,T,E,k,x,C,A,R,I={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},N=console,O={};Object.keys(I).forEach(function(t){O[t]=N[t]});var L="Datadog Browser SDK:",M={debug:O.debug.bind(N,L),log:O.log.bind(N,L),info:O.info.bind(N,L),warn:O.warn.bind(N,L),error:O.error.bind(N,L)};function U(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return t.apply(void 0,n)}catch(t){M.error(e,t)}}}var P=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},z=!1;function D(t){z=t}function B(t){return function(){return F(t,this,arguments)}}function F(t,e,n){try{return t.apply(e,n)}catch(t){if(V(t),a)try{a(t)}catch(t){V(t)}}}function V(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];z&&M.error.apply(M,P(["[MONITOR]"],t,!1))}function H(t,e){return -1!==t.indexOf(e)}function q(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach(function(t){return e.push(t)});else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function j(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n))return r}}function Z(t){return Object.keys(t).map(function(e){return t[e]})}function G(t){return Object.keys(t).map(function(e){return[e,t[e]]})}function K(t,e){return t.slice(0,e.length)===e}function X(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)})}function W(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.forEach(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t}function Y(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var t=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof t&&(t="object"==typeof self?self:"object"==typeof window?window:{}),t}var J=function(){function t(){this.buffer=[]}return t.prototype.add=function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},t.prototype.drain=function(){this.buffer.forEach(function(t){return t()}),this.buffer.length=0},t}();function $(){var t=Y().DatadogEventBridge;if(t)return{getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n){t.send(JSON.stringify({eventType:e,event:n}))}}}function Q(t){void 0===t&&(t=null==(e=Y().location)?void 0:e.hostname);var e,n=$();return!!n&&n.getAllowedWebViewHosts().some(function(e){var n,r;return t===e||(n=t,r=".".concat(e),n.slice(-r.length)===r)})}function tt(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function te(t){var e=W({},t);return["id","name","email"].forEach(function(t){t in e&&(e[t]=String(e[t]))}),e}function tn(t){return 0!==t&&100*Math.random()<=t}function tr(t,e){return+t.toFixed(e)}function ti(t){return ta(t)&&t>=0&&t<=100}function ta(t){return"number"==typeof t}var to=31536e6;function ts(t){var e,n,r;return{relative:t,timeStamp:(e=t,(n=tc()-performance.now())>th()?Math.round(function(t,e){return t+e}(n,e)):(r=e,Math.round(th()+r)))}}function tu(t){return ta(t)?tr(1e6*t,0):t}function tc(){return new Date().getTime()}function tl(){return tc()}function td(){return performance.now()}function tf(){return{relative:td(),timeStamp:tl()}}function tp(){return{relative:0,timeStamp:th()}}function th(){return void 0===o&&(o=performance.timing.navigationStart),o}function tv(t,e,n){if(void 0===n&&(n=function(){if("u">typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],a=0;a<e.length;++a)i[a]=tv(i[a],e[a],n);return i}var o="object"===tt(t)?t:{};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(o[s]=tv(o[s],e[s],n));return o}}function tm(t){return tv(void 0,t)}function tg(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=0;r<e.length;r++){var i=e[r];null!=i&&(t=tv(t,i))}return t}var t_=/[^\u0000-\u007F]/;function ty(t){return t_.test(t)?void 0!==window.TextEncoder?new TextEncoder().encode(t).length:new Blob([t]).size:t.length}function tb(t,e){var n,r=Y();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}function tw(t,e){return tb(Y(),"setTimeout")(B(t),e)}function tS(t){tb(Y(),"clearTimeout")(t)}function tT(t,e){return tb(Y(),"setInterval")(B(t),e)}function tE(t){tb(Y(),"clearInterval")(t)}function tk(t,e,n){var r,i,a=!n||void 0===n.leading||n.leading,o=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],u=0;u<arguments.length;u++)n[u]=arguments[u];if(s){r=n;return}a?t.apply(void 0,n):r=n,s=!0,i=tw(function(){o&&r&&t.apply(void 0,r),s=!1,r=void 0},e)},cancel:function(){tS(i),s=!1,r=void 0}}}function tx(){}function tC(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);var r=tA(Object.prototype),i=tA(Array.prototype),a=tA(Object.getPrototypeOf(t)),o=tA(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),a(),o()}}function tA(t){var e=t.toJSON;return e?(delete t.toJSON,function(){t.toJSON=e}):tx}function tR(t,e){void 0===e&&(e=225280);var n,r=tA(Object.prototype),i=tA(Array.prototype),a=[],o=new WeakMap,s=tI(t,"$",void 0,a,o),u=(null==(n=JSON.stringify(s))?void 0:n.length)||0;if(u>e)return void tN(e,"discarded",t);for(;a.length>0&&u<e;){var c=a.shift(),l=0;if(Array.isArray(c.source))for(var d=0;d<c.source.length;d++){var f=tI(c.source[d],c.path,d,a,o);if(void 0!==f?u+=JSON.stringify(f).length:u+=4,u+=l,l=1,u>e){tN(e,"truncated",t);break}c.target[d]=f}else for(var d in c.source)if(Object.prototype.hasOwnProperty.call(c.source,d)){var f=tI(c.source[d],c.path,d,a,o);if(void 0!==f&&(u+=JSON.stringify(f).length+l+d.length+3,l=1),u>e){tN(e,"truncated",t);break}c.target[d]=f}}return r(),i(),s}function tI(t,e,n,r,i){var a,o=function(t){if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(t){}return t}(t);if(!o||"object"!=typeof o){return"bigint"==typeof(a=o)?"[BigInt] ".concat(a.toString()):"function"==typeof a?"[Function] ".concat(a.name||"unknown"):"symbol"==typeof a?"[Symbol] ".concat(a.description||a.toString()):a}var s=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"[".concat(e[1],"]")}catch(t){}return"[Unserializable]"}(o);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;if(i.has(t))return"[Reference seen at ".concat(i.get(t),"]");var u=void 0!==n?"".concat(e,".").concat(n):e,c=Array.isArray(o)?[]:{};return i.set(t,u),r.push({source:o,target:c,path:u}),c}function tN(t,e,n){M.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}var tO=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(t),{unsubscribe:function(){e.observers=e.observers.filter(function(e){return t!==e}),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}}
1,t.prototype.notify=function(t){this.observers.forEach(function(e){return e(t)})},t}();function tL(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=new tO(function(){var e=t.map(function(t){return t.subscribe(function(t){return n.notify(t)})});return function(){return e.forEach(function(t){return t.unsubscribe()})}});return n}var tM=((s={})[0]="feature flag evaluation",s[1]="user",s[2]="global context",s[3]="logger context",s);function tU(t,e){return t>3072&&(M.warn("The ".concat(tM[e]," data exceeds the recommended ").concat(3,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-3kib-warning")),!0)}function tP(t,e){void 0===e&&(e=ty);var n,r={},i=!1,a=new tO,o=tk(function(r){n=e(tC(r)),i||(i=tU(n,t))},200).throttled,s={getBytesCount:function(){return n},get:function(){return r},add:function(t,e){r[t]=e,o(r),a.notify()},remove:function(t){delete r[t],o(r),a.notify()},set:function(t){o(r=t),a.notify()},getContext:function(){return tm(r)},setContext:function(t){"object"===tt(t)?o(r=tR(t)):s.clearContext(),a.notify()},setContextProperty:function(t,e){r[t]=tR(e),o(r),a.notify()},removeContextProperty:function(t){delete r[t],o(r),a.notify()},clearContext:function(){r={},n=0,a.notify()},changeObservable:a};return s}function tz(t){var e=[],n=tG(t,"stack"),r=String(t);return n&&K(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(function(t){var n=function(t){var e=tF.exec(t);if(e){var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=tV.exec(e[2]);return r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]),{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}}(t)||function(t){var e=tH.exec(t);if(e)return{args:[],column:e[3]?+e[3]:void 0,func:"?",line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=tq.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:+e[3],url:e[2]}}(t)||function(t){var e=tj.exec(t);if(e){var n=e[3]&&e[3].indexOf(" > eval")>-1,r=tZ.exec(e[3]);return n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||"?",line:e[4]?+e[4]:void 0,url:e[3]}}}(t);n&&(!n.func&&n.line&&(n.func="?"),e.push(n))}),{message:tG(t,"message"),name:tG(t,"name"),stack:e}}var tD="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",tB="(?::(\\d+))",tF=RegExp("^\\s*at (.*?) ?\\(".concat(tD).concat(tB,"?").concat(tB,"?\\)?\\s*$"),"i"),tV=new RegExp("\\((\\S*)".concat(tB).concat(tB,"\\)")),tH=RegExp("^\\s*at ?".concat(tD).concat(tB,"?").concat(tB,"??\\s*$"),"i"),tq=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,tj=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,tZ=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function tG(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var tK="No stack, consider using an instance of Error";function tX(t){var e,n,r,i,a,o,s=t.stackTrace,u=t.originalError,c=t.handlingStack,l=t.startClocks,d=t.nonErrorPrefix,f=t.source,p=t.handling,h=u instanceof Error,v=(e=s,n=h,r=d,i=u,(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:n?"Empty message":"".concat(r," ").concat(tC(tR(i)))),m=(a=h,void 0!==(o=s)&&(a||o.stack.length>0&&(o.stack.length>1||void 0!==o.stack[0].url)))?tY(s):tK,g=h?function(t,e){for(var n=t,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var i=tz(n.cause);r.push({message:n.cause.message,source:e,type:null==i?void 0:i.name,stack:i&&tY(i)}),n=n.cause}return r.length?r:void 0}(u,f):void 0,_=null==s?void 0:s.name,y=tW(u);return{startClocks:l,source:f,handling:p,handlingStack:c,originalError:u,type:_,message:v,stack:m,causes:g,fingerprint:y}}function tW(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function tY(t){var e=tJ(t);return t.stack.forEach(function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",i=t.line?":".concat(t.line):"",a=t.line&&t.column?":".concat(t.column):"";e+="\n  at ".concat(n).concat(r," @ ").concat(t.url).concat(i).c
1oncat(a)}),e}function tJ(t){return"".concat(t.name||"Error",": ").concat(t.message)}function t$(){var t,e=Error();if(!e.stack)try{throw e}catch(t){}return F(function(){var n=tz(e);n.stack=n.stack.slice(2),t=tY(n)}),t}function tQ(t,e,n,r,i){return t0(t,e,[n],r,i)}function t0(t,e,n,r,i){var a=void 0===i?{}:i,o=a.once,s=a.capture,u=a.passive,c=B(o?function(t){f(),r(t)}:r),l=u?{capture:s,passive:u}:s,d=tb(e,"addEventListener");function f(){var t=tb(e,"removeEventListener");n.forEach(function(n){return t.call(e,n,c,l)})}return n.forEach(function(t){return d.call(e,t,c,l)}),{stop:f}}var t1=[];function t2(t,e,n,r){void 0===r&&(r=ty);var i,a,o=(i=e,a=n,"".concat("_dd_c","_").concat(i,"_").concat(a)),s=tP(n,r);return u(),t1.push(tQ(t,window,"storage",function(t){o===t.key&&u()})),s.changeObservable.subscribe(function(){localStorage.setItem(o,JSON.stringify(s.getContext()))}),s;function u(){var t=localStorage.getItem(o),e=null!==t?JSON.parse(t):{};s.setContext(e)}}function t5(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,t5)}function t3(t,e){var n=new RegExp("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)")).exec(t);return n?n[1]:void 0}function t6(t,e,n){void 0===n&&(n="");var r=t.charCodeAt(e-1),i=r>=55296&&r<=56319?e+1:e;return t.length<=i?t:"".concat(t.slice(0,i)).concat(n)}function t4(t,e,n,r){var i=new Date;i.setTime(i.getTime()+n);var a="expires=".concat(i.toUTCString()),o=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",u=r&&r.secure?";secure":"";document.cookie="".concat(t,"=").concat(e,";").concat(a,";path=/;samesite=").concat(o).concat(s).concat(u)}function t8(t){return t3(document.cookie,t)}function t7(t,e){t4(t,"",0,e)}function t9(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||t8("datadog-synthetics-injects-rum"))}(t=c||(c={})).PAGEHIDE="pagehide",t.FEATURE_FLAGS="feature_flags",t.RESOURCE_PAGE_STATES="resource_page_states",t.PAGE_STATES="page_states",t.COLLECT_FLUSH_REASON="collect_flush_reason",t.NO_RESOURCE_DURATION_FROZEN_STATE="no_resource_duration_frozen_state",t.SCROLLMAP="scrollmap",t.INTERACTION_TO_NEXT_PAINT="interaction_to_next_paint",t.WEB_VITALS_ATTRIBUTION="web_vitals_attribution",t.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css";var et=new Set;function ee(t){return et.has(t)}function en(t){return W({},t)}function er(t,e){return Object.keys(t).some(function(n){return t[n]===e})}function ei(t){return 0===Object.keys(t).length}var ea=144e5,eo=9e5,es="_dd_s",eu=/^([a-z]+)=([a-z0-9-]+)$/;function ec(t){t.expire=String(tc()+eo)}function el(t){return G(t).map(function(t){var e=t[0],n=t[1];return"".concat(e,"=").concat(n)}).join("&")}function ed(t){var e,n={};return(e=t)&&(-1!==e.indexOf("&")||eu.test(e))&&t.split("&").forEach(function(t){var e=eu.exec(t);if(null!==e){var r=e[1],i=e[2];n[r]=i}}),n}function ef(){return ed(t8(es))}function ep(t){localStorage.setItem(es,el(t))}function eh(){return ed(localStorage.getItem(es))}function ev(){localStorage.removeItem(es)}var em=[];function eg(t,e,n){void 0===n&&(n=0);var r,i,a=e.isLockEnabled,o=e.retrieveSession,s=e.persistSession,u=e.clearSession;if(p||(p=t),t!==p)return void em.push(t);if(a&&n>=100)return void ey(e);var c=o();if(a&&(c.lock||(i=t5(),c.lock=i,s(c),(c=o()).lock!==i)))return void e_(t,e,n);var l=t.process(c);if(a&&(c=o()).lock!==i)return void e_(t,e,n);if(l&&(ei(l)?u():(ec(l),s(l))),a&&!(l&&ei(l))){if((c=o()).lock!==i)return void e_(t,e,n);delete c.lock,s(c),l=c}null==(r=t.after)||r.call(t,l||c),ey(e)}function e_(t,e,n){tw(function(){eg(t,e,n+1)},10)}function ey(t){p=void 0;var e=em.shift();e&&eg(e,t)}function eb(t){return ew(t,eT(window.location)).href}function ew(t,e){var n=function(){if(void 0===h)try{var t=new eS("http://test/path");h="http://test/path"===t.href}catch(t){h=!1}return h?eS:void 0}();if(n)try{return void 0!==e?new n(t,e):new n(t)}catch(n){throw Error("Failed to construct URL: ".concat(String(n)," ").concat(tC({url:t,base:e})))}if(void 0===e&&!/:/.test(t))throw Error("Invalid URL: '".concat(t,"'"));var r=document,i=r.createElement("a");if(void 0!==e){var a=(r=document.implementation.createHTMLDocument("")).createElement("base");a.href=e,r.head.appendChild(a),r.body.appendChild(i)}return i.href=t,i}var eS=URL;function eT(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return"".concat(t.protocol,"//").concat(e)}var eE="datad0g.com",ek="datadoghq.com",ex={logs:"logs",rum:"rum",sessionReplay:"session-replay"},eC={logs:"logs",rum:"rum",sessionReplay:"replay"};function eA(t,e,n){var r=function(t,e){var n="/api/v2/".concat(eC[e]),r=t.proxy,i=t.proxyUrl;if(r){var a=eb(r);return function(t){return"".concat(a,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(t)))}}var o=function(t,e){var n=t.site,r=void 0===n?ek:n,i=t.internalAnalyticsSubdomain;if(i&&r===ek)return"".concat(i,".").concat(ek);var a=r.split("."),o=a.pop(),s="ap1.datadoghq.com"!==r?"".concat(ex[e],"."):"";return"".concat(s,"browser-intake-").concat(a.join("-"),".").concat(o)}(t,e);if(void 0===r&&i){var s=eb(i);return function(t){return"".concat(s,"?ddforward=").concat(encodeURIComponent("https://".concat(o).concat(n,"?").concat(t)))}}return function(t){return"https://".concat(o).concat(n,"?").concat(t)}}(t,e);return{build:function(i,a){var o,s,u,l,d,f,p,h,v,m,g,_;return r((o=t,s=e,u=n,l=i,d=a,f=o.clientToken,p=o.internalAnalyticsSubdomain,h=d.retry,v=d.flushReason,m=d.encoding,g=["sdk_version:".concat("4.50.1"),"api:".concat(l)].concat(u),v&&ee(c.COLLECT_FLUSH_REASON)&&g.push("flush_reason:".concat(v)),h&&g.push("retry_count:".concat(h.count),"retry_after:".concat(h.lastFailureStatus)),_=["ddsource=browser","ddtags=".concat(encodeURIComponent(g.join(","))),"dd-api-key=".concat(f),"dd-evp-origin-version=".concat(encodeURIComponent("4.50.1")),"dd-evp-origin=browser","dd-request-id=".concat(t5())],m&&_.push("dd-evp-encoding=".concat(m)),"rum"===s&&_.push("batch_time=".concat(tl())),p&&_.reverse(),_.join("&")))},urlPrefix:r(""),endpointType:e}}var eR=/[^a-z0-9_:./-]/;function eI(t,e){var n=200-t.length-1;(e.length>n||eR.test(e))&&M.warn("".concat(t," value doesn't meet tag requirements and will be sanitized"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}var eN={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function eO(t){var e=tt(t);return"string"===e||"function"===e||t instanceof RegExp}function eL(t,e,n){return void 0===n&&(n=!1),t.some(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);
1if("string"==typeof t)return n?K(e,t):t===e}catch(t){M.error(t)}return!1})}function eM(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function eU(t,e,n,r){if(void 0!==eP()&&n.findTrackedSession()){var i,a,o,s,u,c=j(t.allowedTracingUrls,function(t){return eL([t.match],e.url,!0)});c&&(e.traceId=new ez,e.spanId=new ez,e.traceSampled=!ta(t.traceSampleRate)||tn(t.traceSampleRate),r((i=e.traceId,a=e.spanId,o=e.traceSampled,s=c.propagatorTypes,u={},s.forEach(function(t){switch(t){case"datadog":W(u,{"x-datadog-origin":"rum","x-datadog-parent-id":a.toDecimalString(),"x-datadog-sampling-priority":o?"1":"0","x-datadog-trace-id":i.toDecimalString()});break;case"tracecontext":W(u,{traceparent:"00-0000000000000000".concat(i.toPaddedHexadecimalString(),"-").concat(a.toPaddedHexadecimalString(),"-0").concat(o?"1":"0")});break;case"b3":W(u,{b3:"".concat(i.toPaddedHexadecimalString(),"-").concat(a.toPaddedHexadecimalString(),"-").concat(o?"1":"0")});break;case"b3multi":W(u,{"X-B3-TraceId":i.toPaddedHexadecimalString(),"X-B3-SpanId":a.toPaddedHexadecimalString(),"X-B3-Sampled":o?"1":"0"})}}),u)))}}function eP(){return window.crypto||window.msCrypto}var ez=function(){function t(){this.buffer=new Uint8Array(8),eP().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}return t.prototype.toString=function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*0x100000000+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n)return r},t.prototype.toDecimalString=function(){return this.toString(10)},t.prototype.toPaddedHexadecimalString=function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},t.prototype.readInt32=function(t){return 0x1000000*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]},t}();function eD(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}function eB(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}var eF=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],eV=["ddog-gov.com"],eH={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function eq(t,e){V(I.debug,t,e),eZ(W({type:"log",message:t,status:"debug"},e))}function ej(t,e){eZ(W({type:"log",status:"error"},function(t){if(t instanceof Error){var e,n=tz(t);return{error:{kind:n.name,stack:tY(((e=n).stack=e.stack.filter(function(t){return!t.url||eF.some(function(e){return K(t.url,e)})}),e))},message:n.message}}return{error:{stack:tK},message:"".concat("Uncaught"," ").concat(tC(t))}}(t),e))}function eZ(t){v&&eH.sentEventCount<eH.maxEventsPerPage&&(eH.sentEventCount+=1,v(t))}var eG={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function eK(){var t,e=window;if(e.Zone&&(t=tb(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=tb(new e.MutationObserver(tx),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function eX(t,e,n){document.readyState===e||"complete"===document.readyState?n():tQ(t,window,"complete"===e?"load":"DOMContentLoaded",n,{once:!0})}var eW="initial_document",eY=[["document",function(t){return eW===t}],["xhr",function(t){return"xmlhttprequest"===t}],["fetch",function(t){return"fetch"===t}],["beacon",function(t){return"beacon"===t}],["css",function(t,e){return/\.css$/i.test(e)}],["js",function(t,e){return/\.js$/i.test(e)}],["image",function(t,e){return H(["image","img","icon"],t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)}],["font",function(t,e){return null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)}],["media",function(t,e){return H(["audio","video"],t)||null!==/\.(mp3|mp4)$/i.exec(e)}]];function eJ(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=1;n<t.length;n+=1)if(t[n-1]>t[n])return!1;return!0}function e$(t){if(eJ(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!eQ(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e<t.startTime&&(e=t.startTime),n<t.startTime&&(n=t.fetchStart),eJ(t.startTime,e,n,t.fetchStart))return W({},t,{redirectEnd:n,redirectStart:e})}}function eQ(t){return t.fetchStart!==t.startTime}function e0(t,e,n){return{duration:tu(n-e),start:tu(e-t)}}function e1(t,e){return e&&!t.isIntakeUrl(e)}function e2(t){return t.nodeType===Node.TEXT_NODE}function e5(t){return t.nodeType===Node.ELEMENT_NODE}function e3(t){return e5(t)&&!!t.shadowRoot}function e6(t){return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e5(t.host)}
1function e4(t,e){t.childNodes.forEach(e),e3(t)&&e(t.shadowRoot)}function e8(t){return e6(t)?t.host:t.parentNode}var e7=12e4;function e9(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function nt(t){if(t&&t.nodeType===Node.COMMENT_NODE){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function ne(){return void 0!==window.performance&&"getEntries"in performance}function nn(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function nr(){var t={},e=performance.timing;for(var n in e)if(ta(e[n])){var r=e[n];t[n]=0===r?0:r-th()}return t}function ni(t,e,n){var r=n.filter(function(t){return er(m,t.entryType)}).filter(function(t){var n,r,i;return!((n=t).entryType===m.NAVIGATION&&n.loadEventEnd<=0)&&(r=e,(i=t).entryType!==m.RESOURCE||!!e1(r,i.name))});r.length&&t.notify(0,r)}(e=m||(m={})).EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource";var na="agent";function no(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&tw(function(){r=0},6e4),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:"Reached max number of ".concat(t,"s by minute: ").concat(e),source:na,startClocks:tf()})}finally{i=!1}}return!0}}}function ns(t,e,n){for(var r=t,i=e.split("."),a=0;a<i.length;a+=1){var o=i[a];if(!nu(r))return;a!==i.length-1?r=r[o]:r[o]=n}}function nu(t){return"object"===tt(t)}var nc={"view.name":"string","view.url":"string","view.referrer":"string"},nl={context:"object"},nd=function(){function t(){this.callbacks={}}return t.prototype.notify=function(t,e){var n=this.callbacks[t];n&&n.forEach(function(t){return t(e)})},t.prototype.subscribe=function(t,e){var n=this;return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:function(){n.callbacks[t]=n.callbacks[t].filter(function(t){return e!==t})}}},t}(),nf=function(){function t(t,e){var n=this;this.expireDelay=t,this.maxEntries=e,this.entries=[],this.clearOldValuesInterval=tT(function(){return n.clearOldValues()},6e4)}return t.prototype.add=function(t,e){var n=this,r={value:t,startTime:e,endTime:1/0,remove:function(){var t=n.entries.indexOf(r);t>=0&&n.entries.splice(t,1)},close:function(t){r.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},t.prototype.find=function(t){void 0===t&&(t=1/0);for(var e=0,n=this.entries;e<n.length;e++){var r=n[e];if(r.startTime<=t){if(t<=r.endTime)return r.value;break}}},t.prototype.closeActive=function(t){var e=this.entries[0];e&&1/0===e.endTime&&e.close(t)},t.prototype.findAll=function(t,e){void 0===t&&(t=1/0),void 0===e&&(e=0);var n=t+e;return this.entries.filter(function(e){return e.startTime<=n&&t<=e.endTime}).map(function(t){return t.value})},t.prototype.reset=function(){this.entries=[]},t.prototype.stop=function(){tE(this.clearOldValuesInterval)},t.prototype.clearOldValues=function(){for(var t=td()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<t;)this.entries.pop()},t}();function np(t,e,n){var r=t[e],i=n(r),a=function(){if("function"==typeof i)return i.apply(this,arguments)};return t[e]=a,{stop:function(){t[e]===a?t[e]=r:i=r}}}function nh(t,e,n){var r=n.before,i=n.after;return np(t,e,function(t){return function(){var e,n=arguments;return r&&F(r,this,n),"function"==typeof t&&(e=t.apply(this,n)),i&&F(i,this,n),e}})}function nv(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:tx};var i=function(t,e){tw(function(){n(t,e)},0)},a=function(t){r.set.call(this,t),i(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){var n;(null==(n=Object.getOwnPropertyDescriptor(t,e))?void 0:n.set)===a?Object.defineProperty(t,e,r):i=tx}}}function nm(t,e,n){var r=n&&n.method||e instanceof Request&&e.method||"GET",i=e instanceof Request?e.url:eb(String(e)),a={state:"start",init:n,input:e,method:r,startClocks:tf(),url:i};return t.notify(a),a}function ng(t,e,n){var r=function(e){n.state="resolve","stack"in e||e instanceof Error?(n.status=0,n.isAborted=e instanceof DOMException&&e.code===DOMException.ABORT_ERR,n.error=e):"status"in e&&(n.response=e,n.responseType=e.type,n.status=e.status,n.isAborted=!1),t.notify(n)};e.then(B(r),B(r))}var n_=new WeakMap;function ny(t,e){n_.set(this,{state:"open",method:t,url:eb(String(e))})}function nb(t,e){var n=this,r=n_.get(this);if(r){r.state="start",r.startTime=td(),r.startClocks=tf(),r.isAborted=!1,r.xhr=this;var i=!1,a=nh(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&o()}}).stop,o=function(){if(s(),a(),!i){var t;i=!0,r.state="complete",t=r.startClocks.timeStamp,r.duration=tl()-t,r.status=n.status,e.notify(en(r))}},s=tQ(t,this,"loadend",o).stop;e.notify(r)}}function nw(){var t=n_.get(this);t&&(t.isAborted=!0)}var nS=1;function nT(){var t=nS;return nS+=1,t}function nE(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange,i=void 0===r?tx:r,a={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(11,function(t){var e;if("view"!==t.type&&n(t))switch(t.type){case"error":a.errorCount+=1,i();break;case"action":a.actionCount+=1,t.action.frustration&&(a.frustrationCount+=t.action.frustration.type.length),i();break;case"long_task":a.longTaskCount+=1,i();break;case"resource":(null==(e=t._dd)?void 0:e.discarded)||(a.resourceCount+=1,i())}});return{stop:function(){o.unsubscribe()},eventCounts:a}}function nk(t,e,n){var r,i=!1,a=tw(B(function(){return c({hadActivity:!1})}),100),o=void 0!==n?tw(B(function(){return c({hadActivity:!0,end:tl()})}),n):void 0,s=t.subscribe(function(t){var e=t.isBusy;tS(a),tS(r);var n=tl();e||(r=tw(B(function(){return c({hadActivity:!0,end:n})}),100))}),u=function(){i=!0,tS(a),tS(r),tS(o),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}function nx(t,e,n){var r=new tO(function(){var i,a=[],o=0;a.push(e.subscribe(u),t.subscribe(0,function(t){t.some(function(t){return t.entryType===m.RESOURCE&&!nC(n,t.name)}
1)&&u()}),t.subscribe(5,function(t){nC(n,t.url)||(void 0===i&&(i=t.requestIndex),o+=1,u())}),t.subscribe(6,function(t){nC(n,t.url)||void 0===i||t.requestIndex<i||(o-=1,u())}));var s=nh(window,"open",{before:u}).stop;return function(){s(),a.forEach(function(t){return t.unsubscribe()})};function u(){r.notify({isBusy:o>0})}});return r}function nC(t,e){return eL(t.excludedActivityUrls,e)}var nA="data-dd-action-name";function nR(t,e){if(void 0===w&&(w="closest"in HTMLElement.prototype),w)n=t.closest("[".concat(e,"]"));else for(var n,r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return nM(nL(n.getAttribute(e).trim()))}var nI=[function(t,e){if(void 0===b&&(b="labels"in HTMLInputElement.prototype),b){if("labels"in t&&t.labels&&t.labels.length>0)return nU(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&j(t.ownerDocument.querySelectorAll("label"),function(e){return e.htmlFor===t.id});return n&&nU(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t.getAttribute("type");if("button"===e||"submit"===e||"reset"===e)return t.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return nU(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map(function(e){var n,r;return n=t,r=e,n.ownerDocument?n.ownerDocument.getElementById(r):null}).filter(function(t){return!!t}).map(function(t){return nU(t,e)}).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 nU(t.options[0],e)}],nN=[function(t,e){return nU(t,e)}];function nO(t,e,n){for(var r=t,i=0;i<=10&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var a=0;a<n.length;a++){var o=(0,n[a])(r,e);if("string"==typeof o){var s=o.trim();if(s)return nM(nL(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function nL(t){return t.replace(/\s+/g," ")}function nM(t){return t.length>100?"".concat(t6(t,100)," [...]"):t}function nU(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i<r.length;i+=1){var a=r[i];if("innerText"in a){var o=a.innerText;o&&o.trim().length>0&&(n=n.replace(o,""))}}};return(null!=l?l:l=!!document.documentMode)&&r("script, style"),r("[".concat(nA,"]")),e&&r("[".concat(e,"]")),n}return t.textContent}}var nP=[nA,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],nz=[nV,function(t){if(t.id&&!nF(t.id))return"#".concat(X(t.id))}],nD=[nV,function(t){if("BODY"!==t.tagName&&t.classList.length>0)for(var e=0;e<t.classList.length;e+=1){var n=t.classList[e];if(!nF(n))return"".concat(X(t.tagName),".").concat(X(n))}},function(t){return X(t.tagName)}];function nB(t,e){for(var n="",r=t;r&&"HTML"!==r.nodeName;){var i=nH(r,nz,nq,e,n);if(i)return i;n=nH(r,nD,nj,e,n)||nZ(function(t){for(var e=t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return"".concat(X(t.tagName),":nth-of-type(").concat(n,")")}(r),n),r=r.parentElement}return n}function nF(t){return/[0-9]/.test(t)}function nV(t,e){if(e){var n=i(e);if(n)return n}for(var r=0;r<nP.length;r++){var n=i(nP[r]);if(n)return n}function i(e){if(t.hasAttribute(e))return"".concat(X(t.tagName),"[").concat(e,'="').concat(X(t.getAttribute(e)),'"]')}}function nH(t,e,n,r,i){for(var a=0;a<e.length;a++){var o=(0,e[a])(t,r);if(o){var s=nZ(o,i);if(n(t,s))return s}}}function nq(t,e){return 1===t.ownerDocument.querySelectorAll(e).length}function nj(t,e){return 1===t.parentElement.querySelectorAll(!function(){if(void 0===S)try{document.querySelector(":scope"),S=!0}catch(t){S=!1}return S}()?e:nZ(":scope",e)).length}function nZ(t,e){return e?"".concat(t,">").concat(e):t}function nG(){var t=window.getSelection();return!t||t.isCollapsed}function nK(t){return t.target instanceof Element&&!1!==t.isPrimary}function nX(t){var e,n;return!t.hasPageActivity&&!t.getUserActivity().input&&(e=t.event.target,n='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] *',e.matches?!e.matches(n):!(e.msMatchesSelector&&e.msMatchesSelector(n)))}var nW=3e5;function nY(t,e){var n=nJ(t)?{action:{id:t.id,loading_time:tu(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;return{customerContext:nJ(t)?void 0:t.context,rawRumEvent:tg({action:{id:t5(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:nJ(t)?{event:t.event,events:t.events}:{}}}function nJ(t){return"custom"!==t.type}var n$=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/,nQ={},n0="csp_violation";function n1(t,e,n,r,i){return n?tY({name:t,message:e,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=i?i:void 0}]}):void 0}function n2(t){return t.startTime+t.duration}function n5(t){var e,n,r,i;return{resource:W({duration:(n=(e=t).duration,r=e.startTime,i=e.responseEnd,0===n&&r<i?tu(i-r):tu(n)),size:function(t){if(t.startTime<t.responseStart)return t.decodedBodySize}(t)},function(t){var e=e$(t);if(e){var n=e.startTime,r=e.fetchStart,i=e.redirectStart,a=e.redirectEnd,o=e.domainLookupStart,s=e.domainLookupEnd,u=e.connectStart,c=e.secureConnectionStart,l=e.connectEnd,d=e.requestStart,f=e.responseStart,p={download:e0(n,f,e.responseEnd),first_byte:e0(n,d,f)};return l!==r&&(p.connect=e0(n,u,l),eJ(u,c,l)&&(p.ssl=e0(n,c,l))),s!==r&&(p.dns=e0(n,o,s)),eQ(t)&&(p.redirect=e0(n,i,a)),p}}(t))}}function n3(t){return ta(t.traceSampleRate)?t.traceSampleRate/100:void 0}function n6(t,e){var n=t.findTrackedSession(e.relative);return{_dd:{discarded:!n||!n.resourceAllowed}}}function n4(t,e,n){if(ee(c.RESOURCE_PAGE_STATES))return{_dd:{page_states:t.findAll(e.relative,n),page_was_discarded:String(document.wasDiscarded)}}}var n8=6e5,n7=6e5,n9=0,rt=1/0,re=0,rn=function(){return T?n9:window.performance.interactionCount||0};
1function rr(){var t=window.visualViewport;return Math.round(t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function ri(){var t=window.visualViewport;return Math.round(t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function ra(t){var e,n;return E||(e=t,E=n=new tO(function(){return tQ(e,window,"resize",tk(function(){n.notify(ro())},200).throttled,{capture:!0,passive:!0}).stop})),E}function ro(){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 rs=3e5,ru=3e5;function rc(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var rl=[];function rd(t){return"2"===t||"1"===t}var rf=function(){function t(t,e,n){var r=this;this.request=t,this.flushController=e,this.messageBytesLimit=n,this.pushOnlyBuffer=[],this.upsertBuffer={},this.flushSubscription=this.flushController.flushObservable.subscribe(function(t){return r.flush(t)})}return t.prototype.add=function(t){this.addOrUpdate(t)},t.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},t.prototype.stop=function(){this.flushSubscription.unsubscribe()},t.prototype.flush=function(t){var e,n=this.pushOnlyBuffer.concat(Z(this.upsertBuffer));this.pushOnlyBuffer=[],this.upsertBuffer={};var r={data:n.join("\n"),bytesCount:t.bytesCount,flushReason:t.reason};(e=t.reason,H(Z(eG),e))?this.request.sendOnExit(r):this.request.send(r)},t.prototype.addOrUpdate=function(t,e){var n=this.process(t),r=n.processedMessage,i=n.messageBytesCount;i>=this.messageBytesLimit?M.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB.")):(this.hasMessageFor(e)&&this.remove(e),this.push(r,i,e))},t.prototype.process=function(t){var e=tC(t),n=ty(e);return{processedMessage:e,messageBytesCount:n}},t.prototype.push=function(t,e,n){var r=+(this.flushController.messagesCount>0);this.flushController.notifyBeforeAddMessage(e+r),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.flushController.notifyAfterAddMessage()},t.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=ty(e),r=+(this.flushController.messagesCount>1);this.flushController.notifyAfterRemoveMessage(n+r)},t.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},t}(),rp=3145728;function rh(t,e,n,r,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?rv(t,e,n,{onSuccess:function(){return rm(0,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),function t(e,n,r,i){2===e.transportStatus&&tw(function(){rv(e.queuedPayloads.first(),e,n,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=1e3,rm(1,e,n,r,i)},onFailure:function(){e.currentBackoffTime=Math.min(6e4,2*e.currentBackoffTime),t(e,n,r,i)}})},e.currentBackoffTime)}(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function rv(t,e,n,r){var i=r.onSuccess,a=r.onFailure;e.bandwidthMonitor.add(t),n(t,function(n){var r;e.bandwidthMonitor.remove(t),"opaque"!==(r=n).type&&(0===r.status&&!navigator.onLine||408===r.status||429===r.status||r.status>=500)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},a()):(e.transportStatus=0,i())})}function rm(t,e,n,r,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(rp/1048576,"MiB"),source:na,startClocks:tf()}),e.queueFullReported=!0);var a=e.queuedPayloads;for(e.queuedPayloads=rg();a.size()>0;)rh(a.dequeue(),e,n,r,i)}function rg(){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>=rp}}}function r_(t,e,n,r){var i={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:rg(),queueFullReported:!1},a=function(r,i){var a,o,s,u,c;return a=t,o=e,s=n,u=r,c=i,void(function(){try{return window.Request&&"keepalive"in new Request
1("http://a")}catch(t){return!1}}()&&u.bytesCount<s?fetch(o.build("fetch",u),{method:"POST",body:u.data,keepalive:!0,mode:"cors"}).then(B(function(t){return null==c?void 0:c({status:t.status,type:t.type})}),B(function(){rb(a,o.build("xhr",u),u.data,c)})):rb(a,o.build("xhr",u),u.data,c))};return{send:function(t){rh(t,i,a,e.endpointType,r)},sendOnExit:function(r){!function(t,e,n,r){if(navigator.sendBeacon&&r.bytesCount<n)try{var i,a=e.build("beacon",r);if(navigator.sendBeacon(a,r.data))return}catch(t){i=t,ry||(ry=!0,ej(i))}rb(t,e.build("xhr",r),r.data)}(t,e,n,r)}}}var ry=!1;function rb(t,e,n,r){var i=new XMLHttpRequest;i.open("POST",e,!0),tQ(t,i,"loadend",function(){null==r||r({status:i.status})},{once:!0}),i.send(n)}function rw(){0!==k.batchCount&&(eq("Customer data measures",k),rk())}function rS(){return{min:1/0,max:0,sum:0}}function rT(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function rE(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function rk(){k={batchCount:0,batchBytesCount:rS(),batchMessagesCount:rS(),globalContextBytes:rS(),userContextBytes:rS(),featureFlagBytes:rS()}}function rx(){C=!1,x={globalContextBytes:rS(),userContextBytes:rS(),featureFlagBytes:rS()}}function rC(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function rA(t,e){return{data:W({source:t},e),type:3,timestamp:tl()}}var rR={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:eN.ALLOW,MASK:eN.MASK,MASK_USER_INPUT:eN.MASK_USER_INPUT},rI="data-dd-privacy",rN="hidden",rO={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function rL(t,e){var n=e8(t),r=n?rL(n,e):e;return rM(rU(t),r)}function rM(t,e){switch(e){case rR.HIDDEN:case rR.IGNORE:return e}switch(t){case rR.ALLOW:case rR.MASK:case rR.MASK_USER_INPUT:case rR.HIDDEN:case rR.IGNORE:return t;default:return e}}function rU(t){if(e5(t)){var e=t.getAttribute(rI);if("BASE"===t.tagName)return rR.ALLOW;if("INPUT"===t.tagName){if("password"===t.type||"email"===t.type||"tel"===t.type||"hidden"===t.type)return rR.MASK;var n=t.getAttribute("autocomplete");if(n&&0===n.indexOf("cc-"))return rR.MASK}if(e===rN||t.classList.contains("dd-privacy-hidden"))return rR.HIDDEN;if("mask"===e||t.classList.contains("dd-privacy-mask"))return rR.MASK;if("mask-user-input"===e||t.classList.contains("dd-privacy-mask-user-input"))return rR.MASK_USER_INPUT;if("allow"===e||t.classList.contains("dd-privacy-allow"))return rR.ALLOW;if(function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),e=i("rel"),r=i("property");return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function i(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t))return rR.IGNORE}}function rP(t,e){switch(e){case rR.MASK:case rR.HIDDEN:case rR.IGNORE:return!0;case rR.MASK_USER_INPUT:return e2(t)?rz(t.parentNode):rz(t);default:return!1}}function rz(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;if("INPUT"===t.tagName)switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!rO[t.tagName]}function rD(t,e,n){var r,i=null==(r=t.parentElement)?void 0:r.tagName,a=t.textContent||"";if(!e||a.trim()){if("SCRIPT"===i)a="***";else if(n===rR.HIDDEN)a="***";else if(rP(t,n))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!a.trim())return}else a="OPTION"===i?"***":a.replace(/\S/g,"x");return a}}var rB=new WeakMap;function rF(t){return rB.has(t)}function rV(t){return rB.get(t)}function rH(t,e){var n=t.tagName,r=t.value;if(rP(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i))return r;if(!r||"OPTION"===n)return;return"***"}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var rq=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,rj=/^[A-Za-z]+:|^\/\//,rZ=/^data:.*,/i,rG=/[^a-z1-6-_]/;function rK(t){var e=t.toLowerCase().trim();return rG.test(e)?"div":e}function rX(t){if(void 0!==t&&0!==t.length)return t.map(function(t){return{cssRules:Array.from(t.cssRules||t.rules,function(t){return t.cssText}),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}})}function rW(t,e,n,r){if(e===rR.HIDDEN)return null;var i=t.getAttribute(n);if(e===rR.MASK&&n!==rI&&!nP.includes(n)&&n!==r.actionNameAttribute){var a=t.tagName;switch(n){case"title":case"alt":case"placeholder":return"***"}if(("IMG"===a||"SOURCE"===a)&&("src"===n||"srcset"===n))return"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";if("A"===a&&"href"===n||i&&K(n,"data-"))return"***"}return i&&"string"==typeof i&&i.length>1e5&&"data:"===i.slice(0,5)?"data:truncated":i}function rY(t){var e,n,r;if(!t)return null;try{e=t.rules||t.cssRules}catch(t){}return e?(n=Array.from(e,(null!=f?f:f=/^((?!chrome|android).)*safari/i.test(navigator.userAgent))?rJ:r$).join(""),r=t.href,n.replace(rq,function(t,e,n,i,a,o){var s=n||a||o;if(!r||!s||rj.test(s)||rZ.test(s))return t;var u=e||i||"";
1return"url(".concat(u).concat(function(t,e){try{return ew(t,e).href}catch(e){return t}}(s,r)).concat(u,")")})):null}function rJ(t){return"selectorText"in t&&t.selectorText.includes(":")?t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2"):r$(t)}function r$(t){return"styleSheet"in t&&rY(t.styleSheet)||t.cssText}function rQ(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return{type:0,childNodes:r1(n=t,e),adoptedStyleSheets:rX(n.adoptedStyleSheets)};case t.DOCUMENT_FRAGMENT_NODE:return r=t,i=e,(a=e6(r))&&i.serializationContext.shadowRootsController.addShadowRoot(r),{type:11,childNodes:r1(r,i),isShadowRoot:a,adoptedStyleSheets:a?rX(r.adoptedStyleSheets):void 0};case t.DOCUMENT_TYPE_NODE:return{type:1,name:(o=t).name,publicId:o.publicId,systemId:o.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r,i=rK(t.tagName),a="svg"===(n=t).tagName||n instanceof SVGElement||void 0,o=rM(rU(t),e.parentNodePrivacyLevel);if(o===rR.HIDDEN){var s=t.getBoundingClientRect(),u=s.width,l=s.height;return{type:2,tagName:i,attributes:((r={rr_width:"".concat(u,"px"),rr_height:"".concat(l,"px")})[rI]=rN,r),childNodes:[],isSVG:a}}if(o!==rR.IGNORE){var d=function(t,e,n){if(e===rR.HIDDEN)return{};for(var r,i,a,o={},s=rK(t.tagName),u=t.ownerDocument,l=0;l<t.attributes.length;l+=1){var d=t.attributes.item(l).name,f=rW(t,e,d,n.configuration);null!==f&&(o[d]=f)}if(t.value&&("textarea"===s||"select"===s||"option"===s||"input"===s)){var p=rH(t,e);void 0!==p&&(o.value=p)}if("option"===s&&e===rR.ALLOW&&t.selected&&(o.selected=t.selected),"link"===s){var h=Array.from(u.styleSheets).find(function(e){return e.href===t.href}),v=rY(h);v&&h&&!ee(c.DISABLE_REPLAY_INLINE_CSS)&&(o._cssText=v)}if("style"===s&&t.sheet){var v=rY(t.sheet);v&&(o._cssText=v)}"input"===s&&("radio"===t.type||"checkbox"===t.type)&&(e===rR.ALLOW?o.checked=!!t.checked:rP(t,e)&&delete o.checked),("audio"===s||"video"===s)&&(o.rr_mediaState=t.paused?"paused":"played");var m=n.serializationContext;switch(m.status){case 0:i=Math.round(t.scrollTop),a=Math.round(t.scrollLeft),(i||a)&&m.elementsScrollPositions.set(t,{scrollTop:i,scrollLeft:a});break;case 1:m.elementsScrollPositions.has(t)&&(i=(r=m.elementsScrollPositions.get(t)).scrollTop,a=r.scrollLeft)}return a&&(o.rr_scrollLeft=a),i&&(o.rr_scrollTop=i),o}(t,o,e),f=[];(t.childNodes.length>0||e3(t))&&"style"!==i&&(f=r1(t,e.parentNodePrivacyLevel===o&&e.ignoreWhiteSpace===("head"===i)?e:W({},e,{parentNodePrivacyLevel:o,ignoreWhiteSpace:"head"===i})));return{type:2,tagName:i,attributes:d,childNodes:f,isSVG:a}}}(t,e);case t.TEXT_NODE:var n,r,i,a,o,s=t,u=e,l=rD(s,u.ignoreWhiteSpace||!1,u.parentNodePrivacyLevel);if(void 0!==l)return{type:3,textContent:l};return;case t.CDATA_SECTION_NODE:return{type:4,textContent:""}}}(t,e);if(!n)return null;var r=rV(t)||r0++;return n.id=r,rB.set(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),n}var r0=1;function r1(t,e){var n=[];return e4(t,function(t){var r=rQ(t,e);r&&n.push(r)}),n}function r2(t){return!!t.changedTouches}function r5(t){return!0===t.composed&&e3(t.target)?t.composedPath()[0]:t.target}var r3=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualVie
1wportX:t,visualViewportY:e};return n&&(Math.abs(n.pageTop-n.offsetTop-window.scrollY)>25||Math.abs(n.pageLeft-n.offsetLeft-window.scrollX)>25?(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)):(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop))),r},r6=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 r4(t){var e=r2(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=r3(n,r),a=i.visualViewportX,o=i.visualViewportY;n=a,r=o}if(!Number.isFinite(n)||!Number.isFinite(r)){t.isTrusted&&eq("mouse/touch event without x/y");return}return{x:n,y:r}}var r8=((A={}).pointerup=0,A.mousedown=1,A.click=2,A.contextmenu=3,A.dblclick=4,A.focus=5,A.blur=6,A.touchstart=7,A.touchend=9,A);function r7(t,e,n){void 0===n&&(n=document);var r,i=t.defaultPrivacyLevel,a=new WeakMap,o=n!==document,s=t0(t,n,o?["change"]:["input","change"],function(t){var e=r5(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)},{capture:!0,passive:!0}).stop;if(o)r=tx;else{var u=[nv(HTMLInputElement.prototype,"value",c),nv(HTMLInputElement.prototype,"checked",c),nv(HTMLSelectElement.prototype,"value",c),nv(HTMLTextAreaElement.prototype,"value",c),nv(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach(function(t){return t.stop()})}}return function(){r(),s()};function c(t){var e,n=rL(t,i);if(n!==rR.HIDDEN){var r,a=t.type;if("radio"===a||"checkbox"===a){if(rP(t,n))return;e={isChecked:t.checked}}else{var o=rH(t,n);if(void 0===o)return;e={text:o}}l(t,e);var s=t.name;"radio"===a&&s&&t.checked&&(r=document.querySelectorAll('input[type="radio"][name="'.concat(X(s),'"]')),Array.prototype.forEach.call(r,function(e){e!==t&&l(e,{isChecked:!1})}))}}function l(t,n){if(rF(t)){var r=a.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(a.set(t,n),e(W({id:rV(t)},n)))}}}function r9(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){var i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(i),e}}function it(t,e,n,r){var i=eK();if(!i)return{stop:tx,flush:tx};var a=function(t){var e=tx,n=[];function r(){e(),t(n),n=[]}return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(B(t),e);return function(){return window.cancelIdleCallback(n)}}
1var r=window.requestAnimationFrame(B(t));return function(){return window.cancelAnimationFrame(r)}}(r,{timeout:100})),n.push.apply(n,t)},flush:r,stop:function(){e()}}}(function(r){var i,a,s,u,c,l,d,f,p,h,v;i=r.concat(o.takeRecords()),a=t,s=e,u=n,i.filter(function(t){return"childList"===t.type}).forEach(function(t){t.removedNodes.forEach(function(t){!function t(e,n){e3(e)&&n(e.shadowRoot),e4(e,function(e){return t(e,n)})}(t,u.removeShadowRoot)})}),d=(l=function(t,e,n){for(var r=new Set,i=new Map,a=function(t){t.addedNodes.forEach(function(t){r.add(t)}),t.removedNodes.forEach(function(e){r.has(e)||i.set(e,t.target),r.delete(e)})},o=0;o<t.length;o++)a(t[o]);var s=Array.from(r);s.sort(function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS?1:n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0});for(var u=new Set,c=[],l=0;l<s.length;l++){var d=s[l];if(!m(d)){var f=rL(d.parentNode,e.defaultPrivacyLevel);if(f!==rR.HIDDEN&&f!==rR.IGNORE){var p=rQ(d,{serializedNodeIds:u,parentNodePrivacyLevel:f,serializationContext:{status:2,shadowRootsController:n},configuration:e});if(p){var h=e8(d);c.push({nextId:function(t){for(var e=t.nextSibling;e;){if(rF(e))return rV(e);e=e.nextSibling}return null}(d),parentId:rV(h),node:p})}}}}var v=[];return i.forEach(function(t,e){rF(e)&&v.push({parentId:rV(t),id:rV(e)})}),{adds:c,removes:v,hasBeenSerialized:m};function m(t){return rF(t)&&u.has(rV(t))}}((c=i.filter(function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!rF(e)&&!e6(e))return!1;e=e8(e)}return!0}(t.target)&&rL(t.target,s.defaultPrivacyLevel)!==rR.HIDDEN})).filter(function(t){return"childList"===t.type}),s,u)).adds,f=l.removes,p=l.hasBeenSerialized,h=function(t,e){for(var n,r=[],i=new Set,a=t.filter(function(t){return!i.has(t.target)&&(i.add(t.target),!0)}),o=0;o<a.length;o++){var s=a[o];if(s.target.textContent!==s.oldValue){var u=rL(e8(s.target),e.defaultPrivacyLevel);u!==rR.HIDDEN&&u!==rR.IGNORE&&r.push({id:rV(s.target),value:null!=(n=rD(s.target,!1,u))?n:null})}}return r}(c.filter(function(t){return"characterData"===t.type&&!p(t.target)}),s),v=function(t,e){for(var n=[],r=new Map,i=t.filter(function(t){var e=r.get(t.target);return(null==e||!e.has(t.attributeName))&&(e?e.add(t.attributeName):r.set(t.target,new Set([t.attributeName])),!0)}),a=new Map,o=0;o<i.length;o++){var s=i[o];if(s.target.getAttribute(s.attributeName)!==s.oldValue){var u=rL(s.target,e.defaultPrivacyLevel),c=rW(s.target,u,s.attributeName,e),l=void 0;if("value"===s.attributeName){var d=rH(s.target,u);if(void 0===d)continue;l=d}else l="string"==typeof c?c:null;var f=a.get(s.target);f||(f={id:rV(s.target),attributes:{}},n.push(f),a.set(s.target,f)),f.attributes[s.attributeName]=l}}return n}(c.filter(function(t){return"attributes"===t.type&&!p(t.target)}),s),(h.length||v.length||f.length||d.length)&&a({adds:d,removes:f,texts:h,attributes:v})}),o=new i(B(a.addMutations));return o.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){o.disconnect(),a.stop()},flush:function(){a.flush()}}}var ie=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,a={addShadowRoot:function(e){var o=it(n,t,a,e),s=o.stop,u=o.flush,c=r7(t,r,e);i.set(e,{flush:u,stop:function(){s(),c()}})},removeShadowRoot:function(t){var e=i.get(t);e&&(e.stop(),i.delete(t))},stop:function(){i.forEach(function(t){return(0,t.stop)()})},flush:function(){i.forEach(function(t){return(0,t.flush)()})}};return a};function ir(t){var e;return R||(R=new Map),R.has(t)?e=R.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},R.set(t,e),R.size>10&&function(){if(R)if(R.keys)R.delete(R.keys().next().value);else{var t=!0;R.forEach(function(e,n){t&&(R.delete(n),t=!1)})}}()),e}var ii=function(){function t(t,e,n){this.encoder=t;var r=e.view.id;this.metadata=W({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:ir(r).segments_count,source:"browser"},e),ir(r).segments_count+=1}return t.prototype.addRecord=function(t,e){this.metadata.start=Math.min(this.metadata.start,t.timestamp),this.metadata.end=Math.max(this.metadata.end,t.timestamp),this.metadata.records_count+=1,(r=this.metadata).has_full_snapshot||(r.has_full_snapshot=2===t.type),eB("record",{record:t,segment:this.metadata}),n=this.metadata.view.id,ir(n).records_count+=1;var n,r,i=1===this.metadata.records_count?'{"records":[':",";this.encoder.write(i+JSON.stringify(t),e)},t.prototype.flush=function(t){var e=this;if(0===this.metadata.records_count)throw Error("Empty segment flushed");this.encoder.write("],".concat(JSON.stringify(this.metadata).slice(1),"\n"),function(){var n,r;n=e.metadata.view.id,r=e.encoder.rawBytesCount,ir(n).segments_total_raw_size+=r,t(e.metadata)}),this.encoder.reset()},t}();function ia(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function io(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>>
vendor: 20,501 bytes, line 1
1>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);
1i.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:"4.50.1"};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 is={status:0};function iu(t,e,n,r){if(1===is.status||0===is.status){var i;if(M.error("".concat(e," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&(H(i=n.message,"Content Security Policy")||H(i,"requires 'TrustedScriptURL'"))){var a=void 0;a=t.workerUrl?"Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",M.error("".concat(a," See documentation at https://docs.datadoghq.com/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else ej(n);1===is.status&&is.initializationFailureCallbacks.forEach(function(t){return t()}),is={status:2}}else ej(n,{worker_version:3===is.status&&is.version,stream_id:r})}var ic=function(t,e){var n,r,i=void 0,a=void 0===i||i,o=!1,s=tP(2),l=tP(1),d=function(){},f=function(){},p=tx,h=function(){},v=new J,m=function(t,e){void 0===e&&(e=tl()),v.add(function(){return m(t,e)})},g=function(t,e){void 0===e&&(e=tf()),v.add(function(){return g(t,e)})},_=function(t,n){void 0===n&&(n=eD(s,l,e)),v.add(function(){return _(t,n)})},y=function(t,n){void 0===n&&(n=eD(s,l,e)),v.add(function(){return y(t,n)})},b=function(t,e){v.add(function(){return b(t,e)})};function w(n,r,i){if(n.storeContextsAcrossPages){var a=s.getContext();(s=t2(r,"rum",2)).setContext(tg(s.getContext(),a));var o=l.getContext();(l=t2(r,"rum",1)).setContext(tg(l.getContext(),o))}var u=t(n,r,e,s,l,i);h=function(){return e.getSessionReplayLink(r,u.session,u.viewContexts)},g=u.startView,_=u.addAction,y=u.addError,m=u.addTiming,b=u.addFeatureFlagEvaluation,d=u.getInternalContext,p=u.stopSession,v.drain(),e.onRumStart(u.lifeCycle,r,u.session,u.viewContexts)}var S=B(function(t){g("object"==typeof t?t:{name:t})});return n={init:B(function(t){if(!t)return void M.error("Missing configuration");if(f=function(){return tm(t)},!(a&&t9())){var e,n=Q();if(n&&(t=W({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100})),e=t,!o||(e.silentMultipleInit||M.error("DD_RUM is already initialized."),0)){var r=function(t){if(!t.applicationId)return void M.error("Application ID is not configured, no RUM data will be collected.");
1if(void 0!==t.sessionReplaySampleRate&&!ti(t.sessionReplaySampleRate))return void M.error("Session Replay Sample Rate should be a number between 0 and 100");var e,n,r,i,a,o,s=null!=(e=t.premiumSampleRate)?e:t.replaySampleRate;if(void 0!==s&&void 0!==t.sessionReplaySampleRate&&(M.warn("Ignoring Premium Sample Rate because Session Replay Sample Rate is set"),s=void 0),void 0!==s&&!ti(s))return void M.error("Premium Sample Rate should be a number between 0 and 100");var l=null!=(n=t.traceSampleRate)?n:t.tracingSampleRate;if(void 0!==l&&!ti(l))return void M.error("Trace Sample Rate should be a number between 0 and 100");if(void 0!==t.excludedActivityUrls&&!Array.isArray(t.excludedActivityUrls))return void M.error("Excluded Activity Urls should be an array");var d=function(t){if(void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&M.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins."),void 0!==t.allowedTracingUrls){if(!Array.isArray(t.allowedTracingUrls))return void M.error("Allowed Tracing URLs should be an array");if(0!==t.allowedTracingUrls.length&&void 0===t.service)return void M.error("Service needs to be configured when tracing is enabled");var e=[];return t.allowedTracingUrls.forEach(function(t){if(eO(t))e.push({match:t,propagatorTypes:["datadog"]});else"object"===tt(t)&&eO(t.match)&&Array.isArray(t.propagatorTypes)?e.push(t):M.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)}),e}if(void 0!==t.allowedTracingOrigins){if(!Array.isArray(t.allowedTracingOrigins))return void M.error("Allowed Tracing Origins should be an array");if(0!==t.allowedTracingOrigins.length&&void 0===t.service)return void M.error("Service needs to be configured when tracing is enabled");var n=[];return t.allowedTracingOrigins.forEach(function(t){var e,r,i=("string"==typeof(e=t)?r=e:e instanceof RegExp?r=function(t){return e.test(eT(ew(t)))}:"function"==typeof e&&(r=function(t){return e(eT(ew(t)))}),void 0===r)?void M.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",e):{match:r,propagatorTypes:["datadog"]};i&&n.push(i)}),n}return[]}(t);if(d){var f=function(t){if(!t||!t.clientToken)return void M.error("Client Token is not configured, we will not send any data.");var e,n,r,i,a,o,s,l,d,f,p,h,v,m,g,_,y,b,w=null!=(_=t.sessionSampleRate)?_:t.sampleRate;if(void 0!==w&&!ti(w))return void M.error("Session Sample Rate should be a number between 0 and 100");if(void 0!==t.telemetrySampleRate&&!ti(t.telemetrySampleRate))return void M.error("Telemetry Sample Rate should be a number between 0 and 100");if(void 0!==t.telemetryConfigurationSampleRate&&!ti(t.telemetryConfigurationSampleRate))return void M.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");return Array.isArray(t.enableExperimentalFeatures)&&t.enableExperimentalFeatures.filter(function(t){return er(c,t)}).forEach(function(t){et.add(t)}),W({beforeSend:t.beforeSend&&U(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:(e=t,(a=!function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(t5()),n="test";t4(e,n,6e4,t);var r=t8(e)===n;return t7(e,t),r}catch(t){return M.error(t),!1}}(((r={}).secure=!!(n=e).useSecureSessionCookie||!!n.useCrossSiteSessionCookie,r.crossSite=!!n.useCrossSiteSessionCookie,n.trackSessionAcrossSubdomains&&(r.domain=function(){if(void 0===u){for(var t="dd_site_test_".concat(t5()),e=window.location.hostname.split("."),n=e.pop();e.length&&!t8(t);)t4(t,"test",1e3,{domain:n="".concat(e.pop(),".").concat(n)});t7(t,{domain:n}),u=n}return u}()),i=r))?void 0:{type:"Cookie",cookieOptions:i})||!e.allowFallbackToLocalStorage||(a=function(){try{var t=t5(),e="".concat("_dd_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),a),sessionSampleRate:null!=w?w:100,telemetrySampleRate:null!=(y=t.telemetrySampleRate)?y:20,telemetryConfigurationSampleRate:null!=(b=t.telemetryConfigurationSampleRate)?b:5,service:t.service,silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(l=t.env,d=t.service,f=t.version,p=t.datacenter,h=[],l&&h.push(eI("env",l)),d&&h.push(eI("service",d)),f&&h.push(eI("version",f)),p&&h.push(eI("datacenter",p)),v=h,g=Z(m={logsEndpointBuilder:eA(o=t,"logs",s=v),rumEndpointBuilder:eA(o,"rum",s),sessionReplayEndpointBuilder:eA(o,"sessionReplay",s)}).map(function(t){return t.urlPrefix}),W({isIntakeUrl:function(t){return g.some(function(e){return 0===t.indexOf(e)})},replica:function(t,e,n){if(t.replica){var r=W({},t,{site:ek,clientToken:t.replica.clientToken}),i={logsEndpointBuilder:eA(r,"logs",n),rumEndpointBuilder:eA(r,"rum",n)};return e.push.apply(e,Z(i).map(function(t){return t.urlPrefix}
1)),W({applicationId:t.replica.applicationId},i)}}(t,g,v),site:t.site||ek},m)))}(t);if(f){var p=!!(null!=(r=t.trackUserInteractions)?r:t.trackInteractions),h=!!t.trackFrustrations;return W({applicationId:t.applicationId,version:t.version,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:null!=(a=null!=(i=t.sessionReplaySampleRate)?i:s)?a:100,oldPlansBehavior:void 0===t.sessionReplaySampleRate,traceSampleRate:l,allowedTracingUrls:d,excludedActivityUrls:null!=(o=t.excludedActivityUrls)?o:[],workerUrl:t.workerUrl,trackUserInteractions:p||h,trackFrustrations:h,trackViewsManually:!!t.trackViewsManually,trackResources:t.trackResources,trackLongTasks:t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:er(eN,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:eN.MASK_USER_INPUT,customerDataTelemetrySampleRate:1},f)}}}(t);if(r){if(!n&&!r.sessionStoreStrategyType)return void M.warn("No storage available for session. We will not send any data.");if(r.trackViewsManually){var i=v;v=new J,g=function(e){w(t,r,e)},i.drain()}else w(t,r);o=!0}}}}),addRumGlobalContext:B(function(t,e){return s.add(t,e)}),setGlobalContextProperty:B(function(t,e){return s.setContextProperty(t,e)}),removeRumGlobalContext:B(function(t){return s.remove(t)}),removeGlobalContextProperty:B(function(t){return s.removeContextProperty(t)}),getRumGlobalContext:B(function(){return s.get()}),getGlobalContext:B(function(){return s.getContext()}),setRumGlobalContext:B(function(t){return s.set(t)}),setGlobalContext:B(function(t){return s.setContext(t)}),clearGlobalContext:B(function(){return s.clearContext()}),getInternalContext:B(function(t){return d(t)}),getInitConfiguration:B(function(){return f()}),addAction:B(function(t,e){_({name:tR(t),context:tR(e),startClocks:tf(),type:"custom"})}),addError:function(t,e){var n=t$();F(function(){y({error:t,handlingStack:n,context:tR(e),startClocks:tf()})})},addTiming:B(function(t,e){m(tR(t),e)}),setUser:B(function(t){var e;(e="object"===tt(t))||M.error("Unsupported user:",t),e&&l.setContext(te(t))}),getUser:B(function(){return l.getContext()}),setUserProperty:B(function(t,e){var n,r=te(((n={})[t]=e,n))[t];l.setContextProperty(t,r)}),removeUserProperty:B(function(t){return l.removeContextProperty(t)}),removeUser:B(function(){return l.clearContext()}),clearUser:B(function(){return l.clearContext()}),startView:S,stopSession:B(function(){p()}),startSessionReplayRecording:B(e.start),stopSessionReplayRecording:B(e.stop),addFeatureFlagEvaluation:B(function(t,e){b(tR(t),tR(e))}),getSessionReplayLink:B(function(){return h()})}
1,Object.defineProperty(r=W({version:"4.50.1",onReady:function(t){t()}},n),"_setDebug",{get:function(){return D},enumerable:!1}),r}(function(t,e,n,r,i,o){var s,u,l,f,p,h,b,w,S,E,A,R,O,L,U,P,z,D,V,Z,K,X,Y,J,te,ti,tv,t_,tb,tA,tI,tN,tM,tP,tD,tB=[],tF=new nd;tF.subscribe(11,function(t){return eB("rum",t)});var tV=function(t){var e,n,r,i,o,s=(e="browser-rum-sdk",n=t,i=new tO,eH.telemetryEnabled=!H(eV,n.site)&&tn(n.telemetrySampleRate),eH.telemetryConfigurationEnabled=eH.telemetryEnabled&&tn(n.telemetryConfigurationSampleRate),o={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self},v=function(t){if(eH.telemetryEnabled){var n,a,s,u=(n=e,a=t,s=o,tg({type:"telemetry",date:tl(),service:n,version:"4.50.1",source:"browser",_dd:{format_version:2},telemetry:tg(a,{runtime_env:s}),experimental_features:q(et)},void 0!==r?r():{}));i.notify(u),eB("telemetry",u)}},a=ej,W(eH,{maxEventsPerPage:n.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){r=t},observable:i,enabled:eH.telemetryEnabled});if(Q()){var u=$();s.observable.subscribe(function(t){return u.send("internal_telemetry",t)})}return s}(e);tV.setContextProvider(function(){var t,n;return{application:{id:e.applicationId},session:{id:null==(t=tG.findTrackedSession())?void 0:t.id},view:{id:null==(n=ex.findView())?void 0:n.id},action:{id:eR.findActionId()}}});var tH=function(t){tF.notify(12,{error:t}),eq("Error reported to customer",{"error.message":t.message})},tq=function(t,e){if(void 0===e&&(e=ty),!ee(c.FEATURE_FLAGS))return{findFeatureFlagEvaluations:function(){},getFeatureFlagBytesCount:function(){return 0},addFeatureFlagEvaluation:tx,stop:tx};var n=new nf(ea),r=0,i=!1;t.subscribe(4,function(t){var e=t.endClocks;n.closeActive(e.relative)}),t.subscribe(2,function(t){var e=t.startClocks;n.add({},e.relative),r=0});var a=tk(function(t){r=e(tC(t)),i||(i=tU(r,0))},200),o=a.throttled;return{findFeatureFlagEvaluations:function(t){return n.find(t)},getFeatureFlagBytesCount:function(){return n.find()?r:0},addFeatureFlagEvaluation:function(t,e){var r=n.find();r&&(r[t]=e,o(r))},stop:a.cancel}}(tF),tj=tK=new tO(function(){var t=ee(c.PAGEHIDE),n=t0(e,window,["visibilitychange","freeze","pagehide"],function(e){"pagehide"===e.type&&t?tK.notify({reason:eG.PAGEHIDE}):"visibilitychange"===e.type&&"hidden"===document.visibilityState?tK.notify({reason:eG.HIDDEN}):"freeze"===e.type&&tK.notify({reason:eG.FROZEN})},{capture:!0}).stop,r=tx;return t||(r=tQ(e,window,"beforeunload",function(){tK.notify({reason:eG.UNLOADING})}).stop),function(){n(),r()}}),tZ=tj.subscribe(function(t){tF.notify(9,t)});tB.push(function(){return tZ.unsubscribe()});var tG=Q()?(t1={id:"00000000-aaaa-0000-aaaa-000000000000",plan:1,sessionReplayAllowed:!1,longTaskAllowed:!0,resourceAllowed:!0},{findTrackedSession:function(){return t1},expire:tx,expireObservable:new tO}):((t2=function(t,e){var n,r,i,a,o,s,u=function(t,e){var n,r=new tO,i=new tO,a="Cookie"===t.type?function(t){var e,n,r={isLockEnabled:null!=d?d:d=!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent),persistSession:(e=t,function(t){t4(es,el(t),eo,e)}),retrieveSession:ef,clearSession:(n=t,function(){t7(es,n)})};if(!t8(es)){var i=t8("_dd"),a=t8("_dd_r"),o=t8("_dd_l"),s={};i&&(s.id=i),o&&/^[01]$/.test(o)&&(s.logs=o),a&&/^[012]$/.test(a)&&(s.rum=a),ei(s)||(ec(s),r.persistSession(s))}return r}(t.cookieOptions):{isLockEnabled:!1,persistSession:ep,retrieveSession:eh,clearSession:ev},o=a.clearSession,s=a.retrieveSession,u=tT(function(){eg({process:function(t){return p(t)?void 0:{}},after:l},a)},1e3),c=p(n=s())?n:{};function l(t){var e;return p(t)||(t={}),f()&&((e=t,c.id!==e.id||c.rum!==e.rum)?(c={},i.notify()):c=t),t}function f(){return void 0!==c.rum}function p(t){return(void 0===t.created||tc()-Number(t.created)<ea)&&(void 0===t.expire||tc()<Number(t.expire))}return{expandOrRenewSession:tk(function(){var t;eg({process:function(n){var r,i,a,o,s=l(n);return a=(i=e((r=s).rum)).trackingType,o=i.isTracked,r.rum=a,o&&!r.id&&(r.id=t5(),r.created=String(tc())),t=o,s},after:function(e){t&&!f()&&(c=e,r.notify()),c=e}},a)},1e3).throttled,expandSession:function(){eg({process:function(t){return f()?l(t):void 0}},a)},getSession:function(){return c},renewObservable:r,expireObservable:i,expire:function(){o(),l({})},stop:function(){tE(u)}}}(t.sessionStoreStrategyType,e);rl.push(function(){return u.stop()});var c=new nf(ea);function l(){return{id:u.getSession().id,trackingType:u.getSession().rum}}return rl.push(function(){return c.stop()}),u.renewObservable.subscribe(function(){c.add(l(),td())}),u.expireObservable.subscribe(function(){c.closeActive(td())}),u.expandOrRenewSession(),c.add(l(),tp().relative),n=t0(t,window,["click","touchstart","keydown","scroll"],function(){return u.expandOrRenewSession()},{capture:!0,passive:!0}).stop,rl.push(n),r=t,i=function(){return u.expandSession()},a=function(){"visible"===document.visibilityState&&i()},o=tQ(r,document,"visibilitychange",a).stop,rl.push(o),s=tT(a,6e4),rl.push(function(){tE(s)}),{findActiveSession:function(t){return c.find(t)},renewObservable:u.renewObservable,expireObservable:u.expireObservable,expire:u.expire}}(e,function(t){var n,r,i,a;return n=e,{trackingType:i="0"===(a=r=t)||"1"===a||"2"===a?r:tn(n.sessionSampleRate)?tn(n.sessionReplaySampleRate)?"1":"2":"0",
1isTracked:rd(i)}})).expireObservable.subscribe(function(){tF.notify(7)}),t2.renewObservable.subscribe(function(){tF.notify(8)}),{findTrackedSession:function(t){var n=t2.findActiveSession(t);if(n&&rd(n.trackingType)){var r="1"===n.trackingType?2:1;return{id:n.id,plan:r,sessionReplayAllowed:2===r,longTaskAllowed:void 0!==e.trackLongTasks?e.trackLongTasks:e.oldPlansBehavior&&2===r,resourceAllowed:void 0!==e.trackResources?e.trackResources:e.oldPlansBehavior&&2===r}}},expire:t2.expire,expireObservable:t2.expireObservable});if(Q())er=$(),tF.subscribe(11,function(t){er.send("rum",t)});else{var tK,t1,t2,er,eu,ed,em,e_,ey,eb=(eu=tV.observable,ed=tG.expireObservable,em=e.replica,e_=function(t,e,n,r,i,a){var o=u(t,e.endpoint),s=n&&u(t,n.endpoint);function u(t,e){return new rf(r_(t,e,t.batchBytesLimit,r),function(t){var e,n=t.messagesLimit,r=t.bytesLimit,i=t.durationLimit,a=t.pageExitObservable,o=t.sessionExpireObservable,s=a.subscribe(function(t){return f(t.reason)}),u=o.subscribe(function(){return f("session_expire")}),c=new tO(function(){return function(){s.unsubscribe(),u.unsubscribe()}}),l=0,d=0;function f(t){if(0!==d){var e=d,n=l;d=0,l=0,p(),c.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){tS(e),e=void 0}return{flushObservable:c,get messagesCount(){return d},notifyBeforeAddMessage:function(t){l+t>=r&&f("bytes_limit"),d+=1,l+=t,void 0===e&&(e=tw(function(){f("duration_limit")},i))},notifyAfterAddMessage:function(){d>=n?f("messages_limit"):l>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0==(d-=1)&&p()}}}({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:i,sessionExpireObservable:a}),t.messageBytesLimit)}return{flushObservable:o.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),o.add(t),s&&e&&s.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){o.upsert(t,e),s&&s.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){o.stop(),null==s||s.stop()}}}(e,{endpoint:e.rumEndpointBuilder},em&&{endpoint:em.rumEndpointBuilder,transformMessage:function(t){return tg(t,{application:{id:em.applicationId}})}},tH,tj,ed),tF.subscribe(11,function(t){"view"===t.type?e_.upsert(t,t.view.id):e_.add(t)}),eu.subscribe(function(t){return e_.add(t,e.site===eE)}),e_);tB.push(function(){return eb.stop()}),ey=eb.flushObservable,tV.enabled&&tn(e.customerDataTelemetrySampleRate)&&(rk(),rx(),tF.subscribe(11,function(t){C=!0,rT(x.globalContextBytes,ei(r.get())?0:r.getBytesCount()),rT(x.userContextBytes,ei(i.get())?0:i.getBytesCount());var e=tq.findFeatureFlagEvaluations(),n=H(["view","error"],t.type)&&e&&!ei(e);rT(x.featureFlagBytes,n?tq.getFeatureFlagBytesCount():0)}),ey.subscribe(function(t){var e=t.bytesCount,n=t.messagesCount;C&&(k.batchCount+=1,rT(k.batchBytesCount,e),rT(k.batchMessagesCount,n),rE(k.globalContextBytes,x.globalContextBytes),rE(k.userContextBytes,x.userContextBytes),rE(k.featureFlagBytes,x.featureFlagBytes),rx())}),tT(rw,1e4))}var eS=(D=eK(),V=new tO(function(){if(D){var t=new D(B(function(){return V.notify()}));return t.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return t.disconnect()}}})),eT=function(t,e){var n=en(e),r=new tO(function(){var e,n,r,a,o,s=(e=t,r=nh(history,"pushState",{after:n=i}).stop,a=nh(history,"replaceState",{after:n}).stop,o=tQ(e,window,"popstate",n).stop,{stop:function(){r(),a(),o()}}).stop,u=tQ(t,window,"hashchange",i).stop;return function(){s(),u()}});function i(){if(n.href!==e.href){var t=en(e);r.notify({newLocation:t,oldLocation:n}),n=t}}return r}(e,location),ek=function(t,e,n,r,i,a,o,s){var u,c,l,d,f,p,h,v,m=(u=new nf(ea),t.subscribe(2,function(t){var e;u.add({service:(e=t).service,version:e.version,id:e.id,name:e.name,startClocks:e.startClocks},t.startClocks.relative)}),t.subscribe(4,function(t){var e=t.endClocks;u.closeActive(e.relative)}),t.subscribe(8,function(){u.reset()}),{findView:function(t){return u.find(t)},stop:function(){u.stop()}}),_=function(t,e,n){var r,i=new nf(ea);t.subscribe(4,function(t){var e=t.endClocks;i.closeActive(e.relative)}),t.subscribe(2,function(t){var e=t.startClocks,a=n.href;i.add(o({url:a,referrer:r||document.referrer}),e.relative),r=a});var a=e.subscribe(function(t){var e=t.newLocation,n=i.find();if(n){var r=td();i.closeActive(r),i.add(o({url:e.href,referrer:n.referrer}),r)}});function o(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return i.find(t)},stop:function(){a.unsubscribe(),i.stop()}}}(t,i,n),y=function(t,e){void 0===e&&(e=500);var n,r=new nf(ea,4e3);a(rC(),td());var i=t0(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(t){var e;t.isTrusted&&a("freeze"===(e=t).type?"frozen":"pagehide"===e.type?e.persisted?"frozen":"terminated":rC(),t.timeStamp)},{capture:!0}).stop;function a(t,e){void 0===e&&(e=td()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}return{findAll:function(t,n){var i=r.findAll(t,n);if(0!==i.length){for(var a=[],o=Math.max(0,i.length-e),s=i.length-1;s>=o;s--){var u=i[s],c=u.startTime-t;a.push({state:u.state,start:tu(c)})}return a}},isInActivePageStateAt:function(t){var e=r.find(t);return void 0!==e&&"active"===e.state},addPageState:a,stop:function(){i(),r.stop()}}}(e),b=(t.subscribe(1,function(e){return t.notify(10,nY(e,y))}),c={findActionId:tx},e.trackUserInteractions&&(c=function(t,e,n){var r,i,a,o,s,u,c,l,d=new nf(nW),f=new tO;t.subscribe(8,function(){d.reset()}),t.subscribe(4,v);var p=(o=(r={onPointerDown:function(r){var i=n,a=t,o=e,s=d,u=r;if(!(!i.trackFrustrations&&s.find())){var c=function(t,e){var n,r=t.target.getBoundingClientRect();return{type:"click",target:{width:Math.round(r.width),height:Math.round(r.height),selector:nB(t.target,e)},position:{x:Math.round(t.clientX-r.left),y:Math.round(t.clientY-r.top)}
1,name:(n=t.target,nR(n,nA)||e&&nR(n,e)||nO(n,e,nI)||nO(n,e,nN)||"")}}(u,i.actionNameAttribute);if(i.trackFrustrations||c.name){var l,f=!1;return l=function(t){f=t.hadActivity},nk(nx(a,o,i),l,100),{clickActionBase:c,hadActivityOnPointerDown:function(){return f}}}}},onPointerUp:function(r,i,a){return function(t,e,n,r,i,a,o,s,u,c){var l,d=function t(e,n,r,i,a){var o,s=t5(),u=tf(),c=n.add(s,u.relative),l=nE({lifeCycle:e,isChildEvent:function(t){return void 0!==t.action&&(Array.isArray(t.action.id)?H(t.action.id,s):t.action.id===s)}}),d=0,f=[],p=new tO;function h(t){0===d&&((d=1,o=t)?c.close(o-th()):c.remove(),l.stop(),p.notify())}return{event:a,stop:h,stopObservable:p,get hasError(){return l.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==o},getUserActivity:r,addFrustration:function(t){f.push(t)},startClocks:u,isStopped:function(){return 1===d||2===d},clone:function(){return t(e,n,r,i,a)},validate:function(t){if(h(),1===d){var n,r=l.eventCounts,c=r.resourceCount,p=r.errorCount,v=r.longTaskCount,m=W({type:"click",duration:o&&(n=u.timeStamp,o-n),startClocks:u,id:s,frustrationTypes:f,counts:{resourceCount:c,errorCount:p,longTaskCount:v},events:null!=t?t:[a],event:a},i);e.notify(1,m),d=2}},discard:function(){h(),d=2}}}(e,r,u,o,s);t.trackFrustrations&&a(d);var f=(l=function(e){e.hadActivity&&e.end<d.startClocks.timeStamp?d.discard():(e.hadActivity?d.stop(e.end):c()?d.stop(d.startClocks.timeStamp):d.stop(),t.trackFrustrations||(e.hadActivity?d.validate():d.discard()))},nk(nx(e,n,t),l,1e4)).stop,p=e.subscribe(4,function(t){var e=t.endClocks;d.stop(e.timeStamp)}),h=i.subscribe(function(){d.stop()});d.stopObservable.subscribe(function(){p.unsubscribe(),f(),h.unsubscribe()})}(n,t,e,d,f,h,r.clickActionBase,i,a,r.hadActivityOnPointerDown)}}).onPointerDown,s=r.onPointerUp,u={selection:!1,input:!1},c=[tQ(n,window,"pointerdown",function(t){nK(t)&&(i=nG(),u={selection:!1,input:!1},a=o(t))},{capture:!0}),tQ(n,window,"selectionchange",function(){i&&nG()||(u.selection=!0)},{capture:!0}),tQ(n,window,"pointerup",function(t){if(nK(t)&&a){var e=u;s(a,t,function(){return e}),a=void 0}},{capture:!0}),tQ(n,window,"input",function(){u.input=!0},{capture:!0})],{stop:function(){c.forEach(function(t){return t.stop()})}}).stop;return{stop:function(){v(),f.notify(),p()},actionContexts:{findActionId:function(t){return n.trackFrustrations?d.findAll(t):d.find(t)}}};function h(t){if(!l||!l.tryAppend(t)){var e=t.clone();l=function(t,e){var n,r=[],i=0;function a(t){t.stopObservable.subscribe(o),r.push(t),tS(n),n=tw(s,1e3)}function o(){1===i&&r.every(function(t){return t.isStopped()})&&(i=2,e(r))}function s(){tS(n),0===i&&(i=1,o())}return a(t),{tryAppend:function(t){var e,n,o,u;return 0===i&&(!(r.length>0)||(e=r[r.length-1].event,n=t.event,e.target===n.target&&100>=(o=e,u=n,Math.sqrt(Math.pow(o.clientX-u.clientX,2)+Math.pow(o.clientY-u.clientY,2)))&&e.timeStamp-n.timeStamp<=1e3)?(a(t),!0):(s(),!1))},stop:function(){s()}}}(t,function(t){var n,r;(function(t,e){if(function(t){if(t.some(function(t){return t.getUserActivity().selection}))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=1e3)return!0;return!1}(t))return e.addFrustration("rage_click"),t.some(nX)&&e.addFrustration("dead_click"),e.hasError&&e.addFrustration("error_click"),{isRage:!0};var n=t.some(function(t){return t.getUserActivity().selection});return t.forEach(function(t){t.hasError&&t.addFrustration("error_click"),nX(t)&&!n&&t.addFrustration("dead_click")}),{isRage:!1}})(n=t,r=e).isRage?(n.forEach(function(t){return t.discard()}),r.stop(tl()),r.validate(n.map(function(t){return t.event}))):(r.discard(),n.forEach(function(t){return t.validate()}))})}}function v(){l&&l.stop()}}(t,a,e).actionContexts),{addAction:function(e,n){t.notify(10,W({savedCommonContext:n},nY(e,y)))},actionContexts:c}),w=b.addAction,S=b.actionContexts,T=(l=ro(),{get:function(){return{viewport:l}},stop:ra(e).subscribe(function(t){l=t}).unsubscribe});return(d={}).view=nc,d.error=W({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},nl,nc),d.resource=W({"resource.url":"string"},nl,nc),d.action=W({"action.target.name":"string"},nl,nc),d.long_task=W({},nl,nc),g=d,(f={}).error=no("error",e.eventRateLimiterThreshold,s),f.action=no("action",e.eventRateLimiterThreshold,s),p=f,h=function(){var t,e,n="string"==typeof(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||t8("datadog-synthetics-public-id"))?t:void 0,r="string"==typeof(e=window._DATADOG_SYNTHETICS_RESULT_ID||t8("datadog-synthetics-result-id"))?e:void 0;if(n&&r)return{test_id:n,result_id:r,injected:t9()}}(),v=function(){var t,e=null==(t=window.Cypress)?void 0:t.env("traceId");if("string"==typeof e)return{test_execution_id:e}}(),t.subscribe(10,function(n){var i=n.startTime,a=n.rawRumEvent,s=n.domainContext,u=n.savedCommonContext,c=n.customerContext,l=m.findView(i),d=_.findUrl(i),f=r.findTrackedSession(i);if(f&&l&&d){var y,b=u||o(),w=S.findActionId(i),E=tg({_dd:{format_version:2,drift:Math.round(tc()-(y=th(),y+performance.now())),session:{plan:f.plan},configuration:{session_sample_rate:tr(e.sessionSampleRate,3),session_replay_sample_rate:tr(e.sessionReplaySampleRate,3)},browser_sdk_version:Q()?"4.50.1":void 0},application:{id:e.applicationId},date:tl(),service:l.service||e.service,version:l.version||e.version,source:"browser",session:{id:f.id,type:h?"synthetics":v?"ci_test":"user"},view:{id:l.id,name:l.name,url:d.url,referrer:d.referrer},action:-1!==["error","resource","long_task"].indexOf(a.type)&&w?{id:w}:void 0,synthetics:h,ci_test:v,display:T.get()},a);E.context=tg(b.context,c),"has_replay"in E.session||(E.session.has_replay=b.hasReplay),ei(b.user)||(E.usr=b.user),function(t,e,n,r){if(e){var i,a,o,s,u=(i=g[t.type],o=e(a=tm(t),n),G(i).forEac
1h(function(e){var n=e[0],r=e[1],i=function(t,e){for(var n=t,r=0,i=e.split(".");r<i.length;r++){var a,o,s=i[r];if(a=n,o=s,!(nu(a)&&Object.prototype.hasOwnProperty.call(a,o)))return;n=n[s]}return n}(a,n),o=tt(i);o===r?ns(t,n,tR(i)):"object"===r&&("undefined"===o||"null"===o)&&ns(t,n,{})}),o);if(!1===u&&"view"!==t.type)return!1;!1===u&&M.warn("Can't dismiss view events using beforeSend!")}return!(null==(s=r[t.type])?void 0:s.isLimitReached())}(E,e.beforeSend,s,p)&&(ei(E.context)&&delete E.context,t.notify(11,E))}}),{viewContexts:m,pageStateHistory:y,urlContexts:_,addAction:w,actionContexts:S,stop:function(){T.stop(),y.stop(),_.stop(),m.stop(),y.stop()}}}(tF,e,location,tG,eT,eS,function(){return eD(r,i,n)},tH),ex=ek.viewContexts,eC=ek.pageStateHistory,eA=ek.urlContexts,eR=ek.actionContexts,eI=ek.addAction,eN=ek.stop;tB.push(eN),X=null!=(Z=t.proxy)?Z:t.proxyUrl,te={session_sample_rate:null!=(K=t.sessionSampleRate)?K:t.sampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,use_before_send:!!t.beforeSend,use_cross_site_session_cookie:t.useCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:void 0!==X?!!X:void 0,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,track_resources:t.trackResources,track_long_task:t.trackLongTasks,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages},tv=W({premium_sample_rate:t.premiumSampleRate,replay_sample_rate:t.replaySampleRate,session_replay_sample_rate:t.sessionReplaySampleRate,trace_sample_rate:null!=(Y=t.traceSampleRate)?Y:t.tracingSampleRate,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_origins:Array.isArray(t.allowedTracingOrigins)&&t.allowedTracingOrigins.length>0,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:(ti=new Set,Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach(function(t){eO(t)?ti.add("datadog"):"object"===tt(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach(function(t){return ti.add(t)})}),Array.isArray(t.allowedTracingOrigins)&&t.allowedTracingOrigins.length>0&&ti.add("datadog"),q(ti)),default_privacy_level:t.defaultPrivacyLevel,use_excluded_activity_urls:Array.isArray(t.excludedActivityUrls)&&t.excludedActivityUrls.length>0,use_worker_url:!!t.workerUrl,track_frustrations:t.trackFrustrations,track_views_manually:t.trackViewsManually,track_user_interactions:null!=(J=t.trackUserInteractions)?J:t.trackInteractions},te),eH.telemetryConfigurationEnabled&&eZ({type:"configuration",configuration:tv}),tF.subscribe(0,function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.entryType!==m.LONG_TASK)break;var r=tG.findTrackedSession(n.startTime);if(!r||!r.longTaskAllowed)break;var i=ts(n.startTime),a={date:i.timeStamp,long_task:{id:t5(),duration:tu(n.duration)},type:"long_task",_dd:{discarded:!1}};tF.notify(10,{rawRumEvent:a,startTime:i.relative,domainContext:{performanceEntry:n.toJSON()}})}}),tF.subscribe(6,function(t){var n,r,i,a,o,s,u,l,d,f,p,h,v,m,g,_,y,b;tF.notify(10,(n=t,r=e,i=tG,a=eC,f="xhr"===n.type?"xhr":"fetch",h=(p=function(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=e.map(function(t){return t.toJSON()}).filter(e$).filter(function(e){var n,r,i;return n=e,r=t.startClocks.relative,i=n2({startTime:t.startClocks.relative,duration:t.duration}),n.startTime>=r-1&&n2(n)<=i+1});if(1===n.length)return n[0]}}}(n))?ts(p.startTime):n.startClocks,v=p?n5(p):void 0,m=function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:n3(e)}}}(n,r),g=n6(i,h),_=(o=a,s=h,u=n.duration,ee(c.NO_RESOURCE_DURATION_FROZEN_STATE)?(null==(l=o.findAll(s.relative,u))?void 0:l.some(function(t){return"frozen"===t.state}))?void 0:tu(u):tu(u)),y=n4(a,h,null!=(d=null==p?void 0:p.duration)?d:n.duration),b=tg({date:h.timeStamp,resource:{id:t5(),type:f,duration:_,method:n.method,status_code:n.status,url:n.url},type:"resource"},m,v,g,y),{startTime:h.relative,rawRumEvent:b,domainContext:{performanceEntry:p&&p,xhr:n.xhr,response:n.response,requestInput:n.input,requestInit:n.init,error:n.error}}))}),tF.subscribe(0,function(t){for(var n=0;n<t.length;n++){var r=t[n];r.entryType===m.RESOURCE&&"xmlhttprequest"!==r.initiatorType&&"fetch"!==r.initiatorType&&tF.notify(10,function(t,e,n,r){var i=function(t){var e,n=t.name;if(!function(t){try{return!!ew(t)}catch(t){return!1}}(n))return eq('Failed to construct URL for "'.concat(t.name,'"')),"other";for(var r="/"===(e=ew(n).pathname)[0]?e:"/".concat(e),i=0;i<eY.length;i++){var a=eY[i],o=a[0];if((0,a[1])(t.initiatorType,r))return o}return"other"}(t),a=n5(t),o=ts(t.startTime),s=function(t,e){if(t.traceId)return{_dd:{trace_id:t.traceId,rule_psr:n3(e)}}}(t,e),u=n6(n,o),c=n4(r,o,t.duration),l=tg({date:o.timeStamp,resource:{id:t5(),type:i,url:t.name},type:"resource"},s,a,u,c);return{startTime:o.relative,rawRumEvent:l,domainContext:{performanceEntry:t}}}(r,e,tG,eC))}});var eL=(t_=location,tF.subscribe(3,function(t){var r,i,a,o,s,u,l,d,f,p,h,v,m,g,_,y,b,w,S,T,E,k,x,C,A;return tF.notify(10,(r=t,i=e,a=tq,o=n,s=eC,E=o.getReplayStats(r.id),k=a.findFeatureFlagEvaluations(r.startClocks.relative),x=ee(c.PAGE_STATES),C=s.findAll(r.startClocks.relative,r.duration),A={_dd:{document_version:r.documentVersion,replay_stats:E,page_states:x?C:void 0},date:r.startClocks.timeStamp,type:"view",view:{action:{count:r.eventCounts.actionCount},frustration:{count:r.eventCounts.frustrationCount},cumulative_layout_shift:null==(l=r.commonViewMetrics.cumulativeLayoutShift)?void 0:l.value,cumulative_layout_shift_target_selector:null==(d=r.commonViewMetrics.cumulativeLayoutShift)?void 0:d.targetSelector,first_byte:tu(null==(f=r.initialViewMetrics.navigationTimings)?void 0:f.firstByte),dom_complete:tu(null==(p=r.initialViewMetrics.navigationTimings)?void 0:p.domComplete),dom_content_loaded:tu(null==(h=r.initialViewMetrics.navigationTimings)?void 0:h.domContentLoaded),dom_interactive:tu(null==(v=r.initialViewMetrics.navigationTimings)?void 0:v.domInteractive),error:{count:r.eventCounts.errorCount},first_contentful_paint:tu(r.initialViewMetrics.firstContentfulPaint),first_input_delay:tu(null==(m=r.initialViewMetrics.firstInput)?void 0:m.delay),first_input_time:tu(null==(g=r.initialViewMetrics.firstInput)?void 0:g.time),first_input_target_selector:null==(_=r.initialViewMetrics.firstInput)?void 0:_.targetSelector,interaction_to_next_paint:tu(null==(y=r.commonViewMetrics.interactionToNextPaint)?void 0:y.value),interaction_to_next_paint_target_selector:null==(b=r.commonViewMetrics.interactionToNextPaint)?void 0:b.targetSelector,is_active:r.isActive,name:r.name,largest_contentful_paint:tu(null==(w=r.initialViewMetrics.largestContentfulPaint)?void 0:w.value),largest_contentful_paint_target_selector:null==(S=r.initialViewMetrics.largestContentfulPaint)?void 0:S.targetSelector,load_event:tu(null==(T=r.initialViewMetrics.navigationTimings)?void 0:T.loadEvent),loading_time:ta(u=tu(r.commonViewMetrics.loadingTime))&&u<0?void 0:u,loading_type:r.loadingType,long_task:{count:r.eventCounts.longTaskCount},resource:{count:r.eventCounts.resourceCount},time_spent:tu(r.duration),in_foreground_periods:!x&&C?function(t,e){for(var n=[],r=0;r<t.length;r++){var i=t[r],a=t[r+1];if("active"===i.state){var o=i.start>=0?i.start:0,s=a?a.start:tu(e);n.push({start:o,duration:s-o})}}return n}(C,r.duration):void 0},feature_flags:k&&!ei(k)?k:void 0,display:r.commonViewMetrics.scroll?{scroll:{max_depth:r.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:r.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:r.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:tu(r.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!E||void 0,is_active:!!r.sessionIsActive&&void 0},privacy:{replay_level:i.defaultPrivacyLevel}},ei(r.customTimings)||(A.view.custom_timings=function(t,e){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var a=i[r];n[a]=e(t[a])}return n}(r.customTimings,tu)),{rawRumEvent:A,startTime:r.startClocks.relative,domainContext:{location:r.location}}))}),function(t,e,n,r,i,a,o){var s,u=new Set,l=d("initial_load",tp(),o);function d(i,a,o){var s=function(t,e,n,r,i,a,o){void 0===a&&(a=tf());var s,u,l,d,f,p,h,v,g,_,y,b,w,S,E,k,x,C,A,R,I,N,O,L,U,P,z,D,F,V,H,q,Z,G,K,X,W,Y,J,$,Q,tt
1=t5(),te=new tO,tn={},ti=0,ta=en(r),ts=!0;o&&(J=o.name,$=o.service,Q=o.version),t.notify(2,{id:tt,name:J,startClocks:a,service:$,version:Q});var tu=tk(tI,3e3,{leading:!1}),tc=tu.throttled,tp=tu.cancel,th=(f={},h=(p=function(t,e,n,r,i,a){var o,s="initial_load"===r,u=!0,c=[];function l(){u||s||!(c.length>0)||a(Math.max.apply(Math,c))}return{stop:(o=function(t){if(u){var e;u=!1,t.hadActivity&&c.push((e=i.timeStamp,t.end-e)),l()}},nk(nx(t,e,n),o,void 0)).stop,setLoadEvent:function(t){s&&(s=!1,c.push(t),l())}}}(t,e,n,i,d=a,function(t){f.loadingTime=t,tc()})).stop,v=p.setLoadEvent,E=(g=function(t){f.scroll=t},void 0===_&&(s=n,void 0===u&&(u=1e3),_=l=new tO(function(){if(window.ResizeObserver){var t=tk(function(){var t,e;l.notify((t=ri(),e=ro().height,{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(e+t),scrollTop:t}))},u,{leading:!1,trailing:!0}),e=document.scrollingElement||document.documentElement,n=new ResizeObserver(B(t.throttled));n.observe(e);var r=tQ(s,window,"scroll",t.throttled,{passive:!0});return function(){t.cancel(),n.unobserve(e),r.stop()}}})),y=0,b=0,w=0,S=_.subscribe(function(t){var e=t.scrollDepth,n=t.scrollTop,r=t.scrollHeight,i=!1;(e>y&&(y=e,i=!0),r>b)&&(b=r,w=td()-d.relative,i=!0);i&&g({maxDepth:Math.min(y,b),maxDepthScrollTop:n,maxScrollHeight:b,maxScrollHeightTime:w})}),{stop:function(){return S.unsubscribe()}}).stop,k=function(t,e,n){if(!nn(m.LAYOUT_SHIFT))return{stop:tx};var r,i,a,o,s,u,l=0;n({value:0});var d=(s=0,u=0,{update:function(t){var e,n;void 0===r||t.startTime-i>=1e3||t.startTime-r>=5e3?(r=i=t.startTime,s=t.value,u=0,a=void 0):(s+=t.value,i=t.startTime),t.value>u&&(u=t.value,o=t.startTime,a=(null==(e=t.sources)?void 0:e.length)?null==(n=j(t.sources,function(t){return!!t.node&&e5(t.node)}))?void 0:n.node:void 0)},value:function(){return s},largestLayoutShiftTarget:function(){return a},largestLayoutShiftTime:function(){return o}});return{stop:e.subscribe(0,function(e){for(var r=0;r<e.length;r++){var i=e[r];if(i.entryType===m.LAYOUT_SHIFT&&!i.hadRecentInput&&(d.update(i),d.value()>l)){var a=tr(l=d.value(),4),o=d.largestLayoutShiftTarget(),s=void 0;ee(c.WEB_VITALS_ATTRIBUTION)&&o&&(s=nB(o,t.actionNameAttribute)),n({value:a,targetSelector:s})}}}).unsubscribe}}(n,t,function(t){f.cumulativeLayoutShift=t,tc()}).stop,C=(x=function(t,e,n,r){if(!(nn(m.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype)||!ee(c.INTERACTION_TO_NEXT_PAINT))return{getInteractionToNextPaint:function(){},stop:tx};var i,a,o,s=(i=n,"interactionCount"in performance||T||(T=new window.PerformanceObserver(B(function(t){t.getEntries().forEach(function(t){t.interactionId&&(rt=Math.min(rt,t.interactionId),n9=((re=Math.max(re,t.interactionId))-rt)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),a="initial_load"===i?0:rn(),{getViewInteractionCount:function(){return rn()-a}}).getViewInteractionCount,u=function(t){var e=[];function n(){e.sort(function(t,e){return e.duration-t.duration}).splice(10)}return{process:function(t){var r=e.findIndex(function(e){return t.interactionId===e.interactionId}),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(s),l=-1,d=!1;return{getInteractionToNextPaint:function(){return l>=0?{value:l,targetSelector:o}:s()?{value:0}:void 0},stop:r.subscribe(0,function(n){for(var r,i,a=0;a<n.length;a++){var s=n[a];(s.entryType===m.EVENT||s.entryType===m.FIRST_INPUT)&&s.interactionId&&u.process(s)}var f=u.estimateP98Interaction();f&&((l=f.duration)>6e5&&!d&&(d=!0,eq("INP outlier",{inp:l,interaction:{timeFromViewStart:(r=e.relative,f.startTime-r),duration:f.duration,startTime:f.startTime,processingStart:f.processingStart,processingEnd:f.processingEnd,interactionId:f.interactionId,name:f.name,targetNodeName:null==(i=f.target)?void 0:i.nodeName}})),o=ee(c.WEB_VITALS_ATTRIBUTION)&&f.target&&e5(f.target)?nB(f.target,t.actionNameAttribute):void 0)}).unsubscribe}}(n,d,i,t)).stop,A=x.getInteractionToNextPaint,{stop:function(){h(),k(),E(),C()}
1,setLoadEvent:v,getCommonViewMetrics:function(){return f.interactionToNextPaint=A(),f}}),tv=th.setLoadEvent,tm=th.stop,tg=th.getCommonViewMetrics,t_="initial_load"===i?(R={},N=(I=function(t){tv(t.loadEvent),R.navigationTimings=t,tc()},{stop:t.subscribe(0,function(t){for(var e=0;e<t.length;e++){var n=t[e];n.entryType===m.NAVIGATION&&I({domComplete:n.domComplete,domContentLoaded:n.domContentLoadedEventEnd,domInteractive:n.domInteractive,loadEvent:n.loadEventEnd,firstByte:n.responseStart>=0&&n.responseStart<=td()?n.responseStart:void 0})}}).unsubscribe}).stop,void 0===O&&(O=window),"hidden"===document.visibilityState?L=0:(L=1/0,U=t0(n,O,["pagehide","visibilitychange"],function(t){("pagehide"===t.type||"hidden"===document.visibilityState)&&(L=t.timeStamp,U())},{capture:!0}).stop),D=(P={get timeStamp(){return L},stop:function(){null==U||U()}},z=function(t){R.firstContentfulPaint=t,tc()},{stop:t.subscribe(0,function(t){var e=j(t,function(t){return t.entryType===m.PAINT&&"first-contentful-paint"===t.name&&t.startTime<P.timeStamp&&t.startTime<n8});e&&z(e.startTime)}).unsubscribe}).stop,G=(F=window,V=function(t){R.largestContentfulPaint=t,tc()},H=1/0,q=t0(n,F,["pointerdown","keydown"],function(t){H=t.timeStamp},{capture:!0,once:!0}).stop,Z=t.subscribe(0,function(t){var e=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,function(t){return t.entryType===m.LARGEST_CONTENTFUL_PAINT&&t.startTime<H&&t.startTime<P.timeStamp&&t.startTime<n7});if(e){var r=void 0;ee(c.WEB_VITALS_ATTRIBUTION)&&e.element&&(r=nB(e.element,n.actionNameAttribute)),V({value:e.startTime,targetSelector:r})}}).unsubscribe,{stop:function(){q(),Z()}}).stop,X=(K=function(t){R.firstInput=t,tc()},{stop:t.subscribe(0,function(t){var e=j(t,function(t){return t.entryType===m.FIRST_INPUT&&t.startTime<P.timeStamp});if(e){var r,i=(r=e.startTime,e.processingStart-r),a=void 0;ee(c.WEB_VITALS_ATTRIBUTION)&&e.target&&e5(e.target)&&(a=nB(e.target,n.actionNameAttribute)),K({delay:i>=0?i:0,time:e.startTime,targetSelector:a})}}).unsubscribe}).stop,{stop:function(){N(),D(),G(),X(),P.stop()},initialViewMetrics:R}):{stop:tx,initialViewMetrics:{}},ty=t_.stop,tb=t_.initialViewMetrics,tS={stop:(W=nE({lifeCycle:t,isChildEvent:function(t){return t.view.id===tt},onChange:tc})).stop,eventCounts:W.eventCounts},tC=tS.stop,tA=tS.eventCounts,tR=tT(tI,rs);function tI(){tp(),ti+=1;var e=void 0===Y?tl():Y.timeStamp;t.notify(3,{customTimings:tn,documentVersion:ti,id:tt,name:J,service:$,version:Q,loadingType:i,location:ta,startClocks:a,commonViewMetrics:tg(),initialViewMetrics:tb,duration:e-a.timeStamp,isActive:void 0===Y,sessionIsActive:ts,eventCounts:tA})}return tI(),{name:J,service:$,version:Q,stopObservable:te,end:function(e){var n,r,i=this;void 0===e&&(e={}),Y||(Y=null!=(n=e.endClocks)?n:tf(),ts=null==(r=e.sessionIsActive)||r,t.notify(4,{endClocks:Y}),tE(tR),tm(),tI(),tw(function(){i.stop()},ru))},stop:function(){ty(),tC(),te.notify()},addTiming:function(t,e){if(!Y){var n,r,i=e<to?e:e-a.timeStamp;tn[(r=(n=t).replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==n&&M.warn("Invalid timing name: ".concat(n,", sanitized to: ").concat(r)),r]=i,tc()}}}}(e,n,r,t,i,a,o);return u.add(s),s.stopObservable.subscribe(function(){u.delete(s)}),s}return e.subscribe(8,function(){l=d("route_change",void 0,{name:l.name,service:l.service,version:l.version})}),e.subscribe(7,function(){l.end({sessionIsActive:!1})}),e.subscribe(9,function(t){(t.reason===eG.UNLOADING||t.reason===eG.PAGEHIDE)&&l.end()}),a&&(s=i.subscribe(function(t){var e,n,r;e=t.oldLocation,n=t.newLocation,e.pathname===n.pathname&&(r=n.hash.substr(1),document.getElementById(r)||rc(n.hash)===rc(e.hash))||(l.end(),l=d("route_change"))})),{addTiming:function(t,e){void 0===e&&(e=tl()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=d("route_change",e,t)},stop:function(){null==s||s.unsubscribe(),l.end(),u.forEach(function(t){return t.stop()})}}}(t_,tF,eS,e,eT,!e.trackViewsManually,o)),eP=eL.addTiming,ez=eL.startView,eF=eL.stop;tB.push(eF);var eJ=(s=tb=new tO,(u=[I.error].map(function(t){var e,n;return nQ[t]||(nQ[t]=(e=t,n=new tO(function(){var t=N[e];return N[e]=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];t.apply(console,r);var a=t$();F(function(){n.notify(function(t,e,n){var r,i,a=t.map(function(t){var e;return"string"==typeof(e=t)?tR(e):e instanceof Error?tJ(tz(e)):tC(tR(e),void 0,2)}).join(" ");if(e===I.error){var o=j(t,function(t){return t instanceof Error});r=o?tY(tz(o)):void 0,i=tW(o),a="console error: ".concat(a)}return{api:e,message:a,stack:r,handlingStack:n,fingerprint:i}}(r,e,a))})},function(){N[e]=t}}))),nQ[t]}),tL.apply(void 0,u)).subscribe(function(t){return s.notify({startClocks:tf(),message:t.message,stack:t.stack,fingerprint:t.fingerprint,source:"console",handling:"handled",handlingStack:t.handlingStack})}),(l=tA=function(t,e){tb.notify(tX({stackTrace:t,originalError:e,startClocks:tf(),nonErrorPrefix:"Uncaught",source:"source",handling:"unhandled"}))},nh(window,"onerror",{before:function(t,e,n,r,i){var a;if(i instanceof Error)a=tz(i);else{var o,s,u,c,d=(o=t,"[object String]"===({}).toString.call(o)&&(u=(s=n$.exec(o))[1],c=s[2]),{name:u,message:c});a={name:d.name,message:d.message,stack:[{url:e,column:r,line:n}
1]}}l(a,null!=i?i:t)}})).stop,(f=tA,nh(window,"onunhandledrejection",{before:function(t){var e=t.reason||"Empty reason";f(tz(e),e)}})).stop,(tN=[],H(tI=[n0,"intervention"],n0)&&tN.push((p=e,h=new tO(function(){return tQ(p,document,"securitypolicyviolation",function(t){var e,n;h.notify((e=t,n="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive"),{type:n0,subtype:e.effectiveDirective,message:"".concat(n0,": ").concat(n),stack:n1(e.effectiveDirective,e.originalPolicy?"".concat(n,' of the policy "').concat(t6(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)}))}).stop}))),(tM=tI.filter(function(t){return t!==n0})).length&&tN.push((b=tM,w=new tO(function(){if(window.ReportingObserver){var t=B(function(t,e){return t.forEach(function(t){var e,n,r;w.notify((n=(e=t).type,{type:n,subtype:(r=e.body).id,message:"".concat(n,": ").concat(r.message),stack:n1(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)}))})}),e=new window.ReportingObserver(t,{types:b,buffered:!0});return e.observe(),function(){e.disconnect()}}}))),tL.apply(void 0,tN)).subscribe(function(t){return tb.notify({startClocks:tf(),message:t.message,stack:t.stack,type:t.subtype,source:"report",handling:"unhandled"})}),tb.subscribe(function(t){return tF.notify(12,{error:t})}),S=tF,E=eC,A=tq,S.subscribe(12,function(t){var e,n,r,i,a,o=t.error,s=t.customerContext,u=t.savedCommonContext;S.notify(10,W({customerContext:s,savedCommonContext:u},(e=o,n=E,r=A,i={date:e.startClocks.timeStamp,error:{id:t5(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint},type:"error",view:{in_foreground:n.isInActivePageStateAt(e.startClocks.relative)}},(a=r.findFeatureFlagEvaluations(e.startClocks.relative))&&!ei(a)&&(i.feature_flags=a),{rawRumEvent:i,startTime:e.startClocks.relative,domainContext:{error:e.originalError}})))}),{addError:function(t,e){var n=t.error,r=t.handlingStack,i=t.startClocks,a=t.context,o=tX({stackTrace:n instanceof Error?tz(n):void 0,originalError:n,handlingStack:r,startClocks:i,nonErrorPrefix:"Provided",source:"custom",handling:"handled"});S.notify(12,{customerContext:a,savedCommonContext:e,error:o})}}).addError;tP={clearTracingIfNeeded:eM,traceFetch:function(t){return eU(e,t,tG,function(e){var n;if(t.input instanceof Request&&!(null==(n=t.init)?void 0:n.headers))t.input=new Request(t.input),Object.keys(e).forEach(function(n){t.input.headers.append(n,e[n])});else{t.init=en(t.init);var r=[];t.init.headers instanceof Headers?t.init.headers.forEach(function(t,e){r.push([e,t])}):Array.isArray(t.init.headers)?t.init.headers.forEach(function(t){r.push(t)}):t.init.headers&&Object.keys(t.init.headers).forEach(function(e){r.push([e,t.init.headers[e]])}),t.init.headers=r.concat(G(e))}})},traceXhr:function(t,n){return eU(e,t,tG,function(t){Object.keys(t).forEach(function(e){n.setRequestHeader(e,t[e])})})}},function(t,e,n){var r,i;(!y&&(r=e,y=i=new tO(function(){var t=nh(XMLHttpRequest.prototype,"open",{before:ny}).stop,e=nh(XMLHttpRequest.prototype,"send",{before:function(){nb.call(this,r,i)}}).stop,n=nh(XMLHttpRequest.prototype,"abort",{before:nw}).stop;return function(){t(),e(),n()}})),y).subscribe(function(r){if(e1(e,r.url))switch(r.state){case"start":n.traceXhr(r,r.xhr),r.requestIndex=nT(),t.notify(5,{requestIndex:r.requestIndex,url:r.url});break;case"complete":n.clearTracingIfNeeded(r),t.notify(6,{duration:r.duration,method:r.method,requestIndex:r.requestIndex,spanId:r.spanId,startClocks:r.startClocks,status:r.status,traceId:r.traceId,traceSampled:r.traceSampled,type:"xhr",url:r.url,xhr:r.xhr})}})}(tF,e,tP),R=tF,O=e,L=tP,(!_&&(_=U=new tO(function(){if(window.fetch)return np(window,"fetch",function(t){return function(e,n){var r,i=F(nm,null,[U,e,n]);return i?F(ng,null,[U,r=t.call(this,i.input,i.init),i]):r=t.call(this,e,n),r}}).stop})),_).subscribe(function(t){if(e1(O,t.url))switch(t.state){case"start":L.traceFetch(t),t.requestIndex=nT(),R.notify(5,{requestIndex:t.requestIndex,url:t.url});break;case"resolve":var e,n,r,i;e=t,n=function(e){L.clearTracingIfNeeded(t),R.notify(6,{duration:e,method:t.method,requestIndex:t.requestIndex,responseType:t.responseType,spanId:t.spanId,startClocks:t.startClocks,status:t.status,traceId:t.traceId,traceSampled:t.traceSampled,type:"fetch",url:t.url,response:t.response,init:t.init,input:t.input})},(i=e.response&&function(t){try{return t.clone()}catch(t){return}}(e.response))&&i.body?function(t,e,n){var r=t.getReader(),i=[],a=0;function o(){if(r.cancel().catch(tx),n.collectStreamBody){if(1===i.length)s=i[0];else{var t,o,s=new Uint8Array(a),u=0;
1i.forEach(function(t){s.set(t,u),u+=t.length})}t=s.slice(0,n.bytesLimit),o=s.length>n.bytesLimit}e(void 0,t,o)}!function t(){r.read().then(B(function(e){e.done?o():(n.collectStreamBody&&i.push(e.value),(a+=e.value.length)>n.bytesLimit?o():t())}),B(function(t){return e(t)}))}()}(i.body,function(){var t;n((t=e.startClocks.timeStamp,tl()-t))},{bytesLimit:1/0,collectStreamBody:!1}):n((r=e.startClocks.timeStamp,tl()-r))}});if(P=e,z=function(t){ni(tF,e,[t])},eX(P,"interactive",function(){var t,e={entryType:m.RESOURCE,initiatorType:eW,traceId:function(t){var e,n,r,i=(n=(e=t).querySelector("meta[name=dd-trace-id]"),r=e.querySelector("meta[name=dd-trace-time]"),e9(n&&n.content,r&&r.content)||function(t){var e=function(t){for(var e=0;e<t.childNodes.length;e+=1){var n=nt(t.childNodes[e]);if(n)return n}if(t.body)for(var e=t.body.childNodes.length-1;e>=0;e-=1){var r=t.body.childNodes[e],n=nt(r);if(n)return n;if(!e2(r))break}}(t);if(e)return e9(t3(e,"trace-id"),t3(e,"trace-time"))}(t));if(!(!i||i.traceTime<=tc()-e7))return i.traceId}(document),toJSON:function(){return W({},t,{toJSON:void 0})}};if(nn(m.NAVIGATION)&&performance.getEntriesByType(m.NAVIGATION).length>0)t=W(performance.getEntriesByType(m.NAVIGATION)[0].toJSON(),e);else{var n=nr();t=W(n,{decodedBodySize:0,duration:n.responseEnd,name:window.location.href,startTime:0},e)}z(t)}),ne()){var eQ=performance.getEntries();tw(function(){return ni(tF,e,eQ)})}if(window.PerformanceObserver){var e0=B(function(t){return ni(tF,e,t.getEntries())}),e3=[m.RESOURCE,m.NAVIGATION,m.LONG_TASK,m.PAINT],e6=[m.LARGEST_CONTENTFUL_PAINT,m.FIRST_INPUT,m.LAYOUT_SHIFT,m.EVENT];try{e6.forEach(function(t){new window.PerformanceObserver(e0).observe({type:t,buffered:!0,durationThreshold:40})})}catch(t){e3.push.apply(e3,e6)}new PerformanceObserver(e0).observe({entryTypes:e3}),ne()&&"addEventListener"in performance&&tQ(e,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})}nn(m.NAVIGATION)||function(t,e){function n(){e(W(nr(),{entryType:m.NAVIGATION}))}eX(t,"complete",function(){tw(n)})}(e,function(t){ni(tF,e,[t])}),nn(m.FIRST_INPUT)||function(t,e){var n=tc(),r=!1,i=t0(t,window,["click","mousedown","keydown","touchstart","pointerdown"],function(e){if(e.cancelable){var n,r,i={entryType:m.FIRST_INPUT,processingStart:td(),processingEnd:td(),startTime:e.timeStamp,duration:0,name:""};"pointerdown"===e.type?(n=t,r=i,t0(n,window,["pointerup","pointercancel"],function(t){"pointerup"===t.type&&a(r)},{once:!0})):a(i)}},{passive:!0,capture:!0}).stop;function a(t){if(!r){r=!0,i();var a=t.processingStart-t.startTime;a>=0&&a<tc()-n&&e(t)}}}(e,function(t){ni(tF,e,[t])});var e4=(tD=e.applicationId,{get:function(t){var e=ex.findView(t),n=eA.findUrl(t),r=tG.findTrackedSession(t);if(r&&e&&n){var i=eR.findActionId(t);return{application_id:tD,session_id:r.id,user_action:i?{id:i}:void 0,view:{id:e.id,name:e.name,referrer:n.referrer,url:n.url}}}}});return{addAction:eI,addError:eJ,addTiming:eP,addFeatureFlagEvaluation:tq.addFeatureFlagEvaluation,startView:ez,lifeCycle:tF,viewContexts:ex,session:tG,stopSession:function(){return tG.expire()},getInternalContext:e4.get,stop:function(){tB.forEach(function(t){return t()})}}},function(t){if(Q()||!ia())return{start:tx,stop:tx,getReplayStats:function(){},onRumStart:tx,isRecording:function(){return!1},getSessionReplayLink:function(){}};var e={status:0},n=function(){e={status:1}},r=function(){e={status:0}};return{start:function(){return n()},stop:function(){return r()},getSessionReplayLink:function(t,n,r){var i,a,o,s,u,c,l,d,f,p,h,v,m,g,_,y;return i=0!==e.status,v=a=n.findTrackedSession(),m=i,o=ia()?v?v.sessionReplayAllowed?m?void 0:"replay-not-started":"incorrect-session-plan":"rum-not-tracked":"browser-not-supported",s=r.findView(),c=(u={viewContext:s,errorType:o,session:a}).session,l=u.viewContext,d=u.errorType,f=c?c.id:"no-session-id",p=[],void 0!==d&&p.push("error-type=".concat(d)),l&&(p.push("seed=".concat(l.id)),p.push("from=".concat(l.startClocks.timeStamp))),_=(g=t).site,y=g.subdomain||function(t){switch(t.site){case ek:case"datadoghq.eu":return"app";case eE:return"dd";default:return}}(g),h="https://".concat(y?"".concat(y,"."):"").concat(_),"".concat(h).concat("/rum/replay/sessions/".concat(f),"?").concat(p.join("&"))},onRumStart:function(i,a,o,s){i.subscribe(7,function(){(2===e.status||3===e.status)&&(r(
1),e={status:1})}),i.subscribe(8,function(){1===e.status&&n()}),n=function(){var n=o.findTrackedSession();if(!n||!n.sessionReplayAllowed){e={status:1};return}2!==e.status&&3!==e.status&&(e={status:2},eX(a,"interactive",function(){if(2===e.status){var n,u,c,l,d,f,p=function(t,e,n,r){switch(void 0===r&&(r=io),0===is.status&&function(t,e,n){void 0===n&&(n=io);try{var r=n(t),i=tQ(t,r,"error",function(n){iu(t,e,n)}).stop,a=tQ(t,r,"message",function(n){var r,i=n.data;"errored"===i.type?iu(t,e,i.error,i.streamId):"initialized"===i.type&&(r=i.version,1===is.status&&(is={status:3,worker:is.worker,stop:is.stop,version:r}))}).stop;r.postMessage({action:"init"}),tw(function(){var t;return t=e,void(1===is.status&&(M.error("".concat(t," failed to start: a timeout occurred while initializing the Worker")),is.initializationFailureCallbacks.forEach(function(t){return t()}),is={status:2}))},1e4),is={status:1,worker:r,stop:function(){i(),a()},initializationFailureCallbacks:[]}}catch(n){iu(t,e,n)}}(t,e,r),is.status){case 1:return is.initializationFailureCallbacks.push(n),is.worker;case 3:return is.worker}}(a,"Datadog Session Replay",function(){r()},void 0);if(!p){e={status:0};return}e={status:3,stopRecording:t(i,a,o,s,(u=0,c=[],l=0,d=[],f=tQ(a,p,"message",function(t){var e=t.data;if("wrote"===e.type&&1===e.streamId){var r=d.shift();r&&r.id===e.id?(0===e.id?(u=e.additionalBytesCount,c=[e.result]):(u+=e.additionalBytesCount,c.push(e.result)),n=e.trailer,r.callback()):(f(),eq("Worker responses received out of order."))}}).stop,{get encodedBytes(){return c.length?function(t){for(var e=new Uint8Array(t.reduce(function(t,e){return t+e.length},0)),n=0,r=0;r<t.length;r++){var i=t[r];e.set(i,n),n+=i.length}return e}(c.concat(n)):new Uint8Array(0)},get encodedBytesCount(){return c.length?c.reduce(function(t,e){return t+e.length},0)+n.length:0},get rawBytesCount(){return u},write:function(t,e){p.postMessage({action:"write",id:l,data:t,streamId:1}),d.push({id:l,callback:e}),l+=1},reset:function(){p.postMessage({action:"reset",streamId:1}),l=0},stop:function(){f()}})).stop}}}))},r=function(){0!==e.status&&(3===e.status&&e.stopRecording(),e={status:0})},1===e.status&&n()},isRecording:function(){return 3===is.status&&3===e.status},getReplayStats:function(t){return 3===is.status?null==R?void 0:R.get(t):void 0}}}(function(t,e,n,r,i,a){var o=a||r_(e,e.sessionReplayEndpointBuilder,6e4,function(e){t.notify(12,{error:e}),eq("Error reported to customer",{"error.message":e.message})}),s=function(t,e,n,r){var i={status:0,nextSegmentCreationReason:"init"},a=t.subscribe(2,function(){s("view_change")}).unsubscribe,o=t.subscribe(9,function(t){s(t.reason)}).unsubscribe;function s(t){1===i.status&&(i.segment.flush(function(e){var i,a,o,s,u=(i=r.encodedBytes,a=r.rawBytesCount,(o=new FormData).append("segment",new Blob([i],{type:"application/octet-stream"}),"".concat(e.session.id,"-").concat(e.start)),s=JSON.stringify(W({raw_segment_size:a,compressed_segment_size:i.byteLength},e)),o.append("event",new Blob([s],{type:"application/json"})),{data:o,bytesCount:i.byteLength});H(Z(eG),t)?n.sendOnExit(u):n.send(u)}),tS(i.expirationTimeoutId)),i="stop"!==t?{status:0,nextSegmentCreationReason:t}:{status:2}}return{addRecord:function(t){if(2!==i.status){if(0===i.status){var n=e();if(!n)return;i={status:1,segment:new ii(r,n,i.nextSegmentCreationReason),expirationTimeoutId:tw(function(){s("segment_duration_limit")},3e4)}}var a=i.segment;a.addRecord(t,function(){1===i.status&&i.segment===a&&r.encodedBytesCount>6e4&&s("segment_bytes_limit")})}},stop:function(){s("stop"),a(),o()}}}(t,function(){var t=e.applicationId,i=n,a=r,o=i.findTrackedSession(),s=a.findView();return o&&s?{application:{id:t},session:{id:o.id},view:{id:s.id}}:void 0},o,i),u=s.addRecord,c=s.stop,l=function(t){var e,n,r,i,a,o,s,u,c,l,d,f,p,h,v,m,g,_,y,b,w,S,T,E,k,x,C,A,R=t.emit,I=t.configuration;if(!R)throw Error("emit function is required");var N=(e=new WeakMap,{set:function(t,n){(t!==document||document.scrollingElement)&&e.set(t===document?document.scrollingElement:t,n)},get:function(t){return e.get(t)},has:function(t){return e.has(t)}}),O=function(t){R(rA(0,t))},L=function(t){return R(rA(5,t))},M=ie(I,{mutationCb:O,inputCb:L}),U=function(t,e){void 0===t&&(t=tl()),void 0===e&&(e={status:0,elementsScrollPositions:N,shadowRootsController:M});var n=ro(),r=n.width;R({data:{height:n.height,href:window.location.href,width:r},type:4,timestamp:t}),R({data:{has_focus:document.hasFocus()},type:6,timestamp:t}),R({data:{node:rQ(document,{serializationContext:e,parentNodePrivacyLevel:I.defaultPrivacyLevel,configuration:I}),initialOffset:{left:rr(),top:ri()}},type:2,timestamp:t}
1),window.visualViewport&&R({data:r6(window.visualViewport),type:8,timestamp:t})};U();var P=(n={lifeCycle:t.lifeCycle,configuration:I,elementsScrollPositions:N,inputCb:L,mediaInteractionCb:function(t){return R(rA(7,t))},mouseInteractionCb:function(t){return R(t)},mousemoveCb:function(t,e){return R(rA(e,{positions:t}))},mutationCb:O,scrollCb:function(t){return R(rA(3,t))},styleSheetCb:function(t){return R(rA(8,t))},viewportResizeCb:function(t){return R(rA(4,t))},frustrationCb:function(t){return R(t)},focusCb:function(t){return R({data:t,type:6,timestamp:tl()})},visualViewportResizeCb:function(t){R({data:t,type:8,timestamp:tl()})},shadowRootsController:M},r=new WeakMap,i=1,a={getIdForEvent:function(t){return r.has(t)||r.set(t,i++),r.get(t)}},o=it(n.mutationCb,n.configuration,n.shadowRootsController,document),s=n.mousemoveCb,u=t0(I,document,["mousemove","touchmove"],tk(function(t){var e=r5(t);if(rF(e)){var n=r4(t);if(!n)return;s([{id:rV(e),timeOffset:0,x:n.x,y:n.y}],r2(t)?6:1)}},50,{trailing:!1}).throttled,{capture:!0,passive:!0}).stop,c=n.mouseInteractionCb,l=t0(I,document,Object.keys(r8),function(t){var e,n=r5(t);if(rL(n,I.defaultPrivacyLevel)!==rR.HIDDEN&&rF(n)){var r=rV(n),i=r8[t.type];if(6!==i&&5!==i){var o=r4(t);if(!o)return;e={id:r,type:i,x:o.x,y:o.y}}else e={id:r,type:i};c(W({id:a.getIdForEvent(t)},rA(2,e)))}},{capture:!0,passive:!0}).stop,d=n.scrollCb,f=n.configuration.defaultPrivacyLevel,p=n.elementsScrollPositions,h=tk(function(t){var e=r5(t);if(e&&rL(e,f)!==rR.HIDDEN&&rF(e)){var n=rV(e),r=e===document?{scrollTop:ri(),scrollLeft:rr()}:{scrollTop:Math.round(e.scrollTop),scrollLeft:Math.round(e.scrollLeft)};p.set(e,r),d({id:n,x:r.scrollLeft,y:r.scrollTop})}},100).throttled,v=tQ(I,document,"scroll",h,{capture:!0,passive:!0}).stop,m=n.viewportResizeCb,g=ra(I).subscribe(m).unsubscribe,_=r7(I,n.inputCb),y=n.mediaInteractionCb,b=n.configuration.defaultPrivacyLevel,w=t0(I,document,["play","pause"],function(t){var e=r5(t);e&&rL(e,b)!==rR.HIDDEN&&rF(e)&&y({id:rV(e),type:1*("play"!==t.type)})},{capture:!0,passive:!0}).stop,S=function(t){function e(t,e){t&&rF(t.ownerNode)&&e(rV(t.ownerNode))}var n=[nh(CSSStyleSheet.prototype,"insertRule",{before:function(n,r){e(this,function(e){return t({id:e,adds:[{rule:n,index:r}]})})}}),nh(CSSStyleSheet.prototype,"deleteRule",{before:function(n){e(this,function(e){return t({id:e,removes:[{index:n}]})})}})];function r(r){n.push(nh(r.prototype,"insertRule",{before:function(n,r){var i=this;e(this.parentStyleSheet,function(e){var a=r9(i);a&&(a.push(r||0),t({id:e,adds:[{rule:n,index:a}]}))})}}),nh(r.prototype,"deleteRule",{before:function(n){var r=this;e(this.parentStyleSheet,function(e){var i=r9(r);i&&(i.push(n),t({id:e,removes:[{index:i}]}))})}}))}return"u">typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule)),function(){return n.forEach(function(t){return t.stop()})}}(n.styleSheetCb),T=n.focusCb,E=t0(I,window,["focus","blur"],function(){T({has_focus:document.hasFocus()})}).stop,k=function(t,e){var n=window.visualViewport;if(!n)return tx;var r=tk(function(){e(r6(n))},200,{trailing:!1}),i=r.throttled,a=r.cancel,o=t0(t,n,["resize","scroll"],i,{capture:!0,passive:!0}).stop;return function(){o(),a()}}(I,n.visualViewportResizeCb),x=n.lifeCycle,C=n.frustrationCb,A=x.subscribe(10,function(t){var e,n,r;"action"===t.rawRumEvent.type&&"click"===t.rawRumEvent.action.type&&(null==(n=null==(e=t.rawRumEvent.action.frustration)?void 0:e.type)?void 0:n.length)&&"events"in t.domainContext&&(null==(r=t.domainContext.events)?void 0:r.length)&&C({timestamp:t.rawRumEvent.date,type:9,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map(function(t){return a.getIdForEvent(t)})}})}).unsubscribe,{flush:function(){o.flush()},stop:function(){o.stop(),u(),l(),v(),g(),_(),w(),S(),E(),k(),A()}}),z=P.stop,D=P.flush;function B(){M.flush(),D()}return{stop:function(){M.stop(),z()},takeSubsequentFullSnapshot:function(t){B(),U(t,{shadowRootsController:M,status:1,elementsScrollPositions:N})},flushMutations:B,shadowRootsController:M}}({emit:u,configuration:e,lifeCycle:t}),d=l.stop,f=l.takeSubsequentFullSnapshot,p=l.flushMutations,h=t.subscribe(4,function(){p(),u({timestamp:tl(),type:7})}).unsubscribe,v=t.subscribe(2,function(t){f(t.startClocks.timeStamp)}).unsubscribe;return{stop:function(){h(),v(),d(),c()}}}));
1n=Y(),i=n[r="DD_RUM"],n[r]=ic,i&&i.q&&i.q.forEach(function(t){return U(t,"onReady callback threw an error:")()}),ic.init({applicationId:"c42e5225-006a-4799-9726-9350b45c572b",clientToken:"pubb4f079c7199e602fcc6d852a2d672311",site:"datadoghq.eu",service:"affiliate-frontend-production",version:void 0,env:"production",sampleRate:0,replaySampleRate:0,premiumSampleRate:0,trackInteractions:!0,defaultPrivacyLevel:"mask-user-input"});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.