1"use strict";(self.webpackChunkPylot_Frontend=self.webpackChunkPylot_Frontend||[]).push([[5078],{5078:(t,e,n)=>{n.d(e,{L:()=>Ya});var r={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},i=console,o={};Object.keys(r).forEach((function(t){o[t]=i[t]}));var a="Datadog Browser SDK:",s={debug:o.debug.bind(i,a),log:o.log.bind(i,a),info:o.info.bind(i,a),warn:o.warn.bind(i,a),error:o.error.bind(i,a)},u="https://docs.datadoghq.com",c="".concat(u,"/real_user_monitoring/browser/troubleshooting"),l="More details:";function d(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return t.apply(void 0,n)}catch(t){s.error(e,t)}}}var f,p=!1;function v(t){p=t}function h(t){return function(){return m(t,this,arguments)}}function m(t,e,n){try{return t.apply(e,n)}catch(t){if(g(t),f)try{f(t)}catch(t){g(t)}}}function g(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];p&&s.error.apply(s,function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}(["[MONITOR]"],t,!1))}function y(t,e){return-1!==t.indexOf(e)}function _(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach((function(t){return e.push(t)}));else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function b(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n))return r}}function w(t){return Object.keys(t).map((function(e){return t[e]}))}function S(t){return Object.keys(t).map((function(e){return[e,t[e]]}))}function k(t,e){return t.slice(0,e.length)===e}function C(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.forEach((function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function x(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var t=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof t&&(t="object"==typeof self?self:"object"==typeof window?window:{}),t}var T=/[^\u0000-\u007F]/;function E(t){return T.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function A(t,e){var n,r=x();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}function R(t,e){return A(x(),"setTimeout")(h(t),e)}function I(t){A(x(),"clearTimeout")(t)}function N(t,e){return A(x(),"setInterval")(h(t),e)}function O(t){A(x(),"clearInterval")(t)}function M(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],u=0;u<arguments.length;u++)n[u]=arguments[u];s?r=n:(o?t.apply(void 0,n):r=n,s=!0,i=R((function(){a&&r&&t.apply(void 0,r),s=!1,r=void 0}),e))},cancel:function(){I(i),s=!1,r=void 0}}}function L(){}function D(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);var r=P(Object.prototype),i=P(Array.prototype),o=P(Object.getPrototypeOf(t)),a=P(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function P(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):L}function U(t){return C({},t)}function z(t,e){return Object.keys(t).some((function(n){return t[n]===e}))}function B(t){return 0===Object.keys(t).length}function V(t){var e=0,n=M((function(n){e=E(D(n)),t()}),200),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){B(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}function F(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function q(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],o=0;o<e.length;++o)i[o]=q(i[o],e[o],n);return i}var a="object"===F(t)?t:{};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=q(a[s],e[s],n));return a}}function j(t){return q(void 0,t)}function H(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];null!=o&&(t=q(t,o))}return t}function G(t,e){void 0===e&&(e=225280);var n=P(Object.prototype),r=P(Array.prototype),i=[],o=new WeakMap,a=W(t,"$",void 0,i,o),s=JSON.stringify(a),u=s?s.length:0;if(!(u>e)){for(;i.length>0&&u<e;){var c=i.shift(),l=0;if(Array.isArray(c.source))for(var d=0;d<c.source.length;d++){if(u+=void 0!==(f=W(c.source[d],c.path,d,i,o))?JSON.stringify(f).length:4,u+=l,l=1,u>e){K(e,"truncated",t);break}c.target[d]=f}else for(var d in c.source)if(Object.prototype.hasOwnProperty.call(c.source,d)){var f;if(void 0!==(f=W(c.source[d],c.path,d,i,o))&&(u+=JSON.stringify(f).length+l+d.length+3,l=1),u>e){K(e,"truncated",t);break}c.target[d]=f}}return n(),r(),a}K(e,"discarded",t)}function W(t,e,n,r,i){var o,a=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(t);if(!a||"object"!=typeof a)return"bigint"==typeof(o=a)?"[BigInt] ".concat(o.toString()):"function"==typeof o?"[Function] ".concat(o.name||"unknown"):"symbol"==typeof o?"[Symbol] ".concat(o.description||o.toString()):o;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;var u=t;if(i.has(u))return"[Reference seen at ".concat(i.get(u),"]");var c=void 0!==n?"".concat(e,".").concat(n):e,l=Array.isArray(a)?[]:{};return i.set(u,c),r.push({source:a,target:l,path:c}),l}function K(t,e,n){s.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}var J=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){e.observers=e.observers.filter((function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}}
1,t.prototype.notify=function(t){this.observers.forEach((function(e){return e(t)}))},t}();function Y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new J((function(e){var n=t.map((function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return n.forEach((function(t){return t.unsubscribe()}))}}))}function X(t){var e={},n=new J,r={getContext:function(){return j(e)},setContext:function(i){"object"===F(i)?(e=G(i),null==t||t.updateCustomerData(e)):r.clearContext(),n.notify()},setContextProperty:function(r,i){e[r]=G(i),null==t||t.updateCustomerData(e),n.notify()},removeContextProperty:function(r){delete e[r],null==t||t.updateCustomerData(e),n.notify()},clearContext:function(){e={},null==t||t.resetCustomerData(),n.notify()},changeObservable:n};return r}var $={GRANTED:"granted",NOT_GRANTED:"not-granted"};function Z(t,e,n,r,i){return Q(t,e,[n],r,i)}function Q(t,e,n,r,i){var o=void 0===i?{}:i,a=o.once,s=o.capture,u=o.passive,c=h((function(e){(e.isTrusted||e.__ddIsTrusted||t.allowUntrustedEvents)&&(a&&p(),r(e))})),l=u?{capture:s,passive:u}:s,d=window.EventTarget&&e instanceof EventTarget?window.EventTarget.prototype:e,f=A(d,"addEventListener");function p(){var t=A(d,"removeEventListener");n.forEach((function(n){return t.call(e,n,c,l)}))}return n.forEach((function(t){return f.call(e,t,c,l)})),{stop:p}}var tt=[];function et(t,e,n,r){var i=function(t,e){return"".concat("_dd_c","_").concat(t,"_").concat(e)}(n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}tt.push(Z(t,window,"storage",(function(t){var n=t.key;i===n&&e.setContext(o())}))),e.changeObservable.subscribe((function(){localStorage.setItem(i,JSON.stringify(e.getContext()))})),e.setContext(H(o(),e.getContext()))}function nt(){var t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write:function(n,r){var i=E(n);e+=i,t+=n,r&&r(i)},finish:function(t){t(this.finishSync())},finishSync:function(){var n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:function(t){return t.length}}}var rt="?";function it(t){var e=[],n=pt(t,"stack"),r=String(t);return n&&k(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((function(t){var n=function(t){var e=st.exec(t);if(e){var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=ut.exec(e[2]);return r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]),{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||rt,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}}(t)||function(t){var e=ct.exec(t);if(e)return{args:[],column:e[3]?+e[3]:void 0,func:rt,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=lt.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||rt,line:+e[3],url:e[2]}}(t)||function(t){var e=dt.exec(t);if(e){var n=e[3]&&e[3].indexOf(" > eval")>-1,r=ft.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]||rt,line:e[4]?+e[4]:void 0,url:e[3]}}}(t);n&&(!n.func&&n.line&&(n.func=rt),e.push(n))})),{message:pt(t,"message"),name:pt(t,"name"),stack:e}}var ot="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",at="(?::(\\d+))",st=new RegExp("^\\s*at (.*?) ?\\(".concat(ot).concat(at,"?").concat(at,"?\\)?\\s*$"),"i"),ut=new RegExp("\\((\\S*)".concat(at).concat(at,"\\)")),ct=new RegExp("^\\s*at ?".concat(ot).concat(at,"?").concat(at,"??\\s*$"),"i"),lt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,dt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,ft=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function pt(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var vt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function ht(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return m((function(){var n=it(e);n.stack=n.stack.slice(2),t=mt(n)})),t}function mt(t){var e=gt(t);return t.stack.forEach((function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",i=t.line?":".concat(t.line):"",o=t.line&&t.column?":".concat(t.column):"";e+="\n at ".concat(n).concat(r," @ ").concat(t.url).concat(i).c
1oncat(o)})),e}function gt(t){return"".concat(t.name||"Error",": ").concat(t.message)}var yt,_t="No stack, consider using an instance of Error";function bt(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=St(n),c=function(t,e,n,r){return(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:e?"Empty message":"".concat(n," ").concat(D(G(r)))}(e,u,o,n),l=function(t,e){return void 0!==e&&(!!t||e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url))}(u,e)?mt(e):_t,d=u?kt(n,a):void 0;return{startClocks:i,source:a,handling:s,handlingStack:r,originalError:n,type:e?e.name:void 0,message:c,stack:l,causes:d,fingerprint:wt(n)}}function wt(t){return St(t)&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function St(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}function kt(t,e){for(var n=t,r=[];St(null==n?void 0:n.cause)&&r.length<10;){var i=it(n.cause);r.push({message:n.cause.message,source:e,type:null==i?void 0:i.name,stack:i&&mt(i)}),n=n.cause}return r.length?r:void 0}!function(t){t.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",t.REMOTE_CONFIGURATION="remote_configuration",t.LONG_ANIMATION_FRAME="long_animation_frame",t.ANONYMOUS_USER_TRACKING="anonymous_user_tracking",t.ACTION_NAME_MASKING="action_name_masking",t.CONSISTENT_TRACE_SAMPLING="consistent_trace_sampling",t.DELAY_VIEWPORT_COLLECTION="delay_viewport_collection"}(yt||(yt={}));var Ct=new Set;function xt(t){return Ct.has(t)}var Tt="datad0g.com",Et="datadoghq.com",At=["ddsource","ddtags"];function Rt(t){return 0!==t&&100*Math.random()<=t}function It(t,e){return+t.toFixed(e)}function Nt(t){return"number"==typeof t}var Ot,Mt=1e3,Lt=6e4,Dt=31536e6;function Pt(t){return{relative:t,timeStamp:(e=t,n=zt()-performance.now(),n>Wt()?Math.round(Ht(n,e)):function(t){return Math.round(Ht(Wt(),t))}(e))};var e,n}function Ut(t){return Nt(t)?It(1e6*t,0):t}function zt(){return(new Date).getTime()}function Bt(){return zt()}function Vt(){return performance.now()}function Ft(){return{relative:Vt(),timeStamp:Bt()}}function qt(){return{relative:0,timeStamp:Wt()}}function jt(t,e){return e-t}function Ht(t,e){return t+e}function Gt(t){return t-Wt()}function Wt(){return void 0===Ot&&(Ot=performance.timing.navigationStart),Ot}function Kt(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}function Jt(){var t,e=window.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:null===(t=e.connection)||void 0===t?void 0:t.effectiveType}}function Yt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function Xt(){var t=[];return{add:function(e){t.push(e)>500&&t.splice(0,1)},remove:function(e){Yt(t,e)},drain:function(e){t.forEach((function(t){return t(e)})),t.length=0}}}var $t="log",Zt="configuration",Qt="usage",te=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],ee=["ddog-gov.com"],ne=Xt(),re=function(t){ne.add((function(){return re(t)}))};function ie(t,e){g(r.debug,t,e),re(C({type:$t,message:t,status:"debug"},e))}function oe(t,e){re(C({type:$t,status:"error"},function(t){if(St(t)){var e=it(t);return{error:{kind:e.name,stack:mt(se(e))},message:e.message}}return{error:{stack:_t},message:"".concat("Uncaught"," ").concat(D(t))}}(t),e))}function ae(t){re({type:Qt,usage:t})}function se(t){return t.stack=t.stack.filter((function(t){return!t.url||te.some((function(e){return k(t.url,e)}))}
1)),t}function ue(t){var e=C({},t);return["id","name","email"].forEach((function(t){t in e&&(e[t]=String(e[t]))})),e}function ce(t,e){e.silentMultipleInit||s.error("".concat(t," is already initialized."))}function le(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,le)}var de=/([\w-]+)\s*=\s*([^;]+)/g;function fe(t,e){for(de.lastIndex=0;;){var n=de.exec(t);if(!n)break;if(n[1]===e)return n[2]}}function pe(t,e,n){void 0===n&&(n="");var r=t.charCodeAt(e-1),i=r>=55296&&r<=56319?e+1:e;return t.length<=i?t:"".concat(t.slice(0,i)).concat(n)}function ve(t,e,n){var r=t.vitalsByName,i=t.vitalsByReference;void 0===n&&(n={});var o={name:e,startClocks:Ft(),context:n.context,description:n.description},a={__dd_vital_reference:!0};return r.set(e,o),i.set(a,o),a}function he(t,e,n,r){var i=e.vitalsByName,o=e.vitalsByReference;void 0===r&&(r={});var a="string"==typeof n?i.get(n):o.get(n);a&&(t(function(t,e,n,r){var i;return{name:t.name,type:"duration",startClocks:e,duration:jt(e.timeStamp,r.timeStamp),context:H(t.context,n.context),description:null!==(i=n.description)&&void 0!==i?i:t.description}}(a,a.startClocks,r,Ft())),"string"==typeof n?i.delete(n):o.delete(n))}function me(){var t=x().DatadogEventBridge;if(t)return{getCapabilities:function(){var e;return JSON.parse((null===(e=t.getCapabilities)||void 0===e?void 0:e.call(t))||"[]")},getPrivacyLevel:function(){var e;return null===(e=t.getPrivacyLevel)||void 0===e?void 0:e.call(t)},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n,r){var i=r?{id:r}:void 0;t.send(JSON.stringify({eventType:e,event:n,view:i}))}}}function ge(t){var e=me();return!!e&&y(e.getCapabilities(),t)}function ye(t){var e;void 0===t&&(t=null===(e=x().location)||void 0===e?void 0:e.hostname);var n=me();return!!n&&n.getAllowedWebViewHosts().some((function(e){return t===e||(n=t,r=".".concat(e),n.slice(-r.length)===r);var n,r}))}function _e(t,e,n,r){var i=(void 0===r?{}:r).computeHandlingStack,o=t[e];if("function"!=typeof o){if(!(e in t)||!k(e,"on"))return{stop:L};o=L}var a=!1,s=function(){if(a)return o.apply(this,arguments);var t,e=_(arguments);m(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:i?ht():void 0}]);var r=o.apply(this,e);return t&&m(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=o)}}}function be(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:L};var i=L,o=function(t,e){R((function(){o!==i&&n(t,e)}),0)},a=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){var n;(null===(n=Object.getOwnPropertyDescriptor(t,e))||void 0===n?void 0:n.set)===a&&Object.defineProperty(t,e,r),o=i}}}function we(t){return Se(t,location.href).href}function Se(t,e){var n=function(){if(void 0===ke)try{var t=new Ae("http://test/path");ke="http://test/path"===t.href}catch(t){ke=!1}return ke?Ae:void 0}();if(n)try{return void 0!==e?new n(t,e):new n(t)}catch(n){throw new Error("Failed to construct URL: ".concat(String(n)," ").concat(D({url:t,base:e})))}if(void 0===e&&!/:/.test(t))throw new Error("Invalid URL: '".concat(t,"'"));var r=document,i=r.createElement("a");if(void 0!==e){var o=(r=document.implementation.createHTMLDocument("")).createElement("base");o.href=e,r.head.appendChild(o),r.body.appendChild(i)}return i.href=t,i}var ke,Ce,xe,Te,Ee,Ae=URL;function Re(){return Ce||(Ce=new J((function(t){if(window.fetch){var e=_e(window,"fetch",(function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,i=t.handlingStack,o=n[0],a=n[1],s=a&&a.method;void 0===s&&o instanceof Request&&(s=o.method);var u=void 0!==s?String(s).toUpperCase():"GET",c=o instanceof Request?o.url:we(String(o)),l={state:"start",init:a,input:o,method:u,startClocks:Ft(),url:c,handlingStack:i};e.notify(l),n[0]=l.input,n[1]=l.init,r((function(t){return function(t,e,n){var r=n;function i(e){r.state="resolve",C(r,e),t.notify(r)}e.then(h((function(t){i({response:t,responseType:t.type,status:t.status,isAborted:!1})})),h((function(t){var e,n;i({status:0,isAborted:(null===(n=null===(e=r.init)||void 0===e?void 0:e.signal)||void 0===n?void 0:n.aborted)||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})})))}(e,t,l)}))}(e,t)}),{computeHandlingStack:!0}).stop;return e}}
1))),Ce}function Ie(t,e,n,r){void 0===n&&(n=0);var i=new Date;i.setTime(i.getTime()+n);var o="expires=".concat(i.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",u=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie="".concat(t,"=").concat(e,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(u).concat(c)}function Ne(t){return fe(document.cookie,t)}function Oe(t){return xe||(xe=function(t){var e=new Map;for(de.lastIndex=0;;){var n=de.exec(t);if(!n)break;e.set(n[1],n[2])}return e}(document.cookie)),xe.get(t)}function Me(t,e){Ie(t,"",0,e)}function Le(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||Oe("datadog-synthetics-injects-rum"))}function De(){return null!=Ee?Ee:Ee=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;return t.chrome||/HeadlessChrome/.test(n)?1:0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n)?2:t.document.documentMode?0:3}()}var Pe="_dd_s",Ue=144e5,ze=9e5,Be=Dt,Ve="cookie",Fe="local-storage",qe=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function je(t){var e={isExpired:"1"};return xt(yt.ANONYMOUS_USER_TRACKING)&&((null==t?void 0:t.anonymousId)?e.anonymousId=null==t?void 0:t.anonymousId:e.anonymousId=Math.floor(Math.random()*Math.pow(2,53)).toString(36)),e}function He(t){return B(t)}function Ge(t){return!He(t)}function We(t){return void 0!==t.isExpired||!((void 0===(e=t).created||zt()-Number(e.created)<Ue)&&(void 0===e.expire||zt()<Number(e.expire)));var e}function Ke(t){t.expire=String(zt()+ze)}function Je(t){return S(t).map((function(t){var e=t[0],n=t[1];return"anonymousId"===e?"aid=".concat(n):"".concat(e,"=").concat(n)})).join("&")}function Ye(t){var e={};return function(t){return!!t&&(-1!==t.indexOf("&")||qe.test(t))}(t)&&t.split("&").forEach((function(t){var n=qe.exec(t);if(null!==n){var r=n[1],i=n[2];"aid"===r?e.anonymousId=i:e[r]=i}})),e}function Xe(t){var e=function(t){var e={};return e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===Te){for(var t="dd_site_test_".concat(le()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Ne(t);)n="".concat(e.pop(),".").concat(n),Ie(t,"test",Mt,{domain:n});Me(t,{domain:n}),Te=n}return Te}()),e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(le()),n="test";Ie(e,n,Lt,t);var r=Ne(e)===n;return Me(e,t),r}catch(t){return s.error(t),!1}}(e)?{type:Ve,cookieOptions:e}:void 0}function $e(){return Ye(Ne(Pe))}function Ze(){try{var t=le(),e="".concat("_dd_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:Fe}:void 0}catch(t){return}}function Qe(t){localStorage.setItem(Pe,Je(t))}function tn(){return Ye(localStorage.getItem(Pe))}function en(t){Qe(je(t))}var nn,rn=[];function on(t,e,n){var r;void 0===n&&(n=0);var i=e.isLockEnabled,o=e.persistSession,a=e.expireSession,s=function(t){return o(C({},t,{lock:c}))},u=function(){var t=e.retrieveSession(),n=t.lock;return t.lock&&delete t.lock,{session:t,lock:n}};if(nn||(nn=t),t===nn)if(i&&n>=100)sn(e);else{var c,l=u();if(i){if(l.lock)return void an(t,e,n);if(c=le(),s(l.session),(l=u()).lock!==c)return void an(t,e,n)}var d=t.process(l.session);if(i&&(l=u()).lock!==c)an(t,e,n);else{if(d&&(We(d)?a(d):(Ke(d),i?s(d):o(d))),i&&(!d||!We(d))){if((l=u()).lock!==c)return void an(t,e,n);o(l.session),d=l.session}null===(r=t.after)||void 0===r||r.call(t,d||l.session),sn(e)}}else rn.push(t)}function an(t,e,n){R((function(){on(t,e,n+1)}),10)}function sn(t){nn=void 0;var e=rn.shift();e&&on(e,t)}var un=Mt;function cn(t){switch(t.sessionPersistence){case Ve:return Xe(t);case Fe:return Ze();case void 0:var e=Xe(t);return!e&&t.allowFallbackToLocalStorage&&(e=Ze()),e;default:s.error("Invalid session persistence '".concat(String(t.sessionPersistence),"'"))}}function ln(t,e,n){var r,i,o,a,s=new J,u=new J,c=new J,l=t.type===Ve?(i=t.cookieOptions,function(t){if(!Oe(Pe)){var e=Oe("_dd"),n=Oe("_dd_r"),r=Oe("_dd_l"),i={};e&&(i.id=e),r&&/^[01]$/.test(r)&&(i.logs=r),n&&/^[012]$/.test(n)&&(i.rum=n),Ge(i)&&(Ke(i),t.persistSession(i))}}(a={isLockEnabled:1===De(),persistSession:(o=i,function(t){Ie(Pe,Je(t),ze,o)}),retrieveSession:$e,expireSession:function(t){return function(t,e){var n=je(e);Ie(Pe,Je(n),xt(yt.ANONYMOUS_USER_TRACKING)?Be:Ue,t)}(i,t)}}),a):{isLockEnabled:!1,persistSession:Qe,retrieveSession:tn,expireSession:en},d=l.expireSession,f=N((function(){on({process:function(t){return We(t)?je(t):void 0},after:m},l)}),un);g();var p=M((function(){on({process:function(t){if(!He(t)){var r=m(t);return function(t){if(He(t))return!1;var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,delete t.isExpired,o&&!t.id&&(t.id=le(),t.created=String(zt()))}(r),r}},after:function(t){Ge(t)&&!y()&&function(t){r=t,s.notify()}(t),r=t}},l)}),un),v=p.throttled,h=p.cancel;function m(t){return We(t)&&(t=je(t)),y()&&(function(t){return r.id!==t.id||r[e]!==t[e]}(t)?(r=je(r),u.notify()):(c.notify({previousState:r,newState:t}),r=t)),t}function g(){on({process:function(t){if(He(t))return je(t)},after:function(t){r=t}},l)}function y(){return void 0!==r[e]}return{expandOrRenewSession:v,expandSession:function(){on({process:function(t){return y()?m(t):void 0}},l)},getSession:function(){return r}
1,renewObservable:s,expireObservable:u,sessionStateUpdateObservable:c,restartSession:g,expire:function(){h(),d(r),m(je(r))},stop:function(){O(f)},updateSessionState:function(t){on({process:function(e){return C({},e,t)},after:m},l)}}}function dn(t,e,n){var r=function(t,e){var n="/api/v2/".concat(e),r=t.proxy;if("string"==typeof r){var i=we(r);return function(t){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(t)))}}if("function"==typeof r)return function(t){return r({path:n,parameters:t})};var o=function(t,e){var n=e.site,r=void 0===n?Et:n,i=e.internalAnalyticsSubdomain;if("logs"===t&&e.usePciIntake&&r===Et)return"pci.browser-intake-datadoghq.com";if(i&&r===Et)return"".concat(i,".").concat(Et);if("dd0g-gov.com"===r)return"http-intake.logs.".concat(r);var o=r.split("."),a=o.pop();return"browser-intake-".concat(o.join("-"),".").concat(a)}(e,t);return function(t){return"https://".concat(o).concat(n,"?").concat(t)}}(t,e);return{build:function(i,o){var a=function(t,e,n,r,i){var o=t.clientToken,a=t.internalAnalyticsSubdomain,s=i.retry,u=i.encoding,c=["sdk_version:".concat("5.35.1"),"api:".concat(r)].concat(n);s&&c.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var l=["ddsource=browser","ddtags=".concat(encodeURIComponent(c.join(","))),"dd-api-key=".concat(o),"dd-evp-origin-version=".concat(encodeURIComponent("5.35.1")),"dd-evp-origin=browser","dd-request-id=".concat(le())];return u&&l.push("dd-evp-encoding=".concat(u)),"rum"===e&&l.push("batch_time=".concat(Bt())),a&&l.reverse(),l.join("&")}(t,e,n,i,o);return r(a)},urlPrefix:r(""),trackType:e}}function fn(t,e){var n=200-t.length-1;(e.length>n||function(t){return!!function(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch(t){return!1}}()&&new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(t)}(e))&&s.warn("".concat(t," value doesn't meet tag requirements and will be sanitized. ").concat(l," ").concat(u,"/getting_started/tagging/#defining-tags"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}var pn,vn={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},hn={ALL:"all",SAMPLED:"sampled"};function mn(t,e){return null==t||"string"==typeof t||(s.error("".concat(e," must be defined as a string")),!1)}function gn(t,e){return!!(void 0===t||(n=t,Nt(n)&&n>=0&&n<=100))||(s.error("".concat(e," Sample Rate should be a number between 0 and 100")),!1);var n}function yn(t){var e,n,r,i,o;if(t&&t.clientToken){if((!(a=t.site)||"string"!=typeof a||/(datadog|ddog|datad0g|dd0g)/.test(a)||(s.error("Site should be a valid Datadog site. ".concat(l," ").concat(u,"/getting_started/site/.")),0))&&gn(t.sessionSampleRate,"Session")&&gn(t.telemetrySampleRate,"Telemetry")&&gn(t.telemetryConfigurationSampleRate,"Telemetry Configuration")&&gn(t.telemetryUsageSampleRate,"Telemetry Usage")&&mn(t.version,"Version")&&mn(t.env,"Env")&&mn(t.service,"Service")){var a;if(void 0===t.trackingConsent||z($,t.trackingConsent))return C({beforeSend:t.beforeSend&&d(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:cn(t),sessionSampleRate:null!==(e=t.sessionSampleRate)&&void 0!==e?e:100,telemetrySampleRate:null!==(n=t.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=t.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(i=t.telemetryUsageSampleRate)&&void 0!==i?i:5,service:t.service||void 0,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:null!==(o=t.trackingConsent)&&void 0!==o?o:$.GRANTED,storeContextsAcrossPages:!!t.storeContextsAcrossPages,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},function(t){var e=t.site||Et,n=function(t){var e=t.env,n=t.service,r=t.version,i=t.datacenter,o=[];return e&&o.push(fn("env",e)),n&&o.push(fn("service",n)),r&&o.push(fn("version",r)),i&&o.push(fn("datacenter",i)),o}(t),r=function(t,e){return{logsEndpointBuilder:dn(t,"logs",e),rumEndpointBuilder:dn(t,"rum",e),sessionReplayEndpointBuilder:dn(t,"replay",e)}}(t,n),i=function(t,e){if(t.replica){var n=C({},t,{site:Et,clientToken:t.replica.clientToken}),r={logsEndpointBuilder:dn(n,"logs",e),rumEndpointBuilder:dn(n,"rum",e)};return C({applicationId:t.replica.applicationId},r)}}
1(t,n);return C({replica:i,site:e},r)}(t));s.error('Tracking Consent should be either "granted" or "not-granted"')}}else s.error("Client Token is not configured, we will not send any data.")}function _n(t){var e=F(t);return"string"===e||"function"===e||t instanceof RegExp}function bn(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?k(e,t):t===e}catch(t){s.error(t)}return!1}))}function wn(){return window.crypto||window.msCrypto}function Sn(){return kn(63)}function kn(t){return pn||(pn=xt(yt.CONSISTENT_TRACE_SAMPLING)&&function(){try{return crypto.getRandomValues(new BigUint64Array(1)),!0}catch(t){return!1}}()?Cn:xn),pn(t)}function Cn(t){var e=crypto.getRandomValues(new BigUint64Array(1))[0];return 63===t&&(e>>=BigInt("1")),e}function xn(t){var e=wn().getRandomValues(new Uint32Array(2));return 63===t&&(e[e.length-1]>>>=1),{toString:function(t){void 0===t&&(t=10);var n=e[1],r=e[0],i="";do{var o=n%t*4294967296+r;n=Math.floor(n/t),r=Math.floor(o/t),i=(o%t).toString(t)+i}while(n||r);return i}}}function Tn(t){var e=t.toString(16);return Array(17-e.length).join("0")+e}function En(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function An(t,e,n,r){if(void 0!==wn()&&n.findTrackedSession()){var i=b(t.allowedTracingUrls,(function(t){return bn([t.match],e.url,!0)}));if(i){var o=kn(64);e.traceSampled=function(t,e){if(100===e)return!0;if(0===e)return!1;if("bigint"!=typeof t)return Rt(e);var n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000");return Number(t*n%r)<=e/100*Number(r)}(o,t.traceSampleRate),(e.traceSampled||t.traceContextInjection===hn.ALL)&&(e.traceId=o,e.spanId=Sn(),r(function(t,e,n,r){var i={};return r.forEach((function(r){switch(r){case"datadog":C(i,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":t.toString()});break;case"tracecontext":C(i,{traceparent:"00-0000000000000000".concat(Tn(t),"-").concat(Tn(e),"-0").concat(n?"1":"0")});break;case"b3":C(i,{b3:"".concat(Tn(t),"-").concat(Tn(e),"-").concat(n?"1":"0")});break;case"b3multi":C(i,{"X-B3-TraceId":Tn(t),"X-B3-SpanId":Tn(e),"X-B3-Sampled":n?"1":"0"})}})),i}(e.traceId,e.spanId,e.traceSampled,i.propagatorTypes)))}}}var Rn=["tracecontext","datadog"];function In(t){var e=new Set;return Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach((function(t){_n(t)?Rn.forEach((function(t){return e.add(t)})):"object"===F(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach((function(t){return e.add(t)}))})),_(e)}function Nn(){s.error("Error fetching the remote configuration.")}function On(t,e,n,r,i){var o,a,u,c,l=t.ignoreInitIfSyntheticsWillInjectRum,d=t.startDeflateWorker,f=Xt(),p=n.observable.subscribe(v);function v(){if(u&&c&&n.isGranted()){var t;if(p.unsubscribe(),c.trackViewsManually){if(!o)return;f.remove(o.callback),t=o.options}var e=i(c,a,t);f.drain(e)}}function h(t){var e=ye();if(e&&(t=function(t){var e,n;return C({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(e=t.defaultPrivacyLevel)&&void 0!==e?e:null===(n=me())||void 0===n?void 0:n.getPrivacyLevel()})}(t)),u=t,function(t){re({type:Zt,configuration:t})}(function(t){var e,n,r={session_sample_rate:(n=t).sessionSampleRate,telemetry_sample_rate:n.telemetrySampleRate,telemetry_configuration_sample_rate:n.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:n.telemetryUsageSampleRate,use_before_send:!!n.beforeSend,use_cross_site_session_cookie:n.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:n.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:n.useSecureSessionCookie,use_proxy:!!n.proxy,silent_multiple_init:n.silentMultipleInit,track_session_across_subdomains:n.trackSessionAcrossSubdomains,session_persistence:n.sessionPersistence,allow_fallback_to_local_storage:!!n.allowFallbackToLocalStorage,store_contexts_across_pages:!!n.storeContextsAcrossPages,allow_untrusted_events:!!n.allowUntrustedEvents,tracking_consent:n.trackingConsent};return C({session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,trace_context_injection:t.traceContextInjection,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:In(t),default_privacy_level:t.defaultPrivacyLevel,enable_privacy_for_action_name:t.enablePrivacyF
1orActionName,use_excluded_activity_urls:Array.isArray(t.excludedActivityUrls)&&t.excludedActivityUrls.length>0,use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks,plugins:null===(e=t.plugins)||void 0===e?void 0:e.map((function(t){var e;return C({name:t.name},null===(e=t.getConfigurationTelemetry)||void 0===e?void 0:e.call(t))}))},r)}(t)),c)ce("DD_RUM",t);else{var r=function(t){var e,n,r;if(t.applicationId){if(gn(t.sessionReplaySampleRate,"Session Replay")&&gn(t.traceSampleRate,"Trace"))if(void 0===t.excludedActivityUrls||Array.isArray(t.excludedActivityUrls)){var i=function(t){if(void 0===t.allowedTracingUrls)return[];if(Array.isArray(t.allowedTracingUrls)){if(0===t.allowedTracingUrls.length||void 0!==t.service){var e=[];return t.allowedTracingUrls.forEach((function(t){var n;_n(t)?e.push({match:t,propagatorTypes:Rn}):"object"===F(n=t)&&_n(n.match)&&Array.isArray(n.propagatorTypes)?e.push(t):s.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)})),e}s.error("Service needs to be configured when tracing is enabled")}else s.error("Allowed Tracing URLs should be an array")}(t);if(i){var o=yn(t);if(o){var a=null!==(e=t.sessionReplaySampleRate)&&void 0!==e?e:0;return C({applicationId:t.applicationId,version:t.version||void 0,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:a,startSessionReplayRecordingManually:void 0!==t.startSessionReplayRecordingManually?!!t.startSessionReplayRecordingManually:0===a,traceSampleRate:null!==(n=t.traceSampleRate)&&void 0!==n?n:100,rulePsr:Nt(t.traceSampleRate)?t.traceSampleRate/100:void 0,allowedTracingUrls:i,excludedActivityUrls:null!==(r=t.excludedActivityUrls)&&void 0!==r?r:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:z(vn,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:vn.MASK,enablePrivacyForActionName:!!t.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:z(hn,t.traceContextInjection)?t.traceContextInjection:hn.ALL,plugins:t.plugins||[]},o)}}}else s.error("Excluded Activity Urls should be an array")}else s.error("Application ID is not configured, no RUM data will be collected.")}(t);r&&(e||r.sessionStoreStrategyType?r.compressIntakeRequests&&!e&&d&&!(a=d(r,"Datadog RUM",L))||(c=r,Re().subscribe(L),n.tryToInit(r.trackingConsent),v()):s.warn("No storage available for session. We will not send any data."))}}var m=function(t){f.add((function(e){return e.addDurationVital(t)}))};return{init:function(t,e){var n;t?(n=t.enableExperimentalFeatures,Array.isArray(n)&&n.filter((function(t){return z(yt,t)})).forEach((function(t){Ct.add(t)})),u=t,l&&Le()||(function(t,e,n){if(t)for(var r=0,i=t;r<i.length;r++){var o=i[r].onInit;o&&o(n)}}(t.plugins,0,{initConfiguration:t,publicApi:e}),t.remoteConfigurationId&&xt(yt.REMOTE_CONFIGURATION)?function(t,e){!function(t,e){var n=new XMLHttpRequest;Z(t,n,"load",(function(){200===n.status?e(JSON.parse(n.responseText)):Nn()})),Z(t,n,"error",(function(){Nn()})),n.open("GET","".concat("https://d3uc069fcn7uxw.cloudfront.net/configuration","/").concat(encodeURIComponent(t.remoteConfigurationId),".json")),n.send()}(t,(function(n){e(function(t,e){return C({},t,e)}(t,n))}))}(t,h):h(t))):s.error("Missing configuration")},get initConfiguration(){return u},getInternalContext:L,stopSession:L,addTiming:function(t,e){void 0===e&&(e=Bt()),f.add((function(n){return n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=Ft());var n=function(n){n.startView(t,e)};f.add(n),o||(o={options:t,callback:n},v())},setViewName:function(t){f.add((function(e){return e.setViewName(t)}))},setViewContext:function(t){f.add((function(e){return e.setViewContext(t)}))},setViewContextProperty:function(t,e){f.add((function(n){return n.setVie
1wContextProperty(t,e)}))},addAction:function(t,n){void 0===n&&(n=e()),f.add((function(e){return e.addAction(t,n)}))},addError:function(t,n){void 0===n&&(n=e()),f.add((function(e){return e.addError(t,n)}))},addFeatureFlagEvaluation:function(t,e){f.add((function(n){return n.addFeatureFlagEvaluation(t,e)}))},startDurationVital:function(t,e){return ve(r,t,e)},stopDurationVital:function(t,e){he(m,r,t,e)},addDurationVital:m}}var Mn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Ln(t){return y(w(Mn),t)}function Dn(){var t,e=window;if(e.Zone&&(t=A(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=A(new e.MutationObserver(L),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}var Pn="agent";function Un(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&R((function(){r=0}),Lt),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:"Reached max number of ".concat(t,"s by minute: ").concat(e),source:Pn,startClocks:Ft()})}finally{i=!1}}return!0}}}function zn(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!Bn(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function Bn(t){return"object"===F(t)}function Vn(t,e){return Bn(t)&&Object.prototype.hasOwnProperty.call(t,e)}var Fn,qn={"view.name":"string","view.url":"string","view.referrer":"string"},jn={context:"object"},Hn={service:"string",version:"string"};function Gn(t,e,n,r,i,o,a,u,c,l){var d,f;(d={}).view=C({},jn,qn),d.error=C({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},jn,qn,Hn),d.resource=C({"resource.url":"string"},xt(yt.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},jn,qn,Hn),d.action=C({"action.target.name":"string"},jn,qn,Hn),d.long_task=C({},jn,qn),d.vital=C({},jn,qn),Fn=d;var p=((f={}).error=Un("error",t.eventRateLimiterThreshold,l),f.action=Un("action",t.eventRateLimiterThreshold,l),f.vital=Un("vital",t.eventRateLimiterThreshold,l),f),v=function(){var t,e="string"==typeof(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||Oe("datadog-synthetics-public-id"))?t:void 0,n=function(){var t=window._DATADOG_SYNTHETICS_RESULT_ID||Oe("datadog-synthetics-result-id");return"string"==typeof t?t:void 0}();if(e&&n)return{test_id:e,result_id:n,injected:Le()}}();e.subscribe(12,(function(l){var d,f=l.startTime,h=l.rawRumEvent,m=l.domainContext,g=l.savedCommonContext,y=l.customerContext,_=r.findView(f),b=i.findUrl(f),w=n.findTrackedSession(f);if(w&&_&&b){var k=g||c(),C=o.findActionId(f),x=H({_dd:{format_version:2,drift:Math.round(zt()-Ht(Wt(),performance.now())),configuration:{session_sample_rate:It(t.sessionSampleRate,3),session_replay_sample_rate:It(t.sessionReplaySampleRate,3)},browser_sdk_version:ye()?"5.35.1":void 0},application:{id:t.applicationId},date:Bt(),service:_.service||t.service,version:_.version||t.version,source:"browser",session:{id:w.id,type:v?"synthetics":u.get()?"ci_test":"user"},view:{id:_.id,name:_.name,url:b.url,referrer:b.referrer},action:(d=h,-1!==["error","resource","long_task"].indexOf(d.type)&&C?{id:C}:void 0),synthetics:v,ci_test:u.get(),display:a.get(),connectivity:Jt()},h);x.context=H(k.context,_.context,y),"has_replay"in x.session||(x.session.has_replay=k.hasReplay),"view"===x.type&&(x.session.sampled_for_replay=1===w.sessionReplay),xt(yt.ANONYMOUS_USER_TRACKING)&&!k.user.anonymous_id&&(k.user.anonymous_id=w.anonymousId),B(k.user)||(x.usr=k.user),function(t,e,n,r){var i;if(e){var o=function(t,e,n){var r=j(t),i=n(r);return S(e).forEach((function(e){var n=e[0],i=e[1],o=function(t,e){for(var n=t,r=0,i=e.split(".");r<i.length;r++){var o=i[r];if(!Vn(n,o))return;n=n[o]}return n}(r,n),a=F(o);a===i?zn(t,n,G(o)):"object"!==i||"undefined"!==a&&"null"!==a||zn(t,n,{})})),i}(t,Fn[t.type],(function(t){return e(t,n)}));if(!1===o&&"view"!==t.type)return!1;!1===o&&s.warn("Can't dismiss view events using beforeSend!")}return!(null===(i=r[t.type])||void 0===i?void 0:i.isLimitReached())}(x,t.beforeSend,m,p)&&(B(x.context)&&delete x.context,e.notify(13,x))}}))}var Wn=function(){function t(){this.callbacks={}}return t.prototype.notify=function(t,e){var n=this.callbacks[t];
1n&&n.forEach((function(t){return t(e)}))},t.prototype.subscribe=function(t,e){var n=this;return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:function(){n.callbacks[t]=n.callbacks[t].filter((function(t){return e!==t}))}}},t}(),Kn=1/0;function Jn(t){var e=t.expireDelay,n=t.maxEntries,r=[],i=N((function(){return function(){for(var t=Vt()-e;r.length>0&&r[r.length-1].endTime<t;)r.pop()}()}),6e4);return{add:function(t,e){var i={value:t,startTime:e,endTime:Kn,remove:function(){Yt(r,i)},close:function(t){i.endTime=t}};return n&&r.length>=n&&r.pop(),r.unshift(i),i},find:function(t,e){void 0===t&&(t=Kn),void 0===e&&(e={returnInactive:!1});for(var n=0,i=r;n<i.length;n++){var o=i[n];if(o.startTime<=t){if(e.returnInactive||t<=o.endTime)return o.value;break}}},closeActive:function(t){var e=r[0];e&&e.endTime===Kn&&e.close(t)},findAll:function(t,e){void 0===t&&(t=Kn),void 0===e&&(e=0);var n=Ht(t,e);return r.filter((function(e){return e.startTime<=n&&t<=e.endTime})).map((function(t){return t.value}))},reset:function(){r=[]},stop:function(){O(i)}}}var Yn,Xn=Ue,$n=new WeakMap;function Zn(t){var e=t.target,n=t.parameters,r=n[0],i=n[1];$n.set(e,{state:"open",method:String(r).toUpperCase(),url:we(String(i))})}function Qn(t){var e=t.target,n=$n.get(e);n&&(n.isAborted=!0)}var tr="initial_document",er=[["document",function(t){return tr===t}],["xhr",function(t){return"xmlhttprequest"===t}],["fetch",function(t){return"fetch"===t}],["beacon",function(t){return"beacon"===t}],["css",function(t,e){return/\.css$/i.test(e)}],["js",function(t,e){return/\.js$/i.test(e)}],["image",function(t,e){return y(["image","img","icon"],t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)}],["font",function(t,e){return null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)}],["media",function(t,e){return y(["audio","video"],t)||null!==/\.(mp3|mp4)$/i.exec(e)}]];function nr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=1;n<t.length;n+=1)if(t[n-1]>t[n])return!1;return!0}function rr(t){var e=t.duration,n=t.startTime,r=t.responseEnd;return Ut(0===e&&n<r?jt(n,r):e)}function ir(t){if(ar(t)){var e=t.startTime,n=t.fetchStart,r=t.workerStart,i=t.redirectStart,o=t.redirectEnd,a=t.domainLookupStart,s=t.domainLookupEnd,u=t.connectStart,c=t.secureConnectionStart,l=t.connectEnd,d=t.requestStart,f=t.responseStart,p={download:sr(e,f,t.responseEnd),first_byte:sr(e,d,f)};return 0<r&&r<n&&(p.worker=sr(e,r,n)),n<l&&(p.connect=sr(e,u,l),u<=c&&c<=l&&(p.ssl=sr(e,c,l))),n<s&&(p.dns=sr(e,a,s)),e<o&&(p.redirect=sr(e,i,o)),p}}function or(t){return t.duration>=0}function ar(t){var e=nr(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!function(t){return t.redirectEnd>t.startTime}(t)||nr(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function sr(t,e,n){if(t<=e&&e<=n)return{duration:Ut(jt(e,n)),start:Ut(jt(t,e))}}function ur(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}function cr(t){return""===t.deliveryType?"other":t.deliveryType}function lr(t){if(t.startTime<t.responseStart){var e=t.encodedBodySize,n=t.decodedBodySize;return{size:n,encoded_body_size:e,decoded_body_size:n,transfer_size:t.transferSize}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function dr(t){return t&&!function(t){return At.every((function(e){return y(t,e)}))}(t)}var fr=/data:(.+)?(;base64)?,/g;function pr(t){return!(t.length<=24e3||"data:"!==t.substring(0,5)||(t=t.substring(0,24e3),0))}function vr(t){return"".concat(t.match(fr)[0],"[...]")}var hr,mr,gr=1;function yr(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:En,traceFetch:function(n){return An(t,n,e,(function(t){var e;if(n.input instanceof Request&&!(null===(e=n.init)||void 0===e?void 0:e.headers))n.input=new Request(n.input),Object.keys(t).forEach((function(e){n.input.headers.append(e,t[e])}));else{n.init=U(n.init);var r=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,e){r.push([e,t])}
1)):Array.isArray(n.init.headers)?n.init.headers.forEach((function(t){r.push(t)})):n.init.headers&&Object.keys(n.init.headers).forEach((function(t){r.push([t,n.init.headers[t]])})),n.init.headers=r.concat(S(t))}}))},traceXhr:function(n,r){return An(t,n,e,(function(t){Object.keys(t).forEach((function(e){r.setRequestHeader(e,t[e])}))}))}}}(e,n);!function(t,e,n){(function(t){return Yn||(Yn=function(t){return new J((function(e){var n=_e(XMLHttpRequest.prototype,"open",Zn).stop,r=_e(XMLHttpRequest.prototype,"send",(function(n){!function(t,e,n){var r=t.target,i=t.handlingStack,o=$n.get(r);if(o){var a=o;a.state="start",a.startClocks=Ft(),a.isAborted=!1,a.xhr=r,a.handlingStack=i;var s=!1,u=_e(r,"onreadystatechange",(function(){r.readyState===XMLHttpRequest.DONE&&c()})).stop,c=function(){if(l(),u(),!s){s=!0;var t=o;t.state="complete",t.duration=jt(a.startClocks.timeStamp,Bt()),t.status=r.status,n.notify(U(t))}},l=Z(e,r,"loadend",c).stop;n.notify(a)}}(n,t,e)}),{computeHandlingStack:!0}).stop,i=_e(XMLHttpRequest.prototype,"abort",Qn).stop;return function(){n(),r(),i()}}))}(t)),Yn})(e).subscribe((function(e){var r=e;if(dr(r.url))switch(r.state){case"start":n.traceXhr(r,r.xhr),r.requestIndex=_r(),t.notify(7,{requestIndex:r.requestIndex,url:r.url});break;case"complete":n.clearTracingIfNeeded(r),t.notify(8,{duration:r.duration,method:r.method,requestIndex:r.requestIndex,spanId:r.spanId,startClocks:r.startClocks,status:r.status,traceId:r.traceId,traceSampled:r.traceSampled,type:"xhr",url:r.url,xhr:r.xhr,isAborted:r.isAborted,handlingStack:r.handlingStack})}}))}(t,e,r),function(t,e){Re().subscribe((function(n){var r=n;if(dr(r.url))switch(r.state){case"start":e.traceFetch(r),r.requestIndex=_r(),t.notify(7,{requestIndex:r.requestIndex,url:r.url});break;case"resolve":!function(t,e){var n=t.response&&function(t){try{return t.clone()}catch(t){return}}(t.response);n&&n.body?function(t,e,n){var r=t.getReader(),i=[],o=0;function a(){if(r.cancel().catch(L),n.collectStreamBody){var t;if(1===i.length)t=i[0];else{t=new Uint8Array(o);var a=0;i.forEach((function(e){t.set(e,a),a+=e.length}))}t.slice(0,n.bytesLimit),t.length>n.bytesLimit}e()}!function t(){r.read().then(h((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())})),h((function(t){return e()})))}()}(n.body,(function(){e(jt(t.startClocks.timeStamp,Bt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(jt(t.startClocks.timeStamp,Bt()))}(r,(function(n){e.clearTracingIfNeeded(r),t.notify(8,{duration:n,method:r.method,requestIndex:r.requestIndex,responseType:r.responseType,spanId:r.spanId,startClocks:r.startClocks,status:r.status,traceId:r.traceId,traceSampled:r.traceSampled,type:"fetch",url:r.url,response:r.response,init:r.init,input:r.input,isAborted:r.isAborted,handlingStack:r.handlingStack})}))}}))}(t,r)}function _r(){var t=gr;return gr+=1,t}function br(t){return Nt(t)&&t<0?void 0:t}function wr(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange,i=void 0===r?L:r,o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=e.subscribe(13,(function(t){var e;if("view"!==t.type&&"vital"!==t.type&&n(t))switch(t.type){case"error":o.errorCount+=1,i();break;case"action":o.actionCount+=1,t.action.frustration&&(o.frustrationCount+=t.action.frustration.type.length),i();break;case"long_task":o.longTaskCount+=1,i();break;case"resource":(null===(e=t._dd)||void 0===e?void 0:e.discarded)||(o.resourceCount+=1,i())}}));return{stop:function(){a.unsubscribe()},eventCounts:o}}function Sr(t,e){return new J((function(n){if(window.PerformanceObserver){var r,i,o=function(t){var e=function(t){return t.filter((function(t){return!function(t){return!(t.entryType!==hr.RESOURCE||dr(t.name)&&or(t))}(t)}))}(t);e.length>0&&n.notify(e)},a=!0,s=new PerformanceObserver(h((function(t){a?r=R((function(){return o(t.getEntries())})):o(t.getEntries())})));try{s.observe(e)}catch(t){if(y([hr.RESOURCE,hr.NAVIGATION,hr.LONG_TASK,hr.PAINT],e.type)){e.buffered&&(r=R((function(){return o(performance.getEntriesByType(e.type))})));try{s.observe({entryTypes:[e.type]})}catch(t){return}}}return a=!1,function(t){!mr&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(mr=Z(t,performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})))}(t),kr(hr.FIRST_INPUT)||e.type!==hr.FIRST_INPUT||(i=function(t,e){var n=zt(),r=!1,i=Q(t,window,["click","mousedown","keydown","touchstart","pointerdown"],(function(e){if(e.cancelable){var n={entryType:"first-input",processingStart:Vt(),processingEnd:Vt(),startTime:e.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};"pointerdown"===e.type?function(t,e){Q(t,window,["pointerup","pointercancel"],(function(t){"pointerup"===t.type&&o(e)}),{once:!0})}(t,n):o(n)}}),{passive:!0,capture:!0}).stop;return{stop:i};function o(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o<zt()-n&&e(t)}}}(t,(function(t){o([t])})).stop),function(){s.disconnect(),i&&i(),I(r)}}}))}function kr(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}!function(t){t.EVENT="event",t.FIRST_INPUT="first-input",t.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",t.LAYOUT_SHIFT="layout-shift",t.LONG_TASK="longtask",t.LONG_ANIMATION_FRAME="long-animation-frame",t.NAVIGATION="navigation",t.PAINT="paint",t.RESOURCE="resource"}(hr||(hr={}));
1function Cr(t,e,n,r,i,o){var a=function(t,e,n,r){return new J((function(i){var o,a=[],s=0;return a.push(e.subscribe(u),n.subscribe(u),Sr(r,{type:hr.RESOURCE}).subscribe((function(t){t.some((function(t){return!xr(r,t.name)}))&&u()})),t.subscribe(7,(function(t){xr(r,t.url)||(void 0===o&&(o=t.requestIndex),s+=1,u())})),t.subscribe(8,(function(t){xr(r,t.url)||void 0===o||t.requestIndex<o||(s-=1,u())}))),function(){a.forEach((function(t){return t.unsubscribe()}))};function u(){i.notify({isBusy:s>0})}}))}(t,e,n,r);return function(t,e,n){var r,i=!1,o=R(h((function(){return c({hadActivity:!1})})),100),a=void 0!==n?R(h((function(){return c({hadActivity:!0,end:Bt()})})),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;I(o),I(r);var n=Bt();e||(r=R(h((function(){return c({hadActivity:!0,end:n})})),100))})),u=function(){i=!0,I(o),I(r),I(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(a,i,o)}function xr(t,e){return bn(t.excludedActivityUrls,e)}function Tr(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\0"===t?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)}))}function Er(t,e){return t.matches?t.matches(e):!!t.msMatchesSelector&&t.msMatchesSelector(e)}function Ar(t){if(t.parentElement)return t.parentElement;for(;t.parentNode;){if(t.parentNode.nodeType===Node.ELEMENT_NODE)return t.parentNode;t=t.parentNode}return null}var Rr=function(){function t(t){var e=this;this.map=new WeakMap,t&&t.forEach((function(t){return e.map.set(t,1)}))}return t.prototype.add=function(t){return this.map.set(t,1),this},t.prototype.delete=function(t){return this.map.delete(t)},t.prototype.has=function(t){return this.map.has(t)},t}();function Ir(t){return t.nodeType===Node.TEXT_NODE}function Nr(t){return t.nodeType===Node.ELEMENT_NODE}function Or(t){return Nr(t)&&Boolean(t.shadowRoot)}function Mr(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Nr(e.host)}function Lr(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;Or(t)&&e(t.shadowRoot)}function Dr(t){return Mr(t)?t.host:t.parentNode}var Pr={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:vn.ALLOW,MASK:vn.MASK,MASK_USER_INPUT:vn.MASK_USER_INPUT},Ur="data-dd-privacy",zr="***",Br="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Vr={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Fr(t,e,n){if(n&&n.has(t))return n.get(t);var r=Dr(t),i=r?Fr(r,e,n):e,o=qr(jr(t),i);return n&&n.set(t,o),o}function qr(t,e){switch(e){case Pr.HIDDEN:case Pr.IGNORE:return e}switch(t){case Pr.ALLOW:case Pr.MASK:case Pr.MASK_USER_INPUT:case Pr.HIDDEN:case Pr.IGNORE:return t;default:return e}}function jr(t){if(Nr(t)){if("BASE"===t.tagName)return Pr.ALLOW;if("INPUT"===t.tagName){var e=t;if("password"===e.type||"email"===e.type||"tel"===e.type)return Pr.MASK;if("hidden"===e.type)return Pr.MASK;var n=e.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return Pr.MASK}return Er(t,Kr(Pr.HIDDEN))?Pr.HIDDEN:Er(t,Kr(Pr.MASK))?Pr.MASK:Er(t,Kr(Pr.MASK_USER_INPUT))?Pr.MASK_USER_INPUT:Er(t,Kr(Pr.ALLOW))?Pr.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),r=(e=i("rel"),i("property"));return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function i(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?Pr.IGNORE:void 0}}function Hr(t,e){switch(e){case Pr.MASK:case Pr.HIDDEN:case Pr.IGNORE:return!0;case Pr.MASK_USER_INPUT:return Ir(t)?Gr(t.parentNode):Gr(t);default:return!1}}
1function Gr(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!Vr[e.tagName]}function Wr(t,e,n){var r,i=null===(r=t.parentElement)||void 0===r?void 0:r.tagName,o=t.textContent||"";if(!e||o.trim()){if("SCRIPT"===i)o=zr;else if(n===Pr.HIDDEN)o=zr;else if(Hr(t,n))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?zr:o.replace(/\S/g,"x");return o}}function Kr(t){return"[".concat(Ur,'="').concat(t,'"], .').concat("dd-privacy-").concat(t)}var Jr="data-dd-action-name";function Yr(t,e){var n;if(void 0===$r&&($r="closest"in HTMLElement.prototype),$r)n=t.closest("[".concat(e,"]"));else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=Ar(r)}if(n)return ni(ei(n.getAttribute(e).trim()))}var Xr,$r,Zr=[function(t,e,n){if(void 0===Xr&&(Xr="labels"in HTMLInputElement.prototype),Xr){if("labels"in t&&t.labels&&t.labels.length>0)return ii(t.labels[0],e)}else if(t.id){var r=t.ownerDocument&&b(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return r&&ii(r,e,n)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return{name:e.value,nameSource:"text_content"}}},function(t,e,n){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return ii(t,e,n)},function(t){return ri(t,"aria-label")},function(t,e,n){var r=t.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map((function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})).filter((function(t){return Boolean(t)})).map((function(t){return oi(t,e,n)})).join(" "),nameSource:"text_content"}},function(t){return ri(t,"alt")},function(t){return ri(t,"name")},function(t){return ri(t,"title")},function(t){return ri(t,"placeholder")},function(t,e){if("options"in t&&t.options.length>0)return ii(t.options[0],e)}],Qr=[function(t,e,n){return ii(t,e,n)}];function ti(t,e,n,r){for(var i=t,o=0;o<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(var a=0,s=n;a<s.length;a++){var u=(0,s[a])(i,e,r);
1if(u){var c=u.name,l=u.nameSource,d=c&&c.trim();if(d)return{name:ni(ei(d)),nameSource:l}}}if("FORM"===i.nodeName)break;i=Ar(i),o+=1}}function ei(t){return t.replace(/\s+/g," ")}function ni(t){return t.length>100?"".concat(pe(t,100)," [...]"):t}function ri(t,e){return{name:t.getAttribute(e)||"",nameSource:"standard_attribute"}}function ii(t,e,n){return{name:oi(t,e,n)||"",nameSource:"text_content"}}function oi(t,e,n){if(!t.isContentEditable){if("innerText"in t){var r=t.innerText,i=function(e){for(var n=t.querySelectorAll(e),i=0;i<n.length;i+=1){var o=n[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(r=r.replace(a,""))}}};return 0===De()&&i("script, style"),i("[".concat(Jr,"]")),e&&i("[".concat(e,"]")),n&&i("".concat(Kr(Pr.HIDDEN),", ").concat(Kr(Pr.MASK))),r}return t.textContent}}var ai,si=[Jr,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],ui=[fi,function(t){if(t.id&&!di(t.id))return"#".concat(Tr(t.id))}],ci=[fi,function(t){if("BODY"!==t.tagName)for(var e=function(t){if(t.classList)return t.classList;var e=(t.getAttribute("class")||"").trim();return e?e.split(/\s+/):[]}(t),n=0;n<e.length;n+=1){var r=e[n];if(!di(r))return"".concat(Tr(t.tagName),".").concat(Tr(r))}},function(t){return Tr(t.tagName)}];function li(t,e){if("isConnected"in(o=t)?o.isConnected:o.ownerDocument.documentElement.contains(o)){for(var n,r=t;r&&"HTML"!==r.nodeName;){var i=vi(r,ui,hi,e,n);if(i)return i;n=vi(r,ci,mi,e,n)||gi(pi(r),n),r=Ar(r)}return n}var o}function di(t){return/[0-9]/.test(t)}function fi(t,e){if(e&&(i=o(e)))return i;for(var n=0,r=si;n<r.length;n++){var i;if(i=o(r[n]))return i}function o(e){if(t.hasAttribute(e))return"".concat(Tr(t.tagName),"[").concat(e,'="').concat(Tr(t.getAttribute(e)),'"]')}}function pi(t){for(var e=Ar(t).firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return"".concat(Tr(t.tagName),":nth-of-type(").concat(n,")")}function vi(t,e,n,r,i){for(var o=0,a=e;o<a.length;o++){var s=(0,a[o])(t,r);if(s&&n(t,s,i))return gi(s,i)}}function hi(t,e,n){return 1===t.ownerDocument.querySelectorAll(gi(e,n)).length}function mi(t,e,n){var r;if(void 0===n)r=function(t){return Er(t,e)};else{var i=function(){if(void 0===ai)try{document.querySelector(":scope"),ai=!0}catch(t){ai=!1}return ai}()?gi("".concat(e,":scope"),n):gi(e,n);r=function(t){return null!==t.querySelector(i)}}for(var o=Ar(t).firstElementChild;o;){if(o!==t&&r(o))return!1;o=o.nextElementSibling}return!0}function gi(t,e){return e?"".concat(t,">").concat(e):t}var yi=Mt;function _i(){var t=window.getSelection();return!t||t.isCollapsed}function bi(t){return t.target instanceof Element&&!1!==t.isPrimary}var wi='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function Si(t){return!(t.hasPageActivity||t.getUserActivity().input||t.getUserActivity().scroll||Er(t.event.target,wi))}var ki=new Map;function Ci(t,e){ki.set(t,e),ki.forEach((function(t,e){jt(e,Vt())>1e4&&ki.delete(e)}))}function xi(t,e,n,r){var i,o=Jn({expireDelay:3e5}),a=new J;t.subscribe(10,(function(){o.reset()})),t.subscribe(5,c);var s=function(t,e){var n,r,i=e.onPointerDown,o=e.onPointerUp,a={selection:!1,input:!1,scroll:!1},s=[Z(t,window,"pointerdown",(function(t){bi(t)&&(n=_i(),a={selection:!1,input:!1,scroll:!1},r=i(t))}),{capture:!0}),Z(t,window,"selectionchange",(function(){n&&_i()||(a.selection=!0)}),{capture:!0}),Z(t,window,"scroll",(function(){a.scroll=!0}),{capture:!0,passive:!0}),Z(t,window,"pointerup",(function(t){if(bi(t)&&r){var e=a;o(r,t,(function(){return e})),r=void 0}}),{capture:!0}),Z(t,window,"input",(function(){a.input=!0}),{capture:!0})];return{stop:function(){s.forEach((function(t){return t.stop()}))}}}(r,{onPointerDown:function(i){return function(t,e,n,r,i){var o=t.enablePrivacyForActionName?Fr(r.target,t.defaultPrivacyLevel):Pr.ALLOW;if(o!==Pr.HIDDEN){var a=function(t,e,n){var r=t.target.getBoundingClientRect(),i=li(t.target,n.actionNameAttribute);i&&Ci(t.timeStamp,i);
1var o=function(t,e,n){var r=e.enablePrivacyForActionName,i=e.actionNameAttribute,o=Yr(t,Jr)||i&&Yr(t,i);return o?{name:o,nameSource:"custom_attribute"}:n===Pr.MASK?{name:"Masked Element",nameSource:"mask_placeholder"}:ti(t,i,Zr,r)||ti(t,i,Qr,r)||{name:"",nameSource:"blank"}}(t.target,n,e);return{type:"click",target:{width:Math.round(r.width),height:Math.round(r.height),selector:i},position:{x:Math.round(t.clientX-r.left),y:Math.round(t.clientY-r.top)},name:o.name,nameSource:o.nameSource}}(r,o,t),s=!1;return Cr(e,n,i,t,(function(t){s=t.hadActivity}),100),{clickActionBase:a,hadActivityOnPointerDown:function(){return s}}}}(r,t,e,i,n)},onPointerUp:function(i,s,c){var l=i.clickActionBase,d=i.hadActivityOnPointerDown;!function(t,e,n,r,i,o,a,s,u,c,l){var d,f=Ti(e,i,c,s,u);a(f);var p=null===(d=null==s?void 0:s.target)||void 0===d?void 0:d.selector;p&&Ci(u.timeStamp,p);var v=Cr(e,n,r,t,(function(t){t.hadActivity&&t.end<f.startClocks.timeStamp?f.discard():t.hadActivity?f.stop(t.end):l()?f.stop(f.startClocks.timeStamp):f.stop()}),1e4).stop,h=e.subscribe(5,(function(t){var e=t.endClocks;f.stop(e.timeStamp)})),m=o.subscribe((function(){f.stop()}));f.stopObservable.subscribe((function(){h.unsubscribe(),v(),m.unsubscribe()}))}(r,t,e,n,o,a,u,l,s,c,d)}}).stop;return{stop:function(){c(),a.notify(),s()},actionContexts:{findActionId:function(t){return o.findAll(t)}}};function u(t){if(!i||!i.tryAppend(t)){var e=t.clone();i=function(t,e){var n,r=[],i=0;function o(t){t.stopObservable.subscribe(a),r.push(t),I(n),n=R(s,yi)}function a(){1===i&&r.every((function(t){return t.isStopped()}))&&(i=2,e(r))}function s(){I(n),0===i&&(i=1,a())}return o(t),{tryAppend:function(t){return 0===i&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=100)&&e.timeStamp-n.timeStamp<=yi))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}(t,(function(t){!function(t,e){var n=function(t,e){if(function(t){if(t.some((function(t){return t.getUserActivity().selection||t.getUserActivity().scroll})))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=Mt)return!0;return!1}(t))return e.addFrustration("rage_click"),t.some(Si)&&e.addFrustration("dead_click"),e.hasError&&e.addFrustration("error_click"),{isRage:!0};var n=t.some((function(t){return t.getUserActivity().selection}));return t.forEach((function(t){t.hasError&&t.addFrustration("error_click"),Si(t)&&!n&&t.addFrustration("dead_click")})),{isRage:!1}}(t,e).isRage;n?(t.forEach((function(t){return t.discard()})),e.stop(Bt()),e.validate(t.map((function(t){return t.event})))):(e.discard(),t.forEach((function(t){return t.validate()})))}(t,e)}))}}function c(){i&&i.stop()}}function Ti(t,e,n,r,i){var o,a=le(),s=Ft(),u=e.add(a,s.relative),c=wr({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(Array.isArray(t.action.id)?y(t.action.id,a):t.action.id===a)}}),l=0,d=[],f=new J;function p(t){0===l&&(l=1,(o=t)?u.close(Gt(o)):u.remove(),c.stop(),f.notify())}return{event:i,stop:p,stopObservable:f,get hasError(){return c.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==o},getUserActivity:n,addFrustration:function(t){d.push(t)},startClocks:s,isStopped:function(){return 1===l||2===l},clone:function(){return Ti(t,e,n,r,i)},validate:function(e){if(p(),1===l){var n=c.eventCounts,u=n.resourceCount,f=n.errorCount,v=n.longTaskCount,h=C({type:"click",duration:o&&jt(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:d,counts:{resourceCount:u,errorCount:f,longTaskCount:v},events:null!=e?e:[i],event:i},r);t.notify(0,h),l=2}},discard:function(){p(),l=2}}}function Ei(t,e){var n=Ai(t)?{action:{id:t.id,loading_time:br(Ut(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,name_source:xt(yt.ACTION_NAME_MASKING)?t.nameSource:void 0}}}:void 0,r=Ai(t)?void 0:t.context,i=H({action:{id:le(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.wasInPageStateAt("active",t.startClocks.relative)}},n),o=Ai(t)?{events:t.events}:{};return!Ai(t)&&t.handlingStack&&(o.handlingStack=t.handlingStack),{customerContext:r,rawRumEvent:i,startTime:t.startClocks.relative,domainContext:o}}function Ai(t){return"custom"!==t.type}function Ri(t){var e,n=function(e,n){var r=bt({stackTrace:e,originalError:n,startClocks:Ft(),nonErrorPrefix:"Uncaught",source:"source",handling:"unhandled"});t.notify(r)},r=(e=n,_e(window,"onerror",(function(t){var n,r=t.parameters,i=r[0],o=r[1],a=r[2],s=r[3],u=r[4];n=St(u)?it(u):function(t,e,n,r){var i=[{url:e,column:r,line:n}
1],o=function(t){var e,n,r;return"[object String]"==={}.toString.call(t)&&(n=(e=vt.exec(t))[1],r=e[2]),{name:n,message:r}}(t);return{name:o.name,message:o.message,stack:i}}(i,o,a,s),e(n,null!=u?u:i)}))).stop,i=function(t){return _e(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=it(n);t(r,n)}))}(n).stop;return{stop:function(){r(),i()}}}var Ii={};var Ni="csp_violation";function Oi(t){return C({startClocks:Ft(),source:"report",handling:"unhandled"},t)}function Mi(t,e,n,r,i){return n?mt({name:t,message:e,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=i?i:void 0}]}):void 0}function Li(t,e,n,o){var a=new J;return function(t){var e,n;(e=[r.error],n=e.map((function(t){return Ii[t]||(Ii[t]=function(t){return new J((function(e){var n=i[t];return i[t]=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.apply(console,i);var a=ht();m((function(){e.notify(function(t,e,n){var i,o=t.map((function(t){return function(t){return"string"==typeof t?G(t):St(t)?gt(it(t)):D(G(t),void 0,2)}(t)})).join(" ");if(e===r.error){var a=b(t,St);i={stack:a?mt(it(a)):void 0,fingerprint:wt(a),causes:a?kt(a,"console"):void 0,startClocks:Ft(),message:o,source:"console",handling:"handled",handlingStack:n}}return{api:e,message:o,error:i,handlingStack:n}}(i,t,a))}))},function(){i[t]=n}}))}(t)),Ii[t]})),Y.apply(void 0,n)).subscribe((function(e){return t.notify(e.error)}))}(a),Ri(a),function(t,e){(function(t,e){var n=[];y(e,Ni)&&n.push(function(t){return new J((function(e){return Z(t,document,"securitypolicyviolation",(function(t){e.notify(function(t){var e="'".concat(t.blockedURI,"' blocked by '").concat(t.effectiveDirective,"' directive");return Oi({type:t.effectiveDirective,message:"".concat(Ni,": ").concat(e),originalError:t,csp:{disposition:t.disposition},stack:Mi(t.effectiveDirective,t.originalPolicy?"".concat(e,' of the policy "').concat(pe(t.originalPolicy,100,"..."),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}(t))})).stop}))}(t));var r=e.filter((function(t){return t!==Ni}));return r.length&&n.push(function(t){return new J((function(e){if(window.ReportingObserver){var n=h((function(t,n){return t.forEach((function(t){return e.notify(function(t){var e=t.type,n=t.body;return Oi({type:n.id,message:"".concat(e,": ").concat(n.message),originalError:t,stack:Mi(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}(t))}))})),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),function(){r.disconnect()}}}))}(r)),Y.apply(void 0,n)})(t,[Ni,"intervention"]).subscribe((function(t){return e.notify(t)}))}(e,a),a.subscribe((function(e){return t.notify(14,{error:e})})),function(t,e,n){return t.subscribe(14,(function(r){var i=r.error,o=r.customerContext,a=r.savedCommonContext;t.notify(12,C({customerContext:o,savedCommonContext:a},function(t,e,n){var r={date:t.startClocks.timeStamp,error:{id:le(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},type:"error",view:{in_foreground:e.wasInPageStateAt("active",t.startClocks.relative)}},i=n.findFeatureFlagEvaluations(t.startClocks.relative);i&&!B(i)&&(r.feature_flags=i);var o={error:t.originalError,handlingStack:t.handlingStack};return{rawRumEvent:r,startTime:t.startClocks.relative,domainContext:o}}(i,e,n)))})),{addError:function(e,n){var r=e.error,i=e.handlingStack,o=e.startClocks,a=e.context,s=bt({stackTrace:St(r)?it(r):void 0,originalError:r,handlingStack:i,startClocks:o,nonErrorPrefix:"Provided",source:"custom",handling:"handled"});t.notify(14,{customerContext:a,savedCommonContext:n,error:s})}}}(t,n,o)}function Di(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(h(t),e);return function(){return window.cancelIdleCallback(n)}}return function(t){var e=zt(),n=R((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,Pi-(zt()-e))}})}),0);return function(){return I(n)}}(t)}var Pi=50,Ui=new Rr;function zi(t){return Ht(t.startTime,t.duration)}function Bi(t,e,n){return document.readyState===e||"complete"===document.readyState?(n(),{stop:L}):Z(t,window,"complete"===e?"load":"DOMContentLoaded",n,{once:!0})}function Vi(t){var e=function(t){var e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]");return Fi(e&&e.content,n&&n.content)}(t)||function(t){var e=function(t){for(var e=0;e<t.childNodes.length;e+=1)if(n=qi(t.childNodes[e]))return n;if(t.body)for(e=t.body.childNodes.length-1;e>=0;e-=1){var n,r=t.body.childNodes[e];if(n=qi(r))return n;if(!Ir(r))break}}(t);if(e)return Fi(fe(e,"trace-id"),fe(e,"trace-time"))}(t);if(e&&!(e.traceTime<=zt()-12e4))return e.traceId}function Fi(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function qi(t){if(t&&function(t){return t.nodeType===Node.COMMENT_NODE}(t)){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function ji(){if(kr(hr.NAVIGATION)){var t=performance.getEntriesByType(hr.NAVIGATION)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(Nt(e[n])){var r=n,i=e[r];t[r]=0===i?0:Gt(i)}return t}(),n=C({entryType:hr.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:function(){return C({},n,{toJSON:void 0})}},e);return n}function Hi(t,e){Bi(t,"interactive",(function(){var t=C(ji().toJSON(),{entryType:hr.RESOURCE,initiatorType:tr,traceId:Vi(document),toJSON:function(){return C({},t,{toJSON:void 0})}});e(t)}))}function Gi(t,e,n,r,i){void 0===r&&(r=function(){var t=[];function e(e){var r;if(e.didTimeout){var i=performance.now();r=function(){return 30-(performance.now()-i)}}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){Di(e,{timeout:1e3})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===i&&(i=Hi),t.subscribe(8,(function(t){a((function(){return function(t,e,n){var r=function(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=e.filter((function(t){return!Ui.has(t)})).filter((function(t){return or(t)&&ar(t)})).filter((function(e){return n=e,r=t.startClocks.relative,i=zi({startTime:t.startClocks.relative,duration:t.duration}),n.startTime>=r-1&&zi(n)<=Ht(i,1);var n,r,i}));return 1===n.length?(Ui.add(n[0]),n[0].toJSON()):void 0}}}(t),i=r?Pt(r.startTime):t.startClocks,o=function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toString(),trace_id:t.traceId.toString(),rule_psr:e.rulePsr}}}(t,e);if(e.trackResources||o){var a="xhr"===t.type?"xhr":"fetch",s=r?Ki(r):void 0,u=function(t,e,n){return t.wasInPageStateDuringPeriod("frozen",e.relative,n)?void 0:Ut(n)}(n,i,t.duration),c=H({date:i.timeStamp,resource:{id:le(),type:a,duration:u,method:t.method,status_code:t.status,protocol:r&&ur(r),url:pr(t.url)?vr(t.url):t.url,delivery_type:r&&cr(r)},type:"resource",_dd:{discarded:!e.trackResources}},o,s);return{startTime:i.relative,rawRumEvent:c,domainContext:{performanceEntry:r,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}}(t,e,n)}
1))}));var o=Sr(e,{type:hr.RESOURCE,buffered:!0}).subscribe((function(t){for(var n=function(t){(function(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType})(t)||a((function(){return Wi(t,e)}))},r=0,i=t;r<i.length;r++)n(i[r])}));function a(e){r.push((function(){var n=e();n&&t.notify(12,n)}))}return i(e,(function(t){a((function(){return Wi(t,e)}))})),{stop:function(){o.unsubscribe()}}}function Wi(t,e){var n=Pt(t.startTime),r=function(t,e){if(t.traceId)return{_dd:{trace_id:t.traceId,span_id:Sn().toString(),rule_psr:e.rulePsr}}}(t,e);if(e.trackResources||r){var i,o=function(t){var e=t.name;if(!function(t){try{return!!Se(t)}catch(t){return!1}}(e))return ie('Failed to construct URL for "'.concat(t.name,'"')),"other";for(var n=function(t){var e=Se(t).pathname;return"/"===e[0]?e:"/".concat(e)}(e),r=0,i=er;r<i.length;r++){var o=i[r],a=o[0];if((0,o[1])(t.initiatorType,n))return a}return"other"}(t),a=Ki(t),s=H({date:n.timeStamp,resource:{id:le(),type:o,url:t.name,status_code:(i=t.responseStatus,0===i?void 0:i),protocol:ur(t),delivery_type:cr(t)},type:"resource",_dd:{discarded:!e.trackResources}},r,a);return{startTime:n.relative,rawRumEvent:s,domainContext:{performanceEntry:t}}}}function Ki(t){var e=t.renderBlockingStatus;return{resource:C({duration:rr(t),render_blocking_status:e},lr(t),ir(t))}}function Ji(t,e){var n,r;return void 0===e&&(e=window),"hidden"===document.visibilityState?n=0:(n=1/0,r=Q(t,e,["pagehide","visibilitychange"],(function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||(n=t.timeStamp,r())}),{capture:!0}).stop),{get timeStamp(){return n},stop:function(){null==r||r()}}}function Yi(t,e,n){var r={},i=function(t,e,n){return void 0===n&&(n=ji),function(t,e){var n,r=Bi(t,"complete",(function(){n=R((function(){return e()}))})).stop;return{stop:function(){r(),I(n)}}}(t,(function(){var t=n();(function(t){return t.loadEventEnd<=0})(t)||e(function(t){return{domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:t.responseStart>=0&&t.responseStart<=Vt()?t.responseStart:void 0}}(t))}))}(t,(function(t){e(t.loadEvent),r.navigationTimings=t,n()})).stop,o=Ji(t),a=function(t,e){return{stop:Sr(t,{type:hr.PAINT,buffered:!0}).subscribe((function(t){var i,o=b(t,(function(t){return"first-contentful-paint"===t.name&&t.startTime<e.timeStamp&&t.startTime<6e5}));o&&(i=o.startTime,r.firstContentfulPaint=i,n())})).unsubscribe}}(t,o).stop,s=function(t,e,i){var o=1/0,a=Q(t,i,["pointerdown","keydown"],(function(t){o=t.timeStamp}),{capture:!0,once:!0}).stop,s=0,u=Sr(t,{type:hr.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe((function(i){var a,u=function(t){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if((i=r).entryType===hr.LARGEST_CONTENTFUL_PAINT&&i.startTime<o&&i.startTime<e.timeStamp&&i.startTime<6e5&&i.size>s)return r}var i}(i);if(u){var c=void 0;u.element&&(c=li(u.element,t.actionNameAttribute)),a={value:u.startTime,targetSelector:c},r.largestContentfulPaint=a,n(),s=u.size}}));return{stop:function(){a(),u.unsubscribe()}}}(t,o,window).stop,u=function(t,e){var i=Sr(t,{type:hr.FIRST_INPUT,buffered:!0}).subscribe((function(i){var o,a=b(i,(function(t){return t.startTime<e.timeStamp}));if(a){var s=jt(a.startTime,a.processingStart),u=void 0;a.target&&Nr(a.target)&&(u=li(a.target,t.actionNameAttribute)),o={delay:s>=0?s:0,time:a.startTime,targetSelector:u},r.firstInput=o,n()}}));return{stop:function(){i.unsubscribe()}}}(t,o).stop;return{stop:function(){i(),a(),s(),u(),o.stop()},initialViewMetrics:r}}function Xi(t){var e;if(t)return null===(e=b(t,(function(t){return!!t.node&&Nr(t.node)})))||void 0===e?void 0:e.node}var $i,Zi=5e3,Qi=Mt;function to(){return kr(hr.LAYOUT_SHIFT)&&"WeakRef"in window}var eo,no=0,ro=1/0,io=0,oo=function(){return $i?no:window.performance.interactionCount||0};function ao(){var t,e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function so(){var t,e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}
1function uo(t){return eo||(eo=function(t){return new J((function(e){var n=M((function(){e.notify(co())}),200).throttled;return Z(t,window,"resize",n,{capture:!0,passive:!0}).stop}))}(t)),eo}function co(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}function lo(t,e,n,r,i,o,a){var s={},u=function(t,e,n,r,o,a){var u="initial_load"===o,c=!0,l=[],d=Ji(r);function f(){if(!c&&!u&&l.length>0){var t=Math.max.apply(Math,l);t<d.timeStamp&&(e=t,s.loadingTime=e,i())}var e}var p=Cr(t,e,n,r,(function(t){c&&(c=!1,t.hadActivity&&l.push(jt(a.timeStamp,t.end)),f())})).stop;return{stop:function(){p(),d.stop()},setLoadEvent:function(t){u&&(u=!1,l.push(t),f())}}}(t,e,n,r,o,a),c=u.stop,l=u.setLoadEvent,d=function(t,e,n,r){void 0===r&&(r=function(t,e){return void 0===e&&(e=1e3),new J((function(n){if(window.ResizeObserver){var r=M((function(){var t,e;n.notify((t=so(),e=co().height,{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(e+t),scrollTop:t}))}),e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(h(r.throttled));i&&o.observe(i);var a=Z(t,window,"scroll",r.throttled,{passive:!0});return function(){r.cancel(),o.disconnect(),a.stop()}}}))}(t));var i=0,o=0,a=0,s=r.subscribe((function(t){var r=t.scrollDepth,s=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=Vt();a=jt(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:a})}));return{stop:function(){return s.unsubscribe()}}}(r,a,(function(t){s.scroll=t})).stop,f=function(t,e,n){if(!to())return{stop:L};var r,i,o=0;n({value:0});var a=function(){var t,e,n=0,r=0;return{update:function(i){var o;return void 0===t||i.startTime-e>=Qi||i.startTime-t>=Zi?(t=e=i.startTime,r=n=i.value,o=!0):(n+=i.value,e=i.startTime,(o=i.value>r)&&(r=i.value)),{cumulatedValue:n,isMaxValue:o}}}}(),s=Sr(t,{type:hr.LAYOUT_SHIFT,buffered:!0}).subscribe((function(s){for(var u=0,c=s;u<c.length;u++){var l=c[u];if(!(l.hadRecentInput||l.startTime<e)){var d=a.update(l),f=d.cumulatedValue;if(d.isMaxValue){var p=Xi(l.sources);r=p?new WeakRef(p):void 0,i=jt(e,l.startTime)}f>o&&(o=f,p=null==r?void 0:r.deref(),n({value:It(o,4),targetSelector:p&&li(p,t.actionNameAttribute),time:i}))}}}));return{stop:function(){s.unsubscribe()}}}(r,a.relative,(function(t){s.cumulativeLayoutShift=t,i()})).stop,p=function(t,e,n){if(!(kr(hr.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:L,stop:L};var r,i,o=function(t){"interactionCount"in performance||$i||($i=new window.PerformanceObserver(h((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(ro=Math.min(ro,e.interactionId),io=Math.max(io,e.interactionId),no=(io-ro)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e="initial_load"===t?0:oo(),n={stopped:!1};function r(){return oo()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,u=1/0,c=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(10)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(a),l=-1;function d(n){for(var o=0,a=n;o<a.length;o++){var s=a[o];s.interactionId&&s.startTime>=e&&s.startTime<=u&&c.process(s)}var d,f,p=c.estimateP98Interaction();p&&p.duration!==l&&(l=p.duration,i=jt(e,p.startTime),d=p.startTime,f=ki.get(d),ki.delete(d),!(r=f)&&p.target&&Nr(p.target)&&(r=li(p.target,t.actionNameAttribute)))}var f=Sr(t,{type:hr.FIRST_INPUT,buffered:!0}).subscribe(d),p=Sr(t,{type:hr.EVENT,durationThreshold:40,buffered:!0}).subscribe(d);return{getInteractionToNextPaint:function(){return l>=0?{value:Math.min(l,6e4),targetSelector:r,time:i}:a()?{value:0}:void 0}
1,setViewEnd:function(t){u=t,s()},stop:function(){p.unsubscribe(),f.unsubscribe()}}}(r,a.relative,o),v=p.stop,m=p.getInteractionToNextPaint;return{stop:function(){c(),f(),d()},stopINPTracking:v,setLoadEvent:l,setViewEnd:p.setViewEnd,getCommonViewMetrics:function(){return s.interactionToNextPaint=m(),s}}}function fo(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function po(t,e,n,r,i,o,a,u,c,l){return t.subscribe(4,(function(n){return t.notify(12,function(t,e,n,r,i){var o,a,s,u,c,l,d,f,p,v,h,m,g,y,_,b,w=r.getReplayStats(t.id),S=n.findFeatureFlagEvaluations(t.startClocks.relative),k=i.findAll(t.startClocks.relative,t.duration),C={_dd:{document_version:t.documentVersion,replay_stats:w,page_states:k,configuration:{start_session_replay_recording_manually:e.startSessionReplayRecordingManually}},date:t.startClocks.timeStamp,type:"view",view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:null===(o=t.commonViewMetrics.cumulativeLayoutShift)||void 0===o?void 0:o.value,cumulative_layout_shift_time:Ut(null===(a=t.commonViewMetrics.cumulativeLayoutShift)||void 0===a?void 0:a.time),cumulative_layout_shift_target_selector:null===(s=t.commonViewMetrics.cumulativeLayoutShift)||void 0===s?void 0:s.targetSelector,first_byte:Ut(null===(u=t.initialViewMetrics.navigationTimings)||void 0===u?void 0:u.firstByte),dom_complete:Ut(null===(c=t.initialViewMetrics.navigationTimings)||void 0===c?void 0:c.domComplete),dom_content_loaded:Ut(null===(l=t.initialViewMetrics.navigationTimings)||void 0===l?void 0:l.domContentLoaded),dom_interactive:Ut(null===(d=t.initialViewMetrics.navigationTimings)||void 0===d?void 0:d.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:Ut(t.initialViewMetrics.firstContentfulPaint),first_input_delay:Ut(null===(f=t.initialViewMetrics.firstInput)||void 0===f?void 0:f.delay),first_input_time:Ut(null===(p=t.initialViewMetrics.firstInput)||void 0===p?void 0:p.time),first_input_target_selector:null===(v=t.initialViewMetrics.firstInput)||void 0===v?void 0:v.targetSelector,interaction_to_next_paint:Ut(null===(h=t.commonViewMetrics.interactionToNextPaint)||void 0===h?void 0:h.value),interaction_to_next_paint_time:Ut(null===(m=t.commonViewMetrics.interactionToNextPaint)||void 0===m?void 0:m.time),interaction_to_next_paint_target_selector:null===(g=t.commonViewMetrics.interactionToNextPaint)||void 0===g?void 0:g.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:Ut(null===(y=t.initialViewMetrics.largestContentfulPaint)||void 0===y?void 0:y.value),largest_contentful_paint_target_selector:null===(_=t.initialViewMetrics.largestContentfulPaint)||void 0===_?void 0:_.targetSelector,load_event:Ut(null===(b=t.initialViewMetrics.navigationTimings)||void 0===b?void 0:b.loadEvent),loading_time:br(Ut(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:Ut(t.duration)},feature_flags:S&&!B(S)?S: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:Ut(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!w||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};return B(t.customTimings)||(C.view.custom_timings=function(t,e){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[o]=e(t[o])}return n}(t.customTimings,Ut)),{rawRumEvent:C,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,c,u))})),function(t,e,n,r,i,o,a,u){var c,l=new Set,d=f("initial_load",qt(),u);function f(o,a,u){var c=function(t,e,n,r,i,o,a,u){void 0===a&&(a=Ft());var c,l,d,f,p,v=le(),h=new J,m={},g=0,y=U(i),_=X(),b=!0;u&&(l=u.name,d=u.service||void 0,f=u.version||void 0,u.context&&(p=u.context,_.setContext(p)));var w={id:v,name:l,startClocks:a,service:d,version:f,context:p};t.notify(1,w),t.notify(2,w);var S=M(H,3e3,{leading:!1}
1),k=S.throttled,C=S.cancel,x=lo(t,e,n,r,k,o,a),T=x.setLoadEvent,E=x.setViewEnd,A=x.stop,I=x.stopINPTracking,D=x.getCommonViewMetrics,P="initial_load"===o?Yi(r,T,k):{stop:L,initialViewMetrics:{}},z=P.stop,B=P.initialViewMetrics,V=function(t,e,n){var r=wr({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,v,k),F=V.stop,q=V.eventCounts,j=N(H,3e5);function H(){C(),g+=1;var e=void 0===c?Bt():c.timeStamp;t.notify(4,{customTimings:m,documentVersion:g,id:v,name:l,service:d,version:f,context:_.getContext(),loadingType:o,location:y,startClocks:a,commonViewMetrics:D(),initialViewMetrics:B,duration:jt(a.timeStamp,e),isActive:void 0===c,sessionIsActive:b,eventCounts:q})}return H(),_.changeObservable.subscribe((function(){t.notify(3,{id:v,name:l,context:_.getContext(),startClocks:a}),k()})),{get name(){return l},service:d,version:f,contextManager:_,stopObservable:h,end:function(e){var n,r,i=this;void 0===e&&(e={}),c||(c=null!==(n=e.endClocks)&&void 0!==n?n:Ft(),b=null===(r=e.sessionIsActive)||void 0===r||r,t.notify(5,{endClocks:c}),t.notify(6,{endClocks:c}),O(j),E(c.relative),A(),H(),R((function(){i.stop()}),3e5))},stop:function(){z(),F(),I(),h.notify()},addTiming:function(t,e){if(!c){var n=function(t){return t<Dt}(e)?e:jt(a.timeStamp,e);m[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return e!==t&&s.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(e)),e}(t)]=n,k()}},setViewName:function(t){l=t,H()}}}(e,n,r,i,t,o,a,u);return l.add(c),c.stopObservable.subscribe((function(){l.delete(c)})),c}return e.subscribe(10,(function(){d=f("route_change",void 0,{name:d.name,service:d.service,version:d.version,context:d.contextManager.getContext()})})),e.subscribe(9,(function(){d.end({sessionIsActive:!1})})),e.subscribe(11,(function(t){t.reason===Mn.UNLOADING&&d.end()})),a&&(c=function(t){return t.subscribe((function(t){var e,n,r,i=t.oldLocation;n=t.newLocation,(e=i).pathname===n.pathname&&(""!==(r=n.hash.substring(1))&&document.getElementById(r)||fo(n.hash)===fo(e.hash))||(d.end(),d=f("route_change"))}))}(o)),{addTiming:function(t,e){void 0===e&&(e=Bt()),d.addTiming(t,e)},startView:function(t,e){d.end({endClocks:e}),d=f("route_change",e,t)},setViewContext:function(t){d.contextManager.setContext(t)},setViewContextProperty:function(t,e){d.contextManager.setContextProperty(t,e)},setViewName:function(t){d.setViewName(t)},stop:function(){c&&c.unsubscribe(),d.end(),l.forEach((function(t){return t.stop()}))}}}(n,t,r,i,e,o,!e.trackViewsManually,l)}var vo=Ue,ho=[];function mo(t,e,n,r){var i=new J,o=new J,a=ln(t.sessionStoreStrategyType,e,n);ho.push((function(){return a.stop()}));var s=Jn({expireDelay:vo});function u(){return{id:a.getSession().id,trackingType:a.getSession()[e],isReplayForced:!!a.getSession().forcedReplay,anonymousId:a.getSession().anonymousId}}return ho.push((function(){return s.stop()})),a.renewObservable.subscribe((function(){s.add(u(),Vt()),i.notify()})),a.expireObservable.subscribe((function(){o.notify(),s.closeActive(Vt())})),a.expandOrRenewSession(),s.add(u(),qt().relative),r.observable.subscribe((function(){r.isGranted()?a.expandOrRenewSession():a.expire()})),function(t){var e=Q(t,window,["click","touchstart","keydown","scroll"],(function(){r.isGranted()&&a.expandOrRenewSession()}),{capture:!0,passive:!0}).stop;ho.push(e)}(t),function(t){var e=function(){"visible"===document.visibilityState&&a.expandSession()},n=Z(t,document,"visibilitychange",e).stop;ho.push(n);var r=N(e,6e4);ho.push((function(){O(r)}))}(t),function(t){var e=Z(t,window,"resume",(function(){return a.restartSession()}),{capture:!0}).stop;ho.push(e)}(t),{findSession:function(t,e){return s.find(t,e)},renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a.sessionStateUpdateObservable,expire:a.expire,updateSessionState:a.updateSessionState}}function go(t){return"2"===t||"1"===t}function yo(t){var e=t.encoder,n=t.request,r=t.flushController,i=t.messageBytesLimit,o={},a=r.flushObservable.subscribe((function(t){return function(t){var r=w(o).join("\n");o={};var i=Ln(t.reason),a=i?n.sendOnExit:n.send;if(i&&e.isAsync){var s=e.finishSync();s.outputBytesCount&&a(_o(s));
1var u=[s.pendingData,r].filter(Boolean).join("\n");u&&a({data:u,bytesCount:E(u)})}else r&&e.write(e.isEmpty?r:"\n".concat(r)),e.finish((function(t){a(_o(t))}))}(t)}));function u(t,n){var a=D(t),u=e.estimateEncodedBytesCount(a);u>=i?s.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(i,"KB. ").concat(l," ").concat(c,"/#technical-limitations")):(function(t){return void 0!==t&&void 0!==o[t]}(n)&&function(t){var n=o[t];delete o[t];var i=e.estimateEncodedBytesCount(n);r.notifyAfterRemoveMessage(i)}(n),function(t,n,i){r.notifyBeforeAddMessage(n),void 0!==i?(o[i]=t,r.notifyAfterAddMessage()):e.write(e.isEmpty?t:"\n".concat(t),(function(t){r.notifyAfterAddMessage(t-n)}))}(a,u,n))}return{flushController:r,add:u,upsert:u,stop:a.unsubscribe}}function _o(t){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding}}var bo=Mt;function wo(t,e,n,r,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?ko(t,e,n,{onSuccess:function(){return Co(0,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),So(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function So(t,e,n,r){2===t.transportStatus&&R((function(){ko(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=bo,Co(1,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),So(t,e,n,r)}})}),t.currentBackoffTime)}function ko(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||t.status>=500)}(n)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o()):(e.transportStatus=0,i())}))}function Co(t,e,n,r,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(3,"MiB"),source:Pn,startClocks:Ft()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=xo();o.size()>0;)wo(o.dequeue(),e,n,r,i)}function xo(){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 To(t,e,n){var r={transportStatus:0,currentBackoffTime:bo,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:xo(),queueFullReported:!1},i=function(n,r){return function(t,e,n,r){if(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&n.bytesCount<e){var i=t.build("fetch",n);fetch(i,{method:"POST",body:n.data,keepalive:!0,mode:"cors"}).then(h((function(t){return null==r?void 0:r({status:t.status,type:t.type})})),h((function(){Ao(t.build("xhr",n),n.data,r)})))}else Ao(t.build("xhr",n),n.data,r)}(t,e,n,r)};return{send:function(e){wo(e,r,i,t.trackType,n)},sendOnExit:function(n){!function(t,e,n){if(!!navigator.sendBeacon&&n.bytesCount<e)try{var r=t.build("beacon",n);if(navigator.sendBeacon(r,n.data))return}catch(t){!function(t){Eo||(Eo=!0,oe(t))}(t)}Ao(t.build("xhr",n),n.data)}(t,e,n)}}}var Eo=!1;function Ao(t,e,n){var r=new XMLHttpRequest;r.open("POST",t,!0),e instanceof Blob&&r.setRequestHeader("Content-Type",e.type),Z({allowUntrustedEvents:!0},r,"loadend",(function(){null==n||n({status:r.status})}),{once:!0}),r.send(e)}function Ro(t){var e,n=t.messagesLimit,r=t.bytesLimit,i=t.durationLimit,o=t.pageExitObservable,a=t.sessionExpireObservable,s=o.subscribe((function(t){return f(t.reason)})),u=a.subscribe((function(){return f("session_expire")})),c=new J((function(){return function(){s.unsubscribe(),u.unsubscribe()}})),l=0,d=0;function f(t){if(0!==d){var e=d,n=l;d=0,l=0,p(),c.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){I(e),e=void 0}return{flushObservable:c,get messagesCount(){return d},notifyBeforeAddMessage:function(t){l+t>=r&&f("bytes_limit"),d+=1,l+=t,void 0===e&&(e=R((function(){f("duration_limit")}),i))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,d>=n?f("messages_limit"):l>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0==(d-=1)&&p()}}}var Io=Ue;function No(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}var Oo,Mo,Lo,Do=Ue;function Po(){0!==Oo.batchCount&&(ie("Customer data measures",Oo),Bo())}function Uo(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function zo(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function Bo(){Oo={batchCount:0,batchBytesCount:{min:1/0,max:0,sum:0},batchMessagesCount:{min:1/0,max:0,sum:0},globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}function Vo(){Lo=!1,Mo={globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}var Fo=Ue;function qo(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}var jo=Mt;function Ho(t,e){var n=fe(document.cookie,t),r=N((function(){var r=fe(document.cookie,t);r!==n&&e(r)}),jo);return function(){O(r)}}var Go,Wo="datadog-ci-visibility-test-execution-id";function Ko(t){return Jo(t).segments_count}function Jo(t){var e;return Go||(Go=new Map),Go.has(t)?e=Go.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},Go.set(t,e),Go.size>10&&function(){if(Go)if(Go.keys){var t=Go.keys().next().value;t&&Go.delete(t)}else{var e=!0;Go.forEach((function(t,n){e&&(Go.delete(n),e=!1)}))}}()),e}var Yo=new WeakMap;function Xo(t){return Yo.has(t)}function $o(t){return Yo.get(t)}function Zo(t,e){var n=t.tagName,r=t.value;if(Hr(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i))return r;if(!r||"OPTION"===n)return;return zr}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var Qo=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,ta=/^[A-Za-z]+:|^\/\//,ea=/^data:.*,/i;var na=/[^a-z1-6-_]/;function ra(t){var e=t.toLowerCase().trim();return na.test(e)?"div":e}function ia(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(t,"' height='").concat(e,"' style='background-color:silver'%3E%3C/svg%3E")}function oa(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function aa(t,e,n,r){if(e===Pr.HIDDEN)return null;var i=t.getAttribute(n);if(e===Pr.MASK&&n!==Ur&&!si.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return zr}if("IMG"===o&&("src"===n||"srcset"===n)){var a=t;
1if(a.naturalWidth>0)return ia(a.naturalWidth,a.naturalHeight);var s=t.getBoundingClientRect(),u=s.width,c=s.height;return u>0||c>0?ia(u,c):Br}if("SOURCE"===o&&("src"===n||"srcset"===n))return Br;if("A"===o&&"href"===n)return zr;if(i&&k(n,"data-"))return zr;if("IFRAME"===o&&"srcdoc"===n)return zr}return i&&"string"==typeof i&&pr(i)?vr(i):i}function sa(t){if(!t)return null;var e,n,r;try{e=t.rules||t.cssRules}catch(t){}return e?(n=Array.from(e,2===De()?ua:ca).join(""),r=t.href,n.replace(Qo,(function(t,e,n,i,o,a){var s=n||o||a;if(!r||!s||ta.test(s)||ea.test(s))return t;var u=e||i||"";return"url(".concat(u).concat(function(t,e){try{return Se(t,e).href}catch(e){return t}}(s,r)).concat(u,")")}))):null}function ua(t){return function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")?t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2"):ca(t)}function ca(t){return function(t){return"styleSheet"in t}(t)&&sa(t.styleSheet)||t.cssText}function la(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:0,childNodes:fa(t,e),adoptedStyleSheets:oa(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=Mr(t);return n&&e.serializationContext.shadowRootsController.addShadowRoot(t),{type:11,childNodes:fa(t,e),isShadowRoot:n,adoptedStyleSheets:n?oa(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:1,name:(n=t).name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r,i=ra(t.tagName),o="svg"===(r=t).tagName||r instanceof SVGElement||void 0,a=qr(jr(t),e.parentNodePrivacyLevel);if(a===Pr.HIDDEN){var s=t.getBoundingClientRect(),u=s.width,c=s.height;return{type:2,tagName:i,attributes:(n={rr_width:"".concat(u,"px"),rr_height:"".concat(c,"px")},n[Ur]="hidden",n),childNodes:[],isSVG:o}}if(a!==Pr.IGNORE){var l=function(t,e,n){var r;if(e===Pr.HIDDEN)return{};for(var i={},o=ra(t.tagName),a=t.ownerDocument,s=0;s<t.attributes.length;s+=1){var u=t.attributes.item(s).name,c=aa(t,e,u,n.configuration);null!==c&&(i[u]=c)}if(t.value&&("textarea"===o||"select"===o||"option"===o||"input"===o)){var l=Zo(t,e);void 0!==l&&(i.value=l)}if("option"===o&&e===Pr.ALLOW){var d=t;d.selected&&(i.selected=d.selected)}if("link"===o){var f,p=Array.from(a.styleSheets).find((function(e){return e.href===t.href}));(f=sa(p))&&p&&(i._cssText=f)}"style"===o&&t.sheet&&(f=sa(t.sheet))&&(i._cssText=f);var v,h,m=t;if("input"!==o||"radio"!==m.type&&"checkbox"!==m.type||(e===Pr.ALLOW?i.checked=!!m.checked:Hr(m,e)&&delete i.checked),"audio"===o||"video"===o){var g=t;i.rr_mediaState=g.paused?"paused":"played"}var y=n.serializationContext;switch(y.status){case 0:v=Math.round(t.scrollTop),h=Math.round(t.scrollLeft),(v||h)&&y.elementsScrollPositions.set(t,{scrollTop:v,scrollLeft:h});break;case 1:y.elementsScrollPositions.has(t)&&(v=(r=y.elementsScrollPositions.get(t)).scrollTop,h=r.scrollLeft)}return h&&(i.rr_scrollLeft=h),v&&(i.rr_scrollTop=v),i}(t,a,e),d=[];return function(t){return t.childNodes.length>0||Or(t)}(t)&&"style"!==i&&(d=fa(t,e.parentNodePrivacyLevel===a&&e.ignoreWhiteSpace===("head"===i)?e:C({},e,{parentNodePrivacyLevel:a,ignoreWhiteSpace:"head"===i}))),{type:2,tagName:i,attributes:l,childNodes:d,isSVG:o}}}(t,e);case t.TEXT_NODE:return function(t,e){var n=Wr(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0!==n)return{type:3,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:4,textContent:""}}var n}(t,e);if(!n)return null;var r=$o(t)||da++,i=n;return i.id=r,function(t,e){Yo.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}var da=1;function fa(t,e){var n=[];return Lr(t,(function(t){var r=la(t,e);r&&n.push(r)})),n}function pa(t,e,n){return la(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function va(t){return Boolean(t.changedTouches)}function ha(t){return!0===t.composed&&Or(t.target)?t.composedPath()[0]:t.target}var ma,ga=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 ya(t,e){return{data:C({source:t},e),type:3,timestamp:Bt()}}function _a(t,e){var n=M((function(t){var n=ha(t);if(Xo(n)){var r=ba(t);
1if(!r)return;var i={id:$o(n),timeOffset:0,x:r.x,y:r.y};e(ya(va(t)?6:1,{positions:[i]}))}}),50,{trailing:!1}),r=n.throttled,i=n.cancel,o=Q(t,document,["mousemove","touchmove"],r,{capture:!0,passive:!0}).stop;return{stop:function(){o(),i()}}}function ba(t){var e,n,r,i,o=va(t)?t.changedTouches[0]:t,a=o.clientX,s=o.clientY;if(window.visualViewport){var u=(e=a,n=s,r=window.visualViewport,i={layoutViewportX:e,layoutViewportY:n,visualViewportX:e,visualViewportY:n},r?(function(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}(r)?(i.layoutViewportX=Math.round(e+r.offsetLeft),i.layoutViewportY=Math.round(n+r.offsetTop)):(i.visualViewportX=Math.round(e-r.offsetLeft),i.visualViewportY=Math.round(n-r.offsetTop)),i):i);a=u.visualViewportX,s=u.visualViewportY}if(Number.isFinite(a)&&Number.isFinite(s))return{x:a,y:s};t.isTrusted&&ie("mouse/touch event without x/y")}var wa=((ma={}).pointerup=0,ma.mousedown=1,ma.click=2,ma.contextmenu=3,ma.dblclick=4,ma.focus=5,ma.blur=6,ma.touchstart=7,ma.touchend=9,ma);function Sa(t,e,n){return Q(t,document,Object.keys(wa),(function(r){var i=ha(r);if(Fr(i,t.defaultPrivacyLevel)!==Pr.HIDDEN&&Xo(i)){var o,a=$o(i),s=wa[r.type];if(6!==s&&5!==s){var u=ba(r);if(!u)return;o={id:a,type:s,x:u.x,y:u.y}}else o={id:a,type:s};var c=C({id:n.getIdForEvent(r)},ya(2,o));e(c)}}),{capture:!0,passive:!0})}function ka(t,e,n,r){void 0===r&&(r=document);var i=M((function(r){var i=ha(r);if(i&&Fr(i,t.defaultPrivacyLevel)!==Pr.HIDDEN&&Xo(i)){var o=$o(i),a=i===document?{scrollTop:so(),scrollLeft:ao()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),e(ya(3,{id:o,x:a.scrollLeft,y:a.scrollTop}))}}),100),o=i.throttled,a=i.cancel,s=Z(t,r,"scroll",o,{capture:!0,passive:!0}).stop;return{stop:function(){s(),a()}}}function Ca(t,e){var n=uo(t).subscribe((function(t){e(ya(4,t))}));return{stop:function(){n.unsubscribe()}}}function xa(t,e){var n=window.visualViewport;if(!n)return{stop:L};var r=M((function(){e({data:ga(n),type:8,timestamp:Bt()})}),200,{trailing:!1}),i=r.throttled,o=r.cancel,a=Q(t,n,["resize","scroll"],i,{capture:!0,passive:!0}).stop;return{stop:function(){a(),o()}}}function Ta(t,e){return Q(t,document,["play","pause"],(function(n){var r=ha(n);r&&Fr(r,t.defaultPrivacyLevel)!==Pr.HIDDEN&&Xo(r)&&e(ya(7,{id:$o(r),type:"play"===n.type?0:1}))}),{capture:!0,passive:!0})}function Ea(t){function e(t,e){t&&Xo(t.ownerNode)&&e($o(t.ownerNode))}var n=[_e(CSSStyleSheet.prototype,"insertRule",(function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r,(function(e){return t(ya(8,{id:e,adds:[{rule:o,index:a}]}))}))})),_e(CSSStyleSheet.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r,(function(e){return t(ya(8,{id:e,removes:[{index:i}]}))}))}))];function r(r){n.push(_e(r.prototype,"insertRule",(function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r.parentStyleSheet,(function(e){var n=Aa(r);n&&(n.push(a||0),t(ya(8,{id:e,adds:[{rule:o,index:n}]})))}))})),_e(r.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=Aa(r);n&&(n.push(i),t(ya(8,{id:e,removes:[{index:n}]})))}))})))}return"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule)),{stop:function(){n.forEach((function(t){return t.stop()}))}}}function Aa(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){var i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(i),e}}function Ra(t,e){return Q(t,window,["focus","blur"],(function(){e({data:{has_focus:document.hasFocus()},type:6,timestamp:Bt()})}))}function Ia(t,e,n){var r=t.subscribe(12,(function(t){var r,i;"action"===t.rawRumEvent.type&&"click"===t.rawRumEvent.action.type&&(null===(i=null===(r=t.rawRumEvent.action.frustration)||void 0===r?void 0:r.type)||void 0===i?void 0:i.length)&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&e({timestamp:t.rawRumEvent.date,type:9,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return n.getIdForEvent(t)}))}})}));return{stop:function(){r.unsubscribe()}}}function Na(t,e){var n=t.subscribe(5,(function(){e({timestamp:Bt(),type:7})}));return{stop:function(){n.unsubscribe()}}}function Oa(t,e,n){void 0===n&&(n=document);var r,i=t.defaultPrivacyLevel,o=new WeakMap,a=n!==document,s=Q(t,n,a?["change"]:["input","change"],(function(t){var e=ha(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}).stop;if(a)r=L;else{var u=[be(HTMLInputElement.prototype,"value",c),be(HTMLInputElement.prototype,"checked",c),be(HTMLSelectElement.prototype,"value",c),be(HTMLTextAreaElement.prototype,"value",c),be(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return{stop:function(){r(),s()}};function c(t){var e=Fr(t,i);if(e!==Pr.HIDDEN){var n,r=t.type;if("radio"===r||"checkbox"===r){if(Hr(t,e))return;n={isChecked:t.checked}}else{var o=Zo(t,e);if(void 0===o)return;n={text:o}}l(t,n);var a,s,u=t.name;"radio"===r&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'.concat(Tr(u),'"]')),s=function(e){e!==t&&l(e,{isChecked:!1}
1)},Array.prototype.forEach.call(a,s))}}function l(t,n){if(Xo(t)){var r=o.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(o.set(t,n),e(ya(5,C({id:$o(t)},n))))}}}function Ma(t,e,n,r){var i=Dn();if(!i)return{stop:L,flush:L};var o=function(){var r=L,i=[];function o(){r(),function(t,e,n,r){var i=new Map;t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){La(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Xo(e)&&!Mr(e))return!1;e=Dr(e)}return!0}(t.target)&&Fr(t.target,n.defaultPrivacyLevel,i)!==Pr.HIDDEN})),a=function(t,e,n,r){for(var i=new Set,o=new Map,a=function(t){t.addedNodes.forEach((function(t){i.add(t)})),t.removedNodes.forEach((function(e){i.has(e)||o.set(e,t.target),i.delete(e)}))},s=0,u=t;s<u.length;s++)a(u[s]);var c=Array.from(i);c.sort((function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0}));for(var l=new Set,d=[],f=0,p=c;f<p.length;f++){var v=p[f];if(!_(v)){var h=Fr(v.parentNode,e.defaultPrivacyLevel,r);if(h!==Pr.HIDDEN&&h!==Pr.IGNORE){var m=la(v,{serializedNodeIds:l,parentNodePrivacyLevel:h,serializationContext:{status:2,shadowRootsController:n},configuration:e});if(m){var g=Dr(v);d.push({nextId:b(v),parentId:$o(g),node:m})}}}}var y=[];return o.forEach((function(t,e){Xo(e)&&y.push({parentId:$o(t),id:$o(e)})})),{adds:d,removes:y,hasBeenSerialized:_};function _(t){return Xo(t)&&l.has($o(t))}function b(t){for(var e=t.nextSibling;e;){if(Xo(e))return $o(e);e=e.nextSibling}return null}}(o.filter((function(t){return"childList"===t.type})),n,r,i),s=a.adds,u=a.removes,c=a.hasBeenSerialized,l=function(t,e,n){for(var r,i=[],o=new Set,a=t.filter((function(t){return!o.has(t.target)&&(o.add(t.target),!0)})),s=0,u=a;s<u.length;s++){var c=u[s];if(c.target.textContent!==c.oldValue){var l=Fr(Dr(c.target),e.defaultPrivacyLevel,n);l!==Pr.HIDDEN&&l!==Pr.IGNORE&&i.push({id:$o(c.target),value:null!==(r=Wr(c.target,!1,l))&&void 0!==r?r:null})}}return i}(o.filter((function(t){return"characterData"===t.type&&!c(t.target)})),n,i),d=function(t,e,n){for(var r=[],i=new Map,o=t.filter((function(t){var e=i.get(t.target);return!(e&&e.has(t.attributeName)||(e?e.add(t.attributeName):i.set(t.target,new Set([t.attributeName])),0))})),a=new Map,s=0,u=o;s<u.length;s++){var c=u[s];if(c.target.getAttribute(c.attributeName)!==c.oldValue){var l=Fr(c.target,e.defaultPrivacyLevel,n),d=aa(c.target,l,c.attributeName,e),f=void 0;if("value"===c.attributeName){var p=Zo(c.target,l);if(void 0===p)continue;f=p}else f="string"==typeof d?d:null;var v=a.get(c.target);v||(v={id:$o(c.target),attributes:{}},r.push(v),a.set(c.target,v)),v.attributes[c.attributeName]=f}}return r}(o.filter((function(t){return"attributes"===t.type&&!c(t.target)})),n,i);(l.length||d.length||u.length||s.length)&&e(ya(0,{adds:s,removes:u,texts:l,attributes:d}))}(i.concat(a.takeRecords()),t,e,n),i=[]}var s=M(o,16,{leading:!1}),u=s.throttled,c=s.cancel;return{addMutations:function(t){0===i.length&&(r=Di(u,{timeout:100})),i.push.apply(i,t)},flush:o,stop:function(){r(),c()}}}(),a=new i(h(o.addMutations));return a.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){a.disconnect(),o.stop()},flush:function(){o.flush()}}}function La(t,e){Or(t)&&e(t.shadowRoot),Lr(t,(function(t){return La(t,e)}))}function Da(t){var e=t.context,n=t.creationReason,r=t.encoder,i=0,o=e.view.id,a=C({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:Ko(o),source:"browser"},e);return function(t){Jo(t).segments_count+=1}(o),{addRecord:function(t,e){a.start=Math.min(a.start,t.timestamp),a.end=Math.max(a.end,t.timestamp),a.records_count+=1,a.has_full_snapshot||(a.has_full_snapshot=2===t.type);var n=r.isEmpty?'{"records":[':",";r.write(n+JSON.stringify(t),(function(t){e(i+=t)}))},flush:function(t){if(r.isEmpty)throw new Error("Empty segment flushed");r.write("],".concat(JSON.stringify(a).slice(1),"\n")),r.finish((function(e){!function(t,e){Jo(t).segments_total_raw_size+=e}(a.view.id,e.rawBytesCount),t(a,e)}))}}}function Pa(t,e,n,r,i,o){return function(t,i,o,a){var s={status:0,nextSegmentCreationReason:"init"},u=t.subscribe(2,(function(){l("view_change")})).unsubscribe,c=t.subscribe(11,(function(t){l(t.reason)})).unsubscribe;function l(t){1===s.status&&(s.segment.flush((function(e,n){var r=function(t,e,n){var r=new FormData;r.append("segment",new Blob([t],{type:"application/octet-stream"}),"".concat(e.session.id,"-").concat(e.start));var i=C({raw_segment_size:n,compressed_segment_size:t.byteLength},e),o=JSON.stringify(i);return r.append("event",new Blob([o],{type:"application/json"})),{data:r,bytesCount:t.byteLength}}(n.output,e,n.rawBytesCount);Ln(t)?o.sendOnExit(r):o.send(r)}
1)),I(s.expirationTimeoutId)),s="stop"!==t?{status:0,nextSegmentCreationReason:t}:{status:2}}return{addRecord:function(t){if(2!==s.status){if(0===s.status){var i=function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(r&&i)return{application:{id:t},session:{id:r.id},view:{id:i.id}}}(e.applicationId,n,r);if(!i)return;s={status:1,segment:Da({encoder:a,context:i,creationReason:s.nextSegmentCreationReason}),expirationTimeoutId:R((function(){l("segment_duration_limit")}),5e3)}}s.segment.addRecord(t,(function(t){t>6e4&&l("segment_bytes_limit")}))}},stop:function(){l("stop"),u(),c()}}}(t,0,i,o)}function Ua(t,e,n){var r,i=0,o=[],a=0,s=[],u=Z(t,e,"message",(function(t){var e=t.data;if("wrote"===e.type&&e.streamId===n){i+=e.additionalBytesCount,o.push(e.result),r=e.trailer;var a=s.shift();a&&a.id===e.id?a.writeCallback?a.writeCallback(e.result.byteLength):a.finishCallback&&a.finishCallback():(u(),ie("Worker responses received out of order."))}})).stop;function c(){var t=0===o.length?new Uint8Array(0):function(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),r=0,i=0,o=t;i<o.length;i++){var a=o[i];n.set(a,r),r+=a.length}return n}(o.concat(r)),e={rawBytesCount:i,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return i=0,o=[],e}function l(){a>0&&(e.postMessage({action:"reset",streamId:n}),a=0)}return{isAsync:!0,get isEmpty(){return 0===a},write:function(t,r){e.postMessage({action:"write",id:a,data:t,streamId:n}),s.push({id:a,writeCallback:r,data:t}),a+=1},finish:function(t){l(),s.length?(s.forEach((function(t){delete t.writeCallback})),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map((function(t){return delete t.writeCallback,delete t.finishCallback,t.data})).join("");return C(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}function za(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),h=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]),l=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},U=function(t,e,a){var n,r,s=new Array(16),h=0;for(n=1;n<=i;n++)s[n]=h=h+a[n-1]<<1;for(r=0;r<=e;r++){var l=t[2*r+1];0!==l&&(t[2*r]=A(s[l]++,l))}},I=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},B=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},E=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},S=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&E(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!E(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},C=function(t,e,n){var r,i,l,_,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(l=f[i],x(t,l+a+1,e),0!==(_=s[l])&&(i-=c[l],z(t,i,_)),r--,l=y(r),x(t,l,n),0!==(_=h[l])&&(r-=v[l],z(t,r,_)))}while(o<t.last_lit);x(t,256,e)},D=function(t,e){var a,n,r,s=e.dyn_tree,h=e.stat_desc.static_tree,l=e.stat_desc.has_stree,_=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<_;
vendor: 4,117 bytes, line 1
1a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,l&&(t.static_len-=h[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)S(t,s,a);r=_;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(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++,S(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(_[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=_[2*_[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),_[2*n+1]=s,n>o||(t.bl_count[s]++,h=0,n>=c&&(h=f[n-c]),l=_[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));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||(_[2*r+1]!==s&&(t.opt_len+=(s-_[2*r+1])*_[2*r],_[2*r+1]=s),n--)}}(t,e),U(s,o,t.bl_count)},j=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},M=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{x(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),h--),x(t,16,t.bl_tree),z(t,h-3,2)):h<=10?(x(t,17,t.bl_tree),z(t,h-3,3)):(x(t,18,t.bl_tree),z(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},L=!1,T=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){B(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},H=function(t,e,n,r){var i,s,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),h=function(t){var e;for(j(t,t.dyn_ltree,t.l_desc.max_code),j(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*_[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?T(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),C(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*_[r]+1],3);M(t,t.dyn_ltree,e-1),M(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),C(t,t.dyn_ltree,t.dyn_dtree)),I(t),r&&B(t)},R={_tr_init:function(t){L||(!function(){var t,e,a,_,m,y=new Array(16);for(a=0,_=0;_<28;_++)for(c[_]=a,t=0;t<1<<s[_];t++)f[a++]=_;for(f[a-1]=_,m=0,_=0;_<16;_++)for(v[_]=m,t=0;t<1<<h[_];t++)u[m++]=_;for(m>>=7;_<r;_++)for(v[_]=m<<7,t=0;t<1<<h[_]-7;t++)u[256+m++]=_;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(U(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,h,0,r,i),w=new b(new Array(0),l,0,19,7)}(),L=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,I(t)},_tr_stored_block:T,_tr_flush_block:H,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>
1=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},K=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},N=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}()),O=function(t,e,a,n){var r=N,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return~t},q={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"},F=0,G=2,J=3,P=4,Q=0,V=1,W=-1,X=0,Y=8,Z=R._tr_init,$=R._tr_stored_block,tt=R._tr_flush_block,et=R._tr_tally,at=R._tr_align,nt=F,rt=1,it=J,st=P,ht=5,lt=Q,_t=V,ot=-2,dt=-3,ut=-5,ft=W,ct=1,pt=2,gt=3,wt=4,vt=X,bt=2,mt=Y,yt=258,kt=262,zt=103,xt=113,At=666,Ut=function(t,e){return t.msg=q[e],e},It=function(t){return(t<<1)-(t>4?9:0)},Bt=function(t){for(var e=t.length;--e>=0;)t[e]=0},Et=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},St=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Ct=function(t,e){tt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Dt=function(t,e){t.pending_buf[t.pending++]=e},jt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Mt=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-kt?t.strstart-(t.w_size-kt):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+yt,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=yt-(u-i),i=u-yt,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead},Lt=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-kt)){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,h=t.window,l=t.strstart+t.lookahead,_=r,o=void 0,(o=s.avail_in)>_&&(o=_),a=0===o?0:(s.avail_in-=o,h.set(s.input.subarray(s.next_in,s.next_in+o),l),1===s.state.wrap?s.adler=K(s.adler,h,o,l):2===s.state.wrap&&(s.adler=O(s.adler,h,o,l)),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=Et(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Et(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<kt&&0!==t.strm.avail_in)},Tt=function(t,e){for(var a,n;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(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-kt&&(t.match_length=Mt(t,a)),t.match_length>=3)if(n=et(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=Et(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=Et(t,t.ins_h,t.window[t.strstart+1]);else n=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2},Ht=function(t,e){for(var a,n,r;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a),t.match_length<=5&&(t.strategy===ct||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=et(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=Et(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&&(Ct(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=et(t,0,t.window[t.strstart-1]))&&Ct(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=et(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(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 Kt=[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(Lt(t),0===t.lookahead&&e===nt)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,Ct(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-kt&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ct(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Tt),new Rt(4,5,16,8,Tt),new Rt(4,6,32,32,Tt),new Rt(4,4,16,16,Ht),new Rt(8,16,32,32,Ht),new Rt(8,16,128,128,Ht),new Rt(8,32,128,256,Ht),new Rt(32,128,258,1024,Ht),new Rt(32,258,258,4096,Ht)];function Nt(){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=mt,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),Bt(this.dyn_ltree),Bt(this.dyn_dtree),Bt(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),Bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Bt(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 Ot=function(t){if(!t||!t.state)return Ut(t,ot);t.total_in=t.total_out=0,t.data_type=bt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:xt,t.adler=2===e.wrap?0:1,e.last_flush=nt,Z(e),lt},qt=function(t){var e,a=Ot(t);return a===lt&&((e=t.state).window_size=2*e.w_size,Bt(e.head),e.max_lazy_match=Kt[e.level].max_lazy,e.good_match=Kt[e.level].good_length,e.nice_match=Kt[e.level].nice_length,e.max_chain_length=Kt[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},Ft=function(t,e,a,n,r,i){if(!t)return ot;var s=1;if(e===ft&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==mt||n<8||n>15||e<0||e>9||i<0||i>wt)return Ut(t,ot);8===n&&(n=9);var h=new Nt;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,qt(t)},Gt={deflateInit:function(t,e){return Ft(t,e,mt,15,8,vt)},deflateInit2:Ft,deflateReset:qt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?ot:(t.state.gzhead=e,lt):ot},deflate:function(t,e){var a,n;if(!t||!t.state||e>ht||e<0)return t?Ut(t,ot):ot;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===At&&e!==st)return Ut(t,0===t.avail_out?ut:ot);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Dt(r,31),Dt(r,139),Dt(r,8),r.gzhead?(Dt(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)),Dt(r,255&r.gzhead.time),Dt(r,r.gzhead.time>>8&255),Dt(r,r.gzhead.time>>16&255),Dt(r,r.gzhead.time>>24&255),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Dt(r,255&r.gzhead.extra.length),Dt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,3),r.status=xt);else{var s=mt+(r.w_bits-8<<4)<<8;s|=(r.strategy>
1=pt||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=xt,jt(r,s),0!==r.strstart&&(jt(r,t.adler>>>16),jt(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=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending!==r.pending_buf_size));)Dt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(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=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(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=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=zt)}else r.status=zt;if(r.status===zt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&St(t),r.pending+2<=r.pending_buf_size&&(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),t.adler=0,r.status=xt)):r.status=xt),0!==r.pending){if(St(t),0===t.avail_out)return r.last_flush=-1,lt}else if(0===t.avail_in&&It(e)<=It(i)&&e!==st)return Ut(t,ut);if(r.status===At&&0!==t.avail_in)return Ut(t,ut);if(0!==t.avail_in||0!==r.lookahead||e!==nt&&r.status!==At){var h=r.strategy===pt?function(t,e){for(var a;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===nt)return 1;break}if(t.match_length=0,a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===gt?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=yt){if(Lt(t),t.lookahead<=yt&&e===nt)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+yt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=yt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=et(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):Kt[r.level].func(r,e);if(3!==h&&4!==h||(r.status=At),1===h||3===h)return 0===t.avail_out&&(r.last_flush=-1),lt;if(2===h&&(e===rt?at(r):e!==ht&&($(r,0,0,!1),e===it&&(Bt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),St(t),0===t.avail_out))return r.last_flush=-1,lt}return e!==st?lt:r.wrap<=0?_t:(2===r.wrap?(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),Dt(r,t.adler>>16&255),Dt(r,t.adler>>24&255),Dt(r,255&t.total_in),Dt(r,t.total_in>>8&255),Dt(r,t.total_in>>16&255),Dt(r,t.total_in>>24&255)):(jt(r,t.adler>>>16),jt(r,65535&t.adler)),St(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?lt:_t)},deflateEnd:function(t){if(!t||!t.state)return ot;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==zt&&e!==xt&&e!==At?Ut(t,ot):(t.state=null,e===xt?Ut(t,dt):lt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return ot;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return ot;if(1===r&&(t.adler=K(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(Bt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
1i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=Et(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,Lt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,lt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Jt=new Uint8Array(256),Pt=0;Pt<256;Pt++)Jt[Pt]=Pt>=252?6:Pt>=248?5:Pt>=240?4:Pt>=224?3:Pt>=192?2:1;Jt[254]=Jt[254]=1;var Qt=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},Vt=Object.prototype.toString,Wt=F,Xt=G,Yt=J,Zt=P,$t=Q,te=V,ee=W,ae=X,ne=Y;function re(){this.options={level:ee,method:ne,chunkSize:16384,windowBits:15,memLevel:8,strategy:ae};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 Qt,this.strm.avail_out=0;var e=Gt.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==$t)throw new Error(q[e]);if(t.header&&Gt.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Vt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Gt.deflateSetDictionary(this.strm,a))!==$t)throw new Error(q[e]);this._dict_set=!0}}function ie(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function se(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}re.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?Zt:Wt,"[object ArrayBuffer]"===Vt.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===Xt||n===Yt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Gt.deflate(r,n))===te)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Gt.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===$t;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},re.prototype.onData=function(t){this.chunks.push(t)},re.prototype.onEnd=function(t){t===$t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.35.1"};case"write":var n=e.get(a.streamId);n||(n=new re,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,G),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:se(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){ie(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){ie(e,t)}}()}();'])))}var Ba={status:0};function Va(t,e,n,r){switch(void 0===r&&(r=za),0===Ba.status&&function(t,e,n){void 0===n&&(n=za);try{var r=n(t),i=Z(t,r,"error",(function(n){qa(t,e,n)}
1)).stop,o=Z(t,r,"message",(function(n){var r,i=n.data;"errored"===i.type?qa(t,e,i.error,i.streamId):"initialized"===i.type&&(r=i.version,1===Ba.status&&(Ba={status:3,worker:Ba.worker,stop:Ba.stop,version:r}))})).stop;r.postMessage({action:"init"}),R((function(){return function(t){1===Ba.status&&(s.error("".concat(t," failed to start: a timeout occurred while initializing the Worker")),Ba.initializationFailureCallbacks.forEach((function(t){return t()})),Ba={status:2})}(e)}),3e4),Ba={status:1,worker:r,stop:function(){i(),o()},initializationFailureCallbacks:[]}}catch(n){qa(t,e,n)}}(t,e,r),Ba.status){case 1:return Ba.initializationFailureCallbacks.push(n),Ba.worker;case 3:return Ba.worker}}function Fa(){return Ba.status}function qa(t,e,n,r){if(1===Ba.status||0===Ba.status){if(s.error("".concat(e," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&(y(o=n.message,"Content Security Policy")||y(o,"requires 'TrustedScriptURL'"))){var i;i=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.",s.error("".concat(i," See documentation at ").concat(u,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else oe(n);1===Ba.status&&Ba.initializationFailureCallbacks.forEach((function(t){return t()})),Ba={status:2}}else oe(n,{worker_version:3===Ba.status&&Ba.version,stream_id:r});var o}function ja(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function Ha(t,e,n,r){var i=e.findTrackedSession(),o=function(t,e){return ja()?t?0===t.sessionReplay?"incorrect-session-plan":e?void 0:"replay-not-started":"rum-not-tracked":"browser-not-supported"}(i,r);return function(t,e){var n=e.session,r=e.viewContext,i=e.errorType,o=n?n.id:"no-session-id",a=[];void 0!==i&&a.push("error-type=".concat(i)),r&&(a.push("seed=".concat(r.id)),a.push("from=".concat(r.startClocks.timeStamp)));var s,u,c,l=(u=(s=t).site,c=s.subdomain||function(t){switch(t.site){case Et:case"datadoghq.eu":return"app";case Tt:return"dd";default:return}}(s),"https://".concat(c?"".concat(c,"."):"").concat(u)),d="/rum/replay/sessions/".concat(o);return"".concat(l).concat(d,"?").concat(a.join("&"))}(t,{viewContext:n.findView(),errorType:o,session:i})}var Ga,Wa,Ka,Ja=function(t){if(ye()&&!ge("records")||!ja())return{start:L,stop:L,getReplayStats:function(){},onRumStart:L,isRecording:function(){return!1},getSessionReplayLink:function(){}};var e,n=(e=0,{strategy:{start:function(){e=1},stop:function(){e=2},isRecording:function(){return!1},getSessionReplayLink:L},shouldStartImmediately:function(t){return 1===e||0===e&&!t.startSessionReplayRecordingManually}}),r=n.strategy,i=n.shouldStartImmediately;return{start:function(t){return r.start(t)},stop:function(){return r.stop()},getSessionReplayLink:function(){return r.getSessionReplayLink()},onRumStart:function(e,n,o,a,s){var u;r=function(t,e,n,r,i,o){var a,s=0;function u(u){var c=n.findTrackedSession();!function(t,e){return!t||0===t.sessionReplay&&(!e||!e.force)}(c,u)?function(t){return 2===t||3===t}(s)||(s=2,Bi(t,"interactive",(function(){if(2===s){var u=o();u?(a=i(e,t,n,r,u).stop,s=3):s=0}})),function(t,e){return e&&e.force&&0===t.sessionReplay}(c,u)&&n.setForcedReplay()):s=1}function c(){0!==s&&3===s&&(null==a||a()),s=0}return e.subscribe(9,(function(){2!==s&&3!==s||(c(),s=1)})),e.subscribe(11,(function(t){t.reason===Mn.UNLOADING&&c()})),e.subscribe(10,(function(){1===s&&u()})),{start:u,stop:c,getSessionReplayLink:function(){return Ha(t,n,r,0!==s)},isRecording:function(){return 3===s}}}(n,e,o,a,t,(function(){return u||(null!=s||(s=Va(n,"Datadog Session Replay",(function(){r.stop()}),undefined)),s&&(u=Ua(n,s,1))),u})),i(n)&&r.start()},isRecording:function(){return 3===Fa()&&r.isRecording()},getReplayStats:function(t){return 3===Fa()?function(t){return null==Go?void 0:Go.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a,s=[],u=o||To(e.sessionReplayEndpointBuilder,6e4,(function(e){t.notify(14,{error:e}),ie("Error reported to customer",{"error.message":e.message})}));if(ye())a=function(t){var e=me();return{addRecord:function(n){var r=t.findView();e.send("record",n,r.id)}}}(r).addRecord;else{var c=Pa(t,e,n,r,u,i);a=c.addRecord,s.push(c.stop)}var l=function(t){var e=t.emit,n=t.configuration,r=t.lifeCycle;if(!e)throw new Error("emit function is required");var i,o=function(n){e(n),Kt("record",{record:n}),Jo(t.viewHistory.findView().id).records_count+=1},a=(i=new WeakMap,{set:function(t,e){(t!==document||document.scrollingElement)&&i.set(t===document?document.scrollingElement:t,e)},get:function(t){return i.get(t)},has:function(t){return i.has(t)}}),s=function(t,e,n){var r=new Map,i={addShadowRoot:function(o){if
1(!r.has(o)){var a=Ma(e,t,i,o),s=Oa(t,e,o),u=ka(t,e,n,o);r.set(o,{flush:function(){return a.flush()},stop:function(){a.stop(),s.stop(),u.stop()}})}},removeShadowRoot:function(t){var e=r.get(t);e&&(e.stop(),r.delete(t))},stop:function(){r.forEach((function(t){return(0,t.stop)()}))},flush:function(){r.forEach((function(t){return(0,t.flush)()}))}};return i}(n,o,a),u=function(t,e,n,r,i,o){var a=function(n,i){void 0===n&&(n=Bt()),void 0===i&&(i={status:0,elementsScrollPositions:t,shadowRootsController:e});var o=co(),a=o.width,s=[{data:{height:o.height,href:window.location.href,width:a},type:4,timestamp:n},{data:{has_focus:document.hasFocus()},type:6,timestamp:n},{data:{node:pa(document,r,i),initialOffset:{left:ao(),top:so()}},type:2,timestamp:n}];return window.visualViewport&&s.push({data:ga(window.visualViewport),type:8,timestamp:n}),s};return o(a()),{stop:n.subscribe(2,(function(n){i(),o(a(n.startClocks.timeStamp,{shadowRootsController:e,status:1,elementsScrollPositions:t}))})).unsubscribe}}(a,s,r,n,c,(function(t){return t.forEach((function(t){return o(t)}))})).stop;function c(){s.flush(),d.flush()}var l=function(){var t=new WeakMap,e=1;return{getIdForEvent:function(n){return t.has(n)||t.set(n,e++),t.get(n)}}}(),d=Ma(o,n,s,document),f=[d,_a(n,o),Sa(n,o,l),ka(n,o,a,document),Ca(n,o),Oa(n,o),Ta(n,o),Ea(o),Ra(n,o),xa(n,o),Ia(r,o,l),Na(r,(function(t){c(),o(t)}))];return{stop:function(){s.stop(),f.forEach((function(t){return t.stop()})),u()},flushMutations:c,shadowRootsController:s}}({emit:a,configuration:e,lifeCycle:t,viewHistory:r}).stop;return s.push(l),{stop:function(){s.forEach((function(t){return t()}))}}})),Ya=function(t,e,n){void 0===n&&(n={});var r,i,o=function(t){void 0===t&&(t=2);var e=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==t){var i=2===t?3072:16384,o=r;e.forEach((function(t){o+=t.getBytesCount()})),o>i&&(function(t){s.warn("Customer data exceeds the recommended ".concat(t/1024,"KiB threshold. ").concat(l," ").concat(c,"/#customer-data-exceeds-the-recommended-threshold-warning"))}(i),n=!0)}}return{createDetachedTracker:function(){var t=V((function(){return r(t.getBytesCount())}));return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,V(r)),e.get(t)},setCompressionStatus:function(e){0===t&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach((function(t){return t.stop()})),e.clear()}}}(0),a=X(o.getOrCreateTracker(2)),u=X(o.getOrCreateTracker(1)),d={tryToInit:function(t){r||(r=t)},update:function(t){r=t,i.notify()},isGranted:function(){return r===$.GRANTED},observable:i=new J},p={vitalsByName:new Map,vitalsByReference:new WeakMap};function g(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(a,u,e)}var w,S,k=On(n,g,d,p,(function(t,r,i){t.storeContextsAcrossPages&&(et(t,a,"rum",2),et(t,u,"rum",1)),o.setCompressionStatus(r?1:2);var s=function(t,e,n,r,i,o,a,s){var u=[],c=new Wn;c.subscribe(13,(function(t){return Kt("rum",t)}));var l=function(t){var e=function(t,e){var n,r,i=new J,o=new Set,a=!y(ee,e.site)&&Rt(e.telemetrySampleRate),s=((n={})[$t]=a,n[Zt]=a&&Rt(e.telemetryConfigurationSampleRate),n[Qt]=a&&Rt(e.telemetryUsageSampleRate),n),u={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return re=function(n){var a=D(n);if(s[n.type]&&o.size<e.maxTelemetryEventsPerPage&&!o.has(a)){var c=function(t,e,n){return H({type:"telemetry",date:Bt(),service:t,version:"5.35.1",source:"browser",_dd:{format_version:2},telemetry:H(e,{runtime_env:n,connectivity:Jt(),sdk_setup:"npm"}),experimental_features:_(Ct)},void 0!==r?r():{})}(t,n,u);i.notify(c),Kt("telemetry",c),o.add(a)}},f=oe,{setContextProvider:function(t){r=t},observable:i,enabled:a}}("browser-rum-sdk",t);if(ye()){var n=me();e.observable.subscribe((function(t){return n.send("internal_telemetry",t)}))}return e}(t);l.setContextProvider((function(){var e,n;return{application:{id:t.applicationId},session:{id:null===(e=g.findTrackedSession())||void 0===e?void 0:e.id},view:{id:null===(n=P.findView())||void 0===n?void 0:n.id},action:{id:B.findActionId()}}}));var d=function(t){c.notify(14,{error:t}),ie("Error reported to customer",{"error.message":t.message})},p=function(t,e){var n=Jn({expireDelay:Do});return t.subscribe(1,(function(t){var r=t.startClocks;n.add({},r.relative),e.resetCustomerData()})),t.subscribe(6,(function(t){var e=t.endClocks;n.closeActive(e.relative)})),{findFeatureFlagEvaluations:function(t){return n.find(t)},addFeatureFlagEvaluation:function(t,r){var i=n.find();i&&(i[t]=r,e.updateCustomerData(i))},stop:function(){return e.stop()}}}
1(c,n.getOrCreateTracker(0)),v=function(t){return new J((function(e){var n=Q(t,window,["visibilitychange","freeze"],(function(t){"visibilitychange"===t.type&&"hidden"===document.visibilityState?e.notify({reason:Mn.HIDDEN}):"freeze"===t.type&&e.notify({reason:Mn.FROZEN})}),{capture:!0}).stop,r=Z(t,window,"beforeunload",(function(){e.notify({reason:Mn.UNLOADING})})).stop;return function(){n(),r()}}))}(t),m=v.subscribe((function(t){c.notify(11,t)}));u.push((function(){return m.unsubscribe()}));var g=ye()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:ge("records")?1:0};return{findTrackedSession:function(){return t},expire:L,expireObservable:new J,setForcedReplay:L}}():function(t,e,n){var r=mo(t,"rum",(function(e){return function(t,e){var n;return{trackingType:n=function(t){return"0"===t||"1"===t||"2"===t}(e)?e:Rt(t.sessionSampleRate)?Rt(t.sessionReplaySampleRate)?"1":"2":"0",isTracked:go(n)}}(t,e)}),n);return r.expireObservable.subscribe((function(){e.notify(9)})),r.renewObservable.subscribe((function(){e.notify(10)})),r.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,n=t.newState;if(!e.forcedReplay&&n.forcedReplay){var i=r.findSession();i&&(i.isReplayForced=!0)}})),{findTrackedSession:function(t){var e=r.findSession(t);if(e&&go(e.trackingType))return{id:e.id,sessionReplay:"1"===e.trackingType?1:e.isReplayForced?2:0,anonymousId:e.anonymousId}},expire:r.expire,expireObservable:r.expireObservable,setForcedReplay:function(){return r.updateSessionState({forcedReplay:"1"})}}}(t,c,a);if(ye())!function(t){var e=me();t.subscribe(13,(function(t){e.send("rum",t)}))}(c);else{var w=function(t,e,n,r,i,o,a){var s=t.replica,u=function(t,e,n,r,i,o,a){void 0===a&&(a=yo);var s=c(t,e),u=n&&c(t,n);function c(t,e){var n=e.endpoint,s=e.encoder;return a({encoder:s,request:To(n,t.batchBytesLimit,r),flushController:Ro({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),messageBytesLimit:t.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),s.add(t),u&&e&&u.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){s.upsert(t,e),u&&u.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){s.stop(),u&&u.stop()}}}(t,{endpoint:t.rumEndpointBuilder,encoder:a(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(t){return H(t,{application:{id:s.applicationId}})},encoder:a(3)},r,i,o);return e.subscribe(13,(function(t){"view"===t.type?u.upsert(t,t.view.id):u.add(t)})),n.subscribe((function(e){return u.add(e,function(t){return t.site===Tt}(t))})),u}(t,c,l.observable,d,v,g.expireObservable,o);u.push((function(){return w.stop()})),function(t,e,n,r,i){e.enabled&&Rt(t.customerDataTelemetrySampleRate)&&(Bo(),Vo(),n.subscribe(13,(function(t){Lo=!0,Uo(Mo.globalContextBytes,r.getOrCreateTracker(2).getBytesCount()),Uo(Mo.userContextBytes,r.getOrCreateTracker(1).getBytesCount()),Uo(Mo.featureFlagBytes,y(["view","error"],t.type)?r.getOrCreateTracker(0).getBytesCount():0)})),i.subscribe((function(t){var e=t.bytesCount,n=t.messagesCount;Lo&&(Oo.batchCount+=1,Uo(Oo.batchBytesCount,e),Uo(Oo.batchMessagesCount,n),zo(Oo.globalContextBytes,Mo.globalContextBytes),zo(Oo.userContextBytes,Mo.userContextBytes),zo(Oo.featureFlagBytes,Mo.featureFlagBytes),Vo())})),N(Po,1e4))}(t,l,c,n,w.flushObservable)}var S,k,x,T=(S=Dn(),new J((function(t){if(S){var e=new S(h((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),E=function(t,e){var n=U(e);return new J((function(r){var i=function(t,e){var n=_e(No("pushState"),"pushState",(function(t){(0,t.onPostCall)(e)})).stop,r=_e(No("replaceState"),"replaceState",(function(t){(0,t.onPostCall)(e)})).stop,i=Z(t,window,"popstate",e).stop;return{stop:function(){n(),r(),i()}}}(t,a).stop,o=function(t,e){return Z(t,window,"hashchange",e)}(t,a).stop;function a(){if(n.href!==e.href){var t=U(e);r.notify({newLocation:t,oldLocation:n}),n=t}}return function(){i(),o()}}))}(t,location),A=function(t,e){void 0===e&&(e=500);var n,r=Jn({expireDelay:Fo,maxEntries:4e3});o(qo(),Vt());var i=Q(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],(function(t){o(function(t){return"freeze"===t.type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":qo()}(t),t.timeStamp)}),{capture:!0}).stop;function o(t,e){void 0===e&&(e=Vt()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}var a={findAll:function(t,n){var i=r.findAll(t,n);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-e),s=i.length-1;s>=a;s--){var u=i[s],c=jt(t,u.startTime);o.push({state:u.state,start:Ut(c)})}return o}},wasInPageStateAt:function(t,e){return a.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,n){return r.findAll(e,n).some((function(e){return e.state===t}))},addPageState:o,stop:function(){i(),r.stop()}};return a}
1(t),R=(k=new J,x=_e(window,"open",(function(){return k.notify()})).stop,{observable:k,stop:x}),I=R.observable,O=R.stop;u.push(O);var M=function(t,e,n,r,i,o,a,s,u,c){var l=function(t){var e=Jn({expireDelay:Xn});return t.subscribe(1,(function(t){e.add(function(t){return{service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(6,(function(t){var n=t.endClocks;e.closeActive(n.relative)})),t.subscribe(3,(function(t){var n=e.find(t.startClocks.relative);n&&t.name&&(n.name=t.name),n&&t.context&&(n.context=t.context)})),t.subscribe(10,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),d=function(t,e,n){var r,i=Jn({expireDelay:Io});t.subscribe(1,(function(t){var e=t.startClocks,o=n.href;i.add(a({url:o,referrer:r||document.referrer}),e.relative),r=o})),t.subscribe(6,(function(t){var e=t.endClocks;i.closeActive(e.relative)}));var o=e.subscribe((function(t){var e=t.newLocation,n=i.find();if(n){var r=Vt();i.closeActive(r),i.add(a({url:e.href,referrer:n.referrer}),r)}}));function a(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,o,n),f=function(t,e,n,r,i){var o;t.subscribe(0,(function(e){return t.notify(12,Ei(e,i))}));var a={findActionId:L},s=L;return r.trackUserInteractions&&(a=(o=xi(t,e,n,r)).actionContexts,s=o.stop),{addAction:function(e,n){t.notify(12,C({savedCommonContext:n},Ei(e,i)))},actionContexts:a,stop:s}}(t,a,s,e,i),p=function(t){var e,n;xt(yt.DELAY_VIEWPORT_COLLECTION)?n=requestAnimationFrame((function(){e=co()})):e=co();var r=uo(t).subscribe((function(t){e=t})).unsubscribe;return{get:function(){return e?{viewport:e}:void 0},stop:function(){r(),n&&cancelAnimationFrame(n)}}}(e),v=function(t,e){var n;void 0===e&&(e=function(t,e){var n=window.cookieStore?function(t){return function(e,n){return Z(t,window.cookieStore,"change",(function(t){var r=b(t.changed,(function(t){return t.name===e}))||b(t.deleted,(function(t){return t.name===e}));r&&n(r.value)})).stop}}(t):Ho;return new J((function(t){return n(e,(function(e){return t.notify(e)}))}))}(t,Wo));var r=Oe(Wo)||(null===(n=window.Cypress)||void 0===n?void 0:n.env("traceId")),i=e.subscribe((function(t){r=t}));return{get:function(){if("string"==typeof r)return{test_execution_id:r}},stop:function(){return i.unsubscribe()}}}(e);return Gn(e,t,r,l,d,f.actionContexts,p,v,u,c),{viewHistory:l,pageStateHistory:i,urlContexts:d,addAction:f.addAction,actionContexts:f.actionContexts,stop:function(){f.stop(),v.stop(),p.stop(),d.stop(),l.stop(),i.stop()}}}(c,t,location,g,A,E,T,I,r,d),P=M.viewHistory,z=M.urlContexts,B=M.actionContexts,V=M.addAction,F=M.stop;u.push(F),ne.drain();var q=po(c,t,location,T,I,E,p,A,e,i),j=q.addTiming,G=q.startView,W=q.setViewName,K=q.setViewContext,Y=q.setViewContextProperty,X=q.stop;u.push(X);var $=Gi(c,t,A).stop;if(u.push($),xt(yt.LONG_ANIMATION_FRAME)){if(t.trackLongTasks){var tt=function(t,e){var n=Sr(e,{type:hr.LONG_ANIMATION_FRAME,buffered:!0}).subscribe((function(e){for(var n=0,r=e;n<r.length;n++){var i=r[n],o=Pt(i.startTime),a={date:o.timeStamp,long_task:{id:le(),entry_type:"long-animation-frame",duration:Ut(i.duration),blocking_duration:Ut(i.blockingDuration),first_ui_event_timestamp:Ut(i.firstUIEventTimestamp),render_start:Ut(i.renderStart),style_and_layout_start:Ut(i.styleAndLayoutStart),start_time:Ut(i.startTime),scripts:i.scripts.map((function(t){return{duration:Ut(t.duration),pause_duration:Ut(t.pauseDuration),forced_style_and_layout_duration:Ut(t.forcedStyleAndLayoutDuration),start_time:Ut(t.startTime),execution_start:Ut(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}}))},type:"long_task",_dd:{discarded:!1}};t.notify(12,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i}})}}));return{stop:function(){return n.unsubscribe()}}}(c,t).stop;u.push(tt)}}else!function(t,e){Sr(e,{type:hr.LONG_TASK,buffered:!0}).subscribe((function(n){for(var r=0,i=n;r<i.length;r++){var o=i[r];if(o.entryType!==hr.LONG_TASK)break;if(!e.trackLongTasks)break;var a=Pt(o.startTime),s={date:a.timeStamp,long_task:{id:le(),entry_type:"long-task",duration:Ut(o.duration)},type:"long_task",_dd:{discarded:!1}};t.notify(12,{rawRumEvent:s,startTime:a.relative,domainContext:{performanceEntry:o}})}}))}(c,t);var et=Li(c,t,A,p).addError;yr(c,t,g);var nt=function(t,e,n){function r(n){(function(t){return!e.wasInPageStateDuringPeriod("frozen",t.startClocks.relative,t.duration)})(n)&&t.notify(12,function(t){return{rawRumEvent:{date:t.startClocks.timeStamp,vital:{id:le(),type:t.type,name:t.name,duration:Ut(t.duration),description:t.description},type:"vital",_dd:{vital:{computed_value:!0}}},startTime:t.startClocks.relative,customerContext:t.context,domainContext:{}}}(n))}return{addDurationVital:r,startDurationVital:function(t,e){return void 0===e&&(e={}),ve(n,t,e)},stopDurationVital:function(t,e){void 0===e&&(e={}),he(r,n,t,e)}}}(c,A,s),rt=function(t,e,n,r,i){return{get:function(o){var a=n.findView(o),s=i.findUrl(o),u=e.findTrackedSession(o);if(u&&a&&s){var c=r.findActionId(o);return{application_id:t,session_id:u.id,user_action:c?{id:c}:void 0,view:{id:a.id,name:a.name,referrer:s.referrer,url:s.url}}}}}}(t.applicationId,g,P,B,z);return{addAction:V,addError:et,addTiming:j,addFeatureFlagEvaluation:p.addFeatureFlagEvaluation,startView:G,setViewContext:K,setViewContextProperty:Y,setViewName:W,life
1Cycle:c,viewHistory:P,session:g,stopSession:function(){return g.expire()},getInternalContext:rt.get,startDurationVital:nt.startDurationVital,stopDurationVital:nt.stopDurationVital,addDurationVital:nt.addDurationVital,stop:function(){u.forEach((function(t){return t()}))}}}(t,e,o,g,i,r&&n.createDeflateEncoder?function(e){return n.createDeflateEncoder(t,r,e)}:nt,d,p);return e.onRumStart(s.lifeCycle,t,s.session,s.viewHistory,r),k=function(t,e){return C({init:function(t){ce("DD_RUM",t)},initConfiguration:t.initConfiguration},e)}(k,s),s})),x=h((function(t){var e="object"==typeof t?t:{name:t};e.context&&o.getOrCreateTracker(3).updateCustomerData(e.context),k.startView(e),ae({feature:"start-view"})})),T=(w={init:h((function(t){k.init(t,T)})),setTrackingConsent:h((function(t){d.update(t),ae({feature:"set-tracking-consent",tracking_consent:t})})),setViewName:h((function(t){k.setViewName(t)})),setViewContext:h((function(t){k.setViewContext(t)})),setViewContextProperty:h((function(t,e){k.setViewContextProperty(t,e)})),setGlobalContext:h((function(t){a.setContext(t),ae({feature:"set-global-context"})})),getGlobalContext:h((function(){return a.getContext()})),setGlobalContextProperty:h((function(t,e){a.setContextProperty(t,e),ae({feature:"set-global-context"})})),removeGlobalContextProperty:h((function(t){return a.removeContextProperty(t)})),clearGlobalContext:h((function(){return a.clearContext()})),getInternalContext:h((function(t){return k.getInternalContext(t)})),getInitConfiguration:h((function(){return j(k.initConfiguration)})),addAction:function(t,e){var n=ht();m((function(){k.addAction({name:G(t),context:G(e),startClocks:Ft(),type:"custom",handlingStack:n}),ae({feature:"add-action"})}))},addError:function(t,e){var n=ht();m((function(){k.addError({error:t,handlingStack:n,context:G(e),startClocks:Ft()}),ae({feature:"add-error"})}))},addTiming:h((function(t,e){k.addTiming(G(t),e)})),setUser:h((function(t){(function(t){var e="object"===F(t);return e||s.error("Unsupported user:",t),e})(t)&&u.setContext(ue(t)),ae({feature:"set-user"})})),getUser:h((function(){return u.getContext()})),setUserProperty:h((function(t,e){var n,r=ue((n={},n[t]=e,n))[t];u.setContextProperty(t,r),ae({feature:"set-user"})})),removeUserProperty:h((function(t){return u.removeContextProperty(t)})),clearUser:h((function(){return u.clearContext()})),startView:x,stopSession:h((function(){k.stopSession(),ae({feature:"stop-session"})})),addFeatureFlagEvaluation:h((function(t,e){k.addFeatureFlagEvaluation(G(t),G(e)),ae({feature:"add-feature-flag-evaluation"})})),getSessionReplayLink:h((function(){return e.getSessionReplayLink()})),startSessionReplayRecording:h((function(t){e.start(t),ae({feature:"start-session-replay-recording",force:t&&t.force})})),stopSessionReplayRecording:h((function(){return e.stop()})),addDurationVital:h((function(t,e){var n;ae({feature:"add-duration-vital"}),k.addDurationVital({name:G(t),type:"duration",startClocks:(n=e.startTime,{relative:Gt(n),timeStamp:n}),duration:e.duration,context:G(e&&e.context),description:G(e&&e.description)})})),startDurationVital:h((function(t,e){return ae({feature:"start-duration-vital"}),k.startDurationVital(G(t),{context:G(e&&e.context),description:G(e&&e.description)})})),stopDurationVital:h((function(t,e){ae({feature:"stop-duration-vital"}),k.stopDurationVital("string"==typeof t?G(t):t,{context:G(e&&e.context),description:G(e&&e.description)})}))},S=C({version:"5.35.1",onReady:function(t){t()}},w),Object.defineProperty(S,"_setDebug",{get:function(){return v},enumerable:!1}),S);return T}(0,Ja,{startDeflateWorker:Va,createDeflateEncoder:Ua});Ga=x(),Wa=Ya,(Ka=Ga["DD_RUM"])&&!Ka.q&&Ka.version&&s.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),Ga.DD_RUM=Wa,Ka&&Ka.q&&Ka.q.forEach((function(t){return d(t,"onReady callback threw an error:")()}))}}]); 2//# sourceMappingURL=e3475fc704c3fd35f5eb.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.