@cloudcare/browser-rum 3.2.51 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +89 -1
- package/README.zh.md +105 -0
- package/bundle/dataflux-rum.js +1 -1
- package/cjs/boot/buildEnv.js +1 -1
- package/cjs/boot/perStartRum.js +16 -0
- package/cjs/boot/perStartRum.js.map +1 -1
- package/cjs/boot/recorderApi.js +197 -1
- package/cjs/boot/recorderApi.js.map +1 -1
- package/cjs/boot/rum.js +17 -2
- package/cjs/boot/rum.js.map +1 -1
- package/cjs/boot/rumPublicApi.js +63 -3
- package/cjs/boot/rumPublicApi.js.map +1 -1
- package/cjs/boot/startRecording.js +74 -4
- package/cjs/boot/startRecording.js.map +1 -1
- package/cjs/domain/configuration.js +99 -1
- package/cjs/domain/configuration.js.map +1 -1
- package/cjs/domain/deflate/deflateWorker.js +1 -1
- package/cjs/domain/replay/record/canvasAutoSnapshot.js +15 -0
- package/cjs/domain/replay/record/canvasAutoSnapshot.js.map +1 -0
- package/cjs/domain/replay/record/canvasCommandCapture.js +480 -0
- package/cjs/domain/replay/record/canvasCommandCapture.js.map +1 -0
- package/cjs/domain/replay/record/canvasCommandObserver.js +274 -0
- package/cjs/domain/replay/record/canvasCommandObserver.js.map +1 -0
- package/cjs/domain/replay/record/canvasCommandSerializeArgs.js +94 -0
- package/cjs/domain/replay/record/canvasCommandSerializeArgs.js.map +1 -0
- package/cjs/domain/replay/record/canvasContinuousScheduler.js +255 -0
- package/cjs/domain/replay/record/canvasContinuousScheduler.js.map +1 -0
- package/cjs/domain/replay/record/canvasEncodeBridge.js +247 -0
- package/cjs/domain/replay/record/canvasEncodeBridge.js.map +1 -0
- package/cjs/domain/replay/record/canvasEncodeWorker.js +154 -0
- package/cjs/domain/replay/record/canvasEncodeWorker.js.map +1 -0
- package/cjs/domain/replay/record/canvasFrameSignature.js +50 -0
- package/cjs/domain/replay/record/canvasFrameSignature.js.map +1 -0
- package/cjs/domain/replay/record/canvasMutationRecord.js +33 -0
- package/cjs/domain/replay/record/canvasMutationRecord.js.map +1 -0
- package/cjs/domain/replay/record/canvasObserver.js +190 -0
- package/cjs/domain/replay/record/canvasObserver.js.map +1 -0
- package/cjs/domain/replay/record/canvasReplayFixtures.js +105 -0
- package/cjs/domain/replay/record/canvasReplayFixtures.js.map +1 -0
- package/cjs/domain/replay/record/canvasSerializeArgs.js +110 -0
- package/cjs/domain/replay/record/canvasSerializeArgs.js.map +1 -0
- package/cjs/domain/replay/record/mutationBatch.js +7 -2
- package/cjs/domain/replay/record/mutationBatch.js.map +1 -1
- package/cjs/domain/replay/record/mutationObserver.js +382 -55
- package/cjs/domain/replay/record/mutationObserver.js.map +1 -1
- package/cjs/domain/replay/record/observers.js +8 -3
- package/cjs/domain/replay/record/observers.js.map +1 -1
- package/cjs/domain/replay/record/record.js +517 -1
- package/cjs/domain/replay/record/record.js.map +1 -1
- package/cjs/domain/replay/record/serializationUtils.js +60 -4
- package/cjs/domain/replay/record/serializationUtils.js.map +1 -1
- package/cjs/domain/replay/record/serialize.js +169 -46
- package/cjs/domain/replay/record/serialize.js.map +1 -1
- package/cjs/domain/replay/segmentCollection/segment.js +58 -1
- package/cjs/domain/replay/segmentCollection/segment.js.map +1 -1
- package/cjs/domain/replay/segmentCollection/segmentCollection.js +29 -3
- package/cjs/domain/replay/segmentCollection/segmentCollection.js.map +1 -1
- package/cjs/domain/requestCollection.js +1 -1
- package/cjs/domain/requestCollection.js.map +1 -1
- package/cjs/domain/rumEventsCollection/actions/clickChain.js +1 -1
- package/cjs/domain/rumEventsCollection/actions/clickChain.js.map +1 -1
- package/cjs/domain/rumEventsCollection/actions/interactionSelectorCache.js +2 -1
- package/cjs/domain/rumEventsCollection/actions/interactionSelectorCache.js.map +1 -1
- package/cjs/domain/rumEventsCollection/error/trackReportError.js +2 -2
- package/cjs/domain/rumEventsCollection/error/trackReportError.js.map +1 -1
- package/cjs/domain/rumEventsCollection/resource/matchRequestResourceEntry.js +43 -39
- package/cjs/domain/rumEventsCollection/resource/matchRequestResourceEntry.js.map +1 -1
- package/cjs/domain/rumEventsCollection/resource/resourceCollection.js +48 -8
- package/cjs/domain/rumEventsCollection/resource/resourceCollection.js.map +1 -1
- package/cjs/domain/rumEventsCollection/resource/resourceTrackerManager.js +237 -0
- package/cjs/domain/rumEventsCollection/resource/resourceTrackerManager.js.map +1 -0
- package/cjs/domain/rumEventsCollection/view/trackCumulativeLayoutShift.js.map +1 -1
- package/cjs/domain/rumSessionManager.js +2 -0
- package/cjs/domain/rumSessionManager.js.map +1 -1
- package/cjs/domain/tracing/jaegerTracer.js +6 -6
- package/cjs/domain/tracing/jaegerTracer.js.map +1 -1
- package/cjs/domain/tracing/skywalkingTracer.js +1 -1
- package/cjs/domain/tracing/skywalkingTracer.js.map +1 -1
- package/cjs/domain/tracing/traceIdentifier.js +22 -0
- package/cjs/domain/tracing/traceIdentifier.js.map +1 -1
- package/cjs/domain/tracing/zipkinMultiTracer.js +6 -6
- package/cjs/domain/tracing/zipkinMultiTracer.js.map +1 -1
- package/cjs/domain/tracing/zipkinSingleTracer.js +6 -6
- package/cjs/domain/tracing/zipkinSingleTracer.js.map +1 -1
- package/cjs/types/sessionReplayConstants.js +2 -2
- package/cjs/types/sessionReplayConstants.js.map +1 -1
- package/esm/boot/buildEnv.js +1 -1
- package/esm/boot/perStartRum.js +16 -0
- package/esm/boot/perStartRum.js.map +1 -1
- package/esm/boot/recorderApi.js +197 -1
- package/esm/boot/recorderApi.js.map +1 -1
- package/esm/boot/rum.js +17 -2
- package/esm/boot/rum.js.map +1 -1
- package/esm/boot/rumPublicApi.js +63 -3
- package/esm/boot/rumPublicApi.js.map +1 -1
- package/esm/boot/startRecording.js +75 -5
- package/esm/boot/startRecording.js.map +1 -1
- package/esm/domain/configuration.js +100 -2
- package/esm/domain/configuration.js.map +1 -1
- package/esm/domain/deflate/deflateWorker.js +1 -1
- package/esm/domain/replay/record/canvasAutoSnapshot.js +9 -0
- package/esm/domain/replay/record/canvasAutoSnapshot.js.map +1 -0
- package/esm/domain/replay/record/canvasCommandCapture.js +474 -0
- package/esm/domain/replay/record/canvasCommandCapture.js.map +1 -0
- package/esm/domain/replay/record/canvasCommandObserver.js +268 -0
- package/esm/domain/replay/record/canvasCommandObserver.js.map +1 -0
- package/esm/domain/replay/record/canvasCommandSerializeArgs.js +87 -0
- package/esm/domain/replay/record/canvasCommandSerializeArgs.js.map +1 -0
- package/esm/domain/replay/record/canvasContinuousScheduler.js +249 -0
- package/esm/domain/replay/record/canvasContinuousScheduler.js.map +1 -0
- package/esm/domain/replay/record/canvasEncodeBridge.js +240 -0
- package/esm/domain/replay/record/canvasEncodeBridge.js.map +1 -0
- package/esm/domain/replay/record/canvasEncodeWorker.js +146 -0
- package/esm/domain/replay/record/canvasEncodeWorker.js.map +1 -0
- package/esm/domain/replay/record/canvasFrameSignature.js +42 -0
- package/esm/domain/replay/record/canvasFrameSignature.js.map +1 -0
- package/esm/domain/replay/record/canvasMutationRecord.js +26 -0
- package/esm/domain/replay/record/canvasMutationRecord.js.map +1 -0
- package/esm/domain/replay/record/canvasObserver.js +184 -0
- package/esm/domain/replay/record/canvasObserver.js.map +1 -0
- package/esm/domain/replay/record/canvasReplayFixtures.js +96 -0
- package/esm/domain/replay/record/canvasReplayFixtures.js.map +1 -0
- package/esm/domain/replay/record/canvasSerializeArgs.js +101 -0
- package/esm/domain/replay/record/canvasSerializeArgs.js.map +1 -0
- package/esm/domain/replay/record/mutationBatch.js +7 -2
- package/esm/domain/replay/record/mutationBatch.js.map +1 -1
- package/esm/domain/replay/record/mutationObserver.js +382 -56
- package/esm/domain/replay/record/mutationObserver.js.map +1 -1
- package/esm/domain/replay/record/observers.js +8 -3
- package/esm/domain/replay/record/observers.js.map +1 -1
- package/esm/domain/replay/record/record.js +518 -2
- package/esm/domain/replay/record/record.js.map +1 -1
- package/esm/domain/replay/record/serializationUtils.js +58 -4
- package/esm/domain/replay/record/serializationUtils.js.map +1 -1
- package/esm/domain/replay/record/serialize.js +168 -47
- package/esm/domain/replay/record/serialize.js.map +1 -1
- package/esm/domain/replay/segmentCollection/segment.js +59 -2
- package/esm/domain/replay/segmentCollection/segment.js.map +1 -1
- package/esm/domain/replay/segmentCollection/segmentCollection.js +30 -4
- package/esm/domain/replay/segmentCollection/segmentCollection.js.map +1 -1
- package/esm/domain/requestCollection.js +1 -1
- package/esm/domain/requestCollection.js.map +1 -1
- package/esm/domain/rumEventsCollection/actions/clickChain.js +1 -1
- package/esm/domain/rumEventsCollection/actions/clickChain.js.map +1 -1
- package/esm/domain/rumEventsCollection/actions/interactionSelectorCache.js +2 -1
- package/esm/domain/rumEventsCollection/actions/interactionSelectorCache.js.map +1 -1
- package/esm/domain/rumEventsCollection/error/trackReportError.js +2 -2
- package/esm/domain/rumEventsCollection/error/trackReportError.js.map +1 -1
- package/esm/domain/rumEventsCollection/resource/matchRequestResourceEntry.js +43 -38
- package/esm/domain/rumEventsCollection/resource/matchRequestResourceEntry.js.map +1 -1
- package/esm/domain/rumEventsCollection/resource/resourceCollection.js +50 -10
- package/esm/domain/rumEventsCollection/resource/resourceCollection.js.map +1 -1
- package/esm/domain/rumEventsCollection/resource/resourceTrackerManager.js +231 -0
- package/esm/domain/rumEventsCollection/resource/resourceTrackerManager.js.map +1 -0
- package/esm/domain/rumEventsCollection/view/trackCumulativeLayoutShift.js.map +1 -1
- package/esm/domain/rumSessionManager.js +2 -0
- package/esm/domain/rumSessionManager.js.map +1 -1
- package/esm/domain/tracing/jaegerTracer.js +7 -7
- package/esm/domain/tracing/jaegerTracer.js.map +1 -1
- package/esm/domain/tracing/skywalkingTracer.js +1 -1
- package/esm/domain/tracing/skywalkingTracer.js.map +1 -1
- package/esm/domain/tracing/traceIdentifier.js +20 -0
- package/esm/domain/tracing/traceIdentifier.js.map +1 -1
- package/esm/domain/tracing/zipkinMultiTracer.js +7 -7
- package/esm/domain/tracing/zipkinMultiTracer.js.map +1 -1
- package/esm/domain/tracing/zipkinSingleTracer.js +7 -7
- package/esm/domain/tracing/zipkinSingleTracer.js.map +1 -1
- package/esm/types/sessionReplayConstants.js +2 -2
- package/esm/types/sessionReplayConstants.js.map +1 -1
- package/package.json +5 -5
- package/src/boot/perStartRum.js +16 -0
- package/src/boot/recorderApi.js +208 -1
- package/src/boot/rum.js +21 -2
- package/src/boot/rumPublicApi.js +70 -3
- package/src/boot/startRecording.js +99 -5
- package/src/domain/configuration.js +229 -1
- package/src/domain/replay/record/canvasAutoSnapshot.js +8 -0
- package/src/domain/replay/record/canvasCommandCapture.js +621 -0
- package/src/domain/replay/record/canvasCommandObserver.js +355 -0
- package/src/domain/replay/record/canvasCommandSerializeArgs.js +124 -0
- package/src/domain/replay/record/canvasContinuousScheduler.js +295 -0
- package/src/domain/replay/record/canvasEncodeBridge.js +299 -0
- package/src/domain/replay/record/canvasEncodeWorker.js +211 -0
- package/src/domain/replay/record/canvasFrameSignature.js +83 -0
- package/src/domain/replay/record/canvasMutationRecord.js +29 -0
- package/src/domain/replay/record/canvasObserver.js +279 -0
- package/src/domain/replay/record/canvasReplayFixtures.js +113 -0
- package/src/domain/replay/record/canvasSerializeArgs.js +129 -0
- package/src/domain/replay/record/mutationBatch.js +8 -2
- package/src/domain/replay/record/mutationObserver.js +462 -66
- package/src/domain/replay/record/observers.js +15 -3
- package/src/domain/replay/record/record.js +704 -2
- package/src/domain/replay/record/serializationUtils.js +75 -4
- package/src/domain/replay/record/serialize.js +217 -49
- package/src/domain/replay/segmentCollection/segment.js +65 -2
- package/src/domain/replay/segmentCollection/segmentCollection.js +46 -4
- package/src/domain/requestCollection.js +5 -1
- package/src/domain/rumEventsCollection/actions/clickChain.js +1 -1
- package/src/domain/rumEventsCollection/actions/interactionSelectorCache.js +2 -1
- package/src/domain/rumEventsCollection/error/trackReportError.js +3 -2
- package/src/domain/rumEventsCollection/resource/matchRequestResourceEntry.js +51 -46
- package/src/domain/rumEventsCollection/resource/resourceCollection.js +69 -10
- package/src/domain/rumEventsCollection/resource/resourceTrackerManager.js +264 -0
- package/src/domain/rumEventsCollection/view/trackCumulativeLayoutShift.js +0 -1
- package/src/domain/rumSessionManager.js +2 -0
- package/src/domain/tracing/jaegerTracer.js +16 -9
- package/src/domain/tracing/skywalkingTracer.js +1 -1
- package/src/domain/tracing/traceIdentifier.js +24 -0
- package/src/domain/tracing/zipkinMultiTracer.js +16 -9
- package/src/domain/tracing/zipkinSingleTracer.js +14 -7
- package/src/types/sessionReplayConstants.js +2 -2
- package/types/index.d.ts +148 -1
package/bundle/dataflux-rum.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},e=console,n={};Object.keys(t).forEach((function(t){n[t]=e[t]||ot}));var r,i="GUANCE Browser SDK:",o={debug:n.debug.bind(e,i),log:n.log.bind(e,i),info:n.info.bind(e,i),warn:n.warn.bind(e,i),error:n.error.bind(e,i)},a=!1;function s(t){a=t}function u(t){return function(){return c(t,this,arguments)}}function c(t,e,n){try{return t.apply(e,n)}catch(t){!function(t){if(l(t),r)try{r(t)}catch(t){l(t)}}(t)}}function l(){var t=[].slice.call(arguments);a&&o.error.apply(null,["[MONITOR]"].concat(t))}function f(t,e){return function(){var n=[].slice.call(arguments);try{return t.apply(this,n)}catch(t){o.error(e,t)}}}function d(t){return d="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},d(t)}function p(){if("object"===("undefined"==typeof globalThis?"undefined":d(globalThis)))return globalThis;Object.defineProperty(Object.prototype,"_gc_temp_",{get:function(){return this},configurable:!0});var t=_gc_temp_;return delete Object.prototype._gc_temp_,"object"!==d(t)&&(t="object"===("undefined"==typeof self?"undefined":d(self))?self:"object"===("undefined"==typeof window?"undefined":d(window))?window:{}),t}function v(t,e){var n,r=p();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}function h(t,e){return v(p(),"setTimeout")(u(t),e)}function m(t){v(p(),"clearTimeout")(t)}function g(t,e){return v(p(),"setInterval")(u(t),e)}function y(t){v(p(),"clearInterval")(t)}function _(t){return _="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},_(t)}var b=Array.prototype,w=(Function.prototype,Object.prototype),S=b.slice,x=w.toString,k=w.hasOwnProperty,E=b.forEach,T=Array.isArray,C=!1,O=function(t,e,n){if(null===t)return!1;if(E&&t.forEach===E)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&e.call(n,t[r],r,t)===C)return!1}else for(var o in t)if(k.call(t,o)&&e.call(n,t[o],o,t)===C)return!1};function I(t){return O(S.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function A(t){return I({},t)}var R=function(t){return O(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},P=function(t){return O(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(H(e[n])&&H(t[n])?R(t[n],e[n]):t[n]=e[n])})),t},N=T||function(t){return"[object Array]"===x.call(t)},M=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},L=function(t){return t?t.toArray?t.toArray():N(t)?S.call(t):(e=t)&&k.call(e,"callee")?S.call(t):D(t):[];var e},D=function(t){var e=[];return null===t||O(t,(function(t){e[e.length]=t})),e},U=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(k.call(t,i)){var o=t[i];e.call(n,o,i,t)&&r.push(o)}return r},B=function(t,e,n){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)if(k.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},z=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(k.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},V=function(t,e,n){return void 0===n&&(n=!1),z(t,(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?Ft(e,t):t===e}catch(t){o.error(t)}return!1}))},j=function(t){return t+="",window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}))},H=function(t){return null!==t&&"[object Object]"===x.call(t)},$=function(t){if(H(t)){for(var e in t)if(k.call(t,e))return!1;return!0}return!1},F=function(t){var e=[];return O(t,(function(t,n){e.push([n,t])})),e},q=function(t){return"[object String]"===x.call(t)},W=function(t){return"[object Boolean]"===x.call(t)},G=function(t){return"[object Number]"===x.call(t)&&/[\d\.]+/.test(String(t))},Q=(Date.now,function(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1,u=this;return{throttled:function(){s?r=arguments:(o?t.apply(u,arguments):r=arguments,s=!0,i=h((function(){a&&r&&t.apply(u,r),s=!1,r=void 0}),e))},cancel:function(){m(i),s=!1,r=void 0}}}),K=function(t){if("function"==typeof btoa)return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x"+e)})));var e,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",l=[];if(!(t=String(t)))return t;t=function(t){var e,n,r,i,o="";for(e=n=0,r=(t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=t.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(n>e&&(o+=t.substring(e,n)),o+=s,e=n=i+1)}return n>e&&(o+=t.substring(e,t.length)),o}(t);do{e=(o=t.charCodeAt(s++)<<16|t.charCodeAt(s++)<<8|t.charCodeAt(s++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,l[u++]=a.charAt(e)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<t.length);switch(c=l.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c};function X(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,X)}function J(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var Y=function(t){var e=function(t){this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Path:8,URL:0,QueryString:9,Fragment:10},this._values={},this._regex=null,this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/,void 0!==t&&this._parse(t)};return e.prototype.setUrl=function(t){this._parse(t)},e.prototype._initValues=function(){for(var t in this._fields)this._values[t]=""},e.prototype.addQueryString=function(t){if("object"!==_(t))return!1;var e=this._values.QueryString||"";for(var n in t)e=new RegExp(n+"[^&]+").test(e)?e.replace(new RegExp(n+"[^&]+"),n+"="+t[n]):"&"===e.slice(-1)?e+n+"="+t[n]:""===e?n+"="+t[n]:e+"&"+n+"="+t[n];this._values.QueryString=e},e.prototype.getParse=function(){return this._values},e.prototype.getUrl=function(){var t="";return t+=this._values.Origin,t+=this._values.Path,t+=this._values.QueryString?"?"+this._values.QueryString:""},e.prototype._parse=function(t){this._initValues();var e=this._regex.exec(t);if(!e)throw"DPURLParser::_parse -> Invalid URL";for(var n in this._fields)void 0!==e[this._fields[n]]&&(this._values[n]=e[this._fields[n]]);this._values.Path=this._values.Path||"/",this._values.Hostname=this._values.Host.replace(/:\d+$/,""),this._values.Origin=this._values.Protocol+"://"+this._values.Hostname+(this._values.Port?":"+this._values.Port:"")},new e(t)};var Z=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=tt("?"+n)),e},tt=function(t){for(var e=function(t){return decodeURIComponent(t)},n={},r=(t=t||"").substring(1).split("&"),i=0;i<r.length;i++){var o=r[i].indexOf("=");if(-1!==o){var a=r[i].substring(0,o),s=r[i].substring(o+1);a=e(a),s=e(s),n[a]=s}}return n};function et(t){return null===t?"null":Array.isArray(t)?"array":_(t)}function nt(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!==_(e)||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],o=0;o<e.length;++o)i[o]=nt(i[o],e[o],n);return i}i="object"===et(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=nt(i[a],e[a],n));return i}}function rt(t){return nt(void 0,t)}function it(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):0===t?void 0:t}function ot(){}var at,st=1e3,ut=6e4;function ct(t){return 0!==t&&100*Math.random()<=t}function lt(t,e){return+t.toFixed(e)}function ft(t){return"number"!=typeof t?t:lt(1e6*t,0)}function dt(t){return G(t)?lt(1e6*t,0):t}function pt(t){return t-kt()}function vt(t){return Math.round(kt()+t)}function ht(){return performance.now()}function mt(){return{relative:ht(),timeStamp:gt()}}function gt(){return yt()}function yt(){return(new Date).getTime()}function _t(t,e){return e-t}function bt(){return{relative:0,timeStamp:kt()}}function wt(t){return{relative:t,timeStamp:xt(t)}}function St(t,e){return t+e}function xt(t){var e=yt()-performance.now();return e>kt()?Math.round(e+t):vt(t)}function kt(){return void 0===at&&(at=performance.timing.navigationStart),at}var Et=/([\w-]+)\s*=\s*([^;]+)/g;function Tt(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&H(t)&&r in t&&k.call(t,r)))return;t=t[r]}return t}function Ct(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function Ot(t){var e=et(t);return"string"===e||"function"===e||t instanceof RegExp}function It(t,e){return-1!==t.indexOf(e)}function At(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function Rt(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach((function(t){e.push(t)}));else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function Pt(t){return G(t)&&t>=0&&t<=100}var Nt,Mt=0,Lt=1,Dt=2,Ut=3;function Bt(){return Ht(Nt,Nt=function(t){var e,n;void 0===t&&(t=window||{});var r=(null===(e=t)||void 0===e||null===(e=e.navigator)||void 0===e?void 0:e.userAgent)||"";if(t.chrome||/HeadlessChrome/.test(r))return Lt;if(0===(null===(n=t.navigator.vendor)||void 0===n?void 0:n.indexOf("Apple"))||/safari/i.test(r)&&!/chrome|android/i.test(r))return Dt;if(t.document.documentMode)return Mt;return Ut}())}function zt(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Vt(t){var e={};return O(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=jt(t)})),e}function jt(t){return N(t)?B(t,(function(t){return jt(t)})):"object"===_(t)&&null!==t?Vt(t):t}function Ht(t,e){return null!=t?t:e}function $t(t,e){return z((r=[],null===(n=t)||O(n,(function(t,e){r[r.length]=e})),r),(function(n){return t[n]===e}));var n,r}function Ft(t,e){return t.slice(0,e.length)===e}function qt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function Wt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Gt(t){return G(t)&&t<0?void 0:t}function Qt(){var t=[];return{add:function(e){t.push(e)>500&&t.splice(0,1)},remove:function(e){qt(t,e)},drain:function(e){t.forEach((function(t){t(e)})),t.length=0}}}var Kt=1/0,Xt=null,Jt=new Set;function Yt(t){var e=t.expireDelay,n=t.maxEntries,r=[];function i(){for(var t=ht()-e;r.length>0&&r[r.length-1].endTime<t;)r.pop()}return Xt&&(Xt=g((function(){return i()}),6e4)),Jt.add(i),{add:function(t,e){var i={value:t,startTime:e,endTime:Kt,remove:function(){qt(r,i)},close:function(t){i.endTime=t}};return n&&r.length>=n&&r.pop(),r.unshift(i),i},find:function(t,e){void 0===t&&(t=Kt),void 0===e&&(e={returnInactive:!1});for(var n=0,i=r;n<i.length;n++){var o=i[n];if(o.startTime<=t){if(e.returnInactive||t<=o.endTime)return o.value;break}}},closeActive:function(t){var e=r[0];e&&e.endTime===Kt&&e.close(t)},findAll:function(t,e){void 0===t&&(t=Kt),void 0===e&&(e=0);var n=St(t,e);return r.filter((function(e){return e.startTime<=n&&t<=e.endTime})).map((function(t){return t.value}))},reset:function(){r=[]},stop:function(){Jt.delete(i),0===Jt.size&&Xt&&(y(Xt),Xt=null)}}}var Zt={navigator:"undefined"!=typeof window&&void 0!==window.navigator?window.navigator:{},infoMap:{engine:["WebKit","Trident","Gecko","Presto"],browser:["Safari","Chrome","Edge","IE","IE 11","IE 10","IE 9","IE 8","IE 7","Firefox","Firefox Focus","Chromium","Opera","Vivaldi","Yandex","Arora","Lunascape","QupZilla","Coc Coc","Kindle","Iceweasel","Konqueror","Iceape","SeaMonkey","Epiphany","360","360SE","360EE","UC","QQBrowser","QQ","Baidu","Maxthon","Sogou","LBBROWSER","2345Explorer","TheWorld","XiaoMi","Quark","Qiyu","Wechat",,"WechatWork","Taobao","Alipay","Weibo","Douban","Suning","iQiYi"],os:["Windows","Linux","Mac OS","Android","Ubuntu","FreeBSD","Debian","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"],device:["Mobile","Tablet","iPad"]}},te={getMatchMap:u((function(t){return{Trident:t.indexOf("Trident")>-1||t.indexOf("NET CLR")>-1,Presto:t.indexOf("Presto")>-1,WebKit:t.indexOf("AppleWebKit")>-1,Gecko:t.indexOf("Gecko/")>-1,Safari:t.indexOf("Safari")>-1,Chrome:t.indexOf("Chrome")>-1||t.indexOf("CriOS")>-1,IE:t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1,Edge:t.indexOf("Edge")>-1||t.indexOf("Edg")>-1,Firefox:t.indexOf("Firefox")>-1||t.indexOf("FxiOS")>-1,"Firefox Focus":t.indexOf("Focus")>-1,Chromium:t.indexOf("Chromium")>-1,Opera:t.indexOf("Opera")>-1||t.indexOf("OPR")>-1,Vivaldi:t.indexOf("Vivaldi")>-1,Yandex:t.indexOf("YaBrowser")>-1,Arora:t.indexOf("Arora")>-1,Lunascape:t.indexOf("Lunascape")>-1,QupZilla:t.indexOf("QupZilla")>-1,"Coc Coc":t.indexOf("coc_coc_browser")>-1,Kindle:t.indexOf("Kindle")>-1||t.indexOf("Silk/")>-1,Iceweasel:t.indexOf("Iceweasel")>-1,Konqueror:t.indexOf("Konqueror")>-1,Iceape:t.indexOf("Iceape")>-1,SeaMonkey:t.indexOf("SeaMonkey")>-1,Epiphany:t.indexOf("Epiphany")>-1,360:t.indexOf("QihooBrowser")>-1||t.indexOf("QHBrowser")>-1,"360EE":t.indexOf("360EE")>-1,"360SE":t.indexOf("360SE")>-1,UC:t.indexOf("UC")>-1||t.indexOf(" UBrowser")>-1,QQBrowser:t.indexOf("QQBrowser")>-1,QQ:t.indexOf("QQ/")>-1,Baidu:t.indexOf("Baidu")>-1||t.indexOf("BIDUBrowser")>-1,Maxthon:t.indexOf("Maxthon")>-1,Sogou:t.indexOf("MetaSr")>-1||t.indexOf("Sogou")>-1,LBBROWSER:t.indexOf("LBBROWSER")>-1,"2345Explorer":t.indexOf("2345Explorer")>-1,TheWorld:t.indexOf("TheWorld")>-1,XiaoMi:t.indexOf("MiuiBrowser")>-1,Quark:t.indexOf("Quark")>-1,Qiyu:t.indexOf("Qiyu")>-1,Wechat:t.indexOf("MicroMessenger")>-1,Taobao:t.indexOf("AliApp(TB")>-1,Alipay:t.indexOf("AliApp(AP")>-1,Weibo:t.indexOf("Weibo")>-1,Douban:t.indexOf("com.douban.frodo")>-1,Suning:t.indexOf("SNEBUY-APP")>-1,iQiYi:t.indexOf("IqiyiApp")>-1,Windows:t.indexOf("Windows")>-1,Linux:t.indexOf("Linux")>-1||t.indexOf("X11")>-1,"Mac OS":t.indexOf("Macintosh")>-1,Android:t.indexOf("Android")>-1||t.indexOf("Adr")>-1,Ubuntu:t.indexOf("Ubuntu")>-1,FreeBSD:t.indexOf("FreeBSD")>-1,Debian:t.indexOf("Debian")>-1,"Windows Phone":t.indexOf("IEMobile")>-1||t.indexOf("Windows Phone")>-1,BlackBerry:t.indexOf("BlackBerry")>-1||t.indexOf("RIM")>-1,MeeGo:t.indexOf("MeeGo")>-1,Symbian:t.indexOf("Symbian")>-1,iOS:t.indexOf("like Mac OS X")>-1,"Chrome OS":t.indexOf("CrOS")>-1,WebOS:t.indexOf("hpwOS")>-1,Mobile:t.indexOf("Mobi")>-1||t.indexOf("iPh")>-1||t.indexOf("480")>-1,Tablet:t.indexOf("Tablet")>-1||t.indexOf("Nexus 7")>-1,iPad:t.indexOf("iPad")>-1}})),matchInfoMap:u((function(t){var e=Zt.navigator.userAgent||"",n=te.getMatchMap(e);for(var r in Zt.infoMap)for(var i=0;i<Zt.infoMap[r].length;i++){var o=Zt.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:u((function(){return te.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:u((function(){var t=this,e=Zt.navigator.userAgent||"";t.osVersion="",t.osMajor="";var n={Windows:function(){var t=e.replace(/^.*Windows NT ([\d.]+);.*$/,"$1");return{6.4:"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP",5.1:"XP","5.0":"2000"}[t]||t},Android:function(){return e.replace(/^.*Android ([\d.]+);.*$/,"$1")},iOS:function(){return e.replace(/^.*OS ([\d_]+) like.*$/,"$1").replace(/_/g,".")},Debian:function(){return e.replace(/^.*Debian\/([\d.]+).*$/,"$1")},"Windows Phone":function(){return e.replace(/^.*Windows Phone( OS)? ([\d.]+);.*$/,"$2")},"Mac OS":function(){return e.replace(/^.*Mac OS X ([\d_]+).*$/,"$1").replace(/_/g,".")},WebOS:function(){return e.replace(/^.*hpwOS\/([\d.]+);.*$/,"$1")}};return n[t.os]&&(t.osVersion=n[t.os](),t.osVersion===e&&(t.osVersion="")),t.osVersion&&(t.osMajor=t.osVersion.split(".").length&&t.osVersion.split(".")[0]),{version:t.osVersion,osMajor:t.osMajor}})),getDeviceType:u((function(){var t=this;return t.device="PC",te.matchInfoMap(t),t.device})),getNetwork:u((function(){var t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,e="unknown",n=t?t.type||t.effectiveType:null;if(n&&"string"==typeof n)switch(n){case"bluetooth":case"cellular":case"slow-2g":case"2g":case"3g":e="cellular";break;case"none":e="none";break;case"ethernet":case"wifi":case"wimax":case"4g":e="wifi";break;case"other":case"unknown":e="unknown"}return e})),getLanguage:u((function(){var t;return this.language=((t=(Zt.navigator.browserLanguage||Zt.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getTimeZone:u((function(){try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(t){return}})),getBrowserInfo:u((function(){var t=this;te.matchInfoMap(t);var e=Zt.navigator.userAgent||"",n=function(t,e){var n=Zt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=te.getMatchMap(e),i=!1;if("undefined"!=typeof window&&window.chrome){var o=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");o>36&&window.showModalDialog?i=!0:o>45&&(i=n("type","application/vnd.chromium.remoting-viewer"))}if(r.Baidu&&r.Opera&&(r.Baidu=!1),r.Mobile&&(r.Mobile=!(e.indexOf("iPad")>-1)),i&&(n("type","application/gameplugin")||Zt.navigator&&Zt.navigator.connection&&void 0===Zt.navigator.connection.saveData?r["360SE"]=!0:r["360EE"]=!0),r.IE||r.Edge)switch(window.screenTop-window.screenY){case 71:case 74:case 99:case 75:case 74:case 105:default:break;case 102:r["360EE"]=!0;break;case 104:r["360SE"]=!0}var a={Safari:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Chrome:function(){return e.replace(/^.*Chrome\/([\d.]+).*$/,"$1").replace(/^.*CriOS\/([\d.]+).*$/,"$1")},IE:function(){return e.replace(/^.*MSIE ([\d.]+).*$/,"$1").replace(/^.*rv:([\d.]+).*$/,"$1")},Edge:function(){return e.replace(/^.*Edge?\/([\d.]+).*$/,"$1")},Firefox:function(){return e.replace(/^.*Firefox\/([\d.]+).*$/,"$1").replace(/^.*FxiOS\/([\d.]+).*$/,"$1")},"Firefox Focus":function(){return e.replace(/^.*Focus\/([\d.]+).*$/,"$1")},Chromium:function(){return e.replace(/^.*Chromium\/([\d.]+).*$/,"$1")},Opera:function(){return e.replace(/^.*Opera\/([\d.]+).*$/,"$1").replace(/^.*OPR\/([\d.]+).*$/,"$1")},Vivaldi:function(){return e.replace(/^.*Vivaldi\/([\d.]+).*$/,"$1")},Yandex:function(){return e.replace(/^.*YaBrowser\/([\d.]+).*$/,"$1")},Arora:function(){return e.replace(/^.*Arora\/([\d.]+).*$/,"$1")},Lunascape:function(){return e.replace(/^.*Lunascape[\/\s]([\d.]+).*$/,"$1")},QupZilla:function(){return e.replace(/^.*QupZilla[\/\s]([\d.]+).*$/,"$1")},"Coc Coc":function(){return e.replace(/^.*coc_coc_browser\/([\d.]+).*$/,"$1")},Kindle:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Iceweasel:function(){return e.replace(/^.*Iceweasel\/([\d.]+).*$/,"$1")},Konqueror:function(){return e.replace(/^.*Konqueror\/([\d.]+).*$/,"$1")},Iceape:function(){return e.replace(/^.*Iceape\/([\d.]+).*$/,"$1")},SeaMonkey:function(){return e.replace(/^.*SeaMonkey\/([\d.]+).*$/,"$1")},Epiphany:function(){return e.replace(/^.*Epiphany\/([\d.]+).*$/,"$1")},360:function(){return e.replace(/^.*QihooBrowser\/([\d.]+).*$/,"$1")},"360SE":function(){return{63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},"360EE":function(){return{69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},Maxthon:function(){return e.replace(/^.*Maxthon\/([\d.]+).*$/,"$1")},QQBrowser:function(){return e.replace(/^.*QQBrowser\/([\d.]+).*$/,"$1")},QQ:function(){return e.replace(/^.*QQ\/([\d.]+).*$/,"$1")},Baidu:function(){return e.replace(/^.*BIDUBrowser[\s\/]([\d.]+).*$/,"$1")},UC:function(){return e.replace(/^.*UC?Browser\/([\d.]+).*$/,"$1")},Sogou:function(){return e.replace(/^.*SE ([\d.X]+).*$/,"$1").replace(/^.*SogouMobileBrowser\/([\d.]+).*$/,"$1")},LBBROWSER:function(){var t="";e.indexOf("LieBaoFast")>-1&&(t=e.replace(/^.*LieBaoFast\/([\d.]+).*$/,"$1"));var n=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");return t||{57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[n]||""},"2345Explorer":function(){return e.replace(/^.*2345Explorer\/([\d.]+).*$/,"$1")},TheWorld:function(){return e.replace(/^.*TheWorld ([\d.]+).*$/,"$1")},XiaoMi:function(){return e.replace(/^.*MiuiBrowser\/([\d.]+).*$/,"$1")},Quark:function(){return e.replace(/^.*Quark\/([\d.]+).*$/,"$1")},Qiyu:function(){return e.replace(/^.*Qiyu\/([\d.]+).*$/,"$1")},Wechat:function(){return e.replace(/^.*MicroMessenger\/([\d.]+).*$/,"$1")},WechatWork:function(){return e.replace(/^.*wxwork\/([\d.]+).*$/,"$1")},Taobao:function(){return e.replace(/^.*AliApp\(TB\/([\d.]+).*$/,"$1")},Alipay:function(){return e.replace(/^.*AliApp\(AP\/([\d.]+).*$/,"$1")},Weibo:function(){return e.replace(/^.*weibo__([\d.]+).*$/,"$1")},Douban:function(){return e.replace(/^.*com.douban.frodo\/([\d.]+).*$/,"$1")},Suning:function(){return e.replace(/^.*SNEBUY-APP([\d.]+).*$/,"$1")},iQiYi:function(){return e.replace(/^.*IqiyiVersion\/([\d.]+).*$/,"$1")}};return t.browserVersion="",t.browserMajor="",a[t.browser]&&(t.browserVersion=a[t.browser](),t.browserVersion==e&&(t.browserVersion="")),"Chrome"==t.browser&&e.match(/\S+Browser/)&&(t.browser=e.match(/\S+Browser/)[0],t.version=e.replace(/^.*Browser\/([\d.]+).*$/,"$1")),"Edge"==t.browser&&(t.version>"75"?t.engine="Blink":t.engine="EdgeHTML"),("Chrome"==t.browser&&parseInt(t.browserVersion)>27||r.Chrome&&"WebKit"==t.engine&&parseInt(t.browserVersion)>27||"Opera"==t.browser&&parseInt(t.version)>12||"Yandex"==t.browser)&&(t.engine="Blink"),t.browserVersion&&(t.browserMajor=t.browserVersion.split(".").length&&this.browserVersion.split(".")[0]),{browser:t.browser,browserVersion:t.browserVersion,engine:t.engine,browserMajor:t.browserMajor}})),getGeoPostion:u((function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){o.warn(t)}))}))},ee={};"undefined"!=typeof window&&(ee={os:te.getOS(),osVersion:te.getOSVersion().version,osVersionMajor:te.getOSVersion().osMajor,browser:te.getBrowserInfo().browser,browserVersion:te.getBrowserInfo().browserVersion,browserVersionMajor:te.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:te.getNetwork(),device:te.getDeviceType(),timeZone:te.getTimeZone(),userAgent:Zt.navigator.userAgent||""});var ne=ee,re="beforeunload",ie="click",oe="dblclick",ae="keydown",se="load",ue="popstate",ce="scroll",le="touchstart",fe="touchend",de="touchmove",pe="visibilitychange",ve="prerenderingchange",he="pageshow",me="freeze",ge="resume",ye="DOMContentLoaded",_e="pointerdown",be="pointerup",we="pointercancel",Se="hashchange",xe="pagehide",ke="mousedown",Ee="mousemove",Te="focus",Ce="blur",Oe="contextmenu",Ie="resize",Ae="change",Re="input",Pe="play",Ne="pause",Me="securitypolicyviolation",Le="selectionchange",De="storage",Ue="document",Be="xhr",ze="beacon",Ve="fetch",je="css",He="js",$e="image",Fe="font",qe="media",We="other",Ge="custom",Qe="click",Ke="custom",Xe="rage_click",Je="error_click",Ye="dead_click",Ze={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},tn="long-task",en="long-animation-frame",nn="initial_load",rn="route_change",on={FETCH:Ve,XHR:Be},an="ddtrace",sn="zipkin",un="zipkin_single_header",cn="w3c_traceparent",ln="w3c_traceparent_64bit",fn="skywalking_v3",dn="jaeger",pn="handled",vn="unhandled",hn="Uncaught",mn="Provided";function gn(t){return gn="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},gn(t)}function yn(t,e,n){if("object"!==gn(t)||null===t)return JSON.stringify(t);var r=_n(Object.prototype),i=_n(Array.prototype),o=_n(Object.getPrototypeOf(t)),a=_n(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function _n(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):ot}function bn(t){return bn="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},bn(t)}var wn="?";function Sn(t){var e=[],n=Rn(t,"stack"),r=String(t);return n&&n.startsWith(r)&&(n=n.slice(r.length)),n&&O(n.split("\n"),(function(t){var n=function(t){var e=En.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=Tn.exec(e[2]);r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||wn,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Cn.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:wn,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=On.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||wn,line:+e[3],url:e[2]}}(t)||function(t){var e=In.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=An.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||wn,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=wn),e.push(n))})),{message:Rn(t,"message"),name:Rn(t,"name"),stack:e}}var xn="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",kn="(?::(\\d+))",En=new RegExp("^\\s*at (.*?) ?\\("+xn+kn+"?"+kn+"?\\)?\\s*$","i"),Tn=new RegExp("\\((\\S*)"+kn+kn+"\\)");var Cn=new RegExp("^\\s*at ?"+xn+kn+"?"+kn+"??\\s*$","i");var On=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var In=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?\s*$/i,An=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Rn(t,e){if("object"===bn(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var Pn=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Nn(t){var e=function(t){return tr(window,"onerror",(function(e){var n,r=e.parameters,i=r[0],o=r[1],a=r[2],s=r[3],u=r[4];if(u instanceof Error)n=Sn(u);else{var c={url:o,column:s,line:a},l=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=Pn.exec(t);r&&(e=r[1],n=r[2])}return{name:e,message:n}}(i);n={name:l.name,message:l.message,stack:[c]}}t(n,Ht(u,i))}))}(t),n=function(t){return tr(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=Sn(n);t(r,n)}))}(t);return{stop:function(){e.stop(),n.stop()}}}var Mn=1024,Ln=/[^\u0000-\u007F]/;function Dn(t){return Ln.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Un(t){return Un="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},Un(t)}function Bn(t,e){void 0===e&&(e=225280);var n=_n(Object.prototype),r=_n(Array.prototype),i=[],o=new WeakMap,a=zn(t,"$",void 0,i,o),s=JSON.stringify(a)&&JSON.stringify(a).length||0;if(!(s>e)){for(;i.length>0&&s<e;){var u=i.shift(),c=0;if(Array.isArray(u.source))for(var l=0;l<u.source.length;l++){if(s+=void 0!==(f=zn(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){jn(e,"truncated",t);break}u.target[l]=f}else for(var l in u.source)if(Object.prototype.hasOwnProperty.call(u.source,l)){var f;if(void 0!==(f=zn(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+3,c=1),s>e){jn(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}jn(e,"discarded",t)}function zn(t,e,n,r,i){var o=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(t);if(!o||"object"!==Un(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Un(t))return"[Symbol] "+t.description||0;return t}(o);var a=Vn(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=t;if(i.has(s))return"[Reference seen at "+i.get(s)+"]";var u=void 0!==n?e+"."+n:e,c=Array.isArray(o)?[]:{};return i.set(s,u),r.push({source:o,target:c,path:u}),c}function Vn(t){try{if(t instanceof Event)return{type:(n=t).type,isTrusted:n.isTrusted,currentTarget:n.currentTarget?Vn(n.currentTarget):null,target:n.target?Vn(n.target):null};if(t instanceof RegExp)return"[RegExp] ".concat(t.toString());var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}var n;return"[Unserializable]"}function jn(t,e,n){o.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",n)}var Hn="No stack, consider using an instance of Error",$n="agent",Fn="console",qn="source",Wn="custom",Gn="report";function Qn(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=void 0===t.useFallbackStack||t.useFallbackStack,c=Zn(n);!e&&c&&(e=Sn(n));var l=function(t,e,n,r){return t&&t.message&&t&&t.name?t.message:e?"Empty message":n+" "+yn(Bn(r))}(e,c,o,n);return{startClocks:i,source:a,handling:s,originalError:n,message:l,stack:e?Xn(e):u?Hn:void 0,handlingStack:r,type:e?e.name:void 0,causes:c?Yn(n,a):void 0}}function Kn(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return c((function(){var n=Sn(e);n.stack=n.stack.slice(2),t=Xn(n)})),t}function Xn(t){var e=Jn(t);return O(t.stack,(function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"("+t.args.join(", ")+")":"",i=t.line?":"+t.line:"",o=t.line&&t.column?":"+t.column:"";e+="\n at "+n+r+" @ "+t.url+i+o})),e}function Jn(t){return(t.name||"Error")+": "+t.message}function Yn(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=Sn(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&Xn(i)}),n=n.cause}return r.length?r:void 0}function Zn(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}function tr(t,e,n,r){var i=r&&r.computeHandlingStack,o=t[e];if("function"!=typeof o){if(!Ft(e,"on"))return{stop:ot};o=ot}var a=!1,s=function(){if(a)return o.apply(this,arguments);var t,e=Rt(arguments);c(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:i?Kn():void 0}]);var r=o.apply(this,e);return t&&c(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=o)}}}function er(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:ot};var i=ot,o=function(t,e){h((function(){o!==i&&n(t,e)}),0)},a=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){Object.getOwnPropertyDescriptor(t,e)&&Object.getOwnPropertyDescriptor(t,e).set===a&&Object.defineProperty(t,e,r),o=i}}}var nr=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};nr.prototype={subscribe:function(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0);var e=this;return{unsubscribe:function(){e.observers=U(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){O(this.observers,(function(e){e(t)}))}};var rr=nr;function ir(){var t=[].slice.call(arguments);return new rr((function(e){var n=B(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return O(n,(function(t){return t.unsubscribe()}))}}))}var or={};function ar(e){var n=B(e,(function(e){return or[e]||(or[e]=function(e){return new rr((function(n){var r=console[e];return console[e]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=Kn();c((function(){n.notify(function(e,n,r){var i=B(e,(function(t){return function(t){if("string"==typeof t)return Bn(t);if(Zn(t))return Jn(Sn(t));return yn(Bn(t),void 0,2)}(t)})).join(" ");if(n===t.error){var o=Qn({originalError:At(e,Zn),startClocks:mt(),message:i,source:Fn,handling:pn,handlingStack:r,nonErrorPrefix:mn,useFallbackStack:!1});return o.message=i,{api:n,message:i,error:o,handlingStack:r}}return{api:n,message:i,error:void 0,handlingStack:r}}(i,e,o))}))},function(){console[e]=r}}))}(e)),or[e]}));return ir.apply(this,n)}function sr(t,e,n,r){return ur(t,[e],n,r)}function ur(t,e,n,r){var i=u(r&&r.once?function(t){o(),n(t)}:n);r=r&&r.passive?{capture:r.capture,passive:r.passive}:r&&r.capture,O(e,(function(e){cr(t,"addEventListener",(function(n){return n.call(t,e,i,r)}))}));var o=function(){O(e,(function(e){cr(t,"removeEventListener",(function(n){return n.call(t,e,i,r)}))}))};return{stop:o}}function cr(t,e,n){var r=v(window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,e);try{n(r)}catch(r){if(function(t,e){return t instanceof Error&&(t.message.includes("Illegal invocation")||t.message.includes("'".concat(e,"' called on an object that does not implement interface EventTarget."))||t.message.includes("Can only call EventTarget.".concat(e," on instances of EventTarget")))}(r,e))return n(t[e]);throw r}}var lr="intervention",fr="csp_violation";function dr(t,e){var n=[];It(e,fr)&&n.push(new rr((function(t){return sr(document,Me,(function(e){t.notify(function(t){var e="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return pr({type:t.effectiveDirective,message:fr+": "+e,originalError:t,csp:{disposition:t.disposition},stack:vr(t.effectiveDirective,t.originalPolicy?"".concat(e,' of the policy "').concat(Ct(t.originalPolicy,100),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}(e))})).stop})));var r=U(e,(function(t){return t!==fr}));return r.length&&n.push(function(t){return new rr((function(e){if(window.ReportingObserver){var n=u((function(t){O(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return pr({type:e.id,message:n+": "+e.message,originalError:t,stack:vr(e.id,e.message,e.sourceFile,e.lineNumber,e.columnNumber)})}(t))}))})),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),function(){r.disconnect()}}}))}(r)),ir.apply(this,n)}function pr(t){return I({startClocks:mt(),source:ErrorSource.REPORT,handling:ErrorHandling.UNHANDLED},t)}function vr(t,e,n,r,i){return n&&Xn({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var hr=function(){this._events=[],this.pendingEvents=[]};hr.prototype={emit:function(t){var e=[].slice.call(arguments,1);O(this._events,(function(n){if(n.type!==t)return!1;n.callback.apply(n.context,e)}))},on:function(t,e,n){"function"==typeof e&&this._events.push({type:t,callback:e,context:n||this})}};new hr;var mr,gr,yr="AUTO_ACTION_COMPLETED",_r="BEFORE_VIEW_CREATED",br="VIEW_CREATED",wr="VIEW_UPDATED",Sr="BEFORE_VIEW_UPDATED",xr="VIEW_ENDED",kr="AFTER_VIEW_ENDED",Er="SESSION_RENEWED",Tr="SESSION_EXPIRED",Cr="PAGE_EXITED",Or="REQUEST_STARTED",Ir="REQUEST_COMPLETED",Ar="RAW_RUM_EVENT_COLLECTED",Rr="RUM_EVENT_COLLECTED",Pr="RAW_ERROR_COLLECTED";function Nr(){this.callbacks={}}function Mr(t){return zr(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ur(t)||Dr()}function Lr(t,e){return zr(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||Ur(t,e)||Dr()}function Dr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ur(t,e){if(t){if("string"==typeof t)return Br(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Br(t,e):void 0}}function Br(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function zr(t){if(Array.isArray(t))return t}function Vr(t,e,n){var r=rt(t),i=n(r);return F(e).forEach((function(e){var n=Lr(e,2),i=n[0],o=n[1];return jr(t,r,i.split(/\.|(?=\[\])/),o)})),i}function jr(t,e,n,r){var i=Mr(n),o=i[0],a=i.slice(1);if("[]"!==o){if(Hr(t)&&Hr(e))return a.length>0?jr(t[o],e[o],a,r):void function(t,e,n,r){var i=et(n);i===r?t[e]=Bn(n):"object"!==r||"undefined"!==i&&"null"!==i||(t[e]={})}(t,o,e[o],r)}else Array.isArray(t)&&Array.isArray(e)&&t.forEach((function(t,n){return jr(t,e[n],a,r)}))}function Hr(t){return"object"===et(t)}function $r(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&h((function(){r=0}),ut),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:"Reached max number of "+t+"s by minute: "+e,source:$n,startClocks:mt()})}finally{i=!1}}return!0}}}function Fr(t){return Wr(t,zt(window.location)).href}function qr(t){return zt(Wr(t))}function Wr(t,e){if(function(){if(void 0!==mr)return mr;try{var t=new URL("http://test/path");return mr="http://test/path"===t.href}catch(t){mr=!1}return mr}())return void 0!==e?new URL(t,e):new URL(t);if(void 0===e&&!/:/.test(t))throw new Error("Invalid URL: "+t);var n=document,r=n.createElement("a");if(void 0!==e){var i=(n=document.implementation.createHTMLDocument("")).createElement("base");i.href=e,n.head.appendChild(i),n.body.appendChild(r)}return r.href=t,r}Nr.prototype={notify:function(t,e){var n=this.callbacks[t];n&&O(n,(function(t){t(e)}))},subscribe:function(t,e){this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e);var n=this;return{unsubscribe:function(){n.callbacks[t]=U(n.callbacks[t],(function(t){return t!==e}))}}}};var Gr=(null===(gr=navigator)||void 0===gr||null===(gr=gr.userAgent)||void 0===gr?void 0:gr.toLowerCase())||"",Qr=function(){return/iphone os/.test(Gr)};function Kr(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(u(t),e);return function(){return window.cancelIdleCallback(n)}}return function(t){var e=yt(),n=h((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,Xr-(yt()-e))}})}),0);return function(){return m(n)}}(t)}var Xr=50;var Jr,Yr=/^\s+|\s+$/g,Zr={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function ti(t,e){var n=Zr[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+ei(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?ei(r)+"v1/write"+n:ei(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function ei(t){return t.replace(Yr,"")}function ni(t,e){return"".concat(t,"_").concat(e&&e.crossSite?"cs1":"cs0","_").concat(e&&e.domain?"d1":"d0","_").concat(e&&e.secure?"sec1":"sec0","_").concat(e&&e.partitioned?"part1":"part0")}function ri(t,e,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires="+i.toUTCString(),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain="+r.domain:"",u=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie=ni(t,r)+"="+e+";"+o+";path=/;samesite="+a+s+u+c}function ii(t,e){return function(t,e){for(Et.lastIndex=0;;){var n=Et.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,ni(t,e))}function oi(t,e){ri(t,"",0,e)}var ai=144e5,si=9e5,ui="_gc_s",ci="cookie",li="local-storage";function fi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return di(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?di(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function di(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var pi=/^([a-zA-Z]+)=([a-z0-9-]+)$/,vi="&";function hi(t){return $(t)}function mi(t){return void 0!==t.isExpired||!((void 0===(e=t).created||yt()-Number(e.created)<ai)&&(void 0===e.expire||yt()<Number(e.expire)));var e}function gi(t){return B(F(t),(function(t){return t[0]+"="+t[1]})).join("&")}function yi(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(vi)||pi.test(t))}(t)&&t.split(vi).forEach((function(t){var n=pi.exec(t);if(null!==n){var r=fi(n,3),i=r[1],o=r[2];e[i]=o}})),e}function _i(t){var e=function(t){var e={};e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===Jr){for(var t="gc_site_test_".concat(X()),e=window.location.hostname.split("."),n=e.pop();e.length&&!ii(t,{domain:n});)n="".concat(e.pop(),".").concat(n),ri(t,"test",st,{domain:n});oi(t,{domain:n}),Jr=n}return Jr}());return e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="gc_cookie_test_".concat(X()),n="test";ri(e,n,ut,t);var r=ii(e,t)===n;return oi(e,t),r}catch(t){return!1}}(e)?{type:ci,cookieOptions:e}:void 0}function bi(t){var e;return{isLockEnabled:Bt()===Lt,persistSession:(e=t,function(t){ri(ui,gi(t),si,e)}),retrieveSession:wi(t),expireSession:function(){return function(t){ri(ui,gi({isExpired:"1"}),ai,t)}(t)}}}function wi(t){return function(){return yi(ii(ui,t))}}function Si(){try{var t=X(),e="".concat("_gc_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:li}:void 0}catch(t){return}}function xi(t){localStorage.setItem(ui,gi(t))}function ki(){return yi(localStorage.getItem(ui))}function Ei(){xi({isExpired:"1"})}function Ti(){var t,e=window.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:null===(t=e.connection)||void 0===t?void 0:t.effectiveType}}var Ci="log",Oi="configuration",Ii="usage",Ai="debug",Ri="error",Pi=["https://static.guance.com","http://localhost","<anonymous>"],Ni="browser-rum-sdk",Mi=Qt(),Li=function(t){Mi.add((function(){Li(t)}))};function Di(t,e){var n,i=new rr,o=new Set,a=e.telemetryEnabled&&ct(e.telemetrySampleRate),s={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return Li=function(r){var u=yn(r);if(a&&o.size<e.maxTelemetryEventsPerPage&&!o.has(u)){var c=function(t,e,r){return P({type:"telemetry",date:gt(),service:t,version:"3.2.51",source:"browser",telemetry:P(e,{runtime_env:r,connectivity:Ti()})},void 0!==n?n():{})}(t,r,s);i.notify(c),o.add(u)}},r=Bi,{setContextProvider:function(t){n=t},observable:i,enabled:a}}function Ui(t,e){l(t,e),Li(I({type:Ci,message:t,status:Ai},e))}function Bi(t,e){Li(I({type:Ci,status:Ri},function(t){if(t instanceof Error){var e=Sn(t);return{error:{kind:e.name,stack:Xn(Vi(e))},message:e.message}}return{error:{stack:Hn},message:hn+" "+yn(t)}}(t),e))}function zi(t){Li({type:Ii,usage:t})}function Vi(t){return t.stack=t.stack.filter((function(t){return!t.url||Pi.some((function(e){return Ft(t.url,e)}))})),t}var ji=["lock"];function Hi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return $i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Fi,qi="--",Wi=[];function Gi(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.isLockEnabled,i=e.persistSession,o=e.expireSession,a=function(t){return i(I({},t,{lock:u}))},s=function(){var t=e.retrieveSession(),n=t.lock;return{session:function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,ji),lock:n&&!Xi(n)?n:void 0}};if(Fi||(Fi=t),t===Fi){if(r&&n>=100)return Ui("Aborted session operation after max lock retries",{currentStore:s()}),void Ki(e);var u,c=s();if(r){if(c.lock)return void Qi(t,e,n);if(u=X()+qi+gt(),a(c.session),(c=s()).lock!==u)return void Qi(t,e,n)}var l=t.process(c.session);if(r&&(c=s()).lock!==u)Qi(t,e,n);else{if(l&&(mi(l)?o():(l.expire=String(yt()+si),r?a(l):i(l))),r&&(!l||!mi(l))){if((c=s()).lock!==u)return void Qi(t,e,n);i(c.session),l=c.session}t.after&&t.after(l||c.session),Ki(e)}}else Wi.push(t)}function Qi(t,e,n){h((function(){Gi(t,e,n+1)}),10)}function Ki(t){Fi=void 0;var e=Wi.shift();e&&Gi(e,t)}function Xi(t){var e=Hi(t.split(qi),2)[1];return!e||_t(Number(e),gt())>1e3}var Ji=st;function Yi(t){switch(t.sessionPersistence){case ci:return _i(t);case li:return Si();case void 0:var e=_i(t);return!e&&t.allowFallbackToLocalStorage&&(e=Si()),e;default:o.error("Invalid session persistence '".concat(String(t.sessionPersistence),"'"))}}function Zi(t,e,n){var r,i=new rr,o=new rr,a=new rr,s=t.type===ci?bi(t.cookieOptions):{isLockEnabled:!1,persistSession:xi,retrieveSession:ki,expireSession:Ei},u=s.expireSession,c=g((function(){Gi({process:function(t){return mi(t)?{isExpired:"1"}:void 0},after:p},s)}),Ji);v();var l=Q((function(){Gi({process:function(t){if(!hi(t)){var r=p(t);return function(t){if(hi(t))return!1;var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,delete t.isExpired,o&&!t.id&&(t.id=X(),t.created=String(yt()))}(r),r}},after:function(t){hi(t)||h()||function(t){r=t,i.notify()}(t),r=t}},s)}),Ji),f=l.throttled,d=l.cancel;function p(t){return mi(t)&&(t={isExpired:"1"}),h()&&(!function(t){return r.id!==t.id||r[e]!==t[e]}(t)?(a.notify({previousState:r,newState:t}),r=t):(r={isExpired:"1"},o.notify())),t}function v(){Gi({process:function(t){if(hi(t))return{isExpired:"1"}},after:function(t){r=t}},s)}function h(){return void 0!==r[e]}return{expandOrRenewSession:f,expandSession:function(){Gi({process:function(t){return h()?p(t):void 0}},s)},getSession:function(){return r},renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a,restartSession:v,expire:function(){d(),u(),p({isExpired:"1"})},stop:function(){y(c)},updateSessionState:function(t){Gi({process:function(e){return I({},e,t)},after:p},s)}}}var to={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function eo(t){if(void 0===t.sampleRate||Pt(t.sampleRate))if(void 0===t.sessionSampleRate||Pt(t.sessionSampleRate)){if(void 0===t.telemetrySampleRate||Pt(t.telemetrySampleRate)){var e=Ht(t.sessionSampleRate,t.sampleRate);return I({beforeSend:t.beforeSend&&f(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Yi(t),isOpenWay:t.site&&t.clientToken,sessionSampleRate:Ht(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:Ht(t.telemetrySampleRate,100),telemetryEnabled:Ht(t.telemetryEnabled,!1),silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144,resourceUrlLimit:5120,storeContextsToLocal:!!t.storeContextsToLocal,storeContextsKey:t.storeContextsKey,sendContentTypeByJson:!!t.sendContentTypeByJson,retryMaxSize:Ht(t.retryMaxSize,-1)},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&M(t.isIntakeUrl)&&W(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&M(t.isServerError)&&W(t.isServerError())&&(n=t.isServerError),{rumEndpoint:ti(t,"rum"),logsEndpoint:ti(t,"log"),sessionReplayEndPoint:ti(t,"sessionReplay"),isIntakeUrl:e,isServerError:n}}(t))}o.error("Telemetry Sample Rate should be a number between 0 and 100")}else o.error("Sample Rate should be a number between 0 and 100");else o.error("Sample Rate should be a number between 0 and 100")}function no(t){return no="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},no(t)}function ro(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function io(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ro(Object(n),!0).forEach((function(e){oo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function oo(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=no(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=no(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==no(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ao(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return so(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?so(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function so(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function uo(t,e){!function(t,e){var n=new XMLHttpRequest;sr(n,"load",(function(){if(200===n.status){var t=JSON.parse(n.responseText);e(t.content)}else e({}),vo()})),sr(n,"error",(function(){e({}),vo()})),n.open("GET",function(t){var e=t.datakitOrigin||t.datakitUrl||t.site;0===e.indexOf("/")&&(e=location.origin+ei(e));var n=e;n=e.lastIndexOf("/")===e.length-1?ei(e)+"v1/env_variable":ei(e)+"/v1/env_variable";n+="?app_id="+t.applicationId,t.site&&t.clientToken&&(n=n+"&token="+t.clientToken+"&to_headless=true");return n}(t)),n.send()}(t,(function(n){e(function(t,e){var n=po(t,e);return io(io({},t),function(t,e){var n={};return F(e).forEach((function(e){var r=ao(e,2),i=r[0],o=r[1],a=t[i];et(a)===o&&(n[i]=a)})),n}(n,fo))}(t,n),po(t,n))}))}var co,lo,fo={sessionSampleRate:"number",telemetrySampleRate:"number",silentMultipleInit:"boolean",service:"string",env:"string",version:"string",tracingSampleRate:"number",useCrossSiteSessionCookie:"boolean",usePartitionedCrossSiteSessionCookie:"boolean",useSecureSessionCookie:"boolean",trackSessionAcrossSubdomains:"boolean",storeContextsToLocal:"boolean",storeContextsKey:"string",sendContentTypeByJson:"boolean",allowFallbackToLocalStorage:"boolean",sessionOnErrorSampleRate:"number",sessionReplaySampleRate:"number",sessionReplayOnErrorSampleRate:"number",trackUserInteractions:"boolean",trackInteractions:"boolean",actionNameAttribute:"string",trackViewsManually:"boolean",workerUrl:"string",compressIntakeRequests:"boolean",traceType:"string"};function po(t,e){var n={};for(var r in e){if(void 0!==e[r])n[r.replace("R."+t.applicationId+".","")]=e[r]}return n}function vo(){o.error("Error fetching the remote configuration.")}function ho(){return co||(co=new rr((function(t){if(window.fetch){var e=tr(window,"fetch",(function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,i=t.handlingStack,o=n[0],a=n[1],s=a&&a.method;void 0===s&&o instanceof Request&&(s=o.method);var c=void 0!==s?String(s).toUpperCase():"GET",l=o instanceof Request?o.url:Fr(String(o)),f=mt(),d={state:"start",init:a,input:o,method:c,startClocks:f,url:l,handlingStack:i};e.notify(d),n[0]=d.input,n[1]=d.init,r((function(t){return function(t,e,n){var r=n,i=function(e){r.state="resolve",I(r,e),t.notify(r)};e.then(u((function(t){var e="";try{e=t.constructor===Response&&t.type||""}catch(t){e=""}i({response:t,responseType:e,status:t.status,isAborted:!1})})),u((function(t){i({status:0,isAborted:r.init&&r.init.signal&&r.init.signal.aborted||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})})))}(e,t,d)}))}(e,t)}),{computeHandlingStack:!0});return e.stop}}))),co}var mo=new WeakMap;function go(){return lo||(lo=new rr((function(t){var e=tr(XMLHttpRequest.prototype,"open",yo),n=tr(XMLHttpRequest.prototype,"send",(function(e){!function(t,e){var n=t.target,r=t.handlingStack,i=mo.get(n);if(i){var o=i;o.state="start",o.startClocks=mt(),o.isAborted=!1,o.xhr=n,o.handlingStack=r;var a=!1,s=tr(n,"onreadystatechange",(function(){n.readyState===XMLHttpRequest.DONE&&u()})).stop,u=function(){if(c(),s(),!a){a=!0;var t=i;t.state="complete",t.duration=_t(o.startClocks.timeStamp,gt()),t.status=n.status,e.notify(A(t))}},c=sr(n,"loadend",u).stop;e.notify(o)}}(e,t)}),{computeHandlingStack:!0}),r=tr(XMLHttpRequest.prototype,"setRequestHeader",_o),i=tr(XMLHttpRequest.prototype,"abort",bo);return function(){e.stop(),n.stop(),i.stop(),r.stop()}}))),lo}function yo(t){var e=t.target,n=t.parameters[0],r=t.parameters[1];mo.set(e,{state:"open",method:String(n).toUpperCase(),url:Fr(String(r))})}function _o(t){var e=t.target,n=t.parameters[0],r=t.parameters[1],i=mo.get(e);if(i&&n){var o=i.requestHeaderContexts||{};o[n]=r,i.requestHeaderContexts=o}}function bo(t){var e=t.target,n=mo.get(e);n&&(n.isAborted=!0)}var wo={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function So(t){return It(D(wo),t)}function xo(t){return t.nodeType===Node.ELEMENT_NODE}function ko(t){return xo(t)&&Boolean(t.shadowRoot)}function Eo(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&xo(e.host)}function To(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;ko(t)&&e(t.shadowRoot)}function Co(t){return Eo(t)?t.host:t.parentNode}function Oo(t,e){return document.readyState===t||"complete"===document.readyState?(e(),{stop:ot}):sr(window,"complete"===t?se:ye,e,{once:!0})}function Io(){var t,e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function Ao(){var t,e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}var Ro={sdk_name:"_gc.sdk_name",sdk_version:"_gc.sdk_version",app_id:"application.id",env:"env",service:"service",version:"version",source:"source",userid:"user.id",user_email:"user.email",user_name:"user.name",session_id:"session.id",session_type:"session.type",session_is_forced:"session.is_forced_session",session_sampling:"session.is_sampling",is_signin:"user.is_signin",os:"device.os",os_version:"device.os_version",os_version_major:"device.os_version_major",browser:"device.browser",browser_version:"device.browser_version",browser_version_major:"device.browser_version_major",screen_size:"device.screen_size",network_type:"device.network_type",time_zone:"device.time_zone",device:"device.device",user_agent:"device.user_agent",view_id:"view.id",view_referrer:"view.referrer",view_url:"view.url",view_host:"view.host",view_path:"view.path",view_name:"view.name",view_path_group:"view.path_group",view_path_name:"view.pathname"},Po={view_url_query:"view.url_query",action_id:"action.id",action_ids:"action.ids",view_in_foreground:"view.in_foreground",display:"display",session_has_replay:"session.has_replay",is_login:"user.is_login",page_states:"_gc.page_states",session_sample_rate:"_gc.configuration.session_sample_rate",session_replay_sample_rate:"_gc.configuration.session_replay_sample_rate",session_on_error_sample_rate:"_gc.configuration.session_on_error_sample_rate",session_replay_on_error_sample_rate:"_gc.configuration.session_replay_on_error_sample_rate",drift:"_gc.drift"},No={view:{type:Ze.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",view_privacy_replay_level:"privacy.replay_level"},fields:{view_update_time:"_gc.view_update_time",sampled_for_replay:"session.sampled_for_replay",sampled_for_error_replay:"session.sampled_for_error_replay",sampled_for_error_session:"session.sampled_for_error_session",session_error_timestamp:"session.error_timestamp_for_session",is_active:"view.is_active",session_replay_stats:"_gc.replay_stats",session_is_active:"session.is_active",view_error_count:"view.error.count",view_resource_count:"view.resource.count",view_long_task_count:"view.long_task.count",view_action_count:"view.action.count",first_contentful_paint:"view.first_contentful_paint",largest_contentful_paint:"view.largest_contentful_paint",largest_contentful_paint_element_selector:"view.largest_contentful_paint_element_selector",cumulative_layout_shift:"view.cumulative_layout_shift",cumulative_layout_shift_time:"view.cumulative_layout_shift_time",cumulative_layout_shift_target_selector:"view.cumulative_layout_shift_target_selector",first_input_delay:"view.first_input_delay",loading_time:"view.loading_time",dom_interactive:"view.dom_interactive",dom_content_loaded:"view.dom_content_loaded",dom_complete:"view.dom_complete",load_event:"view.load_event",first_input_time:"view.first_input_time",first_input_target_selector:"view.first_input_target_selector",first_paint_time:"view.fpt",interaction_to_next_paint:"view.interaction_to_next_paint",interaction_to_next_paint_target_selector:"view.interaction_to_next_paint_target_selector",resource_load_time:"view.resource_load_time",time_to_interactive:"view.tti",dom:"view.dom",dom_ready:"view.dom_ready",time_spent:"view.time_spent",first_byte:"view.first_byte",frustration_count:"view.frustration.count",custom_timings:"view.custom_timings"}},resource:{type:Ze.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.span_id",resource_id:"resource.id",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",resource_url:"resource.url",resource_url_host:"resource.url_host",resource_url_path:"resource.url_path",resource_url_path_group:"resource.url_path_group",resource_url_query:"resource.url_query",resource_delivery_type:"resource.delivery_type",resource_type:"resource.type",resource_protocol:"resource.protocol",resource_encode_size:"resource.encoded_body_size",resource_decode_size:"resource.decoded_body_size",resource_transfer_size:"resource.transfer_size",resource_render_blocking_status:"resource.render_blocking_status",resource_dns:"resource.dns",resource_tcp:"resource.tcp",resource_ssl:"resource.ssl",resource_ttfb:"resource.ttfb",resource_trans:"resource.trans",resource_redirect:"resource.redirect",resource_first_byte:"resource.firstbyte",resource_dns_time:"resource.dns_time",resource_download_time:"resource.download_time",resource_first_byte_time:"resource.first_byte_time",resource_connect_time:"resource.connect_time",resource_ssl_time:"resource.ssl_time",resource_redirect_time:"resource.redirect_time"}},error:{type:Ze.ERROR,tags:{error_id:"error.id",trace_id:"_gc.trace_id",span_id:"_gc.span_id",error_source:"error.source",error_type:"error.type",error_handling:"error.handling"},fields:{error_message:["string","error.message"],error_stack:["string","error.stack"],error_causes:["string","error.causes"],error_handling_stack:["string","error.handling_stack"]}},long_task:{type:Ze.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration",blocking_duration:"long_task.blocking_duration",first_ui_event_timestamp:"long_task.first_ui_event_timestamp",render_start:"long_task.render_start",style_and_layout_start:"long_task.style_and_layout_start",long_task_start_time:"long_task.start_time",scripts:["string","long_task.scripts"]}},action:{type:Ze.ACTION,tags:{action_type:"action.type"},fields:{action_name:"action.target.name",duration:"action.loading_time",action_error_count:"action.error.count",action_resource_count:"action.resource.count",action_frustration_types:"action.frustration.type",action_long_task_count:"action.long_task.count",action_target:"_gc.action.target",action_position:"_gc.action.position"}},telemetry:{type:"telemetry",fields:{status:"telemetry.status",message:["string","telemetry.message"],type:"telemetry.type",error_stack:["string","telemetry.error.stack"],error_kind:["string","telemetry.error.kind"],connectivity:["string","telemetry.connectivity"],runtime_env:["string","telemetry.runtime_env"],usage:["string","telemetry.usage"],configuration:["string","telemetry.configuration"]}},browser_log:{type:Ze.LOGGER,tags:{error_source:"error.source",error_type:"error.type",error_resource_url:"http.url",error_resource_url_host:"http.url_host",error_resource_url_path:"http.url_path",error_resource_url_path_group:"http.url_path_group",error_resource_status:"http.status_code",error_resource_status_group:"http.status_group",error_resource_method:"http.method",action_id:"user_action.id",service:"service",status:"status"},fields:{message:["string","message"],error_message:["string","error.message"],error_stack:["string","error.stack"]}}},Mo=ut,Lo=ai,Do=[];function Uo(t,e,n){var r=new rr,i=new rr,o=Zi(t.sessionStoreStrategyType,e,n);Do.push((function(){return o.stop()}));var a,s=Yt({expireDelay:Lo});function u(){var t=o.getSession();return t?{id:t.id,trackingType:t[e],hasError:!!t.hasError,isSessionForced:!!t.forcedSession}:{id:"invalid",trackingType:"0",isSessionForced:!1,hasError:!1}}return Do.push((function(){return s.stop()})),o.renewObservable.subscribe((function(){s.add(u(),ht()),r.notify()})),o.expireObservable.subscribe((function(){i.notify(),s.closeActive(ht())})),o.expandOrRenewSession(),s.add(u(),bt().relative),a=ur(window,[ie,le,ae,ce],(function(){o.expandOrRenewSession()}),{capture:!0,passive:!0}).stop,Do.push(a),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=sr(document,pe,e).stop;Do.push(n);var r=g(e,Mo);Do.push((function(){y(r)}))}((function(){return o.expandSession()})),function(t){var e=sr(window,ge,t,{capture:!0}).stop;Do.push(e)}((function(){o.restartSession()})),{findSession:function(t,e){return s.find(t,e)},renewObservable:r,expireObservable:i,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}var Bo=20971520,zo=st,Vo=0,jo=1,Ho=2,$o=0,Fo=1;function qo(t,e,n,r,i){e.transportStatus===Vo&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Go(t,e,n,{onSuccess:function(){return Qo($o,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),Wo(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function Wo(t,e,n,r){t.transportStatus===Ho&&h((function(){Go(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=zo,Qo(Fo,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(256e3,2*t.currentBackoffTime),Wo(t,e,n,r)}})}),t.currentBackoffTime)}function Go(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),!function(t,e,n){return!(e.retryMaxSize>-1&&n.retry&&n.retry.count>e.retryMaxSize)&&("opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||t.status>=500))}(n,e,t)?(e.transportStatus=Vo,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?jo:Ho,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o())}))}function Qo(t,e,n,r,i){t===$o&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: 20MiB",source:$n,startClocks:mt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=Ko();o.size()>0;)qo(o.dequeue(),e,n,r,i)}function Ko(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=Bo}}}function Xo(t,e){return t?(t=t+(-1===t.indexOf("?")?"?":"&")+"precision=ms",e&&(t=t+"&encoding="+e),t):t}function Jo(t,e,n,r){void 0===n&&(n=-1);var i=function(t){return{transportStatus:Vo,currentBackoffTime:zo,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:Ko(),queueFullReported:!1,retryMaxSize:t}}(n),o=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=Xo(t,n.encoding),s=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&o<e;if(s){var c={method:"POST",body:i,keepalive:!0,mode:"cors"},l={"x-client-timestamp":Date.now().toString()};n.type&&(l["Content-Type"]=n.type),c.headers=l,fetch(a,c).then(u((function(t){"function"==typeof r&&r({status:t.status,type:t.type})}))).catch(u((function(){!function(t,e,n){var r={method:"POST",body:e.data,keepalive:!0,mode:"cors"},i={"x-client-timestamp":Date.now().toString()};e.type&&(i["Content-Type"]=e.type);r.headers=i,fetch(t,r).then(u((function(t){"function"==typeof n&&n({status:t.status,type:t.type})}))).catch(u((function(){"function"==typeof n&&n({status:0})})))}(a,n,r)})))}else Zo(a,n,r)}(t,e,n,r)};return{send:function(e){qo(e,i,o,t,r)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=Xo(t,n.encoding),a=!!navigator.sendBeacon&&i<e;if(a)try{var s;if(s=n.type?new Blob([r],{type:n.type}):r,navigator.sendBeacon(o,s))return}catch(t){!function(t){Yo||(Yo=!0,Bi(t))}(t)}Zo(o,n)}(t,e,n)}}}var Yo=!1;function Zo(t,e,n){var r=e.data,i=new XMLHttpRequest;i.open("POST",t,!0),r instanceof Blob?i.setRequestHeader("Content-Type",r.type):e.type&&i.setRequestHeader("Content-Type",e.type),i.setRequestHeader("x-client-timestamp",Date.now().toString()),sr(i,"loadend",(function(){"function"==typeof n&&n({status:i.status})}),{once:!0}),i.send(r)}function ta(t){return ta="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},ta(t)}function ea(t){if("object"===ta(t)&&t)t=yn(t);else if(!q(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function na(t,e){return"object"===ta(t)&&t?t=yn(t):e&&(t=""+t),t}function ra(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function ia(t){return"object"===ta(t)&&t?ra(yn(t)):q(t)?ra(t):t}function oa(t){return function(t){if(Array.isArray(t))return aa(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return aa(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aa(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aa(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var sa="custom_keys",ua=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return O(No,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=R({},Ro,i.tags),u=["date","type",sa];O(s,(function(n,r){var i=Tt(t,n);u.push(r),(i||G(i))&&(e.tags[r]=na(i,!0),a.push(ea(r)+"="+ea(i)))}));var c=[],l=R({},Po,i.fields);if(O(l,(function(n,r){if(N(n)&&2===n.length){var i=n[1],o=Tt(t,i);u.push(r),null!=o&&(e.fields[r]=na(o),c.push(ea(r)+"="+ia(o)))}else if(q(n)){o=Tt(t,n);u.push(r),null!=o&&(e.fields[r]=na(o),c.push(ea(r)+"="+ia(o)))}})),t.context&&H(t.context)&&!$(t.context)){var f=[];O(t.context,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=na(t),c.push(ea(n)+"="+ia(t))))})),f.length&&(e.fields[sa]=na(f),c.push(ea(sa)+"="+ia(f)))}t.type===Ze.LOGGER&&O(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=na(t),c.push(ea(n)+"="+ia(t)))})),a.length&&(r+=a.join(",")),c.length&&(r+=" ",r+=c.join(","),n=!0),r=r+" "+t.date,e.time=t.date}})),{rowStr:n?r:"",rowData:n?e:void 0}};function ca(t){var e=t.encoder,n=t.request,r=t.messageBytesLimit,i=t.sendContentTypeByJson,a=t.flushController,s={},u=a.flushObservable.subscribe((function(t){!function(t){var r=D(s).join(i?",":"\n");s={};var o=So(t.reason),a=o?n.sendOnExit:n.send;if(o&&e.isAsync){var u=e.finishSync();u.outputBytesCount&&a(la(u,i));var l=[].concat(oa(u.pendingData),[r]).filter(Boolean).join("\n");l&&a({data:l,bytesCount:Dn(l)})}else{if(r){var f=c([r],e.isEmpty());i&&(f+="]"),e.write(f)}else i&&e.write("]");e.finish((function(t){a(la(t))}))}}(t)}));function c(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i?e?"["+t.join(","):","+t.join(","):e?t.join("\n"):"\n"+t.join("\n")}function l(t,n){var u=function(t){return i?yn(ua(t).rowData):ua(t).rowStr}(t),l=e.estimateEncodedBytesCount(u);l>=r?o.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(r,"KB.")):(function(t){return void 0!==t&&void 0!==s[t]}(n)&&function(t){var n=s[t];delete s[t];var r=e.estimateEncodedBytesCount(n);a.notifyAfterRemoveMessage(r)}(n),function(t,n,r){a.notifyBeforeAddMessage(n),void 0!==r?(s[r]=t,a.notifyAfterAddMessage()):e.write(c([t],e.isEmpty()),(function(t){a.notifyAfterAddMessage(t-n)}))}(u,l,n))}return{flushController:a,add:l,upsert:l,stop:u.unsubscribe}}function la(t,e){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),type:e?"application/json;UTF-8":void 0,bytesCount:t.outputBytesCount,encoding:t.encoding}}function fa(t){var e,n=t.messagesLimit,r=t.bytesLimit,i=t.durationLimit,o=t.pageExitObservable,a=t.sessionExpireObservable,s=o.subscribe((function(t){return d(t.reason)})),u=a.subscribe((function(){return d("session_expire")})),c=new rr((function(){return function(){s.unsubscribe(),u.unsubscribe()}})),l=0,f=0;function d(t){if(0!==f){var e=f,n=l;f=0,l=0,p(),c.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){m(e),e=void 0}return{flushObservable:c,getMessagesCount:function(){return f},notifyBeforeAddMessage:function(t){l+t>=r&&d("bytes_limit"),f+=1,l+=t,void 0===e&&(e=h((function(){d("duration_limit")}),i))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,f>=n?d("messages_limit"):l>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0===(f-=1)&&p()}}}function da(){return p().FTWebViewJavascriptBridge}function pa(){var t=da();if(t)return{getCapabilities:function(){return JSON.parse(t.getCapabilities&&t.getCapabilities()||"[]")},getPrivacyLevel:function(){return t.getPrivacyLevel&&t.getPrivacyLevel()},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts&&t.getAllowedWebViewHosts()||"[]")},send:function(e,n,r){var i=r?{id:r}:void 0;try{t.sendEvent(JSON.stringify({name:e,data:n,view:i}))}catch(t){}}}}var va="records";function ha(t){var e=pa();return!!e&&e.getCapabilities().includes(t)}function ma(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(t=p().location)||void 0===t?void 0:t.hostname,n=da();if(n&&void 0===n.getAllowedWebViewHosts)return!0;if(n&&n.getAllowedWebViewHosts&&(null===n.getAllowedWebViewHosts()||void 0===n.getAllowedWebViewHosts()))return!0;var r=pa();return!!r&&r.getAllowedWebViewHosts().some((function(t){return e===t||e.endsWith(".".concat(t))}))}function ga(t){return ga="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},ga(t)}function ya(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return _a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_a(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ba(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wa(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=ga(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ga(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ga(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sa(t,e,n){for(var r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ba(Object(n),!0).forEach((function(e){wa(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ba(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),i=0,a=Object.entries(e);i<a.length;i++){var s=ya(a[i],2),u=s[0],c=s[1],l=c.required;"string"===c.type&&u in r&&(r[u]=String(r[u])),l&&!(u in t)&&o.warn("The property ".concat(u," of ").concat(n," context is required; context will not be sent to the intake."))}return r}function xa(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.customerDataTracker,r=e.propertiesConfig,i=void 0===r?{}:r,o={},a=new rr,s={getContext:function(){return rt(o)},setContext:function(e){"object"===et(e)?(o=Bn(Sa(e,i,t)),null==n||n.updateCustomerData(o)):s.clearContext(),a.notify()},setContextProperty:function(e,r){o[e]=Bn(Sa(wa({},e,r),i,t)[e]),null==n||n.updateCustomerData(o),a.notify()},removeContextProperty:function(e){delete o[e],null==n||n.updateCustomerData(o),Sa(o,i,t),a.notify()},clearContext:function(){o={},null==n||n.resetCustomerData(),a.notify()},changeObservable:a};return s}var ka="user",Ea="global context",Ta="view",Ca="_gc_s",Oa=[];function Ia(t,e,n,r){var i=function(t,e,n){return t.storeContextsKey&&q(t.storeContextsKey)?Ca+"_"+e+"_"+n+"_"+t.storeContextsKey:Ca+"_"+e+"_"+n}(t,n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}return Oa.push(sr(window,De,(function(t){i===t.key&&e.setContext(o())}))),e.changeObservable.subscribe((function(){localStorage.setItem(i,JSON.stringify(e.getContext()))})),e.setContext(P(o(),e.getContext())),e}var Aa=0,Ra=1,Pa=2;function Na(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pa,e=new Map,n=!1;function r(){if(!n&&t!==Aa){var r=t===Pa?3072:16384,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e.forEach((function(t){i+=t.getBytesCount()})),i>r&&(!function(t){o.warn("Customer data exceeds the recommended ".concat(t/Mn,"KiB threshold."))}(r),n=!0)}}return{createDetachedTracker:function(){var t=Ma((function(){return r(t.getBytesCount())}));return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,Ma(r)),e.get(t)},setCompressionStatus:function(e){t===Aa&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach((function(t){return t.stop()})),e.clear()}}}function Ma(t){var e=0,n=Q((function(n){e=Dn(yn(n)),t()}),200),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){$(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}function La(){var t="",e=0;return{isAsync:!1,isEmpty:function(){return!t},write:function(n,r){var i=Dn(n);e+=i,t+=n,r&&r(i)},finish:function(t){t(this.finishSync())},finishSync:function(){var n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:[]};return t="",e=0,n},estimateEncodedBytesCount:function(t){return t.length}}}function Da(t){var e=I({},t);return O(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}function Ua(t){this.map=new WeakMap,t&&t.forEach((function(t){this.map.set(t,1)}))}function Ba(t,e){e.silentMultipleInit||o.error(t+" is already initialized.")}Ua.prototype.add=function(t){return this.map.set(t,1),this},Ua.prototype.delete=function(t){return this.map.delete(t)},Ua.prototype.has=function(t){return this.map.has(t)};var za=1,Va=2,ja=3,Ha="0",$a="1",Fa="2",qa="3",Wa="4",Ga="5",Qa="6";function Ka(t,e){var n=Uo(t,"rum",(function(e){return function(t,e){var n,r=t.sessionSampleRate,i=t.sessionOnErrorSampleRate,o=t.sessionReplaySampleRate,a=t.sessionReplayOnErrorSampleRate,s=ct(r),u=ct(i),c=ct(o),l=ct(a);!function(t){return t===Ha||t===Ga||t===Qa||t===Wa||t===Fa||t===qa||t===$a}(e)?u||s?s&&c?n=$a:s&&l?n=qa:!s||c||l?u&&c?n=Wa:u&&l?n=Qa:!u||c||l||(n=Ga):n=Fa:n=Ha:n=e;return{trackingType:n,isTracked:Xa(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(Tr)})),n.renewObservable.subscribe((function(){e.notify(Er)})),n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,r=t.newState;if(!e.hasError&&r.hasError){var i=n.findSession();i&&(i.hasError=!0,i.ets=r.ets||gt())}if(!e.forcedSession&&r.forcedSession){var o=n.findSession();o&&(o.isSessionForced=!0)}})),{findTrackedSession:function(t){var e=n.findSession(t);if(e&&(Xa(e.trackingType)||e.isSessionForced)){var r=e.trackingType===Ga||e.trackingType===Wa||e.trackingType===Qa,i=za;return e.trackingType===$a||e.trackingType===Wa?i=Va:e.trackingType!==Qa&&e.trackingType!==qa||(i=ja),{id:e.id,plan:i,errorSessionReplayAllowed:i===ja,sessionHasError:e.hasError,isErrorSession:r,sessionErrorTimestamp:e.ets,isSessionForced:e.isSessionForced,sessionReplayAllowed:i===Va||i===ja||e.isSessionForced}}},expire:n.expire,expireObservable:n.expireObservable,sessionStateUpdateObservable:n.sessionStateUpdateObservable,setErrorForSession:function(){return n.updateSessionState({hasError:"1",ets:gt()})},setForcedSession:function(){n.updateSessionState({forcedSession:"1"})}}}function Xa(t){return t!==Ha}var Ja="_gc_usr_id";var Ya=function(t){return t.sessionStoreStrategyType?(e=t.sessionStoreStrategyType.type===ci?function(t){var e=ii(Ja,t);return e||(e=X(),ri(Ja,e,5184e6,t)),e}(t.sessionStoreStrategyType.cookieOptions):function(){var t=localStorage.getItem(Ja);return t||(t=X(),localStorage.setItem(Ja,t)),t}(),{getId:function(){return e}}):{getId:ot};var e};function Za(){var t,e=window;if(e.Zone&&(t=v(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=v(new e.MutationObserver(ot),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function ts(t){var e=A(t);return new rr((function(n){var r,i,o,a,s=(r=c,i=tr(es("pushState"),"pushState",(function(t){(0,t.onPostCall)(r)})),o=tr(es("replaceState"),"replaceState",(function(t){(0,t.onPostCall)(r)})),a=sr(window,ue,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),u=sr(window,Se,c);function c(){if(e.href!==t.href){var r=A(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return function(){s.stop(),u.stop()}}))}function es(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}var ns="initial_document",rs=[[Ue,function(t){return ns===t}],[Be,function(t){return"xmlhttprequest"===t}],[Ve,function(t){return"fetch"===t}],[ze,function(t){return"beacon"===t}],[je,function(t,e){return null!==e.match(/\.css$/i)}],[He,function(t,e){return null!==e.match(/\.js$/i)}],[$e,function(t,e){return It(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[Fe,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[qe,function(t,e){return It(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function is(t){var e=t.name;if(!function(t){try{return!!Wr(t)}catch(t){return!1}}(e))return We;var n=function(t){var e=Wr(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=We;return O(rs,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function os(){for(var t=L(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function as(t){return""===t.deliveryType?"other":t.deliveryType}function ss(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}var us=/[^\u0000-\u007F]/;function cs(t,e){return n=t,(us.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function ls(t){return 0===t.duration&&t.startTime<t.responseEnd?ft(t.responseEnd-t.startTime):ft(t.duration)}function fs(t){if(ps(t)){var e=t.startTime,n=t.fetchStart,r=t.redirectStart,i=t.redirectEnd,o=t.domainLookupStart,a=t.domainLookupEnd,s=t.connectStart,u=t.secureConnectionStart,c=t.connectEnd,l=t.requestStart,f=t.responseStart,d=t.responseEnd,p={firstbyte:ft(f-l),trans:ft(d-f),downloadTime:hs(e,f,d),firstByteTime:hs(e,l,f)};return f>0&&f<=ht()&&(p.ttfb=ft(f-l)),c!==n&&(p.tcp=ft(c-s),p.connectTime=hs(e,s,c),os(s,u,c)&&(p.ssl=ft(c-u),p.sslTime=hs(e,u,c))),a!==n&&(p.dns=ft(a-o),p.dnsTime=hs(e,o,a)),vs(t)&&(p.redirect=ft(i-r),p.redirectTime=hs(e,r,i)),t.renderBlockingStatus&&(p.renderBlockingStatus=t.renderBlockingStatus),p}}function ds(t){return t.duration>=0}function ps(t){var e=os(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!vs(t)||os(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function vs(t){return t.redirectEnd>t.startTime}function hs(t,e,n){return{duration:ft(n-e),start:ft(e-t)}}function ms(t){return t.startTime<t.responseStart?{size:t.decodedBodySize,encodedBodySize:t.encodedBodySize,decodedBodySize:t.decodedBodySize,transferSize:t.transferSize}:{size:void 0,encodedBodySize:void 0,decodedBodySize:void 0,transferSize:void 0}}function gs(t,e){return e&&!function(t,e){var n=[e.rumEndpoint];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),z(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}var ys=/data:(.+)?(;base64)?,/g;function _s(t){return!(t.length<=24e3)&&("data:"===t.substring(0,5)&&(t=t.substring(0,24e3),!0))}function bs(t){return t.match(ys)[0]+"[...]"}function ws(t,e){var n=yt(),r=!1,i=ur(window,[ie,ke,ae,le,_e],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:ht(),processingEnd:ht(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};t.type===_e?function(t){ur(window,[be,we],(function(e){e.type===be&&o(t)}),{once:!0})}(e):o(e)}}),{passive:!0,capture:!0}).stop;return{stop:i};function o(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o<yt()-n&&e(t)}}}var Ss,xs="event",ks="first-input",Es="largest-contentful-paint",Ts="layout-shift",Cs="longtask",Os="long-animation-frame",Is="navigation",As="paint",Rs="resource",Ps="visibility-state";function Ns(t,e){return new rr((function(n){if(window.PerformanceObserver){var r,i,o=function(e){var r=function(t,e){return e.filter((function(e){return!function(t,e){return!(e.entryType!==Rs||gs(t,e.name)&&ds(e))}(t,e)}))}(t,e);r.length>0&&n.notify(r)},a=!0,s=new PerformanceObserver(u((function(t){a?r=h((function(){o(t.getEntries())})):o(t.getEntries())})));try{s.observe(e)}catch(t){if(It([Rs,Is,Cs,As],e.type)){e.buffered&&(r=h((function(){o(performance.getEntriesByType(e.type))})));try{s.observe({entryTypes:[e.type]})}catch(t){return}}}if(a=!1,function(){!Ss&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(Ss=sr(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})))}(),!Ms(ks)&&e.type===ks){var c=ws(0,(function(t){o([t])}));i=c.stop}return function(){s.disconnect(),i&&i(),m(r)}}}))}function Ms(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function Ls(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=ot);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(Rr,(function(t){if(t.type!==Ze.VIEW&&n(t))switch(t.type){case Ze.ERROR:i.errorCount+=1,r();break;case Ze.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case Ze.LONG_TASK:i.longTaskCount+=1,r();break;case Ze.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var Ds=100;function Us(t,e,n,r,i){var o=function(t,e,n){return new rr((function(r){var i,o=[],a=0;o.push(e.subscribe((function(){u()})),Ns(n,{type:Rs}).subscribe((function(t){z(t,(function(t){return!Bs(n,t.name)}))&&u()})),t.subscribe(Or,(function(t){Bs(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(Ir,(function(t){Bs(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=tr(window,"open",u).stop;return function(){s(),O(o,(function(t){t.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}))}(t,e,n);return function(t,e,n){var r,i=!1,o=h((function(){c({hadActivity:!1})}),100),a=void 0!==n?h((function(){return c({hadActivity:!0,end:gt()})}),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;m(o),m(r);var n=gt();e||(r=h((function(){c({hadActivity:!0,end:n})}),100))})),u=function(){i=!0,m(o),m(r),m(a),s.unsubscribe()};function c(t){i||(u&&u(),e(t))}return{stop:u}}(o,r,i)}function Bs(t,e){return V(t.excludedActivityUrls,e)}var zs=st,Vs=0,js=1,Hs=2;function $s(t,e){var n,r=[],i=Vs;function o(t){t.stopObservable.subscribe(a),r.push(t),m(n),n=h(s,zs)}function a(){i===js&&function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(k.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r}(r,(function(t){return t.isStopped()}))&&(i=Hs,e(r))}function s(){m(n),i===Vs&&(i=js,a())}return o(t),{tryAppend:function(t){return i===Vs&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=100)&&e.timeStamp-n.timeStamp<=zs))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var Fs="data-guance-action-name";function qs(t,e){return Ws(t,Fs)||e&&Ws(t,e)||Ys(t,e,Ks)||Ys(t,e,Xs)||""}function Ws(t,e){var n;if(function(){void 0===Qs&&(Qs="closest"in HTMLElement.prototype);return Qs}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return tu(Zs(n.getAttribute(e).trim()))}var Gs,Qs,Ks=[function(t,e){if(function(){void 0===Gs&&(Gs="labels"in HTMLInputElement.prototype);return Gs}()){if("labels"in t&&t.labels&&t.labels.length>0)return eu(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&At(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&eu(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return e.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return eu(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n=n.split(/\s+/),n=B(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=U(n,(function(t){return Boolean(t)})),(n=B(n,(function(t){return eu(t,e)}))).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return eu(t.options[0],e)}],Xs=[function(t,e){return eu(t,e)}],Js=10;function Ys(t,e,n){for(var r=t,i=0;i<=Js&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0;o<n.length;o++){var a=(0,n[o])(r,e);if("string"==typeof a){var s=a.trim();if(s)return tu(Zs(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function Zs(t){return t.replace(/\s+/g," ")}function tu(t){return t.length>100?Ct(t,100)+" [...]":t}function eu(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i<r.length;i+=1){var o=r[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return Bt()===Mt&&r("script, style"),r("["+Fs+"]"),e&&r("["+e+"]"),n}return t.textContent}}var nu,ru=[Fs,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],iu=[uu,function(t){if(t.id&&!su(t.id))return"#"+j(t.id)}],ou=[uu,function(t){if("BODY"===t.tagName)return;if(t.classList.length>0)for(var e=0;e<t.classList.length;e+=1){var n=t.classList[e];if(!su(n))return j(t.tagName)+"."+j(n)}},function(t){return j(t.tagName)}];function au(t,e){if(function(t){if("isConnected"in t)return t.isConnected;return t.ownerDocument.documentElement.contains(t)}(t)){for(var n,r=t;r&&"HTML"!==r.nodeName;){var i=lu(r,iu,fu,e,n);if(i)return i;n=lu(r,ou,du,e,n)||pu(cu(r),n),r=r.parentElement}return n}}function su(t){return/[0-9]/.test(t)}function uu(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<ru.length;n++){var r;if(r=i(ru[n]))return r}function i(e){if(t.hasAttribute(e))return j(t.tagName)+"["+e+'="'+j(t.getAttribute(e))+'"]'}}function cu(t){for(var e=t.parentElement&&t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;var r=j(t.tagName);return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function lu(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a&&n(t,a,i))return pu(a,i)}}function fu(t,e,n){return 1===t.ownerDocument.querySelectorAll(pu(e,n)).length}function du(t,e,n){var r;if(void 0===n)r=function(t){return t.matches(e)};else{var i=function(){if(void 0===nu)try{document.querySelector(":scope"),nu=!0}catch(t){nu=!1}return nu}()?pu("".concat(e,":scope"),n):pu(e,n);r=function(t){return null!==t.querySelector(i)}}for(var o=t.parentElement.firstElementChild;o;){if(o!==t&&r(o))return!1;o=o.nextElementSibling}return!0}function pu(t,e){return e?t+">"+e:t}function vu(){var t=window.getSelection();return!t||t.isCollapsed}function hu(t){return t.target instanceof Element&&!1!==t.isPrimary}function mu(t,e){if(function(t){if(z(t,(function(t){return t.getUserActivity().selection||t.getUserActivity().scroll})))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=st)return!0;return!1}(t))return e.addFrustration(Xe),z(t,yu)&&e.addFrustration(Ye),e.hasError()&&e.addFrustration(Je),{isRage:!0};var n=z(t,(function(t){return t.getUserActivity().selection}));return O(t,(function(t){t.hasError()&&t.addFrustration(Je),yu(t)&&!n&&t.addFrustration(Ye)})),{isRage:!1}}var gu='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function yu(t){if(t.hasPageActivity()||t.getUserActivity().input||t.getUserActivity().scroll)return!1;var e,n,r=t.event.target;return"LABEL"===r.tagName&&r.hasAttribute("for")&&(r=document.getElementById(r.getAttribute("for"))),!r||(n=gu,!((e=r).matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)))}var _u=1e4,bu=new Map;function wu(t,e){bu.set(t,e),bu.forEach((function(t,e){_t(e,ht())>1e4&&bu.delete(e)}))}function Su(t,e,n){var r,i=new Yt({expireDelay:3e5}),o=new rr;t.subscribe(Er,(function(){i.reset()})),t.subscribe(xr,p);var a,s,u,c,l,f=(a={onPointerDown:function(r){return function(t,e,n,r){var i,o,a,s,u=(i=r,o=t.actionNameAttribute,a=i.target.getBoundingClientRect(),(s=au(i.target,o))&&wu(i.timeStamp,s),{type:Qe,target:{width:Math.round(a.width),height:Math.round(a.height),selector:s},position:{x:Math.round(i.clientX-a.left),y:Math.round(i.clientY-a.top)},name:qs(i.target,o)}),c=!1;return Us(e,n,t,(function(t){c=t.hadActivity}),Ds),{clickActionBase:u,hadActivityOnPointerDown:function(){return c}}}(n,t,e,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,i,o,a,s,u,c){var l=ku(e,r,u,a,s);o(l);var f=a&&a.target&&a.target.selector;f&&wu(s.timeStamp,f);var d=Us(e,n,t,(function(t){t.hadActivity&&t.end<l.startClocks.timeStamp?l.discard():t.hadActivity?l.stop(t.end):c()?l.stop(l.startClocks.timeStamp):l.stop()}),_u),p=d.stop,v=e.subscribe(xr,(function(t){l.stop(t.endClocks.timeStamp)})),h=i.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){v.unsubscribe(),p(),h.unsubscribe()}))}(n,t,e,i,o,v,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1,scroll:!1},l=[sr(window,_e,(function(t){hu(t)&&(s=vu(),c={selection:!1,input:!1,scroll:!1},u=a.onPointerDown(t))}),{capture:!0}),sr(window,Le,(function(){s&&vu()||(c.selection=!0)}),{capture:!0}),sr(window,be,(function(t){if(hu(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),sr(window,ce,(function(){c.scroll=!0}),{capture:!0,passive:!0}),sr(window,Re,(function(){c.input=!0}),{capture:!0})],{stop:function(){O(l,(function(t){return t.stop()}))}}),d=f.stop;return{stop:function(){p(),o.notify(),d()},actionContexts:{findActionId:function(t){var e=i.findAll(t);if(e&&e.length)return e[e.length-1]},findAllActionId:function(t){return i.findAll(t)}}};function p(){r&&r.stop()}function v(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=$s(t,(function(t){!function(t,e){var n=mu(t,e),r=n.isRage;r?(O(t,(function(t){t.discard()})),e.stop(gt()),e.validate(B(t,(function(t){return t.event})))):(e.discard(),O(t,(function(t){t.validate()})))}(t,e)}))}}}var xu={ONGOING:0,STOPPED:1,FINALIZED:2};function ku(t,e,n,r,i){var o,a=X(),s=mt(),u=e.add(a,s.relative),c=Ls({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(N(t.action.ids)?It(t.action.ids,a):t.action.ids===a)}}),l=xu.ONGOING,f=[],d=new rr;function p(t){l===xu.ONGOING&&(o=t,l=xu.STOPPED,o?u.close(pt(o)):u.remove(),c.stop(),d.notify())}return{event:i,stop:p,stopObservable:d,hasError:function(){return c.eventCounts.errorCount>0},hasPageActivity:function(){return void 0!==o},getUserActivity:n,addFrustration:function(t){f.push(t)},startClocks:s,isStopped:function(){return l===xu.STOPPED||l===xu.FINALIZED},clone:function(){return ku(t,e,n,r,i)},validate:function(e){if(p(),l===xu.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,v=n.longTaskCount,h=I({type:Qe,duration:o&&_t(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:v},events:Ht(e,[i]),event:i},r);t.notify(yr,h),l=xu.FINALIZED}},discard:function(){p(),l=xu.FINALIZED}}}var Eu=ai,Tu="active",Cu="passive",Ou="hidden",Iu="frozen",Au="terminated";function Ru(t){void 0===t&&(t=500);var e,n=Yt({expireDelay:Eu,maxEntries:4e3});Ms(Ps)&&performance.getEntriesByType(Ps).forEach((function(t){i("hidden"===t.name?Ou:Tu,t.startTime)}));i(Pu(),ht());var r=ur(window,[he,Te,Ce,pe,ge,me,xe],(function(t){i(function(t){if(t.type===me)return Iu;if(t.type===xe)return t.persisted?Iu:Au;return Pu()}(t),t.timeStamp)}),{capture:!0}).stop;function i(t,r){void 0===r&&(r=ht()),t!==e&&(e=t,n.closeActive(r),n.add({state:e,startTime:r},r))}var o={findAll:function(e,r){return function(t,e,n){if(0===t.length)return;return t.slice(-n).reverse().map((function(t){var n=t.state,r=t.startTime;return{state:n,start:dt(_t(e,r))}}))}(n.findAll(e,r),e,t)},wasInPageStateAt:function(t,e){return o.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,r){return n.findAll(e,r).some((function(e){return e.state===t}))},addPageState:i,stop:function(){r(),n.stop()}};return o}function Pu(){return"hidden"===document.visibilityState?Ou:document.hasFocus()?Tu:Cu}function Nu(t,e){var n,r=Mu(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:Gt(dt(t.duration)),frustration:{type:t.frustrationTypes},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_gc:{action:{target:t.target,position:t.position}}}:{action:{loadingTime:(null===(n=t.context)||void 0===n?void 0:n.duration)||0}};return{customerContext:Mu(t)?void 0:t.context,rawRumEvent:P({action:{id:X(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:Ze.ACTION,view:{in_foreground:e.wasInPageStateAt(Tu,t.startClocks.relative)}},r),startTime:t.startClocks.relative,domainContext:Mu(t)?{event:t.event,events:t.events}:{}}}function Mu(t){return t.type===Qe}var Lu=1,Du=2;function Uu(t,e){var n,r=0,i=[],o=!0,a=0,s=[],u=sr(t,"message",(function(t){var o=t.data;if(!("wrote"!==o.type||o.streamId&&o.streamId!==e)){var a=s[0];a&&(a.id===o.id?(s.shift(),r+=o.additionalBytesCount,i.push(o.result),n=o.trailer,a.writeCallback?a.writeCallback(o.result.byteLength):a.finishCallback&&a.finishCallback()):a.id<o.id&&(u(),Ui("Worker responses received out of order.")))}})).stop;function c(){var t=0===i.length?new Uint8Array(0):function(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),r=0,i=0,o=t;i<o.length;i++){var a=o[i];n.set(a,r),r+=a.length}return n}(i.concat(n)),e={rawBytesCount:r,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return r=0,i=[],e}function l(){o||(t.postMessage({action:"reset",streamId:e}),o=!0)}return{isAsync:!0,isEmpty:function(){return o},write:function(n,r){t.postMessage({action:"write",id:a,data:n,streamId:e}),s.push({id:a,writeCallback:r,data:n}),o=!1,a+=1},finish:function(t){l(),s.length?(s.forEach((function(t){delete t.writeCallback})),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map((function(t){return t.data}));return s.length=0,I(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}function Bu(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),h=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),l=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},U=function(t,e,a){var n,r,s=new Array(16),h=0;for(n=1;n<=i;n++)s[n]=h=h+a[n-1]<<1;for(r=0;r<=e;r++){var l=t[2*r+1];0!==l&&(t[2*r]=A(s[l]++,l))}},I=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},B=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},E=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},S=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&E(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!E(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},C=function(t,e,n){var r,i,l,_,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(l=f[i],x(t,l+a+1,e),0!==(_=s[l])&&(i-=c[l],z(t,i,_)),r--,l=y(r),x(t,l,n),0!==(_=h[l])&&(r-=v[l],z(t,r,_)))}while(o<t.last_lit);x(t,256,e)},D=function(t,e){var a,n,r,s=e.dyn_tree,h=e.stat_desc.static_tree,l=e.stat_desc.has_stree,_=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<_;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,l&&(t.static_len-=h[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)S(t,s,a);r=_;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,S(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,h,l,_=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(_[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=_[2*_[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),_[2*n+1]=s,n>o||(t.bl_count[s]++,h=0,n>=c&&(h=f[n-c]),l=_[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(_[2*r+1]!==s&&(t.opt_len+=(s-_[2*r+1])*_[2*r],_[2*r+1]=s),n--)}}(t,e),U(s,o,t.bl_count)},j=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},M=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{x(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),h--),x(t,16,t.bl_tree),z(t,h-3,2)):h<=10?(x(t,17,t.bl_tree),z(t,h-3,3)):(x(t,18,t.bl_tree),z(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},L=!1,T=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){B(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},H=function(t,e,n,r){var i,s,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),h=function(t){var e;for(j(t,t.dyn_ltree,t.l_desc.max_code),j(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*_[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?T(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),C(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*_[r]+1],3);M(t,t.dyn_ltree,e-1),M(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),C(t,t.dyn_ltree,t.dyn_dtree)),I(t),r&&B(t)},R={_tr_init:function(t){L||(!function(){var t,e,a,_,m,y=new Array(16);for(a=0,_=0;_<28;_++)for(c[_]=a,t=0;t<1<<s[_];t++)f[a++]=_;for(f[a-1]=_,m=0,_=0;_<16;_++)for(v[_]=m,t=0;t<1<<h[_];t++)u[m++]=_;for(m>>=7;_<r;_++)for(v[_]=m<<7,t=0;t<1<<h[_]-7;t++)u[256+m++]=_;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(U(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,h,0,r,i),w=new b(new Array(0),l,0,19,7)}(),L=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,I(t)},_tr_stored_block:T,_tr_flush_block:H,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},K=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},N=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=N,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return~t},q={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},F=0,G=2,J=3,P=4,Q=0,V=1,W=-1,X=0,Y=8,Z=R._tr_init,$=R._tr_stored_block,tt=R._tr_flush_block,et=R._tr_tally,at=R._tr_align,nt=F,rt=1,it=J,st=P,ht=5,lt=Q,_t=V,ot=-2,dt=-3,ut=-5,ft=W,ct=1,pt=2,gt=3,wt=4,vt=X,bt=2,mt=Y,yt=258,kt=262,zt=103,xt=113,At=666,Ut=function(t,e){return t.msg=q[e],e},It=function(t){return(t<<1)-(t>4?9:0)},Bt=function(t){for(var e=t.length;--e>=0;)t[e]=0},Et=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},St=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Ct=function(t,e){tt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Dt=function(t,e){t.pending_buf[t.pending++]=e},jt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Mt=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-kt?t.strstart-(t.w_size-kt):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+yt,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=yt-(u-i),i=u-yt,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead},Lt=function(t){var e,a,n,r,i,s,h,l,_,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-kt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,h=t.window,l=t.strstart+t.lookahead,_=r,o=void 0,(o=s.avail_in)>_&&(o=_),a=0===o?0:(s.avail_in-=o,h.set(s.input.subarray(s.next_in,s.next_in+o),l),1===s.state.wrap?s.adler=K(s.adler,h,o,l):2===s.state.wrap&&(s.adler=O(s.adler,h,o,l)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Et(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Et(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<kt&&0!==t.strm.avail_in)},Tt=function(t,e){for(var a,n;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a)),t.match_length>=3)if(n=et(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Et(t,t.ins_h,t.window[t.strstart+1]);else n=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2},Ht=function(t,e){for(var a,n,r;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a),t.match_length<=5&&(t.strategy===ct||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=et(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ct(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=et(t,0,t.window[t.strstart-1]))&&Ct(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=et(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Kt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Lt(t),0===t.lookahead&&e===nt)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Ct(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-kt&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ct(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Tt),new Rt(4,5,16,8,Tt),new Rt(4,6,32,32,Tt),new Rt(4,4,16,16,Ht),new Rt(8,16,32,32,Ht),new Rt(8,16,128,128,Ht),new Rt(8,32,128,256,Ht),new Rt(32,128,258,1024,Ht),new Rt(32,258,258,4096,Ht)];function Nt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Bt(this.dyn_ltree),Bt(this.dyn_dtree),Bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Bt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ot=function(t){if(!t||!t.state)return Ut(t,ot);t.total_in=t.total_out=0,t.data_type=bt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:xt,t.adler=2===e.wrap?0:1,e.last_flush=nt,Z(e),lt},qt=function(t){var e,a=Ot(t);return a===lt&&((e=t.state).window_size=2*e.w_size,Bt(e.head),e.max_lazy_match=Kt[e.level].max_lazy,e.good_match=Kt[e.level].good_length,e.nice_match=Kt[e.level].nice_length,e.max_chain_length=Kt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Ft=function(t,e,a,n,r,i){if(!t)return ot;var s=1;if(e===ft&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==mt||n<8||n>15||e<0||e>9||i<0||i>wt)return Ut(t,ot);8===n&&(n=9);var h=new Nt;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,qt(t)},Gt={deflateInit:function(t,e){return Ft(t,e,mt,15,8,vt)},deflateInit2:Ft,deflateReset:qt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?ot:(t.state.gzhead=e,lt):ot},deflate:function(t,e){var a,n;if(!t||!t.state||e>ht||e<0)return t?Ut(t,ot):ot;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===At&&e!==st)return Ut(t,0===t.avail_out?ut:ot);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Dt(r,31),Dt(r,139),Dt(r,8),r.gzhead?(Dt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Dt(r,255&r.gzhead.time),Dt(r,r.gzhead.time>>8&255),Dt(r,r.gzhead.time>>16&255),Dt(r,r.gzhead.time>>24&255),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Dt(r,255&r.gzhead.extra.length),Dt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,3),r.status=xt);else{var s=mt+(r.w_bits-8<<4)<<8;s|=(r.strategy>=pt||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=xt,jt(r,s),0!==r.strstart&&(jt(r,t.adler>>>16),jt(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending!==r.pending_buf_size));)Dt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=zt)}else r.status=zt;if(r.status===zt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&St(t),r.pending+2<=r.pending_buf_size&&(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),t.adler=0,r.status=xt)):r.status=xt),0!==r.pending){if(St(t),0===t.avail_out)return r.last_flush=-1,lt}else if(0===t.avail_in&&It(e)<=It(i)&&e!==st)return Ut(t,ut);if(r.status===At&&0!==t.avail_in)return Ut(t,ut);if(0!==t.avail_in||0!==r.lookahead||e!==nt&&r.status!==At){var h=r.strategy===pt?function(t,e){for(var a;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===nt)return 1;break}if(t.match_length=0,a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===gt?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=yt){if(Lt(t),t.lookahead<=yt&&e===nt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+yt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=yt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=et(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):Kt[r.level].func(r,e);if(3!==h&&4!==h||(r.status=At),1===h||3===h)return 0===t.avail_out&&(r.last_flush=-1),lt;if(2===h&&(e===rt?at(r):e!==ht&&($(r,0,0,!1),e===it&&(Bt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),St(t),0===t.avail_out))return r.last_flush=-1,lt}return e!==st?lt:r.wrap<=0?_t:(2===r.wrap?(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),Dt(r,t.adler>>16&255),Dt(r,t.adler>>24&255),Dt(r,255&t.total_in),Dt(r,t.total_in>>8&255),Dt(r,t.total_in>>16&255),Dt(r,t.total_in>>24&255)):(jt(r,t.adler>>>16),jt(r,65535&t.adler)),St(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?lt:_t)},deflateEnd:function(t){if(!t||!t.state)return ot;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==zt&&e!==xt&&e!==At?Ut(t,ot):(t.state=null,e===xt?Ut(t,dt):lt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return ot;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return ot;if(1===r&&(t.adler=K(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(Bt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=Et(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,Lt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,lt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Jt=new Uint8Array(256),Pt=0;Pt<256;Pt++)Jt[Pt]=Pt>=252?6:Pt>=248?5:Pt>=240?4:Pt>=224?3:Pt>=192?2:1;Jt[254]=Jt[254]=1;var Qt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Vt=Object.prototype.toString,Wt=F,Xt=G,Yt=J,Zt=P,$t=Q,te=V,ee=W,ae=X,ne=Y;function re(){this.options={level:ee,method:ne,chunkSize:16384,windowBits:15,memLevel:8,strategy:ae};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Qt,this.strm.avail_out=0;var e=Gt.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==$t)throw new Error(q[e]);if(t.header&&Gt.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Vt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Gt.deflateSetDictionary(this.strm,a))!==$t)throw new Error(q[e]);this._dict_set=!0}}function ie(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function se(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}re.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Zt:Wt,"[object ArrayBuffer]"===Vt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Xt||n===Yt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Gt.deflate(r,n))===te)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Gt.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===$t;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},re.prototype.onData=function(t){this.chunks.push(t)},re.prototype.onEnd=function(t){t===$t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"3.2.51"};case"write":var n=e.get(a.streamId);n||(n=new re,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,G),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:se(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){ie(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){ie(e,t)}}()}();'])))}var zu=0,Vu=1,ju=2,Hu=3,$u={status:zu};function Fu(t,e,n,r){switch(void 0===r&&(r=Bu),$u.status===zu&&function(t,e,n){void 0===n&&(n=Bu);try{var r=n(t),i=sr(r,"error",(function(n){Wu(t,e,n)})),a=sr(r,"message",(function(t){var e,n=t.data;"errored"===n.type?Wu(n.error,n.streamId):"initialized"===n.type&&(e=n.version,$u.status===Vu&&($u={status:Hu,worker:$u.worker,version:e,stop:$u.stop}))}));r.postMessage({action:"init"}),h((function(){return function(t){$u.status===Vu&&(o.error(t+" failed to start: a timeout occurred while initializing the Worker"),$u.initializationFailureCallbacks.forEach((function(t){t()})),$u={status:ju})}(e)}),1e4),$u={status:Vu,worker:r,stop:function(){i.stop(),a.stop()},initializationFailureCallbacks:[]}}catch(n){Wu(t,e,n)}}(t,e,r),$u.status){case Vu:return $u.initializationFailureCallbacks.push(n),$u.worker;case Hu:return $u.worker}}function qu(){return $u.status}function Wu(t,e,n,r){if($u.status===Vu){var i;if(o.error(e+" failed to start: an error occurred while creating the Worker:",n),n instanceof Event||n instanceof Error&&(It(a=n.message,"Content Security Policy")||It(a,"requires 'TrustedScriptURL'")))i=t.workerUrl?"Please make sure the Worker URL "+t.workerUrl+" is correct and CSP is correctly configured.":"Please make sure CSP is correctly configured.",o.error(i);else Bi(n);$u.status===Vu&&$u.initializationFailureCallbacks.forEach((function(t){t()})),$u={status:ju}}else Bi(n,{worker_version:$u.status===Hu&&$u.version,stream_id:r});var a}function Gu(t,e,n,r,i,o,a){var s=function(t,e,n,r,i,o){void 0===o&&(o=ca);var a=function(t,e){return o({encoder:e.encoder,request:Jo(e.endpoint,t.batchBytesLimit,t.retryMaxSize,n),flushController:fa({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:r,sessionExpireObservable:i}),messageBytesLimit:t.messageBytesLimit,sendContentTypeByJson:t.sendContentTypeByJson})}(t,e);return{flushObservable:a.flushController.flushObservable,add:function(t){a.add(t)},upsert:function(t,e){a.upsert(t,e)},stop:function(){a.stop()}}}(t,{endpoint:t.rumEndpoint,encoder:a(Du)},r,i,o);return e.subscribe(Rr,(function(t){t.type===Ze.VIEW?s.upsert(t,t.view.id):s.add(t)})),n.subscribe((function(t){s.add(t)})),s}function Qu(t){return Qu="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},Qu(t)}function Ku(t){var e=function(t,e){if("object"!=Qu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Qu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Qu(e)?e:e+""}function Xu(t,e,n){return(e=Ku(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ju(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ju(Object(n),!0).forEach((function(e){Xu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ju(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Zu,tc="synthetics",ec="user",nc={"view.url":"string","view.referrer":"string"},rc={context:"object"},ic={service:"string",version:"string"},oc={};function ac(t,e,n,r,i,a,s,u,c,l){oc[Ze.VIEW]=Yu(Yu({},rc),nc),oc[Ze.ERROR]=I({"error.message":"string","error.stack":"string","error.resource.url":"string"},rc,nc,ic),oc[Ze.RESOURCE]=I({"resource.url":"string"},rc,nc,ic),oc[Ze.ACTION]=I({"action.target.name":"string"},rc,nc,ic),oc[Ze.LONG_TASK]=I({},rc,nc);var f={};f[Ze.ERROR]=$r(Ze.ERROR,t.eventRateLimiterThreshold,l),f[Ze.ACTION]=$r(Ze.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(Ar,(function(l){var d,p=l.startTime,v=l.rawRumEvent,h=l.savedCommonContext,m=l.customerContext,g=l.domainContext,y=i.findView(p),_=a.findUrl(p),b=n.findTrackedSession(p);if((!b||!b.isErrorSession||b.sessionHasError)&&(b&&y&&_)){var w=s.findActionId(p),S=s.findAllActionId(p),x=h||c(),k={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(yt()-(kt()+performance.now())),configuration:{session_sample_rate:lt(t.sessionSampleRate,3),session_replay_sample_rate:lt(t.sessionReplaySampleRate,3),session_on_error_sample_rate:lt(t.sessionOnErrorSampleRate,3),session_replay_on_error_sample_rate:lt(t.sessionReplayOnErrorSampleRate,3)}},terminal:{type:"web"},application:{id:t.applicationId},device:ne,env:t.env||"",service:y.service||t.service||"browser",version:y.version||t.version||"",source:"browser",date:gt(),user:{id:r.getId(),is_signin:"F",is_login:!1},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?ec:tc,id:b.id,is_forced_session:b.isSessionForced},view:{id:y.id,name:y.name||_.path,url:_.url,referrer:_.referrer,host:_.host,path:_.path,pathGroup:_.pathGroup,pathname:_.pathname,urlQuery:_.urlQuery},action:(d=v,-1!==[Ze.ERROR,Ze.RESOURCE,Ze.LONG_TASK].indexOf(d.type)&&w?{id:w,ids:S}:void 0),display:u.get()},E=Vt(P(k,y,v)),T=P({},x.context,y.context,m);$(T)||(E.context=T),"has_replay"in E.session||(E.session.has_replay=x.hasReplay),b.errorSessionReplayAllowed&&(E.session.has_replay=E.session.has_replay&&b.sessionHasError),"view"===E.type&&(E.session.sampled_for_error_replay=b.errorSessionReplayAllowed,E.session.sampled_for_error_session=b.isErrorSession,E.session.error_timestamp_for_session=b.sessionErrorTimestamp),$(x.user)||(E.user=P({is_signin:"T",is_login:!0},x.user)),function(t,e,n,r){if(e){var i=Vr(t,oc[t.type],(function(t){return e(t,n)}));if(!1===i&&t.type!==Ze.VIEW)return!1;!1===i&&o.warn("Can't dismiss view events using beforeSend!")}var a=!1;r[t.type]&&(a=r[t.type].isLimitReached());return!a}(E,t.beforeSend,g,f)&&($(E.context)&&delete E.context,e.notify(Rr,E))}}))}function sc(){return Zu||(Zu=new rr((function(t){var e=Q((function(){t.notify(uc())}),200).throttled;return sr(window,Ie,e,{capture:!0,passive:!0}).stop}))),Zu}function uc(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var cc=ai;var lc=ai;function fc(e,n,r,i){var o=new rr;!function(e){var n=ar([t.error]).subscribe((function(t){e.notify(t.error)}))}(o),function(t){Nn((function(e,n){t.notify(Qn({stackTrace:e,originalError:n,startClocks:mt(),nonErrorPrefix:hn,source:qn,handling:vn}))}))}(o),function(t,e){var n=dr(0,[lr]).subscribe((function(t){e.notify({startClocks:mt(),message:t.message,stack:t.stack,type:t.subtype,source:Gn,handling:vn})}))}(0,o);var a=r.findTrackedSession(),s=a&&a.isErrorSession&&a.sessionHasError;return a&&a.isErrorSession&&e.subscribe(Er,(function(){s=!1})),o.subscribe((function(t){a&&a.isErrorSession&&!s&&(r.setErrorForSession(),s=!0),e.notify(Pr,{error:t})})),function(t,e){return t.subscribe(Pr,(function(n){t.notify(Ar,I({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:X(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser"},type:Ze.ERROR,view:{in_foreground:e.wasInPageStateAt(Tu,t.startClocks.relative)}};return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(n.error,e)))})),{addError:function(e,n){var r=e.error,i=Qn({stackTrace:r instanceof Error?Sn(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:mn,source:Wn,handling:pn});t.notify(Pr,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,i)}function dc(){if(Ms(Is)){var t=performance.getEntriesByType(Is)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(G(e[n])){var r=n,i=e[r];t[r]=0===i?0:pt(i)}return t}(),n=I({entryType:Is,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return I({},n,{toJSON:void 0})}},e);return n}function pc(t,e,n){return void 0===n&&(n=dc),function(t){var e,n=Oo("complete",(function(){e=h((function(){t()}))}));return{stop:function(){n.stop(),m(e)}}}((function(){var t=n();(function(t){return t.loadEventEnd<=0})(t)||e(function(t){return{fetchStart:t.fetchStart,responseEnd:t.responseEnd,domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,loadEventEnd:t.loadEventEnd,loadEventStart:t.loadEventStart,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domContentLoadedEventStart:t.domContentLoadedEventStart,firstByte:t.responseStart>=0&&t.responseStart<=ht()?t.responseStart:void 0}}(t))}))}function vc(t,e){if(void 0===e&&(e=window),"hidden"===document.visibilityState&&!document.prerendering)return{getTimeStamp:function(){return 0},stop:ot};if(Ms(Ps)&&!document.prerendering){var n=performance.getEntriesByType(Ps).filter((function(t){return"hidden"===t.name})).find((function(e){return e.startTime>=t.relative}));if(n)return{getTimeStamp:function(){return n.startTime},stop:ot}}var r=1/0,i=ur(e,[xe,pe,ve],(function(t){t.type!==xe&&"hidden"!==document.visibilityState||(r=t.timeStamp,i())}),{capture:!0}).stop;return{getTimeStamp:function(){return r},stop:function(){i()}}}function hc(t,e,n,r){var i={},o=pc(0,(function(t){n(t.loadEvent),i.navigationTimings=t,r()})),a=vc(e),s=o.stop,u=function(t,e,n){return{stop:Ns(t,{type:As,buffered:!0}).subscribe((function(t){var r=At(t,(function(t){return t.entryType===As&&"first-contentful-paint"===t.name&&t.startTime<e.getTimeStamp()&&t.startTime<6e5}));r&&n(r.startTime)})).unsubscribe}}(t,a,(function(t){i.firstContentfulPaint=t,r()})),c=u.stop,l=function(t,e,n,r){var i=1/0,o=ur(n,[_e,ae],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=0,s=Ns(t,{type:Es,buffered:!0}).subscribe((function(n){var o,s=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(n,(function(t){return t.entryType===Es&&t.startTime<i&&t.startTime<e.getTimeStamp()&&t.startTime<6e5&&t.size>a}));s&&(s.element&&(o=au(s.element,t.actionNameAttribute)),r({value:s.startTime,targetSelector:o}),a=s.size)}));return{stop:function(){o(),s.unsubscribe()}}}(t,a,window,(function(t){i.largestContentfulPaint=t,r()})),f=l.stop,d=function(t,e,n){var r=Ns(t,{type:ks,buffered:!0}).subscribe((function(r){var i=At(r,(function(t){return t.entryType===ks&&t.startTime<e.getTimeStamp()}));if(i){var o,a=_t(i.startTime,i.processingStart);i.target&&xo(i.target)&&(o=au(i.target,t.actionNameAttribute)),n({delay:a>=0?a:0,time:i.startTime,targetSelector:o})}}));return{stop:function(){r.unsubscribe()}}}(t,a,(function(t){i.firstInput=t,r()})),p=d.stop;return{stop:function(){s(),c(),f(),p(),a.stop()},initialViewMetrics:i}}var mc=st;function gc(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=mc);return new rr((function(t){function n(){var e,n,r,i;t.notify((e=Ao(),n=uc().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(n+e),{scrollHeight:r,scrollDepth:i,scrollTop:e}))}if(window.ResizeObserver){var r=Q(n,e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(u(r.throttled));i&&o.observe(i);var a=sr(window,ce,r.throttled,{passive:!0});return function(){r.cancel(),o.unobserve(i),a.stop()}}}))}());var i=0,o=0,a=0,s=r.subscribe((function(t){var r=t.scrollDepth,s=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=ht();a=_t(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:a})}));return{stop:function(){return s.unsubscribe()}}}function yc(t,e,n){if(!xc())return{stop:ot};var r,i,o=0;n({value:0});var a=function(){var t,e,n=0,r=0;return{update:function(i){var o;return void 0===t||i.startTime-e>=Sc||i.startTime-t>=5*wc?(t=e=i.startTime,r=n=i.value,o=!0):(n+=i.value,e=i.startTime,(o=i.value>r)&&(r=i.value)),{cumulatedValue:n,isMaxValue:o}}}}(),s=Ns(t,{type:Ts,buffered:!0}).subscribe((function(s){for(var u=0,c=s;u<c.length;u++){var l=c[u];if(!(l.hadRecentInput||l.startTime<e)){var f=a.update(l),d=f.cumulatedValue;if(f.isMaxValue){var p=_c(l.sources);r=p?new WeakRef(p):void 0,i=_t(e,l.startTime)}if(d>o){o=d;p=r&&r.deref();n({value:lt(o,4),targetSelector:p&&au(p,t.actionNameAttribute),time:i})}}}}));return{stop:function(){s.unsubscribe()}}}function _c(t){if(t){var e=At(t,(function(t){return!!t.node&&xo(t.node)}));return e&&e.node}}var bc,wc=5e3,Sc=st;function xc(){return Ms(Ts)&&"WeakRef"in window}var kc=0,Ec=1/0,Tc=0;var Cc=function(){return bc?kc:window.performance.interactionCount||0};function Oc(t,e,n){if(!(Ms("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ot,stop:ot};var r,i,o=function(t){"interactionCount"in performance||bc||(bc=new window.PerformanceObserver(u((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(Ec=Math.min(Ec,e.interactionId),Tc=Math.max(Tc,e.interactionId),kc=(Tc-Ec)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===nn?0:Cc(),n={stopped:!1};function r(){return Cc()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,c=1/0,l=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(10)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(a),f=-1;function d(n){for(var o=0,a=n;o<a.length;o++){var s=a[o];s.interactionId&&s.startTime>=e&&s.startTime<=c&&l.process(s)}var u,d,p=l.estimateP98Interaction();p&&p.duration!==f&&(f=p.duration,i=_t(e,p.startTime),u=p.startTime,d=bu.get(u),bu.delete(u),!(r=d)&&p.target&&xo(p.target)&&(r=au(p.target,t.actionNameAttribute)))}var p=Ns(t,{type:ks,buffered:!0}).subscribe(d),v=Ns(t,{type:xs,durationThreshold:40,buffered:!0}).subscribe(d);return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,6e4),targetSelector:r,time:i}:a()?{value:0}:void 0},setViewEnd:function(t){c=t,s()},stop:function(){v.unsubscribe(),p.unsubscribe()}}}function Ic(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a=r===nn,s=!0,u=[],c=vc(i);function l(){if(!s&&!a&&u.length>0){var t=Math.max.apply(Math,u);t<c.getTimeStamp()-i.relative&&o(t)}}var f=Us(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(_t(i.timeStamp,t.end)),l())})).stop;return{setLoadEvent:function(t){a&&(a=!1,u.push(t),l())},stop:function(){f(),c.stop(),s&&(s=!1,l())}}}(t,e,n,i,o,(function(t){a.loadingTime=t,r()})),u=s.stop,c=s.setLoadEvent,l=gc(0,o,(function(t){a.scroll=t})).stop,f=yc(n,o.relative,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=Oc(n,o.relative,i),p=d.stop,v=d.getInteractionToNextPaint;return{stop:function(){u(),f(),l()},stopINPTracking:p,setLoadEvent:c,setViewEnd:d.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=v(),a}}}var Ac,Rc=3e5,Pc=3e5;function Nc(t,e,n,r,i,o,a){var s=new Set;function u(i,o,a){var u=function(t,e,n,r,i,o,a){void 0===o&&(o=mt());var s,u,c,l,f,d=X(),p=new rr,v={},m=0,_=A(r),b=xa(),w=!0;a&&(u=a.name,c=a.service,l=a.version,f=a.context);f&&b.setContext(f);var S={id:d,name:u,startClocks:o,service:c,version:l};t.notify(_r,S),t.notify(br,S);var x=Q($,3e3,{leading:!1}),k=x.throttled,E=x.cancel,T=Ic(t,e,n,H,i,o),C=T.setLoadEvent,O=T.stop,I=T.getCommonViewMetrics,R=T.stopINPTracking,P=T.setViewEnd,N=i===nn?hc(n,o,C,H):{stop:ot,initialViewMetrics:{}},M=N.stop,L=N.initialViewMetrics,D=function(t,e,n){var r=Ls({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,d,H),U=D.stop,B=D.eventCounts,z=g($,Rc),V=t.subscribe(Cr,(function(t){t.reason===wo.UNLOADING&&$()}));function j(){t.notify(Sr,{id:d,name:u,context:b.getContext(),startClocks:o})}function H(){j(),k()}function $(){E(),j(),m+=1;var e=void 0===s?gt():s.timeStamp;t.notify(wr,{customTimings:v,documentVersion:m,id:d,name:u,service:c,version:l,context:b.getContext(),loadingType:i,location:_,startClocks:o,commonViewMetrics:I(),initialViewMetrics:L,duration:_t(o.timeStamp,e),isActive:void 0===s,sessionIsActive:w,eventCounts:B})}$(),b.changeObservable.subscribe(H);var F={name:u,service:c,version:l,contextManager:b,stopObservable:p,end:function(e){s||(s=Ht(e&&e.endClocks,mt()),w=Ht(e&&e.sessionIsActive,!0),t.notify(xr,{endClocks:s}),t.notify(kr,{endClocks:s}),y(z),P(s.relative),O(),V.unsubscribe(),$(),h((function(){F.stop()}),Pc))},stop:function(){M(),U(),R(),p.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<31536e6}(e)?e:_t(o.timeStamp,e);v[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");e!==t&&console.warn("Invalid timing name: "+t+", sanitized to: "+e);return e}(t)]=n,H()}},setViewName:function(t){u=t,$()}};return F}(e,n,r,t,i,o,a);return s.add(u),u.stopObservable.subscribe((function(){s.delete(u)})),u}var c,l=u(nn,bt(),a);return e.subscribe(Er,(function(){l=u(rn,void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})})),e.subscribe(Tr,(function(){l.end({sessionIsActive:!1})})),o&&(c=function(t){return t.subscribe((function(t){var e,n,r,i,o=t.oldLocation,a=t.newLocation;if(n=a,(e=o).pathname!==n.pathname||(r=n.hash,!((i=r.substr(1))&&document.getElementById(i)||Wt(n.hash)===Wt(e.hash))))return l.end(),void(l=u(rn))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=gt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(rn,e,t)},setViewContext:function(t){l.contextManager.setContext(t)},setViewContextProperty:function(t,e){l.contextManager.setContextProperty(t,e)},setViewName:function(t){l.setViewName(t)},getViewContext:function(){return l.contextManager.getContext()},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach((function(t){t.stop()}))}}}function Mc(t,e,n,r,i,o,a,s){return t.subscribe(wr,(function(n){t.notify(Ar,function(t,e,n,r){var i=n.getReplayStats(t.id),o=r.findAll(t.startClocks.relative,t.duration),a={_gc:{document_version:t.documentVersion,replay_stats:i,page_states:o,view_update_time:t.documentVersion},date:t.startClocks.timeStamp,type:Ze.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:Tt(t.commonViewMetrics,"cumulativeLayoutShift.value"),cumulative_layout_shift_time:Tt(t.commonViewMetrics,"cumulativeLayoutShift.time"),cumulative_layout_shift_target_selector:Tt(t.commonViewMetrics,"cumulativeLayoutShift.targetSelector"),first_byte:dt(Tt(t.initialViewMetrics,"navigationTimings.firstByte")),dom_complete:dt(Tt(t.initialViewMetrics,"navigationTimings.domComplete")),dom_content_loaded:dt(Tt(t.initialViewMetrics,"navigationTimings.domContentLoaded")),dom_interactive:dt(Tt(t.initialViewMetrics,"navigationTimings.domInteractive")),error:{count:t.eventCounts.errorCount},first_contentful_paint:dt(Tt(t.initialViewMetrics,"firstContentfulPaint")),first_input_delay:dt(Tt(t.initialViewMetrics,"firstInput.delay")),first_input_time:dt(Tt(t.initialViewMetrics,"firstInput.time")),first_input_target_selector:Tt(t.initialViewMetrics,"firstInput.targetSelector"),interaction_to_next_paint:dt(Tt(t.commonViewMetrics,"interactionToNextPaint.value")),interaction_to_next_paint_target_selector:Tt(t.commonViewMetrics,"interactionToNextPaint.targetSelector"),is_active:t.isActive,name:t.name,largest_contentful_paint:dt(Tt(t.initialViewMetrics,"largestContentfulPaint.value")),largest_contentful_paint_element_selector:Tt(t.initialViewMetrics,"largestContentfulPaint.targetSelector"),load_event:dt(Tt(t.initialViewMetrics,"navigationTimings.loadEvent")),loading_time:Gt(dt(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:dt(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:dt(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!i||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};$(t.customTimings)||(a.view.custom_timings=(s=t.customTimings,u=dt,c={},O(s,(function(t,e){c[e]=u(t)})),c));var s,u,c;return a=P(a,{view:Lc(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),Nc(n,t,r,e,i,!e.trackViewsManually,s)}function Lc(t){if(t){var e=t.fetchStart,n=t.responseEnd,r=t.domInteractive,i=t.domContentLoaded,o=t.domComplete,a=t.loadEventEnd,s=t.loadEventStart,u=t.domContentLoadedEventEnd,c={};if(G(n)&&G(e)&&n!==e&&n>e){c.fpt=dt(n-e);var l=parseInt((n-e)/1e3);c.apdexLevel=l>9?9:l}return G(r)&&G(e)&&r!==e&&r>e&&(c.tti=dt(r-e)),G(i)&&G(e)&&i!==e&&i>e&&(c.dom_ready=dt(i-e)),G(a)&&G(e)&&a!==e&&a>e&&(c.load=dt(a-e)),G(s)&&G(u)&&s!==u&&s>u&&(c.resource_load_time=dt(s-u)),G(o)&&G(r)&&o!==r&&o>r&&(c.dom=dt(o-r)),c}}function Dc(){this.buffer=new Uint8Array(8),Uc().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function Uc(){return window.crypto||window.msCrypto}function Bc(t,e){if(this._spanId=new Dc,this._traceId=new Dc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function zc(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function Vc(t,e,n){if(this._spanId=zc(),this._traceId=zc(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=Y(e).getParse(),this._traceSampled=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function jc(t,e){if(this._traceId=new Dc,this._spanId=new Dc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Hc(t,e){if(this._traceId=new Dc,this._spanId=new Dc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function $c(t,e){if(this._traceId=new Dc,this._spanId=new Dc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Fc(t,e,n){if(this._traceId=new Dc,this._spanId=new Dc,this._traceSampled=e,this.isHexTraceId=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function qc(t,e){return 100===e||0!==e&&(Ac&&t===Ac.sessionId?Ac.decision:(n=window.BigInt?function(t,e){var n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000");return Number(t*n%r)<=e/100*Number(r)}(BigInt("0x".concat(t.split("-")[4])),e):ct(e),Ac={sessionId:t,decision:n},n));var n}function Wc(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Gc(t,e,n,r){var i=n.findTrackedSession();if(i){var o=At(t.allowedTracingUrls,(function(t){return V([t.match],e.url,!0)}));if(o){var a,s=qc(i.id,t.tracingSampleRate);switch(o.traceType){case an:a=new Bc(t,s);break;case fn:a=new Vc(t,e.url,s);break;case sn:a=new $c(t,s);break;case dn:a=new jc(t,s);break;case cn:a=new Fc(t,s);break;case ln:a=new Fc(t,s,!0);break;case un:a=new Hc(t,s)}if(a&&a.isTracingSupported()){e.traceId=a.getTraceId(),e.spanId=a.getSpanId(),e.traceSampled=s;var u=a.makeTracingHeaders();if(t.injectTraceHeader){var c=t.injectTraceHeader(A(e));"object"===et(c)&&O(c,(function(t,e){"string"===et(t)&&(u[e]=t)}))}r(u)}}}}Dc.prototype={toString:function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n);return r},toDecimalString:function(){return this.toString(10)},toPaddedHexadecimalString:function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},readInt32:function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]}},Bc.prototype={isTracingSupported:function(){return void 0!==Uc()},getSpanId:function(){return this._spanId.toDecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId.toDecimalString()},makeTracingHeaders:function(){return{"x-datadog-origin":"rum","x-datadog-parent-id":this.getSpanId(),"x-datadog-sampling-priority":this._traceSampled?"2":"-1","x-datadog-trace-id":this.getTraceId()}}},Vc.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId},getSkyWalkingSw8:function(){try{var t=String(K(this.getTraceId())),e=String(K(this.getSpanId())),n=String(K(this._applicationId+"_rum_"+this.env)),r=String(K(this._version)),i=String(K(window.location.href)),o=String(K(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},jc.prototype={isTracingSupported:function(){return void 0!==Uc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},getUberTraceId:function(){return this.getTraceId()+":"+this.getSpanId()+":0:"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{"uber-trace-id":this.getUberTraceId()}}},Hc.prototype={isTracingSupported:function(){return void 0!==Uc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId.toPaddedHexadecimalString()},getB3Str:function(){return this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},$c.prototype={isTracingSupported:function(){return void 0!==Uc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},makeTracingHeaders:function(){return{"X-B3-TraceId":this.getTraceId(),"X-B3-SpanId":this.getSpanId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},Fc.prototype={isTracingSupported:function(){return void 0!==Uc()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.isHexTraceId?this._traceId.toDecimalString():this._traceId.toPaddedHexadecimalString()+this._spanId.toPaddedHexadecimalString()},getTraceParent:function(){return this.isHexTraceId?"00-0000000000000000"+this._traceId.toPaddedHexadecimalString()+"-"+this._spanId.toPaddedHexadecimalString()+"-"+(this._traceSampled?"01":"00"):"00-"+this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"01":"00")},makeTracingHeaders:function(){var t={traceparent:this.getTraceParent()};return this.isHexTraceId?I(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var Qc=1;function Kc(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Wc,traceFetch:function(n){return Gc(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=A(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):N(n.init.headers)?O(n.init.headers,(function(t){e.push(t)})):n.init.headers&&O(n.init.headers,(function(t,n){e.push([n,t])}));var r={};O(e.concat(F(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),O(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return Gc(t,n,e,(function(t){O(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=go().subscribe((function(r){var i=r;if(gs(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=Xc(),t.notify(Or,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(Ir,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:on.XHR,url:i.url,xhr:i.xhr,isAborted:i.isAborted,requestHeaderContexts:i.requestHeaderContexts,handlingStack:i.handlingStack})}}))}(t,e,r),function(t,e,n){var r=ho().subscribe((function(r){var i=r;if(gs(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=Xc(),t.notify(Or,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":!function(t,e){var n=t.response&&function(t){try{return t.clone()}catch(t){return}}(t.response);n&&n.body?function(t,e,n){var r=t.getReader(),i=[],o=0;function a(){var t,a;if(r.cancel().catch(ot),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;O(i,(function(t){s.set(t,u),u+=t.length}))}t=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}e(void 0,t,a)}!function t(){r.read().then(u((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())})),u((function(t){e(t)})))}()}(n.body,(function(){e(_t(t.startClocks.timeStamp,gt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(_t(t.startClocks.timeStamp,gt()))}(i,(function(e){var r;n.clearTracingIfNeeded(i),t.notify(Ir,{duration:e,method:i.method,requestIndex:i.requestIndex,responseType:i.responseType,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,requestHeaderContexts:null===(r=i.init)||void 0===r?void 0:r.headers,type:on.FETCH,url:i.url,response:i.response,init:i.init,input:i.input,isAborted:i.isAborted,handlingStack:i.handlingStack})}))}}))}(t,e,r)}function Xc(){var t=Qc;return Qc+=1,t}var Jc=new Ua;function Yc(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=U(e,(function(t){return!Jc.has(t)}));n=U(n,(function(t){return ds(t)&&ps(t)})),n=U(n,(function(e){return n=e,r=t.startClocks.relative,i=Zc({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Zc(n)<=St(i,o);var n,r,i,o}));var r=void 0;if(n.length>1){var i=Number.MAX_SAFE_INTEGER;n.forEach((function(e){var n=Math.abs(e.startTime-t.startClocks.relative);n<i&&(i=n,r=e)}))}else 1===n.length&&(r=n[0]);return r?(Jc.add(r),r.toJSON()):void 0}}}function Zc(t){return St(t.startTime,t.duration)}function tl(t,e){Oo("interactive",(function(){var t=I(dc().toJSON(),{entryType:Rs,initiatorType:ns,toJSON:function(){return I({},t,{toJSON:void 0})}});e(t)}))}function el(t,e,n,r,i){void 0===r&&(r=function(){var t=[];function e(e){var r;if(e.didTimeout){var i=performance.now();r=function(){return 30-(performance.now()-i)}}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){Kr(e,{timeout:1e3})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===i&&(i=tl),t.subscribe(Ir,(function(t){a((function(){return function(t,e){var n=Yc(t),r=n?wt(n.startTime):t.startClocks,i=function(t){var e=t.traceSampled&&t.traceId&&t.spanId;if(!e)return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:X()}}}(t),o=t.type===on.XHR?Be:Ve,a=n?rl(n):void 0,s=function(t,e,n){return t.wasInPageStateDuringPeriod(Iu,e.relative,n)?void 0:dt(n)}(e,r,t.duration),u=Y(t.url).getParse(),c=P({date:r.timeStamp,resource:{id:X(),type:o,duration:s,method:t.method,status:t.status,statusGroup:it(t.status),url:_s(t.url)?bs(t.url):t.url,urlHost:u.Host,urlPath:u.Path,urlPathGroup:J(u.Path),urlQuery:Z(t.url),deliveryType:n&&as(n),protocol:n&&ss(n)},type:Ze.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:c,domainContext:{performanceEntry:n,xhr:t.xhr,requestHeaderContexts:t.requestHeaderContexts,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}(t,n)}))}));var o=Ns(e,{type:Rs,buffered:!0}).subscribe((function(t){for(var n=function(t){(function(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType})(t)||cs(t.name,e.resourceUrlLimit)||a((function(){return nl(t,e)}))},r=0,i=t;r<i.length;r++){n(i[r])}}));function a(e){r.push((function(){var n=e();n&&t.notify(Ar,n)}))}return i(e,(function(t){a((function(){return nl(t,e)}))})),{stop:function(){o.unsubscribe()},addResource:function(t,e){a((function(){return R({savedCommonContext:e},function(t){var e={date:t.startClocks.timeStamp,resource:{id:X(),type:t.type},type:Ze.RESOURCE};return{customerContext:t.context,startTime:t.startClocks.relative,rawRumEvent:e,domainContext:{resource:t}}}(t))}))}}}function nl(t,e){var n,r=wt(t.startTime),i=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),o=is(t),a=rl(t),s=Y(t.name).getParse(),u=P({date:r.timeStamp,resource:{id:X(),type:o,url:t.name,urlHost:s.Host,urlPath:s.Path,urlPathGroup:J(s.Path),urlQuery:Z(t.name),method:"GET",status:(n=t.responseStatus,0===n?void 0:n),statusGroup:it(t.responseStatus),deliveryType:as(t),protocol:ss(t)},type:Ze.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:u,domainContext:{performanceEntry:t}}}function rl(t){return{resource:P({},{duration:ls(t)},ms(t),fs(t))}}var il={sdkVersion:"3.2.51",sdkName:"df_web_rum_sdk"};function ol(t){if(t.applicationId){var e=function(t){return t.site||t.datakitOrigin||t.datakitUrl?!(t.site&&!t.clientToken&&(o.error("clientToken is not configured, no RUM data will be collected."),1)):(o.error("datakitOrigin or site is not configured, no RUM data will be collected."),!1)}(t);if(e)if(void 0===t.sessionOnErrorSampleRate||Pt(t.sessionOnErrorSampleRate))if(void 0===t.sessionReplaySampleRate||Pt(t.sessionReplaySampleRate))if(void 0===t.sessionReplayOnErrorSampleRate||Pt(t.sessionReplayOnErrorSampleRate)){var n=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&o.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!N(t.allowedTracingUrls))return void o.error("Allowed Tracing URLs should be an array");var e=[];return O(t.allowedTracingUrls,(function(n){var r;Ot(n)?e.push({match:n,traceType:Ht(t.traceType,an)}):"object"===et(r=n)&&Ot(r.match)&&q(r.traceType)?e.push(n):o.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)})),e}if(void 0!==t.allowedTracingOrigins){if(!N(t.allowedTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return O(t.allowedTracingOrigins,(function(n){var r=al(n,Ht(t.traceType,an));r&&e.push(r)})),e}if(void 0!==t.allowedDDTracingOrigins){if(!N(t.allowedDDTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return O(t.allowedDDTracingOrigins,(function(n){var r=al(n,Ht(t.traceType,an));r&&e.push(r)})),e}return[]}(t);if(n)if(void 0===t.tracingSampleRate||Pt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||N(t.excludedActivityUrls)){var r=eo(t);if(r){var i=!!Ht(t.trackUserInteractions,t.trackInteractions);return I({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Ht(t.sessionReplaySampleRate,100),sessionOnErrorSampleRate:Ht(t.sessionOnErrorSampleRate,0),sessionReplayOnErrorSampleRate:Ht(t.sessionReplayOnErrorSampleRate,0),tracingSampleRate:Ht(t.tracingSampleRate,100),allowedTracingUrls:n,injectTraceHeader:t.injectTraceHeader&&f(t.injectTraceHeader,"injectTraceHeader threw an error:"),generateTraceId:t.generateTraceId&&f(t.generateTraceId,"generateTraceId threw an error:"),excludedActivityUrls:Ht(t.excludedActivityUrls,[]),workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:i,enableLongAnimationFrame:!!t.enableLongAnimationFrame,trackViewsManually:!!t.trackViewsManually,traceType:Ht(t.traceType,an),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:$t(to,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:to.MASK_USER_INPUT,shouldMaskNode:t.shouldMaskNode&&f(t.shouldMaskNode,"shouldMaskNode threw an error:")},r,il)}}else o.error("Excluded Activity Urls should be an array");else o.error("Tracing Sample Rate should be a number between 0 and 100")}else o.error("Error Session Replay Sample Rate should be a number between 0 and 100");else o.error("Session Replay Sample Rate should be a number between 0 and 100");else o.error("Error Session Sample Rate should be a number between 0 and 100")}else o.error("Application ID is not configured, no RUM data will be collected.")}function al(t,e){var n;if("string"==typeof t?n=t:t instanceof RegExp?n=function(e){return t.test(qr(e))}:"function"==typeof t&&(n=function(e){return t(qr(e))}),void 0!==n)return{match:n,traceType:e};o.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t)}function sl(t,e,n){var r,i,a,s,u,c=t.ignoreInitIfSyntheticsWillInjectRum,l=t.startDeflateWorker,f=Qt(),d=Qt();function p(){if(a&&s){var t;if(s.trackViewsManually){if(!r)return;f.remove(r.callback),t=r.options}var e=n(s,i,t);f.drain(e)}}function v(t,e){var n=ma();if(n&&(t=function(t){var e,n;return I({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(e=t.defaultPrivacyLevel)&&void 0!==e?e:null===(n=pa())||void 0===n?void 0:n.getPrivacyLevel()})}(t)),a=t,u=e,d.drain(u),function(t){Li({type:Oi,configuration:t})}(rt(t)),s)Ba("DATAFLUX_RUM",t);else{var r=ol(t);r&&(n||r.sessionStoreStrategyType?(!r.compressIntakeRequests||r.sendContentTypeByJson||n||!l||(i=l(r,"RUM",ot)))&&(s=r,ho().subscribe(ot),p()):o.warn("No storage available for session. We will not send any data."))}}return{init:function(t){t?(a=t,c&&Boolean(window._GUANCE_SYNTHETICS_INJECTS_RUM||ii("guance-synthetics-injects-rum"))||(t.remoteConfiguration?uo(t,v):v(t))):o.error("Missing configuration")},getInitConfiguration:function(){return a},getRemoteConfiguration:function(t){"function"===et(t)&&(u?t(u):d.add(t))},getInternalContext:ot,stopSession:ot,setForcedSession:function(){f.add((function(t){return t.setForcedSession()}))},addTiming:function(t,e){void 0===e&&(e=gt()),f.add((function(n){n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=mt());var n=function(n){n.startView(t,e)};f.add(n),r||(r={options:t,callback:n},p())},setViewName:function(t){f.add((function(e){return e.setViewName(t)}))},setViewContext:function(t){f.add((function(e){return e.setViewContext(t)}))},setViewContextProperty:function(t,e){f.add((function(n){return n.setViewContextProperty(t,e)}))},getViewContext:function(){},addTypeAction:function(t,n,r){void 0===r&&(r=e()),f.add((function(e){e.addTypeAction(t,n,r)}))},addAction:function(t,n){void 0===n&&(n=e()),f.add((function(e){e.addAction(t,n)}))},addResource:function(t,n){void 0===n&&(n=e()),f.add((function(e){e.addResource(t,n)}))},addError:function(t,n){void 0===n&&(n=e()),f.add((function(e){e.addError(t,n)}))}}}var ul=2,cl=3,ll=4,fl=6,dl=7,pl=8,vl=9,hl=0,ml=1,gl=2,yl=3,_l=4,bl=11,wl=0,Sl=1,xl=2,kl=3,El=4,Tl=5,Cl=6,Ol=7,Il=8,Al=0,Rl=1,Pl=2,Nl=3,Ml=4,Ll=5,Dl=6,Ul=7,Bl=9,zl=0,Vl=1,jl={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:to.ALLOW,MASK:to.MASK,MASK_USER_INPUT:to.MASK_USER_INPUT},Hl="data-gc-privacy",$l="hidden",Fl="***",ql={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Wl(t,e,n){if(n&&n.has(t))return n.get(t);var r=Co(t),i=r?Wl(r,e):e,o=Gl(Ql(t),i);return n&&n.set(t,o),o}function Gl(t,e){switch(e){case jl.HIDDEN:case jl.IGNORE:return e}switch(t){case jl.ALLOW:case jl.MASK:case jl.MASK_USER_INPUT:case jl.HIDDEN:case jl.IGNORE:return t;default:return e}}function Ql(t){if(xo(t)){var e=t.getAttribute(Hl);if("BASE"===t.tagName)return jl.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return jl.MASK;if("hidden"===n.type)return jl.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return jl.MASK}return e===$l||t.classList.contains("gc-privacy-hidden")?jl.HIDDEN:"mask"===e||t.classList.contains("gc-privacy-mask")?jl.MASK:"mask-user-input"===e||t.classList.contains("gc-privacy-mask-user-input")?jl.MASK_USER_INPUT:"allow"===e||t.classList.contains("gc-privacy-allow")?jl.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),r=(e=i("rel"),i("property"));return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function i(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?jl.IGNORE:void 0}}function Kl(t,e,n){if(t.shouldMaskNode&&!0===t.shouldMaskNode(e,n))return!0;switch(n){case jl.MASK:case jl.HIDDEN:case jl.IGNORE:return!0;case jl.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(e)?Xl(e.parentNode):Xl(e);default:return!1}}function Xl(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!ql[e.tagName]}function Jl(t,e,n,r){var i=e.parentElement&&e.parentElement.tagName,o=e.textContent||"";if(!n||o.trim()){if("SCRIPT"===i)o=Fl;else if(r===jl.HIDDEN)o=Fl;else if(Kl(t,e,r))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?Fl:o.replace(/\S/g,"x");return o}}var Yl=new WeakMap;function Zl(t){return Yl.has(t)}function tf(t){return Yl.get(t)}function ef(t,e,n){var r=e.tagName,i=e.value;if(Kl(t,e,n)){var o=e.type;if("INPUT"===r&&("button"===o||"submit"===o||"reset"===o||"range"===o))return i;if(!i||"OPTION"===r)return;return Fl}return"OPTION"===r||"SELECT"===r?e.value:"INPUT"===r||"TEXTAREA"===r?i:void 0}var nf=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,rf=/^[A-Za-z]+:|^\/\//,of=/^data:.*,/i;function af(t,e){return t.replace(nf,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||rf.test(s)||of.test(s))return t;var u=n||i||"";return"/"===s[0]?"url(".concat(u).concat(function(t){return(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]}(e)+s).concat(u,")"):"url(".concat(u).concat(function(t,e){try{return Wr(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}function sf(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch(t){}return e?af(((n=Array.from(e,Bt()===Dt?cf:uf).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),n),t.href):null}function uf(t){return function(t){return"styleSheet"in t}(t)&&sf(t.styleSheet)||t.cssText}function cf(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return uf(t)}function lf(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function ff(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var df=/^[^ \t\n\r\u000c]+/,pf=/^[, \t\n\r\u000c]+/;var vf=0,hf=1,mf=2;function gf(t,e,n){return yf(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function yf(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:hl,childNodes:_f(t,e),adoptedStyleSheets:lf(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=Eo(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:bl,childNodes:_f(t,e),isShadowRoot:n,adoptedStyleSheets:n?lf(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:ml,name:(n=t).name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=xf(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=Gl(Ql(t),e.parentNodePrivacyLevel);var o;if(i===jl.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:gl,tagName:n,attributes:Xu({rr_width:s+"px",rr_height:u+"px"},Hl,$l),childNodes:[],isSVG:r}}if(i===jl.IGNORE)return;var c=function(t,e,n){if(e===jl.HIDDEN)return{};for(var r={},i=xf(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=bf(t,e,s,n.configuration);null!==u&&(r[s]=kf(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=ef(n.configuration,t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===jl.ALLOW){var l=t;l.selected&&(r.selected=l.selected)}if("link"===i){var f=Array.from(o.styleSheets).find((function(e){return e.href===t.href}));(d=sf(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=sf(t.sheet))&&(r._cssText=d)}var p,v,h=t;"input"!==i||"radio"!==h.type&&"checkbox"!==h.type||(e===jl.ALLOW?r.checked=!!h.checked:Kl(n.configuration,h,e)&&delete r.checked);if("audio"===i||"video"===i){var m=t;r.rr_mediaState=m.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case vf:p=Math.round(t.scrollTop),v=Math.round(t.scrollLeft),(p||v)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:v});break;case hf:if(g.elementsScrollPositions.has(t)){var y=g.elementsScrollPositions.get(t);p=y.scrollTop,v=y.scrollLeft}}v&&(r.rr_scrollLeft=v);p&&(r.rr_scrollTop=p);return r}(t,i,e),l=[];if(function(t){return t.childNodes.length>0||ko(t)}(t)&&"style"!==n){l=_f(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:I({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:gl,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=Jl(e.configuration,t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:yl,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:_l,textContent:""}}var n}(t,e);if(!n)return null;var r=tf(t)||wf++,i=n;return i.id=r,function(t,e){Yl.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function _f(t,e){var n=[];return To(t,(function(t){var r=yf(t,e);r&&n.push(r)})),n}function bf(t,e,n,r){if(e===jl.HIDDEN)return null;var i=t.getAttribute(n);if(e===jl.MASK&&n!==Hl&&!ru.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return Fl}if("IMG"===o||"SOURCE"===o){if("src"===n||"srcset"===n)return"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";if("onerror"===n)return null}if("A"===o&&"href"===n)return Fl;if(i&&Ft(n,"data-"))return Fl;if("IFRAME"===o&&"srcdoc"===n)return Fl}return i&&"string"==typeof i&&_s(i)?bs(i):i}var wf=1;var Sf=/[^a-z1-6-_]/;function xf(t){var e=(t+"").toLowerCase().trim();return Sf.test(e)?"div":e}function kf(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?ff(t,r):"background"!==n||!r||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;var n=0;function r(t){var r,i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}for(var i=[];r(pf),!(n>=e.length);){var o=r(df);if(","===o.slice(-1))o=ff(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=ff(t,o);for(var s=!1;;){var u=e.charAt(n);if(""===u){i.push((o+a).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){n+=1,i.push((o+a).trim());break}"("===u&&(s=!0)}a+=u,n+=1}}}return i.join(", ")}(t,r):"style"===n?af(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?ff(t,r):r:ff(t,r):r;var i}function Ef(t){return Boolean(t.changedTouches)}function Tf(t,e){return{data:I({source:t},e),type:cl,timestamp:gt()}}function Cf(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){r=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(r),e}}function Of(t,e,n,r){var i=Za();if(!i)return{stop:ot,flush:ot};var o=function(t){var e=ot,n=[];function r(){e(),t(n),n=[]}var i=Q(r,16,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(t){0===n.length&&(e=Kr(o,{timeout:100})),Array.prototype.push.apply(n,t)},flush:r,stop:function(){e(),a()}}}((function(r){!function(t,e,n,r){var i=new Map;t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){If(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Zl(e)&&!Eo(e))return!1;e=Co(e)}return!0}(t.target)&&Wl(t.target,n.defaultPrivacyLevel,i)!==jl.HIDDEN})),a=function(t,e,n,r){for(var i=new Set,o=new Map,a=0,s=t;a<s.length;a++){var u=s[a];u.addedNodes.forEach((function(t){i.add(t)})),u.removedNodes.forEach((function(t){i.has(t)||o.set(t,u.target),i.delete(t)}))}var c=Array.from(i);l=c,l.sort((function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0}));var l;for(var f=new Set,d=[],p=0,v=c;p<v.length;p++){var h=v[p];if(!b(h)){var m=Wl(h.parentNode,e.defaultPrivacyLevel,r);if(m!==jl.HIDDEN&&m!==jl.IGNORE){var g=yf(h,{serializedNodeIds:f,parentNodePrivacyLevel:m,serializationContext:{status:mf,shadowRootsController:n},configuration:e});if(g){var y=Co(h);d.push({nextId:w(h),parentId:tf(y),node:g})}}}}var _=[];return o.forEach((function(t,e){Zl(e)&&_.push({parentId:tf(t),id:tf(e)})})),{adds:d,removes:_,serializedNodeIds:f,hasBeenSerialized:b};function b(t){return Zl(t)&&f.has(tf(t))}function w(t){for(var e=t.nextSibling;e;){if(Zl(e))return tf(e);e=e.nextSibling}return null}}(o.filter((function(t){return"childList"===t.type})),n,r,i),s=a.adds,u=a.removes,c=a.serializedNodeIds;function l(t){return Zl(t)&&c.has(tf(t))}var f=function(t,e,n){for(var r=[],i=new Set,o=t.filter((function(t){return!i.has(t.target)&&(i.add(t.target),!0)})),a=0,s=o;a<s.length;a++){var u=s[a];if(u.target.textContent!==u.oldValue){var c=Wl(Co(u.target),e.defaultPrivacyLevel,n);c!==jl.HIDDEN&&c!==jl.IGNORE&&r.push({id:tf(u.target),value:Ht(Jl(e,u.target,!1,c))})}}return r}(o.filter((function(t){return"characterData"===t.type&&!l(t.target)})),n,i),d=function(t,e,n){for(var r=[],i=new Map,o=t.filter((function(t){var e=i.get(t.target);return(!e||!e.has(t.attributeName))&&(e?e.add(t.attributeName):i.set(t.target,new Set([t.attributeName])),!0)})),a=new Map,s=0,u=o;s<u.length;s++){var c=u[s];if(c.target.getAttribute(c.attributeName)!==c.oldValue){var l,f=Wl(c.target,e.defaultPrivacyLevel,n),d=bf(c.target,f,c.attributeName,e);if("value"===c.attributeName){var p=ef(e,c.target,f);if(void 0===p)continue;l=p}else l="string"==typeof d?d:null;var v=a.get(c.target);v||(v={id:tf(c.target),attributes:{}},r.push(v),a.set(c.target,v)),v.attributes[c.attributeName]=l}}return r}(o.filter((function(t){return"attributes"===t.type&&!l(t.target)})),n,i);if(!(f.length||d.length||u.length||s.length))return;e({adds:s,removes:u,texts:f,attributes:d})}(r.concat(a.takeRecords()),t,e,n)})),a=new i(u(o.addMutations));try{a.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0})}catch(t){}return{stop:function(){a.disconnect(),o.stop()},flush:function(){o.flush()}}}function If(t,e){ko(t)&&e(t.shadowRoot),To(t,(function(t){return If(t,e)}))}var Af=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n?(!function(){var t=window.visualViewport;return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||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},Rf=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}},Pf=new WeakMap,Nf=1;function Mf(t){return Pf.has(t)||Pf.set(t,Nf++),Pf.get(t)}function Lf(t){var e,n,r,i,o,a,s=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,Of(e,n,r,document)),u=function(t){var e=Q((function(e){var n=zf(e);if(Zl(n)){var r=Uf(e);if(!r)return;var i={id:tf(n),timeOffset:0,x:r.x,y:r.y};t([i],Ef(e)?Cl:Sl)}}),50,{trailing:!1}),n=e.cancel,r=e.throttled,i=ur(document,[Ee,de],r,{capture:!0,passive:!0}).stop;return function(){i(),n()}}(t.mousemoveCb,t.configuration),c=function(t,e){var n=function(n){var r=zf(n);if(Wl(r,e.defaultPrivacyLevel)!==jl.HIDDEN&&Zl(r)){var i,o=tf(r),a=Df[n.type];if(a!==Dl&&a!==Ll){var s=Uf(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=I({id:Mf(n)},Tf(xl,i));t(u)}};return ur(document,Object.keys(Df),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration),l=function(t,e,n){var r=Q((function(r){var i=zf(r);if(i&&Wl(i,e.defaultPrivacyLevel)!==jl.HIDDEN&&Zl(i)){var o=tf(i),a=i===document?{scrollTop:Ao(),scrollLeft:Io()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),100),i=r.cancel,o=r.throttled,a=sr(document,ce,o,{capture:!0,passive:!0}).stop;return function(){a(),i()}}(t.scrollCb,t.configuration,t.elementsScrollPositions),f=function(t){return sc().subscribe(t).unsubscribe}(t.viewportResizeCb,t.configuration),d=Bf(t.inputCb,t.configuration),p=function(t,e){var n=function(n){var r=zf(n);r&&Wl(r,e.defaultPrivacyLevel)!==jl.HIDDEN&&Zl(r)&&t({id:tf(r),type:n.type===Pe?zl:Vl})};return ur(document,[Pe,Ne],n,{capture:!0,passive:!0}).stop}(t.mediaInteractionCb,t.configuration),v=function(t){function e(t,e){t&&Zl(t.ownerNode)&&e(tf(t.ownerNode))}var n=[tr(CSSStyleSheet.prototype,"insertRule",(function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r,(function(e){return t({id:e,adds:[{rule:o,index:a}]})}))})),tr(CSSStyleSheet.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r,(function(e){return t({id:e,removes:[{index:i}]})}))}))];"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule));function r(r){n.push(tr(r.prototype,"insertRule",(function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r.parentStyleSheet,(function(e){var n=Cf(r);n&&(n.push(a||0),t({id:e,adds:[{rule:o,index:n}]}))}))})),tr(r.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=Cf(r);n&&(n.push(i),t({id:e,removes:[{index:n}]}))}))})))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb,t.configuration),h=(i=t.focusCb,t.configuration,ur(window,[Te,Ce],(function(){i({has_focus:document.hasFocus()})})).stop),m=function(t){if(!window.visualViewport)return ot;var e=Q((function(){t(Rf())}),200,{trailing:!1}),n=ur(window.visualViewport,[Ie,ce],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb,t.configuration),g=(o=t.lifeCycle,a=t.frustrationCb,t.configuration,o.subscribe(Ar,(function(t){t.rawRumEvent.type===Ze.ACTION&&t.rawRumEvent.action.type===Qe&&t.rawRumEvent.action.frustration&&t.rawRumEvent.action.frustration.type&&t.rawRumEvent.action.frustration.type.length&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&a({timestamp:t.rawRumEvent.date,type:vl,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return Mf(t)}))}})})).unsubscribe);return{flush:function(){s.flush()},stop:function(){s.stop(),u(),c(),l(),f(),d(),p(),v(),h(),m(),g()}}}var Df=Xu(Xu(Xu(Xu(Xu(Xu(Xu(Xu(Xu({},be,Al),ke,Rl),ie,Pl),Oe,Nl),oe,Ml),Te,Ll),Ce,Dl),le,Ul),fe,Bl);function Uf(t){var e=Ef(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=Af(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function Bf(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=ur(n,o?[Ae]:[Re,Ae],(function(t){var e=zf(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=ot;else{var u=[er(HTMLInputElement.prototype,"value",c),er(HTMLInputElement.prototype,"checked",c),er(HTMLSelectElement.prototype,"value",c),er(HTMLTextAreaElement.prototype,"value",c),er(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function c(t){var n=Wl(t,e.defaultPrivacyLevel);if(n!==jl.HIDDEN){var r,i=t.type;if("radio"===i||"checkbox"===i){if(Kl(e,t,n))return;r={isChecked:t.checked}}else{var o=ef(e,t,n);if(void 0===o)return;r={text:o}}l(t,r);var a,s,u=t.name;"radio"===i&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'+j(u)+'"]'),s=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(e,n){if(Zl(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(I({id:tf(e)},n)))}}}function zf(t){return!0===t.composed&&ko(t.target)?t.composedPath()[0]:t.target}function Vf(t){var e=t.emit;if(!e)throw new Error("emit function is required");var n,r=(n=new WeakMap,{set:function(t,e){(t!==document||document.scrollingElement)&&n.set(t===document?document.scrollingElement:t,e)},get:function(t){return n.get(t)},has:function(t){return n.has(t)}}),i=function(t){e(Tf(wl,t))},o=function(t){e(Tf(Tl,t))},a=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){if(!i.has(e)){var a=Of(n,t,o,e),s=a.flush,u=a.stop,c=Bf(r,t,e);i.set(e,{flush:s,stop:function(){u(),c()}})}},removeShadowRoot:function(t){var e=i.get(t);e&&(e.stop(),i.delete(t))},stop:function(){i.forEach((function(t){t.stop()}))},flush:function(){i.forEach((function(t){t.flush()}))}};return o}(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=gt()),void 0===i&&(i={status:vf,elementsScrollPositions:r,shadowRootsController:a});var o=uc(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:ll,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:fl,timestamp:n}),e({data:{node:gf(document,t.configuration,i),initialOffset:{left:Io(),top:Ao()}},type:ul,timestamp:n}),window.visualViewport&&e({data:Rf(),type:pl,timestamp:n})};s();var u=Lf({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(Tf(Ol,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(Tf(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(Tf(kl,t))},styleSheetCb:function(t){e(Tf(Il,t))},viewportResizeCb:function(t){e(Tf(El,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:fl,timestamp:gt()})},visualViewportResizeCb:function(t){e({data:t,type:pl,timestamp:gt()})},shadowRootsController:a}),c=u.stop,l=u.flush;function f(){a.flush(),l()}return{stop:function(){a.stop(),c()},takeSubsequentFullSnapshot:function(t){f(),s(t,{shadowRootsController:a,status:hf,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function jf(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),Hf(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function Hf(t,e,n){void 0===n&&(n=""),O(F(t),(function(t){var r=t[1],i=t[0];"object"===Qu(r)&&null!==r?Hf(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var $f;function Ff(t){return qf(t).segments_count}function qf(t){var e;return $f||($f=new Map),$f.has(t)?e=$f.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},$f.set(t,e),$f.size>10&&Wf()),e}function Wf(){if($f)if($f.keys)$f.delete($f.keys().next().value);else{var t=!0;$f.forEach((function(e,n){t&&($f.delete(n),t=!1)}))}}function Gf(t){var e=t.context,n=t.creationReason,r=t.encoder,i=0,o=e.view.id,a=I({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:Ff(o),source:"browser"},e);return function(t){qf(t).segments_count+=1}(o),{addRecord:function(t,e){a.start=Math.min(a.start,t.timestamp),a.end=Math.max(a.end,t.timestamp),a.records_count+=1,a.has_full_snapshot||(a.has_full_snapshot=t.type===ul),function(t){qf(t).records_count+=1}(a.view.id);var n=r.isEmpty()?'{"records":[':",";r.write(n+JSON.stringify(t),(function(t){e(i+=t)}))},flush:function(t){if(r.isEmpty())throw new Error("Empty segment flushed");r.write("],"+JSON.stringify(a).slice(1)+"\n"),r.finish((function(e){!function(t,e){qf(t).segments_total_raw_size+=e}(a.view.id,e.rawBytesCount),t(a,e)}))}}}var Qf=6e4;function Kf(t,e,n,r,i,o){return function(t,e,n,r,i){var o={status:Xf.WaitingForInitialRecord,nextSegmentCreationReason:"init",isLocked:i},a=t.subscribe(br,(function(){f("view_change")})),s=a.unsubscribe,u=t.subscribe(Cr,(function(t){f(t.reason)})),c=u.unsubscribe,l=["view_change","buffer_checkout"];function f(t,e){var r=o.isLocked;if(o.status===Xf.SegmentPending){if(r&&l.includes(t))o.segment.flush((function(){e&&e()}));else{if(r)return;o.segment.flush((function(e,r){var i=jf(r.output,e,r.rawBytesCount);So(t)?n.sendOnExit(i):n.send(i)}))}m(o.expirationTimeoutId)}o="stop"!==t?{status:Xf.WaitingForInitialRecord,nextSegmentCreationReason:t,isLocked:o.isLocked}:{status:Xf.Stopped,isLocked:!1}}return{addRecord:function(t){if(o.status!==Xf.Stopped){if(o.status===Xf.WaitingForInitialRecord){var n=e();if(!n)return;o={status:Xf.SegmentPending,segment:Gf({encoder:r,context:n,creationReason:o.nextSegmentCreationReason}),isLocked:o.isLocked,expirationTimeoutId:h((function(){f("segment_duration_limit")}),5e3)}}o.segment.addRecord(t,(function(t){t>Qf&&f("segment_bytes_limit")}))}},unlockSegment:function(){o.isLocked=!1},flushBufferSegment:function(t){f("buffer_checkout",t)},isLocked:function(){return o.isLocked},stop:function(){f("stop"),s(),c()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(!r||!i)return;return{sdk:{name:t.sdkName,version:t.sdkVersion},env:t.env||"",service:i.service||t.service||"browser",version:i.version||t.version||"",app:{id:t.applicationId},session:{id:r.id},view:{id:i.id}}}(e,n,r)}),i,o,arguments.length>6&&void 0!==arguments[6]&&arguments[6])}var Xf={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var Jf=0,Yf=1,Zf=2,td=3;var ed,nd,rd,id,od=function(t,e){if(ma()&&!ha(va)||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:ot,stop:ot,takeSubsequentFullSnapshot:ot,getReplayStats:function(){},onRumStart:ot,isRecording:function(){return!1}};var n={status:Jf},r=function(){n={status:Yf}},i=function(){n={status:Jf}},o=function(){};return{start:function(t){r(t)},stop:function(){i()},onRumStart:function(a,s,u,c,l){var f;a.subscribe(Tr,(function(){n.status!==Zf&&n.status!==td||(i(),n={status:Yf})})),a.subscribe(Cr,(function(t){t.reason===wo.UNLOADING&&i()})),a.subscribe(Er,(function(){n.status===Yf&&r()})),r=function(r){var o=u.findTrackedSession();o&&o.sessionReplayAllowed?n.status!==Zf&&n.status!==td&&(n={status:Zf},Oo("interactive",(function(){if(n.status===Zf){var r=(f||(l||(l=Fu(s,"Session Replay",(function(){i()}),e)),l&&(f=Uu(l,Lu))),f);if(r){var o=t(a,s,u,c,r);n={status:td,stopRecording:o.stop,takeSubsequentFullSnapshot:o.takeSubsequentFullSnapshot}}else n={status:Jf}}}))):n={status:Yf}},i=function(){n.status!==Jf&&(n.status===td&&n.stopRecording(),n={status:Jf})},o=function(){n.takeSubsequentFullSnapshot()},n.status===Yf&&r()},takeSubsequentFullSnapshot:function(){o()},isRecording:function(){return qu()===Hu&&n.status===td},getReplayStats:function(t){return qu()===Hu?function(t){return $f&&$f.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a,s,u,c,l=[],f=o||Jo(e.sessionReplayEndPoint,Qf,e.retryMaxSize,(function(e){t.notify(Pr,{error:e}),Ui("Error reported to customer",{"error.message":e.message})}));if(ma()){var d=(u=r,c=pa(),{addRecord:function(t){var e=u.findView();c.send("session_replay",t,e.id)}});s=Vf({emit:a=d.addRecord,configuration:e,lifeCycle:t})}else{var p=n.findTrackedSession(),v=p&&p.errorSessionReplayAllowed&&!p.sessionHasError,h=Kf(t,e,n,r,f,i,v);a=h.addRecord;var m=h.flushBufferSegment,g=h.unlockSegment;l.push(h.stop),v&&n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,n=t.newState;!e.hasError&&n.hasError&&(v=!1,g())}));var y=null;s=Vf({emit:function(t){if(a(t),v)if(t.type===ul)y=t;else if(t.type===cl){t.timestamp-y.timestamp>6e4&&m((function(){Wf(),_()}))}},configuration:e,lifeCycle:t})}l.push(s.stop);var _=s.takeSubsequentFullSnapshot,b=s.flushMutations,w=t.subscribe(xr,(function(){b(),a({timestamp:gt(),type:dl})}));l.push(w.unsubscribe);var S=t.subscribe(br,(function(t){_(t.startClocks.timeStamp)}));return l.push(S.unsubscribe),{stop:function(){l.forEach((function(t){t()}))},takeSubsequentFullSnapshot:_}})),ad=function(t,e,n){void 0===n&&(n={});var r=Na(Aa),i=xa("global",{customerDataTracker:r.getOrCreateTracker(Ea)}),a=xa("user",{customerDataTracker:r.getOrCreateTracker(ka),propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}});function l(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(i,a,e)}var f,d,p=sl(n,l,(function(o,s,u){o.storeContextsToLocal&&(Ia(o,i,"rum",Ea),Ia(o,a,"rum",ka)),r.setCompressionStatus(s?Ra:Pa);var c=t(o,e,r,l,u,s&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(s,t)}:La);return e.onRumStart(c.lifeCycle,o,c.session,c.viewContexts,s),p=function(t,e){return I({init:function(t){Ba("DATAFLUX_RUM",t)},initConfiguration:t.getInitConfiguration(),getRemoteConfiguration:function(e){t.getRemoteConfiguration(e)}},e)}(p,c),c})),v=u((function(t){var e="object"===Qu(t)?t:{name:t};p.startView(e),e.context&&r.getOrCreateTracker(Ta).updateCustomerData(e.context),zi({feature:"start-view"})})),h=(f={init:u((function(t){p.init(t)})),setViewName:u((function(t){p.setViewName(t),zi({feature:"set-view-name"})})),setViewContext:u((function(t){p.setViewContext(t),zi({feature:"set-view-context"})})),setViewContextProperty:u((function(t,e){p.setViewContextProperty(t,e),zi({feature:"set-view-context-property"})})),getViewContext:u((function(){return zi({feature:"set-view-context-property"}),p.getViewContext()})),addRumGlobalContext:u((function(t,e){i.setContextProperty(t,e),zi({feature:"set-global-context"})})),setGlobalContextProperty:u((function(t,e){i.setContextProperty(t,e),zi({feature:"set-global-context"})})),removeRumGlobalContext:u((function(t){return i.removeContextProperty(t)})),removeGlobalContextProperty:u((function(t){return i.removeContextProperty(t)})),getRumGlobalContext:u((function(){return i.getContext()})),getGlobalContext:u((function(){return i.getContext()})),setRumGlobalContext:u((function(t){i.setContext(t),zi({feature:"set-global-context"})})),setGlobalContext:u((function(t){i.setContext(t),zi({feature:"set-global-context"})})),clearGlobalContext:u((function(){return i.clearContext()})),getInitConfiguration:u((function(){return rt(p.initConfiguration)})),getRemoteConfiguration:u((function(t){return p.getRemoteConfiguration(t)})),getInternalContext:u((function(t){return p.getInternalContext(t)})),addDebugSession:u((function(t){})),clearDebugSession:u((function(){})),getDebugSession:u((function(){})),addResource:u((function(t){var e=Kn();c((function(){p.addResource({context:Bn(t),startClocks:mt(),type:Ge,handlingStack:e}),zi({feature:"add-resource"})}))})),addTypeAction:u((function(t,e,n){var r=Kn();c((function(){var i=Bn(e);p.addAction({name:Bn(t),context:Bn(n),startClocks:mt(),type:"string"===et(i)?i:Ke,handlingStack:r}),zi({feature:"add-type-action"})}))})),addAction:u((function(t,e){var n=Kn();c((function(){p.addAction({name:Bn(t),context:Bn(e),startClocks:mt(),type:Ke,handlingStack:n}),zi({feature:"add-action"})}))})),addError:u((function(t,e){var n=Kn();c((function(){p.addError({error:t,handlingStack:n,context:Bn(e),startClocks:mt()}),zi({feature:"add-error"})}))})),addTiming:u((function(t,e){p.addTiming(Bn(t),e)})),setUser:u((function(t){(function(t){var e="object"===et(t);return e||o.error("Unsupported user:",t),e})(t)&&a.setContext(Da(t)),zi({feature:"set-user"})})),getUser:u((function(){return a.getContext()})),setUserProperty:u((function(t,e){var n={};n[t]=e;var r=Da(n)[t];a.setContextProperty(t,r),zi({feature:"set-user"})})),removeUserProperty:u((function(t){return a.removeContextProperty(t)})),removeUser:u((function(){return a.clearContext()})),clearUser:u((function(){return a.clearContext()})),startView:v,stopSession:u((function(){p.stopSession(),zi({feature:"stop-session"})})),setForcedSession:u((function(){p.setForcedSession(),zi({feature:"set-forced-session"})})),startSessionReplayRecording:u((function(t){e.start(t),zi({feature:"start-session-replay-recording",force:t&&t.force})})),stopSessionReplayRecording:u(e.stop),takeSubsequentFullSnapshot:u(e.takeSubsequentFullSnapshot)},d=I({onReady:function(t){t()}},f),Object.defineProperty(d,"_setDebug",{get:function(){return s},enumerable:!1}),d);return h}((function(t,e,n,r,i,o){var a=[],s=new Nr,c=function(t){var e=Di(Ni,t);return e}(t),l=function(t){s.notify(Pr,{error:t})},f=new rr((function(t){var e=ur(window,[pe,me],(function(e){e.type===pe&&"hidden"===document.visibilityState?t.notify({reason:wo.HIDDEN}):e.type===me&&t.notify({reason:wo.FROZEN})}),{capture:!0}),n=sr(window,re,(function(){t.notify({reason:wo.UNLOADING})}));return function(){e.stop(),n.stop()}})),d=f.subscribe((function(t){s.notify(Cr,t)}));a.push((function(){d.unsubscribe()}));var p=ma()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",isErrorSession:!1,sessionErrorTimestamp:0,sessionReplayAllowed:!!ha(va),errorSessionReplayAllowed:!1,sessionHasError:!1,isSessionForced:!1};return{findTrackedSession:function(){return t},expire:ot,expireObservable:new rr,setErrorForSession:function(){t.sessionErrorTimestamp=gt(),t.sessionHasError=!0,t.isErrorSession=!0,t.errorSessionReplayAllowed=!0},setForcedSession:ot}}():Ka(t,s);if(ma())!function(t){var e=pa();t.subscribe(Rr,(function(t){var n=ua(t).rowData;e.send("rum",n)}))}(s);else{var v=Gu(t,s,c.observable,l,f,p.expireObservable,o);a.push((function(){v.stop()}))}var h,m=Ya(t),g=(h=Za(),new rr((function(t){if(h){var e=new h(u((function(){return t.notify()})));try{e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0})}catch(t){}return function(){return e.disconnect()}}}))),y=ts(location),_=Ru(),b=function(t,e,n,r,i,o,a,s,u,c){var l=function(t){var e=Yt({expireDelay:lc});return t.subscribe(_r,(function(t){e.add(function(t){return{service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(kr,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(Sr,(function(t){var n=e.find(t.startClocks.relative);n&&t.name&&(n.name=t.name),n&&t.context&&(n.context=t.context)})),t.subscribe(Er,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),f=function(t,e,n){var r,i=Yt({expireDelay:cc});t.subscribe(_r,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e})),t.subscribe(kr,(function(t){i.closeActive(t.endClocks.relative)}));var o=e.subscribe((function(t){var e=i.find();if(e){var n=ht();i.closeActive(n),i.add(a({url:t.newLocation.href,location:t.newLocation,referrer:e.referrer},!0),n)}}));function a(t){var e=t.location.pathname,n=e,r=t.location.hash;return r&&0===r.indexOf("#/")&&(n="/"+Wt(r)),{url:t.url,referrer:t.referrer,host:t.location.host,path:n,pathGroup:J(n),urlQuery:Z(t.location.href),pathname:e}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,a,n),d=function(t,e,n,r){t.subscribe(yr,(function(e){t.notify(Ar,Nu(e,r))}));var i={findActionId:ot,findAllActionId:ot};return n.trackUserInteractions&&(i=Su(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(Ar,R({savedCommonContext:n},Nu(e,r)))}}}(t,s,e,o),p=d.actionContexts,v=d.addAction,h=(m=uc(),{get:function(){return{viewport:m}},stop:sc().subscribe((function(t){m=t})).unsubscribe});var m;return ac(e,t,r,i,l,f,p,h,u,c),{viewContexts:l,urlContexts:f,pageStateHistory:o,addAction:v,actionContexts:p,stop:function(){h.stop(),o.stop(),f.stop(),l.stop()}}}(s,t,location,p,m,_,y,g,r,l),w=b.viewContexts,S=b.urlContexts,x=b.actionContexts,k=b.stop,E=b.addAction;a.push(k),Mi.drain(),c.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:p.findTrackedSession()&&p.findTrackedSession().id},view:{id:w.findView()&&w.findView().id},action:{id:x.findActionId(),ids:x.findAllActionId()}}}));var T=Mc(s,t,location,g,y,_,e,i),C=T.addTiming,O=T.startView,I=T.setViewName,A=T.setViewContext,P=T.setViewContextProperty,N=T.getViewContext,M=T.stop;a.push(M);var L=el(s,t,_),D=L.addResource;if(a.push(L.stop),PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(Os)){var U=function(t,e){var n=Ns(e,{type:Os,buffered:!0}).subscribe((function(e){for(var n=0,r=e;n<r.length;n++){var i=r[n],o=wt(i.startTime),a={date:o.timeStamp,longTask:{id:X(),entryType:en,duration:dt(i.duration),blockingDuration:dt(i.blockingDuration),firstUiEventTimestamp:dt(i.firstUIEventTimestamp),renderStart:dt(i.renderStart),styleAndLayoutStart:dt(i.styleAndLayoutStart),startTime:dt(i.startTime),scripts:i.scripts.map((function(t){return{duration:dt(t.duration),pause_duration:dt(t.pauseDuration),forced_style_and_layout_duration:dt(t.forcedStyleAndLayoutDuration),start_time:dt(t.startTime),execution_start:dt(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}}))},type:Ze.LONG_TASK};t.notify(Ar,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i}})}}));return{stop:function(){n.unsubscribe()}}}(s,t);a.push(U.stop)}else!function(t,e){var n=Ns(e,{type:Cs,buffered:!0}).subscribe((function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.entryType!==Cs)break;var i=wt(r.startTime),o={date:i.timeStamp,longTask:{id:X(),entryType:tn,duration:dt(r.duration)},type:Ze.LONG_TASK};t.notify(Ar,{rawRumEvent:o,startTime:i.relative,domainContext:{performanceEntry:r}})}}))}(s,t);var B=fc(s,0,p,_).addError;Kc(s,t,p);var z=function(t,e,n,r,i){return{get:function(o){var a=n.findView(o),s=i.findUrl(o),u=e.findTrackedSession(o);if(u&&a&&s){var c=r.findActionId(o),l=r.findAllActionId(o);return{application:{id:t},session:{id:u.id},userAction:c?{id:c,ids:l}:void 0,view:{id:a.id,name:a.name||s.path,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,pathname:s.pathname,urlQuery:s.urlQuery}}}}}}(t.applicationId,p,w,x,S);return{addResource:D,addAction:E,addError:B,addTiming:C,configuration:t,startView:O,setViewContext:A,setViewContextProperty:P,getViewContext:N,setViewName:I,lifeCycle:s,viewContexts:w,session:p,setForcedSession:function(){p.setForcedSession()},stopSession:function(){p.expire()},getInternalContext:z.get,stop:function(){a.forEach((function(t){t()}))}}}),od,{startDeflateWorker:Fu,createDeflateEncoder:Uu});ed=p(),rd=ad,id=ed[nd="DATAFLUX_RUM"],ed[nd]=rd,id&&id.q&&O(id.q,(function(t){f(t,"onReady callback threw an error:")()}))}();
|
|
1
|
+
!function(){"use strict";var t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},e=console,n={};Object.keys(t).forEach((function(t){n[t]=e[t]||it}));var r,o="GUANCE Browser SDK:",i={debug:n.debug.bind(e,o),log:n.log.bind(e,o),info:n.info.bind(e,o),warn:n.warn.bind(e,o),error:n.error.bind(e,o)},a=!1;function s(t){a=t}function u(t){return function(){return c(t,this,arguments)}}function c(t,e,n){try{return t.apply(e,n)}catch(t){!function(t){if(l(t),r)try{r(t)}catch(t){l(t)}}(t)}}function l(){var t=[].slice.call(arguments);a&&i.error.apply(null,["[MONITOR]"].concat(t))}function d(t,e){return function(){var n=[].slice.call(arguments);try{return t.apply(this,n)}catch(t){i.error(e,t)}}}function f(t){return f="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},f(t)}function p(){if("object"===("undefined"==typeof globalThis?"undefined":f(globalThis)))return globalThis;Object.defineProperty(Object.prototype,"_gc_temp_",{get:function(){return this},configurable:!0});var t=_gc_temp_;return delete Object.prototype._gc_temp_,"object"!==f(t)&&(t="object"===("undefined"==typeof self?"undefined":f(self))?self:"object"===("undefined"==typeof window?"undefined":f(window))?window:{}),t}function v(t,e){var n,r=p();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}function h(t,e){return v(p(),"setTimeout")(u(t),e)}function g(t){v(p(),"clearTimeout")(t)}function m(t,e){return v(p(),"setInterval")(u(t),e)}function y(t){v(p(),"clearInterval")(t)}function b(t){return b="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},b(t)}var _=Array.prototype,w=(Function.prototype,Object.prototype),S=_.slice,C=w.toString,x=w.hasOwnProperty,k=_.forEach,T=Array.isArray,E=!1,A=function(t,e,n){if(null===t)return!1;if(k&&t.forEach===k)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,o=t.length;r<o;r++)if(r in t&&e.call(n,t[r],r,t)===E)return!1}else for(var i in t)if(x.call(t,i)&&e.call(n,t[i],i,t)===E)return!1};function I(t){return A(S.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function R(t){return I({},t)}var O=function(t){return A(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},M=function(t){return A(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(H(e[n])&&H(t[n])?O(t[n],e[n]):t[n]=e[n])})),t},D=T||function(t){return"[object Array]"===C.call(t)},P=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},L=function(t){return t?t.toArray?t.toArray():D(t)?S.call(t):(e=t)&&x.call(e,"callee")?S.call(t):N(t):[];var e},N=function(t){var e=[];return null===t||A(t,(function(t){e[e.length]=t})),e},B=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],o=0;o<t.length;o++)if(x.call(t,o)){var i=t[o];e.call(n,i,o,t)&&r.push(i)}return r},F=function(t,e,n){if(t.map)return t.map(e);for(var r=[],o=0;o<t.length;o++)if(x.call(t,o)){var i=t[o];r.push(e.call(n,i,o,t))}return r},z=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,o=0;o<t.length;o++)if(x.call(t,o)){var i=t[o];if(e.call(n,i,o,t)){r=!0;break}}return r},U=function(t,e,n){return void 0===n&&(n=!1),z(t,(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?Wt(e,t):t===e}catch(t){i.error(t)}return!1}))},j=function(t){return t+="",window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}))},H=function(t){return null!==t&&"[object Object]"===C.call(t)},V=function(t){if(H(t)){for(var e in t)if(x.call(t,e))return!1;return!0}return!1},W=function(t){var e=[];return A(t,(function(t,n){e.push([n,t])})),e},q=function(t){return"[object String]"===C.call(t)},$=function(t){return"[object Boolean]"===C.call(t)},G=function(t){return"[object Number]"===C.call(t)&&/[\d\.]+/.test(String(t))},Q=(Date.now,function(t,e,n){var r,o,i=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1,u=this;return{throttled:function(){s?r=arguments:(i?t.apply(u,arguments):r=arguments,s=!0,o=h((function(){a&&r&&t.apply(u,r),s=!1,r=void 0}),e))},cancel:function(){g(o),s=!1,r=void 0}}}),K=function(t){if("function"==typeof btoa)return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x"+e)})));var e,n,r,o,i,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",l=[];if(!(t=String(t)))return t;t=function(t){var e,n,r,o,i="";for(e=n=0,r=(t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,o=0;o<r;o++){var a=t.charCodeAt(o),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(n>e&&(i+=t.substring(e,n)),i+=s,e=n=o+1)}return n>e&&(i+=t.substring(e,t.length)),i}(t);do{e=(i=t.charCodeAt(s++)<<16|t.charCodeAt(s++)<<8|t.charCodeAt(s++))>>18&63,n=i>>12&63,r=i>>6&63,o=63&i,l[u++]=a.charAt(e)+a.charAt(n)+a.charAt(r)+a.charAt(o)}while(s<t.length);switch(c=l.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c};function X(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,X)}function J(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var Y=function(t){var e=function(t){this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Path:8,URL:0,QueryString:9,Fragment:10},this._values={},this._regex=null,this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/,void 0!==t&&this._parse(t)};return e.prototype.setUrl=function(t){this._parse(t)},e.prototype._initValues=function(){for(var t in this._fields)this._values[t]=""},e.prototype.addQueryString=function(t){if("object"!==b(t))return!1;var e=this._values.QueryString||"";for(var n in t)e=new RegExp(n+"[^&]+").test(e)?e.replace(new RegExp(n+"[^&]+"),n+"="+t[n]):"&"===e.slice(-1)?e+n+"="+t[n]:""===e?n+"="+t[n]:e+"&"+n+"="+t[n];this._values.QueryString=e},e.prototype.getParse=function(){return this._values},e.prototype.getUrl=function(){var t="";return t+=this._values.Origin,t+=this._values.Path,t+=this._values.QueryString?"?"+this._values.QueryString:""},e.prototype._parse=function(t){this._initValues();var e=this._regex.exec(t);if(!e)throw"DPURLParser::_parse -> Invalid URL";for(var n in this._fields)void 0!==e[this._fields[n]]&&(this._values[n]=e[this._fields[n]]);this._values.Path=this._values.Path||"/",this._values.Hostname=this._values.Host.replace(/:\d+$/,""),this._values.Origin=this._values.Protocol+"://"+this._values.Hostname+(this._values.Port?":"+this._values.Port:"")},new e(t)};var Z=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=tt("?"+n)),e},tt=function(t){for(var e=function(t){return decodeURIComponent(t)},n={},r=(t=t||"").substring(1).split("&"),o=0;o<r.length;o++){var i=r[o].indexOf("=");if(-1!==i){var a=r[o].substring(0,i),s=r[o].substring(i+1);a=e(a),s=e(s),n[a]=s}}return n};function et(t){return null===t?"null":Array.isArray(t)?"array":b(t)}function nt(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!==b(e)||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var o=Array.isArray(t)?t:[],i=0;i<e.length;++i)o[i]=nt(o[i],e[i],n);return o}o="object"===et(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(o[a]=nt(o[a],e[a],n));return o}}function rt(t){return nt(void 0,t)}function ot(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):0===t?void 0:t}function it(){}var at,st=1e3,ut=6e4;function ct(t){return 0!==t&&100*Math.random()<=t}function lt(t,e){return+t.toFixed(e)}function dt(t){return"number"!=typeof t?t:lt(1e6*t,0)}function ft(t){return G(t)?lt(1e6*t,0):t}function pt(t){return t-xt()}function vt(t){return Math.round(xt()+t)}function ht(){return performance.now()}function gt(){return{relative:ht(),timeStamp:mt()}}function mt(){return yt()}function yt(){return(new Date).getTime()}function bt(t,e){return e-t}function _t(){return{relative:0,timeStamp:xt()}}function wt(t){return{relative:t,timeStamp:Ct(t)}}function St(t,e){return t+e}function Ct(t){var e=yt()-performance.now();return e>xt()?Math.round(e+t):vt(t)}function xt(){return void 0===at&&(at=performance.timing.navigationStart),at}var kt=/([\w-]+)\s*=\s*([^;]+)/g;function Tt(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&H(t)&&r in t&&x.call(t,r)))return;t=t[r]}return t}function Et(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function At(t){var e=et(t);return"string"===e||"function"===e||t instanceof RegExp}function It(t,e){return-1!==t.indexOf(e)}function Rt(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function Ot(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach((function(t){e.push(t)}));else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function Mt(t){return G(t)&&t>=0&&t<=100}var Dt,Pt=0,Lt=1,Nt=2,Bt=3;function Ft(){return Ht(Dt,Dt=function(t){var e,n;void 0===t&&(t=window||{});var r=(null===(e=t)||void 0===e||null===(e=e.navigator)||void 0===e?void 0:e.userAgent)||"";if(t.chrome||/HeadlessChrome/.test(r))return Lt;if(0===(null===(n=t.navigator.vendor)||void 0===n?void 0:n.indexOf("Apple"))||/safari/i.test(r)&&!/chrome|android/i.test(r))return Nt;if(t.document.documentMode)return Pt;return Bt}())}function zt(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Ut(t){var e={};return A(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=jt(t)})),e}function jt(t){return D(t)?F(t,(function(t){return jt(t)})):"object"===b(t)&&null!==t?Ut(t):t}function Ht(t,e){return null!=t?t:e}function Vt(t,e){return z((r=[],null===(n=t)||A(n,(function(t,e){r[r.length]=e})),r),(function(n){return t[n]===e}));var n,r}function Wt(t,e){return t.slice(0,e.length)===e}function qt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function $t(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Gt(t){return G(t)&&t<0?void 0:t}function Qt(){var t=[];return{add:function(e){t.push(e)>500&&t.splice(0,1)},remove:function(e){qt(t,e)},drain:function(e){t.forEach((function(t){t(e)})),t.length=0}}}var Kt=1/0,Xt=null,Jt=new Set;function Yt(t){var e=t.expireDelay,n=t.maxEntries,r=[];function o(){for(var t=ht()-e;r.length>0&&r[r.length-1].endTime<t;)r.pop()}return null===Xt&&(Xt=m((function(){return o()}),6e4)),Jt.add(o),{add:function(t,e){var o={value:t,startTime:e,endTime:Kt,remove:function(){qt(r,o)},close:function(t){o.endTime=t}};return n&&r.length>=n&&r.pop(),r.unshift(o),o},find:function(t,e){void 0===t&&(t=Kt),void 0===e&&(e={returnInactive:!1});for(var n=0,o=r;n<o.length;n++){var i=o[n];if(i.startTime<=t){if(e.returnInactive||t<=i.endTime)return i.value;break}}},closeActive:function(t){var e=r[0];e&&e.endTime===Kt&&e.close(t)},findAll:function(t,e){void 0===t&&(t=Kt),void 0===e&&(e=0);var n=St(t,e);return r.filter((function(e){return e.startTime<=n&&t<=e.endTime})).map((function(t){return t.value}))},reset:function(){r=[]},stop:function(){Jt.delete(o),0===Jt.size&&Xt&&(y(Xt),Xt=null)}}}function Zt(){return"undefined"!=typeof window?window:void 0}function te(){var t=Zt();return t&&void 0!==t.navigator?t.navigator:{}}function ee(){return te().userAgent||""}function ne(t,e){return t||e||{}}var re={get navigator(){return te()},infoMap:{engine:["WebKit","Trident","Gecko","Presto"],browser:["Safari","Chrome","Edge","IE","IE 11","IE 10","IE 9","IE 8","IE 7","Firefox","Firefox Focus","Chromium","Opera","Vivaldi","Yandex","Arora","Lunascape","QupZilla","Coc Coc","Kindle","Iceweasel","Konqueror","Iceape","SeaMonkey","Epiphany","360","360SE","360EE","UC","QQBrowser","QQ","Baidu","Maxthon","Sogou","LBBROWSER","2345Explorer","TheWorld","XiaoMi","Quark","Qiyu","Wechat","WechatWork","Taobao","Alipay","Weibo","Douban","Suning","iQiYi"],os:["Windows","Linux","Mac OS","Android","HarmonyOS","Ubuntu","FreeBSD","Debian","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"],device:["Mobile","Tablet","iPad"]}},oe={getMatchMap:u((function(t){return{Trident:t.indexOf("Trident")>-1||t.indexOf("NET CLR")>-1,Presto:t.indexOf("Presto")>-1,WebKit:t.indexOf("AppleWebKit")>-1,Gecko:t.indexOf("Gecko/")>-1,Safari:t.indexOf("Safari")>-1,Chrome:t.indexOf("Chrome")>-1||t.indexOf("CriOS")>-1,IE:t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1,Edge:t.indexOf("Edge")>-1||t.indexOf("Edg")>-1,Firefox:t.indexOf("Firefox")>-1||t.indexOf("FxiOS")>-1,"Firefox Focus":t.indexOf("Focus")>-1,Chromium:t.indexOf("Chromium")>-1,Opera:t.indexOf("Opera")>-1||t.indexOf("OPR")>-1,Vivaldi:t.indexOf("Vivaldi")>-1,Yandex:t.indexOf("YaBrowser")>-1,Arora:t.indexOf("Arora")>-1,Lunascape:t.indexOf("Lunascape")>-1,QupZilla:t.indexOf("QupZilla")>-1,"Coc Coc":t.indexOf("coc_coc_browser")>-1,Kindle:t.indexOf("Kindle")>-1||t.indexOf("Silk/")>-1,Iceweasel:t.indexOf("Iceweasel")>-1,Konqueror:t.indexOf("Konqueror")>-1,Iceape:t.indexOf("Iceape")>-1,SeaMonkey:t.indexOf("SeaMonkey")>-1,Epiphany:t.indexOf("Epiphany")>-1,360:t.indexOf("QihooBrowser")>-1||t.indexOf("QHBrowser")>-1,"360EE":t.indexOf("360EE")>-1,"360SE":t.indexOf("360SE")>-1,UC:t.indexOf("UC")>-1||t.indexOf(" UBrowser")>-1,QQBrowser:t.indexOf("QQBrowser")>-1,QQ:t.indexOf("QQ/")>-1,Baidu:t.indexOf("Baidu")>-1||t.indexOf("BIDUBrowser")>-1,Maxthon:t.indexOf("Maxthon")>-1,Sogou:t.indexOf("MetaSr")>-1||t.indexOf("Sogou")>-1,LBBROWSER:t.indexOf("LBBROWSER")>-1,"2345Explorer":t.indexOf("2345Explorer")>-1,TheWorld:t.indexOf("TheWorld")>-1,XiaoMi:t.indexOf("MiuiBrowser")>-1,Quark:t.indexOf("Quark")>-1,Qiyu:t.indexOf("Qiyu")>-1,Wechat:t.indexOf("MicroMessenger")>-1,Taobao:t.indexOf("AliApp(TB")>-1,Alipay:t.indexOf("AliApp(AP")>-1,Weibo:t.indexOf("Weibo")>-1,Douban:t.indexOf("com.douban.frodo")>-1,Suning:t.indexOf("SNEBUY-APP")>-1,iQiYi:t.indexOf("IqiyiApp")>-1,Windows:t.indexOf("Windows")>-1,Linux:t.indexOf("Linux")>-1||t.indexOf("X11")>-1,"Mac OS":t.indexOf("Macintosh")>-1,Android:t.indexOf("Android")>-1||t.indexOf("Adr")>-1,HarmonyOS:t.indexOf("HarmonyOS")>-1||t.indexOf("OpenHarmony")>-1||t.indexOf("HMOS")>-1,Ubuntu:t.indexOf("Ubuntu")>-1,FreeBSD:t.indexOf("FreeBSD")>-1,Debian:t.indexOf("Debian")>-1,"Windows Phone":t.indexOf("IEMobile")>-1||t.indexOf("Windows Phone")>-1,BlackBerry:t.indexOf("BlackBerry")>-1||t.indexOf("RIM")>-1,MeeGo:t.indexOf("MeeGo")>-1,Symbian:t.indexOf("Symbian")>-1,iOS:t.indexOf("like Mac OS X")>-1,"Chrome OS":t.indexOf("CrOS")>-1,WebOS:t.indexOf("hpwOS")>-1,Mobile:t.indexOf("Mobi")>-1||t.indexOf("iPh")>-1||t.indexOf("480")>-1,Tablet:t.indexOf("Tablet")>-1||t.indexOf("Nexus 7")>-1,iPad:t.indexOf("iPad")>-1}})),matchInfoMap:u((function(t){var e=ne(t,this),n=ee(),r=oe.getMatchMap(n);for(var o in re.infoMap)for(var i=0;i<re.infoMap[o].length;i++){var a=re.infoMap[o][i];r[a]&&(e[o]=a)}})),getOS:u((function(t){var e=ne(t,this);return e.os="",oe.matchInfoMap(e),e.os||"Unknown"})),getOSVersion:u((function(t){var e=ne(t,this),n=ee();e.osVersion="",e.osMajor="";var r={Windows:function(){var t=n.replace(/^.*Windows NT ([\d.]+);.*$/,"$1");return{6.4:"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP",5.1:"XP","5.0":"2000"}[t]||t},Android:function(){return n.replace(/^.*Android ([\d.]+);.*$/,"$1")},HarmonyOS:function(){return n.replace(/^.*(?:HarmonyOS|OpenHarmony)[\/\s]([\d.]+).*$/,"$1").replace(/^.*HMOS[\s\/]([\d.]+).*$/,"$1")},iOS:function(){return n.replace(/^.*OS ([\d_]+) like.*$/,"$1").replace(/_/g,".")},Debian:function(){return n.replace(/^.*Debian\/([\d.]+).*$/,"$1")},"Windows Phone":function(){return n.replace(/^.*Windows Phone( OS)? ([\d.]+);.*$/,"$2")},"Mac OS":function(){return n.replace(/^.*Mac OS X ([\d_]+).*$/,"$1").replace(/_/g,".")},WebOS:function(){return n.replace(/^.*hpwOS\/([\d.]+);.*$/,"$1")}};return r[e.os]&&(e.osVersion=r[e.os](),e.osVersion===n&&(e.osVersion="")),e.osVersion&&(e.osMajor=e.osVersion.split(".").length&&e.osVersion.split(".")[0]),{version:e.osVersion,osMajor:e.osMajor}})),getDeviceType:u((function(t){var e=ne(t,this);return e.device="PC",oe.matchInfoMap(e),e.device})),getNetwork:u((function(){var t=Zt();if(!t||!t.navigator)return"unknown";var e=t.navigator.connection||t.navigator.mozConnection||t.navigator.webkitConnection,n="unknown",r=e?e.type||e.effectiveType:null;if(r&&"string"==typeof r)switch(r){case"bluetooth":case"cellular":case"slow-2g":case"2g":case"3g":n="cellular";break;case"none":n="none";break;case"ethernet":case"wifi":case"wimax":case"4g":n="wifi";break;case"other":case"unknown":n="unknown"}return n})),getLanguage:u((function(t){var e=ne(t,this);return e.language=function(){var t=te(),e=(t.browserLanguage||t.language||"").split("-");return e[1]&&(e[1]=e[1].toUpperCase()),e.join("_")}(),e.language})),getTimeZone:u((function(){try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(t){return}})),getBrowserInfo:u((function(t){var e=ne(t,this);e.engine="",e.browser="",oe.matchInfoMap(e);var n=Zt(),r=te(),o=ee(),i=function(t,e){var n=r.mimeTypes;if(!n)return!1;for(var o in n)if(n[o][t]==e)return!0;return!1},a=oe.getMatchMap(o),s=!1;if(n&&n.chrome){var u=o.replace(/^.*Chrome\/([\d]+).*$/,"$1");u>36&&n.showModalDialog?s=!0:u>45&&(s=i("type","application/vnd.chromium.remoting-viewer"))}if(a.Baidu&&a.Opera&&(a.Baidu=!1),a.Mobile&&(a.Mobile=!(o.indexOf("iPad")>-1)),s&&(i("type","application/gameplugin")||r&&r.connection&&void 0===r.connection.saveData?a["360SE"]=!0:a["360EE"]=!0),n&&(a.IE||a.Edge))switch(n.screenTop-n.screenY){case 71:case 74:case 99:case 75:case 74:case 105:default:break;case 102:a["360EE"]=!0;break;case 104:a["360SE"]=!0}var c={Safari:function(){return o.replace(/^.*Version\/([\d.]+).*$/,"$1")},Chrome:function(){return o.replace(/^.*Chrome\/([\d.]+).*$/,"$1").replace(/^.*CriOS\/([\d.]+).*$/,"$1")},IE:function(){return o.replace(/^.*MSIE ([\d.]+).*$/,"$1").replace(/^.*rv:([\d.]+).*$/,"$1")},Edge:function(){return o.replace(/^.*Edge?\/([\d.]+).*$/,"$1")},Firefox:function(){return o.replace(/^.*Firefox\/([\d.]+).*$/,"$1").replace(/^.*FxiOS\/([\d.]+).*$/,"$1")},"Firefox Focus":function(){return o.replace(/^.*Focus\/([\d.]+).*$/,"$1")},Chromium:function(){return o.replace(/^.*Chromium\/([\d.]+).*$/,"$1")},Opera:function(){return o.replace(/^.*Opera\/([\d.]+).*$/,"$1").replace(/^.*OPR\/([\d.]+).*$/,"$1")},Vivaldi:function(){return o.replace(/^.*Vivaldi\/([\d.]+).*$/,"$1")},Yandex:function(){return o.replace(/^.*YaBrowser\/([\d.]+).*$/,"$1")},Arora:function(){return o.replace(/^.*Arora\/([\d.]+).*$/,"$1")},Lunascape:function(){return o.replace(/^.*Lunascape[\/\s]([\d.]+).*$/,"$1")},QupZilla:function(){return o.replace(/^.*QupZilla[\/\s]([\d.]+).*$/,"$1")},"Coc Coc":function(){return o.replace(/^.*coc_coc_browser\/([\d.]+).*$/,"$1")},Kindle:function(){return o.replace(/^.*Version\/([\d.]+).*$/,"$1")},Iceweasel:function(){return o.replace(/^.*Iceweasel\/([\d.]+).*$/,"$1")},Konqueror:function(){return o.replace(/^.*Konqueror\/([\d.]+).*$/,"$1")},Iceape:function(){return o.replace(/^.*Iceape\/([\d.]+).*$/,"$1")},SeaMonkey:function(){return o.replace(/^.*SeaMonkey\/([\d.]+).*$/,"$1")},Epiphany:function(){return o.replace(/^.*Epiphany\/([\d.]+).*$/,"$1")},360:function(){return o.replace(/^.*QihooBrowser\/([\d.]+).*$/,"$1")},"360SE":function(){return{63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[o.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},"360EE":function(){return{69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[o.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},Maxthon:function(){return o.replace(/^.*Maxthon\/([\d.]+).*$/,"$1")},QQBrowser:function(){return o.replace(/^.*QQBrowser\/([\d.]+).*$/,"$1")},QQ:function(){return o.replace(/^.*QQ\/([\d.]+).*$/,"$1")},Baidu:function(){return o.replace(/^.*BIDUBrowser[\s\/]([\d.]+).*$/,"$1")},UC:function(){return o.replace(/^.*UC?Browser\/([\d.]+).*$/,"$1")},Sogou:function(){return o.replace(/^.*SE ([\d.X]+).*$/,"$1").replace(/^.*SogouMobileBrowser\/([\d.]+).*$/,"$1")},LBBROWSER:function(){var t="";o.indexOf("LieBaoFast")>-1&&(t=o.replace(/^.*LieBaoFast\/([\d.]+).*$/,"$1"));var e=o.replace(/^.*Chrome\/([\d]+).*$/,"$1");return t||{57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[e]||""},"2345Explorer":function(){return o.replace(/^.*2345Explorer\/([\d.]+).*$/,"$1")},TheWorld:function(){return o.replace(/^.*TheWorld ([\d.]+).*$/,"$1")},XiaoMi:function(){return o.replace(/^.*MiuiBrowser\/([\d.]+).*$/,"$1")},Quark:function(){return o.replace(/^.*Quark\/([\d.]+).*$/,"$1")},Qiyu:function(){return o.replace(/^.*Qiyu\/([\d.]+).*$/,"$1")},Wechat:function(){return o.replace(/^.*MicroMessenger\/([\d.]+).*$/,"$1")},WechatWork:function(){return o.replace(/^.*wxwork\/([\d.]+).*$/,"$1")},Taobao:function(){return o.replace(/^.*AliApp\(TB\/([\d.]+).*$/,"$1")},Alipay:function(){return o.replace(/^.*AliApp\(AP\/([\d.]+).*$/,"$1")},Weibo:function(){return o.replace(/^.*weibo__([\d.]+).*$/,"$1")},Douban:function(){return o.replace(/^.*com.douban.frodo\/([\d.]+).*$/,"$1")},Suning:function(){return o.replace(/^.*SNEBUY-APP([\d.]+).*$/,"$1")},iQiYi:function(){return o.replace(/^.*IqiyiVersion\/([\d.]+).*$/,"$1")}};return e.browserVersion="",e.browserMajor="",c[e.browser]&&(e.browserVersion=c[e.browser](),e.browserVersion==o&&(e.browserVersion="")),"Chrome"==e.browser&&o.match(/\S+Browser/)&&(e.browser=o.match(/\S+Browser/)[0],e.browserVersion=o.replace(/^.*Browser\/([\d.]+).*$/,"$1")),"Edge"==e.browser&&(e.browserVersion>"75"?e.engine="Blink":e.engine="EdgeHTML"),("Chrome"==e.browser&&parseInt(e.browserVersion)>27||a.Chrome&&"WebKit"==e.engine&&parseInt(e.browserVersion)>27||"Opera"==e.browser&&parseInt(e.browserVersion)>12||"Yandex"==e.browser)&&(e.engine="Blink"),e.browserVersion&&(e.browserMajor=e.browserVersion.split(".").length&&e.browserVersion.split(".")[0]),{browser:e.browser,browserVersion:e.browserVersion,engine:e.engine||"Unknown",browserMajor:e.browserMajor}})),getGeoPosition:u((function(t){var e=te();e&&e.geolocation&&e.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){i.warn(t)}))}))};oe.getGeoPostion=oe.getGeoPosition;var ie=function(){var t=Zt();if(!t)return{};var e=t.screen||{width:0,height:0},n={},r=oe.getOS(n),o=oe.getOSVersion(n),i=oe.getBrowserInfo(n);return{os:r,osVersion:o.version,osVersionMajor:o.osMajor,browser:i.browser,browserVersion:i.browserVersion,browserVersionMajor:i.browserMajor,screenSize:e.width+"*"+e.height,networkType:oe.getNetwork(),device:oe.getDeviceType(n),timeZone:oe.getTimeZone(),userAgent:ee()}}(),ae="beforeunload",se="click",ue="dblclick",ce="keydown",le="load",de="popstate",fe="scroll",pe="touchstart",ve="touchend",he="touchmove",ge="visibilitychange",me="prerenderingchange",ye="pageshow",be="freeze",_e="resume",we="DOMContentLoaded",Se="pointerdown",Ce="pointerup",xe="pointercancel",ke="hashchange",Te="pagehide",Ee="mousedown",Ae="mousemove",Ie="focus",Re="blur",Oe="contextmenu",Me="resize",De="change",Pe="input",Le="play",Ne="pause",Be="securitypolicyviolation",Fe="selectionchange",ze="storage",Ue="document",je="xhr",He="beacon",Ve="fetch",We="css",qe="js",$e="image",Ge="font",Qe="media",Ke="other",Xe="custom",Je="click",Ye="custom",Ze="rage_click",tn="error_click",en="dead_click",nn={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},rn="long-task",on="long-animation-frame",an="initial_load",sn="route_change",un={FETCH:Ve,XHR:je},cn="ddtrace",ln="zipkin",dn="zipkin_single_header",fn="w3c_traceparent",pn="w3c_traceparent_64bit",vn="skywalking_v3",hn="jaeger",gn="handled",mn="unhandled",yn="Uncaught",bn="Provided";function _n(t){return _n="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},_n(t)}function wn(t,e,n){if("object"!==_n(t)||null===t)return JSON.stringify(t);var r=Sn(Object.prototype),o=Sn(Array.prototype),i=Sn(Object.getPrototypeOf(t)),a=Sn(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),o(),i(),a()}}function Sn(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):it}function Cn(t){return Cn="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},Cn(t)}var xn="?";function kn(t){var e=[],n=Pn(t,"stack"),r=String(t);return n&&n.startsWith(r)&&(n=n.slice(r.length)),n&&A(n.split("\n"),(function(t){var n=function(t){var e=An.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),o=In.exec(e[2]);r&&o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||xn,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Rn.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:xn,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=On.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||xn,line:+e[3],url:e[2]}}(t)||function(t){var e=Mn.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=Dn.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||xn,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=xn),e.push(n))})),{message:Pn(t,"message"),name:Pn(t,"name"),stack:e}}var Tn="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",En="(?::(\\d+))",An=new RegExp("^\\s*at (.*?) ?\\("+Tn+En+"?"+En+"?\\)?\\s*$","i"),In=new RegExp("\\((\\S*)"+En+En+"\\)");var Rn=new RegExp("^\\s*at ?"+Tn+En+"?"+En+"??\\s*$","i");var On=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Mn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?\s*$/i,Dn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Pn(t,e){if("object"===Cn(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var Ln=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Nn(t){var e=function(t){return rr(window,"onerror",(function(e){var n,r=e.parameters,o=r[0],i=r[1],a=r[2],s=r[3],u=r[4];if(u instanceof Error)n=kn(u);else{var c={url:i,column:s,line:a},l=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=Ln.exec(t);r&&(e=r[1],n=r[2])}return{name:e,message:n}}(o);n={name:l.name,message:l.message,stack:[c]}}t(n,Ht(u,o))}))}(t),n=function(t){return rr(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=kn(n);t(r,n)}))}(t);return{stop:function(){e.stop(),n.stop()}}}var Bn=1024,Fn=/[^\u0000-\u007F]/;function zn(t){return Fn.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Un(t){return Un="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},Un(t)}function jn(t,e){void 0===e&&(e=225280);var n=Sn(Object.prototype),r=Sn(Array.prototype),o=[],i=new WeakMap,a=Hn(t,"$",void 0,o,i),s=JSON.stringify(a)&&JSON.stringify(a).length||0;if(!(s>e)){for(;o.length>0&&s<e;){var u=o.shift(),c=0;if(Array.isArray(u.source))for(var l=0;l<u.source.length;l++){if(s+=void 0!==(d=Hn(u.source[l],u.path,l,o,i))?JSON.stringify(d).length:4,s+=c,c=1,s>e){Wn(e,"truncated",t);break}u.target[l]=d}else for(var l in u.source)if(Object.prototype.hasOwnProperty.call(u.source,l)){var d;if(void 0!==(d=Hn(u.source[l],u.path,l,o,i))&&(s+=JSON.stringify(d).length+c+l.length+3,c=1),s>e){Wn(e,"truncated",t);break}u.target[l]=d}}return n(),r(),a}Wn(e,"discarded",t)}function Hn(t,e,n,r,o){var i=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(t);if(!i||"object"!==Un(i))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Un(t))return"[Symbol] "+t.description||0;return t}(i);var a=Vn(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=t;if(o.has(s))return"[Reference seen at "+o.get(s)+"]";var u=void 0!==n?e+"."+n:e,c=Array.isArray(i)?[]:{};return o.set(s,u),r.push({source:i,target:c,path:u}),c}function Vn(t){try{if(t instanceof Event)return{type:(n=t).type,isTrusted:n.isTrusted,currentTarget:n.currentTarget?Vn(n.currentTarget):null,target:n.target?Vn(n.target):null};if(t instanceof RegExp)return"[RegExp] ".concat(t.toString());var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}var n;return"[Unserializable]"}function Wn(t,e,n){i.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",n)}var qn="No stack, consider using an instance of Error",$n="agent",Gn="console",Qn="source",Kn="custom",Xn="report";function Jn(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,o=t.startClocks,i=t.nonErrorPrefix,a=t.source,s=t.handling,u=void 0===t.useFallbackStack||t.useFallbackStack,c=nr(n);!e&&c&&(e=kn(n));var l=function(t,e,n,r){return t&&t.message&&t&&t.name?t.message:e?"Empty message":n+" "+wn(jn(r))}(e,c,i,n);return{startClocks:o,source:a,handling:s,originalError:n,message:l,stack:e?Zn(e):u?qn:void 0,handlingStack:r,type:e?e.name:void 0,causes:c?er(n,a):void 0}}function Yn(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return c((function(){var n=kn(e);n.stack=n.stack.slice(2),t=Zn(n)})),t}function Zn(t){var e=tr(t);return A(t.stack,(function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"("+t.args.join(", ")+")":"",o=t.line?":"+t.line:"",i=t.line&&t.column?":"+t.column:"";e+="\n at "+n+r+" @ "+t.url+o+i})),e}function tr(t){return(t.name||"Error")+": "+t.message}function er(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var o=kn(n.cause);r.push({message:n.cause.message,source:e,type:o&&o.name,stack:o&&Zn(o)}),n=n.cause}return r.length?r:void 0}function nr(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}function rr(t,e,n,r){var o=r&&r.computeHandlingStack,i=t[e];if("function"!=typeof i){if(!Wt(e,"on"))return{stop:it};i=it}var a=!1,s=function(){if(a)return i.apply(this,arguments);var t,e=Ot(arguments);c(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:o?Yn():void 0}]);var r=i.apply(this,e);return t&&c(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=i)}}}function or(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:it};var o=it,i=function(t,e){h((function(){i!==o&&n(t,e)}),0)},a=function(t){r.set.call(this,t),i(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){Object.getOwnPropertyDescriptor(t,e)&&Object.getOwnPropertyDescriptor(t,e).set===a&&Object.defineProperty(t,e,r),i=o}}}var ir=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};ir.prototype={subscribe:function(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0);var e=this;return{unsubscribe:function(){e.observers=B(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){A(this.observers,(function(e){e(t)}))}};var ar=ir;function sr(){var t=[].slice.call(arguments);return new ar((function(e){var n=F(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return A(n,(function(t){return t.unsubscribe()}))}}))}var ur={};function cr(e){var n=F(e,(function(e){return ur[e]||(ur[e]=function(e){return new ar((function(n){var r=console[e];return console[e]=function(){var o=[].slice.call(arguments);r.apply(console,arguments);var i=Yn();c((function(){n.notify(function(e,n,r){var o=F(e,(function(t){return function(t){if("string"==typeof t)return jn(t);if(nr(t))return tr(kn(t));return wn(jn(t),void 0,2)}(t)})).join(" ");if(n===t.error){var i=Jn({originalError:Rt(e,nr),startClocks:gt(),message:o,source:Gn,handling:gn,handlingStack:r,nonErrorPrefix:bn,useFallbackStack:!1});return i.message=o,{api:n,message:o,error:i,handlingStack:r}}return{api:n,message:o,error:void 0,handlingStack:r}}(o,e,i))}))},function(){console[e]=r}}))}(e)),ur[e]}));return sr.apply(this,n)}function lr(t,e,n,r){return dr(t,[e],n,r)}function dr(t,e,n,r){var o=u(r&&r.once?function(t){i(),n(t)}:n);r=r&&r.passive?{capture:r.capture,passive:r.passive}:r&&r.capture,A(e,(function(e){fr(t,"addEventListener",(function(n){return n.call(t,e,o,r)}))}));var i=function(){A(e,(function(e){fr(t,"removeEventListener",(function(n){return n.call(t,e,o,r)}))}))};return{stop:i}}function fr(t,e,n){var r=v(window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,e);try{n(r)}catch(r){if(function(t,e){return t instanceof Error&&(t.message.includes("Illegal invocation")||t.message.includes("'".concat(e,"' called on an object that does not implement interface EventTarget."))||t.message.includes("Can only call EventTarget.".concat(e," on instances of EventTarget")))}(r,e))return n(t[e]);throw r}}var pr="intervention",vr="csp_violation";function hr(t,e){var n=[];It(e,vr)&&n.push(new ar((function(t){return lr(document,Be,(function(e){t.notify(function(t){var e="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return gr({type:t.effectiveDirective,message:vr+": "+e,originalError:t,csp:{disposition:t.disposition},stack:mr(t.effectiveDirective,t.originalPolicy?"".concat(e,' of the policy "').concat(Et(t.originalPolicy,100),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}(e))})).stop})));var r=B(e,(function(t){return t!==vr}));return r.length&&n.push(function(t){return new ar((function(e){if(window.ReportingObserver){var n=u((function(t){A(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return gr({type:e.id,message:n+": "+e.message,originalError:t,stack:mr(e.id,e.message,e.sourceFile,e.lineNumber,e.columnNumber)})}(t))}))})),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),function(){r.disconnect()}}}))}(r)),sr.apply(this,n)}function gr(t){return I({startClocks:gt(),source:Xn,handling:mn},t)}function mr(t,e,n,r,o){return n&&Zn({name:t,message:e,stack:[{func:"?",url:n,line:r,column:o}]})}var yr=function(){this._events=[],this.pendingEvents=[]};yr.prototype={emit:function(t){var e=[].slice.call(arguments,1);A(this._events,(function(n){if(n.type!==t)return!1;n.callback.apply(n.context,e)}))},on:function(t,e,n){"function"==typeof e&&this._events.push({type:t,callback:e,context:n||this})}};new yr;var br,_r,wr="AUTO_ACTION_COMPLETED",Sr="BEFORE_VIEW_CREATED",Cr="VIEW_CREATED",xr="VIEW_UPDATED",kr="BEFORE_VIEW_UPDATED",Tr="VIEW_ENDED",Er="AFTER_VIEW_ENDED",Ar="SESSION_RENEWED",Ir="SESSION_EXPIRED",Rr="PAGE_EXITED",Or="REQUEST_STARTED",Mr="REQUEST_COMPLETED",Dr="RAW_RUM_EVENT_COLLECTED",Pr="RUM_EVENT_COLLECTED",Lr="RAW_ERROR_COLLECTED";function Nr(){this.callbacks={}}function Br(t){return Hr(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ur(t)||zr()}function Fr(t,e){return Hr(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||Ur(t,e)||zr()}function zr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ur(t,e){if(t){if("string"==typeof t)return jr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jr(t,e):void 0}}function jr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Hr(t){if(Array.isArray(t))return t}function Vr(t,e,n){var r=rt(t),o=n(r);return W(e).forEach((function(e){var n=Fr(e,2),o=n[0],i=n[1];return Wr(t,r,o.split(/\.|(?=\[\])/),i)})),o}function Wr(t,e,n,r){var o=Br(n),i=o[0],a=o.slice(1);if("[]"!==i){if(qr(t)&&qr(e))return a.length>0?Wr(t[i],e[i],a,r):void function(t,e,n,r){var o=et(n);o===r?t[e]=jn(n):"object"!==r||"undefined"!==o&&"null"!==o||(t[e]={})}(t,i,e[i],r)}else Array.isArray(t)&&Array.isArray(e)&&t.forEach((function(t,n){return Wr(t,e[n],a,r)}))}function qr(t){return"object"===et(t)}function $r(t,e,n){var r=0,o=!1;return{isLimitReached:function(){if(0===r&&h((function(){r=0}),ut),(r+=1)<=e||o)return o=!1,!1;if(r===e+1){o=!0;try{n({message:"Reached max number of "+t+"s by minute: "+e,source:$n,startClocks:gt()})}finally{o=!1}}return!0}}}function Gr(t){return Kr(t,zt(window.location)).href}function Qr(t){return zt(Kr(t))}function Kr(t,e){if(function(){if(void 0!==br)return br;try{var t=new URL("http://test/path");return br="http://test/path"===t.href}catch(t){br=!1}return br}())return void 0!==e?new URL(t,e):new URL(t);if(void 0===e&&!/:/.test(t))throw new Error("Invalid URL: "+t);var n=document,r=n.createElement("a");if(void 0!==e){var o=(n=document.implementation.createHTMLDocument("")).createElement("base");o.href=e,n.head.appendChild(o),n.body.appendChild(r)}return r.href=t,r}Nr.prototype={notify:function(t,e){var n=this.callbacks[t];n&&A(n,(function(t){t(e)}))},subscribe:function(t,e){this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e);var n=this;return{unsubscribe:function(){n.callbacks[t]=B(n.callbacks[t],(function(t){return t!==e}))}}}};var Xr=(null===(_r=navigator)||void 0===_r||null===(_r=_r.userAgent)||void 0===_r?void 0:_r.toLowerCase())||"",Jr=function(){return/iphone os/.test(Xr)};function Yr(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(u(t),e);return function(){return window.cancelIdleCallback(n)}}return function(t){var e=yt(),n=h((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,Zr-(yt()-e))}})}),0);return function(){return g(n)}}(t)}var Zr=50;var to,eo=/^\s+|\s+$/g,no={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function ro(t,e){var n=no[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+oo(r));var o=r;return o=r.lastIndexOf("/")===r.length-1?oo(r)+"v1/write"+n:oo(r)+"/v1/write"+n,t.site&&t.clientToken&&(o=o+"?token="+t.clientToken+"&to_headless=true"),o}function oo(t){return t.replace(eo,"")}function io(t,e){return"".concat(t,"_").concat(e&&e.crossSite?"cs1":"cs0","_").concat(e&&e.domain?"d1":"d0","_").concat(e&&e.secure?"sec1":"sec0","_").concat(e&&e.partitioned?"part1":"part0")}function ao(t,e,n,r){var o=new Date;o.setTime(o.getTime()+n);var i="expires="+o.toUTCString(),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain="+r.domain:"",u=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie=io(t,r)+"="+e+";"+i+";path=/;samesite="+a+s+u+c}function so(t,e){return function(t,e){for(kt.lastIndex=0;;){var n=kt.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,io(t,e))}function uo(t,e){ao(t,"",0,e)}var co=144e5,lo=9e5,fo="_gc_s",po="cookie",vo="local-storage";function ho(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return go(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?go(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function go(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var mo=/^([a-zA-Z]+)=([a-z0-9-]+)$/,yo="&";function bo(t){return V(t)}function _o(t){return void 0!==t.isExpired||!((void 0===(e=t).created||yt()-Number(e.created)<co)&&(void 0===e.expire||yt()<Number(e.expire)));var e}function wo(t){return F(W(t),(function(t){return t[0]+"="+t[1]})).join("&")}function So(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(yo)||mo.test(t))}(t)&&t.split(yo).forEach((function(t){var n=mo.exec(t);if(null!==n){var r=ho(n,3),o=r[1],i=r[2];e[o]=i}})),e}function Co(t){var e=function(t){var e={};e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===to){for(var t="gc_site_test_".concat(X()),e=window.location.hostname.split("."),n=e.pop();e.length&&!so(t,{domain:n});)n="".concat(e.pop(),".").concat(n),ao(t,"test",st,{domain:n});uo(t,{domain:n}),to=n}return to}());return e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="gc_cookie_test_".concat(X()),n="test";ao(e,n,ut,t);var r=so(e,t)===n;return uo(e,t),r}catch(t){return!1}}(e)?{type:po,cookieOptions:e}:void 0}function xo(t){var e;return{isLockEnabled:Ft()===Lt,persistSession:(e=t,function(t){ao(fo,wo(t),lo,e)}),retrieveSession:ko(t),expireSession:function(){return function(t){ao(fo,wo({isExpired:"1"}),co,t)}(t)}}}function ko(t){return function(){return So(so(fo,t))}}function To(){try{var t=X(),e="".concat("_gc_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:vo}:void 0}catch(t){return}}function Eo(t){localStorage.setItem(fo,wo(t))}function Ao(){return So(localStorage.getItem(fo))}function Io(){Eo({isExpired:"1"})}function Ro(){var t,e=window.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:null===(t=e.connection)||void 0===t?void 0:t.effectiveType}}var Oo="log",Mo="configuration",Do="usage",Po="debug",Lo="error",No=["https://static.guance.com","http://localhost","<anonymous>"],Bo="browser-rum-sdk",Fo=Qt(),zo=function(t){Fo.add((function(){zo(t)}))};function Uo(t,e){var n,o=new ar,i=new Set,a=e.telemetryEnabled&&ct(e.telemetrySampleRate),s={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return zo=function(r){var u=wn(r);if(a&&i.size<e.maxTelemetryEventsPerPage&&!i.has(u)){var c=function(t,e,r){return M({type:"telemetry",date:mt(),service:t,version:"3.3.1",source:"browser",telemetry:M(e,{runtime_env:r,connectivity:Ro()})},void 0!==n?n():{})}(t,r,s);o.notify(c),i.add(u)}},r=Ho,{setContextProvider:function(t){n=t},observable:o,enabled:a}}function jo(t,e){l(t,e),zo(I({type:Oo,message:t,status:Po},e))}function Ho(t,e){zo(I({type:Oo,status:Lo},function(t){if(t instanceof Error){var e=kn(t);return{error:{kind:e.name,stack:Zn(Wo(e))},message:e.message}}return{error:{stack:qn},message:yn+" "+wn(t)}}(t),e))}function Vo(t){zo({type:Do,usage:t})}function Wo(t){return t.stack=t.stack.filter((function(t){return!t.url||No.some((function(e){return Wt(t.url,e)}))})),t}var qo=["lock"];function $o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Go(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Go(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Go(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Qo,Ko="--",Xo=[];function Jo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.isLockEnabled,o=e.persistSession,i=e.expireSession,a=function(t){return o(I({},t,{lock:u}))},s=function(){var t=e.retrieveSession(),n=t.lock;return{session:function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,qo),lock:n&&!ti(n)?n:void 0}};if(Qo||(Qo=t),t===Qo){if(r&&n>=100)return jo("Aborted session operation after max lock retries",{currentStore:s()}),void Zo(e);var u,c=s();if(r){if(c.lock)return void Yo(t,e,n);if(u=X()+Ko+mt(),a(c.session),(c=s()).lock!==u)return void Yo(t,e,n)}var l=t.process(c.session);if(r&&(c=s()).lock!==u)Yo(t,e,n);else{if(l&&(_o(l)?i():(l.expire=String(yt()+lo),r?a(l):o(l))),r&&(!l||!_o(l))){if((c=s()).lock!==u)return void Yo(t,e,n);o(c.session),l=c.session}t.after&&t.after(l||c.session),Zo(e)}}else Xo.push(t)}function Yo(t,e,n){h((function(){Jo(t,e,n+1)}),10)}function Zo(t){Qo=void 0;var e=Xo.shift();e&&Jo(e,t)}function ti(t){var e=$o(t.split(Ko),2)[1];return!e||bt(Number(e),mt())>1e3}var ei=st;function ni(t){switch(t.sessionPersistence){case po:return Co(t);case vo:return To();case void 0:var e=Co(t);return!e&&t.allowFallbackToLocalStorage&&(e=To()),e;default:i.error("Invalid session persistence '".concat(String(t.sessionPersistence),"'"))}}function ri(t,e,n){var r,o=new ar,i=new ar,a=new ar,s=t.type===po?xo(t.cookieOptions):{isLockEnabled:!1,persistSession:Eo,retrieveSession:Ao,expireSession:Io},u=s.expireSession,c=m((function(){Jo({process:function(t){return _o(t)?{isExpired:"1"}:void 0},after:p},s)}),ei);v();var l=Q((function(){Jo({process:function(t){if(!bo(t)){var r=p(t);return function(t){if(bo(t))return!1;var r=n(t[e]),o=r.trackingType,i=r.isTracked;t[e]=o,delete t.isExpired,i&&!t.id&&(t.id=X(),t.created=String(yt()))}(r),r}},after:function(t){bo(t)||h()||function(t){r=t,o.notify()}(t),r=t}},s)}),ei),d=l.throttled,f=l.cancel;function p(t){return _o(t)&&(t={isExpired:"1"}),h()&&(!function(t){return r.id!==t.id||r[e]!==t[e]}(t)?(a.notify({previousState:r,newState:t}),r=t):(r={isExpired:"1"},i.notify())),t}function v(){Jo({process:function(t){if(bo(t)||_o(t))return{isExpired:"1"}},after:function(t){r=t}},s)}function h(){return void 0!==r[e]}return{expandOrRenewSession:d,expandSession:function(){Jo({process:function(t){return h()?p(t):void 0}},s)},getSession:function(){return r},renewObservable:o,expireObservable:i,sessionStateUpdateObservable:a,restartSession:v,expire:function(){f(),u(),p({isExpired:"1"})},stop:function(){y(c)},updateSessionState:function(t){Jo({process:function(e){return I({},e,t)},after:p},s)}}}var oi={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function ii(t){if(void 0===t.sampleRate||Mt(t.sampleRate))if(void 0===t.sessionSampleRate||Mt(t.sessionSampleRate)){if(void 0===t.telemetrySampleRate||Mt(t.telemetrySampleRate)){var e=Ht(t.sessionSampleRate,t.sampleRate);return I({beforeSend:t.beforeSend&&d(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:ni(t),isOpenWay:t.site&&t.clientToken,sessionSampleRate:Ht(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:Ht(t.telemetrySampleRate,100),telemetryEnabled:Ht(t.telemetryEnabled,!1),silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144,resourceUrlLimit:5120,storeContextsToLocal:!!t.storeContextsToLocal,storeContextsKey:t.storeContextsKey,sendContentTypeByJson:!!t.sendContentTypeByJson,retryMaxSize:Ht(t.retryMaxSize,-1)},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&P(t.isIntakeUrl)&&$(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&P(t.isServerError)&&$(t.isServerError())&&(n=t.isServerError),{rumEndpoint:ro(t,"rum"),logsEndpoint:ro(t,"log"),sessionReplayEndPoint:ro(t,"sessionReplay"),isIntakeUrl:e,isServerError:n}}(t))}i.error("Telemetry Sample Rate should be a number between 0 and 100")}else i.error("Sample Rate should be a number between 0 and 100");else i.error("Sample Rate should be a number between 0 and 100")}function ai(t){return ai="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},ai(t)}function si(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ui(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?si(Object(n),!0).forEach((function(e){ci(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ci(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=ai(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ai(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ai(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function li(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return di(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?di(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function di(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function fi(t,e){!function(t,e){var n=new XMLHttpRequest;lr(n,"load",(function(){if(200===n.status){var t=JSON.parse(n.responseText);e(t.content)}else e({}),mi()})),lr(n,"error",(function(){e({}),mi()})),n.open("GET",function(t){var e=t.datakitOrigin||t.datakitUrl||t.site;0===e.indexOf("/")&&(e=location.origin+oo(e));var n=e;n=e.lastIndexOf("/")===e.length-1?oo(e)+"v1/env_variable":oo(e)+"/v1/env_variable";n+="?app_id="+t.applicationId,t.site&&t.clientToken&&(n=n+"&token="+t.clientToken+"&to_headless=true");return n}(t)),n.send()}(t,(function(n){e(function(t,e){var n=gi(t,e);return ui(ui({},t),function(t,e){var n={};return W(e).forEach((function(e){var r=li(e,2),o=r[0],i=r[1],a=t[o];et(a)===i&&(n[o]=a)})),n}(n,hi))}(t,n),gi(t,n))}))}var pi,vi,hi={sessionSampleRate:"number",telemetrySampleRate:"number",silentMultipleInit:"boolean",service:"string",env:"string",version:"string",tracingSampleRate:"number",useCrossSiteSessionCookie:"boolean",usePartitionedCrossSiteSessionCookie:"boolean",useSecureSessionCookie:"boolean",trackSessionAcrossSubdomains:"boolean",storeContextsToLocal:"boolean",storeContextsKey:"string",sendContentTypeByJson:"boolean",allowFallbackToLocalStorage:"boolean",sessionOnErrorSampleRate:"number",sessionReplaySampleRate:"number",sessionReplayOnErrorSampleRate:"number",trackUserInteractions:"boolean",trackInteractions:"boolean",actionNameAttribute:"string",trackViewsManually:"boolean",workerUrl:"string",replayCanvasWorkerUrl:"string",compressIntakeRequests:"boolean",traceType:"string"};function gi(t,e){var n={};for(var r in e){if(void 0!==e[r])n[r.replace("R."+t.applicationId+".","")]=e[r]}return n}function mi(){i.error("Error fetching the remote configuration.")}function yi(){return pi||(pi=new ar((function(t){if(window.fetch){var e=rr(window,"fetch",(function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,o=t.handlingStack,i=n[0],a=n[1],s=a&&a.method;void 0===s&&i instanceof Request&&(s=i.method);var c=void 0!==s?String(s).toUpperCase():"GET",l=i instanceof Request?i.url:Gr(String(i)),d=gt(),f={state:"start",init:a,input:i,method:c,startClocks:d,url:l,handlingStack:o};e.notify(f),n[0]=f.input,n[1]=f.init,r((function(t){return function(t,e,n){var r=n,o=function(e){r.state="resolve",I(r,e),t.notify(r)};e.then(u((function(t){var e="";try{e=t.constructor===Response&&t.type||""}catch(t){e=""}o({response:t,responseType:e,status:t.status,isAborted:!1})})),u((function(t){o({status:0,isAborted:r.init&&r.init.signal&&r.init.signal.aborted||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})})))}(e,t,f)}))}(e,t)}),{computeHandlingStack:!0});return e.stop}}))),pi}var bi=new WeakMap;function _i(){return vi||(vi=new ar((function(t){var e=rr(XMLHttpRequest.prototype,"open",wi),n=rr(XMLHttpRequest.prototype,"send",(function(e){!function(t,e){var n=t.target,r=t.handlingStack,o=bi.get(n);if(o){var i=o;i.state="start",i.startClocks=gt(),i.isAborted=!1,i.xhr=n,i.handlingStack=r;var a=!1,s=rr(n,"onreadystatechange",(function(){n.readyState===XMLHttpRequest.DONE&&u()})).stop,u=function(){if(c(),s(),!a){a=!0;var t=o;t.state="complete",t.duration=bt(i.startClocks.timeStamp,mt()),t.status=n.status,e.notify(R(t))}},c=lr(n,"loadend",u).stop;e.notify(i)}}(e,t)}),{computeHandlingStack:!0}),r=rr(XMLHttpRequest.prototype,"setRequestHeader",Si),o=rr(XMLHttpRequest.prototype,"abort",Ci);return function(){e.stop(),n.stop(),o.stop(),r.stop()}}))),vi}function wi(t){var e=t.target,n=t.parameters[0],r=t.parameters[1];bi.set(e,{state:"open",method:String(n).toUpperCase(),url:Gr(String(r))})}function Si(t){var e=t.target,n=t.parameters[0],r=t.parameters[1],o=bi.get(e);if(o&&n){var i=o.requestHeaderContexts||{};i[n]=r,o.requestHeaderContexts=i}}function Ci(t){var e=t.target,n=bi.get(e);n&&(n.isAborted=!0)}var xi={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function ki(t){return It(N(xi),t)}function Ti(t){return t.nodeType===Node.ELEMENT_NODE}function Ei(t){return Ti(t)&&Boolean(t.shadowRoot)}function Ai(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Ti(e.host)}function Ii(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;Ei(t)&&e(t.shadowRoot)}function Ri(t){return Ai(t)?t.host:t.parentNode}function Oi(t,e){return document.readyState===t||"complete"===document.readyState?(e(),{stop:it}):lr(window,"complete"===t?le:we,e,{once:!0})}function Mi(){var t,e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function Di(){var t,e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}var Pi={sdk_name:"_gc.sdk_name",sdk_version:"_gc.sdk_version",app_id:"application.id",env:"env",service:"service",version:"version",source:"source",userid:"user.id",user_email:"user.email",user_name:"user.name",session_id:"session.id",session_type:"session.type",session_is_forced:"session.is_forced_session",session_sampling:"session.is_sampling",is_signin:"user.is_signin",os:"device.os",os_version:"device.os_version",os_version_major:"device.os_version_major",browser:"device.browser",browser_version:"device.browser_version",browser_version_major:"device.browser_version_major",screen_size:"device.screen_size",network_type:"device.network_type",time_zone:"device.time_zone",device:"device.device",user_agent:"device.user_agent",view_id:"view.id",view_referrer:"view.referrer",view_url:"view.url",view_host:"view.host",view_path:"view.path",view_name:"view.name",view_path_group:"view.path_group",view_path_name:"view.pathname"},Li={view_url_query:"view.url_query",action_id:"action.id",action_ids:"action.ids",view_in_foreground:"view.in_foreground",display:"display",session_has_replay:"session.has_replay",is_login:"user.is_login",page_states:"_gc.page_states",session_sample_rate:"_gc.configuration.session_sample_rate",session_replay_sample_rate:"_gc.configuration.session_replay_sample_rate",session_on_error_sample_rate:"_gc.configuration.session_on_error_sample_rate",session_replay_on_error_sample_rate:"_gc.configuration.session_replay_on_error_sample_rate",drift:"_gc.drift"},Ni={view:{type:nn.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",view_privacy_replay_level:"privacy.replay_level"},fields:{view_update_time:"_gc.view_update_time",sampled_for_replay:"session.sampled_for_replay",sampled_for_error_replay:"session.sampled_for_error_replay",sampled_for_error_session:"session.sampled_for_error_session",session_error_timestamp:"session.error_timestamp_for_session",is_active:"view.is_active",session_replay_stats:"_gc.replay_stats",session_is_active:"session.is_active",view_error_count:"view.error.count",view_resource_count:"view.resource.count",view_long_task_count:"view.long_task.count",view_action_count:"view.action.count",first_contentful_paint:"view.first_contentful_paint",largest_contentful_paint:"view.largest_contentful_paint",largest_contentful_paint_element_selector:"view.largest_contentful_paint_element_selector",cumulative_layout_shift:"view.cumulative_layout_shift",cumulative_layout_shift_time:"view.cumulative_layout_shift_time",cumulative_layout_shift_target_selector:"view.cumulative_layout_shift_target_selector",first_input_delay:"view.first_input_delay",loading_time:"view.loading_time",dom_interactive:"view.dom_interactive",dom_content_loaded:"view.dom_content_loaded",dom_complete:"view.dom_complete",load_event:"view.load_event",first_input_time:"view.first_input_time",first_input_target_selector:"view.first_input_target_selector",first_paint_time:"view.fpt",interaction_to_next_paint:"view.interaction_to_next_paint",interaction_to_next_paint_target_selector:"view.interaction_to_next_paint_target_selector",resource_load_time:"view.resource_load_time",time_to_interactive:"view.tti",dom:"view.dom",dom_ready:"view.dom_ready",time_spent:"view.time_spent",first_byte:"view.first_byte",frustration_count:"view.frustration.count",custom_timings:"view.custom_timings"}},resource:{type:nn.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.span_id",resource_id:"resource.id",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",resource_url:"resource.url",resource_url_host:"resource.url_host",resource_url_path:"resource.url_path",resource_url_path_group:"resource.url_path_group",resource_url_query:"resource.url_query",resource_delivery_type:"resource.delivery_type",resource_type:"resource.type",resource_protocol:"resource.protocol",resource_encode_size:"resource.encoded_body_size",resource_decode_size:"resource.decoded_body_size",resource_transfer_size:"resource.transfer_size",resource_render_blocking_status:"resource.render_blocking_status",resource_dns:"resource.dns",resource_tcp:"resource.tcp",resource_ssl:"resource.ssl",resource_ttfb:"resource.ttfb",resource_trans:"resource.trans",resource_redirect:"resource.redirect",resource_first_byte:"resource.firstbyte",resource_dns_time:"resource.dns_time",resource_download_time:"resource.download_time",resource_first_byte_time:"resource.first_byte_time",resource_connect_time:"resource.connect_time",resource_ssl_time:"resource.ssl_time",resource_redirect_time:"resource.redirect_time"}},error:{type:nn.ERROR,tags:{error_id:"error.id",trace_id:"_gc.trace_id",span_id:"_gc.span_id",error_source:"error.source",error_type:"error.type",error_handling:"error.handling"},fields:{error_message:["string","error.message"],error_stack:["string","error.stack"],error_causes:["string","error.causes"],error_handling_stack:["string","error.handling_stack"]}},long_task:{type:nn.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration",blocking_duration:"long_task.blocking_duration",first_ui_event_timestamp:"long_task.first_ui_event_timestamp",render_start:"long_task.render_start",style_and_layout_start:"long_task.style_and_layout_start",long_task_start_time:"long_task.start_time",scripts:["string","long_task.scripts"]}},action:{type:nn.ACTION,tags:{action_type:"action.type"},fields:{action_name:"action.target.name",duration:"action.loading_time",action_error_count:"action.error.count",action_resource_count:"action.resource.count",action_frustration_types:"action.frustration.type",action_long_task_count:"action.long_task.count",action_target:"_gc.action.target",action_position:"_gc.action.position"}},telemetry:{type:"telemetry",fields:{status:"telemetry.status",message:["string","telemetry.message"],type:"telemetry.type",error_stack:["string","telemetry.error.stack"],error_kind:["string","telemetry.error.kind"],connectivity:["string","telemetry.connectivity"],runtime_env:["string","telemetry.runtime_env"],usage:["string","telemetry.usage"],configuration:["string","telemetry.configuration"]}},browser_log:{type:nn.LOGGER,tags:{error_source:"error.source",error_type:"error.type",error_resource_url:"http.url",error_resource_url_host:"http.url_host",error_resource_url_path:"http.url_path",error_resource_url_path_group:"http.url_path_group",error_resource_status:"http.status_code",error_resource_status_group:"http.status_group",error_resource_method:"http.method",action_id:"user_action.id",service:"service",status:"status"},fields:{message:["string","message"],error_message:["string","error.message"],error_stack:["string","error.stack"]}}},Bi=ut,Fi=co,zi=[];function Ui(t,e,n){var r=new ar,o=new ar,i=ri(t.sessionStoreStrategyType,e,n);zi.push((function(){return i.stop()}));var a,s=Yt({expireDelay:Fi});function u(){var t=i.getSession();return t?{id:t.id,trackingType:t[e],hasError:!!t.hasError,isSessionForced:!!t.forcedSession}:{id:"invalid",trackingType:"0",isSessionForced:!1,hasError:!1}}return zi.push((function(){return s.stop()})),i.renewObservable.subscribe((function(){s.add(u(),ht()),r.notify()})),i.expireObservable.subscribe((function(){o.notify(),s.closeActive(ht())})),i.expandOrRenewSession(),s.add(u(),_t().relative),a=dr(window,[se,pe,ce,fe],(function(){i.expandOrRenewSession()}),{capture:!0,passive:!0}).stop,zi.push(a),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=lr(document,ge,e).stop;zi.push(n);var r=m(e,Bi);zi.push((function(){y(r)}))}((function(){return i.expandSession()})),function(t){var e=lr(window,_e,t,{capture:!0}).stop;zi.push(e)}((function(){i.restartSession()})),{findSession:function(t,e){return s.find(t,e)},expandOrRenewSession:i.expandOrRenewSession,renewObservable:r,expireObservable:o,sessionStateUpdateObservable:i.sessionStateUpdateObservable,expire:i.expire,updateSessionState:i.updateSessionState}}var ji=20971520,Hi=st,Vi=0,Wi=1,qi=2,$i=0,Gi=1;function Qi(t,e,n,r,o){e.transportStatus===Vi&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Xi(t,e,n,{onSuccess:function(){return Ji($i,e,n,r,o)},onFailure:function(){e.queuedPayloads.enqueue(t),Ki(e,n,r,o)}}):e.queuedPayloads.enqueue(t)}function Ki(t,e,n,r){t.transportStatus===qi&&h((function(){Xi(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=Hi,Ji(Gi,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(256e3,2*t.currentBackoffTime),Ki(t,e,n,r)}})}),t.currentBackoffTime)}function Xi(t,e,n,r){var o=r.onSuccess,i=r.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),!function(t,e,n){return!(e.retryMaxSize>-1&&n.retry&&n.retry.count>e.retryMaxSize)&&("opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||t.status>=500))}(n,e,t)?(e.transportStatus=Vi,o()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?Wi:qi,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},i())}))}function Ji(t,e,n,r,o){t===$i&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(o({message:"Reached max "+r+" events size queued for upload: 20MiB",source:$n,startClocks:gt()}),e.queueFullReported=!0);var i=e.queuedPayloads;for(e.queuedPayloads=Yi();i.size()>0;)Qi(i.dequeue(),e,n,r,o)}function Yi(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=ji}}}function Zi(t,e){return t?(t=t+(-1===t.indexOf("?")?"?":"&")+"precision=ms",e&&(t=t+"&encoding="+e),t):t}function ta(t,e,n,r){void 0===n&&(n=-1);var o=function(t){return{transportStatus:Vi,currentBackoffTime:Hi,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:Yi(),queueFullReported:!1,retryMaxSize:t}}(n),i=function(n,r){return function(t,e,n,r){var o=n.data,i=n.bytesCount,a=Zi(t,n.encoding),s=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&i<e;if(s){var c={method:"POST",body:o,keepalive:!0,mode:"cors"},l={"x-client-timestamp":Date.now().toString()};n.type&&(l["Content-Type"]=n.type),c.headers=l,fetch(a,c).then(u((function(t){"function"==typeof r&&r({status:t.status,type:t.type})}))).catch(u((function(){!function(t,e,n){var r={method:"POST",body:e.data,keepalive:!0,mode:"cors"},o={"x-client-timestamp":Date.now().toString()};e.type&&(o["Content-Type"]=e.type);r.headers=o,fetch(t,r).then(u((function(t){"function"==typeof n&&n({status:t.status,type:t.type})}))).catch(u((function(){"function"==typeof n&&n({status:0})})))}(a,n,r)})))}else na(a,n,r)}(t,e,n,r)};return{send:function(e){Qi(e,o,i,t,r)},sendOnExit:function(n){!function(t,e,n){var r=n.data,o=n.bytesCount,i=Zi(t,n.encoding),a=!!navigator.sendBeacon&&o<e;if(a)try{var s;if(s=n.type?new Blob([r],{type:n.type}):r,navigator.sendBeacon(i,s))return}catch(t){!function(t){ea||(ea=!0,Ho(t))}(t)}na(i,n)}(t,e,n)}}}var ea=!1;function na(t,e,n){var r=e.data,o=new XMLHttpRequest;o.open("POST",t,!0),r instanceof Blob?o.setRequestHeader("Content-Type",r.type):e.type&&o.setRequestHeader("Content-Type",e.type),o.setRequestHeader("x-client-timestamp",Date.now().toString()),lr(o,"loadend",(function(){"function"==typeof n&&n({status:o.status})}),{once:!0}),o.send(r)}function ra(t){return ra="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},ra(t)}function oa(t){if("object"===ra(t)&&t)t=wn(t);else if(!q(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function ia(t,e){return"object"===ra(t)&&t?t=wn(t):e&&(t=""+t),t}function aa(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function sa(t){return"object"===ra(t)&&t?aa(wn(t)):q(t)?aa(t):t}function ua(t){return function(t){if(Array.isArray(t))return ca(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ca(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ca(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ca(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var la="custom_keys",da=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return A(Ni,(function(o,i){if(o.type===t.type){r+=i+",",e.measurement=i;var a=[],s=O({},Pi,o.tags),u=["date","type",la];A(s,(function(n,r){var o=Tt(t,n);u.push(r),(o||G(o))&&(e.tags[r]=ia(o,!0),a.push(oa(r)+"="+oa(o)))}));var c=[],l=O({},Li,o.fields);if(A(l,(function(n,r){if(D(n)&&2===n.length){var o=n[1],i=Tt(t,o);u.push(r),null!=i&&(e.fields[r]=ia(i),c.push(oa(r)+"="+sa(i)))}else if(q(n)){i=Tt(t,n);u.push(r),null!=i&&(e.fields[r]=ia(i),c.push(oa(r)+"="+sa(i)))}})),t.context&&H(t.context)&&!V(t.context)){var d=[];A(t.context,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(d.push(n),e.fields[n]=ia(t),c.push(oa(n)+"="+sa(t))))})),d.length&&(e.fields[la]=ia(d),c.push(oa(la)+"="+sa(d)))}t.type===nn.LOGGER&&A(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=ia(t),c.push(oa(n)+"="+sa(t)))})),a.length&&(r+=a.join(",")),c.length&&(r+=" ",r+=c.join(","),n=!0),r=r+" "+t.date,e.time=t.date}})),{rowStr:n?r:"",rowData:n?e:void 0}};function fa(t){var e=t.encoder,n=t.request,r=t.messageBytesLimit,o=t.sendContentTypeByJson,a=t.flushController,s={},u=a.flushObservable.subscribe((function(t){!function(t){var r=N(s).join(o?",":"\n");s={};var i=ki(t.reason),a=i?n.sendOnExit:n.send;if(i&&e.isAsync){var u=e.finishSync();u.outputBytesCount&&a(pa(u,o));var l=[].concat(ua(u.pendingData),[r]).filter(Boolean).join("\n");l&&a({data:l,bytesCount:zn(l)})}else{if(r){var d=c([r],e.isEmpty());o&&(d+="]"),e.write(d)}else o&&e.write("]");e.finish((function(t){a(pa(t))}))}}(t)}));function c(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o?e?"["+t.join(","):","+t.join(","):e?t.join("\n"):"\n"+t.join("\n")}function l(t,n){var u=function(t){return o?wn(da(t).rowData):da(t).rowStr}(t),l=e.estimateEncodedBytesCount(u);l>=r?i.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(r,"KB.")):(function(t){return void 0!==t&&void 0!==s[t]}(n)&&function(t){var n=s[t];delete s[t];var r=e.estimateEncodedBytesCount(n);a.notifyAfterRemoveMessage(r)}(n),function(t,n,r){a.notifyBeforeAddMessage(n),void 0!==r?(s[r]=t,a.notifyAfterAddMessage()):e.write(c([t],e.isEmpty()),(function(t){a.notifyAfterAddMessage(t-n)}))}(u,l,n))}return{flushController:a,add:l,upsert:l,stop:u.unsubscribe}}function pa(t,e){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),type:e?"application/json;UTF-8":void 0,bytesCount:t.outputBytesCount,encoding:t.encoding}}function va(t){var e,n=t.messagesLimit,r=t.bytesLimit,o=t.durationLimit,i=t.pageExitObservable,a=t.sessionExpireObservable,s=i.subscribe((function(t){return f(t.reason)})),u=a.subscribe((function(){return f("session_expire")})),c=new ar((function(){return function(){s.unsubscribe(),u.unsubscribe()}})),l=0,d=0;function f(t){if(0!==d){var e=d,n=l;d=0,l=0,p(),c.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){g(e),e=void 0}return{flushObservable:c,getMessagesCount:function(){return d},notifyBeforeAddMessage:function(t){l+t>=r&&f("bytes_limit"),d+=1,l+=t,void 0===e&&(e=h((function(){f("duration_limit")}),o))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,d>=n?f("messages_limit"):l>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0===(d-=1)&&p()}}}function ha(){return p().FTWebViewJavascriptBridge}function ga(){var t=ha();if(t)return{getCapabilities:function(){return JSON.parse(t.getCapabilities&&t.getCapabilities()||"[]")},getPrivacyLevel:function(){return t.getPrivacyLevel&&t.getPrivacyLevel()},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts&&t.getAllowedWebViewHosts()||"[]")},send:function(e,n,r){var o=r?{id:r}:void 0;try{t.sendEvent(JSON.stringify({name:e,data:n,view:o}))}catch(t){}}}}var ma="records";function ya(t){var e=ga();return!!e&&e.getCapabilities().includes(t)}function ba(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(t=p().location)||void 0===t?void 0:t.hostname,n=ha();if(n&&void 0===n.getAllowedWebViewHosts)return!0;if(n&&n.getAllowedWebViewHosts&&(null===n.getAllowedWebViewHosts()||void 0===n.getAllowedWebViewHosts()))return!0;var r=ga();return!!r&&r.getAllowedWebViewHosts().some((function(t){return e===t||e.endsWith(".".concat(t))}))}function _a(t){return _a="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},_a(t)}function wa(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Sa(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sa(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sa(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ca(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xa(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=_a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=_a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ka(t,e,n){for(var r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ca(Object(n),!0).forEach((function(e){xa(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),o=0,a=Object.entries(e);o<a.length;o++){var s=wa(a[o],2),u=s[0],c=s[1],l=c.required;"string"===c.type&&u in r&&(r[u]=String(r[u])),l&&!(u in t)&&i.warn("The property ".concat(u," of ").concat(n," context is required; context will not be sent to the intake."))}return r}function Ta(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.customerDataTracker,r=e.propertiesConfig,o=void 0===r?{}:r,i={},a=new ar,s={getContext:function(){return rt(i)},setContext:function(e){"object"===et(e)?(i=jn(ka(e,o,t)),null==n||n.updateCustomerData(i)):s.clearContext(),a.notify()},setContextProperty:function(e,r){i[e]=jn(ka(xa({},e,r),o,t)[e]),null==n||n.updateCustomerData(i),a.notify()},removeContextProperty:function(e){delete i[e],null==n||n.updateCustomerData(i),ka(i,o,t),a.notify()},clearContext:function(){i={},null==n||n.resetCustomerData(),a.notify()},changeObservable:a};return s}var Ea="user",Aa="global context",Ia="view",Ra="_gc_s",Oa=[];function Ma(t,e,n,r){var o=function(t,e,n){return t.storeContextsKey&&q(t.storeContextsKey)?Ra+"_"+e+"_"+n+"_"+t.storeContextsKey:Ra+"_"+e+"_"+n}(t,n,r);function i(){var t=localStorage.getItem(o);return null!==t?JSON.parse(t):{}}return Oa.push(lr(window,ze,(function(t){o===t.key&&e.setContext(i())}))),e.changeObservable.subscribe((function(){localStorage.setItem(o,JSON.stringify(e.getContext()))})),e.setContext(M(i(),e.getContext())),e}var Da=0,Pa=1,La=2;function Na(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:La,e=new Map,n=!1;function r(){if(!n&&t!==Da){var r=t===La?3072:16384,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e.forEach((function(t){o+=t.getBytesCount()})),o>r&&(!function(t){i.warn("Customer data exceeds the recommended ".concat(t/Bn,"KiB threshold."))}(r),n=!0)}}return{createDetachedTracker:function(){var t=Ba((function(){return r(t.getBytesCount())}));return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,Ba(r)),e.get(t)},setCompressionStatus:function(e){t===Da&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach((function(t){return t.stop()})),e.clear()}}}function Ba(t){var e=0,n=Q((function(n){e=zn(wn(n)),t()}),200),r=n.throttled,o=n.cancel,i=function(){o(),e=0};return{updateCustomerData:function(t){V(t)?i():r(t)},resetCustomerData:i,getBytesCount:function(){return e},stop:function(){o()}}}function Fa(){var t="",e=0;return{isAsync:!1,isEmpty:function(){return!t},write:function(n,r){var o=zn(n);e+=o,t+=n,r&&r(o)},finish:function(t){t(this.finishSync())},finishSync:function(){var n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:[]};return t="",e=0,n},estimateEncodedBytesCount:function(t){return t.length}}}function za(t){var e=I({},t);return A(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}function Ua(t){this.map=new WeakMap,t&&t.forEach((function(t){this.map.set(t,1)}),this)}function ja(t,e){e.silentMultipleInit||i.error(t+" is already initialized.")}Ua.prototype.add=function(t){return this.map.set(t,1),this},Ua.prototype.delete=function(t){return this.map.delete(t)},Ua.prototype.has=function(t){return this.map.has(t)};var Ha=1,Va=2,Wa=3,qa="0",$a="1",Ga="2",Qa="3",Ka="4",Xa="5",Ja="6";function Ya(t,e){var n=Ui(t,"rum",(function(e){return function(t,e){var n,r=t.sessionSampleRate,o=t.sessionOnErrorSampleRate,i=t.sessionReplaySampleRate,a=t.sessionReplayOnErrorSampleRate,s=ct(r),u=ct(o),c=ct(i),l=ct(a);!function(t){return t===qa||t===Xa||t===Ja||t===Ka||t===Ga||t===Qa||t===$a}(e)?u||s?s&&c?n=$a:s&&l?n=Qa:!s||c||l?u&&c?n=Ka:u&&l?n=Ja:!u||c||l||(n=Xa):n=Ga:n=qa:n=e;return{trackingType:n,isTracked:Za(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(Ir)})),n.renewObservable.subscribe((function(){e.notify(Ar)})),n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,r=t.newState;if(!e.hasError&&r.hasError){var o=n.findSession();o&&(o.hasError=!0,o.ets=r.ets||mt())}if(!e.forcedSession&&r.forcedSession){var i=n.findSession();i&&(i.isSessionForced=!0)}})),{findTrackedSession:function(t){var e=n.findSession(t);if(e&&(Za(e.trackingType)||e.isSessionForced)){var r=e.trackingType===Xa||e.trackingType===Ka||e.trackingType===Ja,o=Ha;return e.trackingType===$a||e.trackingType===Ka?o=Va:e.trackingType!==Ja&&e.trackingType!==Qa||(o=Wa),{id:e.id,plan:o,errorSessionReplayAllowed:o===Wa,sessionHasError:e.hasError,isErrorSession:r,sessionErrorTimestamp:e.ets,isSessionForced:e.isSessionForced,sessionReplayAllowed:o===Va||o===Wa||e.isSessionForced}}},expire:n.expire,keepSessionAlive:n.expandOrRenewSession,expireObservable:n.expireObservable,sessionStateUpdateObservable:n.sessionStateUpdateObservable,setErrorForSession:function(){return n.updateSessionState({hasError:"1",ets:mt()})},setForcedSession:function(){n.updateSessionState({forcedSession:"1"})}}}function Za(t){return t!==qa}var ts="_gc_usr_id";var es=function(t){return t.sessionStoreStrategyType?(e=t.sessionStoreStrategyType.type===po?function(t){var e=so(ts,t);return e||(e=X(),ao(ts,e,5184e6,t)),e}(t.sessionStoreStrategyType.cookieOptions):function(){var t=localStorage.getItem(ts);return t||(t=X(),localStorage.setItem(ts,t)),t}(),{getId:function(){return e}}):{getId:it};var e};function ns(){var t,e=window;if(e.Zone&&(t=v(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=v(new e.MutationObserver(it),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function rs(t){var e=R(t);return new ar((function(n){var r,o,i,a,s=(r=c,o=rr(os("pushState"),"pushState",(function(t){(0,t.onPostCall)(r)})),i=rr(os("replaceState"),"replaceState",(function(t){(0,t.onPostCall)(r)})),a=lr(window,de,r),{stop:function(){o.stop(),i.stop(),a.stop()}}),u=lr(window,ke,c);function c(){if(e.href!==t.href){var r=R(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return function(){s.stop(),u.stop()}}))}function os(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}var is="initial_document",as=[[Ue,function(t){return is===t}],[je,function(t){return"xmlhttprequest"===t}],[Ve,function(t){return"fetch"===t}],[He,function(t){return"beacon"===t}],[We,function(t,e){return null!==e.match(/\.css$/i)}],[qe,function(t,e){return null!==e.match(/\.js$/i)}],[$e,function(t,e){return It(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[Ge,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[Qe,function(t,e){return It(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function ss(t){var e=t.name;if(!function(t){try{return!!Kr(t)}catch(t){return!1}}(e))return Ke;var n=function(t){var e=Kr(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=Ke;return A(as,(function(e){var o=e[0];if((0,e[1])(t.initiatorType,n))return r=o,!1})),r}function us(){for(var t=L(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function cs(t){return""===t.deliveryType?"other":t.deliveryType}function ls(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}var ds=/[^\u0000-\u007F]/;function fs(t,e){return n=t,(ds.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function ps(t){return 0===t.duration&&t.startTime<t.responseEnd?dt(t.responseEnd-t.startTime):dt(t.duration)}function vs(t){if(gs(t)){var e=t.startTime,n=t.fetchStart,r=t.redirectStart,o=t.redirectEnd,i=t.domainLookupStart,a=t.domainLookupEnd,s=t.connectStart,u=t.secureConnectionStart,c=t.connectEnd,l=t.requestStart,d=t.responseStart,f=t.responseEnd,p={firstbyte:dt(d-l),trans:dt(f-d),downloadTime:ys(e,d,f),firstByteTime:ys(e,l,d)};return d>0&&d<=ht()&&(p.ttfb=dt(d-l)),c!==n&&(p.tcp=dt(c-s),p.connectTime=ys(e,s,c),us(s,u,c)&&(p.ssl=dt(c-u),p.sslTime=ys(e,u,c))),a!==n&&(p.dns=dt(a-i),p.dnsTime=ys(e,i,a)),ms(t)&&(p.redirect=dt(o-r),p.redirectTime=ys(e,r,o)),t.renderBlockingStatus&&(p.renderBlockingStatus=t.renderBlockingStatus),p}}function hs(t){return t.duration>=0}function gs(t){var e=us(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!ms(t)||us(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function ms(t){return t.redirectEnd>t.startTime}function ys(t,e,n){return{duration:dt(n-e),start:dt(e-t)}}function bs(t){return t.startTime<t.responseStart?{size:t.decodedBodySize,encodedBodySize:t.encodedBodySize,decodedBodySize:t.decodedBodySize,transferSize:t.transferSize}:{size:void 0,encodedBodySize:void 0,decodedBodySize:void 0,transferSize:void 0}}function _s(t,e){return e&&!function(t,e){var n=[e.rumEndpoint];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),z(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}var ws=/data:(.+)?(;base64)?,/g;function Ss(t){return!(t.length<=24e3)&&("data:"===t.substring(0,5)&&(t=t.substring(0,24e3),!0))}function Cs(t){return t.match(ws)[0]+"[...]"}function xs(t,e){var n=yt(),r=!1,o=dr(window,[se,Ee,ce,pe,Se],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:ht(),processingEnd:ht(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};t.type===Se?function(t){dr(window,[Ce,xe],(function(e){e.type===Ce&&i(t)}),{once:!0})}(e):i(e)}}),{passive:!0,capture:!0}).stop;return{stop:o};function i(t){if(!r){r=!0,o();var i=t.processingStart-t.startTime;i>=0&&i<yt()-n&&e(t)}}}var ks,Ts="event",Es="first-input",As="largest-contentful-paint",Is="layout-shift",Rs="longtask",Os="long-animation-frame",Ms="navigation",Ds="paint",Ps="resource",Ls="visibility-state";function Ns(t,e){return new ar((function(n){if(window.PerformanceObserver){var r,o,i=function(e){var r=function(t,e){return e.filter((function(e){return!function(t,e){return!(e.entryType!==Ps||_s(t,e.name)&&hs(e))}(t,e)}))}(t,e);r.length>0&&n.notify(r)},a=!0,s=new PerformanceObserver(u((function(t){a?r=h((function(){i(t.getEntries())})):i(t.getEntries())})));try{s.observe(e)}catch(t){if(It([Ps,Ms,Rs,Ds],e.type)){e.buffered&&(r=h((function(){i(performance.getEntriesByType(e.type))})));try{s.observe({entryTypes:[e.type]})}catch(t){return}}}if(a=!1,function(){!ks&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(ks=lr(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})))}(),!Bs(Es)&&e.type===Es){var c=xs(0,(function(t){i([t])}));o=c.stop}return function(){s.disconnect(),o&&o(),g(r)}}}))}function Bs(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function Fs(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=it);var o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=e.subscribe(Pr,(function(t){if(t.type!==nn.VIEW&&n(t))switch(t.type){case nn.ERROR:o.errorCount+=1,r();break;case nn.ACTION:t.action.frustration&&(o.frustrationCount+=t.action.frustration.type.length),o.actionCount+=1,r();break;case nn.LONG_TASK:o.longTaskCount+=1,r();break;case nn.RESOURCE:o.resourceCount+=1,r()}}));return{stop:function(){i.unsubscribe()},eventCounts:o}}var zs=100;function Us(t,e,n,r,o){var i=function(t,e,n){return new ar((function(r){var o,i=[],a=0;i.push(e.subscribe((function(){u()})),Ns(n,{type:Ps}).subscribe((function(t){z(t,(function(t){return!js(n,t.name)}))&&u()})),t.subscribe(Or,(function(t){js(n,t.url)||(void 0===o&&(o=t.requestIndex),a+=1,u())})),t.subscribe(Mr,(function(t){js(n,t.url)||void 0===o||t.requestIndex<o||(a-=1,u())})));var s=rr(window,"open",u).stop;return function(){s(),A(i,(function(t){t.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}))}(t,e,n);return function(t,e,n){var r,o=!1,i=h((function(){c({hadActivity:!1})}),100),a=void 0!==n?h((function(){return c({hadActivity:!0,end:mt()})}),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;g(i),g(r);var n=mt();e||(r=h((function(){c({hadActivity:!0,end:n})}),100))})),u=function(){o=!0,g(i),g(r),g(a),s.unsubscribe()};function c(t){o||(u&&u(),e(t))}return{stop:u}}(i,r,o)}function js(t,e){return U(t.excludedActivityUrls,e)}var Hs=st,Vs=0,Ws=1,qs=2;function $s(t,e){var n,r=[],o=Vs;function i(t){t.stopObservable.subscribe(a),r.push(t),g(n),n=h(s,Hs)}function a(){o===Ws&&function(t,e,n){if(t.every)return t.every(e);for(var r=!0,o=0;o<t.length;o++)if(x.call(t,o)){var i=t[o];if(!e.call(n,i,o,t)){r=!1;break}}return r}(r,(function(t){return t.isStopped()}))&&(o=qs,e(r))}function s(){g(n),o===Vs&&(o=Ws,a())}return i(t),{tryAppend:function(t){return o===Vs&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=100)&&n.timeStamp-e.timeStamp<=Hs))?(s(),!1):(i(t),!0));var e,n,a,u},stop:function(){s()}}}var Gs="data-guance-action-name";function Qs(t,e){return Ks(t,Gs)||e&&Ks(t,e)||eu(t,e,Ys)||eu(t,e,Zs)||""}function Ks(t,e){var n;if(function(){void 0===Js&&(Js="closest"in HTMLElement.prototype);return Js}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return ru(nu(n.getAttribute(e).trim()))}var Xs,Js,Ys=[function(t,e){if(function(){void 0===Xs&&(Xs="labels"in HTMLInputElement.prototype);return Xs}()){if("labels"in t&&t.labels&&t.labels.length>0)return ou(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&Rt(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&ou(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return e.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return ou(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n=n.split(/\s+/),n=F(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=B(n,(function(t){return Boolean(t)})),(n=F(n,(function(t){return ou(t,e)}))).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return ou(t.options[0],e)}],Zs=[function(t,e){return ou(t,e)}],tu=10;function eu(t,e,n){for(var r=t,o=0;o<=tu&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var i=0;i<n.length;i++){var a=(0,n[i])(r,e);if("string"==typeof a){var s=a.trim();if(s)return ru(nu(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,o+=1}}function nu(t){return t.replace(/\s+/g," ")}function ru(t){return t.length>100?Et(t,100)+" [...]":t}function ou(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),o=0;o<r.length;o+=1){var i=r[o];if("innerText"in i){var a=i.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return Ft()===Pt&&r("script, style"),r("["+Gs+"]"),e&&r("["+e+"]"),n}return t.textContent}}var iu,au=[Gs,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],su=[du,function(t){if(t.id&&!lu(t.id))return"#"+j(t.id)}],uu=[du,function(t){if("BODY"===t.tagName)return;if(t.classList.length>0)for(var e=0;e<t.classList.length;e+=1){var n=t.classList[e];if(!lu(n))return j(t.tagName)+"."+j(n)}},function(t){return j(t.tagName)}];function cu(t,e){if(function(t){if("isConnected"in t)return t.isConnected;return t.ownerDocument.documentElement.contains(t)}(t)){for(var n,r=t;r&&"HTML"!==r.nodeName;){var o=pu(r,su,vu,e,n);if(o)return o;n=pu(r,uu,hu,e,n)||gu(fu(r),n),r=r.parentElement}return n}}function lu(t){return/[0-9]/.test(t)}function du(t,e){if(e&&(r=o(e)))return r;for(var n=0;n<au.length;n++){var r;if(r=o(au[n]))return r}function o(e){if(t.hasAttribute(e))return j(t.tagName)+"["+e+'="'+j(t.getAttribute(e))+'"]'}}function fu(t){for(var e=t.parentElement&&t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;var r=j(t.tagName);return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function pu(t,e,n,r,o){for(var i=0;i<e.length;i++){var a=(0,e[i])(t,r);if(a&&n(t,a,o))return gu(a,o)}}function vu(t,e,n){return 1===t.ownerDocument.querySelectorAll(gu(e,n)).length}function hu(t,e,n){var r;if(void 0===n)r=function(t){return t.matches(e)};else{var o=function(){if(void 0===iu)try{document.querySelector(":scope"),iu=!0}catch(t){iu=!1}return iu}()?gu("".concat(e,":scope"),n):gu(e,n);r=function(t){return null!==t.querySelector(o)}}for(var i=t.parentElement.firstElementChild;i;){if(i!==t&&r(i))return!1;i=i.nextElementSibling}return!0}function gu(t,e){return e?t+">"+e:t}function mu(){var t=window.getSelection();return!t||t.isCollapsed}function yu(t){return t.target instanceof Element&&!1!==t.isPrimary}function bu(t,e){if(function(t){if(z(t,(function(t){return t.getUserActivity().selection||t.getUserActivity().scroll})))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=st)return!0;return!1}(t))return e.addFrustration(Ze),z(t,wu)&&e.addFrustration(en),e.hasError()&&e.addFrustration(tn),{isRage:!0};var n=z(t,(function(t){return t.getUserActivity().selection}));return A(t,(function(t){t.hasError()&&t.addFrustration(tn),wu(t)&&!n&&t.addFrustration(en)})),{isRage:!1}}var _u='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function wu(t){if(t.hasPageActivity()||t.getUserActivity().input||t.getUserActivity().scroll)return!1;var e,n,r=t.event.target;return"LABEL"===r.tagName&&r.hasAttribute("for")&&(r=document.getElementById(r.getAttribute("for"))),!r||(n=_u,!((e=r).matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)))}var Su=1e4,Cu=new Map;function xu(t,e){var n=ht();Cu.set(t,e),Cu.forEach((function(t,e){bt(e,n)>1e4&&Cu.delete(e)}))}function ku(t,e,n){var r,o=new Yt({expireDelay:3e5}),i=new ar;t.subscribe(Ar,(function(){o.reset()})),t.subscribe(Tr,p);var a,s,u,c,l,d=(a={onPointerDown:function(r){return function(t,e,n,r){var o,i,a,s,u=(o=r,i=t.actionNameAttribute,a=o.target.getBoundingClientRect(),(s=cu(o.target,i))&&xu(o.timeStamp,s),{type:Je,target:{width:Math.round(a.width),height:Math.round(a.height),selector:s},position:{x:Math.round(o.clientX-a.left),y:Math.round(o.clientY-a.top)},name:Qs(o.target,i)}),c=!1;return Us(e,n,t,(function(t){c=t.hadActivity}),zs),{clickActionBase:u,hadActivityOnPointerDown:function(){return c}}}(n,t,e,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,o,i,a,s,u,c){var l=Eu(e,r,u,a,s);i(l);var d=a&&a.target&&a.target.selector;d&&xu(s.timeStamp,d);var f=Us(e,n,t,(function(t){t.hadActivity&&t.end<l.startClocks.timeStamp?l.discard():t.hadActivity?l.stop(t.end):c()?l.stop(l.startClocks.timeStamp):l.stop()}),Su),p=f.stop,v=e.subscribe(Tr,(function(t){l.stop(t.endClocks.timeStamp)})),h=o.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){v.unsubscribe(),p(),h.unsubscribe()}))}(n,t,e,o,i,v,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1,scroll:!1},l=[lr(window,Se,(function(t){yu(t)&&(s=mu(),c={selection:!1,input:!1,scroll:!1},u=a.onPointerDown(t))}),{capture:!0}),lr(window,Fe,(function(){s&&mu()||(c.selection=!0)}),{capture:!0}),lr(window,Ce,(function(t){if(yu(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),lr(window,fe,(function(){c.scroll=!0}),{capture:!0,passive:!0}),lr(window,Pe,(function(){c.input=!0}),{capture:!0})],{stop:function(){A(l,(function(t){return t.stop()}))}}),f=d.stop;return{stop:function(){p(),i.notify(),f()},actionContexts:{findActionId:function(t){var e=o.findAll(t);if(e&&e.length)return e[e.length-1]},findAllActionId:function(t){return o.findAll(t)}}};function p(){r&&r.stop()}function v(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=$s(t,(function(t){!function(t,e){var n=bu(t,e),r=n.isRage;r?(A(t,(function(t){t.discard()})),e.stop(mt()),e.validate(F(t,(function(t){return t.event})))):(e.discard(),A(t,(function(t){t.validate()})))}(t,e)}))}}}var Tu={ONGOING:0,STOPPED:1,FINALIZED:2};function Eu(t,e,n,r,o){var i,a=X(),s=gt(),u=e.add(a,s.relative),c=Fs({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(D(t.action.ids)?It(t.action.ids,a):t.action.ids===a)}}),l=Tu.ONGOING,d=[],f=new ar;function p(t){l===Tu.ONGOING&&(i=t,l=Tu.STOPPED,i?u.close(pt(i)):u.remove(),c.stop(),f.notify())}return{event:o,stop:p,stopObservable:f,hasError:function(){return c.eventCounts.errorCount>0},hasPageActivity:function(){return void 0!==i},getUserActivity:n,addFrustration:function(t){d.push(t)},startClocks:s,isStopped:function(){return l===Tu.STOPPED||l===Tu.FINALIZED},clone:function(){return Eu(t,e,n,r,o)},validate:function(e){if(p(),l===Tu.STOPPED){var n=c.eventCounts,u=n.resourceCount,f=n.errorCount,v=n.longTaskCount,h=I({type:Je,duration:i&&bt(s.timeStamp,i),startClocks:s,id:a,frustrationTypes:d,counts:{resourceCount:u,errorCount:f,longTaskCount:v},events:Ht(e,[o]),event:o},r);t.notify(wr,h),l=Tu.FINALIZED}},discard:function(){p(),l=Tu.FINALIZED}}}var Au=co,Iu="active",Ru="passive",Ou="hidden",Mu="frozen",Du="terminated";function Pu(t){void 0===t&&(t=500);var e,n=Yt({expireDelay:Au,maxEntries:4e3});Bs(Ls)&&performance.getEntriesByType(Ls).forEach((function(t){o("hidden"===t.name?Ou:Iu,t.startTime)}));o(Lu(),ht());var r=dr(window,[ye,Ie,Re,ge,_e,be,Te],(function(t){o(function(t){if(t.type===be)return Mu;if(t.type===Te)return t.persisted?Mu:Du;return Lu()}(t),t.timeStamp)}),{capture:!0}).stop;function o(t,r){void 0===r&&(r=ht()),t!==e&&(e=t,n.closeActive(r),n.add({state:e,startTime:r},r))}var i={findAll:function(e,r){return function(t,e,n){if(0===t.length)return;return t.slice(-n).reverse().map((function(t){var n=t.state,r=t.startTime;return{state:n,start:ft(bt(e,r))}}))}(n.findAll(e,r),e,t)},wasInPageStateAt:function(t,e){return i.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,r){return n.findAll(e,r).some((function(e){return e.state===t}))},addPageState:o,stop:function(){r(),n.stop()}};return i}function Lu(){return"hidden"===document.visibilityState?Ou:document.hasFocus()?Iu:Ru}function Nu(t,e){var n,r=Bu(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:Gt(ft(t.duration)),frustration:{type:t.frustrationTypes},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_gc:{action:{target:t.target,position:t.position}}}:{action:{loadingTime:(null===(n=t.context)||void 0===n?void 0:n.duration)||0}};return{customerContext:Bu(t)?void 0:t.context,rawRumEvent:M({action:{id:X(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:nn.ACTION,view:{in_foreground:e.wasInPageStateAt(Iu,t.startClocks.relative)}},r),startTime:t.startClocks.relative,domainContext:Bu(t)?{event:t.event,events:t.events}:{}}}function Bu(t){return t.type===Je}var Fu=1,zu=2;function Uu(t,e){var n,r=0,o=[],i=!0,a=0,s=[],u=lr(t,"message",(function(t){var i=t.data;if(!("wrote"!==i.type||i.streamId&&i.streamId!==e)){var a=s[0];a&&(a.id===i.id?(s.shift(),r+=i.additionalBytesCount,o.push(i.result),n=i.trailer,a.writeCallback?a.writeCallback(i.result.byteLength):a.finishCallback&&a.finishCallback()):a.id<i.id&&(u(),jo("Worker responses received out of order.")))}})).stop;function c(){var t=0===o.length?new Uint8Array(0):function(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),r=0,o=0,i=t;o<i.length;o++){var a=i[o];n.set(a,r),r+=a.length}return n}(o.concat(n)),e={rawBytesCount:r,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return r=0,o=[],e}function l(){i||(t.postMessage({action:"reset",streamId:e}),i=!0)}return{isAsync:!0,isEmpty:function(){return i},write:function(n,r){t.postMessage({action:"write",id:a,data:n,streamId:e}),s.push({id:a,writeCallback:r,data:n}),i=!1,a+=1},finish:function(t){l(),s.length?(s.forEach((function(t){delete t.writeCallback})),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map((function(t){return t.data}));return s.length=0,I(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}function ju(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),h=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),l=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},U=function(t,e,a){var n,r,s=new Array(16),h=0;for(n=1;n<=i;n++)s[n]=h=h+a[n-1]<<1;for(r=0;r<=e;r++){var l=t[2*r+1];0!==l&&(t[2*r]=A(s[l]++,l))}},I=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},B=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},E=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},S=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&E(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!E(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},C=function(t,e,n){var r,i,l,_,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(l=f[i],x(t,l+a+1,e),0!==(_=s[l])&&(i-=c[l],z(t,i,_)),r--,l=y(r),x(t,l,n),0!==(_=h[l])&&(r-=v[l],z(t,r,_)))}while(o<t.last_lit);x(t,256,e)},D=function(t,e){var a,n,r,s=e.dyn_tree,h=e.stat_desc.static_tree,l=e.stat_desc.has_stree,_=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<_;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,l&&(t.static_len-=h[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)S(t,s,a);r=_;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,S(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,h,l,_=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(_[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=_[2*_[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),_[2*n+1]=s,n>o||(t.bl_count[s]++,h=0,n>=c&&(h=f[n-c]),l=_[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(_[2*r+1]!==s&&(t.opt_len+=(s-_[2*r+1])*_[2*r],_[2*r+1]=s),n--)}}(t,e),U(s,o,t.bl_count)},j=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},M=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{x(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),h--),x(t,16,t.bl_tree),z(t,h-3,2)):h<=10?(x(t,17,t.bl_tree),z(t,h-3,3)):(x(t,18,t.bl_tree),z(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},L=!1,T=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){B(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},H=function(t,e,n,r){var i,s,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),h=function(t){var e;for(j(t,t.dyn_ltree,t.l_desc.max_code),j(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*_[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?T(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),C(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*_[r]+1],3);M(t,t.dyn_ltree,e-1),M(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),C(t,t.dyn_ltree,t.dyn_dtree)),I(t),r&&B(t)},R={_tr_init:function(t){L||(!function(){var t,e,a,_,m,y=new Array(16);for(a=0,_=0;_<28;_++)for(c[_]=a,t=0;t<1<<s[_];t++)f[a++]=_;for(f[a-1]=_,m=0,_=0;_<16;_++)for(v[_]=m,t=0;t<1<<h[_];t++)u[m++]=_;for(m>>=7;_<r;_++)for(v[_]=m<<7,t=0;t<1<<h[_]-7;t++)u[256+m++]=_;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(U(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,h,0,r,i),w=new b(new Array(0),l,0,19,7)}(),L=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,I(t)},_tr_stored_block:T,_tr_flush_block:H,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},K=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},N=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=N,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return~t},q={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},F=0,G=2,J=3,P=4,Q=0,V=1,W=-1,X=0,Y=8,Z=R._tr_init,$=R._tr_stored_block,tt=R._tr_flush_block,et=R._tr_tally,at=R._tr_align,nt=F,rt=1,it=J,st=P,ht=5,lt=Q,_t=V,ot=-2,dt=-3,ut=-5,ft=W,ct=1,pt=2,gt=3,wt=4,vt=X,bt=2,mt=Y,yt=258,kt=262,zt=103,xt=113,At=666,Ut=function(t,e){return t.msg=q[e],e},It=function(t){return(t<<1)-(t>4?9:0)},Bt=function(t){for(var e=t.length;--e>=0;)t[e]=0},Et=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},St=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Ct=function(t,e){tt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Dt=function(t,e){t.pending_buf[t.pending++]=e},jt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Mt=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-kt?t.strstart-(t.w_size-kt):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+yt,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=yt-(u-i),i=u-yt,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead},Lt=function(t){var e,a,n,r,i,s,h,l,_,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-kt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,h=t.window,l=t.strstart+t.lookahead,_=r,o=void 0,(o=s.avail_in)>_&&(o=_),a=0===o?0:(s.avail_in-=o,h.set(s.input.subarray(s.next_in,s.next_in+o),l),1===s.state.wrap?s.adler=K(s.adler,h,o,l):2===s.state.wrap&&(s.adler=O(s.adler,h,o,l)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Et(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Et(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<kt&&0!==t.strm.avail_in)},Tt=function(t,e){for(var a,n;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a)),t.match_length>=3)if(n=et(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Et(t,t.ins_h,t.window[t.strstart+1]);else n=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2},Ht=function(t,e){for(var a,n,r;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a),t.match_length<=5&&(t.strategy===ct||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=et(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ct(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=et(t,0,t.window[t.strstart-1]))&&Ct(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=et(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Kt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Lt(t),0===t.lookahead&&e===nt)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Ct(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-kt&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ct(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Tt),new Rt(4,5,16,8,Tt),new Rt(4,6,32,32,Tt),new Rt(4,4,16,16,Ht),new Rt(8,16,32,32,Ht),new Rt(8,16,128,128,Ht),new Rt(8,32,128,256,Ht),new Rt(32,128,258,1024,Ht),new Rt(32,258,258,4096,Ht)];function Nt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Bt(this.dyn_ltree),Bt(this.dyn_dtree),Bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Bt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ot=function(t){if(!t||!t.state)return Ut(t,ot);t.total_in=t.total_out=0,t.data_type=bt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:xt,t.adler=2===e.wrap?0:1,e.last_flush=nt,Z(e),lt},qt=function(t){var e,a=Ot(t);return a===lt&&((e=t.state).window_size=2*e.w_size,Bt(e.head),e.max_lazy_match=Kt[e.level].max_lazy,e.good_match=Kt[e.level].good_length,e.nice_match=Kt[e.level].nice_length,e.max_chain_length=Kt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Ft=function(t,e,a,n,r,i){if(!t)return ot;var s=1;if(e===ft&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==mt||n<8||n>15||e<0||e>9||i<0||i>wt)return Ut(t,ot);8===n&&(n=9);var h=new Nt;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,qt(t)},Gt={deflateInit:function(t,e){return Ft(t,e,mt,15,8,vt)},deflateInit2:Ft,deflateReset:qt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?ot:(t.state.gzhead=e,lt):ot},deflate:function(t,e){var a,n;if(!t||!t.state||e>ht||e<0)return t?Ut(t,ot):ot;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===At&&e!==st)return Ut(t,0===t.avail_out?ut:ot);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Dt(r,31),Dt(r,139),Dt(r,8),r.gzhead?(Dt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Dt(r,255&r.gzhead.time),Dt(r,r.gzhead.time>>8&255),Dt(r,r.gzhead.time>>16&255),Dt(r,r.gzhead.time>>24&255),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Dt(r,255&r.gzhead.extra.length),Dt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,3),r.status=xt);else{var s=mt+(r.w_bits-8<<4)<<8;s|=(r.strategy>=pt||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=xt,jt(r,s),0!==r.strstart&&(jt(r,t.adler>>>16),jt(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending!==r.pending_buf_size));)Dt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=zt)}else r.status=zt;if(r.status===zt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&St(t),r.pending+2<=r.pending_buf_size&&(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),t.adler=0,r.status=xt)):r.status=xt),0!==r.pending){if(St(t),0===t.avail_out)return r.last_flush=-1,lt}else if(0===t.avail_in&&It(e)<=It(i)&&e!==st)return Ut(t,ut);if(r.status===At&&0!==t.avail_in)return Ut(t,ut);if(0!==t.avail_in||0!==r.lookahead||e!==nt&&r.status!==At){var h=r.strategy===pt?function(t,e){for(var a;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===nt)return 1;break}if(t.match_length=0,a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===gt?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=yt){if(Lt(t),t.lookahead<=yt&&e===nt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+yt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=yt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=et(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):Kt[r.level].func(r,e);if(3!==h&&4!==h||(r.status=At),1===h||3===h)return 0===t.avail_out&&(r.last_flush=-1),lt;if(2===h&&(e===rt?at(r):e!==ht&&($(r,0,0,!1),e===it&&(Bt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),St(t),0===t.avail_out))return r.last_flush=-1,lt}return e!==st?lt:r.wrap<=0?_t:(2===r.wrap?(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),Dt(r,t.adler>>16&255),Dt(r,t.adler>>24&255),Dt(r,255&t.total_in),Dt(r,t.total_in>>8&255),Dt(r,t.total_in>>16&255),Dt(r,t.total_in>>24&255)):(jt(r,t.adler>>>16),jt(r,65535&t.adler)),St(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?lt:_t)},deflateEnd:function(t){if(!t||!t.state)return ot;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==zt&&e!==xt&&e!==At?Ut(t,ot):(t.state=null,e===xt?Ut(t,dt):lt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return ot;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return ot;if(1===r&&(t.adler=K(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(Bt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=Et(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,Lt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,lt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Jt=new Uint8Array(256),Pt=0;Pt<256;Pt++)Jt[Pt]=Pt>=252?6:Pt>=248?5:Pt>=240?4:Pt>=224?3:Pt>=192?2:1;Jt[254]=Jt[254]=1;var Qt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Vt=Object.prototype.toString,Wt=F,Xt=G,Yt=J,Zt=P,$t=Q,te=V,ee=W,ae=X,ne=Y;function re(){this.options={level:ee,method:ne,chunkSize:16384,windowBits:15,memLevel:8,strategy:ae};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Qt,this.strm.avail_out=0;var e=Gt.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==$t)throw new Error(q[e]);if(t.header&&Gt.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Vt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Gt.deflateSetDictionary(this.strm,a))!==$t)throw new Error(q[e]);this._dict_set=!0}}function ie(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function se(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}re.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Zt:Wt,"[object ArrayBuffer]"===Vt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Xt||n===Yt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Gt.deflate(r,n))===te)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Gt.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===$t;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},re.prototype.onData=function(t){this.chunks.push(t)},re.prototype.onEnd=function(t){t===$t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"3.3.1"};case"write":var n=e.get(a.streamId);n||(n=new re,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,G),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:se(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){ie(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){ie(e,t)}}()}();'])))}var Hu=0,Vu=1,Wu=2,qu=3,$u={status:Hu};function Gu(t,e,n,r){switch(void 0===r&&(r=ju),$u.status===Hu&&function(t,e,n){void 0===n&&(n=ju);try{var r=n(t),o=lr(r,"error",(function(n){Ku(t,e,n)})),a=lr(r,"message",(function(t){var e,n=t.data;"errored"===n.type?Ku(n.error,n.streamId):"initialized"===n.type&&(e=n.version,$u.status===Vu&&($u={status:qu,worker:$u.worker,version:e,stop:$u.stop}))}));r.postMessage({action:"init"}),h((function(){return function(t){$u.status===Vu&&(i.error(t+" failed to start: a timeout occurred while initializing the Worker"),$u.initializationFailureCallbacks.forEach((function(t){t()})),$u={status:Wu})}(e)}),1e4),$u={status:Vu,worker:r,stop:function(){o.stop(),a.stop()},initializationFailureCallbacks:[]}}catch(n){Ku(t,e,n)}}(t,e,r),$u.status){case Vu:return $u.initializationFailureCallbacks.push(n),$u.worker;case qu:return $u.worker}}function Qu(){return $u.status}function Ku(t,e,n,r){if($u.status===Vu){var o;if(i.error(e+" failed to start: an error occurred while creating the Worker:",n),n instanceof Event||n instanceof Error&&(It(a=n.message,"Content Security Policy")||It(a,"requires 'TrustedScriptURL'")))o=t.workerUrl?"Please make sure the Worker URL "+t.workerUrl+" is correct and CSP is correctly configured.":"Please make sure CSP is correctly configured.",i.error(o);else Ho(n);$u.status===Vu&&$u.initializationFailureCallbacks.forEach((function(t){t()})),$u={status:Wu}}else Ho(n,{worker_version:$u.status===qu&&$u.version,stream_id:r});var a}function Xu(t,e,n,r,o,i,a){var s=function(t,e,n,r,o,i){void 0===i&&(i=fa);var a=function(t,e){return i({encoder:e.encoder,request:ta(e.endpoint,t.batchBytesLimit,t.retryMaxSize,n),flushController:va({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:r,sessionExpireObservable:o}),messageBytesLimit:t.messageBytesLimit,sendContentTypeByJson:t.sendContentTypeByJson})}(t,e);return{flushObservable:a.flushController.flushObservable,add:function(t){a.add(t)},upsert:function(t,e){a.upsert(t,e)},stop:function(){a.stop()}}}(t,{endpoint:t.rumEndpoint,encoder:a(zu)},r,o,i);return e.subscribe(Pr,(function(t){t.type===nn.VIEW?s.upsert(t,t.view.id):s.add(t)})),n.subscribe((function(t){s.add(t)})),s}function Ju(t){return Ju="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},Ju(t)}function Yu(t){var e=function(t,e){if("object"!=Ju(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ju(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ju(e)?e:e+""}function Zu(t,e,n){return(e=Yu(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ec(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tc(Object(n),!0).forEach((function(e){Zu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var nc,rc="synthetics",oc="user",ic={"view.url":"string","view.referrer":"string"},ac={context:"object"},sc={service:"string",version:"string"},uc={};function cc(t,e,n,r,o,a,s,u,c,l){uc[nn.VIEW]=ec(ec({},ac),ic),uc[nn.ERROR]=I({"error.message":"string","error.stack":"string","error.resource.url":"string"},ac,ic,sc),uc[nn.RESOURCE]=I({"resource.url":"string"},ac,ic,sc),uc[nn.ACTION]=I({"action.target.name":"string"},ac,ic,sc),uc[nn.LONG_TASK]=I({},ac,ic);var d={};d[nn.ERROR]=$r(nn.ERROR,t.eventRateLimiterThreshold,l),d[nn.ACTION]=$r(nn.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(Dr,(function(l){var f,p=l.startTime,v=l.rawRumEvent,h=l.savedCommonContext,g=l.customerContext,m=l.domainContext,y=o.findView(p),b=a.findUrl(p),_=n.findTrackedSession(p);if((!_||!_.isErrorSession||_.sessionHasError)&&(_&&y&&b)){var w=s.findActionId(p),S=s.findAllActionId(p),C=h||c(),x={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(yt()-(xt()+performance.now())),configuration:{session_sample_rate:lt(t.sessionSampleRate,3),session_replay_sample_rate:lt(t.sessionReplaySampleRate,3),session_on_error_sample_rate:lt(t.sessionOnErrorSampleRate,3),session_replay_on_error_sample_rate:lt(t.sessionReplayOnErrorSampleRate,3)}},terminal:{type:"web"},application:{id:t.applicationId},device:ie,env:t.env||"",service:y.service||t.service||"browser",version:y.version||t.version||"",source:"browser",date:mt(),user:{id:r.getId(),is_signin:"F",is_login:!1},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?oc:rc,id:_.id,is_forced_session:_.isSessionForced},view:{id:y.id,name:y.name||b.path,url:b.url,referrer:b.referrer,host:b.host,path:b.path,pathGroup:b.pathGroup,pathname:b.pathname,urlQuery:b.urlQuery},action:(f=v,-1!==[nn.ERROR,nn.RESOURCE,nn.LONG_TASK].indexOf(f.type)&&w?{id:w,ids:S}:void 0),display:u.get()},k=Ut(M(x,y,v)),T=M({},C.context,y.context,g);V(T)||(k.context=T),"has_replay"in k.session||(k.session.has_replay=C.hasReplay),_.errorSessionReplayAllowed&&(k.session.has_replay=k.session.has_replay&&_.sessionHasError),"view"===k.type&&(k.session.sampled_for_error_replay=_.errorSessionReplayAllowed,k.session.sampled_for_error_session=_.isErrorSession,k.session.error_timestamp_for_session=_.sessionErrorTimestamp),V(C.user)||(k.user=M({is_signin:"T",is_login:!0},C.user)),function(t,e,n,r){if(e){var o=Vr(t,uc[t.type],(function(t){return e(t,n)}));if(!1===o&&t.type!==nn.VIEW)return!1;!1===o&&i.warn("Can't dismiss view events using beforeSend!")}var a=!1;r[t.type]&&(a=r[t.type].isLimitReached());return!a}(k,t.beforeSend,m,d)&&(V(k.context)&&delete k.context,e.notify(Pr,k))}}))}function lc(){return nc||(nc=new ar((function(t){var e=Q((function(){t.notify(dc())}),200).throttled;return lr(window,Me,e,{capture:!0,passive:!0}).stop}))),nc}function dc(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var fc=co;var pc=co;function vc(e,n,r,o){var i=new ar;!function(e){var n=cr([t.error]).subscribe((function(t){e.notify(t.error)}))}(i),function(t){Nn((function(e,n){t.notify(Jn({stackTrace:e,originalError:n,startClocks:gt(),nonErrorPrefix:yn,source:Qn,handling:mn}))}))}(i),function(t,e){var n=hr(0,[vr,pr]).subscribe((function(t){e.notify({startClocks:gt(),message:t.message,stack:t.stack,type:t.type,source:Xn,handling:mn})}))}(0,i);var a=r.findTrackedSession(),s=a&&a.isErrorSession&&a.sessionHasError;return a&&a.isErrorSession&&e.subscribe(Ar,(function(){s=!1})),i.subscribe((function(t){a&&a.isErrorSession&&!s&&(r.setErrorForSession(),s=!0),e.notify(Lr,{error:t})})),function(t,e){return t.subscribe(Lr,(function(n){t.notify(Dr,I({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:X(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser"},type:nn.ERROR,view:{in_foreground:e.wasInPageStateAt(Iu,t.startClocks.relative)}};return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(n.error,e)))})),{addError:function(e,n){var r=e.error,o=Jn({stackTrace:r instanceof Error?kn(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:bn,source:Kn,handling:gn});t.notify(Lr,{customerContext:e.context,savedCommonContext:n,error:o})}}}(e,o)}function hc(){if(Bs(Ms)){var t=performance.getEntriesByType(Ms)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(G(e[n])){var r=n,o=e[r];t[r]=0===o?0:pt(o)}return t}(),n=I({entryType:Ms,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return I({},n,{toJSON:void 0})}},e);return n}function gc(t,e,n){return void 0===n&&(n=hc),function(t){var e,n=Oi("complete",(function(){e=h((function(){t()}))}));return{stop:function(){n.stop(),g(e)}}}((function(){var t=n();(function(t){return t.loadEventEnd<=0})(t)||e(function(t){return{fetchStart:t.fetchStart,responseEnd:t.responseEnd,domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,loadEventEnd:t.loadEventEnd,loadEventStart:t.loadEventStart,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domContentLoadedEventStart:t.domContentLoadedEventStart,firstByte:t.responseStart>=0&&t.responseStart<=ht()?t.responseStart:void 0}}(t))}))}function mc(t,e){if(void 0===e&&(e=window),"hidden"===document.visibilityState&&!document.prerendering)return{getTimeStamp:function(){return 0},stop:it};if(Bs(Ls)&&!document.prerendering){var n=performance.getEntriesByType(Ls).filter((function(t){return"hidden"===t.name})).find((function(e){return e.startTime>=t.relative}));if(n)return{getTimeStamp:function(){return n.startTime},stop:it}}var r=1/0,o=dr(e,[Te,ge,me],(function(t){t.type!==Te&&"hidden"!==document.visibilityState||(r=t.timeStamp,o())}),{capture:!0}).stop;return{getTimeStamp:function(){return r},stop:function(){o()}}}function yc(t,e,n,r){var o={},i=gc(0,(function(t){n(t.loadEvent),o.navigationTimings=t,r()})),a=mc(e),s=i.stop,u=function(t,e,n){return{stop:Ns(t,{type:Ds,buffered:!0}).subscribe((function(t){var r=Rt(t,(function(t){return t.entryType===Ds&&"first-contentful-paint"===t.name&&t.startTime<e.getTimeStamp()&&t.startTime<6e5}));r&&n(r.startTime)})).unsubscribe}}(t,a,(function(t){o.firstContentfulPaint=t,r()})),c=u.stop,l=function(t,e,n,r){var o=1/0,i=dr(n,[Se,ce],(function(t){o=t.timeStamp}),{capture:!0,once:!0}).stop,a=0,s=Ns(t,{type:As,buffered:!0}).subscribe((function(n){var i,s=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(n,(function(t){return t.entryType===As&&t.startTime<o&&t.startTime<e.getTimeStamp()&&t.startTime<6e5&&t.size>a}));s&&(s.element&&(i=cu(s.element,t.actionNameAttribute)),r({value:s.startTime,targetSelector:i}),a=s.size)}));return{stop:function(){i(),s.unsubscribe()}}}(t,a,window,(function(t){o.largestContentfulPaint=t,r()})),d=l.stop,f=function(t,e,n){var r=Ns(t,{type:Es,buffered:!0}).subscribe((function(r){var o=Rt(r,(function(t){return t.entryType===Es&&t.startTime<e.getTimeStamp()}));if(o){var i,a=bt(o.startTime,o.processingStart);o.target&&Ti(o.target)&&(i=cu(o.target,t.actionNameAttribute)),n({delay:a>=0?a:0,time:o.startTime,targetSelector:i})}}));return{stop:function(){r.unsubscribe()}}}(t,a,(function(t){o.firstInput=t,r()})),p=f.stop;return{stop:function(){s(),c(),d(),p(),a.stop()},initialViewMetrics:o}}var bc=st;function _c(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=bc);return new ar((function(t){function n(){var e,n,r,o;t.notify((e=Di(),n=dc().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),o=Math.round(n+e),{scrollHeight:r,scrollDepth:o,scrollTop:e}))}if(window.ResizeObserver){var r=Q(n,e,{leading:!1,trailing:!0}),o=document.scrollingElement||document.documentElement,i=new ResizeObserver(u(r.throttled));o&&i.observe(o);var a=lr(window,fe,r.throttled,{passive:!0});return function(){r.cancel(),i.unobserve(o),a.stop()}}}))}());var o=0,i=0,a=0,s=r.subscribe((function(t){var r=t.scrollDepth,s=t.scrollTop,u=t.scrollHeight,c=!1;if(r>o&&(o=r,c=!0),u>i){i=u;var l=ht();a=bt(e.relative,l),c=!0}c&&n({maxDepth:Math.min(o,i),maxDepthScrollTop:s,maxScrollHeight:i,maxScrollHeightTime:a})}));return{stop:function(){return s.unsubscribe()}}}function wc(t,e,n){if(!Tc())return{stop:it};var r,o,i=0;n({value:0});var a=function(){var t,e,n=0,r=0;return{update:function(o){var i;return void 0===t||o.startTime-e>=kc||o.startTime-t>=5*xc?(t=e=o.startTime,r=n=o.value,i=!0):(n+=o.value,e=o.startTime,(i=o.value>r)&&(r=o.value)),{cumulatedValue:n,isMaxValue:i}}}}(),s=Ns(t,{type:Is,buffered:!0}).subscribe((function(s){for(var u=0,c=s;u<c.length;u++){var l=c[u];if(!(l.hadRecentInput||l.startTime<e)){var d=a.update(l),f=d.cumulatedValue;if(d.isMaxValue){var p=Sc(l.sources);r=p?new WeakRef(p):void 0,o=bt(e,l.startTime)}if(f>i){i=f;p=r&&r.deref();n({value:lt(i,4),targetSelector:p&&cu(p,t.actionNameAttribute),time:o})}}}}));return{stop:function(){s.unsubscribe()}}}function Sc(t){if(t){var e=Rt(t,(function(t){return!!t.node&&Ti(t.node)}));return e&&e.node}}var Cc,xc=5e3,kc=st;function Tc(){return Bs(Is)&&"WeakRef"in window}var Ec=0,Ac=1/0,Ic=0;var Rc=function(){return Cc?Ec:window.performance.interactionCount||0};function Oc(t,e,n){if(!(Bs("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:it,stop:it};var r,o,i=function(t){"interactionCount"in performance||Cc||(Cc=new window.PerformanceObserver(u((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(Ac=Math.min(Ac,e.interactionId),Ic=Math.max(Ic,e.interactionId),Ec=(Ic-Ac)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===an?0:Rc(),n={stopped:!1};function r(){return Rc()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=i.getViewInteractionCount,s=i.stopViewInteractionCount,c=1/0,l=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(10)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),o=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>o.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(a),d=-1;function f(n){for(var i=0,a=n;i<a.length;i++){var s=a[i];s.interactionId&&s.startTime>=e&&s.startTime<=c&&l.process(s)}var u,f,p=l.estimateP98Interaction();p&&p.duration!==d&&(d=p.duration,o=bt(e,p.startTime),u=p.startTime,f=Cu.get(u),Cu.delete(u),!(r=f)&&p.target&&Ti(p.target)&&(r=cu(p.target,t.actionNameAttribute)))}var p=Ns(t,{type:Es,buffered:!0}).subscribe(f),v=Ns(t,{type:Ts,durationThreshold:40,buffered:!0}).subscribe(f);return{getInteractionToNextPaint:function(){return d>=0?{value:Math.min(d,6e4),targetSelector:r,time:o}:a()?{value:0}:void 0},setViewEnd:function(t){c=t,s()},stop:function(){v.unsubscribe(),p.unsubscribe()}}}function Mc(t,e,n,r,o,i){var a={},s=function(t,e,n,r,o,i){var a=r===an,s=!0,u=[],c=mc(o);function l(){if(!s&&!a&&u.length>0){var t=Math.max.apply(Math,u);t<c.getTimeStamp()-o.relative&&i(t)}}var d=Us(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(bt(o.timeStamp,t.end)),l())})).stop;return{setLoadEvent:function(t){a&&(a=!1,u.push(t),l())},stop:function(){d(),c.stop(),s&&(s=!1,l())}}}(t,e,n,o,i,(function(t){a.loadingTime=t,r()})),u=s.stop,c=s.setLoadEvent,l=_c(0,i,(function(t){a.scroll=t})).stop,d=wc(n,i.relative,(function(t){a.cumulativeLayoutShift=t,r()})).stop,f=Oc(n,i.relative,o),p=f.stop,v=f.getInteractionToNextPaint;return{stop:function(){u(),d(),l()},stopINPTracking:p,setLoadEvent:c,setViewEnd:f.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=v(),a}}}var Dc,Pc=3e5,Lc=3e5;function Nc(t,e,n,r,o,i,a){var s=new Set;function u(o,i,a){var u=function(t,e,n,r,o,i,a){void 0===i&&(i=gt());var s,u,c,l,d,f=X(),p=new ar,v={},g=0,b=R(r),_=Ta(),w=!0;a&&(u=a.name,c=a.service,l=a.version,d=a.context);d&&_.setContext(d);var S={id:f,name:u,startClocks:i,service:c,version:l};t.notify(Sr,S),t.notify(Cr,S);var C=Q(V,3e3,{leading:!1}),x=C.throttled,k=C.cancel,T=Mc(t,e,n,H,o,i),E=T.setLoadEvent,A=T.stop,I=T.getCommonViewMetrics,O=T.stopINPTracking,M=T.setViewEnd,D=o===an?yc(n,i,E,H):{stop:it,initialViewMetrics:{}},P=D.stop,L=D.initialViewMetrics,N=function(t,e,n){var r=Fs({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,f,H),B=N.stop,F=N.eventCounts,z=m(V,Pc),U=t.subscribe(Rr,(function(t){t.reason===xi.UNLOADING&&V()}));function j(){t.notify(kr,{id:f,name:u,context:_.getContext(),startClocks:i})}function H(){j(),x()}function V(){k(),j(),g+=1;var e=void 0===s?mt():s.timeStamp;t.notify(xr,{customTimings:v,documentVersion:g,id:f,name:u,service:c,version:l,context:_.getContext(),loadingType:o,location:b,startClocks:i,commonViewMetrics:I(),initialViewMetrics:L,duration:bt(i.timeStamp,e),isActive:void 0===s,sessionIsActive:w,eventCounts:F})}V(),_.changeObservable.subscribe(H);var W={name:u,service:c,version:l,contextManager:_,stopObservable:p,end:function(e){s||(s=Ht(e&&e.endClocks,gt()),w=Ht(e&&e.sessionIsActive,!0),t.notify(Tr,{endClocks:s}),t.notify(Er,{endClocks:s}),y(z),M(s.relative),A(),U.unsubscribe(),V(),h((function(){W.stop()}),Lc))},stop:function(){P(),B(),O(),p.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<31536e6}(e)?e:bt(i.timeStamp,e);v[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");e!==t&&console.warn("Invalid timing name: "+t+", sanitized to: "+e);return e}(t)]=n,H()}},setViewName:function(t){u=t,V()}};return W}(e,n,r,t,o,i,a);return s.add(u),u.stopObservable.subscribe((function(){s.delete(u)})),u}var c,l=u(an,_t(),a);return e.subscribe(Ar,(function(){l=u(sn,void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})})),e.subscribe(Ir,(function(){l.end({sessionIsActive:!1})})),i&&(c=function(t){return t.subscribe((function(t){var e,n,r,o,i=t.oldLocation,a=t.newLocation;if(n=a,(e=i).pathname!==n.pathname||(r=n.hash,!((o=r.substr(1))&&document.getElementById(o)||$t(n.hash)===$t(e.hash))))return l.end(),void(l=u(sn))}))}(o)),{addTiming:function(t,e){void 0===e&&(e=mt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(sn,e,t)},setViewContext:function(t){l.contextManager.setContext(t)},setViewContextProperty:function(t,e){l.contextManager.setContextProperty(t,e)},setViewName:function(t){l.setViewName(t)},getViewContext:function(){return l.contextManager.getContext()},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach((function(t){t.stop()}))}}}function Bc(t,e,n,r,o,i,a,s){return t.subscribe(xr,(function(n){t.notify(Dr,function(t,e,n,r){var o=n.getReplayStats(t.id),i=r.findAll(t.startClocks.relative,t.duration),a={_gc:{document_version:t.documentVersion,replay_stats:o,page_states:i,view_update_time:t.documentVersion},date:t.startClocks.timeStamp,type:nn.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:Tt(t.commonViewMetrics,"cumulativeLayoutShift.value"),cumulative_layout_shift_time:Tt(t.commonViewMetrics,"cumulativeLayoutShift.time"),cumulative_layout_shift_target_selector:Tt(t.commonViewMetrics,"cumulativeLayoutShift.targetSelector"),first_byte:ft(Tt(t.initialViewMetrics,"navigationTimings.firstByte")),dom_complete:ft(Tt(t.initialViewMetrics,"navigationTimings.domComplete")),dom_content_loaded:ft(Tt(t.initialViewMetrics,"navigationTimings.domContentLoaded")),dom_interactive:ft(Tt(t.initialViewMetrics,"navigationTimings.domInteractive")),error:{count:t.eventCounts.errorCount},first_contentful_paint:ft(Tt(t.initialViewMetrics,"firstContentfulPaint")),first_input_delay:ft(Tt(t.initialViewMetrics,"firstInput.delay")),first_input_time:ft(Tt(t.initialViewMetrics,"firstInput.time")),first_input_target_selector:Tt(t.initialViewMetrics,"firstInput.targetSelector"),interaction_to_next_paint:ft(Tt(t.commonViewMetrics,"interactionToNextPaint.value")),interaction_to_next_paint_target_selector:Tt(t.commonViewMetrics,"interactionToNextPaint.targetSelector"),is_active:t.isActive,name:t.name,largest_contentful_paint:ft(Tt(t.initialViewMetrics,"largestContentfulPaint.value")),largest_contentful_paint_element_selector:Tt(t.initialViewMetrics,"largestContentfulPaint.targetSelector"),load_event:ft(Tt(t.initialViewMetrics,"navigationTimings.loadEvent")),loading_time:Gt(ft(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:ft(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:ft(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!o||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};V(t.customTimings)||(a.view.custom_timings=(s=t.customTimings,u=ft,c={},A(s,(function(t,e){c[e]=u(t)})),c));var s,u,c;return a=M(a,{view:Fc(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,i))})),Nc(n,t,r,e,o,!e.trackViewsManually,s)}function Fc(t){if(t){var e=t.fetchStart,n=t.responseEnd,r=t.domInteractive,o=t.domContentLoaded,i=t.domComplete,a=t.loadEventEnd,s=t.loadEventStart,u=t.domContentLoadedEventEnd,c={};if(G(n)&&G(e)&&n!==e&&n>e){c.fpt=ft(n-e);var l=parseInt((n-e)/1e3);c.apdexLevel=l>9?9:l}return G(r)&&G(e)&&r!==e&&r>e&&(c.tti=ft(r-e)),G(o)&&G(e)&&o!==e&&o>e&&(c.dom_ready=ft(o-e)),G(a)&&G(e)&&a!==e&&a>e&&(c.load=ft(a-e)),G(s)&&G(u)&&s!==u&&s>u&&(c.resource_load_time=ft(s-u)),G(i)&&G(r)&&i!==r&&i>r&&(c.dom=ft(i-r)),c}}function zc(){this.buffer=new Uint8Array(8),Uc().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function Uc(){return window.crypto||window.msCrypto}function jc(t){var e=new Uint8Array(t);Uc().getRandomValues(e);for(var n=[],r=0;r<e.length;r+=1){var o=e[r].toString(16);n.push(1===o.length?"0"+o:o)}return n.join("")}function Hc(t,e){if("string"==typeof t){var n=t.toLowerCase();if(-1!==e.indexOf(n.length))return/^[0-9a-f]+$/.test(n)?n:void 0}}function Vc(t,e){if(this._spanId=new zc,this._traceId=new zc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Wc(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function qc(t,e,n){if(this._spanId=Wc(),this._traceId=Wc(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=Y(e).getParse(),this._traceSampled=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function $c(t,e){if(this._traceId=t.traceId128Bit?jc(16):jc(8),this._spanId=jc(8),this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=Hc(t.generateTraceId(),[16,32]);n&&(this.customTraceId=n)}}function Gc(t,e){if(this._traceId=jc(8),this._spanId=jc(8),this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=Hc(t.generateTraceId(),[16,32]);n&&(this.customTraceId=n)}}function Qc(t,e){if(this._traceId=t.traceId128Bit?jc(16):jc(8),this._spanId=jc(8),this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=Hc(t.generateTraceId(),[16,32]);n&&(this.customTraceId=n)}}function Kc(t,e,n){if(this._traceId=new zc,this._spanId=new zc,this._traceSampled=e,this.isHexTraceId=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function Xc(t,e){return 100===e||0!==e&&(Dc&&t===Dc.sessionId?Dc.decision:(n=window.BigInt?function(t,e){var n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000");return Number(t*n%r)<=e/100*Number(r)}(BigInt("0x".concat(t.split("-")[4])),e):ct(e),Dc={sessionId:t,decision:n},n));var n}function Jc(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Yc(t,e,n,r){var o=n.findTrackedSession();if(o){var i=Rt(t.allowedTracingUrls,(function(t){return U([t.match],e.url,!0)}));if(i){var a,s=Xc(o.id,t.tracingSampleRate);switch(i.traceType){case cn:a=new Vc(t,s);break;case vn:a=new qc(t,e.url,s);break;case ln:a=new Qc(t,s);break;case hn:a=new $c(t,s);break;case fn:a=new Kc(t,s);break;case pn:a=new Kc(t,s,!0);break;case dn:a=new Gc(t,s)}if(a&&a.isTracingSupported()){e.traceId=a.getTraceId(),e.spanId=a.getSpanId(),e.traceSampled=s;var u=a.makeTracingHeaders();if(t.injectTraceHeader){var c=t.injectTraceHeader(R(e));"object"===et(c)&&A(c,(function(t,e){"string"===et(t)&&(u[e]=t)}))}r(u)}}}}zc.prototype={toString:function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var o=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(o/t),r=(o%t).toString(t)+r}while(e||n);return r},toDecimalString:function(){return this.toString(10)},toPaddedHexadecimalString:function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},readInt32:function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]}},Vc.prototype={isTracingSupported:function(){return void 0!==Uc()},getSpanId:function(){return this._spanId.toDecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId.toDecimalString()},makeTracingHeaders:function(){return{"x-datadog-origin":"rum","x-datadog-parent-id":this.getSpanId(),"x-datadog-sampling-priority":this._traceSampled?"2":"-1","x-datadog-trace-id":this.getTraceId()}}},qc.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId},getSkyWalkingSw8:function(){try{var t=String(K(this.getTraceId())),e=String(K(this.getSpanId())),n=String(K(this._applicationId+"_rum_"+this._env)),r=String(K(this._version)),o=String(K(window.location.href)),i=String(K(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+o+"-"+i}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},$c.prototype={isTracingSupported:function(){return void 0!==Uc()},getSpanId:function(){return this._spanId},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId},getUberTraceId:function(){return this.getTraceId()+":"+this.getSpanId()+":0:"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{"uber-trace-id":this.getUberTraceId()}}},Gc.prototype={isTracingSupported:function(){return void 0!==Uc()},getSpanId:function(){return this._spanId},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId},getB3Str:function(){return this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},Qc.prototype={isTracingSupported:function(){return void 0!==Uc()},getSpanId:function(){return this._spanId},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId},makeTracingHeaders:function(){return{"X-B3-TraceId":this.getTraceId(),"X-B3-SpanId":this.getSpanId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},Kc.prototype={isTracingSupported:function(){return void 0!==Uc()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.isHexTraceId?this._traceId.toDecimalString():this._traceId.toPaddedHexadecimalString()+this._spanId.toPaddedHexadecimalString()},getTraceParent:function(){return this.isHexTraceId?"00-0000000000000000"+this._traceId.toPaddedHexadecimalString()+"-"+this._spanId.toPaddedHexadecimalString()+"-"+(this._traceSampled?"01":"00"):"00-"+this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"01":"00")},makeTracingHeaders:function(){var t={traceparent:this.getTraceParent()};return this.isHexTraceId?I(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var Zc=1;function tl(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Jc,traceFetch:function(n){return Yc(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=R(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):D(n.init.headers)?A(n.init.headers,(function(t){e.push(t)})):n.init.headers&&A(n.init.headers,(function(t,n){e.push([n,t])}));var r={};A(e.concat(W(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),A(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return Yc(t,n,e,(function(t){A(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=_i().subscribe((function(r){var o=r;if(_s(e,o.url))switch(o.state){case"start":n.traceXhr(o,o.xhr),o.requestIndex=el(),t.notify(Or,{requestIndex:o.requestIndex,url:o.url});break;case"complete":n.clearTracingIfNeeded(o),t.notify(Mr,{duration:o.duration,method:o.method,requestIndex:o.requestIndex,spanId:o.spanId,startClocks:o.startClocks,status:o.status,traceId:o.traceId,traceSampled:o.traceSampled,type:un.XHR,url:o.url,xhr:o.xhr,isAborted:o.isAborted,requestHeaderContexts:o.requestHeaderContexts,handlingStack:o.handlingStack})}}))}(t,e,r),function(t,e,n){var r=yi().subscribe((function(r){var o=r;if(_s(e,o.url))switch(o.state){case"start":n.traceFetch(o),o.requestIndex=el(),t.notify(Or,{requestIndex:o.requestIndex,url:o.url});break;case"resolve":!function(t,e){var n=t.response&&function(t){try{return t.clone()}catch(t){return}}(t.response);n&&n.body?function(t,e,n){var r=t.getReader(),o=[],i=0;function a(){var t,a;if(r.cancel().catch(it),n.collectStreamBody){var s;if(1===o.length)s=o[0];else{s=new Uint8Array(i);var u=0;A(o,(function(t){s.set(t,u),u+=t.length}))}t=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}e(void 0,t,a)}!function t(){r.read().then(u((function(e){e.done?a():(n.collectStreamBody&&o.push(e.value),(i+=e.value.length)>n.bytesLimit?a():t())})),u((function(t){e(t)})))}()}(n.body,(function(){e(bt(t.startClocks.timeStamp,mt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(bt(t.startClocks.timeStamp,mt()))}(o,(function(e){var r;n.clearTracingIfNeeded(o),t.notify(Mr,{duration:e,method:o.method,requestIndex:o.requestIndex,responseType:o.responseType,spanId:o.spanId,startClocks:o.startClocks,status:o.status,traceId:o.traceId,traceSampled:o.traceSampled,requestHeaderContexts:(null===(r=o.init)||void 0===r?void 0:r.headers)||(o.input instanceof Request?o.input.headers:void 0),type:un.FETCH,url:o.url,response:o.response,init:o.init,input:o.input,isAborted:o.isAborted,handlingStack:o.handlingStack})}))}}))}(t,e,r)}function el(){var t=Zc;return Zc+=1,t}function nl(){var t=new Ua;return{matchRequestResourceEntry:function(e){if(performance&&"getEntriesByName"in performance){var n=performance.getEntriesByName(e.url,"resource");if(n.length&&"toJSON"in n[0]){var r=B(n,(function(e){return!t.has(e)}));r=B(r,(function(t){return hs(t)&&gs(t)})),r=B(r,(function(t){return n=t,r=e.startClocks.relative,o=rl({startTime:e.startClocks.relative,duration:e.duration}),i=1,n.startTime>=r-i&&rl(n)<=St(o,i);var n,r,o,i}));var o=void 0;if(r.length>1){var i=Number.MAX_SAFE_INTEGER;r.forEach((function(t){var n=Math.abs(t.startTime-e.startClocks.relative);n<i&&(i=n,o=t)}))}else 1===r.length&&(o=r[0]);return o?(t.add(o),o.toJSON()):void 0}}}}}function rl(t){return St(t.startTime,t.duration)}function ol(t,e){Oi("interactive",(function(){var t=I(hc().toJSON(),{entryType:Ps,initiatorType:is,toJSON:function(){return I({},t,{toJSON:void 0})}});e(t)}))}function il(t,e,n,r,o,i){void 0===r&&(r=function(){var t=[];function e(e){var r;if(e.didTimeout){var o=performance.now();r=function(){return 30-(performance.now()-o)}}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){Yr(e,{timeout:1e3})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===o&&(o=ol),i&&i.setFlushTrackedResource((function(e){t.notify(Dr,e)}));var a=nl();t.subscribe(Mr,(function(t){u((function(){return function(t,e,n){var r=n.matchRequestResourceEntry(t),o=r?wt(r.startTime):t.startClocks,i=function(t){var e=t.traceSampled&&t.traceId&&t.spanId;if(!e)return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:X()}}}(t),a=t.type===un.XHR?je:Ve,s=r?sl(r):void 0,u=function(t,e,n){return t.wasInPageStateDuringPeriod(Mu,e.relative,n)?void 0:ft(n)}(e,o,t.duration),c=Y(t.url).getParse(),l=M({date:o.timeStamp,resource:{id:X(),type:a,duration:u,method:t.method,status:t.status,statusGroup:ot(t.status),url:Ss(t.url)?Cs(t.url):t.url,urlHost:c.Host,urlPath:c.Path,urlPathGroup:J(c.Path),urlQuery:Z(t.url),deliveryType:r&&cs(r),protocol:r&&ls(r)},type:nn.RESOURCE},i,s);return{startTime:o.relative,rawRumEvent:l,domainContext:{performanceEntry:r,xhr:t.xhr,requestHeaderContexts:t.requestHeaderContexts,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack,resourceTrackerId:ul(t)}}}(t,n,a)}))}));var s=Ns(e,{type:Ps,buffered:!0}).subscribe((function(t){for(var n=function(t){(function(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType})(t)||fs(t.name,e.resourceUrlLimit)||u((function(){return al(t,e)}))},r=0,o=t;r<o.length;r++){n(o[r])}}));function u(e){r.push((function(){try{var n=e();if(n){if(i&&n.domainContext&&n.domainContext.resourceTrackerId&&i.trackRequestResource(n.domainContext.resourceTrackerId,n))return;t.notify(Dr,n)}}catch(t){Ho(t)}}))}return o(e,(function(t){u((function(){return al(t,e)}))})),{stop:function(){s.unsubscribe()},addResource:function(t,e){u((function(){return O({savedCommonContext:e},function(t){var e={date:t.startClocks.timeStamp,resource:{id:X(),type:t.type},type:nn.RESOURCE};return{customerContext:t.context,startTime:t.startClocks.relative,rawRumEvent:e,domainContext:{resource:t}}}(t))}))}}}function al(t,e){var n,r=wt(t.startTime),o=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),i=ss(t),a=sl(t),s=Y(t.name).getParse(),u=M({date:r.timeStamp,resource:{id:X(),type:i,url:t.name,urlHost:s.Host,urlPath:s.Path,urlPathGroup:J(s.Path),urlQuery:Z(t.name),method:"GET",status:(n=t.responseStatus,0===n?void 0:n),statusGroup:ot(t.responseStatus),deliveryType:cs(t),protocol:ls(t)},type:nn.RESOURCE},o,a);return{startTime:r.relative,rawRumEvent:u,domainContext:{performanceEntry:t}}}function sl(t){return{resource:M({},{duration:ps(t)},bs(t),vs(t))}}function ul(t){return function(t,e){if(!t||!e)return;var n=String(e).toLowerCase();if("function"==typeof t.get)return t.get(e)||t.get(n)||void 0;if(Array.isArray(t)){for(var r=0;r<t.length;r+=1){var o=t[r];if(Array.isArray(o)&&String(o[0]).toLowerCase()===n)return o[1]}return}for(var i in t)if(String(i).toLowerCase()===n)return t[i]}(t.requestHeaderContexts,"x-rum-resource-id")}var cl={sdkVersion:"3.3.1",sdkName:"df_web_rum_sdk"},ll={low:{quality:.25,sampling:1,autoInterval:1500,autoCooldown:3e3,autoUnchangedBackoff:5e3,autoFailureBackoff:7e3,autoMaxPerRun:1},medium:{quality:.4,sampling:2,autoInterval:1e3,autoCooldown:2e3,autoUnchangedBackoff:3e3,autoFailureBackoff:5e3,autoMaxPerRun:2},high:{quality:.5,sampling:4,autoInterval:700,autoCooldown:1400,autoUnchangedBackoff:2e3,autoFailureBackoff:4e3,autoMaxPerRun:4}};function dl(t){return"string"==typeof t?ll[t]:void 0}function fl(t){if(t.applicationId){var e=function(t){return t.site||t.datakitOrigin||t.datakitUrl?!(t.site&&!t.clientToken&&(i.error("clientToken is not configured, no RUM data will be collected."),1)):(i.error("datakitOrigin or site is not configured, no RUM data will be collected."),!1)}(t);if(e)if(void 0===t.sessionOnErrorSampleRate||Mt(t.sessionOnErrorSampleRate))if(void 0===t.sessionReplaySampleRate||Mt(t.sessionReplaySampleRate))if(void 0===t.sessionReplayOnErrorSampleRate||Mt(t.sessionReplayOnErrorSampleRate)){var n=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&i.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!D(t.allowedTracingUrls))return void i.error("Allowed Tracing URLs should be an array");var e=[];return A(t.allowedTracingUrls,(function(n){var r;At(n)?e.push({match:n,traceType:Ht(t.traceType,cn)}):"object"===et(r=n)&&At(r.match)&&q(r.traceType)?e.push(n):i.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)})),e}if(void 0!==t.allowedTracingOrigins){if(!D(t.allowedTracingOrigins))return void i.error("Allowed Tracing Origins should be an array");e=[];return A(t.allowedTracingOrigins,(function(n){var r=pl(n,Ht(t.traceType,cn));r&&e.push(r)})),e}if(void 0!==t.allowedDDTracingOrigins){if(!D(t.allowedDDTracingOrigins))return void i.error("Allowed Tracing Origins should be an array");e=[];return A(t.allowedDDTracingOrigins,(function(n){var r=pl(n,Ht(t.traceType,cn));r&&e.push(r)})),e}return[]}(t);if(n)if(void 0===t.tracingSampleRate||Mt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||D(t.excludedActivityUrls))if(void 0===t.replayCanvasMode||"manual"===t.replayCanvasMode||"auto"===t.replayCanvasMode)if(void 0===t.replayCanvasQuality||dl(t.replayCanvasQuality)||"number"==typeof t.replayCanvasQuality&&t.replayCanvasQuality>=0&&t.replayCanvasQuality<=1)if(void 0===t.replayCanvasSampling||"all"===t.replayCanvasSampling||G(t.replayCanvasSampling)&&t.replayCanvasSampling>0)if(void 0===t.replayCanvasMaxCanvasSize||G(t.replayCanvasMaxCanvasSize)&&!(t.replayCanvasMaxCanvasSize<=0))if(void 0===t.replayCanvasMaxEncodedBytes||G(t.replayCanvasMaxEncodedBytes)&&!(t.replayCanvasMaxEncodedBytes<=0))if(void 0===t.replayCanvasMaxConcurrentEncodes||G(t.replayCanvasMaxConcurrentEncodes)&&!(t.replayCanvasMaxConcurrentEncodes<=0))if(void 0===t.replayCanvasAutoInterval||G(t.replayCanvasAutoInterval)&&!(t.replayCanvasAutoInterval<=0))if(void 0===t.replayCanvasAutoCooldown||G(t.replayCanvasAutoCooldown)&&!(t.replayCanvasAutoCooldown<=0))if(void 0===t.replayCanvasAutoUnchangedBackoff||G(t.replayCanvasAutoUnchangedBackoff)&&!(t.replayCanvasAutoUnchangedBackoff<=0))if(void 0===t.replayCanvasAutoFailureBackoff||G(t.replayCanvasAutoFailureBackoff)&&!(t.replayCanvasAutoFailureBackoff<=0))if(void 0===t.replayCanvasAutoMaxPerRun||G(t.replayCanvasAutoMaxPerRun)&&!(t.replayCanvasAutoMaxPerRun<=0)){var r=ii(t);if(r){var o=!!Ht(t.trackUserInteractions,t.trackInteractions),a=Ht(t.replayCanvasMode,"auto"),s=dl(t.replayCanvasQuality),u=t.replayCanvasSampling;return null==u&&(u=s?s.sampling:2),I({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Ht(t.sessionReplaySampleRate,100),sessionOnErrorSampleRate:Ht(t.sessionOnErrorSampleRate,0),sessionReplayOnErrorSampleRate:Ht(t.sessionReplayOnErrorSampleRate,0),tracingSampleRate:Ht(t.tracingSampleRate,100),allowedTracingUrls:n,injectTraceHeader:t.injectTraceHeader&&d(t.injectTraceHeader,"injectTraceHeader threw an error:"),generateTraceId:t.generateTraceId&&d(t.generateTraceId,"generateTraceId threw an error:"),excludedActivityUrls:Ht(t.excludedActivityUrls,[]),workerUrl:t.workerUrl,replayCanvasWorkerUrl:t.replayCanvasWorkerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:o,enableLongAnimationFrame:!!t.enableLongAnimationFrame,trackViewsManually:!!t.trackViewsManually,replayCanvasEnabled:!!t.replayCanvasEnabled,replayCanvasMode:a,replayCanvasSampling:u,replayCanvasQuality:Ht(s?s.quality:t.replayCanvasQuality,.4),replayCanvasMimeType:Ht(t.replayCanvasMimeType,"image/webp"),replayCanvasMaxCanvasSize:Ht(t.replayCanvasMaxCanvasSize,1280),replayCanvasMaxEncodedBytes:Ht(t.replayCanvasMaxEncodedBytes,4e4),replayCanvasMaxConcurrentEncodes:Ht(t.replayCanvasMaxConcurrentEncodes,1),replayCanvasAutoInterval:Ht(t.replayCanvasAutoInterval,s?s.autoInterval:void 0),replayCanvasAutoCooldown:Ht(t.replayCanvasAutoCooldown,s?s.autoCooldown:void 0),replayCanvasAutoUnchangedBackoff:Ht(t.replayCanvasAutoUnchangedBackoff,s?s.autoUnchangedBackoff:void 0),replayCanvasAutoFailureBackoff:Ht(t.replayCanvasAutoFailureBackoff,s?s.autoFailureBackoff:void 0),replayCanvasAutoMaxPerRun:Ht(t.replayCanvasAutoMaxPerRun,s?s.autoMaxPerRun:void 0),replayCanvasFlushImmediately:Ht(t.replayCanvasFlushImmediately,"manual"===a),traceType:Ht(t.traceType,cn),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:Vt(oi,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:oi.MASK_USER_INPUT,shouldMaskNode:t.shouldMaskNode&&d(t.shouldMaskNode,"shouldMaskNode threw an error:"),shouldRecordCanvas:t.shouldRecordCanvas&&d(t.shouldRecordCanvas,"shouldRecordCanvas threw an error:")},r,cl)}}else i.error("Replay Canvas Auto Max Per Run should be a positive number");else i.error("Replay Canvas Auto Failure Backoff should be a positive number");else i.error("Replay Canvas Auto Unchanged Backoff should be a positive number");else i.error("Replay Canvas Auto Cooldown should be a positive number");else i.error("Replay Canvas Auto Interval should be a positive number");else i.error("Replay Canvas Max Concurrent Encodes should be a positive number");else i.error("Replay Canvas Max Encoded Bytes should be a positive number");else i.error("Replay Canvas Max Canvas Size should be a positive number");else i.error("Replay Canvas Sampling should be 'all' or a positive number");else i.error("Replay Canvas Quality should be 'low', 'medium', 'high', or a number between 0 and 1");else i.error("Replay Canvas Mode should be 'manual' or 'auto'");else i.error("Excluded Activity Urls should be an array");else i.error("Tracing Sample Rate should be a number between 0 and 100")}else i.error("Error Session Replay Sample Rate should be a number between 0 and 100");else i.error("Session Replay Sample Rate should be a number between 0 and 100");else i.error("Error Session Sample Rate should be a number between 0 and 100")}else i.error("Application ID is not configured, no RUM data will be collected.")}function pl(t,e){var n;if("string"==typeof t?n=t:t instanceof RegExp?n=function(e){return t.test(Qr(e))}:"function"==typeof t&&(n=function(e){return t(Qr(e))}),void 0!==n)return{match:n,traceType:e};i.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t)}function vl(t,e,n){var r,o,a,s,u,c=t.ignoreInitIfSyntheticsWillInjectRum,l=t.startDeflateWorker,d=Qt(),f=Qt(),p=t.resourceTrackerManager;function v(){if(a&&s){var t;if(s.trackViewsManually){if(!r)return;d.remove(r.callback),t=r.options}var e=n(s,o,t);d.drain(e)}}function h(t,e){var n=ba();if(n&&(t=function(t){var e,n;return I({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(e=t.defaultPrivacyLevel)&&void 0!==e?e:null===(n=ga())||void 0===n?void 0:n.getPrivacyLevel()})}(t)),a=t,u=e,f.drain(u),function(t){zo({type:Mo,configuration:t})}(rt(t)),s)ja("DATAFLUX_RUM",t);else{var r=fl(t);r&&(n||r.sessionStoreStrategyType?(!r.compressIntakeRequests||r.sendContentTypeByJson||n||!l||(o=l(r,"RUM",it)))&&(s=r,yi().subscribe(it),v()):i.warn("No storage available for session. We will not send any data."))}}return{init:function(t){t?(a=t,c&&Boolean(window._GUANCE_SYNTHETICS_INJECTS_RUM||so("guance-synthetics-injects-rum"))||(t.remoteConfiguration?fi(t,h):h(t))):i.error("Missing configuration")},getInitConfiguration:function(){return a},getRemoteConfiguration:function(t){"function"===et(t)&&(u?t(u):f.add(t))},getInternalContext:it,stopSession:it,setForcedSession:function(){d.add((function(t){return t.setForcedSession()}))},addTiming:function(t,e){void 0===e&&(e=mt()),d.add((function(n){n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=gt());var n=function(n){n.startView(t,e)};d.add(n),r||(r={options:t,callback:n},v())},setViewName:function(t){d.add((function(e){return e.setViewName(t)}))},setViewContext:function(t){d.add((function(e){return e.setViewContext(t)}))},setViewContextProperty:function(t,e){d.add((function(n){return n.setViewContextProperty(t,e)}))},getViewContext:function(){},addTypeAction:function(t,n,r){void 0===r&&(r=e()),d.add((function(e){e.addTypeAction(t,n,r)}))},addAction:function(t,n){void 0===n&&(n=e()),d.add((function(e){e.addAction(t,n)}))},addResource:function(t,n){void 0===n&&(n=e()),d.add((function(e){e.addResource(t,n)}))},addError:function(t,n){void 0===n&&(n=e()),d.add((function(e){e.addError(t,n)}))},createResourceTrackerId:function(){return p.createTrackerId()},setResourceContext:function(t,e){p.setResourceContext(t,e)},appendResourceContext:function(t,e){p.appendResourceContext(t,e)},finishResource:function(t){p.finishResource(t)},getResource:function(t){return p.getResource(t)}}}var hl=3e5;function gl(){var t,e=new Map;return{createTrackerId:function(){var t=X();return function(t){var n=e.get(t);n||(n={id:t,status:"created",context:{},finished:!1,flushed:!1,requestHeaderMatched:!1},e.set(t,n),n.orphanTimeoutId=setTimeout((function(){n.status="cleared",e.delete(n.id)}),hl))}(t),t},setResourceContext:function(t,n){var r=e.get(t);r&&(yl(r)||(r.context=I({},n||{})))},appendResourceContext:function(t,n){var r=e.get(t);r&&(yl(r)||(r.context=I(r.context,n||{})))},finishResource:function(t){var r=e.get(t);r&&(r.finished=!0,"request_collected"===r.status?n(r,"flushed"):"created"===r.status&&(r.status="finished"))},getResource:function(t){var n=e.get(t);if(n)return function(t){return{trackerId:t.id,status:t.status,context:rt(t.context),resource:t.resource?I({},t.resource):void 0,rawRumEvent:t.rawResourceEvent?bl(t.rawResourceEvent):void 0}}(n)},trackRequestResource:function(t,r){var o=e.get(t);return!!o&&(!o.requestHeaderMatched&&!o.flushed&&(ml(o),o.requestHeaderMatched=!0,o.rawResourceEvent=r.rawRumEvent,o.startTime=r.startTime,o.domainContext=r.domainContext,o.resource=function(t){var e=t&&t.resource;if(!e)return;return{type:e.type,url:e.url,method:e.method,status:e.status}}(r.rawRumEvent),o.status="request_collected",o.finished?n(o,"flushed"):o.timeoutId=setTimeout((function(){o.timeoutId=void 0,"request_collected"===o.status&&n(o,"timeout_flushed")}),3e4),!0))},setFlushTrackedResource:function(e){t=e},getTrackerIdFromRequestHeaders:function(t){return function(t,e){if(!t||!e)return;var n=String(e).toLowerCase();if("function"==typeof t.get)return t.get(e)||t.get(n)||void 0;if(Array.isArray(t)){for(var r=0;r<t.length;r+=1){var o=t[r];if(Array.isArray(o)&&String(o[0]).toLowerCase()===n)return o[1]}return}for(var i in t)if(String(i).toLowerCase()===n)return t[i]}(t,"x-rum-resource-id")}};function n(e,n){if(!e.flushed&&e.rawResourceEvent)if(ml(e),e.flushed=!0,e.status=n,t)try{t({startTime:e.startTime,rawRumEvent:e.rawResourceEvent,customerContext:I({},e.context),domainContext:e.domainContext})}catch(t){Ho(t)}finally{r(e)}else r(e);else e.status=n}function r(t){ml(t),t.clearTimeoutId=setTimeout((function(){t.status="cleared",e.delete(t.id)}),6e4)}}function ml(t){t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=void 0),t.orphanTimeoutId&&(clearTimeout(t.orphanTimeoutId),t.orphanTimeoutId=void 0),t.clearTimeoutId&&(clearTimeout(t.clearTimeoutId),t.clearTimeoutId=void 0)}function yl(t){return"flushed"===t.status||"timeout_flushed"===t.status||"cleared"===t.status}function bl(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=_l(t[n],8));return e}function _l(t,e){if(!t||"object"!==Ju(t)||e<0)return t;if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(_l(t[r],e-1));return n}var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(o[i]=_l(t[i],e-1));return o}var wl=2,Sl=3,Cl=4,xl=6,kl=7,Tl=8,El=9,Al=0,Il=1,Rl=2,Ol=3,Ml=4,Dl=11,Pl=0,Ll=1,Nl=2,Bl=3,Fl=4,zl=5,Ul=6,jl=7,Hl=8,Vl=9,Wl=0,ql=1,$l=2,Gl=3,Ql=4,Kl=5,Xl=6,Jl=7,Yl=9,Zl=0,td=1,ed={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:oi.ALLOW,MASK:oi.MASK,MASK_USER_INPUT:oi.MASK_USER_INPUT},nd="data-gc-privacy",rd="hidden",od="***",id={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function ad(t,e,n){if(n&&n.has(t))return n.get(t);var r=Ri(t),o=r?ad(r,e):e,i=sd(ud(t),o);return n&&n.set(t,i),i}function sd(t,e){switch(e){case ed.HIDDEN:case ed.IGNORE:return e}switch(t){case ed.ALLOW:case ed.MASK:case ed.MASK_USER_INPUT:case ed.HIDDEN:case ed.IGNORE:return t;default:return e}}function ud(t){if(Ti(t)){var e=t.getAttribute(nd);if("BASE"===t.tagName)return ed.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return ed.MASK;if("hidden"===n.type)return ed.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return ed.MASK}return e===rd||t.classList.contains("gc-privacy-hidden")?ed.HIDDEN:"mask"===e||t.classList.contains("gc-privacy-mask")?ed.MASK:"mask-user-input"===e||t.classList.contains("gc-privacy-mask-user-input")?ed.MASK_USER_INPUT:"allow"===e||t.classList.contains("gc-privacy-allow")?ed.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=o("rel");return/preload|prefetch/i.test(e)&&"script"===o("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=o("name"),r=(e=o("rel"),o("property"));return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function o(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?ed.IGNORE:void 0}}function cd(t,e,n){if(t.shouldMaskNode&&!0===t.shouldMaskNode(e,n))return!0;switch(n){case ed.MASK:case ed.HIDDEN:case ed.IGNORE:return!0;case ed.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(e)?ld(e.parentNode):ld(e);default:return!1}}function ld(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!id[e.tagName]}function dd(t,e,n,r){var o=e.parentElement&&e.parentElement.tagName,i=e.textContent||"";if(!n||i.trim()){if("SCRIPT"===o)i=od;else if(r===ed.HIDDEN)i=od;else if(cd(t,e,r))if("DATALIST"===o||"SELECT"===o||"OPTGROUP"===o){if(!i.trim())return}else i="OPTION"===o?od:i.replace(/\S/g,"x");return i}}var fd=new WeakMap,pd=new Set,vd=new WeakMap,hd=new WeakMap;function gd(t){return fd.has(t)}function md(t){for(var e=t;e;){if(!gd(e)&&!Ai(e))return!1;e=Ri(e)}return!0}function yd(t){return fd.get(t)}function bd(){var t=[];return pd.forEach((function(e){gd(e)&&function(t){if(document.documentElement&&document.documentElement.contains)return document.documentElement.contains(t);for(var e=t;e;){if(e===document)return!0;e=Ri(e)}return!1}(e)?t.push(e):pd.delete(e)})),t}function _d(t,e,n){var r=e.tagName,o=e.value;if(cd(t,e,n)){var i=e.type;if("INPUT"===r&&("button"===i||"submit"===i||"reset"===i||"range"===i))return o;if(!o||"OPTION"===r)return;return od}return"OPTION"===r||"SELECT"===r?e.value:"INPUT"===r||"TEXTAREA"===r?o:void 0}var wd=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Sd=/^[A-Za-z]+:|^\/\//,Cd=/^data:.*,/i;function xd(){return function(t){var e=hd.get(t);if(!e){var n=Od(t);n.href="",e=n.href,hd.set(t,e)}return e}(document)}function kd(t,e){return t.replace(wd,(function(t,n,r,o,i,a){var s=r||i||a;if(!e||!s||Sd.test(s)||Cd.test(s))return t;var u=n||o||"";return"/"===s[0]?"url(".concat(u).concat(function(t){return(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]}(e)+s).concat(u,")"):"url(".concat(u).concat(function(t,e){try{return Kr(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}function Td(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch(t){}return e?kd(((n=Array.from(e,Ft()===Nt?Ad:Ed).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),n),t.href):null}function Ed(t){return function(t){return"styleSheet"in t}(t)&&Td(t.styleSheet)||t.cssText}function Ad(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return Ed(t)}function Id(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function Rd(t,e){if(!e||""===e.trim())return e;var n=Od(t);return n.href=e,n.href}function Od(t){var e=vd.get(t);return e||(e=t.createElement("a"),vd.set(t,e)),e}var Md=/^[^ \t\n\r\u000c]+/,Dd=/^[, \t\n\r\u000c]+/;var Pd=0,Ld=1,Nd=2;function Bd(t,e,n){return Fd(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function Fd(t,e){var n=Ud(t,e);if(!n)return null;var r=Wd(t,n.serializedNode,e);return n.shouldSerializeChildren&&(r.childNodes=function(t,e){var n=[];return Ii(t,(function(t){var r=Fd(t,e);r&&n.push(r)})),n}(t,n.childNodesOptions)),r}function zd(t,e){var n=Ud(t,e);if(!n)return null;var r=Wd(t,n.serializedNode,e),o=[];return n.shouldSerializeChildren&&i(t,r,n.childNodesOptions),{serializedNode:r,isComplete:0===o.length,advance:function(t){for(;o.length&&qd()<t;){var e=o.pop(),n=Ud(e.node,e.options);if(n){var r=Wd(e.node,n.serializedNode,e.options);e.parentSerializedNode.childNodes.push(r),n.shouldSerializeChildren&&i(e.node,r,n.childNodesOptions)}}return this.isComplete=0===o.length,this.isComplete}};function i(t,e,n){var r=[];Ii(t,(function(t){r.push(t)}));for(var i=r.length-1;i>=0;i--)o.push({node:r[i],options:n,parentSerializedNode:e})}}function Ud(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return jd(t,e);case t.DOCUMENT_FRAGMENT_NODE:return Hd(t,e);case t.DOCUMENT_TYPE_NODE:return{serializedNode:(o=t,{type:Il,name:o.name,publicId:o.publicId,systemId:o.systemId}),shouldSerializeChildren:!1};case t.ELEMENT_NODE:return Vd(t,e);case t.TEXT_NODE:var n=function(t,e){var n=dd(e.configuration,t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:Ol,textContent:n}}(t,e);return n?{serializedNode:n,shouldSerializeChildren:!1}:null;case t.CDATA_SECTION_NODE:var r={type:Ml,textContent:""};return r?{serializedNode:r,shouldSerializeChildren:!1}:null}var o}function jd(t,e){return{serializedNode:{type:Al,childNodes:[],adoptedStyleSheets:Id(t.adoptedStyleSheets)},shouldSerializeChildren:!0,childNodesOptions:e}}function Hd(t,e){var n=Ai(t);return n&&e.serializationContext.shadowRootsController.addShadowRoot(t),{serializedNode:{type:Dl,childNodes:[],isShadowRoot:n,adoptedStyleSheets:n?Id(t.adoptedStyleSheets):void 0},shouldSerializeChildren:!0,childNodesOptions:e}}function Vd(t,e){var n,r=Kd(t.tagName),o="svg"===(n=t).tagName||n instanceof SVGElement||void 0,i=sd(ud(t),e.parentNodePrivacyLevel);if(i===ed.HIDDEN){var a=function(t){return{width:t.getAttribute("width")||t.style&&t.style.width||void 0,height:t.getAttribute("height")||t.style&&t.style.height||void 0}}(t),s=Zu({},nd,rd);return a.width&&(s.rr_width=a.width),a.height&&(s.rr_height=a.height),{serializedNode:{type:Rl,tagName:r,attributes:s,childNodes:[],isSVG:o},shouldSerializeChildren:!1}}if(i===ed.IGNORE)return null;s=function(t,e,n){if(e===ed.HIDDEN)return{};for(var r={},o=Kd(t.tagName),i=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=$d(t,e,s,n.configuration);null!==u&&(r[s]=Xd(i,o,s,u))}if(t.value&&("textarea"===o||"select"===o||"option"===o||"input"===o)){var c=_d(n.configuration,t,e);void 0!==c&&(r.value=c)}if("option"===o&&e===ed.ALLOW){var l=t;l.selected&&(r.selected=l.selected)}if("link"===o){var d=function(t,e,n){if(!n)return;var r=t.styleSheetByHref;if(!r){r=new Map;for(var o=0;o<e.styleSheets.length;o+=1){var i=e.styleSheets[o];i.href&&r.set(i.href,i)}t.styleSheetByHref=r}return r.get(n)}(n.serializationContext,i,t.href);(f=Td(d))&&d&&(r._cssText=f)}if("style"===o&&t.sheet){var f;(f=Td(t.sheet))&&(r._cssText=f)}var p,v,h=t;"input"!==o||"radio"!==h.type&&"checkbox"!==h.type||(e===ed.ALLOW?r.checked=!!h.checked:cd(n.configuration,h,e)&&delete r.checked);if("audio"===o||"video"===o){var g=t;r.rr_mediaState=g.paused?"paused":"played"}var m=n.serializationContext;switch(m.status){case Pd:p=Math.round(t.scrollTop),v=Math.round(t.scrollLeft),(p||v)&&m.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:v});break;case Ld:if(m.elementsScrollPositions.has(t)){var y=m.elementsScrollPositions.get(t);p=y.scrollTop,v=y.scrollLeft}}v&&(r.rr_scrollLeft=v);p&&(r.rr_scrollTop=p);return r}(t,i,e);var u,c,l=!1;((c=t).childNodes.length>0||Ei(c))&&"style"!==r&&(u=e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===r)?e:I({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===r}),l=!0);return{serializedNode:{type:Rl,tagName:r,attributes:s,childNodes:[],isSVG:o},shouldSerializeChildren:l,childNodesOptions:u}}function Wd(t,e,n){var r=yd(t)||Gd++,o=e;return o.id=r,function(t,e){fd.set(t,e),t instanceof HTMLCanvasElement&&pd.add(t)}(t,r),n.serializedNodeIds&&n.serializedNodeIds.add(r),o}function qd(){return"undefined"!=typeof performance&&performance.now?performance.now():Date.now()}function $d(t,e,n,r){if(e===ed.HIDDEN)return null;var o=t.getAttribute(n);if(e===ed.MASK&&n!==nd&&!au.includes(n)&&n!==r.actionNameAttribute){var i=t.tagName;switch(n){case"title":case"alt":case"placeholder":return od}if("IMG"===i||"SOURCE"===i){if("src"===n||"srcset"===n)return"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";if("onerror"===n)return null}if("A"===i&&"href"===n)return od;if(o&&Wt(n,"data-"))return od;if("IFRAME"===i&&"srcdoc"===n)return od}return o&&"string"==typeof o&&Ss(o)?Cs(o):o}var Gd=1;var Qd=/[^a-z1-6-_]/;function Kd(t){var e=(t+"").toLowerCase().trim();return Qd.test(e)?"div":e}function Xd(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Rd(t,r):"background"!==n||!r||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;var n=0;function r(t){var r,o=t.exec(e.substring(n));return o?(r=o[0],n+=r.length,r):""}for(var o=[];r(Dd),!(n>=e.length);){var i=r(Md);if(","===i.slice(-1))i=Rd(t,i.substring(0,i.length-1)),o.push(i);else{var a="";i=Rd(t,i);for(var s=!1;;){var u=e.charAt(n);if(""===u){o.push((i+a).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){n+=1,o.push((i+a).trim());break}"("===u&&(s=!0)}a+=u,n+=1}}}return o.join(", ")}(t,r):"style"===n?kd(r,xd()):"object"===e&&"data"===n?Rd(t,r):r:Rd(t,r):r}function Jd(t){return Boolean(t.changedTouches)}function Yd(t,e){return{data:I({source:t},e),type:Sl,timestamp:mt()}}function Zd(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){r=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(r),e}}function tf(t,e,n,r,o){var i=ns();if(!i)return{stop:it,flush:it,reset:it};var a=function(t,e,n){var r=0,o=0,i=0,a=[],s=new WeakMap,u=new Map,c=void 0,l=void 0,d=!1,f=[];return{addPendingRootTask:p,findPendingRootTask:v,refreshPendingRootTask:h,handlePendingRootRemoval:g,flush:function(){b(!0)},reset:function(){r+=1,o=0,i=0,_(),x(),a=[],f=[],s=new WeakMap,u=new Map},stop:function(){d=!0,_(),x(),a=[],f=[],s=new WeakMap,u=new Map}};function p(t,e){if(!v(Ri(t))){var n=zd(t,e);if(n){var i={generation:r,sequence:o++,rootNode:t,parentId:yd(Ri(t)),nextId:T(t),serializerTask:n};a.push(i),s.set(t,i),u.set(i.sequence,i),y()}}}function v(t){for(var e=t;e;){var n=s.get(e);if(n&&n.generation===r)return n;e=Ri(e)}}function h(t){if(t&&t.generation===r)if(t.rootNode.isConnected){var o=Ri(t.rootNode),i=v(o);if(i&&i!==t)m(t);else{var a=ad(o,e.defaultPrivacyLevel);if(a!==ed.HIDDEN&&a!==ed.IGNORE){var s=zd(t.rootNode,{parentNodePrivacyLevel:a,serializationContext:{status:Nd,shadowRootsController:n},configuration:e});s?(C(t),t.parentId=yd(o),t.nextId=T(t.rootNode),t.serializerTask=s,t.isCompleted=!1,y()):m(t)}else m(t)}}else m(t)}function g(t,e){if(t&&t.generation===r)return e===t.rootNode?t.rootNode.isConnected?void h(t):void m(t):void(t.rootNode.isConnected?h(t):m(t))}function m(t){s.delete(t.rootNode),u.delete(t.sequence),C(t),a=a.filter((function(e){return e!==t})),k()}function y(){d||c||!a.length||(c=setTimeout((function(){c=void 0,b(!1)}),0))}function b(t){if(_(),!d)if(a.length){for(var e=t?1/0:ef()+4;a.length;){var n=a.shift();if(n.generation===r){var o=n.serializerTask.advance(e);if(n.generation===r)if(o)n.isCompleted=!0,f.push(n);else if(a.push(n),!t&&ef()>=e)break}}f.length&&(t||!a.length?S():w()),a.length&&y()}else t&&f.length&&S()}function _(){c&&(clearTimeout(c),c=void 0)}function w(){d||l||!f.length||(l=setTimeout((function(){l=void 0,S()}),16))}function S(){if(x(),f.length){var e=new Map;f.forEach((function(t){e.set(t.sequence,t)}));var n=[];for(k();i<o;){var r=e.get(i);if(!r)break;n.push(r),e.delete(i),i+=1}if(n.length){var c=n.map((function(t){return s.delete(t.rootNode),u.delete(t.sequence),{nextId:t.nextId,parentId:t.parentId,node:t.serializerTask.serializedNode}}));f=f.filter((function(t){return-1===n.indexOf(t)})),t({adds:c,removes:[],texts:[],attributes:[]}),f.length&&w()}else a.length?y():f.length&&w()}}function C(t){f=f.filter((function(e){return e!==t}))}function x(){l&&(clearTimeout(l),l=void 0)}function k(){for(;i<o&&!u.has(i);)i+=1}function T(t){for(var e=t.nextSibling;e;){if(gd(e))return yd(e);e=e.nextSibling}return null}}(t,e,n),s=function(t){var e=it,n=[];function r(){e(),t(n),n=[]}var o=Q(r,48,{leading:!1}),i=o.throttled,a=o.cancel;return{addMutations:function(t){0===n.length&&(e=Yr(i,{timeout:120})),Array.prototype.push.apply(n,t)},flush:r,reset:function(){e(),a(),n=[]},stop:function(){e(),a()}}}((function(r){var i=ef();!function(t,e,n,r,o){for(var i=new Map,a=new Set,s=[],u=[],c=[],l=0,d=t;l<d.length;l++){var f=d[l];"childList"===f.type&&f.removedNodes.forEach((function(t){nf(t,r.removeShadowRoot)}));var p=f.target,v=o.findPendingRootTask(p);if(p.isConnected&&(md(p)||v)&&ad(p,n.defaultPrivacyLevel,i)!==ed.HIDDEN)switch(f.type){case"childList":s.push(f);break;case"characterData":u.push(f);break;case"attributes":c.push(f)}}var h=function(t,e,n,r,o,i){for(var a=new Set,s=new Map,u=0,c=t;u<c.length;u++){var l=c[u];l.addedNodes.forEach((function(t){a.add(t)})),l.removedNodes.forEach((function(t){a.has(t)||s.set(t,l.target),a.delete(t)}))}var d=Array.from(a);f=d,f.sort((function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0}));var f;for(var p=new Set,v=0,h=d;v<h.length;v++){var g=h[v],m=o.findPendingRootTask(g);if(m)i.add(m);else if(!_(g)){var y=ad(g.parentNode,e.defaultPrivacyLevel,r);y!==ed.HIDDEN&&y!==ed.IGNORE&&o.addPendingRootTask(g,{serializedNodeIds:p,parentNodePrivacyLevel:y,serializationContext:{status:Nd,shadowRootsController:n},configuration:e})}}var b=[];return s.forEach((function(t,e){var n=o.findPendingRootTask(e);if(n)return i.delete(n),void o.handlePendingRootRemoval(n,e);gd(e)&&b.push({parentId:yd(t),id:yd(e)})})),{removes:b,serializedNodeIds:p,hasBeenSerialized:_};function _(t){return gd(t)&&p.has(yd(t))}}(s,n,r,i,o,a),g=h.removes,m=h.serializedNodeIds;function y(t){return gd(t)&&m.has(yd(t))}for(var b=[],_=0,w=u;_<w.length;_++){var S=w[_],C=o.findPendingRootTask(S.target);C?a.add(C):y(S.target)||b.push(S)}for(var x=function(t,e,n){for(var r=[],o=new Set,i=t.filter((function(t){return!o.has(t.target)&&(o.add(t.target),!0)})),a=0,s=i;a<s.length;a++){var u=s[a];if(u.target.textContent!==u.oldValue){var c=ad(Ri(u.target),e.defaultPrivacyLevel,n);c!==ed.HIDDEN&&c!==ed.IGNORE&&r.push({id:yd(u.target),value:Ht(dd(e,u.target,!1,c))})}}return r}(b,n,i),k=[],T=0,E=c;T<E.length;T++){var A=E[T],I=o.findPendingRootTask(A.target);I?a.add(I):y(A.target)||k.push(A)}var R=function(t,e,n){for(var r=[],o=new Map,i=t.filter((function(t){var e=o.get(t.target);return(!e||!e.has(t.attributeName))&&(e?e.add(t.attributeName):o.set(t.target,new Set([t.attributeName])),!0)})),a=new Map,s=0,u=i;s<u.length;s++){var c=u[s];if(c.target.getAttribute(c.attributeName)!==c.oldValue){var l,d=ad(c.target,e.defaultPrivacyLevel,n),f=$d(c.target,d,c.attributeName,e);if("value"===c.attributeName){var p=_d(e,c.target,d);if(void 0===p)continue;l=p}else l="string"==typeof f?f:null;var v=a.get(c.target);v||(v={id:yd(c.target),attributes:{}},r.push(v),a.set(c.target,v)),v.attributes[c.attributeName]=l}}return r}(k,n,i);if(a.forEach((function(t){o.refreshPendingRootTask(t)})),!x.length&&!R.length&&!g.length)return;e({adds:[],removes:g,texts:x,attributes:R})}(r.concat(c.takeRecords()),t,e,n,a),o&&o({processMutationsCount:1,processMutationsDuration:ef()-i})})),c=new i(u(s.addMutations));try{c.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0})}catch(t){}return{stop:function(){c.disconnect(),s.stop(),a.stop()},flush:function(){s.flush(),a.flush()},reset:function(){s.reset&&s.reset(),a.reset()}}}function ef(){return"undefined"!=typeof performance&&performance.now?performance.now():Date.now()}function nf(t,e){Ei(t)&&e(t.shadowRoot),Ii(t,(function(t){return nf(t,e)}))}var rf=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n?(!function(){var t=window.visualViewport;return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||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},of=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}},af=new WeakMap,sf=1;function uf(t){return af.has(t)||af.set(t,sf++),af.get(t)}function cf(t){var e,n,r,o,i,a,s,u=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,o=t.mutationPerfCb,tf(e,n,r,document,o)),c=function(t){var e=Q((function(e){var n=pf(e);if(gd(n)){var r=df(e);if(!r)return;var o={id:yd(n),timeOffset:0,x:r.x,y:r.y};t([o],Jd(e)?Ul:Ll)}}),50,{trailing:!1}),n=e.cancel,r=e.throttled,o=dr(document,[Ae,he],r,{capture:!0,passive:!0}).stop;return function(){o(),n()}}(t.mousemoveCb,t.configuration),l=function(t,e){var n=function(n){var r=pf(n);if(ad(r,e.defaultPrivacyLevel)!==ed.HIDDEN&&gd(r)){var o,i=yd(r),a=lf[n.type];if(a!==Xl&&a!==Kl){var s=df(n);if(!s)return;o={id:i,type:a,x:s.x,y:s.y}}else o={id:i,type:a};var u=I({id:uf(n)},Yd(Nl,o));t(u)}};return dr(document,Object.keys(lf),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration),d=function(t,e,n){var r=Q((function(r){var o=pf(r);if(o&&ad(o,e.defaultPrivacyLevel)!==ed.HIDDEN&&gd(o)){var i=yd(o),a=o===document?{scrollTop:Di(),scrollLeft:Mi()}:{scrollTop:Math.round(o.scrollTop),scrollLeft:Math.round(o.scrollLeft)};n.set(o,a),t({id:i,x:a.scrollLeft,y:a.scrollTop})}}),100),o=r.cancel,i=r.throttled,a=lr(document,fe,i,{capture:!0,passive:!0}).stop;return function(){a(),o()}}(t.scrollCb,t.configuration,t.elementsScrollPositions),f=function(t){return lc().subscribe(t).unsubscribe}(t.viewportResizeCb,t.configuration),p=ff(t.inputCb,t.configuration),v=function(t,e){var n=function(n){var r=pf(n);r&&ad(r,e.defaultPrivacyLevel)!==ed.HIDDEN&&gd(r)&&t({id:yd(r),type:n.type===Le?Zl:td})};return dr(document,[Le,Ne],n,{capture:!0,passive:!0}).stop}(t.mediaInteractionCb,t.configuration),h=function(t){function e(t,e){t&&gd(t.ownerNode)&&e(yd(t.ownerNode))}var n=[rr(CSSStyleSheet.prototype,"insertRule",(function(n){var r=n.target,o=n.parameters,i=o[0],a=o[1];e(r,(function(e){return t({id:e,adds:[{rule:i,index:a}]})}))})),rr(CSSStyleSheet.prototype,"deleteRule",(function(n){var r=n.target,o=n.parameters[0];e(r,(function(e){return t({id:e,removes:[{index:o}]})}))}))];"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule));function r(r){n.push(rr(r.prototype,"insertRule",(function(n){var r=n.target,o=n.parameters,i=o[0],a=o[1];e(r.parentStyleSheet,(function(e){var n=Zd(r);n&&(n.push(a||0),t({id:e,adds:[{rule:i,index:n}]}))}))})),rr(r.prototype,"deleteRule",(function(n){var r=n.target,o=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=Zd(r);n&&(n.push(o),t({id:e,removes:[{index:n}]}))}))})))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb,t.configuration),g=(i=t.focusCb,t.configuration,dr(window,[Ie,Re],(function(){i({has_focus:document.hasFocus()})})).stop),m=function(t){if(!window.visualViewport)return it;var e=Q((function(){t(of())}),200,{trailing:!1}),n=dr(window.visualViewport,[Me,fe],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb,t.configuration),y=(a=t.lifeCycle,s=t.frustrationCb,t.configuration,a.subscribe(Dr,(function(t){t.rawRumEvent.type===nn.ACTION&&t.rawRumEvent.action.type===Je&&t.rawRumEvent.action.frustration&&t.rawRumEvent.action.frustration.type&&t.rawRumEvent.action.frustration.type.length&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&s({timestamp:t.rawRumEvent.date,type:El,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return uf(t)}))}})})).unsubscribe);return{flush:function(){u.flush()},reset:function(){u.reset&&u.reset()},stop:function(){u.stop(),c(),l(),d(),f(),p(),v(),h(),g(),m(),y()}}}var lf=Zu(Zu(Zu(Zu(Zu(Zu(Zu(Zu(Zu({},Ce,Wl),Ee,ql),se,$l),Oe,Gl),ue,Ql),Ie,Kl),Re,Xl),pe,Jl),ve,Yl);function df(t){var e=Jd(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var o=rf(n,r);n=o.visualViewportX,r=o.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function ff(t,e,n){void 0===n&&(n=document);var r,o=new WeakMap,i=n!==document,a=dr(n,i?[De]:[Pe,De],(function(t){var e=pf(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}),s=a.stop;if(i)r=it;else{var u=[or(HTMLInputElement.prototype,"value",c),or(HTMLInputElement.prototype,"checked",c),or(HTMLSelectElement.prototype,"value",c),or(HTMLTextAreaElement.prototype,"value",c),or(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function c(t){var n=ad(t,e.defaultPrivacyLevel);if(n!==ed.HIDDEN){var r,o=t.type;if("radio"===o||"checkbox"===o){if(cd(e,t,n))return;r={isChecked:t.checked}}else{var i=_d(e,t,n);if(void 0===i)return;r={text:i}}l(t,r);var a,s,u=t.name;"radio"===o&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'+j(u)+'"]'),s=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(e,n){if(gd(e)){var r=o.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(o.set(e,n),t(I({id:yd(e)},n)))}}}function pf(t){return!0===t.composed&&Ei(t.target)?t.composedPath()[0]:t.target}function vf(t){var e=t.split(",");return e.length>1?e[1]:""}var hf=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;function gf(t){var e=/^data:([^;,]+)/.exec(t);return e?e[1]:void 0}function mf(t,e){if("string"==typeof t&&t)return t.length<=32?t:e?t.slice(0,32):t.slice(-32)}function yf(t,e){if("string"==typeof t&&t&&"number"==typeof e&&!(e<0)){var n=Math.max(0,e-16),r=Math.min(t.length,e+17);return t.slice(n,r)}}function bf(t){if("string"==typeof t){var e=t.indexOf("=");return-1===e?void 0:e}}function _f(t){var e=bf(t);if(void 0===e)return!1;for(var n=e;n<t.length;n+=1)if("="!==t.charAt(n))return!0;return!1}function wf(t){var e=vf(t),n=bf(e),r=function(t){if("string"==typeof t)for(var e=0;e<t.length;e+=1){var n=t.charAt(e);if(!(n>="A"&&n<="Z"||n>="a"&&n<="z"||n>="0"&&n<="9")&&"+"!==n&&"/"!==n&&"="!==n)return e}}(e);return{mimeType:gf(t),dataUrlLength:"string"==typeof t?t.length:void 0,base64Length:e?e.length:void 0,base64Prefix:mf(e,!0),base64Suffix:mf(e,!1),firstPaddingIndex:n,firstPaddingWindow:yf(e,n),invalidCharacterIndex:r,invalidCharacterWindow:yf(e,r),hasMidstreamPadding:_f(e)}}function Sf(t,e){var n=gf(t)||e;return{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:vf(t)}],type:n}]}}function Cf(t){var e={type:Sl,timestamp:t.timestamp,data:{source:Vl,id:t.id,type:t.contextType||"2D",commands:t.commands}};return"number"==typeof t.startedAt&&(e.startedAt=t.startedAt),"number"==typeof t.completedAt&&(e.completedAt=t.completedAt),e}var xf=0,kf=1,Tf=2,Ef=3;function Af(t,e){var n,r,o,a,s,u=xf,c=!1,l=0,d=function(){},f=(e=e||{}).createWorker||function(){return function(t,e,n){var r=t.replayCanvasWorkerUrl,o=!!r;return r||(r=n.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=new Uint8Array(t),n=[],r=0;r<e.length;r+=8192){for(var i=e.subarray(r,r+8192),o="",a=0;a<i.length;a+=1)o+=String.fromCharCode(i[a]);n.push(o)}return btoa(n.join(""))}function e(t,e){try{t.postMessage(e)}catch(n){t.postMessage({action:"errored",id:e&&e.id,error:String(n&&n.message?n.message:n)})}}var n;void 0===n&&(n=self),n.addEventListener("message",(function(r){var i=r.data;i&&("init"!==i.action?"encode"===i.action&&Promise.resolve().then((function(){var e=function(t,e,n){if(!t||!e||!n)return{width:t,height:e};if(t<=n&&e<=n)return{width:t,height:e};var r=t>e?n/t:n/e;return{width:Math.max(1,Math.round(t*r)),height:Math.max(1,Math.round(e*r))}}(i.width,i.height,i.maxSize),n=new OffscreenCanvas(e.width,e.height),r=n.getContext("2d");if(!r)throw new Error("Cannot create offscreen canvas 2d context for encoding");if(r.drawImage(i.bitmap,0,0,e.width,e.height),i.bitmap&&"function"==typeof i.bitmap.close&&i.bitmap.close(),"function"!=typeof n.convertToBlob)throw new Error("OffscreenCanvas convertToBlob is not supported");return n.convertToBlob({type:i.mimeType,quality:i.quality}).then((function(n){return n.arrayBuffer().then((function(r){var o=n.type||i.mimeType;return{action:"encoded",id:i.id,dataUrl:"data:"+o+";base64,"+t(r),width:e.width,height:e.height}}))}))})).then((function(t){e(n,t)})).catch((function(t){e(n,{action:"errored",id:i.id,error:String(t&&t.message?t.message:t)})})):e(n,{action:"initialized",version:"3.3.1"}))}))}();']))),{worker:new e(r),workerUrl:r,usesExternalUrl:o,urlObject:n}}(t,e.Worker||globalThis.Worker,e.url||globalThis.URL)},p=e.initializationTimeoutDelay||1e4,v=e.addTelemetryError||Ho,m=e.displayError||i.error,y=e.onInitialized||function(){},b=e.onError||function(){},_=e.onMessage||function(){};function w(){d(),d=function(){},s&&(g(s),s=void 0),r&&("function"==typeof r.terminate&&r.terminate(),r=void 0),o&&c&&a&&"function"==typeof a.revokeObjectURL&&a.revokeObjectURL(o),o=void 0,a=void 0,c=!1}function S(e,r){if(u===kf)return m("canvas encode worker failed to start: an error occurred while creating the Worker:",e),e instanceof Event||e instanceof Error&&(It(o=e.message,"Content Security Policy")||It(o,"requires 'TrustedScriptURL'"))?t.replayCanvasWorkerUrl?m("Please make sure the Canvas Worker URL "+t.replayCanvasWorkerUrl+" is correct and CSP is correctly configured."):m("Please make sure CSP is correctly configured."):v(e),u=Tf,w(),void b(e,{phase:r||"initialization",deterministic:"initialization"===r});var o;v(e,{worker_version:n}),b(e,{phase:r||"runtime"})}return{ensureWorker:function(){if(u===kf||u===Ef)return r;try{var t=f(),i=l+1;l=i,r=t.worker||t,o=t.workerUrl,a=t.urlObject||e.url||globalThis.URL,c=!!o&&!t.usesExternalUrl,u=kf;var v=lr(r,"error",(function(t){S(t.error||t||new Error("Canvas encode worker failed"),u===kf?"initialization":"runtime")})),g=lr(r,"message",(function(t){var e=t.data||{};if("initialized"===e.action)return n=e.version,u=Ef,void y(e);_(e)}));d=function(){v.stop(),g.stop()},r.postMessage({action:"init"}),s=h((function(){u===kf&&l===i&&(m("canvas encode worker failed to start: a timeout occurred while initializing the Worker"),S(new Error("Canvas encode worker initialization timeout"),"initialization"))}),p)}catch(t){S(t,"initialization")}return r},stop:function(){u=xf,w()},getStatus:function(){return u}}}function If(t,e){return{mimeType:e&&e.mimeType||t.replayCanvasMimeType,quality:e&&"number"==typeof e.quality?e.quality:t.replayCanvasQuality,maxSize:e&&"number"==typeof e.maxSize?e.maxSize:t.replayCanvasMaxCanvasSize}}function Rf(t,e,n){var r=If(e,n),o=function(t,e,n){if(!t||!e||!n)return{width:t,height:e};if(t<=n&&e<=n)return{width:t,height:e};var r=t>e?n/t:n/e;return{width:Math.max(1,Math.round(t*r)),height:Math.max(1,Math.round(e*r))}}(t.width,t.height,r.maxSize),i=t;if(o.width!==t.width||o.height!==t.height){(i=document.createElement("canvas")).width=o.width,i.height=o.height;var a=i.getContext("2d");if(!a)throw new Error("Cannot create canvas 2d context for encoding");a.drawImage(t,0,0,o.width,o.height)}return{dataUrl:i.toDataURL(r.mimeType,r.quality),width:o.width,height:o.height}}function Of(t,e,n){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:n}function Mf(t,e){e=e||{};var n=!1,r=0,o=0,i=t.replayCanvasMaxConcurrentEncodes||1,a=Math.max(20*i,50),s={},u=[],c=[],l=Of(e,"createImageBitmap",globalThis.createImageBitmap),d=Of(e,"url",globalThis.URL),f=Of(e,"Worker",globalThis.Worker),p=function(t,e,n){return"function"==typeof t&&"function"==typeof e&&"function"==typeof Blob&&!!n&&"function"==typeof n.createObjectURL}(l,f,d),v=Af(t,{createWorker:e.createWorker,Worker:f,url:d,onMessage:function(t){var e=s[t.id];e&&(h(t.id),"encoded"===t.action?e.resolve({dataUrl:t.dataUrl,width:t.width,height:t.height}):e.reject(new Error(t.error||"Canvas encode worker failed")))},onError:function(t,e){e&&"initialization"===e.phase&&(p=!1),v.stop(),Object.keys(s).forEach((function(e){var n=s[e];h(e),n.reject(t||new Error("Canvas encode worker failed"))}))}});function h(t){delete s[t]}function g(){if(!n)for(;r<i&&u.length>0;){var t=u.shift();t.cancelled||m(t)}}function m(e){var n,i,a;r+=1,c.push(e),(p?(n=e.canvas,i=e.encodeOptions,a=If(t,i),Promise.resolve(l(n)).then((function(t){return new Promise((function(e,r){var i=v.ensureWorker();if(i){var u=o;o+=1,s[u]={resolve:e,reject:r},i.postMessage({action:"encode",id:u,bitmap:t,width:n.width,height:n.height,mimeType:a.mimeType,quality:a.quality,maxSize:a.maxSize},[t])}else r(new Error("Canvas encode worker is unavailable"))})).catch((function(e){throw function(t){if(t&&"function"==typeof t.close)try{t.close()}catch(t){}}(t),e}))}))).catch((function(){return v.stop(),Rf(e.canvas,t,e.encodeOptions)})):Promise.resolve().then((function(){return Rf(e.canvas,t,e.encodeOptions)}))).then((function(t){e.cancelled||e.resolve(t)})).catch((function(t){e.cancelled||e.reject(t)})).finally((function(){var t=c.indexOf(e);-1!==t&&c.splice(t,1),r-=1,g()}))}return{encode:function(t,e){return new Promise((function(r,o){if(n)o(new Error("Canvas encode bridge stopped"));else if(u.length>=a)o(new Error("Canvas encode bridge queue full"));else{var i={canvas:t,encodeOptions:e,resolve:r,reject:o,cancelled:!1};u.push(i),g()}}))},stop:function(){n=!0,u.forEach((function(t){t.cancelled=!0,t.reject(new Error("Canvas encode bridge stopped"))})),u=[],c.forEach((function(t){t.cancelled=!0,t.reject(new Error("Canvas encode bridge stopped"))})),c=[],Object.keys(s).forEach((function(t){var e=s[t];h(t),e.reject(new Error("Canvas encode bridge stopped"))})),v.stop()},getWorkerStatus:function(){return v.getStatus()}}}function Df(){var t=document.createElement("canvas");t.width=8,t.height=8;var e=t.getContext("2d",{willReadFrequently:!0});return e?function(t){try{return e.clearRect(0,0,8,8),e.drawImage(t,0,0,8,8),function(t){for(var e=[],n=0;n<t.length;n+=4)e.push(Math.round(.299*t[n]+.587*t[n+1]+.114*t[n+2]));return e}(e.getImageData(0,0,8,8).data)}catch(t){return}}:function(){}}function Pf(t){return{ok:!1,reason:t}}function Lf(t){var e=t.configuration,n=t.emit,r=t.onMutationDebug||function(){},o=t.now||Date.now,i=t.encodeBridge||Mf(e),a=t.frameSignatureExtractor||Df(),s=!1,u=0,c=new WeakMap,l=new WeakMap,d=new WeakMap;return{snapshot:function(t,f){var p,v=f&&"auto"===f.trigger,h="auto"===e.replayCanvasMode;if(s)return Promise.resolve(Pf("observer_stopped"));if(!e.replayCanvasEnabled)return Promise.resolve(Pf("replay_disabled"));if("manual"!==(p=e.replayCanvasMode)&&"auto"!==p)return Promise.resolve(Pf("invalid_mode"));if(!(t instanceof HTMLCanvasElement))return Promise.resolve(Pf("not_canvas"));if(!gd(t))return Promise.resolve(Pf("not_serialized"));var g=yd(t);if(!g||!t.isConnected)return Promise.resolve(Pf("detached"));if(e.shouldRecordCanvas&&!1===e.shouldRecordCanvas(t))return Promise.resolve(Pf("rejected_by_should_record_canvas"));var m=u,y=function(t){if(!t.shouldTrackAutoBaseline||"auto"!==t.configuration.replayCanvasMode)return;var e=t.frameSignatureExtractor(t.canvas),n=t.lastAutoFrameSignatureByCanvas.get(t.canvas),r=t.lastAutoSuccessfulSnapshotAtByCanvas.get(t.canvas),o="number"==typeof r&&t.now()-r<t.configuration.replayCanvasAutoUnchangedBackoff;if(t.isAutoSnapshot&&o&&n&&e&&function(t,e){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0,r=0;r<t.length;r+=1)n+=Math.abs(t[r]-e[r]);return n/t.length<=8}(n,e))return{result:Pf("below_threshold"),nextFrameSignature:e};return{nextFrameSignature:e}}({canvas:t,configuration:e,now:o,frameSignatureExtractor:a,lastAutoFrameSignatureByCanvas:l,lastAutoSuccessfulSnapshotAtByCanvas:d,isAutoSnapshot:v,shouldTrackAutoBaseline:h});if(y&&y.result)return Promise.resolve(y.result);var b=function(t,e,n){if(n&&"auto"===n.trigger&&"continuous_snapshot"===n.scheduler&&!(t.width*t.height<12e4))return{quality:Math.max(.75*e.replayCanvasQuality,.2),maxSize:Math.max(1,Math.round(.85*e.replayCanvasMaxCanvasSize))}}(t,e,f);return i.encode(t,b).then((function(i){if(s)return Pf("observer_stopped");if(m!==u)return Pf("reset_during_snapshot");if(v&&c.get(t)===i.dataUrl)return Pf("unchanged");var a,p,b=(a=i.dataUrl,p=vf(a),Math.ceil(3*p.length/4));if(!function(t){if("string"!=typeof t||0!==t.indexOf("data:"))return!1;var e=vf(t);return!!e&&hf.test(e)}(i.dataUrl))return r({timestamp:mt(),canvasId:g,trigger:f&&"auto"===f.trigger?"auto":"manual",reason:"invalid_encoded_payload",width:i.width,height:i.height,encodedBytesCount:b,diagnostics:wf(i.dataUrl)}),Pf("invalid_encoded_payload");if(b>e.replayCanvasMaxEncodedBytes)return Pf("encode_too_large");c.set(t,i.dataUrl),h&&(y&&y.nextFrameSignature&&l.set(t,y.nextFrameSignature),d.set(t,o()));var _=mt();return n(function(t){var e=Cf(t);return e.data.encodedBytesCount=t.encodedBytesCount,e}({timestamp:_,id:g,contextType:"2D",commands:[{property:"clearRect",args:[0,0,i.width,i.height]},{property:"drawImage",args:[Sf(i.dataUrl,e.replayCanvasMimeType),0,0,i.width,i.height]}],encodedBytesCount:b})),r({timestamp:_,canvasId:g,trigger:f&&"auto"===f.trigger?"auto":"manual",encodedBytesCount:b,width:i.width,height:i.height}),{ok:!0}})).catch((function(t){return t&&!1===t.ok&&t.reason?t:Pf("encode_failed")}))},stop:function(){s=!0,i.stop()},reset:function(){u+=1,c=new WeakMap,l=new WeakMap,d=new WeakMap}}}function Nf(t){for(var e=new Uint8Array(t),n="",r=0;r<e.length;r+=1)n+=String.fromCharCode(e[r]);return btoa(n)}var Bf=new WeakMap;function Ff(t,e){if(!t||"object"!==Ju(t)||!e||!t.constructor)return t;var n=t.constructor.name||"Object",r=function(t,e){var n=Bf.get(t);return n||(n=new Map,Bf.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}(e,n),o=r.indexOf(t);return-1===o&&(o=r.length,r.push(t)),{rr_type:n,index:o}}function zf(t,e){return Array.isArray(t)?t.map((function(t){return zf(t,e)})):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?t:function(t){return t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray}(t)?{rr_type:t.constructor.name,args:[Array.prototype.slice.call(t)]}:t instanceof ArrayBuffer?{rr_type:"ArrayBuffer",base64:Nf(t)}:t instanceof DataView?{rr_type:"DataView",args:[zf(t.buffer,e),t.byteOffset,t.byteLength]}:"undefined"!=typeof ImageData&&t instanceof ImageData?{rr_type:"ImageData",args:[zf(t.data,e),t.width,t.height]}:"undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement?{rr_type:"HTMLImageElement",src:t.src}:Ff(t,e)}function Uf(t,e){return Array.prototype.slice.call(t).map((function(t){return zf(t,e)}))}var jf=["save","restore","translate","scale","rotate","transform","setTransform","createLinearGradient","createRadialGradient","createPattern","createConicGradient","clearRect","fillRect","strokeRect","rect","beginPath","moveTo","lineTo","bezierCurveTo","quadraticCurveTo","closePath","arc","ellipse","roundRect","clip","fill","stroke","fillText","strokeText","setLineDash","drawImage"],Hf=["fillStyle","strokeStyle","lineWidth","lineCap","lineJoin","miterLimit","font","globalAlpha","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textAlign","textBaseline","filter"],Vf={CanvasGradient:!0,CanvasPattern:!0,Path2D:!0},Wf="__dd_original_addColorStop__",qf="__dd_patched_addColorStop__";function $f(t){if(Array.isArray(t))for(var e=0;e<t.length;e+=1){var n=$f(t[e]);if(n)return n}else{var r=function(t){if(t&&"object"===Ju(t)&&t.constructor)return t.constructor.name||"Object"}(t);if(r&&Vf[r])return"CanvasGradient"===r?"gradient_style_assignment":"CanvasPattern"===r?"canvas_pattern":"Path2D"===r?"path2d_argument":"unsupported_canvas_object"}}function Gf(t){return"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement?"draw_image_canvas":"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement?"draw_image_video":function(t){if("undefined"==typeof HTMLImageElement||!(t instanceof HTMLImageElement))return!1;var e=t.currentSrc||t.src;if(!e)return!1;if(0===e.indexOf("data:")||0===e.indexOf("blob:"))return!1;try{return new URL(e,window.location.href).origin!==window.location.origin}catch(t){return!1}}(t)?"draw_image_cross_origin":void 0}function Qf(t){var e,n=(t=t||{}).emit||function(){},r=t.now||Date.now,o=t.requestAnimationFrameImpl||function(t){return window.requestAnimationFrame(t)},i=t.cancelAnimationFrameImpl||function(t){return window.cancelAnimationFrame(t)},a=[],s=new Set,u=[],c=new Map,l=new WeakSet,d=new WeakMap,f=new WeakSet,p=[],v=new WeakMap,h=Object.prototype.hasOwnProperty.call(t,"weakRefFactory")?"function"==typeof t.weakRefFactory?t.weakRefFactory:void 0:"function"==typeof WeakRef?function(t){return new WeakRef(t)}:void 0,g=!1,m=!1,y=t.getCanvasId||function(t){return t&&t.canvas&&t.canvas.__sn&&t.canvas.__sn.id},b=t.getCanvasType||function(){return"2D"},_=t.requestSnapshotFallback||function(){},w=t.shouldRecordContext||function(){return!0};function S(t,n){m||(c.has(t)||c.set(t,{commands:[],startedAt:r()}),c.get(t).commands.push(n),g||m||void 0!==e||(e=o((function(){e=void 0,C()}))))}function C(){g||m||(c.forEach((function(t,e){if(t.commands.length)if(l.has(e))_(e,d.get(e)||"unsupported_canvas_object");else{var o=y(e);if(null!=o&&-1!==o){var i=r();n(Cf({id:o,contextType:b(e),commands:t.commands.slice(),timestamp:i,startedAt:t.startedAt,completedAt:i}))}}})),c.clear())}function x(t){return s.has(t)}function k(t,e){return!(!t||s.has(t))&&(e=e||[],Object.defineProperty(t,"__dd_command_capture__",{configurable:!0,enumerable:!1,value:!0}),e.push((function(){delete t.__dd_command_capture__})),a.push({context:t,restore:function(){for(s.delete(t),c.delete(t),d.delete(t);e.length;)e.pop()()}}),s.add(t),!0)}function T(t){return!(!t||s.has(t)||!t.canvas||!1===w(t))&&k(t,[])}function E(t,e){l.add(t),d.has(t)||d.set(t,e||"unsupported_canvas_object"),c.delete(t),_(t,d.get(t)||"unsupported_canvas_object")}function A(t,e,n){if("function"==typeof t[e]){var r=t[e];t[e]=function(){T(this);var t=x(this)&&"drawImage"===e?Gf(arguments[0]):void 0;if(t)return E(this,t),r.apply(this,arguments);var n,o=x(this)?$f(Array.prototype.slice.call(arguments)):void 0;if(o)return E(this,o),r.apply(this,arguments);if(x(this)){try{n=Uf(arguments,this)}catch(t){throw t}S(this,{property:e,args:n})}var i=r.apply(this,arguments);return!x(this)||"createLinearGradient"!==e&&"createRadialGradient"!==e&&"createConicGradient"!==e||function(t,e){if(t&&"object"===Ju(t)&&"function"==typeof t.addColorStop&&(v.set(t,e),!f.has(t))){var n=t.addColorStop;try{t[Wf]=n,t[qf]=!0,t.addColorStop=function(){if(g||!this[qf]){var t=this[Wf];if("function"==typeof t)return this.addColorStop=t,delete this[Wf],delete this[qf],t.apply(this,arguments)}var e=v.get(this);return e&&x(e)&&E(e,"gradient_color_stop"),n.apply(this,arguments)},f.add(t),p.push(h?h(t):{value:t})}catch(t){}}}(i,this),i},n.push((function(){t[e]=r}))}}function I(t,e,n){if(function(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return!n||!1!==n.configurable}(t,e)){var r=function(t,e){for(var n=t;n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}(t,e),o=new WeakMap;Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return r&&r.get?r.get.call(this):o.get(this)},set:function(t){if(T(this),o.set(this,t),r&&r.set&&r.set.call(this,t),x(this)){var n=$f(t);if(n)return void E(this,n);S(this,{property:e,args:[Uf([t],this)[0]],setter:!0})}}}),n.push((function(){r?Object.defineProperty(t,e,r):delete t[e]}))}}return{patchContext:function(t){if(!t||t.__dd_command_capture__)return function(){};var e=[],n=Object.getPrototypeOf(t);return n&&n!==Object.prototype?function(t){var e=Object.getPrototypeOf(t);if(e&&e!==Object.prototype){var n=u.find((function(t){return t.prototype===e}));if(!n){var r=[];jf.forEach((function(t){A(e,t,r)})),Hf.forEach((function(t){I(e,t,r)})),u.push({prototype:e,restore:function(){for(;r.length;)r.pop()()}})}}}(t):function(t,e){jf.forEach((function(n){A(t,n,e)})),Hf.forEach((function(n){I(t,n,e)}))}(t,e),k(t,e),function(){var e=a.findIndex((function(e){return e.context===t}));e>=0&&a.splice(e,1)[0].restore()}},patchSharedPrototype:function(t){if(t&&t!==Object.prototype){var e=u.find((function(e){return e.prototype===t}));if(!e){var n=[];jf.forEach((function(e){A(t,e,n)})),Hf.forEach((function(e){I(t,e,n)})),u.push({prototype:t,restore:function(){for(;n.length;)n.pop()()}})}}},flush:C,pause:function(){m=!0,void 0!==e&&(i(e),e=void 0),c.clear(),l=new WeakSet,d=new WeakMap},resume:function(){m=!1},reset:function(){void 0!==e&&(i(e),e=void 0),c.clear(),l=new WeakSet,d=new WeakMap},stop:function(){for(g=!0,void 0!==e&&(i(e),e=void 0),c.clear(),l=new WeakSet,d=new WeakMap,v=new WeakMap,function(){for(;p.length;){var t=p.pop(),e=t&&"function"==typeof t.deref?t.deref():t&&t.value;e&&e[qf]&&"function"==typeof e[Wf]&&(e.addColorStop=e[Wf],delete e[Wf],delete e[qf])}}();a.length;)a.pop().restore();for(;u.length;)u.pop().restore()}}}function Kf(t){var e=t.configuration;if(!function(t){return t.replayCanvasEnabled&&"auto"===t.replayCanvasMode&&"all"===t.replayCanvasSampling}(e)||!window.HTMLCanvasElement||!window.HTMLCanvasElement.prototype)return{stop:function(){},reset:function(){}};var n,r=t.emit,o=t.now||Date.now,i=t.onDebug||function(){},a=t.onMutationDebug||function(){},s=t.snapshotCanvas||function(){},u=t.getCanvases||function(){return document.querySelectorAll?Array.prototype.slice.call(document.querySelectorAll("canvas")):[]},c=t.getSerializedNodeId||function(t){return t&&t.__sn&&t.__sn.id},l=new WeakMap,d=new WeakSet,f=new WeakSet,p=[],v=0,h=!1,g=t.commandRecorder||Qf({shouldRecordContext:function(t){return t&&t.canvas&&(!e.shouldRecordCanvas||!1!==e.shouldRecordCanvas(t.canvas))},getCanvasId:function(t){return t&&t.canvas?c(t.canvas):void 0},requestSnapshotFallback:function(t,e){if(t&&t.canvas){var n=o(),r=c(t.canvas);i({scheduler:"command_capture",status:"fallback",startedAt:n,completedAt:n,timestamp:n,eligibleCanvasCount:1,selectedCanvasCount:0,skippedBudgetCount:0,keepSessionAliveTriggered:!1,results:[{canvasId:r,ok:!1,reason:e,priority:void 0}]}),s(t.canvas,{trigger:"auto",scheduler:"command_capture",reason:e})}},emit:function(t){var e="number"==typeof t.completedAt?t.completedAt:"number"==typeof t.timestamp?t.timestamp:o(),n="number"==typeof t.startedAt?t.startedAt:e,s=JSON.stringify(t.data&&t.data.commands||[]).length;a({timestamp:e,canvasId:t.data&&t.data.id,trigger:"auto",approxBytesCount:s,commandCount:t.data&&t.data.commands?t.data.commands.length:0}),i({scheduler:"command_capture",status:"completed",startedAt:n,completedAt:e,timestamp:e,eligibleCanvasCount:1,selectedCanvasCount:1,skippedBudgetCount:0,keepSessionAliveTriggered:!1,results:[{canvasId:t.data&&t.data.id,ok:!0,reason:void 0,priority:void 0}]}),r(t)}}),m=window.HTMLCanvasElement.prototype.getContext,y=function(){};if("function"!=typeof m)return{stop:function(){},reset:function(){}};function b(){u().forEach((function(t){if(!(h||!t||e.shouldRecordCanvas&&!1===e.shouldRecordCanvas(t))){var n=l.get(t);n&&g.patchContext(n),void 0===c(t)||null===c(t)||-1===c(t)||d.has(t)||f.has(t)||!n||(f.add(t),p.push(t))}})),_()}function _(){if(!h&&!n&&p.length){var t=p.shift();if(t){var r=c(t);if(r||0===r)if(d.has(t)||e.shouldRecordCanvas&&!1===e.shouldRecordCanvas(t))_();else{var a=o(),u=v;n=t,d.add(t),Promise.resolve().then((function(){return s(t,{trigger:"auto",scheduler:"command_capture",reason:"initial_static_canvas"})})).then((function(e){if(!h&&u===v){var n=o();e&&!1!==e.ok||d.delete(t),i({scheduler:"command_capture",status:"completed",startedAt:a,completedAt:n,timestamp:n,eligibleCanvasCount:1,selectedCanvasCount:e&&!1===e.ok?0:1,skippedBudgetCount:0,keepSessionAliveTriggered:!1,results:[{canvasId:r,ok:!(e&&!1===e.ok),reason:e&&!1===e.ok?e.reason:void 0,priority:void 0}]})}})).catch((function(){if(!h&&u===v){var e=o();d.delete(t),i({scheduler:"command_capture",status:"completed",startedAt:a,completedAt:e,timestamp:e,eligibleCanvasCount:1,selectedCanvasCount:0,skippedBudgetCount:0,keepSessionAliveTriggered:!1,results:[{canvasId:r,ok:!1,reason:"snapshot_failed",priority:void 0}]})}})).finally((function(){f.delete(t),n===t&&(n=void 0),_()}))}else _()}}}if(g.patchSharedPrototype&&window.CanvasRenderingContext2D&&window.CanvasRenderingContext2D.prototype&&g.patchSharedPrototype(window.CanvasRenderingContext2D.prototype),window.HTMLCanvasElement.prototype.getContext=function(t){var n=m.apply(this,arguments);return"2d"!==t||!n||e.shouldRecordCanvas&&!1===e.shouldRecordCanvas(this)||(l.set(this,n),g.patchContext(n)),n},b(),document.addEventListener&&document.removeEventListener){var w=function(){"hidden"!==document.visibilityState&&!0!==document.hidden?(g.resume&&g.resume(),b()):g.pause&&g.pause()};document.addEventListener("visibilitychange",w),y=function(){document.removeEventListener("visibilitychange",w)}}return{stop:function(){h=!0,v+=1,p=[],f=new WeakSet,n=void 0,window.HTMLCanvasElement.prototype.getContext=m,y(),g.stop()},reset:function(){v+=1,d=new WeakSet,f=new WeakSet,p=[],n=void 0,g.flush(),g.reset&&g.reset()},scanExistingCanvases:function(){b()}}}function Xf(t){return t.replayCanvasEnabled&&"auto"===t.replayCanvasMode&&"all"!==t.replayCanvasSampling}function Jf(t){var e,n,r=t.configuration,o=t.snapshotCanvas,i=t.now||Date.now,a=t.getSerializedNodeId,s=t.onDebug||function(){},u=t.getVisibilityState||function(){return document.visibilityState},c=t.getCanvases||function(){return document.querySelectorAll("canvas")},l=t.addEventListenerImpl||lr,d=t.requestAnimationFrameImpl||function(t){return window.requestAnimationFrame(t)},f=t.cancelAnimationFrameImpl||function(t){return window.cancelAnimationFrame(t)},p=!1,v=!1,h=0,g=!1,m=new WeakMap;function y(t){s(t)}function b(){void 0!==e&&(f(e),e=void 0)}function _(){p||void 0!==e||"hidden"===u()||(e=d((function(){e=void 0,function(){if(p||v)return;if("hidden"===u())return void y({scheduler:"continuous_snapshot",status:"skipped_hidden",startedAt:i(),completedAt:i(),timestamp:i(),eligibleCanvasCount:0,selectedCanvasCount:0,skippedBudgetCount:0,results:[]});var t=function(t,e){return Array.prototype.slice.call(t()).filter((function(t){return!e.shouldRecordCanvas||!1!==e.shouldRecordCanvas(t)}))}(c,r);if(!t.length)return y({scheduler:"continuous_snapshot",status:"skipped_no_candidates",startedAt:i(),completedAt:i(),timestamp:i(),eligibleCanvasCount:0,selectedCanvasCount:0,skippedBudgetCount:0,results:[]}),void _();var e=i(),n=t.filter((function(t){var n=m.get(t);return void 0===n||e-n>=120}));if(!n.length)return y({scheduler:"continuous_snapshot",status:"skipped_no_candidates",startedAt:e,completedAt:i(),timestamp:i(),eligibleCanvasCount:t.length,selectedCanvasCount:0,skippedBudgetCount:t.length,keepSessionAliveTriggered:!1,results:[]}),void _();var s={scheduler:"continuous_snapshot",status:"completed",startedAt:e,eligibleCanvasCount:t.length,selectedCanvasCount:n.length,skippedBudgetCount:0,keepSessionAliveTriggered:!1,results:[]},l=h;v=!0,function(t,e){return Array.prototype.slice.call(t()).reduce((function(t,n){return t.then((function(){return Promise.resolve(e(n)).catch((function(){}))}))}),Promise.resolve())}((function(){return n}),(function(t){if(l!==h||"hidden"===u())return{ok:!1,reason:"skipped_hidden"};var e=a?a(t):void 0;return Promise.resolve(o(t)).then((function(n){return l!==h||"hidden"===u()||(n&&!1===n.ok||m.set(t,i()),s.results.push({canvasId:e,ok:!n||!1!==n.ok,reason:n&&!1===n.ok?n.reason:void 0,priority:void 0})),n})).catch((function(){var t={ok:!1,reason:"encode_failed"};return l!==h||"hidden"===u()||s.results.push({canvasId:e,ok:!1,reason:t.reason,priority:void 0}),t}))})).then((function(){v=!1,l===h?(g=!1,s.completedAt=i(),s.timestamp=s.completedAt,y(s),_()):g&&(g=!1,_())}),(function(){v=!1,l===h?(g=!1,s.completedAt=i(),s.timestamp=s.completedAt,y(s),_()):g&&(g=!1,_())}))}()})))}function w(){p=!0,n&&n.stop(),b()}function S(){Xf(r)&&(h+=1,m=new WeakMap,b(),(g=!p&&"hidden"!==u())&&!v&&_())}return Xf(r)?(_(),n=l(window,ge,(function(){"hidden"!==u()?p||"hidden"===u()||(v?g=!0:_()):(h+=1,m=new WeakMap,g=!1,b())}),{capture:!0}),{stop:w,reset:S}):{stop:w,reset:S}}var Yf=2e5;function Zf(t){var e=t.emit;if(!e)throw new Error("emit function is required");var n,r,o,i=(n=new WeakMap,{set:function(t,e){(t!==document||document.scrollingElement)&&n.set(t===document?document.scrollingElement:t,e)},get:function(t){return n.get(t)},has:function(t){return n.has(t)}}),a={processMutationsCount:0,processMutationsDuration:0,mutationCallbackCount:0,mutationRecordCount:0,mutationAddCount:0,mutationRemoveCount:0,mutationTextCount:0,mutationAttributeCount:0},s=function(t){!function(t,e){if(!e)return;t.processMutationsCount+=e.processMutationsCount||0,t.processMutationsDuration+=e.processMutationsDuration||0,t.mutationCallbackCount+=e.mutationCallbackCount||0,t.mutationRecordCount+=e.mutationRecordCount||0,t.mutationAddCount+=e.mutationAddCount||0,t.mutationRemoveCount+=e.mutationRemoveCount||0,t.mutationTextCount+=e.mutationTextCount||0,t.mutationAttributeCount+=e.mutationAttributeCount||0}(a,t)},u=function(t){var e;r&&(e=t,r.approxBytes+function(t){return tp+np(t.adds)+np(t.removes)+np(t.texts)+np(t.attributes)}(e)>Yf)&&c(),r=function(t,e){var n=t||{adds:[],removes:[],texts:[],attributes:[],approxBytes:0,addsApproxBytes:0,removesApproxBytes:0,textsApproxBytes:0,attributesApproxBytes:0,addApproxBytes:[],removesByKey:new Map,removeApproxBytesByKey:new Map,textsById:new Map,textApproxBytesById:new Map,attributesById:new Map,attributeApproxBytesById:new Map};return function(t,e){if(!e.length)return;e.forEach((function(e){var n=ep(e);t.adds.push(e),t.addApproxBytes.push(n),t.addsApproxBytes+=n}))}(n,e.adds),function(t,e){if(!e.length)return;e.forEach((function(e){var n=function(t){return t.parentId+":"+t.id}(e);if(!t.removesByKey.has(n)){t.removes.push(e);var r=ep(e);t.removeApproxBytesByKey.set(n,r),t.removesApproxBytes+=r}t.removesByKey.set(n,e)}))}(n,e.removes),function(t,e){if(!e.length)return;e.forEach((function(e){var n=t.textsById.get(e.id);if(n){t.textsApproxBytes-=t.textApproxBytesById.get(e.id)||0,n.value=e.value;var r=ep(n);return t.textApproxBytesById.set(e.id,r),void(t.textsApproxBytes+=r)}t.texts.push(e),t.textsById.set(e.id,e);var o=ep(e);t.textApproxBytesById.set(e.id,o),t.textsApproxBytes+=o}))}(n,e.texts),function(t,e){if(!e.length)return;e.forEach((function(e){var n=t.attributesById.get(e.id);if(!n){var r={id:e.id,attributes:I({},e.attributes)};t.attributes.push(r),t.attributesById.set(e.id,r);var o=ep(r);return t.attributeApproxBytesById.set(e.id,o),void(t.attributesApproxBytes+=o)}t.attributesApproxBytes-=t.attributeApproxBytesById.get(e.id)||0,n.attributes=I(n.attributes,e.attributes);var i=ep(n);t.attributeApproxBytesById.set(e.id,i),t.attributesApproxBytes+=i}))}(n,e.attributes),function(t){t.approxBytes=tp+t.addsApproxBytes+t.removesApproxBytes+t.textsApproxBytes+t.attributesApproxBytes}(n),n}(r,t),function(){if(o)return;o=setTimeout((function(){o=void 0,c()}),16)}()};function c(){if(o&&(clearTimeout(o),o=void 0),r){var t=function(t){var e=function(t){return{adds:t.adds,removes:t.removes,texts:t.texts,attributes:t.attributes}}(t);if(!e.adds.length||t.approxBytes<=Yf)return[e];var n=[],r=[],o=tp;e.adds.forEach((function(e,i){var a=t.addApproxBytes[i];r.length&&o+a>Yf&&(n.push({adds:r,removes:[],texts:[],attributes:[]}),r=[],o=tp),r.push(e),o+=a})),r.length&&n.push({adds:r,removes:[],texts:[],attributes:[]});(e.removes.length||e.texts.length||e.attributes.length)&&n.push({adds:[],removes:e.removes,texts:e.texts,attributes:e.attributes});return n}(r);r=void 0,s(t.reduce((function(t,e){var n;return t.mutationCallbackCount+=1,t.mutationRecordCount+=(n=e).adds.length+n.removes.length+n.texts.length+n.attributes.length,t.mutationAddCount+=e.adds.length,t.mutationRemoveCount+=e.removes.length,t.mutationTextCount+=e.texts.length,t.mutationAttributeCount+=e.attributes.length,t}),{mutationCallbackCount:0,mutationRecordCount:0,mutationAddCount:0,mutationRemoveCount:0,mutationTextCount:0,mutationAttributeCount:0})),t.forEach((function(t){f=sp(t),rp(y,f),e(Yd(Pl,t))}))}}var l,d,f,p,v=function(t){e(Yd(zl,t))},h=function(t,e){var n=e.mutationCb,r=e.inputCb,o=new Map,i={addShadowRoot:function(e){if(!o.has(e)){var a=tf(n,t,i,e),s=a.flush,u=a.stop,c=ff(r,t,e);o.set(e,{flush:s,stop:function(){u(),c()}})}},removeShadowRoot:function(t){var e=o.get(t);e&&(e.stop(),o.delete(t))},stop:function(){o.forEach((function(t){t.stop()}))},flush:function(){o.forEach((function(t){t.flush()}))}};return i}(t.configuration,{mutationCb:u,inputCb:v}),g=[],m=[],y=[],b=(p=t.configuration).replayCanvasEnabled&&"auto"===p.replayCanvasMode&&"all"===p.replayCanvasSampling,_=(t.createCanvasObserver||Lf)({configuration:t.configuration,emit:e,onMutationDebug:function(t){d=ap(t),rp(m,d)}}),w=t.startContinuousCanvasSnapshotLoop||Jf,S=b?{stop:function(){},reset:function(){}}:w({configuration:t.configuration,getCanvases:function(){return bd()},getSerializedNodeId:function(t){return yd(t)},onDebug:function(e){var n=!1;op(e)&&t.sessionManager&&t.sessionManager.keepSessionAlive&&(t.sessionManager.keepSessionAlive(),n=!0),l=ip(e,n),rp(g,l)},snapshotCanvas:function(t){return _.snapshot(t,{trigger:"auto",scheduler:"continuous_snapshot"})}}),C=(t.startCanvasCommandCapture||Kf)({configuration:t.configuration,emit:e,snapshotCanvas:function(t,e){return _.snapshot(t,e)},getCanvases:function(){return bd()},getSerializedNodeId:function(t){return yd(t)},onDebug:function(e){var n=!1;op(e)&&t.sessionManager&&t.sessionManager.keepSessionAlive&&(t.sessionManager.keepSessionAlive(),n=!0),l=ip(e,n),rp(g,l)},onMutationDebug:function(t){d=ap(t),rp(m,d)}}),x=function(n,r){void 0===n&&(n=mt()),void 0===r&&(r={status:Pd,elementsScrollPositions:i,shadowRootsController:h});var o=dc(),a=o.width,s=o.height;e({data:{height:s,href:window.location.href,width:a},type:Cl,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:xl,timestamp:n}),e({data:{node:Bd(document,t.configuration,r),initialOffset:{left:Mi(),top:Di()}},type:wl,timestamp:n}),window.visualViewport&&e({data:of(),type:Tl,timestamp:n})};x(),C.scanExistingCanvases&&C.scanExistingCanvases();var k=cf({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:i,inputCb:v,mediaInteractionCb:function(t){e(Yd(jl,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(Yd(n,{positions:t}))},mutationCb:u,mutationPerfCb:s,scrollCb:function(t){e(Yd(Bl,t))},styleSheetCb:function(t){e(Yd(Hl,t))},viewportResizeCb:function(t){e(Yd(Fl,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:xl,timestamp:mt()})},visualViewportResizeCb:function(t){e({data:t,type:Tl,timestamp:mt()})},shadowRootsController:h}),T=k.stop,E=k.flush,A=k.reset||function(){};function R(){h.flush(),E(),c()}return{stop:function(){c(),h.stop(),C.stop(),_.stop(),function(t){if("function"==typeof t)return void t();t&&t.stop&&t.stop()}(S),T()},snapshotCanvas:function(t,e){return _.snapshot(t,I({trigger:"manual"},e))},getSerializedNodeIdForDebug:function(t){return yd(t)},getLastAutoCanvasSnapshotResultForDebug:function(){return ip(l)},getAutoCanvasSnapshotDebugHistoryForDebug:function(){return g.map(ip)},getLastCanvasMutationForDebug:function(){return ap(d)},getCanvasMutationHistoryForDebug:function(){return m.map(ap)},getLastDomMutationForDebug:function(){return sp(f)},getDomMutationHistoryForDebug:function(){return y.map(sp)},getReplayPerformanceForDebug:function(){return function(t){if(!t)return t;return{processMutationsCount:t.processMutationsCount,processMutationsDuration:Math.round(10*t.processMutationsDuration)/10,mutationCallbackCount:t.mutationCallbackCount,mutationRecordCount:t.mutationRecordCount,mutationAddCount:t.mutationAddCount,mutationRemoveCount:t.mutationRemoveCount,mutationTextCount:t.mutationTextCount,mutationAttributeCount:t.mutationAttributeCount}}(a)},takeSubsequentFullSnapshot:function(t){R(),A(),_.reset&&_.reset(),C.reset&&C.reset(),function(t){t&&t.reset&&t.reset()}(S),x(t,{shadowRootsController:h,status:Ld,elementsScrollPositions:i}),C.scanExistingCanvases&&C.scanExistingCanvases()},flushMutations:R,shadowRootsController:h}}var tp=64;function ep(t){return JSON.stringify(t).length}function np(t){for(var e=0,n=0;n<t.length;n+=1)e+=ep(t[n]);return e}function rp(t,e){e&&(t.push(e),t.length>200&&t.shift())}function op(t){return!!(t&&"completed"===t.status&&t.selectedCanvasCount>0&&(t.results||[]).some((function(t){return function(t){return!(!t||!t.ok&&"unchanged"!==t.reason&&"below_threshold"!==t.reason)}(t)})))}function ip(t,e){return t?(void 0===e&&(e=t.keepSessionAliveTriggered),{scheduler:t.scheduler,status:t.status,startedAt:"number"==typeof t.startedAt?t.startedAt:t.timestamp,completedAt:"number"==typeof t.completedAt?t.completedAt:t.timestamp,timestamp:t.timestamp,eligibleCanvasCount:t.eligibleCanvasCount,selectedCanvasCount:t.selectedCanvasCount,skippedBudgetCount:t.skippedBudgetCount,keepSessionAliveTriggered:!!e,results:(t.results||[]).map((function(t){return{canvasId:t.canvasId,ok:t.ok,reason:t.reason,priority:t.priority}}))}):t}function ap(t){if(!t)return t;var e={timestamp:t.timestamp,canvasId:t.canvasId,trigger:t.trigger,encodedBytesCount:t.encodedBytesCount,approxBytesCount:t.approxBytesCount,commandCount:t.commandCount,width:t.width,height:t.height};return void 0!==t.reason&&(e.reason=t.reason),void 0!==t.diagnostics&&(e.diagnostics=t.diagnostics),e}function sp(t){return t?{timestamp:"number"==typeof t.timestamp?t.timestamp:mt(),adds:(t.adds||[]).map(up),removes:(t.removes||[]).map(up),texts:(t.texts||[]).map(up),attributes:(t.attributes||[]).map(up),addsCount:(t.adds||[]).length,removesCount:(t.removes||[]).length,textsCount:(t.texts||[]).length,attributesCount:(t.attributes||[]).length}:t}function up(t){return t&&"object"===Ju(t)?Array.isArray(t)?t.map(up):Object.keys(t).reduce((function(e,n){return e[n]=up(t[n]),e}),{}):t}function cp(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),lp(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function lp(t,e,n){void 0===n&&(n=""),A(W(t),(function(t){var r=t[1],o=t[0];"object"===Ju(r)&&null!==r?lp(r,e,""+n+o+"_"):e(""+n+o,String(r))}))}var dp;function fp(t){return pp(t).segments_count}function pp(t){var e;return dp||(dp=new Map),dp.has(t)?e=dp.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},dp.set(t,e),dp.size>10&&vp()),e}function vp(){if(dp)if(dp.keys)dp.delete(dp.keys().next().value);else{var t=!0;dp.forEach((function(e,n){t&&(dp.delete(n),t=!1)}))}}function hp(t){var e=t.context,n=t.creationReason,r=t.encoder,o=0,i=e.view.id,a={},s=I({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:fp(i),source:"browser"},e);return function(t){pp(t).segments_count+=1}(i),{addRecord:function(t,e){s.start=Math.min(s.start,t.timestamp),s.end=Math.max(s.end,t.timestamp),s.records_count+=1,function(t,e){t[e]=(t[e]||0)+1}(a,function(t){if(!t)return"other";switch(t.type){case wl:return"full_snapshot";case Cl:return"meta";case xl:return"focus";case kl:return"view_end";case Tl:return"visual_viewport";case El:return"frustration_record";case Sl:return function(t){if(!t.data)return"incremental_unknown";switch(t.data.source){case Pl:return"mutation";case Ll:return"mouse_move";case Nl:return"mouse_interaction";case Bl:return"scroll";case Fl:return"viewport_resize";case zl:return"input";case Ul:return"touch_move";case jl:return"media_interaction";case Hl:return"style_sheet_rule";case Vl:return"canvas_mutation";default:return"incremental_unknown"}}(t);default:return"other"}}(t)),s.has_full_snapshot||(s.has_full_snapshot=t.type===wl),function(t){pp(t).records_count+=1}(s.view.id);var n=r.isEmpty()?'{"records":[':",";r.write(n+JSON.stringify(t),(function(t){e(o+=t)}))},flush:function(t){if(r.isEmpty())throw new Error("Empty segment flushed");r.write("],"+JSON.stringify(s).slice(1)+"\n"),r.finish((function(e){!function(t,e){pp(t).segments_total_raw_size+=e}(s.view.id,e.rawBytesCount),t(s,e,I({},a))}))}}}var gp=6e4;function mp(t,e,n,r,o,i){var a=arguments.length>7?arguments[7]:void 0;return function(t,e,n,r,o,i){void 0===i&&(i={});var a={status:yp.WaitingForInitialRecord,nextSegmentCreationReason:"init",isLocked:o},s=t.subscribe(Cr,(function(){f("view_change")})),u=s.unsubscribe,c=t.subscribe(Rr,(function(t){f(t.reason)})),l=c.unsubscribe,d=["view_change","buffer_checkout"];function f(t,e){var r=a.isLocked;if(a.status===yp.SegmentPending){if(r&&d.includes(t))a.segment.flush((function(){e&&e()}));else{if(r)return;a.segment.flush((function(e,r,o){i.onSegmentFlushed&&i.onSegmentFlushed({creationReason:e.creation_reason,flushReason:t,recordsCount:e.records_count,recordCountsByType:o,start:e.start,end:e.end,indexInView:e.index_in_view,rawBytesCount:r.rawBytesCount});var a=cp(r.output,e,r.rawBytesCount);ki(t)?n.sendOnExit(a):n.send(a)}))}g(a.expirationTimeoutId)}a="stop"!==t?{status:yp.WaitingForInitialRecord,nextSegmentCreationReason:t,isLocked:a.isLocked}:{status:yp.Stopped,isLocked:!1}}return{addRecord:function(t){if(a.status!==yp.Stopped){if(a.status===yp.WaitingForInitialRecord){var n=e();if(!n)return;a={status:yp.SegmentPending,segment:hp({encoder:r,context:n,creationReason:a.nextSegmentCreationReason}),isLocked:a.isLocked,expirationTimeoutId:h((function(){f("segment_duration_limit")}),5e3)}}a.segment.addRecord(t,(function(t){t>gp&&f("segment_bytes_limit")})),i.flushCanvasImmediately&&function(t){return t&&t.type===Sl&&t.data&&t.data.source===Vl}(t)&&a.status===yp.SegmentPending&&f("canvas_snapshot")}},unlockSegment:function(){a.isLocked=!1},flushBufferSegment:function(t){f("buffer_checkout",t)},isLocked:function(){return a.isLocked},stop:function(){f("stop"),u(),l()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),o=n.findView();if(!r||!o)return;return{sdk:{name:t.sdkName,version:t.sdkVersion},env:t.env||"",service:o.service||t.service||"browser",version:o.version||t.version||"",app:{id:t.applicationId},session:{id:r.id},view:{id:o.id}}}(e,n,r)}),o,i,arguments.length>6&&void 0!==arguments[6]&&arguments[6],I({flushCanvasImmediately:e.replayCanvasFlushImmediately,onSegmentFlushed:void 0},a))}var yp={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};function bp(t,e){return t?{sequence:"number"==typeof e?e:t.sequence,creationReason:t.creationReason,flushReason:t.flushReason,recordsCount:t.recordsCount,recordCountsByType:I({},t.recordCountsByType),start:t.start,end:t.end,indexInView:t.indexInView,rawBytesCount:t.rawBytesCount}:t}var _p=0,wp=1,Sp=2,Cp=3;var xp,kp,Tp,Ep,Ap=function(t,e){if(ba()&&!ya(ma)||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:it,stop:it,takeSubsequentFullSnapshot:it,snapshotCanvas:function(){return{ok:!1,reason:"not_recording"}},getSerializedNodeIdForDebug:function(){},getLastAutoCanvasSnapshotResultForDebug:function(){},getAutoCanvasSnapshotDebugHistoryForDebug:function(){},getLastCanvasMutationForDebug:function(){},getCanvasMutationHistoryForDebug:function(){},getLastDomMutationForDebug:function(){},getDomMutationHistoryForDebug:function(){},getLastReplaySegmentFlushForDebug:function(){},getReplaySegmentFlushHistoryForDebug:function(){},getReplayPerformanceForDebug:function(){},flushReplayMutationsForDebug:it,getReplayStats:function(){},onRumStart:it,isRecording:function(){return!1}};var n={status:_p},r=function(){n={status:wp}},o=function(){n={status:_p}},i=function(){},a=function(){return{ok:!1,reason:"not_recording"}},s=function(){},u=function(){},c=function(){},l=function(){},d=function(){},f=function(){},p=function(){},v=function(){},h=function(){},g=function(){},m=it;return{start:function(t){r(t)},stop:function(){o()},onRumStart:function(y,b,_,w,S){var C;y.subscribe(Ir,(function(){n.status!==Sp&&n.status!==Cp||(o(),n={status:wp})})),y.subscribe(Rr,(function(t){t.reason===xi.UNLOADING&&o()})),y.subscribe(Ar,(function(){n.status===wp&&r()})),r=function(r){var i=_.findTrackedSession();i&&i.sessionReplayAllowed?n.status!==Sp&&n.status!==Cp&&(n={status:Sp},Oi("interactive",(function(){if(n.status===Sp){var r=(C||(S||(S=Gu(b,"Session Replay",(function(){o()}),e)),S&&(C=Uu(S,Fu))),C);if(r){var i=t(y,b,_,w,r);n={status:Cp,stopRecording:i.stop,takeSubsequentFullSnapshot:i.takeSubsequentFullSnapshot,snapshotCanvas:i.snapshotCanvas||it,getSerializedNodeIdForDebug:i.getSerializedNodeIdForDebug||it,getLastAutoCanvasSnapshotResultForDebug:i.getLastAutoCanvasSnapshotResultForDebug||it,getAutoCanvasSnapshotDebugHistoryForDebug:i.getAutoCanvasSnapshotDebugHistoryForDebug||it,getLastCanvasMutationForDebug:i.getLastCanvasMutationForDebug||it,getCanvasMutationHistoryForDebug:i.getCanvasMutationHistoryForDebug||it,getLastDomMutationForDebug:i.getLastDomMutationForDebug||it,getDomMutationHistoryForDebug:i.getDomMutationHistoryForDebug||it,getLastReplaySegmentFlushForDebug:i.getLastReplaySegmentFlushForDebug||it,getReplaySegmentFlushHistoryForDebug:i.getReplaySegmentFlushHistoryForDebug||it,getReplayPerformanceForDebug:i.getReplayPerformanceForDebug||it,flushReplayMutationsForDebug:i.flushReplayMutationsForDebug||it}}else n={status:_p}}}))):n={status:wp}},o=function(){n.status!==_p&&(n.status===Cp&&n.stopRecording(),n={status:_p})},i=function(){n.takeSubsequentFullSnapshot()},a=function(t,e){return n.status===Cp?n.snapshotCanvas(t,e):{ok:!1,reason:"not_recording"}},s=function(t){if(n.status===Cp)return n.getSerializedNodeIdForDebug(t)},u=function(){if(n.status===Cp)return n.getLastAutoCanvasSnapshotResultForDebug()},c=function(){if(n.status===Cp)return n.getAutoCanvasSnapshotDebugHistoryForDebug()},l=function(){if(n.status===Cp)return n.getLastCanvasMutationForDebug()},d=function(){if(n.status===Cp)return n.getCanvasMutationHistoryForDebug()},f=function(){if(n.status===Cp)return n.getLastDomMutationForDebug()},p=function(){if(n.status===Cp)return n.getDomMutationHistoryForDebug()},v=function(){if(n.status===Cp)return n.getLastReplaySegmentFlushForDebug()},h=function(){if(n.status===Cp)return n.getReplaySegmentFlushHistoryForDebug()},g=function(){if(n.status===Cp)return n.getReplayPerformanceForDebug()},m=function(){n.status===Cp&&n.flushReplayMutationsForDebug()},n.status===wp&&r()},takeSubsequentFullSnapshot:function(){i()},snapshotCanvas:function(t,e){return a(t,e)},getSerializedNodeIdForDebug:function(t){return s(t)},getLastReplaySegmentFlushForDebug:function(){return v()},getLastAutoCanvasSnapshotResultForDebug:function(){return u()},getAutoCanvasSnapshotDebugHistoryForDebug:function(){return c()},getLastCanvasMutationForDebug:function(){return l()},getCanvasMutationHistoryForDebug:function(){return d()},getLastDomMutationForDebug:function(){return f()},getDomMutationHistoryForDebug:function(){return p()},getReplaySegmentFlushHistoryForDebug:function(){return h()},getReplayPerformanceForDebug:function(){return g()},flushReplayMutationsForDebug:function(){m()},isRecording:function(){return Qu()===qu&&n.status===Cp},getReplayStats:function(t){return Qu()===qu?function(t){return dp&&dp.get(t)}(t):void 0}}}((function(t,e,n,r,o,i){var a,s,u,c,l,d=[],f=[],p=0,v=i||ta(e.sessionReplayEndPoint,gp,e.retryMaxSize,(function(e){t.notify(Lr,{error:e}),jo("Error reported to customer",{"error.message":e.message})}));if(ba()){var h=(c=r,l=ga(),{addRecord:function(t){var e=c.findView();l.send("session_replay",t,e.id)}});u=Zf({emit:s=h.addRecord,configuration:e,lifeCycle:t,sessionManager:n})}else{var g=n.findTrackedSession(),m=g&&g.errorSessionReplayAllowed&&!g.sessionHasError,y=mp(t,e,n,r,v,o,m,{onSegmentFlushed:function(t){a=bp(t,p+=1),f.push(a),f.length>10&&f.shift()}});s=y.addRecord;var b=y.flushBufferSegment,_=y.unlockSegment;d.push(y.stop),m&&n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,n=t.newState;!e.hasError&&n.hasError&&(m=!1,_())}));var w=null;u=Zf({emit:function(t){if(s(t),m)if(t.type===wl)w=t;else if(t.type===Sl){t.timestamp-w.timestamp>6e4&&b((function(){vp(),S()}))}},configuration:e,lifeCycle:t,sessionManager:n})}d.push(u.stop);var S=u.takeSubsequentFullSnapshot,C=u.snapshotCanvas,x=u.getSerializedNodeIdForDebug,k=u.getLastAutoCanvasSnapshotResultForDebug,T=u.getAutoCanvasSnapshotDebugHistoryForDebug,E=u.getLastCanvasMutationForDebug,A=u.getCanvasMutationHistoryForDebug,R=u.getLastDomMutationForDebug,O=u.getDomMutationHistoryForDebug,M=u.flushMutations,D=t.subscribe(Tr,(function(){M(),s({timestamp:mt(),type:kl})}));d.push(D.unsubscribe);var P=t.subscribe(Cr,(function(t){S(t.startClocks.timeStamp)}));return d.push(P.unsubscribe),{stop:function(){d.forEach((function(t){t()}))},takeSubsequentFullSnapshot:S,snapshotCanvas:C,getSerializedNodeIdForDebug:x,getLastAutoCanvasSnapshotResultForDebug:k,getAutoCanvasSnapshotDebugHistoryForDebug:T,getLastCanvasMutationForDebug:E,getCanvasMutationHistoryForDebug:A,getLastDomMutationForDebug:R,getDomMutationHistoryForDebug:O,getLastReplaySegmentFlushForDebug:function(){return bp(a)},getReplaySegmentFlushHistoryForDebug:function(){return f.map((function(t){return bp(t)}))},getReplayPerformanceForDebug:function(){return function(t,e){if(!t&&void 0===e)return;return I({},t||{},{replaySegmentFlushCount:e||0})}(u.getReplayPerformanceForDebug?u.getReplayPerformanceForDebug():void 0,p)},flushReplayMutationsForDebug:M}})),Ip=function(t,e,n){void 0===n&&(n={});var r=Na(Da),o=gl(),a=Ta("global",{customerDataTracker:r.getOrCreateTracker(Aa)}),l=Ta("user",{customerDataTracker:r.getOrCreateTracker(Ea),propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}});function d(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(a,l,e)}var f,p,v=vl(I({},n,{resourceTrackerManager:o}),d,(function(i,s,u){i.storeContextsToLocal&&(Ma(i,a,"rum",Aa),Ma(i,l,"rum",Ea)),r.setCompressionStatus(s?Pa:La);var c=t(i,e,r,d,u,s&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(s,t)}:Fa,o);return e.onRumStart(c.lifeCycle,i,c.session,c.viewContexts,s),v=function(t,e){return I({init:function(t){ja("DATAFLUX_RUM",t)},initConfiguration:t.getInitConfiguration(),getRemoteConfiguration:function(e){t.getRemoteConfiguration(e)}},e)}(v,c),c})),h=u((function(t){var e="object"===Ju(t)?t:{name:t};v.startView(e),e.context&&r.getOrCreateTracker(Ia).updateCustomerData(e.context),Vo({feature:"start-view"})})),g=(f={init:u((function(t){v.init(t)})),setViewName:u((function(t){v.setViewName(t),Vo({feature:"set-view-name"})})),setViewContext:u((function(t){v.setViewContext(t),Vo({feature:"set-view-context"})})),setViewContextProperty:u((function(t,e){v.setViewContextProperty(t,e),Vo({feature:"set-view-context-property"})})),getViewContext:u((function(){return Vo({feature:"set-view-context-property"}),v.getViewContext()})),addRumGlobalContext:u((function(t,e){a.setContextProperty(t,e),Vo({feature:"set-global-context"})})),setGlobalContextProperty:u((function(t,e){a.setContextProperty(t,e),Vo({feature:"set-global-context"})})),removeRumGlobalContext:u((function(t){return a.removeContextProperty(t)})),removeGlobalContextProperty:u((function(t){return a.removeContextProperty(t)})),getRumGlobalContext:u((function(){return a.getContext()})),getGlobalContext:u((function(){return a.getContext()})),setRumGlobalContext:u((function(t){a.setContext(t),Vo({feature:"set-global-context"})})),setGlobalContext:u((function(t){a.setContext(t),Vo({feature:"set-global-context"})})),clearGlobalContext:u((function(){return a.clearContext()})),getInitConfiguration:u((function(){return rt(v.initConfiguration)})),getRemoteConfiguration:u((function(t){return v.getRemoteConfiguration(t)})),getInternalContext:u((function(t){return v.getInternalContext(t)})),addDebugSession:u((function(t){})),clearDebugSession:u((function(){})),getDebugSession:u((function(){})),addResource:u((function(t){var e=Yn();c((function(){v.addResource({context:jn(t),startClocks:gt(),type:Xe,handlingStack:e}),Vo({feature:"add-resource"})}))})),addTypeAction:u((function(t,e,n){var r=Yn();c((function(){var o=jn(e);v.addAction({name:jn(t),context:jn(n),startClocks:gt(),type:"string"===et(o)?o:Ye,handlingStack:r}),Vo({feature:"add-type-action"})}))})),addAction:u((function(t,e){var n=Yn();c((function(){v.addAction({name:jn(t),context:jn(e),startClocks:gt(),type:Ye,handlingStack:n}),Vo({feature:"add-action"})}))})),addError:u((function(t,e){var n=Yn();c((function(){v.addError({error:t,handlingStack:n,context:jn(e),startClocks:gt()}),Vo({feature:"add-error"})}))})),addTiming:u((function(t,e){v.addTiming(jn(t),e)})),setUser:u((function(t){(function(t){var e="object"===et(t);return e||i.error("Unsupported user:",t),e})(t)&&l.setContext(za(t)),Vo({feature:"set-user"})})),getUser:u((function(){return l.getContext()})),setUserProperty:u((function(t,e){var n={};n[t]=e;var r=za(n)[t];l.setContextProperty(t,r),Vo({feature:"set-user"})})),removeUserProperty:u((function(t){return l.removeContextProperty(t)})),removeUser:u((function(){return l.clearContext()})),clearUser:u((function(){return l.clearContext()})),startView:h,stopSession:u((function(){v.stopSession(),Vo({feature:"stop-session"})})),setForcedSession:u((function(){v.setForcedSession(),Vo({feature:"set-forced-session"})})),startSessionReplayRecording:u((function(t){e.start(t),Vo({feature:"start-session-replay-recording",force:t&&t.force})})),isRecording:u((function(){return e.isRecording()})),stopSessionReplayRecording:u(e.stop),takeSubsequentFullSnapshot:u(e.takeSubsequentFullSnapshot),snapshotCanvas:u((function(t,n){return e.snapshotCanvas(t,n)})),getSerializedNodeIdForDebug:u((function(t){return e.getSerializedNodeIdForDebug(t)})),getLastAutoCanvasSnapshotResultForDebug:u((function(){return e.getLastAutoCanvasSnapshotResultForDebug()})),getAutoCanvasSnapshotDebugHistoryForDebug:u((function(){return e.getAutoCanvasSnapshotDebugHistoryForDebug()})),getLastCanvasMutationForDebug:u((function(){return e.getLastCanvasMutationForDebug()})),getCanvasMutationHistoryForDebug:u((function(){return e.getCanvasMutationHistoryForDebug()})),getLastDomMutationForDebug:u((function(){return e.getLastDomMutationForDebug()})),getDomMutationHistoryForDebug:u((function(){return e.getDomMutationHistoryForDebug()})),getLastReplaySegmentFlushForDebug:u((function(){return e.getLastReplaySegmentFlushForDebug()})),getReplaySegmentFlushHistoryForDebug:u((function(){return e.getReplaySegmentFlushHistoryForDebug()})),getReplayPerformanceForDebug:u((function(){return e.getReplayPerformanceForDebug()})),flushReplayMutationsForDebug:u((function(){e.flushReplayMutationsForDebug&&e.flushReplayMutationsForDebug()})),createResourceTrackerId:u((function(){return o.createTrackerId()})),setResourceContext:u((function(t,e){return o.setResourceContext(t,jn(e))})),appendResourceContext:u((function(t,e){return o.appendResourceContext(t,jn(e))})),finishResource:u((function(t){return o.finishResource(t)})),getResource:u((function(t){return o.getResource(t)}))},p=I({onReady:function(t){t()}},f),Object.defineProperty(p,"_setDebug",{get:function(){return s},enumerable:!1}),p);return g}((function(t,e,n,r,o,i,a){var s=[],c=new Nr,l=function(t){var e=Uo(Bo,t);return e}(t),d=function(t){c.notify(Lr,{error:t})},f=new ar((function(t){var e=dr(window,[ge,be],(function(e){e.type===ge&&"hidden"===document.visibilityState?t.notify({reason:xi.HIDDEN}):e.type===be&&t.notify({reason:xi.FROZEN})}),{capture:!0}),n=lr(window,ae,(function(){t.notify({reason:xi.UNLOADING})}));return function(){e.stop(),n.stop()}})),p=f.subscribe((function(t){c.notify(Rr,t)}));s.push((function(){p.unsubscribe()}));var v=ba()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",isErrorSession:!1,sessionErrorTimestamp:0,sessionReplayAllowed:!!ya(ma),errorSessionReplayAllowed:!1,sessionHasError:!1,isSessionForced:!1};return{findTrackedSession:function(){return t},expire:it,keepSessionAlive:it,expireObservable:new ar,setErrorForSession:function(){t.sessionErrorTimestamp=mt(),t.sessionHasError=!0,t.isErrorSession=!0,t.errorSessionReplayAllowed=!0},setForcedSession:it}}():Ya(t,c);if(ba())!function(t){var e=ga();t.subscribe(Pr,(function(t){var n=da(t).rowData;e.send("rum",n)}))}(c);else{var h=Xu(t,c,l.observable,d,f,v.expireObservable,i);s.push((function(){h.stop()}))}var g,m=es(t),y=(g=ns(),new ar((function(t){if(g){var e=new g(u((function(){return t.notify()})));try{e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0})}catch(t){}return function(){return e.disconnect()}}}))),b=rs(location),_=Pu(),w=function(t,e,n,r,o,i,a,s,u,c){var l=function(t){var e=Yt({expireDelay:pc});return t.subscribe(Sr,(function(t){e.add(function(t){return{service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(Er,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(kr,(function(t){var n=e.find(t.startClocks.relative);n&&t.name&&(n.name=t.name),n&&t.context&&(n.context=t.context)})),t.subscribe(Ar,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),d=function(t,e,n){var r,o=Yt({expireDelay:fc});t.subscribe(Sr,(function(t){var e=n.href;o.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e})),t.subscribe(Er,(function(t){o.closeActive(t.endClocks.relative)}));var i=e.subscribe((function(t){var e=o.find();if(e){var n=ht();o.closeActive(n),o.add(a({url:t.newLocation.href,location:t.newLocation,referrer:e.referrer},!0),n)}}));function a(t){var e=t.location.pathname,n=e,r=t.location.hash;return r&&0===r.indexOf("#/")&&(n="/"+$t(r)),{url:t.url,referrer:t.referrer,host:t.location.host,path:n,pathGroup:J(n),urlQuery:Z(t.location.href),pathname:e}}return{findUrl:function(t){return o.find(t)},stop:function(){i.unsubscribe(),o.stop()}}}(t,a,n),f=function(t,e,n,r){t.subscribe(wr,(function(e){t.notify(Dr,Nu(e,r))}));var o={findActionId:it,findAllActionId:it};return n.trackUserInteractions&&(o=ku(t,e,n).actionContexts),{actionContexts:o,addAction:function(e,n){t.notify(Dr,O({savedCommonContext:n},Nu(e,r)))}}}(t,s,e,i),p=f.actionContexts,v=f.addAction,h=(g=dc(),{get:function(){return{viewport:g}},stop:lc().subscribe((function(t){g=t})).unsubscribe});var g;return cc(e,t,r,o,l,d,p,h,u,c),{viewContexts:l,urlContexts:d,pageStateHistory:i,addAction:v,actionContexts:p,stop:function(){h.stop(),i.stop(),d.stop(),l.stop()}}}(c,t,location,v,m,_,b,y,r,d),S=w.viewContexts,C=w.urlContexts,x=w.actionContexts,k=w.stop,T=w.addAction;s.push(k),Fo.drain(),l.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:v.findTrackedSession()&&v.findTrackedSession().id},view:{id:S.findView()&&S.findView().id},action:{id:x.findActionId(),ids:x.findAllActionId()}}}));var E=Bc(c,t,location,y,b,_,e,o),A=E.addTiming,I=E.startView,R=E.setViewName,M=E.setViewContext,D=E.setViewContextProperty,P=E.getViewContext,L=E.stop;s.push(L);var N=il(c,t,_,void 0,void 0,a),B=N.addResource;if(s.push(N.stop),PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(Os)){var F=function(t,e){var n=Ns(e,{type:Os,buffered:!0}).subscribe((function(e){for(var n=0,r=e;n<r.length;n++){var o=r[n],i=wt(o.startTime),a={date:i.timeStamp,longTask:{id:X(),entryType:on,duration:ft(o.duration),blockingDuration:ft(o.blockingDuration),firstUiEventTimestamp:ft(o.firstUIEventTimestamp),renderStart:ft(o.renderStart),styleAndLayoutStart:ft(o.styleAndLayoutStart),startTime:ft(o.startTime),scripts:o.scripts.map((function(t){return{duration:ft(t.duration),pause_duration:ft(t.pauseDuration),forced_style_and_layout_duration:ft(t.forcedStyleAndLayoutDuration),start_time:ft(t.startTime),execution_start:ft(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}}))},type:nn.LONG_TASK};t.notify(Dr,{rawRumEvent:a,startTime:i.relative,domainContext:{performanceEntry:o}})}}));return{stop:function(){n.unsubscribe()}}}(c,t);s.push(F.stop)}else!function(t,e){var n=Ns(e,{type:Rs,buffered:!0}).subscribe((function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.entryType!==Rs)break;var o=wt(r.startTime),i={date:o.timeStamp,longTask:{id:X(),entryType:rn,duration:ft(r.duration)},type:nn.LONG_TASK};t.notify(Dr,{rawRumEvent:i,startTime:o.relative,domainContext:{performanceEntry:r}})}}))}(c,t);var z=vc(c,0,v,_).addError;tl(c,t,v);var U=function(t,e,n,r,o){return{get:function(i){var a=n.findView(i),s=o.findUrl(i),u=e.findTrackedSession(i);if(u&&a&&s){var c=r.findActionId(i),l=r.findAllActionId(i);return{application:{id:t},session:{id:u.id},userAction:c?{id:c,ids:l}:void 0,view:{id:a.id,name:a.name||s.path,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,pathname:s.pathname,urlQuery:s.urlQuery}}}}}}(t.applicationId,v,S,x,C);return{addResource:B,addAction:T,addError:z,addTiming:A,configuration:t,startView:I,setViewContext:M,setViewContextProperty:D,getViewContext:P,setViewName:R,lifeCycle:c,viewContexts:S,session:v,setForcedSession:function(){v.setForcedSession()},stopSession:function(){v.expire()},getInternalContext:U.get,stop:function(){s.forEach((function(t){t()}))},createResourceTrackerId:function(){return a.createTrackerId()},setResourceContext:function(t,e){a.setResourceContext(t,e)},appendResourceContext:function(t,e){a.appendResourceContext(t,e)},finishResource:function(t){a.finishResource(t)},getResource:function(t){return a.getResource(t)}}}),Ap,{startDeflateWorker:Gu,createDeflateEncoder:Uu});xp=p(),Tp=Ip,Ep=xp[kp="DATAFLUX_RUM"],xp[kp]=Tp,Ep&&Ep.q&&A(Ep.q,(function(t){d(t,"onReady callback threw an error:")()}))}();
|