@cloudcare/browser-rum 3.2.36 → 3.2.37
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/perStartRum.js +8 -0
- package/cjs/boot/perStartRum.js.map +1 -1
- package/cjs/boot/rumPublicApi.js +16 -0
- package/cjs/boot/rumPublicApi.js.map +1 -1
- package/cjs/domain/deflate/deflateWorker.js +1 -1
- package/cjs/domain/replay/record/serialize.js.map +1 -1
- package/cjs/domain/rumEventsCollection/actions/actionCollection.js +4 -2
- package/cjs/domain/rumEventsCollection/actions/actionCollection.js.map +1 -1
- package/esm/boot/buildEnv.js +1 -1
- package/esm/boot/perStartRum.js +8 -0
- package/esm/boot/perStartRum.js.map +1 -1
- package/esm/boot/rumPublicApi.js +17 -1
- package/esm/boot/rumPublicApi.js.map +1 -1
- package/esm/domain/deflate/deflateWorker.js +1 -1
- package/esm/domain/replay/record/serialize.js.map +1 -1
- package/esm/domain/rumEventsCollection/actions/actionCollection.js +4 -2
- package/esm/domain/rumEventsCollection/actions/actionCollection.js.map +1 -1
- package/package.json +2 -2
- package/src/boot/perStartRum.js +9 -0
- package/src/boot/rumPublicApi.js +18 -2
- package/src/domain/replay/record/serialize.js +0 -1
- package/src/domain/rumEventsCollection/actions/actionCollection.js +3 -2
- package/types/index.d.ts +5 -0
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)},a=!1;function s(t){a=t}function u(t){return function(){return c(t,this,arguments)}}function c(t,e,n){try{return t.apply(e,n)}catch(t){if(l(t),r)try{r(t)}catch(t){l(t)}}}function l(){var t=[].slice.call(arguments);a&&o.error.apply(null,["[MONITOR]"].concat(t))}function f(t,e){return function(){var n=[].slice.call(arguments);try{return t.apply(this,n)}catch(t){o.error(e,t)}}}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function p(){if("object"===("undefined"==typeof globalThis?"undefined":d(globalThis)))return globalThis;Object.defineProperty(Object.prototype,"_gc_temp_",{get:function(){return this},configurable:!0});var t=_gc_temp_;return delete Object.prototype._gc_temp_,"object"!==d(t)&&(t="object"===("undefined"==typeof self?"undefined":d(self))?self:"object"===("undefined"==typeof window?"undefined":d(window))?window:{}),t}function v(t,e){var n,r=p();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}function h(t,e){return v(p(),"setTimeout")(u(t),e)}function m(t){v(p(),"clearTimeout")(t)}function g(t,e){return v(p(),"setInterval")(u(t),e)}function y(t){v(p(),"clearInterval")(t)}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}var b=Array.prototype,w=(Function.prototype,Object.prototype),S=b.slice,x=w.toString,E=w.hasOwnProperty,k=b.forEach,T=Array.isArray,C=!1,O=function(t,e,n){if(null===t)return!1;if(k&&t.forEach===k)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&e.call(n,t[r],r,t)===C)return!1}else for(var o in t)if(E.call(t,o)&&e.call(n,t[o],o,t)===C)return!1};function I(t){return O(S.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function A(t){return I({},t)}var R=function(t){return O(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},P=function(t){return O(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&($(e[n])&&$(t[n])?R(t[n],e[n]):t[n]=e[n])})),t},N=T||function(t){return"[object Array]"===x.call(t)},M=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},L=function(t){return t?t.toArray?t.toArray():N(t)?S.call(t):(e=t)&&E.call(e,"callee")?S.call(t):D(t):[];var e},D=function(t){var e=[];return null===t||O(t,(function(t){e[e.length]=t})),e},U=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(E.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(E.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(E.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},V=function(t,e,n){return void 0===n&&(n=!1),z(t,(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?Ft(e,t):t===e}catch(t){o.error(t)}return!1}))},j=function(t){return t+="",window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}))},$=function(t){return null!==t&&"[object Object]"===x.call(t)},H=function(t){if($(t)){for(var e in t)if(E.call(t,e))return!1;return!0}return!1},F=function(t){var e=[];return O(t,(function(t,n){e.push([n,t])})),e},W=function(t){return"[object String]"===x.call(t)},q=function(t){return"[object Boolean]"===x.call(t)},G=function(t){return"[object Number]"===x.call(t)&&/[\d\.]+/.test(String(t))},Q=(Date.now,function(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1,u=this;return{throttled:function(){s?r=arguments:(o?t.apply(u,arguments):r=arguments,s=!0,i=h((function(){a&&r&&t.apply(u,r),s=!1,r=void 0}),e))},cancel:function(){m(i),s=!1,r=void 0}}}),K=function(t){if("function"==typeof btoa)return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x"+e)})));var e,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",l=[];if(!(t=String(t)))return t;t=function(t){var e,n,r,i,o="";for(e=n=0,r=(t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=t.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(n>e&&(o+=t.substring(e,n)),o+=s,e=n=i+1)}return n>e&&(o+=t.substring(e,t.length)),o}(t);do{e=(o=t.charCodeAt(s++)<<16|t.charCodeAt(s++)<<8|t.charCodeAt(s++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,l[u++]=a.charAt(e)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<t.length);switch(c=l.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c};function X(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,X)}function J(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var Y=function(t){var e=function(t){this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Path:8,URL:0,QueryString:9,Fragment:10},this._values={},this._regex=null,this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/,void 0!==t&&this._parse(t)};return e.prototype.setUrl=function(t){this._parse(t)},e.prototype._initValues=function(){for(var t in this._fields)this._values[t]=""},e.prototype.addQueryString=function(t){if("object"!==_(t))return!1;var e=this._values.QueryString||"";for(var n in t)e=new RegExp(n+"[^&]+").test(e)?e.replace(new RegExp(n+"[^&]+"),n+"="+t[n]):"&"===e.slice(-1)?e+n+"="+t[n]:""===e?n+"="+t[n]:e+"&"+n+"="+t[n];this._values.QueryString=e},e.prototype.getParse=function(){return this._values},e.prototype.getUrl=function(){var t="";return t+=this._values.Origin,t+=this._values.Path,t+=this._values.QueryString?"?"+this._values.QueryString:""},e.prototype._parse=function(t){this._initValues();var e=this._regex.exec(t);if(!e)throw"DPURLParser::_parse -> Invalid URL";for(var n in this._fields)void 0!==e[this._fields[n]]&&(this._values[n]=e[this._fields[n]]);this._values.Path=this._values.Path||"/",this._values.Hostname=this._values.Host.replace(/:\d+$/,""),this._values.Origin=this._values.Protocol+"://"+this._values.Hostname+(this._values.Port?":"+this._values.Port:"")},new e(t)};var Z=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=tt("?"+n)),e},tt=function(t){for(var e=function(t){return decodeURIComponent(t)},n={},r=(t=t||"").substring(1).split("&"),i=0;i<r.length;i++){var o=r[i].indexOf("=");if(-1!==o){var a=r[i].substring(0,o),s=r[i].substring(o+1);a=e(a),s=e(s),n[a]=s}}return n};function et(t){return null===t?"null":Array.isArray(t)?"array":_(t)}function nt(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!==_(e)||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],o=0;o<e.length;++o)i[o]=nt(i[o],e[o],n);return i}i="object"===et(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=nt(i[a],e[a],n));return i}}function rt(t){return nt(void 0,t)}function it(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):0===t?void 0:t}function ot(){}var at,st=1e3,ut=6e4;function ct(t){return 0!==t&&100*Math.random()<=t}function lt(t,e){return+t.toFixed(e)}function ft(t){return"number"!=typeof t?t:lt(1e6*t,0)}function dt(t){return G(t)?lt(1e6*t,0):t}function pt(t){return t-Et()}function vt(t){return Math.round(Et()+t)}function ht(){return performance.now()}function mt(){return{relative:ht(),timeStamp:gt()}}function gt(){return yt()}function yt(){return(new Date).getTime()}function _t(t,e){return e-t}function bt(){return{relative:0,timeStamp:Et()}}function wt(t){return{relative:t,timeStamp:xt(t)}}function St(t,e){return t+e}function xt(t){var e=yt()-performance.now();return e>Et()?Math.round(e+t):vt(t)}function Et(){return void 0===at&&(at=performance.timing.navigationStart),at}var kt=/([\w-]+)\s*=\s*([^;]+)/g;function Tt(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&$(t)&&r in t&&E.call(t,r)))return;t=t[r]}return t}function Ct(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function Ot(t){var e=et(t);return"string"===e||"function"===e||t instanceof RegExp}function It(t,e){return-1!==t.indexOf(e)}function At(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function Rt(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach((function(t){e.push(t)}));else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function Pt(t){return G(t)&&t>=0&&t<=100}var Nt,Mt=0,Lt=1,Dt=2,Ut=3;function Bt(){return $t(Nt,Nt=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return Lt;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 Dt;if(t.document.documentMode)return Mt;return Ut}())}function zt(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Vt(t){var e={};return O(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=jt(t)})),e}function jt(t){return N(t)?B(t,(function(t){return jt(t)})):"object"===_(t)&&null!==t?Vt(t):t}function $t(t,e){return null!=t?t:e}function Ht(t,e){return z((r=[],null===(n=t)||O(n,(function(t,e){r[r.length]=e})),r),(function(n){return t[n]===e}));var n,r}function Ft(t,e){return t.slice(0,e.length)===e}function Wt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function qt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Gt(t){return G(t)&&t<0?void 0:t}function Qt(){var t=[],e=function(e){t.push(e)>500&&t.splice(0,1)};return{add:e,remove:e,drain:function(e){t.forEach((function(t){t(e)})),t.length=0}}}var Kt=1/0,Xt=null,Jt=new Set;function Yt(t){var e=t.expireDelay,n=t.maxEntries,r=[];function i(){for(var t=ht()-e;r.length>0&&r[r.length-1].endTime<t;)r.pop()}return Xt&&(Xt=g((function(){return i()}),6e4)),Jt.add(i),{add:function(t,e){var i={value:t,startTime:e,endTime:Kt,remove:function(){Wt(r,i)},close:function(t){i.endTime=t}};return n&&r.length>=n&&r.pop(),r.unshift(i),i},find:function(t,e){void 0===t&&(t=Kt),void 0===e&&(e={returnInactive:!1});for(var n=0,i=r;n<i.length;n++){var o=i[n];if(o.startTime<=t){if(e.returnInactive||t<=o.endTime)return o.value;break}}},closeActive:function(t){var e=r[0];e&&e.endTime===Kt&&e.close(t)},findAll:function(t,e){void 0===t&&(t=Kt),void 0===e&&(e=0);var n=St(t,e);return r.filter((function(e){return e.startTime<=n&&t<=e.endTime})).map((function(t){return t.value}))},reset:function(){r=[]},stop:function(){Jt.delete(i),0===Jt.size&&Xt&&(y(Xt),Xt=null)}}}var Zt={navigator:"undefined"!=typeof window&&void 0!==window.navigator?window.navigator:{},infoMap:{engine:["WebKit","Trident","Gecko","Presto"],browser:["Safari","Chrome","Edge","IE","IE 11","IE 10","IE 9","IE 8","IE 7","Firefox","Firefox Focus","Chromium","Opera","Vivaldi","Yandex","Arora","Lunascape","QupZilla","Coc Coc","Kindle","Iceweasel","Konqueror","Iceape","SeaMonkey","Epiphany","360","360SE","360EE","UC","QQBrowser","QQ","Baidu","Maxthon","Sogou","LBBROWSER","2345Explorer","TheWorld","XiaoMi","Quark","Qiyu","Wechat",,"WechatWork","Taobao","Alipay","Weibo","Douban","Suning","iQiYi"],os:["Windows","Linux","Mac OS","Android","Ubuntu","FreeBSD","Debian","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"],device:["Mobile","Tablet","iPad"]}},te={getMatchMap:u((function(t){return{Trident:t.indexOf("Trident")>-1||t.indexOf("NET CLR")>-1,Presto:t.indexOf("Presto")>-1,WebKit:t.indexOf("AppleWebKit")>-1,Gecko:t.indexOf("Gecko/")>-1,Safari:t.indexOf("Safari")>-1,Chrome:t.indexOf("Chrome")>-1||t.indexOf("CriOS")>-1,IE:t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1,Edge:t.indexOf("Edge")>-1||t.indexOf("Edg")>-1,Firefox:t.indexOf("Firefox")>-1||t.indexOf("FxiOS")>-1,"Firefox Focus":t.indexOf("Focus")>-1,Chromium:t.indexOf("Chromium")>-1,Opera:t.indexOf("Opera")>-1||t.indexOf("OPR")>-1,Vivaldi:t.indexOf("Vivaldi")>-1,Yandex:t.indexOf("YaBrowser")>-1,Arora:t.indexOf("Arora")>-1,Lunascape:t.indexOf("Lunascape")>-1,QupZilla:t.indexOf("QupZilla")>-1,"Coc Coc":t.indexOf("coc_coc_browser")>-1,Kindle:t.indexOf("Kindle")>-1||t.indexOf("Silk/")>-1,Iceweasel:t.indexOf("Iceweasel")>-1,Konqueror:t.indexOf("Konqueror")>-1,Iceape:t.indexOf("Iceape")>-1,SeaMonkey:t.indexOf("SeaMonkey")>-1,Epiphany:t.indexOf("Epiphany")>-1,360:t.indexOf("QihooBrowser")>-1||t.indexOf("QHBrowser")>-1,"360EE":t.indexOf("360EE")>-1,"360SE":t.indexOf("360SE")>-1,UC:t.indexOf("UC")>-1||t.indexOf(" UBrowser")>-1,QQBrowser:t.indexOf("QQBrowser")>-1,QQ:t.indexOf("QQ/")>-1,Baidu:t.indexOf("Baidu")>-1||t.indexOf("BIDUBrowser")>-1,Maxthon:t.indexOf("Maxthon")>-1,Sogou:t.indexOf("MetaSr")>-1||t.indexOf("Sogou")>-1,LBBROWSER:t.indexOf("LBBROWSER")>-1,"2345Explorer":t.indexOf("2345Explorer")>-1,TheWorld:t.indexOf("TheWorld")>-1,XiaoMi:t.indexOf("MiuiBrowser")>-1,Quark:t.indexOf("Quark")>-1,Qiyu:t.indexOf("Qiyu")>-1,Wechat:t.indexOf("MicroMessenger")>-1,Taobao:t.indexOf("AliApp(TB")>-1,Alipay:t.indexOf("AliApp(AP")>-1,Weibo:t.indexOf("Weibo")>-1,Douban:t.indexOf("com.douban.frodo")>-1,Suning:t.indexOf("SNEBUY-APP")>-1,iQiYi:t.indexOf("IqiyiApp")>-1,Windows:t.indexOf("Windows")>-1,Linux:t.indexOf("Linux")>-1||t.indexOf("X11")>-1,"Mac OS":t.indexOf("Macintosh")>-1,Android:t.indexOf("Android")>-1||t.indexOf("Adr")>-1,Ubuntu:t.indexOf("Ubuntu")>-1,FreeBSD:t.indexOf("FreeBSD")>-1,Debian:t.indexOf("Debian")>-1,"Windows Phone":t.indexOf("IEMobile")>-1||t.indexOf("Windows Phone")>-1,BlackBerry:t.indexOf("BlackBerry")>-1||t.indexOf("RIM")>-1,MeeGo:t.indexOf("MeeGo")>-1,Symbian:t.indexOf("Symbian")>-1,iOS:t.indexOf("like Mac OS X")>-1,"Chrome OS":t.indexOf("CrOS")>-1,WebOS:t.indexOf("hpwOS")>-1,Mobile:t.indexOf("Mobi")>-1||t.indexOf("iPh")>-1||t.indexOf("480")>-1,Tablet:t.indexOf("Tablet")>-1||t.indexOf("Nexus 7")>-1,iPad:t.indexOf("iPad")>-1}})),matchInfoMap:u((function(t){var e=Zt.navigator.userAgent||"",n=te.getMatchMap(e);for(var r in Zt.infoMap)for(var i=0;i<Zt.infoMap[r].length;i++){var o=Zt.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:u((function(){return te.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:u((function(){var t=this,e=Zt.navigator.userAgent||"";t.osVersion="",t.osMajor="";var n={Windows:function(){var t=e.replace(/^.*Windows NT ([\d.]+);.*$/,"$1");return{6.4:"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP",5.1:"XP","5.0":"2000"}[t]||t},Android:function(){return e.replace(/^.*Android ([\d.]+);.*$/,"$1")},iOS:function(){return e.replace(/^.*OS ([\d_]+) like.*$/,"$1").replace(/_/g,".")},Debian:function(){return e.replace(/^.*Debian\/([\d.]+).*$/,"$1")},"Windows Phone":function(){return e.replace(/^.*Windows Phone( OS)? ([\d.]+);.*$/,"$2")},"Mac OS":function(){return e.replace(/^.*Mac OS X ([\d_]+).*$/,"$1").replace(/_/g,".")},WebOS:function(){return e.replace(/^.*hpwOS\/([\d.]+);.*$/,"$1")}};return n[t.os]&&(t.osVersion=n[t.os](),t.osVersion===e&&(t.osVersion="")),t.osVersion&&(t.osMajor=t.osVersion.split(".").length&&t.osVersion.split(".")[0]),{version:t.osVersion,osMajor:t.osMajor}})),getDeviceType:u((function(){var t=this;return t.device="PC",te.matchInfoMap(t),t.device})),getNetwork:u((function(){var t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,e="unknown",n=t?t.type||t.effectiveType:null;if(n&&"string"==typeof n)switch(n){case"bluetooth":case"cellular":case"slow-2g":case"2g":case"3g":e="cellular";break;case"none":e="none";break;case"ethernet":case"wifi":case"wimax":case"4g":e="wifi";break;case"other":case"unknown":e="unknown"}return e})),getLanguage:u((function(){var t;return this.language=((t=(Zt.navigator.browserLanguage||Zt.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getTimeZone:u((function(){return Intl.DateTimeFormat().resolvedOptions().timeZone})),getBrowserInfo:u((function(){var t=this;te.matchInfoMap(t);var e=Zt.navigator.userAgent||"",n=function(t,e){var n=Zt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=te.getMatchMap(e),i=!1;if("undefined"!=typeof window&&window.chrome){var o=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");o>36&&window.showModalDialog?i=!0:o>45&&(i=n("type","application/vnd.chromium.remoting-viewer"))}if(r.Baidu&&r.Opera&&(r.Baidu=!1),r.Mobile&&(r.Mobile=!(e.indexOf("iPad")>-1)),i&&(n("type","application/gameplugin")||Zt.navigator&&Zt.navigator.connection&&void 0===Zt.navigator.connection.saveData?r["360SE"]=!0:r["360EE"]=!0),r.IE||r.Edge)switch(window.screenTop-window.screenY){case 71:case 74:case 99:case 75:case 74:case 105:default:break;case 102:r["360EE"]=!0;break;case 104:r["360SE"]=!0}var a={Safari:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Chrome:function(){return e.replace(/^.*Chrome\/([\d.]+).*$/,"$1").replace(/^.*CriOS\/([\d.]+).*$/,"$1")},IE:function(){return e.replace(/^.*MSIE ([\d.]+).*$/,"$1").replace(/^.*rv:([\d.]+).*$/,"$1")},Edge:function(){return e.replace(/^.*Edge?\/([\d.]+).*$/,"$1")},Firefox:function(){return e.replace(/^.*Firefox\/([\d.]+).*$/,"$1").replace(/^.*FxiOS\/([\d.]+).*$/,"$1")},"Firefox Focus":function(){return e.replace(/^.*Focus\/([\d.]+).*$/,"$1")},Chromium:function(){return e.replace(/^.*Chromium\/([\d.]+).*$/,"$1")},Opera:function(){return e.replace(/^.*Opera\/([\d.]+).*$/,"$1").replace(/^.*OPR\/([\d.]+).*$/,"$1")},Vivaldi:function(){return e.replace(/^.*Vivaldi\/([\d.]+).*$/,"$1")},Yandex:function(){return e.replace(/^.*YaBrowser\/([\d.]+).*$/,"$1")},Arora:function(){return e.replace(/^.*Arora\/([\d.]+).*$/,"$1")},Lunascape:function(){return e.replace(/^.*Lunascape[\/\s]([\d.]+).*$/,"$1")},QupZilla:function(){return e.replace(/^.*QupZilla[\/\s]([\d.]+).*$/,"$1")},"Coc Coc":function(){return e.replace(/^.*coc_coc_browser\/([\d.]+).*$/,"$1")},Kindle:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Iceweasel:function(){return e.replace(/^.*Iceweasel\/([\d.]+).*$/,"$1")},Konqueror:function(){return e.replace(/^.*Konqueror\/([\d.]+).*$/,"$1")},Iceape:function(){return e.replace(/^.*Iceape\/([\d.]+).*$/,"$1")},SeaMonkey:function(){return e.replace(/^.*SeaMonkey\/([\d.]+).*$/,"$1")},Epiphany:function(){return e.replace(/^.*Epiphany\/([\d.]+).*$/,"$1")},360:function(){return e.replace(/^.*QihooBrowser\/([\d.]+).*$/,"$1")},"360SE":function(){return{63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},"360EE":function(){return{69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},Maxthon:function(){return e.replace(/^.*Maxthon\/([\d.]+).*$/,"$1")},QQBrowser:function(){return e.replace(/^.*QQBrowser\/([\d.]+).*$/,"$1")},QQ:function(){return e.replace(/^.*QQ\/([\d.]+).*$/,"$1")},Baidu:function(){return e.replace(/^.*BIDUBrowser[\s\/]([\d.]+).*$/,"$1")},UC:function(){return e.replace(/^.*UC?Browser\/([\d.]+).*$/,"$1")},Sogou:function(){return e.replace(/^.*SE ([\d.X]+).*$/,"$1").replace(/^.*SogouMobileBrowser\/([\d.]+).*$/,"$1")},LBBROWSER:function(){var t="";e.indexOf("LieBaoFast")>-1&&(t=e.replace(/^.*LieBaoFast\/([\d.]+).*$/,"$1"));var n=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");return t||{57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[n]||""},"2345Explorer":function(){return e.replace(/^.*2345Explorer\/([\d.]+).*$/,"$1")},TheWorld:function(){return e.replace(/^.*TheWorld ([\d.]+).*$/,"$1")},XiaoMi:function(){return e.replace(/^.*MiuiBrowser\/([\d.]+).*$/,"$1")},Quark:function(){return e.replace(/^.*Quark\/([\d.]+).*$/,"$1")},Qiyu:function(){return e.replace(/^.*Qiyu\/([\d.]+).*$/,"$1")},Wechat:function(){return e.replace(/^.*MicroMessenger\/([\d.]+).*$/,"$1")},WechatWork:function(){return e.replace(/^.*wxwork\/([\d.]+).*$/,"$1")},Taobao:function(){return e.replace(/^.*AliApp\(TB\/([\d.]+).*$/,"$1")},Alipay:function(){return e.replace(/^.*AliApp\(AP\/([\d.]+).*$/,"$1")},Weibo:function(){return e.replace(/^.*weibo__([\d.]+).*$/,"$1")},Douban:function(){return e.replace(/^.*com.douban.frodo\/([\d.]+).*$/,"$1")},Suning:function(){return e.replace(/^.*SNEBUY-APP([\d.]+).*$/,"$1")},iQiYi:function(){return e.replace(/^.*IqiyiVersion\/([\d.]+).*$/,"$1")}};return t.browserVersion="",t.browserMajor="",a[t.browser]&&(t.browserVersion=a[t.browser](),t.browserVersion==e&&(t.browserVersion="")),"Chrome"==t.browser&&e.match(/\S+Browser/)&&(t.browser=e.match(/\S+Browser/)[0],t.version=e.replace(/^.*Browser\/([\d.]+).*$/,"$1")),"Edge"==t.browser&&(t.version>"75"?t.engine="Blink":t.engine="EdgeHTML"),("Chrome"==t.browser&&parseInt(t.browserVersion)>27||r.Chrome&&"WebKit"==t.engine&&parseInt(t.browserVersion)>27||"Opera"==t.browser&&parseInt(t.version)>12||"Yandex"==t.browser)&&(t.engine="Blink"),t.browserVersion&&(t.browserMajor=t.browserVersion.split(".").length&&this.browserVersion.split(".")[0]),{browser:t.browser,browserVersion:t.browserVersion,engine:t.engine,browserMajor:t.browserMajor}})),getGeoPostion:u((function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){o.warn(t)}))}))},ee={};"undefined"!=typeof window&&(ee={os:te.getOS(),osVersion:te.getOSVersion().version,osVersionMajor:te.getOSVersion().osMajor,browser:te.getBrowserInfo().browser,browserVersion:te.getBrowserInfo().browserVersion,browserVersionMajor:te.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:te.getNetwork(),device:te.getDeviceType(),timeZone:te.getTimeZone()});var ne=ee,re="beforeunload",ie="click",oe="dblclick",ae="keydown",se="load",ue="popstate",ce="scroll",le="touchstart",fe="touchend",de="touchmove",pe="visibilitychange",ve="pageshow",he="freeze",me="resume",ge="DOMContentLoaded",ye="pointerdown",_e="pointerup",be="pointercancel",we="hashchange",Se="pagehide",xe="mousedown",Ee="mousemove",ke="focus",Te="blur",Ce="contextmenu",Oe="resize",Ie="change",Ae="input",Re="play",Pe="pause",Ne="securitypolicyviolation",Me="selectionchange",Le="storage",De="document",Ue="xhr",Be="beacon",ze="fetch",Ve="css",je="js",$e="image",He="font",Fe="media",We="other",qe="click",Ge="custom",Qe="rage_click",Ke="error_click",Xe="dead_click",Je={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},Ye="long-task",Ze="long-animation-frame",tn="initial_load",en="route_change",nn={FETCH:ze,XHR:Ue},rn="ddtrace",on="zipkin",an="zipkin_single_header",sn="w3c_traceparent",un="w3c_traceparent_64bit",cn="skywalking_v3",ln="jaeger",fn="handled",dn="unhandled",pn="Uncaught",vn="Provided";function hn(t){return hn="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},hn(t)}function mn(t,e,n){if("object"!==hn(t)||null===t)return JSON.stringify(t);var r=gn(Object.prototype),i=gn(Array.prototype),o=gn(Object.getPrototypeOf(t)),a=gn(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function gn(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):ot}function yn(t){return yn="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},yn(t)}var _n="?";function bn(t){var e=[],n=In(t,"stack"),r=String(t);return n&&n.startsWith(r)&&(n=n.slice(r.length)),n&&O(n.split("\n"),(function(t){var n=function(t){var e=xn.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=En.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]||_n,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=kn.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:_n,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=Tn.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||_n,line:+e[3],url:e[2]}}(t)||function(t){var e=Cn.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=On.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]||_n,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=_n),e.push(n))})),{message:In(t,"message"),name:In(t,"name"),stack:e}}var wn="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",Sn="(?::(\\d+))",xn=new RegExp("^\\s*at (.*?) ?\\("+wn+Sn+"?"+Sn+"?\\)?\\s*$","i"),En=new RegExp("\\((\\S*)"+Sn+Sn+"\\)");var kn=new RegExp("^\\s*at ?"+wn+Sn+"?"+Sn+"??\\s*$","i");var Tn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Cn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?\s*$/i,On=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function In(t,e){if("object"===yn(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var An=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Rn(t){var e=function(t){return Jn(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=bn(u);else{var c={url:o,column:s,line:a},l=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=An.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,$t(u,i))}))}(t),n=function(t){return Jn(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=bn(n);t(r,n)}))}(t);return{stop:function(){e.stop(),n.stop()}}}var Pn=1024,Nn=/[^\u0000-\u007F]/;function Mn(t){return Nn.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Ln(t){return Ln="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},Ln(t)}function Dn(t,e){void 0===e&&(e=225280);var n=gn(Object.prototype),r=gn(Array.prototype),i=[],o=new WeakMap,a=Un(t,"$",void 0,i,o),s=JSON.stringify(a)&&JSON.stringify(a).length||0;if(!(s>e)){for(;i.length>0&&s<e;){var u=i.shift(),c=0;if(Array.isArray(u.source))for(var l=0;l<u.source.length;l++){if(s+=void 0!==(f=Un(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){zn(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=Un(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+3,c=1),s>e){zn(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}zn(e,"discarded",t)}function Un(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"!==Ln(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Ln(t))return"[Symbol] "+t.description||0;return t}(o);var a=Bn(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 Bn(t){try{if(t instanceof Event)return{type:(n=t).type,isTrusted:n.isTrusted,currentTarget:n.currentTarget?Bn(n.currentTarget):null,target:n.target?Bn(n.target):null};if(t instanceof RegExp)return"[RegExp] ".concat(t.toString());var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}var n;return"[Unserializable]"}function zn(t,e,n){o.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",n)}var Vn="No stack, consider using an instance of Error",jn="agent",$n="console",Hn="source",Fn="custom",Wn="report";function qn(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=function(t,e,n,r){return t&&t.message&&t&&t.name?t.message:e?"Empty message":n+" "+mn(Dn(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)?Qn(e):Vn,f=u?Xn(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 Gn(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return c((function(){var n=bn(e);n.stack=n.stack.slice(2),t=Qn(n)})),t}function Qn(t){var e=Kn(t);return O(t.stack,(function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"("+t.args.join(", ")+")":"",i=t.line?":"+t.line:"",o=t.line&&t.column?":"+t.column:"";e+="\n at "+n+r+" @ "+t.url+i+o})),e}function Kn(t){return(t.name||"Error")+": "+t.message}function Xn(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=bn(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&Qn(i)}),n=n.cause}return r.length?r:void 0}function Jn(t,e,n,r){var i=r&&r.computeHandlingStack,o=t[e];if("function"!=typeof o){if(!Ft(e,"on"))return{stop:ot};o=ot}var a=!1,s=function(){if(a)return o.apply(this,arguments);var t,e=Rt(arguments);c(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:i?Gn():void 0}]);var r=o.apply(this,e);return t&&c(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=o)}}}function Yn(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:ot};var i=ot,o=function(t,e){h((function(){o!==i&&n(t,e)}),0)},a=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){Object.getOwnPropertyDescriptor(t,e)&&Object.getOwnPropertyDescriptor(t,e).set===a&&Object.defineProperty(t,e,r),o=i}}}var Zn=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};Zn.prototype={subscribe:function(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0);var e=this;return{unsubscribe:function(){e.observers=U(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){O(this.observers,(function(e){e(t)}))}};var tr=Zn;function er(){var t=[].slice.call(arguments);return new tr((function(e){var n=B(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return O(n,(function(t){return t.unsubscribe()}))}}))}var nr={};function rr(e){var n=B(e,(function(e){return nr[e]||(nr[e]=function(e){return new tr((function(n){var r=console[e];return console[e]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=Gn();c((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 Kn(bn(t));return mn(t,void 0,2)}(t)})).join(" ");if(n===t.error){var a=At(e,(function(t){return t instanceof Error}));i={stack:a?Qn(bn(a)):void 0,causes:a?Xn(a,"console"):void 0,startClocks:mt(),message:o,source:$n,handling:fn,handlingStack:r}}return{api:n,message:o,error:i,handlingStack:r}}(i,e,o))}))},function(){console[e]=r}}))}(e)),nr[e]}));return er.apply(this,n)}function ir(t,e,n,r){return or(t,[e],n,r)}function or(t,e,n,r){var i=u(r&&r.once?function(t){s(),n(t)}:n);r=r&&r.passive?{capture:r.capture,passive:r.passive}:r&&r.capture;var o=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,a=v(o,"addEventListener");O(e,(function(e){a.call(t,e,i,r)}));var s=function(){var n=v(o,"removeEventListener");O(e,(function(e){n.call(t,e,i,r)}))};return{stop:s}}var ar="intervention",sr="csp_violation";function ur(t,e){var n=[];It(e,sr)&&n.push(new tr((function(t){return ir(document,Ne,(function(e){t.notify(function(t){var e="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return cr({type:t.effectiveDirective,message:sr+": "+e,originalError:t,csp:{disposition:t.disposition},stack:lr(t.effectiveDirective,t.originalPolicy?"".concat(e,' of the policy "').concat(Ct(t.originalPolicy,100),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}(e))})).stop})));var r=U(e,(function(t){return t!==sr}));return r.length&&n.push(function(t){return new tr((function(e){if(window.ReportingObserver){var n=u((function(t){O(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return cr({type:e.id,message:n+": "+e.message,originalError:t,stack:lr(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)),er.apply(this,n)}function cr(t){return I({startClocks:mt(),source:ErrorSource.REPORT,handling:ErrorHandling.UNHANDLED},t)}function lr(t,e,n,r,i){return n&&Qn({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var fr=function(){this._events=[],this.pendingEvents=[]};fr.prototype={emit:function(t){var e=[].slice.call(arguments,1);O(this._events,(function(n){if(n.type!==t)return!1;n.callback.apply(n.context,e)}))},on:function(t,e,n){"function"==typeof e&&this._events.push({type:t,callback:e,context:n||this})}};new fr;var dr,pr="AUTO_ACTION_COMPLETED",vr="BEFORE_VIEW_CREATED",hr="VIEW_CREATED",mr="VIEW_UPDATED",gr="BEFORE_VIEW_UPDATED",yr="VIEW_ENDED",_r="AFTER_VIEW_ENDED",br="SESSION_RENEWED",wr="SESSION_EXPIRED",Sr="PAGE_EXITED",xr="REQUEST_STARTED",Er="REQUEST_COMPLETED",kr="RAW_RUM_EVENT_COLLECTED",Tr="RUM_EVENT_COLLECTED",Cr="RAW_ERROR_COLLECTED";function Or(){this.callbacks={}}function Ir(t){return Mr(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Pr(t)||Rr()}function Ar(t,e){return Mr(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)||Pr(t,e)||Rr()}function Rr(){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 Pr(t,e){if(t){if("string"==typeof t)return Nr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(t,e):void 0}}function Nr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Mr(t){if(Array.isArray(t))return t}function Lr(t,e,n){var r=rt(t),i=n(r);return F(e).forEach((function(e){var n=Ar(e,2),i=n[0],o=n[1];return Dr(t,r,i.split(/\.|(?=\[\])/),o)})),i}function Dr(t,e,n,r){var i=Ir(n),o=i[0],a=i.slice(1);if("[]"!==o){if(Ur(t)&&Ur(e))return a.length>0?Dr(t[o],e[o],a,r):void function(t,e,n,r){var i=et(n);i===r?t[e]=Dn(n):"object"!==r||"undefined"!==i&&"null"!==i||(t[e]={})}(t,o,e[o],r)}else Array.isArray(t)&&Array.isArray(e)&&t.forEach((function(t,n){return Dr(t,e[n],a,r)}))}function Ur(t){return"object"===et(t)}function Br(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&h((function(){r=0}),ut),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:"Reached max number of "+t+"s by minute: "+e,source:jn,startClocks:mt()})}finally{i=!1}}return!0}}}function zr(t){return jr(t,zt(window.location)).href}function Vr(t){return zt(jr(t))}function jr(t,e){if(function(){if(void 0!==dr)return dr;try{var t=new URL("http://test/path");return dr="http://test/path"===t.href}catch(t){dr=!1}return dr}())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}Or.prototype={notify:function(t,e){var n=this.callbacks[t];n&&O(n,(function(t){t(e)}))},subscribe:function(t,e){this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e);var n=this;return{unsubscribe:function(){n.callbacks[t]=U(n.callbacks[t],(function(t){return t!==e}))}}}};var $r=navigator.userAgent.toLowerCase(),Hr=function(){return/iphone os/.test($r)};function Fr(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(u(t),e);return function(){return window.cancelIdleCallback(n)}}return function(t){var e=yt(),n=h((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,Wr-(yt()-e))}})}),0);return function(){return m(n)}}(t)}var Wr=50;var qr,Gr=/^\s+|\s+$/g,Qr={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function Kr(t,e){var n=Qr[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+Xr(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?Xr(r)+"v1/write"+n:Xr(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function Xr(t){return t.replace(Gr,"")}function Jr(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 Yr(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=Jr(t,r)+"="+e+";"+o+";path=/;samesite="+a+s+u+c}function Zr(t,e){return function(t,e){for(kt.lastIndex=0;;){var n=kt.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,Jr(t,e))}function ti(t,e){Yr(t,"",0,e)}var ei=144e5,ni=9e5,ri="_gc_s",ii="cookie",oi="local-storage";function ai(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return si(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?si(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function si(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ui=/^([a-zA-Z]+)=([a-z0-9-]+)$/,ci="&";function li(t){return H(t)}function fi(t){return void 0!==t.isExpired||!((void 0===(e=t).created||yt()-Number(e.created)<ei)&&(void 0===e.expire||yt()<Number(e.expire)));var e}function di(t){return B(F(t),(function(t){return t[0]+"="+t[1]})).join("&")}function pi(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(ci)||ui.test(t))}(t)&&t.split(ci).forEach((function(t){var n=ui.exec(t);if(null!==n){var r=ai(n,3),i=r[1],o=r[2];e[i]=o}})),e}function vi(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===qr){for(var t="gc_site_test_".concat(X()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Zr(t,{domain:n});)n="".concat(e.pop(),".").concat(n),Yr(t,"test",st,{domain:n});ti(t,{domain:n}),qr=n}return qr}());return e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="gc_cookie_test_".concat(X()),n="test";Yr(e,n,ut,t);var r=Zr(e,t)===n;return ti(e,t),r}catch(t){return!1}}(e)?{type:ii,cookieOptions:e}:void 0}function hi(t){var e;return{isLockEnabled:Bt()===Lt,persistSession:(e=t,function(t){Yr(ri,di(t),ni,e)}),retrieveSession:mi(t),expireSession:function(){return function(t){Yr(ri,di({isExpired:"1"}),ei,t)}(t)}}}function mi(t){return function(){return pi(Zr(ri,t))}}function gi(){try{var t=X(),e="".concat("_gc_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:oi}:void 0}catch(t){return}}function yi(t){localStorage.setItem(ri,di(t))}function _i(){return pi(localStorage.getItem(ri))}function bi(){yi({isExpired:"1"})}function wi(){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 Si="log",xi="configuration",Ei="usage",ki="debug",Ti="error",Ci=["https://static.guance.com","http://localhost","<anonymous>"],Oi="browser-rum-sdk",Ii=Qt(),Ai=function(t){Ii.add((function(){Ai(t)}))};function Ri(t,e){var n,i=new tr,o=new Set,a=e.telemetryEnabled&&ct(e.telemetrySampleRate),s={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return Ai=function(r){var u=mn(r);if(a&&o.size<e.maxTelemetryEventsPerPage&&!o.has(u)){var c=function(t,e,r){return P({type:"telemetry",date:gt(),service:t,version:"3.2.36",source:"browser",telemetry:P(e,{runtime_env:r,connectivity:wi()})},void 0!==n?n():{})}(t,r,s);i.notify(c),o.add(u)}},r=Ni,{setContextProvider:function(t){n=t},observable:i,enabled:a}}function Pi(t,e){l(t,e),Ai(I({type:Si,message:t,status:ki},e))}function Ni(t,e){Ai(I({type:Si,status:Ti},function(t){if(t instanceof Error){var e=bn(t);return{error:{kind:e.name,stack:Qn(Li(e))},message:e.message}}return{error:{stack:Vn},message:pn+" "+mn(t)}}(t),e))}function Mi(t){Ai({type:Ei,usage:t})}function Li(t){return t.stack=t.stack.filter((function(t){return!t.url||Ci.some((function(e){return Ft(t.url,e)}))})),t}var Di=["lock"];function Ui(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Bi(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bi(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var zi,Vi="--",ji=[];function $i(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.isLockEnabled,i=e.persistSession,o=e.expireSession,a=function(t){return i(I({},t,{lock:u}))},s=function(){var t=e.retrieveSession(),n=t.lock;return{session:function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,Di),lock:n&&!Wi(n)?n:void 0}};if(zi||(zi=t),t===zi){if(r&&n>=100)return Pi("Aborted session operation after max lock retries",{currentStore:s()}),void Fi(e);var u,c=s();if(r){if(c.lock)return void Hi(t,e,n);if(u=X()+Vi+gt(),a(c.session),(c=s()).lock!==u)return void Hi(t,e,n)}var l=t.process(c.session);if(r&&(c=s()).lock!==u)Hi(t,e,n);else{if(l&&(fi(l)?o():(l.expire=String(yt()+ni),r?a(l):i(l))),r&&(!l||!fi(l))){if((c=s()).lock!==u)return void Hi(t,e,n);i(c.session),l=c.session}t.after&&t.after(l||c.session),Fi(e)}}else ji.push(t)}function Hi(t,e,n){h((function(){$i(t,e,n+1)}),10)}function Fi(t){zi=void 0;var e=ji.shift();e&&$i(e,t)}function Wi(t){var e=Ui(t.split(Vi),2)[1];return!e||_t(Number(e),gt())>1e3}var qi=st;function Gi(t){switch(t.sessionPersistence){case ii:return vi(t);case oi:return gi();case void 0:var e=vi(t);return!e&&t.allowFallbackToLocalStorage&&(e=gi()),e;default:o.error("Invalid session persistence '".concat(String(t.sessionPersistence),"'"))}}function Qi(t,e,n){var r,i=new tr,o=new tr,a=new tr,s=t.type===ii?hi(t.cookieOptions):{isLockEnabled:!1,persistSession:yi,retrieveSession:_i,expireSession:bi},u=s.expireSession,c=g((function(){$i({process:function(t){return fi(t)?{isExpired:"1"}:void 0},after:p},s)}),qi);v();var l=Q((function(){$i({process:function(t){if(!li(t)){var r=p(t);return function(t){if(li(t))return!1;var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,delete t.isExpired,o&&!t.id&&(t.id=X(),t.created=String(yt()))}(r),r}},after:function(t){li(t)||h()||function(t){r=t,i.notify()}(t),r=t}},s)}),qi),f=l.throttled,d=l.cancel;function p(t){return fi(t)&&(t={isExpired:"1"}),h()&&(!function(t){return r.id!==t.id||r[e]!==t[e]}(t)?(a.notify({previousState:r,newState:t}),r=t):(r={isExpired:"1"},o.notify())),t}function v(){$i({process:function(t){if(li(t))return{isExpired:"1"}},after:function(t){r=t}},s)}function h(){return void 0!==r[e]}return{expandOrRenewSession:f,expandSession:function(){$i({process:function(t){return h()?p(t):void 0}},s)},getSession:function(){return r||{}},renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a,restartSession:v,expire:function(){d(),u(),p({isExpired:"1"})},stop:function(){y(c)},updateSessionState:function(t){$i({process:function(e){return I({},e,t)},after:p},s)}}}var Ki={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function Xi(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=$t(t.sessionSampleRate,t.sampleRate);return I({beforeSend:t.beforeSend&&f(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Gi(t),isOpenWay:t.site&&t.clientToken,sessionSampleRate:$t(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:$t(t.telemetrySampleRate,100),telemetryEnabled:$t(t.telemetryEnabled,!1),silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144,resourceUrlLimit:5120,storeContextsToLocal:!!t.storeContextsToLocal,storeContextsKey:t.storeContextsKey,sendContentTypeByJson:!!t.sendContentTypeByJson,retryMaxSize:$t(t.retryMaxSize,-1)},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&M(t.isIntakeUrl)&&q(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&M(t.isServerError)&&q(t.isServerError())&&(n=t.isServerError),{rumEndpoint:Kr(t,"rum"),logsEndpoint:Kr(t,"log"),sessionReplayEndPoint:Kr(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 Ji(t){return Ji="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},Ji(t)}function Yi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yi(Object(n),!0).forEach((function(e){to(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function to(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Ji(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ji(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ji(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return no(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?no(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function no(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ro(t,e){!function(t,e){var n=new XMLHttpRequest;ir(n,"load",(function(){if(200===n.status){var t=JSON.parse(n.responseText);e(t.content)}else e({}),so()})),ir(n,"error",(function(){e({}),so()})),n.open("GET",function(t){var e=t.datakitOrigin||t.datakitUrl||t.site;0===e.indexOf("/")&&(e=location.origin+Xr(e));var n=e;n=e.lastIndexOf("/")===e.length-1?Xr(e)+"v1/env_variable":Xr(e)+"/v1/env_variable";n+="?app_id="+t.applicationId,t.site&&t.clientToken&&(n=n+"&token="+t.clientToken+"&to_headless=true");return n}(t)),n.send()}(t,(function(n){e(function(t,e){var n={};for(var r in e){if(void 0!==e[r])n[r.replace("R."+t.applicationId+".","")]=e[r]}return Zi(Zi({},t),function(t,e){var n={};return F(e).forEach((function(e){var r=eo(e,2),i=r[0],o=r[1],a=t[i];et(a)===o&&(n[i]=a)})),n}(n,ao))}(t,n))}))}var io,oo,ao={sessionSampleRate:"number",telemetrySampleRate:"number",silentMultipleInit:"boolean",service:"string",env:"string",version:"string",tracingSampleRate:"number",useCrossSiteSessionCookie:"boolean",usePartitionedCrossSiteSessionCookie:"boolean",useSecureSessionCookie:"boolean",trackSessionAcrossSubdomains:"boolean",storeContextsToLocal:"boolean",storeContextsKey:"string",sendContentTypeByJson:"boolean",allowFallbackToLocalStorage:"boolean",sessionOnErrorSampleRate:"number",sessionReplaySampleRate:"number",sessionReplayOnErrorSampleRate:"number",trackUserInteractions:"boolean",trackInteractions:"boolean",actionNameAttribute:"string",trackViewsManually:"boolean",workerUrl:"string",compressIntakeRequests:"boolean",traceType:"string"};function so(){o.error("Error fetching the remote configuration.")}function uo(){return io||(io=new tr((function(t){if(window.fetch){var e=Jn(window,"fetch",(function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,i=t.handlingStack,o=n[0],a=n[1],s=a&&a.method;void 0===s&&o instanceof Request&&(s=o.method);var c=void 0!==s?String(s).toUpperCase():"GET",l=o instanceof Request?o.url:zr(String(o)),f=mt(),d={state:"start",init:a,input:o,method:c,startClocks:f,url:l,handlingStack:i};e.notify(d),n[0]=d.input,n[1]=d.init,r((function(t){return function(t,e,n){var r=n,i=function(e){r.state="resolve",I(r,e),t.notify(r)};e.then(u((function(t){var e="";try{e=t.constructor===Response&&t.type||""}catch(t){e=""}i({response:t,responseType:e,status:t.status,isAborted:!1})})),u((function(t){i({status:0,isAborted:r.init&&r.init.signal&&r.init.signal.aborted||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})})))}(e,t,d)}))}(e,t)}),{computeHandlingStack:!0});return e.stop}}))),io}var co=new WeakMap;function lo(){return oo||(oo=new tr((function(t){var e=Jn(XMLHttpRequest.prototype,"open",fo),n=Jn(XMLHttpRequest.prototype,"send",(function(e){!function(t,e){var n=t.target,r=t.handlingStack,i=co.get(n);if(i){var o=i;o.state="start",o.startClocks=mt(),o.isAborted=!1,o.xhr=n,o.handlingStack=r;var a=!1,s=Jn(n,"onreadystatechange",(function(){n.readyState===XMLHttpRequest.DONE&&u()})).stop,u=function(){if(c(),s(),!a){a=!0;var t=i;t.state="complete",t.duration=_t(o.startClocks.timeStamp,gt()),t.status=n.status,e.notify(A(t))}},c=ir(n,"loadend",u).stop;e.notify(o)}}(e,t)}),{computeHandlingStack:!0}),r=Jn(XMLHttpRequest.prototype,"abort",po);return function(){e.stop(),n.stop(),r.stop()}}))),oo}function fo(t){var e=t.target,n=t.parameters[0],r=t.parameters[1];co.set(e,{state:"open",method:String(n).toUpperCase(),url:zr(String(r))})}function po(t){var e=t.target,n=co.get(e);n&&(n.isAborted=!0)}var vo={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function ho(t){return It(D(vo),t)}function mo(t){return t.nodeType===Node.ELEMENT_NODE}function go(t){return mo(t)&&Boolean(t.shadowRoot)}function yo(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&mo(e.host)}function _o(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;go(t)&&e(t.shadowRoot)}function bo(t){return yo(t)?t.host:t.parentNode}function wo(t,e){return document.readyState===t||"complete"===document.readyState?(e(),{stop:ot}):ir(window,"complete"===t?se:ge,e,{once:!0})}function So(){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 xo(){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 Eo={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",time_zone:"device.time_zone",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.name",view_path_group:"view.path_group",view_path_name:"view.pathname"},ko={view_url_query:"view.url_query",action_id:"action.id",action_ids:"action.ids",view_in_foreground:"view.in_foreground",display:"display",session_has_replay:"session.has_replay",is_login:"user.is_login",page_states:"_gc.page_states",session_sample_rate:"_gc.configuration.session_sample_rate",session_replay_sample_rate:"_gc.configuration.session_replay_sample_rate",session_on_error_sample_rate:"_gc.configuration.session_on_error_sample_rate",session_replay_on_error_sample_rate:"_gc.configuration.session_replay_on_error_sample_rate",drift:"_gc.drift"},To={view:{type:Je.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",view_privacy_replay_level:"privacy.replay_level"},fields:{view_update_time:"_gc.view_update_time",sampled_for_replay:"session.sampled_for_replay",sampled_for_error_replay:"session.sampled_for_error_replay",sampled_for_error_session:"session.sampled_for_error_session",session_error_timestamp:"session.error_timestamp_for_session",is_active:"view.is_active",session_replay_stats:"_gc.replay_stats",session_is_active:"session.is_active",view_error_count:"view.error.count",view_resource_count:"view.resource.count",view_long_task_count:"view.long_task.count",view_action_count:"view.action.count",first_contentful_paint:"view.first_contentful_paint",largest_contentful_paint:"view.largest_contentful_paint",largest_contentful_paint_element_selector:"view.largest_contentful_paint_element_selector",cumulative_layout_shift:"view.cumulative_layout_shift",cumulative_layout_shift_time:"view.cumulative_layout_shift_time",cumulative_layout_shift_target_selector:"view.cumulative_layout_shift_target_selector",first_input_delay:"view.first_input_delay",loading_time:"view.loading_time",dom_interactive:"view.dom_interactive",dom_content_loaded:"view.dom_content_loaded",dom_complete:"view.dom_complete",load_event:"view.load_event",first_input_time:"view.first_input_time",first_input_target_selector:"view.first_input_target_selector",first_paint_time:"view.fpt",interaction_to_next_paint:"view.interaction_to_next_paint",interaction_to_next_paint_target_selector:"view.interaction_to_next_paint_target_selector",resource_load_time:"view.resource_load_time",time_to_interactive:"view.tti",dom:"view.dom",dom_ready:"view.dom_ready",time_spent:"view.time_spent",first_byte:"view.first_byte",frustration_count:"view.frustration.count",custom_timings:"view.custom_timings"}},resource:{type:Je.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.span_id",resource_id:"resource.id",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",resource_url:"resource.url",resource_url_host:"resource.url_host",resource_url_path:"resource.url_path",resource_url_path_group:"resource.url_path_group",resource_url_query:"resource.url_query",resource_delivery_type:"resource.delivery_type",resource_type:"resource.type",resource_protocol:"resource.protocol",resource_encode_size:"resource.encoded_body_size",resource_decode_size:"resource.decoded_body_size",resource_transfer_size:"resource.transfer_size",resource_render_blocking_status:"resource.render_blocking_status",resource_dns:"resource.dns",resource_tcp:"resource.tcp",resource_ssl:"resource.ssl",resource_ttfb:"resource.ttfb",resource_trans:"resource.trans",resource_redirect:"resource.redirect",resource_first_byte:"resource.firstbyte",resource_dns_time:"resource.dns_time",resource_download_time:"resource.download_time",resource_first_byte_time:"resource.first_byte_time",resource_connect_time:"resource.connect_time",resource_ssl_time:"resource.ssl_time",resource_redirect_time:"resource.redirect_time"}},error:{type:Je.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:Je.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:Je.ACTION,tags:{action_type:"action.type"},fields:{action_name:"action.target.name",duration:"action.loading_time",action_error_count:"action.error.count",action_resource_count:"action.resource.count",action_frustration_types:"action.frustration.type",action_long_task_count:"action.long_task.count",action_target:"_gc.action.target",action_position:"_gc.action.position"}},telemetry:{type:"telemetry",fields:{status:"telemetry.status",message:["string","telemetry.message"],type:"telemetry.type",error_stack:["string","telemetry.error.stack"],error_kind:["string","telemetry.error.kind"],connectivity:["string","telemetry.connectivity"],runtime_env:["string","telemetry.runtime_env"],usage:["string","telemetry.usage"],configuration:["string","telemetry.configuration"]}},browser_log:{type:Je.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"]}}},Co=ut,Oo=ei,Io=[];function Ao(t,e,n){var r=new tr,i=new tr,o=Qi(t.sessionStoreStrategyType,e,n);Io.push((function(){return o.stop()}));var a,s=Yt({expireDelay:Oo});function u(){return{id:o.getSession().id,trackingType:o.getSession()[e],hasError:!!o.getSession().hasError}}return Io.push((function(){return s.stop()})),o.renewObservable.subscribe((function(){s.add(u(),ht()),r.notify()})),o.expireObservable.subscribe((function(){i.notify(),s.closeActive(ht())})),o.expandOrRenewSession(),s.add(u(),bt().relative),a=or(window,[ie,le,ae,ce],(function(){o.expandOrRenewSession()}),{capture:!0,passive:!0}).stop,Io.push(a),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=ir(document,pe,e).stop;Io.push(n);var r=g(e,Co);Io.push((function(){y(r)}))}((function(){return o.expandSession()})),function(t){var e=ir(window,me,t,{capture:!0}).stop;Io.push(e)}((function(){o.restartSession()})),{findSession:function(t,e){return s.find(t,e)},renewObservable:r,expireObservable:i,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}var Ro=20971520,Po=st,No=0,Mo=1,Lo=2,Do=0,Uo=1;function Bo(t,e,n,r,i){e.transportStatus===No&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Vo(t,e,n,{onSuccess:function(){return jo(Do,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),zo(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function zo(t,e,n,r){t.transportStatus===Lo&&h((function(){Vo(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=Po,jo(Uo,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(256e3,2*t.currentBackoffTime),zo(t,e,n,r)}})}),t.currentBackoffTime)}function Vo(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=No,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?Mo:Lo,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o())}))}function jo(t,e,n,r,i){t===Do&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: 20MiB",source:jn,startClocks:mt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=$o();o.size()>0;)Bo(o.dequeue(),e,n,r,i)}function $o(){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>=Ro}}}function Ho(t,e){return t?(t=t+(-1===t.indexOf("?")?"?":"&")+"precision=ms",e&&(t=t+"&encoding="+e),t):t}function Fo(t,e,n,r){void 0===n&&(n=-1);var i=function(t){return{transportStatus:No,currentBackoffTime:Po,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:$o(),queueFullReported:!1,retryMaxSize:t}}(n),o=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=Ho(t,n.encoding),s=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&o<e;if(s){var c={method:"POST",body:i,keepalive:!0,mode:"cors"},l={"x-client-timestamp":Date.now().toString()};n.type&&(l["Content-Type"]=n.type),c.headers=l,fetch(a,c).then(u((function(t){"function"==typeof r&&r({status:t.status,type:t.type})}))).catch(u((function(){!function(t,e,n){var r={method:"POST",body:e.data,keepalive:!0,mode:"cors"},i={"x-client-timestamp":Date.now().toString()};e.type&&(i["Content-Type"]=e.type);r.headers=i,fetch(t,r).then(u((function(t){"function"==typeof n&&n({status:t.status,type:t.type})}))).catch(u((function(){"function"==typeof n&&n({status:0})})))}(a,n,r)})))}else qo(a,n,r)}(t,e,n,r)};return{send:function(e){Bo(e,i,o,t,r)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=Ho(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){Wo||(Wo=!0,Ni(t))}(t)}qo(o,n)}(t,e,n)}}}var Wo=!1;function qo(t,e,n){var r=e.data,i=new XMLHttpRequest;i.open("POST",t,!0),r instanceof Blob?i.setRequestHeader("Content-Type",r.type):e.type&&i.setRequestHeader("Content-Type",e.type),i.setRequestHeader("x-client-timestamp",Date.now().toString()),ir(i,"loadend",(function(){"function"==typeof n&&n({status:i.status})}),{once:!0}),i.send(r)}function Go(t){return Go="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},Go(t)}function Qo(t){if("object"===Go(t)&&t)t=mn(t);else if(!W(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function Ko(t,e){return"object"===Go(t)&&t?t=mn(t):e&&(t=""+t),t}function Xo(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function Jo(t){return"object"===Go(t)&&t?Xo(mn(t)):W(t)?Xo(t):t}var Yo="custom_keys",Zo=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return O(To,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=R({},Eo,i.tags),u=["date","type",Yo];O(s,(function(n,r){var i=Tt(t,n);u.push(r),(i||G(i))&&(e.tags[r]=Ko(i,!0),a.push(Qo(r)+"="+Qo(i)))}));var c=[],l=R({},ko,i.fields);if(O(l,(function(n,r){if(N(n)&&2===n.length){var i=n[1],o=Tt(t,i);u.push(r),null!=o&&(e.fields[r]=Ko(o),c.push(Qo(r)+"="+Jo(o)))}else if(W(n)){o=Tt(t,n);u.push(r),null!=o&&(e.fields[r]=Ko(o),c.push(Qo(r)+"="+Jo(o)))}})),t.context&&$(t.context)&&!H(t.context)){var f=[];O(t.context,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=Ko(t),c.push(Qo(n)+"="+Jo(t))))})),f.length&&(e.fields[Yo]=Ko(f),c.push(Qo(Yo)+"="+Jo(f)))}t.type===Je.LOGGER&&O(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=Ko(t),c.push(Qo(n)+"="+Jo(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 ta(t){var e=t.encoder,n=t.request,r=t.messageBytesLimit,i=t.sendContentTypeByJson,a=t.flushController,s={},u=a.flushObservable.subscribe((function(t){!function(t){var r=D(s).join(i?",":"\n");s={};var o=ho(t.reason),a=o?n.sendOnExit:n.send;if(o&&e.isAsync){var u=e.finishSync();u.outputBytesCount&&a(ea(u,i));var l=[u.pendingData,r].filter(Boolean).join("\n");l&&a({data:l,bytesCount:Mn(l)})}else{if(r){var f=c([r],e.isEmpty());i&&(f+="]"),e.write(f)}else i&&e.write("]");e.finish((function(t){a(ea(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?mn(Zo(t).rowData):Zo(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 ea(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 na(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 tr((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(){m(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 ra(){return p().FTWebViewJavascriptBridge}function ia(){var t=ra();if(t)return{getCapabilities:function(){return JSON.parse(t.getCapabilities&&t.getCapabilities()||"[]")},getPrivacyLevel:function(){return t.getPrivacyLevel&&t.getPrivacyLevel()},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts&&t.getAllowedWebViewHosts()||"[]")},send:function(e,n,r){var i=r?{id:r}:void 0;t.sendEvent(JSON.stringify({name:e,data:n,view:i}))}}}var oa="records";function aa(t){var e=ia();return!!e&&e.getCapabilities().includes(t)}function sa(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(t=p().location)||void 0===t?void 0:t.hostname,n=ra();if(n&&void 0===n.getAllowedWebViewHosts)return!0;if(n&&n.getAllowedWebViewHosts&&(null===n.getAllowedWebViewHosts()||void 0===n.getAllowedWebViewHosts()))return!0;var r=ia();return!!r&&r.getAllowedWebViewHosts().some((function(t){return e===t||e.endsWith(".".concat(t))}))}function ua(t){return ua="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},ua(t)}function ca(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return la(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?la(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function la(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function fa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function da(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=ua(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ua(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ua(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pa(t,e,n){for(var r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fa(Object(n),!0).forEach((function(e){da(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),i=0,a=Object.entries(e);i<a.length;i++){var s=ca(a[i],2),u=s[0],c=s[1],l=c.required;"string"===c.type&&u in r&&(r[u]=String(r[u])),l&&!(u in t)&&o.warn("The property ".concat(u," of ").concat(n," context is required; context will not be sent to the intake."))}return r}function va(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.customerDataTracker,r=e.propertiesConfig,i=void 0===r?{}:r,o={},a=new tr,s={getContext:function(){return rt(o)},setContext:function(e){"object"===et(e)?(o=Dn(pa(e,i,t)),null==n||n.updateCustomerData(o)):s.clearContext(),a.notify()},setContextProperty:function(e,r){o[e]=Dn(pa(da({},e,r),i,t)[e]),null==n||n.updateCustomerData(o),a.notify()},removeContextProperty:function(e){delete o[e],null==n||n.updateCustomerData(o),pa(o,i,t),a.notify()},clearContext:function(){o={},null==n||n.resetCustomerData(),a.notify()},changeObservable:a};return s}var ha="user",ma="global context",ga="view",ya="_gc_s",_a=[];function ba(t,e,n,r){var i=function(t,e,n){return t.storeContextsKey&&W(t.storeContextsKey)?ya+"_"+e+"_"+n+"_"+t.storeContextsKey:ya+"_"+e+"_"+n}(t,n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}return _a.push(ir(window,Le,(function(t){i===t.key&&e.setContext(o())}))),e.changeObservable.subscribe((function(){localStorage.setItem(i,JSON.stringify(e.getContext()))})),e.setContext(P(o(),e.getContext())),e}var wa=0,Sa=1,xa=2;function Ea(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xa,e=new Map,n=!1;function r(){if(!n&&t!==wa){var r=t===xa?3072:16384,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e.forEach((function(t){i+=t.getBytesCount()})),i>r&&(!function(t){o.warn("Customer data exceeds the recommended ".concat(t/Pn,"KiB threshold."))}(r),n=!0)}}return{createDetachedTracker:function(){var t=ka((function(){return r(t.getBytesCount())}));return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,ka(r)),e.get(t)},setCompressionStatus:function(e){t===wa&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach((function(t){return t.stop()})),e.clear()}}}function ka(t){var e=0,n=Q((function(n){e=Mn(mn(n)),t()}),200),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){H(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}function Ta(){var t="",e=0;return{isAsync:!1,isEmpty:function(){return!t},write:function(n,r){var i=Mn(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 Ca(t){var e=I({},t);return O(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}function Oa(t){this.map=new WeakMap,t&&t.forEach((function(t){this.map.set(t,1)}))}function Ia(t,e){e.silentMultipleInit||o.error(t+" is already initialized.")}Oa.prototype.add=function(t){return this.map.set(t,1),this},Oa.prototype.delete=function(t){return this.map.delete(t)},Oa.prototype.has=function(t){return this.map.has(t)};var Aa=1,Ra=2,Pa=3,Na="0",Ma="1",La="2",Da="3",Ua="4",Ba="5",za="6";function Va(t,e){var n=Ao(t,"rum",(function(e){return function(t,e){var n,r=t.sessionSampleRate,i=t.sessionOnErrorSampleRate,o=t.sessionReplaySampleRate,a=t.sessionReplayOnErrorSampleRate,s=ct(r),u=ct(i),c=ct(o),l=ct(a);!function(t){return t===Na||t===Ba||t===za||t===Ua||t===La||t===Da||t===Ma}(e)?u||s?s&&c?n=Ma:s&&l?n=Da:!s||c||l?u&&c?n=Ua:u&&l?n=za:!u||c||l||(n=Ba):n=La:n=Na:n=e;return{trackingType:n,isTracked:ja(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(wr)})),n.renewObservable.subscribe((function(){e.notify(br)})),n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,r=t.newState;if(!e.hasError&&r.hasError){var i=n.findSession();i&&(i.hasError=!0,i.ets=r.ets||gt())}})),{findTrackedSession:function(t){var e=n.findSession(t);if(e&&ja(e.trackingType)){var r=e.trackingType===Ba||e.trackingType===Ua||e.trackingType===za,i=Aa;return e.trackingType===Ma||e.trackingType===Ua?i=Ra:e.trackingType!==za&&e.trackingType!==Da||(i=Pa),{id:e.id,plan:i,errorSessionReplayAllowed:i===Pa,sessionHasError:e.hasError,isErrorSession:r,sessionErrorTimestamp:e.ets,sessionReplayAllowed:i===Ra||i===Pa}}},expire:n.expire,expireObservable:n.expireObservable,sessionStateUpdateObservable:n.sessionStateUpdateObservable,setErrorForSession:function(){return n.updateSessionState({hasError:"1",ets:gt()})}}}function ja(t){return t!==Na}var $a="_gc_usr_id";var Ha=function(t){var e;if(t.sessionStoreStrategyType)return e=t.sessionStoreStrategyType.type===ii?function(t){var e=Zr($a,t);return e||(e=X(),Yr($a,e,5184e6,t)),e}(t.sessionStoreStrategyType.cookieOptions):function(){var t=localStorage.getItem($a);return t||(t=X(),localStorage.setItem($a,t)),t}(),{getId:function(){return e}}};function Fa(){var t,e=window;if(e.Zone&&(t=v(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=v(new e.MutationObserver(ot),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function Wa(t){var e=A(t);return new tr((function(n){var r,i,o,a,s=(r=c,i=Jn(qa("pushState"),"pushState",(function(t){(0,t.onPostCall)(r)})),o=Jn(qa("replaceState"),"replaceState",(function(t){(0,t.onPostCall)(r)})),a=ir(window,ue,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),u=ir(window,we,c);function c(){if(e.href!==t.href){var r=A(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return function(){s.stop(),u.stop()}}))}function qa(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}var Ga="initial_document",Qa=[[De,function(t){return Ga===t}],[Ue,function(t){return"xmlhttprequest"===t}],[ze,function(t){return"fetch"===t}],[Be,function(t){return"beacon"===t}],[Ve,function(t,e){return null!==e.match(/\.css$/i)}],[je,function(t,e){return null!==e.match(/\.js$/i)}],[$e,function(t,e){return It(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[He,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[Fe,function(t,e){return It(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function Ka(t){var e=t.name;if(!function(t){try{return!!jr(t)}catch(t){return!1}}(e))return We;var n=function(t){var e=jr(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=We;return O(Qa,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function Xa(){for(var t=L(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function Ja(t){return""===t.deliveryType?"other":t.deliveryType}function Ya(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}var Za=/[^\u0000-\u007F]/;function ts(t,e){return n=t,(Za.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function es(t){return 0===t.duration&&t.startTime<t.responseEnd?ft(t.responseEnd-t.startTime):ft(t.duration)}function ns(t){if(is(t)){var e=t.startTime,n=t.fetchStart,r=t.redirectStart,i=t.redirectEnd,o=t.domainLookupStart,a=t.domainLookupEnd,s=t.connectStart,u=t.secureConnectionStart,c=t.connectEnd,l=t.requestStart,f=t.responseStart,d=t.responseEnd,p={firstbyte:ft(f-l),trans:ft(d-f),downloadTime:as(e,f,d),firstByteTime:as(e,l,f)};return f>0&&f<=ht()&&(p.ttfb=ft(f-l)),c!==n&&(p.tcp=ft(c-s),p.connectTime=as(e,s,c),Xa(s,u,c)&&(p.ssl=ft(c-u),p.sslTime=as(e,u,c))),a!==n&&(p.dns=ft(a-o),p.dnsTime=as(e,o,a)),os(t)&&(p.redirect=ft(i-r),p.redirectTime=as(e,r,i)),t.renderBlockingStatus&&(p.renderBlockingStatus=t.renderBlockingStatus),p}}function rs(t){return t.duration>=0}function is(t){var e=Xa(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!os(t)||Xa(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function os(t){return t.redirectEnd>t.startTime}function as(t,e,n){return{duration:ft(n-e),start:ft(e-t)}}function ss(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 us(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 cs=/data:(.+)?(;base64)?,/g;function ls(t){return!(t.length<=24e3)&&("data:"===t.substring(0,5)&&(t=t.substring(0,24e3),!0))}function fs(t){return t.match(cs)[0]+"[...]"}function ds(t,e){var n=yt(),r=!1,i=or(window,[ie,xe,ae,le,ye],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:ht(),processingEnd:ht(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};t.type===ye?function(t){or(window,[_e,be],(function(e){e.type===_e&&o(t)}),{once:!0})}(e):o(e)}}),{passive:!0,capture:!0}).stop;return{stop:i};function o(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o<yt()-n&&e(t)}}}var ps,vs="event",hs="first-input",ms="largest-contentful-paint",gs="layout-shift",ys="longtask",_s="long-animation-frame",bs="navigation",ws="paint",Ss="resource",xs="visibility-state";function Es(t,e){return new tr((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!==Ss||us(t,e.name)&&rs(e))}(t,e)}))}(t,e);r.length>0&&n.notify(r)},a=!0,s=new PerformanceObserver(u((function(t){a?r=h((function(){o(t.getEntries())})):o(t.getEntries())})));try{s.observe(e)}catch(t){if(It([Ss,bs,ys,ws],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(){!ps&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(ps=ir(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})))}(),!ks(hs)&&e.type===hs){var c=ds(0,(function(t){o([t])}));i=c.stop}return function(){s.disconnect(),i&&i(),m(r)}}}))}function ks(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function Ts(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=ot);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(Tr,(function(t){if(t.type!==Je.VIEW&&n(t))switch(t.type){case Je.ERROR:i.errorCount+=1,r();break;case Je.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case Je.LONG_TASK:i.longTaskCount+=1,r();break;case Je.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var Cs=100;function Os(t,e,n,r,i){var o=function(t,e,n){return new tr((function(r){var i,o=[],a=0;o.push(e.subscribe((function(){u()})),Es(n,{type:Ss}).subscribe((function(t){z(t,(function(t){return!Is(n,t.name)}))&&u()})),t.subscribe(xr,(function(t){Is(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(Er,(function(t){Is(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=Jn(window,"open",u).stop;return function(){s(),O(o,(function(t){t.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}))}(t,e,n);return function(t,e,n){var r,i=!1,o=h((function(){c({hadActivity:!1})}),100),a=void 0!==n?h((function(){return c({hadActivity:!0,end:gt()})}),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;m(o),m(r);var n=gt();e||(r=h((function(){c({hadActivity:!0,end:n})}),100))})),u=function(){i=!0,m(o),m(r),m(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function Is(t,e){return V(t.excludedActivityUrls,e)}var As=st,Rs=0,Ps=1,Ns=2;function Ms(t,e){var n,r=[],i=Rs;function o(t){t.stopObservable.subscribe(a),r.push(t),m(n),n=h(s,As)}function a(){i===Ps&&function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(E.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r}(r,(function(t){return t.isStopped()}))&&(i=Ns,e(r))}function s(){m(n),i===Rs&&(i=Ps,a())}return o(t),{tryAppend:function(t){return i===Rs&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=100)&&e.timeStamp-n.timeStamp<=As))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var Ls="data-guance-action-name";function Ds(t,e){return Us(t,Ls)||e&&Us(t,e)||Hs(t,e,Vs)||Hs(t,e,js)||""}function Us(t,e){var n;if(function(){void 0===zs&&(zs="closest"in HTMLElement.prototype);return zs}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return Ws(Fs(n.getAttribute(e).trim()))}var Bs,zs,Vs=[function(t,e){if(function(){void 0===Bs&&(Bs="labels"in HTMLInputElement.prototype);return Bs}()){if("labels"in t&&t.labels&&t.labels.length>0)return qs(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&At(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&qs(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 qs(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n=n.split(/\s+/),n=B(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=U(n,(function(t){return Boolean(t)})),(n=B(n,(function(t){return qs(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 qs(t.options[0],e)}],js=[function(t,e){return qs(t,e)}],$s=10;function Hs(t,e,n){for(var r=t,i=0;i<=$s&&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 Ws(Fs(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function Fs(t){return t.replace(/\s+/g," ")}function Ws(t){return t.length>100?Ct(t,100)+" [...]":t}function qs(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i<r.length;i+=1){var o=r[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return Bt()===Mt&&r("script, style"),r("["+Ls+"]"),e&&r("["+e+"]"),n}return t.textContent}}var Gs,Qs=[Ls,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Ks=[Zs,function(t){if(t.id&&!Ys(t.id))return"#"+j(t.id)}],Xs=[Zs,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(!Ys(n))return j(t.tagName)+"."+j(n)}},function(t){return j(t.tagName)}];function Js(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=eu(r,Ks,nu,e,n);if(i)return i;n=eu(r,Xs,ru,e,n)||iu(tu(r),n),r=r.parentElement}return n}}function Ys(t){return/[0-9]/.test(t)}function Zs(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<Qs.length;n++){var r;if(r=i(Qs[n]))return r}function i(e){if(t.hasAttribute(e))return j(t.tagName)+"["+e+'="'+j(t.getAttribute(e))+'"]'}}function tu(t){for(var e=t.parentElement&&t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;var r=j(t.tagName);return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function eu(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a&&n(t,a,i))return iu(a,i)}}function nu(t,e,n){return 1===t.ownerDocument.querySelectorAll(iu(e,n)).length}function ru(t,e,n){var r;if(void 0===n)r=function(t){return t.matches(e)};else{var i=function(){if(void 0===Gs)try{document.querySelector(":scope"),Gs=!0}catch(t){Gs=!1}return Gs}()?iu("".concat(e,":scope"),n):iu(e,n);r=function(t){return null!==t.querySelector(i)}}for(var o=t.parentElement.firstElementChild;o;){if(o!==t&&r(o))return!1;o=o.nextElementSibling}return!0}function iu(t,e){return e?t+">"+e:t}function ou(){var t=window.getSelection();return!t||t.isCollapsed}function au(t){return t.target instanceof Element&&!1!==t.isPrimary}function su(t,e){if(function(t){if(z(t,(function(t){return t.getUserActivity().selection||t.getUserActivity().scroll})))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=st)return!0;return!1}(t))return e.addFrustration(Qe),z(t,cu)&&e.addFrustration(Xe),e.hasError()&&e.addFrustration(Ke),{isRage:!0};var n=z(t,(function(t){return t.getUserActivity().selection}));return O(t,(function(t){t.hasError()&&t.addFrustration(Ke),cu(t)&&!n&&t.addFrustration(Xe)})),{isRage:!1}}var uu='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 cu(t){if(t.hasPageActivity()||t.getUserActivity().input||t.getUserActivity().scroll)return!1;var e,n,r=t.event.target;return"LABEL"===r.tagName&&r.hasAttribute("for")&&(r=document.getElementById(r.getAttribute("for"))),!r||(n=uu,!((e=r).matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)))}var lu=1e4,fu=new Map;function du(t,e){fu.set(t,e),fu.forEach((function(t,e){_t(e,ht())>1e4&&fu.delete(e)}))}function pu(t,e,n){var r,i=new Yt({expireDelay:3e5}),o=new tr;t.subscribe(br,(function(){i.reset()})),t.subscribe(yr,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=Js(i.target,o))&&du(i.timeStamp,s),{type:qe,target:{width:Math.round(a.width),height:Math.round(a.height),selector:s},position:{x:Math.round(i.clientX-a.left),y:Math.round(i.clientY-a.top)},name:Ds(i.target,o)}),c=!1;return Os(e,n,t,(function(t){c=t.hadActivity}),Cs),{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=hu(e,r,u,a,s);o(l);var f=a&&a.target&&a.target.selector;f&&du(s.timeStamp,f);var d=Os(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()}),lu),p=d.stop,v=e.subscribe(yr,(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=[ir(window,ye,(function(t){au(t)&&(s=ou(),c={selection:!1,input:!1,scroll:!1},u=a.onPointerDown(t))}),{capture:!0}),ir(window,Me,(function(){s&&ou()||(c.selection=!0)}),{capture:!0}),ir(window,_e,(function(t){if(au(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),ir(window,ce,(function(){c.scroll=!0}),{capture:!0,passive:!0}),ir(window,Ae,(function(){c.input=!0}),{capture:!0})],{stop:function(){O(l,(function(t){return t.stop()}))}}),d=f.stop;return{stop:function(){p(),o.notify(),d()},actionContexts:{findActionId:function(t){var e=i.findAll(t);if(e&&e.length)return e[e.length-1]},findAllActionId:function(t){return i.findAll(t)}}};function p(){r&&r.stop()}function v(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=Ms(t,(function(t){!function(t,e){var n=su(t,e),r=n.isRage;r?(O(t,(function(t){t.discard()})),e.stop(gt()),e.validate(B(t,(function(t){return t.event})))):(e.discard(),O(t,(function(t){t.validate()})))}(t,e)}))}}}var vu={ONGOING:0,STOPPED:1,FINALIZED:2};function hu(t,e,n,r,i){var o,a=X(),s=mt(),u=e.add(a,s.relative),c=Ts({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(N(t.action.ids)?It(t.action.ids,a):t.action.ids===a)}}),l=vu.ONGOING,f=[],d=new tr;function p(t){l===vu.ONGOING&&(o=t,l=vu.STOPPED,o?u.close(pt(o)):u.remove(),c.stop(),d.notify())}return{event:i,stop:p,stopObservable:d,hasError:function(){return c.eventCounts.errorCount>0},hasPageActivity:function(){return void 0!==o},getUserActivity:n,addFrustration:function(t){f.push(t)},startClocks:s,isStopped:function(){return l===vu.STOPPED||l===vu.FINALIZED},clone:function(){return hu(t,e,n,r,i)},validate:function(e){if(p(),l===vu.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,v=n.longTaskCount,h=I({type:qe,duration:o&&_t(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:v},events:$t(e,[i]),event:i},r);t.notify(pr,h),l=vu.FINALIZED}},discard:function(){p(),l=vu.FINALIZED}}}var mu=ei,gu="active",yu="passive",_u="hidden",bu="frozen",wu="terminated";function Su(t){void 0===t&&(t=500);var e,n=Yt({expireDelay:mu,maxEntries:4e3});ks(xs)&&performance.getEntriesByType(xs).forEach((function(t){i("hidden"===t.name?_u:gu,t.startTime)}));i(xu(),ht());var r=or(window,[ve,ke,Te,pe,me,he,Se],(function(t){i(function(t){if(t.type===he)return bu;if(t.type===Se)return t.persisted?bu:wu;return xu()}(t),t.timeStamp)}),{capture:!0}).stop;function i(t,r){void 0===r&&(r=ht()),t!==e&&(e=t,n.closeActive(r),n.add({state:e,startTime:r},r))}var o={findAll:function(e,r){return function(t,e,n){if(0===t.length)return;return t.slice(-n).reverse().map((function(t){var n=t.state,r=t.startTime;return{state:n,start:dt(_t(e,r))}}))}(n.findAll(e,r),e,t)},wasInPageStateAt:function(t,e){return o.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,r){return n.findAll(e,r).some((function(e){return e.state===t}))},addPageState:i,stop:function(){r(),n.stop()}};return o}function xu(){return"hidden"===document.visibilityState?_u:document.hasFocus()?gu:yu}function Eu(t,e){var n=ku(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:Gt(dt(t.duration)),frustration:{type:t.frustrationTypes},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_gc:{action:{target:t.target,position:t.position}}}:{action:{loadingTime:0}};return{customerContext:ku(t)?void 0:t.context,rawRumEvent:P({action:{id:X(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:Je.ACTION,view:{in_foreground:e.wasInPageStateAt(gu,t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:ku(t)?{event:t.event,events:t.events}:{}}}function ku(t){return t.type!==Ge}var Tu=1,Cu=2;function Ou(t,e){var n,r=0,i=[],o=!0,a=0,s=[],u=ir(t,"message",(function(t){var o=t.data;if(!("wrote"!==o.type||o.streamId&&o.streamId!==e)){var a=s[0];a&&(a.id===o.id?(s.shift(),r+=o.additionalBytesCount,i.push(o.result),n=o.trailer,a.writeCallback?a.writeCallback(o.result.byteLength):a.finishCallback&&a.finishCallback()):a.id<o.id&&(u(),Pi("Worker responses received out of order.")))}})).stop;function c(){var t=0===i.length?new Uint8Array(0):function(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),r=0,i=0,o=t;i<o.length;i++){var a=o[i];n.set(a,r),r+=a.length}return n}(i.concat(n)),e={rawBytesCount:r,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return r=0,i=[],e}function l(){o||(t.postMessage({action:"reset",streamId:e}),o=!0)}return{isAsync:!0,isEmpty:function(){return o},write:function(n,r){t.postMessage({action:"write",id:a,data:n,streamId:e}),s.push({id:a,writeCallback:r,data:n}),o=!1,a+=1},finish:function(t){l(),s.length?(s.forEach((function(t){delete t.writeCallback})),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map((function(t){return t.data})).join("");return s.length=0,I(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}function Iu(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),h=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),l=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},U=function(t,e,a){var n,r,s=new Array(16),h=0;for(n=1;n<=i;n++)s[n]=h=h+a[n-1]<<1;for(r=0;r<=e;r++){var l=t[2*r+1];0!==l&&(t[2*r]=A(s[l]++,l))}},I=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},B=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},E=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},S=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&E(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!E(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},C=function(t,e,n){var r,i,l,_,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(l=f[i],x(t,l+a+1,e),0!==(_=s[l])&&(i-=c[l],z(t,i,_)),r--,l=y(r),x(t,l,n),0!==(_=h[l])&&(r-=v[l],z(t,r,_)))}while(o<t.last_lit);x(t,256,e)},D=function(t,e){var a,n,r,s=e.dyn_tree,h=e.stat_desc.static_tree,l=e.stat_desc.has_stree,_=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<_;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,l&&(t.static_len-=h[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)S(t,s,a);r=_;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,S(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,h,l,_=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(_[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=_[2*_[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),_[2*n+1]=s,n>o||(t.bl_count[s]++,h=0,n>=c&&(h=f[n-c]),l=_[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(_[2*r+1]!==s&&(t.opt_len+=(s-_[2*r+1])*_[2*r],_[2*r+1]=s),n--)}}(t,e),U(s,o,t.bl_count)},j=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},M=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{x(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),h--),x(t,16,t.bl_tree),z(t,h-3,2)):h<=10?(x(t,17,t.bl_tree),z(t,h-3,3)):(x(t,18,t.bl_tree),z(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},L=!1,T=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){B(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},H=function(t,e,n,r){var i,s,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),h=function(t){var e;for(j(t,t.dyn_ltree,t.l_desc.max_code),j(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*_[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?T(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),C(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*_[r]+1],3);M(t,t.dyn_ltree,e-1),M(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),C(t,t.dyn_ltree,t.dyn_dtree)),I(t),r&&B(t)},R={_tr_init:function(t){L||(!function(){var t,e,a,_,m,y=new Array(16);for(a=0,_=0;_<28;_++)for(c[_]=a,t=0;t<1<<s[_];t++)f[a++]=_;for(f[a-1]=_,m=0,_=0;_<16;_++)for(v[_]=m,t=0;t<1<<h[_];t++)u[m++]=_;for(m>>=7;_<r;_++)for(v[_]=m<<7,t=0;t<1<<h[_]-7;t++)u[256+m++]=_;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(U(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,h,0,r,i),w=new b(new Array(0),l,0,19,7)}(),L=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,I(t)},_tr_stored_block:T,_tr_flush_block:H,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},K=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},N=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=N,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return~t},q={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},F=0,G=2,J=3,P=4,Q=0,V=1,W=-1,X=0,Y=8,Z=R._tr_init,$=R._tr_stored_block,tt=R._tr_flush_block,et=R._tr_tally,at=R._tr_align,nt=F,rt=1,it=J,st=P,ht=5,lt=Q,_t=V,ot=-2,dt=-3,ut=-5,ft=W,ct=1,pt=2,gt=3,wt=4,vt=X,bt=2,mt=Y,yt=258,kt=262,zt=103,xt=113,At=666,Ut=function(t,e){return t.msg=q[e],e},It=function(t){return(t<<1)-(t>4?9:0)},Bt=function(t){for(var e=t.length;--e>=0;)t[e]=0},Et=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},St=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Ct=function(t,e){tt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Dt=function(t,e){t.pending_buf[t.pending++]=e},jt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Mt=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-kt?t.strstart-(t.w_size-kt):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+yt,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=yt-(u-i),i=u-yt,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead},Lt=function(t){var e,a,n,r,i,s,h,l,_,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-kt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,h=t.window,l=t.strstart+t.lookahead,_=r,o=void 0,(o=s.avail_in)>_&&(o=_),a=0===o?0:(s.avail_in-=o,h.set(s.input.subarray(s.next_in,s.next_in+o),l),1===s.state.wrap?s.adler=K(s.adler,h,o,l):2===s.state.wrap&&(s.adler=O(s.adler,h,o,l)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Et(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Et(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<kt&&0!==t.strm.avail_in)},Tt=function(t,e){for(var a,n;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a)),t.match_length>=3)if(n=et(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Et(t,t.ins_h,t.window[t.strstart+1]);else n=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2},Ht=function(t,e){for(var a,n,r;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a),t.match_length<=5&&(t.strategy===ct||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=et(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ct(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=et(t,0,t.window[t.strstart-1]))&&Ct(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=et(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Kt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Lt(t),0===t.lookahead&&e===nt)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Ct(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-kt&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ct(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Tt),new Rt(4,5,16,8,Tt),new Rt(4,6,32,32,Tt),new Rt(4,4,16,16,Ht),new Rt(8,16,32,32,Ht),new Rt(8,16,128,128,Ht),new Rt(8,32,128,256,Ht),new Rt(32,128,258,1024,Ht),new Rt(32,258,258,4096,Ht)];function Nt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Bt(this.dyn_ltree),Bt(this.dyn_dtree),Bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Bt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ot=function(t){if(!t||!t.state)return Ut(t,ot);t.total_in=t.total_out=0,t.data_type=bt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:xt,t.adler=2===e.wrap?0:1,e.last_flush=nt,Z(e),lt},qt=function(t){var e,a=Ot(t);return a===lt&&((e=t.state).window_size=2*e.w_size,Bt(e.head),e.max_lazy_match=Kt[e.level].max_lazy,e.good_match=Kt[e.level].good_length,e.nice_match=Kt[e.level].nice_length,e.max_chain_length=Kt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Ft=function(t,e,a,n,r,i){if(!t)return ot;var s=1;if(e===ft&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==mt||n<8||n>15||e<0||e>9||i<0||i>wt)return Ut(t,ot);8===n&&(n=9);var h=new Nt;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,qt(t)},Gt={deflateInit:function(t,e){return Ft(t,e,mt,15,8,vt)},deflateInit2:Ft,deflateReset:qt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?ot:(t.state.gzhead=e,lt):ot},deflate:function(t,e){var a,n;if(!t||!t.state||e>ht||e<0)return t?Ut(t,ot):ot;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===At&&e!==st)return Ut(t,0===t.avail_out?ut:ot);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Dt(r,31),Dt(r,139),Dt(r,8),r.gzhead?(Dt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Dt(r,255&r.gzhead.time),Dt(r,r.gzhead.time>>8&255),Dt(r,r.gzhead.time>>16&255),Dt(r,r.gzhead.time>>24&255),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Dt(r,255&r.gzhead.extra.length),Dt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,3),r.status=xt);else{var s=mt+(r.w_bits-8<<4)<<8;s|=(r.strategy>=pt||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=xt,jt(r,s),0!==r.strstart&&(jt(r,t.adler>>>16),jt(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending!==r.pending_buf_size));)Dt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=zt)}else r.status=zt;if(r.status===zt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&St(t),r.pending+2<=r.pending_buf_size&&(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),t.adler=0,r.status=xt)):r.status=xt),0!==r.pending){if(St(t),0===t.avail_out)return r.last_flush=-1,lt}else if(0===t.avail_in&&It(e)<=It(i)&&e!==st)return Ut(t,ut);if(r.status===At&&0!==t.avail_in)return Ut(t,ut);if(0!==t.avail_in||0!==r.lookahead||e!==nt&&r.status!==At){var h=r.strategy===pt?function(t,e){for(var a;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===nt)return 1;break}if(t.match_length=0,a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===gt?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=yt){if(Lt(t),t.lookahead<=yt&&e===nt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+yt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=yt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=et(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):Kt[r.level].func(r,e);if(3!==h&&4!==h||(r.status=At),1===h||3===h)return 0===t.avail_out&&(r.last_flush=-1),lt;if(2===h&&(e===rt?at(r):e!==ht&&($(r,0,0,!1),e===it&&(Bt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),St(t),0===t.avail_out))return r.last_flush=-1,lt}return e!==st?lt:r.wrap<=0?_t:(2===r.wrap?(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),Dt(r,t.adler>>16&255),Dt(r,t.adler>>24&255),Dt(r,255&t.total_in),Dt(r,t.total_in>>8&255),Dt(r,t.total_in>>16&255),Dt(r,t.total_in>>24&255)):(jt(r,t.adler>>>16),jt(r,65535&t.adler)),St(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?lt:_t)},deflateEnd:function(t){if(!t||!t.state)return ot;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==zt&&e!==xt&&e!==At?Ut(t,ot):(t.state=null,e===xt?Ut(t,dt):lt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return ot;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return ot;if(1===r&&(t.adler=K(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(Bt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=Et(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,Lt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,lt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Jt=new Uint8Array(256),Pt=0;Pt<256;Pt++)Jt[Pt]=Pt>=252?6:Pt>=248?5:Pt>=240?4:Pt>=224?3:Pt>=192?2:1;Jt[254]=Jt[254]=1;var Qt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Vt=Object.prototype.toString,Wt=F,Xt=G,Yt=J,Zt=P,$t=Q,te=V,ee=W,ae=X,ne=Y;function re(){this.options={level:ee,method:ne,chunkSize:16384,windowBits:15,memLevel:8,strategy:ae};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Qt,this.strm.avail_out=0;var e=Gt.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==$t)throw new Error(q[e]);if(t.header&&Gt.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Vt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Gt.deflateSetDictionary(this.strm,a))!==$t)throw new Error(q[e]);this._dict_set=!0}}function ie(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function se(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}re.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Zt:Wt,"[object ArrayBuffer]"===Vt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Xt||n===Yt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Gt.deflate(r,n))===te)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Gt.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===$t;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},re.prototype.onData=function(t){this.chunks.push(t)},re.prototype.onEnd=function(t){t===$t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"3.2.36"};case"write":var n=e.get(a.streamId);n||(n=new re,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,G),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:se(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){ie(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){ie(e,t)}}()}();'])))}var Au=0,Ru=1,Pu=2,Nu=3,Mu={status:Au};function Lu(t,e,n,r){switch(void 0===r&&(r=Iu),Mu.status===Au&&function(t,e,n){void 0===n&&(n=Iu);try{var r=n(t),i=ir(r,"error",(function(n){Uu(t,e,n)})),a=ir(r,"message",(function(t){var e,n=t.data;"errored"===n.type?Uu(n.error,n.streamId):"initialized"===n.type&&(e=n.version,Mu.status===Ru&&(Mu={status:Nu,worker:Mu.worker,version:e,stop:Mu.stop}))}));r.postMessage({action:"init"}),h((function(){return function(t){Mu.status===Ru&&(o.error(t+" failed to start: a timeout occurred while initializing the Worker"),Mu.initializationFailureCallbacks.forEach((function(t){t()})),Mu={status:Pu})}(e)}),1e4),Mu={status:Ru,worker:r,stop:function(){i.stop(),a.stop()},initializationFailureCallbacks:[]}}catch(n){Uu(t,e,n)}}(t,e,r),Mu.status){case Ru:return Mu.initializationFailureCallbacks.push(n),Mu.worker;case Nu:return Mu.worker}}function Du(){return Mu.status}function Uu(t,e,n,r){if(Mu.status===Ru){var i;if(o.error(e+" failed to start: an error occurred while creating the Worker:",n),n instanceof Event||n instanceof Error&&(It(a=n.message,"Content Security Policy")||It(a,"requires 'TrustedScriptURL'")))i=t.workerUrl?"Please make sure the Worker URL "+t.workerUrl+" is correct and CSP is correctly configured.":"Please make sure CSP is correctly configured.",o.error(i);else Ni(n);Mu.status===Ru&&Mu.initializationFailureCallbacks.forEach((function(t){t()})),Mu={status:Pu}}else Ni(n,{worker_version:Mu.status===Nu&&Mu.version,stream_id:r});var a}function Bu(t,e,n,r,i,o,a){var s=function(t,e,n,r,i,o){void 0===o&&(o=ta);var a=function(t,e){return o({encoder:e.encoder,request:Fo(e.endpoint,t.batchBytesLimit,t.retryMaxSize,n),flushController:na({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(Cu)},r,i,o);return e.subscribe(Tr,(function(t){t.type===Je.VIEW?s.upsert(t,t.view.id):s.add(t)})),n.subscribe((function(t){s.add(t)})),s}function zu(t){return zu="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},zu(t)}function Vu(t){var e=function(t,e){if("object"!=zu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=zu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zu(e)?e:e+""}function ju(t,e,n){return(e=Vu(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Hu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$u(Object(n),!0).forEach((function(e){ju(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Fu,Wu="synthetics",qu="user",Gu={"view.url":"string","view.referrer":"string"},Qu={context:"object"},Ku={service:"string",version:"string"},Xu={};function Ju(t,e,n,r,i,a,s,u,c,l){Xu[Je.VIEW]=Hu(Hu({},Qu),Gu),Xu[Je.ERROR]=I({"error.message":"string","error.stack":"string","error.resource.url":"string"},Qu,Gu,Ku),Xu[Je.RESOURCE]=I({"resource.url":"string"},Qu,Gu,Ku),Xu[Je.ACTION]=I({"action.target.name":"string"},Qu,Gu,Ku),Xu[Je.LONG_TASK]=I({},Qu,Gu);var f={};f[Je.ERROR]=Br(Je.ERROR,t.eventRateLimiterThreshold,l),f[Je.ACTION]=Br(Je.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(kr,(function(l){var d,p=l.startTime,v=l.rawRumEvent,h=l.savedCommonContext,m=l.customerContext,g=l.domainContext,y=i.findView(p),_=a.findUrl(p),b=n.findTrackedSession(p);if((!b||!b.isErrorSession||b.sessionHasError)&&(b&&y&&_)){var w=s.findActionId(p),S=s.findAllActionId(p),x=h||c(),E={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(yt()-(Et()+performance.now())),configuration:{session_sample_rate:lt(t.sessionSampleRate,3),session_replay_sample_rate:lt(t.sessionReplaySampleRate,3),session_on_error_sample_rate:lt(t.sessionOnErrorSampleRate,3),session_replay_on_error_sample_rate:lt(t.sessionReplayOnErrorSampleRate,3)}},terminal:{type:"web"},application:{id:t.applicationId},device:ne,env:t.env||"",service:y.service||t.service||"browser",version:y.version||t.version||"",source:"browser",date:gt(),user:{id:r.getId(),is_signin:"F",is_login:!1},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?qu:Wu,id:b.id},view:{id:y.id,name:y.name||_.path,url:_.url,referrer:_.referrer,host:_.host,path:_.path,pathGroup:_.pathGroup,pathname:_.pathname,urlQuery:_.urlQuery},action:(d=v,-1!==[Je.ERROR,Je.RESOURCE,Je.LONG_TASK].indexOf(d.type)&&w?{id:w,ids:S}:void 0),display:u.get()},k=Vt(P(E,y,v)),T=P({},x.context,y.context,m);H(T)||(k.context=T),"has_replay"in k.session||(k.session.has_replay=x.hasReplay),b.errorSessionReplayAllowed&&(k.session.has_replay=k.session.has_replay&&b.sessionHasError),"view"===k.type&&(k.session.sampled_for_error_replay=b.errorSessionReplayAllowed,k.session.sampled_for_error_session=b.isErrorSession,k.session.error_timestamp_for_session=b.sessionErrorTimestamp),H(x.user)||(k.user=P({is_signin:"T",is_login:!0},x.user)),function(t,e,n,r){if(e){var i=Lr(t,Xu[t.type],(function(t){return e(t,n)}));if(!1===i&&t.type!==Je.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}(k,t.beforeSend,g,f)&&(H(k.context)&&delete k.context,e.notify(Tr,k))}}))}function Yu(){return Fu||(Fu=new tr((function(t){var e=Q((function(){t.notify(Zu())}),200).throttled;return ir(window,Oe,e,{capture:!0,passive:!0}).stop}))),Fu}function Zu(){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 tc=ei;var ec=ei;function nc(e,n,r,i){var o=new tr;!function(e){var n=rr([t.error]).subscribe((function(t){e.notify(t.error)}))}(o),function(t){Rn((function(e,n){t.notify(qn({stackTrace:e,originalError:n,startClocks:mt(),nonErrorPrefix:pn,source:Hn,handling:dn}))}))}(o),function(t,e){var n=ur(0,[ar]).subscribe((function(t){e.notify({startClocks:mt(),message:t.message,stack:t.stack,type:t.subtype,source:Wn,handling:dn})}))}(0,o);var a=r.findTrackedSession(),s=a.isErrorSession&&a.sessionHasError;return a.isErrorSession&&e.subscribe(br,(function(){s=!1})),o.subscribe((function(t){a.isErrorSession&&!s&&(r.setErrorForSession(),s=!0),e.notify(Cr,{error:t})})),function(t,e){return t.subscribe(Cr,(function(n){t.notify(kr,I({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:X(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser"},type:Je.ERROR,view:{in_foreground:e.wasInPageStateAt(gu,t.startClocks.relative)}};return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(n.error,e)))})),{addError:function(e,n){var r=e.error,i=qn({stackTrace:r instanceof Error?bn(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:vn,source:Fn,handling:fn});t.notify(Cr,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,i)}function rc(){if(ks(bs)){var t=performance.getEntriesByType(bs)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(G(e[n])){var r=n,i=e[r];t[r]=0===i?0:pt(i)}return t}(),n=I({entryType:bs,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return I({},n,{toJSON:void 0})}},e);return n}function ic(t,e,n){return void 0===n&&(n=rc),function(t){var e,n=wo("complete",(function(){e=h((function(){t()}))}));return{stop:function(){n.stop(),m(e)}}}((function(){var t=n();(function(t){return t.loadEventEnd<=0})(t)||e(function(t){return{fetchStart:t.fetchStart,responseEnd:t.responseEnd,domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,loadEventEnd:t.loadEventEnd,loadEventStart:t.loadEventStart,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domContentLoadedEventStart:t.domContentLoadedEventStart,firstByte:t.responseStart>=0&&t.responseStart<=ht()?t.responseStart:void 0}}(t))}))}function oc(t,e){if(void 0===e&&(e=window),"hidden"===document.visibilityState)return{getTimeStamp:function(){return 0},stop:ot};if(ks(xs)){var n=performance.getEntriesByType(xs).filter((function(t){return"hidden"===t.name})).find((function(e){return e.startTime>=t.relative}));if(n)return{getTimeStamp:function(){return n.startTime},stop:ot}}var r=1/0,i=or(e,[Se,pe],(function(t){t.type!==Se&&"hidden"!==document.visibilityState||(r=t.timeStamp,i())}),{capture:!0}).stop;return{getTimeStamp:function(){return r},stop:function(){i()}}}function ac(t,e,n,r){var i={},o=ic(0,(function(t){n(t.loadEvent),i.navigationTimings=t,r()})),a=oc(e),s=o.stop,u=function(t,e,n){return{stop:Es(t,{type:ws,buffered:!0}).subscribe((function(t){var r=At(t,(function(t){return t.entryType===ws&&"first-contentful-paint"===t.name&&t.startTime<e.getTimeStamp()&&t.startTime<6e5}));r&&n(r.startTime)})).unsubscribe}}(t,a,(function(t){i.firstContentfulPaint=t,r()})),c=u.stop,l=function(t,e,n,r){var i=1/0,o=or(n,[ye,ae],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=0,s=Es(t,{type:ms,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===ms&&t.startTime<i&&t.startTime<e.getTimeStamp()&&t.startTime<6e5&&t.size>a}));s&&(s.element&&(o=Js(s.element,t.actionNameAttribute)),r({value:s.startTime,targetSelector:o}),a=s.size)}));return{stop:function(){o(),s.unsubscribe()}}}(t,a,window,(function(t){i.largestContentfulPaint=t,r()})),f=l.stop,d=function(t,e,n){var r=Es(t,{type:hs,buffered:!0}).subscribe((function(r){var i=At(r,(function(t){return t.entryType===hs&&t.startTime<e.getTimeStamp()}));if(i){var o,a=_t(i.startTime,i.processingStart);i.target&&mo(i.target)&&(o=Js(i.target,t.actionNameAttribute)),n({delay:a>=0?a:0,time:i.startTime,targetSelector:o})}}));return{stop:function(){r.unsubscribe()}}}(t,a,(function(t){i.firstInput=t,r()})),p=d.stop;return{stop:function(){s(),c(),f(),p(),a.stop()},initialViewMetrics:i}}var sc=st;function uc(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=sc);return new tr((function(t){function n(){var e,n,r,i;t.notify((e=xo(),n=Zu().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(n+e),{scrollHeight:r,scrollDepth:i,scrollTop:e}))}if(window.ResizeObserver){var r=Q(n,e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(u(r.throttled));i&&o.observe(i);var a=ir(window,ce,r.throttled,{passive:!0});return function(){r.cancel(),o.unobserve(i),a.stop()}}}))}());var i=0,o=0,a=0,s=r.subscribe((function(t){var r=t.scrollDepth,s=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=ht();a=_t(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:a})}));return{stop:function(){return s.unsubscribe()}}}function cc(t,e,n){if(!vc())return{stop:ot};var r,i,o=0;n({value:0});var a=function(){var t,e,n=0,r=0;return{update:function(i){var o;return void 0===t||i.startTime-e>=pc||i.startTime-t>=5*dc?(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=Es(t,{type:gs,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=lc(l.sources);r=p?new WeakRef(p):void 0,i=_t(e,l.startTime)}if(d>o){o=d;p=r&&r.deref();n({value:lt(o,4),targetSelector:p&&Js(p,t.actionNameAttribute),time:i})}}}}));return{stop:function(){s.unsubscribe()}}}function lc(t){if(t){var e=At(t,(function(t){return!!t.node&&mo(t.node)}));return e&&e.node}}var fc,dc=5e3,pc=st;function vc(){return ks(gs)&&"WeakRef"in window}var hc=0,mc=1/0,gc=0;var yc=function(){return fc?hc:window.performance.interactionCount||0};function _c(t,e,n){if(!(ks("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ot,stop:ot};var r,i,o=function(t){"interactionCount"in performance||fc||(fc=new window.PerformanceObserver(u((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(mc=Math.min(mc,e.interactionId),gc=Math.max(gc,e.interactionId),hc=(gc-mc)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===tn?0:yc(),n={stopped:!1};function r(){return yc()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,c=1/0,l=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(10)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(a),f=-1;function d(n){for(var o=0,a=n;o<a.length;o++){var s=a[o];s.interactionId&&s.startTime>=e&&s.startTime<=c&&l.process(s)}var u,d,p=l.estimateP98Interaction();p&&p.duration!==f&&(f=p.duration,i=_t(e,p.startTime),u=p.startTime,d=fu.get(u),fu.delete(u),!(r=d)&&p.target&&mo(p.target)&&(r=Js(p.target,t.actionNameAttribute)))}var p=Es(t,{type:hs,buffered:!0}).subscribe(d),v=Es(t,{type:vs,durationThreshold:40,buffered:!0}).subscribe(d);return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,6e4),targetSelector:r,time:i}:a()?{value:0}:void 0},setViewEnd:function(t){c=t,s()},stop:function(){v.unsubscribe(),p.unsubscribe()}}}function bc(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a=r===tn,s=!0,u=[],c=oc(i);function l(){if(!s&&!a&&u.length>0){var t=Math.max.apply(Math,u);t<c.getTimeStamp()-i.relative&&o(t)}}var f=Os(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(_t(i.timeStamp,t.end)),l())})).stop;return{setLoadEvent:function(t){a&&(a=!1,u.push(t),l())},stop:function(){f(),c.stop(),s&&(s=!1,l())}}}(t,e,n,i,o,(function(t){a.loadingTime=t,r()})),u=s.stop,c=s.setLoadEvent,l=uc(0,o,(function(t){a.scroll=t})).stop,f=cc(n,o.relative,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=_c(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 wc,Sc=3e5,xc=3e5;function Ec(t,e,n,r,i,o,a){var s=new Set;function u(i,o,a){var u=function(t,e,n,r,i,o,a){void 0===o&&(o=mt());var s,u,c,l,f,d=X(),p=new tr,v={},m=0,_=A(r),b=va(),w=!0;a&&(u=a.name,c=a.service,l=a.version,f=a.context);f&&b.setContext(f);var S={id:d,name:u,startClocks:o,service:c,version:l};t.notify(vr,S),t.notify(hr,S);var x=Q(H,3e3,{leading:!1}),E=x.throttled,k=x.cancel,T=bc(t,e,n,$,i,o),C=T.setLoadEvent,O=T.stop,I=T.getCommonViewMetrics,R=T.stopINPTracking,P=T.setViewEnd,N=i===tn?ac(n,o,C,$):{stop:ot,initialViewMetrics:{}},M=N.stop,L=N.initialViewMetrics,D=function(t,e,n){var r=Ts({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,d,$),U=D.stop,B=D.eventCounts,z=g(H,Sc),V=t.subscribe(Sr,(function(t){t.reason===vo.UNLOADING&&H()}));function j(){t.notify(gr,{id:d,name:u,context:b.getContext(),startClocks:o})}function $(){j(),E()}function H(){k(),j(),m+=1;var e=void 0===s?gt():s.timeStamp;t.notify(mr,{customTimings:v,documentVersion:m,id:d,name:u,service:c,version:l,context:b.getContext(),loadingType:i,location:_,startClocks:o,commonViewMetrics:I(),initialViewMetrics:L,duration:_t(o.timeStamp,e),isActive:void 0===s,sessionIsActive:w,eventCounts:B})}H(),b.changeObservable.subscribe($);var F={name:u,service:c,version:l,contextManager:b,stopObservable:p,end:function(e){s||(s=$t(e&&e.endClocks,mt()),w=$t(e&&e.sessionIsActive,!0),t.notify(yr,{endClocks:s}),t.notify(_r,{endClocks:s}),y(z),P(s.relative),O(),V.unsubscribe(),H(),h((function(){F.stop()}),xc))},stop:function(){M(),U(),R(),p.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<31536e6}(e)?e:_t(o.timeStamp,e);v[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");e!==t&&console.warn("Invalid timing name: "+t+", sanitized to: "+e);return e}(t)]=n,$()}},setViewName:function(t){u=t,H()}};return F}(e,n,r,t,i,o,a);return s.add(u),u.stopObservable.subscribe((function(){s.delete(u)})),u}var c,l=u(tn,bt(),a);return e.subscribe(br,(function(){l=u(en,void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})})),e.subscribe(wr,(function(){l.end({sessionIsActive:!1})})),o&&(c=function(t){return t.subscribe((function(t){var e,n,r,i,o=t.oldLocation,a=t.newLocation;if(n=a,(e=o).pathname!==n.pathname||(r=n.hash,!((i=r.substr(1))&&document.getElementById(i)||qt(n.hash)===qt(e.hash))))return l.end(),void(l=u(en))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=gt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(en,e,t)},setViewContext:function(t){l.contextManager.setContext(t)},setViewContextProperty:function(t,e){l.contextManager.setContextProperty(t,e)},setViewName:function(t){l.setViewName(t)},getViewContext:function(){return l.contextManager.getContext()},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach((function(t){t.stop()}))}}}function kc(t,e,n,r,i,o,a,s){return t.subscribe(mr,(function(n){t.notify(kr,function(t,e,n,r){var i=n.getReplayStats(t.id),o=r.findAll(t.startClocks.relative,t.duration),a={_gc:{document_version:t.documentVersion,replay_stats:i,page_states:o,view_update_time:t.documentVersion},date:t.startClocks.timeStamp,type:Je.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:Tt(t.commonViewMetrics,"cumulativeLayoutShift.value"),cumulative_layout_shift_time:Tt(t.commonViewMetrics,"cumulativeLayoutShift.time"),cumulative_layout_shift_target_selector:Tt(t.commonViewMetrics,"cumulativeLayoutShift.targetSelector"),first_byte:dt(Tt(t.initialViewMetrics,"navigationTimings.firstByte")),dom_complete:dt(Tt(t.initialViewMetrics,"navigationTimings.domComplete")),dom_content_loaded:dt(Tt(t.initialViewMetrics,"navigationTimings.domContentLoaded")),dom_interactive:dt(Tt(t.initialViewMetrics,"navigationTimings.domInteractive")),error:{count:t.eventCounts.errorCount},first_contentful_paint:dt(Tt(t.initialViewMetrics,"firstContentfulPaint")),first_input_delay:dt(Tt(t.initialViewMetrics,"firstInput.delay")),first_input_time:dt(Tt(t.initialViewMetrics,"firstInput.time")),first_input_target_selector:Tt(t.initialViewMetrics,"firstInput.targetSelector"),interaction_to_next_paint:dt(Tt(t.commonViewMetrics,"interactionToNextPaint.value")),interaction_to_next_paint_target_selector:Tt(t.commonViewMetrics,"interactionToNextPaint.targetSelector"),is_active:t.isActive,name:t.name,largest_contentful_paint:dt(Tt(t.initialViewMetrics,"largestContentfulPaint.value")),largest_contentful_paint_element_selector:Tt(t.initialViewMetrics,"largestContentfulPaint.targetSelector"),load_event:dt(Tt(t.initialViewMetrics,"navigationTimings.loadEvent")),loading_time:Gt(dt(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:dt(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:dt(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!i||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};H(t.customTimings)||(a.view.custom_timings=(s=t.customTimings,u=dt,c={},O(s,(function(t,e){c[e]=u(t)})),c));var s,u,c;return a=P(a,{view:Tc(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),Ec(n,t,r,e,i,!e.trackViewsManually,s)}function Tc(t){if(t){var e=t.fetchStart,n=t.responseEnd,r=t.domInteractive,i=t.domContentLoaded,o=t.domComplete,a=t.loadEventEnd,s=t.loadEventStart,u=t.domContentLoadedEventEnd,c={};if(G(n)&&G(e)&&n!==e&&n>e){c.fpt=dt(n-e);var l=parseInt((n-e)/1e3);c.apdexLevel=l>9?9:l}return G(r)&&G(e)&&r!==e&&r>e&&(c.tti=dt(r-e)),G(i)&&G(e)&&i!==e&&i>e&&(c.dom_ready=dt(i-e)),G(a)&&G(e)&&a!==e&&a>e&&(c.load=dt(a-e)),G(s)&&G(u)&&s!==u&&s>u&&(c.resource_load_time=dt(s-u)),G(o)&&G(r)&&o!==r&&o>r&&(c.dom=dt(o-r)),c}}function Cc(){this.buffer=new Uint8Array(8),Oc().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function Oc(){return window.crypto||window.msCrypto}function Ic(t,e){if(this._spanId=new Cc,this._traceId=new Cc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Ac(){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 Rc(t,e,n){if(this._spanId=Ac(),this._traceId=Ac(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=Y(e).getParse(),this._traceSampled=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function Pc(t,e){if(this._traceId=new Cc,this._spanId=new Cc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Nc(t,e){if(this._traceId=new Cc,this._spanId=new Cc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Mc(t,e){if(this._traceId=new Cc,this._spanId=new Cc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Lc(t,e,n){if(this._traceId=new Cc,this._spanId=new Cc,this._traceSampled=e,this.isHexTraceId=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function Dc(t,e){return 100===e||0!==e&&(wc&&t===wc.sessionId?wc.decision:(n=window.BigInt?function(t,e){var n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000");return Number(t*n%r)<=e/100*Number(r)}(BigInt("0x".concat(t.split("-")[4])),e):ct(e),wc={sessionId:t,decision:n},n));var n}function Uc(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Bc(t,e,n,r){var i=n.findTrackedSession();if(i){var o=At(t.allowedTracingUrls,(function(t){return V([t.match],e.url,!0)}));if(o){var a=Dc(i.id,t.tracingSampleRate);if(a){var s;switch(o.traceType){case rn:s=new Ic(t,a);break;case cn:s=new Rc(t,e.url,a);break;case on:s=new Mc(t,a);break;case ln:s=new Pc(t,a);break;case sn:s=new Lc(t,a);break;case un:s=new Lc(t,a,!0);break;case an:s=new Nc(t,a)}if(s&&s.isTracingSupported()){e.traceId=s.getTraceId(),e.spanId=s.getSpanId(),e.traceSampled=a;var u=s.makeTracingHeaders();if(t.injectTraceHeader){var c=t.injectTraceHeader(A(e));"object"===et(c)&&O(c,(function(t,e){"string"===et(t)&&(u[e]=t)}))}r(u)}}}}}Cc.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]}},Ic.prototype={isTracingSupported:function(){return void 0!==Oc()},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()}}},Rc.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId},getSkyWalkingSw8:function(){try{var t=String(K(this.getTraceId())),e=String(K(this.getSpanId())),n=String(K(this._applicationId+"_rum_"+this.env)),r=String(K(this._version)),i=String(K(window.location.href)),o=String(K(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},Pc.prototype={isTracingSupported:function(){return void 0!==Oc()},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()}}},Nc.prototype={isTracingSupported:function(){return void 0!==Oc()},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()}}},Mc.prototype={isTracingSupported:function(){return void 0!==Oc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},makeTracingHeaders:function(){return{"X-B3-TraceId":this.getTraceId(),"X-B3-SpanId":this.getSpanId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},Lc.prototype={isTracingSupported:function(){return void 0!==Oc()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.isHexTraceId?this._traceId.toDecimalString():this._traceId.toPaddedHexadecimalString()+this._spanId.toPaddedHexadecimalString()},getTraceParent:function(){return this.isHexTraceId?"00-0000000000000000"+this._traceId.toPaddedHexadecimalString()+"-"+this._spanId.toPaddedHexadecimalString()+"-"+(this._traceSampled?"01":"00"):"00-"+this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"01":"00")},makeTracingHeaders:function(){var t={traceparent:this.getTraceParent()};return this.isHexTraceId?I(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var zc=1;function Vc(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Uc,traceFetch:function(n){return Bc(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=A(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):N(n.init.headers)?O(n.init.headers,(function(t){e.push(t)})):n.init.headers&&O(n.init.headers,(function(t,n){e.push([n,t])}));var r={};O(e.concat(F(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),O(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return Bc(t,n,e,(function(t){O(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=lo().subscribe((function(r){var i=r;if(us(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=jc(),t.notify(xr,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(Er,{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:nn.XHR,url:i.url,xhr:i.xhr,isAborted:i.isAborted,handlingStack:i.handlingStack})}}))}(t,e,r),function(t,e,n){var r=uo().subscribe((function(r){var i=r;if(us(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=jc(),t.notify(xr,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":!function(t,e){var n=t.response&&function(t){try{return t.clone()}catch(t){return}}(t.response);n&&n.body?function(t,e,n){var r=t.getReader(),i=[],o=0;function a(){var t,a;if(r.cancel().catch(ot),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;O(i,(function(t){s.set(t,u),u+=t.length}))}t=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}e(void 0,t,a)}!function t(){r.read().then(u((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())})),u((function(t){e(t)})))}()}(n.body,(function(){e(_t(t.startClocks.timeStamp,gt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(_t(t.startClocks.timeStamp,gt()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(Er,{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:nn.FETCH,url:i.url,response:i.response,init:i.init,input:i.input,isAborted:i.isAborted,handlingStack:i.handlingStack})}))}}))}(t,e,r)}function jc(){var t=zc;return zc+=1,t}var $c=new Oa;function Hc(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=U(e,(function(t){return!$c.has(t)}));n=U(n,(function(t){return rs(t)&&is(t)})),n=U(n,(function(e){return n=e,r=t.startClocks.relative,i=Fc({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Fc(n)<=St(i,o);var n,r,i,o}));var r=void 0;if(n.length>1){var i=Number.MAX_SAFE_INTEGER;n.forEach((function(e){var n=Math.abs(e.startTime-t.startClocks.relative);n<i&&(i=n,r=e)}))}else 1===n.length&&(r=n[0]);return r?($c.add(r),r.toJSON()):void 0}}}function Fc(t){return St(t.startTime,t.duration)}function Wc(t,e){wo("interactive",(function(){var t=I(rc().toJSON(),{entryType:Ss,initiatorType:Ga,toJSON:function(){return I({},t,{toJSON:void 0})}});e(t)}))}function qc(t,e,n,r,i){void 0===r&&(r=function(){var t=[];function e(e){var r;if(e.didTimeout){var i=performance.now();r=function(){return 30-(performance.now()-i)}}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){Fr(e,{timeout:1e3})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===i&&(i=Wc),t.subscribe(Er,(function(t){a((function(){return function(t,e){var n=Hc(t),r=n?wt(n.startTime):t.startClocks,i=function(t){var e=t.traceSampled&&t.traceId&&t.spanId;if(!e)return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:X()}}}(t),o=t.type===nn.XHR?Ue:ze,a=n?Qc(n):void 0,s=function(t,e,n){return t.wasInPageStateDuringPeriod(bu,e.relative,n)?void 0:dt(n)}(e,r,t.duration),u=Y(t.url).getParse(),c=P({date:r.timeStamp,resource:{id:X(),type:o,duration:s,method:t.method,status:t.status,statusGroup:it(t.status),url:ls(t.url)?fs(t.url):t.url,urlHost:u.Host,urlPath:u.Path,urlPathGroup:J(u.Path),urlQuery:Z(t.url),deliveryType:n&&Ja(n),protocol:n&&Ya(n)},type:Je.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=Es(e,{type:Ss,buffered:!0}).subscribe((function(t){for(var n=function(t){(function(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType})(t)||ts(t.name,e.resourceUrlLimit)||a((function(){return Gc(t,e)}))},r=0,i=t;r<i.length;r++){n(i[r])}}));function a(e){r.push((function(){var n=e();n&&t.notify(kr,n)}))}return i(e,(function(t){a((function(){return Gc(t,e)}))})),{stop:function(){o.unsubscribe()}}}function Gc(t,e){var n,r=wt(t.startTime),i=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),o=Ka(t),a=Qc(t),s=Y(t.name).getParse(),u=P({date:r.timeStamp,resource:{id:X(),type:o,url:t.name,urlHost:s.Host,urlPath:s.Path,urlPathGroup:J(s.Path),urlQuery:Z(t.name),method:"GET",status:(n=t.responseStatus,0===n?void 0:n),statusGroup:it(t.responseStatus),deliveryType:Ja(t),protocol:Ya(t)},type:Je.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:u,domainContext:{performanceEntry:t}}}function Qc(t){return{resource:P({},{duration:es(t)},ss(t),ns(t))}}var Kc={sdkVersion:"3.2.36",sdkName:"df_web_rum_sdk"};function Xc(t){if(t.applicationId){var e=function(t){return t.site||t.datakitOrigin||t.datakitUrl?!(t.site&&!t.clientToken&&(o.error("clientToken is not configured, no RUM data will be collected."),1)):(o.error("datakitOrigin or site is not configured, no RUM data will be collected."),!1)}(t);if(e)if(void 0===t.sessionOnErrorSampleRate||Pt(t.sessionOnErrorSampleRate))if(void 0===t.sessionReplaySampleRate||Pt(t.sessionReplaySampleRate))if(void 0===t.sessionReplayOnErrorSampleRate||Pt(t.sessionReplayOnErrorSampleRate)){var n=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&o.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!N(t.allowedTracingUrls))return void o.error("Allowed Tracing URLs should be an array");var e=[];return O(t.allowedTracingUrls,(function(n){var r;Ot(n)?e.push({match:n,traceType:$t(t.traceType,rn)}):"object"===et(r=n)&&Ot(r.match)&&W(r.traceType)?e.push(n):o.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)})),e}if(void 0!==t.allowedTracingOrigins){if(!N(t.allowedTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return O(t.allowedTracingOrigins,(function(n){var r=Jc(n,$t(t.traceType,rn));r&&e.push(r)})),e}if(void 0!==t.allowedDDTracingOrigins){if(!N(t.allowedDDTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return O(t.allowedDDTracingOrigins,(function(n){var r=Jc(n,$t(t.traceType,rn));r&&e.push(r)})),e}return[]}(t);if(n)if(void 0===t.tracingSampleRate||Pt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||N(t.excludedActivityUrls)){var r=Xi(t);if(r){var i=!!$t(t.trackUserInteractions,t.trackInteractions);return I({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:$t(t.sessionReplaySampleRate,100),sessionOnErrorSampleRate:$t(t.sessionOnErrorSampleRate,0),sessionReplayOnErrorSampleRate:$t(t.sessionReplayOnErrorSampleRate,0),tracingSampleRate:$t(t.tracingSampleRate,100),allowedTracingUrls:n,injectTraceHeader:t.injectTraceHeader&&f(t.injectTraceHeader,"injectTraceHeader threw an error:"),generateTraceId:t.generateTraceId&&f(t.generateTraceId,"generateTraceId threw an error:"),excludedActivityUrls:$t(t.excludedActivityUrls,[]),workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:i,enableLongAnimationFrame:!!t.enableLongAnimationFrame,trackViewsManually:!!t.trackViewsManually,traceType:$t(t.traceType,rn),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:Ht(Ki,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:Ki.MASK_USER_INPUT,shouldMaskNode:t.shouldMaskNode&&f(t.shouldMaskNode,"shouldMaskNode threw an error:")},r,Kc)}}else o.error("Excluded Activity Urls should be an array");else o.error("Tracing Sample Rate should be a number between 0 and 100")}else o.error("Error Session Replay Sample Rate should be a number between 0 and 100");else o.error("Session Replay Sample Rate should be a number between 0 and 100");else o.error("Error Session Sample Rate should be a number between 0 and 100")}else o.error("Application ID is not configured, no RUM data will be collected.")}function Jc(t,e){var n;if("string"==typeof t?n=t:t instanceof RegExp?n=function(e){return t.test(Vr(e))}:"function"==typeof t&&(n=function(e){return t(Vr(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 Yc(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=sa();if(e&&(t=function(t){var e,n;return I({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(e=t.defaultPrivacyLevel)&&void 0!==e?e:null===(n=ia())||void 0===n?void 0:n.getPrivacyLevel()})}(t)),a=t,function(t){Ai({type:xi,configuration:t})}(rt(t)),s)Ia("DATAFLUX_RUM",t);else{var n=Xc(t);n&&(e||n.sessionStoreStrategyType?(!n.compressIntakeRequests||n.sendContentTypeByJson||e||!c||(i=c(n,"RUM",ot)))&&(s=n,uo().subscribe(ot),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||Zr("guance-synthetics-injects-rum"))||(t.remoteConfiguration?ro(t,d):d(t))):o.error("Missing configuration")},getInitConfiguration:function(){return a},getInternalContext:ot,stopSession:ot,addTiming:function(t,e){void 0===e&&(e=gt()),l.add((function(n){n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=mt());var n=function(n){n.startView(t,e)};l.add(n),r||(r={options:t,callback:n},f())},setViewName:function(t){l.add((function(e){return e.setViewName(t)}))},setViewContext:function(t){l.add((function(e){return e.setViewContext(t)}))},setViewContextProperty:function(t,e){l.add((function(n){return n.setViewContextProperty(t,e)}))},getViewContext:function(){},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 Zc=2,tl=3,el=4,nl=6,rl=7,il=8,ol=9,al=0,sl=1,ul=2,cl=3,ll=4,fl=11,dl=0,pl=1,vl=2,hl=3,ml=4,gl=5,yl=6,_l=7,bl=8,wl=0,Sl=1,xl=2,El=3,kl=4,Tl=5,Cl=6,Ol=7,Il=9,Al=0,Rl=1,Pl={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Ki.ALLOW,MASK:Ki.MASK,MASK_USER_INPUT:Ki.MASK_USER_INPUT},Nl="data-gc-privacy",Ml="hidden",Ll="***",Dl={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Ul(t,e,n){if(n&&n.has(t))return n.get(t);var r=bo(t),i=r?Ul(r,e):e,o=Bl(zl(t),i);return n&&n.set(t,o),o}function Bl(t,e){switch(e){case Pl.HIDDEN:case Pl.IGNORE:return e}switch(t){case Pl.ALLOW:case Pl.MASK:case Pl.MASK_USER_INPUT:case Pl.HIDDEN:case Pl.IGNORE:return t;default:return e}}function zl(t){if(mo(t)){var e=t.getAttribute(Nl);if("BASE"===t.tagName)return Pl.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return Pl.MASK;if("hidden"===n.type)return Pl.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return Pl.MASK}return e===Ml||t.classList.contains("gc-privacy-hidden")?Pl.HIDDEN:"mask"===e||t.classList.contains("gc-privacy-mask")?Pl.MASK:"mask-user-input"===e||t.classList.contains("gc-privacy-mask-user-input")?Pl.MASK_USER_INPUT:"allow"===e||t.classList.contains("gc-privacy-allow")?Pl.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)?Pl.IGNORE:void 0}}function Vl(t,e,n){if(t.shouldMaskNode&&!0===t.shouldMaskNode(e,n))return!0;switch(n){case Pl.MASK:case Pl.HIDDEN:case Pl.IGNORE:return!0;case Pl.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(e)?jl(e.parentNode):jl(e);default:return!1}}function jl(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!!Dl[e.tagName]}function $l(t,e,n,r){var i=e.parentElement&&e.parentElement.tagName,o=e.textContent||"";if(!n||o.trim()){if("SCRIPT"===i)o=Ll;else if(r===Pl.HIDDEN)o=Ll;else if(Vl(t,e,r))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?Ll:o.replace(/\S/g,"x");return o}}var Hl=new WeakMap;function Fl(t){return Hl.has(t)}function Wl(t){return Hl.get(t)}function ql(t,e,n){var r=e.tagName,i=e.value;if(Vl(t,e,n)){var o=e.type;if("INPUT"===r&&("button"===o||"submit"===o||"reset"===o||"range"===o))return i;if(!i||"OPTION"===r)return;return Ll}return"OPTION"===r||"SELECT"===r?e.value:"INPUT"===r||"TEXTAREA"===r?i:void 0}var Gl=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Ql=/^[A-Za-z]+:|^\/\//,Kl=/^data:.*,/i;function Xl(t,e){return t.replace(Gl,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Ql.test(s)||Kl.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 jr(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}function Jl(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch(t){}return e?Xl(((n=Array.from(e,Bt()===Dt?Zl:Yl).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 Yl(t){return function(t){return"styleSheet"in t}(t)&&Jl(t.styleSheet)||t.cssText}function Zl(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return Yl(t)}function tf(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 ef(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var nf=/^[^ \t\n\r\u000c]+/,rf=/^[, \t\n\r\u000c]+/;var of=0,af=1,sf=2;function uf(t,e,n){return cf(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function cf(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:al,childNodes:lf(t,e),adoptedStyleSheets:tf(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=yo(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:fl,childNodes:lf(t,e),isShadowRoot:n,adoptedStyleSheets:n?tf(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:sl,name:(n=t).name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=vf(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=Bl(zl(t),e.parentNodePrivacyLevel);var o;if(i===Pl.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:ul,tagName:n,attributes:ju({rr_width:s+"px",rr_height:u+"px"},Nl,Ml),childNodes:[],isSVG:r}}if(i===Pl.IGNORE)return;var c=function(t,e,n){if(e===Pl.HIDDEN)return{};for(var r={},i=vf(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=ff(t,e,s,n.configuration);null!==u&&(r[s]=hf(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=ql(n.configuration,t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===Pl.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=Jl(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=Jl(t.sheet))&&(r._cssText=d)}var p,v,h=t;"input"!==i||"radio"!==h.type&&"checkbox"!==h.type||(e===Pl.ALLOW?r.checked=!!h.checked:Vl(n.configuration,h,e)&&delete r.checked);if("audio"===i||"video"===i){var m=t;r.rr_mediaState=m.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case of:p=Math.round(t.scrollTop),v=Math.round(t.scrollLeft),(p||v)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:v});break;case af:if(g.elementsScrollPositions.has(t)){var y=g.elementsScrollPositions.get(t);p=y.scrollTop,v=y.scrollLeft}}v&&(r.rr_scrollLeft=v);p&&(r.rr_scrollTop=p);return r}(t,i,e),l=[];if(function(t){return t.childNodes.length>0||go(t)}(t)&&"style"!==n){l=lf(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:I({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:ul,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=$l(e.configuration,t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:cl,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:ll,textContent:""}}var n}(t,e);if(!n)return null;var r=Wl(t)||df++,i=n;return i.id=r,function(t,e){Hl.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function lf(t,e){var n=[];return _o(t,(function(t){var r=cf(t,e);r&&n.push(r)})),n}function ff(t,e,n,r){if(e===Pl.HIDDEN)return null;var i=t.getAttribute(n);if(e===Pl.MASK&&n!==Nl&&!Qs.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return Ll}if("IMG"===o||"SOURCE"===o){if("src"===n||"srcset"===n)return"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";if("onerror"===n)return null}if("A"===o&&"href"===n)return Ll;if(i&&Ft(n,"data-"))return Ll;if("IFRAME"===o&&"srcdoc"===n)return Ll}return i&&"string"==typeof i&&ls(i)?fs(i):i}var df=1;var pf=/[^a-z1-6-_]/;function vf(t){var e=(t+"").toLowerCase().trim();return pf.test(e)?"div":e}function hf(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?ef(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(rf),!(n>=e.length);){var o=r(nf);if(","===o.slice(-1))o=ef(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=ef(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?Xl(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?ef(t,r):r:ef(t,r):r;var i}function mf(t){return Boolean(t.changedTouches)}function gf(t,e){return{data:I({source:t},e),type:tl,timestamp:gt()}}function yf(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){r=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(r),e}}function _f(t,e,n,r){var i=Fa();if(!i)return{stop:ot,flush:ot};var o=function(t){var e=ot,n=[];function r(){e(),t(n),n=[]}var i=Q(r,16,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(t){0===n.length&&(e=Fr(o,{timeout:100})),Array.prototype.push.apply(n,t)},flush:r,stop:function(){e(),a()}}}((function(r){!function(t,e,n,r){var i=new Map;t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){bf(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Fl(e)&&!yo(e))return!1;e=bo(e)}return!0}(t.target)&&Ul(t.target,n.defaultPrivacyLevel,i)!==Pl.HIDDEN})),a=function(t,e,n,r){for(var i=new Set,o=new Map,a=0,s=t;a<s.length;a++){var u=s[a];u.addedNodes.forEach((function(t){i.add(t)})),u.removedNodes.forEach((function(t){i.has(t)||o.set(t,u.target),i.delete(t)}))}var c=Array.from(i);l=c,l.sort((function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0}));var l;for(var f=new Set,d=[],p=0,v=c;p<v.length;p++){var h=v[p];if(!b(h)){var m=Ul(h.parentNode,e.defaultPrivacyLevel,r);if(m!==Pl.HIDDEN&&m!==Pl.IGNORE){var g=cf(h,{serializedNodeIds:f,parentNodePrivacyLevel:m,serializationContext:{status:sf,shadowRootsController:n},configuration:e});if(g){var y=bo(h);d.push({nextId:w(h),parentId:Wl(y),node:g})}}}}var _=[];return o.forEach((function(t,e){Fl(e)&&_.push({parentId:Wl(t),id:Wl(e)})})),{adds:d,removes:_,serializedNodeIds:f,hasBeenSerialized:b};function b(t){return Fl(t)&&f.has(Wl(t))}function w(t){for(var e=t.nextSibling;e;){if(Fl(e))return Wl(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 Fl(t)&&c.has(Wl(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=Ul(bo(u.target),e.defaultPrivacyLevel,n);c!==Pl.HIDDEN&&c!==Pl.IGNORE&&r.push({id:Wl(u.target),value:$t($l(e,u.target,!1,c))})}}return r}(o.filter((function(t){return"characterData"===t.type&&!l(t.target)})),n,i),d=function(t,e,n){for(var r=[],i=new Map,o=t.filter((function(t){var e=i.get(t.target);return(!e||!e.has(t.attributeName))&&(e?e.add(t.attributeName):i.set(t.target,new Set([t.attributeName])),!0)})),a=new Map,s=0,u=o;s<u.length;s++){var c=u[s];if(c.target.getAttribute(c.attributeName)!==c.oldValue){var l,f=Ul(c.target,e.defaultPrivacyLevel,n),d=ff(c.target,f,c.attributeName,e);if("value"===c.attributeName){var p=ql(e,c.target,f);if(void 0===p)continue;l=p}else l="string"==typeof d?d:null;var v=a.get(c.target);v||(v={id:Wl(c.target),attributes:{}},r.push(v),a.set(c.target,v)),v.attributes[c.attributeName]=l}}return r}(o.filter((function(t){return"attributes"===t.type&&!l(t.target)})),n,i);if(!(f.length||d.length||u.length||s.length))return;e({adds:s,removes:u,texts:f,attributes:d})}(r.concat(a.takeRecords()),t,e,n)})),a=new i(u(o.addMutations));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 bf(t,e){go(t)&&e(t.shadowRoot),_o(t,(function(t){return bf(t,e)}))}var wf=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},Sf=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}},xf=new WeakMap,Ef=1;function kf(t){return xf.has(t)||xf.set(t,Ef++),xf.get(t)}function Tf(t){var e,n,r,i,o,a,s=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,_f(e,n,r,document)),u=function(t){var e=Q((function(e){var n=Af(e);if(Fl(n)){var r=Of(e);if(!r)return;var i={id:Wl(n),timeOffset:0,x:r.x,y:r.y};t([i],mf(e)?yl:pl)}}),50,{trailing:!1}),n=e.cancel,r=e.throttled,i=or(document,[Ee,de],r,{capture:!0,passive:!0}).stop;return function(){i(),n()}}(t.mousemoveCb,t.configuration),c=function(t,e){var n=function(n){var r=Af(n);if(Ul(r,e.defaultPrivacyLevel)!==Pl.HIDDEN&&Fl(r)){var i,o=Wl(r),a=Cf[n.type];if(a!==Cl&&a!==Tl){var s=Of(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=I({id:kf(n)},gf(vl,i));t(u)}};return or(document,Object.keys(Cf),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration),l=function(t,e,n){var r=Q((function(r){var i=Af(r);if(i&&Ul(i,e.defaultPrivacyLevel)!==Pl.HIDDEN&&Fl(i)){var o=Wl(i),a=i===document?{scrollTop:xo(),scrollLeft:So()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),100),i=r.cancel,o=r.throttled,a=ir(document,ce,o,{capture:!0,passive:!0}).stop;return function(){a(),i()}}(t.scrollCb,t.configuration,t.elementsScrollPositions),f=function(t){return Yu().subscribe(t).unsubscribe}(t.viewportResizeCb,t.configuration),d=If(t.inputCb,t.configuration),p=function(t,e){var n=function(n){var r=Af(n);r&&Ul(r,e.defaultPrivacyLevel)!==Pl.HIDDEN&&Fl(r)&&t({id:Wl(r),type:n.type===Re?Al:Rl})};return or(document,[Re,Pe],n,{capture:!0,passive:!0}).stop}(t.mediaInteractionCb,t.configuration),v=function(t){function e(t,e){t&&Fl(t.ownerNode)&&e(Wl(t.ownerNode))}var n=[Jn(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}]})}))})),Jn(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(Jn(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=yf(r);n&&(n.push(a||0),t({id:e,adds:[{rule:o,index:n}]}))}))})),Jn(r.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=yf(r);n&&(n.push(i),t({id:e,removes:[{index:n}]}))}))})))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb,t.configuration),h=(i=t.focusCb,t.configuration,or(window,[ke,Te],(function(){i({has_focus:document.hasFocus()})})).stop),m=function(t){if(!window.visualViewport)return ot;var e=Q((function(){t(Sf())}),200,{trailing:!1}),n=or(window.visualViewport,[Oe,ce],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb,t.configuration),g=(o=t.lifeCycle,a=t.frustrationCb,t.configuration,o.subscribe(kr,(function(t){t.rawRumEvent.type===Je.ACTION&&t.rawRumEvent.action.type===qe&&t.rawRumEvent.action.frustration&&t.rawRumEvent.action.frustration.type&&t.rawRumEvent.action.frustration.type.length&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&a({timestamp:t.rawRumEvent.date,type:ol,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return kf(t)}))}})})).unsubscribe);return{flush:function(){s.flush()},stop:function(){s.stop(),u(),c(),l(),f(),d(),p(),v(),h(),m(),g()}}}var Cf=ju(ju(ju(ju(ju(ju(ju(ju(ju({},_e,wl),xe,Sl),ie,xl),Ce,El),oe,kl),ke,Tl),Te,Cl),le,Ol),fe,Il);function Of(t){var e=mf(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=wf(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function If(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=or(n,o?[Ie]:[Ae,Ie],(function(t){var e=Af(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=ot;else{var u=[Yn(HTMLInputElement.prototype,"value",c),Yn(HTMLInputElement.prototype,"checked",c),Yn(HTMLSelectElement.prototype,"value",c),Yn(HTMLTextAreaElement.prototype,"value",c),Yn(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function c(t){var n=Ul(t,e.defaultPrivacyLevel);if(n!==Pl.HIDDEN){var r,i=t.type;if("radio"===i||"checkbox"===i){if(Vl(e,t,n))return;r={isChecked:t.checked}}else{var o=ql(e,t,n);if(void 0===o)return;r={text:o}}l(t,r);var a,s,u=t.name;"radio"===i&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'+j(u)+'"]'),s=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(e,n){if(Fl(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(I({id:Wl(e)},n)))}}}function Af(t){return!0===t.composed&&go(t.target)?t.composedPath()[0]:t.target}function Rf(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(gf(dl,t))},o=function(t){e(gf(gl,t))},a=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){if(!i.has(e)){var a=_f(n,t,o,e),s=a.flush,u=a.stop,c=If(r,t,e);i.set(e,{flush:s,stop:function(){u(),c()}})}},removeShadowRoot:function(t){var e=i.get(t);e&&(e.stop(),i.delete(t))},stop:function(){i.forEach((function(t){t.stop()}))},flush:function(){i.forEach((function(t){t.flush()}))}};return o}(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=gt()),void 0===i&&(i={status:of,elementsScrollPositions:r,shadowRootsController:a});var o=Zu(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:el,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:nl,timestamp:n}),e({data:{node:uf(document,t.configuration,i),initialOffset:{left:So(),top:xo()}},type:Zc,timestamp:n}),window.visualViewport&&e({data:Sf(),type:il,timestamp:n})};s();var u=Tf({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(gf(_l,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(gf(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(gf(hl,t))},styleSheetCb:function(t){e(gf(bl,t))},viewportResizeCb:function(t){e(gf(ml,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:nl,timestamp:gt()})},visualViewportResizeCb:function(t){e({data:t,type:il,timestamp:gt()})},shadowRootsController:a}),c=u.stop,l=u.flush;function f(){a.flush(),l()}return{stop:function(){a.stop(),c()},takeSubsequentFullSnapshot:function(t){f(),s(t,{shadowRootsController:a,status:af,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function Pf(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),Nf(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function Nf(t,e,n){void 0===n&&(n=""),O(F(t),(function(t){var r=t[1],i=t[0];"object"===zu(r)&&null!==r?Nf(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var Mf;function Lf(t){return Df(t).segments_count}function Df(t){var e;return Mf||(Mf=new Map),Mf.has(t)?e=Mf.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},Mf.set(t,e),Mf.size>10&&Uf()),e}function Uf(){if(Mf)if(Mf.keys)Mf.delete(Mf.keys().next().value);else{var t=!0;Mf.forEach((function(e,n){t&&(Mf.delete(n),t=!1)}))}}function Bf(t){var e=t.context,n=t.creationReason,r=t.encoder,i=0,o=e.view.id,a=I({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:Lf(o),source:"browser"},e);return function(t){Df(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===Zc),function(t){Df(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){Df(t).segments_total_raw_size+=e}(a.view.id,e.rawBytesCount),t(a,e)}))}}}var zf=6e4;function Vf(t,e,n,r,i,o){return function(t,e,n,r,i){var o={status:jf.WaitingForInitialRecord,nextSegmentCreationReason:"init",isLocked:i},a=t.subscribe(hr,(function(){f("view_change")})),s=a.unsubscribe,u=t.subscribe(Sr,(function(t){f(t.reason)})),c=u.unsubscribe,l=["view_change","buffer_checkout"];function f(t,e){var r=o.isLocked;if(o.status===jf.SegmentPending){if(r&&l.includes(t))o.segment.flush((function(){e&&e()}));else{if(r)return;o.segment.flush((function(e,r){var i=Pf(r.output,e,r.rawBytesCount);ho(t)?n.sendOnExit(i):n.send(i)}))}m(o.expirationTimeoutId)}o="stop"!==t?{status:jf.WaitingForInitialRecord,nextSegmentCreationReason:t,isLocked:o.isLocked}:{status:jf.Stopped,isLocked:!1}}return{addRecord:function(t){if(o.status!==jf.Stopped){if(o.status===jf.WaitingForInitialRecord){var n=e();if(!n)return;o={status:jf.SegmentPending,segment:Bf({encoder:r,context:n,creationReason:o.nextSegmentCreationReason}),isLocked:o.isLocked,expirationTimeoutId:h((function(){f("segment_duration_limit")}),5e3)}}o.segment.addRecord(t,(function(t){t>zf&&f("segment_bytes_limit")}))}},unlockSegment:function(){o.isLocked=!1},flushBufferSegment:function(t){f("buffer_checkout",t)},isLocked:function(){return o.isLocked},stop:function(){f("stop"),s(),c()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(!r||!i)return;return{sdk:{name:t.sdkName,version:t.sdkVersion},env:t.env||"",service:i.service||t.service||"browser",version:i.version||t.version||"",app:{id:t.applicationId},session:{id:r.id},view:{id:i.id}}}(e,n,r)}),i,o,arguments.length>6&&void 0!==arguments[6]&&arguments[6])}var jf={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var $f=0,Hf=1,Ff=2,Wf=3;var qf,Gf,Qf,Kf,Xf=function(t,e){if(sa()&&!aa(oa)||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:ot,stop:ot,getReplayStats:function(){},onRumStart:ot,isRecording:function(){return!1}};var n={status:$f},r=function(){n={status:Hf}},i=function(){n={status:$f}};return{start:function(t){r(t)},stop:function(){i()},onRumStart:function(o,a,s,u,c){var l;o.subscribe(wr,(function(){n.status!==Ff&&n.status!==Wf||(i(),n={status:Hf})})),o.subscribe(Sr,(function(t){t.reason===vo.UNLOADING&&i()})),o.subscribe(br,(function(){n.status===Hf&&r()})),r=function(r){var f=s.findTrackedSession();f&&f.sessionReplayAllowed?n.status!==Ff&&n.status!==Wf&&(n={status:Ff},wo("interactive",(function(){if(n.status===Ff){var r=(l||(c||(c=Lu(a,"Session Replay",(function(){i()}),e)),c&&(l=Ou(c,Tu))),l);if(r){var f=t(o,a,s,u,r);n={status:Wf,stopRecording:f.stop}}else n={status:$f}}}))):n={status:Hf}},i=function(){n.status!==$f&&(n.status===Wf&&n.stopRecording(),n={status:$f})},n.status===Hf&&r()},isRecording:function(){return Du()===Nu&&n.status===Wf},getReplayStats:function(t){return Du()===Nu?function(t){return Mf&&Mf.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a,s,u,c,l=[],f=o||Fo(e.sessionReplayEndPoint,zf,e.retryMaxSize,(function(e){t.notify(Cr,{error:e}),Pi("Error reported to customer",{"error.message":e.message})}));if(sa()){var d=(u=r,c=ia(),{addRecord:function(t){var e=u.findView();c.send("session_replay",t,e.id)}});s=Rf({emit:a=d.addRecord,configuration:e,lifeCycle:t})}else{var p=n.findTrackedSession(),v=p&&p.errorSessionReplayAllowed&&!p.sessionHasError,h=Vf(t,e,n,r,f,i,v);a=h.addRecord;var m=h.flushBufferSegment,g=h.unlockSegment;l.push(h.stop),v&&n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,n=t.newState;!e.hasError&&n.hasError&&(v=!1,g())}));var y=null;s=Rf({emit:function(t){if(a(t),v)if(t.type===Zc)y=t;else if(t.type===tl){t.timestamp-y.timestamp>6e4&&m((function(){Uf(),_()}))}},configuration:e,lifeCycle:t})}l.push(s.stop);var _=s.takeSubsequentFullSnapshot,b=s.flushMutations,w=t.subscribe(yr,(function(){b(),a({timestamp:gt(),type:rl})}));l.push(w.unsubscribe);var S=t.subscribe(hr,(function(t){_(t.startClocks.timeStamp)}));return l.push(S.unsubscribe),{stop:function(){l.forEach((function(t){t()}))}}})),Jf=function(t,e,n){void 0===n&&(n={});var r=Ea(wa),i=va("global",{customerDataTracker:r.getOrCreateTracker(ma)}),a=va("user",{customerDataTracker:r.getOrCreateTracker(ha),propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}});function l(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(i,a,e)}var f,d,p=Yc(n,l,(function(o,s,u){o.storeContextsToLocal&&(ba(o,i,"rum",ma),ba(o,a,"rum",ha)),r.setCompressionStatus(s?Sa:xa);var c=t(o,e,r,l,u,s&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(s,t)}:Ta);return e.onRumStart(c.lifeCycle,o,c.session,c.viewContexts,s),p=function(t,e){return I({init:function(t){Ia("DATAFLUX_RUM",t)},initConfiguration:t.getInitConfiguration()},e)}(p,c),c})),v=u((function(t){var e="object"===zu(t)?t:{name:t};p.startView(e),e.context&&r.getOrCreateTracker(ga).updateCustomerData(e.context),Mi({feature:"start-view"})})),h=(f={init:u((function(t){p.init(t)})),setViewName:u((function(t){p.setViewName(t),Mi({feature:"set-view-name"})})),setViewContext:u((function(t){p.setViewContext(t),Mi({feature:"set-view-context"})})),setViewContextProperty:u((function(t,e){p.setViewContextProperty(t,e),Mi({feature:"set-view-context-property"})})),getViewContext:u((function(){return Mi({feature:"set-view-context-property"}),p.getViewContext()})),addRumGlobalContext:u((function(t,e){i.setContextProperty(t,e),Mi({feature:"set-global-context"})})),setGlobalContextProperty:u((function(t,e){i.setContextProperty(t,e),Mi({feature:"set-global-context"})})),removeRumGlobalContext:u((function(t){return i.removeContextProperty(t)})),removeGlobalContextProperty:u((function(t){return i.removeContextProperty(t)})),getRumGlobalContext:u((function(){return i.getContext()})),getGlobalContext:u((function(){return i.getContext()})),setRumGlobalContext:u((function(t){i.setContext(t),Mi({feature:"set-global-context"})})),setGlobalContext:u((function(t){i.setContext(t),Mi({feature:"set-global-context"})})),clearGlobalContext:u((function(){return i.clearContext()})),getInitConfiguration:u((function(){return rt(p.initConfiguration)})),getInternalContext:u((function(t){return p.getInternalContext(t)})),addDebugSession:u((function(t){})),clearDebugSession:u((function(){})),getDebugSession:u((function(){})),addAction:u((function(t,e){var n=Gn();c((function(){p.addAction({name:Dn(t),context:Dn(e),startClocks:mt(),type:Ge,handlingStack:n}),Mi({feature:"add-action"})}))})),addError:u((function(t,e){var n=Gn();c((function(){p.addError({error:t,handlingStack:n,context:Dn(e),startClocks:mt()}),Mi({feature:"add-error"})}))})),addTiming:u((function(t,e){p.addTiming(Dn(t),e)})),setUser:u((function(t){(function(t){var e="object"===et(t);return e||o.error("Unsupported user:",t),e})(t)&&a.setContext(Ca(t)),Mi({feature:"set-user"})})),getUser:u((function(){return a.getContext()})),setUserProperty:u((function(t,e){var n={};n[t]=e;var r=Ca(n)[t];a.setContextProperty(t,r),Mi({feature:"set-user"})})),removeUserProperty:u((function(t){return a.removeContextProperty(t)})),removeUser:u((function(){return a.clearContext()})),clearUser:u((function(){return a.clearContext()})),startView:v,stopSession:u((function(){p.stopSession(),Mi({feature:"stop-session"})})),startSessionReplayRecording:u((function(t){e.start(t),Mi({feature:"start-session-replay-recording",force:t&&t.force})})),stopSessionReplayRecording:u(e.stop)},d=I({onReady:function(t){t()}},f),Object.defineProperty(d,"_setDebug",{get:function(){return s},enumerable:!1}),d);return h}((function(t,e,n,r,i,o){var a=[],s=new Or,c=function(t){var e=Ri(Oi,t);return e}(t),l=function(t){s.notify(Cr,{error:t})},f=new tr((function(t){var e=or(window,[pe,he],(function(e){e.type===pe&&"hidden"===document.visibilityState?t.notify({reason:vo.HIDDEN}):e.type===he&&t.notify({reason:vo.FROZEN})}),{capture:!0}),n=ir(window,re,(function(){t.notify({reason:vo.UNLOADING})}));return function(){e.stop(),n.stop()}}));f.subscribe((function(t){s.notify(Sr,t)})),a.push((function(){pageExitSubscription.unsubscribe()}));var d=sa()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:Aa,isErrorSession:!1,sessionErrorTimestamp:0,sessionReplayAllowed:!!aa(oa),errorSessionReplayAllowed:!1,sessionHasError:!1};return{findTrackedSession:function(){return t},expire:ot,expireObservable:new tr,setErrorForSession:function(){}}}():Va(t,s);if(sa())!function(t){var e=ia();t.subscribe(Tr,(function(t){var n=Zo(t).rowData;e.send("rum",n)}))}(s);else{var p=Bu(t,s,c.observable,l,f,d.expireObservable,o);a.push((function(){p.stop()}))}var v,h=Ha(t),m=(v=Fa(),new tr((function(t){if(v){var e=new v(u((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),g=Wa(location),y=Su(),_=function(t,e,n,r,i,o,a,s,u,c){var l=function(t){var e=Yt({expireDelay:ec});return t.subscribe(vr,(function(t){e.add(function(t){return{service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(_r,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(gr,(function(t){var n=e.find(t.startClocks.relative);n&&t.name&&(n.name=t.name),n&&t.context&&(n.context=t.context)})),t.subscribe(br,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),f=function(t,e,n){var r,i=Yt({expireDelay:tc});t.subscribe(vr,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e})),t.subscribe(_r,(function(t){i.closeActive(t.endClocks.relative)}));var o=e.subscribe((function(t){var e=i.find();if(e){var n=ht();i.closeActive(n),i.add(a({url:t.newLocation.href,location:t.newLocation,referrer:e.referrer},!0),n)}}));function a(t){var e=t.location.pathname,n=e,r=t.location.hash;return r&&0===r.indexOf("#/")&&(n="/"+qt(r)),{url:t.url,referrer:t.referrer,host:t.location.host,path:n,pathGroup:J(n),urlQuery:Z(t.location.href),pathname:e}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,a,n),d=function(t,e,n,r){t.subscribe(pr,(function(e){t.notify(kr,Eu(e,r))}));var i={findActionId:ot,findAllActionId:ot};return n.trackUserInteractions&&(i=pu(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(kr,R({savedCommonContext:n},Eu(e,r)))}}}(t,s,e,o),p=d.actionContexts,v=d.addAction,h=(m=Zu(),{get:function(){return{viewport:m}},stop:Yu().subscribe((function(t){m=t})).unsubscribe});var m;return Ju(e,t,r,i,l,f,p,h,u,c),{viewContexts:l,urlContexts:f,pageStateHistory:o,addAction:v,actionContexts:p,stop:function(){h.stop(),o.stop(),f.stop(),l.stop()}}}(s,t,location,d,h,y,g,m,r,l),b=_.viewContexts,w=_.urlContexts,S=_.actionContexts,x=_.stop,E=_.addAction;a.push(x),Ii.drain(),c.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:d.findTrackedSession()&&d.findTrackedSession().id},view:{id:b.findView()&&b.findView().id},action:{id:S.findActionId(),ids:S.findAllActionId()}}}));var k=kc(s,t,location,m,g,y,e,i),T=k.addTiming,C=k.startView,O=k.setViewName,I=k.setViewContext,A=k.setViewContextProperty,P=k.getViewContext,N=k.stop;a.push(N);var M=qc(s,t,y);if(a.push(M.stop),PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(_s)){var L=function(t,e){var n=Es(e,{type:_s,buffered:!0}).subscribe((function(e){for(var n=0,r=e;n<r.length;n++){var i=r[n],o=wt(i.startTime),a={date:o.timeStamp,longTask:{id:X(),entryType:Ze,duration:dt(i.duration),blockingDuration:dt(i.blockingDuration),firstUiEventTimestamp:dt(i.firstUIEventTimestamp),renderStart:dt(i.renderStart),styleAndLayoutStart:dt(i.styleAndLayoutStart),startTime:dt(i.startTime),scripts:i.scripts.map((function(t){return{duration:dt(t.duration),pause_duration:dt(t.pauseDuration),forced_style_and_layout_duration:dt(t.forcedStyleAndLayoutDuration),start_time:dt(t.startTime),execution_start:dt(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}}))},type:Je.LONG_TASK};t.notify(kr,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i}})}}));return{stop:function(){n.unsubscribe()}}}(s,t);a.push(L.stop)}else!function(t,e){var n=Es(e,{type:ys,buffered:!0}).subscribe((function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.entryType!==ys)break;var i=wt(r.startTime),o={date:i.timeStamp,longTask:{id:X(),entryType:Ye,duration:dt(r.duration)},type:Je.LONG_TASK};t.notify(kr,{rawRumEvent:o,startTime:i.relative,domainContext:{performanceEntry:r}})}}))}(s,t);var D=nc(s,0,d,y).addError;Vc(s,t,d);var U=function(t,e,n,r,i){return{get:function(o){var a=n.findView(o),s=i.findUrl(o),u=e.findTrackedSession(o);if(u&&a&&s){var c=r.findActionId(o),l=r.findAllActionId(o);return{application:{id:t},session:{id:u.id},userAction:c?{id:c,ids:l}:void 0,view:{id:a.id,name:a.name||s.path,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,pathname:s.pathname,urlQuery:s.urlQuery}}}}}}(t.applicationId,d,b,S,w);return{addAction:E,addError:D,addTiming:T,configuration:t,startView:C,setViewContext:I,setViewContextProperty:A,getViewContext:P,setViewName:O,lifeCycle:s,viewContexts:b,session:d,stopSession:function(){d.expire()},getInternalContext:U.get,stop:function(){a.forEach((function(t){t()}))}}}),Xf,{startDeflateWorker:Lu,createDeflateEncoder:Ou});qf=p(),Qf=Jf,Kf=qf[Gf="DATAFLUX_RUM"],qf[Gf]=Qf,Kf&&Kf.q&&O(Kf.q,(function(t){f(t,"onReady callback threw an error:")()}))}();
|
|
1
|
+
!function(){"use strict";var t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},e=console,n={};Object.keys(t).forEach((function(t){n[t]=e[t]}));var r,i="GUANCE Browser SDK:",o={debug:n.debug.bind(e,i),log:n.log.bind(e,i),info:n.info.bind(e,i),warn:n.warn.bind(e,i),error:n.error.bind(e,i)},a=!1;function s(t){a=t}function u(t){return function(){return c(t,this,arguments)}}function c(t,e,n){try{return t.apply(e,n)}catch(t){if(l(t),r)try{r(t)}catch(t){l(t)}}}function l(){var t=[].slice.call(arguments);a&&o.error.apply(null,["[MONITOR]"].concat(t))}function f(t,e){return function(){var n=[].slice.call(arguments);try{return t.apply(this,n)}catch(t){o.error(e,t)}}}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function p(){if("object"===("undefined"==typeof globalThis?"undefined":d(globalThis)))return globalThis;Object.defineProperty(Object.prototype,"_gc_temp_",{get:function(){return this},configurable:!0});var t=_gc_temp_;return delete Object.prototype._gc_temp_,"object"!==d(t)&&(t="object"===("undefined"==typeof self?"undefined":d(self))?self:"object"===("undefined"==typeof window?"undefined":d(window))?window:{}),t}function v(t,e){var n,r=p();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}function h(t,e){return v(p(),"setTimeout")(u(t),e)}function m(t){v(p(),"clearTimeout")(t)}function g(t,e){return v(p(),"setInterval")(u(t),e)}function y(t){v(p(),"clearInterval")(t)}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}var b=Array.prototype,w=(Function.prototype,Object.prototype),S=b.slice,x=w.toString,E=w.hasOwnProperty,k=b.forEach,T=Array.isArray,C=!1,O=function(t,e,n){if(null===t)return!1;if(k&&t.forEach===k)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&e.call(n,t[r],r,t)===C)return!1}else for(var o in t)if(E.call(t,o)&&e.call(n,t[o],o,t)===C)return!1};function I(t){return O(S.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function A(t){return I({},t)}var R=function(t){return O(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},P=function(t){return O(S.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&($(e[n])&&$(t[n])?R(t[n],e[n]):t[n]=e[n])})),t},N=T||function(t){return"[object Array]"===x.call(t)},M=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},L=function(t){return t?t.toArray?t.toArray():N(t)?S.call(t):(e=t)&&E.call(e,"callee")?S.call(t):D(t):[];var e},D=function(t){var e=[];return null===t||O(t,(function(t){e[e.length]=t})),e},U=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(E.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(E.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(E.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},V=function(t,e,n){return void 0===n&&(n=!1),z(t,(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?Ft(e,t):t===e}catch(t){o.error(t)}return!1}))},j=function(t){return t+="",window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}))},$=function(t){return null!==t&&"[object Object]"===x.call(t)},H=function(t){if($(t)){for(var e in t)if(E.call(t,e))return!1;return!0}return!1},F=function(t){var e=[];return O(t,(function(t,n){e.push([n,t])})),e},W=function(t){return"[object String]"===x.call(t)},q=function(t){return"[object Boolean]"===x.call(t)},G=function(t){return"[object Number]"===x.call(t)&&/[\d\.]+/.test(String(t))},Q=(Date.now,function(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1,u=this;return{throttled:function(){s?r=arguments:(o?t.apply(u,arguments):r=arguments,s=!0,i=h((function(){a&&r&&t.apply(u,r),s=!1,r=void 0}),e))},cancel:function(){m(i),s=!1,r=void 0}}}),K=function(t){if("function"==typeof btoa)return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x"+e)})));var e,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",l=[];if(!(t=String(t)))return t;t=function(t){var e,n,r,i,o="";for(e=n=0,r=(t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=t.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(n>e&&(o+=t.substring(e,n)),o+=s,e=n=i+1)}return n>e&&(o+=t.substring(e,t.length)),o}(t);do{e=(o=t.charCodeAt(s++)<<16|t.charCodeAt(s++)<<8|t.charCodeAt(s++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,l[u++]=a.charAt(e)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<t.length);switch(c=l.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c};function X(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,X)}function J(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var Y=function(t){var e=function(t){this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Path:8,URL:0,QueryString:9,Fragment:10},this._values={},this._regex=null,this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/,void 0!==t&&this._parse(t)};return e.prototype.setUrl=function(t){this._parse(t)},e.prototype._initValues=function(){for(var t in this._fields)this._values[t]=""},e.prototype.addQueryString=function(t){if("object"!==_(t))return!1;var e=this._values.QueryString||"";for(var n in t)e=new RegExp(n+"[^&]+").test(e)?e.replace(new RegExp(n+"[^&]+"),n+"="+t[n]):"&"===e.slice(-1)?e+n+"="+t[n]:""===e?n+"="+t[n]:e+"&"+n+"="+t[n];this._values.QueryString=e},e.prototype.getParse=function(){return this._values},e.prototype.getUrl=function(){var t="";return t+=this._values.Origin,t+=this._values.Path,t+=this._values.QueryString?"?"+this._values.QueryString:""},e.prototype._parse=function(t){this._initValues();var e=this._regex.exec(t);if(!e)throw"DPURLParser::_parse -> Invalid URL";for(var n in this._fields)void 0!==e[this._fields[n]]&&(this._values[n]=e[this._fields[n]]);this._values.Path=this._values.Path||"/",this._values.Hostname=this._values.Host.replace(/:\d+$/,""),this._values.Origin=this._values.Protocol+"://"+this._values.Hostname+(this._values.Port?":"+this._values.Port:"")},new e(t)};var Z=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=tt("?"+n)),e},tt=function(t){for(var e=function(t){return decodeURIComponent(t)},n={},r=(t=t||"").substring(1).split("&"),i=0;i<r.length;i++){var o=r[i].indexOf("=");if(-1!==o){var a=r[i].substring(0,o),s=r[i].substring(o+1);a=e(a),s=e(s),n[a]=s}}return n};function et(t){return null===t?"null":Array.isArray(t)?"array":_(t)}function nt(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!==_(e)||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],o=0;o<e.length;++o)i[o]=nt(i[o],e[o],n);return i}i="object"===et(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=nt(i[a],e[a],n));return i}}function rt(t){return nt(void 0,t)}function it(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):0===t?void 0:t}function ot(){}var at,st=1e3,ut=6e4;function ct(t){return 0!==t&&100*Math.random()<=t}function lt(t,e){return+t.toFixed(e)}function ft(t){return"number"!=typeof t?t:lt(1e6*t,0)}function dt(t){return G(t)?lt(1e6*t,0):t}function pt(t){return t-Et()}function vt(t){return Math.round(Et()+t)}function ht(){return performance.now()}function mt(){return{relative:ht(),timeStamp:gt()}}function gt(){return yt()}function yt(){return(new Date).getTime()}function _t(t,e){return e-t}function bt(){return{relative:0,timeStamp:Et()}}function wt(t){return{relative:t,timeStamp:xt(t)}}function St(t,e){return t+e}function xt(t){var e=yt()-performance.now();return e>Et()?Math.round(e+t):vt(t)}function Et(){return void 0===at&&(at=performance.timing.navigationStart),at}var kt=/([\w-]+)\s*=\s*([^;]+)/g;function Tt(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&$(t)&&r in t&&E.call(t,r)))return;t=t[r]}return t}function Ct(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function Ot(t){var e=et(t);return"string"===e||"function"===e||t instanceof RegExp}function It(t,e){return-1!==t.indexOf(e)}function At(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function Rt(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach((function(t){e.push(t)}));else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function Pt(t){return G(t)&&t>=0&&t<=100}var Nt,Mt=0,Lt=1,Dt=2,Ut=3;function Bt(){return $t(Nt,Nt=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return Lt;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 Dt;if(t.document.documentMode)return Mt;return Ut}())}function zt(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Vt(t){var e={};return O(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=jt(t)})),e}function jt(t){return N(t)?B(t,(function(t){return jt(t)})):"object"===_(t)&&null!==t?Vt(t):t}function $t(t,e){return null!=t?t:e}function Ht(t,e){return z((r=[],null===(n=t)||O(n,(function(t,e){r[r.length]=e})),r),(function(n){return t[n]===e}));var n,r}function Ft(t,e){return t.slice(0,e.length)===e}function Wt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function qt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Gt(t){return G(t)&&t<0?void 0:t}function Qt(){var t=[],e=function(e){t.push(e)>500&&t.splice(0,1)};return{add:e,remove:e,drain:function(e){t.forEach((function(t){t(e)})),t.length=0}}}var Kt=1/0,Xt=null,Jt=new Set;function Yt(t){var e=t.expireDelay,n=t.maxEntries,r=[];function i(){for(var t=ht()-e;r.length>0&&r[r.length-1].endTime<t;)r.pop()}return Xt&&(Xt=g((function(){return i()}),6e4)),Jt.add(i),{add:function(t,e){var i={value:t,startTime:e,endTime:Kt,remove:function(){Wt(r,i)},close:function(t){i.endTime=t}};return n&&r.length>=n&&r.pop(),r.unshift(i),i},find:function(t,e){void 0===t&&(t=Kt),void 0===e&&(e={returnInactive:!1});for(var n=0,i=r;n<i.length;n++){var o=i[n];if(o.startTime<=t){if(e.returnInactive||t<=o.endTime)return o.value;break}}},closeActive:function(t){var e=r[0];e&&e.endTime===Kt&&e.close(t)},findAll:function(t,e){void 0===t&&(t=Kt),void 0===e&&(e=0);var n=St(t,e);return r.filter((function(e){return e.startTime<=n&&t<=e.endTime})).map((function(t){return t.value}))},reset:function(){r=[]},stop:function(){Jt.delete(i),0===Jt.size&&Xt&&(y(Xt),Xt=null)}}}var Zt={navigator:"undefined"!=typeof window&&void 0!==window.navigator?window.navigator:{},infoMap:{engine:["WebKit","Trident","Gecko","Presto"],browser:["Safari","Chrome","Edge","IE","IE 11","IE 10","IE 9","IE 8","IE 7","Firefox","Firefox Focus","Chromium","Opera","Vivaldi","Yandex","Arora","Lunascape","QupZilla","Coc Coc","Kindle","Iceweasel","Konqueror","Iceape","SeaMonkey","Epiphany","360","360SE","360EE","UC","QQBrowser","QQ","Baidu","Maxthon","Sogou","LBBROWSER","2345Explorer","TheWorld","XiaoMi","Quark","Qiyu","Wechat",,"WechatWork","Taobao","Alipay","Weibo","Douban","Suning","iQiYi"],os:["Windows","Linux","Mac OS","Android","Ubuntu","FreeBSD","Debian","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"],device:["Mobile","Tablet","iPad"]}},te={getMatchMap:u((function(t){return{Trident:t.indexOf("Trident")>-1||t.indexOf("NET CLR")>-1,Presto:t.indexOf("Presto")>-1,WebKit:t.indexOf("AppleWebKit")>-1,Gecko:t.indexOf("Gecko/")>-1,Safari:t.indexOf("Safari")>-1,Chrome:t.indexOf("Chrome")>-1||t.indexOf("CriOS")>-1,IE:t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1,Edge:t.indexOf("Edge")>-1||t.indexOf("Edg")>-1,Firefox:t.indexOf("Firefox")>-1||t.indexOf("FxiOS")>-1,"Firefox Focus":t.indexOf("Focus")>-1,Chromium:t.indexOf("Chromium")>-1,Opera:t.indexOf("Opera")>-1||t.indexOf("OPR")>-1,Vivaldi:t.indexOf("Vivaldi")>-1,Yandex:t.indexOf("YaBrowser")>-1,Arora:t.indexOf("Arora")>-1,Lunascape:t.indexOf("Lunascape")>-1,QupZilla:t.indexOf("QupZilla")>-1,"Coc Coc":t.indexOf("coc_coc_browser")>-1,Kindle:t.indexOf("Kindle")>-1||t.indexOf("Silk/")>-1,Iceweasel:t.indexOf("Iceweasel")>-1,Konqueror:t.indexOf("Konqueror")>-1,Iceape:t.indexOf("Iceape")>-1,SeaMonkey:t.indexOf("SeaMonkey")>-1,Epiphany:t.indexOf("Epiphany")>-1,360:t.indexOf("QihooBrowser")>-1||t.indexOf("QHBrowser")>-1,"360EE":t.indexOf("360EE")>-1,"360SE":t.indexOf("360SE")>-1,UC:t.indexOf("UC")>-1||t.indexOf(" UBrowser")>-1,QQBrowser:t.indexOf("QQBrowser")>-1,QQ:t.indexOf("QQ/")>-1,Baidu:t.indexOf("Baidu")>-1||t.indexOf("BIDUBrowser")>-1,Maxthon:t.indexOf("Maxthon")>-1,Sogou:t.indexOf("MetaSr")>-1||t.indexOf("Sogou")>-1,LBBROWSER:t.indexOf("LBBROWSER")>-1,"2345Explorer":t.indexOf("2345Explorer")>-1,TheWorld:t.indexOf("TheWorld")>-1,XiaoMi:t.indexOf("MiuiBrowser")>-1,Quark:t.indexOf("Quark")>-1,Qiyu:t.indexOf("Qiyu")>-1,Wechat:t.indexOf("MicroMessenger")>-1,Taobao:t.indexOf("AliApp(TB")>-1,Alipay:t.indexOf("AliApp(AP")>-1,Weibo:t.indexOf("Weibo")>-1,Douban:t.indexOf("com.douban.frodo")>-1,Suning:t.indexOf("SNEBUY-APP")>-1,iQiYi:t.indexOf("IqiyiApp")>-1,Windows:t.indexOf("Windows")>-1,Linux:t.indexOf("Linux")>-1||t.indexOf("X11")>-1,"Mac OS":t.indexOf("Macintosh")>-1,Android:t.indexOf("Android")>-1||t.indexOf("Adr")>-1,Ubuntu:t.indexOf("Ubuntu")>-1,FreeBSD:t.indexOf("FreeBSD")>-1,Debian:t.indexOf("Debian")>-1,"Windows Phone":t.indexOf("IEMobile")>-1||t.indexOf("Windows Phone")>-1,BlackBerry:t.indexOf("BlackBerry")>-1||t.indexOf("RIM")>-1,MeeGo:t.indexOf("MeeGo")>-1,Symbian:t.indexOf("Symbian")>-1,iOS:t.indexOf("like Mac OS X")>-1,"Chrome OS":t.indexOf("CrOS")>-1,WebOS:t.indexOf("hpwOS")>-1,Mobile:t.indexOf("Mobi")>-1||t.indexOf("iPh")>-1||t.indexOf("480")>-1,Tablet:t.indexOf("Tablet")>-1||t.indexOf("Nexus 7")>-1,iPad:t.indexOf("iPad")>-1}})),matchInfoMap:u((function(t){var e=Zt.navigator.userAgent||"",n=te.getMatchMap(e);for(var r in Zt.infoMap)for(var i=0;i<Zt.infoMap[r].length;i++){var o=Zt.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:u((function(){return te.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:u((function(){var t=this,e=Zt.navigator.userAgent||"";t.osVersion="",t.osMajor="";var n={Windows:function(){var t=e.replace(/^.*Windows NT ([\d.]+);.*$/,"$1");return{6.4:"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP",5.1:"XP","5.0":"2000"}[t]||t},Android:function(){return e.replace(/^.*Android ([\d.]+);.*$/,"$1")},iOS:function(){return e.replace(/^.*OS ([\d_]+) like.*$/,"$1").replace(/_/g,".")},Debian:function(){return e.replace(/^.*Debian\/([\d.]+).*$/,"$1")},"Windows Phone":function(){return e.replace(/^.*Windows Phone( OS)? ([\d.]+);.*$/,"$2")},"Mac OS":function(){return e.replace(/^.*Mac OS X ([\d_]+).*$/,"$1").replace(/_/g,".")},WebOS:function(){return e.replace(/^.*hpwOS\/([\d.]+);.*$/,"$1")}};return n[t.os]&&(t.osVersion=n[t.os](),t.osVersion===e&&(t.osVersion="")),t.osVersion&&(t.osMajor=t.osVersion.split(".").length&&t.osVersion.split(".")[0]),{version:t.osVersion,osMajor:t.osMajor}})),getDeviceType:u((function(){var t=this;return t.device="PC",te.matchInfoMap(t),t.device})),getNetwork:u((function(){var t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,e="unknown",n=t?t.type||t.effectiveType:null;if(n&&"string"==typeof n)switch(n){case"bluetooth":case"cellular":case"slow-2g":case"2g":case"3g":e="cellular";break;case"none":e="none";break;case"ethernet":case"wifi":case"wimax":case"4g":e="wifi";break;case"other":case"unknown":e="unknown"}return e})),getLanguage:u((function(){var t;return this.language=((t=(Zt.navigator.browserLanguage||Zt.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getTimeZone:u((function(){return Intl.DateTimeFormat().resolvedOptions().timeZone})),getBrowserInfo:u((function(){var t=this;te.matchInfoMap(t);var e=Zt.navigator.userAgent||"",n=function(t,e){var n=Zt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=te.getMatchMap(e),i=!1;if("undefined"!=typeof window&&window.chrome){var o=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");o>36&&window.showModalDialog?i=!0:o>45&&(i=n("type","application/vnd.chromium.remoting-viewer"))}if(r.Baidu&&r.Opera&&(r.Baidu=!1),r.Mobile&&(r.Mobile=!(e.indexOf("iPad")>-1)),i&&(n("type","application/gameplugin")||Zt.navigator&&Zt.navigator.connection&&void 0===Zt.navigator.connection.saveData?r["360SE"]=!0:r["360EE"]=!0),r.IE||r.Edge)switch(window.screenTop-window.screenY){case 71:case 74:case 99:case 75:case 74:case 105:default:break;case 102:r["360EE"]=!0;break;case 104:r["360SE"]=!0}var a={Safari:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Chrome:function(){return e.replace(/^.*Chrome\/([\d.]+).*$/,"$1").replace(/^.*CriOS\/([\d.]+).*$/,"$1")},IE:function(){return e.replace(/^.*MSIE ([\d.]+).*$/,"$1").replace(/^.*rv:([\d.]+).*$/,"$1")},Edge:function(){return e.replace(/^.*Edge?\/([\d.]+).*$/,"$1")},Firefox:function(){return e.replace(/^.*Firefox\/([\d.]+).*$/,"$1").replace(/^.*FxiOS\/([\d.]+).*$/,"$1")},"Firefox Focus":function(){return e.replace(/^.*Focus\/([\d.]+).*$/,"$1")},Chromium:function(){return e.replace(/^.*Chromium\/([\d.]+).*$/,"$1")},Opera:function(){return e.replace(/^.*Opera\/([\d.]+).*$/,"$1").replace(/^.*OPR\/([\d.]+).*$/,"$1")},Vivaldi:function(){return e.replace(/^.*Vivaldi\/([\d.]+).*$/,"$1")},Yandex:function(){return e.replace(/^.*YaBrowser\/([\d.]+).*$/,"$1")},Arora:function(){return e.replace(/^.*Arora\/([\d.]+).*$/,"$1")},Lunascape:function(){return e.replace(/^.*Lunascape[\/\s]([\d.]+).*$/,"$1")},QupZilla:function(){return e.replace(/^.*QupZilla[\/\s]([\d.]+).*$/,"$1")},"Coc Coc":function(){return e.replace(/^.*coc_coc_browser\/([\d.]+).*$/,"$1")},Kindle:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Iceweasel:function(){return e.replace(/^.*Iceweasel\/([\d.]+).*$/,"$1")},Konqueror:function(){return e.replace(/^.*Konqueror\/([\d.]+).*$/,"$1")},Iceape:function(){return e.replace(/^.*Iceape\/([\d.]+).*$/,"$1")},SeaMonkey:function(){return e.replace(/^.*SeaMonkey\/([\d.]+).*$/,"$1")},Epiphany:function(){return e.replace(/^.*Epiphany\/([\d.]+).*$/,"$1")},360:function(){return e.replace(/^.*QihooBrowser\/([\d.]+).*$/,"$1")},"360SE":function(){return{63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},"360EE":function(){return{69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},Maxthon:function(){return e.replace(/^.*Maxthon\/([\d.]+).*$/,"$1")},QQBrowser:function(){return e.replace(/^.*QQBrowser\/([\d.]+).*$/,"$1")},QQ:function(){return e.replace(/^.*QQ\/([\d.]+).*$/,"$1")},Baidu:function(){return e.replace(/^.*BIDUBrowser[\s\/]([\d.]+).*$/,"$1")},UC:function(){return e.replace(/^.*UC?Browser\/([\d.]+).*$/,"$1")},Sogou:function(){return e.replace(/^.*SE ([\d.X]+).*$/,"$1").replace(/^.*SogouMobileBrowser\/([\d.]+).*$/,"$1")},LBBROWSER:function(){var t="";e.indexOf("LieBaoFast")>-1&&(t=e.replace(/^.*LieBaoFast\/([\d.]+).*$/,"$1"));var n=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");return t||{57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[n]||""},"2345Explorer":function(){return e.replace(/^.*2345Explorer\/([\d.]+).*$/,"$1")},TheWorld:function(){return e.replace(/^.*TheWorld ([\d.]+).*$/,"$1")},XiaoMi:function(){return e.replace(/^.*MiuiBrowser\/([\d.]+).*$/,"$1")},Quark:function(){return e.replace(/^.*Quark\/([\d.]+).*$/,"$1")},Qiyu:function(){return e.replace(/^.*Qiyu\/([\d.]+).*$/,"$1")},Wechat:function(){return e.replace(/^.*MicroMessenger\/([\d.]+).*$/,"$1")},WechatWork:function(){return e.replace(/^.*wxwork\/([\d.]+).*$/,"$1")},Taobao:function(){return e.replace(/^.*AliApp\(TB\/([\d.]+).*$/,"$1")},Alipay:function(){return e.replace(/^.*AliApp\(AP\/([\d.]+).*$/,"$1")},Weibo:function(){return e.replace(/^.*weibo__([\d.]+).*$/,"$1")},Douban:function(){return e.replace(/^.*com.douban.frodo\/([\d.]+).*$/,"$1")},Suning:function(){return e.replace(/^.*SNEBUY-APP([\d.]+).*$/,"$1")},iQiYi:function(){return e.replace(/^.*IqiyiVersion\/([\d.]+).*$/,"$1")}};return t.browserVersion="",t.browserMajor="",a[t.browser]&&(t.browserVersion=a[t.browser](),t.browserVersion==e&&(t.browserVersion="")),"Chrome"==t.browser&&e.match(/\S+Browser/)&&(t.browser=e.match(/\S+Browser/)[0],t.version=e.replace(/^.*Browser\/([\d.]+).*$/,"$1")),"Edge"==t.browser&&(t.version>"75"?t.engine="Blink":t.engine="EdgeHTML"),("Chrome"==t.browser&&parseInt(t.browserVersion)>27||r.Chrome&&"WebKit"==t.engine&&parseInt(t.browserVersion)>27||"Opera"==t.browser&&parseInt(t.version)>12||"Yandex"==t.browser)&&(t.engine="Blink"),t.browserVersion&&(t.browserMajor=t.browserVersion.split(".").length&&this.browserVersion.split(".")[0]),{browser:t.browser,browserVersion:t.browserVersion,engine:t.engine,browserMajor:t.browserMajor}})),getGeoPostion:u((function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){o.warn(t)}))}))},ee={};"undefined"!=typeof window&&(ee={os:te.getOS(),osVersion:te.getOSVersion().version,osVersionMajor:te.getOSVersion().osMajor,browser:te.getBrowserInfo().browser,browserVersion:te.getBrowserInfo().browserVersion,browserVersionMajor:te.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:te.getNetwork(),device:te.getDeviceType(),timeZone:te.getTimeZone()});var ne=ee,re="beforeunload",ie="click",oe="dblclick",ae="keydown",se="load",ue="popstate",ce="scroll",le="touchstart",fe="touchend",de="touchmove",pe="visibilitychange",ve="pageshow",he="freeze",me="resume",ge="DOMContentLoaded",ye="pointerdown",_e="pointerup",be="pointercancel",we="hashchange",Se="pagehide",xe="mousedown",Ee="mousemove",ke="focus",Te="blur",Ce="contextmenu",Oe="resize",Ie="change",Ae="input",Re="play",Pe="pause",Ne="securitypolicyviolation",Me="selectionchange",Le="storage",De="document",Ue="xhr",Be="beacon",ze="fetch",Ve="css",je="js",$e="image",He="font",Fe="media",We="other",qe="click",Ge="custom",Qe="rage_click",Ke="error_click",Xe="dead_click",Je={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},Ye="long-task",Ze="long-animation-frame",tn="initial_load",en="route_change",nn={FETCH:ze,XHR:Ue},rn="ddtrace",on="zipkin",an="zipkin_single_header",sn="w3c_traceparent",un="w3c_traceparent_64bit",cn="skywalking_v3",ln="jaeger",fn="handled",dn="unhandled",pn="Uncaught",vn="Provided";function hn(t){return hn="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},hn(t)}function mn(t,e,n){if("object"!==hn(t)||null===t)return JSON.stringify(t);var r=gn(Object.prototype),i=gn(Array.prototype),o=gn(Object.getPrototypeOf(t)),a=gn(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function gn(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):ot}function yn(t){return yn="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},yn(t)}var _n="?";function bn(t){var e=[],n=In(t,"stack"),r=String(t);return n&&n.startsWith(r)&&(n=n.slice(r.length)),n&&O(n.split("\n"),(function(t){var n=function(t){var e=xn.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=En.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]||_n,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=kn.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:_n,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=Tn.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||_n,line:+e[3],url:e[2]}}(t)||function(t){var e=Cn.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=On.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]||_n,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=_n),e.push(n))})),{message:In(t,"message"),name:In(t,"name"),stack:e}}var wn="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",Sn="(?::(\\d+))",xn=new RegExp("^\\s*at (.*?) ?\\("+wn+Sn+"?"+Sn+"?\\)?\\s*$","i"),En=new RegExp("\\((\\S*)"+Sn+Sn+"\\)");var kn=new RegExp("^\\s*at ?"+wn+Sn+"?"+Sn+"??\\s*$","i");var Tn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Cn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?\s*$/i,On=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function In(t,e){if("object"===yn(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var An=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Rn(t){var e=function(t){return Jn(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=bn(u);else{var c={url:o,column:s,line:a},l=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=An.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,$t(u,i))}))}(t),n=function(t){return Jn(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=bn(n);t(r,n)}))}(t);return{stop:function(){e.stop(),n.stop()}}}var Pn=1024,Nn=/[^\u0000-\u007F]/;function Mn(t){return Nn.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Ln(t){return Ln="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},Ln(t)}function Dn(t,e){void 0===e&&(e=225280);var n=gn(Object.prototype),r=gn(Array.prototype),i=[],o=new WeakMap,a=Un(t,"$",void 0,i,o),s=JSON.stringify(a)&&JSON.stringify(a).length||0;if(!(s>e)){for(;i.length>0&&s<e;){var u=i.shift(),c=0;if(Array.isArray(u.source))for(var l=0;l<u.source.length;l++){if(s+=void 0!==(f=Un(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){zn(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=Un(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+3,c=1),s>e){zn(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}zn(e,"discarded",t)}function Un(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"!==Ln(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Ln(t))return"[Symbol] "+t.description||0;return t}(o);var a=Bn(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 Bn(t){try{if(t instanceof Event)return{type:(n=t).type,isTrusted:n.isTrusted,currentTarget:n.currentTarget?Bn(n.currentTarget):null,target:n.target?Bn(n.target):null};if(t instanceof RegExp)return"[RegExp] ".concat(t.toString());var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}var n;return"[Unserializable]"}function zn(t,e,n){o.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",n)}var Vn="No stack, consider using an instance of Error",jn="agent",$n="console",Hn="source",Fn="custom",Wn="report";function qn(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=function(t,e,n,r){return t&&t.message&&t&&t.name?t.message:e?"Empty message":n+" "+mn(Dn(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)?Qn(e):Vn,f=u?Xn(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 Gn(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return c((function(){var n=bn(e);n.stack=n.stack.slice(2),t=Qn(n)})),t}function Qn(t){var e=Kn(t);return O(t.stack,(function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"("+t.args.join(", ")+")":"",i=t.line?":"+t.line:"",o=t.line&&t.column?":"+t.column:"";e+="\n at "+n+r+" @ "+t.url+i+o})),e}function Kn(t){return(t.name||"Error")+": "+t.message}function Xn(t,e){for(var n=t,r=[];n&&n.cause instanceof Error&&r.length<10;){var i=bn(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&Qn(i)}),n=n.cause}return r.length?r:void 0}function Jn(t,e,n,r){var i=r&&r.computeHandlingStack,o=t[e];if("function"!=typeof o){if(!Ft(e,"on"))return{stop:ot};o=ot}var a=!1,s=function(){if(a)return o.apply(this,arguments);var t,e=Rt(arguments);c(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:i?Gn():void 0}]);var r=o.apply(this,e);return t&&c(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=o)}}}function Yn(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:ot};var i=ot,o=function(t,e){h((function(){o!==i&&n(t,e)}),0)},a=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){Object.getOwnPropertyDescriptor(t,e)&&Object.getOwnPropertyDescriptor(t,e).set===a&&Object.defineProperty(t,e,r),o=i}}}var Zn=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};Zn.prototype={subscribe:function(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0);var e=this;return{unsubscribe:function(){e.observers=U(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){O(this.observers,(function(e){e(t)}))}};var tr=Zn;function er(){var t=[].slice.call(arguments);return new tr((function(e){var n=B(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return O(n,(function(t){return t.unsubscribe()}))}}))}var nr={};function rr(e){var n=B(e,(function(e){return nr[e]||(nr[e]=function(e){return new tr((function(n){var r=console[e];return console[e]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=Gn();c((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 Kn(bn(t));return mn(t,void 0,2)}(t)})).join(" ");if(n===t.error){var a=At(e,(function(t){return t instanceof Error}));i={stack:a?Qn(bn(a)):void 0,causes:a?Xn(a,"console"):void 0,startClocks:mt(),message:o,source:$n,handling:fn,handlingStack:r}}return{api:n,message:o,error:i,handlingStack:r}}(i,e,o))}))},function(){console[e]=r}}))}(e)),nr[e]}));return er.apply(this,n)}function ir(t,e,n,r){return or(t,[e],n,r)}function or(t,e,n,r){var i=u(r&&r.once?function(t){s(),n(t)}:n);r=r&&r.passive?{capture:r.capture,passive:r.passive}:r&&r.capture;var o=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,a=v(o,"addEventListener");O(e,(function(e){a.call(t,e,i,r)}));var s=function(){var n=v(o,"removeEventListener");O(e,(function(e){n.call(t,e,i,r)}))};return{stop:s}}var ar="intervention",sr="csp_violation";function ur(t,e){var n=[];It(e,sr)&&n.push(new tr((function(t){return ir(document,Ne,(function(e){t.notify(function(t){var e="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return cr({type:t.effectiveDirective,message:sr+": "+e,originalError:t,csp:{disposition:t.disposition},stack:lr(t.effectiveDirective,t.originalPolicy?"".concat(e,' of the policy "').concat(Ct(t.originalPolicy,100),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}(e))})).stop})));var r=U(e,(function(t){return t!==sr}));return r.length&&n.push(function(t){return new tr((function(e){if(window.ReportingObserver){var n=u((function(t){O(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return cr({type:e.id,message:n+": "+e.message,originalError:t,stack:lr(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)),er.apply(this,n)}function cr(t){return I({startClocks:mt(),source:ErrorSource.REPORT,handling:ErrorHandling.UNHANDLED},t)}function lr(t,e,n,r,i){return n&&Qn({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var fr=function(){this._events=[],this.pendingEvents=[]};fr.prototype={emit:function(t){var e=[].slice.call(arguments,1);O(this._events,(function(n){if(n.type!==t)return!1;n.callback.apply(n.context,e)}))},on:function(t,e,n){"function"==typeof e&&this._events.push({type:t,callback:e,context:n||this})}};new fr;var dr,pr="AUTO_ACTION_COMPLETED",vr="BEFORE_VIEW_CREATED",hr="VIEW_CREATED",mr="VIEW_UPDATED",gr="BEFORE_VIEW_UPDATED",yr="VIEW_ENDED",_r="AFTER_VIEW_ENDED",br="SESSION_RENEWED",wr="SESSION_EXPIRED",Sr="PAGE_EXITED",xr="REQUEST_STARTED",Er="REQUEST_COMPLETED",kr="RAW_RUM_EVENT_COLLECTED",Tr="RUM_EVENT_COLLECTED",Cr="RAW_ERROR_COLLECTED";function Or(){this.callbacks={}}function Ir(t){return Mr(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Pr(t)||Rr()}function Ar(t,e){return Mr(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)||Pr(t,e)||Rr()}function Rr(){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 Pr(t,e){if(t){if("string"==typeof t)return Nr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(t,e):void 0}}function Nr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Mr(t){if(Array.isArray(t))return t}function Lr(t,e,n){var r=rt(t),i=n(r);return F(e).forEach((function(e){var n=Ar(e,2),i=n[0],o=n[1];return Dr(t,r,i.split(/\.|(?=\[\])/),o)})),i}function Dr(t,e,n,r){var i=Ir(n),o=i[0],a=i.slice(1);if("[]"!==o){if(Ur(t)&&Ur(e))return a.length>0?Dr(t[o],e[o],a,r):void function(t,e,n,r){var i=et(n);i===r?t[e]=Dn(n):"object"!==r||"undefined"!==i&&"null"!==i||(t[e]={})}(t,o,e[o],r)}else Array.isArray(t)&&Array.isArray(e)&&t.forEach((function(t,n){return Dr(t,e[n],a,r)}))}function Ur(t){return"object"===et(t)}function Br(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&h((function(){r=0}),ut),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:"Reached max number of "+t+"s by minute: "+e,source:jn,startClocks:mt()})}finally{i=!1}}return!0}}}function zr(t){return jr(t,zt(window.location)).href}function Vr(t){return zt(jr(t))}function jr(t,e){if(function(){if(void 0!==dr)return dr;try{var t=new URL("http://test/path");return dr="http://test/path"===t.href}catch(t){dr=!1}return dr}())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}Or.prototype={notify:function(t,e){var n=this.callbacks[t];n&&O(n,(function(t){t(e)}))},subscribe:function(t,e){this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e);var n=this;return{unsubscribe:function(){n.callbacks[t]=U(n.callbacks[t],(function(t){return t!==e}))}}}};var $r=navigator.userAgent.toLowerCase(),Hr=function(){return/iphone os/.test($r)};function Fr(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(u(t),e);return function(){return window.cancelIdleCallback(n)}}return function(t){var e=yt(),n=h((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,Wr-(yt()-e))}})}),0);return function(){return m(n)}}(t)}var Wr=50;var qr,Gr=/^\s+|\s+$/g,Qr={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function Kr(t,e){var n=Qr[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+Xr(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?Xr(r)+"v1/write"+n:Xr(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function Xr(t){return t.replace(Gr,"")}function Jr(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 Yr(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=Jr(t,r)+"="+e+";"+o+";path=/;samesite="+a+s+u+c}function Zr(t,e){return function(t,e){for(kt.lastIndex=0;;){var n=kt.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,Jr(t,e))}function ti(t,e){Yr(t,"",0,e)}var ei=144e5,ni=9e5,ri="_gc_s",ii="cookie",oi="local-storage";function ai(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return si(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?si(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function si(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ui=/^([a-zA-Z]+)=([a-z0-9-]+)$/,ci="&";function li(t){return H(t)}function fi(t){return void 0!==t.isExpired||!((void 0===(e=t).created||yt()-Number(e.created)<ei)&&(void 0===e.expire||yt()<Number(e.expire)));var e}function di(t){return B(F(t),(function(t){return t[0]+"="+t[1]})).join("&")}function pi(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(ci)||ui.test(t))}(t)&&t.split(ci).forEach((function(t){var n=ui.exec(t);if(null!==n){var r=ai(n,3),i=r[1],o=r[2];e[i]=o}})),e}function vi(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===qr){for(var t="gc_site_test_".concat(X()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Zr(t,{domain:n});)n="".concat(e.pop(),".").concat(n),Yr(t,"test",st,{domain:n});ti(t,{domain:n}),qr=n}return qr}());return e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="gc_cookie_test_".concat(X()),n="test";Yr(e,n,ut,t);var r=Zr(e,t)===n;return ti(e,t),r}catch(t){return!1}}(e)?{type:ii,cookieOptions:e}:void 0}function hi(t){var e;return{isLockEnabled:Bt()===Lt,persistSession:(e=t,function(t){Yr(ri,di(t),ni,e)}),retrieveSession:mi(t),expireSession:function(){return function(t){Yr(ri,di({isExpired:"1"}),ei,t)}(t)}}}function mi(t){return function(){return pi(Zr(ri,t))}}function gi(){try{var t=X(),e="".concat("_gc_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:oi}:void 0}catch(t){return}}function yi(t){localStorage.setItem(ri,di(t))}function _i(){return pi(localStorage.getItem(ri))}function bi(){yi({isExpired:"1"})}function wi(){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 Si="log",xi="configuration",Ei="usage",ki="debug",Ti="error",Ci=["https://static.guance.com","http://localhost","<anonymous>"],Oi="browser-rum-sdk",Ii=Qt(),Ai=function(t){Ii.add((function(){Ai(t)}))};function Ri(t,e){var n,i=new tr,o=new Set,a=e.telemetryEnabled&&ct(e.telemetrySampleRate),s={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return Ai=function(r){var u=mn(r);if(a&&o.size<e.maxTelemetryEventsPerPage&&!o.has(u)){var c=function(t,e,r){return P({type:"telemetry",date:gt(),service:t,version:"3.2.37",source:"browser",telemetry:P(e,{runtime_env:r,connectivity:wi()})},void 0!==n?n():{})}(t,r,s);i.notify(c),o.add(u)}},r=Ni,{setContextProvider:function(t){n=t},observable:i,enabled:a}}function Pi(t,e){l(t,e),Ai(I({type:Si,message:t,status:ki},e))}function Ni(t,e){Ai(I({type:Si,status:Ti},function(t){if(t instanceof Error){var e=bn(t);return{error:{kind:e.name,stack:Qn(Li(e))},message:e.message}}return{error:{stack:Vn},message:pn+" "+mn(t)}}(t),e))}function Mi(t){Ai({type:Ei,usage:t})}function Li(t){return t.stack=t.stack.filter((function(t){return!t.url||Ci.some((function(e){return Ft(t.url,e)}))})),t}var Di=["lock"];function Ui(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Bi(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bi(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var zi,Vi="--",ji=[];function $i(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.isLockEnabled,i=e.persistSession,o=e.expireSession,a=function(t){return i(I({},t,{lock:u}))},s=function(){var t=e.retrieveSession(),n=t.lock;return{session:function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,Di),lock:n&&!Wi(n)?n:void 0}};if(zi||(zi=t),t===zi){if(r&&n>=100)return Pi("Aborted session operation after max lock retries",{currentStore:s()}),void Fi(e);var u,c=s();if(r){if(c.lock)return void Hi(t,e,n);if(u=X()+Vi+gt(),a(c.session),(c=s()).lock!==u)return void Hi(t,e,n)}var l=t.process(c.session);if(r&&(c=s()).lock!==u)Hi(t,e,n);else{if(l&&(fi(l)?o():(l.expire=String(yt()+ni),r?a(l):i(l))),r&&(!l||!fi(l))){if((c=s()).lock!==u)return void Hi(t,e,n);i(c.session),l=c.session}t.after&&t.after(l||c.session),Fi(e)}}else ji.push(t)}function Hi(t,e,n){h((function(){$i(t,e,n+1)}),10)}function Fi(t){zi=void 0;var e=ji.shift();e&&$i(e,t)}function Wi(t){var e=Ui(t.split(Vi),2)[1];return!e||_t(Number(e),gt())>1e3}var qi=st;function Gi(t){switch(t.sessionPersistence){case ii:return vi(t);case oi:return gi();case void 0:var e=vi(t);return!e&&t.allowFallbackToLocalStorage&&(e=gi()),e;default:o.error("Invalid session persistence '".concat(String(t.sessionPersistence),"'"))}}function Qi(t,e,n){var r,i=new tr,o=new tr,a=new tr,s=t.type===ii?hi(t.cookieOptions):{isLockEnabled:!1,persistSession:yi,retrieveSession:_i,expireSession:bi},u=s.expireSession,c=g((function(){$i({process:function(t){return fi(t)?{isExpired:"1"}:void 0},after:p},s)}),qi);v();var l=Q((function(){$i({process:function(t){if(!li(t)){var r=p(t);return function(t){if(li(t))return!1;var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,delete t.isExpired,o&&!t.id&&(t.id=X(),t.created=String(yt()))}(r),r}},after:function(t){li(t)||h()||function(t){r=t,i.notify()}(t),r=t}},s)}),qi),f=l.throttled,d=l.cancel;function p(t){return fi(t)&&(t={isExpired:"1"}),h()&&(!function(t){return r.id!==t.id||r[e]!==t[e]}(t)?(a.notify({previousState:r,newState:t}),r=t):(r={isExpired:"1"},o.notify())),t}function v(){$i({process:function(t){if(li(t))return{isExpired:"1"}},after:function(t){r=t}},s)}function h(){return void 0!==r[e]}return{expandOrRenewSession:f,expandSession:function(){$i({process:function(t){return h()?p(t):void 0}},s)},getSession:function(){return r||{}},renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a,restartSession:v,expire:function(){d(),u(),p({isExpired:"1"})},stop:function(){y(c)},updateSessionState:function(t){$i({process:function(e){return I({},e,t)},after:p},s)}}}var Ki={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function Xi(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=$t(t.sessionSampleRate,t.sampleRate);return I({beforeSend:t.beforeSend&&f(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Gi(t),isOpenWay:t.site&&t.clientToken,sessionSampleRate:$t(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:$t(t.telemetrySampleRate,100),telemetryEnabled:$t(t.telemetryEnabled,!1),silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144,resourceUrlLimit:5120,storeContextsToLocal:!!t.storeContextsToLocal,storeContextsKey:t.storeContextsKey,sendContentTypeByJson:!!t.sendContentTypeByJson,retryMaxSize:$t(t.retryMaxSize,-1)},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&M(t.isIntakeUrl)&&q(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&M(t.isServerError)&&q(t.isServerError())&&(n=t.isServerError),{rumEndpoint:Kr(t,"rum"),logsEndpoint:Kr(t,"log"),sessionReplayEndPoint:Kr(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 Ji(t){return Ji="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},Ji(t)}function Yi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yi(Object(n),!0).forEach((function(e){to(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function to(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Ji(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ji(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ji(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return no(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?no(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function no(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ro(t,e){!function(t,e){var n=new XMLHttpRequest;ir(n,"load",(function(){if(200===n.status){var t=JSON.parse(n.responseText);e(t.content)}else e({}),so()})),ir(n,"error",(function(){e({}),so()})),n.open("GET",function(t){var e=t.datakitOrigin||t.datakitUrl||t.site;0===e.indexOf("/")&&(e=location.origin+Xr(e));var n=e;n=e.lastIndexOf("/")===e.length-1?Xr(e)+"v1/env_variable":Xr(e)+"/v1/env_variable";n+="?app_id="+t.applicationId,t.site&&t.clientToken&&(n=n+"&token="+t.clientToken+"&to_headless=true");return n}(t)),n.send()}(t,(function(n){e(function(t,e){var n={};for(var r in e){if(void 0!==e[r])n[r.replace("R."+t.applicationId+".","")]=e[r]}return Zi(Zi({},t),function(t,e){var n={};return F(e).forEach((function(e){var r=eo(e,2),i=r[0],o=r[1],a=t[i];et(a)===o&&(n[i]=a)})),n}(n,ao))}(t,n))}))}var io,oo,ao={sessionSampleRate:"number",telemetrySampleRate:"number",silentMultipleInit:"boolean",service:"string",env:"string",version:"string",tracingSampleRate:"number",useCrossSiteSessionCookie:"boolean",usePartitionedCrossSiteSessionCookie:"boolean",useSecureSessionCookie:"boolean",trackSessionAcrossSubdomains:"boolean",storeContextsToLocal:"boolean",storeContextsKey:"string",sendContentTypeByJson:"boolean",allowFallbackToLocalStorage:"boolean",sessionOnErrorSampleRate:"number",sessionReplaySampleRate:"number",sessionReplayOnErrorSampleRate:"number",trackUserInteractions:"boolean",trackInteractions:"boolean",actionNameAttribute:"string",trackViewsManually:"boolean",workerUrl:"string",compressIntakeRequests:"boolean",traceType:"string"};function so(){o.error("Error fetching the remote configuration.")}function uo(){return io||(io=new tr((function(t){if(window.fetch){var e=Jn(window,"fetch",(function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,i=t.handlingStack,o=n[0],a=n[1],s=a&&a.method;void 0===s&&o instanceof Request&&(s=o.method);var c=void 0!==s?String(s).toUpperCase():"GET",l=o instanceof Request?o.url:zr(String(o)),f=mt(),d={state:"start",init:a,input:o,method:c,startClocks:f,url:l,handlingStack:i};e.notify(d),n[0]=d.input,n[1]=d.init,r((function(t){return function(t,e,n){var r=n,i=function(e){r.state="resolve",I(r,e),t.notify(r)};e.then(u((function(t){var e="";try{e=t.constructor===Response&&t.type||""}catch(t){e=""}i({response:t,responseType:e,status:t.status,isAborted:!1})})),u((function(t){i({status:0,isAborted:r.init&&r.init.signal&&r.init.signal.aborted||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})})))}(e,t,d)}))}(e,t)}),{computeHandlingStack:!0});return e.stop}}))),io}var co=new WeakMap;function lo(){return oo||(oo=new tr((function(t){var e=Jn(XMLHttpRequest.prototype,"open",fo),n=Jn(XMLHttpRequest.prototype,"send",(function(e){!function(t,e){var n=t.target,r=t.handlingStack,i=co.get(n);if(i){var o=i;o.state="start",o.startClocks=mt(),o.isAborted=!1,o.xhr=n,o.handlingStack=r;var a=!1,s=Jn(n,"onreadystatechange",(function(){n.readyState===XMLHttpRequest.DONE&&u()})).stop,u=function(){if(c(),s(),!a){a=!0;var t=i;t.state="complete",t.duration=_t(o.startClocks.timeStamp,gt()),t.status=n.status,e.notify(A(t))}},c=ir(n,"loadend",u).stop;e.notify(o)}}(e,t)}),{computeHandlingStack:!0}),r=Jn(XMLHttpRequest.prototype,"abort",po);return function(){e.stop(),n.stop(),r.stop()}}))),oo}function fo(t){var e=t.target,n=t.parameters[0],r=t.parameters[1];co.set(e,{state:"open",method:String(n).toUpperCase(),url:zr(String(r))})}function po(t){var e=t.target,n=co.get(e);n&&(n.isAborted=!0)}var vo={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function ho(t){return It(D(vo),t)}function mo(t){return t.nodeType===Node.ELEMENT_NODE}function go(t){return mo(t)&&Boolean(t.shadowRoot)}function yo(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&mo(e.host)}function _o(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;go(t)&&e(t.shadowRoot)}function bo(t){return yo(t)?t.host:t.parentNode}function wo(t,e){return document.readyState===t||"complete"===document.readyState?(e(),{stop:ot}):ir(window,"complete"===t?se:ge,e,{once:!0})}function So(){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 xo(){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 Eo={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",time_zone:"device.time_zone",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.name",view_path_group:"view.path_group",view_path_name:"view.pathname"},ko={view_url_query:"view.url_query",action_id:"action.id",action_ids:"action.ids",view_in_foreground:"view.in_foreground",display:"display",session_has_replay:"session.has_replay",is_login:"user.is_login",page_states:"_gc.page_states",session_sample_rate:"_gc.configuration.session_sample_rate",session_replay_sample_rate:"_gc.configuration.session_replay_sample_rate",session_on_error_sample_rate:"_gc.configuration.session_on_error_sample_rate",session_replay_on_error_sample_rate:"_gc.configuration.session_replay_on_error_sample_rate",drift:"_gc.drift"},To={view:{type:Je.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",view_privacy_replay_level:"privacy.replay_level"},fields:{view_update_time:"_gc.view_update_time",sampled_for_replay:"session.sampled_for_replay",sampled_for_error_replay:"session.sampled_for_error_replay",sampled_for_error_session:"session.sampled_for_error_session",session_error_timestamp:"session.error_timestamp_for_session",is_active:"view.is_active",session_replay_stats:"_gc.replay_stats",session_is_active:"session.is_active",view_error_count:"view.error.count",view_resource_count:"view.resource.count",view_long_task_count:"view.long_task.count",view_action_count:"view.action.count",first_contentful_paint:"view.first_contentful_paint",largest_contentful_paint:"view.largest_contentful_paint",largest_contentful_paint_element_selector:"view.largest_contentful_paint_element_selector",cumulative_layout_shift:"view.cumulative_layout_shift",cumulative_layout_shift_time:"view.cumulative_layout_shift_time",cumulative_layout_shift_target_selector:"view.cumulative_layout_shift_target_selector",first_input_delay:"view.first_input_delay",loading_time:"view.loading_time",dom_interactive:"view.dom_interactive",dom_content_loaded:"view.dom_content_loaded",dom_complete:"view.dom_complete",load_event:"view.load_event",first_input_time:"view.first_input_time",first_input_target_selector:"view.first_input_target_selector",first_paint_time:"view.fpt",interaction_to_next_paint:"view.interaction_to_next_paint",interaction_to_next_paint_target_selector:"view.interaction_to_next_paint_target_selector",resource_load_time:"view.resource_load_time",time_to_interactive:"view.tti",dom:"view.dom",dom_ready:"view.dom_ready",time_spent:"view.time_spent",first_byte:"view.first_byte",frustration_count:"view.frustration.count",custom_timings:"view.custom_timings"}},resource:{type:Je.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.span_id",resource_id:"resource.id",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",resource_url:"resource.url",resource_url_host:"resource.url_host",resource_url_path:"resource.url_path",resource_url_path_group:"resource.url_path_group",resource_url_query:"resource.url_query",resource_delivery_type:"resource.delivery_type",resource_type:"resource.type",resource_protocol:"resource.protocol",resource_encode_size:"resource.encoded_body_size",resource_decode_size:"resource.decoded_body_size",resource_transfer_size:"resource.transfer_size",resource_render_blocking_status:"resource.render_blocking_status",resource_dns:"resource.dns",resource_tcp:"resource.tcp",resource_ssl:"resource.ssl",resource_ttfb:"resource.ttfb",resource_trans:"resource.trans",resource_redirect:"resource.redirect",resource_first_byte:"resource.firstbyte",resource_dns_time:"resource.dns_time",resource_download_time:"resource.download_time",resource_first_byte_time:"resource.first_byte_time",resource_connect_time:"resource.connect_time",resource_ssl_time:"resource.ssl_time",resource_redirect_time:"resource.redirect_time"}},error:{type:Je.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:Je.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:Je.ACTION,tags:{action_type:"action.type"},fields:{action_name:"action.target.name",duration:"action.loading_time",action_error_count:"action.error.count",action_resource_count:"action.resource.count",action_frustration_types:"action.frustration.type",action_long_task_count:"action.long_task.count",action_target:"_gc.action.target",action_position:"_gc.action.position"}},telemetry:{type:"telemetry",fields:{status:"telemetry.status",message:["string","telemetry.message"],type:"telemetry.type",error_stack:["string","telemetry.error.stack"],error_kind:["string","telemetry.error.kind"],connectivity:["string","telemetry.connectivity"],runtime_env:["string","telemetry.runtime_env"],usage:["string","telemetry.usage"],configuration:["string","telemetry.configuration"]}},browser_log:{type:Je.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"]}}},Co=ut,Oo=ei,Io=[];function Ao(t,e,n){var r=new tr,i=new tr,o=Qi(t.sessionStoreStrategyType,e,n);Io.push((function(){return o.stop()}));var a,s=Yt({expireDelay:Oo});function u(){return{id:o.getSession().id,trackingType:o.getSession()[e],hasError:!!o.getSession().hasError}}return Io.push((function(){return s.stop()})),o.renewObservable.subscribe((function(){s.add(u(),ht()),r.notify()})),o.expireObservable.subscribe((function(){i.notify(),s.closeActive(ht())})),o.expandOrRenewSession(),s.add(u(),bt().relative),a=or(window,[ie,le,ae,ce],(function(){o.expandOrRenewSession()}),{capture:!0,passive:!0}).stop,Io.push(a),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=ir(document,pe,e).stop;Io.push(n);var r=g(e,Co);Io.push((function(){y(r)}))}((function(){return o.expandSession()})),function(t){var e=ir(window,me,t,{capture:!0}).stop;Io.push(e)}((function(){o.restartSession()})),{findSession:function(t,e){return s.find(t,e)},renewObservable:r,expireObservable:i,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}var Ro=20971520,Po=st,No=0,Mo=1,Lo=2,Do=0,Uo=1;function Bo(t,e,n,r,i){e.transportStatus===No&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Vo(t,e,n,{onSuccess:function(){return jo(Do,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),zo(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function zo(t,e,n,r){t.transportStatus===Lo&&h((function(){Vo(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=Po,jo(Uo,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(256e3,2*t.currentBackoffTime),zo(t,e,n,r)}})}),t.currentBackoffTime)}function Vo(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=No,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?Mo:Lo,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o())}))}function jo(t,e,n,r,i){t===Do&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: 20MiB",source:jn,startClocks:mt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=$o();o.size()>0;)Bo(o.dequeue(),e,n,r,i)}function $o(){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>=Ro}}}function Ho(t,e){return t?(t=t+(-1===t.indexOf("?")?"?":"&")+"precision=ms",e&&(t=t+"&encoding="+e),t):t}function Fo(t,e,n,r){void 0===n&&(n=-1);var i=function(t){return{transportStatus:No,currentBackoffTime:Po,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:$o(),queueFullReported:!1,retryMaxSize:t}}(n),o=function(n,r){return function(t,e,n,r){var i=n.data,o=n.bytesCount,a=Ho(t,n.encoding),s=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&o<e;if(s){var c={method:"POST",body:i,keepalive:!0,mode:"cors"},l={"x-client-timestamp":Date.now().toString()};n.type&&(l["Content-Type"]=n.type),c.headers=l,fetch(a,c).then(u((function(t){"function"==typeof r&&r({status:t.status,type:t.type})}))).catch(u((function(){!function(t,e,n){var r={method:"POST",body:e.data,keepalive:!0,mode:"cors"},i={"x-client-timestamp":Date.now().toString()};e.type&&(i["Content-Type"]=e.type);r.headers=i,fetch(t,r).then(u((function(t){"function"==typeof n&&n({status:t.status,type:t.type})}))).catch(u((function(){"function"==typeof n&&n({status:0})})))}(a,n,r)})))}else qo(a,n,r)}(t,e,n,r)};return{send:function(e){Bo(e,i,o,t,r)},sendOnExit:function(n){!function(t,e,n){var r=n.data,i=n.bytesCount,o=Ho(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){Wo||(Wo=!0,Ni(t))}(t)}qo(o,n)}(t,e,n)}}}var Wo=!1;function qo(t,e,n){var r=e.data,i=new XMLHttpRequest;i.open("POST",t,!0),r instanceof Blob?i.setRequestHeader("Content-Type",r.type):e.type&&i.setRequestHeader("Content-Type",e.type),i.setRequestHeader("x-client-timestamp",Date.now().toString()),ir(i,"loadend",(function(){"function"==typeof n&&n({status:i.status})}),{once:!0}),i.send(r)}function Go(t){return Go="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},Go(t)}function Qo(t){if("object"===Go(t)&&t)t=mn(t);else if(!W(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function Ko(t,e){return"object"===Go(t)&&t?t=mn(t):e&&(t=""+t),t}function Xo(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function Jo(t){return"object"===Go(t)&&t?Xo(mn(t)):W(t)?Xo(t):t}var Yo="custom_keys",Zo=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return O(To,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=R({},Eo,i.tags),u=["date","type",Yo];O(s,(function(n,r){var i=Tt(t,n);u.push(r),(i||G(i))&&(e.tags[r]=Ko(i,!0),a.push(Qo(r)+"="+Qo(i)))}));var c=[],l=R({},ko,i.fields);if(O(l,(function(n,r){if(N(n)&&2===n.length){var i=n[1],o=Tt(t,i);u.push(r),null!=o&&(e.fields[r]=Ko(o),c.push(Qo(r)+"="+Jo(o)))}else if(W(n)){o=Tt(t,n);u.push(r),null!=o&&(e.fields[r]=Ko(o),c.push(Qo(r)+"="+Jo(o)))}})),t.context&&$(t.context)&&!H(t.context)){var f=[];O(t.context,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=Ko(t),c.push(Qo(n)+"="+Jo(t))))})),f.length&&(e.fields[Yo]=Ko(f),c.push(Qo(Yo)+"="+Jo(f)))}t.type===Je.LOGGER&&O(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=Ko(t),c.push(Qo(n)+"="+Jo(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 ta(t){var e=t.encoder,n=t.request,r=t.messageBytesLimit,i=t.sendContentTypeByJson,a=t.flushController,s={},u=a.flushObservable.subscribe((function(t){!function(t){var r=D(s).join(i?",":"\n");s={};var o=ho(t.reason),a=o?n.sendOnExit:n.send;if(o&&e.isAsync){var u=e.finishSync();u.outputBytesCount&&a(ea(u,i));var l=[u.pendingData,r].filter(Boolean).join("\n");l&&a({data:l,bytesCount:Mn(l)})}else{if(r){var f=c([r],e.isEmpty());i&&(f+="]"),e.write(f)}else i&&e.write("]");e.finish((function(t){a(ea(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?mn(Zo(t).rowData):Zo(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 ea(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 na(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 tr((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(){m(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 ra(){return p().FTWebViewJavascriptBridge}function ia(){var t=ra();if(t)return{getCapabilities:function(){return JSON.parse(t.getCapabilities&&t.getCapabilities()||"[]")},getPrivacyLevel:function(){return t.getPrivacyLevel&&t.getPrivacyLevel()},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts&&t.getAllowedWebViewHosts()||"[]")},send:function(e,n,r){var i=r?{id:r}:void 0;t.sendEvent(JSON.stringify({name:e,data:n,view:i}))}}}var oa="records";function aa(t){var e=ia();return!!e&&e.getCapabilities().includes(t)}function sa(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(t=p().location)||void 0===t?void 0:t.hostname,n=ra();if(n&&void 0===n.getAllowedWebViewHosts)return!0;if(n&&n.getAllowedWebViewHosts&&(null===n.getAllowedWebViewHosts()||void 0===n.getAllowedWebViewHosts()))return!0;var r=ia();return!!r&&r.getAllowedWebViewHosts().some((function(t){return e===t||e.endsWith(".".concat(t))}))}function ua(t){return ua="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},ua(t)}function ca(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return la(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?la(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function la(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function fa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function da(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=ua(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ua(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ua(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pa(t,e,n){for(var r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fa(Object(n),!0).forEach((function(e){da(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),i=0,a=Object.entries(e);i<a.length;i++){var s=ca(a[i],2),u=s[0],c=s[1],l=c.required;"string"===c.type&&u in r&&(r[u]=String(r[u])),l&&!(u in t)&&o.warn("The property ".concat(u," of ").concat(n," context is required; context will not be sent to the intake."))}return r}function va(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.customerDataTracker,r=e.propertiesConfig,i=void 0===r?{}:r,o={},a=new tr,s={getContext:function(){return rt(o)},setContext:function(e){"object"===et(e)?(o=Dn(pa(e,i,t)),null==n||n.updateCustomerData(o)):s.clearContext(),a.notify()},setContextProperty:function(e,r){o[e]=Dn(pa(da({},e,r),i,t)[e]),null==n||n.updateCustomerData(o),a.notify()},removeContextProperty:function(e){delete o[e],null==n||n.updateCustomerData(o),pa(o,i,t),a.notify()},clearContext:function(){o={},null==n||n.resetCustomerData(),a.notify()},changeObservable:a};return s}var ha="user",ma="global context",ga="view",ya="_gc_s",_a=[];function ba(t,e,n,r){var i=function(t,e,n){return t.storeContextsKey&&W(t.storeContextsKey)?ya+"_"+e+"_"+n+"_"+t.storeContextsKey:ya+"_"+e+"_"+n}(t,n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}return _a.push(ir(window,Le,(function(t){i===t.key&&e.setContext(o())}))),e.changeObservable.subscribe((function(){localStorage.setItem(i,JSON.stringify(e.getContext()))})),e.setContext(P(o(),e.getContext())),e}var wa=0,Sa=1,xa=2;function Ea(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xa,e=new Map,n=!1;function r(){if(!n&&t!==wa){var r=t===xa?3072:16384,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e.forEach((function(t){i+=t.getBytesCount()})),i>r&&(!function(t){o.warn("Customer data exceeds the recommended ".concat(t/Pn,"KiB threshold."))}(r),n=!0)}}return{createDetachedTracker:function(){var t=ka((function(){return r(t.getBytesCount())}));return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,ka(r)),e.get(t)},setCompressionStatus:function(e){t===wa&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach((function(t){return t.stop()})),e.clear()}}}function ka(t){var e=0,n=Q((function(n){e=Mn(mn(n)),t()}),200),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){H(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}function Ta(){var t="",e=0;return{isAsync:!1,isEmpty:function(){return!t},write:function(n,r){var i=Mn(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 Ca(t){var e=I({},t);return O(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}function Oa(t){this.map=new WeakMap,t&&t.forEach((function(t){this.map.set(t,1)}))}function Ia(t,e){e.silentMultipleInit||o.error(t+" is already initialized.")}Oa.prototype.add=function(t){return this.map.set(t,1),this},Oa.prototype.delete=function(t){return this.map.delete(t)},Oa.prototype.has=function(t){return this.map.has(t)};var Aa=1,Ra=2,Pa=3,Na="0",Ma="1",La="2",Da="3",Ua="4",Ba="5",za="6";function Va(t,e){var n=Ao(t,"rum",(function(e){return function(t,e){var n,r=t.sessionSampleRate,i=t.sessionOnErrorSampleRate,o=t.sessionReplaySampleRate,a=t.sessionReplayOnErrorSampleRate,s=ct(r),u=ct(i),c=ct(o),l=ct(a);!function(t){return t===Na||t===Ba||t===za||t===Ua||t===La||t===Da||t===Ma}(e)?u||s?s&&c?n=Ma:s&&l?n=Da:!s||c||l?u&&c?n=Ua:u&&l?n=za:!u||c||l||(n=Ba):n=La:n=Na:n=e;return{trackingType:n,isTracked:ja(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(wr)})),n.renewObservable.subscribe((function(){e.notify(br)})),n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,r=t.newState;if(!e.hasError&&r.hasError){var i=n.findSession();i&&(i.hasError=!0,i.ets=r.ets||gt())}})),{findTrackedSession:function(t){var e=n.findSession(t);if(e&&ja(e.trackingType)){var r=e.trackingType===Ba||e.trackingType===Ua||e.trackingType===za,i=Aa;return e.trackingType===Ma||e.trackingType===Ua?i=Ra:e.trackingType!==za&&e.trackingType!==Da||(i=Pa),{id:e.id,plan:i,errorSessionReplayAllowed:i===Pa,sessionHasError:e.hasError,isErrorSession:r,sessionErrorTimestamp:e.ets,sessionReplayAllowed:i===Ra||i===Pa}}},expire:n.expire,expireObservable:n.expireObservable,sessionStateUpdateObservable:n.sessionStateUpdateObservable,setErrorForSession:function(){return n.updateSessionState({hasError:"1",ets:gt()})}}}function ja(t){return t!==Na}var $a="_gc_usr_id";var Ha=function(t){var e;if(t.sessionStoreStrategyType)return e=t.sessionStoreStrategyType.type===ii?function(t){var e=Zr($a,t);return e||(e=X(),Yr($a,e,5184e6,t)),e}(t.sessionStoreStrategyType.cookieOptions):function(){var t=localStorage.getItem($a);return t||(t=X(),localStorage.setItem($a,t)),t}(),{getId:function(){return e}}};function Fa(){var t,e=window;if(e.Zone&&(t=v(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=v(new e.MutationObserver(ot),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function Wa(t){var e=A(t);return new tr((function(n){var r,i,o,a,s=(r=c,i=Jn(qa("pushState"),"pushState",(function(t){(0,t.onPostCall)(r)})),o=Jn(qa("replaceState"),"replaceState",(function(t){(0,t.onPostCall)(r)})),a=ir(window,ue,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),u=ir(window,we,c);function c(){if(e.href!==t.href){var r=A(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return function(){s.stop(),u.stop()}}))}function qa(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}var Ga="initial_document",Qa=[[De,function(t){return Ga===t}],[Ue,function(t){return"xmlhttprequest"===t}],[ze,function(t){return"fetch"===t}],[Be,function(t){return"beacon"===t}],[Ve,function(t,e){return null!==e.match(/\.css$/i)}],[je,function(t,e){return null!==e.match(/\.js$/i)}],[$e,function(t,e){return It(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[He,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[Fe,function(t,e){return It(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function Ka(t){var e=t.name;if(!function(t){try{return!!jr(t)}catch(t){return!1}}(e))return We;var n=function(t){var e=jr(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=We;return O(Qa,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function Xa(){for(var t=L(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function Ja(t){return""===t.deliveryType?"other":t.deliveryType}function Ya(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}var Za=/[^\u0000-\u007F]/;function ts(t,e){return n=t,(Za.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function es(t){return 0===t.duration&&t.startTime<t.responseEnd?ft(t.responseEnd-t.startTime):ft(t.duration)}function ns(t){if(is(t)){var e=t.startTime,n=t.fetchStart,r=t.redirectStart,i=t.redirectEnd,o=t.domainLookupStart,a=t.domainLookupEnd,s=t.connectStart,u=t.secureConnectionStart,c=t.connectEnd,l=t.requestStart,f=t.responseStart,d=t.responseEnd,p={firstbyte:ft(f-l),trans:ft(d-f),downloadTime:as(e,f,d),firstByteTime:as(e,l,f)};return f>0&&f<=ht()&&(p.ttfb=ft(f-l)),c!==n&&(p.tcp=ft(c-s),p.connectTime=as(e,s,c),Xa(s,u,c)&&(p.ssl=ft(c-u),p.sslTime=as(e,u,c))),a!==n&&(p.dns=ft(a-o),p.dnsTime=as(e,o,a)),os(t)&&(p.redirect=ft(i-r),p.redirectTime=as(e,r,i)),t.renderBlockingStatus&&(p.renderBlockingStatus=t.renderBlockingStatus),p}}function rs(t){return t.duration>=0}function is(t){var e=Xa(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!os(t)||Xa(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function os(t){return t.redirectEnd>t.startTime}function as(t,e,n){return{duration:ft(n-e),start:ft(e-t)}}function ss(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 us(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 cs=/data:(.+)?(;base64)?,/g;function ls(t){return!(t.length<=24e3)&&("data:"===t.substring(0,5)&&(t=t.substring(0,24e3),!0))}function fs(t){return t.match(cs)[0]+"[...]"}function ds(t,e){var n=yt(),r=!1,i=or(window,[ie,xe,ae,le,ye],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:ht(),processingEnd:ht(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};t.type===ye?function(t){or(window,[_e,be],(function(e){e.type===_e&&o(t)}),{once:!0})}(e):o(e)}}),{passive:!0,capture:!0}).stop;return{stop:i};function o(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o<yt()-n&&e(t)}}}var ps,vs="event",hs="first-input",ms="largest-contentful-paint",gs="layout-shift",ys="longtask",_s="long-animation-frame",bs="navigation",ws="paint",Ss="resource",xs="visibility-state";function Es(t,e){return new tr((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!==Ss||us(t,e.name)&&rs(e))}(t,e)}))}(t,e);r.length>0&&n.notify(r)},a=!0,s=new PerformanceObserver(u((function(t){a?r=h((function(){o(t.getEntries())})):o(t.getEntries())})));try{s.observe(e)}catch(t){if(It([Ss,bs,ys,ws],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(){!ps&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(ps=ir(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})))}(),!ks(hs)&&e.type===hs){var c=ds(0,(function(t){o([t])}));i=c.stop}return function(){s.disconnect(),i&&i(),m(r)}}}))}function ks(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function Ts(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=ot);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(Tr,(function(t){if(t.type!==Je.VIEW&&n(t))switch(t.type){case Je.ERROR:i.errorCount+=1,r();break;case Je.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case Je.LONG_TASK:i.longTaskCount+=1,r();break;case Je.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var Cs=100;function Os(t,e,n,r,i){var o=function(t,e,n){return new tr((function(r){var i,o=[],a=0;o.push(e.subscribe((function(){u()})),Es(n,{type:Ss}).subscribe((function(t){z(t,(function(t){return!Is(n,t.name)}))&&u()})),t.subscribe(xr,(function(t){Is(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(Er,(function(t){Is(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=Jn(window,"open",u).stop;return function(){s(),O(o,(function(t){t.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}))}(t,e,n);return function(t,e,n){var r,i=!1,o=h((function(){c({hadActivity:!1})}),100),a=void 0!==n?h((function(){return c({hadActivity:!0,end:gt()})}),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;m(o),m(r);var n=gt();e||(r=h((function(){c({hadActivity:!0,end:n})}),100))})),u=function(){i=!0,m(o),m(r),m(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function Is(t,e){return V(t.excludedActivityUrls,e)}var As=st,Rs=0,Ps=1,Ns=2;function Ms(t,e){var n,r=[],i=Rs;function o(t){t.stopObservable.subscribe(a),r.push(t),m(n),n=h(s,As)}function a(){i===Ps&&function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(E.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r}(r,(function(t){return t.isStopped()}))&&(i=Ns,e(r))}function s(){m(n),i===Rs&&(i=Ps,a())}return o(t),{tryAppend:function(t){return i===Rs&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=100)&&e.timeStamp-n.timeStamp<=As))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var Ls="data-guance-action-name";function Ds(t,e){return Us(t,Ls)||e&&Us(t,e)||Hs(t,e,Vs)||Hs(t,e,js)||""}function Us(t,e){var n;if(function(){void 0===zs&&(zs="closest"in HTMLElement.prototype);return zs}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return Ws(Fs(n.getAttribute(e).trim()))}var Bs,zs,Vs=[function(t,e){if(function(){void 0===Bs&&(Bs="labels"in HTMLInputElement.prototype);return Bs}()){if("labels"in t&&t.labels&&t.labels.length>0)return qs(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&At(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&qs(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 qs(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n=n.split(/\s+/),n=B(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=U(n,(function(t){return Boolean(t)})),(n=B(n,(function(t){return qs(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 qs(t.options[0],e)}],js=[function(t,e){return qs(t,e)}],$s=10;function Hs(t,e,n){for(var r=t,i=0;i<=$s&&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 Ws(Fs(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function Fs(t){return t.replace(/\s+/g," ")}function Ws(t){return t.length>100?Ct(t,100)+" [...]":t}function qs(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i<r.length;i+=1){var o=r[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return Bt()===Mt&&r("script, style"),r("["+Ls+"]"),e&&r("["+e+"]"),n}return t.textContent}}var Gs,Qs=[Ls,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Ks=[Zs,function(t){if(t.id&&!Ys(t.id))return"#"+j(t.id)}],Xs=[Zs,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(!Ys(n))return j(t.tagName)+"."+j(n)}},function(t){return j(t.tagName)}];function Js(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=eu(r,Ks,nu,e,n);if(i)return i;n=eu(r,Xs,ru,e,n)||iu(tu(r),n),r=r.parentElement}return n}}function Ys(t){return/[0-9]/.test(t)}function Zs(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<Qs.length;n++){var r;if(r=i(Qs[n]))return r}function i(e){if(t.hasAttribute(e))return j(t.tagName)+"["+e+'="'+j(t.getAttribute(e))+'"]'}}function tu(t){for(var e=t.parentElement&&t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;var r=j(t.tagName);return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function eu(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a&&n(t,a,i))return iu(a,i)}}function nu(t,e,n){return 1===t.ownerDocument.querySelectorAll(iu(e,n)).length}function ru(t,e,n){var r;if(void 0===n)r=function(t){return t.matches(e)};else{var i=function(){if(void 0===Gs)try{document.querySelector(":scope"),Gs=!0}catch(t){Gs=!1}return Gs}()?iu("".concat(e,":scope"),n):iu(e,n);r=function(t){return null!==t.querySelector(i)}}for(var o=t.parentElement.firstElementChild;o;){if(o!==t&&r(o))return!1;o=o.nextElementSibling}return!0}function iu(t,e){return e?t+">"+e:t}function ou(){var t=window.getSelection();return!t||t.isCollapsed}function au(t){return t.target instanceof Element&&!1!==t.isPrimary}function su(t,e){if(function(t){if(z(t,(function(t){return t.getUserActivity().selection||t.getUserActivity().scroll})))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=st)return!0;return!1}(t))return e.addFrustration(Qe),z(t,cu)&&e.addFrustration(Xe),e.hasError()&&e.addFrustration(Ke),{isRage:!0};var n=z(t,(function(t){return t.getUserActivity().selection}));return O(t,(function(t){t.hasError()&&t.addFrustration(Ke),cu(t)&&!n&&t.addFrustration(Xe)})),{isRage:!1}}var uu='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 cu(t){if(t.hasPageActivity()||t.getUserActivity().input||t.getUserActivity().scroll)return!1;var e,n,r=t.event.target;return"LABEL"===r.tagName&&r.hasAttribute("for")&&(r=document.getElementById(r.getAttribute("for"))),!r||(n=uu,!((e=r).matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)))}var lu=1e4,fu=new Map;function du(t,e){fu.set(t,e),fu.forEach((function(t,e){_t(e,ht())>1e4&&fu.delete(e)}))}function pu(t,e,n){var r,i=new Yt({expireDelay:3e5}),o=new tr;t.subscribe(br,(function(){i.reset()})),t.subscribe(yr,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=Js(i.target,o))&&du(i.timeStamp,s),{type:qe,target:{width:Math.round(a.width),height:Math.round(a.height),selector:s},position:{x:Math.round(i.clientX-a.left),y:Math.round(i.clientY-a.top)},name:Ds(i.target,o)}),c=!1;return Os(e,n,t,(function(t){c=t.hadActivity}),Cs),{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=hu(e,r,u,a,s);o(l);var f=a&&a.target&&a.target.selector;f&&du(s.timeStamp,f);var d=Os(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()}),lu),p=d.stop,v=e.subscribe(yr,(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=[ir(window,ye,(function(t){au(t)&&(s=ou(),c={selection:!1,input:!1,scroll:!1},u=a.onPointerDown(t))}),{capture:!0}),ir(window,Me,(function(){s&&ou()||(c.selection=!0)}),{capture:!0}),ir(window,_e,(function(t){if(au(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),ir(window,ce,(function(){c.scroll=!0}),{capture:!0,passive:!0}),ir(window,Ae,(function(){c.input=!0}),{capture:!0})],{stop:function(){O(l,(function(t){return t.stop()}))}}),d=f.stop;return{stop:function(){p(),o.notify(),d()},actionContexts:{findActionId:function(t){var e=i.findAll(t);if(e&&e.length)return e[e.length-1]},findAllActionId:function(t){return i.findAll(t)}}};function p(){r&&r.stop()}function v(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=Ms(t,(function(t){!function(t,e){var n=su(t,e),r=n.isRage;r?(O(t,(function(t){t.discard()})),e.stop(gt()),e.validate(B(t,(function(t){return t.event})))):(e.discard(),O(t,(function(t){t.validate()})))}(t,e)}))}}}var vu={ONGOING:0,STOPPED:1,FINALIZED:2};function hu(t,e,n,r,i){var o,a=X(),s=mt(),u=e.add(a,s.relative),c=Ts({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(N(t.action.ids)?It(t.action.ids,a):t.action.ids===a)}}),l=vu.ONGOING,f=[],d=new tr;function p(t){l===vu.ONGOING&&(o=t,l=vu.STOPPED,o?u.close(pt(o)):u.remove(),c.stop(),d.notify())}return{event:i,stop:p,stopObservable:d,hasError:function(){return c.eventCounts.errorCount>0},hasPageActivity:function(){return void 0!==o},getUserActivity:n,addFrustration:function(t){f.push(t)},startClocks:s,isStopped:function(){return l===vu.STOPPED||l===vu.FINALIZED},clone:function(){return hu(t,e,n,r,i)},validate:function(e){if(p(),l===vu.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,v=n.longTaskCount,h=I({type:qe,duration:o&&_t(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:v},events:$t(e,[i]),event:i},r);t.notify(pr,h),l=vu.FINALIZED}},discard:function(){p(),l=vu.FINALIZED}}}var mu=ei,gu="active",yu="passive",_u="hidden",bu="frozen",wu="terminated";function Su(t){void 0===t&&(t=500);var e,n=Yt({expireDelay:mu,maxEntries:4e3});ks(xs)&&performance.getEntriesByType(xs).forEach((function(t){i("hidden"===t.name?_u:gu,t.startTime)}));i(xu(),ht());var r=or(window,[ve,ke,Te,pe,me,he,Se],(function(t){i(function(t){if(t.type===he)return bu;if(t.type===Se)return t.persisted?bu:wu;return xu()}(t),t.timeStamp)}),{capture:!0}).stop;function i(t,r){void 0===r&&(r=ht()),t!==e&&(e=t,n.closeActive(r),n.add({state:e,startTime:r},r))}var o={findAll:function(e,r){return function(t,e,n){if(0===t.length)return;return t.slice(-n).reverse().map((function(t){var n=t.state,r=t.startTime;return{state:n,start:dt(_t(e,r))}}))}(n.findAll(e,r),e,t)},wasInPageStateAt:function(t,e){return o.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,r){return n.findAll(e,r).some((function(e){return e.state===t}))},addPageState:i,stop:function(){r(),n.stop()}};return o}function xu(){return"hidden"===document.visibilityState?_u:document.hasFocus()?gu:yu}function Eu(t,e){var n,r=ku(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:Gt(dt(t.duration)),frustration:{type:t.frustrationTypes},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_gc:{action:{target:t.target,position:t.position}}}:{action:{loadingTime:(null===(n=t.context)||void 0===n?void 0:n.duration)||0}};return{customerContext:ku(t)?void 0:t.context,rawRumEvent:P({action:{id:X(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:Je.ACTION,view:{in_foreground:e.wasInPageStateAt(gu,t.startClocks.relative)}},r),startTime:t.startClocks.relative,domainContext:ku(t)?{event:t.event,events:t.events}:{}}}function ku(t){return t.type===qe}var Tu=1,Cu=2;function Ou(t,e){var n,r=0,i=[],o=!0,a=0,s=[],u=ir(t,"message",(function(t){var o=t.data;if(!("wrote"!==o.type||o.streamId&&o.streamId!==e)){var a=s[0];a&&(a.id===o.id?(s.shift(),r+=o.additionalBytesCount,i.push(o.result),n=o.trailer,a.writeCallback?a.writeCallback(o.result.byteLength):a.finishCallback&&a.finishCallback()):a.id<o.id&&(u(),Pi("Worker responses received out of order.")))}})).stop;function c(){var t=0===i.length?new Uint8Array(0):function(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),r=0,i=0,o=t;i<o.length;i++){var a=o[i];n.set(a,r),r+=a.length}return n}(i.concat(n)),e={rawBytesCount:r,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return r=0,i=[],e}function l(){o||(t.postMessage({action:"reset",streamId:e}),o=!0)}return{isAsync:!0,isEmpty:function(){return o},write:function(n,r){t.postMessage({action:"write",id:a,data:n,streamId:e}),s.push({id:a,writeCallback:r,data:n}),o=!1,a+=1},finish:function(t){l(),s.length?(s.forEach((function(t){delete t.writeCallback})),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map((function(t){return t.data})).join("");return s.length=0,I(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}function Iu(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),h=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),l=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},U=function(t,e,a){var n,r,s=new Array(16),h=0;for(n=1;n<=i;n++)s[n]=h=h+a[n-1]<<1;for(r=0;r<=e;r++){var l=t[2*r+1];0!==l&&(t[2*r]=A(s[l]++,l))}},I=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},B=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},E=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},S=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&E(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!E(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},C=function(t,e,n){var r,i,l,_,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(l=f[i],x(t,l+a+1,e),0!==(_=s[l])&&(i-=c[l],z(t,i,_)),r--,l=y(r),x(t,l,n),0!==(_=h[l])&&(r-=v[l],z(t,r,_)))}while(o<t.last_lit);x(t,256,e)},D=function(t,e){var a,n,r,s=e.dyn_tree,h=e.stat_desc.static_tree,l=e.stat_desc.has_stree,_=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<_;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,l&&(t.static_len-=h[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)S(t,s,a);r=_;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,S(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,h,l,_=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(_[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=_[2*_[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),_[2*n+1]=s,n>o||(t.bl_count[s]++,h=0,n>=c&&(h=f[n-c]),l=_[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(_[2*r+1]!==s&&(t.opt_len+=(s-_[2*r+1])*_[2*r],_[2*r+1]=s),n--)}}(t,e),U(s,o,t.bl_count)},j=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},M=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{x(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),h--),x(t,16,t.bl_tree),z(t,h-3,2)):h<=10?(x(t,17,t.bl_tree),z(t,h-3,3)):(x(t,18,t.bl_tree),z(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},L=!1,T=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){B(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},H=function(t,e,n,r){var i,s,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),h=function(t){var e;for(j(t,t.dyn_ltree,t.l_desc.max_code),j(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*_[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?T(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),C(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*_[r]+1],3);M(t,t.dyn_ltree,e-1),M(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),C(t,t.dyn_ltree,t.dyn_dtree)),I(t),r&&B(t)},R={_tr_init:function(t){L||(!function(){var t,e,a,_,m,y=new Array(16);for(a=0,_=0;_<28;_++)for(c[_]=a,t=0;t<1<<s[_];t++)f[a++]=_;for(f[a-1]=_,m=0,_=0;_<16;_++)for(v[_]=m,t=0;t<1<<h[_];t++)u[m++]=_;for(m>>=7;_<r;_++)for(v[_]=m<<7,t=0;t<1<<h[_]-7;t++)u[256+m++]=_;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(U(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,h,0,r,i),w=new b(new Array(0),l,0,19,7)}(),L=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,I(t)},_tr_stored_block:T,_tr_flush_block:H,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},K=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},N=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=N,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return~t},q={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},F=0,G=2,J=3,P=4,Q=0,V=1,W=-1,X=0,Y=8,Z=R._tr_init,$=R._tr_stored_block,tt=R._tr_flush_block,et=R._tr_tally,at=R._tr_align,nt=F,rt=1,it=J,st=P,ht=5,lt=Q,_t=V,ot=-2,dt=-3,ut=-5,ft=W,ct=1,pt=2,gt=3,wt=4,vt=X,bt=2,mt=Y,yt=258,kt=262,zt=103,xt=113,At=666,Ut=function(t,e){return t.msg=q[e],e},It=function(t){return(t<<1)-(t>4?9:0)},Bt=function(t){for(var e=t.length;--e>=0;)t[e]=0},Et=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},St=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Ct=function(t,e){tt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Dt=function(t,e){t.pending_buf[t.pending++]=e},jt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Mt=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-kt?t.strstart-(t.w_size-kt):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+yt,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=yt-(u-i),i=u-yt,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead},Lt=function(t){var e,a,n,r,i,s,h,l,_,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-kt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,h=t.window,l=t.strstart+t.lookahead,_=r,o=void 0,(o=s.avail_in)>_&&(o=_),a=0===o?0:(s.avail_in-=o,h.set(s.input.subarray(s.next_in,s.next_in+o),l),1===s.state.wrap?s.adler=K(s.adler,h,o,l):2===s.state.wrap&&(s.adler=O(s.adler,h,o,l)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Et(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Et(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<kt&&0!==t.strm.avail_in)},Tt=function(t,e){for(var a,n;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a)),t.match_length>=3)if(n=et(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Et(t,t.ins_h,t.window[t.strstart+1]);else n=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2},Ht=function(t,e){for(var a,n,r;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a),t.match_length<=5&&(t.strategy===ct||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=et(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ct(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=et(t,0,t.window[t.strstart-1]))&&Ct(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=et(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Kt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Lt(t),0===t.lookahead&&e===nt)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Ct(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-kt&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ct(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Tt),new Rt(4,5,16,8,Tt),new Rt(4,6,32,32,Tt),new Rt(4,4,16,16,Ht),new Rt(8,16,32,32,Ht),new Rt(8,16,128,128,Ht),new Rt(8,32,128,256,Ht),new Rt(32,128,258,1024,Ht),new Rt(32,258,258,4096,Ht)];function Nt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Bt(this.dyn_ltree),Bt(this.dyn_dtree),Bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Bt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ot=function(t){if(!t||!t.state)return Ut(t,ot);t.total_in=t.total_out=0,t.data_type=bt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:xt,t.adler=2===e.wrap?0:1,e.last_flush=nt,Z(e),lt},qt=function(t){var e,a=Ot(t);return a===lt&&((e=t.state).window_size=2*e.w_size,Bt(e.head),e.max_lazy_match=Kt[e.level].max_lazy,e.good_match=Kt[e.level].good_length,e.nice_match=Kt[e.level].nice_length,e.max_chain_length=Kt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Ft=function(t,e,a,n,r,i){if(!t)return ot;var s=1;if(e===ft&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==mt||n<8||n>15||e<0||e>9||i<0||i>wt)return Ut(t,ot);8===n&&(n=9);var h=new Nt;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,qt(t)},Gt={deflateInit:function(t,e){return Ft(t,e,mt,15,8,vt)},deflateInit2:Ft,deflateReset:qt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?ot:(t.state.gzhead=e,lt):ot},deflate:function(t,e){var a,n;if(!t||!t.state||e>ht||e<0)return t?Ut(t,ot):ot;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===At&&e!==st)return Ut(t,0===t.avail_out?ut:ot);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Dt(r,31),Dt(r,139),Dt(r,8),r.gzhead?(Dt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Dt(r,255&r.gzhead.time),Dt(r,r.gzhead.time>>8&255),Dt(r,r.gzhead.time>>16&255),Dt(r,r.gzhead.time>>24&255),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Dt(r,255&r.gzhead.extra.length),Dt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,3),r.status=xt);else{var s=mt+(r.w_bits-8<<4)<<8;s|=(r.strategy>=pt||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=xt,jt(r,s),0!==r.strstart&&(jt(r,t.adler>>>16),jt(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending!==r.pending_buf_size));)Dt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=zt)}else r.status=zt;if(r.status===zt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&St(t),r.pending+2<=r.pending_buf_size&&(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),t.adler=0,r.status=xt)):r.status=xt),0!==r.pending){if(St(t),0===t.avail_out)return r.last_flush=-1,lt}else if(0===t.avail_in&&It(e)<=It(i)&&e!==st)return Ut(t,ut);if(r.status===At&&0!==t.avail_in)return Ut(t,ut);if(0!==t.avail_in||0!==r.lookahead||e!==nt&&r.status!==At){var h=r.strategy===pt?function(t,e){for(var a;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===nt)return 1;break}if(t.match_length=0,a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===gt?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=yt){if(Lt(t),t.lookahead<=yt&&e===nt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+yt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=yt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=et(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):Kt[r.level].func(r,e);if(3!==h&&4!==h||(r.status=At),1===h||3===h)return 0===t.avail_out&&(r.last_flush=-1),lt;if(2===h&&(e===rt?at(r):e!==ht&&($(r,0,0,!1),e===it&&(Bt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),St(t),0===t.avail_out))return r.last_flush=-1,lt}return e!==st?lt:r.wrap<=0?_t:(2===r.wrap?(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),Dt(r,t.adler>>16&255),Dt(r,t.adler>>24&255),Dt(r,255&t.total_in),Dt(r,t.total_in>>8&255),Dt(r,t.total_in>>16&255),Dt(r,t.total_in>>24&255)):(jt(r,t.adler>>>16),jt(r,65535&t.adler)),St(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?lt:_t)},deflateEnd:function(t){if(!t||!t.state)return ot;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==zt&&e!==xt&&e!==At?Ut(t,ot):(t.state=null,e===xt?Ut(t,dt):lt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return ot;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return ot;if(1===r&&(t.adler=K(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(Bt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=Et(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,Lt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,lt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Jt=new Uint8Array(256),Pt=0;Pt<256;Pt++)Jt[Pt]=Pt>=252?6:Pt>=248?5:Pt>=240?4:Pt>=224?3:Pt>=192?2:1;Jt[254]=Jt[254]=1;var Qt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Vt=Object.prototype.toString,Wt=F,Xt=G,Yt=J,Zt=P,$t=Q,te=V,ee=W,ae=X,ne=Y;function re(){this.options={level:ee,method:ne,chunkSize:16384,windowBits:15,memLevel:8,strategy:ae};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Qt,this.strm.avail_out=0;var e=Gt.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==$t)throw new Error(q[e]);if(t.header&&Gt.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Vt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Gt.deflateSetDictionary(this.strm,a))!==$t)throw new Error(q[e]);this._dict_set=!0}}function ie(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function se(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}re.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Zt:Wt,"[object ArrayBuffer]"===Vt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Xt||n===Yt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Gt.deflate(r,n))===te)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Gt.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===$t;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},re.prototype.onData=function(t){this.chunks.push(t)},re.prototype.onEnd=function(t){t===$t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"3.2.37"};case"write":var n=e.get(a.streamId);n||(n=new re,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,G),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:se(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){ie(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){ie(e,t)}}()}();'])))}var Au=0,Ru=1,Pu=2,Nu=3,Mu={status:Au};function Lu(t,e,n,r){switch(void 0===r&&(r=Iu),Mu.status===Au&&function(t,e,n){void 0===n&&(n=Iu);try{var r=n(t),i=ir(r,"error",(function(n){Uu(t,e,n)})),a=ir(r,"message",(function(t){var e,n=t.data;"errored"===n.type?Uu(n.error,n.streamId):"initialized"===n.type&&(e=n.version,Mu.status===Ru&&(Mu={status:Nu,worker:Mu.worker,version:e,stop:Mu.stop}))}));r.postMessage({action:"init"}),h((function(){return function(t){Mu.status===Ru&&(o.error(t+" failed to start: a timeout occurred while initializing the Worker"),Mu.initializationFailureCallbacks.forEach((function(t){t()})),Mu={status:Pu})}(e)}),1e4),Mu={status:Ru,worker:r,stop:function(){i.stop(),a.stop()},initializationFailureCallbacks:[]}}catch(n){Uu(t,e,n)}}(t,e,r),Mu.status){case Ru:return Mu.initializationFailureCallbacks.push(n),Mu.worker;case Nu:return Mu.worker}}function Du(){return Mu.status}function Uu(t,e,n,r){if(Mu.status===Ru){var i;if(o.error(e+" failed to start: an error occurred while creating the Worker:",n),n instanceof Event||n instanceof Error&&(It(a=n.message,"Content Security Policy")||It(a,"requires 'TrustedScriptURL'")))i=t.workerUrl?"Please make sure the Worker URL "+t.workerUrl+" is correct and CSP is correctly configured.":"Please make sure CSP is correctly configured.",o.error(i);else Ni(n);Mu.status===Ru&&Mu.initializationFailureCallbacks.forEach((function(t){t()})),Mu={status:Pu}}else Ni(n,{worker_version:Mu.status===Nu&&Mu.version,stream_id:r});var a}function Bu(t,e,n,r,i,o,a){var s=function(t,e,n,r,i,o){void 0===o&&(o=ta);var a=function(t,e){return o({encoder:e.encoder,request:Fo(e.endpoint,t.batchBytesLimit,t.retryMaxSize,n),flushController:na({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(Cu)},r,i,o);return e.subscribe(Tr,(function(t){t.type===Je.VIEW?s.upsert(t,t.view.id):s.add(t)})),n.subscribe((function(t){s.add(t)})),s}function zu(t){return zu="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},zu(t)}function Vu(t){var e=function(t,e){if("object"!=zu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=zu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zu(e)?e:e+""}function ju(t,e,n){return(e=Vu(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Hu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$u(Object(n),!0).forEach((function(e){ju(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Fu,Wu="synthetics",qu="user",Gu={"view.url":"string","view.referrer":"string"},Qu={context:"object"},Ku={service:"string",version:"string"},Xu={};function Ju(t,e,n,r,i,a,s,u,c,l){Xu[Je.VIEW]=Hu(Hu({},Qu),Gu),Xu[Je.ERROR]=I({"error.message":"string","error.stack":"string","error.resource.url":"string"},Qu,Gu,Ku),Xu[Je.RESOURCE]=I({"resource.url":"string"},Qu,Gu,Ku),Xu[Je.ACTION]=I({"action.target.name":"string"},Qu,Gu,Ku),Xu[Je.LONG_TASK]=I({},Qu,Gu);var f={};f[Je.ERROR]=Br(Je.ERROR,t.eventRateLimiterThreshold,l),f[Je.ACTION]=Br(Je.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(kr,(function(l){var d,p=l.startTime,v=l.rawRumEvent,h=l.savedCommonContext,m=l.customerContext,g=l.domainContext,y=i.findView(p),_=a.findUrl(p),b=n.findTrackedSession(p);if((!b||!b.isErrorSession||b.sessionHasError)&&(b&&y&&_)){var w=s.findActionId(p),S=s.findAllActionId(p),x=h||c(),E={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(yt()-(Et()+performance.now())),configuration:{session_sample_rate:lt(t.sessionSampleRate,3),session_replay_sample_rate:lt(t.sessionReplaySampleRate,3),session_on_error_sample_rate:lt(t.sessionOnErrorSampleRate,3),session_replay_on_error_sample_rate:lt(t.sessionReplayOnErrorSampleRate,3)}},terminal:{type:"web"},application:{id:t.applicationId},device:ne,env:t.env||"",service:y.service||t.service||"browser",version:y.version||t.version||"",source:"browser",date:gt(),user:{id:r.getId(),is_signin:"F",is_login:!1},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?qu:Wu,id:b.id},view:{id:y.id,name:y.name||_.path,url:_.url,referrer:_.referrer,host:_.host,path:_.path,pathGroup:_.pathGroup,pathname:_.pathname,urlQuery:_.urlQuery},action:(d=v,-1!==[Je.ERROR,Je.RESOURCE,Je.LONG_TASK].indexOf(d.type)&&w?{id:w,ids:S}:void 0),display:u.get()},k=Vt(P(E,y,v)),T=P({},x.context,y.context,m);H(T)||(k.context=T),"has_replay"in k.session||(k.session.has_replay=x.hasReplay),b.errorSessionReplayAllowed&&(k.session.has_replay=k.session.has_replay&&b.sessionHasError),"view"===k.type&&(k.session.sampled_for_error_replay=b.errorSessionReplayAllowed,k.session.sampled_for_error_session=b.isErrorSession,k.session.error_timestamp_for_session=b.sessionErrorTimestamp),H(x.user)||(k.user=P({is_signin:"T",is_login:!0},x.user)),function(t,e,n,r){if(e){var i=Lr(t,Xu[t.type],(function(t){return e(t,n)}));if(!1===i&&t.type!==Je.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}(k,t.beforeSend,g,f)&&(H(k.context)&&delete k.context,e.notify(Tr,k))}}))}function Yu(){return Fu||(Fu=new tr((function(t){var e=Q((function(){t.notify(Zu())}),200).throttled;return ir(window,Oe,e,{capture:!0,passive:!0}).stop}))),Fu}function Zu(){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 tc=ei;var ec=ei;function nc(e,n,r,i){var o=new tr;!function(e){var n=rr([t.error]).subscribe((function(t){e.notify(t.error)}))}(o),function(t){Rn((function(e,n){t.notify(qn({stackTrace:e,originalError:n,startClocks:mt(),nonErrorPrefix:pn,source:Hn,handling:dn}))}))}(o),function(t,e){var n=ur(0,[ar]).subscribe((function(t){e.notify({startClocks:mt(),message:t.message,stack:t.stack,type:t.subtype,source:Wn,handling:dn})}))}(0,o);var a=r.findTrackedSession(),s=a.isErrorSession&&a.sessionHasError;return a.isErrorSession&&e.subscribe(br,(function(){s=!1})),o.subscribe((function(t){a.isErrorSession&&!s&&(r.setErrorForSession(),s=!0),e.notify(Cr,{error:t})})),function(t,e){return t.subscribe(Cr,(function(n){t.notify(kr,I({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:X(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser"},type:Je.ERROR,view:{in_foreground:e.wasInPageStateAt(gu,t.startClocks.relative)}};return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(n.error,e)))})),{addError:function(e,n){var r=e.error,i=qn({stackTrace:r instanceof Error?bn(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:vn,source:Fn,handling:fn});t.notify(Cr,{customerContext:e.context,savedCommonContext:n,error:i})}}}(e,i)}function rc(){if(ks(bs)){var t=performance.getEntriesByType(bs)[0];if(t)return t}var e=function(){var t={},e=performance.timing;for(var n in e)if(G(e[n])){var r=n,i=e[r];t[r]=0===i?0:pt(i)}return t}(),n=I({entryType:bs,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return I({},n,{toJSON:void 0})}},e);return n}function ic(t,e,n){return void 0===n&&(n=rc),function(t){var e,n=wo("complete",(function(){e=h((function(){t()}))}));return{stop:function(){n.stop(),m(e)}}}((function(){var t=n();(function(t){return t.loadEventEnd<=0})(t)||e(function(t){return{fetchStart:t.fetchStart,responseEnd:t.responseEnd,domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,loadEventEnd:t.loadEventEnd,loadEventStart:t.loadEventStart,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domContentLoadedEventStart:t.domContentLoadedEventStart,firstByte:t.responseStart>=0&&t.responseStart<=ht()?t.responseStart:void 0}}(t))}))}function oc(t,e){if(void 0===e&&(e=window),"hidden"===document.visibilityState)return{getTimeStamp:function(){return 0},stop:ot};if(ks(xs)){var n=performance.getEntriesByType(xs).filter((function(t){return"hidden"===t.name})).find((function(e){return e.startTime>=t.relative}));if(n)return{getTimeStamp:function(){return n.startTime},stop:ot}}var r=1/0,i=or(e,[Se,pe],(function(t){t.type!==Se&&"hidden"!==document.visibilityState||(r=t.timeStamp,i())}),{capture:!0}).stop;return{getTimeStamp:function(){return r},stop:function(){i()}}}function ac(t,e,n,r){var i={},o=ic(0,(function(t){n(t.loadEvent),i.navigationTimings=t,r()})),a=oc(e),s=o.stop,u=function(t,e,n){return{stop:Es(t,{type:ws,buffered:!0}).subscribe((function(t){var r=At(t,(function(t){return t.entryType===ws&&"first-contentful-paint"===t.name&&t.startTime<e.getTimeStamp()&&t.startTime<6e5}));r&&n(r.startTime)})).unsubscribe}}(t,a,(function(t){i.firstContentfulPaint=t,r()})),c=u.stop,l=function(t,e,n,r){var i=1/0,o=or(n,[ye,ae],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=0,s=Es(t,{type:ms,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===ms&&t.startTime<i&&t.startTime<e.getTimeStamp()&&t.startTime<6e5&&t.size>a}));s&&(s.element&&(o=Js(s.element,t.actionNameAttribute)),r({value:s.startTime,targetSelector:o}),a=s.size)}));return{stop:function(){o(),s.unsubscribe()}}}(t,a,window,(function(t){i.largestContentfulPaint=t,r()})),f=l.stop,d=function(t,e,n){var r=Es(t,{type:hs,buffered:!0}).subscribe((function(r){var i=At(r,(function(t){return t.entryType===hs&&t.startTime<e.getTimeStamp()}));if(i){var o,a=_t(i.startTime,i.processingStart);i.target&&mo(i.target)&&(o=Js(i.target,t.actionNameAttribute)),n({delay:a>=0?a:0,time:i.startTime,targetSelector:o})}}));return{stop:function(){r.unsubscribe()}}}(t,a,(function(t){i.firstInput=t,r()})),p=d.stop;return{stop:function(){s(),c(),f(),p(),a.stop()},initialViewMetrics:i}}var sc=st;function uc(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=sc);return new tr((function(t){function n(){var e,n,r,i;t.notify((e=xo(),n=Zu().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(n+e),{scrollHeight:r,scrollDepth:i,scrollTop:e}))}if(window.ResizeObserver){var r=Q(n,e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(u(r.throttled));i&&o.observe(i);var a=ir(window,ce,r.throttled,{passive:!0});return function(){r.cancel(),o.unobserve(i),a.stop()}}}))}());var i=0,o=0,a=0,s=r.subscribe((function(t){var r=t.scrollDepth,s=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=ht();a=_t(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:a})}));return{stop:function(){return s.unsubscribe()}}}function cc(t,e,n){if(!vc())return{stop:ot};var r,i,o=0;n({value:0});var a=function(){var t,e,n=0,r=0;return{update:function(i){var o;return void 0===t||i.startTime-e>=pc||i.startTime-t>=5*dc?(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=Es(t,{type:gs,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=lc(l.sources);r=p?new WeakRef(p):void 0,i=_t(e,l.startTime)}if(d>o){o=d;p=r&&r.deref();n({value:lt(o,4),targetSelector:p&&Js(p,t.actionNameAttribute),time:i})}}}}));return{stop:function(){s.unsubscribe()}}}function lc(t){if(t){var e=At(t,(function(t){return!!t.node&&mo(t.node)}));return e&&e.node}}var fc,dc=5e3,pc=st;function vc(){return ks(gs)&&"WeakRef"in window}var hc=0,mc=1/0,gc=0;var yc=function(){return fc?hc:window.performance.interactionCount||0};function _c(t,e,n){if(!(ks("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ot,stop:ot};var r,i,o=function(t){"interactionCount"in performance||fc||(fc=new window.PerformanceObserver(u((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(mc=Math.min(mc,e.interactionId),gc=Math.max(gc,e.interactionId),hc=(gc-mc)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===tn?0:yc(),n={stopped:!1};function r(){return yc()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,c=1/0,l=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(10)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(a),f=-1;function d(n){for(var o=0,a=n;o<a.length;o++){var s=a[o];s.interactionId&&s.startTime>=e&&s.startTime<=c&&l.process(s)}var u,d,p=l.estimateP98Interaction();p&&p.duration!==f&&(f=p.duration,i=_t(e,p.startTime),u=p.startTime,d=fu.get(u),fu.delete(u),!(r=d)&&p.target&&mo(p.target)&&(r=Js(p.target,t.actionNameAttribute)))}var p=Es(t,{type:hs,buffered:!0}).subscribe(d),v=Es(t,{type:vs,durationThreshold:40,buffered:!0}).subscribe(d);return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,6e4),targetSelector:r,time:i}:a()?{value:0}:void 0},setViewEnd:function(t){c=t,s()},stop:function(){v.unsubscribe(),p.unsubscribe()}}}function bc(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a=r===tn,s=!0,u=[],c=oc(i);function l(){if(!s&&!a&&u.length>0){var t=Math.max.apply(Math,u);t<c.getTimeStamp()-i.relative&&o(t)}}var f=Os(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(_t(i.timeStamp,t.end)),l())})).stop;return{setLoadEvent:function(t){a&&(a=!1,u.push(t),l())},stop:function(){f(),c.stop(),s&&(s=!1,l())}}}(t,e,n,i,o,(function(t){a.loadingTime=t,r()})),u=s.stop,c=s.setLoadEvent,l=uc(0,o,(function(t){a.scroll=t})).stop,f=cc(n,o.relative,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=_c(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 wc,Sc=3e5,xc=3e5;function Ec(t,e,n,r,i,o,a){var s=new Set;function u(i,o,a){var u=function(t,e,n,r,i,o,a){void 0===o&&(o=mt());var s,u,c,l,f,d=X(),p=new tr,v={},m=0,_=A(r),b=va(),w=!0;a&&(u=a.name,c=a.service,l=a.version,f=a.context);f&&b.setContext(f);var S={id:d,name:u,startClocks:o,service:c,version:l};t.notify(vr,S),t.notify(hr,S);var x=Q(H,3e3,{leading:!1}),E=x.throttled,k=x.cancel,T=bc(t,e,n,$,i,o),C=T.setLoadEvent,O=T.stop,I=T.getCommonViewMetrics,R=T.stopINPTracking,P=T.setViewEnd,N=i===tn?ac(n,o,C,$):{stop:ot,initialViewMetrics:{}},M=N.stop,L=N.initialViewMetrics,D=function(t,e,n){var r=Ts({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,d,$),U=D.stop,B=D.eventCounts,z=g(H,Sc),V=t.subscribe(Sr,(function(t){t.reason===vo.UNLOADING&&H()}));function j(){t.notify(gr,{id:d,name:u,context:b.getContext(),startClocks:o})}function $(){j(),E()}function H(){k(),j(),m+=1;var e=void 0===s?gt():s.timeStamp;t.notify(mr,{customTimings:v,documentVersion:m,id:d,name:u,service:c,version:l,context:b.getContext(),loadingType:i,location:_,startClocks:o,commonViewMetrics:I(),initialViewMetrics:L,duration:_t(o.timeStamp,e),isActive:void 0===s,sessionIsActive:w,eventCounts:B})}H(),b.changeObservable.subscribe($);var F={name:u,service:c,version:l,contextManager:b,stopObservable:p,end:function(e){s||(s=$t(e&&e.endClocks,mt()),w=$t(e&&e.sessionIsActive,!0),t.notify(yr,{endClocks:s}),t.notify(_r,{endClocks:s}),y(z),P(s.relative),O(),V.unsubscribe(),H(),h((function(){F.stop()}),xc))},stop:function(){M(),U(),R(),p.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<31536e6}(e)?e:_t(o.timeStamp,e);v[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");e!==t&&console.warn("Invalid timing name: "+t+", sanitized to: "+e);return e}(t)]=n,$()}},setViewName:function(t){u=t,H()}};return F}(e,n,r,t,i,o,a);return s.add(u),u.stopObservable.subscribe((function(){s.delete(u)})),u}var c,l=u(tn,bt(),a);return e.subscribe(br,(function(){l=u(en,void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})})),e.subscribe(wr,(function(){l.end({sessionIsActive:!1})})),o&&(c=function(t){return t.subscribe((function(t){var e,n,r,i,o=t.oldLocation,a=t.newLocation;if(n=a,(e=o).pathname!==n.pathname||(r=n.hash,!((i=r.substr(1))&&document.getElementById(i)||qt(n.hash)===qt(e.hash))))return l.end(),void(l=u(en))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=gt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(en,e,t)},setViewContext:function(t){l.contextManager.setContext(t)},setViewContextProperty:function(t,e){l.contextManager.setContextProperty(t,e)},setViewName:function(t){l.setViewName(t)},getViewContext:function(){return l.contextManager.getContext()},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach((function(t){t.stop()}))}}}function kc(t,e,n,r,i,o,a,s){return t.subscribe(mr,(function(n){t.notify(kr,function(t,e,n,r){var i=n.getReplayStats(t.id),o=r.findAll(t.startClocks.relative,t.duration),a={_gc:{document_version:t.documentVersion,replay_stats:i,page_states:o,view_update_time:t.documentVersion},date:t.startClocks.timeStamp,type:Je.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:Tt(t.commonViewMetrics,"cumulativeLayoutShift.value"),cumulative_layout_shift_time:Tt(t.commonViewMetrics,"cumulativeLayoutShift.time"),cumulative_layout_shift_target_selector:Tt(t.commonViewMetrics,"cumulativeLayoutShift.targetSelector"),first_byte:dt(Tt(t.initialViewMetrics,"navigationTimings.firstByte")),dom_complete:dt(Tt(t.initialViewMetrics,"navigationTimings.domComplete")),dom_content_loaded:dt(Tt(t.initialViewMetrics,"navigationTimings.domContentLoaded")),dom_interactive:dt(Tt(t.initialViewMetrics,"navigationTimings.domInteractive")),error:{count:t.eventCounts.errorCount},first_contentful_paint:dt(Tt(t.initialViewMetrics,"firstContentfulPaint")),first_input_delay:dt(Tt(t.initialViewMetrics,"firstInput.delay")),first_input_time:dt(Tt(t.initialViewMetrics,"firstInput.time")),first_input_target_selector:Tt(t.initialViewMetrics,"firstInput.targetSelector"),interaction_to_next_paint:dt(Tt(t.commonViewMetrics,"interactionToNextPaint.value")),interaction_to_next_paint_target_selector:Tt(t.commonViewMetrics,"interactionToNextPaint.targetSelector"),is_active:t.isActive,name:t.name,largest_contentful_paint:dt(Tt(t.initialViewMetrics,"largestContentfulPaint.value")),largest_contentful_paint_element_selector:Tt(t.initialViewMetrics,"largestContentfulPaint.targetSelector"),load_event:dt(Tt(t.initialViewMetrics,"navigationTimings.loadEvent")),loading_time:Gt(dt(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:dt(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:dt(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!i||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};H(t.customTimings)||(a.view.custom_timings=(s=t.customTimings,u=dt,c={},O(s,(function(t,e){c[e]=u(t)})),c));var s,u,c;return a=P(a,{view:Tc(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),Ec(n,t,r,e,i,!e.trackViewsManually,s)}function Tc(t){if(t){var e=t.fetchStart,n=t.responseEnd,r=t.domInteractive,i=t.domContentLoaded,o=t.domComplete,a=t.loadEventEnd,s=t.loadEventStart,u=t.domContentLoadedEventEnd,c={};if(G(n)&&G(e)&&n!==e&&n>e){c.fpt=dt(n-e);var l=parseInt((n-e)/1e3);c.apdexLevel=l>9?9:l}return G(r)&&G(e)&&r!==e&&r>e&&(c.tti=dt(r-e)),G(i)&&G(e)&&i!==e&&i>e&&(c.dom_ready=dt(i-e)),G(a)&&G(e)&&a!==e&&a>e&&(c.load=dt(a-e)),G(s)&&G(u)&&s!==u&&s>u&&(c.resource_load_time=dt(s-u)),G(o)&&G(r)&&o!==r&&o>r&&(c.dom=dt(o-r)),c}}function Cc(){this.buffer=new Uint8Array(8),Oc().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function Oc(){return window.crypto||window.msCrypto}function Ic(t,e){if(this._spanId=new Cc,this._traceId=new Cc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Ac(){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 Rc(t,e,n){if(this._spanId=Ac(),this._traceId=Ac(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=Y(e).getParse(),this._traceSampled=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function Pc(t,e){if(this._traceId=new Cc,this._spanId=new Cc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Nc(t,e){if(this._traceId=new Cc,this._spanId=new Cc,this._traceSampled=e,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Mc(t,e){if(this._traceId=new Cc,this._spanId=new Cc,this._traceSampled=e,this.is128Bit=t.traceId128Bit,t.generateTraceId&&"function"===et(t.generateTraceId)){var n=t.generateTraceId();"string"===et(n)&&(this.customTraceId=n)}}function Lc(t,e,n){if(this._traceId=new Cc,this._spanId=new Cc,this._traceSampled=e,this.isHexTraceId=n,t.generateTraceId&&"function"===et(t.generateTraceId)){var r=t.generateTraceId();"string"===et(r)&&(this.customTraceId=r)}}function Dc(t,e){return 100===e||0!==e&&(wc&&t===wc.sessionId?wc.decision:(n=window.BigInt?function(t,e){var n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000");return Number(t*n%r)<=e/100*Number(r)}(BigInt("0x".concat(t.split("-")[4])),e):ct(e),wc={sessionId:t,decision:n},n));var n}function Uc(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Bc(t,e,n,r){var i=n.findTrackedSession();if(i){var o=At(t.allowedTracingUrls,(function(t){return V([t.match],e.url,!0)}));if(o){var a=Dc(i.id,t.tracingSampleRate);if(a){var s;switch(o.traceType){case rn:s=new Ic(t,a);break;case cn:s=new Rc(t,e.url,a);break;case on:s=new Mc(t,a);break;case ln:s=new Pc(t,a);break;case sn:s=new Lc(t,a);break;case un:s=new Lc(t,a,!0);break;case an:s=new Nc(t,a)}if(s&&s.isTracingSupported()){e.traceId=s.getTraceId(),e.spanId=s.getSpanId(),e.traceSampled=a;var u=s.makeTracingHeaders();if(t.injectTraceHeader){var c=t.injectTraceHeader(A(e));"object"===et(c)&&O(c,(function(t,e){"string"===et(t)&&(u[e]=t)}))}r(u)}}}}}Cc.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]}},Ic.prototype={isTracingSupported:function(){return void 0!==Oc()},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()}}},Rc.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this.customTraceId?this.customTraceId:this._traceId},getSkyWalkingSw8:function(){try{var t=String(K(this.getTraceId())),e=String(K(this.getSpanId())),n=String(K(this._applicationId+"_rum_"+this.env)),r=String(K(this._version)),i=String(K(window.location.href)),o=String(K(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},Pc.prototype={isTracingSupported:function(){return void 0!==Oc()},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()}}},Nc.prototype={isTracingSupported:function(){return void 0!==Oc()},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()}}},Mc.prototype={isTracingSupported:function(){return void 0!==Oc()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},makeTracingHeaders:function(){return{"X-B3-TraceId":this.getTraceId(),"X-B3-SpanId":this.getSpanId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},Lc.prototype={isTracingSupported:function(){return void 0!==Oc()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.customTraceId?this.customTraceId:this.isHexTraceId?this._traceId.toDecimalString():this._traceId.toPaddedHexadecimalString()+this._spanId.toPaddedHexadecimalString()},getTraceParent:function(){return this.isHexTraceId?"00-0000000000000000"+this._traceId.toPaddedHexadecimalString()+"-"+this._spanId.toPaddedHexadecimalString()+"-"+(this._traceSampled?"01":"00"):"00-"+this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"01":"00")},makeTracingHeaders:function(){var t={traceparent:this.getTraceParent()};return this.isHexTraceId?I(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var zc=1;function Vc(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Uc,traceFetch:function(n){return Bc(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=A(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):N(n.init.headers)?O(n.init.headers,(function(t){e.push(t)})):n.init.headers&&O(n.init.headers,(function(t,n){e.push([n,t])}));var r={};O(e.concat(F(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),O(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return Bc(t,n,e,(function(t){O(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=lo().subscribe((function(r){var i=r;if(us(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=jc(),t.notify(xr,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(Er,{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:nn.XHR,url:i.url,xhr:i.xhr,isAborted:i.isAborted,handlingStack:i.handlingStack})}}))}(t,e,r),function(t,e,n){var r=uo().subscribe((function(r){var i=r;if(us(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=jc(),t.notify(xr,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":!function(t,e){var n=t.response&&function(t){try{return t.clone()}catch(t){return}}(t.response);n&&n.body?function(t,e,n){var r=t.getReader(),i=[],o=0;function a(){var t,a;if(r.cancel().catch(ot),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;O(i,(function(t){s.set(t,u),u+=t.length}))}t=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}e(void 0,t,a)}!function t(){r.read().then(u((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())})),u((function(t){e(t)})))}()}(n.body,(function(){e(_t(t.startClocks.timeStamp,gt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(_t(t.startClocks.timeStamp,gt()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(Er,{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:nn.FETCH,url:i.url,response:i.response,init:i.init,input:i.input,isAborted:i.isAborted,handlingStack:i.handlingStack})}))}}))}(t,e,r)}function jc(){var t=zc;return zc+=1,t}var $c=new Oa;function Hc(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=U(e,(function(t){return!$c.has(t)}));n=U(n,(function(t){return rs(t)&&is(t)})),n=U(n,(function(e){return n=e,r=t.startClocks.relative,i=Fc({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Fc(n)<=St(i,o);var n,r,i,o}));var r=void 0;if(n.length>1){var i=Number.MAX_SAFE_INTEGER;n.forEach((function(e){var n=Math.abs(e.startTime-t.startClocks.relative);n<i&&(i=n,r=e)}))}else 1===n.length&&(r=n[0]);return r?($c.add(r),r.toJSON()):void 0}}}function Fc(t){return St(t.startTime,t.duration)}function Wc(t,e){wo("interactive",(function(){var t=I(rc().toJSON(),{entryType:Ss,initiatorType:Ga,toJSON:function(){return I({},t,{toJSON:void 0})}});e(t)}))}function qc(t,e,n,r,i){void 0===r&&(r=function(){var t=[];function e(e){var r;if(e.didTimeout){var i=performance.now();r=function(){return 30-(performance.now()-i)}}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){Fr(e,{timeout:1e3})}return{push:function(e){1===t.push(e)&&n()}}}()),void 0===i&&(i=Wc),t.subscribe(Er,(function(t){a((function(){return function(t,e){var n=Hc(t),r=n?wt(n.startTime):t.startClocks,i=function(t){var e=t.traceSampled&&t.traceId&&t.spanId;if(!e)return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:X()}}}(t),o=t.type===nn.XHR?Ue:ze,a=n?Qc(n):void 0,s=function(t,e,n){return t.wasInPageStateDuringPeriod(bu,e.relative,n)?void 0:dt(n)}(e,r,t.duration),u=Y(t.url).getParse(),c=P({date:r.timeStamp,resource:{id:X(),type:o,duration:s,method:t.method,status:t.status,statusGroup:it(t.status),url:ls(t.url)?fs(t.url):t.url,urlHost:u.Host,urlPath:u.Path,urlPathGroup:J(u.Path),urlQuery:Z(t.url),deliveryType:n&&Ja(n),protocol:n&&Ya(n)},type:Je.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=Es(e,{type:Ss,buffered:!0}).subscribe((function(t){for(var n=function(t){(function(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType})(t)||ts(t.name,e.resourceUrlLimit)||a((function(){return Gc(t,e)}))},r=0,i=t;r<i.length;r++){n(i[r])}}));function a(e){r.push((function(){var n=e();n&&t.notify(kr,n)}))}return i(e,(function(t){a((function(){return Gc(t,e)}))})),{stop:function(){o.unsubscribe()}}}function Gc(t,e){var n,r=wt(t.startTime),i=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t),o=Ka(t),a=Qc(t),s=Y(t.name).getParse(),u=P({date:r.timeStamp,resource:{id:X(),type:o,url:t.name,urlHost:s.Host,urlPath:s.Path,urlPathGroup:J(s.Path),urlQuery:Z(t.name),method:"GET",status:(n=t.responseStatus,0===n?void 0:n),statusGroup:it(t.responseStatus),deliveryType:Ja(t),protocol:Ya(t)},type:Je.RESOURCE},i,a);return{startTime:r.relative,rawRumEvent:u,domainContext:{performanceEntry:t}}}function Qc(t){return{resource:P({},{duration:es(t)},ss(t),ns(t))}}var Kc={sdkVersion:"3.2.37",sdkName:"df_web_rum_sdk"};function Xc(t){if(t.applicationId){var e=function(t){return t.site||t.datakitOrigin||t.datakitUrl?!(t.site&&!t.clientToken&&(o.error("clientToken is not configured, no RUM data will be collected."),1)):(o.error("datakitOrigin or site is not configured, no RUM data will be collected."),!1)}(t);if(e)if(void 0===t.sessionOnErrorSampleRate||Pt(t.sessionOnErrorSampleRate))if(void 0===t.sessionReplaySampleRate||Pt(t.sessionReplaySampleRate))if(void 0===t.sessionReplayOnErrorSampleRate||Pt(t.sessionReplayOnErrorSampleRate)){var n=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&o.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!N(t.allowedTracingUrls))return void o.error("Allowed Tracing URLs should be an array");var e=[];return O(t.allowedTracingUrls,(function(n){var r;Ot(n)?e.push({match:n,traceType:$t(t.traceType,rn)}):"object"===et(r=n)&&Ot(r.match)&&W(r.traceType)?e.push(n):o.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)})),e}if(void 0!==t.allowedTracingOrigins){if(!N(t.allowedTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return O(t.allowedTracingOrigins,(function(n){var r=Jc(n,$t(t.traceType,rn));r&&e.push(r)})),e}if(void 0!==t.allowedDDTracingOrigins){if(!N(t.allowedDDTracingOrigins))return void o.error("Allowed Tracing Origins should be an array");e=[];return O(t.allowedDDTracingOrigins,(function(n){var r=Jc(n,$t(t.traceType,rn));r&&e.push(r)})),e}return[]}(t);if(n)if(void 0===t.tracingSampleRate||Pt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||N(t.excludedActivityUrls)){var r=Xi(t);if(r){var i=!!$t(t.trackUserInteractions,t.trackInteractions);return I({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:$t(t.sessionReplaySampleRate,100),sessionOnErrorSampleRate:$t(t.sessionOnErrorSampleRate,0),sessionReplayOnErrorSampleRate:$t(t.sessionReplayOnErrorSampleRate,0),tracingSampleRate:$t(t.tracingSampleRate,100),allowedTracingUrls:n,injectTraceHeader:t.injectTraceHeader&&f(t.injectTraceHeader,"injectTraceHeader threw an error:"),generateTraceId:t.generateTraceId&&f(t.generateTraceId,"generateTraceId threw an error:"),excludedActivityUrls:$t(t.excludedActivityUrls,[]),workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:i,enableLongAnimationFrame:!!t.enableLongAnimationFrame,trackViewsManually:!!t.trackViewsManually,traceType:$t(t.traceType,rn),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:Ht(Ki,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:Ki.MASK_USER_INPUT,shouldMaskNode:t.shouldMaskNode&&f(t.shouldMaskNode,"shouldMaskNode threw an error:")},r,Kc)}}else o.error("Excluded Activity Urls should be an array");else o.error("Tracing Sample Rate should be a number between 0 and 100")}else o.error("Error Session Replay Sample Rate should be a number between 0 and 100");else o.error("Session Replay Sample Rate should be a number between 0 and 100");else o.error("Error Session Sample Rate should be a number between 0 and 100")}else o.error("Application ID is not configured, no RUM data will be collected.")}function Jc(t,e){var n;if("string"==typeof t?n=t:t instanceof RegExp?n=function(e){return t.test(Vr(e))}:"function"==typeof t&&(n=function(e){return t(Vr(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 Yc(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=sa();if(e&&(t=function(t){var e,n;return I({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(e=t.defaultPrivacyLevel)&&void 0!==e?e:null===(n=ia())||void 0===n?void 0:n.getPrivacyLevel()})}(t)),a=t,function(t){Ai({type:xi,configuration:t})}(rt(t)),s)Ia("DATAFLUX_RUM",t);else{var n=Xc(t);n&&(e||n.sessionStoreStrategyType?(!n.compressIntakeRequests||n.sendContentTypeByJson||e||!c||(i=c(n,"RUM",ot)))&&(s=n,uo().subscribe(ot),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||Zr("guance-synthetics-injects-rum"))||(t.remoteConfiguration?ro(t,d):d(t))):o.error("Missing configuration")},getInitConfiguration:function(){return a},getInternalContext:ot,stopSession:ot,addTiming:function(t,e){void 0===e&&(e=gt()),l.add((function(n){n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=mt());var n=function(n){n.startView(t,e)};l.add(n),r||(r={options:t,callback:n},f())},setViewName:function(t){l.add((function(e){return e.setViewName(t)}))},setViewContext:function(t){l.add((function(e){return e.setViewContext(t)}))},setViewContextProperty:function(t,e){l.add((function(n){return n.setViewContextProperty(t,e)}))},getViewContext:function(){},addTypeAction:function(t,n,r){void 0===r&&(r=e()),l.add((function(e){e.addTypeAction(t,n,r)}))},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 Zc=2,tl=3,el=4,nl=6,rl=7,il=8,ol=9,al=0,sl=1,ul=2,cl=3,ll=4,fl=11,dl=0,pl=1,vl=2,hl=3,ml=4,gl=5,yl=6,_l=7,bl=8,wl=0,Sl=1,xl=2,El=3,kl=4,Tl=5,Cl=6,Ol=7,Il=9,Al=0,Rl=1,Pl={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Ki.ALLOW,MASK:Ki.MASK,MASK_USER_INPUT:Ki.MASK_USER_INPUT},Nl="data-gc-privacy",Ml="hidden",Ll="***",Dl={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Ul(t,e,n){if(n&&n.has(t))return n.get(t);var r=bo(t),i=r?Ul(r,e):e,o=Bl(zl(t),i);return n&&n.set(t,o),o}function Bl(t,e){switch(e){case Pl.HIDDEN:case Pl.IGNORE:return e}switch(t){case Pl.ALLOW:case Pl.MASK:case Pl.MASK_USER_INPUT:case Pl.HIDDEN:case Pl.IGNORE:return t;default:return e}}function zl(t){if(mo(t)){var e=t.getAttribute(Nl);if("BASE"===t.tagName)return Pl.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return Pl.MASK;if("hidden"===n.type)return Pl.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return Pl.MASK}return e===Ml||t.classList.contains("gc-privacy-hidden")?Pl.HIDDEN:"mask"===e||t.classList.contains("gc-privacy-mask")?Pl.MASK:"mask-user-input"===e||t.classList.contains("gc-privacy-mask-user-input")?Pl.MASK_USER_INPUT:"allow"===e||t.classList.contains("gc-privacy-allow")?Pl.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)?Pl.IGNORE:void 0}}function Vl(t,e,n){if(t.shouldMaskNode&&!0===t.shouldMaskNode(e,n))return!0;switch(n){case Pl.MASK:case Pl.HIDDEN:case Pl.IGNORE:return!0;case Pl.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(e)?jl(e.parentNode):jl(e);default:return!1}}function jl(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!!Dl[e.tagName]}function $l(t,e,n,r){var i=e.parentElement&&e.parentElement.tagName,o=e.textContent||"";if(!n||o.trim()){if("SCRIPT"===i)o=Ll;else if(r===Pl.HIDDEN)o=Ll;else if(Vl(t,e,r))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?Ll:o.replace(/\S/g,"x");return o}}var Hl=new WeakMap;function Fl(t){return Hl.has(t)}function Wl(t){return Hl.get(t)}function ql(t,e,n){var r=e.tagName,i=e.value;if(Vl(t,e,n)){var o=e.type;if("INPUT"===r&&("button"===o||"submit"===o||"reset"===o||"range"===o))return i;if(!i||"OPTION"===r)return;return Ll}return"OPTION"===r||"SELECT"===r?e.value:"INPUT"===r||"TEXTAREA"===r?i:void 0}var Gl=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Ql=/^[A-Za-z]+:|^\/\//,Kl=/^data:.*,/i;function Xl(t,e){return t.replace(Gl,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Ql.test(s)||Kl.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 jr(t,e).href}catch(e){return t}}(s,e)).concat(u,")")}))}function Jl(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch(t){}return e?Xl(((n=Array.from(e,Bt()===Dt?Zl:Yl).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 Yl(t){return function(t){return"styleSheet"in t}(t)&&Jl(t.styleSheet)||t.cssText}function Zl(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return Yl(t)}function tf(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 ef(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var nf=/^[^ \t\n\r\u000c]+/,rf=/^[, \t\n\r\u000c]+/;var of=0,af=1,sf=2;function uf(t,e,n){return cf(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function cf(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:al,childNodes:lf(t,e),adoptedStyleSheets:tf(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=yo(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:fl,childNodes:lf(t,e),isShadowRoot:n,adoptedStyleSheets:n?tf(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:sl,name:(n=t).name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=vf(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=Bl(zl(t),e.parentNodePrivacyLevel);var o;if(i===Pl.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:ul,tagName:n,attributes:ju({rr_width:s+"px",rr_height:u+"px"},Nl,Ml),childNodes:[],isSVG:r}}if(i===Pl.IGNORE)return;var c=function(t,e,n){if(e===Pl.HIDDEN)return{};for(var r={},i=vf(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=ff(t,e,s,n.configuration);null!==u&&(r[s]=hf(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=ql(n.configuration,t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===Pl.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=Jl(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=Jl(t.sheet))&&(r._cssText=d)}var p,v,h=t;"input"!==i||"radio"!==h.type&&"checkbox"!==h.type||(e===Pl.ALLOW?r.checked=!!h.checked:Vl(n.configuration,h,e)&&delete r.checked);if("audio"===i||"video"===i){var m=t;r.rr_mediaState=m.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case of:p=Math.round(t.scrollTop),v=Math.round(t.scrollLeft),(p||v)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:v});break;case af:if(g.elementsScrollPositions.has(t)){var y=g.elementsScrollPositions.get(t);p=y.scrollTop,v=y.scrollLeft}}v&&(r.rr_scrollLeft=v);p&&(r.rr_scrollTop=p);return r}(t,i,e),l=[];if(function(t){return t.childNodes.length>0||go(t)}(t)&&"style"!==n){l=lf(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:I({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:ul,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=$l(e.configuration,t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:cl,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:ll,textContent:""}}var n}(t,e);if(!n)return null;var r=Wl(t)||df++,i=n;return i.id=r,function(t,e){Hl.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function lf(t,e){var n=[];return _o(t,(function(t){var r=cf(t,e);r&&n.push(r)})),n}function ff(t,e,n,r){if(e===Pl.HIDDEN)return null;var i=t.getAttribute(n);if(e===Pl.MASK&&n!==Nl&&!Qs.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return Ll}if("IMG"===o||"SOURCE"===o){if("src"===n||"srcset"===n)return"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";if("onerror"===n)return null}if("A"===o&&"href"===n)return Ll;if(i&&Ft(n,"data-"))return Ll;if("IFRAME"===o&&"srcdoc"===n)return Ll}return i&&"string"==typeof i&&ls(i)?fs(i):i}var df=1;var pf=/[^a-z1-6-_]/;function vf(t){var e=(t+"").toLowerCase().trim();return pf.test(e)?"div":e}function hf(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?ef(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(rf),!(n>=e.length);){var o=r(nf);if(","===o.slice(-1))o=ef(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=ef(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?Xl(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?ef(t,r):r:ef(t,r):r;var i}function mf(t){return Boolean(t.changedTouches)}function gf(t,e){return{data:I({source:t},e),type:tl,timestamp:gt()}}function yf(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){r=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(r),e}}function _f(t,e,n,r){var i=Fa();if(!i)return{stop:ot,flush:ot};var o=function(t){var e=ot,n=[];function r(){e(),t(n),n=[]}var i=Q(r,16,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(t){0===n.length&&(e=Fr(o,{timeout:100})),Array.prototype.push.apply(n,t)},flush:r,stop:function(){e(),a()}}}((function(r){!function(t,e,n,r){var i=new Map;t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){bf(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Fl(e)&&!yo(e))return!1;e=bo(e)}return!0}(t.target)&&Ul(t.target,n.defaultPrivacyLevel,i)!==Pl.HIDDEN})),a=function(t,e,n,r){for(var i=new Set,o=new Map,a=0,s=t;a<s.length;a++){var u=s[a];u.addedNodes.forEach((function(t){i.add(t)})),u.removedNodes.forEach((function(t){i.has(t)||o.set(t,u.target),i.delete(t)}))}var c=Array.from(i);l=c,l.sort((function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0}));var l;for(var f=new Set,d=[],p=0,v=c;p<v.length;p++){var h=v[p];if(!b(h)){var m=Ul(h.parentNode,e.defaultPrivacyLevel,r);if(m!==Pl.HIDDEN&&m!==Pl.IGNORE){var g=cf(h,{serializedNodeIds:f,parentNodePrivacyLevel:m,serializationContext:{status:sf,shadowRootsController:n},configuration:e});if(g){var y=bo(h);d.push({nextId:w(h),parentId:Wl(y),node:g})}}}}var _=[];return o.forEach((function(t,e){Fl(e)&&_.push({parentId:Wl(t),id:Wl(e)})})),{adds:d,removes:_,serializedNodeIds:f,hasBeenSerialized:b};function b(t){return Fl(t)&&f.has(Wl(t))}function w(t){for(var e=t.nextSibling;e;){if(Fl(e))return Wl(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 Fl(t)&&c.has(Wl(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=Ul(bo(u.target),e.defaultPrivacyLevel,n);c!==Pl.HIDDEN&&c!==Pl.IGNORE&&r.push({id:Wl(u.target),value:$t($l(e,u.target,!1,c))})}}return r}(o.filter((function(t){return"characterData"===t.type&&!l(t.target)})),n,i),d=function(t,e,n){for(var r=[],i=new Map,o=t.filter((function(t){var e=i.get(t.target);return(!e||!e.has(t.attributeName))&&(e?e.add(t.attributeName):i.set(t.target,new Set([t.attributeName])),!0)})),a=new Map,s=0,u=o;s<u.length;s++){var c=u[s];if(c.target.getAttribute(c.attributeName)!==c.oldValue){var l,f=Ul(c.target,e.defaultPrivacyLevel,n),d=ff(c.target,f,c.attributeName,e);if("value"===c.attributeName){var p=ql(e,c.target,f);if(void 0===p)continue;l=p}else l="string"==typeof d?d:null;var v=a.get(c.target);v||(v={id:Wl(c.target),attributes:{}},r.push(v),a.set(c.target,v)),v.attributes[c.attributeName]=l}}return r}(o.filter((function(t){return"attributes"===t.type&&!l(t.target)})),n,i);if(!(f.length||d.length||u.length||s.length))return;e({adds:s,removes:u,texts:f,attributes:d})}(r.concat(a.takeRecords()),t,e,n)})),a=new i(u(o.addMutations));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 bf(t,e){go(t)&&e(t.shadowRoot),_o(t,(function(t){return bf(t,e)}))}var wf=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},Sf=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}},xf=new WeakMap,Ef=1;function kf(t){return xf.has(t)||xf.set(t,Ef++),xf.get(t)}function Tf(t){var e,n,r,i,o,a,s=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,_f(e,n,r,document)),u=function(t){var e=Q((function(e){var n=Af(e);if(Fl(n)){var r=Of(e);if(!r)return;var i={id:Wl(n),timeOffset:0,x:r.x,y:r.y};t([i],mf(e)?yl:pl)}}),50,{trailing:!1}),n=e.cancel,r=e.throttled,i=or(document,[Ee,de],r,{capture:!0,passive:!0}).stop;return function(){i(),n()}}(t.mousemoveCb,t.configuration),c=function(t,e){var n=function(n){var r=Af(n);if(Ul(r,e.defaultPrivacyLevel)!==Pl.HIDDEN&&Fl(r)){var i,o=Wl(r),a=Cf[n.type];if(a!==Cl&&a!==Tl){var s=Of(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=I({id:kf(n)},gf(vl,i));t(u)}};return or(document,Object.keys(Cf),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration),l=function(t,e,n){var r=Q((function(r){var i=Af(r);if(i&&Ul(i,e.defaultPrivacyLevel)!==Pl.HIDDEN&&Fl(i)){var o=Wl(i),a=i===document?{scrollTop:xo(),scrollLeft:So()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),100),i=r.cancel,o=r.throttled,a=ir(document,ce,o,{capture:!0,passive:!0}).stop;return function(){a(),i()}}(t.scrollCb,t.configuration,t.elementsScrollPositions),f=function(t){return Yu().subscribe(t).unsubscribe}(t.viewportResizeCb,t.configuration),d=If(t.inputCb,t.configuration),p=function(t,e){var n=function(n){var r=Af(n);r&&Ul(r,e.defaultPrivacyLevel)!==Pl.HIDDEN&&Fl(r)&&t({id:Wl(r),type:n.type===Re?Al:Rl})};return or(document,[Re,Pe],n,{capture:!0,passive:!0}).stop}(t.mediaInteractionCb,t.configuration),v=function(t){function e(t,e){t&&Fl(t.ownerNode)&&e(Wl(t.ownerNode))}var n=[Jn(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}]})}))})),Jn(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(Jn(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=yf(r);n&&(n.push(a||0),t({id:e,adds:[{rule:o,index:n}]}))}))})),Jn(r.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=yf(r);n&&(n.push(i),t({id:e,removes:[{index:n}]}))}))})))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb,t.configuration),h=(i=t.focusCb,t.configuration,or(window,[ke,Te],(function(){i({has_focus:document.hasFocus()})})).stop),m=function(t){if(!window.visualViewport)return ot;var e=Q((function(){t(Sf())}),200,{trailing:!1}),n=or(window.visualViewport,[Oe,ce],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb,t.configuration),g=(o=t.lifeCycle,a=t.frustrationCb,t.configuration,o.subscribe(kr,(function(t){t.rawRumEvent.type===Je.ACTION&&t.rawRumEvent.action.type===qe&&t.rawRumEvent.action.frustration&&t.rawRumEvent.action.frustration.type&&t.rawRumEvent.action.frustration.type.length&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&a({timestamp:t.rawRumEvent.date,type:ol,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return kf(t)}))}})})).unsubscribe);return{flush:function(){s.flush()},stop:function(){s.stop(),u(),c(),l(),f(),d(),p(),v(),h(),m(),g()}}}var Cf=ju(ju(ju(ju(ju(ju(ju(ju(ju({},_e,wl),xe,Sl),ie,xl),Ce,El),oe,kl),ke,Tl),Te,Cl),le,Ol),fe,Il);function Of(t){var e=mf(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=wf(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function If(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=or(n,o?[Ie]:[Ae,Ie],(function(t){var e=Af(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=ot;else{var u=[Yn(HTMLInputElement.prototype,"value",c),Yn(HTMLInputElement.prototype,"checked",c),Yn(HTMLSelectElement.prototype,"value",c),Yn(HTMLTextAreaElement.prototype,"value",c),Yn(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function c(t){var n=Ul(t,e.defaultPrivacyLevel);if(n!==Pl.HIDDEN){var r,i=t.type;if("radio"===i||"checkbox"===i){if(Vl(e,t,n))return;r={isChecked:t.checked}}else{var o=ql(e,t,n);if(void 0===o)return;r={text:o}}l(t,r);var a,s,u=t.name;"radio"===i&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'+j(u)+'"]'),s=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(e,n){if(Fl(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(I({id:Wl(e)},n)))}}}function Af(t){return!0===t.composed&&go(t.target)?t.composedPath()[0]:t.target}function Rf(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(gf(dl,t))},o=function(t){e(gf(gl,t))},a=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){if(!i.has(e)){var a=_f(n,t,o,e),s=a.flush,u=a.stop,c=If(r,t,e);i.set(e,{flush:s,stop:function(){u(),c()}})}},removeShadowRoot:function(t){var e=i.get(t);e&&(e.stop(),i.delete(t))},stop:function(){i.forEach((function(t){t.stop()}))},flush:function(){i.forEach((function(t){t.flush()}))}};return o}(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=gt()),void 0===i&&(i={status:of,elementsScrollPositions:r,shadowRootsController:a});var o=Zu(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:el,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:nl,timestamp:n}),e({data:{node:uf(document,t.configuration,i),initialOffset:{left:So(),top:xo()}},type:Zc,timestamp:n}),window.visualViewport&&e({data:Sf(),type:il,timestamp:n})};s();var u=Tf({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(gf(_l,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(gf(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(gf(hl,t))},styleSheetCb:function(t){e(gf(bl,t))},viewportResizeCb:function(t){e(gf(ml,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:nl,timestamp:gt()})},visualViewportResizeCb:function(t){e({data:t,type:il,timestamp:gt()})},shadowRootsController:a}),c=u.stop,l=u.flush;function f(){a.flush(),l()}return{stop:function(){a.stop(),c()},takeSubsequentFullSnapshot:function(t){f(),s(t,{shadowRootsController:a,status:af,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function Pf(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),Nf(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function Nf(t,e,n){void 0===n&&(n=""),O(F(t),(function(t){var r=t[1],i=t[0];"object"===zu(r)&&null!==r?Nf(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var Mf;function Lf(t){return Df(t).segments_count}function Df(t){var e;return Mf||(Mf=new Map),Mf.has(t)?e=Mf.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},Mf.set(t,e),Mf.size>10&&Uf()),e}function Uf(){if(Mf)if(Mf.keys)Mf.delete(Mf.keys().next().value);else{var t=!0;Mf.forEach((function(e,n){t&&(Mf.delete(n),t=!1)}))}}function Bf(t){var e=t.context,n=t.creationReason,r=t.encoder,i=0,o=e.view.id,a=I({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:Lf(o),source:"browser"},e);return function(t){Df(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===Zc),function(t){Df(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){Df(t).segments_total_raw_size+=e}(a.view.id,e.rawBytesCount),t(a,e)}))}}}var zf=6e4;function Vf(t,e,n,r,i,o){return function(t,e,n,r,i){var o={status:jf.WaitingForInitialRecord,nextSegmentCreationReason:"init",isLocked:i},a=t.subscribe(hr,(function(){f("view_change")})),s=a.unsubscribe,u=t.subscribe(Sr,(function(t){f(t.reason)})),c=u.unsubscribe,l=["view_change","buffer_checkout"];function f(t,e){var r=o.isLocked;if(o.status===jf.SegmentPending){if(r&&l.includes(t))o.segment.flush((function(){e&&e()}));else{if(r)return;o.segment.flush((function(e,r){var i=Pf(r.output,e,r.rawBytesCount);ho(t)?n.sendOnExit(i):n.send(i)}))}m(o.expirationTimeoutId)}o="stop"!==t?{status:jf.WaitingForInitialRecord,nextSegmentCreationReason:t,isLocked:o.isLocked}:{status:jf.Stopped,isLocked:!1}}return{addRecord:function(t){if(o.status!==jf.Stopped){if(o.status===jf.WaitingForInitialRecord){var n=e();if(!n)return;o={status:jf.SegmentPending,segment:Bf({encoder:r,context:n,creationReason:o.nextSegmentCreationReason}),isLocked:o.isLocked,expirationTimeoutId:h((function(){f("segment_duration_limit")}),5e3)}}o.segment.addRecord(t,(function(t){t>zf&&f("segment_bytes_limit")}))}},unlockSegment:function(){o.isLocked=!1},flushBufferSegment:function(t){f("buffer_checkout",t)},isLocked:function(){return o.isLocked},stop:function(){f("stop"),s(),c()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(!r||!i)return;return{sdk:{name:t.sdkName,version:t.sdkVersion},env:t.env||"",service:i.service||t.service||"browser",version:i.version||t.version||"",app:{id:t.applicationId},session:{id:r.id},view:{id:i.id}}}(e,n,r)}),i,o,arguments.length>6&&void 0!==arguments[6]&&arguments[6])}var jf={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var $f=0,Hf=1,Ff=2,Wf=3;var qf,Gf,Qf,Kf,Xf=function(t,e){if(sa()&&!aa(oa)||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:ot,stop:ot,getReplayStats:function(){},onRumStart:ot,isRecording:function(){return!1}};var n={status:$f},r=function(){n={status:Hf}},i=function(){n={status:$f}};return{start:function(t){r(t)},stop:function(){i()},onRumStart:function(o,a,s,u,c){var l;o.subscribe(wr,(function(){n.status!==Ff&&n.status!==Wf||(i(),n={status:Hf})})),o.subscribe(Sr,(function(t){t.reason===vo.UNLOADING&&i()})),o.subscribe(br,(function(){n.status===Hf&&r()})),r=function(r){var f=s.findTrackedSession();f&&f.sessionReplayAllowed?n.status!==Ff&&n.status!==Wf&&(n={status:Ff},wo("interactive",(function(){if(n.status===Ff){var r=(l||(c||(c=Lu(a,"Session Replay",(function(){i()}),e)),c&&(l=Ou(c,Tu))),l);if(r){var f=t(o,a,s,u,r);n={status:Wf,stopRecording:f.stop}}else n={status:$f}}}))):n={status:Hf}},i=function(){n.status!==$f&&(n.status===Wf&&n.stopRecording(),n={status:$f})},n.status===Hf&&r()},isRecording:function(){return Du()===Nu&&n.status===Wf},getReplayStats:function(t){return Du()===Nu?function(t){return Mf&&Mf.get(t)}(t):void 0}}}((function(t,e,n,r,i,o){var a,s,u,c,l=[],f=o||Fo(e.sessionReplayEndPoint,zf,e.retryMaxSize,(function(e){t.notify(Cr,{error:e}),Pi("Error reported to customer",{"error.message":e.message})}));if(sa()){var d=(u=r,c=ia(),{addRecord:function(t){var e=u.findView();c.send("session_replay",t,e.id)}});s=Rf({emit:a=d.addRecord,configuration:e,lifeCycle:t})}else{var p=n.findTrackedSession(),v=p&&p.errorSessionReplayAllowed&&!p.sessionHasError,h=Vf(t,e,n,r,f,i,v);a=h.addRecord;var m=h.flushBufferSegment,g=h.unlockSegment;l.push(h.stop),v&&n.sessionStateUpdateObservable.subscribe((function(t){var e=t.previousState,n=t.newState;!e.hasError&&n.hasError&&(v=!1,g())}));var y=null;s=Rf({emit:function(t){if(a(t),v)if(t.type===Zc)y=t;else if(t.type===tl){t.timestamp-y.timestamp>6e4&&m((function(){Uf(),_()}))}},configuration:e,lifeCycle:t})}l.push(s.stop);var _=s.takeSubsequentFullSnapshot,b=s.flushMutations,w=t.subscribe(yr,(function(){b(),a({timestamp:gt(),type:rl})}));l.push(w.unsubscribe);var S=t.subscribe(hr,(function(t){_(t.startClocks.timeStamp)}));return l.push(S.unsubscribe),{stop:function(){l.forEach((function(t){t()}))}}})),Jf=function(t,e,n){void 0===n&&(n={});var r=Ea(wa),i=va("global",{customerDataTracker:r.getOrCreateTracker(ma)}),a=va("user",{customerDataTracker:r.getOrCreateTracker(ha),propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}});function l(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(i,a,e)}var f,d,p=Yc(n,l,(function(o,s,u){o.storeContextsToLocal&&(ba(o,i,"rum",ma),ba(o,a,"rum",ha)),r.setCompressionStatus(s?Sa:xa);var c=t(o,e,r,l,u,s&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(s,t)}:Ta);return e.onRumStart(c.lifeCycle,o,c.session,c.viewContexts,s),p=function(t,e){return I({init:function(t){Ia("DATAFLUX_RUM",t)},initConfiguration:t.getInitConfiguration()},e)}(p,c),c})),v=u((function(t){var e="object"===zu(t)?t:{name:t};p.startView(e),e.context&&r.getOrCreateTracker(ga).updateCustomerData(e.context),Mi({feature:"start-view"})})),h=(f={init:u((function(t){p.init(t)})),setViewName:u((function(t){p.setViewName(t),Mi({feature:"set-view-name"})})),setViewContext:u((function(t){p.setViewContext(t),Mi({feature:"set-view-context"})})),setViewContextProperty:u((function(t,e){p.setViewContextProperty(t,e),Mi({feature:"set-view-context-property"})})),getViewContext:u((function(){return Mi({feature:"set-view-context-property"}),p.getViewContext()})),addRumGlobalContext:u((function(t,e){i.setContextProperty(t,e),Mi({feature:"set-global-context"})})),setGlobalContextProperty:u((function(t,e){i.setContextProperty(t,e),Mi({feature:"set-global-context"})})),removeRumGlobalContext:u((function(t){return i.removeContextProperty(t)})),removeGlobalContextProperty:u((function(t){return i.removeContextProperty(t)})),getRumGlobalContext:u((function(){return i.getContext()})),getGlobalContext:u((function(){return i.getContext()})),setRumGlobalContext:u((function(t){i.setContext(t),Mi({feature:"set-global-context"})})),setGlobalContext:u((function(t){i.setContext(t),Mi({feature:"set-global-context"})})),clearGlobalContext:u((function(){return i.clearContext()})),getInitConfiguration:u((function(){return rt(p.initConfiguration)})),getInternalContext:u((function(t){return p.getInternalContext(t)})),addDebugSession:u((function(t){})),clearDebugSession:u((function(){})),getDebugSession:u((function(){})),addTypeAction:u((function(t,e,n){var r=Gn();c((function(){var i=Dn(e);p.addAction({name:Dn(t),context:Dn(n),startClocks:mt(),type:"string"===et(i)?i:Ge,handlingStack:r}),Mi({feature:"add-type-action"})}))})),addAction:u((function(t,e){var n=Gn();c((function(){p.addAction({name:Dn(t),context:Dn(e),startClocks:mt(),type:Ge,handlingStack:n}),Mi({feature:"add-action"})}))})),addError:u((function(t,e){var n=Gn();c((function(){p.addError({error:t,handlingStack:n,context:Dn(e),startClocks:mt()}),Mi({feature:"add-error"})}))})),addTiming:u((function(t,e){p.addTiming(Dn(t),e)})),setUser:u((function(t){(function(t){var e="object"===et(t);return e||o.error("Unsupported user:",t),e})(t)&&a.setContext(Ca(t)),Mi({feature:"set-user"})})),getUser:u((function(){return a.getContext()})),setUserProperty:u((function(t,e){var n={};n[t]=e;var r=Ca(n)[t];a.setContextProperty(t,r),Mi({feature:"set-user"})})),removeUserProperty:u((function(t){return a.removeContextProperty(t)})),removeUser:u((function(){return a.clearContext()})),clearUser:u((function(){return a.clearContext()})),startView:v,stopSession:u((function(){p.stopSession(),Mi({feature:"stop-session"})})),startSessionReplayRecording:u((function(t){e.start(t),Mi({feature:"start-session-replay-recording",force:t&&t.force})})),stopSessionReplayRecording:u(e.stop)},d=I({onReady:function(t){t()}},f),Object.defineProperty(d,"_setDebug",{get:function(){return s},enumerable:!1}),d);return h}((function(t,e,n,r,i,o){var a=[],s=new Or,c=function(t){var e=Ri(Oi,t);return e}(t),l=function(t){s.notify(Cr,{error:t})},f=new tr((function(t){var e=or(window,[pe,he],(function(e){e.type===pe&&"hidden"===document.visibilityState?t.notify({reason:vo.HIDDEN}):e.type===he&&t.notify({reason:vo.FROZEN})}),{capture:!0}),n=ir(window,re,(function(){t.notify({reason:vo.UNLOADING})}));return function(){e.stop(),n.stop()}}));f.subscribe((function(t){s.notify(Sr,t)})),a.push((function(){pageExitSubscription.unsubscribe()}));var d=sa()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:Aa,isErrorSession:!1,sessionErrorTimestamp:0,sessionReplayAllowed:!!aa(oa),errorSessionReplayAllowed:!1,sessionHasError:!1};return{findTrackedSession:function(){return t},expire:ot,expireObservable:new tr,setErrorForSession:function(){}}}():Va(t,s);if(sa())!function(t){var e=ia();t.subscribe(Tr,(function(t){var n=Zo(t).rowData;e.send("rum",n)}))}(s);else{var p=Bu(t,s,c.observable,l,f,d.expireObservable,o);a.push((function(){p.stop()}))}var v,h=Ha(t),m=(v=Fa(),new tr((function(t){if(v){var e=new v(u((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),g=Wa(location),y=Su(),_=function(t,e,n,r,i,o,a,s,u,c){var l=function(t){var e=Yt({expireDelay:ec});return t.subscribe(vr,(function(t){e.add(function(t){return{service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(_r,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(gr,(function(t){var n=e.find(t.startClocks.relative);n&&t.name&&(n.name=t.name),n&&t.context&&(n.context=t.context)})),t.subscribe(br,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),f=function(t,e,n){var r,i=Yt({expireDelay:tc});t.subscribe(vr,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e})),t.subscribe(_r,(function(t){i.closeActive(t.endClocks.relative)}));var o=e.subscribe((function(t){var e=i.find();if(e){var n=ht();i.closeActive(n),i.add(a({url:t.newLocation.href,location:t.newLocation,referrer:e.referrer},!0),n)}}));function a(t){var e=t.location.pathname,n=e,r=t.location.hash;return r&&0===r.indexOf("#/")&&(n="/"+qt(r)),{url:t.url,referrer:t.referrer,host:t.location.host,path:n,pathGroup:J(n),urlQuery:Z(t.location.href),pathname:e}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,a,n),d=function(t,e,n,r){t.subscribe(pr,(function(e){t.notify(kr,Eu(e,r))}));var i={findActionId:ot,findAllActionId:ot};return n.trackUserInteractions&&(i=pu(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(kr,R({savedCommonContext:n},Eu(e,r)))}}}(t,s,e,o),p=d.actionContexts,v=d.addAction,h=(m=Zu(),{get:function(){return{viewport:m}},stop:Yu().subscribe((function(t){m=t})).unsubscribe});var m;return Ju(e,t,r,i,l,f,p,h,u,c),{viewContexts:l,urlContexts:f,pageStateHistory:o,addAction:v,actionContexts:p,stop:function(){h.stop(),o.stop(),f.stop(),l.stop()}}}(s,t,location,d,h,y,g,m,r,l),b=_.viewContexts,w=_.urlContexts,S=_.actionContexts,x=_.stop,E=_.addAction;a.push(x),Ii.drain(),c.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:d.findTrackedSession()&&d.findTrackedSession().id},view:{id:b.findView()&&b.findView().id},action:{id:S.findActionId(),ids:S.findAllActionId()}}}));var k=kc(s,t,location,m,g,y,e,i),T=k.addTiming,C=k.startView,O=k.setViewName,I=k.setViewContext,A=k.setViewContextProperty,P=k.getViewContext,N=k.stop;a.push(N);var M=qc(s,t,y);if(a.push(M.stop),PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(_s)){var L=function(t,e){var n=Es(e,{type:_s,buffered:!0}).subscribe((function(e){for(var n=0,r=e;n<r.length;n++){var i=r[n],o=wt(i.startTime),a={date:o.timeStamp,longTask:{id:X(),entryType:Ze,duration:dt(i.duration),blockingDuration:dt(i.blockingDuration),firstUiEventTimestamp:dt(i.firstUIEventTimestamp),renderStart:dt(i.renderStart),styleAndLayoutStart:dt(i.styleAndLayoutStart),startTime:dt(i.startTime),scripts:i.scripts.map((function(t){return{duration:dt(t.duration),pause_duration:dt(t.pauseDuration),forced_style_and_layout_duration:dt(t.forcedStyleAndLayoutDuration),start_time:dt(t.startTime),execution_start:dt(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}}))},type:Je.LONG_TASK};t.notify(kr,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i}})}}));return{stop:function(){n.unsubscribe()}}}(s,t);a.push(L.stop)}else!function(t,e){var n=Es(e,{type:ys,buffered:!0}).subscribe((function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.entryType!==ys)break;var i=wt(r.startTime),o={date:i.timeStamp,longTask:{id:X(),entryType:Ye,duration:dt(r.duration)},type:Je.LONG_TASK};t.notify(kr,{rawRumEvent:o,startTime:i.relative,domainContext:{performanceEntry:r}})}}))}(s,t);var D=nc(s,0,d,y).addError;Vc(s,t,d);var U=function(t,e,n,r,i){return{get:function(o){var a=n.findView(o),s=i.findUrl(o),u=e.findTrackedSession(o);if(u&&a&&s){var c=r.findActionId(o),l=r.findAllActionId(o);return{application:{id:t},session:{id:u.id},userAction:c?{id:c,ids:l}:void 0,view:{id:a.id,name:a.name||s.path,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,pathname:s.pathname,urlQuery:s.urlQuery}}}}}}(t.applicationId,d,b,S,w);return{addAction:E,addError:D,addTiming:T,configuration:t,startView:C,setViewContext:I,setViewContextProperty:A,getViewContext:P,setViewName:O,lifeCycle:s,viewContexts:b,session:d,stopSession:function(){d.expire()},getInternalContext:U.get,stop:function(){a.forEach((function(t){t()}))}}}),Xf,{startDeflateWorker:Lu,createDeflateEncoder:Ou});qf=p(),Qf=Jf,Kf=qf[Gf="DATAFLUX_RUM"],qf[Gf]=Qf,Kf&&Kf.q&&O(Kf.q,(function(t){f(t,"onReady callback threw an error:")()}))}();
|