1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,679094,e=>{"use strict";var t,n,r,o,i,a,s,c,u,l,f,d,p,v,g,m,y,h={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},b=console,S={};Object.keys(h).forEach(function(e){S[e]=b[e]});var w="Datadog Browser SDK:",k={debug:S.debug.bind(b,w),log:S.log.bind(b,w),info:S.info.bind(b,w),warn:S.warn.bind(b,w),error:S.error.bind(b,w)},C="https://docs.datadoghq.com",_="".concat(C,"/real_user_monitoring/browser/troubleshooting"),x="More details:";function E(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return e.apply(void 0,n)}catch(e){k.error(t,e)}}}var T=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},O=!1;function R(e){O=e}function L(e,t,n){var r=n.value;n.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(i?A(r):r).apply(this,e)}}function A(e){return function(){return I(e,this,arguments)}}function I(e,t,n){try{return e.apply(t,n)}catch(e){if(P(e),i)try{i(e)}catch(e){P(e)}}}function P(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];O&&k.error.apply(k,T(["[MONITOR]"],e,!1))}function M(e,t){return -1!==e.indexOf(t)}function D(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach(function(e){return t.push(e)});else for(var n=0;n<e.length;n++)t.push(e[n]);return t}function N(e){return Object.keys(e).map(function(t){return e[t]})}function B(e,t){return e.slice(0,t.length)===t}function U(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}),e}function q(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}var j=/[^\u0000-\u007F]/;function F(e){return j.test(e)?void 0!==window.TextEncoder?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function G(e,t){var n,r=q();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}function H(e,t){return G(q(),"setTimeout")(A(e),t)}function z(e){G(q(),"clearTimeout")(e)}function J(e,t){return G(q(),"setInterval")(A(e),t)}function K(e){G(q(),"clearInterval")(e)}function W(e,t,n){var r,o,i=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],c=0;c<arguments.length;c++)n[c]=arguments[c];if(s){r=n;return}i?e.apply(void 0,n):r=n,s=!0,o=H(function(){a&&r&&e.apply(void 0,r),s=!1,r=void 0},t)},cancel:function(){z(o),s=!1,r=void 0}}}function V(){}function $(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);var r=Y(Object.prototype),o=Y(Array.prototype),i=Y(Object.getPrototypeOf(e)),a=Y(e);try{return JSON.stringify(e,t,n)}catch(e){return"<error: unable to serialize object>"}finally{r(),o(),i(),a()}}function Y(e){var t=e.toJSON;return t?(delete e.toJSON,function(){e.toJSON=t}):V}function X(e,t){void 0===t&&(t=225280);var n=Y(Object.prototype),r=Y(Array.prototype),o=[],i=new WeakMap,a=Z(e,"$",void 0,o,i),s=JSON.stringify(a),c=s?s.length:0;if(c>t)return void Q(t,"discarded",e);for(;o.length>0&&c<t;){var u=o.shift(),l=0;if(Array.isArray(u.source))for(var f=0;f<u.source.length;f++){var d=Z(u.source[f],u.path,f,o,i);if(void 0!==d?c+=JSON.stringify(d).length:c+=4,c+=l,l=1,c>t){Q(t,"truncated",e);break}u.target[f]=d}else for(var f in u.source)if(Object.prototype.hasOwnProperty.call(u.source,f)){var d=Z(u.source[f],u.path,f,o,i);if(void 0!==d&&(c+=JSON.stringify(d).length+l+f.length+3,l=1),c>t){Q(t,"truncated",e);break}u.target[f]=d}}return n(),r(),a}function Z(e,t,n,r,o){var i,a=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(e){}return e}(e);if(!a||"object"!=typeof a){return"bigint"==typeof(i=a)?"[BigInt] ".concat(i.toString()):"function"==typeof i?"[Function] ".concat(i.name||"unknown"):"symbol"==typeof i?"[Symbol] ".concat(i.description||i.toString()):i}var s=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(e){}return"[Unserializable]"}(a);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;if(o.has(e))return"[Reference seen at ".concat(o.get(e),"]");var c=void 0!==n?"".concat(t,".").concat(n):t,u=Array.isArray(a)?[]:{};return o.set(e,c),r.push({source:a,target:u,path:c}),u}function Q(e,t,n){k.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}function ee(e){var t=[],n=eu(e,"stack"),r=String(e);return n&&B(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(function(e){var n=function(e){var t=er.exec(e);if(t){var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),o=eo.exec(t[2]);return r&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}}(e)||function(e){var t=ei.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:"?",line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=ea.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:+t[3],url:t[2]}}(e)||function(e){var t=es.exec(e);if(t){var n=t[3]&&t[3].indexOf(" > eval")>-1,r=ec.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}}(e);
1n&&(!n.func&&n.line&&(n.func="?"),t.push(n))}),{message:eu(e,"message"),name:eu(e,"name"),stack:t}}var et="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",en="(?::(\\d+))",er=RegExp("^\\s*at (.*?) ?\\(".concat(et).concat(en,"?").concat(en,"?\\)?\\s*$"),"i"),eo=new RegExp("\\((\\S*)".concat(en).concat(en,"\\)")),ei=RegExp("^\\s*at ?".concat(et).concat(en,"?").concat(en,"??\\s*$"),"i"),ea=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,es=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,ec=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function eu(e,t){if("object"==typeof e&&e&&t in e){var n=e[t];return"string"==typeof n?n:void 0}}var el=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function ef(){var e,t=Error();if(!t.stack)try{throw t}catch(e){V()}return I(function(){var n=ee(t);n.stack=n.stack.slice(2),e=ed(n)}),e}function ed(e){var t=ep(e);return e.stack.forEach(function(e){var n="?"===e.func?"<anonymous>":e.func,r=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",o=e.line?":".concat(e.line):"",i=e.line&&e.column?":".concat(e.column):"";t+="\n at ".concat(n).concat(r," @ ").concat(e.url).concat(o).concat(i)}),t}function ep(e){return"".concat(e.name||"Error",": ").concat(e.message)}var ev="No stack, consider using an instance of Error";function eg(e){var t,n,r,o,i,a,s=e.stackTrace,c=e.originalError,u=e.handlingStack,l=e.startClocks,f=e.nonErrorPrefix,d=e.source,p=e.handling,v=ey(c),g=(t=s,n=v,r=f,o=c,(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:n?"Empty message":"".concat(r," ").concat($(X(o)))),m=(i=v,void 0!==(a=s)&&(i||a.stack.length>0&&(a.stack.length>1||void 0!==a.stack[0].url)))?ed(s):ev,y=v?eh(c,d):void 0,h=s?s.name:void 0,b=em(c);return{startClocks:l,source:d,handling:p,handlingStack:u,originalError:c,type:h,message:g,stack:m,causes:y,fingerprint:b}}function em(e){return ey(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function ey(e){return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}function eh(e,t){for(var n=e,r=[];ey(null==n?void 0:n.cause)&&r.length<10;){var o=ee(n.cause);r.push({message:n.cause.message,source:t,type:null==o?void 0:o.name,stack:o&&ed(o)}),n=n.cause}return r.length?r:void 0}function eb(e,t){return Object.keys(e).some(function(n){return e[n]===t})}function eS(e){return 0===Object.keys(e).length}(t=a||(a={})).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";var ew=new Set,ek="datadoghq.com",eC=["ddsource","ddtags"],e_=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){t.observers=t.observers.filter(function(t){return e!==t}),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach(function(t){return t(e)})},e}();function ex(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new e_(function(t){var n=e.map(function(e){return e.subscribe(function(e){return t.notify(e)})});return function(){return n.forEach(function(e){return e.unsubscribe()})}})}function eE(){return new Date().getTime()}function eT(){return performance.now()}function eO(){return{relative:eT(),timeStamp:eE()}}function eR(){return void 0===s&&(s=performance.timing.navigationStart),s}function eL(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function eA(e){return 0!==e&&100*Math.random()<=e}function eI(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function eP(e,t,n){if(void 0===n&&(n=function(){if("u">typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;
1return n||t.push(e),n}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var o=Array.isArray(e)?e:[],i=0;i<t.length;++i)o[i]=eP(o[i],t[i],n);return o}var a="object"===eI(e)?e:{};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=eP(a[s],t[s],n));return a}}function eM(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=0;r<t.length;r++){var o=t[r];null!=o&&(e=eP(e,o))}return e}function eD(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function eN(){var e=[];return{add:function(t){e.push(t)>500&&e.splice(0,1)},remove:function(t){eD(e,t)},drain:function(t){e.forEach(function(e){return e(t)}),e.length=0}}}var eB="configuration",eU="usage",eq=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],ej=["ddog-gov.com"],eF=eN(),eG=function(e){eF.add(function(){return eG(e)})};function eH(e,t){P(h.debug,e,t),eG(U({type:"log",message:e,status:"debug"},t))}function ez(e,t){eG(U({type:"log",status:"error"},function(e){if(ey(e)){var t,n=ee(e);return{error:{kind:n.name,stack:ed(((t=n).stack=t.stack.filter(function(e){return!e.url||eq.some(function(t){return B(e.url,t)})}),t))},message:n.message}}return{error:{stack:ev},message:"".concat("Uncaught"," ").concat($(e))}}(e),t))}function eJ(e){var t={},n=new e_,r={getContext:function(){return eP(void 0,t)},setContext:function(o){"object"===eI(o)?(t=X(o),null==e||e.updateCustomerData(t)):r.clearContext(),n.notify()},setContextProperty:function(r,o){t[r]=X(o),null==e||e.updateCustomerData(t),n.notify()},removeContextProperty:function(r){delete t[r],null==e||e.updateCustomerData(t),n.notify()},clearContext:function(){t={},null==e||e.resetCustomerData(),n.notify()},changeObservable:n};return r}function eK(e){var t=U({},e);return["id","name","email"].forEach(function(e){e in t&&(t[e]=String(t[e]))}),t}function eW(e){var t=0,n=W(function(n){t=F($(n)),e()},200),r=n.throttled,o=n.cancel,i=function(){o(),t=0};return{updateCustomerData:function(e){eS(e)?i():r(e)},resetCustomerData:i,getBytesCount:function(){return t},stop:function(){o()}}}function eV(e,t,n,r,o){var i=void 0===o?{}:o,a=i.once,s=i.capture,c=i.passive,u=A(function(t){(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(a&&p(),r(t))}),l=c?{capture:s,passive:c}:s,f=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,d=G(f,"addEventListener");function p(){var e=G(f,"removeEventListener");n.forEach(function(n){return e.call(t,n,u,l)})}return n.forEach(function(e){return d.call(t,e,u,l)}),{stop:p}}var e$=[];function eY(e,t,n,r){var o,i,a=(o=n,i=r,"".concat("_dd_c","_").concat(o,"_").concat(i));function s(){var e=localStorage.getItem(a);return null!==e?JSON.parse(e):{}}e$.push(eV(e,window,["storage"],function(e){a===e.key&&t.setContext(s())},void 0)),t.changeObservable.subscribe(function(){localStorage.setItem(a,JSON.stringify(t.getContext()))}),t.setContext(eM(s(),t.getContext()))}function eX(e,t){t.silentMultipleInit||k.error("".concat(e," is already initialized."))}var eZ={GRANTED:"granted",NOT_GRANTED:"not-granted"},eQ="agent",e0="console",e1="logger",e2="source",e3="report";function e4(e,t,n){var r=n.getHandler(),o=Array.isArray(r)?r:[r];return e6[e]>=e6[n.getLevel()]&&M(o,t)}var e5={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},e6=((c={})[e5.ok]=0,c[e5.debug]=1,c[e5.info]=2,c[e5.notice]=4,c[e5.warn]=5,c[e5.error]=6,c[e5.critical]=7,c[e5.alert]=8,c[e5.emerg]=9,c);function e9(e,t){var n=(void 0===t?{}:t).includeMessage;return{stack:e.stack,kind:e.type,message:void 0!==n&&n?e.message:void 0,causes:e.causes,fingerprint:e.fingerprint,handling:e.handling}}var e8=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},e7="http",te=Object.keys(e5),tt=function(){function e(e,t,n,r,o,i){void 0===r&&(r=e7),void 0===o&&(o=e5.debug),void 0===i&&(i={}),this.handleLogStrategy=e,this.handlerType=r,this.level=o,this.contextManager=eJ(t),this.contextManager.setContext(i),n&&this.contextManager.setContextProperty("logger",{name:n})}return e.prototype.logImplementation=function(e,t,n,r,o){void 0===n&&(n=e5.info);var i,a=X(t);i=null!=r?eM({error:e9(eg({stackTrace:ey(r)?ee(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:e1,handling:"handled",startClocks:eO()}),{includeMessage:!0})},a):a,this.handleLogStrategy({message:X(e),context:i,status:n},this,o)},e.prototype.log=function(e,t,n,r){var o;void 0===n&&(n=e5.info),e4(n,e7,this)&&(o=ef()),this.logImplementation(e,t,n,r,o)},e.prototype.setContext=function(e){this.contextManager.setContext(e)},e.prototype.getContext=function(){return this.contextManager.getContext()},e.prototype.setContextProperty=function(e,t){this.contextManager.setContextProperty(e,t)},e.prototype.removeContextProperty=function(e){this.contextManager.removeContextProperty(e)},e.prototype.clearContext=function(){this.contextManager.clearContext()},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.getHandler=function(){return this.handlerType},e.prototype.setLevel=function(e){this.level=e},e.prototype.getLevel=function(){return this.level},e8([L],e.prototype,"logImplementation",null),e}();function tn(e){return function(t,n,r){var o;e4(e,e7,this)&&(o=ef()),this.logImplementation(t,n,e,r,o)}}function tr(){var e=q().DatadogEventBridge;if(e)return{getCapabilities:function(){var t;return JSON.parse((null==(t=e.getCapabilities)?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return null==(t=e.getPrivacyLevel)?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n,r){e.send(JSON.stringify({eventType:t,event:n,view:r?{id:r}:void 0}))}}}function to(e){void 0===e&&(e=null==(t=q().location)?void 0:t.hostname);var t,n=tr();return!!n&&n.getAllowedWebViewHosts().some(function(t){var n,r;return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r)})}function ti(e,t,n,r){var o=(void 0===r?{}:r).computeHandlingStack,i=e[t];if("function"!=typeof i)if(!(t in e&&B(t,"on")))return{stop:V};else i=V;var a=!1,s=function(){if(a)return i.apply(this,arguments);var e,t=D(arguments);I(n,null,[{target:this,parameters:t,onPostCall:function(t){e=t},handlingStack:o?ef():void 0}]);var r=i.apply(this,t);return e&&I(e,null,[r]),r};return e[t]=s,{stop:function(){a=!0,e[t]===s&&(e[t]=i)}}}function ta(e){return function(e,t){var n=function(){if(void 0===u)try{var e=new ts("http://test/path");u="http://test/path"===e.href}catch(e){u=!1}return u?ts:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(n){throw Error("Failed to construct URL: ".concat(String(n)," ").concat($({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw Error("Invalid URL: '".concat(e,"'"));var r=document,o=r.createElement("a");if(void 0!==t){var i=(r=document.implementation.createHTMLDocument("")).createElement("base");i.href=t,r.head.appendChild(i),r.body.appendChild(o)}return o.href=e,o}(e,location.href).href}tt.prototype.ok=tn(e5.ok),tt.prototype.debug=tn(e5.debug),tt.prototype.info=tn(e5.info),tt.prototype.notice=tn(e5.notice),tt.prototype.warn=tn(e5.warn),tt.prototype.error=tn(e5.error),tt.prototype.critical=tn(e5.critical),tt.prototype.alert=tn(e5.alert),tt.prototype.emerg=tn(e5.emerg);var ts=URL;function tc(){return l||(l=new e_(function(e){if(window.fetch)return ti(window,"fetch",function(t){var n,r,o,i,a,s,c,u,l,f,d;return n=t,r=e,o=n.parameters,i=n.onPostCall,a=n.handlingStack,s=o[0],void 0===(u=(c=o[1])&&c.method)&&s instanceof Request&&(u=s.method),l=void 0!==u?String(u).toUpperCase():"GET",f=s instanceof Request?s.url:ta(String(s)),d={state:"start",init:c,input:s,method:l,startClocks:eO(),url:f,handlingStack:a},void(r.notify(d),o[0]=d.input,o[1]=d.init,i(function(e){var t=r,n=e,o=d;function i(e){o.state="resolve",U(o,e),t.notify(o)}n.then(A(function(e){i({response:e,responseType:e.type,status:e.status,isAborted:!1})}),A(function(e){var t,n;i({status:0,isAborted:(null==(n=null==(t=o.init)?void 0:t.signal)?void 0:n.aborted)||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})}))}))},{computeHandlingStack:!0}).stop})),l}function tu(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,tu)}var tl=/([\w-]+)\s*=\s*([^;]+)/g;function tf(e,t,n,r){void 0===n&&(n=0);var o=new Date;o.setTime(o.getTime()+n);var i="expires=".concat(o.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",c=r&&r.secure?";secure":"",u=r&&r.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(i,";path=/;samesite=").concat(a).concat(s).concat(c).concat(u)}function td(e){var t=document.cookie;for(tl.lastIndex=0;;){var n=tl.exec(t);if(n){if(n[1]===e)return n[2]}else break}}function tp(e){return d||(d=function(e){var t=new Map;for(tl.lastIndex=0;;){var n=tl.exec(e);if(n)t.set(n[1],n[2]);else break}return t}(document.cookie)),d.get(e)}var tv="_dd_s",tg=144e5,tm=9e5,ty=31536e6,th="cookie",tb="local-storage",tS=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function tw(e){var t,n={isExpired:"1"};return t=a.ANONYMOUS_USER_TRACKING,ew.has(t)&&((null==e?void 0:e.anonymousId)?n.anonymousId=null==e?void 0:e.anonymousId:n.anonymousId=Math.floor(0x20000000000000*Math.random()).toString(36)),n}function tk(e){var t;return void 0!==e.isExpired||!((void 0===(t=e).created||eE()-Number(t.created)<tg)&&(void 0===t.expire||eE()<Number(t.expire)))}function tC(e){e.expire=String(eE()+tm)}function t_(e){return Object.keys(e).map(function(t){return[t,e[t]]}).map(function(e){var t=e[0],n=e[1];return"anonymousId"===t?"aid=".concat(n):"".concat(t,"=").concat(n)}).join("&")}function tx(e){var t={};return e&&(-1!==e.indexOf("&")||tS.test(e))&&e.split("&").forEach(function(e){var n=tS.exec(e);if(null!==n){var r=n[1],o=n[2];"aid"===r?t.anonymousId=o:t[r]=o}}),t}function tE(e){var t,n,r=((n={}).secure=!!(t=e).useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,n.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,n.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(n.domain=function(){if(void 0===p){for(var e="dd_site_test_".concat(tu()),t=window.location.hostname.split("."),n=t.pop();t.length&&!td(e);)tf(e,"test",1e3,{domain:n="".concat(t.pop(),".").concat(n)});tf(e,"",0,{domain:n}),p=n}return p}()),n);return!function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(tu()),n="test";tf(t,n,6e4,e);var r=td(t)===n;return tf(t,"",0,e),r}catch(e){return k.error(e),!1}}(r)?void 0:{type:th,cookieOptions:r}}function tT(){return tx(td(tv))}function tO(){try{var e=tu(),t="".concat("_dd_test_").concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:tb}:void 0}catch(e){return}}function tR(e){localStorage.setItem(tv,t_(e))}function tL(){return tx(localStorage.getItem(tv))}function tA(e){tR(tw(e))}var tI=[];function tP(e,t,n){void 0===n&&(n=0);var r,o,i=t.isLockEnabled,a=t.persistSession,s=t.expireSession,c=function(e){return a(U({},e,{lock:o}))},u=function(){var e=t.retrieveSession(),n=e.lock;return e.lock&&delete e.lock,{session:e,lock:n}};if(v||(v=e),e!==v)return void tI.push(e);if(i&&n>=100)return void tD(t);var l=u();if(i&&(l.lock||(o=tu(),c(l.session),(l=u()).lock!==o)))return void tM(e,t,n);var f=e.process(l.session);if(i&&(l=u()).lock!==o)return void tM(e,t,n);if(f&&(tk(f)?s(f):(tC(f),i?c(f):a(f))),i&&!(f&&tk(f))){if((l=u()).lock!==o)return void tM(e,t,n);a(l.session),f=l.session}null==(r=e.after)||r.call(e,f||l.session),tD(t)}function tM(e,t,n){H(function(){tP(e,t,n+1)},10)}function tD(e){v=void 0;var t=tI.shift();t&&tP(t,e)}function tN(e,t,n){var r=function(e,t){var n="/api/v2/".concat(t),r=e.proxy;if("string"==typeof r){var o=ta(r);return function(e){return"".concat(o,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(e)))}}if("function"==typeof r)return function(e){return r({path:n,parameters:e})};var i=function(e,t){var n=t.site,r=void 0===n?ek:n,o=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&r===ek)return"pci.browser-intake-datadoghq.com";if(o&&r===ek)return"".concat(o,".").concat(ek);if("dd0g-gov.com"===r)return"http-intake.logs.".concat(r);var i=r.split("."),a=i.pop();return"browser-intake-".concat(i.join("-"),".").concat(a)}(t,e);
1return function(e){return"https://".concat(i).concat(n,"?").concat(e)}}(e,t);return{build:function(o,i){var a,s,c,u,l,f,d,p,v,g,m;return r((a=e,s=t,c=n,u=o,l=i,f=a.clientToken,d=a.internalAnalyticsSubdomain,p=l.retry,v=l.encoding,g=["sdk_version:".concat("5.35.1"),"api:".concat(u)].concat(c),p&&g.push("retry_count:".concat(p.count),"retry_after:".concat(p.lastFailureStatus)),m=["ddsource=browser","ddtags=".concat(encodeURIComponent(g.join(","))),"dd-api-key=".concat(f),"dd-evp-origin-version=".concat(encodeURIComponent("5.35.1")),"dd-evp-origin=browser","dd-request-id=".concat(tu())],v&&m.push("dd-evp-encoding=".concat(v)),"rum"===s&&m.push("batch_time=".concat(eE())),d&&m.reverse(),m.join("&")))},urlPrefix:r(""),trackType:t}}function tB(e,t){var n,r=200-e.length-1;(t.length>r||(n=t,function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(n)))&&k.warn("".concat(e," value doesn't meet tag requirements and will be sanitized. ").concat(x," ").concat(C,"/getting_started/tagging/#defining-tags"));var o=t.replace(/,/g,"_");return"".concat(e,":").concat(o)}function tU(e,t){return null==e||"string"==typeof e||(k.error("".concat(t," must be defined as a string")),!1)}function tq(e,t){return void 0===e||!!("number"==typeof e&&e>=0&&e<=100)||(k.error("".concat(t," Sample Rate should be a number between 0 and 100")),!1)}var tj={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function tF(e){return U({startClocks:eO(),source:e3,handling:"unhandled"},e)}function tG(e,t,n,r,o){return n?ed({name:e,message:t,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=o?o:void 0}]}):void 0}function tH(e,t,n){var r;return void 0===e?[]:"all"===e||Array.isArray(e)&&e.every(function(e){return M(t,e)})?"all"===e?t:(r=new Set,e.forEach(function(e){return r.add(e)}),D(r)):void k.error("".concat(n,' should be "all" or an array with allowed values "').concat(t.join('", "'),'"'))}var tz="logs",tJ={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function tK(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||tp("datadog-synthetics-injects-rum"))}var tW=1/0,tV=[];function t$(e){return eA(e.sessionSampleRate)?"1":"0"}var tY=!1;function tX(e){var t=window;if(tK()){var n,r,o=i(t.DD_RUM_SYNTHETICS);return o||tY||(tY=!0,eH("Logs sent before RUM is injected by the synthetics worker",{testId:"string"==typeof(n=window._DATADOG_SYNTHETICS_PUBLIC_ID||tp("datadog-synthetics-public-id"))?n:void 0,resultId:"string"==typeof(r=window._DATADOG_SYNTHETICS_RESULT_ID||tp("datadog-synthetics-result-id"))?r:void 0})),o}return i(t.DD_RUM);function i(t){if(t&&t.getInternalContext)return t.getInternalContext(e)}}var tZ={},tQ=((g={})[h.log]=e5.info,g[h.debug]=e5.debug,g[h.info]=e5.info,g[h.warn]=e5.warn,g[h.error]=e5.error,g),t0=new WeakMap;function t1(e){var t=e.target,n=e.parameters,r=n[0],o=n[1];t0.set(t,{state:"open",method:String(r).toUpperCase(),url:ta(String(o))})}function t2(e){var t=e.target,n=t0.get(t);n&&(n.isAborted=!0)}function t3(e,t){return e.length>t.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}var t4=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var n=this.callbacks[e];n&&n.forEach(function(e){return e(t)})},e.prototype.subscribe=function(e,t){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter(function(e){return t!==e})}}},e}(),t5=((y={})[e5.ok]=h.debug,y[e5.debug]=h.debug,y[e5.info]=h.info,y[e5.notice]=h.info,y[e5.warn]=h.warn,y[e5.error]=h.error,y[e5.critical]=h.error,y[e5.alert]=h.error,y[e5.emerg]=h.error,y);function t6(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(n,r){var o=F(n);t+=o,e+=n,r&&r(o)},finish:function(e){e(this.finishSync())},finishSync:function(){var n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:function(e){return e.length}}}function t9(e){var t=e.encoder,n=e.request,r=e.flushController,o=e.messageBytesLimit,i={},a=r.flushObservable.subscribe(function(e){return function(e){var r,o=N(i).join("\n");i={};var a=(r=e.reason,M(N(tJ),r)),s=a?n.sendOnExit:n.send;if(a&&t.isAsync){var c=t.finishSync();c.outputBytesCount&&s(t8(c));
1var u=[c.pendingData,o].filter(Boolean).join("\n");u&&s({data:u,bytesCount:F(u)})}else o&&t.write(t.isEmpty?o:"\n".concat(o)),t.finish(function(e){s(t8(e))})}(e)});function s(e,n){var a,s,c=$(e),u=t.estimateEncodedBytesCount(c);u>=o?k.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(o,"KB. ").concat(x," ").concat(_,"/#technical-limitations")):(void 0!==n&&void 0!==i[n]&&(a=i[n],delete i[n],s=t.estimateEncodedBytesCount(a),r.notifyAfterRemoveMessage(s)),r.notifyBeforeAddMessage(u),void 0!==n?(i[n]=c,r.notifyAfterAddMessage()):t.write(t.isEmpty?c:"\n".concat(c),function(e){r.notifyAfterAddMessage(e-u)}))}return{flushController:r,add:s,upsert:s,stop:a.unsubscribe}}function t8(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}var t7=3145728;function ne(e,t,n,r,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?nt(e,t,n,{onSuccess:function(){return nn(0,t,n,r,o)},onFailure:function(){t.queuedPayloads.enqueue(e),function e(t,n,r,o){2===t.transportStatus&&H(function(){nt(t.queuedPayloads.first(),t,n,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,nn(1,t,n,r,o)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),e(t,n,r,o)}})},t.currentBackoffTime)}(t,n,r,o)}}):t.queuedPayloads.enqueue(e)}function nt(e,t,n,r){var o=r.onSuccess,i=r.onFailure;t.bandwidthMonitor.add(e),n(e,function(n){var r;t.bandwidthMonitor.remove(e),"opaque"!==(r=n).type&&(0===r.status&&!navigator.onLine||408===r.status||429===r.status||r.status>=500)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},i()):(t.transportStatus=0,o())})}function nn(e,t,n,r,o){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(t7/1048576,"MiB"),source:eQ,startClocks:eO()}),t.queueFullReported=!0);var i=t.queuedPayloads;for(t.queuedPayloads=nr();i.size()>0;)ne(i.dequeue(),t,n,r,o)}function nr(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=t7}}}var no=!1;function ni(e,t,n){var r=new XMLHttpRequest;r.open("POST",e,!0),t instanceof Blob&&r.setRequestHeader("Content-Type",t.type),eV({allowUntrustedEvents:!0},r,["loadend"],function(){null==n||n({status:r.status})},{once:!0}),r.send(t)}function na(e,t,n,r,o,i,a){void 0===a&&(a=t9);var s=u(e,t),c=n&&u(e,n);function u(e,t){var n,s,c,u=t.endpoint,l=t.encoder;return a({encoder:l,request:(n=e.batchBytesLimit,s={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:nr(),queueFullReported:!1},c=function(e,t){var r,o,i,a;return r=u,o=n,i=e,a=t,void(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}()&&i.bytesCount<o?fetch(r.build("fetch",i),{method:"POST",body:i.data,keepalive:!0,mode:"cors"}).then(A(function(e){return null==a?void 0:a({status:e.status,type:e.type})}),A(function(){ni(r.build("xhr",i),i.data,a)})):ni(r.build("xhr",i),i.data,a))},{send:function(e){ne(e,s,c,u.trackType,r)},sendOnExit:function(e){!function(e,t,n){if(navigator.sendBeacon&&n.bytesCount<t)try{var r,o=e.build("beacon",n);if(navigator.sendBeacon(o,n.data))return}catch(e){r=e,no||(no=!0,ez(r))}ni(e.build("xhr",n),n.data)}(u,n,e)}}),flushController:function(e){var t,n=e.messagesLimit,r=e.bytesLimit,o=e.durationLimit,i=e.pageExitObservable,a=e.sessionExpireObservable,s=i.subscribe(function(e){return d(e.reason)}),c=a.subscribe(function(){return d("session_expire")}),u=new e_(function(){return function(){s.unsubscribe(),c.unsubscribe()}}),l=0,f=0;function d(e){if(0!==f){var t=f,n=l;f=0,l=0,p(),u.notify({reason:e,messagesCount:t,bytesCount:n})}}function p(){z(t),t=void 0}return{flushObservable:u,get messagesCount(){return f},notifyBeforeAddMessage:function(e){l+e>=r&&d("bytes_limit"),f+=1,l+=e,void 0===t&&(t=H(function(){d("duration_limit")},o))},notifyAfterAddMessage:function(e){void 0===e&&(e=0),l+=e,f>=n?d("messages_limit"):l>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(e){l-=e,0==(f-=1)&&p()}}}({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:o,sessionExpireOb
1servable:i}),messageBytesLimit:e.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),s.add(e),c&&t&&c.add(n.transformMessage?n.transformMessage(e):e)},upsert:function(e,t){s.upsert(e,t),c&&c.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:function(){s.stop(),c&&c.stop()}}}var ns=function(e){var t,n,r,o=function(e){void 0===e&&(e=2);var t=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==e){var o,i=2===e?3072:16384,a=r;t.forEach(function(e){a+=e.getBytesCount()}),a>i&&(o=i,k.warn("Customer data exceeds the recommended ".concat(o/1024,"KiB threshold. ").concat(x," ").concat(_,"/#customer-data-exceeds-the-recommended-threshold-warning")),n=!0)}}return{createDetachedTracker:function(){var e=eW(function(){return r(e.getBytesCount())});return e},getOrCreateTracker:function(e){return t.has(e)||t.set(e,eW(r)),t.get(e)},setCompressionStatus:function(t){0===e&&(e=t,r())},getCompressionStatus:function(){return e},stop:function(){t.forEach(function(e){return e.stop()}),t.clear()}}}(),i=eJ(o.getOrCreateTracker(2)),s=eJ(o.getOrCreateTracker(1)),c={tryToInit:function(e){t||(t=e)},update:function(e){t=e,n.notify()},isGranted:function(){return t===eZ.GRANTED},observable:n=new e_};function u(){return{view:{referrer:document.referrer,url:window.location.href},context:i.getContext(),user:s.getContext()}}var l=function(e,t,n){var r,o,i=eN(),s=t.observable.subscribe(c);function c(){if(o&&r&&t.isGranted()){s.unsubscribe();var e=n(r,o);i.drain(e)}}return{init:function(e){if(!e)return void k.error("Missing configuration");if(Array.isArray(n=e.enableExperimentalFeatures)&&n.filter(function(e){return eb(a,e)}).forEach(function(e){ew.add(e)}),to()&&(e=U({},e,{clientToken:"empty"})),r=e,o)return void eX("DD_LOGS",e);var n,i=function(e){!0===e.usePciIntake&&e.site&&"datadoghq.com"!==e.site&&k.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");var t=function(e){var t,n,r,o,i,a,s,c,u,l,f,d,p,v,g,m;if(!e||!e.clientToken)return void k.error("Client Token is not configured, we will not send any data.");if((!(a=e.site)||"string"!=typeof a||/(datadog|ddog|datad0g|dd0g)/.test(a)||(k.error("Site should be a valid Datadog site. ".concat(x," ").concat(C,"/getting_started/site/.")),0))&&tq(e.sessionSampleRate,"Session")&&tq(e.telemetrySampleRate,"Telemetry")&&tq(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&tq(e.telemetryUsageSampleRate,"Telemetry Usage")&&tU(e.version,"Version")&&tU(e.env,"Env")&&tU(e.service,"Service")){if(void 0!==e.trackingConsent&&!eb(eZ,e.trackingConsent))return void k.error('Tracking Consent should be either "granted" or "not-granted"');return U({beforeSend:e.beforeSend&&E(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:function(e){switch(e.sessionPersistence){case th:return tE(e);case tb:return tO();case void 0:var t=tE(e);return!t&&e.allowFallbackToLocalStorage&&(t=tO()),t;default:k.error("Invalid session persistence '".concat(String(e.sessionPersistence),"'"))}}(e),sessionSampleRate:null!=(t=e.sessionSampleRate)?t:100,telemetrySampleRate:null!=(n=e.telemetrySampleRate)?n:20,telemetryConfigurationSampleRate:null!=(r=e.telemetryConfigurationSampleRate)?r:5,telemetryUsageSampleRate:null!=(o=e.telemetryUsageSampleRate)?o:5,service:e.service||void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!=(i=e.trackingConsent)?i:eZ.GRANTED,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(s=e.site||ek,c=e.env,u=e.service,l=e.version,f=e.datacenter,d=[],c&&d.push(tB("env",c)),u&&d.push(tB("service",u)),l&&d.push(tB("version",l)),f&&d.push(tB("datacenter",f)),p=d,v={logsEndpointBuilder:tN(g=e,"logs",m=p),rumEndpointBuilder:tN(g,"rum",m),sessionReplayEndpointBuilder:tN(g,"replay",m)},U({replica:function(e,t){if(e.replica){var n=U({},e,{site:ek,clientToken:e.replica.clientToken}),r={logsEndpointBuilder:tN(n,"logs",t),rumEndpointBuilder:tN(n,"rum",t)};return U({applicationId:e.replica.applicationId},r)}}(e,p),site:s},v)))}}(e),n=tH(e.forwardConsoleLogs,N(h),"Forward Console Logs"),r=tH(e.forwardReports,N(tj),"Forward Reports");if(t&&n&&r)return e.forwardErrorsToLogs&&!M(n,h.error)&&n.push(h.error),U({forwardErrorsToLogs:!1!==e.forwardErrorsToLogs,forwardConsoleLogs:n,forwardReports:r,requestErrorResponseLengthLimit:32768,sendLogsAfterSessionExpiration:!!e.sendLogsAfterSessionExpiration},t)}(e);i&&(o=i,tc().subscribe(V),t.tryToInit(i.trackingConsent),c())},get initConfiguration(){return r},getInternalContext:V,handleLog:function(t,n,r,o,a){void 0===o&&(o=e()),void 0===a&&(a=eE()),i.add(function(e){return e.handleLog(t,n,r,o,a)})}}}(u,c,function(t,n){t.storeContextsAcrossPages&&(eY(n,i,tz,2),eY(n,s,tz,1));var r=e(t,n,u,c);return l=U({init:function(e){eX("DD_LOGS",e)},initConfiguration:t},r),r}),f={};return Object.defineProperty(r=U({version:"5.35.1",onReady:function(e){e()}},{logger:new tt(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)},o.createDetachedTracker()),init:A(function(e){return l.init(e)}),setTrackingConsent:A(function(e){c.update(e),eG({type:eU,usage:{feature:"set-tracking-consent",tracking_consent:e}})}),getGlobalContext:A(function(){return i.getContext()}),setGlobalContext:A(function(e){return i.setContext(e)}
1),setGlobalContextProperty:A(function(e,t){return i.setContextProperty(e,t)}),removeGlobalContextProperty:A(function(e){return i.removeContextProperty(e)}),clearGlobalContext:A(function(){return i.clearContext()}),createLogger:A(function(e,t){return void 0===t&&(t={}),f[e]=new tt(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)},o.createDetachedTracker(),X(e),t.handler,t.level,X(t.context)),f[e]}),getLogger:A(function(e){return f[e]}),getInitConfiguration:A(function(){return eP(void 0,l.initConfiguration)}),getInternalContext:A(function(e){return l.getInternalContext(e)}),setUser:A(function(e){var t;(t="object"===eI(e))||k.error("Unsupported user:",e),t&&s.setContext(eK(e))}),getUser:A(function(){return s.getContext()}),setUserProperty:A(function(e,t){var n,r=eK(((n={})[e]=t,n))[e];s.setContextProperty(e,r)}),removeUserProperty:A(function(e){return s.removeContextProperty(e)}),clearUser:A(function(){return s.clearContext()})}),"_setDebug",{get:function(){return R},enumerable:!1}),r}(function(e,t,n,r){var o=new t4,s=[];o.subscribe(1,function(e){return eL("logs",e)});var c=function(e){o.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,origin:eQ,status:e5.error}}),eH("Error reported to customer",{"error.message":e.message})},u=new e_(function(e){var n=eV(t,window,["visibilitychange","freeze"],function(t){"visibilitychange"===t.type&&"hidden"===document.visibilityState?e.notify({reason:tJ.HIDDEN}):"freeze"===t.type&&e.notify({reason:tJ.FROZEN})},{capture:!0}).stop,r=eV(t,window,["beforeunload"],function(){e.notify({reason:tJ.UNLOADING})},void 0).stop;return function(){n(),r()}}),l=!t.sessionStoreStrategyType||to()||tK()?(C="1"===t$(t)?{}:void 0,{findTrackedSession:function(){return C},expireObservable:new e_}):{findTrackedSession:function(e,t){void 0===t&&(t={returnInactive:!1});var n=_.findSession(e,t);return n&&"1"===n.trackingType?{id:n.id}:void 0},expireObservable:(_=function(e,t,n,r){var o,i,s,c,u,l,d,p,v,g,m,y,h=new e_,b=new e_,S=function(e,t,n){var r,o=new e_,i=new e_,s=new e_,c=e.type===th?function(e){var t,n,r,o,i={isLockEnabled:1===(null!=f?f:(void 0===t&&(t=window),r=t.navigator.userAgent,f=t.chrome||/HeadlessChrome/.test(r)?1:(null==(n=t.navigator.vendor)?void 0:n.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?2:3*!t.document.documentMode)),persistSession:(o=e,function(e){tf(tv,t_(e),tm,o)}),retrieveSession:tT,expireSession:function(t){var n,r;return n=e,void tf(tv,t_(tw(t)),(r=a.ANONYMOUS_USER_TRACKING,ew.has(r))?ty:tg,n)}};if(!tp(tv)){var s=tp("_dd"),c=tp("_dd_r"),u=tp("_dd_l"),l={};s&&(l.id=s),u&&/^[01]$/.test(u)&&(l.logs=u),c&&/^[012]$/.test(c)&&(l.rum=c),eS(l)||(tC(l),i.persistSession(l))}return i}(e.cookieOptions):{isLockEnabled:!1,persistSession:tR,retrieveSession:tL,expireSession:tA},u=c.expireSession,l=J(function(){tP({process:function(e){return tk(e)?tw(e):void 0},after:g},c)},1e3);m();var d=W(function(){tP({process:function(e){if(!eS(e)){var r=g(e);return function(e){if(!eS(e)){var r=n(e[t]),o=r.trackingType,i=r.isTracked;e[t]=o,delete e.isExpired,i&&!e.id&&(e.id=tu(),e.created=String(eE()))}}(r),r}},after:function(e){eS(e)||y()||(r=e,o.notify()),r=e}},c)},1e3),p=d.throttled,v=d.cancel;function g(e){var n;return tk(e)&&(e=tw(e)),y()&&((n=e,r.id!==n.id||r[t]!==n[t])?(r=tw(r),i.notify()):(s.notify({previousState:r,newState:e}),r=e)),e}function m(){tP({process:function(e){if(eS(e))return tw(e)},after:function(e){r=e}},c)}function y(){return void 0!==r[t]}return{expandOrRenewSession:p,expandSession:function(){tP({process:function(e){return y()?g(e):void 0}},c)},getSession:function(){return r},renewObservable:o,expireObservable:i,sessionStateUpdateObservable:s,restartSession:m,expire:function(){v(),u(r),g(tw(r))},stop:function(){K(l)},updateSessionState:function(e){tP({process:function(t){return U({},t,e)},after:g},c)}}}(e.sessionStoreStrategyType,t,n);tV.push(function(){return S.stop()});var w=(v=(p={expireDelay:tg}).expireDelay,g=p.maxEntries,m=[],y=J(function(){for(var e=eT()-v;m.length>0&&m[m.length-1].endTime<e;)m.pop()},6e4),{add:function(e,t){var n={value:e,startTime:t,endTime:tW,remove:function(){eD(m,n)},close:function(e){n.endTime=e}};return g&&m.length>=g&&m.pop(),m.unshift(n),n},find:function(e,t){void 0===e&&(e=tW),void 0===t&&(t={returnInactive:!1});for(var n=0,r=m;n<r.length;n++){var o=r[n];if(o.startTime<=e){if(t.returnInactive||e<=o.endTime)return o.value;break}}},closeActive:function(e){var t=m[0];t&&t.endTime===tW&&t.close(e)},findAll:function(e,t){void 0===e&&(e=tW),void 0===t&&(t=0);var n=e+t;return m.filter(function(t){return t.startTime<=n&&e<=t.endTime}).map(function(e){return e.value})},reset:function(){m=[]},stop:function(){K(y)}});
1function k(){return{id:S.getSession().id,trackingType:S.getSession()[t],isReplayForced:!!S.getSession().forcedReplay,anonymousId:S.getSession().anonymousId}}return tV.push(function(){return w.stop()}),S.renewObservable.subscribe(function(){w.add(k(),eT()),h.notify()}),S.expireObservable.subscribe(function(){b.notify(),w.closeActive(eT())}),S.expandOrRenewSession(),w.add(k(),{relative:0,timeStamp:eR()}.relative),r.observable.subscribe(function(){r.isGranted()?S.expandOrRenewSession():S.expire()}),o=eV(e,window,["click","touchstart","keydown","scroll"],function(){r.isGranted()&&S.expandOrRenewSession()},{capture:!0,passive:!0}).stop,tV.push(o),i=e,s=function(){return S.expandSession()},c=function(){"visible"===document.visibilityState&&s()},u=eV(i,document,["visibilitychange"],c,void 0).stop,tV.push(u),l=J(c,6e4),tV.push(function(){K(l)}),d=eV(e,window,["resume"],function(){return S.restartSession()},{capture:!0}).stop,tV.push(d),{findSession:function(e,t){return w.find(e,t)},renewObservable:h,expireObservable:b,sessionStateUpdateObservable:S.sessionStateUpdateObservable,expire:S.expire,updateSessionState:S.updateSessionState}}(t,"logs",function(e){var n,r,o,i;return n=t,{trackingType:i="0"===(o=r=e)||"1"===o?r:t$(n),isTracked:"1"===i}},r)).expireObservable},d=function(e,t,n,r,o){var a,s,c,u,l,f,d,p,v,g,m,y=(a="browser-logs-sdk",s=t,l=new e_,f=new Set,d=!M(ej,s.site)&&eA(s.telemetrySampleRate),p=((c={}).log=d,c[eB]=d&&eA(s.telemetryConfigurationSampleRate),c[eU]=d&&eA(s.telemetryUsageSampleRate),c),v={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self},eG=function(e){var t=$(e);if(p[e.type]&&f.size<s.maxTelemetryEventsPerPage&&!f.has(t)){var n,r,o,i,c,d=(n=a,r=e,o=v,eM({type:"telemetry",date:eE(),service:n,version:"5.35.1",source:"browser",_dd:{format_version:2},telemetry:eM(r,{runtime_env:o,connectivity:{status:(c=window.navigator).onLine?"connected":"not_connected",interfaces:c.connection&&c.connection.type?[c.connection.type]:void 0,effective_type:null==(i=c.connection)?void 0:i.effectiveType},sdk_setup:"npm"}),experimental_features:D(ew)},void 0!==u?u():{}));l.notify(d),eL("telemetry",d),f.add(t)}},i=ez,{setContextProvider:function(e){u=e},observable:l,enabled:d});y.setContextProvider(function(){var e,t,n,r,i,a;return{application:{id:null==(e=tX())?void 0:e.application_id},session:{id:null==(t=o.findTrackedSession())?void 0:t.id},view:{id:null==(r=null==(n=tX())?void 0:n.view)?void 0:r.id},action:{id:null==(a=null==(i=tX())?void 0:i.user_action)?void 0:a.id}}});var h=[];if(to()){var b=tr(),S=y.observable.subscribe(function(e){return b.send("internal_telemetry",e)});h.push(function(){return S.unsubscribe()})}else{var w=na(t,{endpoint:t.rumEndpointBuilder,encoder:t6()},t.replica&&{endpoint:t.replica.rumEndpointBuilder,encoder:t6()},n,r,o.expireObservable);h.push(function(){return w.stop()});var k=y.observable.subscribe(function(e){return w.add(e,"datad0g.com"===t.site)});h.push(function(){return k.unsubscribe()})}return eF.drain(),g={session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_cross_site_session_cookie:e.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,session_persistence:e.sessionPersistence,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent},m=U({forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,send_logs_after_session_expiration:e.sendLogsAfterSessionExpiration},g),eG({type:eB,configuration:m}),{telemetry:y,stop:function(){h.forEach(function(e){return e()})}}}(e,t,c,u,l).stop;s.push(function(){return d()}),function(e,t){var n;if(e.forwardErrorsToLogs)(!m&&(n=e,m=new e_(function(e){var t=ti(XMLHttpRequest.prototype,"open",t1).stop,r=ti(XMLHttpRequest.prototype,"send",function(t){!function(e,t,n){var r=e.target,o=e.handlingStack,i=t0.get(r);if(i){i.state="start",i.startClocks=eO(),i.isAborted=!1,i.xhr=r,i.handlingStack=o;var a=!1,s=ti(r,"onreadystatechange",function(){r.readyState===XMLHttpRequest.DONE&&c()}).stop,c=function(){if(u(),s(),!a){var e;a=!0,i.state="complete",e=i.startClocks.timeStamp,i.duration=eE()-e,i.status=r.status,n.notify(U({},i))}},u=eV(t,r,["loadend"],c,void 0).stop;n.notify(i)}}(t,n,e)},{computeHandlingStack:!0}).stop,o=ti(XMLHttpRequest.prototype,"abort",t2).stop;return function(){t(),r(),o()}})),m).subscribe(function(e){"complete"===e.state&&r("xhr",e)}),tc().subscribe(function(e){"resolve"===e.state&&r("fetch",e)});function r(n,r){var o,i,a,s,c,u,l,f,d,p,v,g,m;function y(e){var o={isAborted:r.isAborted,handlingStack:r.handlingStack};t.notify(0,{rawLogsEvent:{message:"".concat("xhr"===n?"XHR":"Fetch"," error ").concat(r.method," ").concat(r.url),date:r.startClocks.timeStamp,error:{stack:e||"Failed to load",handling:void 0},http:{method:r.method,status_code:r.status,url:r.url},status:e5.error,origin:"network"},domainContext:o})}o=r.url,!eC.every(function(e){return M(o,e)})&&(0===(i=r).status&&"opaque"!==i.responseType||r.status>=500)&&("xhr"in r?(a=r.xhr,s=e,y("string"==typeof a.response?t3(a.response,s):a.response)):r.response?(c=r.response,u=e,l=y,(f=function(e){try{return e.clone()}catch(e){return}}(c))&&f.body?window.TextDecoder?(d=f.body,p=u.requestErrorResponseLengthLimit,v=function(e,t){e?l("Unable to retrieve response: ".concat(e)):l(t)},function(e,t,n){var r=e.getReader(),o=[],i=0;function a(){if(r.cancel().catch(V),n.collectStreamBody){if(1===o.length)s=o[0];else{var e,a,s=new Uint8Array(i),c=0;o.forEach(function(e){s.set(e,c),c+=e.length})}e=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}t(void 0,e,a)}!function e(){r.read().then(A(function(t){t.done?a():(n.collectStreamBody&&o.push(t.value),(i+=t.value.length)>n.bytesLimit?a():e())}),A(function(e){return t(e)}))}()}(d,function(e,t,n){if(e)v(e);else{var r=new TextDecoder().decode(t);n&&(r+="..."),v(void 0,r)}},{bytesLimit:p,collectStreamBody:!0})):f.text().then(A(function(e){return l(t3(e,u))}),A(function(e){return l("Unable to retrieve response: ".concat(e))})):l()):r.error&&(g=r.error,m=e,y(t3(ed(ee(g)),m))))}}(t,o),function(e,t){if(e.forwardErrorsToLogs){var n,r,o,i,a,s=new e_;(i=(n=o=function(e,t){var n=eg({stackTrace:e,originalError:t,startClocks:eO(),nonErrorPrefix:"Uncaught",source:e2,handling:"unhandled"});s.notify(n)},ti(window,"onerror",function(e){var t,r,o,i,a,s,c=e.parameters,u=c[0],l=c[1],f=c[2],d=c[3],p=c[4];if(ey(p))s=ee(p);else{s={name:(t=u,"[object String]"===({}).toString.call(t)&&(o=(r=el.exec(t))[1],i=r[2]),a={name:o,message:i}).name,message:a.message,stack:[{url:l,column:d,line:f}]}}n(s,null!=p?p:u)})).stop,a=(r=o,ti(window,"onunhandledrejection",function(e){var t=e.parameters[0].reason||"Empty reason";r(ee(t),t)})).stop,{stop:function(){i(),a()}}).stop,s.subscribe(function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:e9(e),origin:e2,status:e5.error}})})}}(t,o),v=t,g=o,(y=v.forwardConsoleLogs.map(function(e){var t;return tZ[e]||(tZ[e]=(t=e,new e_(function(e){var n=b[t];return b[t]=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n.apply(console,r);var i=ef();I(function(){e.notify(function(e,t,n){var r,o=e.map(function(e){var t;return"string"==typeof(t=e)?X(t):ey(t)?ep(ee(t)):$(X(t),void 0,2)}).join(" ");if(t===h.error){var i=function(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(t(r,n))return r}}(e,ey);r={stack:i?ed(ee(i)):void 0,fingerprint:em(i),causes:i?eh(i,"console"):void 0,startClocks:eO(),message:o,source:e0,handling:"handled",handlingStack:n}}return{api:t,message:o,error:r,handlingStack:n}}(r,t,i))})},function(){b[t]=n}}))),tZ[e]}),ex.apply(void 0,y)).subscribe(function(e){var t={rawLogsEvent:{date:eE(),message:e.message,origin:e0,error:e.error&&e9(e.error),status:tQ[e.api]},domainContext:{handlingStack:e.handlingStack}};g.notify(0,t)}),(x=t.forwardReports,E=[],M(x,tj.cspViolation)&&E.push((w=t,new e_(function(e){return eV(w,document,["securitypolicyviolation"],function(t){e.notify(function(e){var t,n,r,o="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return tF({type:e.effectiveDirective,message:"".concat(tj.cspViolation,": ").concat(o),originalError:e,csp:{dis
1position:e.disposition},stack:tG(e.effectiveDirective,e.originalPolicy?"".concat(o,' of the policy "').concat((t=e.originalPolicy,r=(n=t.charCodeAt(99))>=55296&&n<=56319?101:100,t.length<=r?t:"".concat(t.slice(0,r)).concat("...")),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}(t))},void 0).stop}))),(T=x.filter(function(e){return e!==tj.cspViolation})).length&&E.push((k=T,new e_(function(e){if(window.ReportingObserver){var t=A(function(t,n){return t.forEach(function(t){var n,r,o;return e.notify((r=(n=t).type,tF({type:(o=n.body).id,message:"".concat(r,": ").concat(o.message),originalError:n,stack:tG(o.id,o.message,o.sourceFile,o.lineNumber,o.columnNumber)})))})}),n=new window.ReportingObserver(t,{types:k,buffered:!0});return n.observe(),function(){n.disconnect()}}}))),ex.apply(void 0,E)).subscribe(function(e){var t,n,r,i=e.message,a="deprecation"===e.originalError.type?e5.warn:e5.error;a===e5.error?r=e9(e):e.stack&&(i+=" Found in ".concat((t=e.stack,null==(n=/@ (.+)/.exec(t))?void 0:n[1]))),o.notify(0,{rawLogsEvent:{date:eE(),message:i,origin:e3,error:r,status:a}})});var p={handleLog:function(e,t,n,r,i){var a,s,c,u,l=eM(t.getContext(),e.context);if(e4(e.status,"console",t)&&(a=e,s=l,c=a.status,u=a.message,S[t5[c]].call(b,u,s)),e4(e.status,e7,t)){var f={rawLogsEvent:{date:i||eE(),message:e.message,status:e.status,origin:e1},messageContext:l,savedCommonContext:r};n&&(f.domainContext={handlingStack:n}),o.notify(0,f)}}}.handleLog;if(O=te.concat(["custom"]),R={},O.forEach(function(e){var n,r,o;R[e]=(n=t.eventRateLimiterThreshold,r=0,o=!1,{isLimitReached:function(){if(0===r&&H(function(){r=0},6e4),(r+=1)<=n||o)return o=!1,!1;if(r===n+1){o=!0;try{c({message:"Reached max number of ".concat(e,"s by minute: ").concat(n),source:eQ,startClocks:eO()})}finally{o=!1}}return!0}})}),o.subscribe(0,function(e){var r,i,a=e.rawLogsEvent,s=e.messageContext,c=e.savedCommonContext,u=e.domainContext,f=a.date-eR(),d=l.findTrackedSession(f);if(d||t.sendLogsAfterSessionExpiration&&l.findTrackedSession(f,{returnInactive:!0})){var p=(void 0===c?void 0:c)||n(),v=eM({service:t.service,session_id:d?d.id:void 0,session:d?{id:d.id}:void 0,usr:eS(p.user)?void 0:p.user,view:p.view},p.context,tX(f),a,void 0===s?void 0:s);(null==(r=t.beforeSend)?void 0:r.call(t,v,u))===!1||v.origin!==eQ&&(null!=(i=R[v.status])?i:R.custom).isLimitReached()||o.notify(1,v)}}),to())L=tr(),o.subscribe(1,function(e){L.send("log",e)});else{var v,g,y,w,k,C,_,x,E,T,O,R,L,P,N=(P=na(t,{endpoint:t.logsEndpointBuilder,encoder:t6()},t.replica&&{endpoint:t.replica.logsEndpointBuilder,encoder:t6()},c,u,l.expireObservable),o.subscribe(1,function(e){P.add(e)}),P).stop;s.push(function(){return N()})}return{handleLog:p,getInternalContext:({get:function(e){var t=l.findTrackedSession(e);if(t)return{session_id:t.id}}}).get,stop:function(){s.forEach(function(e){return e()})}}});n=q(),(o=n[r="DD_LOGS"])&&!o.q&&o.version&&k.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),n[r]=ns,o&&o.q&&o.q.forEach(function(e){return E(e,"onReady callback threw an error:")()}),e.s(["datadogLogs",0,ns],679094)}]);
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.