(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{62705:function(t,e,n){var r=n(55639).Symbol;t.exports=r},44239:function(t,e,n){var r=n(62705),o=n(89607),a=n(2333),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?o(t):a(t)}},27561:function(t,e,n){var r=n(67990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},31957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},89607:function(t,e,n){var r=n(62705),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=a.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=s.call(t);return r&&(e?t[c]=n:delete t[c]),o}},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},55639:function(t,e,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();t.exports=a},67990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},23279:function(t,e,n){var r=n(13218),o=n(7771),a=n(14841),s=Math.max,c=Math.min;t.exports=function(t,e,n){var l,d,f,p,m,h,g=0,v=!1,y=!1,b=!0;if("function"!=typeof t)throw TypeError("Expected a function");function invokeFunc(e){var n=l,r=d;return l=d=void 0,g=e,p=t.apply(r,n)}function shouldInvoke(t){var n=t-h,r=t-g;return void 0===h||n>=e||n<0||y&&r>=f}function timerExpired(){var t,n,r,a=o();if(shouldInvoke(a))return trailingEdge(a);m=setTimeout(timerExpired,(t=a-h,n=a-g,r=e-t,y?c(r,f-n):r))}function trailingEdge(t){return(m=void 0,b&&l)?invokeFunc(t):(l=d=void 0,p)}function debounced(){var t,n=o(),r=shouldInvoke(n);if(l=arguments,d=this,h=n,r){if(void 0===m)return g=t=h,m=setTimeout(timerExpired,e),v?invokeFunc(t):p;if(y)return clearTimeout(m),m=setTimeout(timerExpired,e),invokeFunc(h)}return void 0===m&&(m=setTimeout(timerExpired,e)),p}return e=a(e)||0,r(n)&&(v=!!n.leading,f=(y="maxWait"in n)?s(a(n.maxWait)||0,e):f,b="trailing"in n?!!n.trailing:b),debounced.cancel=function(){void 0!==m&&clearTimeout(m),g=0,l=h=d=m=void 0},debounced.flush=function(){return void 0===m?p:trailingEdge(o())},debounced}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},33448:function(t,e,n){var r=n(44239),o=n(37005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},7771:function(t,e,n){var r=n(55639);t.exports=function(){return r.Date.now()}},14841:function(t,e,n){var r=n(27561),o=n(13218),a=n(33448),s=0/0,c=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return s;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=l.test(t);return n||d.test(t)?f(t.slice(2),n?2:8):c.test(t)?s:+t}},91118:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(3842)}])},28144:function(t,e,n){"use strict";n.d(e,{Ht:function(){return a},et:function(){return s},lB:function(){return l},oZ:function(){return d}});var r,o=n(248),percent=function(t,e){return Math.round(t*e/100)},darken=function(t,e){return Object.assign(Object.assign({},t),{l:t.l-percent(t.l,e)})},alpha=function(t,e){return Object.assign(Object.assign({},t),{a:e})},a={red:{h:11,s:80,l:45,a:1},blurpleLight:{h:240,s:83.3,l:95.3,a:1},blurpleMedium:{h:242,s:81,l:87.6,a:1},blurple:{h:242,s:88.4,l:66.3,a:1},blurpleDark:{h:242,s:87.6,l:62,a:1},offWhite:{h:45,s:36.4,l:95.7,a:1},blueLight:{h:206,s:58.3,l:85.9,a:1},blue:{h:206,s:100,l:73.3,a:1},blueDark:{h:206,s:29.5,l:33.9,a:1},orangeLight:{h:6,s:100,l:89.6,a:1},orange:{h:11,s:100,l:62.2,a:1},orangeDark:{h:11,s:79.9,l:64.9,a:1},tealLight:{h:180,s:20,l:67.6,a:1},teal:{h:180,s:51.4,l:51.6,a:1},tealDark:{h:180,s:16.2,l:22.9,a:1},yellowLight:{h:39,s:100,l:87.8,a:1},yellow:{h:50,s:100,l:57.3,a:1},yellowDark:{h:39,s:100,l:68,a:1}},s={grey8:{h:0,s:0,l:13,a:1},grey7:{h:246,s:16,l:26,a:1},grey6:{h:252,s:13,l:46,a:1},grey5:{h:240,s:7,l:62,a:1},grey4:{h:259,s:12,l:75,a:1},grey3:{h:260,s:11,l:85,a:1},grey2:{h:260,s:11,l:95,a:1},grey1:{h:240,s:7,l:97,a:1},white:{h:0,s:0,l:100,a:1}},c={focusRing:alpha(a.blurple,.5),record:a.orange,recordHover:darken(a.orange,15.8),recordActive:darken(a.orange,31.6),info:a.blue,success:a.teal,warning:a.yellowDark,danger:a.red,dangerHover:darken(a.red,15.8),dangerActive:darken(a.red,31.6),backdrop:alpha(s.grey8,.5),backdropDark:alpha(s.grey8,.9),backdropTwilight:alpha({h:245,s:44.8,l:46.9,a:1},.8),disabledContent:s.grey5,highlight:{h:a.blurpleLight.h,s:a.blurpleLight.s,l:66.3,a:.15}},l={light:Object.assign(Object.assign({primary:a.blurple,primaryHover:darken(a.blurple,15.8),primaryActive:darken(a.blurple,31.6),body:s.grey8,bodyDimmed:s.grey6,background:s.white,backgroundHover:alpha(s.grey7,.1),backgroundActive:alpha(s.grey7,.3),backgroundSecondary:alpha(s.grey7,.04),backgroundSecondary2:{h:45,s:34,l:78,a:.2},overlay:s.white,border:alpha(s.grey6,.2)},c),{disabledBackground:s.grey2,formFieldBorder:s.grey3,formFieldBackground:s.white,buttonBorder:alpha(s.grey6,.25),upgrade:{h:206,s:100,l:93,a:1},upgradeHover:darken({h:206,s:100,l:93,a:1},9),upgradeActive:darken({h:206,s:100,l:93,a:1},17),tabBackground:alpha(s.grey6,.15),discoveryBackground:{h:206,s:100,l:93,a:1},discoveryLightBackground:{h:206,s:100,l:97,a:1},discoveryTitle:s.grey8,discoveryHighlight:{h:206,s:100,l:77,a:.3}}),dark:Object.assign(Object.assign({primary:{h:242,s:87,l:73,a:1},primaryHover:darken(a.blurple,15.8),primaryActive:darken(a.blurple,31.6),body:s.grey1,bodyDimmed:s.grey5,background:s.grey8,backgroundHover:alpha(s.white,.1),backgroundActive:alpha(s.white,.2),backgroundSecondary:alpha(s.white,.04),backgroundSecondary2:{h:45,s:13,l:44,a:.2},overlay:Object.assign(Object.assign({},r=s.grey8),{l:r.l+percent(r.l,50)}),border:alpha(s.grey4,.2)},c),{disabledBackground:darken(s.grey6,50),formFieldBorder:s.grey6,formFieldBackground:s.grey8,buttonBorder:alpha(s.white,.25),upgrade:{h:206,s:92,l:81,a:1},upgradeHover:darken({h:206,s:92,l:81,a:1},9),upgradeActive:darken({h:206,s:92,l:81,a:1},17),tabBackground:alpha(s.white,.15),discoveryBackground:{h:206,s:92,l:81,a:1},discoveryLightBackground:s.grey8,discoveryTitle:a.blue,discoveryHighlight:{h:206,s:100,l:77,a:.3}})},d=Object.assign(Object.assign({},a),s);(0,o._)(Object.keys(d)).concat((0,o._)(Object.keys(l.light)))},36086:function(t,e,n){"use strict";n.d(e,{nl:function(){return o.nl},hb:function(){return o.hb},Rv:function(){return getColorValue},yb:function(){return getFocusRing},On:function(){return getFontWeight},H5:function(){return getRadius},$C:function(){return o.$C},W1:function(){return o.W1},Xj:function(){return getShadow},ap:function(){return a.a},TX:function(){return a.T},y3:function(){return getTextSize},u:function(){return a.u}});var r=n(28144),getColorValue=function(t){if(t)return t in r.oZ||t in r.lB.light?"var(--lns-color-".concat(t,")"):t},o=n(97246),a=n(55657),getTextSize=function(t){return t&&"\n font-size: var(--lns-fontSize-".concat(t,");\n line-height: var(--lns-lineHeight-").concat(t,");\n")},getRadius=function(t){return t&&"border-radius: var(--lns-radius-".concat(t,");")},getFontWeight=function(t){return t&&"font-weight: var(--lns-fontWeight-".concat(t,");")},getShadow=function(t){return t&&"box-shadow: var(--lns-shadow-".concat(t,");")},getFocusRing=function(t,e){var n=t||getColorValue("focusRing");return"box-shadow:".concat(e||""," 0 0 0 2px ").concat(n,";")}},97246:function(t,e,n){"use strict";n.d(e,{nl:function(){return arrayToBreakpoints},hb:function(){return getAlignmentStyles},$C:function(){return getResponsiveBoolean},Uw:function(){return getResponsiveGridSections},W1:function(){return getResponsiveOneOf},$n:function(){return objectToBreakpoints}});var r=n(24043),o=n(62290),a=n(55657);n(23279),n(67294);var getMediaCss=function(t,e,n){return"@media(".concat(t,": ").concat(e,"){").concat(n,"}")},arrayToBreakpoints=function(t){return getMediaCss("max-width",Object.values(o.AV)[0],t[0])+t.reduce(function(t,e,n){return t+getMediaCss("min-width","".concat(Object.values(o.AV)[n]),e)},"")},objectToBreakpoints=function(t,e){var n=[];return e.default&&n.push("".concat(t,": ").concat(e.default,";")),delete e.default,Object.entries(e).forEach(function(e){var a=(0,r._)(e,2),s=a[0],c=a[1],l=s in o.AV?o.AV[s]:s;n.push("@media(min-width: ".concat(l,"){ ").concat(t,": ").concat(c," }"))}),n.join(" ")},getResponsiveOneOf=function(t,e){return Array.isArray(e)?arrayToBreakpoints(e.map(function(e){return"".concat(t,": ").concat(e,";")})):"object"==typeof e?objectToBreakpoints(t,e):"".concat(t,": ").concat(e,";")},getAlignmentStyles=function(t,e){if(t){if(Array.isArray(t)){var n=[];return t.map(function(t){n.push(e[t])}),getResponsiveOneOf("align-items",n)}return"align-items ".concat(e[t],";")}},getResponsiveBoolean=function(t,e,n){return Array.isArray(n)?arrayToBreakpoints(n.map(function(n){var r=!0===n?e[0]:e[1];return"".concat(t,": ").concat(r,";")})):"".concat(t,": ").concat(e[0],";")},transformColumns=function(t){return Array.isArray(t)?t.map(function(t){return(0,a.T)(t)}).join(" "):t},getResponsiveGridSections=function(t,e){if(t){if("object"==typeof t&&!Array.isArray(t)){var n={};return Object.entries(t).forEach(function(t){var e=(0,r._)(t,2),o=e[0],a=e[1];return n[o]=transformColumns(a)}),objectToBreakpoints("grid-template-".concat(e),n)}return"grid-template-".concat(e,": ").concat(transformColumns(t),";")}}},55657:function(t,e,n){"use strict";n.d(e,{T:function(){return getSizeValue},a:function(){return getSize},u:function(){return u}});var r=n(24043),o=n(36086),a=n(62290),s=n(97246),u=function(t){return t&&"calc(".concat(t," * var(--lns-unit, ").concat(a.bf,"px))")},getSizeValue=function(t){return t in a.RZ?"var(--lns-space-".concat(t,")"):t&&isNaN(t)?"".concat(t):0===t?"0":t?"".concat(u(t)):void 0},getSize=function(t,e){if(e||0===e){if(Array.isArray(e)){var n=e.map(function(e){return"".concat(t,": ").concat(getSizeValue(e))});return(0,o.nl)(n)}if("object"==typeof e){var a={};return Object.entries(e).forEach(function(t){var e=(0,r._)(t,2),n=e[0],o=e[1];return a[n]=getSizeValue(o)}),(0,s.$n)(t,a)}return"".concat(t,": ").concat(getSizeValue(e),";")}}},62290:function(t,e,n){"use strict";n.d(e,{AV:function(){return f},RZ:function(){return d},bf:function(){return o},iH:function(){return a},pD:function(){return c},q:function(){return l},vC:function(){return s}});var r=n(36086),o=8,a={small:{fontSize:1.5,lineHeight:1.5},"body-sm":{fontSize:1.5,lineHeight:1.5},medium:{fontSize:1.75,lineHeight:1.6},"body-md":{fontSize:1.75,lineHeight:1.6},large:{fontSize:2.25,lineHeight:1.45},"body-lg":{fontSize:2.25,lineHeight:1.45},xlarge:{fontSize:3,lineHeight:1.35},"heading-sm":{fontSize:3,lineHeight:1.35},xxlarge:{fontSize:4,lineHeight:1.2},"heading-md":{fontSize:4,lineHeight:1.2},xxxlarge:{fontSize:6,lineHeight:1.15},"heading-lg":{fontSize:6,lineHeight:1.15}},s={book:400,bold:700},c={medium:(0,r.u)(1),large:(0,r.u)(2),xlarge:(0,r.u)(3),full:(0,r.u)(999)},l={small:"0 ".concat((0,r.u)(.5)," ").concat((0,r.u)(1.25)," hsla(0, 0%, 0%, 0.05)"),medium:"0 ".concat((0,r.u)(.5)," ").concat((0,r.u)(1.25)," hsla(0, 0%, 0%, 0.1)"),large:"0 ".concat((0,r.u)(.75)," ").concat((0,r.u)(3)," hsla(0, 0%, 0%, 0.1)")},d={xsmall:.5,small:1,medium:2,large:3,xlarge:5,xxlarge:8},f={xsmall:"31em",small:"48em",medium:"64em",large:"75em"}},76815:function(t,e,n){"use strict";n.d(e,{B3:function(){return d},M$:function(){return o},Ss:function(){return c},Uc:function(){return s},cZ:function(){return a},td:function(){return l}});var r,o="production";r=window.location.hostname;var a="production"===o,s="stage.loom.com"===r,c="preview"===o,l="development"===o,d=window.location.toString().includes("stage.loom.com")?"https://stage.loom.com/graphql":"https://patgrady.indiedemos.com/graphql"},92617:function(t,e,n){"use strict";n.d(e,{G2:function(){return s},Sl:function(){return c},dn:function(){return d},xc:function(){return a}});var r=n(76815),o="a96218e8af96d870bdb9596a9ec4a486",a="https://tag.clearbitscripts.com/v1/pk_".concat(o,"/tags.js"),s='\n!function(e){var o=document.getElementsByTagName("script")[0];if("object"==typeof e.ClearbitForHubspot)return console.log("Clearbit For HubSpot included more than once"),!1;e.ClearbitForHubspot={},e.ClearbitForHubspot.forms=[],e.ClearbitForHubspot.addForm=function(o){var t=o[0];"function"==typeof e.ClearbitForHubspot.onFormReady?e.ClearbitForHubspot.onFormReady(t):e.ClearbitForHubspot.forms.push(t)};var t=document.createElement("script");t.async=!0,t.src="https://hubspot.clearbit.com/v1/forms/pk_'.concat(o,'/forms.js",o.parentNode.insertBefore(t,o),e.addEventListener("message",function(o){if("hsFormCallback"===o.data.type&&"onFormReady"===o.data.eventName)if(document.querySelectorAll(\'form[data-form-id="\'+o.data.id+\'"]\').length>0)e.ClearbitForHubspot.addForm(document.querySelectorAll(\'form[data-form-id="\'+o.data.id+\'"]\'));else if(document.querySelectorAll("form.hs-form").length>0){document.querySelectorAll("form.hs-form").forEach(function(t){t.contentWindow.document.querySelectorAll(\'form[data-form-id="\'+o.data.id+\'"]\').length>0&&e.ClearbitForHubspot.addForm(t.contentWindow.document.querySelectorAll(\'form[data-form-id="\'+o.data.id+\'"]\'))})}})}(window);'),c='function loadExternalJS(url, location, callback) {\n var scriptTag = document.createElement("script");\n scriptTag.src = url;\n scriptTag.type = "text/javascript";\n scriptTag.onreadystatechange = callback;\n scriptTag.onload = callback;\n window.atlGlobalLoadStart = new Date();\n location.appendChild(scriptTag);\n}',l=r.cZ?"https://atl-global.atlassian.com/js/atl-global.min.js":"https://atl-global.stg.atlassian.com/js/atl-global.min.js",d='\n loadExternalJS("'.concat(l,"\", document.body, initializeATLAnalytics);\n function initializeATLAnalytics() {\n window.ace.analytics.Initializer.initWithPageAnalytics('loom');\n }"),f="mllYsZ0rym6Ar4fuuJjAMsrZpK5LwmUR";'\n!function(){var i="segmentAnalytics",analytics=window[i]=window[i]||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"];analytics.factory=function(e){return function(){if(window[i].initialized)return window[i][e].apply(window[i],arguments);var n=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){var c=document.querySelector("link[rel=\'canonical\']");n.push({__t:"bpc",c:c&&c.getAttribute("href")||void 0,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}n.unshift(e);analytics.push(n);return analytics}};for(var n=0;n=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 o=Array.isArray(t)?t:[],a=0;a"}finally{r(),o(),a(),s()}}function detachToJsonMethod(t){var e=t.toJSON;return e?(delete t.toJSON,function(){t.toJSON=e}):noop}function sanitize(t,e){void 0===e&&(e=225280);var n,r=detachToJsonMethod(Object.prototype),o=detachToJsonMethod(Array.prototype),a=[],s=new WeakMap,c=sanitizeProcessor(t,"$",void 0,a,s),l=(null===(n=JSON.stringify(c))||void 0===n?void 0:n.length)||0;if(l>e){warnOverCharacterLimit(e,"discarded",t);return}for(;a.length>0&&le){warnOverCharacterLimit(e,"truncated",t);break}d.target[p]=m}else for(var p in d.source)if(Object.prototype.hasOwnProperty.call(d.source,p)){var m=sanitizeProcessor(d.source[p],d.path,p,a,s);if(void 0!==m&&(l+=JSON.stringify(m).length+f+p.length+3,f=1),l>e){warnOverCharacterLimit(e,"truncated",t);break}d.target[p]=m}}return r(),o(),c}function sanitizeProcessor(t,e,n,r,o){var a=function(t){if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(t){}return t}(t);if(!a||"object"!=typeof a)return"bigint"==typeof a?"[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]"}(a);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;if(o.has(t))return"[Reference seen at ".concat(o.get(t),"]");var c=void 0!==n?"".concat(e,".").concat(n):e,l=Array.isArray(a)?[]:{};return o.set(t,c),r.push({source:a,target:l,path:c}),l}function warnOverCharacterLimit(t,e,n){Z.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}var J=function(){function Observable(t){this.onFirstSubscribe=t,this.observers=[]}return Observable.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()}}},Observable.prototype.notify=function(t){this.observers.forEach(function(e){return e(t)})},Observable}();function mergeObservables(){for(var t=[],e=0;e3072&&(Z.warn("The ".concat(Y[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 createContextManager(t,e){void 0===e&&(e=computeBytesCount);var n,r={},o=!1,a=new J,s=throttle(function(r){n=e(jsonStringify(r)),o||(o=warnIfCustomerDataLimitReached(n,t))},200).throttled,c={getBytesCount:function(){return n},get:function(){return r},add:function(t,e){r[t]=e,s(r),a.notify()},remove:function(t){delete r[t],s(r),a.notify()},set:function(t){s(r=t),a.notify()},getContext:function(){return deepClone(r)},setContext:function(t){"object"===getType(t)?s(r=sanitize(t)):c.clearContext(),a.notify()},setContextProperty:function(t,e){r[t]=sanitize(e),s(r),a.notify()},removeContextProperty:function(t){delete r[t],s(r),a.notify()},clearContext:function(){r={},n=0,a.notify()},changeObservable:a};return c}var $=function(){function BoundedBuffer(){this.buffer=[]}return BoundedBuffer.prototype.add=function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},BoundedBuffer.prototype.drain=function(){this.buffer.forEach(function(t){return t()}),this.buffer.length=0},BoundedBuffer}();function performDraw(t){return 0!==t&&100*Math.random()<=t}function round(t,e){return+t.toFixed(e)}function isPercentage(t){return isNumber(t)&&t>=0&&t<=100}function isNumber(t){return"number"==typeof t}function relativeToClocks(t){var e;return{relative:t,timeStamp:(e=dateNow()-performance.now())>getNavigationStart()?Math.round(e+t):Math.round(getNavigationStart()+t)}}function toServerDuration(t){return isNumber(t)?round(1e6*t,0):t}function dateNow(){return new Date().getTime()}function timeStampNow(){return dateNow()}function relativeNow(){return performance.now()}function clocksNow(){return{relative:relativeNow(),timeStamp:timeStampNow()}}function clocksOrigin(){return{relative:0,timeStamp:getNavigationStart()}}function getNavigationStart(){return void 0===y&&(y=performance.timing.navigationStart),y}function generateUUID(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,generateUUID)}function findCommaSeparatedValue(t,e){var n=new RegExp("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)")).exec(t);return n?n[1]:void 0}function safeTruncate(t,e,n){void 0===n&&(n="");var r=t.charCodeAt(e-1),o=r>=55296&&r<=56319?e+1:e;return t.length<=o?t:"".concat(t.slice(0,o)).concat(n)}function setCookie(t,e,n,r){var o=new Date;o.setTime(o.getTime()+n);var a="expires=".concat(o.toUTCString()),s=r&&r.crossSite?"none":"strict",c=r&&r.domain?";domain=".concat(r.domain):"",l=r&&r.secure?";secure":"";document.cookie="".concat(t,"=").concat(e,";").concat(a,";path=/;samesite=").concat(s).concat(c).concat(l)}function getCookie(t){return findCommaSeparatedValue(document.cookie,t)}function deleteCookie(t,e){setCookie(t,"",0,e)}function willSyntheticsInjectRum(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||getCookie("datadog-synthetics-injects-rum"))}function getEventBridge(){var t=getGlobalObject().DatadogEventBridge;if(t)return{getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n){t.send(JSON.stringify({eventType:e,event:n}))}}}function canUseEventBridge(t){void 0===t&&(t=null===(e=getGlobalObject().location)||void 0===e?void 0:e.hostname);var e,n=getEventBridge();return!!n&&n.getAllowedWebViewHosts().some(function(e){var n,r;return t===e||(n=t,r=".".concat(e),n.slice(-r.length)===r)})}function addEventListener(t,e,n,r,o){return addEventListeners(t,e,[n],r,o)}function addEventListeners(t,e,n,r,o){var a=void 0===o?{}:o,s=a.once,c=a.capture,l=a.passive,d=monitor(s?function(t){stop(),r(t)}:r),f=l?{capture:c,passive:l}:c,p=getZoneJsOriginalValue(e,"addEventListener");function stop(){var t=getZoneJsOriginalValue(e,"removeEventListener");n.forEach(function(n){return t.call(e,n,d,f)})}return n.forEach(function(t){return p.call(e,t,d,f)}),{stop:stop}}var Q=[];function createStoredContextManager(t,e,n,r){void 0===r&&(r=computeBytesCount);var o="".concat("_dd_c","_").concat(e,"_").concat(n),a=createContextManager(n,r);return synchronizeWithStorage(),Q.push(addEventListener(t,window,"storage",function(t){o===t.key&&synchronizeWithStorage()})),a.changeObservable.subscribe(function(){localStorage.setItem(o,JSON.stringify(a.getContext()))}),a;function synchronizeWithStorage(){var t=localStorage.getItem(o),e=null!==t?JSON.parse(t):{};a.setContext(e)}}function computeStackTrace(t){var e=[],n=tryToGetString(t,"stack"),r=String(t);return n&&startsWith(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(function(t){var n=function(t){var e=tn.exec(t);if(e){var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),o=tr.exec(e[2]);return r&&o&&(e[2]=o[1],e[3]=o[2],e[4]=o[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=to.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=ti.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=ta.exec(t);if(e){var n=e[3]&&e[3].indexOf(" > eval")>-1,r=ts.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:tryToGetString(t,"message"),name:tryToGetString(t,"name"),stack:e}}var tt="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",te="(?::(\\d+))",tn=RegExp("^\\s*at (.*?) ?\\(".concat(tt).concat(te,"?").concat(te,"?\\)?\\s*$"),"i"),tr=new RegExp("\\((\\S*)".concat(te).concat(te,"\\)")),to=RegExp("^\\s*at ?".concat(tt).concat(te,"?").concat(te,"??\\s*$"),"i"),ti=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ta=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,ts=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function tryToGetString(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var tc="No stack, consider using an instance of Error";function computeRawError(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,o=t.startClocks,a=t.nonErrorPrefix,s=t.source,c=t.handling,l=n instanceof Error,d=(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:l?"Empty message":"".concat(a," ").concat(jsonStringify(sanitize(n))),f=void 0!==e&&(l||e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url))?toStackTraceString(e):tc,p=l?function(t,e){for(var n=t,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var o=computeStackTrace(n.cause);r.push({message:n.cause.message,source:e,type:null==o?void 0:o.name,stack:o&&toStackTraceString(o)}),n=n.cause}return r.length?r:void 0}(n,s):void 0,m=null==e?void 0:e.name,h=tryToGetFingerprint(n);return{startClocks:o,source:s,handling:c,handlingStack:r,originalError:n,type:m,message:d,stack:f,causes:p,fingerprint:h}}function tryToGetFingerprint(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function toStackTraceString(t){var e=formatErrorMessage(t);return t.stack.forEach(function(t){var n="?"===t.func?"":t.func,r=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",o=t.line?":".concat(t.line):"",a=t.line&&t.column?":".concat(t.column):"";e+="\n at ".concat(n).concat(r," @ ").concat(t.url).concat(o).concat(a)}),e}function formatErrorMessage(t){return"".concat(t.name||"Error",": ").concat(t.message)}function createHandlingStack(){var t,e=Error();if(!e.stack)try{throw e}catch(t){}return callMonitored(function(){var n=computeStackTrace(e);n.stack=n.stack.slice(2),t=toStackTraceString(n)}),t}function sanitizeUser(t){var e=polyfills_assign({},t);return["id","name","email"].forEach(function(t){t in e&&(e[t]=String(e[t]))}),e}(r=_||(_={})).PAGEHIDE="pagehide",r.FEATURE_FLAGS="feature_flags",r.RESOURCE_PAGE_STATES="resource_page_states",r.PAGE_STATES="page_states",r.COLLECT_FLUSH_REASON="collect_flush_reason",r.NO_RESOURCE_DURATION_FROZEN_STATE="no_resource_duration_frozen_state",r.SCROLLMAP="scrollmap",r.INTERACTION_TO_NEXT_PAINT="interaction_to_next_paint",r.WEB_VITALS_ATTRIBUTION="web_vitals_attribution",r.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css";var tu=new Set;function isExperimentalFeatureEnabled(t){return tu.has(t)}function shallowClone(t){return polyfills_assign({},t)}function objectHasValue(t,e){return Object.keys(t).some(function(n){return t[n]===e})}function isEmptyObject(t){return 0===Object.keys(t).length}var tl="_dd_s",td=/^([a-z]+)=([a-z0-9-]+)$/;function expandSessionState(t){t.expire=String(dateNow()+9e5)}function toSessionString(t){return objectEntries(t).map(function(t){var e=t[0],n=t[1];return"".concat(e,"=").concat(n)}).join("&")}function toSessionState(t){var e={};return t&&(-1!==t.indexOf("&")||td.test(t))&&t.split("&").forEach(function(t){var n=td.exec(t);if(null!==n){var r=n[1],o=n[2];e[r]=o}}),e}function retrieveSessionCookie(){return toSessionState(getCookie(tl))}function persistInLocalStorage(t){localStorage.setItem(tl,toSessionString(t))}function retrieveSessionFromLocalStorage(){return toSessionState(localStorage.getItem(tl))}function clearSessionFromLocalStorage(){localStorage.removeItem(tl)}var tf=[];function processSessionStoreOperations(t,e,n){void 0===n&&(n=0);var r,o,a=e.isLockEnabled,s=e.retrieveSession,c=e.persistSession,l=e.clearSession;if(C||(C=t),t!==C){tf.push(t);return}if(a&&n>=100){next(e);return}var d=s();if(a&&(d.lock||(o=generateUUID(),d.lock=o,c(d),(d=s()).lock!==o))){retryLater(t,e,n);return}var f=t.process(d);if(a&&(d=s()).lock!==o){retryLater(t,e,n);return}if(f&&(isEmptyObject(f)?l():(expandSessionState(f),c(f))),a&&!(f&&isEmptyObject(f))){if((d=s()).lock!==o){retryLater(t,e,n);return}delete d.lock,c(d),f=d}null===(r=t.after)||void 0===r||r.call(t,f||d),next(e)}function retryLater(t,e,n){timer_setTimeout(function(){processSessionStoreOperations(t,e,n+1)},10)}function next(t){C=void 0;var e=tf.shift();e&&processSessionStoreOperations(e,t)}function normalizeUrl(t){return buildUrl(t,getLinkElementOrigin(window.location)).href}function buildUrl(t,e){var n=function(){if(void 0===T)try{var t=new tp("http://test/path");T="http://test/path"===t.href}catch(t){T=!1}return T?tp: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(jsonStringify({url:t,base:e})))}if(void 0===e&&!/:/.test(t))throw Error("Invalid URL: '".concat(t,"'"));var r=document,o=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(o)}return o.href=t,o}var tp=URL;function getLinkElementOrigin(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return"".concat(t.protocol,"//").concat(e)}var tm="datad0g.com",th="datadoghq.com",tg={logs:"logs",rum:"rum",sessionReplay:"session-replay"},tv={logs:"logs",rum:"rum",sessionReplay:"replay"};function createEndpointBuilder(t,e,n){var r=function(t,e){var n="/api/v2/".concat(tv[e]),r=t.proxy,o=t.proxyUrl;if(r){var a=normalizeUrl(r);return function(t){return"".concat(a,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(t)))}}var s=function(t,e){var n=t.site,r=void 0===n?th:n,o=t.internalAnalyticsSubdomain;if(o&&r===th)return"".concat(o,".").concat(th);var a=r.split("."),s=a.pop(),c="ap1.datadoghq.com"!==r?"".concat(tg[e],"."):"";return"".concat(c,"browser-intake-").concat(a.join("-"),".").concat(s)}(t,e);if(void 0===r&&o){var c=normalizeUrl(o);return function(t){return"".concat(c,"?ddforward=").concat(encodeURIComponent("https://".concat(s).concat(n,"?").concat(t)))}}return function(t){return"https://".concat(s).concat(n,"?").concat(t)}}(t,e);return{build:function(o,a){var s,c,l,d,f,p,m;return r((s=t.clientToken,c=t.internalAnalyticsSubdomain,l=a.retry,d=a.flushReason,f=a.encoding,p=["sdk_version:".concat("4.50.1"),"api:".concat(o)].concat(n),d&&isExperimentalFeatureEnabled(_.COLLECT_FLUSH_REASON)&&p.push("flush_reason:".concat(d)),l&&p.push("retry_count:".concat(l.count),"retry_after:".concat(l.lastFailureStatus)),m=["ddsource=browser","ddtags=".concat(encodeURIComponent(p.join(","))),"dd-api-key=".concat(s),"dd-evp-origin-version=".concat(encodeURIComponent("4.50.1")),"dd-evp-origin=browser","dd-request-id=".concat(generateUUID())],f&&m.push("dd-evp-encoding=".concat(f)),"rum"===e&&m.push("batch_time=".concat(timeStampNow())),c&&m.reverse(),m.join("&")))},urlPrefix:r(""),endpointType:e}}var ty=/[^a-z0-9_:./-]/;function buildTag(t,e){var n=200-t.length-1;(e.length>n||ty.test(e))&&Z.warn("".concat(t," value doesn't meet tag requirements and will be sanitized"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}var tb={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function isMatchOption(t){var e=getType(t);return"string"===e||"function"===e||t instanceof RegExp}function matchList(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);if("string"==typeof t)return n?startsWith(e,t):t===e}catch(t){Z.error(t)}return!1})}function clearTracingIfNeeded(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function injectHeadersIfTracingAllowed(t,e,n,r){if(void 0!==getCrypto()&&n.findTrackedSession()){var o,a,s,c,l,d=find(t.allowedTracingUrls,function(t){return matchList([t.match],e.url,!0)});d&&(e.traceId=new t_,e.spanId=new t_,e.traceSampled=!isNumber(t.traceSampleRate)||performDraw(t.traceSampleRate),r((o=e.traceId,a=e.spanId,s=e.traceSampled,c=d.propagatorTypes,l={},c.forEach(function(t){switch(t){case"datadog":polyfills_assign(l,{"x-datadog-origin":"rum","x-datadog-parent-id":a.toDecimalString(),"x-datadog-sampling-priority":s?"1":"0","x-datadog-trace-id":o.toDecimalString()});break;case"tracecontext":polyfills_assign(l,{traceparent:"00-0000000000000000".concat(o.toPaddedHexadecimalString(),"-").concat(a.toPaddedHexadecimalString(),"-0").concat(s?"1":"0")});break;case"b3":polyfills_assign(l,{b3:"".concat(o.toPaddedHexadecimalString(),"-").concat(a.toPaddedHexadecimalString(),"-").concat(s?"1":"0")});break;case"b3multi":polyfills_assign(l,{"X-B3-TraceId":o.toPaddedHexadecimalString(),"X-B3-SpanId":a.toPaddedHexadecimalString(),"X-B3-Sampled":s?"1":"0"})}}),l)))}}function getCrypto(){return window.crypto||window.msCrypto}var t_=function(){function TraceIdentifier(){this.buffer=new Uint8Array(8),getCrypto().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}return TraceIdentifier.prototype.toString=function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var o=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(o/t),r=(o%t).toString(t)+r}while(e||n);return r},TraceIdentifier.prototype.toDecimalString=function(){return this.toString(10)},TraceIdentifier.prototype.toPaddedHexadecimalString=function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},TraceIdentifier.prototype.readInt32=function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]},TraceIdentifier}();function buildCommonContext(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}function sendToExtension(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}var tS={log:"log",configuration:"configuration"},tw=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],tE=["ddog-gov.com"],tC={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function addTelemetryDebug(t,e){displayIfDebugEnabled(H.debug,t,e),addTelemetry(polyfills_assign({type:tS.log,message:t,status:"debug"},e))}function addTelemetryError(t,e){addTelemetry(polyfills_assign({type:tS.log,status:"error"},function(t){if(t instanceof Error){var e=computeStackTrace(t);return{error:{kind:e.name,stack:toStackTraceString((e.stack=e.stack.filter(function(t){return!t.url||tw.some(function(e){return startsWith(t.url,e)})}),e))},message:e.message}}return{error:{stack:tc},message:"".concat("Uncaught"," ").concat(jsonStringify(t))}}(t),e))}function addTelemetry(t){k&&tC.sentEventCountt[n])return!1;return!0}function toValidEntry(t){if(areInOrder(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!hasRedirection(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e=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},ValueHistory.prototype.find=function(t){void 0===t&&(t=tI);for(var e=0,n=this.entries;e0&&this.entries[this.entries.length-1].endTime0})}});return r}function isExcludedUrl(t,e){return matchList(t.excludedActivityUrls,e)}var tF="data-dd-action-name";function getActionNameFromElementProgrammatically(t,e){if(void 0===I&&(I="closest"in HTMLElement.prototype),I)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 truncate(normalizeWhitespace(n.getAttribute(e).trim()))}var tU=[function(t,e){if(void 0===R&&(R="labels"in HTMLInputElement.prototype),R){if("labels"in t&&t.labels&&t.labels.length>0)return getTextualContent(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&find(t.ownerDocument.querySelectorAll("label"),function(e){return e.htmlFor===t.id});return n&&getTextualContent(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 getTextualContent(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){return t.ownerDocument?t.ownerDocument.getElementById(e):null}).filter(function(t){return!!t}).map(function(t){return getTextualContent(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 getTextualContent(t.options[0],e)}],tD=[function(t,e){return getTextualContent(t,e)}];function getActionNameFromElementForStrategies(t,e,n){for(var r=t,o=0;o<=10&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var a=0;a100?"".concat(safeTruncate(t,100)," [...]"):t}function getTextualContent(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,removeTextFromElements=function(e){for(var r=t.querySelectorAll(e),o=0;o0&&(n=n.replace(s,""))}}};return(null!=S?S:S=!!document.documentMode)&&removeTextFromElements("script, style"),removeTextFromElements("[".concat(tF,"]")),e&&removeTextFromElements("[".concat(e,"]")),n}return t.textContent}}var tz=[tF,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],tB=[getStableAttributeSelector,function(t){if(t.id&&!isGeneratedValue(t.id))return"#".concat(cssEscape(t.id))}],tV=[getStableAttributeSelector,function(t){if("BODY"!==t.tagName&&t.classList.length>0)for(var e=0;e").concat(e):t}function isSelectionEmpty(){var t=window.getSelection();return!t||t.isCollapsed}function isValidPointerEvent(t){return t.target instanceof Element&&!1!==t.isPrimary}function isDead(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)))}function processAction(t,e){var n=isAutoAction(t)?{action:{id:t.id,loading_time:toServerDuration(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:isAutoAction(t)?void 0:t.context,rawRumEvent:combine({action:{id:generateUUID(),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:isAutoAction(t)?{event:t.event,events:t.events}:{}}}function isAutoAction(t){return"custom"!==t.type}var tj=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/,tH={},tq={intervention:"intervention",cspViolation:"csp_violation"};function buildStack(t,e,n,r,o){return n?toStackTraceString({name:t,message:e,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=o?o:void 0}]}):void 0}function endTime(t){return t.startTime+t.duration}function computePerformanceEntryMetrics(t){var e,n,r;return{resource:polyfills_assign({duration:(e=t.duration,n=t.startTime,r=t.responseEnd,0===e&&n=this.messageBytesLimit){Z.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB."));return}this.hasMessageFor(e)&&this.remove(e),this.push(r,o,e)},Batch.prototype.process=function(t){var e=jsonStringify(t),n=computeBytesCount(e);return{processedMessage:e,messageBytesCount:n}},Batch.prototype.push=function(t,e,n){var r=this.flushController.messagesCount>0?1:0;this.flushController.notifyBeforeAddMessage(e+r),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.flushController.notifyAfterAddMessage()},Batch.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=computeBytesCount(e),r=this.flushController.messagesCount>1?1:0;this.flushController.notifyAfterRemoveMessage(n+r)},Batch.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},Batch}();function sendWithRetryStrategy(t,e,n,r,o){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?send(t,e,n,{onSuccess:function(){return retryQueuedPayloads(0,e,n,r,o)},onFailure:function(){e.queuedPayloads.enqueue(t),function scheduleRetry(t,e,n,r){2===t.transportStatus&&timer_setTimeout(function(){send(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,retryQueuedPayloads(1,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),scheduleRetry(t,e,n,r)}})},t.currentBackoffTime)}(e,n,r,o)}}):e.queuedPayloads.enqueue(t)}function send(t,e,n,r){var o=r.onSuccess,a=r.onFailure;e.bandwidthMonitor.add(t),n(t,function(n){e.bandwidthMonitor.remove(t),"opaque"!==n.type&&(0===n.status&&!navigator.onLine||408===n.status||429===n.status||n.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,o())})}function retryQueuedPayloads(t,e,n,r,o){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(3,"MiB"),source:tA.AGENT,startClocks:clocksNow()}),e.queueFullReported=!0);var a=e.queuedPayloads;for(e.queuedPayloads=newPayloadQueue();a.size()>0;)sendWithRetryStrategy(a.dequeue(),e,n,r,o)}function newPayloadQueue(){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>=3145728}}}function createHttpRequest(t,e,n,r){var o={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:newPayloadQueue(),queueFullReported:!1},sendStrategyForRetry=function(r,o){return function(t,e,n,r,o){if(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&r.bytesCount0?Array.from(t.media):void 0}})}function serializeAttribute(t,e,n,r){if(e===t2.HIDDEN)return null;var o=t.getAttribute(n);if(e===t2.MASK&&n!==t5&&!tz.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||o&&startsWith(n,"data-"))return"***"}return o&&"string"==typeof o&&o.length>1e5&&"data:"===o.slice(0,5)?"data:truncated":o}function getCssRulesString(t){var e,n,r;if(!t)return null;try{e=t.rules||t.cssRules}catch(t){}return e?(n=Array.from(e,(null!=E?E:E=/^((?!chrome|android).)*safari/i.test(navigator.userAgent))?getCssRuleStringForSafari:getCssRuleString).join(""),r=t.href,n.replace(t8,function(t,e,n,o,a,s){var c=n||a||s;if(!r||!c||t9.test(c)||t7.test(c))return t;var l=e||o||"";return"url(".concat(l).concat(function(t,e){try{return buildUrl(t,e).href}catch(e){return t}}(c,r)).concat(l,")")})):null}function getCssRuleStringForSafari(t){return"selectorText"in t&&t.selectorText.includes(":")?t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2"):getCssRuleString(t)}function getCssRuleString(t){return"styleSheet"in t&&getCssRulesString(t.styleSheet)||t.cssText}function serializeNodeWithId(t,e){var n=function(t,e){var n;switch(t.nodeType){case t.DOCUMENT_NODE:return{type:t$.Document,childNodes:serializeChildNodes(t,e),adoptedStyleSheets:serializeStyleSheets(t.adoptedStyleSheets)};case t.DOCUMENT_FRAGMENT_NODE:return(n=isNodeShadowRoot(t))&&e.serializationContext.shadowRootsController.addShadowRoot(t),{type:t$.DocumentFragment,childNodes:serializeChildNodes(t,e),isShadowRoot:n,adoptedStyleSheets:n?serializeStyleSheets(t.adoptedStyleSheets):void 0};case t.DOCUMENT_TYPE_NODE:return{type:t$.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r=getValidTagName(t.tagName),o="svg"===t.tagName||t instanceof SVGElement||void 0,a=reducePrivacyLevel(getNodeSelfPrivacyLevel(t),e.parentNodePrivacyLevel);if(a===t2.HIDDEN){var s=t.getBoundingClientRect(),c=s.width,l=s.height;return{type:t$.Element,tagName:r,attributes:((n={rr_width:"".concat(c,"px"),rr_height:"".concat(l,"px")})[t5]=t3,n),childNodes:[],isSVG:o}}if(a!==t2.IGNORE){var d=function(t,e,n){if(e===t2.HIDDEN)return{};for(var r,o,a,s={},c=getValidTagName(t.tagName),l=t.ownerDocument,d=0;d0||isNodeShadowHost(t))&&"style"!==r&&(f=serializeChildNodes(t,e.parentNodePrivacyLevel===a&&e.ignoreWhiteSpace===("head"===r)?e:polyfills_assign({},e,{parentNodePrivacyLevel:a,ignoreWhiteSpace:"head"===r}))),{type:t$.Element,tagName:r,attributes:d,childNodes:f,isSVG:o}}}(t,e);case t.TEXT_NODE:return function(t,e){var n=getTextContent(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0!==n)return{type:t$.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:t$.CDATA,textContent:""}}}(t,e);if(!n)return null;var r=getSerializedNodeId(t)||ee++;return n.id=r,t4.set(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),n}var ee=1;function serializeChildNodes(t,e){var n=[];return forEachChildNodes(t,function(t){var r=serializeNodeWithId(t,e);r&&n.push(r)}),n}function isTouchEvent(t){return!!t.changedTouches}function getEventTarget(t){return!0===t.composed&&isNodeShadowHost(t.target)?t.composedPath()[0]:t.target}var convertMouseEventToLayoutCoordinates=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX: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},getVisualViewport=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 tryToComputeCoordinates(t){var e=isTouchEvent(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var o=convertMouseEventToLayoutCoordinates(n,r),a=o.visualViewportX,s=o.visualViewportY;n=a,r=s}if(!Number.isFinite(n)||!Number.isFinite(r)){t.isTrusted&&addTelemetryDebug("mouse/touch event without x/y");return}return{x:n,y:r}}var en=((z={}).pointerup=t0.MouseUp,z.mousedown=t0.MouseDown,z.click=t0.Click,z.contextmenu=t0.ContextMenu,z.dblclick=t0.DblClick,z.focus=t0.Focus,z.blur=t0.Blur,z.touchstart=t0.TouchStart,z.touchend=t0.TouchEnd,z);function initInputObserver(t,e,n){void 0===n&&(n=document);var r,o=t.defaultPrivacyLevel,a=new WeakMap,s=n!==document,c=addEventListeners(t,n,s?["change"]:["input","change"],function(t){var e=getEventTarget(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&onElementChange(e)},{capture:!0,passive:!0}).stop;if(s)r=noop;else{var l=[instrumentSetter(HTMLInputElement.prototype,"value",onElementChange),instrumentSetter(HTMLInputElement.prototype,"checked",onElementChange),instrumentSetter(HTMLSelectElement.prototype,"value",onElementChange),instrumentSetter(HTMLTextAreaElement.prototype,"value",onElementChange),instrumentSetter(HTMLSelectElement.prototype,"selectedIndex",onElementChange)];r=function(){l.forEach(function(t){return t.stop()})}}return function(){r(),c()};function onElementChange(t){var e,n,r=getNodePrivacyLevel(t,o);if(r!==t2.HIDDEN){var a=t.type;if("radio"===a||"checkbox"===a){if(shouldMaskNode(t,r))return;n={isChecked:t.checked}}else{var s=getElementInputValue(t,r);if(void 0===s)return;n={text:s}}cbWithDedup(t,n);var c=t.name;"radio"===a&&c&&t.checked&&(e=document.querySelectorAll('input[type="radio"][name="'.concat(cssEscape(c),'"]')),Array.prototype.forEach.call(e,function(e){e!==t&&cbWithDedup(e,{isChecked:!1})}))}}function cbWithDedup(t,n){if(hasSerializedNode(t)){var r=a.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(a.set(t,n),e(polyfills_assign({id:getSerializedNodeId(t)},n)))}}}function getPathToNestedCSSRule(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 o=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(o),e}}function initMutationObserver(t,e,n,r){var o=getMutationObserverConstructor();if(!o)return{stop:noop,flush:noop};var a=function(t){var e=noop,n=[];function flush(){e(),t(n),n=[]}return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(monitor(t),e);return function(){return window.cancelIdleCallback(n)}}var r=window.requestAnimationFrame(monitor(t));return function(){return window.cancelAnimationFrame(r)}}(flush,{timeout:100})),n.push.apply(n,t)},flush:flush,stop:function(){e()}}}(function(r){!function(t,e,n,r){t.filter(function(t){return"childList"===t.type}).forEach(function(t){t.removedNodes.forEach(function(t){!function traverseRemovedShadowDom(t,e){isNodeShadowHost(t)&&e(t.shadowRoot),forEachChildNodes(t,function(t){return traverseRemovedShadowDom(t,e)})}(t,r.removeShadowRoot)})});var o=t.filter(function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!hasSerializedNode(e)&&!isNodeShadowRoot(e))return!1;e=getParentNode(e)}return!0}(t.target)&&getNodePrivacyLevel(t.target,n.defaultPrivacyLevel)!==t2.HIDDEN}),a=function(t,e,n){for(var r=new Set,o=new Map,_loop_1=function(t){t.addedNodes.forEach(function(t){r.add(t)}),t.removedNodes.forEach(function(e){r.has(e)||o.set(e,t.target),r.delete(e)})},a=0;a10&&function(){if(B){if(B.keys)B.delete(B.keys().next().value);else{var t=!0;B.forEach(function(e,n){t&&(B.delete(n),t=!1)})}}}()),e}var er=function(){function Segment(t,e,n){this.encoder=t;var r=e.view.id;this.metadata=polyfills_assign({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:getOrCreateReplayStats(r).segments_count,source:"browser"},e),getOrCreateReplayStats(r).segments_count+=1}return Segment.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=t.type===tY.FullSnapshot),sendToExtension("record",{record:t,segment:this.metadata}),n=this.metadata.view.id,getOrCreateReplayStats(n).records_count+=1;var n,r,o=1===this.metadata.records_count?'{"records":[':",";this.encoder.write(o+JSON.stringify(t),e)},Segment.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,getOrCreateReplayStats(n).segments_total_raw_size+=r,t(e.metadata)}),this.encoder.reset()},Segment}();function isBrowserSupported(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function createDeflateWorker(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=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<>>=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;e8?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]>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],++_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=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>=7;l>>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>>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.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]&&is){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=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=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_length4096)&&(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<$||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.gzindexa&&(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.gzindexa&&(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]&&rt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a>>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 eo={status:0};function onError(t,e,n,r){if(1===eo.status||0===eo.status){var o;if(Z.error("".concat(e," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&(includes(o=n.message,"Content Security Policy")||includes(o,"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.",Z.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 addTelemetryError(n);1===eo.status&&eo.initializationFailureCallbacks.forEach(function(t){return t()}),eo={status:2}}else addTelemetryError(n,{worker_version:3===eo.status&&eo.version,stream_id:r})}var ei=function(t,e,n){var r,o,a=(void 0===n?{}:n).ignoreInitIfSyntheticsWillInjectRum,s=void 0===a||a,c=!1,l=createContextManager(2),d=createContextManager(1),getInternalContextStrategy=function(){},getInitConfigurationStrategy=function(){},f=noop,getSessionReplayLinkStrategy=function(){},p=new $,addTimingStrategy=function(t,e){void 0===e&&(e=timeStampNow()),p.add(function(){return addTimingStrategy(t,e)})},startViewStrategy=function(t,e){void 0===e&&(e=clocksNow()),p.add(function(){return startViewStrategy(t,e)})},addActionStrategy=function(t,n){void 0===n&&(n=buildCommonContext(l,d,e)),p.add(function(){return addActionStrategy(t,n)})},addErrorStrategy=function(t,n){void 0===n&&(n=buildCommonContext(l,d,e)),p.add(function(){return addErrorStrategy(t,n)})},addFeatureFlagEvaluationStrategy=function(t,e){p.add(function(){return addFeatureFlagEvaluationStrategy(t,e)})};function doStartRum(n,r,o){if(n.storeContextsAcrossPages){var a=l.getContext();(l=createStoredContextManager(r,"rum",2)).setContext(combine(l.getContext(),a));var s=d.getContext();(d=createStoredContextManager(r,"rum",1)).setContext(combine(d.getContext(),s))}var c=t(n,r,e,l,d,o);getSessionReplayLinkStrategy=function(){return e.getSessionReplayLink(r,c.session,c.viewContexts)},startViewStrategy=c.startView,addActionStrategy=c.addAction,addErrorStrategy=c.addError,addTimingStrategy=c.addTiming,addFeatureFlagEvaluationStrategy=c.addFeatureFlagEvaluation,getInternalContextStrategy=c.getInternalContext,f=c.stopSession,p.drain(),e.onRumStart(c.lifeCycle,r,c.session,c.viewContexts)}var m=monitor(function(t){startViewStrategy("object"==typeof t?t:{name:t})});return r={init:monitor(function(t){if(!t){Z.error("Missing configuration");return}if(getInitConfigurationStrategy=function(){return deepClone(t)},!(s&&willSyntheticsInjectRum())){var e,n=canUseEventBridge();if(n&&(t=polyfills_assign({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100})),e=t,!c||(e.silentMultipleInit||Z.error("DD_RUM is already initialized."),0)){var r=function(t){if(!t.applicationId){Z.error("Application ID is not configured, no RUM data will be collected.");return}if(void 0!==t.sessionReplaySampleRate&&!isPercentage(t.sessionReplaySampleRate)){Z.error("Session Replay Sample Rate should be a number between 0 and 100");return}var e,n,r,o,a,s,c=null!==(e=t.premiumSampleRate)&&void 0!==e?e:t.replaySampleRate;if(void 0!==c&&void 0!==t.sessionReplaySampleRate&&(Z.warn("Ignoring Premium Sample Rate because Session Replay Sample Rate is set"),c=void 0),void 0!==c&&!isPercentage(c)){Z.error("Premium Sample Rate should be a number between 0 and 100");return}var l=null!==(n=t.traceSampleRate)&&void 0!==n?n:t.tracingSampleRate;if(void 0!==l&&!isPercentage(l)){Z.error("Trace Sample Rate should be a number between 0 and 100");return}if(void 0!==t.excludedActivityUrls&&!Array.isArray(t.excludedActivityUrls)){Z.error("Excluded Activity Urls should be an array");return}var d=function(t){if(void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&Z.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins."),void 0!==t.allowedTracingUrls){if(!Array.isArray(t.allowedTracingUrls)){Z.error("Allowed Tracing URLs should be an array");return}if(0!==t.allowedTracingUrls.length&&void 0===t.service){Z.error("Service needs to be configured when tracing is enabled");return}var e=[];return t.allowedTracingUrls.forEach(function(t){isMatchOption(t)?e.push({match:t,propagatorTypes:["datadog"]}):"object"===getType(t)&&isMatchOption(t.match)&&Array.isArray(t.propagatorTypes)?e.push(t):Z.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)){Z.error("Allowed Tracing Origins should be an array");return}if(0!==t.allowedTracingOrigins.length&&void 0===t.service){Z.error("Service needs to be configured when tracing is enabled");return}var n=[];return t.allowedTracingOrigins.forEach(function(t){var e=function(t){var e;if("string"==typeof t?e=t:t instanceof RegExp?e=function(e){return t.test(getLinkElementOrigin(buildUrl(e)))}:"function"==typeof t&&(e=function(e){return t(getLinkElementOrigin(buildUrl(e)))}),void 0===e){Z.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t);return}return{match:e,propagatorTypes:["datadog"]}}(t);e&&n.push(e)}),n}return[]}(t);if(d){var f=function(t){if(!t||!t.clientToken){Z.error("Client Token is not configured, we will not send any data.");return}var e,n,r,o,a,s,c,l,d,f,p,m,h=null!==(f=t.sessionSampleRate)&&void 0!==f?f:t.sampleRate;if(void 0!==h&&!isPercentage(h)){Z.error("Session Sample Rate should be a number between 0 and 100");return}if(void 0!==t.telemetrySampleRate&&!isPercentage(t.telemetrySampleRate)){Z.error("Telemetry Sample Rate should be a number between 0 and 100");return}if(void 0!==t.telemetryConfigurationSampleRate&&!isPercentage(t.telemetryConfigurationSampleRate)){Z.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");return}return Array.isArray(t.enableExperimentalFeatures)&&function(t){t.forEach(function(t){tu.add(t)})}(t.enableExperimentalFeatures.filter(function(t){return objectHasValue(_,t)})),polyfills_assign({beforeSend:t.beforeSend&&catchUserErrors(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:((n=!function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(generateUUID()),n="test";setCookie(e,n,6e4,t);var r=getCookie(e)===n;return deleteCookie(e,t),r}catch(t){return Z.error(t),!1}}(((e={}).secure=!!t.useSecureSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.useCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===b){for(var t="dd_site_test_".concat(generateUUID()),e=window.location.hostname.split("."),n=e.pop();e.length&&!getCookie(t);)setCookie(t,"test",1e3,{domain:n="".concat(e.pop(),".").concat(n)});deleteCookie(t,{domain:n}),b=n}return b}()),e))?void 0:{type:"Cookie",cookieOptions:e})||!t.allowFallbackToLocalStorage||(n=function(){try{var t=generateUUID(),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}}()),n),sessionSampleRate:null!=h?h:100,telemetrySampleRate:null!==(p=t.telemetrySampleRate)&&void 0!==p?p:20,telemetryConfigurationSampleRate:null!==(m=t.telemetryConfigurationSampleRate)&&void 0!==m?m:5,service:t.service,silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(r=t.env,o=t.service,a=t.version,s=t.datacenter,c=[],r&&c.push(buildTag("env",r)),o&&c.push(buildTag("service",o)),a&&c.push(buildTag("version",a)),s&&c.push(buildTag("datacenter",s)),d=objectValues(l={logsEndpointBuilder:createEndpointBuilder(t,"logs",c),rumEndpointBuilder:createEndpointBuilder(t,"rum",c),sessionReplayEndpointBuilder:createEndpointBuilder(t,"sessionReplay",c)}).map(function(t){return t.urlPrefix}),polyfills_assign({isIntakeUrl:function(t){return d.some(function(e){return 0===t.indexOf(e)})},replica:function(t,e,n){if(t.replica){var r=polyfills_assign({},t,{site:th,clientToken:t.replica.clientToken}),o={logsEndpointBuilder:createEndpointBuilder(r,"logs",n),rumEndpointBuilder:createEndpointBuilder(r,"rum",n)};return e.push.apply(e,objectValues(o).map(function(t){return t.urlPrefix})),polyfills_assign({applicationId:t.replica.applicationId},o)}}(t,d,c),site:t.site||th},l)))}(t);if(f){var p=!!(null!==(r=t.trackUserInteractions)&&void 0!==r?r:t.trackInteractions),m=!!t.trackFrustrations;return polyfills_assign({applicationId:t.applicationId,version:t.version,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:null!==(a=null!==(o=t.sessionReplaySampleRate)&&void 0!==o?o:c)&&void 0!==a?a:100,oldPlansBehavior:void 0===t.sessionReplaySampleRate,traceSampleRate:l,allowedTracingUrls:d,excludedActivityUrls:null!==(s=t.excludedActivityUrls)&&void 0!==s?s:[],workerUrl:t.workerUrl,trackUserInteractions:p||m,trackFrustrations:m,trackViewsManually:!!t.trackViewsManually,trackResources:t.trackResources,trackLongTasks:t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:objectHasValue(tb,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:tb.MASK_USER_INPUT,customerDataTelemetrySampleRate:1},f)}}}(t);if(r){if(!n&&!r.sessionStoreStrategyType){Z.warn("No storage available for session. We will not send any data.");return}if(r.trackViewsManually){var o=p;p=new $,startViewStrategy=function(e){doStartRum(t,r,e)},o.drain()}else doStartRum(t,r);c=!0}}}}),addRumGlobalContext:monitor(function(t,e){return l.add(t,e)}),setGlobalContextProperty:monitor(function(t,e){return l.setContextProperty(t,e)}),removeRumGlobalContext:monitor(function(t){return l.remove(t)}),removeGlobalContextProperty:monitor(function(t){return l.removeContextProperty(t)}),getRumGlobalContext:monitor(function(){return l.get()}),getGlobalContext:monitor(function(){return l.getContext()}),setRumGlobalContext:monitor(function(t){return l.set(t)}),setGlobalContext:monitor(function(t){return l.setContext(t)}),clearGlobalContext:monitor(function(){return l.clearContext()}),getInternalContext:monitor(function(t){return getInternalContextStrategy(t)}),getInitConfiguration:monitor(function(){return getInitConfigurationStrategy()}),addAction:monitor(function(t,e){addActionStrategy({name:sanitize(t),context:sanitize(e),startClocks:clocksNow(),type:"custom"})}),addError:function(t,e){var n=createHandlingStack();callMonitored(function(){addErrorStrategy({error:t,handlingStack:n,context:sanitize(e),startClocks:clocksNow()})})},addTiming:monitor(function(t,e){addTimingStrategy(sanitize(t),e)}),setUser:monitor(function(t){var e;(e="object"===getType(t))||Z.error("Unsupported user:",t),e&&d.setContext(sanitizeUser(t))}),getUser:monitor(function(){return d.getContext()}),setUserProperty:monitor(function(t,e){var n,r=sanitizeUser(((n={})[t]=e,n))[t];d.setContextProperty(t,r)}),removeUserProperty:monitor(function(t){return d.removeContextProperty(t)}),removeUser:monitor(function(){return d.clearContext()}),clearUser:monitor(function(){return d.clearContext()}),startView:m,stopSession:monitor(function(){f()}),startSessionReplayRecording:monitor(e.start),stopSessionReplayRecording:monitor(e.stop),addFeatureFlagEvaluation:monitor(function(t,e){addFeatureFlagEvaluationStrategy(sanitize(t),sanitize(e))}),getSessionReplayLink:monitor(function(){return getSessionReplayLinkStrategy()})},Object.defineProperty(o=polyfills_assign({version:"4.50.1",onReady:function(t){t()}},r),"_setDebug",{get:function(){return setDebugMode},enumerable:!1}),o}(function(t,e,n,r,o,a){var s,c,l,d,f,p,m,h,v,y,b,S,E,C,T,R,I,L,P,z,B,V,j,W,G,K,X,Y,$,Q,tt,te,tn,tr,to,ti,ta,ts,tc,td,tf,tp=[],th=new tR;th.subscribe(11,function(t){return sendToExtension("rum",t)});var tg=function(t){var e,n,r,o=(n=new J,tC.telemetryEnabled=!includes(tE,t.site)&&performDraw(t.telemetrySampleRate),tC.telemetryConfigurationEnabled=tC.telemetryEnabled&&performDraw(t.telemetryConfigurationSampleRate),r={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self},k=function(t){if(tC.telemetryEnabled){var o=combine({type:"telemetry",date:timeStampNow(),service:"browser-rum-sdk",version:"4.50.1",source:"browser",_dd:{format_version:2},telemetry:combine(t,{runtime_env:r}),experimental_features:arrayFrom(tu)},void 0!==e?e():{});n.notify(o),sendToExtension("telemetry",o)}},g=addTelemetryError,polyfills_assign(tC,{maxEventsPerPage:t.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){e=t},observable:n,enabled:tC.telemetryEnabled});if(canUseEventBridge()){var a=getEventBridge();o.observable.subscribe(function(t){return a.send("internal_telemetry",t)})}return o}(e);tg.setContextProvider(function(){var t,n;return{application:{id:e.applicationId},session:{id:null===(t=t_.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(n=t1.findView())||void 0===n?void 0:n.id},action:{id:t3.findActionId()}}});var reportError=function(t){th.notify(12,{error:t}),addTelemetryDebug("Error reported to customer",{"error.message":t.message})},tv=function(t,e){if(void 0===e&&(e=computeBytesCount),!isExperimentalFeatureEnabled(_.FEATURE_FLAGS))return{findFeatureFlagEvaluations:function(){},getFeatureFlagBytesCount:function(){return 0},addFeatureFlagEvaluation:noop,stop:noop};var n=new tL(144e5),r=0,o=!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=throttle(function(t){r=e(jsonStringify(t)),o||(o=warnIfCustomerDataLimitReached(r,0))},200),s=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,s(r))},stop:a.cancel}}(th),ty=tI=new J(function(){var t=isExperimentalFeatureEnabled(_.PAGEHIDE),n=addEventListeners(e,window,["visibilitychange","freeze","pagehide"],function(e){"pagehide"===e.type&&t?tI.notify({reason:tT.PAGEHIDE}):"visibilitychange"===e.type&&"hidden"===document.visibilityState?tI.notify({reason:tT.HIDDEN}):"freeze"===e.type&&tI.notify({reason:tT.FROZEN})},{capture:!0}).stop,r=noop;return t||(r=addEventListener(e,window,"beforeunload",function(){tI.notify({reason:tT.UNLOADING})}).stop),function(){n(),r()}}),tb=ty.subscribe(function(t){th.notify(9,t)});tp.push(function(){return tb.unsubscribe()});var t_=canUseEventBridge()?(tM={id:"00000000-aaaa-0000-aaaa-000000000000",plan:1,sessionReplayAllowed:!1,longTaskAllowed:!0,resourceAllowed:!0},{findTrackedSession:function(){return tM},expire:noop,expireObservable:new J}):((tP=function(t,e,n){var r,o,a,s,c=function(t,e,n){var r,o,a,s=new J,c=new J,l="Cookie"===t.type?(o=t.cookieOptions,function(t){if(!getCookie(tl)){var e=getCookie("_dd"),n=getCookie("_dd_r"),r=getCookie("_dd_l"),o={};e&&(o.id=e),r&&/^[01]$/.test(r)&&(o.logs=r),n&&/^[012]$/.test(n)&&(o.rum=n),isEmptyObject(o)||(expandSessionState(o),t.persistSession(o))}}(a={isLockEnabled:null!=w?w:w=!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent),persistSession:function(t){setCookie(tl,toSessionString(t),9e5,o)},retrieveSession:retrieveSessionCookie,clearSession:function(){deleteCookie(tl,o)}}),a):{isLockEnabled:!1,persistSession:persistInLocalStorage,retrieveSession:retrieveSessionFromLocalStorage,clearSession:clearSessionFromLocalStorage},d=l.clearSession,f=l.retrieveSession,p=timer_setInterval(function(){processSessionStoreOperations({process:function(t){return isActiveSession(t)?void 0:{}},after:synchronizeSession},l)},1e3),m=isActiveSession(r=f())?r:{};function synchronizeSession(t){var n;return isActiveSession(t)||(t={}),hasSessionInCache()&&((n=t,m.id!==n.id||m[e]!==n[e])?(m={},c.notify()):m=t),t}function hasSessionInCache(){return void 0!==m[e]}function isActiveSession(t){return(void 0===t.created||dateNow()-Number(t.created)<144e5)&&(void 0===t.expire||dateNow()=r&&flush("bytes_limit"),p+=1,f+=t,void 0===e&&(e=timer_setTimeout(function(){flush("duration_limit")},o))},notifyAfterAddMessage:function(){p>=n?flush("messages_limit"):f>=r&&flush("bytes_limit")},notifyAfterRemoveMessage:function(t){f-=t,0==(p-=1)&&cancelDurationLimitTimeout()}}}({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:o,sessionExpireObservable:a}),t.messageBytesLimit)}return{flushObservable:s.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),s.add(t),c&&e&&c.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){s.upsert(t,e),c&&c.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){s.stop(),null==c||c.stop()}}}(e,{endpoint:e.rumEndpointBuilder},tV&&{endpoint:tV.rumEndpointBuilder,transformMessage:function(t){return combine(t,{application:{id:tV.applicationId}})}},reportError,ty,tB),th.subscribe(11,function(t){"view"===t.type?tJ.upsert(t,t.view.id):tJ.add(t)}),tz.subscribe(function(t){return tJ.add(t,e.site===tm)}),tJ);tp.push(function(){return tY.stop()}),tw=tY.flushObservable,tg.enabled&&performDraw(e.customerDataTelemetrySampleRate)&&(initCurrentPeriodMeasures(),initCurrentBatchMeasures(),th.subscribe(11,function(t){D=!0,updateMeasure(U.globalContextBytes,isEmptyObject(r.get())?0:r.getBytesCount()),updateMeasure(U.userContextBytes,isEmptyObject(o.get())?0:o.getBytesCount());var e=tv.findFeatureFlagEvaluations(),n=includes(["view","error"],t.type)&&e&&!isEmptyObject(e);updateMeasure(U.featureFlagBytes,n?tv.getFeatureFlagBytesCount():0)}),tw.subscribe(function(t){var e=t.bytesCount,n=t.messagesCount;D&&(F.batchCount+=1,updateMeasure(F.batchBytesCount,e),updateMeasure(F.batchMessagesCount,n),mergeMeasure(F.globalContextBytes,U.globalContextBytes),mergeMeasure(F.userContextBytes,U.userContextBytes),mergeMeasure(F.featureFlagBytes,U.featureFlagBytes),initCurrentBatchMeasures())}),timer_setInterval(sendCurrentPeriodMeasures,1e4))}var t$=(W=getMutationObserverConstructor(),G=new J(function(){if(W){var t=new W(monitor(function(){return G.notify()}));return t.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return t.disconnect()}}})),tQ=function(t,e){var n=shallowClone(e),r=new J(function(){var e,n,r,o=(e=instrumentMethodAndCallOriginal(history,"pushState",{after:onLocationChange}).stop,n=instrumentMethodAndCallOriginal(history,"replaceState",{after:onLocationChange}).stop,r=addEventListener(t,window,"popstate",onLocationChange).stop,{stop:function(){e(),n(),r()}}).stop,a=addEventListener(t,window,"hashchange",onLocationChange).stop;return function(){o(),a()}});function onLocationChange(){if(n.href!==e.href){var t=shallowClone(e);r.notify({newLocation:t,oldLocation:n}),n=t}}return r}(e,location),t0=(s=th,c=e,l=location,d=t_,f=tQ,p=t$,m=function(){return buildCommonContext(r,o,n)},h=reportError,b=(v=new tL(144e5),s.subscribe(2,function(t){v.add({service:t.service,version:t.version,id:t.id,name:t.name,startClocks:t.startClocks},t.startClocks.relative)}),s.subscribe(4,function(t){var e=t.endClocks;v.closeActive(e.relative)}),s.subscribe(8,function(){v.reset()}),{findView:function(t){return v.find(t)},stop:function(){v.stop()}}),S=function(t,e,n){var r,o=new tL(144e5);t.subscribe(4,function(t){var e=t.endClocks;o.closeActive(e.relative)}),t.subscribe(2,function(t){var e=t.startClocks,a=n.href;o.add(buildUrlContext({url:a,referrer:r||document.referrer}),e.relative),r=a});var a=e.subscribe(function(t){var e=t.newLocation,n=o.find();if(n){var r=relativeNow();o.closeActive(r),o.add(buildUrlContext({url:e.href,referrer:n.referrer}),r)}});function buildUrlContext(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return o.find(t)},stop:function(){a.unsubscribe(),o.stop()}}}(s,f,l),E=function(t,e){void 0===e&&(e=500);var n,r=new tL(144e5,4e3);addPageState(getPageState(),relativeNow());var o=addEventListeners(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(t){t.isTrusted&&addPageState("freeze"===t.type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":getPageState(),t.timeStamp)},{capture:!0}).stop;function addPageState(t,e){void 0===e&&(e=relativeNow()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}return{findAll:function(t,n){var o=r.findAll(t,n);if(0!==o.length){for(var a=[],s=Math.max(0,o.length-e),c=o.length-1;c>=s;c--){var l=o[c],d=l.startTime-t;a.push({state:l.state,start:toServerDuration(d)})}return a}},isInActivePageStateAt:function(t){var e=r.find(t);return void 0!==e&&"active"===e.state},addPageState:addPageState,stop:function(){o(),r.stop()}}}(c),T=(C=function(t,e,n,r){t.subscribe(1,function(e){return t.notify(10,processAction(e,r))});var o={findActionId:noop};return n.trackUserInteractions&&(o=function(t,e,n){var r,o,a,s,c,l,d,f,p=new tL(3e5),m=new J;t.subscribe(8,function(){p.reset()}),t.subscribe(4,stopClickChain);var h=(s=(r={onPointerDown:function(r){return function(t,e,n,r,o){if(!(!t.trackFrustrations&&r.find())){var a,s,c,l,d=(a=o,s=t.actionNameAttribute,{type:"click",target:{width:Math.round((l=a.target.getBoundingClientRect()).width),height:Math.round(l.height),selector:getSelectorFromElement(a.target,s)},position:{x:Math.round(a.clientX-l.left),y:Math.round(a.clientY-l.top)},name:getActionNameFromElementProgrammatically(c=a.target,tF)||s&&getActionNameFromElementProgrammatically(c,s)||getActionNameFromElementForStrategies(c,s,tU)||getActionNameFromElementForStrategies(c,s,tD)||""});if(t.trackFrustrations||d.name){var f=!1;return doWaitPageActivityEnd(createPageActivityObservable(e,n,t),function(t){f=t.hadActivity},100),{clickActionBase:d,hadActivityOnPointerDown:function(){return f}}}}}(n,t,e,p,r)},onPointerUp:function(r,o,a){var s,c,l,d,f,h,g,v,y,b,_,S,w,E;return s=n,c=t,l=e,d=p,f=m,h=appendClickToClickChain,g=r.clickActionBase,v=o,y=a,b=r.hadActivityOnPointerDown,_=function newClick(t,e,n,r,o){var a,s=generateUUID(),c=clocksNow(),l=e.add(s,c.relative),d=trackEventCounts({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(Array.isArray(t.action.id)?includes(t.action.id,s):t.action.id===s)}}),f=0,p=[],m=new J;function stop(t){0===f&&((f=1,a=t)?l.close(a-getNavigationStart()):l.remove(),d.stop(),m.notify())}return{event:o,stop:stop,stopObservable:m,get hasError(){return d.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==a},getUserActivity:n,addFrustration:function(t){p.push(t)},startClocks:c,isStopped:function(){return 1===f||2===f},clone:function(){return newClick(t,e,n,r,o)},validate:function(e){if(stop(),1===f){var n,l=d.eventCounts,m=l.resourceCount,h=l.errorCount,g=l.longTaskCount,v=polyfills_assign({type:"click",duration:a&&(n=c.timeStamp,a-n),startClocks:c,id:s,frustrationTypes:p,counts:{resourceCount:m,errorCount:h,longTaskCount:g},events:null!=e?e:[o],event:o},r);t.notify(1,v),f=2}},discard:function(){stop(),f=2}}}(c,d,y,g,v),s.trackFrustrations&&h(_),S=doWaitPageActivityEnd(createPageActivityObservable(c,l,s),function(t){t.hadActivity&&t.end<_.startClocks.timeStamp?_.discard():(t.hadActivity?_.stop(t.end):b()?_.stop(_.startClocks.timeStamp):_.stop(),s.trackFrustrations||(t.hadActivity?_.validate():_.discard()))},1e4).stop,w=c.subscribe(4,function(t){var e=t.endClocks;_.stop(e.timeStamp)}),E=f.subscribe(function(){_.stop()}),void _.stopObservable.subscribe(function(){w.unsubscribe(),S(),E.unsubscribe()})}}).onPointerDown,c=r.onPointerUp,l={selection:!1,input:!1},d=[addEventListener(n,window,"pointerdown",function(t){isValidPointerEvent(t)&&(o=isSelectionEmpty(),l={selection:!1,input:!1},a=s(t))},{capture:!0}),addEventListener(n,window,"selectionchange",function(){o&&isSelectionEmpty()||(l.selection=!0)},{capture:!0}),addEventListener(n,window,"pointerup",function(t){if(isValidPointerEvent(t)&&a){var e=l;c(a,t,function(){return e}),a=void 0}},{capture:!0}),addEventListener(n,window,"input",function(){l.input=!0},{capture:!0})],{stop:function(){d.forEach(function(t){return t.stop()})}}).stop;return{stop:function(){stopClickChain(),m.notify(),h()},actionContexts:{findActionId:function(t){return n.trackFrustrations?p.findAll(t):p.find(t)}}};function appendClickToClickChain(t){if(!f||!f.tryAppend(t)){var e=t.clone();f=function(t,e){var n,r=[],o=0;function appendClick(t){t.stopObservable.subscribe(tryFinalize),r.push(t),timer_clearTimeout(n),n=timer_setTimeout(dontAcceptMoreClick,1e3)}function tryFinalize(){1===o&&r.every(function(t){return t.isStopped()})&&(o=2,e(r))}function dontAcceptMoreClick(){timer_clearTimeout(n),0===o&&(o=1,tryFinalize())}return appendClick(t),{tryAppend:function(t){var e,n;return 0===o&&(!(r.length>0)||(e=r[r.length-1].event,n=t.event,e.target===n.target&&100>=Math.sqrt(Math.pow(e.clientX-n.clientX,2)+Math.pow(e.clientY-n.clientY,2))&&e.timeStamp-n.timeStamp<=1e3)?(appendClick(t),!0):(dontAcceptMoreClick(),!1))},stop:function(){dontAcceptMoreClick()}}}(t,function(t){(function(t,e){if(function(t){if(t.some(function(t){return t.getUserActivity().selection}))return!1;for(var e=0;e0,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:(te=new Set,Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach(function(t){isMatchOption(t)?te.add("datadog"):"object"===getType(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach(function(t){return te.add(t)})}),Array.isArray(t.allowedTracingOrigins)&&t.allowedTracingOrigins.length>0&&te.add("datadog"),arrayFrom(te)),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!==(Q=t.trackUserInteractions)&&void 0!==Q?Q:t.trackInteractions},tt),tC.telemetryConfigurationEnabled&&addTelemetry({type:tS.configuration,configuration:tn}),function(t,e){t.subscribe(0,function(n){for(var r=0;r=n-1&&endTime(e)<=r+1});if(1===n.length)return n[0]}}}(t))?relativeToClocks(s.startTime):t.startClocks,l=s?computePerformanceEntryMetrics(s):void 0,d=function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:getRulePsr(e)}}}(t,e),f=computeIndexingInfo(t_,c),n=t.duration,p=isExperimentalFeatureEnabled(_.NO_RESOURCE_DURATION_FROZEN_STATE)&&(null===(r=t2.findAll(c.relative,n))||void 0===r?void 0:r.some(function(t){return"frozen"===t.state}))?void 0:toServerDuration(n),m=computePageStateInfo(t2,c,null!==(o=null==s?void 0:s.duration)&&void 0!==o?o:t.duration),h=combine({date:c.timeStamp,resource:{id:generateUUID(),type:a,duration:p,method:t.method,status_code:t.status,url:t.url},type:"resource"},d,l,f,m),{startTime:c.relative,rawRumEvent:h,domainContext:{performanceEntry:s&&s,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}))}),th.subscribe(0,function(t){for(var n=0;n=0?o.start:0,c=a?a.start:toServerDuration(e);n.push({start:s,duration:c-s})}}return n}(C,t.duration):void 0},feature_flags:w&&!isEmptyObject(w)?w:void 0,display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:toServerDuration(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!S||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}},isEmptyObject(t.customTimings)||(T.view.custom_timings=function(t,e){for(var n={},r=0,o=Object.keys(t);r0)||a(Math.max.apply(Math,l))}return{stop:doWaitPageActivityEnd(createPageActivityObservable(t,e,n),function(t){if(c){if(c=!1,t.hadActivity){var e;l.push((e=o.timeStamp,t.end-e))}invokeCallbackIfAllCandidatesAreReceived()}},void 0).stop,setLoadEvent:function(t){s&&(s=!1,l.push(t),invokeCallbackIfAllCandidatesAreReceived())}}}(t,e,n,o,d=a,function(t){f.loadingTime=t,ts()})).stop,h=p.setLoadEvent,E=(g=function(t){f.scroll=t},void 0===v&&(void 0===c&&(c=1e3),v=l=new J(function(){if(window.ResizeObserver){var t=throttle(function(){var t,e;l.notify((t=getScrollY(),e=getViewportDimension().height,{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(e+t),scrollTop:t}))},c,{leading:!1,trailing:!0}),e=document.scrollingElement||document.documentElement,r=new ResizeObserver(monitor(t.throttled));r.observe(e);var o=addEventListener(n,window,"scroll",t.throttled,{passive:!0});return function(){t.cancel(),r.unobserve(e),o.stop()}}})),y=0,b=0,S=0,w=v.subscribe(function(t){var e=t.scrollDepth,n=t.scrollTop,r=t.scrollHeight,o=!1;e>y&&(y=e,o=!0),r>b&&(b=r,S=relativeNow()-d.relative,o=!0),o&&g({maxDepth:Math.min(y,b),maxDepthScrollTop:n,maxScrollHeight:b,maxScrollHeightTime:S})}),{stop:function(){return w.unsubscribe()}}).stop,C=function(t,e,n){if(!supportPerformanceTimingEvent(x.LAYOUT_SHIFT))return{stop:noop};var r,o,a,s,c,l,d=0;n({value:0});var f=(c=0,l=0,{update:function(t){var e,n;void 0===r||t.startTime-o>=1e3||t.startTime-r>=5e3?(r=o=t.startTime,c=t.value,l=0,a=void 0):(c+=t.value,o=t.startTime),t.value>l&&(l=t.value,s=t.startTime,a=(null===(e=t.sources)||void 0===e?void 0:e.length)?null===(n=find(t.sources,function(t){return!!t.node&&isElementNode(t.node)}))||void 0===n?void 0:n.node:void 0)},value:function(){return c},largestLayoutShiftTarget:function(){return a},largestLayoutShiftTime:function(){return s}});return{stop:e.subscribe(0,function(e){for(var r=0;rd)){var a=round(d=f.value(),4),s=f.largestLayoutShiftTarget(),c=void 0;isExperimentalFeatureEnabled(_.WEB_VITALS_ATTRIBUTION)&&s&&(c=getSelectorFromElement(s,t.actionNameAttribute)),n({value:a,targetSelector:c})}}}).unsubscribe}}(n,t,function(t){f.cumulativeLayoutShift=t,ts()}).stop,k=(T=function(t,e,n,r){if(!(supportPerformanceTimingEvent(x.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype)||!isExperimentalFeatureEnabled(_.INTERACTION_TO_NEXT_PAINT))return{getInteractionToNextPaint:function(){},stop:noop};var o,a,s=("interactionCount"in performance||M||(M=new window.PerformanceObserver(monitor(function(t){t.getEntries().forEach(function(t){t.interactionId&&(tG=Math.min(tG,t.interactionId),tW=((tZ=Math.max(tZ,t.interactionId))-tG)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),o="initial_load"===n?0:getInteractionCount(),{getViewInteractionCount:function(){return getInteractionCount()-o}}).getViewInteractionCount,c=function(t){var e=[];function sortAndTrimLongestInteractions(){e.sort(function(t,e){return e.duration-t.duration}).splice(10)}return{process:function(t){var n=e.findIndex(function(e){return t.interactionId===e.interactionId}),r=e[e.length-1];-1!==n?t.duration>e[n].duration&&(e[n]=t,sortAndTrimLongestInteractions()):(e.length<10||t.duration>r.duration)&&(e.push(t),sortAndTrimLongestInteractions())},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:a}:s()?{value:0}:void 0},stop:r.subscribe(0,function(n){for(var r,o,s=0;s6e5&&!d&&(d=!0,addTelemetryDebug("INP outlier",{inp:l,interaction:{timeFromViewStart:(r=e.relative,p.startTime-r),duration:p.duration,startTime:p.startTime,processingStart:p.processingStart,processingEnd:p.processingEnd,interactionId:p.interactionId,name:p.name,targetNodeName:null===(o=p.target)||void 0===o?void 0:o.nodeName}})),a=isExperimentalFeatureEnabled(_.WEB_VITALS_ATTRIBUTION)&&p.target&&isElementNode(p.target)?getSelectorFromElement(p.target,t.actionNameAttribute):void 0)}).unsubscribe}}(n,d,o,t)).stop,A=T.getInteractionToNextPaint,{stop:function(){m(),C(),E(),k()},setLoadEvent:h,getCommonViewMetrics:function(){return f.interactionToNextPaint=A(),f}}),tl=tu.setLoadEvent,td=tu.stop,tf=tu.getCommonViewMetrics,tp="initial_load"===o?(O={},R=(N=function(t){tl(t.loadEvent),O.navigationTimings=t,ts()},{stop:t.subscribe(0,function(t){for(var e=0;e=0&&n.responseStart<=relativeNow()?n.responseStart:void 0})}}).unsubscribe}).stop,void 0===I&&(I=window),"hidden"===document.visibilityState?L=0:(L=1/0,P=addEventListeners(n,I,["pagehide","visibilitychange"],function(t){("pagehide"===t.type||"hidden"===document.visibilityState)&&(L=t.timeStamp,P())},{capture:!0}).stop),F={get timeStamp(){return L},stop:function(){null==P||P()}},D=(U=function(t){O.firstContentfulPaint=t,ts()},{stop:t.subscribe(0,function(t){var e=find(t,function(t){return t.entryType===x.PAINT&&"first-contentful-paint"===t.name&&t.startTime=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,function(t){return t.entryType===x.LARGEST_CONTENTFUL_PAINT&&t.startTime=0?o:0,time:e.startTime,targetSelector:a})}}).unsubscribe}).stop,{stop:function(){R(),D(),q(),G(),F.stop()},initialViewMetrics:O}):{stop:noop,initialViewMetrics:{}},tm=tp.stop,th=tp.initialViewMetrics,tg={stop:(K=trackEventCounts({lifeCycle:t,isChildEvent:function(t){return t.view.id===tt},onChange:ts})).stop,eventCounts:K.eventCounts},tv=tg.stop,ty=tg.eventCounts,tb=timer_setInterval(triggerViewUpdate,3e5);function triggerViewUpdate(){tc(),tr+=1;var e=void 0===X?timeStampNow():X.timeStamp;t.notify(3,{customTimings:tn,documentVersion:tr,id:tt,name:Y,service:$,version:Q,loadingType:o,location:to,startClocks:a,commonViewMetrics:tf(),initialViewMetrics:th,duration:e-a.timeStamp,isActive:void 0===X,sessionIsActive:ti,eventCounts:ty})}return triggerViewUpdate(),{name:Y,service:$,version:Q,stopObservable:te,end:function(e){var n,r,o=this;void 0===e&&(e={}),X||(X=null!==(n=e.endClocks)&&void 0!==n?n:clocksNow(),ti=null===(r=e.sessionIsActive)||void 0===r||r,t.notify(4,{endClocks:X}),timer_clearInterval(tb),td(),triggerViewUpdate(),timer_setTimeout(function(){o.stop()},3e5))},stop:function(){tm(),tv(),te.notify()},addTiming:function(t,e){if(!X){var n,r=e<31536e6?e:e-a.timeStamp;tn[(n=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==t&&Z.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(n)),n]=r,ts()}}}}(e,n,r,t,o,a,s);return l.add(c),c.stopObservable.subscribe(function(){l.delete(c)}),c}return e.subscribe(8,function(){d=startNewView("route_change",void 0,{name:d.name,service:d.service,version:d.version})}),e.subscribe(7,function(){d.end({sessionIsActive:!1})}),e.subscribe(9,function(t){(t.reason===tT.UNLOADING||t.reason===tT.PAGEHIDE)&&d.end()}),a&&(c=o.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)||getPathFromHash(n.hash)===getPathFromHash(e.hash))||(d.end(),d=startNewView("route_change"))})),{addTiming:function(t,e){void 0===e&&(e=timeStampNow()),d.addTiming(t,e)},startView:function(t,e){d.end({endClocks:e}),d=startNewView("route_change",e,t)},stop:function(){null==c||c.unsubscribe(),d.end(),l.forEach(function(t){return t.stop()})}}}(tr,th,t$,e,tQ,!e.trackViewsManually,a)),t9=t8.addTiming,t7=t8.startView,et=t8.stop;tp.push(et);var ee=(L=to=new J,(P=[H.error].map(function(t){var e;return tH[t]||(tH[t]=e=new J(function(){var n=q[t];return q[t]=function(){for(var r=[],o=0;on.bytesLimit}e(void 0,t,s)}(function readMore(){r.read().then(monitor(function(t){if(t.done){onDone();return}n.collectStreamBody&&o.push(t.value),(a+=t.value.length)>n.bytesLimit?onDone():readMore()}),monitor(function(t){return e(t)}))})()}(o.body,function(){var e;n((e=t.startClocks.timeStamp,timeStampNow()-e))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):n((r=t.startClocks.timeStamp,timeStampNow()-r))}}),function(t,e){var n;if(n=function(n){handleRumPerformanceEntries(t,e,[n])},runOnReadyState(e,"interactive",function(){var t,e={entryType:x.RESOURCE,initiatorType:tk,traceId:function(t){var e,n,r=(e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]"),createDocumentTraceData(e&&e.content,n&&n.content)||function(t){var e=function(t){for(var e=0;e=0;e-=1){var r=t.body.childNodes[e],n=getTraceCommentFromNode(r);if(n)return n;if(!isTextNode(r))break}}(t);if(e)return createDocumentTraceData(findCommaSeparatedValue(e,"trace-id"),findCommaSeparatedValue(e,"trace-time"))}(t));if(!(!r||r.traceTime<=dateNow()-12e4))return r.traceId}(document),toJSON:function(){return polyfills_assign({},t,{toJSON:void 0})}};if(supportPerformanceTimingEvent(x.NAVIGATION)&&performance.getEntriesByType(x.NAVIGATION).length>0)t=polyfills_assign(performance.getEntriesByType(x.NAVIGATION)[0].toJSON(),e);else{var r=computeRelativePerformanceTiming();t=polyfills_assign(r,{decodedBodySize:0,duration:r.responseEnd,name:window.location.href,startTime:0},e)}n(t)}),supportPerformanceObject()){var r=performance.getEntries();timer_setTimeout(function(){return handleRumPerformanceEntries(t,e,r)})}if(window.PerformanceObserver){var o=monitor(function(n){return handleRumPerformanceEntries(t,e,n.getEntries())}),a=[x.RESOURCE,x.NAVIGATION,x.LONG_TASK,x.PAINT],s=[x.LARGEST_CONTENTFUL_PAINT,x.FIRST_INPUT,x.LAYOUT_SHIFT,x.EVENT];try{s.forEach(function(t){new window.PerformanceObserver(o).observe({type:t,buffered:!0,durationThreshold:40})})}catch(t){a.push.apply(a,s)}new PerformanceObserver(o).observe({entryTypes:a}),supportPerformanceObject()&&"addEventListener"in performance&&addEventListener(e,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})}supportPerformanceTimingEvent(x.NAVIGATION)||function(t,e){function sendFakeTiming(){e(polyfills_assign(computeRelativePerformanceTiming(),{entryType:x.NAVIGATION}))}runOnReadyState(t,"complete",function(){timer_setTimeout(sendFakeTiming)})}(e,function(n){handleRumPerformanceEntries(t,e,[n])}),supportPerformanceTimingEvent(x.FIRST_INPUT)||function(t,e){var n=dateNow(),r=!1,o=addEventListeners(t,window,["click","mousedown","keydown","touchstart","pointerdown"],function(e){if(e.cancelable){var n={entryType:x.FIRST_INPUT,processingStart:relativeNow(),processingEnd:relativeNow(),startTime:e.timeStamp,duration:0,name:""};"pointerdown"===e.type?addEventListeners(t,window,["pointerup","pointercancel"],function(t){"pointerup"===t.type&&sendTiming(n)},{once:!0}):sendTiming(n)}},{passive:!0,capture:!0}).stop;function sendTiming(t){if(!r){r=!0,o();var a=t.processingStart-t.startTime;a>=0&&a6e4&&flushSegment("segment_bytes_limit")})}},stop:function(){flushSegment("stop"),a(),s()}}}(t,function(){return function(t,e,n){var r=e.findTrackedSession(),o=n.findView();if(r&&o)return{application:{id:t},session:{id:r.id},view:{id:o.id}}}(e.applicationId,n,r)},s,o),l=c.addRecord,d=c.stop,f=function(t){var e,n,r,o,a,s,c,l,d,f,p,m,h,g,v,y,b,_,S,w,E,C,T,k,x,A,O,N,R,I=t.emit,L=t.configuration;if(!I)throw Error("emit function is required");var M=(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)}}),mutationCb=function(t){I(assembleIncrementalSnapshot(tQ.Mutation,t))},inputCb=function(t){return I(assembleIncrementalSnapshot(tQ.Input,t))},P=initShadowRootsController(L,{mutationCb:mutationCb,inputCb:inputCb}),takeFullSnapshot=function(t,e){void 0===t&&(t=timeStampNow()),void 0===e&&(e={status:0,elementsScrollPositions:M,shadowRootsController:P});var n=getViewportDimension(),r=n.width;I({data:{height:n.height,href:window.location.href,width:r},type:tY.Meta,timestamp:t}),I({data:{has_focus:document.hasFocus()},type:tY.Focus,timestamp:t}),I({data:{node:serializeNodeWithId(document,{serializationContext:e,parentNodePrivacyLevel:L.defaultPrivacyLevel,configuration:L}),initialOffset:{left:getScrollX(),top:getScrollY()}},type:tY.FullSnapshot,timestamp:t}),window.visualViewport&&I({data:getVisualViewport(window.visualViewport),type:tY.VisualViewport,timestamp:t})};takeFullSnapshot();var F=(n={lifeCycle:t.lifeCycle,configuration:L,elementsScrollPositions:M,inputCb:inputCb,mediaInteractionCb:function(t){return I(assembleIncrementalSnapshot(tQ.MediaInteraction,t))},mouseInteractionCb:function(t){return I(t)},mousemoveCb:function(t,e){return I(assembleIncrementalSnapshot(e,{positions:t}))},mutationCb:mutationCb,scrollCb:function(t){return I(assembleIncrementalSnapshot(tQ.Scroll,t))},styleSheetCb:function(t){return I(assembleIncrementalSnapshot(tQ.StyleSheetRule,t))},viewportResizeCb:function(t){return I(assembleIncrementalSnapshot(tQ.ViewportResize,t))},frustrationCb:function(t){return I(t)},focusCb:function(t){return I({data:t,type:tY.Focus,timestamp:timeStampNow()})},visualViewportResizeCb:function(t){I({data:t,type:tY.VisualViewport,timestamp:timeStampNow()})},shadowRootsController:P},r=new WeakMap,o=1,a={getIdForEvent:function(t){return r.has(t)||r.set(t,o++),r.get(t)}},s=initMutationObserver(n.mutationCb,n.configuration,n.shadowRootsController,document),c=n.mousemoveCb,l=throttle(function(t){var e=getEventTarget(t);if(hasSerializedNode(e)){var n=tryToComputeCoordinates(t);if(!n)return;c([{id:getSerializedNodeId(e),timeOffset:0,x:n.x,y:n.y}],isTouchEvent(t)?tQ.TouchMove:tQ.MouseMove)}},50,{trailing:!1}).throttled,d=addEventListeners(L,document,["mousemove","touchmove"],l,{capture:!0,passive:!0}).stop,f=n.mouseInteractionCb,p=addEventListeners(L,document,Object.keys(en),function(t){var e,n=getEventTarget(t);if(getNodePrivacyLevel(n,L.defaultPrivacyLevel)!==t2.HIDDEN&&hasSerializedNode(n)){var r=getSerializedNodeId(n),o=en[t.type];if(o!==t0.Blur&&o!==t0.Focus){var s=tryToComputeCoordinates(t);if(!s)return;e={id:r,type:o,x:s.x,y:s.y}}else e={id:r,type:o};f(polyfills_assign({id:a.getIdForEvent(t)},assembleIncrementalSnapshot(tQ.MouseInteraction,e)))}},{capture:!0,passive:!0}).stop,m=n.scrollCb,h=n.configuration.defaultPrivacyLevel,g=n.elementsScrollPositions,v=throttle(function(t){var e=getEventTarget(t);if(e&&getNodePrivacyLevel(e,h)!==t2.HIDDEN&&hasSerializedNode(e)){var n=getSerializedNodeId(e),r=e===document?{scrollTop:getScrollY(),scrollLeft:getScrollX()}:{scrollTop:Math.round(e.scrollTop),scrollLeft:Math.round(e.scrollLeft)};g.set(e,r),m({id:n,x:r.scrollLeft,y:r.scrollTop})}},100).throttled,y=addEventListener(L,document,"scroll",v,{capture:!0,passive:!0}).stop,b=n.viewportResizeCb,_=initViewportObservable(L).subscribe(b).unsubscribe,S=initInputObserver(L,n.inputCb),w=n.mediaInteractionCb,E=n.configuration.defaultPrivacyLevel,C=addEventListeners(L,document,["play","pause"],function(t){var e=getEventTarget(t);e&&getNodePrivacyLevel(e,E)!==t2.HIDDEN&&hasSerializedNode(e)&&w({id:getSerializedNodeId(e),type:"play"===t.type?t1.Play:t1.Pause})},{capture:!0,passive:!0}).stop,T=function(t){function checkStyleSheetAndCallback(t,e){t&&hasSerializedNode(t.ownerNode)&&e(getSerializedNodeId(t.ownerNode))}var e=[instrumentMethodAndCallOriginal(CSSStyleSheet.prototype,"insertRule",{before:function(e,n){checkStyleSheetAndCallback(this,function(r){return t({id:r,adds:[{rule:e,index:n}]})})}}),instrumentMethodAndCallOriginal(CSSStyleSheet.prototype,"deleteRule",{before:function(e){checkStyleSheetAndCallback(this,function(n){return t({id:n,removes:[{index:e}]})})}})];function instrumentGroupingCSSRuleClass(n){e.push(instrumentMethodAndCallOriginal(n.prototype,"insertRule",{before:function(e,n){var r=this;checkStyleSheetAndCallback(this.parentStyleSheet,function(o){var a=getPathToNestedCSSRule(r);a&&(a.push(n||0),t({id:o,adds:[{rule:e,index:a}]}))})}}),instrumentMethodAndCallOriginal(n.prototype,"deleteRule",{before:function(e){var n=this;checkStyleSheetAndCallback(this.parentStyleSheet,function(r){var o=getPathToNestedCSSRule(n);o&&(o.push(e),t({id:r,removes:[{index:o}]}))})}}))}return"undefined"!=typeof CSSGroupingRule?instrumentGroupingCSSRuleClass(CSSGroupingRule):(instrumentGroupingCSSRuleClass(CSSMediaRule),instrumentGroupingCSSRuleClass(CSSSupportsRule)),function(){return e.forEach(function(t){return t.stop()})}}(n.styleSheetCb),k=n.focusCb,x=addEventListeners(L,window,["focus","blur"],function(){k({has_focus:document.hasFocus()})}).stop,A=function(t,e){var n=window.visualViewport;if(!n)return noop;var r=throttle(function(){e(getVisualViewport(n))},200,{trailing:!1}),o=r.throttled,a=r.cancel,s=addEventListeners(t,n,["resize","scroll"],o,{capture:!0,passive:!0}).stop;return function(){s(),a()}}(L,n.visualViewportResizeCb),O=n.lifeCycle,N=n.frustrationCb,R=O.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?void 0:e.type)||void 0===n?void 0:n.length)&&"events"in t.domainContext&&(null===(r=t.domainContext.events)||void 0===r?void 0:r.length)&&N({timestamp:t.rawRumEvent.date,type:tY.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map(function(t){return a.getIdForEvent(t)})}})}).unsubscribe,{flush:function(){s.flush()},stop:function(){s.stop(),d(),p(),y(),_(),S(),C(),T(),x(),A(),R()}}),U=F.stop,D=F.flush;function flushMutations(){P.flush(),D()}return{stop:function(){P.stop(),U()},takeSubsequentFullSnapshot:function(t){flushMutations(),takeFullSnapshot(t,{shadowRootsController:P,status:1,elementsScrollPositions:M})},flushMutations:flushMutations,shadowRootsController:P}}({emit:l,configuration:e,lifeCycle:t}),p=f.stop,m=f.takeSubsequentFullSnapshot,h=f.flushMutations,g=t.subscribe(4,function(){h(),l({timestamp:timeStampNow(),type:tY.ViewEnd})}).unsubscribe,v=t.subscribe(2,function(t){m(t.startClocks.timeStamp)}).unsubscribe;return{stop:function(){g(),v(),p(),d()}}}));c=(a=getGlobalObject())[s="DD_RUM"],a[s]=ei,c&&c.q&&c.q.forEach(function(t){return catchUserErrors(t,"onReady callback threw an error:")()});var ea=n(67294);let es=(0,ea.lazy)(()=>n.e(4922).then(n.bind(n,34922)));function i(t){return(0,j.jsx)(ea.Suspense,{fallback:null,children:(0,j.jsx)(es,{...t})})}var ec=n(24043),eu=n(248),el=n(62290),ed=n(28144),ef=n(36086),getCssVarsFromObject=function(t,e){var n={};return Object.entries(e).forEach(function(e){var r=(0,ec._)(e,2),o=r[0],a=r[1];n["--lns-".concat((t?"".concat(t,"-"):"")+o)]=a}),n},ep=getCssVarsFromObject(void 0,{unit:"".concat(el.bf/16,"rem")}),em=getCssVarsFromObject("fontWeight",el.vC),eh=getCssVarsFromObject(void 0,(l={},Object.entries(el.iH).forEach(function(t){var e=(0,ec._)(t,2),n=e[0],r=e[1],o={};o["fontSize-".concat(n)]=(0,ef.u)(r.fontSize),o["lineHeight-".concat(n)]=r.lineHeight,Object.assign(l,o,{})}),l)),eg=getCssVarsFromObject("radius",el.pD),ev=getCssVarsFromObject("shadow",el.q),ey=getCssVarsFromObject(void 0,(d={},Object.entries(el.RZ).forEach(function(t){var e=(0,ec._)(t,2),n=e[0],r=e[1];d["space-".concat(n)]=(0,ef.u)(r)}),d)),eb=getCssVarsFromObject(void 0,{formFieldBorderWidth:"1px",formFieldBorderWidthFocus:"2px",formFieldHeight:(0,ef.u)(4.5),formFieldRadius:(0,ef.u)(2.25),formFieldHorizontalPadding:(0,ef.u)(2),formFieldBorderShadow:"\n inset 0 0 0 var(--lns-formFieldBorderWidth) var(--lns-color-formFieldBorder)\n ",formFieldBorderShadowFocus:"\n inset 0 0 0 var(--lns-formFieldBorderWidthFocus) var(--lns-color-blurple),\n 0 0 0 var(--lns-formFieldBorderWidthFocus) var(--lns-color-focusRing)\n "}),e_=getCssVarsFromObject("color",(f={},Object.keys(Object.assign(Object.assign({},ed.Ht),ed.et)).forEach(function(t){f[t]="hsla(".concat(ed.oZ[t].h,",").concat(ed.oZ[t].s,"%,").concat(ed.oZ[t].l,"%,").concat(ed.oZ[t].a,")")}),f)),eS=getCssVarsFromObject(void 0,Object.assign(Object.assign({},(p=function(t,e){return Object.keys(t).reduce(function(n,r){var o=t[r];return n["".concat(e,"-color-").concat(r)]="hsla(".concat(o.h,",").concat(o.s,"%,").concat(o.l,"%,").concat(o.a,")"),n},{})})(ed.lB.light,"themeLight")),p(ed.lB.dark,"themeDark")));/*! * css-vars-ponyfill * v2.4.8 * https://jhildenbiddle.github.io/css-vars-ponyfill/ * (c) 2018-2022 John Hildenbiddle * MIT license */function _extends(){return(_extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e * MIT license */function getUrls(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={mimeType:e.mimeType||null,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},r=Array.isArray(t)?t:[t],o=Array.apply(null,Array(r.length)).map(function(t){return null});function isValidCss(t){var e="string"==typeof t,n=e&&"<"===t.trim().charAt(0);return e&&!n}function onError(t,e){n.onError(t,r[e],e)}function onSuccess(t,e){var a=n.onSuccess(t,r[e],e);t=!1===a?"":a||t,o[e]=t,-1===o.indexOf(null)&&n.onComplete(o)}var a=document.createElement("a");r.forEach(function(t,e){if(a.setAttribute("href",t),a.href=String(a.href),document.all&&!window.atob&&a.host.split(":")[0]!==location.host.split(":")[0]){if(a.protocol===location.protocol){var r=new XDomainRequest;r.open("GET",t),r.timeout=0,r.onprogress=Function.prototype,r.ontimeout=Function.prototype,r.onload=function(){var t=r.responseText;isValidCss(t)?onSuccess(t,e):onError(r,e)},r.onerror=function(t){onError(r,e)},setTimeout(function(){r.send()},0)}else console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(t,")")),onError(null,e)}else{var o=new XMLHttpRequest;o.open("GET",t),n.mimeType&&o.overrideMimeType&&o.overrideMimeType(n.mimeType),n.onBeforeSend(o,t,e),o.onreadystatechange=function(){if(4===o.readyState){var t=o.responseText;o.status<400&&isValidCss(t)?onSuccess(t,e):0===o.status&&isValidCss(t)?onSuccess(t,e):onError(o,e)}},o.send()}})}/** * Gets CSS data from