/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[15],{1607:function(t,e,n){"use strict";n.r(e),n.d(e,"DefaultPrivacyLevel",(function(){return re})),n.d(e,"datadogRum",(function(){return Fo}));var r=function(){return r=Object.assign||function(t){for(var s,i=1,e=arguments.length;i0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,c=e.split("\n"),l=[],line=0;line|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,l=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,f=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,h=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,v=/\((\S*)(?::(\d+))(?::(\d+))\)/,m=e.split("\n"),y=[],i=0,w=m.length;i eval")>-1,r=h.exec(o[3]),n&&r?(o[3]=r[1],o[4]=r[2],o[5]=void 0):0!==i||o[5]||E(t.columnNumber)||(y[0].column=t.columnNumber+1),element={args:o[2]?o[2].split(","):[],column:o[5]?+o[5]:void 0,func:o[1]||d,line:o[4]?+o[4]:void 0,url:o[3]}}!element.func&&element.line&&(element.func=d),y.push(element)}if(!y.length)return;return{stack:y,message:_(t,"message"),name:_(t,"name")}}(t),n)return n}catch(t){if(v)throw t}try{if(n=function(t){var e=_(t,"message");if(!e)return;var n=e.split("\n");if(n.length<4)return;var r,o=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,c=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,l=/^\s*Line (\d+) of function script\s*$/i,f=[],h=window&&window.document&&window.document.getElementsByTagName("script"),v=[];for(var s in h)y(h,s)&&!h[s].src&&v.push(h[s]);for(var line=2;line0&&o[0].url===r.url){if(o[0].line===r.line)return!1;if(!o[0].line&&o[0].func===r.func)return o[0].line=r.line,o[0].context=r.context,!1}return o.unshift(r),t.partial=!0,!0}t.incomplete=!0}(y,_(t,"sourceURL")||_(t,"fileName"),_(t,"line")||_(t,"lineNumber")),y}function _(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}function y(object,t){return Object.prototype.hasOwnProperty.call(object,t)}function E(t){return void 0===t}var w,T,S=1e3,C=60*S,R=60*C,O=365*(24*R);function A(t,e,n){var r,o,c=!n||void 0===n.leading||n.leading,l=!n||void 0===n.trailing||n.trailing,f=!1;return{throttled:function(){for(var n=[],d=0;d>parseInt(t,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,I)}function N(t){return 0!==t&&100*Math.random()<=t}function x(t,e){return+t.toFixed(e)}function L(){}function D(t,e,n){if(null==t)return JSON.stringify(t);var r=[!1,void 0];M(t)&&(r=[!0,t.toJSON],delete t.toJSON);var o,c,l=[!1,void 0];"object"==typeof t&&M(o=Object.getPrototypeOf(t))&&(l=[!0,o.toJSON],delete o.toJSON);try{c=JSON.stringify(t,e,n)}catch(t){c=""}finally{r[0]&&(t.toJSON=r[1]),l[0]&&(o.toJSON=l[1])}return c}function M(t){return"object"==typeof t&&null!==t&&Object.prototype.hasOwnProperty.call(t,"toJSON")}function U(t,e){return-1!==t.indexOf(e)}function z(t){return P(t)&&t>=0&&t<=100}function P(t){return"number"==typeof t}function B(object){return Object.keys(object).map((function(t){return object[t]}))}function F(object){return Object.keys(object).map((function(t){return[t,object[t]]}))}function V(object){return 0===Object.keys(object).length}function H(element){if(element.origin)return element.origin;var t=element.host.replace(/(:80|:443)$/,"");return element.protocol+"//"+t}function W(t,e){var n=new RegExp("(?:^|;)\\s*"+e+"\\s*=\\s*([^;]+)").exec(t);return n?n[1]:void 0}function j(t,e,n,r){return Z(t,[e],n,r)}function Z(t,e,n,r){var o=void 0===r?{}:r,c=o.once,l=o.capture,f=o.passive,d=Et(c?function(t){v(),n(t)}:n),h=f?{capture:l,passive:f}:l;e.forEach((function(e){return t.addEventListener(e,d,h)}));var v=function(){return e.forEach((function(e){return t.removeEventListener(e,d,h)}))};return{stop:v}}function Y(t,e){document.readyState===t||"complete"===document.readyState?e():j(window,"complete"===t?"load":"DOMContentLoaded",e,{once:!0})}function G(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function K(t,source,e){if(void 0===e&&(e=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===source)return t;if("object"!=typeof source||null===source)return source;if(source instanceof Date)return new Date(source.getTime());if(source instanceof RegExp){var n=source.flags||[source.global?"g":"",source.ignoreCase?"i":"",source.multiline?"m":"",source.sticky?"y":"",source.unicode?"u":""].join("");return new RegExp(source.source,n)}if(!e.hasAlreadyBeenSeen(source)){if(Array.isArray(source)){for(var r=Array.isArray(t)?t:[],i=0;i":t.func,r=t.args&&t.args.length>0?"("+t.args.join(", ")+")":"",line=t.line?":"+t.line:"",o=t.line&&t.column?":"+t.column:"";e+="\n at "+n+r+" @ "+t.url+line+o})),e}function it(t){return(t.name||"Error")+": "+t.message}function ot(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return wt((function(){var n=h(e);n.stack=n.stack.slice(2),t=nt(n)})),t}function at(t){Array.isArray(t)&&(Q||(Q=new Set(t)),t.filter((function(t){return"string"==typeof t})).forEach((function(t){Q.add(t)})))}function st(t){return!!Q&&Q.has(t)}function ut(){var t=st("event-bridge")?window.DatadogEventBridge:null;if(t)return{getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n){t.send(JSON.stringify({eventType:e,event:n}))}}}function ct(){var t=ut();return!!t&&U(t.getAllowedWebViewHosts(),window.location.hostname)}!function(t){t.HANDLED="handled",t.UNHANDLED="unhandled"}($||($={}));var lt,ft=/[^\u0000-\u007F]/,pt=function(){function t(t,e,n,r,o,c){void 0===c&&(c=L),this.request=t,this.maxSize=e,this.bytesLimit=n,this.maxMessageSize=r,this.flushTimeout=o,this.beforeUnloadCallback=c,this.pushOnlyBuffer=[],this.upsertBuffer={},this.bufferBytesSize=0,this.bufferMessageCount=0,this.flushOnVisibilityHidden(),this.flushPeriodically()}return t.prototype.add=function(t){this.addOrUpdate(t)},t.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},t.prototype.flush=function(t){if(0!==this.bufferMessageCount){var e=l(this.pushOnlyBuffer,B(this.upsertBuffer));this.request.send(e.join("\n"),this.bufferBytesSize,t),this.pushOnlyBuffer=[],this.upsertBuffer={},this.bufferBytesSize=0,this.bufferMessageCount=0}},t.prototype.sizeInBytes=function(t){return ft.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length},t.prototype.addOrUpdate=function(t,e){var n=this.process(t),r=n.processedMessage,o=n.messageBytesSize;o>=this.maxMessageSize?f.warn("Discarded a message whose size was bigger than the maximum allowed size "+this.maxMessageSize+"KB."):(this.hasMessageFor(e)&&this.remove(e),this.willReachedBytesLimitWith(o)&&this.flush("willReachedBytesLimitWith"),this.push(r,o,e),this.isFull()&&this.flush("isFull"))},t.prototype.process=function(t){var e=D(t);return{processedMessage:e,messageBytesSize:this.sizeInBytes(e)}},t.prototype.push=function(t,e,n){this.bufferMessageCount>0&&(this.bufferBytesSize+=1),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.bufferBytesSize+=e,this.bufferMessageCount+=1},t.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=this.sizeInBytes(e);this.bufferBytesSize-=n,this.bufferMessageCount-=1,this.bufferMessageCount>0&&(this.bufferBytesSize-=1)},t.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},t.prototype.willReachedBytesLimitWith=function(t){return this.bufferBytesSize+t+1>=this.bytesLimit},t.prototype.isFull=function(){return this.bufferMessageCount===this.maxSize||this.bufferBytesSize>=this.bytesLimit},t.prototype.flushPeriodically=function(){var t=this;setTimeout(Et((function(){t.flush("flushPeriodically"),t.flushPeriodically()})),this.flushTimeout)},t.prototype.flushOnVisibilityHidden=function(){var t=this;navigator.sendBeacon&&(j(window,"beforeunload",this.beforeUnloadCallback),j(document,"visibilitychange",(function(){"hidden"===document.visibilityState&&t.flush("visibilitychange")})),j(window,"beforeunload",(function(){return t.flush("beforeunload")})))},t}(),ht=!1,vt=function(){function t(t,e){this.endpointBuilder=t,this.bytesLimit=e}return t.prototype.send=function(data,t,e){var n=this.endpointBuilder.build(),r=!!navigator.sendBeacon&&t=200&&c.status<300||ht||(ht=!0,Tt("XHR fallback failed",{on_line:navigator.onLine,size:t,url:n,try_beacon:r,flush_reason:e,event:{is_trusted:o.isTrusted,total:o.total,loaded:o.loaded},request:{status:c.status,ready_state:c.readyState,response_text:c.responseText.slice(0,512)}}))}(o)}))),o.open("POST",n,!0),o.send(data)},t}(),mt=!1;!function(t){t.info="info",t.error="error"}(lt||(lt={}));var _t,gt,yt={maxMessagesPerPage:0,sentMessageCount:0};function bt(t){var e;if(ct()){var n=ut();_t=function(t){return n.send("internal_log",o(t))}}else if(t.internalMonitoringEndpointBuilder){var r=function(t){var e,n=r(t.internalMonitoringEndpointBuilder);function r(e){return new pt(new vt(e,t.batchBytesLimit),t.maxBatchSize,t.batchBytesLimit,t.maxMessageSize,t.flushTimeout)}return void 0!==t.replica&&(e=r(t.replica.internalMonitoringEndpointBuilder)),{add:function(t){n.add(t),e&&e.add(t)}}}(t);_t=function(t){return r.add(o(t))}}function o(t){return J({date:(new Date).getTime()},void 0!==e?e():{},t)}return k(yt,{maxMessagesPerPage:t.maxInternalMonitoringMessagesPerPage,sentMessageCount:0}),{setExternalContextProvider:function(t){e=t}}}function Et(t){return function(){return wt(t,this,arguments)}}function wt(t,e,n){try{return t.apply(e,n)}catch(t){Ot(t);try{St(t)}catch(t){Ot(t)}}}function Tt(t,e){!function(t,e){yt.debugMode&&f.log("[MONITORING MESSAGE]",t,e)}(t,e),Ct(r(r({message:t},e),{status:lt.info}))}function St(t){Ct(r(r({},function(t){if(t instanceof Error){var e=h(t);return{error:{kind:e.name,stack:nt(e)},message:e.message}}return{error:{stack:"Not an instance of error"},message:"Uncaught "+D(t)}}(t)),{status:lt.error}))}function Ct(t){_t&&yt.sentMessageCountthis.limit&&this.buffer.splice(0,1)},t.prototype.drain=function(){this.buffer.forEach((function(t){return t()})),this.buffer.length=0},t}();function xt(t){return{relative:t,timeStamp:Lt(t)}}function Lt(t){var e=Date.now()-performance.now();return e>Ft()?Math.round(e+t):function(t){return Math.round(Ft()+t)}(t)}function Dt(t){return P(t)?x(1e6*t,0):t}function Mt(){return Date.now()}function Ut(){return performance.now()}function zt(){return{relative:Ut(),timeStamp:Mt()}}function Pt(){return{relative:0,timeStamp:Ft()}}function Bt(t,e){return e-t}function Ft(){return void 0===It&&(It=performance.timing.navigationStart),It}var Vt,Ht=S;function Wt(t,e,n,r){var o=new Date;o.setTime(o.getTime()+n);var c="expires="+o.toUTCString(),l=r&&r.crossSite?"none":"strict",f=r&&r.domain?";domain="+r.domain:"",d=r&&r.secure?";secure":"";document.cookie=t+"="+e+";"+c+";path=/;samesite="+l+f+d}function jt(t){return W(document.cookie,t)}function Zt(t,e){Wt(t,"",0,e)}var Yt={alternate:{logs:"logs",rum:"rum",sessionReplay:"session-replay"},classic:{logs:"browser",rum:"rum",sessionReplay:void 0}},Gt={logs:"logs",rum:"rum",sessionReplay:"replay"},qt="datadoghq.com",Kt="datadoghq.eu",Xt=[qt,Kt],Jt=[qt,"us3.datadoghq.com",Kt,"ddog-gov.com"];function $t(t,e,n,source){var r=e.sdkVersion,o=t.site,c=void 0===o?qt:o,l=t.clientToken,f=t.env,d=t.proxyHost,h=t.proxyUrl,v=t.service,m=t.version,_=t.intakeApiVersion,y=t.useAlternateIntakeDomains,E=function(t){if(function(t){return y||!U(Xt,c)||"sessionReplay"===t}(t)){var e=Yt.alternate[t],n=c.split("."),r=n.pop();return e+".browser-intake-"+(n.join("-")+"."+r)}var o=Yt.classic[t];return o+"-http-intake.logs."+c}(n),path=function(t){return T(t)?"/api/v2/"+Gt[t]:"/v1/input/"+l}(n);function w(){var t=function(t,source){var e="ddsource="+(source||"browser")+"&ddtags="+encodeURIComponent("sdk_version:"+r+(f?",env:"+f:"")+(v?",service:"+v:"")+(m?",version:"+m:""));T(t)&&(e+="&dd-api-key="+l+"&dd-evp-origin-version="+encodeURIComponent(r)+"&dd-evp-origin=browser&dd-request-id="+I());"rum"===t&&(e+="&batch_time="+Mt());return e}(n,source),e="https://"+E+path+"?"+t;return h?h+"?ddforward="+encodeURIComponent(e):d?"https://"+d+path+"?ddhost="+E+"&"+t:e}function T(t){return 2===_||!U(Jt,c)||"sessionReplay"===t}return{build:w,buildIntakeUrl:function(){var t=w();return t.slice(0,t.indexOf("?"))}}}function Qt(t,e){var n=function(t,e){if(e.buildMode===gt.E2E_TEST){var n=function(t){return{build:function(){return t},buildIntakeUrl:function(){return t}}};return{logsEndpointBuilder:n("<<< E2E LOGS ENDPOINT >>>"),rumEndpointBuilder:n("<<< E2E RUM ENDPOINT >>>"),sessionReplayEndpointBuilder:n("<<< E2E SESSION REPLAY ENDPOINT >>>"),internalMonitoringEndpointBuilder:n("<<< E2E INTERNAL MONITORING ENDPOINT >>>")}}var o={logsEndpointBuilder:$t(t,e,"logs"),rumEndpointBuilder:$t(t,e,"rum"),sessionReplayEndpointBuilder:$t(t,e,"sessionReplay")};if(t.internalMonitoringApiKey)return r(r({},o),{internalMonitoringEndpointBuilder:$t(r(r({},t),{clientToken:t.internalMonitoringApiKey}),e,"logs","browser-agent-internal-monitoring")});return o}(t,e),o=B(n).map((function(t){return t.buildIntakeUrl()})),c=function(t,e,n){if(e.buildMode!==gt.STAGING||void 0===t.replica)return;var o=r(r({},t),{site:qt,applicationId:t.replica.applicationId,clientToken:t.replica.clientToken,useAlternateIntakeDomains:!0,intakeApiVersion:2}),c={logsEndpointBuilder:$t(o,e,"logs"),rumEndpointBuilder:$t(o,e,"rum"),internalMonitoringEndpointBuilder:$t(o,e,"logs","browser-agent-internal-monitoring")};return n.push.apply(n,B(c).map((function(t){return t.buildIntakeUrl()}))),r({applicationId:t.replica.applicationId},c)}(t,e,o);return r(r({isIntakeUrl:function(t){return o.some((function(e){return 0===t.indexOf(e)}))}},n),{replica:c})}var te,ee,ne,re={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},ie={allowedTracingOrigins:[],maxErrorsPerMinute:3e3,maxActionsPerMinute:3e3,maxInternalMonitoringMessagesPerPage:15,sampleRate:100,replaySampleRate:100,silentMultipleInit:!1,trackInteractions:!1,trackViewsManually:!1,defaultPrivacyLevel:re.MASK_USER_INPUT,requestErrorResponseLengthLimit:32768,flushTimeout:30*S,maxBatchSize:50,maxMessageSize:262144,batchBytesLimit:16384};function oe(t,e){var object,n,o=r(r({beforeSend:t.beforeSend&&At(t.beforeSend,"beforeSend threw an error:"),cookieOptions:ae(t),service:t.service},Qt(t,e)),ie);return"allowedTracingOrigins"in t&&(o.allowedTracingOrigins=t.allowedTracingOrigins),"sampleRate"in t&&(o.sampleRate=t.sampleRate),"replaySampleRate"in t&&(o.replaySampleRate=t.replaySampleRate),"trackInteractions"in t&&(o.trackInteractions=!!t.trackInteractions),"trackViewsManually"in t&&(o.trackViewsManually=!!t.trackViewsManually),"actionNameAttribute"in t&&(o.actionNameAttribute=t.actionNameAttribute),object=re,n=t.defaultPrivacyLevel,Object.keys(object).some((function(t){return object[t]===n}))&&(o.defaultPrivacyLevel=t.defaultPrivacyLevel),o}function ae(t){var e={};return e.secure=function(t){return!!t.useSecureSessionCookie||!!t.useCrossSiteSessionCookie}(t),e.crossSite=!!t.useCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===Vt){for(var t="dd_site_test_"+I(),e=window.location.hostname.split("."),n=e.pop();e.length&&!jt(t);)n=e.pop()+"."+n,Wt(t,"test",S,{domain:n});Zt(t,{domain:n}),Vt=n}return Vt}()),e}!function(t){t.ACTION="action",t.ERROR="error",t.LONG_TASK="long_task",t.VIEW="view",t.RESOURCE="resource"}(te||(te={})),function(t){t.INITIAL_LOAD="initial_load",t.ROUTE_CHANGE="route_change"}(ee||(ee={})),function(t){t.CLICK="click",t.CUSTOM="custom"}(ne||(ne={}));var se="datadog-synthetics-public-id",ue="datadog-synthetics-result-id",ce="datadog-synthetics-injects-rum";function le(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||jt(ce))}var fe={buildMode:"release",sdkVersion:"3.10.0"};var de,pe=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(t),{unsubscribe:function(){e.observers=e.observers.filter((function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},t.prototype.notify=function(data){this.observers.forEach((function(t){return t(data)}))},t}();function he(){var t,e=window;if(e.Zone){var symbol=e.Zone.__symbol__("MutationObserver");t=e[symbol]}return t||(t=e.MutationObserver),t}!function(t){t[t.PERFORMANCE_ENTRY_COLLECTED=0]="PERFORMANCE_ENTRY_COLLECTED",t[t.AUTO_ACTION_CREATED=1]="AUTO_ACTION_CREATED",t[t.AUTO_ACTION_COMPLETED=2]="AUTO_ACTION_COMPLETED",t[t.AUTO_ACTION_DISCARDED=3]="AUTO_ACTION_DISCARDED",t[t.VIEW_CREATED=4]="VIEW_CREATED",t[t.VIEW_UPDATED=5]="VIEW_UPDATED",t[t.VIEW_ENDED=6]="VIEW_ENDED",t[t.REQUEST_STARTED=7]="REQUEST_STARTED",t[t.REQUEST_COMPLETED=8]="REQUEST_COMPLETED",t[t.SESSION_EXPIRED=9]="SESSION_EXPIRED",t[t.SESSION_RENEWED=10]="SESSION_RENEWED",t[t.BEFORE_UNLOAD=11]="BEFORE_UNLOAD",t[t.RAW_RUM_EVENT_COLLECTED=12]="RAW_RUM_EVENT_COLLECTED",t[t.RUM_EVENT_COLLECTED=13]="RUM_EVENT_COLLECTED",t[t.RAW_ERROR_COLLECTED=14]="RAW_ERROR_COLLECTED"}(de||(de={}));var ve,me=function(){function t(){this.callbacks={}}return t.prototype.notify=function(t,data){var e=this.callbacks[t];e&&e.forEach((function(t){return t(data)}))},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}();function _e(t){return ye(t,H(window.location)).href}function ge(t){return H(ye(t))}function ye(t,base){if(function(){if(void 0!==ve)return ve;try{var t=new URL("http://test/path");return ve="http://test/path"===t.href}catch(t){ve=!1}return ve}())return void 0!==base?new URL(t,base):new URL(t);if(void 0===base&&!/:/.test(t))throw new Error("Invalid URL: '"+t+"'");var e=document,n=e.createElement("a");if(void 0!==base){var r=(e=document.implementation.createHTMLDocument("")).createElement("base");r.href=base,e.head.appendChild(r),e.body.appendChild(n)}return n.href=t,n}var be="initial_document",Ee=[[w.DOCUMENT,function(t){return be===t}],[w.XHR,function(t){return"xmlhttprequest"===t}],[w.FETCH,function(t){return"fetch"===t}],[w.BEACON,function(t){return"beacon"===t}],[w.CSS,function(t,path){return/\.css$/i.test(path)}],[w.JS,function(t,path){return/\.js$/i.test(path)}],[w.IMAGE,function(t,path){return U(["image","img","icon"],t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(path)}],[w.FONT,function(t,path){return null!==/\.(woff|eot|woff2|ttf)$/i.exec(path)}],[w.MEDIA,function(t,path){return U(["audio","video"],t)||null!==/\.(mp3|mp4)$/i.exec(path)}]];function we(t){var e=t.name;if(!function(t){try{return!!ye(t)}catch(t){return!1}}(e))return Tt('Failed to construct URL for "'+t.name+'"'),w.OTHER;for(var path=function(t){var e=ye(t).pathname;return"/"===e[0]?e:"/"+e}(e),n=0,r=Ee;nt[i])return!1;return!0}function Se(t){var e=Ce(t);if(e){var n=e.startTime,r=e.fetchStart,o=e.redirectStart,c=e.redirectEnd,l=e.domainLookupStart,f=e.domainLookupEnd,d=e.connectStart,h=e.secureConnectionStart,v=e.connectEnd,m=e.requestStart,_=e.responseStart,details={download:Oe(n,_,e.responseEnd),first_byte:Oe(n,m,_)};return v!==r&&(details.connect=Oe(n,d,v),Te(d,h,v)&&(details.ssl=Oe(n,h,v))),f!==r&&(details.dns=Oe(n,l,f)),Re(t)&&(details.redirect=Oe(n,o,c)),details}}function Ce(t){if(Te(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!Re(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e=0;i-=1){var e,n=t.body.childNodes[i];if(e=Le(n))return e;if(!De(n))break}}(t);if(!e)return;return xe(W(e,"trace-id"),W(e,"trace-time"))}(t);if(data&&!(data.traceTime<=Date.now()-Ie))return data.traceId}function xe(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function Le(t){if(t&&function(t){return"#comment"===t.nodeName}(t)){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function De(t){return"#text"===t.nodeName}function Me(){return void 0!==window.performance&&"getEntries"in performance}function Ue(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function ze(t,e){var n;if(n=function(n){Fe(t,e,n)},Y("interactive",(function(){var t,e={entryType:"resource",initiatorType:be,traceId:Ne(document)};if(Ue("navigation")&&performance.getEntriesByType("navigation").length>0){var r=performance.getEntriesByType("navigation")[0];t=kt(kt({},r.toJSON()),e)}else{var o=Pe();t=kt(kt(kt({},o),{decodedBodySize:0,duration:o.responseEnd,name:window.location.href,startTime:0}),e)}n(t)})),Me()&&Be(t,e,performance.getEntries()),window.PerformanceObserver){var r=Et((function(n){return Be(t,e,n.getEntries())})),o=["resource","navigation","longtask","paint"],c=["largest-contentful-paint","first-input","layout-shift"];try{c.forEach((function(t){new PerformanceObserver(r).observe({type:t,buffered:!0})}))}catch(t){o.push.apply(o,c)}new PerformanceObserver(r).observe({entryTypes:o}),Me()&&"addEventListener"in performance&&performance.addEventListener("resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}Ue("navigation")||function(t){function e(){t(kt(kt({},Pe()),{entryType:"navigation"}))}Y("complete",(function(){setTimeout(Et(e))}))}((function(n){Fe(t,e,n)})),Ue("first-input")||function(t){var e=Date.now(),n=!1,r=Z(window,["click","mousedown","keydown","touchstart","pointerdown"],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:Ut(),startTime:t.timeStamp};"pointerdown"===t.type?o(e):c(e)}}),{passive:!0,capture:!0}).stop;function o(t){Z(window,["pointerup","pointercancel"],(function(e){"pointerup"===e.type&&c(t)}),{once:!0})}function c(o){if(!n){n=!0,r();var c=o.processingStart-o.startTime;c>=0&&c=this.currentStart)return this.current;for(var e=0,n=this.previousContexts;er.endTime)break;if(t>=r.startTime)return r.context}},t.prototype.setCurrent=function(t,e){this.current=t,this.currentStart=e},t.prototype.getCurrent=function(){return this.current},t.prototype.clearCurrent=function(){this.current=void 0,this.currentStart=void 0},t.prototype.closeCurrent=function(t){void 0!==this.current&&void 0!==this.currentStart&&(this.previousContexts.unshift({endTime:t,context:this.current,startTime:this.currentStart}),this.clearCurrent())},t.prototype.clearOldContexts=function(){for(var t=Ut()-this.expireDelay;this.previousContexts.length>0&&this.previousContexts[this.previousContexts.length-1].startTimeTn)){var t=Sn[Sn.length-1],e=Ut();void 0!==t&&void 0===t.end||Sn.push({start:e})}}function On(){if(0!==Sn.length){var t=Sn[Sn.length-1],e=Ut();void 0===t.end&&(t.end=e)}}function An(t){for(var i=Sn.length-1;i>=0;i--){var e=Sn[i];if(void 0!==e.end&&t>e.end)break;if(t>e.start&&(void 0===e.end||t=o;i--){var c=Sn[i];if(void 0!==c.end&&t>c.end)break;if(!(nc.start?t:c.start,f=Bt(t,l),d=Bt(l,void 0===c.end||n0})}return n}(t,e);return function(t,e,n){var r,o=!1,c=Mt(),l=setTimeout(Et((function(){return v({hadActivity:!1})})),Jn),f=n&&setTimeout(Et((function(){return v({hadActivity:!0,duration:Bt(c,Mt())})})),n),d=t.subscribe((function(t){var e=t.isBusy;clearTimeout(l),clearTimeout(r);var n=Mt();e||(r=setTimeout(Et((function(){return v({hadActivity:!0,duration:Bt(c,n)})})),$n))})),h=function(){o=!0,clearTimeout(l),clearTimeout(r),clearTimeout(f),d.unsubscribe()};function v(t){o||(h(),e(t))}return{stop:h}}(o,n,r)}var er="data-dd-action-name";function nr(t,e){var n;if(function(){void 0===ir&&(ir="closest"in HTMLElement.prototype);return ir}())n=t.closest("["+e+"]");else for(var element=t;element;){if(element.hasAttribute(e)){n=element;break}element=element.parentElement}if(n)return lr(cr(n.getAttribute(e).trim()))}var rr,ir,or=[function(element){if(function(){void 0===rr&&(rr="labels"in HTMLInputElement.prototype);return rr}()){if("labels"in element&&element.labels&&element.labels.length>0)return fr(element.labels[0])}else if(element.id){var label=element.ownerDocument&&element.ownerDocument.querySelector('label[for="'+element.id.replace('"','\\"')+'"]');return label&&fr(label)}},function(element){if("INPUT"===element.nodeName){var input=element,t=input.getAttribute("type");if("button"===t||"submit"===t||"reset"===t)return input.value}},function(element){if("BUTTON"===element.nodeName||"LABEL"===element.nodeName||"button"===element.getAttribute("role"))return fr(element)},function(element){return element.getAttribute("aria-label")},function(element){var t=element.getAttribute("aria-labelledby");if(t)return t.split(/\s+/).map((function(t){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(element,t)})).filter((function(label){return Boolean(label)})).map(fr).join(" ")},function(element){return element.getAttribute("alt")},function(element){return element.getAttribute("name")},function(element){return element.getAttribute("title")},function(element){return element.getAttribute("placeholder")},function(element){if("options"in element&&element.options.length>0)return fr(element.options[0])}],ar=[function(element){return fr(element)}],sr=10;function ur(t,e){for(var element=t,n=0;n<=sr&&element&&"BODY"!==element.nodeName&&"HTML"!==element.nodeName&&"HEAD"!==element.nodeName;){for(var r=0,o=e;r100?(e=100,((n=(t=s).charCodeAt(e-1))>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e))+" [...]"):s;var t,e,n}function fr(element){if(!element.isContentEditable){if("innerText"in element){var text=element.innerText;if(Boolean(document.documentMode))for(var t=element.querySelectorAll("script, style"),i=0;i0&&(text=text.replace(e,""))}return text}return element.textContent}}var dr=10*S;function pr(t,e,n){var r=n.actionNameAttribute,o=function(t,e){var n,r;return{create:function(o,c,l){if(!n){var f=new _r(t,o,c,l);n=f,r=Qn(t,e,(function(t){t.hadActivity&&t.duration>=0?f.complete(t.duration):f.discard(),n=void 0}),dr).stop}},discardCurrent:function(){n&&(r(),n.discard(),n=void 0)}}}(t,e);t.subscribe(de.VIEW_CREATED,(function(){o.discardCurrent()}));var c=j(window,"click",(function(t){if(t.target instanceof Element){var element,e,n=(element=t.target,e=r,nr(element,er)||e&&nr(element,e)||ur(element,or)||ur(element,ar)||"");n&&o.create(ne.CLICK,n,t)}}),{capture:!0}).stop;return{stop:function(){o.discardCurrent(),c()}}}var vr,mr,_r=function(){function t(t,e,n,r){this.lifeCycle=t,this.type=e,this.name=n,this.event=r,this.id=I(),this.startClocks=zt(),this.eventCountsSubscription=Xn(t),this.lifeCycle.notify(de.AUTO_ACTION_CREATED,{id:this.id,startClocks:this.startClocks})}return t.prototype.complete=function(t){var e=this.eventCountsSubscription.eventCounts;this.lifeCycle.notify(de.AUTO_ACTION_COMPLETED,{counts:{errorCount:e.errorCount,longTaskCount:e.longTaskCount,resourceCount:e.resourceCount},duration:t,id:this.id,name:this.name,startClocks:this.startClocks,type:this.type,event:this.event}),this.eventCountsSubscription.stop()},t.prototype.discard=function(){this.lifeCycle.notify(de.AUTO_ACTION_DISCARDED),this.eventCountsSubscription.stop()},t}();function gr(t,e){var n=yr(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loading_time:Dt(t.duration),long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}}}:void 0,r=yr(t)?void 0:t.context,o=J({action:{id:I(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:te.ACTION},n),c=e.isInForegroundAt(t.startClocks.relative);return void 0!==c&&(o.view={in_foreground:c}),{customerContext:r,rawRumEvent:o,startTime:t.startClocks.relative,domainContext:yr(t)?{event:t.event}:{}}}function yr(t){return t.type!==ne.CUSTOM}function Er(t){(function(){mr||(mr=new pe,vr=console.error,console.error=function(){for(var t=[],e=0;e=r-c&&Or(n)<=o+c;var n,r,o,c}));return 1===r.length?r[0]:2===r.length&&Or((n=r)[0])<=n[1].startTime?r[1]:void 0}}}function Or(t){return t.startTime+t.duration}function Ar(t){t.subscribe(de.REQUEST_COMPLETED,(function(e){t.notify(de.RAW_RUM_EVENT_COLLECTED,function(t){var e=t.type===T.XHR?w.XHR:w.FETCH,n=Rr(t),r=n?xt(n.startTime):t.startClocks,o=n?kr(n):void 0,c=function(t){var e=t.traceId&&t.spanId;if(!e)return;return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString()}}}(t),l=J({date:r.timeStamp,resource:{id:I(),type:e,duration:Dt(t.duration),method:t.method,status_code:t.status,url:t.url},type:te.RESOURCE},c,o);return{startTime:r.relative,rawRumEvent:l,domainContext:{performanceEntry:n&&Ir(n),xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(e))})),t.subscribe(de.PERFORMANCE_ENTRY_COLLECTED,(function(e){var n;"resource"===e.entryType&&("xmlhttprequest"!==(n=e).initiatorType&&"fetch"!==n.initiatorType)&&t.notify(de.RAW_RUM_EVENT_COLLECTED,function(t){var e=we(t),n=kr(t),r=function(t){return t.traceId?{_dd:{trace_id:t.traceId}}:void 0}(t),o=xt(t.startTime),c=J({date:o.timeStamp,resource:{id:I(),type:e,url:t.name},type:te.RESOURCE},r,n);return{startTime:o.relative,rawRumEvent:c,domainContext:{performanceEntry:Ir(t)}}}(e))}))}function kr(t){return{resource:kt({duration:(e=t,n=e.duration,r=e.startTime,o=e.responseEnd,Dt(0===n&&r=0?r:0,firstInputTime:t.startTime})}})).unsubscribe;return{stop:r}}(t,(function(t){r({firstInputDelay:t.firstInputDelay,firstInputTime:t.firstInputTime})})).stop;return{stop:function(){o(),c(),l(),f()}}}function Dr(t,e,n,r){var o,c={eventCounts:{errorCount:0,longTaskCount:0,resourceCount:0,userActionCount:0}},l=Xn(t,(function(t){c.eventCounts=t,n()})).stop,f=function(t,e){var n=t===ee.INITIAL_LOAD,r=!0,o=[];function c(){!r&&!n&&o.length>0&&e(Math.max.apply(Math,o))}return{setLoadEvent:function(t){n&&(n=!1,o.push(t),c())},setActivityLoadingTime:function(t){r&&(r=!1,void 0!==t&&o.push(t),c())}}}(r,(function(t){c.loadingTime=t,n()})),d=f.setActivityLoadingTime,h=f.setLoadEvent,v=function(t,e,n){return Qn(t,e,(function(t){t.hadActivity?n(t.duration):n(void 0)}))}(t,e,d).stop;return Ue("layout-shift")?(c.cumulativeLayoutShift=0,o=function(t,e){var n=0,r=(f=0,{update:function(t){void 0===c||t.startTime-l>=S||t.startTime-c>=5*S?(c=l=t.startTime,f=t.value):(f+=t.value,l=t.startTime)},value:function(){return f}}),o=t.subscribe(de.PERFORMANCE_ENTRY_COLLECTED,(function(t){"layout-shift"!==t.entryType||t.hadRecentInput||(r.update(t),r.value()>n&&(n=r.value(),e(x(n,4))))})).unsubscribe;var c,l,f;return{stop:o}}(t,(function(t){c.cumulativeLayoutShift=t,n()})).stop):o=L,{stop:function(){l(),v(),o()},setLoadEvent:h,viewMetrics:c}}var Mr=3e3,Ur=5*C;function zr(t,e,n,r,o,c){var l,f=function(r){var o=Pr(e,n,t,ee.INITIAL_LOAD,Pt(),r),c=Lr(e,(function(t){o.updateTimings(t),o.scheduleUpdate()})).stop;return{initialView:o,stop:c}}(c),d=f.stop,h=f.initialView,v=function(){e.subscribe(de.SESSION_RENEWED,(function(){h.end(),h=m(void 0,h.name)})),e.subscribe(de.BEFORE_UNLOAD,(function(){h.end(),h.triggerUpdate()}));var t=window.setInterval(Et((function(){h.triggerUpdate()})),Ur);return{stop:function(){clearInterval(t)}}}().stop;function m(r,o){return Pr(e,n,t,ee.ROUTE_CHANGE,r,o)}return o&&(l=function(t){return t.subscribe((function(t){var e,n,r,o,c=t.oldLocation,l=t.newLocation;if(n=l,(e=c).pathname!==n.pathname||(r=n.hash,o=r.substr(1),!document.getElementById(o)&&Br(n.hash)!==Br(e.hash)))return h.end(),h.triggerUpdate(),void(h=m())}))}(r)),{addTiming:function(t,time){void 0===time&&(time=Mt()),h.addTiming(t,time),h.triggerUpdate()},startView:function(t,e){h.end(e),h.triggerUpdate(),h=m(e,t)},stop:function(){null==l||l.unsubscribe(),d(),v(),h.end()}}}function Pr(t,e,n,r,o,c){void 0===o&&(o=zt());var l,d=I(),h={},v={},m=0,_=kt({},n);t.notify(de.VIEW_CREATED,{id:d,name:c,startClocks:o});var y=A(Et(k),Mr,{leading:!1}),E=y.throttled,w=y.cancel,T=Dr(t,e,E,r),S=T.setLoadEvent,C=T.stop,R=T.viewMetrics;function k(){m+=1;var e=void 0===l?Mt():l.timeStamp;t.notify(de.VIEW_UPDATED,kt(kt({},R),{customTimings:v,documentVersion:m,id:d,name:c,loadingType:r,location:_,startClocks:o,timings:h,duration:Bt(o.timeStamp,e),isActive:void 0===l}))}return k(),{name:c,scheduleUpdate:E,end:function(e){void 0===e&&(e=zt()),l=e,C(),t.notify(de.VIEW_ENDED,{endClocks:l})},triggerUpdate:function(){w(),k()},updateTimings:function(t){h=t,void 0!==t.loadEvent&&S(t.loadEvent)},addTiming:function(t,time){var e=function(time){return timeLi&&"data:"===c.slice(0,5))return"data:truncated";var f=element.ownerDocument;switch(e){case"src":case"href":return Ni(c,null===(n=f.location)||void 0===n?void 0:n.href);case"srcset":return function(t,e){return st("base-tag")?t:t.replace(Ii,(function(t,n,r){return""+n+Ni(r,e)}))}(c,null===(r=f.location)||void 0===r?void 0:r.href);case"style":return ki(c,null===(o=f.location)||void 0===o?void 0:o.href);default:return c}}var Gi=1;var qi=/[^a-z1-6-_]/;function Ki(t){var e=t.toLowerCase().trim();return qi.test(e)?"div":e}function Xi(s){try{var t=s.rules||s.cssRules;return t?Array.from(t).map(Ji).join(""):null}catch(t){return null}}function Ji(t){return function(t){return"styleSheet"in t}(t)?Xi(t.styleSheet)||"":t.cssText}var $i=100;function Qi(t){var e=L,n=[];function r(){e(),t(n),n=[]}return{addMutations:function(t){0===n.length&&(e=function(t){var e=window;if(e.requestIdleCallback){var n=e.requestIdleCallback(Et(t),{timeout:$i});return function(){return e.cancelIdleCallback(n)}}var r=e.requestAnimationFrame(Et(t));return function(){return e.cancelAnimationFrame(r)}}(r)),n.push.apply(n,t)},flush:r,stop:function(){e()}}}function to(t,e,n){var r=he();if(!r)return{stop:L};var o=Qi((function(t){!function(t,e,n){var r=t.filter((function(t){return document.contains(t.target)&&function(t){for(var e=t;e;){if(!Si(e))return!1;e=e.parentNode}return!0}(t.target)&&Di(t.target,n)!==oi.HIDDEN})),o=function(t,e){for(var n=new Set,r=new Map,o=function(t){Hi(t.addedNodes,(function(t){n.add(t)})),Hi(t.removedNodes,(function(e){n.has(e)||r.set(e,t.target),n.delete(e)}))},c=0,l=t;c25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}()?(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)):(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)),r):r},io=function(){var t=window.visualViewport;return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}};function oo(){var t=window.visualViewport;return st("visualviewport")&&t?t.width*t.scale:window.innerWidth||0}function ao(){var t=window.visualViewport;return st("visualviewport")&&t?t.height*t.scale:window.innerHeight||0}function so(){var t=window.visualViewport;return st("visualviewport")&&t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0}function uo(){var t=window.visualViewport;return st("visualviewport")&&t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0}var co=50,lo=100,fo=200;function po(t){var e,n,r,o,c=(e=t.mutationController,n=t.mutationCb,r=t.defaultPrivacyLevel,to(e,n,r).stop),l=function(t){var e=A(Et((function(e){var n=e.target;if(Si(n)){var r=Vi(e)?e.changedTouches[0]:e,o=r.clientX,c=r.clientY,l={id:Ci(n),timeOffset:0,x:o,y:c};if(st("visualviewport")&&window.visualViewport){var f=ro(o,c),d=f.visualViewportX,h=f.visualViewportY;l.x=d,l.y=h}t([l],Vi(e)?Zr.TouchMove:Zr.MouseMove)}})),co,{trailing:!1}).throttled;return Z(document,["mousemove","touchmove"],e,{capture:!0,passive:!0}).stop}(t.mousemoveCb),f=function(t,e){var n=function(n){var r=n.target;if(Di(r,e)!==oi.HIDDEN&&Si(r)){var o=Vi(n)?n.changedTouches[0]:n,c=o.clientX,l=o.clientY,f={id:Ci(r),type:ho[n.type],x:c,y:l};if(st("visualviewport")&&window.visualViewport){var d=ro(c,l),h=d.visualViewportX,v=d.visualViewportY;f.x=h,f.y=v}t(f)}};return Z(document,Object.keys(ho),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.defaultPrivacyLevel),d=function(t,e){var n=A(Et((function(n){var r=n.target;if(r&&Di(r,e)!==oi.HIDDEN&&Si(r)){var o=Ci(r);if(r===document)if(st("visualviewport"))t({id:o,x:so(),y:uo()});else{var c=document.scrollingElement||document.documentElement;t({id:o,x:c.scrollLeft,y:c.scrollTop})}else t({id:o,x:r.scrollLeft,y:r.scrollTop})}})),lo).throttled;return j(document,"scroll",n,{capture:!0,passive:!0}).stop}(t.scrollCb,t.defaultPrivacyLevel),h=function(t){var e=A(Et((function(){var e=ao(),n=oo();t({height:Number(e),width:Number(n)})})),200).throttled;return j(window,"resize",e,{capture:!0,passive:!0}).stop}(t.viewportResizeCb),v=function(t,e){function n(t){var n=t.target,o=Di(n,e);if(n&&n.tagName&&U(vo,n.tagName)&&o!==oi.HIDDEN){var c,l=n.type;if("radio"===l||"checkbox"===l){if(zi(n,o))return;c={isChecked:n.checked}}else{var f=xi(n,o);if(void 0===f)return;c={text:f}}r(n,c);var d=n.name;"radio"===l&&d&&n.checked&&Hi(document.querySelectorAll('input[type="radio"][name="'+d+'"]'),(function(t){t!==n&&r(t,{isChecked:!1})}))}}function r(e,n){if(Si(e)){var r=mo.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(mo.set(e,n),t(Yr(Yr({},n),{id:Ci(e)})))}}var o=Z(document,["input","change"],n,{capture:!0,passive:!0}).stop,c=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),l=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"]],f=[];c&&c.set&&f.push.apply(f,l.map((function(p){return t=p[0],e=p[1],r={set:Et((function(){n({target:this})}))},o=Object.getOwnPropertyDescriptor(t,e),Object.defineProperty(t,e,{set:function(t){var e=this;setTimeout((function(){r.set.call(e,t)}),0),o&&o.set&&o.set.call(this,t)}}),function(){Object.defineProperty(t,e,o||{})};var t,e,r,o})));return function(){f.forEach((function(t){return t()})),o()}}(t.inputCb,t.defaultPrivacyLevel),m=function(t,e){var n=function(n){var r=n.target;r&&Di(r,e)!==oi.HIDDEN&&Si(r)&&t({id:Ci(r),type:"play"===n.type?ri.Play:ri.Pause})};return Z(document,["play","pause"],n,{capture:!0,passive:!0}).stop}(t.mediaInteractionCb,t.defaultPrivacyLevel),_=function(t){var e=CSSStyleSheet.prototype.insertRule;CSSStyleSheet.prototype.insertRule=function(n,r){var o=this;return wt((function(){Si(o.ownerNode)&&t({id:Ci(o.ownerNode),adds:[{rule:n,index:r}]})})),e.call(this,n,r)};var n=CSSStyleSheet.prototype.deleteRule;return CSSStyleSheet.prototype.deleteRule=function(e){var r=this;return wt((function(){Si(r.ownerNode)&&t({id:Ci(r.ownerNode),removes:[{index:e}]})})),n.call(this,e)},function(){CSSStyleSheet.prototype.insertRule=e,CSSStyleSheet.prototype.deleteRule=n}}(t.styleSheetRuleCb),y=(o=t.focusCb,Z(window,["focus","blur"],(function(){o({has_focus:document.hasFocus()})})).stop),E=st("visualviewport")?function(t){if(!window.visualViewport)return L;var e=A(Et((function(){t(io())})),fo,{trailing:!1}),n=e.throttled,r=e.cancel,o=Z(window.visualViewport,["resize","scroll"],n,{capture:!0,passive:!0}).stop;return function(){o(),r()}}(t.visualViewportResizeCb):L;return function(){c(),l(),f(),d(),h(),v(),m(),_(),y(),E()}}var ho=((no={}).mouseup=qr,no.mousedown=Kr,no.click=Xr,no.contextmenu=Jr,no.dblclick=$r,no.focus=Qr,no.blur=ti,no.touchstart=ei,no.touchend=ni,no);var vo=["INPUT","TEXTAREA","SELECT"],mo=new WeakMap;var _o=6e4;function go(t,data,meta,e,n){var r=new FormData;r.append("segment",new Blob([data],{type:"application/octet-stream"}),meta.session.id+"-"+meta.start),yo(meta,(function(t,e){return r.append(t,e)})),r.append("raw_segment_size",e.toString()),new vt(t,_o).send(r,data.byteLength,n)}function yo(input,t,e){void 0===e&&(e=""),F(input).forEach((function(n){var r=n[0],o=n[1];"object"==typeof o&&null!==o?yo(o,t,""+e+r+"."):t(""+e+r,String(o))}))}var bo,Eo=10;function wo(t){So(t).records_count+=1}function To(t){return null==bo?void 0:bo.get(t)}function So(t){var e;return bo||(bo=new Map),bo.has(t)?e=bo.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},bo.set(t,e),bo.size>Eo&&function(){if(!bo)return;if(bo.keys)bo.delete(bo.keys().next().value);else{var t=!0;bo.forEach((function(e,n){t&&(bo.delete(n),t=!1)}))}}()),e}var Co,Ro=0,Oo=function(){function t(t,e,n,r,o,c){var l=this;this.worker=t,this.context=e,this.creationReason=n,this.isFlushed=!1,this.id=Ro++,this.start=r.timestamp,this.end=r.timestamp,this.recordsCount=1,this.hasFullSnapshot=r.type===ii.FullSnapshot;var f=this.context.view.id;!function(t){So(t).segments_count+=1}(f),wo(f);var d=Et((function(e){var data=e.data;"errored"!==data.type&&"initialized"!==data.type&&(data.id===l.id?(!function(t,e){So(t).segments_total_raw_size+=e}(f,data.additionalRawSize),"flushed"===data.type?(c(data.result,data.rawSize),t.removeEventListener("message",d)):o(data.compressedSize)):data.id>l.id&&(t.removeEventListener("message",d),Tt("Segment did not receive a 'flush' response before being replaced.")))}));t.addEventListener("message",d),this.worker.postMessage({data:'{"records":['+JSON.stringify(r),id:this.id,action:"write"})}return t.prototype.addRecord=function(t){this.end=t.timestamp,this.recordsCount+=1,wo(this.context.view.id),this.hasFullSnapshot||(this.hasFullSnapshot=t.type===ii.FullSnapshot),this.worker.postMessage({data:","+JSON.stringify(t),id:this.id,action:"write"})},t.prototype.flush=function(t){this.worker.postMessage({data:"],"+JSON.stringify(this.meta).slice(1)+"\n",id:this.id,action:"flush"}),this.isFlushed=!0,this.flushReason=t},Object.defineProperty(t.prototype,"meta",{get:function(){return Yr({creation_reason:this.creationReason,end:this.end,has_full_snapshot:this.hasFullSnapshot,records_count:this.recordsCount,start:this.start},this.context)},enumerable:!1,configurable:!0}),t}(),Ao=3e4,ko=_o;function Io(t,e,n,r,o,c){return function(t,e,n,r,o){void 0===o&&(o=window);var c={status:0,nextSegmentCreationReason:"init"},l=t.subscribe(de.VIEW_CREATED,(function(){h("view_change")})).unsubscribe,f=t.subscribe(de.BEFORE_UNLOAD,(function(){h("before_unload")})).unsubscribe,d=j(o,"visibilitychange",(function(){"hidden"===document.visibilityState&&h("visibility_hidden")}),{capture:!0}).stop;function h(t){1===c.status&&(c.segment.flush(t||"sdk_stopped"),clearTimeout(c.expirationTimeoutId)),c=t?{status:0,nextSegmentCreationReason:t}:{status:2}}function v(t,o){var l=e();if(l){var f=new Oo(r,l,t,o,(function(t){!f.isFlushed&&t>ko&&h("max_size")}),(function(data,t){n(data,f.meta,t,f.flushReason)}));c={status:1,segment:f,expirationTimeoutId:setTimeout(Et((function(){h("max_duration")})),Ao)}}}return{addRecord:function(t){switch(c.status){case 0:v(c.nextSegmentCreationReason,t);break;case 1:c.segment.addRecord(t)}},stop:function(){h(),l(),f(),d()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),o=n.findView();if(!r||!o)return;return{application:{id:t},session:{id:r.id},view:{id:o.view.id}}}(e,n,r)}),o,c)}function No(){return Co||(Co=URL.createObjectURL(new Blob(["("+xo+")(self)"]))),new Worker(Co)}function xo(){function t(t){return function(){try{return t.apply(this,arguments)}catch(t){try{self.postMessage({type:"errored",error:t})}catch(e){self.postMessage({type:"errored",error:""+t})}}}}t((function(){var e=function(){var t=4,e=0,n=1,r=2;function o(t){for(var e=t.length;--e>=0;)t[e]=0}var c=0,l=1,f=2,d=3,h=258,v=29,m=256,_=m+1+v,y=30,E=19,w=2*_+1,T=15,S=16,C=7,R=256,O=16,A=17,k=18,I=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]),N=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]),x=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),L=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),D=512,M=new Array(2*(_+2));o(M);var U=new Array(2*y);o(U);var z=new Array(D);o(z);var P=new Array(h-d+1);o(P);var B=new Array(v);o(B);var F,V,H,W=new Array(y);function j(t,e,n,r,o){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=t&&t.length}function Z(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}o(W);var Y=function(t){return t<256?z[t]:z[256+(t>>>7)]},G=function(s,t){s.pending_buf[s.pending++]=255&t,s.pending_buf[s.pending++]=t>>>8&255},K=function(s,t,e){s.bi_valid>S-e?(s.bi_buf|=t<>S-s.bi_valid,s.bi_valid+=e-S):(s.bi_buf|=t<>>=1,e<<=1}while(--t>0);return e>>>1},$=function(s){16===s.bi_valid?(G(s,s.bi_buf),s.bi_buf=0,s.bi_valid=0):s.bi_valid>=8&&(s.pending_buf[s.pending++]=255&s.bi_buf,s.bi_buf>>=8,s.bi_valid-=8)},Q=function(s,desc){var t,e,n,r,o,c,l=desc.dyn_tree,f=desc.max_code,d=desc.stat_desc.static_tree,h=desc.stat_desc.has_stree,v=desc.stat_desc.extra_bits,base=desc.stat_desc.extra_base,m=desc.stat_desc.max_length,_=0;for(r=0;r<=T;r++)s.bl_count[r]=0;for(l[2*s.heap[s.heap_max]+1]=0,t=s.heap_max+1;tm&&(r=m,_++),l[2*e+1]=r,e>f||(s.bl_count[r]++,o=0,e>=base&&(o=v[e-base]),c=l[2*e],s.opt_len+=c*(r+o),h&&(s.static_len+=c*(d[2*e+1]+o)));if(0!==_){do{for(r=m-1;0===s.bl_count[r];)r--;s.bl_count[r]--,s.bl_count[r+1]+=2,s.bl_count[m]--,_-=2}while(_>0);for(r=m;0!==r;r--)for(e=s.bl_count[r];0!==e;)(n=s.heap[--t])>f||(l[2*n+1]!==r&&(s.opt_len+=(r-l[2*n+1])*l[2*n],l[2*n+1]=r),e--)}},tt=function(t,e,n){var r,o,c=new Array(T+1),code=0;for(r=1;r<=T;r++)c[r]=code=code+n[r-1]<<1;for(o=0;o<=e;o++){var l=t[2*o+1];0!==l&&(t[2*o]=J(c[l]++,l))}},et=function(){var t,e,n,code,r,o=new Array(T+1);for(n=0,code=0;code>=7;code8?G(s,s.bi_buf):s.bi_valid>0&&(s.pending_buf[s.pending++]=s.bi_buf),s.bi_buf=0,s.bi_valid=0},ot=function(s,t,e,header){it(s),header&&(G(s,e),G(s,~e)),s.pending_buf.set(s.window.subarray(t,t+e),s.pending),s.pending+=e},at=function(t,e,n,r){var o=2*e,c=2*n;return t[o]>1;t>=1;t--)st(s,r,t);n=l;do{t=s.heap[1],s.heap[1]=s.heap[s.heap_len--],st(s,r,1),e=s.heap[1],s.heap[--s.heap_max]=t,s.heap[--s.heap_max]=e,r[2*n]=r[2*t]+r[2*e],s.depth[n]=(s.depth[t]>=s.depth[e]?s.depth[t]:s.depth[e])+1,r[2*t+1]=r[2*e+1]=n,s.heap[1]=n++,st(s,r,1)}while(s.heap_len>=2);s.heap[--s.heap_max]=s.heap[1],Q(s,desc),tt(r,f,s.bl_count)},lt=function(s,t,e){var n,r,o=-1,c=t[1],l=0,f=7,d=4;for(0===c&&(f=138,d=3),t[2*(e+1)+1]=65535,n=0;n<=e;n++)r=c,c=t[2*(n+1)+1],++l=3&&0===s.bl_tree[2*L[t]+1];t--);return s.opt_len+=3*(t+1)+5+5+4,t},ht=function(s,t,e,n){var r;for(K(s,t-257,5),K(s,e-1,5),K(s,n-4,4),r=0;r>>=1)if(1&r&&0!==s.dyn_ltree[2*t])return e;if(0!==s.dyn_ltree[18]||0!==s.dyn_ltree[20]||0!==s.dyn_ltree[26])return n;for(t=32;t0?(s.strm.data_type===r&&(s.strm.data_type=vt(s)),ct(s,s.l_desc),ct(s,s.d_desc),h=pt(s),c=s.opt_len+3+7>>>3,(d=s.static_len+3+7>>>3)<=c&&(c=d)):c=d=n+5,n+4<=c&&-1!==e?_t(s,e,n,o):s.strategy===t||d===c?(K(s,(l<<1)+(o?1:0),3),ut(s,M,U)):(K(s,(f<<1)+(o?1:0),3),ht(s,s.l_desc.max_code+1,s.d_desc.max_code+1,h+1),ut(s,s.dyn_ltree,s.dyn_dtree)),nt(s),o&&it(s)},yt={_tr_init:function(s){mt||(et(),mt=!0),s.l_desc=new Z(s.dyn_ltree,F),s.d_desc=new Z(s.dyn_dtree,V),s.bl_desc=new Z(s.bl_tree,H),s.bi_buf=0,s.bi_valid=0,nt(s)},_tr_stored_block:_t,_tr_flush_block:gt,_tr_tally:function(s,t,e){return s.pending_buf[s.d_buf+2*s.last_lit]=t>>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&t,s.pending_buf[s.l_buf+s.last_lit]=255&e,s.last_lit++,0===t?s.dyn_ltree[2*e]++:(s.matches++,t--,s.dyn_ltree[2*(P[e]+m+1)]++,s.dyn_dtree[2*Y(t)]++),s.last_lit===s.lit_bufsize-1},_tr_align:function(s){K(s,l<<1,3),X(s,R,M),$(s)}},bt=function(t,e,n,r){for(var o=65535&t|0,c=t>>>16&65535|0,l=0;0!==n;){n-=l=n>2e3?2e3:n;do{c=c+(o=o+e[r++]|0)|0}while(--l);o%=65521,c%=65521}return o|c<<16|0},Et=new Uint32Array(function(){for(var t,table=[],e=0;e<256;e++){t=e;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;table[e]=t}return table}()),wt=function(t,e,n,r){var o=Et,c=r+n;t^=-1;for(var i=r;i>>8^o[255&(t^e[i])];return-1^t},Tt={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"},St={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},Ct=yt._tr_init,Rt=yt._tr_stored_block,Ot=yt._tr_flush_block,At=yt._tr_tally,kt=yt._tr_align,It=St.Z_NO_FLUSH,Nt=St.Z_PARTIAL_FLUSH,xt=St.Z_FULL_FLUSH,Lt=St.Z_FINISH,Dt=St.Z_BLOCK,Mt=St.Z_OK,Ut=St.Z_STREAM_END,zt=St.Z_STREAM_ERROR,Pt=St.Z_DATA_ERROR,Bt=St.Z_BUF_ERROR,Ft=St.Z_DEFAULT_COMPRESSION,Vt=St.Z_FILTERED,Ht=St.Z_HUFFMAN_ONLY,Wt=St.Z_RLE,jt=St.Z_FIXED,Zt=St.Z_DEFAULT_STRATEGY,Yt=St.Z_UNKNOWN,Gt=St.Z_DEFLATED,qt=9,Kt=15,Xt=8,Jt=286,$t=30,Qt=19,te=2*Jt+1,ee=15,ne=3,re=258,ie=re+ne+1,oe=32,ae=42,se=69,ue=73,ce=91,le=103,fe=113,de=666,pe=1,he=2,ve=3,me=4,_e=3,ge=function(t,e){return t.msg=Tt[e],e},ye=function(t){return(t<<1)-(t>4?9:0)},be=function(t){for(var e=t.length;--e>=0;)t[e]=0},Ee=function(s,t,data){return(t<t.avail_out&&(e=t.avail_out),0!==e&&(t.output.set(s.pending_buf.subarray(s.pending_out,s.pending_out+e),t.next_out),t.next_out+=e,s.pending_out+=e,t.total_out+=e,t.avail_out-=e,s.pending-=e,0===s.pending&&(s.pending_out=0))},Te=function(s,t){Ot(s,s.block_start>=0?s.block_start:-1,s.strstart-s.block_start,t),s.block_start=s.strstart,we(s.strm)},Se=function(s,b){s.pending_buf[s.pending++]=b},Ce=function(s,b){s.pending_buf[s.pending++]=b>>>8&255,s.pending_buf[s.pending++]=255&b},Re=function(t,e,n,r){var o=t.avail_in;return o>r&&(o=r),0===o?0:(t.avail_in-=o,e.set(t.input.subarray(t.next_in,t.next_in+o),n),1===t.state.wrap?t.adler=bt(t.adler,e,o,n):2===t.state.wrap&&(t.adler=wt(t.adler,e,o,n)),t.next_in+=o,t.total_in+=o,o)},Oe=function(s,t){var e,n,r=s.max_chain_length,o=s.strstart,c=s.prev_length,l=s.nice_match,f=s.strstart>s.w_size-ie?s.strstart-(s.w_size-ie):0,d=s.window,h=s.w_mask,v=s.prev,m=s.strstart+re,_=d[o+c-1],y=d[o+c];s.prev_length>=s.good_match&&(r>>=2),l>s.lookahead&&(l=s.lookahead);do{if(d[(e=t)+c]===y&&d[e+c-1]===_&&d[e]===d[o]&&d[++e]===d[o+1]){o+=2,e++;do{}while(d[++o]===d[++e]&&d[++o]===d[++e]&&d[++o]===d[++e]&&d[++o]===d[++e]&&d[++o]===d[++e]&&d[++o]===d[++e]&&d[++o]===d[++e]&&d[++o]===d[++e]&&oc){if(s.match_start=t,c=n,n>=l)break;_=d[o+c-1],y=d[o+c]}}}while((t=v[t&h])>f&&0!=--r);return c<=s.lookahead?c:s.lookahead},Ae=function(s){var p,t,e,n,r,o=s.w_size;do{if(n=s.window_size-s.lookahead-s.strstart,s.strstart>=o+(o-ie)){s.window.set(s.window.subarray(o,o+o),0),s.match_start-=o,s.strstart-=o,s.block_start-=o,p=t=s.hash_size;do{e=s.head[--p],s.head[p]=e>=o?e-o:0}while(--t);p=t=o;do{e=s.prev[--p],s.prev[p]=e>=o?e-o:0}while(--t);n+=o}if(0===s.strm.avail_in)break;if(t=Re(s.strm,s.window,s.strstart+s.lookahead,n),s.lookahead+=t,s.lookahead+s.insert>=ne)for(r=s.strstart-s.insert,s.ins_h=s.window[r],s.ins_h=Ee(s,s.ins_h,s.window[r+1]);s.insert&&(s.ins_h=Ee(s,s.ins_h,s.window[r+ne-1]),s.prev[r&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=r,r++,s.insert--,!(s.lookahead+s.insert=ne&&(s.ins_h=Ee(s,s.ins_h,s.window[s.strstart+ne-1]),e=s.prev[s.strstart&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=s.strstart),0!==e&&s.strstart-e<=s.w_size-ie&&(s.match_length=Oe(s,e)),s.match_length>=ne)if(n=At(s,s.strstart-s.match_start,s.match_length-ne),s.lookahead-=s.match_length,s.match_length<=s.max_lazy_match&&s.lookahead>=ne){s.match_length--;do{s.strstart++,s.ins_h=Ee(s,s.ins_h,s.window[s.strstart+ne-1]),e=s.prev[s.strstart&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=s.strstart}while(0!=--s.match_length);s.strstart++}else s.strstart+=s.match_length,s.match_length=0,s.ins_h=s.window[s.strstart],s.ins_h=Ee(s,s.ins_h,s.window[s.strstart+1]);else n=At(s,0,s.window[s.strstart]),s.lookahead--,s.strstart++;if(n&&(Te(s,!1),0===s.strm.avail_out))return pe}return s.insert=s.strstart=ne&&(s.ins_h=Ee(s,s.ins_h,s.window[s.strstart+ne-1]),e=s.prev[s.strstart&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=s.strstart),s.prev_length=s.match_length,s.prev_match=s.match_start,s.match_length=ne-1,0!==e&&s.prev_length4096)&&(s.match_length=ne-1)),s.prev_length>=ne&&s.match_length<=s.prev_length){r=s.strstart+s.lookahead-ne,n=At(s,s.strstart-1-s.prev_match,s.prev_length-ne),s.lookahead-=s.prev_length-1,s.prev_length-=2;do{++s.strstart<=r&&(s.ins_h=Ee(s,s.ins_h,s.window[s.strstart+ne-1]),e=s.prev[s.strstart&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=s.strstart)}while(0!=--s.prev_length);if(s.match_available=0,s.match_length=ne-1,s.strstart++,n&&(Te(s,!1),0===s.strm.avail_out))return pe}else if(s.match_available){if((n=At(s,0,s.window[s.strstart-1]))&&Te(s,!1),s.strstart++,s.lookahead--,0===s.strm.avail_out)return pe}else s.match_available=1,s.strstart++,s.lookahead--}return s.match_available&&(n=At(s,0,s.window[s.strstart-1]),s.match_available=0),s.insert=s.strstart=ne&&s.strstart>0&&(n=c[r=s.strstart-1])===c[++r]&&n===c[++r]&&n===c[++r]){o=s.strstart+re;do{}while(n===c[++r]&&n===c[++r]&&n===c[++r]&&n===c[++r]&&n===c[++r]&&n===c[++r]&&n===c[++r]&&n===c[++r]&&rs.lookahead&&(s.match_length=s.lookahead)}if(s.match_length>=ne?(e=At(s,1,s.match_length-ne),s.lookahead-=s.match_length,s.strstart+=s.match_length,s.match_length=0):(e=At(s,0,s.window[s.strstart]),s.lookahead--,s.strstart++),e&&(Te(s,!1),0===s.strm.avail_out))return pe}return s.insert=0,t===Lt?(Te(s,!0),0===s.strm.avail_out?ve:me):s.last_lit&&(Te(s,!1),0===s.strm.avail_out)?pe:he},xe=function(s,t){for(var e;;){if(0===s.lookahead&&(Ae(s),0===s.lookahead)){if(t===It)return pe;break}if(s.match_length=0,e=At(s,0,s.window[s.strstart]),s.lookahead--,s.strstart++,e&&(Te(s,!1),0===s.strm.avail_out))return pe}return s.insert=0,t===Lt?(Te(s,!0),0===s.strm.avail_out?ve:me):s.last_lit&&(Te(s,!1),0===s.strm.avail_out)?pe:he};function Le(t,e,n,r,o){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=o}var De=[new Le(0,0,0,0,(function(s,t){var e=65535;for(e>s.pending_buf_size-5&&(e=s.pending_buf_size-5);;){if(s.lookahead<=1){if(Ae(s),0===s.lookahead&&t===It)return pe;if(0===s.lookahead)break}s.strstart+=s.lookahead,s.lookahead=0;var n=s.block_start+e;if((0===s.strstart||s.strstart>=n)&&(s.lookahead=s.strstart-n,s.strstart=n,Te(s,!1),0===s.strm.avail_out))return pe;if(s.strstart-s.block_start>=s.w_size-ie&&(Te(s,!1),0===s.strm.avail_out))return pe}return s.insert=0,t===Lt?(Te(s,!0),0===s.strm.avail_out?ve:me):(s.strstart>s.block_start&&(Te(s,!1),s.strm.avail_out),pe)})),new Le(4,4,8,4,ke),new Le(4,5,16,8,ke),new Le(4,6,32,32,ke),new Le(4,4,16,16,Ie),new Le(8,16,32,32,Ie),new Le(8,16,128,128,Ie),new Le(8,32,128,256,Ie),new Le(32,128,258,1024,Ie),new Le(32,258,258,4096,Ie)],Me=function(s){s.window_size=2*s.w_size,be(s.head),s.max_lazy_match=De[s.level].max_lazy,s.good_match=De[s.level].good_length,s.nice_match=De[s.level].nice_length,s.max_chain_length=De[s.level].max_chain,s.strstart=0,s.block_start=0,s.lookahead=0,s.insert=0,s.match_length=s.prev_length=ne-1,s.match_available=0,s.ins_h=0};function Ue(){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=Gt,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(2*te),this.dyn_dtree=new Uint16Array(2*(2*$t+1)),this.bl_tree=new Uint16Array(2*(2*Qt+1)),be(this.dyn_ltree),be(this.dyn_dtree),be(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(ee+1),this.heap=new Uint16Array(2*Jt+1),be(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Jt+1),be(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 ze=function(t){if(!t||!t.state)return ge(t,zt);t.total_in=t.total_out=0,t.data_type=Yt;var s=t.state;return s.pending=0,s.pending_out=0,s.wrap<0&&(s.wrap=-s.wrap),s.status=s.wrap?ae:fe,t.adler=2===s.wrap?0:1,s.last_flush=It,Ct(s),Mt},Pe=function(t){var e=ze(t);return e===Mt&&Me(t.state),e},Be=function(t,e,n,r,o,c){if(!t)return zt;var l=1;if(e===Ft&&(e=6),r<0?(l=0,r=-r):r>15&&(l=2,r-=16),o<1||o>qt||n!==Gt||r<8||r>15||e<0||e>9||c<0||c>jt)return ge(t,zt);8===r&&(r=9);var s=new Ue;return t.state=s,s.strm=t,s.wrap=l,s.gzhead=null,s.w_bits=r,s.w_size=1<Dt||e<0)return t?ge(t,zt):zt;var s=t.state;if(!t.output||!t.input&&0!==t.avail_in||s.status===de&&e!==Lt)return ge(t,0===t.avail_out?Bt:zt);s.strm=t;var o=s.last_flush;if(s.last_flush=e,s.status===ae)if(2===s.wrap)t.adler=0,Se(s,31),Se(s,139),Se(s,8),s.gzhead?(Se(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),Se(s,255&s.gzhead.time),Se(s,s.gzhead.time>>8&255),Se(s,s.gzhead.time>>16&255),Se(s,s.gzhead.time>>24&255),Se(s,9===s.level?2:s.strategy>=Ht||s.level<2?4:0),Se(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&(Se(s,255&s.gzhead.extra.length),Se(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(t.adler=wt(t.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=se):(Se(s,0),Se(s,0),Se(s,0),Se(s,0),Se(s,0),Se(s,9===s.level?2:s.strategy>=Ht||s.level<2?4:0),Se(s,_e),s.status=fe);else{var header=Gt+(s.w_bits-8<<4)<<8;header|=(s.strategy>=Ht||s.level<2?0:s.level<6?1:6===s.level?2:3)<<6,0!==s.strstart&&(header|=oe),header+=31-header%31,s.status=fe,Ce(s,header),0!==s.strstart&&(Ce(s,t.adler>>>16),Ce(s,65535&t.adler)),t.adler=1}if(s.status===se)if(s.gzhead.extra){for(n=s.pending;s.gzindex<(65535&s.gzhead.extra.length)&&(s.pending!==s.pending_buf_size||(s.gzhead.hcrc&&s.pending>n&&(t.adler=wt(t.adler,s.pending_buf,s.pending-n,n)),we(t),n=s.pending,s.pending!==s.pending_buf_size));)Se(s,255&s.gzhead.extra[s.gzindex]),s.gzindex++;s.gzhead.hcrc&&s.pending>n&&(t.adler=wt(t.adler,s.pending_buf,s.pending-n,n)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=ue)}else s.status=ue;if(s.status===ue)if(s.gzhead.name){n=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>n&&(t.adler=wt(t.adler,s.pending_buf,s.pending-n,n)),we(t),n=s.pending,s.pending===s.pending_buf_size)){r=1;break}r=s.gzindexn&&(t.adler=wt(t.adler,s.pending_buf,s.pending-n,n)),0===r&&(s.gzindex=0,s.status=ce)}else s.status=ce;if(s.status===ce)if(s.gzhead.comment){n=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>n&&(t.adler=wt(t.adler,s.pending_buf,s.pending-n,n)),we(t),n=s.pending,s.pending===s.pending_buf_size)){r=1;break}r=s.gzindexn&&(t.adler=wt(t.adler,s.pending_buf,s.pending-n,n)),0===r&&(s.status=le)}else s.status=le;if(s.status===le&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&we(t),s.pending+2<=s.pending_buf_size&&(Se(s,255&t.adler),Se(s,t.adler>>8&255),t.adler=0,s.status=fe)):s.status=fe),0!==s.pending){if(we(t),0===t.avail_out)return s.last_flush=-1,Mt}else if(0===t.avail_in&&ye(e)<=ye(o)&&e!==Lt)return ge(t,Bt);if(s.status===de&&0!==t.avail_in)return ge(t,Bt);if(0!==t.avail_in||0!==s.lookahead||e!==It&&s.status!==de){var c=s.strategy===Ht?xe(s,e):s.strategy===Wt?Ne(s,e):De[s.level].func(s,e);if(c!==ve&&c!==me||(s.status=de),c===pe||c===ve)return 0===t.avail_out&&(s.last_flush=-1),Mt;if(c===he&&(e===Nt?kt(s):e!==Dt&&(Rt(s,0,0,!1),e===xt&&(be(s.head),0===s.lookahead&&(s.strstart=0,s.block_start=0,s.insert=0))),we(t),0===t.avail_out))return s.last_flush=-1,Mt}return e!==Lt?Mt:s.wrap<=0?Ut:(2===s.wrap?(Se(s,255&t.adler),Se(s,t.adler>>8&255),Se(s,t.adler>>16&255),Se(s,t.adler>>24&255),Se(s,255&t.total_in),Se(s,t.total_in>>8&255),Se(s,t.total_in>>16&255),Se(s,t.total_in>>24&255)):(Ce(s,t.adler>>>16),Ce(s,65535&t.adler)),we(t),s.wrap>0&&(s.wrap=-s.wrap),0!==s.pending?Mt:Ut)},Ve=Fe,He={deflateInit:function(t,e){return Be(t,e,Gt,Kt,Xt,Zt)},deflateInit2:Be,deflateReset:Pe,deflateResetKeep:ze,deflateSetHeader:function(t,head){return t&&t.state?2!==t.state.wrap?zt:(t.state.gzhead=head,Mt):zt},deflate:Ve,deflateEnd:function(t){if(!t||!t.state)return zt;var e=t.state.status;return e!==ae&&e!==se&&e!==ue&&e!==ce&&e!==le&&e!==fe&&e!==de?ge(t,zt):(t.state=null,e===fe?ge(t,Pt):Mt)},deflateSetDictionary:function(t,e){var n=e.length;if(!t||!t.state)return zt;var s=t.state,r=s.wrap;if(2===r||1===r&&s.status!==ae||s.lookahead)return zt;if(1===r&&(t.adler=bt(t.adler,e,n,0)),s.wrap=0,n>=s.w_size){0===r&&(be(s.head),s.strstart=0,s.block_start=0,s.insert=0);var o=new Uint8Array(s.w_size);o.set(e.subarray(n-s.w_size,n),0),e=o,n=s.w_size}var c=t.avail_in,l=t.next_in,input=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,Ae(s);s.lookahead>=ne;){var f=s.strstart,d=s.lookahead-(ne-1);do{s.ins_h=Ee(s,s.ins_h,s.window[f+ne-1]),s.prev[f&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=f,f++}while(--d);s.strstart=f,s.lookahead=ne-1,Ae(s)}return s.strstart+=s.lookahead,s.block_start=s.strstart,s.insert=s.lookahead,s.lookahead=0,s.match_length=s.prev_length=ne-1,s.match_available=0,t.next_in=l,t.input=input,t.avail_in=c,s.wrap=r,Mt},deflateInfo:"pako deflate (from Nodeca project)"};function We(t){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},We(t)}var je=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},Ze=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var source=e.shift();if(source){if("object"!==We(source))throw new TypeError(source+"must be non-object");for(var p in source)je(source,p)&&(t[p]=source[p])}}return t},Ye={assign:Ze,flattenChunks:function(t){for(var e=0,i=0,n=t.length;i=252?6:q>=248?5:q>=240?4:q>=224?3:q>=192?2:1;function qe(){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}Ge[254]=Ge[254]=1;var Ke=qe,Xe=Object.prototype.toString,Je=St.Z_NO_FLUSH,$e=St.Z_SYNC_FLUSH,Qe=St.Z_FULL_FLUSH,tn=St.Z_FINISH,en=St.Z_OK,nn=St.Z_STREAM_END,rn=St.Z_DEFAULT_COMPRESSION,on=St.Z_DEFAULT_STRATEGY,an=St.Z_DEFLATED;function sn(t){this.options=Ye.assign({level:rn,method:an,chunkSize:16384,windowBits:15,memLevel:8,strategy:on},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ke,this.strm.avail_out=0;var n=He.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==en)throw new Error(Tt[n]);if(e.header&&He.deflateSetHeader(this.strm,e.header),e.dictionary){var r;if(r="[object ArrayBuffer]"===Xe.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=He.deflateSetDictionary(this.strm,r))!==en)throw new Error(Tt[n]);this._dict_set=!0}}return sn.prototype.push=function(data,t){var e,n,r=this.strm,o=this.options.chunkSize;if(this.ended)return!1;for(n=t===~~t?t:!0===t?tn:Je,"[object ArrayBuffer]"===Xe.call(data)?r.input=new Uint8Array(data):r.input=data,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(o),r.next_out=0,r.avail_out=o),(n===$e||n===Qe)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((e=He.deflate(r,n))===nn)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),e=He.deflateEnd(this.strm),this.onEnd(e),this.ended=!0,e===en;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},sn.prototype.onData=function(t){this.chunks.push(t)},sn.prototype.onEnd=function(t){t===en&&(this.result=Ye.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},{Deflate:sn,constants:St}}(),n=e.Deflate,r=e.constants,o=new n,c=0;function l(data){var t=(new TextEncoder).encode(data);return o.push(t,r.Z_SYNC_FLUSH),c+=t.length,t.length}self.addEventListener("message",t((function(t){var data=t.data;switch(data.action){case"init":self.postMessage({type:"initialized"});break;case"write":var e=l(data.data);self.postMessage({type:"wrote",id:data.id,compressedSize:o.chunks.reduce((function(t,e){return t+e.length}),0),additionalRawSize:e});break;case"flush":e=data.data?l(data.data):0;o.push("",r.Z_FINISH),self.postMessage({type:"flushed",id:data.id,result:o.result,additionalRawSize:e,rawSize:c}),o=new n,c=0}})))}))()}var Lo={status:0};function Do(t,e){switch(void 0===e&&(e=No),Lo.status){case 0:Lo={status:1,callbacks:[t]},function(t){void 0===t&&(t=No);try{var e=t();return e.addEventListener("error",Et(Mo)),e.addEventListener("message",Et((function(t){var n,data=t.data;"errored"===data.type?Mo(data.error):"initialized"===data.type&&(n=e,1===Lo.status&&(Lo.callbacks.forEach((function(t){return t(n)})),Lo={status:3,worker:n}))}))),e.postMessage({action:"init"}),e}catch(t){Mo(t)}}(e);break;case 1:Lo.callbacks.push(t);break;case 2:t();break;case 3:t(Lo.worker)}}function Mo(t){1===Lo.status?(f.error("Session Replay recording failed to start: an error occurred while creating the Worker:",t),t instanceof Event||t instanceof Error&&U(t.message,"Content Security Policy")?f.error("Please make sure CSP is correctly configured https://docs.datadoghq.com/real_user_monitoring/faq/content_security_policy"):St(t),Lo.callbacks.forEach((function(t){return t()})),Lo={status:2}):St(t)}var Uo,zo,Po,Bo,Fo=function(t,e,n){var o,c,l,d=(void 0===n?{}:n).ignoreInitIfSyntheticsWillInjectRum,h=void 0===d||d,v=!1,m=(o={},{get:function(){return o},add:function(t,e){o[t]=e},remove:function(t){delete o[t]},set:function(t){o=t}}),_={},y=function(){},E=function(){},w=new Nt,T=function(t,time){void 0===time&&(time=Mt()),w.add((function(){return T(t,time)}))},C=function(t,e){void 0===e&&(e=zt()),w.add((function(){return C(t,e)}))},R=function(t,e){void 0===e&&(e=A()),w.add((function(){return R(t,e)}))},O=function(t,e){void 0===e&&(e=A()),w.add((function(){return O(t,e)}))};function A(){return X({context:m.get(),user:_})}function k(n,r,o,c){var l=t(n,r,o,(function(){return{user:_,context:m.get(),hasReplay:!!e.isRecording()||void 0}}),e,c);C=l.startView,R=l.addAction,O=l.addError,T=l.addTiming,y=l.getInternalContext,w.drain(),e.onRumStart(l.lifeCycle,n,r,l.session,l.parentContexts)}return c={init:Et((function(t){if(!h||!le()){if(ct())t=function(t){return kt(kt({},t),{applicationId:"empty",clientToken:"empty",sampleRate:100})}(t);else if(!function(t){return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_"+I(),n="test";Wt(e,n,S,t);var r=jt(e)===n;return Zt(e,t),r}catch(t){return f.error(t),!1}}(ae(t))?"file:"!==window.location.protocol||(f.error("Execution is not allowed in the current context."),!1):(f.warn("Cookies are not authorized, we will not send any data."),!1)}(t))return;if(function(t){return v?(t.silentMultipleInit||f.error("DD_RUM is already initialized."),!1):t&&t.clientToken?t.applicationId?void 0===t.sampleRate||z(t.sampleRate)?void 0===t.replaySampleRate||z(t.replaySampleRate)?!Array.isArray(t.allowedTracingOrigins)||0===t.allowedTracingOrigins.length||void 0!==t.service||(f.error("Service need to be configured when tracing is enabled"),!1):(f.error("Replay Sample Rate should be a number between 0 and 100"),!1):(f.error("Sample Rate should be a number between 0 and 100"),!1):(f.error("Application ID is not configured, no RUM data will be collected."),!1):(f.error("Client Token is not configured, we will not send any data."),!1)}(t)){at(t.enableExperimentalFeatures);var e=oe(t,fe),n=bt(e);if(e.trackViewsManually){var r=w;w=new Nt,C=function(r){k(t,e,n,r)},r.drain()}else k(t,e,n);E=function(){return X(t)},v=!0}}})),addRumGlobalContext:Et(m.add),removeRumGlobalContext:Et(m.remove),getRumGlobalContext:Et(m.get),setRumGlobalContext:Et(m.set),getInternalContext:Et((function(t){return y(t)})),getInitConfiguration:Et((function(){return E()})),addAction:Et((function(t,e){R({name:t,context:X(e),startClocks:zt(),type:ne.CUSTOM})})),addError:function(t,e){var n=ot();wt((function(){O({error:t,handlingStack:n,context:X(e),startClocks:zt()})}))},addTiming:Et((function(t,time){T(t,time)})),setUser:Et((function(t){var e=function(t){if("object"==typeof t&&t){var e=X(t);return"id"in e&&(e.id=String(e.id)),"name"in e&&(e.name=String(e.name)),"email"in e&&(e.email=String(e.email)),e}}(t);e?_=e:f.error("Unsupported user:",t)})),removeUser:Et((function(){_={}})),startView:Et((function(t){C(t)})),startSessionReplayRecording:Et(e.start),stopSessionReplayRecording:Et(e.stop)},l=r(r({},c),{onReady:function(t){t()}}),Object.defineProperty(l,"_setDebug",{get:function(){return Rt},enumerable:!1}),l}((function(t,e,n,r,o,c){var l,f,d=new me,h=ct()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",hasReplayPlan:!0,hasLitePlan:!1};return{findTrackedSession:function(){return t}}}():_n(e,d),v=(l=he(),f=new pe((function(){if(l){var t=new l(Et((function(){return f.notify()})));return t.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return t.disconnect()}}}))),m=jr(location);n.setExternalContextProvider((function(){var e;return J({application_id:t.applicationId,session:{id:null===(e=h.findTrackedSession())||void 0===e?void 0:e.id}},y.findView(),{view:{name:null}})}));var _=function(t,e,n,r,o,c,l){var f,d=function(t){var e=new Ye(xn),n=new Ye(Ln);function r(view){return{view:{id:view.id,name:view.name}}}return t.subscribe(de.VIEW_CREATED,(function(view){e.setCurrent(r(view),view.startClocks.relative)})),t.subscribe(de.VIEW_UPDATED,(function(view){var t=e.getCurrent();t&&t.view.id===view.id&&e.setCurrent(r(view),view.startClocks.relative)})),t.subscribe(de.VIEW_ENDED,(function(t){var n=t.endClocks;e.closeCurrent(n.relative)})),t.subscribe(de.AUTO_ACTION_CREATED,(function(t){n.setCurrent(function(t){return{action:{id:t.id}}}(t),t.startClocks.relative)})),t.subscribe(de.AUTO_ACTION_COMPLETED,(function(t){if(n.getCurrent()){var e=t.startClocks.relative+t.duration;n.closeCurrent(e)}})),t.subscribe(de.AUTO_ACTION_DISCARDED,(function(){n.clearCurrent()})),t.subscribe(de.SESSION_RENEWED,(function(){e.reset(),n.reset()})),{findAction:function(t){return n.find(t)},findView:function(t){return e.find(t)},stop:function(){e.stop(),n.stop()}}}(e),h=function(t,e,n){var r,o=new Ye(Wr);t.subscribe(de.VIEW_ENDED,(function(t){var e=t.endClocks;o.closeCurrent(e.relative)})),t.subscribe(de.VIEW_CREATED,(function(t){var e=t.startClocks,c=n.href;o.setCurrent(l({url:c,referrer:r||document.referrer}),e.relative),r=c}));var c=e.subscribe((function(t){var e=t.newLocation,n=o.getCurrent();if(n){var r=Ut();o.closeCurrent(r),o.setCurrent(l({url:e.href,referrer:n.view.referrer}),r)}}));function l(t){return{view:{url:t.url,referrer:t.referrer}}}return{findUrl:function(t){return o.find(t)},stop:function(){c.unsubscribe(),o.stop()}}}(e,c,r),v=Cn();ct()?function(t){var e=ut();t.subscribe(de.RUM_EVENT_COLLECTED,(function(t){e.send(t.type,t)}))}(e):f=Hr(n,e).stop;return En(t,n,e,o,d,h,l),{parentContexts:d,foregroundContexts:v,urlContexts:h,stop:function(){null==f||f(),d.stop(),v.stop()}}}(t.applicationId,d,e,location,h,m,r),y=_.parentContexts,E=_.foregroundContexts,w=_.urlContexts;!function(t,e){t.subscribe(de.PERFORMANCE_ENTRY_COLLECTED,(function(n){if("longtask"===n.entryType){var r=e.findTrackedSession(n.startTime);if(r&&!r.hasLitePlan){var o=xt(n.startTime),c={date:o.timeStamp,long_task:{id:I(),duration:Dt(n.duration)},type:te.LONG_TASK};t.notify(de.RAW_RUM_EVENT_COLLECTED,{rawRumEvent:c,startTime:o.relative,domainContext:{performanceEntry:n.toJSON()}})}}}))}(d,h),Ar(d);var T=Fr(d,e,location,v,m,E,o,c),S=T.addTiming,C=T.startView,R=Cr(d,E).addError,O=function(t,e,n,r){return t.subscribe(de.AUTO_ACTION_COMPLETED,(function(e){return t.notify(de.RAW_RUM_EVENT_COLLECTED,gr(e,r))})),n.trackInteractions&&pr(t,e,n),{addAction:function(e,n){t.notify(de.RAW_RUM_EVENT_COLLECTED,kt({savedCommonContext:n},gr(e,r)))}}}(d,v,e,E).addAction;qn(d,e,h),ze(d,e);var A=function(t,e,n,r){return{get:function(o){var c=n.findView(o),l=r.findUrl(o),f=e.findTrackedSession(o);if(f&&c&&l){var d=n.findAction(o);return{application_id:t,session_id:f.id,user_action:d?{id:d.action.id}:void 0,view:kt(kt({},c.view),l.view)}}}}}(t.applicationId,h,y,w);return{addAction:O,addError:R,addTiming:S,startView:C,lifeCycle:d,parentContexts:y,session:h,getInternalContext:A.get}}),function(t,e){if(void 0===e&&(e=Do),ct())return{start:L,stop:L,getReplayStats:function(){},onRumStart:L,isRecording:function(){return!1}};var n={status:0},r=function(){n={status:1}},o=function(){n={status:0}};return{start:function(){return r()},stop:function(){return o()},getReplayStats:To,onRumStart:function(c,l,f,d,h){c.subscribe(de.SESSION_EXPIRED,(function(){2!==n.status&&3!==n.status||(o(),n={status:1})})),c.subscribe(de.SESSION_RENEWED,(function(){1===n.status&&r()})),r=function(){var r=d.findTrackedSession();r&&r.hasReplayPlan?2!==n.status&&3!==n.status&&(n={status:2},Y("interactive",(function(){2===n.status&&e((function(e){if(2===n.status)if(e){var r=t(c,l.applicationId,f,d,h,e).stop;n={status:3,stopRecording:r}}else n={status:0}}))}))):n={status:1}},o=function(){0!==n.status&&(3===n.status&&n.stopRecording(),n={status:0})},1===n.status&&r()},isRecording:function(){return 3===n.status}}}((function(t,e,n,r,o,c){var l=Io(t,e,r,o,(function(data,meta,t,e){return go(n.sessionReplayEndpointBuilder,data,meta,t,e)}),c),f=l.addRecord,d=l.stop;function h(t){f(Yr(Yr({},t),{timestamp:Date.now()}))}var v=function(t){var e=t.emit;if(!e)throw new Error("emit function is required");var n=new eo,r=function(){n.flush(),e({data:{height:ao(),href:window.location.href,width:oo()},type:ii.Meta}),e({data:{has_focus:document.hasFocus()},type:ii.Focus}),e({data:{node:Wi(document,t.defaultPrivacyLevel),initialOffset:{left:so(),top:uo()}},type:ii.FullSnapshot}),st("visualviewport")&&window.visualViewport&&e({data:io(),type:ii.VisualViewport})};return r(),{stop:po({mutationController:n,defaultPrivacyLevel:t.defaultPrivacyLevel,inputCb:function(t){return e({data:Yr({source:Zr.Input},t),type:ii.IncrementalSnapshot})},mediaInteractionCb:function(p){return e({data:Yr({source:Zr.MediaInteraction},p),type:ii.IncrementalSnapshot})},mouseInteractionCb:function(t){return e({data:Yr({source:Zr.MouseInteraction},t),type:ii.IncrementalSnapshot})},mousemoveCb:function(t,source){return e({data:{positions:t,source:source},type:ii.IncrementalSnapshot})},mutationCb:function(t){return e({data:Yr({source:Zr.Mutation},t),type:ii.IncrementalSnapshot})},scrollCb:function(p){return e({data:Yr({source:Zr.Scroll},p),type:ii.IncrementalSnapshot})},styleSheetRuleCb:function(t){return e({data:Yr({source:Zr.StyleSheetRule},t),type:ii.IncrementalSnapshot})},viewportResizeCb:function(t){return e({data:Yr({source:Zr.ViewportResize},t),type:ii.IncrementalSnapshot})},focusCb:function(data){return e({type:ii.Focus,data:data})},visualViewportResizeCb:function(data){e({data:data,type:ii.VisualViewport})}}),takeFullSnapshot:r,flushMutations:function(){return n.flush()}}}({emit:h,defaultPrivacyLevel:n.defaultPrivacyLevel}),m=v.stop,_=v.takeFullSnapshot,y=v.flushMutations,E=t.subscribe(de.VIEW_ENDED,(function(){y(),h({type:ii.ViewEnd})})).unsubscribe,w=t.subscribe(de.VIEW_CREATED,_).unsubscribe;return{stop:function(){E(),w(),m(),d()}}})));Uo=function(){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}(),Po=Fo,Bo=Uo[zo="DD_RUM"],Uo[zo]=Po,Bo&&Bo.q&&Bo.q.forEach((function(t){return At(t,"onReady callback threw an error:")()}))}}]);