@cloudcare/browser-rum 3.2.7 → 3.2.9
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/bundle/dataflux-rum.js +1 -1
- package/cjs/boot/buildEnv.js +1 -1
- package/cjs/boot/startRecording.js +1 -1
- package/cjs/boot/startRecording.js.map +1 -1
- package/cjs/domain/configuration.js +1 -0
- package/cjs/domain/configuration.js.map +1 -1
- package/cjs/domain/deflate/deflateWorker.js +1 -1
- package/cjs/domain/tracing/ddtraceTracer.js +11 -1
- package/cjs/domain/tracing/ddtraceTracer.js.map +1 -1
- package/cjs/domain/tracing/jaegerTracer.js +10 -0
- package/cjs/domain/tracing/jaegerTracer.js.map +1 -1
- package/cjs/domain/tracing/skywalkingTracer.js +11 -2
- package/cjs/domain/tracing/skywalkingTracer.js.map +1 -1
- package/cjs/domain/tracing/tracer.js +3 -3
- package/cjs/domain/tracing/tracer.js.map +1 -1
- package/cjs/domain/tracing/w3cTraceParentTracer.js +10 -1
- package/cjs/domain/tracing/w3cTraceParentTracer.js.map +1 -1
- package/cjs/domain/tracing/zipkinMultiTracer.js +10 -0
- package/cjs/domain/tracing/zipkinMultiTracer.js.map +1 -1
- package/cjs/domain/tracing/zipkinSingleTracer.js +10 -0
- package/cjs/domain/tracing/zipkinSingleTracer.js.map +1 -1
- package/esm/boot/buildEnv.js +1 -1
- package/esm/boot/startRecording.js +1 -1
- package/esm/boot/startRecording.js.map +1 -1
- package/esm/domain/configuration.js +1 -0
- package/esm/domain/configuration.js.map +1 -1
- package/esm/domain/deflate/deflateWorker.js +1 -1
- package/esm/domain/tracing/ddtraceTracer.js +11 -1
- package/esm/domain/tracing/ddtraceTracer.js.map +1 -1
- package/esm/domain/tracing/jaegerTracer.js +10 -1
- package/esm/domain/tracing/jaegerTracer.js.map +1 -1
- package/esm/domain/tracing/skywalkingTracer.js +12 -3
- package/esm/domain/tracing/skywalkingTracer.js.map +1 -1
- package/esm/domain/tracing/tracer.js +3 -3
- package/esm/domain/tracing/tracer.js.map +1 -1
- package/esm/domain/tracing/w3cTraceParentTracer.js +11 -2
- package/esm/domain/tracing/w3cTraceParentTracer.js.map +1 -1
- package/esm/domain/tracing/zipkinMultiTracer.js +10 -1
- package/esm/domain/tracing/zipkinMultiTracer.js.map +1 -1
- package/esm/domain/tracing/zipkinSingleTracer.js +10 -1
- package/esm/domain/tracing/zipkinSingleTracer.js.map +1 -1
- package/package.json +4 -4
- package/src/boot/startRecording.js +1 -0
- package/src/domain/configuration.js +6 -0
- package/src/domain/tracing/ddtraceTracer.js +14 -1
- package/src/domain/tracing/jaegerTracer.js +13 -1
- package/src/domain/tracing/skywalkingTracer.js +15 -3
- package/src/domain/tracing/tracer.js +3 -3
- package/src/domain/tracing/w3cTraceParentTracer.js +18 -2
- package/src/domain/tracing/zipkinMultiTracer.js +13 -1
- package/src/domain/tracing/zipkinSingleTracer.js +13 -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]}));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)};function a(t,e){var n,r=window;return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}var s=!1;function u(t){s=t}function c(t){return function(){return l(t,this,arguments)}}function l(t,e,n){try{return t.apply(e,n)}catch(t){if(f(t),r)try{r(t)}catch(t){f(t)}}}function f(){var t=[].slice.call(arguments);s&&o.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){o.error(e,t)}}}function p(t){return p="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},p(t)}function v(){if("object"===("undefined"==typeof globalThis?"undefined":p(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"!==p(t)&&(t="object"===("undefined"==typeof self?"undefined":p(self))?self:"object"===("undefined"==typeof window?"undefined":p(window))?window:{}),t}function h(t,e){return a(v(),"setTimeout")(c(t),e)}function _(t){a(v(),"clearTimeout")(t)}function g(t,e){return a(v(),"setInterval")(c(t),e)}function m(t){a(v(),"clearInterval")(t)}function y(t){return y="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},y(t)}var b=Array.prototype,E=(Function.prototype,Object.prototype),w=b.slice,S=E.toString,T=E.hasOwnProperty,C=b.forEach,I=Array.isArray,O=!1,A=function(t,e,n){if(null===t)return!1;if(C&&t.forEach===C)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)===O)return!1}else for(var o in t)if(T.call(t,o)&&e.call(n,t[o],o,t)===O)return!1};function R(t){return A(w.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function x(t){return R({},t)}var k=function(t){return A(w.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},N=function(t){return A(w.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(G(e[n])&&G(t[n])?k(t[n],e[n]):t[n]=e[n])})),t},L=I||function(t){return"[object Array]"===S.call(t)},D=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},M=function(t){return t?t.toArray?t.toArray():L(t)?w.call(t):(e=t)&&T.call(e,"callee")?w.call(t):U(t):[];var e},U=function(t){var e=[];return null===t||A(t,(function(t){e[e.length]=t})),e},P=function(t){var e=[];return null===t||A(t,(function(t,n){e[e.length]=n})),e},V=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(T.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(T.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},H=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(T.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},F=function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(T.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r},z=function(t,e,n){return void 0===n&&(n=!1),H(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?$t(e,t):t===e}catch(t){o.error(t)}return!1}))},W=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}))},G=function(t){return null!==t&&"[object Object]"===S.call(t)},$=function(t){if(G(t)){for(var e in t)if(T.call(t,e))return!1;return!0}return!1},K=function(t){var e=[];return A(t,(function(t,n){e.push([n,t])})),e},j=function(t){return"[object String]"===S.call(t)},q=function(t){return"[object Boolean]"===S.call(t)},Z=function(t){return"[object Number]"===S.call(t)&&/[\d\.]+/.test(String(t))},Y=function t(e){var n=e;try{n=t(e)}catch(t){n=e}return n},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(){_(i),s=!1,r=void 0}}}),X=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 J(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,J)}function tt(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var et=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"!==y(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 nt=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=rt("?"+n)),e},rt=function(t){for(var e=function(t){return Y(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 it(t){return null===t?"null":Array.isArray(t)?"array":y(t)}function ot(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"!==y(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]=ot(i[o],e[o],n);return i}i="object"===it(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=ot(i[a],e[a],n));return i}}function at(t){return ot(void 0,t)}function st(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):t}function ut(){}var ct,lt=1e3,ft=60*lt,dt=60*ft,pt=365*(24*dt);function vt(t){return 0!==t&&100*Math.random()<=t}function ht(t,e){return+t.toFixed(e)}function _t(t){return"number"!=typeof t?t:ht(1e6*t,0)}function gt(t){return Z(t)?ht(1e6*t,0):t}function mt(t){return t-Rt()}function yt(t){return Math.round(Rt()+t)}function bt(){return performance.now()}function Et(){return{relative:bt(),timeStamp:wt()}}function wt(){return St()}function St(){return(new Date).getTime()}function Tt(t,e){return e-t}function Ct(){return{relative:0,timeStamp:Rt()}}function It(t){return{relative:t,timeStamp:At(t)}}function Ot(t,e){return t+e}function At(t){var e=St()-performance.now();return e>Rt()?Math.round(e+t):yt(t)}function Rt(){return void 0===ct&&(ct=performance.timing.navigationStart),ct}var xt=/([\w-]+)\s*=\s*([^;]+)/g;function kt(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&G(t)&&r in t&&T.call(t,r)))return;t=t[r]}return t}function Nt(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function Lt(t){var e=it(t);return"string"===e||"function"===e||t instanceof RegExp}function Dt(t,e){return-1!==t.indexOf(e)}function Mt(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function Ut(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 Z(t)&&t>=0&&t<=100}var Vt,Bt={IE:0,CHROMIUM:1,SAFARI:2,OTHER:3};function Ht(){return Gt(Vt,Vt=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return Bt.CHROMIUM;if(0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return Bt.SAFARI;if(t.document.documentMode)return Bt.IE;return Bt.OTHER}())}function Ft(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function zt(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,"_"))]=Wt(t)})),e}function Wt(t){return L(t)?B(t,(function(t){return Wt(t)})):"object"===y(t)&&null!==t?zt(t):t}function Gt(t,e){return null!=t?t:e}function $t(t,e){return t.slice(0,e.length)===e}function Kt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function jt(t){var e=t.substr(1);return!!e&&!!document.getElementById(e)}function qt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Zt(t){return Z(t)&&t<0?void 0:t}var Yt=500;function Qt(){var t=[],e=function(e){t.push(e)>Yt&&t.splice(0,1)};return{add:e,remove:e,drain:function(e){t.forEach((function(t){t(e)})),t.length=0}}}var Xt=1/0,Jt=ft;function te(t){var e=t.expireDelay,n=t.maxEntries,r=[],i=g((function(){return function(){var t=bt()-e;for(;r.length>0&&r[r.length-1].endTime<t;)r.pop()}()}),Jt);return{add:function(t,e){var i={value:t,startTime:e,endTime:Xt,remove:function(){Kt(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=Xt),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===Xt&&e.close(t)},findAll:function(t,e){void 0===t&&(t=Xt),void 0===e&&(e=0);var n=Ot(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(){m(i)}}}var ee={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"]}},ne={getMatchMap:c((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:c((function(t){var e=ee.navigator.userAgent||"",n=ne.getMatchMap(e);for(var r in ee.infoMap)for(var i=0;i<ee.infoMap[r].length;i++){var o=ee.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:c((function(){return ne.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:c((function(){var t=this,e=ee.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}})),getOrientationStatu:c((function(){return window.matchMedia("(orientation: portrait)").matches?"竖屏":"横屏"})),getDeviceType:c((function(){var t=this;return t.device="PC",ne.matchInfoMap(t),t.device})),getNetwork:c((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:c((function(){var t;return this.language=((t=(ee.navigator.browserLanguage||ee.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getBrowserInfo:c((function(){var t=this;ne.matchInfoMap(t);var e=ee.navigator.userAgent||"",n=function(t,e){var n=ee.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=ne.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")||ee.navigator&&ee.navigator.connection&&void 0===ee.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:c((function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){o.warn(t)}))}))},re={};"undefined"!=typeof window&&(re={os:ne.getOS(),osVersion:ne.getOSVersion().version,osVersionMajor:ne.getOSVersion().osMajor,browser:ne.getBrowserInfo().browser,browserVersion:ne.getBrowserInfo().browserVersion,browserVersionMajor:ne.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:ne.getNetwork(),device:ne.getDeviceType()});var ie=re,oe={BEFORE_UNLOAD:"beforeunload",CLICK:"click",DBL_CLICK:"dblclick",KEY_DOWN:"keydown",LOAD:"load",POP_STATE:"popstate",SCROLL:"scroll",TOUCH_START:"touchstart",TOUCH_END:"touchend",TOUCH_MOVE:"touchmove",VISIBILITY_CHANGE:"visibilitychange",PAGE_SHOW:"pageshow",FREEZE:"freeze",RESUME:"resume",DOM_CONTENT_LOADED:"DOMContentLoaded",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_CANCEL:"pointercancel",HASH_CHANGE:"hashchange",PAGE_HIDE:"pagehide",MOUSE_DOWN:"mousedown",MOUSE_UP:"mouseup",MOUSE_MOVE:"mousemove",FOCUS:"focus",BLUR:"blur",CONTEXT_MENU:"contextmenu",RESIZE:"resize",CHANGE:"change",INPUT:"input",PLAY:"play",PAUSE:"pause",SECURITY_POLICY_VIOLATION:"securitypolicyviolation",SELECTION_CHANGE:"selectionchange",STORAGE:"storage"},ae={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},se={CLICK:"click",CUSTOM:"custom"},ue={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},ce={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},le={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},fe={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change"},de={FETCH:ae.FETCH,XHR:ae.XHR},pe={DDTRACE:"ddtrace",ZIPKIN_MULTI_HEADER:"zipkin",ZIPKIN_SINGLE_HEADER:"zipkin_single_header",W3C_TRACEPARENT:"w3c_traceparent",W3C_TRACEPARENT_64:"w3c_traceparent_64bit",SKYWALKING_V3:"skywalking_v3",JAEGER:"jaeger"},ve={HANDLED:"handled",UNHANDLED:"unhandled"},he={UNCAUGHT:"Uncaught",PROVIDED:"Provided"};function _e(t){return _e="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},_e(t)}function ge(t,e,n){if("object"!==_e(t)||null===t)return JSON.stringify(t);var r=me(Object.prototype),i=me(Array.prototype),o=me(Object.getPrototypeOf(t)),a=me(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function me(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):ut}function ye(t){return ye="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},ye(t)}var be="?";function Ee(t){var e=[],n=xe(t,"stack");return n&&A(n.split("\n"),(function(t){var n=function(t){var e=Te.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=Ce.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]||be,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Ie.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:be,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=Oe.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||be,line:+e[3],url:e[2]}}(t)||function(t){var e=Ae.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=Re.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]||be,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=be),e.push(n))})),{message:xe(t,"message"),name:xe(t,"name"),stack:e}}var we="((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",Se="(?::(\\d+))",Te=new RegExp("^\\s*at (.*?) ?\\("+we+Se+"?"+Se+"?\\)?\\s*$","i"),Ce=new RegExp("\\((\\S*)"+Se+Se+"\\)");var Ie=new RegExp("^\\s*at ?"+we+Se+"?"+Se+"??\\s*$","i");var Oe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Ae=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Re=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function xe(t,e){if("object"===ye(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var ke=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Ne(t){var e=function(t){return Qe(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=Ee(u);else{var c={url:o,column:s,line:a},l=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=ke.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,Gt(u,i))}))}(t),n=function(t){return Qe(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=Ee(n);t(r,n)}))}(t);return{stop:function(){e.stop(),n.stop()}}}var Le=1024,De=1024*Le,Me=/[^\u0000-\u007F]/;function Ue(t){return Me.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Pe(t){return Pe="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},Pe(t)}var Ve=220*Le,Be="$",He=3;function Fe(t,e){void 0===e&&(e=Ve);var n=me(Object.prototype),r=me(Array.prototype),i=[],o=new WeakMap,a=ze(t,Be,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=ze(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){We(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=ze(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+He,c=1),s>e){We(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}We(e,"discarded",t)}function ze(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"!==Pe(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Pe(t))return"[Symbol] "+t.description||0;return t}(o);var a=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}return"[Unserializable]"}(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 We(t,e,n){o.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",n)}var Ge="No stack, consider using an instance of Error",$e={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function Ke(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=function(t,e,n,r){return t&&t.message&&t&&t.name?t.message:e?"Empty message":n+" "+ge(Fe(r))}(e,u,o,n),l=function(t,e){if(void 0===e)return!1;if(t)return!0;return e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url)}(u,e)?qe(e):Ge,f=u?Ye(n,a):void 0;return{startClocks:i,source:a,handling:s,originalError:n,message:c,stack:l,handlingStack:r,type:e&&e.name,causes:f}}function je(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return l((function(){var n=Ee(e);n.stack=n.stack.slice(2),t=qe(n)})),t}function qe(t){var e=Ze(t);return A(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 Ze(t){return(t.name||"Error")+": "+t.message}function Ye(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=Ee(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&qe(i)}),n=n.cause}return r.length?r:void 0}function Qe(t,e,n,r){var i=r&&r.computeHandlingStack,o=t[e];if("function"!=typeof o){if(!$t(e,"on"))return{stop:ut};o=ut}var a=!1,s=function(){if(a)return o.apply(this,arguments);var t,e=Ut(arguments);l(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:i?je():void 0}]);var r=o.apply(this,e);return t&&l(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=o)}}}function Xe(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:ut};var i=ut,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 Je=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};Je.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=V(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 tn=Je;function en(){var t=[].slice.call(arguments);return new tn((function(e){var n=B(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return A(n,(function(t){return t.unsubscribe()}))}}))}var nn={};function rn(e){var n=B(e,(function(e){return nn[e]||(nn[e]=function(e){return new tn((function(n){var r=console[e];return console[e]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=je();l((function(){n.notify(function(e,n,r){var i,o=B(e,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return Ze(Ee(t));return ge(t,void 0,2)}(t)})).join(" ");if(n===t.error){var a=Mt(e,(function(t){return t instanceof Error}));i={stack:a?qe(Ee(a)):void 0,causes:a?Ye(a,"console"):void 0,startClocks:Et(),message:o,source:$e.CONSOLE,handling:ve.HANDLED,handlingStack:r}}return{api:n,message:o,error:i,handlingStack:r}}(i,e,o))}))},function(){console[e]=r}}))}(e)),nn[e]}));return en.apply(this,n)}function on(t,e,n,r){return an(t,[e],n,r)}function an(t,e,n,r){var i=c(r&&r.once?function(t){s(),n(t)}:n);r=r&&r.passive?{capture:r.capture,passive:r.passive}:r&&r.capture;var o=a(t,"addEventListener");A(e,(function(e){o.call(t,e,i,r)}));var s=function(){var n=a(t,"removeEventListener");A(e,(function(e){n.call(t,e,i,r)}))};return{stop:s}}var sn={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function un(t,e){var n=[];Dt(e,sn.cspViolation)&&n.push(new tn((function(t){return on(document,oe.SECURITY_POLICY_VIOLATION,(function(e){t.notify(function(t){var e="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return cn({type:t.effectiveDirective,message:sn.cspViolation+": "+e,originalError:t,csp:{disposition:t.disposition},stack:ln(t.effectiveDirective,t.originalPolicy?"".concat(e,' of the policy "').concat(Nt(t.originalPolicy,100),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}(e))})).stop})));var r=V(e,(function(t){return t!==sn.cspViolation}));return r.length&&n.push(function(t){return new tn((function(e){if(window.ReportingObserver){var n=c((function(t){A(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return cn({type:e.id,message:n+": "+e.message,originalError:t,stack:ln(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)),en.apply(this,n)}function cn(t){return R({startClocks:Et(),source:ErrorSource.REPORT,handling:ErrorHandling.UNHANDLED},t)}function ln(t,e,n,r,i){return n&&qe({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var fn=function(){this._events=[],this.pendingEvents=[]};fn.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 fn;var dn,pn={AUTO_ACTION_COMPLETED:"AUTO_ACTION_COMPLETED",BEFORE_VIEW_CREATED:"BEFORE_VIEW_CREATED",VIEW_CREATED:"VIEW_CREATED",VIEW_UPDATED:"VIEW_UPDATED",VIEW_ENDED:"VIEW_ENDED",AFTER_VIEW_ENDED:"AFTER_VIEW_ENDED",SESSION_RENEWED:"SESSION_RENEWED",SESSION_EXPIRED:"SESSION_EXPIRED",PAGE_EXITED:"PAGE_EXITED",REQUEST_STARTED:"REQUEST_STARTED",REQUEST_COMPLETED:"REQUEST_COMPLETED",RAW_RUM_EVENT_COLLECTED:"RAW_RUM_EVENT_COLLECTED",RUM_EVENT_COLLECTED:"RUM_EVENT_COLLECTED",RAW_ERROR_COLLECTED:"RAW_ERROR_COLLECTED",RAW_LOG_COLLECTED:"RAW_LOG_COLLECTED",LOG_COLLECTED:"LOG_COLLECTED"};function vn(){this.callbacks={}}function hn(t,e,n){var r=at(t),i=n(r);return A(K(e),(function(e){var n=e[0],i=e[1],o=function(t,e){for(var n=t,r=0,i=e.split(".");r<i.length;r++){var o=i[r];if(!mn(n,o))return;n=n[o]}return n}(r,n),a=it(o);a===i?_n(t,n,Fe(o)):"object"!==i||"undefined"!==a&&"null"!==a||_n(t,n,{})})),i}function _n(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!gn(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function gn(t){return"object"===it(t)}function mn(t,e){return gn(t)&&Object.prototype.hasOwnProperty.call(t,e)}function yn(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&h((function(){r=0}),ft),(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:$e.AGENT,startClocks:Et()})}finally{i=!1}}return!0}}}function bn(t){return wn(t,Ft(window.location)).href}function En(t){return Ft(wn(t))}function wn(t,e){if(function(){if(void 0!==dn)return dn;try{var t=new URL("http://test/path");return dn="http://test/path"===t.href}catch(t){dn=!1}return dn}())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}vn.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]=V(n.callbacks[t],(function(t){return t!==e}))}}}};var Sn=navigator.userAgent.toLowerCase(),Tn=function(){return/iphone os/.test(Sn)};function Cn(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(c(t),e);return function(){return window.cancelIdleCallback(n)}}return function(t){var e=St(),n=h((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,In-(St()-e))}})}),0);return function(){return _(n)}}(t)}var In=50;var On=lt,An=30;var Rn,xn=/^\s+|\s+$/g,kn={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function Nn(t,e){var n=kn[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+Ln(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?Ln(r)+"v1/write"+n:Ln(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function Ln(t){return t.replace(xn,"")}function Dn(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 Mn(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=Dn(t,r)+"="+e+";"+o+";path=/;samesite="+a+s+u+c}function Un(t,e){return function(t,e){for(xt.lastIndex=0;;){var n=xt.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,Dn(t,e))}function Pn(t,e){Mn(t,"",0,e)}var Vn=4*dt,Bn=15*ft,Hn="_gc_s";function Fn(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)return;if("string"==typeof t)return zn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zn(t,e)}(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 zn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Wn=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Gn="&",$n="1";function Kn(){return{isExpired:$n}}function jn(t){return $(t)}function qn(t){return void 0!==t.isExpired||!((void 0===(e=t).created||St()-Number(e.created)<Vn)&&(void 0===e.expire||St()<Number(e.expire)));var e}function Zn(t){return B(K(t),(function(t){return t[0]+"="+t[1]})).join(Gn)}function Yn(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(Gn)||Wn.test(t))}(t)&&t.split(Gn).forEach((function(t){var n=Wn.exec(t);if(null!==n){var r=Fn(n,3),i=r[1],o=r[2];e[i]=o}})),e}function Qn(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===Rn){for(var t="gc_site_test_".concat(J()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Un(t);)n="".concat(e.pop(),".").concat(n),Mn(t,"test",lt,{domain:n});Pn(t,{domain:n}),Rn=n}return Rn}());return e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="gc_cookie_test_".concat(J()),n="test";Mn(e,n,ft,t);var r=Un(e,t)===n;return Pn(e,t),r}catch(t){return!1}}(e)?{type:"Cookie",cookieOptions:e}:void 0}function Xn(t){var e;return{isLockEnabled:Ht()===Bt.CHROMIUM,persistSession:(e=t,function(t){Mn(Hn,Zn(t),Bn,e)}),retrieveSession:Jn(t),expireSession:function(){return function(t){Mn(Hn,Zn(Kn()),Vn,t)}(t)}}}function Jn(t){return function(){return Yn(Un(Hn,t))}}var tr="_gc_test_";function er(t){localStorage.setItem(Hn,Zn(t))}function nr(){return Yn(localStorage.getItem(Hn))}function rr(){er(Kn())}var ir,or=10,ar=100,sr=[];function ur(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(R({},t,{lock:u}))},s=function(){var t=e.retrieveSession(),n=t.lock;return t.lock&&delete t.lock,{session:t,lock:n}};if(ir||(ir=t),t===ir)if(r&&n>=ar)lr(e);else{var u,c=s();if(r){if(c.lock&&!jn(c.session))return void cr(t,e,n);if(u=J(),a(c.session),(c=s()).lock!==u&&!jn(c.session))return void cr(t,e,n)}var l=t.process(c.session);if(!r||(c=s()).lock===u||jn(c.session)){if(l&&(qn(l)?o():(l.expire=String(St()+Bn),r?a(l):i(l))),r&&(!l||!qn(l))){if((c=s()).lock!==u&&!jn(c.session))return void cr(t,e,n);i(c.session),l=c.session}t.after&&t.after(l||c.session),lr(e)}else cr(t,e,n)}else sr.push(t)}function cr(t,e,n){h((function(){ur(t,e,n+1)}),or)}function lr(t){ir=void 0;var e=sr.shift();e&&ur(e,t)}var fr=lt;function dr(t){var e=Qn(t);return!e&&t.allowFallbackToLocalStorage&&(e=function(){try{var t=J(),e="".concat(tr).concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),e}function pr(t,e,n){var r,i=new tn,o=new tn,a=new tn,s="Cookie"===t.type?Xn(t.cookieOptions):{isLockEnabled:!1,persistSession:er,retrieveSession:nr,expireSession:rr},u=s.expireSession,c=g((function(){ur({process:function(t){return qn(t)?Kn():void 0},after:p},s)}),fr);v();var l=Q((function(){ur({process:function(t){if(!jn(t)){var r=p(t);return function(t){if(jn(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=J(),t.created=String(St()))}(r),r}},after:function(t){jn(t)||h()||function(t){r=t,i.notify()}(t),r=t}},s)}),fr),f=l.throttled,d=l.cancel;function p(t){return qn(t)&&(t=Kn()),h()&&(!function(t){return r.id!==t.id||r[e]!==t[e]}(t)?(a.notify({previousState:r,newState:t}),r=t):(r=Kn(),o.notify())),t}function v(){ur({process:function(t){if(jn(t))return Kn()},after:function(t){r=t}},s)}function h(){return void 0!==r[e]}return{expandOrRenewSession:f,expandSession:function(){ur({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(Kn())},stop:function(){m(c)},updateSessionState:function(t){ur({process:function(e){return R({},e,t)},after:p},s)}}}var vr,hr,_r={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function gr(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=Gt(t.sessionSampleRate,t.sampleRate);return R({beforeSend:t.beforeSend&&d(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:dr(t),sessionSampleRate:Gt(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:Gt(t.telemetrySampleRate,100),telemetryEnabled:Gt(t.telemetryEnabled,!1),silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16*Le,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*lt,batchMessagesLimit:50,messageBytesLimit:256*Le,resourceUrlLimit:5*Le,storeContextsToLocal:!!t.storeContextsToLocal,storeContextsKey:t.storeContextsKey,sendContentTypeByJson:!!t.sendContentTypeByJson},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&D(t.isIntakeUrl)&&q(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&D(t.isServerError)&&q(t.isServerError())&&(n=t.isServerError),{rumEndpoint:Nn(t,"rum"),logsEndpoint:Nn(t,"log"),sessionReplayEndPoint:Nn(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 mr(){return vr||(vr=new tn((function(t){if(window.fetch){var e=Qe(window,"fetch",(function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,i=t.handlingStack,o=n[0],a=n[1],s=a&&a.method;void 0===s&&o instanceof Request&&(s=o.method);var u=void 0!==s?String(s).toUpperCase():"GET",l=o instanceof Request?o.url:bn(String(o)),f=Et(),d={state:"start",init:a,input:o,method:u,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",R(r,e),t.notify(r)};e.then(c((function(t){var e="";try{e=t.constructor===Response&&t.type||""}catch(t){e=""}i({response:t,responseType:e,status:t.status,isAborted:!1})})),c((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}}))),vr}var yr=new WeakMap;function br(){return hr||(hr=new tn((function(t){var e=Qe(XMLHttpRequest.prototype,"open",Er),n=Qe(XMLHttpRequest.prototype,"send",(function(e){!function(t,e){var n=t.target,r=t.handlingStack,i=yr.get(n);if(i){var o=i;o.state="start",o.startClocks=Et(),o.isAborted=!1,o.xhr=n,o.handlingStack=r;var a=!1,s=Qe(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=Tt(o.startClocks.timeStamp,wt()),t.status=n.status,e.notify(x(t))}},c=on(n,"loadend",u).stop;e.notify(o)}}(e,t)}),{computeHandlingStack:!0}),r=Qe(XMLHttpRequest.prototype,"abort",wr);return function(){e.stop(),n.stop(),r.stop()}}))),hr}function Er(t){var e=t.target,n=t.parameters[0],r=t.parameters[1];yr.set(e,{state:"open",method:String(n).toUpperCase(),url:bn(String(r))})}function wr(t){var e=t.target,n=yr.get(e);n&&(n.isAborted=!0)}var Sr={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Tr(t){return Dt(U(Sr),t)}function Cr(t){return t.nodeType===Node.ELEMENT_NODE}function Ir(t){return Cr(t)&&Boolean(t.shadowRoot)}function Or(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Cr(e.host)}function Ar(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;Ir(t)&&e(t.shadowRoot)}function Rr(t){return Or(t)?t.host:t.parentNode}function xr(t,e){if(document.readyState===t||"complete"===document.readyState)return e(),{stop:ut};var n="complete"===t?oe.LOAD:oe.DOM_CONTENT_LOADED;return on(window,n,e,{once:!0})}function kr(){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 Nr(){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 Lr={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_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",device:"device.device",view_id:"view.id",view_referrer:"view.referrer",view_url:"view.url",view_host:"view.host",view_path:"view.path",view_name:"view.path",view_path_group:"view.path_group"},Dr={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",drift:"_gc.drift"},Mr={view:{type:ce.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",view_privacy_replay_level:"privacy.replay_level"},fields:{sampled_for_replay:"session.sampled_for_replay",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:ce.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.span_id",resource_id:"resource.id",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_type:"resource.type",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",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:ce.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:ce.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:ce.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"]}},browser_log:{type:ce.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"]}}},Ur=ft,Pr=Vn,Vr=[];function Br(t,e,n){var r=new tn,i=new tn,o=pr(t.sessionStoreStrategyType,e,n);Vr.push((function(){return o.stop()}));var a,s,u=te({expireDelay:Pr});function c(){return{id:o.getSession().id,trackingType:o.getSession()[e]}}return Vr.push((function(){return u.stop()})),o.renewObservable.subscribe((function(){u.add(c(),bt()),r.notify()})),o.expireObservable.subscribe((function(){i.notify(),u.closeActive(bt())})),o.expandOrRenewSession(),u.add(c(),Ct().relative),a=function(){o.expandOrRenewSession()},s=an(window,[oe.CLICK,oe.TOUCH_START,oe.KEY_DOWN,oe.SCROLL],a,{capture:!0,passive:!0}).stop,Vr.push(s),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=on(document,oe.VISIBILITY_CHANGE,e).stop;Vr.push(n);var r=g(e,Ur);Vr.push((function(){m(r)}))}((function(){return o.expandSession()})),function(t){var e=on(window,oe.RESUME,t,{capture:!0}).stop;Vr.push(e)}((function(){o.restartSession()})),{findSession:function(t,e){return u.find(t,e)},renewObservable:r,expireObservable:i,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}var Hr=80*Le,Fr=32,zr=3*De,Wr=256*lt,Gr=lt,$r={UP:0,FAILURE_DETECTED:1,DOWN:2},Kr={AFTER_SUCCESS:0,AFTER_RESUME:1};function jr(t,e,n,r,i){e.transportStatus===$r.UP&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Zr(t,e,n,{onSuccess:function(){return Yr(Kr.AFTER_SUCCESS,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),qr(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function qr(t,e,n,r){t.transportStatus===$r.DOWN&&h((function(){Zr(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=Gr,Yr(Kr.AFTER_RESUME,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(Wr,2*t.currentBackoffTime),qr(t,e,n,r)}})}),t.currentBackoffTime)}function Zr(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),!function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||t.status>=500)}(n)?(e.transportStatus=$r.UP,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?$r.FAILURE_DETECTED:$r.DOWN,e.lastFailureStatus=n.status,o())}))}function Yr(t,e,n,r,i){t===Kr.AFTER_SUCCESS&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: "+zr/De+"MiB",source:$e.AGENT,startClocks:Et()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=Qr();o.size()>0;)jr(o.dequeue(),e,n,r,i)}function Qr(){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>=zr}}}function Xr(){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 Jr={log:"log",configuration:"configuration",usage:"usage"},ti={debug:"debug",error:"error"},ei=["https://static.guance.com","http://localhost","<anonymous>"],ni={LOGS:"browser-logs-sdk",RUM:"browser-rum-sdk"},ri=Qt(),ii=function(t){ri.add((function(){ii(t)}))};function oi(t,e){var n,i=new tn,o=new Set,a=e.telemetryEnabled&&vt(e.telemetrySampleRate),s={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return ii=function(r){var u=ge(r);if(a&&o.size<e.maxTelemetryEventsPerPage&&!o.has(u)){var c=function(t,e,r){return N({type:"telemetry",date:wt(),service:t,version:"3.2.7",source:"browser",telemetry:N(e,{runtime_env:r,connectivity:Xr()})},void 0!==n?n():{})}(t,r,s);i.notify(c),o.add(u)}},r=si,{setContextProvider:function(t){n=t},observable:i,enabled:a}}function ai(t,e){f(t,e),ii(R({type:Jr.log,message:t,status:ti.debug},e))}function si(t,e){ii(R({type:Jr.log,status:ti.error},function(t){if(t instanceof Error){var e=Ee(t);return{error:{kind:e.name,stack:qe(ci(e))},message:e.message}}return{error:{stack:Ge},message:he.UNCAUGHT+" "+ge(t)}}(t),e))}function ui(t){ii({type:Jr.usage,usage:t})}function ci(t){return t.stack=t.stack.filter((function(t){return!t.url||ei.some((function(e){return $t(t.url,e)}))})),t}function li(t,e){return t?(t=t+(-1===t.indexOf("?")?"?":"&")+"precision=ms",e&&(t=t+"&encoding="+e),t):t}function fi(t,e,n){var r={transportStatus:$r.UP,lastFailureStatus:0,currentBackoffTime:Gr,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=Hr&&this.ongoingRequestCount<Fr},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:Qr(),queueFullReported:!1},i=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=li(t,n.encoding),s=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&o<e;if(s){var u={method:"POST",body:i,keepalive:!0,mode:"cors"};n.type&&(u.headers={"Content-Type":n.type}),fetch(a,u).then(c((function(t){"function"==typeof r&&r({status:t.status,type:t.type})})),c((function(){pi(a,n,r)})))}else pi(a,n,r)}(t,e,n,r)};return{send:function(e){jr(e,r,i,t,n)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=li(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){di||(di=!0,si(t))}(t)}pi(o,n)}(t,e,n)}}}var di=!1;function pi(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),on(i,"loadend",(function(){"function"==typeof n&&n({status:i.status})}),{once:!0}),i.send(r)}function vi(t){return vi="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},vi(t)}function hi(t){if("object"===vi(t)&&t)t=ge(t);else if(!j(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function _i(t,e){return"object"===vi(t)&&t?t=ge(t):e&&(t=""+t),t}function gi(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function mi(t){return"object"===vi(t)&&t?gi(ge(t)):j(t)?gi(t):t}var yi="custom_keys",bi=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return A(Mr,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=k({},Lr,i.tags),u=["date","type",yi];A(s,(function(n,r){var i=kt(t,n);u.push(r),(i||Z(i))&&(e.tags[r]=_i(i,!0),a.push(hi(r)+"="+hi(i)))}));var c=[],l=k({},Dr,i.fields);if(A(l,(function(n,r){if(L(n)&&2===n.length){var i=n[1],o=kt(t,i);u.push(r),null!=o&&(e.fields[r]=_i(o),c.push(hi(r)+"="+mi(o)))}else if(j(n)){o=kt(t,n);u.push(r),null!=o&&(e.fields[r]=_i(o),c.push(hi(r)+"="+mi(o)))}})),t.context&&G(t.context)&&!$(t.context)){var f=[];A(t.context,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=_i(t),c.push(hi(n)+"="+mi(t))))})),f.length&&(e.fields[yi]=_i(f),c.push(hi(yi)+"="+mi(f)))}t.type===ce.LOGGER&&A(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=_i(t),c.push(hi(n)+"="+mi(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 Ei(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=U(s).join(i?",":"\n");s={};var o=Tr(t.reason),a=o?n.sendOnExit:n.send;if(o&&e.isAsync){var u=e.finishSync();u.outputBytesCount&&a(wi(u,i));var l=[u.pendingData,r].filter(Boolean).join("\n");l&&a({data:l,bytesCount:Ue(l)})}else{if(r){var f=c([r],e.isEmpty());i&&(f+="]"),e.write(f)}else i&&e.write("]");e.finish((function(t){a(wi(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?ge(bi(t).rowData):bi(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 wi(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 Si(t){var e=t.messagesLimit,n=t.bytesLimit,r=t.durationLimit,i=t.pageExitObservable,o=t.sessionExpireObservable;i.subscribe((function(t){return l(t.reason)})),o.subscribe((function(){return l("session_expire")}));var a,s=new tn((function(){return function(){pageExitSubscription.unsubscribe(),sessionExpireSubscription.unsubscribe()}})),u=0,c=0;function l(t){if(0!==c){var e=c,n=u;c=0,u=0,f(),s.notify({reason:t,messagesCount:e,bytesCount:n})}}function f(){_(a),a=void 0}return{flushObservable:s,getMessagesCount:function(){return c},notifyBeforeAddMessage:function(t){u+t>=n&&l("bytes_limit"),c+=1,u+=t,void 0===a&&(a=h((function(){l("duration_limit")}),r))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),u+=t,c>=e?l("messages_limit"):u>=n&&l("bytes_limit")},notifyAfterRemoveMessage:function(t){u-=t,0===(c-=1)&&f()}}}function Ti(){var t=v().FTWebViewJavascriptBridge;if(t)return{send:function(e,n){t.sendEvent(JSON.stringify({name:e,data:n}))}}}function Ci(){return!!Ti()}var Ii="guance-synthetics-injects-rum";var Oi=3*Le,Ai="user",Ri="global context";var xi=200;function ki(t,e){void 0===e&&(e=Ue);var n,r={},i=!1,a=new tn,s=Q((function(r){n=e(ge(r)),i||(i=function(t,e){return t>Oi&&(o.warn("The "+e+"data is over "+Oi/Le+" KiB. On low connectivity, the SDK has the potential to exhaust the user's upload bandwidth."),!0)}(n,t))}),xi).throttled,u={getBytesCount:function(){return n},get:function(){return r},add:function(t,e){r[t]=e,s(r),a.notify()},remove:function(t){delete r[t],s(r),a.notify()},set:function(t){s(r=t),a.notify()},getContext:function(){return at(r)},setContext:function(t){"object"===it(t)?(r=Fe(t),s(r)):u.clearContext(),a.notify()},setContextProperty:function(t,e){r[t]=at(e),s(r),a.notify()},removeContextProperty:function(t){delete r[t],s(r),a.notify()},clearContext:function(){r={},n=0,a.notify()},changeObservable:a};return u}var Ni="_gc_s",Li=[];function Di(t,e,n,r){var i=function(t,e,n){return t.storeContextsKey&&j(t.storeContextsKey)?Ni+"_"+e+"_"+n+"_"+t.storeContextsKey:Ni+"_"+e+"_"+n}(t,n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}return Li.push(on(window,oe.STORAGE,(function(t){i===t.key&&e.setContext(o())}))),e.changeObservable.subscribe((function(){localStorage.setItem(i,JSON.stringify(e.getContext()))})),e.setContext(N(o(),e.getContext())),e}function Mi(){var t="",e=0;return{isAsync:!1,isEmpty:function(){return!t},write:function(n,r){var i=Ue(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 Ui(t){var e=R({},t);return A(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}function Pi(t){this.map=new WeakMap,t&&t.forEach((function(t){this.map.set(t,1)}))}function Vi(t,e){e.silentMultipleInit||o.error(t+" is already initialized.")}Pi.prototype.add=function(t){return this.map.set(t,1),this},Pi.prototype.delete=function(t){return this.map.delete(t)},Pi.prototype.has=function(t){return this.map.has(t)};var Bi="rum",Hi={WITHOUT_SESSION_REPLAY:1,WITH_SESSION_REPLAY:2},Fi={NOT_TRACKED:"0",TRACKED_WITH_SESSION_REPLAY:"1",TRACKED_WITHOUT_SESSION_REPLAY:"2"};function zi(t,e){var n=Br(t,Bi,(function(e){return function(t,e){var n;n=function(t){return t===Fi.NOT_TRACKED||t===Fi.TRACKED_WITH_SESSION_REPLAY||t===Fi.TRACKED_WITHOUT_SESSION_REPLAY}(e)?e:vt(t.sessionSampleRate)?vt(t.sessionReplaySampleRate)?Fi.TRACKED_WITH_SESSION_REPLAY:Fi.TRACKED_WITHOUT_SESSION_REPLAY:Fi.NOT_TRACKED;return{trackingType:n,isTracked:Wi(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(pn.SESSION_EXPIRED)})),n.renewObservable.subscribe((function(){e.notify(pn.SESSION_RENEWED)})),{findTrackedSession:function(t){var e=n.findSession(t);if(e&&Wi(e.trackingType)){var r=e.trackingType===Fi.TRACKED_WITH_SESSION_REPLAY?Hi.WITH_SESSION_REPLAY:Hi.WITHOUT_SESSION_REPLAY;return{id:e.id,plan:r,sessionReplayAllowed:r===Hi.WITH_SESSION_REPLAY}}},expire:n.expire,expireObservable:n.expireObservable}}function Wi(t){return t===Fi.TRACKED_WITHOUT_SESSION_REPLAY||t===Fi.TRACKED_WITH_SESSION_REPLAY}var Gi="_gc_usr_id",$i=1440*dt;var Ki=function(t){var e;if(t.sessionStoreStrategyType)return e="Cookie"===t.sessionStoreStrategyType.type?function(t){var e=Un(Gi,t);return e||(e=J(),Mn(Gi,e,$i,t)),e}(t.sessionStoreStrategyType.cookieOptions):function(){var t=localStorage.getItem(Gi);return t||(t=J(),localStorage.setItem(Gi,t)),t}(),{getId:function(){return e}}};function ji(){var t,e=window;if(e.Zone&&(t=a(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=a(new e.MutationObserver(ut),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function qi(t){var e=x(t);return new tn((function(n){var r,i,o,a,s,u=(r=l,i=Qe(History.prototype,"pushState",(function(t){(0,t.onPostCall)(r)})),o=Qe(History.prototype,"replaceState",(function(t){(0,t.onPostCall)(r)})),a=on(window,oe.POP_STATE,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),c=(s=l,on(window,oe.HASH_CHANGE,s));function l(){if(e.href!==t.href){var r=x(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return function(){u.stop(),c.stop()}}))}var Zi="initial_document",Yi=[[ae.DOCUMENT,function(t){return Zi===t}],[ae.XHR,function(t){return"xmlhttprequest"===t}],[ae.FETCH,function(t){return"fetch"===t}],[ae.BEACON,function(t){return"beacon"===t}],[ae.CSS,function(t,e){return null!==e.match(/\.css$/i)}],[ae.JS,function(t,e){return null!==e.match(/\.js$/i)}],[ae.IMAGE,function(t,e){return Dt(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[ae.FONT,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[ae.MEDIA,function(t,e){return Dt(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function Qi(t){var e=t.name;if(!function(t){try{return!!wn(t)}catch(t){return!1}}(e))return ae.OTHER;var n=function(t){var e=wn(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=ae.OTHER;return A(Yi,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function Xi(){for(var t=M(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function Ji(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType}var to=/[^\u0000-\u007F]/;function eo(t,e){return n=t,(to.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function no(t){return 0===t.duration&&t.startTime<t.responseEnd?_t(t.responseEnd-t.startTime):_t(t.duration)}function ro(t){if(oo(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:_t(f-l),trans:_t(d-f),downloadTime:so(e,f,d),firstByteTime:so(e,l,f)};return f>0&&f<=bt()&&(p.ttfb=_t(f-l)),c!==n&&(p.tcp=_t(c-s),p.connectTime=so(e,s,c),Xi(s,u,c)&&(p.ssl=_t(c-u),p.sslTime=so(e,u,c))),a!==n&&(p.dns=_t(a-o),p.dnsTime=so(e,o,a)),ao(t)&&(p.redirect=_t(i-r),p.redirectTime=so(e,r,i)),t.renderBlockingStatus&&(p.renderBlockingStatus=t.renderBlockingStatus),p}}function io(t){return t.duration>=0}function oo(t){var e=Xi(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!ao(t)||Xi(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function ao(t){return t.fetchStart!==t.startTime}function so(t,e,n){return{duration:_t(n-e),start:_t(e-t)}}function uo(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 co(t,e){return e&&!function(t,e){var n=[e.rumEndpoint];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),H(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}var lo=/data:(.+)?(;base64)?,/g,fo=24e3;function po(t){return!(t.length<=fo)&&("data:"===t.substring(0,5)&&(t=t.substring(0,fo),!0))}function vo(t){return t.match(lo)[0]+"[...]"}function ho(t,e){var n=St(),r=!1,i=an(window,[oe.CLICK,oe.MOUSE_DOWN,oe.KEY_DOWN,oe.TOUCH_START,oe.POINTER_DOWN],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:bt(),processingEnd:bt(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};t.type===oe.POINTER_DOWN?function(t){an(window,[oe.POINTER_UP,oe.POINTER_CANCEL],(function(e){e.type===oe.POINTER_UP&&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<St()-n&&e(t)}}}var _o,go={EVENT:"event",FIRST_INPUT:"first-input",LARGEST_CONTENTFUL_PAINT:"largest-contentful-paint",LAYOUT_SHIFT:"layout-shift",LONG_TASK:"longtask",LONG_ANIMATION_FRAME:"long-animation-frame",NAVIGATION:"navigation",PAINT:"paint",RESOURCE:"resource"};function mo(t,e){return new tn((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!==go.RESOURCE||co(t,e.name)&&io(e))}(t,e)}))}(t,e);r.length>0&&n.notify(r)},a=!0,s=new PerformanceObserver(c((function(t){a?r=h((function(){o(t.getEntries())})):o(t.getEntries())})));try{s.observe(e)}catch(t){if(Dt([go.RESOURCE,go.NAVIGATION,go.LONG_TASK,go.PAINT],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(t){!_o&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(_o=on(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})))}(),!yo(go.FIRST_INPUT)&&e.type===go.FIRST_INPUT){var u=ho(0,(function(t){o([t])}));i=u.stop}return function(){s.disconnect(),i&&i(),_(r)}}}))}function yo(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function bo(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=ut);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(pn.RUM_EVENT_COLLECTED,(function(t){if(t.type!==ce.VIEW&&n(t))switch(t.type){case ce.ERROR:i.errorCount+=1,r();break;case ce.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case ce.LONG_TASK:i.longTaskCount+=1,r();break;case ce.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var Eo=100,wo=100;function So(t,e,n,r,i){var o=function(t,e,n){return new tn((function(r){var i,o=[],a=0;o.push(e.subscribe((function(){u()})),mo(n,{type:go.RESOURCE}).subscribe((function(t){H(t,(function(t){return!To(n,t.name)}))&&u()})),t.subscribe(pn.REQUEST_STARTED,(function(t){To(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(pn.REQUEST_COMPLETED,(function(t){To(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=Qe(window,"open",u).stop;return function(){s(),A(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})}),Eo),a=void 0!==n?h((function(){return c({hadActivity:!0,end:wt()})}),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;_(o),_(r);var n=wt();e||(r=h((function(){c({hadActivity:!0,end:n})}),wo))})),u=function(){i=!0,_(o),_(r),_(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function To(t,e){return z(t.excludedActivityUrls,e)}var Co=lt,Io=100,Oo={WaitingForMoreClicks:0,WaitingForClicksToStop:1,Finalized:2};function Ao(t,e){var n,r=[],i=Oo.WaitingForMoreClicks;function o(t){t.stopObservable.subscribe(a),r.push(t),_(n),n=h(s,Co)}function a(){i===Oo.WaitingForClicksToStop&&F(r,(function(t){return t.isStopped()}))&&(i=Oo.Finalized,e(r))}function s(){_(n),i===Oo.WaitingForMoreClicks&&(i=Oo.WaitingForClicksToStop,a())}return o(t),{tryAppend:function(t){return i===Oo.WaitingForMoreClicks&&(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))<=Io)&&e.timeStamp-n.timeStamp<=Co))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var Ro="data-guance-action-name";function xo(t,e){return ko(t,Ro)||e&&ko(t,e)||Po(t,e,Do)||Po(t,e,Mo)||""}function ko(t,e){var n;if(function(){void 0===Lo&&(Lo="closest"in HTMLElement.prototype);return Lo}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return Bo(Vo(n.getAttribute(e).trim()))}var No,Lo,Do=[function(t,e){if(function(){void 0===No&&(No="labels"in HTMLInputElement.prototype);return No}()){if("labels"in t&&t.labels&&t.labels.length>0)return Ho(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&Mt(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&Ho(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 Ho(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=V(n,(function(t){return Boolean(t)})),(n=B(n,(function(t){return Ho(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 Ho(t.options[0],e)}],Mo=[function(t,e){return Ho(t,e)}],Uo=10;function Po(t,e,n){for(var r=t,i=0;i<=Uo&&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 Bo(Vo(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function Vo(t){return t.replace(/\s+/g," ")}function Bo(t){return t.length>100?Nt(t,100)+" [...]":t}function Ho(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 Ht()===Bt.IE&&r("script, style"),r("["+Ro+"]"),e&&r("["+e+"]"),n}return t.textContent}}var Fo,zo=[Ro,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Wo=[jo,function(t){if(t.id&&!Ko(t.id))return"#"+W(t.id)}],Go=[jo,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(!Ko(n))return W(t.tagName)+"."+W(n)}},function(t){return W(t.tagName)}];function $o(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=Zo(r,Wo,Yo,e,n);if(i)return i;n=Zo(r,Go,Qo,e,n)||Xo(qo(r),n),r=r.parentElement}return n}}function Ko(t){return/[0-9]/.test(t)}function jo(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<zo.length;n++){var r;if(r=i(zo[n]))return r}function i(e){if(t.hasAttribute(e))return W(t.tagName)+"["+e+'="'+W(t.getAttribute(e))+'"]'}}function qo(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=W(t.tagName);return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function Zo(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a){var s=Xo(a,i);if(n(t,s))return s}}}function Yo(t,e){return 1===t.ownerDocument.body.querySelectorAll(e).length}function Qo(t,e){return 1===t.parentElement.querySelectorAll(function(){if(void 0===Fo)try{document.querySelector(":scope"),Fo=!0}catch(t){Fo=!1}return Fo}()?Xo(":scope",e):e).length}function Xo(t,e){return e?t+">"+e:t}function Jo(){var t=window.getSelection();return!t||t.isCollapsed}function ta(t){return t.target instanceof Element&&!1!==t.isPrimary}var ea=3;function na(t,e){if(function(t){if(H(t,(function(t){return t.getUserActivity().selection||t.getUserActivity().scroll})))return!1;for(var e=0;e<t.length-(ea-1);e+=1)if(t[e+ea-1].event.timeStamp-t[e].event.timeStamp<=lt)return!0;return!1}(t))return e.addFrustration(ue.RAGE_CLICK),H(t,ia)&&e.addFrustration(ue.DEAD_CLICK),e.hasError()&&e.addFrustration(ue.ERROR_CLICK),{isRage:!0};var n=H(t,(function(t){return t.getUserActivity().selection}));return A(t,(function(t){t.hasError()&&t.addFrustration(ue.ERROR_CLICK),ia(t)&&!n&&t.addFrustration(ue.DEAD_CLICK)})),{isRage:!1}}var ra='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 ia(t){return!(t.hasPageActivity()||t.getUserActivity().input||t.getUserActivity().scroll)&&(e=t.event.target,n=ra,!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}var oa=10*lt,aa=new Map;function sa(t,e){aa.set(t,e),aa.forEach((function(t,e){Tt(e,bt())>oa&&aa.delete(e)}))}var ua=5*ft;function ca(t,e,n){var r,i=new te({expireDelay:ua}),o=new tn;t.subscribe(pn.SESSION_RENEWED,(function(){i.reset()})),t.subscribe(pn.VIEW_ENDED,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=$o(i.target,o))&&sa(i.timeStamp,s),{type:se.CLICK,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:xo(i.target,o)}),c=!1;return So(e,n,t,(function(t){c=t.hadActivity}),Eo),{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=fa(e,r,u,a,s);o(l);var f=a&&a.target&&a.target.selector;f&&sa(s.timeStamp,f);var d=So(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()}),oa),p=d.stop,v=e.subscribe(pn.VIEW_ENDED,(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=[on(window,oe.POINTER_DOWN,(function(t){ta(t)&&(s=Jo(),c={selection:!1,input:!1,scroll:!1},u=a.onPointerDown(t))}),{capture:!0}),on(window,oe.SELECTION_CHANGE,(function(){s&&Jo()||(c.selection=!0)}),{capture:!0}),on(window,oe.POINTER_UP,(function(t){if(ta(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),on(window,oe.SCROLL,(function(){c.scroll=!0}),{capture:!0,passive:!0}),on(window,oe.INPUT,(function(){c.input=!0}),{capture:!0})],{stop:function(){A(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=Ao(t,(function(t){!function(t,e){var n=na(t,e),r=n.isRage;r?(A(t,(function(t){t.discard()})),e.stop(wt()),e.validate(B(t,(function(t){return t.event})))):(e.discard(),A(t,(function(t){t.validate()})))}(t,e)}))}}}var la={ONGOING:0,STOPPED:1,FINALIZED:2};function fa(t,e,n,r,i){var o,a=J(),s=Et(),u=e.add(a,s.relative),c=bo({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(L(t.action.ids)?Dt(t.action.ids,a):t.action.ids===a)}}),l=la.ONGOING,f=[],d=new tn;function p(t){l===la.ONGOING&&(o=t,l=la.STOPPED,o?u.close(mt(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===la.STOPPED||l===la.FINALIZED},clone:function(){return fa(t,e,n,r,i)},validate:function(e){if(p(),l===la.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,v=n.longTaskCount,h=R({type:se.CLICK,duration:o&&Tt(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:v},events:Gt(e,[i]),event:i},r);t.notify(pn.AUTO_ACTION_COMPLETED,h),l=la.FINALIZED}},discard:function(){p(),l=la.FINALIZED}}}var da=4e3,pa=500,va=Vn,ha={ACTIVE:"active",PASSIVE:"passive",HIDDEN:"hidden",FROZEN:"frozen",TERMINATED:"terminated"};function _a(t){void 0===t&&(t=pa);var e,n=te({expireDelay:va,maxEntries:da});i(ga(),bt());var r=an(window,[oe.PAGE_SHOW,oe.FOCUS,oe.BLUR,oe.VISIBILITY_CHANGE,oe.RESUME,oe.FREEZE,oe.PAGE_HIDE],(function(t){i(function(t){if(t.type===oe.FREEZE)return ha.FROZEN;if(t.type===oe.PAGE_HIDE)return t.persisted?ha.FROZEN:ha.TERMINATED;return ga()}(t),t.timeStamp)}),{capture:!0}).stop;function i(t,r){void 0===r&&(r=bt()),t!==e&&(e=t,n.closeActive(r),n.add({state:e,startTime:r},r))}var o={findAll:function(e,r){var i=n.findAll(e,r);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-t),s=i.length-1;s>=a;s--){var u=i[s],c=Tt(e,u.startTime);o.push({state:u.state,start:gt(c)})}return o}},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 ga(){return"hidden"===document.visibilityState?ha.HIDDEN:document.hasFocus()?ha.ACTIVE:ha.PASSIVE}function ma(t,e){var n=ya(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:Zt(gt(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:0}};return{customerContext:ya(t)?void 0:t.context,rawRumEvent:N({action:{id:J(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:ce.ACTION,view:{in_foreground:e.wasInPageStateAt(ha.ACTIVE,t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:ya(t)?{event:t.event,events:t.events}:{}}}function ya(t){return t.type!==se.CUSTOM}var ba={REPLAY:1,RUM:2};function Ea(t,e){var n,r=0,i=[],o=0,a=[],s=on(t,"message",(function(t){var o=t.data;if(!("wrote"!==o.type||o.streamId&&o.streamId!==e)){r+=o.additionalBytesCount,i.push(o.result),n=o.trailer;var u=a.shift();u&&u.id===o.id?u.writeCallback?u.writeCallback(o.result.byteLength):u.finishCallback&&u.finishCallback():(s(),ai("Worker responses received out of order."))}})).stop;function u(){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 c(){o>0&&(t.postMessage({action:"reset",streamId:e}),o=0)}return{isAsync:!0,isEmpty:function(){return 0===o},write:function(n,r){t.postMessage({action:"write",id:o,data:n,streamId:e}),a.push({id:o,writeCallback:r,data:n}),o+=1},finish:function(t){c(),a.length?(a.forEach((function(t){delete t.writeCallback})),a[a.length-1].finishCallback=function(){return t(u())}):t(u())},finishSync:function(){c();var t=a.map((function(t){return delete t.writeCallback,delete t.finishCallback,t.data})).join("");return R(u(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){s()}}}var wa=10*lt;function Sa(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]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<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},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;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},U=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},S=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]},R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,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):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;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--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(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)},D=function(t,e,n,r){var i,s,_=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)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;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(E(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,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!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,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_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)}},C=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},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return~t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},kt=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))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||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=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)},Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=ft-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.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.7"};case"write":var n=e.get(a.streamId);n||(n=new Jt,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,_=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++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;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,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var Ta={Nil:0,Loading:1,Error:2,Initialized:3},Ca={status:Ta.Nil};function Ia(t,e,n,r){switch(void 0===r&&(r=Sa),Ca.status===Ta.Nil&&function(t,e,n){void 0===n&&(n=Sa);try{var r=n(t),i=on(r,"error",(function(n){Aa(t,e,n)})),a=on(r,"message",(function(t){var e,n=t.data;"errored"===n.type?Aa(n.error,n.streamId):"initialized"===n.type&&(e=n.version,Ca.status===Ta.Loading&&(Ca={status:Ta.Initialized,worker:Ca.worker,version:e,stop:Ca.stop}))}));r.postMessage({action:"init"}),h((function(){return function(t){Ca.status===Ta.Loading&&(o.error(t+" failed to start: a timeout occurred while initializing the Worker"),Ca.initializationFailureCallbacks.forEach((function(t){t()})),Ca={status:Ta.Error})}(e)}),wa);var s=function(){i.stop(),a.stop()};Ca={status:Ta.Loading,worker:r,stop:s,initializationFailureCallbacks:[]}}catch(n){Aa(t,e,n)}}(t,e,r),Ca.status){case Ta.Loading:return Ca.initializationFailureCallbacks.push(n),Ca.worker;case Ta.Initialized:return Ca.worker}}function Oa(){return Ca.status}function Aa(t,e,n,r){if(Ca.status===Ta.Loading){var i;if(o.error(e+" failed to start: an error occurred while creating the Worker:",n),n instanceof Event||n instanceof Error&&(Dt(a=n.message,"Content Security Policy")||Dt(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 si(n);Ca.status===Ta.Loading&&Ca.initializationFailureCallbacks.forEach((function(t){t()})),Ca={status:Ta.Error}}else si(n,{worker_version:Ca.status===Ta.Initialized&&Ca.version,stream_id:r});var a}function Ra(t,e,n,r,i,o,a){var s=function(t,e,n,r,i,o){void 0===o&&(o=Ei);var a=function(t,e){return o({encoder:e.encoder,request:fi(e.endpoint,t.batchBytesLimit,n),flushController:Si({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(ba.RUM)},r,i,o);return e.subscribe(pn.RUM_EVENT_COLLECTED,(function(t){t.type===ce.VIEW?s.upsert(t,t.view.id):s.add(t)})),n.subscribe((function(t){s.add(t)})),s}var xa,ka={SYNTHETICS:"synthetics",USER:"user"},Na={"view.url":"string","view.referrer":"string"},La={context:"object"},Da={};function Ma(t,e,n,r,i,a,s,u,c,l){Da[ce.VIEW]=Na,Da[ce.ERROR]=R({"error.message":"string","error.stack":"string","error.resource.url":"string"},La,Na),Da[ce.RESOURCE]=R({"resource.url":"string"},La,Na),Da[ce.ACTION]=R({"action.target.name":"string"},La,Na),Da[ce.LONG_TASK]=R({},La,Na);var f={};f[ce.ERROR]=yn(ce.ERROR,t.eventRateLimiterThreshold,l),f[ce.ACTION]=yn(ce.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(pn.RAW_RUM_EVENT_COLLECTED,(function(l){var d,p=l.startTime,v=l.rawRumEvent,h=l.savedCommonContext,_=l.customerContext,g=l.domainContext,m=i.findView(p),y=a.findUrl(p),b=n.findTrackedSession(p);if(b&&m&&y){var E=s.findActionId(p),w=s.findAllActionId(p),S=h||c(),T={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(St()-(Rt()+performance.now())),configuration:{session_sample_rate:ht(t.sessionSampleRate,3),session_replay_sample_rate:ht(t.sessionReplaySampleRate,3)}},terminal:{type:"web"},application:{id:t.applicationId},device:ie,env:t.env||"",service:m.service||t.service||"browser",version:m.version||t.version||"",source:"browser",date:wt(),user:{id:r.getId(),is_signin:"F",is_login:!1},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?ka.USER:ka.SYNTHETICS,id:b.id},view:{id:m.id,name:m.name,url:y.url,referrer:y.referrer,host:y.host,path:y.path,pathGroup:y.pathGroup,urlQuery:y.urlQuery},action:(d=v,-1!==[ce.ERROR,ce.RESOURCE,ce.LONG_TASK].indexOf(d.type)&&E?{id:E,ids:w}:void 0),display:u.get()},C=zt(N(T,m,v)),I=N({},S.context,_);$(I)||(C.context=I),"has_replay"in C.session||(C.session.has_replay=S.hasReplay),"view"===C.type&&(C.session.sampled_for_replay=b.sessionReplayAllowed),$(S.user)||(C.user=N({is_signin:"T",is_login:!0},S.user)),function(t,e,n,r){if(e){var i=hn(t,Da[t.type],(function(t){return e(t,n)}));if(!1===i&&t.type!==ce.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}(C,t.beforeSend,g,f)&&($(C.context)&&delete C.context,e.notify(pn.RUM_EVENT_COLLECTED,C))}}))}function Ua(){return xa||(xa=new tn((function(t){var e=Q((function(){t.notify(Pa())}),200).throttled;return on(window,oe.RESIZE,e,{capture:!0,passive:!0}).stop}))),xa}function Pa(){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 Va=Vn;var Ba=Vn;function Ha(e,n,r){var i=new tn;return function(e){var n=rn([t.error]).subscribe((function(t){e.notify(t.error)}))}(i),function(t){Ne((function(e,n){t.notify(Ke({stackTrace:e,originalError:n,startClocks:Et(),nonErrorPrefix:he.UNCAUGHT,source:$e.SOURCE,handling:ve.UNHANDLED}))}))}(i),function(t,e){var n=un(0,[(sn.cspViolation,sn.intervention)]).subscribe((function(t){e.notify({startClocks:Et(),message:t.message,stack:t.stack,type:t.subtype,source:$e.REPORT,handling:ve.UNHANDLED})}))}(0,i),i.subscribe((function(t){e.notify(pn.RAW_ERROR_COLLECTED,{error:t})})),function(t,e){return t.subscribe(pn.RAW_ERROR_COLLECTED,(function(n){t.notify(pn.RAW_RUM_EVENT_COLLECTED,R({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:J(),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:ce.ERROR,view:{in_foreground:e.wasInPageStateAt(ha.ACTIVE,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=Ke({stackTrace:r instanceof Error?Ee(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:he.PROVIDED,source:$e.CUSTOM,handling:ve.HANDLED});t.notify(pn.RAW_ERROR_COLLECTED,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,r)}var Fa=10*ft;function za(){if(yo(go.NAVIGATION)){var t=performance.getEntriesByType(go.NAVIGATION)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(Z(e[n])){var r=n,i=e[r];t[r]=0===i?0:mt(i)}return t}(),n=R({entryType:go.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return R({},n,{toJSON:void 0})}},e);return n}function Wa(t,e,n){return void 0===n&&(n=za),function(t){var e,n=xr("complete",(function(){e=h((function(){t()}))}));return{stop:function(){n.stop(),_(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<=bt()?t.responseStart:void 0}}(t))}))}var Ga=10*ft;function $a(t){var e;if(void 0===t&&(t=window),"hidden"===document.visibilityState)e=0;else{e=1/0;var n=an(t,[oe.PAGE_HIDE,oe.VISIBILITY_CHANGE],(function(t){t.type!==oe.PAGE_HIDE&&"hidden"!==document.visibilityState||(e=t.timeStamp,n())}),{capture:!0}).stop}return{getTimeStamp:function(){return e},stop:function(){n&&n()}}}function Ka(t,e,n){var r={},i=Wa(0,(function(t){e(t.loadEvent),r.navigationTimings=t,n()})),o=$a(),a=i.stop,s=function(t,e,n){return{stop:mo(t,{type:go.PAINT,buffered:!0}).subscribe((function(t){var r=Mt(t,(function(t){return t.entryType===go.PAINT&&"first-contentful-paint"===t.name&&t.startTime<e.getTimeStamp()&&t.startTime<Fa}));r&&n(r.startTime)})).unsubscribe}}(t,o,(function(t){r.firstContentfulPaint=t,n()})),u=s.stop,c=function(t,e,n,r){var i=1/0,o=an(n,[oe.POINTER_DOWN,oe.KEY_DOWN],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=0,s=mo(t,{type:go.LARGEST_CONTENTFUL_PAINT,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===go.LARGEST_CONTENTFUL_PAINT&&t.startTime<i&&t.startTime<e.getTimeStamp()&&t.startTime<Ga&&t.size>a}));s&&(s.element&&(o=$o(s.element,t.actionNameAttribute)),r({value:s.startTime,targetSelector:o}),a=s.size)}));return{stop:function(){o(),s.unsubscribe()}}}(t,o,window,(function(t){r.largestContentfulPaint=t,n()})),l=c.stop,f=function(t,e,n){var r=mo(t,{type:go.FIRST_INPUT,buffered:!0}).subscribe((function(r){var i=Mt(r,(function(t){return t.entryType===go.FIRST_INPUT&&t.startTime<e.getTimeStamp()}));if(i){var o,a=Tt(i.startTime,i.processingStart);i.target&&Cr(i.target)&&(o=$o(i.target,t.actionNameAttribute)),n({delay:a>=0?a:0,time:i.startTime,targetSelector:o})}}));return{stop:function(){r.unsubscribe()}}}(t,o,(function(t){r.firstInput=t,n()})),d=f.stop;return{stop:function(){a(),u(),l(),d(),o.stop()},initialViewMetrics:r}}var ja=lt;function qa(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=ja);return new tn((function(t){function n(){var e,n,r,i;t.notify((e=Nr(),n=Pa().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(c(r.throttled));i&&o.observe(i);var a=on(window,oe.SCROLL,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=bt();a=Tt(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 Za(t,e,n){if(!ts())return{stop:ut};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>=Ja||i.startTime-t>=5*Xa?(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=mo(t,{type:go.LAYOUT_SHIFT,buffered:!0}).subscribe((function(s){for(var u=0,c=s;u<c.length;u++){var l=c[u];if(!(l.hadRecentInput||l.startTime<e)){var f=a.update(l),d=f.cumulatedValue;if(f.isMaxValue){var p=Ya(l.sources);r=p?new WeakRef(p):void 0,i=Tt(e,l.startTime)}if(d>o){o=d;p=r&&r.deref();n({value:ht(o,4),targetSelector:p&&$o(p,t.actionNameAttribute),time:i})}}}}));return{stop:function(){s.unsubscribe()}}}function Ya(t){if(t){var e=Mt(t,(function(t){return!!t.node&&Cr(t.node)}));return e&&e.node}}var Qa,Xa=5*lt,Ja=lt;function ts(){return yo(go.LAYOUT_SHIFT)&&"WeakRef"in window}var es=0,ns=1/0,rs=0;var is=function(){return Qa?es:window.performance.interactionCount||0},os=10,as=1*ft;function ss(t,e,n){if(!(yo("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ut,stop:ut};var r,i,o=function(t){"interactionCount"in performance||Qa||(Qa=new window.PerformanceObserver(c((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(ns=Math.min(ns,e.interactionId),rs=Math.max(rs,e.interactionId),es=(rs-ns)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===fe.INITIAL_LOAD?0:is(),n={stopped:!1};function r(){return is()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,u=1/0,l=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(os)}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<os||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<=u&&l.process(s)}var c,d,p=l.estimateP98Interaction();p&&p.duration!==f&&(f=p.duration,i=Tt(e,p.startTime),c=p.startTime,d=aa.get(c),aa.delete(c),!(r=d)&&p.target&&Cr(p.target)&&(r=$o(p.target,t.actionNameAttribute)))}var p=mo(t,{type:go.FIRST_INPUT,buffered:!0}).subscribe(d),v=mo(t,{type:go.EVENT,durationThreshold:40,buffered:!0}).subscribe(d);return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,as),targetSelector:r,time:i}:a()?{value:0}:void 0},setViewEnd:function(t){u=t,s()},stop:function(){v.unsubscribe(),p.unsubscribe()}}}function us(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a=r===fe.INITIAL_LOAD,s=!0,u=[],c=$a();function l(){if(!s&&!a&&u.length>0){var t=Math.max.apply(Math,u);t<c.getTimeStamp()&&o(t)}}var f=So(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(Tt(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=qa(0,o,(function(t){a.scroll=t})).stop,f=Za(n,o.relative,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=ss(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 cs=3e3,ls=5*ft,fs=5*ft;function ds(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=Et());var s,u,c,l,f=J(),d=new tn,p={},v=0,_=x(r),y=!0;a&&(u=a.name,c=a.service,l=a.version);var b={id:f,name:u,startClocks:o,service:c,version:l};t.notify(pn.BEFORE_VIEW_CREATED,b),t.notify(pn.VIEW_CREATED,b);var E=Q(V,cs,{leading:!1}),w=E.throttled,S=E.cancel,T=us(t,e,n,w,i,o),C=T.setLoadEvent,I=T.stop,O=T.getCommonViewMetrics,A=T.stopINPTracking,R=T.setViewEnd,k=i===fe.INITIAL_LOAD?Ka(n,C,w):{stop:ut,initialViewMetrics:{}},N=k.stop,L=k.initialViewMetrics,D=function(t,e,n){var r=bo({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,f,w),M=D.stop,U=D.eventCounts,P=g(V,ls);function V(){S(),v+=1;var e=void 0===s?wt():s.timeStamp;t.notify(pn.VIEW_UPDATED,{customTimings:p,documentVersion:v,id:f,name:u,service:c,version:l,loadingType:i,location:_,startClocks:o,commonViewMetrics:O(),initialViewMetrics:L,duration:Tt(o.timeStamp,e),isActive:void 0===s,sessionIsActive:y,eventCounts:U})}V();var B={name:u,service:c,version:l,stopObservable:d,end:function(e){s||(s=Gt(e&&e.endClocks,Et()),y=Gt(e&&e.sessionIsActive,!0),t.notify(pn.VIEW_ENDED,{endClocks:s}),t.notify(pn.AFTER_VIEW_ENDED,{endClocks:s}),m(P),R(s.relative),I(),V(),h((function(){B.stop()}),fs))},stop:function(){N(),M(),A(),d.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<pt}(e)?e:Tt(o.timeStamp,e);p[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,w()}}};return B}(e,n,r,t,i,o,a);return s.add(u),u.stopObservable.subscribe((function(){s.delete(u)})),u}var c,l=u(fe.INITIAL_LOAD,Ct(),a);return e.subscribe(pn.SESSION_RENEWED,(function(){l=u(fe.ROUTE_CHANGE,void 0,{name:l.name,service:l.service,version:l.version})})),e.subscribe(pn.SESSION_EXPIRED,(function(){l.end({sessionIsActive:!1})})),e.subscribe(pn.PAGE_EXITED,(function(t){t.reason===Sr.UNLOADING&&l.end()})),o&&(c=function(t){return t.subscribe((function(t){var e,n,r=t.oldLocation,i=t.newLocation;if(n=i,(e=r).pathname!==n.pathname||!jt(n.hash)&&qt(n.hash)!==qt(e.hash))return l.end(),void(l=u(fe.ROUTE_CHANGE))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=wt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(fe.ROUTE_CHANGE,e,t)},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach((function(t){t.stop()}))}}}function ps(t,e,n,r,i,o,a,s){return t.subscribe(pn.VIEW_UPDATED,(function(n){t.notify(pn.RAW_RUM_EVENT_COLLECTED,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},date:t.startClocks.timeStamp,type:ce.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:kt(t.commonViewMetrics,"cumulativeLayoutShift.value"),cumulative_layout_shift_time:kt(t.commonViewMetrics,"cumulativeLayoutShift.time"),cumulative_layout_shift_target_selector:kt(t.commonViewMetrics,"cumulativeLayoutShift.targetSelector"),first_byte:gt(kt(t.initialViewMetrics,"navigationTimings.firstByte")),dom_complete:gt(kt(t.initialViewMetrics,"navigationTimings.domComplete")),dom_content_loaded:gt(kt(t.initialViewMetrics,"navigationTimings.domContentLoaded")),dom_interactive:gt(kt(t.initialViewMetrics,"navigationTimings.domInteractive")),error:{count:t.eventCounts.errorCount},first_contentful_paint:gt(kt(t.initialViewMetrics,"firstContentfulPaint")),first_input_delay:gt(kt(t.initialViewMetrics,"firstInput.delay")),first_input_time:gt(kt(t.initialViewMetrics,"firstInput.time")),first_input_target_selector:kt(t.initialViewMetrics,"firstInput.targetSelector"),interaction_to_next_paint:gt(kt(t.commonViewMetrics,"interactionToNextPaint.value")),interaction_to_next_paint_target_selector:kt(t.commonViewMetrics,"interactionToNextPaint.targetSelector"),is_active:t.isActive,name:t.name,largest_contentful_paint:gt(kt(t.initialViewMetrics,"largestContentfulPaint.value")),largest_contentful_paint_element_selector:kt(t.initialViewMetrics,"largestContentfulPaint.targetSelector"),load_event:gt(kt(t.initialViewMetrics,"navigationTimings.loadEvent")),loading_time:Zt(gt(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:gt(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:gt(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=gt,c={},A(s,(function(t,e){c[e]=u(t)})),c));var s,u,c;return a=N(a,{view:vs(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),ds(n,t,r,e,i,!e.trackViewsManually,s)}function vs(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(Z(n)&&Z(e)&&n!==e){c.fpt=gt(n-e);var l=parseInt((n-e)/1e3);c.apdexLevel=l>9?9:l}return Z(r)&&Z(e)&&r!==e&&(c.tti=gt(r-e)),Z(i)&&Z(e)&&i!==e&&(c.dom_ready=gt(i-e)),Z(a)&&Z(e)&&a!==e&&(c.load=gt(a-e)),Z(s)&&Z(u)&&s!==u&&(c.resource_load_time=gt(s-u)),Z(o)&&Z(r)&&o!==r&&(c.dom=gt(o-r)),c}}function hs(){this.buffer=new Uint8Array(8),_s().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function _s(){return window.crypto||window.msCrypto}function gs(t){this._spanId=new hs,this._traceId=new hs,this._traceSampled=t}function ms(){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 ys(t,e,n){this._spanId=ms(),this._traceId=ms(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=et(e).getParse(),this._traceSampled=n}function bs(t,e){this._traceId=new hs,this._spanId=new hs,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function Es(t,e){this._traceId=new hs,this._spanId=new hs,this._traceSampled=e}function ws(t,e){this._traceId=new hs,this._spanId=new hs,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function Ss(t,e){this._traceId=new hs,this._spanId=new hs,this._traceSampled=t,this.isHexTraceId=e}function Ts(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Cs(t,e,n,r){if(n.findTrackedSession()){var i=Mt(t.allowedTracingUrls,(function(t){return z([t.match],e.url,!0)}));if(i){var o,a=!Z(t.tracingSampleRate)||vt(t.tracingSampleRate);switch(i.traceType){case pe.DDTRACE:o=new gs(a);break;case pe.SKYWALKING_V3:o=new ys(t,e.url,a);break;case pe.ZIPKIN_MULTI_HEADER:o=new ws(t,a);break;case pe.JAEGER:o=new bs(t,a);break;case pe.W3C_TRACEPARENT:o=new Ss(a);break;case pe.W3C_TRACEPARENT_64:o=new Ss(a,!0);break;case pe.ZIPKIN_SINGLE_HEADER:o=new Es(t,a)}if(o&&o.isTracingSupported()){e.traceId=o.getTraceId(),e.spanId=o.getSpanId(),e.traceSampled=a;var s=o.makeTracingHeaders();if(t.injectTraceHeader){var u=t.injectTraceHeader(x(e));"object"===it(u)&&A(u,(function(t,e){"string"===it(t)&&(s[e]=t)}))}r(s)}}}}hs.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]}},gs.prototype={isTracingSupported:function(){return void 0!==_s()},getSpanId:function(){return this._spanId.toDecimalString()},getTraceId:function(){return 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()}}},ys.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},getSkyWalkingSw8:function(){try{var t=String(X(this._traceId)),e=String(X(this._spanId)),n=String(X(this._applicationId+"_rum_"+this.env)),r=String(X(this._version)),i=String(X(window.location.href)),o=String(X(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},bs.prototype={isTracingSupported:function(){return void 0!==_s()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return 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()}}},Es.prototype={isTracingSupported:function(){return void 0!==_s()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this._traceId.toPaddedHexadecimalString()},getB3Str:function(){return this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},ws.prototype={isTracingSupported:function(){return void 0!==_s()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},makeTracingHeaders:function(){return{"X-B3-TraceId":this.getSpanId(),"X-B3-SpanId":this.getTraceId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},Ss.prototype={isTracingSupported:function(){return void 0!==_s()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return 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?R(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var Is=1;function Os(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Ts,traceFetch:function(n){return Cs(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=x(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):L(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(K(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 Cs(t,n,e,(function(t){A(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=br().subscribe((function(r){var i=r;if(co(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=As(),t.notify(pn.REQUEST_STARTED,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(pn.REQUEST_COMPLETED,{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:de.XHR,url:i.url,xhr:i.xhr,isAborted:i.isAborted,handlingStack:i.handlingStack})}}))}(t,e,r),function(t,e,n){var r=mr().subscribe((function(r){var i=r;if(co(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=As(),t.notify(pn.REQUEST_STARTED,{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(ut),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;A(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(c((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())})),c((function(t){e(t)})))}()}(n.body,(function(){e(Tt(t.startClocks.timeStamp,wt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(Tt(t.startClocks.timeStamp,wt()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(pn.REQUEST_COMPLETED,{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,type:de.FETCH,url:i.url,response:i.response,init:i.init,input:i.input,isAborted:i.isAborted,handlingStack:i.handlingStack})}))}}))}(t,e,r)}function As(){var t=Is;return Is+=1,t}var Rs=new Pi;function xs(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=V(e,(function(t){return!Rs.has(t)}));return n=V(n,(function(t){return io(t)&&oo(t)})),1===(n=V(n,(function(e){return n=e,r=t.startClocks.relative,i=ks({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&ks(n)<=Ot(i,o);var n,r,i,o}))).length?(Rs.add(n[0]),n[0].toJSON()):void 0}}}function ks(t){return Ot(t.startTime,t.duration)}function Ns(t,e){xr("interactive",(function(){var t=R(za().toJSON(),{entryType:go.RESOURCE,initiatorType:Zi,toJSON:function(){return R({},t,{toJSON:void 0})}});e(t)}))}function Ls(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 An-(performance.now()-i)}}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){Cn(e,{timeout:On})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===i&&(i=Ns),t.subscribe(pn.REQUEST_COMPLETED,(function(t){a((function(){return function(t,e){var n=xs(t),r=n?It(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:J()}}}(t),o=t.type===de.XHR?ae.XHR:ae.FETCH,a=n?Ms(n):void 0,s=function(t,e,n){return t.wasInPageStateDuringPeriod(ha.FROZEN,e.relative,n)?void 0:gt(n)}(e,r,t.duration),u=et(t.url).getParse(),c=N({date:r.timeStamp,resource:{id:J(),type:o,duration:s,method:t.method,status:t.status,statusGroup:st(t.status),url:po(t.url)?vo(t.url):t.url,urlHost:u.Host,urlPath:u.Path,urlPathGroup:tt(u.Path),urlQuery:nt(t.url)},type:ce.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:c,domainContext:{performanceEntry:n,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}(t,n)}))}));var o=mo(e,{type:go.RESOURCE,buffered:!0}).subscribe((function(t){for(var n=0,r=t;n<r.length;n++){var i=r[n];Ji(i)||eo(i.name,e.resourceUrlLimit)||a((function(){return Ds(i,e)}))}}));function a(e){r.push((function(){var n=e();n&&t.notify(pn.RAW_RUM_EVENT_COLLECTED,n)}))}return i(e,(function(t){a((function(){return Ds(t,e)}))})),{stop:function(){o.unsubscribe()}}}function Ds(t,e){var n,r=It(t.startTime),i=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),o=Qi(t),a=Ms(t),s=et(t.name).getParse(),u=N({date:r.timeStamp,resource:{id:J(),type:o,url:t.name,urlHost:s.Host,urlPath:s.Path,urlPathGroup:tt(s.Path),urlQuery:nt(t.name),method:"GET",status:(n=t.responseStatus,0===n?void 0:n),statusGroup:st(t.responseStatus)},type:ce.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:u,domainContext:{performanceEntry:t}}}function Ms(t){return{resource:N({},{duration:no(t)},uo(t),ro(t))}}function Us(t){return Us="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},Us(t)}var Ps={sdkVersion:"3.2.7",sdkName:"df_web_rum_sdk"};function Vs(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.sessionReplaySampleRate||Pt(t.sessionReplaySampleRate)){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(!L(t.allowedTracingUrls))return void o.error("Allowed Tracing URLs should be an array");var e=[];return A(t.allowedTracingUrls,(function(n){var r;Lt(n)?e.push({match:n,traceType:Gt(t.traceType,pe.DDTRACE)}):"object"===it(r=n)&&Lt(r.match)&&j(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(!L(t.allowedTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return A(t.allowedTracingOrigins,(function(n){var r=Bs(n,Gt(t.traceType,pe.DDTRACE));r&&e.push(r)})),e}if(void 0!==t.allowedDDTracingOrigins){if(!L(t.allowedDDTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return A(t.allowedDDTracingOrigins,(function(n){var r=Bs(n,Gt(t.traceType,pe.DDTRACE));r&&e.push(r)})),e}return[]}(t);if(n)if(void 0===t.tracingSampleRate||Pt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||L(t.excludedActivityUrls)){var r=gr(t);if(r){var i,a,s=!!Gt(t.trackUserInteractions,t.trackInteractions);return R({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Gt(t.sessionReplaySampleRate,100),tracingSampleRate:t.tracingSampleRate,allowedTracingUrls:n,injectTraceHeader:t.injectTraceHeader&&d(t.injectTraceHeader,"injectTraceHeader threw an error:"),excludedActivityUrls:Gt(t.excludedActivityUrls,[]),workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:s,enableLongAnimationFrame:!!t.enableLongAnimationFrame,trackViewsManually:!!t.trackViewsManually,traceType:Gt(t.traceType,pe.DDTRACE),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:(i=_r,a=t.defaultPrivacyLevel,H(P(i),(function(t){return i[t]===a}))?t.defaultPrivacyLevel:_r.MASK_USER_INPUT)},r,Ps)}}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("Premium 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 Bs(t,e){var n;if("string"==typeof t?n=t:t instanceof RegExp?n=function(e){return t.test(En(e))}:"function"==typeof t&&(n=function(e){return t(En(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 Hs(t,e,n){var r,i,a,s,u=t.ignoreInitIfSyntheticsWillInjectRum,c=t.startDeflateWorker,l=Qt();function f(){if(a&&s){var t;if(s.trackViewsManually){if(!r)return;l.remove(r.callback),t=r.options}var e=n(s,i,t);l.drain(e)}}function d(t){var e=Ci();if(e&&(t=function(t){return R({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",sessionSampleRate:100})}(t)),a=t,function(t){ii({type:Jr.configuration,configuration:t})}(at(t)),s)Vi("DATAFLUX_RUM",t);else{var n=Vs(t);n&&(e||n.sessionStoreStrategyType?(!n.compressIntakeRequests||n.sendContentTypeByJson||e||!c||(i=c(n,"RUM",ut)))&&(s=n,mr().subscribe(ut),f()):o.warn("No storage available for session. We will not send any data."))}}return{init:function(t){t?(a=t,u&&Boolean(window._GUANCE_SYNTHETICS_INJECTS_RUM||Un(Ii))||d(t)):o.error("Missing configuration")},getInitConfiguration:function(){return a},getInternalContext:ut,stopSession:ut,addTiming:function(t,e){void 0===e&&(e=wt()),l.add((function(n){n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=Et());var n=function(n){n.startView(t,e)};l.add(n),r||(r={options:t,callback:n},f())},addAction:function(t,n){void 0===n&&(n=e()),l.add((function(e){e.addAction(t,n)}))},addError:function(t,n){void 0===n&&(n=e()),l.add((function(e){e.addError(t,n)}))}}}var Fs={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},zs={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},Ws={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},Gs={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},$s={Play:0,Pause:1};function Ks(t){var e=function(t,e){if("object"!=Us(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Us(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Us(e)?e:e+""}function js(t,e,n){return(e=Ks(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qs={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:_r.ALLOW,MASK:_r.MASK,MASK_USER_INPUT:_r.MASK_USER_INPUT},Zs="data-gc-privacy",Ys="allow",Qs="mask",Xs="mask-user-input",Js="hidden",tu="gc-privacy-allow",eu="gc-privacy-mask",nu="gc-privacy-mask-user-input",ru="gc-privacy-hidden",iu="***",ou="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",au={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function su(t,e,n){if(n&&n.has(t))return n.get(t);var r=Rr(t),i=r?su(r,e):e,o=uu(cu(t),i);return n&&n.set(t,o),o}function uu(t,e){switch(e){case qs.HIDDEN:case qs.IGNORE:return e}switch(t){case qs.ALLOW:case qs.MASK:case qs.MASK_USER_INPUT:case qs.HIDDEN:case qs.IGNORE:return t;default:return e}}function cu(t){if(Cr(t)){var e=t.getAttribute(Zs);if("BASE"===t.tagName)return qs.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return qs.MASK;if("hidden"===n.type)return qs.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return qs.MASK}return e===Js||t.classList.contains(ru)?qs.HIDDEN:e===Qs||t.classList.contains(eu)?qs.MASK:e===Xs||t.classList.contains(nu)?qs.MASK_USER_INPUT:e===Ys||t.classList.contains(tu)?qs.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)?qs.IGNORE:void 0}}function lu(t,e){switch(e){case qs.MASK:case qs.HIDDEN:case qs.IGNORE:return!0;case qs.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(t)?fu(t.parentNode):fu(t);default:return!1}}function fu(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!!au[e.tagName]}var du=function(t){return t.replace(/\S/g,"x")};function pu(t,e,n){var r=t.parentElement&&t.parentElement.tagName,i=t.textContent||"";if(!e||i.trim()){var o=n;if("SCRIPT"===r)i=iu;else if(o===qs.HIDDEN)i=iu;else if(lu(t,o))if("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r){if(!i.trim())return}else i="OPTION"===r?iu:du(i);return i}}var vu=new WeakMap;function hu(t){return vu.has(t)}function _u(t){return vu.get(t)}function gu(t,e){var n=t.tagName,r=t.value;if(lu(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i||"range"===i))return r;if(!r||"OPTION"===n)return;return iu}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var mu=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,yu=/^[A-Za-z]+:|^\/\//,bu=/^data:.*,/i;function Eu(t,e){return t.replace(mu,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||yu.test(s)||bu.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 wn(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}function wu(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch(t){}return e?Eu(((n=Array.from(e,Ht()===Bt.SAFARI?Tu:Su).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 Su(t){return function(t){return"styleSheet"in t}(t)&&wu(t.styleSheet)||t.cssText}function Tu(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return Su(t)}function Cu(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 Iu(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var Ou=/^[^ \t\n\r\u000c]+/,Au=/^[, \t\n\r\u000c]+/;var Ru={INITIAL_FULL_SNAPSHOT:0,SUBSEQUENT_FULL_SNAPSHOT:1,MUTATION:2};function xu(t,e,n){return ku(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function ku(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:zs.Document,childNodes:Nu(t,e),adoptedStyleSheets:Cu(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=Or(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:zs.DocumentFragment,childNodes:Nu(t,e),isShadowRoot:n,adoptedStyleSheets:n?Cu(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return n=t,{type:zs.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=Uu(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=uu(cu(t),e.parentNodePrivacyLevel);var o;if(i===qs.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:zs.Element,tagName:n,attributes:js({rr_width:s+"px",rr_height:u+"px"},Zs,Js),childNodes:[],isSVG:r}}if(i===qs.IGNORE)return;var c=function(t,e,n){if(e===qs.HIDDEN)return{};for(var r={},i=Uu(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=Lu(t,e,s,n.configuration);null!==u&&(r[s]=Pu(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=gu(t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===qs.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=wu(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=wu(t.sheet))&&(r._cssText=d)}var p,v,h=t;"input"!==i||"radio"!==h.type&&"checkbox"!==h.type||(e===qs.ALLOW?r.checked=!!h.checked:lu(h,e)&&delete r.checked);if("audio"===i||"video"===i){var _=t;r.rr_mediaState=_.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case Ru.INITIAL_FULL_SNAPSHOT:p=Math.round(t.scrollTop),v=Math.round(t.scrollLeft),(p||v)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:v});break;case Ru.SUBSEQUENT_FULL_SNAPSHOT:if(g.elementsScrollPositions.has(t)){var m=g.elementsScrollPositions.get(t);p=m.scrollTop,v=m.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||Ir(t)}(t)&&"style"!==n){l=Nu(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:R({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:zs.Element,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=pu(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:zs.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:zs.CDATA,textContent:""}}var n}(t,e);if(!n)return null;var r=_u(t)||Du++,i=n;return i.id=r,function(t,e){vu.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function Nu(t,e){var n=[];return Ar(t,(function(t){var r=ku(t,e);r&&n.push(r)})),n}function Lu(t,e,n,r){if(e===qs.HIDDEN)return null;var i=t.getAttribute(n);if(e===qs.MASK&&n!==Zs&&!zo.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return iu}if("IMG"===o||"SOURCE"===o){if("src"===n||"srcset"===n)return ou;if("onerror"===n)return null}if("A"===o&&"href"===n)return iu;if(i&&$t(n,"data-"))return iu;if("IFRAME"===o&&"srcdoc"===n)return iu}return i&&"string"==typeof i&&po(i)?vo(i):i}var Du=1;var Mu=/[^a-z1-6-_]/;function Uu(t){var e=(t+"").toLowerCase().trim();return Mu.test(e)?"div":e}function Pu(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Iu(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(Au),!(n>=e.length);){var o=r(Ou);if(","===o.slice(-1))o=Iu(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=Iu(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?Eu(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?Iu(t,r):r:Iu(t,r):r;var i}function Vu(t){return Boolean(t.changedTouches)}function Bu(t,e){return{data:R({source:t},e),type:Fs.IncrementalSnapshot,timestamp:wt()}}function Hu(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}}var Fu=100,zu=16;function Wu(t,e,n,r){var i=ji();if(!i)return{stop:ut,flush:ut};var o=function(t){var e=ut,n=[];function r(){e(),t(n),n=[]}var i=Q(r,zu,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(t){0===n.length&&(e=Cn(o,{timeout:Fu})),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){Gu(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!hu(e)&&!Or(e))return!1;e=Rr(e)}return!0}(t.target)&&su(t.target,n.defaultPrivacyLevel,i)!==qs.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 _=su(h.parentNode,e.defaultPrivacyLevel,r);if(_!==qs.HIDDEN&&_!==qs.IGNORE){var g=ku(h,{serializedNodeIds:f,parentNodePrivacyLevel:_,serializationContext:{status:Ru.MUTATION,shadowRootsController:n},configuration:e});if(g){var m=Rr(h);d.push({nextId:E(h),parentId:_u(m),node:g})}}}}var y=[];return o.forEach((function(t,e){hu(e)&&y.push({parentId:_u(t),id:_u(e)})})),{adds:d,removes:y,serializedNodeIds:f,hasBeenSerialized:b};function b(t){return hu(t)&&f.has(_u(t))}function E(t){for(var e=t.nextSibling;e;){if(hu(e))return _u(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 hu(t)&&c.has(_u(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=su(Rr(u.target),e.defaultPrivacyLevel,n);c!==qs.HIDDEN&&c!==qs.IGNORE&&r.push({id:_u(u.target),value:Gt(pu(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=su(c.target,e.defaultPrivacyLevel,n),d=Lu(c.target,f,c.attributeName,e);if("value"===c.attributeName){var p=gu(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:_u(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(c(o.addMutations));return a.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){a.disconnect(),o.stop()},flush:function(){o.flush()}}}function Gu(t,e){Ir(t)&&e(t.shadowRoot),Ar(t,(function(t){return Gu(t,e)}))}var $u,Ku=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},ju=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}},qu=50,Zu=100,Yu=200,Qu=new WeakMap,Xu=1;function Ju(t){return Qu.has(t)||Qu.set(t,Xu++),Qu.get(t)}function tc(t){var e,n,r,i,o,a,s,u,c,l=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,Wu(e,n,r,document)),f=function(t){var e=Q((function(e){var n=ic(e);if(hu(n)){var r=nc(e);if(!r)return;var i={id:_u(n),timeOffset:0,x:r.x,y:r.y};t([i],Vu(e)?Ws.TouchMove:Ws.MouseMove)}}),qu,{trailing:!1}),n=e.cancel,r=e.throttled,i=an(document,[oe.MOUSE_MOVE,oe.TOUCH_MOVE],r,{capture:!0,passive:!0}).stop;return function(){i(),n()}}(t.mousemoveCb),d=function(t,e){var n=function(n){var r=ic(n);if(su(r,e)!==qs.HIDDEN&&hu(r)){var i,o=_u(r),a=ec[n.type];if(a!==Gs.Blur&&a!==Gs.Focus){var s=nc(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=R({id:Ju(n)},Bu(Ws.MouseInteraction,i));t(u)}};return an(document,Object.keys(ec),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration.defaultPrivacyLevel),p=function(t,e,n){var r=Q((function(r){var i=ic(r);if(i&&su(i,e)!==qs.HIDDEN&&hu(i)){var o=_u(i),a=i===document?{scrollTop:Nr(),scrollLeft:kr()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),Zu),i=r.cancel,o=r.throttled,a=on(document,oe.SCROLL,o,{capture:!0,passive:!0}).stop;return function(){a(),i()}}(t.scrollCb,t.configuration.defaultPrivacyLevel,t.elementsScrollPositions),v=function(t){return Ua().subscribe(t).unsubscribe}(t.viewportResizeCb),h=rc(t.inputCb,t.configuration.defaultPrivacyLevel),_=(i=t.mediaInteractionCb,o=t.configuration.defaultPrivacyLevel,a=function(t){var e=ic(t);e&&su(e,o)!==qs.HIDDEN&&hu(e)&&i({id:_u(e),type:t.type===oe.PLAY?$s.Play:$s.Pause})},an(document,[oe.PLAY,oe.PAUSE],a,{capture:!0,passive:!0}).stop),g=function(t){function e(t,e){t&&hu(t.ownerNode)&&e(_u(t.ownerNode))}var n=[Qe(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}]})}))})),Qe(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(Qe(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=Hu(r);n&&(n.push(a||0),t({id:e,adds:[{rule:o,index:n}]}))}))})),Qe(r.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=Hu(r);n&&(n.push(i),t({id:e,removes:[{index:n}]}))}))})))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb),m=(s=t.focusCb,an(window,[oe.FOCUS,oe.BLUR],(function(){s({has_focus:document.hasFocus()})})).stop),y=function(t){if(!window.visualViewport)return ut;var e=Q((function(){t(ju())}),Yu,{trailing:!1}),n=an(window.visualViewport,[oe.RESIZE,oe.SCROLL],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb),b=(u=t.lifeCycle,c=t.frustrationCb,u.subscribe(pn.RAW_RUM_EVENT_COLLECTED,(function(t){t.rawRumEvent.type===ce.ACTION&&t.rawRumEvent.action.type===se.CLICK&&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&&c({timestamp:t.rawRumEvent.date,type:Fs.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return Ju(t)}))}})})).unsubscribe);return{flush:function(){l.flush()},stop:function(){l.stop(),f(),d(),p(),v(),h(),_(),g(),m(),y(),b()}}}var ec=(js($u={},oe.POINTER_UP,Gs.MouseUp),js($u,oe.MOUSE_DOWN,Gs.MouseDown),js($u,oe.CLICK,Gs.Click),js($u,oe.CONTEXT_MENU,Gs.ContextMenu),js($u,oe.DBL_CLICK,Gs.DblClick),js($u,oe.FOCUS,Gs.Focus),js($u,oe.BLUR,Gs.Blur),js($u,oe.TOUCH_START,Gs.TouchStart),js($u,oe.TOUCH_END,Gs.TouchEnd),$u);function nc(t){var e=Vu(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=Ku(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function rc(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=an(n,o?[oe.CHANGE]:[oe.INPUT,oe.CHANGE],(function(t){var e=ic(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=ut;else{var u=[Xe(HTMLInputElement.prototype,"value",c),Xe(HTMLInputElement.prototype,"checked",c),Xe(HTMLSelectElement.prototype,"value",c),Xe(HTMLTextAreaElement.prototype,"value",c),Xe(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function c(t){var n=su(t,e);if(n!==qs.HIDDEN){var r,i=t.type;if("radio"===i||"checkbox"===i){if(lu(t,n))return;r={isChecked:t.checked}}else{var o=gu(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="'+W(u)+'"]'),s=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(e,n){if(hu(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(R({id:_u(e)},n)))}}}function ic(t){return!0===t.composed&&Ir(t.target)?t.composedPath()[0]:t.target}var oc=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){if(!i.has(e)){var a=Wu(n,t,o,e),s=a.flush,u=a.stop,c=rc(r,t.defaultPrivacyLevel,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};function ac(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(Bu(Ws.Mutation,t))},o=function(t){e(Bu(Ws.Input,t))},a=oc(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=wt()),void 0===i&&(i={status:Ru.INITIAL_FULL_SNAPSHOT,elementsScrollPositions:r,shadowRootsController:a});var o=Pa(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:Fs.Meta,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:Fs.Focus,timestamp:n}),e({data:{node:xu(document,t.configuration,i),initialOffset:{left:kr(),top:Nr()}},type:Fs.FullSnapshot,timestamp:n}),window.visualViewport&&e({data:ju(),type:Fs.VisualViewport,timestamp:n})};s();var u=tc({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(Bu(Ws.MediaInteraction,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(Bu(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(Bu(Ws.Scroll,t))},styleSheetCb:function(t){e(Bu(Ws.StyleSheetRule,t))},viewportResizeCb:function(t){e(Bu(Ws.ViewportResize,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:Fs.Focus,timestamp:wt()})},visualViewportResizeCb:function(t){e({data:t,type:Fs.VisualViewport,timestamp:wt()})},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:Ru.SUBSEQUENT_FULL_SNAPSHOT,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function sc(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),uc(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function uc(t,e,n){void 0===n&&(n=""),A(K(t),(function(t){var r=t[1],i=t[0];"object"===Us(r)&&null!==r?uc(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var cc,lc=10;function fc(t){return dc(t).segments_count}function dc(t){var e;return cc||(cc=new Map),cc.has(t)?e=cc.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},cc.set(t,e),cc.size>lc&&function(){if(!cc)return;if(cc.keys)cc.delete(cc.keys().next().value);else{var t=!0;cc.forEach((function(e,n){t&&(cc.delete(n),t=!1)}))}}()),e}function pc(t){var e=t.context,n=t.creationReason,r=t.encoder,i=0,o=e.view.id,a=R({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:fc(o),source:"browser"},e);return function(t){dc(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===Fs.FullSnapshot),function(t){dc(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){dc(t).segments_total_raw_size+=e}(a.view.id,e.rawBytesCount),t(a,e)}))}}}var vc=30*lt,hc=6e4;function _c(t,e,n,r,i,o){return function(t,e,n,r){var i={status:gc.WaitingForInitialRecord,nextSegmentCreationReason:"init"},o=t.subscribe(pn.VIEW_CREATED,(function(){c("view_change")})),a=o.unsubscribe,s=t.subscribe(pn.PAGE_EXITED,(function(t){c(t.reason)})),u=s.unsubscribe;function c(t){i.status===gc.SegmentPending&&(i.segment.flush((function(e,r){var i=sc(r.output,e,r.rawBytesCount);Tr(t)?n.sendOnExit(i):n.send(i)})),_(i.expirationTimeoutId)),i="stop"!==t?{status:gc.WaitingForInitialRecord,nextSegmentCreationReason:t}:{status:gc.Stopped}}return{addRecord:function(t){if(i.status!==gc.Stopped){if(i.status===gc.WaitingForInitialRecord){var n=e();if(!n)return;i={status:gc.SegmentPending,segment:pc({encoder:r,context:n,creationReason:i.nextSegmentCreationReason}),expirationTimeoutId:h((function(){c("segment_duration_limit")}),vc)}}i.segment.addRecord(t,(function(t){t>hc&&c("segment_bytes_limit")}))}},stop:function(){c("stop"),a(),u()}}}(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)}var gc={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var mc=0,yc=1,bc=2,Ec=3;var wc,Sc,Tc,Cc,Ic=function(t,e){if(Ci()||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:ut,stop:ut,getReplayStats:function(){},onRumStart:ut,isRecording:function(){return!1}};var n={status:mc},r=function(){n={status:yc}},i=function(){n={status:mc}};return{start:function(t){r(t)},stop:function(){i()},onRumStart:function(o,a,s,u,c){var l;o.subscribe(pn.SESSION_EXPIRED,(function(){n.status!==bc&&n.status!==Ec||(i(),n={status:yc})})),o.subscribe(pn.PAGE_EXITED,(function(t){t.reason===Sr.UNLOADING&&i()})),o.subscribe(pn.SESSION_RENEWED,(function(){n.status===yc&&r()})),r=function(r){var f=s.findTrackedSession();f&&f.sessionReplayAllowed?n.status!==bc&&n.status!==Ec&&(n={status:bc},xr("interactive",(function(){if(n.status===bc){var r=(l||(c||(c=Ia(a,"Session Replay",(function(){i()}),e)),c&&(l=Ea(c,ba.REPLAY))),l);if(r){var f=t(o,a,s,u,r);n={status:Ec,stopRecording:f.stop}}else n={status:mc}}}))):n={status:yc}},i=function(){n.status!==mc&&(n.status===Ec&&n.stopRecording(),n={status:mc})},n.status===yc&&r()},isRecording:function(){return Oa()===Ta.Initialized&&n.status===Ec},getReplayStats:function(t){return Oa()===Ta.Initialized?function(t){return cc&&cc.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a=[],s=o||fi(e.sessionReplayEndPoint,hc,(function(e){t.notify(pn.RAW_ERROR_COLLECTED,{error:e}),ai("Error reported to customer",{"error.message":e.message})})),u=_c(t,e,n,r,s,i),c=u.addRecord;a.push(u.stop);var l=ac({emit:c,configuration:e,lifeCycle:t});a.push(l.stop);var f=l.takeSubsequentFullSnapshot,d=l.flushMutations,p=t.subscribe(pn.VIEW_ENDED,(function(){d(),c({timestamp:wt(),type:Fs.ViewEnd})}));a.push(p.unsubscribe);var v=t.subscribe(pn.VIEW_CREATED,(function(t){f(t.startClocks.timeStamp)}));return a.push(v.unsubscribe),{stop:function(){a.forEach((function(t){t()}))}}})),Oc=function(t,e,n){void 0===n&&(n={});var r=ki(Ri),i=ki(Ai);function a(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(r,i,e)}var s,f,d=Hs(n,a,(function(o,s,u){o.storeContextsToLocal&&(Di(o,r,"rum",Ri),Di(o,i,"rum",Ai));var c=t(o,e,a,u,s&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(s,t)}:Mi);return e.onRumStart(c.lifeCycle,o,c.session,c.viewContexts,s),d=function(t,e){return R({init:function(t){Vi("DATAFLUX_RUM",t)},initConfiguration:t.getInitConfiguration()},e)}(d,c),c})),p=c((function(t){var e="object"===Us(t)?t:{name:t};d.startView(e),ui({feature:"start-view"})})),v=(s={init:c((function(t){d.init(t)})),addRumGlobalContext:c((function(t,e){r.add(t,e),ui({feature:"set-global-context"})})),setGlobalContextProperty:c((function(t,e){r.setContextProperty(t,e),ui({feature:"set-global-context"})})),removeRumGlobalContext:c((function(t){return r.remove(t)})),removeGlobalContextProperty:c((function(t){return r.removeContextProperty(t)})),getRumGlobalContext:c((function(){return r.get()})),getGlobalContext:c((function(){return r.getContext()})),setRumGlobalContext:c((function(t){r.set(t),ui({feature:"set-global-context"})})),setGlobalContext:c((function(t){r.setContext(t),ui({feature:"set-global-context"})})),clearGlobalContext:c((function(){return r.clearContext()})),getInitConfiguration:c((function(){return at(d.initConfiguration)})),getInternalContext:c((function(t){return d.getInternalContext(t)})),addDebugSession:c((function(t){})),clearDebugSession:c((function(){})),getDebugSession:c((function(){})),addAction:c((function(t,e){var n=je();l((function(){d.addAction({name:Fe(t),context:Fe(e),startClocks:Et(),type:se.CUSTOM,handlingStack:n}),ui({feature:"add-action"})}))})),addError:c((function(t,e){var n=je();l((function(){d.addError({error:t,handlingStack:n,context:Fe(e),startClocks:Et()}),ui({feature:"add-error"})}))})),addTiming:c((function(t,e){d.addTiming(Fe(t),e)})),setUser:c((function(t){(function(t){var e="object"===it(t);return e||o.error("Unsupported user:",t),e})(t)&&i.setContext(Ui(t)),ui({feature:"set-user"})})),getUser:c((function(){return i.getContext()})),setUserProperty:c((function(t,e){var n={};n[t]=e;var r=Ui(n)[t];i.setContextProperty(t,r),ui({feature:"set-user"})})),removeUserProperty:c((function(t){return i.removeContextProperty(t)})),removeUser:c((function(){return i.clearContext()})),clearUser:c((function(){return i.clearContext()})),startView:p,stopSession:c((function(){d.stopSession(),ui({feature:"stop-session"})})),startSessionReplayRecording:c((function(t){e.start(t),ui({feature:"start-session-replay-recording",force:t&&t.force})})),stopSessionReplayRecording:c(e.stop)},f=R({onReady:function(t){t()}},s),Object.defineProperty(f,"_setDebug",{get:function(){return u},enumerable:!1}),f);return v}((function(t,e,n,r,i){var o=[],a=new vn,s=function(t){var e=oi(ni.RUM,t);return e}(t),u=function(t){a.notify(pn.RAW_ERROR_COLLECTED,{error:t})},l=new tn((function(t){var e=an(window,[oe.VISIBILITY_CHANGE,oe.FREEZE],(function(e){e.type===oe.VISIBILITY_CHANGE&&"hidden"===document.visibilityState?t.notify({reason:Sr.HIDDEN}):e.type===oe.FREEZE&&t.notify({reason:Sr.FROZEN})}),{capture:!0}),n=on(window,oe.BEFORE_UNLOAD,(function(){t.notify({reason:Sr.UNLOADING})}));return function(){e.stop(),n.stop()}}));l.subscribe((function(t){a.notify(pn.PAGE_EXITED,t)})),o.push((function(){pageExitSubscription.unsubscribe()}));var f=Ci()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:Hi.WITHOUT_SESSION_REPLAY,sessionReplayAllowed:!1};return{findTrackedSession:function(){return t},expire:ut,expireObservable:new tn}}():zi(t,a);if(Ci())!function(t){var e=Ti();t.subscribe(pn.RUM_EVENT_COLLECTED,(function(t){var n=bi(t).rowData;e.send("rum",n)}))}(a);else{var d=Ra(t,a,s.observable,u,l,f.expireObservable,i);o.push((function(){d.stop()}))}var p,v=Ki(t),h=(p=ji(),new tn((function(t){if(p){var e=new p(c((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),_=qi(location),g=_a(),m=function(t,e,n,r,i,o,a,s,u,c){var l=function(t){var e=te({expireDelay:Ba});return t.subscribe(pn.BEFORE_VIEW_CREATED,(function(t){e.add(function(t){return{service:t.service,version:t.version,id:t.id,name:t.name}}(t),t.startClocks.relative)})),t.subscribe(pn.AFTER_VIEW_ENDED,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(pn.VIEW_UPDATED,(function(t){var n=e.find(t.startClocks.relative);n&&t.name&&(n.name=t.name)})),t.subscribe(pn.SESSION_RENEWED,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),f=function(t,e,n){var r,i=te({expireDelay:Va});t.subscribe(pn.BEFORE_VIEW_CREATED,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e})),t.subscribe(pn.AFTER_VIEW_ENDED,(function(t){i.closeActive(t.endClocks.relative)}));var o=e.subscribe((function(t){var e=i.find();if(e){var n=bt();i.closeActive(n),i.add(a({url:t.newLocation.href,location:t.newLocation,referrer:e.referrer}),n)}}));function a(t){var e=t.location.pathname,n=t.location.hash;return n&&!jt(n)&&(e="/"+qt(n)),{url:t.url,referrer:t.referrer,host:t.location.host,path:e,pathGroup:tt(e),urlQuery:nt(t.location.href)}}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(pn.AUTO_ACTION_COMPLETED,(function(e){t.notify(pn.RAW_RUM_EVENT_COLLECTED,ma(e,r))}));var i={findActionId:ut,findAllActionId:ut};return n.trackUserInteractions&&(i=ca(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(pn.RAW_RUM_EVENT_COLLECTED,k({savedCommonContext:n},ma(e,r)))}}}(t,s,e,o),p=d.actionContexts,v=d.addAction,h=(_=Pa(),{get:function(){return{viewport:_}},stop:Ua().subscribe((function(t){_=t})).unsubscribe});var _;return Ma(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()}}}(a,t,location,f,v,g,_,h,n,u),y=m.viewContexts,b=m.urlContexts,E=m.actionContexts,w=m.stop,S=m.addAction;o.push(w),ri.drain(),s.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:f.findTrackedSession()&&f.findTrackedSession().id},view:{id:y.findView()&&y.findView().id},action:{id:E.findActionId(),ids:E.findAllActionId()}}}));var T=ps(a,t,location,h,_,g,e,r),C=T.addTiming,I=T.startView,O=T.stop;o.push(O);var A=Ls(a,t,g);if(o.push(A.stop),t.enableLongAnimationFrame){var R=function(t,e){var n=mo(e,{type:go.LONG_ANIMATION_FRAME,buffered:!0}).subscribe((function(e){for(var n=0,r=e;n<r.length;n++){var i=r[n],o=It(i.startTime),a={date:o.timeStamp,longTask:{id:J(),entryType:le.LONG_ANIMATION_FRAME,duration:gt(i.duration),blockingDuration:gt(i.blockingDuration),firstUiEventTimestamp:gt(i.firstUIEventTimestamp),renderStart:gt(i.renderStart),styleAndLayoutStart:gt(i.styleAndLayoutStart),startTime:gt(i.startTime),scripts:i.scripts.map((function(t){return{duration:gt(t.duration),pause_duration:gt(t.pauseDuration),forced_style_and_layout_duration:gt(t.forcedStyleAndLayoutDuration),start_time:gt(t.startTime),execution_start:gt(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:ce.LONG_TASK};t.notify(pn.RAW_RUM_EVENT_COLLECTED,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i}})}}));return{stop:function(){n.unsubscribe()}}}(a,t);o.push(R.stop)}else!function(t,e){var n=mo(e,{type:go.LONG_TASK,buffered:!0}).subscribe((function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.entryType!==go.LONG_TASK)break;var i=It(r.startTime),o={date:i.timeStamp,longTask:{id:J(),entryType:le.LONG_TASK,duration:gt(r.duration)},type:ce.LONG_TASK};t.notify(pn.RAW_RUM_EVENT_COLLECTED,{rawRumEvent:o,startTime:i.relative,domainContext:{performanceEntry:r}})}}))}(a,t);var x=Ha(a,0,g).addError;Os(a,t,f);var N=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,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,urlQuery:s.urlQuery}}}}}}(t.applicationId,f,y,E,b);return{addAction:S,addError:x,addTiming:C,configuration:t,lifeCycle:a,viewContexts:y,session:f,startView:I,stopSession:function(){f.expire()},getInternalContext:N.get,stop:function(){o.forEach((function(t){t()}))}}}),Ic,{startDeflateWorker:Ia,createDeflateEncoder:Ea});wc=v(),Tc=Oc,Cc=wc[Sc="DATAFLUX_RUM"],wc[Sc]=Tc,Cc&&Cc.q&&A(Cc.q,(function(t){d(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]}));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)};function a(t,e){var n,r=window;return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}var s=!1;function u(t){s=t}function c(t){return function(){return l(t,this,arguments)}}function l(t,e,n){try{return t.apply(e,n)}catch(t){if(f(t),r)try{r(t)}catch(t){f(t)}}}function f(){var t=[].slice.call(arguments);s&&o.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){o.error(e,t)}}}function p(t){return p="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},p(t)}function v(){if("object"===("undefined"==typeof globalThis?"undefined":p(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"!==p(t)&&(t="object"===("undefined"==typeof self?"undefined":p(self))?self:"object"===("undefined"==typeof window?"undefined":p(window))?window:{}),t}function h(t,e){return a(v(),"setTimeout")(c(t),e)}function _(t){a(v(),"clearTimeout")(t)}function g(t,e){return a(v(),"setInterval")(c(t),e)}function m(t){a(v(),"clearInterval")(t)}function y(t){return y="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},y(t)}var b=Array.prototype,E=(Function.prototype,Object.prototype),w=b.slice,S=E.toString,T=E.hasOwnProperty,I=b.forEach,C=Array.isArray,O=!1,A=function(t,e,n){if(null===t)return!1;if(I&&t.forEach===I)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)===O)return!1}else for(var o in t)if(T.call(t,o)&&e.call(n,t[o],o,t)===O)return!1};function R(t){return A(w.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function x(t){return R({},t)}var k=function(t){return A(w.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},N=function(t){return A(w.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(G(e[n])&&G(t[n])?k(t[n],e[n]):t[n]=e[n])})),t},L=C||function(t){return"[object Array]"===S.call(t)},D=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},M=function(t){return t?t.toArray?t.toArray():L(t)?w.call(t):(e=t)&&T.call(e,"callee")?w.call(t):U(t):[];var e},U=function(t){var e=[];return null===t||A(t,(function(t){e[e.length]=t})),e},P=function(t){var e=[];return null===t||A(t,(function(t,n){e[e.length]=n})),e},V=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(T.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(T.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(T.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},H=function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(T.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r},F=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?$t(e,t):t===e}catch(t){o.error(t)}return!1}))},W=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}))},G=function(t){return null!==t&&"[object Object]"===S.call(t)},$=function(t){if(G(t)){for(var e in t)if(T.call(t,e))return!1;return!0}return!1},K=function(t){var e=[];return A(t,(function(t,n){e.push([n,t])})),e},j=function(t){return"[object String]"===S.call(t)},q=function(t){return"[object Boolean]"===S.call(t)},Z=function(t){return"[object Number]"===S.call(t)&&/[\d\.]+/.test(String(t))},Y=function t(e){var n=e;try{n=t(e)}catch(t){n=e}return n},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(){_(i),s=!1,r=void 0}}}),X=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 J(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,J)}function tt(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var et=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"!==y(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 nt=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=rt("?"+n)),e},rt=function(t){for(var e=function(t){return Y(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 it(t){return null===t?"null":Array.isArray(t)?"array":y(t)}function ot(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"!==y(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]=ot(i[o],e[o],n);return i}i="object"===it(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=ot(i[a],e[a],n));return i}}function at(t){return ot(void 0,t)}function st(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):t}function ut(){}var ct,lt=1e3,ft=60*lt,dt=60*ft,pt=365*(24*dt);function vt(t){return 0!==t&&100*Math.random()<=t}function ht(t,e){return+t.toFixed(e)}function _t(t){return"number"!=typeof t?t:ht(1e6*t,0)}function gt(t){return Z(t)?ht(1e6*t,0):t}function mt(t){return t-Rt()}function yt(t){return Math.round(Rt()+t)}function bt(){return performance.now()}function Et(){return{relative:bt(),timeStamp:wt()}}function wt(){return St()}function St(){return(new Date).getTime()}function Tt(t,e){return e-t}function It(){return{relative:0,timeStamp:Rt()}}function Ct(t){return{relative:t,timeStamp:At(t)}}function Ot(t,e){return t+e}function At(t){var e=St()-performance.now();return e>Rt()?Math.round(e+t):yt(t)}function Rt(){return void 0===ct&&(ct=performance.timing.navigationStart),ct}var xt=/([\w-]+)\s*=\s*([^;]+)/g;function kt(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&G(t)&&r in t&&T.call(t,r)))return;t=t[r]}return t}function Nt(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function Lt(t){var e=it(t);return"string"===e||"function"===e||t instanceof RegExp}function Dt(t,e){return-1!==t.indexOf(e)}function Mt(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function Ut(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 Z(t)&&t>=0&&t<=100}var Vt,Bt={IE:0,CHROMIUM:1,SAFARI:2,OTHER:3};function zt(){return Gt(Vt,Vt=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return Bt.CHROMIUM;if(0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return Bt.SAFARI;if(t.document.documentMode)return Bt.IE;return Bt.OTHER}())}function Ht(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Ft(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,"_"))]=Wt(t)})),e}function Wt(t){return L(t)?B(t,(function(t){return Wt(t)})):"object"===y(t)&&null!==t?Ft(t):t}function Gt(t,e){return null!=t?t:e}function $t(t,e){return t.slice(0,e.length)===e}function Kt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function jt(t){var e=t.substr(1);return!!e&&!!document.getElementById(e)}function qt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Zt(t){return Z(t)&&t<0?void 0:t}var Yt=500;function Qt(){var t=[],e=function(e){t.push(e)>Yt&&t.splice(0,1)};return{add:e,remove:e,drain:function(e){t.forEach((function(t){t(e)})),t.length=0}}}var Xt=1/0,Jt=ft;function te(t){var e=t.expireDelay,n=t.maxEntries,r=[],i=g((function(){return function(){var t=bt()-e;for(;r.length>0&&r[r.length-1].endTime<t;)r.pop()}()}),Jt);return{add:function(t,e){var i={value:t,startTime:e,endTime:Xt,remove:function(){Kt(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=Xt),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===Xt&&e.close(t)},findAll:function(t,e){void 0===t&&(t=Xt),void 0===e&&(e=0);var n=Ot(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(){m(i)}}}var ee={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"]}},ne={getMatchMap:c((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:c((function(t){var e=ee.navigator.userAgent||"",n=ne.getMatchMap(e);for(var r in ee.infoMap)for(var i=0;i<ee.infoMap[r].length;i++){var o=ee.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:c((function(){return ne.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:c((function(){var t=this,e=ee.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}})),getOrientationStatu:c((function(){return window.matchMedia("(orientation: portrait)").matches?"竖屏":"横屏"})),getDeviceType:c((function(){var t=this;return t.device="PC",ne.matchInfoMap(t),t.device})),getNetwork:c((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:c((function(){var t;return this.language=((t=(ee.navigator.browserLanguage||ee.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getBrowserInfo:c((function(){var t=this;ne.matchInfoMap(t);var e=ee.navigator.userAgent||"",n=function(t,e){var n=ee.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=ne.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")||ee.navigator&&ee.navigator.connection&&void 0===ee.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:c((function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){o.warn(t)}))}))},re={};"undefined"!=typeof window&&(re={os:ne.getOS(),osVersion:ne.getOSVersion().version,osVersionMajor:ne.getOSVersion().osMajor,browser:ne.getBrowserInfo().browser,browserVersion:ne.getBrowserInfo().browserVersion,browserVersionMajor:ne.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:ne.getNetwork(),device:ne.getDeviceType()});var ie=re,oe={BEFORE_UNLOAD:"beforeunload",CLICK:"click",DBL_CLICK:"dblclick",KEY_DOWN:"keydown",LOAD:"load",POP_STATE:"popstate",SCROLL:"scroll",TOUCH_START:"touchstart",TOUCH_END:"touchend",TOUCH_MOVE:"touchmove",VISIBILITY_CHANGE:"visibilitychange",PAGE_SHOW:"pageshow",FREEZE:"freeze",RESUME:"resume",DOM_CONTENT_LOADED:"DOMContentLoaded",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_CANCEL:"pointercancel",HASH_CHANGE:"hashchange",PAGE_HIDE:"pagehide",MOUSE_DOWN:"mousedown",MOUSE_UP:"mouseup",MOUSE_MOVE:"mousemove",FOCUS:"focus",BLUR:"blur",CONTEXT_MENU:"contextmenu",RESIZE:"resize",CHANGE:"change",INPUT:"input",PLAY:"play",PAUSE:"pause",SECURITY_POLICY_VIOLATION:"securitypolicyviolation",SELECTION_CHANGE:"selectionchange",STORAGE:"storage"},ae={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},se={CLICK:"click",CUSTOM:"custom"},ue={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},ce={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},le={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},fe={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change"},de={FETCH:ae.FETCH,XHR:ae.XHR},pe={DDTRACE:"ddtrace",ZIPKIN_MULTI_HEADER:"zipkin",ZIPKIN_SINGLE_HEADER:"zipkin_single_header",W3C_TRACEPARENT:"w3c_traceparent",W3C_TRACEPARENT_64:"w3c_traceparent_64bit",SKYWALKING_V3:"skywalking_v3",JAEGER:"jaeger"},ve={HANDLED:"handled",UNHANDLED:"unhandled"},he={UNCAUGHT:"Uncaught",PROVIDED:"Provided"};function _e(t){return _e="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},_e(t)}function ge(t,e,n){if("object"!==_e(t)||null===t)return JSON.stringify(t);var r=me(Object.prototype),i=me(Array.prototype),o=me(Object.getPrototypeOf(t)),a=me(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function me(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):ut}function ye(t){return ye="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},ye(t)}var be="?";function Ee(t){var e=[],n=xe(t,"stack");return n&&A(n.split("\n"),(function(t){var n=function(t){var e=Te.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=Ie.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]||be,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Ce.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:be,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=Oe.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||be,line:+e[3],url:e[2]}}(t)||function(t){var e=Ae.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=Re.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]||be,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=be),e.push(n))})),{message:xe(t,"message"),name:xe(t,"name"),stack:e}}var we="((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",Se="(?::(\\d+))",Te=new RegExp("^\\s*at (.*?) ?\\("+we+Se+"?"+Se+"?\\)?\\s*$","i"),Ie=new RegExp("\\((\\S*)"+Se+Se+"\\)");var Ce=new RegExp("^\\s*at ?"+we+Se+"?"+Se+"??\\s*$","i");var Oe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Ae=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Re=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function xe(t,e){if("object"===ye(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var ke=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Ne(t){var e=function(t){return Qe(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=Ee(u);else{var c={url:o,column:s,line:a},l=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=ke.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,Gt(u,i))}))}(t),n=function(t){return Qe(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=Ee(n);t(r,n)}))}(t);return{stop:function(){e.stop(),n.stop()}}}var Le=1024,De=1024*Le,Me=/[^\u0000-\u007F]/;function Ue(t){return Me.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Pe(t){return Pe="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},Pe(t)}var Ve=220*Le,Be="$",ze=3;function He(t,e){void 0===e&&(e=Ve);var n=me(Object.prototype),r=me(Array.prototype),i=[],o=new WeakMap,a=Fe(t,Be,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=Fe(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){We(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=Fe(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+ze,c=1),s>e){We(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}We(e,"discarded",t)}function Fe(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"!==Pe(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Pe(t))return"[Symbol] "+t.description||0;return t}(o);var a=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}return"[Unserializable]"}(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 We(t,e,n){o.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",n)}var Ge="No stack, consider using an instance of Error",$e={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function Ke(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=function(t,e,n,r){return t&&t.message&&t&&t.name?t.message:e?"Empty message":n+" "+ge(He(r))}(e,u,o,n),l=function(t,e){if(void 0===e)return!1;if(t)return!0;return e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url)}(u,e)?qe(e):Ge,f=u?Ye(n,a):void 0;return{startClocks:i,source:a,handling:s,originalError:n,message:c,stack:l,handlingStack:r,type:e&&e.name,causes:f}}function je(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return l((function(){var n=Ee(e);n.stack=n.stack.slice(2),t=qe(n)})),t}function qe(t){var e=Ze(t);return A(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 Ze(t){return(t.name||"Error")+": "+t.message}function Ye(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=Ee(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&qe(i)}),n=n.cause}return r.length?r:void 0}function Qe(t,e,n,r){var i=r&&r.computeHandlingStack,o=t[e];if("function"!=typeof o){if(!$t(e,"on"))return{stop:ut};o=ut}var a=!1,s=function(){if(a)return o.apply(this,arguments);var t,e=Ut(arguments);l(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:i?je():void 0}]);var r=o.apply(this,e);return t&&l(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=o)}}}function Xe(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:ut};var i=ut,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 Je=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};Je.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=V(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 tn=Je;function en(){var t=[].slice.call(arguments);return new tn((function(e){var n=B(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return A(n,(function(t){return t.unsubscribe()}))}}))}var nn={};function rn(e){var n=B(e,(function(e){return nn[e]||(nn[e]=function(e){return new tn((function(n){var r=console[e];return console[e]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=je();l((function(){n.notify(function(e,n,r){var i,o=B(e,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return Ze(Ee(t));return ge(t,void 0,2)}(t)})).join(" ");if(n===t.error){var a=Mt(e,(function(t){return t instanceof Error}));i={stack:a?qe(Ee(a)):void 0,causes:a?Ye(a,"console"):void 0,startClocks:Et(),message:o,source:$e.CONSOLE,handling:ve.HANDLED,handlingStack:r}}return{api:n,message:o,error:i,handlingStack:r}}(i,e,o))}))},function(){console[e]=r}}))}(e)),nn[e]}));return en.apply(this,n)}function on(t,e,n,r){return an(t,[e],n,r)}function an(t,e,n,r){var i=c(r&&r.once?function(t){s(),n(t)}:n);r=r&&r.passive?{capture:r.capture,passive:r.passive}:r&&r.capture;var o=a(t,"addEventListener");A(e,(function(e){o.call(t,e,i,r)}));var s=function(){var n=a(t,"removeEventListener");A(e,(function(e){n.call(t,e,i,r)}))};return{stop:s}}var sn={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function un(t,e){var n=[];Dt(e,sn.cspViolation)&&n.push(new tn((function(t){return on(document,oe.SECURITY_POLICY_VIOLATION,(function(e){t.notify(function(t){var e="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return cn({type:t.effectiveDirective,message:sn.cspViolation+": "+e,originalError:t,csp:{disposition:t.disposition},stack:ln(t.effectiveDirective,t.originalPolicy?"".concat(e,' of the policy "').concat(Nt(t.originalPolicy,100),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}(e))})).stop})));var r=V(e,(function(t){return t!==sn.cspViolation}));return r.length&&n.push(function(t){return new tn((function(e){if(window.ReportingObserver){var n=c((function(t){A(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return cn({type:e.id,message:n+": "+e.message,originalError:t,stack:ln(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)),en.apply(this,n)}function cn(t){return R({startClocks:Et(),source:ErrorSource.REPORT,handling:ErrorHandling.UNHANDLED},t)}function ln(t,e,n,r,i){return n&&qe({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var fn=function(){this._events=[],this.pendingEvents=[]};fn.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 fn;var dn,pn={AUTO_ACTION_COMPLETED:"AUTO_ACTION_COMPLETED",BEFORE_VIEW_CREATED:"BEFORE_VIEW_CREATED",VIEW_CREATED:"VIEW_CREATED",VIEW_UPDATED:"VIEW_UPDATED",VIEW_ENDED:"VIEW_ENDED",AFTER_VIEW_ENDED:"AFTER_VIEW_ENDED",SESSION_RENEWED:"SESSION_RENEWED",SESSION_EXPIRED:"SESSION_EXPIRED",PAGE_EXITED:"PAGE_EXITED",REQUEST_STARTED:"REQUEST_STARTED",REQUEST_COMPLETED:"REQUEST_COMPLETED",RAW_RUM_EVENT_COLLECTED:"RAW_RUM_EVENT_COLLECTED",RUM_EVENT_COLLECTED:"RUM_EVENT_COLLECTED",RAW_ERROR_COLLECTED:"RAW_ERROR_COLLECTED",RAW_LOG_COLLECTED:"RAW_LOG_COLLECTED",LOG_COLLECTED:"LOG_COLLECTED"};function vn(){this.callbacks={}}function hn(t,e,n){var r=at(t),i=n(r);return A(K(e),(function(e){var n=e[0],i=e[1],o=function(t,e){for(var n=t,r=0,i=e.split(".");r<i.length;r++){var o=i[r];if(!mn(n,o))return;n=n[o]}return n}(r,n),a=it(o);a===i?_n(t,n,He(o)):"object"!==i||"undefined"!==a&&"null"!==a||_n(t,n,{})})),i}function _n(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!gn(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function gn(t){return"object"===it(t)}function mn(t,e){return gn(t)&&Object.prototype.hasOwnProperty.call(t,e)}function yn(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&h((function(){r=0}),ft),(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:$e.AGENT,startClocks:Et()})}finally{i=!1}}return!0}}}function bn(t){return wn(t,Ht(window.location)).href}function En(t){return Ht(wn(t))}function wn(t,e){if(function(){if(void 0!==dn)return dn;try{var t=new URL("http://test/path");return dn="http://test/path"===t.href}catch(t){dn=!1}return dn}())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}vn.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]=V(n.callbacks[t],(function(t){return t!==e}))}}}};var Sn=navigator.userAgent.toLowerCase(),Tn=function(){return/iphone os/.test(Sn)};function In(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(c(t),e);return function(){return window.cancelIdleCallback(n)}}return function(t){var e=St(),n=h((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,Cn-(St()-e))}})}),0);return function(){return _(n)}}(t)}var Cn=50;var On=lt,An=30;var Rn,xn=/^\s+|\s+$/g,kn={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function Nn(t,e){var n=kn[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+Ln(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?Ln(r)+"v1/write"+n:Ln(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function Ln(t){return t.replace(xn,"")}function Dn(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 Mn(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=Dn(t,r)+"="+e+";"+o+";path=/;samesite="+a+s+u+c}function Un(t,e){return function(t,e){for(xt.lastIndex=0;;){var n=xt.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,Dn(t,e))}function Pn(t,e){Mn(t,"",0,e)}var Vn=4*dt,Bn=15*ft,zn="_gc_s";function Hn(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)return;if("string"==typeof t)return Fn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fn(t,e)}(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 Fn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Wn=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Gn="&",$n="1";function Kn(){return{isExpired:$n}}function jn(t){return $(t)}function qn(t){return void 0!==t.isExpired||!((void 0===(e=t).created||St()-Number(e.created)<Vn)&&(void 0===e.expire||St()<Number(e.expire)));var e}function Zn(t){return B(K(t),(function(t){return t[0]+"="+t[1]})).join(Gn)}function Yn(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(Gn)||Wn.test(t))}(t)&&t.split(Gn).forEach((function(t){var n=Wn.exec(t);if(null!==n){var r=Hn(n,3),i=r[1],o=r[2];e[i]=o}})),e}function Qn(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===Rn){for(var t="gc_site_test_".concat(J()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Un(t);)n="".concat(e.pop(),".").concat(n),Mn(t,"test",lt,{domain:n});Pn(t,{domain:n}),Rn=n}return Rn}());return e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="gc_cookie_test_".concat(J()),n="test";Mn(e,n,ft,t);var r=Un(e,t)===n;return Pn(e,t),r}catch(t){return!1}}(e)?{type:"Cookie",cookieOptions:e}:void 0}function Xn(t){var e;return{isLockEnabled:zt()===Bt.CHROMIUM,persistSession:(e=t,function(t){Mn(zn,Zn(t),Bn,e)}),retrieveSession:Jn(t),expireSession:function(){return function(t){Mn(zn,Zn(Kn()),Vn,t)}(t)}}}function Jn(t){return function(){return Yn(Un(zn,t))}}var tr="_gc_test_";function er(t){localStorage.setItem(zn,Zn(t))}function nr(){return Yn(localStorage.getItem(zn))}function rr(){er(Kn())}var ir,or=10,ar=100,sr=[];function ur(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(R({},t,{lock:u}))},s=function(){var t=e.retrieveSession(),n=t.lock;return t.lock&&delete t.lock,{session:t,lock:n}};if(ir||(ir=t),t===ir)if(r&&n>=ar)lr(e);else{var u,c=s();if(r){if(c.lock&&!jn(c.session))return void cr(t,e,n);if(u=J(),a(c.session),(c=s()).lock!==u&&!jn(c.session))return void cr(t,e,n)}var l=t.process(c.session);if(!r||(c=s()).lock===u||jn(c.session)){if(l&&(qn(l)?o():(l.expire=String(St()+Bn),r?a(l):i(l))),r&&(!l||!qn(l))){if((c=s()).lock!==u&&!jn(c.session))return void cr(t,e,n);i(c.session),l=c.session}t.after&&t.after(l||c.session),lr(e)}else cr(t,e,n)}else sr.push(t)}function cr(t,e,n){h((function(){ur(t,e,n+1)}),or)}function lr(t){ir=void 0;var e=sr.shift();e&&ur(e,t)}var fr=lt;function dr(t){var e=Qn(t);return!e&&t.allowFallbackToLocalStorage&&(e=function(){try{var t=J(),e="".concat(tr).concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),e}function pr(t,e,n){var r,i=new tn,o=new tn,a=new tn,s="Cookie"===t.type?Xn(t.cookieOptions):{isLockEnabled:!1,persistSession:er,retrieveSession:nr,expireSession:rr},u=s.expireSession,c=g((function(){ur({process:function(t){return qn(t)?Kn():void 0},after:p},s)}),fr);v();var l=Q((function(){ur({process:function(t){if(!jn(t)){var r=p(t);return function(t){if(jn(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=J(),t.created=String(St()))}(r),r}},after:function(t){jn(t)||h()||function(t){r=t,i.notify()}(t),r=t}},s)}),fr),f=l.throttled,d=l.cancel;function p(t){return qn(t)&&(t=Kn()),h()&&(!function(t){return r.id!==t.id||r[e]!==t[e]}(t)?(a.notify({previousState:r,newState:t}),r=t):(r=Kn(),o.notify())),t}function v(){ur({process:function(t){if(jn(t))return Kn()},after:function(t){r=t}},s)}function h(){return void 0!==r[e]}return{expandOrRenewSession:f,expandSession:function(){ur({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(Kn())},stop:function(){m(c)},updateSessionState:function(t){ur({process:function(e){return R({},e,t)},after:p},s)}}}var vr,hr,_r={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function gr(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=Gt(t.sessionSampleRate,t.sampleRate);return R({beforeSend:t.beforeSend&&d(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:dr(t),sessionSampleRate:Gt(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:Gt(t.telemetrySampleRate,100),telemetryEnabled:Gt(t.telemetryEnabled,!1),silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16*Le,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*lt,batchMessagesLimit:50,messageBytesLimit:256*Le,resourceUrlLimit:5*Le,storeContextsToLocal:!!t.storeContextsToLocal,storeContextsKey:t.storeContextsKey,sendContentTypeByJson:!!t.sendContentTypeByJson,retryMaxSize:Gt(t.retryMaxSize,-1)},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&D(t.isIntakeUrl)&&q(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&D(t.isServerError)&&q(t.isServerError())&&(n=t.isServerError),{rumEndpoint:Nn(t,"rum"),logsEndpoint:Nn(t,"log"),sessionReplayEndPoint:Nn(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 mr(){return vr||(vr=new tn((function(t){if(window.fetch){var e=Qe(window,"fetch",(function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,i=t.handlingStack,o=n[0],a=n[1],s=a&&a.method;void 0===s&&o instanceof Request&&(s=o.method);var u=void 0!==s?String(s).toUpperCase():"GET",l=o instanceof Request?o.url:bn(String(o)),f=Et(),d={state:"start",init:a,input:o,method:u,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",R(r,e),t.notify(r)};e.then(c((function(t){var e="";try{e=t.constructor===Response&&t.type||""}catch(t){e=""}i({response:t,responseType:e,status:t.status,isAborted:!1})})),c((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}}))),vr}var yr=new WeakMap;function br(){return hr||(hr=new tn((function(t){var e=Qe(XMLHttpRequest.prototype,"open",Er),n=Qe(XMLHttpRequest.prototype,"send",(function(e){!function(t,e){var n=t.target,r=t.handlingStack,i=yr.get(n);if(i){var o=i;o.state="start",o.startClocks=Et(),o.isAborted=!1,o.xhr=n,o.handlingStack=r;var a=!1,s=Qe(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=Tt(o.startClocks.timeStamp,wt()),t.status=n.status,e.notify(x(t))}},c=on(n,"loadend",u).stop;e.notify(o)}}(e,t)}),{computeHandlingStack:!0}),r=Qe(XMLHttpRequest.prototype,"abort",wr);return function(){e.stop(),n.stop(),r.stop()}}))),hr}function Er(t){var e=t.target,n=t.parameters[0],r=t.parameters[1];yr.set(e,{state:"open",method:String(n).toUpperCase(),url:bn(String(r))})}function wr(t){var e=t.target,n=yr.get(e);n&&(n.isAborted=!0)}var Sr={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Tr(t){return Dt(U(Sr),t)}function Ir(t){return t.nodeType===Node.ELEMENT_NODE}function Cr(t){return Ir(t)&&Boolean(t.shadowRoot)}function Or(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Ir(e.host)}function Ar(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;Cr(t)&&e(t.shadowRoot)}function Rr(t){return Or(t)?t.host:t.parentNode}function xr(t,e){if(document.readyState===t||"complete"===document.readyState)return e(),{stop:ut};var n="complete"===t?oe.LOAD:oe.DOM_CONTENT_LOADED;return on(window,n,e,{once:!0})}function kr(){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 Nr(){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 Lr={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_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",device:"device.device",view_id:"view.id",view_referrer:"view.referrer",view_url:"view.url",view_host:"view.host",view_path:"view.path",view_name:"view.path",view_path_group:"view.path_group"},Dr={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",drift:"_gc.drift"},Mr={view:{type:ce.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",view_privacy_replay_level:"privacy.replay_level"},fields:{sampled_for_replay:"session.sampled_for_replay",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:ce.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.span_id",resource_id:"resource.id",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_type:"resource.type",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",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:ce.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:ce.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:ce.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"]}},browser_log:{type:ce.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"]}}},Ur=ft,Pr=Vn,Vr=[];function Br(t,e,n){var r=new tn,i=new tn,o=pr(t.sessionStoreStrategyType,e,n);Vr.push((function(){return o.stop()}));var a,s,u=te({expireDelay:Pr});function c(){return{id:o.getSession().id,trackingType:o.getSession()[e]}}return Vr.push((function(){return u.stop()})),o.renewObservable.subscribe((function(){u.add(c(),bt()),r.notify()})),o.expireObservable.subscribe((function(){i.notify(),u.closeActive(bt())})),o.expandOrRenewSession(),u.add(c(),It().relative),a=function(){o.expandOrRenewSession()},s=an(window,[oe.CLICK,oe.TOUCH_START,oe.KEY_DOWN,oe.SCROLL],a,{capture:!0,passive:!0}).stop,Vr.push(s),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=on(document,oe.VISIBILITY_CHANGE,e).stop;Vr.push(n);var r=g(e,Ur);Vr.push((function(){m(r)}))}((function(){return o.expandSession()})),function(t){var e=on(window,oe.RESUME,t,{capture:!0}).stop;Vr.push(e)}((function(){o.restartSession()})),{findSession:function(t,e){return u.find(t,e)},renewObservable:r,expireObservable:i,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}var zr=80*Le,Hr=32,Fr=3*De,Wr=256*lt,Gr=lt,$r={UP:0,FAILURE_DETECTED:1,DOWN:2},Kr={AFTER_SUCCESS:0,AFTER_RESUME:1};function jr(t,e,n,r,i){e.transportStatus===$r.UP&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Zr(t,e,n,{onSuccess:function(){return Yr(Kr.AFTER_SUCCESS,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),qr(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function qr(t,e,n,r){t.transportStatus===$r.DOWN&&h((function(){Zr(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=Gr,Yr(Kr.AFTER_RESUME,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(Wr,2*t.currentBackoffTime),qr(t,e,n,r)}})}),t.currentBackoffTime)}function Zr(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=$r.UP,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?$r.FAILURE_DETECTED:$r.DOWN,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o())}))}function Yr(t,e,n,r,i){t===Kr.AFTER_SUCCESS&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: "+Fr/De+"MiB",source:$e.AGENT,startClocks:Et()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=Qr();o.size()>0;)jr(o.dequeue(),e,n,r,i)}function Qr(){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>=Fr}}}function Xr(){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 Jr={log:"log",configuration:"configuration",usage:"usage"},ti={debug:"debug",error:"error"},ei=["https://static.guance.com","http://localhost","<anonymous>"],ni={LOGS:"browser-logs-sdk",RUM:"browser-rum-sdk"},ri=Qt(),ii=function(t){ri.add((function(){ii(t)}))};function oi(t,e){var n,i=new tn,o=new Set,a=e.telemetryEnabled&&vt(e.telemetrySampleRate),s={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return ii=function(r){var u=ge(r);if(a&&o.size<e.maxTelemetryEventsPerPage&&!o.has(u)){var c=function(t,e,r){return N({type:"telemetry",date:wt(),service:t,version:"3.2.9",source:"browser",telemetry:N(e,{runtime_env:r,connectivity:Xr()})},void 0!==n?n():{})}(t,r,s);i.notify(c),o.add(u)}},r=si,{setContextProvider:function(t){n=t},observable:i,enabled:a}}function ai(t,e){f(t,e),ii(R({type:Jr.log,message:t,status:ti.debug},e))}function si(t,e){ii(R({type:Jr.log,status:ti.error},function(t){if(t instanceof Error){var e=Ee(t);return{error:{kind:e.name,stack:qe(ci(e))},message:e.message}}return{error:{stack:Ge},message:he.UNCAUGHT+" "+ge(t)}}(t),e))}function ui(t){ii({type:Jr.usage,usage:t})}function ci(t){return t.stack=t.stack.filter((function(t){return!t.url||ei.some((function(e){return $t(t.url,e)}))})),t}function li(t,e){return t?(t=t+(-1===t.indexOf("?")?"?":"&")+"precision=ms",e&&(t=t+"&encoding="+e),t):t}function fi(t,e,n,r){void 0===n&&(n=-1);var i=function(t){return{transportStatus:$r.UP,currentBackoffTime:Gr,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=zr&&this.ongoingRequestCount<Hr},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:Qr(),queueFullReported:!1,retryMaxSize:t}}(n),o=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=li(t,n.encoding),s=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&o<e;if(s){var u={method:"POST",body:i,keepalive:!0,mode:"cors"};n.type&&(u.headers={"Content-Type":n.type}),fetch(a,u).then(c((function(t){"function"==typeof r&&r({status:t.status,type:t.type})})),c((function(){pi(a,n,r)})))}else pi(a,n,r)}(t,e,n,r)};return{send:function(e){jr(e,i,o,t,r)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=li(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){di||(di=!0,si(t))}(t)}pi(o,n)}(t,e,n)}}}var di=!1;function pi(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),on(i,"loadend",(function(){"function"==typeof n&&n({status:i.status})}),{once:!0}),i.send(r)}function vi(t){return vi="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},vi(t)}function hi(t){if("object"===vi(t)&&t)t=ge(t);else if(!j(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function _i(t,e){return"object"===vi(t)&&t?t=ge(t):e&&(t=""+t),t}function gi(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function mi(t){return"object"===vi(t)&&t?gi(ge(t)):j(t)?gi(t):t}var yi="custom_keys",bi=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return A(Mr,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=k({},Lr,i.tags),u=["date","type",yi];A(s,(function(n,r){var i=kt(t,n);u.push(r),(i||Z(i))&&(e.tags[r]=_i(i,!0),a.push(hi(r)+"="+hi(i)))}));var c=[],l=k({},Dr,i.fields);if(A(l,(function(n,r){if(L(n)&&2===n.length){var i=n[1],o=kt(t,i);u.push(r),null!=o&&(e.fields[r]=_i(o),c.push(hi(r)+"="+mi(o)))}else if(j(n)){o=kt(t,n);u.push(r),null!=o&&(e.fields[r]=_i(o),c.push(hi(r)+"="+mi(o)))}})),t.context&&G(t.context)&&!$(t.context)){var f=[];A(t.context,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=_i(t),c.push(hi(n)+"="+mi(t))))})),f.length&&(e.fields[yi]=_i(f),c.push(hi(yi)+"="+mi(f)))}t.type===ce.LOGGER&&A(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=_i(t),c.push(hi(n)+"="+mi(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 Ei(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=U(s).join(i?",":"\n");s={};var o=Tr(t.reason),a=o?n.sendOnExit:n.send;if(o&&e.isAsync){var u=e.finishSync();u.outputBytesCount&&a(wi(u,i));var l=[u.pendingData,r].filter(Boolean).join("\n");l&&a({data:l,bytesCount:Ue(l)})}else{if(r){var f=c([r],e.isEmpty());i&&(f+="]"),e.write(f)}else i&&e.write("]");e.finish((function(t){a(wi(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?ge(bi(t).rowData):bi(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 wi(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 Si(t){var e=t.messagesLimit,n=t.bytesLimit,r=t.durationLimit,i=t.pageExitObservable,o=t.sessionExpireObservable;i.subscribe((function(t){return l(t.reason)})),o.subscribe((function(){return l("session_expire")}));var a,s=new tn((function(){return function(){pageExitSubscription.unsubscribe(),sessionExpireSubscription.unsubscribe()}})),u=0,c=0;function l(t){if(0!==c){var e=c,n=u;c=0,u=0,f(),s.notify({reason:t,messagesCount:e,bytesCount:n})}}function f(){_(a),a=void 0}return{flushObservable:s,getMessagesCount:function(){return c},notifyBeforeAddMessage:function(t){u+t>=n&&l("bytes_limit"),c+=1,u+=t,void 0===a&&(a=h((function(){l("duration_limit")}),r))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),u+=t,c>=e?l("messages_limit"):u>=n&&l("bytes_limit")},notifyAfterRemoveMessage:function(t){u-=t,0===(c-=1)&&f()}}}function Ti(){var t=v().FTWebViewJavascriptBridge;if(t)return{send:function(e,n){t.sendEvent(JSON.stringify({name:e,data:n}))}}}function Ii(){return!!Ti()}var Ci="guance-synthetics-injects-rum";var Oi=3*Le,Ai="user",Ri="global context";var xi=200;function ki(t,e){void 0===e&&(e=Ue);var n,r={},i=!1,a=new tn,s=Q((function(r){n=e(ge(r)),i||(i=function(t,e){return t>Oi&&(o.warn("The "+e+"data is over "+Oi/Le+" KiB. On low connectivity, the SDK has the potential to exhaust the user's upload bandwidth."),!0)}(n,t))}),xi).throttled,u={getBytesCount:function(){return n},get:function(){return r},add:function(t,e){r[t]=e,s(r),a.notify()},remove:function(t){delete r[t],s(r),a.notify()},set:function(t){s(r=t),a.notify()},getContext:function(){return at(r)},setContext:function(t){"object"===it(t)?(r=He(t),s(r)):u.clearContext(),a.notify()},setContextProperty:function(t,e){r[t]=at(e),s(r),a.notify()},removeContextProperty:function(t){delete r[t],s(r),a.notify()},clearContext:function(){r={},n=0,a.notify()},changeObservable:a};return u}var Ni="_gc_s",Li=[];function Di(t,e,n,r){var i=function(t,e,n){return t.storeContextsKey&&j(t.storeContextsKey)?Ni+"_"+e+"_"+n+"_"+t.storeContextsKey:Ni+"_"+e+"_"+n}(t,n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}return Li.push(on(window,oe.STORAGE,(function(t){i===t.key&&e.setContext(o())}))),e.changeObservable.subscribe((function(){localStorage.setItem(i,JSON.stringify(e.getContext()))})),e.setContext(N(o(),e.getContext())),e}function Mi(){var t="",e=0;return{isAsync:!1,isEmpty:function(){return!t},write:function(n,r){var i=Ue(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 Ui(t){var e=R({},t);return A(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}function Pi(t){this.map=new WeakMap,t&&t.forEach((function(t){this.map.set(t,1)}))}function Vi(t,e){e.silentMultipleInit||o.error(t+" is already initialized.")}Pi.prototype.add=function(t){return this.map.set(t,1),this},Pi.prototype.delete=function(t){return this.map.delete(t)},Pi.prototype.has=function(t){return this.map.has(t)};var Bi="rum",zi={WITHOUT_SESSION_REPLAY:1,WITH_SESSION_REPLAY:2},Hi={NOT_TRACKED:"0",TRACKED_WITH_SESSION_REPLAY:"1",TRACKED_WITHOUT_SESSION_REPLAY:"2"};function Fi(t,e){var n=Br(t,Bi,(function(e){return function(t,e){var n;n=function(t){return t===Hi.NOT_TRACKED||t===Hi.TRACKED_WITH_SESSION_REPLAY||t===Hi.TRACKED_WITHOUT_SESSION_REPLAY}(e)?e:vt(t.sessionSampleRate)?vt(t.sessionReplaySampleRate)?Hi.TRACKED_WITH_SESSION_REPLAY:Hi.TRACKED_WITHOUT_SESSION_REPLAY:Hi.NOT_TRACKED;return{trackingType:n,isTracked:Wi(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(pn.SESSION_EXPIRED)})),n.renewObservable.subscribe((function(){e.notify(pn.SESSION_RENEWED)})),{findTrackedSession:function(t){var e=n.findSession(t);if(e&&Wi(e.trackingType)){var r=e.trackingType===Hi.TRACKED_WITH_SESSION_REPLAY?zi.WITH_SESSION_REPLAY:zi.WITHOUT_SESSION_REPLAY;return{id:e.id,plan:r,sessionReplayAllowed:r===zi.WITH_SESSION_REPLAY}}},expire:n.expire,expireObservable:n.expireObservable}}function Wi(t){return t===Hi.TRACKED_WITHOUT_SESSION_REPLAY||t===Hi.TRACKED_WITH_SESSION_REPLAY}var Gi="_gc_usr_id",$i=1440*dt;var Ki=function(t){var e;if(t.sessionStoreStrategyType)return e="Cookie"===t.sessionStoreStrategyType.type?function(t){var e=Un(Gi,t);return e||(e=J(),Mn(Gi,e,$i,t)),e}(t.sessionStoreStrategyType.cookieOptions):function(){var t=localStorage.getItem(Gi);return t||(t=J(),localStorage.setItem(Gi,t)),t}(),{getId:function(){return e}}};function ji(){var t,e=window;if(e.Zone&&(t=a(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=a(new e.MutationObserver(ut),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function qi(t){var e=x(t);return new tn((function(n){var r,i,o,a,s,u=(r=l,i=Qe(History.prototype,"pushState",(function(t){(0,t.onPostCall)(r)})),o=Qe(History.prototype,"replaceState",(function(t){(0,t.onPostCall)(r)})),a=on(window,oe.POP_STATE,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),c=(s=l,on(window,oe.HASH_CHANGE,s));function l(){if(e.href!==t.href){var r=x(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return function(){u.stop(),c.stop()}}))}var Zi="initial_document",Yi=[[ae.DOCUMENT,function(t){return Zi===t}],[ae.XHR,function(t){return"xmlhttprequest"===t}],[ae.FETCH,function(t){return"fetch"===t}],[ae.BEACON,function(t){return"beacon"===t}],[ae.CSS,function(t,e){return null!==e.match(/\.css$/i)}],[ae.JS,function(t,e){return null!==e.match(/\.js$/i)}],[ae.IMAGE,function(t,e){return Dt(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[ae.FONT,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[ae.MEDIA,function(t,e){return Dt(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function Qi(t){var e=t.name;if(!function(t){try{return!!wn(t)}catch(t){return!1}}(e))return ae.OTHER;var n=function(t){var e=wn(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=ae.OTHER;return A(Yi,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function Xi(){for(var t=M(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function Ji(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType}var to=/[^\u0000-\u007F]/;function eo(t,e){return n=t,(to.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function no(t){return 0===t.duration&&t.startTime<t.responseEnd?_t(t.responseEnd-t.startTime):_t(t.duration)}function ro(t){if(oo(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:_t(f-l),trans:_t(d-f),downloadTime:so(e,f,d),firstByteTime:so(e,l,f)};return f>0&&f<=bt()&&(p.ttfb=_t(f-l)),c!==n&&(p.tcp=_t(c-s),p.connectTime=so(e,s,c),Xi(s,u,c)&&(p.ssl=_t(c-u),p.sslTime=so(e,u,c))),a!==n&&(p.dns=_t(a-o),p.dnsTime=so(e,o,a)),ao(t)&&(p.redirect=_t(i-r),p.redirectTime=so(e,r,i)),t.renderBlockingStatus&&(p.renderBlockingStatus=t.renderBlockingStatus),p}}function io(t){return t.duration>=0}function oo(t){var e=Xi(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!ao(t)||Xi(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function ao(t){return t.fetchStart!==t.startTime}function so(t,e,n){return{duration:_t(n-e),start:_t(e-t)}}function uo(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 co(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 lo=/data:(.+)?(;base64)?,/g,fo=24e3;function po(t){return!(t.length<=fo)&&("data:"===t.substring(0,5)&&(t=t.substring(0,fo),!0))}function vo(t){return t.match(lo)[0]+"[...]"}function ho(t,e){var n=St(),r=!1,i=an(window,[oe.CLICK,oe.MOUSE_DOWN,oe.KEY_DOWN,oe.TOUCH_START,oe.POINTER_DOWN],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:bt(),processingEnd:bt(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};t.type===oe.POINTER_DOWN?function(t){an(window,[oe.POINTER_UP,oe.POINTER_CANCEL],(function(e){e.type===oe.POINTER_UP&&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<St()-n&&e(t)}}}var _o,go={EVENT:"event",FIRST_INPUT:"first-input",LARGEST_CONTENTFUL_PAINT:"largest-contentful-paint",LAYOUT_SHIFT:"layout-shift",LONG_TASK:"longtask",LONG_ANIMATION_FRAME:"long-animation-frame",NAVIGATION:"navigation",PAINT:"paint",RESOURCE:"resource"};function mo(t,e){return new tn((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!==go.RESOURCE||co(t,e.name)&&io(e))}(t,e)}))}(t,e);r.length>0&&n.notify(r)},a=!0,s=new PerformanceObserver(c((function(t){a?r=h((function(){o(t.getEntries())})):o(t.getEntries())})));try{s.observe(e)}catch(t){if(Dt([go.RESOURCE,go.NAVIGATION,go.LONG_TASK,go.PAINT],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(t){!_o&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(_o=on(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})))}(),!yo(go.FIRST_INPUT)&&e.type===go.FIRST_INPUT){var u=ho(0,(function(t){o([t])}));i=u.stop}return function(){s.disconnect(),i&&i(),_(r)}}}))}function yo(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function bo(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=ut);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(pn.RUM_EVENT_COLLECTED,(function(t){if(t.type!==ce.VIEW&&n(t))switch(t.type){case ce.ERROR:i.errorCount+=1,r();break;case ce.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case ce.LONG_TASK:i.longTaskCount+=1,r();break;case ce.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var Eo=100,wo=100;function So(t,e,n,r,i){var o=function(t,e,n){return new tn((function(r){var i,o=[],a=0;o.push(e.subscribe((function(){u()})),mo(n,{type:go.RESOURCE}).subscribe((function(t){z(t,(function(t){return!To(n,t.name)}))&&u()})),t.subscribe(pn.REQUEST_STARTED,(function(t){To(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(pn.REQUEST_COMPLETED,(function(t){To(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=Qe(window,"open",u).stop;return function(){s(),A(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})}),Eo),a=void 0!==n?h((function(){return c({hadActivity:!0,end:wt()})}),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;_(o),_(r);var n=wt();e||(r=h((function(){c({hadActivity:!0,end:n})}),wo))})),u=function(){i=!0,_(o),_(r),_(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function To(t,e){return F(t.excludedActivityUrls,e)}var Io=lt,Co=100,Oo={WaitingForMoreClicks:0,WaitingForClicksToStop:1,Finalized:2};function Ao(t,e){var n,r=[],i=Oo.WaitingForMoreClicks;function o(t){t.stopObservable.subscribe(a),r.push(t),_(n),n=h(s,Io)}function a(){i===Oo.WaitingForClicksToStop&&H(r,(function(t){return t.isStopped()}))&&(i=Oo.Finalized,e(r))}function s(){_(n),i===Oo.WaitingForMoreClicks&&(i=Oo.WaitingForClicksToStop,a())}return o(t),{tryAppend:function(t){return i===Oo.WaitingForMoreClicks&&(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))<=Co)&&e.timeStamp-n.timeStamp<=Io))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var Ro="data-guance-action-name";function xo(t,e){return ko(t,Ro)||e&&ko(t,e)||Po(t,e,Do)||Po(t,e,Mo)||""}function ko(t,e){var n;if(function(){void 0===Lo&&(Lo="closest"in HTMLElement.prototype);return Lo}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return Bo(Vo(n.getAttribute(e).trim()))}var No,Lo,Do=[function(t,e){if(function(){void 0===No&&(No="labels"in HTMLInputElement.prototype);return No}()){if("labels"in t&&t.labels&&t.labels.length>0)return zo(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&Mt(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&zo(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 zo(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=V(n,(function(t){return Boolean(t)})),(n=B(n,(function(t){return zo(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 zo(t.options[0],e)}],Mo=[function(t,e){return zo(t,e)}],Uo=10;function Po(t,e,n){for(var r=t,i=0;i<=Uo&&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 Bo(Vo(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function Vo(t){return t.replace(/\s+/g," ")}function Bo(t){return t.length>100?Nt(t,100)+" [...]":t}function zo(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 zt()===Bt.IE&&r("script, style"),r("["+Ro+"]"),e&&r("["+e+"]"),n}return t.textContent}}var Ho,Fo=[Ro,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Wo=[jo,function(t){if(t.id&&!Ko(t.id))return"#"+W(t.id)}],Go=[jo,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(!Ko(n))return W(t.tagName)+"."+W(n)}},function(t){return W(t.tagName)}];function $o(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=Zo(r,Wo,Yo,e,n);if(i)return i;n=Zo(r,Go,Qo,e,n)||Xo(qo(r),n),r=r.parentElement}return n}}function Ko(t){return/[0-9]/.test(t)}function jo(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<Fo.length;n++){var r;if(r=i(Fo[n]))return r}function i(e){if(t.hasAttribute(e))return W(t.tagName)+"["+e+'="'+W(t.getAttribute(e))+'"]'}}function qo(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=W(t.tagName);return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function Zo(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a){var s=Xo(a,i);if(n(t,s))return s}}}function Yo(t,e){return 1===t.ownerDocument.body.querySelectorAll(e).length}function Qo(t,e){return 1===t.parentElement.querySelectorAll(function(){if(void 0===Ho)try{document.querySelector(":scope"),Ho=!0}catch(t){Ho=!1}return Ho}()?Xo(":scope",e):e).length}function Xo(t,e){return e?t+">"+e:t}function Jo(){var t=window.getSelection();return!t||t.isCollapsed}function ta(t){return t.target instanceof Element&&!1!==t.isPrimary}var ea=3;function na(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-(ea-1);e+=1)if(t[e+ea-1].event.timeStamp-t[e].event.timeStamp<=lt)return!0;return!1}(t))return e.addFrustration(ue.RAGE_CLICK),z(t,ia)&&e.addFrustration(ue.DEAD_CLICK),e.hasError()&&e.addFrustration(ue.ERROR_CLICK),{isRage:!0};var n=z(t,(function(t){return t.getUserActivity().selection}));return A(t,(function(t){t.hasError()&&t.addFrustration(ue.ERROR_CLICK),ia(t)&&!n&&t.addFrustration(ue.DEAD_CLICK)})),{isRage:!1}}var ra='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 ia(t){return!(t.hasPageActivity()||t.getUserActivity().input||t.getUserActivity().scroll)&&(e=t.event.target,n=ra,!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}var oa=10*lt,aa=new Map;function sa(t,e){aa.set(t,e),aa.forEach((function(t,e){Tt(e,bt())>oa&&aa.delete(e)}))}var ua=5*ft;function ca(t,e,n){var r,i=new te({expireDelay:ua}),o=new tn;t.subscribe(pn.SESSION_RENEWED,(function(){i.reset()})),t.subscribe(pn.VIEW_ENDED,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=$o(i.target,o))&&sa(i.timeStamp,s),{type:se.CLICK,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:xo(i.target,o)}),c=!1;return So(e,n,t,(function(t){c=t.hadActivity}),Eo),{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=fa(e,r,u,a,s);o(l);var f=a&&a.target&&a.target.selector;f&&sa(s.timeStamp,f);var d=So(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()}),oa),p=d.stop,v=e.subscribe(pn.VIEW_ENDED,(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=[on(window,oe.POINTER_DOWN,(function(t){ta(t)&&(s=Jo(),c={selection:!1,input:!1,scroll:!1},u=a.onPointerDown(t))}),{capture:!0}),on(window,oe.SELECTION_CHANGE,(function(){s&&Jo()||(c.selection=!0)}),{capture:!0}),on(window,oe.POINTER_UP,(function(t){if(ta(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),on(window,oe.SCROLL,(function(){c.scroll=!0}),{capture:!0,passive:!0}),on(window,oe.INPUT,(function(){c.input=!0}),{capture:!0})],{stop:function(){A(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=Ao(t,(function(t){!function(t,e){var n=na(t,e),r=n.isRage;r?(A(t,(function(t){t.discard()})),e.stop(wt()),e.validate(B(t,(function(t){return t.event})))):(e.discard(),A(t,(function(t){t.validate()})))}(t,e)}))}}}var la={ONGOING:0,STOPPED:1,FINALIZED:2};function fa(t,e,n,r,i){var o,a=J(),s=Et(),u=e.add(a,s.relative),c=bo({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(L(t.action.ids)?Dt(t.action.ids,a):t.action.ids===a)}}),l=la.ONGOING,f=[],d=new tn;function p(t){l===la.ONGOING&&(o=t,l=la.STOPPED,o?u.close(mt(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===la.STOPPED||l===la.FINALIZED},clone:function(){return fa(t,e,n,r,i)},validate:function(e){if(p(),l===la.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,v=n.longTaskCount,h=R({type:se.CLICK,duration:o&&Tt(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:v},events:Gt(e,[i]),event:i},r);t.notify(pn.AUTO_ACTION_COMPLETED,h),l=la.FINALIZED}},discard:function(){p(),l=la.FINALIZED}}}var da=4e3,pa=500,va=Vn,ha={ACTIVE:"active",PASSIVE:"passive",HIDDEN:"hidden",FROZEN:"frozen",TERMINATED:"terminated"};function _a(t){void 0===t&&(t=pa);var e,n=te({expireDelay:va,maxEntries:da});i(ga(),bt());var r=an(window,[oe.PAGE_SHOW,oe.FOCUS,oe.BLUR,oe.VISIBILITY_CHANGE,oe.RESUME,oe.FREEZE,oe.PAGE_HIDE],(function(t){i(function(t){if(t.type===oe.FREEZE)return ha.FROZEN;if(t.type===oe.PAGE_HIDE)return t.persisted?ha.FROZEN:ha.TERMINATED;return ga()}(t),t.timeStamp)}),{capture:!0}).stop;function i(t,r){void 0===r&&(r=bt()),t!==e&&(e=t,n.closeActive(r),n.add({state:e,startTime:r},r))}var o={findAll:function(e,r){var i=n.findAll(e,r);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-t),s=i.length-1;s>=a;s--){var u=i[s],c=Tt(e,u.startTime);o.push({state:u.state,start:gt(c)})}return o}},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 ga(){return"hidden"===document.visibilityState?ha.HIDDEN:document.hasFocus()?ha.ACTIVE:ha.PASSIVE}function ma(t,e){var n=ya(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:Zt(gt(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:0}};return{customerContext:ya(t)?void 0:t.context,rawRumEvent:N({action:{id:J(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:ce.ACTION,view:{in_foreground:e.wasInPageStateAt(ha.ACTIVE,t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:ya(t)?{event:t.event,events:t.events}:{}}}function ya(t){return t.type!==se.CUSTOM}var ba={REPLAY:1,RUM:2};function Ea(t,e){var n,r=0,i=[],o=0,a=[],s=on(t,"message",(function(t){var o=t.data;if(!("wrote"!==o.type||o.streamId&&o.streamId!==e)){r+=o.additionalBytesCount,i.push(o.result),n=o.trailer;var u=a.shift();u&&u.id===o.id?u.writeCallback?u.writeCallback(o.result.byteLength):u.finishCallback&&u.finishCallback():(s(),ai("Worker responses received out of order."))}})).stop;function u(){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 c(){o>0&&(t.postMessage({action:"reset",streamId:e}),o=0)}return{isAsync:!0,isEmpty:function(){return 0===o},write:function(n,r){t.postMessage({action:"write",id:o,data:n,streamId:e}),a.push({id:o,writeCallback:r,data:n}),o+=1},finish:function(t){c(),a.length?(a.forEach((function(t){delete t.writeCallback})),a[a.length-1].finishCallback=function(){return t(u())}):t(u())},finishSync:function(){c();var t=a.map((function(t){return delete t.writeCallback,delete t.finishCallback,t.data})).join("");return R(u(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){s()}}}var wa=10*lt;function Sa(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]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<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},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;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},U=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},S=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]},R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,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):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;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--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(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)},D=function(t,e,n,r){var i,s,_=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)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;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(E(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,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!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,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_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)}},C=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},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return~t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},kt=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))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||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=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)},Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=ft-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.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.9"};case"write":var n=e.get(a.streamId);n||(n=new Jt,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,_=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++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;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,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var Ta={Nil:0,Loading:1,Error:2,Initialized:3},Ia={status:Ta.Nil};function Ca(t,e,n,r){switch(void 0===r&&(r=Sa),Ia.status===Ta.Nil&&function(t,e,n){void 0===n&&(n=Sa);try{var r=n(t),i=on(r,"error",(function(n){Aa(t,e,n)})),a=on(r,"message",(function(t){var e,n=t.data;"errored"===n.type?Aa(n.error,n.streamId):"initialized"===n.type&&(e=n.version,Ia.status===Ta.Loading&&(Ia={status:Ta.Initialized,worker:Ia.worker,version:e,stop:Ia.stop}))}));r.postMessage({action:"init"}),h((function(){return function(t){Ia.status===Ta.Loading&&(o.error(t+" failed to start: a timeout occurred while initializing the Worker"),Ia.initializationFailureCallbacks.forEach((function(t){t()})),Ia={status:Ta.Error})}(e)}),wa);var s=function(){i.stop(),a.stop()};Ia={status:Ta.Loading,worker:r,stop:s,initializationFailureCallbacks:[]}}catch(n){Aa(t,e,n)}}(t,e,r),Ia.status){case Ta.Loading:return Ia.initializationFailureCallbacks.push(n),Ia.worker;case Ta.Initialized:return Ia.worker}}function Oa(){return Ia.status}function Aa(t,e,n,r){if(Ia.status===Ta.Loading){var i;if(o.error(e+" failed to start: an error occurred while creating the Worker:",n),n instanceof Event||n instanceof Error&&(Dt(a=n.message,"Content Security Policy")||Dt(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 si(n);Ia.status===Ta.Loading&&Ia.initializationFailureCallbacks.forEach((function(t){t()})),Ia={status:Ta.Error}}else si(n,{worker_version:Ia.status===Ta.Initialized&&Ia.version,stream_id:r});var a}function Ra(t,e,n,r,i,o,a){var s=function(t,e,n,r,i,o){void 0===o&&(o=Ei);var a=function(t,e){return o({encoder:e.encoder,request:fi(e.endpoint,t.batchBytesLimit,t.retryMaxSize,n),flushController:Si({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(ba.RUM)},r,i,o);return e.subscribe(pn.RUM_EVENT_COLLECTED,(function(t){t.type===ce.VIEW?s.upsert(t,t.view.id):s.add(t)})),n.subscribe((function(t){s.add(t)})),s}var xa,ka={SYNTHETICS:"synthetics",USER:"user"},Na={"view.url":"string","view.referrer":"string"},La={context:"object"},Da={};function Ma(t,e,n,r,i,a,s,u,c,l){Da[ce.VIEW]=Na,Da[ce.ERROR]=R({"error.message":"string","error.stack":"string","error.resource.url":"string"},La,Na),Da[ce.RESOURCE]=R({"resource.url":"string"},La,Na),Da[ce.ACTION]=R({"action.target.name":"string"},La,Na),Da[ce.LONG_TASK]=R({},La,Na);var f={};f[ce.ERROR]=yn(ce.ERROR,t.eventRateLimiterThreshold,l),f[ce.ACTION]=yn(ce.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(pn.RAW_RUM_EVENT_COLLECTED,(function(l){var d,p=l.startTime,v=l.rawRumEvent,h=l.savedCommonContext,_=l.customerContext,g=l.domainContext,m=i.findView(p),y=a.findUrl(p),b=n.findTrackedSession(p);if(b&&m&&y){var E=s.findActionId(p),w=s.findAllActionId(p),S=h||c(),T={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(St()-(Rt()+performance.now())),configuration:{session_sample_rate:ht(t.sessionSampleRate,3),session_replay_sample_rate:ht(t.sessionReplaySampleRate,3)}},terminal:{type:"web"},application:{id:t.applicationId},device:ie,env:t.env||"",service:m.service||t.service||"browser",version:m.version||t.version||"",source:"browser",date:wt(),user:{id:r.getId(),is_signin:"F",is_login:!1},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?ka.USER:ka.SYNTHETICS,id:b.id},view:{id:m.id,name:m.name,url:y.url,referrer:y.referrer,host:y.host,path:y.path,pathGroup:y.pathGroup,urlQuery:y.urlQuery},action:(d=v,-1!==[ce.ERROR,ce.RESOURCE,ce.LONG_TASK].indexOf(d.type)&&E?{id:E,ids:w}:void 0),display:u.get()},I=Ft(N(T,m,v)),C=N({},S.context,_);$(C)||(I.context=C),"has_replay"in I.session||(I.session.has_replay=S.hasReplay),"view"===I.type&&(I.session.sampled_for_replay=b.sessionReplayAllowed),$(S.user)||(I.user=N({is_signin:"T",is_login:!0},S.user)),function(t,e,n,r){if(e){var i=hn(t,Da[t.type],(function(t){return e(t,n)}));if(!1===i&&t.type!==ce.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}(I,t.beforeSend,g,f)&&($(I.context)&&delete I.context,e.notify(pn.RUM_EVENT_COLLECTED,I))}}))}function Ua(){return xa||(xa=new tn((function(t){var e=Q((function(){t.notify(Pa())}),200).throttled;return on(window,oe.RESIZE,e,{capture:!0,passive:!0}).stop}))),xa}function Pa(){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 Va=Vn;var Ba=Vn;function za(e,n,r){var i=new tn;return function(e){var n=rn([t.error]).subscribe((function(t){e.notify(t.error)}))}(i),function(t){Ne((function(e,n){t.notify(Ke({stackTrace:e,originalError:n,startClocks:Et(),nonErrorPrefix:he.UNCAUGHT,source:$e.SOURCE,handling:ve.UNHANDLED}))}))}(i),function(t,e){var n=un(0,[(sn.cspViolation,sn.intervention)]).subscribe((function(t){e.notify({startClocks:Et(),message:t.message,stack:t.stack,type:t.subtype,source:$e.REPORT,handling:ve.UNHANDLED})}))}(0,i),i.subscribe((function(t){e.notify(pn.RAW_ERROR_COLLECTED,{error:t})})),function(t,e){return t.subscribe(pn.RAW_ERROR_COLLECTED,(function(n){t.notify(pn.RAW_RUM_EVENT_COLLECTED,R({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:J(),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:ce.ERROR,view:{in_foreground:e.wasInPageStateAt(ha.ACTIVE,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=Ke({stackTrace:r instanceof Error?Ee(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:he.PROVIDED,source:$e.CUSTOM,handling:ve.HANDLED});t.notify(pn.RAW_ERROR_COLLECTED,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,r)}var Ha=10*ft;function Fa(){if(yo(go.NAVIGATION)){var t=performance.getEntriesByType(go.NAVIGATION)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(Z(e[n])){var r=n,i=e[r];t[r]=0===i?0:mt(i)}return t}(),n=R({entryType:go.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return R({},n,{toJSON:void 0})}},e);return n}function Wa(t,e,n){return void 0===n&&(n=Fa),function(t){var e,n=xr("complete",(function(){e=h((function(){t()}))}));return{stop:function(){n.stop(),_(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<=bt()?t.responseStart:void 0}}(t))}))}var Ga=10*ft;function $a(t){var e;if(void 0===t&&(t=window),"hidden"===document.visibilityState)e=0;else{e=1/0;var n=an(t,[oe.PAGE_HIDE,oe.VISIBILITY_CHANGE],(function(t){t.type!==oe.PAGE_HIDE&&"hidden"!==document.visibilityState||(e=t.timeStamp,n())}),{capture:!0}).stop}return{getTimeStamp:function(){return e},stop:function(){n&&n()}}}function Ka(t,e,n){var r={},i=Wa(0,(function(t){e(t.loadEvent),r.navigationTimings=t,n()})),o=$a(),a=i.stop,s=function(t,e,n){return{stop:mo(t,{type:go.PAINT,buffered:!0}).subscribe((function(t){var r=Mt(t,(function(t){return t.entryType===go.PAINT&&"first-contentful-paint"===t.name&&t.startTime<e.getTimeStamp()&&t.startTime<Ha}));r&&n(r.startTime)})).unsubscribe}}(t,o,(function(t){r.firstContentfulPaint=t,n()})),u=s.stop,c=function(t,e,n,r){var i=1/0,o=an(n,[oe.POINTER_DOWN,oe.KEY_DOWN],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=0,s=mo(t,{type:go.LARGEST_CONTENTFUL_PAINT,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===go.LARGEST_CONTENTFUL_PAINT&&t.startTime<i&&t.startTime<e.getTimeStamp()&&t.startTime<Ga&&t.size>a}));s&&(s.element&&(o=$o(s.element,t.actionNameAttribute)),r({value:s.startTime,targetSelector:o}),a=s.size)}));return{stop:function(){o(),s.unsubscribe()}}}(t,o,window,(function(t){r.largestContentfulPaint=t,n()})),l=c.stop,f=function(t,e,n){var r=mo(t,{type:go.FIRST_INPUT,buffered:!0}).subscribe((function(r){var i=Mt(r,(function(t){return t.entryType===go.FIRST_INPUT&&t.startTime<e.getTimeStamp()}));if(i){var o,a=Tt(i.startTime,i.processingStart);i.target&&Ir(i.target)&&(o=$o(i.target,t.actionNameAttribute)),n({delay:a>=0?a:0,time:i.startTime,targetSelector:o})}}));return{stop:function(){r.unsubscribe()}}}(t,o,(function(t){r.firstInput=t,n()})),d=f.stop;return{stop:function(){a(),u(),l(),d(),o.stop()},initialViewMetrics:r}}var ja=lt;function qa(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=ja);return new tn((function(t){function n(){var e,n,r,i;t.notify((e=Nr(),n=Pa().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(c(r.throttled));i&&o.observe(i);var a=on(window,oe.SCROLL,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=bt();a=Tt(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 Za(t,e,n){if(!ts())return{stop:ut};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>=Ja||i.startTime-t>=5*Xa?(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=mo(t,{type:go.LAYOUT_SHIFT,buffered:!0}).subscribe((function(s){for(var u=0,c=s;u<c.length;u++){var l=c[u];if(!(l.hadRecentInput||l.startTime<e)){var f=a.update(l),d=f.cumulatedValue;if(f.isMaxValue){var p=Ya(l.sources);r=p?new WeakRef(p):void 0,i=Tt(e,l.startTime)}if(d>o){o=d;p=r&&r.deref();n({value:ht(o,4),targetSelector:p&&$o(p,t.actionNameAttribute),time:i})}}}}));return{stop:function(){s.unsubscribe()}}}function Ya(t){if(t){var e=Mt(t,(function(t){return!!t.node&&Ir(t.node)}));return e&&e.node}}var Qa,Xa=5*lt,Ja=lt;function ts(){return yo(go.LAYOUT_SHIFT)&&"WeakRef"in window}var es=0,ns=1/0,rs=0;var is=function(){return Qa?es:window.performance.interactionCount||0},os=10,as=1*ft;function ss(t,e,n){if(!(yo("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ut,stop:ut};var r,i,o=function(t){"interactionCount"in performance||Qa||(Qa=new window.PerformanceObserver(c((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(ns=Math.min(ns,e.interactionId),rs=Math.max(rs,e.interactionId),es=(rs-ns)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===fe.INITIAL_LOAD?0:is(),n={stopped:!1};function r(){return is()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,u=1/0,l=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(os)}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<os||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<=u&&l.process(s)}var c,d,p=l.estimateP98Interaction();p&&p.duration!==f&&(f=p.duration,i=Tt(e,p.startTime),c=p.startTime,d=aa.get(c),aa.delete(c),!(r=d)&&p.target&&Ir(p.target)&&(r=$o(p.target,t.actionNameAttribute)))}var p=mo(t,{type:go.FIRST_INPUT,buffered:!0}).subscribe(d),v=mo(t,{type:go.EVENT,durationThreshold:40,buffered:!0}).subscribe(d);return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,as),targetSelector:r,time:i}:a()?{value:0}:void 0},setViewEnd:function(t){u=t,s()},stop:function(){v.unsubscribe(),p.unsubscribe()}}}function us(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a=r===fe.INITIAL_LOAD,s=!0,u=[],c=$a();function l(){if(!s&&!a&&u.length>0){var t=Math.max.apply(Math,u);t<c.getTimeStamp()&&o(t)}}var f=So(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(Tt(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=qa(0,o,(function(t){a.scroll=t})).stop,f=Za(n,o.relative,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=ss(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 cs=3e3,ls=5*ft,fs=5*ft;function ds(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=Et());var s,u,c,l,f=J(),d=new tn,p={},v=0,_=x(r),y=!0;a&&(u=a.name,c=a.service,l=a.version);var b={id:f,name:u,startClocks:o,service:c,version:l};t.notify(pn.BEFORE_VIEW_CREATED,b),t.notify(pn.VIEW_CREATED,b);var E=Q(V,cs,{leading:!1}),w=E.throttled,S=E.cancel,T=us(t,e,n,w,i,o),I=T.setLoadEvent,C=T.stop,O=T.getCommonViewMetrics,A=T.stopINPTracking,R=T.setViewEnd,k=i===fe.INITIAL_LOAD?Ka(n,I,w):{stop:ut,initialViewMetrics:{}},N=k.stop,L=k.initialViewMetrics,D=function(t,e,n){var r=bo({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,f,w),M=D.stop,U=D.eventCounts,P=g(V,ls);function V(){S(),v+=1;var e=void 0===s?wt():s.timeStamp;t.notify(pn.VIEW_UPDATED,{customTimings:p,documentVersion:v,id:f,name:u,service:c,version:l,loadingType:i,location:_,startClocks:o,commonViewMetrics:O(),initialViewMetrics:L,duration:Tt(o.timeStamp,e),isActive:void 0===s,sessionIsActive:y,eventCounts:U})}V();var B={name:u,service:c,version:l,stopObservable:d,end:function(e){s||(s=Gt(e&&e.endClocks,Et()),y=Gt(e&&e.sessionIsActive,!0),t.notify(pn.VIEW_ENDED,{endClocks:s}),t.notify(pn.AFTER_VIEW_ENDED,{endClocks:s}),m(P),R(s.relative),C(),V(),h((function(){B.stop()}),fs))},stop:function(){N(),M(),A(),d.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<pt}(e)?e:Tt(o.timeStamp,e);p[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,w()}}};return B}(e,n,r,t,i,o,a);return s.add(u),u.stopObservable.subscribe((function(){s.delete(u)})),u}var c,l=u(fe.INITIAL_LOAD,It(),a);return e.subscribe(pn.SESSION_RENEWED,(function(){l=u(fe.ROUTE_CHANGE,void 0,{name:l.name,service:l.service,version:l.version})})),e.subscribe(pn.SESSION_EXPIRED,(function(){l.end({sessionIsActive:!1})})),e.subscribe(pn.PAGE_EXITED,(function(t){t.reason===Sr.UNLOADING&&l.end()})),o&&(c=function(t){return t.subscribe((function(t){var e,n,r=t.oldLocation,i=t.newLocation;if(n=i,(e=r).pathname!==n.pathname||!jt(n.hash)&&qt(n.hash)!==qt(e.hash))return l.end(),void(l=u(fe.ROUTE_CHANGE))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=wt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(fe.ROUTE_CHANGE,e,t)},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach((function(t){t.stop()}))}}}function ps(t,e,n,r,i,o,a,s){return t.subscribe(pn.VIEW_UPDATED,(function(n){t.notify(pn.RAW_RUM_EVENT_COLLECTED,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},date:t.startClocks.timeStamp,type:ce.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:kt(t.commonViewMetrics,"cumulativeLayoutShift.value"),cumulative_layout_shift_time:kt(t.commonViewMetrics,"cumulativeLayoutShift.time"),cumulative_layout_shift_target_selector:kt(t.commonViewMetrics,"cumulativeLayoutShift.targetSelector"),first_byte:gt(kt(t.initialViewMetrics,"navigationTimings.firstByte")),dom_complete:gt(kt(t.initialViewMetrics,"navigationTimings.domComplete")),dom_content_loaded:gt(kt(t.initialViewMetrics,"navigationTimings.domContentLoaded")),dom_interactive:gt(kt(t.initialViewMetrics,"navigationTimings.domInteractive")),error:{count:t.eventCounts.errorCount},first_contentful_paint:gt(kt(t.initialViewMetrics,"firstContentfulPaint")),first_input_delay:gt(kt(t.initialViewMetrics,"firstInput.delay")),first_input_time:gt(kt(t.initialViewMetrics,"firstInput.time")),first_input_target_selector:kt(t.initialViewMetrics,"firstInput.targetSelector"),interaction_to_next_paint:gt(kt(t.commonViewMetrics,"interactionToNextPaint.value")),interaction_to_next_paint_target_selector:kt(t.commonViewMetrics,"interactionToNextPaint.targetSelector"),is_active:t.isActive,name:t.name,largest_contentful_paint:gt(kt(t.initialViewMetrics,"largestContentfulPaint.value")),largest_contentful_paint_element_selector:kt(t.initialViewMetrics,"largestContentfulPaint.targetSelector"),load_event:gt(kt(t.initialViewMetrics,"navigationTimings.loadEvent")),loading_time:Zt(gt(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:gt(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:gt(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=gt,c={},A(s,(function(t,e){c[e]=u(t)})),c));var s,u,c;return a=N(a,{view:vs(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),ds(n,t,r,e,i,!e.trackViewsManually,s)}function vs(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(Z(n)&&Z(e)&&n!==e){c.fpt=gt(n-e);var l=parseInt((n-e)/1e3);c.apdexLevel=l>9?9:l}return Z(r)&&Z(e)&&r!==e&&(c.tti=gt(r-e)),Z(i)&&Z(e)&&i!==e&&(c.dom_ready=gt(i-e)),Z(a)&&Z(e)&&a!==e&&(c.load=gt(a-e)),Z(s)&&Z(u)&&s!==u&&(c.resource_load_time=gt(s-u)),Z(o)&&Z(r)&&o!==r&&(c.dom=gt(o-r)),c}}function hs(){this.buffer=new Uint8Array(8),_s().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function _s(){return window.crypto||window.msCrypto}function gs(t,e){if(this._spanId=new hs,this._traceId=new hs,this._traceSampled=e,t.generateTraceId&&"function"===it(t.generateTraceId)){var n=t.generateTraceId();"string"===it(n)&&(this.customTraceId=n)}}function ms(){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 ys(t,e,n){if(this._spanId=ms(),this._traceId=ms(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=et(e).getParse(),this._traceSampled=n,t.generateTraceId&&"function"===it(t.generateTraceId)){var r=t.generateTraceId();"string"===it(r)&&(this.customTraceId=r)}}function bs(t,e){if(this._traceId=new hs,this._spanId=new hs,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===it(t.generateTraceId)){var n=t.generateTraceId();"string"===it(n)&&(this.customTraceId=n)}}function Es(t,e){if(this._traceId=new hs,this._spanId=new hs,this._traceSampled=e,t.generateTraceId&&"function"===it(t.generateTraceId)){var n=t.generateTraceId();"string"===it(n)&&(this.customTraceId=n)}}function ws(t,e){if(this._traceId=new hs,this._spanId=new hs,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===it(t.generateTraceId)){var n=t.generateTraceId();"string"===it(n)&&(this.customTraceId=n)}}function Ss(t,e,n){if(this._traceId=new hs,this._spanId=new hs,this._traceSampled=e,this.isHexTraceId=n,t.generateTraceId&&"function"===it(t.generateTraceId)){var r=t.generateTraceId();"string"===it(r)&&(this.customTraceId=r)}}function Ts(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Is(t,e,n,r){if(n.findTrackedSession()){var i=Mt(t.allowedTracingUrls,(function(t){return F([t.match],e.url,!0)}));if(i){var o,a=!Z(t.tracingSampleRate)||vt(t.tracingSampleRate);switch(i.traceType){case pe.DDTRACE:o=new gs(t,a);break;case pe.SKYWALKING_V3:o=new ys(t,e.url,a);break;case pe.ZIPKIN_MULTI_HEADER:o=new ws(t,a);break;case pe.JAEGER:o=new bs(t,a);break;case pe.W3C_TRACEPARENT:o=new Ss(t,a);break;case pe.W3C_TRACEPARENT_64:o=new Ss(t,a,!0);break;case pe.ZIPKIN_SINGLE_HEADER:o=new Es(t,a)}if(o&&o.isTracingSupported()){e.traceId=o.getTraceId(),e.spanId=o.getSpanId(),e.traceSampled=a;var s=o.makeTracingHeaders();if(t.injectTraceHeader){var u=t.injectTraceHeader(x(e));"object"===it(u)&&A(u,(function(t,e){"string"===it(t)&&(s[e]=t)}))}r(s)}}}}hs.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]}},gs.prototype={isTracingSupported:function(){return void 0!==_s()},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()}}},ys.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(X(this.getTraceId())),e=String(X(this.getSpanId())),n=String(X(this._applicationId+"_rum_"+this.env)),r=String(X(this._version)),i=String(X(window.location.href)),o=String(X(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},bs.prototype={isTracingSupported:function(){return void 0!==_s()},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()}}},Es.prototype={isTracingSupported:function(){return void 0!==_s()},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()}}},ws.prototype={isTracingSupported:function(){return void 0!==_s()},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.getSpanId(),"X-B3-SpanId":this.getTraceId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},Ss.prototype={isTracingSupported:function(){return void 0!==_s()},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?R(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var Cs=1;function Os(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Ts,traceFetch:function(n){return Is(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=x(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):L(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(K(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 Is(t,n,e,(function(t){A(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=br().subscribe((function(r){var i=r;if(co(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=As(),t.notify(pn.REQUEST_STARTED,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(pn.REQUEST_COMPLETED,{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:de.XHR,url:i.url,xhr:i.xhr,isAborted:i.isAborted,handlingStack:i.handlingStack})}}))}(t,e,r),function(t,e,n){var r=mr().subscribe((function(r){var i=r;if(co(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=As(),t.notify(pn.REQUEST_STARTED,{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(ut),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;A(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(c((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())})),c((function(t){e(t)})))}()}(n.body,(function(){e(Tt(t.startClocks.timeStamp,wt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(Tt(t.startClocks.timeStamp,wt()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(pn.REQUEST_COMPLETED,{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,type:de.FETCH,url:i.url,response:i.response,init:i.init,input:i.input,isAborted:i.isAborted,handlingStack:i.handlingStack})}))}}))}(t,e,r)}function As(){var t=Cs;return Cs+=1,t}var Rs=new Pi;function xs(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=V(e,(function(t){return!Rs.has(t)}));return n=V(n,(function(t){return io(t)&&oo(t)})),1===(n=V(n,(function(e){return n=e,r=t.startClocks.relative,i=ks({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&ks(n)<=Ot(i,o);var n,r,i,o}))).length?(Rs.add(n[0]),n[0].toJSON()):void 0}}}function ks(t){return Ot(t.startTime,t.duration)}function Ns(t,e){xr("interactive",(function(){var t=R(Fa().toJSON(),{entryType:go.RESOURCE,initiatorType:Zi,toJSON:function(){return R({},t,{toJSON:void 0})}});e(t)}))}function Ls(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 An-(performance.now()-i)}}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){In(e,{timeout:On})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===i&&(i=Ns),t.subscribe(pn.REQUEST_COMPLETED,(function(t){a((function(){return function(t,e){var n=xs(t),r=n?Ct(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:J()}}}(t),o=t.type===de.XHR?ae.XHR:ae.FETCH,a=n?Ms(n):void 0,s=function(t,e,n){return t.wasInPageStateDuringPeriod(ha.FROZEN,e.relative,n)?void 0:gt(n)}(e,r,t.duration),u=et(t.url).getParse(),c=N({date:r.timeStamp,resource:{id:J(),type:o,duration:s,method:t.method,status:t.status,statusGroup:st(t.status),url:po(t.url)?vo(t.url):t.url,urlHost:u.Host,urlPath:u.Path,urlPathGroup:tt(u.Path),urlQuery:nt(t.url)},type:ce.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:c,domainContext:{performanceEntry:n,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}(t,n)}))}));var o=mo(e,{type:go.RESOURCE,buffered:!0}).subscribe((function(t){for(var n=0,r=t;n<r.length;n++){var i=r[n];Ji(i)||eo(i.name,e.resourceUrlLimit)||a((function(){return Ds(i,e)}))}}));function a(e){r.push((function(){var n=e();n&&t.notify(pn.RAW_RUM_EVENT_COLLECTED,n)}))}return i(e,(function(t){a((function(){return Ds(t,e)}))})),{stop:function(){o.unsubscribe()}}}function Ds(t,e){var n,r=Ct(t.startTime),i=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),o=Qi(t),a=Ms(t),s=et(t.name).getParse(),u=N({date:r.timeStamp,resource:{id:J(),type:o,url:t.name,urlHost:s.Host,urlPath:s.Path,urlPathGroup:tt(s.Path),urlQuery:nt(t.name),method:"GET",status:(n=t.responseStatus,0===n?void 0:n),statusGroup:st(t.responseStatus)},type:ce.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:u,domainContext:{performanceEntry:t}}}function Ms(t){return{resource:N({},{duration:no(t)},uo(t),ro(t))}}function Us(t){return Us="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},Us(t)}var Ps={sdkVersion:"3.2.9",sdkName:"df_web_rum_sdk"};function Vs(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.sessionReplaySampleRate||Pt(t.sessionReplaySampleRate)){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(!L(t.allowedTracingUrls))return void o.error("Allowed Tracing URLs should be an array");var e=[];return A(t.allowedTracingUrls,(function(n){var r;Lt(n)?e.push({match:n,traceType:Gt(t.traceType,pe.DDTRACE)}):"object"===it(r=n)&&Lt(r.match)&&j(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(!L(t.allowedTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return A(t.allowedTracingOrigins,(function(n){var r=Bs(n,Gt(t.traceType,pe.DDTRACE));r&&e.push(r)})),e}if(void 0!==t.allowedDDTracingOrigins){if(!L(t.allowedDDTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return A(t.allowedDDTracingOrigins,(function(n){var r=Bs(n,Gt(t.traceType,pe.DDTRACE));r&&e.push(r)})),e}return[]}(t);if(n)if(void 0===t.tracingSampleRate||Pt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||L(t.excludedActivityUrls)){var r=gr(t);if(r){var i,a,s=!!Gt(t.trackUserInteractions,t.trackInteractions);return R({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Gt(t.sessionReplaySampleRate,100),tracingSampleRate:t.tracingSampleRate,allowedTracingUrls:n,injectTraceHeader:t.injectTraceHeader&&d(t.injectTraceHeader,"injectTraceHeader threw an error:"),generateTraceId:t.generateTraceId&&d(t.generateTraceId,"generateTraceId threw an error:"),excludedActivityUrls:Gt(t.excludedActivityUrls,[]),workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:s,enableLongAnimationFrame:!!t.enableLongAnimationFrame,trackViewsManually:!!t.trackViewsManually,traceType:Gt(t.traceType,pe.DDTRACE),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:(i=_r,a=t.defaultPrivacyLevel,z(P(i),(function(t){return i[t]===a}))?t.defaultPrivacyLevel:_r.MASK_USER_INPUT)},r,Ps)}}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("Premium 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 Bs(t,e){var n;if("string"==typeof t?n=t:t instanceof RegExp?n=function(e){return t.test(En(e))}:"function"==typeof t&&(n=function(e){return t(En(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 zs(t,e,n){var r,i,a,s,u=t.ignoreInitIfSyntheticsWillInjectRum,c=t.startDeflateWorker,l=Qt();function f(){if(a&&s){var t;if(s.trackViewsManually){if(!r)return;l.remove(r.callback),t=r.options}var e=n(s,i,t);l.drain(e)}}function d(t){var e=Ii();if(e&&(t=function(t){return R({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",sessionSampleRate:100})}(t)),a=t,function(t){ii({type:Jr.configuration,configuration:t})}(at(t)),s)Vi("DATAFLUX_RUM",t);else{var n=Vs(t);n&&(e||n.sessionStoreStrategyType?(!n.compressIntakeRequests||n.sendContentTypeByJson||e||!c||(i=c(n,"RUM",ut)))&&(s=n,mr().subscribe(ut),f()):o.warn("No storage available for session. We will not send any data."))}}return{init:function(t){t?(a=t,u&&Boolean(window._GUANCE_SYNTHETICS_INJECTS_RUM||Un(Ci))||d(t)):o.error("Missing configuration")},getInitConfiguration:function(){return a},getInternalContext:ut,stopSession:ut,addTiming:function(t,e){void 0===e&&(e=wt()),l.add((function(n){n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=Et());var n=function(n){n.startView(t,e)};l.add(n),r||(r={options:t,callback:n},f())},addAction:function(t,n){void 0===n&&(n=e()),l.add((function(e){e.addAction(t,n)}))},addError:function(t,n){void 0===n&&(n=e()),l.add((function(e){e.addError(t,n)}))}}}var Hs={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},Fs={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},Ws={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},Gs={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},$s={Play:0,Pause:1};function Ks(t){var e=function(t,e){if("object"!=Us(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Us(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Us(e)?e:e+""}function js(t,e,n){return(e=Ks(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qs={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:_r.ALLOW,MASK:_r.MASK,MASK_USER_INPUT:_r.MASK_USER_INPUT},Zs="data-gc-privacy",Ys="allow",Qs="mask",Xs="mask-user-input",Js="hidden",tu="gc-privacy-allow",eu="gc-privacy-mask",nu="gc-privacy-mask-user-input",ru="gc-privacy-hidden",iu="***",ou="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",au={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function su(t,e,n){if(n&&n.has(t))return n.get(t);var r=Rr(t),i=r?su(r,e):e,o=uu(cu(t),i);return n&&n.set(t,o),o}function uu(t,e){switch(e){case qs.HIDDEN:case qs.IGNORE:return e}switch(t){case qs.ALLOW:case qs.MASK:case qs.MASK_USER_INPUT:case qs.HIDDEN:case qs.IGNORE:return t;default:return e}}function cu(t){if(Ir(t)){var e=t.getAttribute(Zs);if("BASE"===t.tagName)return qs.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return qs.MASK;if("hidden"===n.type)return qs.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return qs.MASK}return e===Js||t.classList.contains(ru)?qs.HIDDEN:e===Qs||t.classList.contains(eu)?qs.MASK:e===Xs||t.classList.contains(nu)?qs.MASK_USER_INPUT:e===Ys||t.classList.contains(tu)?qs.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)?qs.IGNORE:void 0}}function lu(t,e){switch(e){case qs.MASK:case qs.HIDDEN:case qs.IGNORE:return!0;case qs.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(t)?fu(t.parentNode):fu(t);default:return!1}}function fu(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!!au[e.tagName]}var du=function(t){return t.replace(/\S/g,"x")};function pu(t,e,n){var r=t.parentElement&&t.parentElement.tagName,i=t.textContent||"";if(!e||i.trim()){var o=n;if("SCRIPT"===r)i=iu;else if(o===qs.HIDDEN)i=iu;else if(lu(t,o))if("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r){if(!i.trim())return}else i="OPTION"===r?iu:du(i);return i}}var vu=new WeakMap;function hu(t){return vu.has(t)}function _u(t){return vu.get(t)}function gu(t,e){var n=t.tagName,r=t.value;if(lu(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i||"range"===i))return r;if(!r||"OPTION"===n)return;return iu}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var mu=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,yu=/^[A-Za-z]+:|^\/\//,bu=/^data:.*,/i;function Eu(t,e){return t.replace(mu,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||yu.test(s)||bu.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 wn(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}function wu(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch(t){}return e?Eu(((n=Array.from(e,zt()===Bt.SAFARI?Tu:Su).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 Su(t){return function(t){return"styleSheet"in t}(t)&&wu(t.styleSheet)||t.cssText}function Tu(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return Su(t)}function Iu(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 Cu(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var Ou=/^[^ \t\n\r\u000c]+/,Au=/^[, \t\n\r\u000c]+/;var Ru={INITIAL_FULL_SNAPSHOT:0,SUBSEQUENT_FULL_SNAPSHOT:1,MUTATION:2};function xu(t,e,n){return ku(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function ku(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:Fs.Document,childNodes:Nu(t,e),adoptedStyleSheets:Iu(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=Or(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:Fs.DocumentFragment,childNodes:Nu(t,e),isShadowRoot:n,adoptedStyleSheets:n?Iu(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return n=t,{type:Fs.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=Uu(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=uu(cu(t),e.parentNodePrivacyLevel);var o;if(i===qs.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:Fs.Element,tagName:n,attributes:js({rr_width:s+"px",rr_height:u+"px"},Zs,Js),childNodes:[],isSVG:r}}if(i===qs.IGNORE)return;var c=function(t,e,n){if(e===qs.HIDDEN)return{};for(var r={},i=Uu(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=Lu(t,e,s,n.configuration);null!==u&&(r[s]=Pu(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=gu(t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===qs.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=wu(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=wu(t.sheet))&&(r._cssText=d)}var p,v,h=t;"input"!==i||"radio"!==h.type&&"checkbox"!==h.type||(e===qs.ALLOW?r.checked=!!h.checked:lu(h,e)&&delete r.checked);if("audio"===i||"video"===i){var _=t;r.rr_mediaState=_.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case Ru.INITIAL_FULL_SNAPSHOT:p=Math.round(t.scrollTop),v=Math.round(t.scrollLeft),(p||v)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:v});break;case Ru.SUBSEQUENT_FULL_SNAPSHOT:if(g.elementsScrollPositions.has(t)){var m=g.elementsScrollPositions.get(t);p=m.scrollTop,v=m.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||Cr(t)}(t)&&"style"!==n){l=Nu(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:R({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:Fs.Element,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=pu(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:Fs.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:Fs.CDATA,textContent:""}}var n}(t,e);if(!n)return null;var r=_u(t)||Du++,i=n;return i.id=r,function(t,e){vu.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function Nu(t,e){var n=[];return Ar(t,(function(t){var r=ku(t,e);r&&n.push(r)})),n}function Lu(t,e,n,r){if(e===qs.HIDDEN)return null;var i=t.getAttribute(n);if(e===qs.MASK&&n!==Zs&&!Fo.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return iu}if("IMG"===o||"SOURCE"===o){if("src"===n||"srcset"===n)return ou;if("onerror"===n)return null}if("A"===o&&"href"===n)return iu;if(i&&$t(n,"data-"))return iu;if("IFRAME"===o&&"srcdoc"===n)return iu}return i&&"string"==typeof i&&po(i)?vo(i):i}var Du=1;var Mu=/[^a-z1-6-_]/;function Uu(t){var e=(t+"").toLowerCase().trim();return Mu.test(e)?"div":e}function Pu(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Cu(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(Au),!(n>=e.length);){var o=r(Ou);if(","===o.slice(-1))o=Cu(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=Cu(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?Eu(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?Cu(t,r):r:Cu(t,r):r;var i}function Vu(t){return Boolean(t.changedTouches)}function Bu(t,e){return{data:R({source:t},e),type:Hs.IncrementalSnapshot,timestamp:wt()}}function zu(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}}var Hu=100,Fu=16;function Wu(t,e,n,r){var i=ji();if(!i)return{stop:ut,flush:ut};var o=function(t){var e=ut,n=[];function r(){e(),t(n),n=[]}var i=Q(r,Fu,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(t){0===n.length&&(e=In(o,{timeout:Hu})),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){Gu(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!hu(e)&&!Or(e))return!1;e=Rr(e)}return!0}(t.target)&&su(t.target,n.defaultPrivacyLevel,i)!==qs.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 _=su(h.parentNode,e.defaultPrivacyLevel,r);if(_!==qs.HIDDEN&&_!==qs.IGNORE){var g=ku(h,{serializedNodeIds:f,parentNodePrivacyLevel:_,serializationContext:{status:Ru.MUTATION,shadowRootsController:n},configuration:e});if(g){var m=Rr(h);d.push({nextId:E(h),parentId:_u(m),node:g})}}}}var y=[];return o.forEach((function(t,e){hu(e)&&y.push({parentId:_u(t),id:_u(e)})})),{adds:d,removes:y,serializedNodeIds:f,hasBeenSerialized:b};function b(t){return hu(t)&&f.has(_u(t))}function E(t){for(var e=t.nextSibling;e;){if(hu(e))return _u(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 hu(t)&&c.has(_u(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=su(Rr(u.target),e.defaultPrivacyLevel,n);c!==qs.HIDDEN&&c!==qs.IGNORE&&r.push({id:_u(u.target),value:Gt(pu(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=su(c.target,e.defaultPrivacyLevel,n),d=Lu(c.target,f,c.attributeName,e);if("value"===c.attributeName){var p=gu(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:_u(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(c(o.addMutations));return a.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){a.disconnect(),o.stop()},flush:function(){o.flush()}}}function Gu(t,e){Cr(t)&&e(t.shadowRoot),Ar(t,(function(t){return Gu(t,e)}))}var $u,Ku=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},ju=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}},qu=50,Zu=100,Yu=200,Qu=new WeakMap,Xu=1;function Ju(t){return Qu.has(t)||Qu.set(t,Xu++),Qu.get(t)}function tc(t){var e,n,r,i,o,a,s,u,c,l=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,Wu(e,n,r,document)),f=function(t){var e=Q((function(e){var n=ic(e);if(hu(n)){var r=nc(e);if(!r)return;var i={id:_u(n),timeOffset:0,x:r.x,y:r.y};t([i],Vu(e)?Ws.TouchMove:Ws.MouseMove)}}),qu,{trailing:!1}),n=e.cancel,r=e.throttled,i=an(document,[oe.MOUSE_MOVE,oe.TOUCH_MOVE],r,{capture:!0,passive:!0}).stop;return function(){i(),n()}}(t.mousemoveCb),d=function(t,e){var n=function(n){var r=ic(n);if(su(r,e)!==qs.HIDDEN&&hu(r)){var i,o=_u(r),a=ec[n.type];if(a!==Gs.Blur&&a!==Gs.Focus){var s=nc(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=R({id:Ju(n)},Bu(Ws.MouseInteraction,i));t(u)}};return an(document,Object.keys(ec),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration.defaultPrivacyLevel),p=function(t,e,n){var r=Q((function(r){var i=ic(r);if(i&&su(i,e)!==qs.HIDDEN&&hu(i)){var o=_u(i),a=i===document?{scrollTop:Nr(),scrollLeft:kr()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),Zu),i=r.cancel,o=r.throttled,a=on(document,oe.SCROLL,o,{capture:!0,passive:!0}).stop;return function(){a(),i()}}(t.scrollCb,t.configuration.defaultPrivacyLevel,t.elementsScrollPositions),v=function(t){return Ua().subscribe(t).unsubscribe}(t.viewportResizeCb),h=rc(t.inputCb,t.configuration.defaultPrivacyLevel),_=(i=t.mediaInteractionCb,o=t.configuration.defaultPrivacyLevel,a=function(t){var e=ic(t);e&&su(e,o)!==qs.HIDDEN&&hu(e)&&i({id:_u(e),type:t.type===oe.PLAY?$s.Play:$s.Pause})},an(document,[oe.PLAY,oe.PAUSE],a,{capture:!0,passive:!0}).stop),g=function(t){function e(t,e){t&&hu(t.ownerNode)&&e(_u(t.ownerNode))}var n=[Qe(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}]})}))})),Qe(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(Qe(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=zu(r);n&&(n.push(a||0),t({id:e,adds:[{rule:o,index:n}]}))}))})),Qe(r.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=zu(r);n&&(n.push(i),t({id:e,removes:[{index:n}]}))}))})))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb),m=(s=t.focusCb,an(window,[oe.FOCUS,oe.BLUR],(function(){s({has_focus:document.hasFocus()})})).stop),y=function(t){if(!window.visualViewport)return ut;var e=Q((function(){t(ju())}),Yu,{trailing:!1}),n=an(window.visualViewport,[oe.RESIZE,oe.SCROLL],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb),b=(u=t.lifeCycle,c=t.frustrationCb,u.subscribe(pn.RAW_RUM_EVENT_COLLECTED,(function(t){t.rawRumEvent.type===ce.ACTION&&t.rawRumEvent.action.type===se.CLICK&&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&&c({timestamp:t.rawRumEvent.date,type:Hs.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return Ju(t)}))}})})).unsubscribe);return{flush:function(){l.flush()},stop:function(){l.stop(),f(),d(),p(),v(),h(),_(),g(),m(),y(),b()}}}var ec=(js($u={},oe.POINTER_UP,Gs.MouseUp),js($u,oe.MOUSE_DOWN,Gs.MouseDown),js($u,oe.CLICK,Gs.Click),js($u,oe.CONTEXT_MENU,Gs.ContextMenu),js($u,oe.DBL_CLICK,Gs.DblClick),js($u,oe.FOCUS,Gs.Focus),js($u,oe.BLUR,Gs.Blur),js($u,oe.TOUCH_START,Gs.TouchStart),js($u,oe.TOUCH_END,Gs.TouchEnd),$u);function nc(t){var e=Vu(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=Ku(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function rc(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=an(n,o?[oe.CHANGE]:[oe.INPUT,oe.CHANGE],(function(t){var e=ic(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=ut;else{var u=[Xe(HTMLInputElement.prototype,"value",c),Xe(HTMLInputElement.prototype,"checked",c),Xe(HTMLSelectElement.prototype,"value",c),Xe(HTMLTextAreaElement.prototype,"value",c),Xe(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function c(t){var n=su(t,e);if(n!==qs.HIDDEN){var r,i=t.type;if("radio"===i||"checkbox"===i){if(lu(t,n))return;r={isChecked:t.checked}}else{var o=gu(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="'+W(u)+'"]'),s=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(e,n){if(hu(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(R({id:_u(e)},n)))}}}function ic(t){return!0===t.composed&&Cr(t.target)?t.composedPath()[0]:t.target}var oc=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){if(!i.has(e)){var a=Wu(n,t,o,e),s=a.flush,u=a.stop,c=rc(r,t.defaultPrivacyLevel,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};function ac(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(Bu(Ws.Mutation,t))},o=function(t){e(Bu(Ws.Input,t))},a=oc(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=wt()),void 0===i&&(i={status:Ru.INITIAL_FULL_SNAPSHOT,elementsScrollPositions:r,shadowRootsController:a});var o=Pa(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:Hs.Meta,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:Hs.Focus,timestamp:n}),e({data:{node:xu(document,t.configuration,i),initialOffset:{left:kr(),top:Nr()}},type:Hs.FullSnapshot,timestamp:n}),window.visualViewport&&e({data:ju(),type:Hs.VisualViewport,timestamp:n})};s();var u=tc({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(Bu(Ws.MediaInteraction,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(Bu(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(Bu(Ws.Scroll,t))},styleSheetCb:function(t){e(Bu(Ws.StyleSheetRule,t))},viewportResizeCb:function(t){e(Bu(Ws.ViewportResize,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:Hs.Focus,timestamp:wt()})},visualViewportResizeCb:function(t){e({data:t,type:Hs.VisualViewport,timestamp:wt()})},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:Ru.SUBSEQUENT_FULL_SNAPSHOT,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function sc(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),uc(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function uc(t,e,n){void 0===n&&(n=""),A(K(t),(function(t){var r=t[1],i=t[0];"object"===Us(r)&&null!==r?uc(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var cc,lc=10;function fc(t){return dc(t).segments_count}function dc(t){var e;return cc||(cc=new Map),cc.has(t)?e=cc.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},cc.set(t,e),cc.size>lc&&function(){if(!cc)return;if(cc.keys)cc.delete(cc.keys().next().value);else{var t=!0;cc.forEach((function(e,n){t&&(cc.delete(n),t=!1)}))}}()),e}function pc(t){var e=t.context,n=t.creationReason,r=t.encoder,i=0,o=e.view.id,a=R({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:fc(o),source:"browser"},e);return function(t){dc(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===Hs.FullSnapshot),function(t){dc(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){dc(t).segments_total_raw_size+=e}(a.view.id,e.rawBytesCount),t(a,e)}))}}}var vc=30*lt,hc=6e4;function _c(t,e,n,r,i,o){return function(t,e,n,r){var i={status:gc.WaitingForInitialRecord,nextSegmentCreationReason:"init"},o=t.subscribe(pn.VIEW_CREATED,(function(){c("view_change")})),a=o.unsubscribe,s=t.subscribe(pn.PAGE_EXITED,(function(t){c(t.reason)})),u=s.unsubscribe;function c(t){i.status===gc.SegmentPending&&(i.segment.flush((function(e,r){var i=sc(r.output,e,r.rawBytesCount);Tr(t)?n.sendOnExit(i):n.send(i)})),_(i.expirationTimeoutId)),i="stop"!==t?{status:gc.WaitingForInitialRecord,nextSegmentCreationReason:t}:{status:gc.Stopped}}return{addRecord:function(t){if(i.status!==gc.Stopped){if(i.status===gc.WaitingForInitialRecord){var n=e();if(!n)return;i={status:gc.SegmentPending,segment:pc({encoder:r,context:n,creationReason:i.nextSegmentCreationReason}),expirationTimeoutId:h((function(){c("segment_duration_limit")}),vc)}}i.segment.addRecord(t,(function(t){t>hc&&c("segment_bytes_limit")}))}},stop:function(){c("stop"),a(),u()}}}(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)}var gc={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var mc=0,yc=1,bc=2,Ec=3;var wc,Sc,Tc,Ic,Cc=function(t,e){if(Ii()||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:ut,stop:ut,getReplayStats:function(){},onRumStart:ut,isRecording:function(){return!1}};var n={status:mc},r=function(){n={status:yc}},i=function(){n={status:mc}};return{start:function(t){r(t)},stop:function(){i()},onRumStart:function(o,a,s,u,c){var l;o.subscribe(pn.SESSION_EXPIRED,(function(){n.status!==bc&&n.status!==Ec||(i(),n={status:yc})})),o.subscribe(pn.PAGE_EXITED,(function(t){t.reason===Sr.UNLOADING&&i()})),o.subscribe(pn.SESSION_RENEWED,(function(){n.status===yc&&r()})),r=function(r){var f=s.findTrackedSession();f&&f.sessionReplayAllowed?n.status!==bc&&n.status!==Ec&&(n={status:bc},xr("interactive",(function(){if(n.status===bc){var r=(l||(c||(c=Ca(a,"Session Replay",(function(){i()}),e)),c&&(l=Ea(c,ba.REPLAY))),l);if(r){var f=t(o,a,s,u,r);n={status:Ec,stopRecording:f.stop}}else n={status:mc}}}))):n={status:yc}},i=function(){n.status!==mc&&(n.status===Ec&&n.stopRecording(),n={status:mc})},n.status===yc&&r()},isRecording:function(){return Oa()===Ta.Initialized&&n.status===Ec},getReplayStats:function(t){return Oa()===Ta.Initialized?function(t){return cc&&cc.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a=[],s=o||fi(e.sessionReplayEndPoint,hc,e.retryMaxSize,(function(e){t.notify(pn.RAW_ERROR_COLLECTED,{error:e}),ai("Error reported to customer",{"error.message":e.message})})),u=_c(t,e,n,r,s,i),c=u.addRecord;a.push(u.stop);var l=ac({emit:c,configuration:e,lifeCycle:t});a.push(l.stop);var f=l.takeSubsequentFullSnapshot,d=l.flushMutations,p=t.subscribe(pn.VIEW_ENDED,(function(){d(),c({timestamp:wt(),type:Hs.ViewEnd})}));a.push(p.unsubscribe);var v=t.subscribe(pn.VIEW_CREATED,(function(t){f(t.startClocks.timeStamp)}));return a.push(v.unsubscribe),{stop:function(){a.forEach((function(t){t()}))}}})),Oc=function(t,e,n){void 0===n&&(n={});var r=ki(Ri),i=ki(Ai);function a(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(r,i,e)}var s,f,d=zs(n,a,(function(o,s,u){o.storeContextsToLocal&&(Di(o,r,"rum",Ri),Di(o,i,"rum",Ai));var c=t(o,e,a,u,s&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(s,t)}:Mi);return e.onRumStart(c.lifeCycle,o,c.session,c.viewContexts,s),d=function(t,e){return R({init:function(t){Vi("DATAFLUX_RUM",t)},initConfiguration:t.getInitConfiguration()},e)}(d,c),c})),p=c((function(t){var e="object"===Us(t)?t:{name:t};d.startView(e),ui({feature:"start-view"})})),v=(s={init:c((function(t){d.init(t)})),addRumGlobalContext:c((function(t,e){r.add(t,e),ui({feature:"set-global-context"})})),setGlobalContextProperty:c((function(t,e){r.setContextProperty(t,e),ui({feature:"set-global-context"})})),removeRumGlobalContext:c((function(t){return r.remove(t)})),removeGlobalContextProperty:c((function(t){return r.removeContextProperty(t)})),getRumGlobalContext:c((function(){return r.get()})),getGlobalContext:c((function(){return r.getContext()})),setRumGlobalContext:c((function(t){r.set(t),ui({feature:"set-global-context"})})),setGlobalContext:c((function(t){r.setContext(t),ui({feature:"set-global-context"})})),clearGlobalContext:c((function(){return r.clearContext()})),getInitConfiguration:c((function(){return at(d.initConfiguration)})),getInternalContext:c((function(t){return d.getInternalContext(t)})),addDebugSession:c((function(t){})),clearDebugSession:c((function(){})),getDebugSession:c((function(){})),addAction:c((function(t,e){var n=je();l((function(){d.addAction({name:He(t),context:He(e),startClocks:Et(),type:se.CUSTOM,handlingStack:n}),ui({feature:"add-action"})}))})),addError:c((function(t,e){var n=je();l((function(){d.addError({error:t,handlingStack:n,context:He(e),startClocks:Et()}),ui({feature:"add-error"})}))})),addTiming:c((function(t,e){d.addTiming(He(t),e)})),setUser:c((function(t){(function(t){var e="object"===it(t);return e||o.error("Unsupported user:",t),e})(t)&&i.setContext(Ui(t)),ui({feature:"set-user"})})),getUser:c((function(){return i.getContext()})),setUserProperty:c((function(t,e){var n={};n[t]=e;var r=Ui(n)[t];i.setContextProperty(t,r),ui({feature:"set-user"})})),removeUserProperty:c((function(t){return i.removeContextProperty(t)})),removeUser:c((function(){return i.clearContext()})),clearUser:c((function(){return i.clearContext()})),startView:p,stopSession:c((function(){d.stopSession(),ui({feature:"stop-session"})})),startSessionReplayRecording:c((function(t){e.start(t),ui({feature:"start-session-replay-recording",force:t&&t.force})})),stopSessionReplayRecording:c(e.stop)},f=R({onReady:function(t){t()}},s),Object.defineProperty(f,"_setDebug",{get:function(){return u},enumerable:!1}),f);return v}((function(t,e,n,r,i){var o=[],a=new vn,s=function(t){var e=oi(ni.RUM,t);return e}(t),u=function(t){a.notify(pn.RAW_ERROR_COLLECTED,{error:t})},l=new tn((function(t){var e=an(window,[oe.VISIBILITY_CHANGE,oe.FREEZE],(function(e){e.type===oe.VISIBILITY_CHANGE&&"hidden"===document.visibilityState?t.notify({reason:Sr.HIDDEN}):e.type===oe.FREEZE&&t.notify({reason:Sr.FROZEN})}),{capture:!0}),n=on(window,oe.BEFORE_UNLOAD,(function(){t.notify({reason:Sr.UNLOADING})}));return function(){e.stop(),n.stop()}}));l.subscribe((function(t){a.notify(pn.PAGE_EXITED,t)})),o.push((function(){pageExitSubscription.unsubscribe()}));var f=Ii()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:zi.WITHOUT_SESSION_REPLAY,sessionReplayAllowed:!1};return{findTrackedSession:function(){return t},expire:ut,expireObservable:new tn}}():Fi(t,a);if(Ii())!function(t){var e=Ti();t.subscribe(pn.RUM_EVENT_COLLECTED,(function(t){var n=bi(t).rowData;e.send("rum",n)}))}(a);else{var d=Ra(t,a,s.observable,u,l,f.expireObservable,i);o.push((function(){d.stop()}))}var p,v=Ki(t),h=(p=ji(),new tn((function(t){if(p){var e=new p(c((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),_=qi(location),g=_a(),m=function(t,e,n,r,i,o,a,s,u,c){var l=function(t){var e=te({expireDelay:Ba});return t.subscribe(pn.BEFORE_VIEW_CREATED,(function(t){e.add(function(t){return{service:t.service,version:t.version,id:t.id,name:t.name}}(t),t.startClocks.relative)})),t.subscribe(pn.AFTER_VIEW_ENDED,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(pn.VIEW_UPDATED,(function(t){var n=e.find(t.startClocks.relative);n&&t.name&&(n.name=t.name)})),t.subscribe(pn.SESSION_RENEWED,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),f=function(t,e,n){var r,i=te({expireDelay:Va});t.subscribe(pn.BEFORE_VIEW_CREATED,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e})),t.subscribe(pn.AFTER_VIEW_ENDED,(function(t){i.closeActive(t.endClocks.relative)}));var o=e.subscribe((function(t){var e=i.find();if(e){var n=bt();i.closeActive(n),i.add(a({url:t.newLocation.href,location:t.newLocation,referrer:e.referrer}),n)}}));function a(t){var e=t.location.pathname,n=t.location.hash;return n&&!jt(n)&&(e="/"+qt(n)),{url:t.url,referrer:t.referrer,host:t.location.host,path:e,pathGroup:tt(e),urlQuery:nt(t.location.href)}}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(pn.AUTO_ACTION_COMPLETED,(function(e){t.notify(pn.RAW_RUM_EVENT_COLLECTED,ma(e,r))}));var i={findActionId:ut,findAllActionId:ut};return n.trackUserInteractions&&(i=ca(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(pn.RAW_RUM_EVENT_COLLECTED,k({savedCommonContext:n},ma(e,r)))}}}(t,s,e,o),p=d.actionContexts,v=d.addAction,h=(_=Pa(),{get:function(){return{viewport:_}},stop:Ua().subscribe((function(t){_=t})).unsubscribe});var _;return Ma(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()}}}(a,t,location,f,v,g,_,h,n,u),y=m.viewContexts,b=m.urlContexts,E=m.actionContexts,w=m.stop,S=m.addAction;o.push(w),ri.drain(),s.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:f.findTrackedSession()&&f.findTrackedSession().id},view:{id:y.findView()&&y.findView().id},action:{id:E.findActionId(),ids:E.findAllActionId()}}}));var T=ps(a,t,location,h,_,g,e,r),I=T.addTiming,C=T.startView,O=T.stop;o.push(O);var A=Ls(a,t,g);if(o.push(A.stop),t.enableLongAnimationFrame){var R=function(t,e){var n=mo(e,{type:go.LONG_ANIMATION_FRAME,buffered:!0}).subscribe((function(e){for(var n=0,r=e;n<r.length;n++){var i=r[n],o=Ct(i.startTime),a={date:o.timeStamp,longTask:{id:J(),entryType:le.LONG_ANIMATION_FRAME,duration:gt(i.duration),blockingDuration:gt(i.blockingDuration),firstUiEventTimestamp:gt(i.firstUIEventTimestamp),renderStart:gt(i.renderStart),styleAndLayoutStart:gt(i.styleAndLayoutStart),startTime:gt(i.startTime),scripts:i.scripts.map((function(t){return{duration:gt(t.duration),pause_duration:gt(t.pauseDuration),forced_style_and_layout_duration:gt(t.forcedStyleAndLayoutDuration),start_time:gt(t.startTime),execution_start:gt(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:ce.LONG_TASK};t.notify(pn.RAW_RUM_EVENT_COLLECTED,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i}})}}));return{stop:function(){n.unsubscribe()}}}(a,t);o.push(R.stop)}else!function(t,e){var n=mo(e,{type:go.LONG_TASK,buffered:!0}).subscribe((function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.entryType!==go.LONG_TASK)break;var i=Ct(r.startTime),o={date:i.timeStamp,longTask:{id:J(),entryType:le.LONG_TASK,duration:gt(r.duration)},type:ce.LONG_TASK};t.notify(pn.RAW_RUM_EVENT_COLLECTED,{rawRumEvent:o,startTime:i.relative,domainContext:{performanceEntry:r}})}}))}(a,t);var x=za(a,0,g).addError;Os(a,t,f);var N=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,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,urlQuery:s.urlQuery}}}}}}(t.applicationId,f,y,E,b);return{addAction:S,addError:x,addTiming:I,configuration:t,lifeCycle:a,viewContexts:y,session:f,startView:C,stopSession:function(){f.expire()},getInternalContext:N.get,stop:function(){o.forEach((function(t){t()}))}}}),Cc,{startDeflateWorker:Ca,createDeflateEncoder:Ea});wc=v(),Tc=Oc,Ic=wc[Sc="DATAFLUX_RUM"],wc[Sc]=Tc,Ic&&Ic.q&&A(Ic.q,(function(t){d(t,"onReady callback threw an error:")()}))}();
|